@theoplayer/web-ui 2.1.3 → 2.3.0
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 +16 -0
- package/dist/THEOplayerUI.d.ts +634 -37
- package/dist/THEOplayerUI.es5.js +1 -1
- package/dist/THEOplayerUI.es5.mjs +1 -1
- package/dist/THEOplayerUI.js +2 -2
- package/dist/THEOplayerUI.js.map +1 -1
- package/dist/THEOplayerUI.mjs +1 -1
- package/dist/THEOplayerUI.mjs.map +1 -1
- package/dist/THEOplayerUI.node.mjs +1 -1
- package/dist/THEOplayerUI.node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/THEOplayerUI.es5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t;e=this,t=function(e,t){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}function a(e,t){return t||(t=e.slice(0)),e.raw=t,e}function o(e,t,r,n){function i(e,t){return function(r){(function(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")})(t,"addInitializer"),l(r,"An initializer"),e.push(r)}}function a(e,t,r,n,a,o,l,s,u){switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var c,h,d,p={kind:c,name:l?"#"+t:t,static:o,private:l,metadata:s},y={v:!1};if(p.addInitializer=i(n,y),0===a?l?(h=r.get,d=r.set):(h=function(){return this[t]},d=function(e){this[t]=e}):2===a?h=function(){return r.value}:((1===a||3===a)&&(h=function(){return r.get.call(this)}),(1===a||4===a)&&(d=function(e){r.set.call(this,e)})),h){var f=h;h=function(e){return 0==arguments.length&&(e=this),f.call(e)}}if(d){var v=d;d=function(e,t){return 1==arguments.length&&(t=e,e=this),v.call(e,t)}}if(l)p.access=h&&d?{get:h,set:d}:h?{get:h}:{set:d};else{var _=function(e){return t in e};p.access=h&&d?{has:_,get:h,set:d}:h?{has:_,get:h}:{has:_,set:d}}var m=e(u,p);return y.v=!0,m}function l(e,t){if("function"!=typeof e)throw TypeError(t+" must be a function")}function s(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&l(t.get,"accessor.get"),void 0!==t.set&&l(t.set,"accessor.set"),void 0!==t.init&&l(t.init,"accessor.init")}else if("function"!==r)throw TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function u(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}function c(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}return(o=function(e,t,r,n){if(void 0!==n)var o=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var l=Object.create(void 0===o?null:o),h=function(e,t,r){for(var n=[],i=new Map,o=new Map,l=0;l<t.length;l++){var c,h,d,p,y=t[l];if(Array.isArray(y)){var f=y[1],v=y[2],_=y.length>3,m=f>=5;if(m?(d=e,f-=5,p=h=h||[]):(d=e.prototype,p=c=c||[]),0!==f&&!_){var b=m?o:i,g=b.get(v)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+v);!g&&f>2?b.set(v,f):b.set(v,!0)}!function(e,t,r,n,i,o,l,u,c){var h,d,p,y,f,v,_=r[0];if(l?h=0===i||1===i?{get:r[3],set:r[4]}:3===i?{get:r[3]}:4===i?{set:r[3]}:{value:r[3]}:0!==i&&(h=Object.getOwnPropertyDescriptor(t,n)),1===i?p={get:h.get,set:h.set}:2===i?p=h.value:3===i?p=h.get:4===i&&(p=h.set),"function"==typeof _)void 0!==(y=a(_,n,h,u,i,o,l,c,p))&&(s(i,y),0===i?d=y:1===i?(d=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y);else for(var m=_.length-1;m>=0;m--)void 0!==(y=a(_[m],n,h,u,i,o,l,c,p))&&(s(i,y),0===i?v=y:1===i?(v=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y,void 0!==v&&(void 0===d?d=v:"function"==typeof d?d=[d,v]:d.push(v)));if(0===i||1===i){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var b=d;d=function(e,t){for(var r=t,n=0;n<b.length;n++)r=b[n].call(e,r);return r}}else{var g=d;d=function(e,t){return g.call(e,t)}}e.push(d)}0!==i&&(1===i?(h.get=p.get,h.set=p.set):2===i?h.value=p:3===i?h.get=p:4===i&&(h.set=p),l?1===i?(e.push(function(e,t){return p.get.call(e,t)}),e.push(function(e,t){return p.set.call(e,t)})):2===i?e.push(p):e.push(function(e,t){return p.call(e,t)}):Object.defineProperty(t,n,h))}(n,d,y,v,f,m,_,p,r)}}return u(n,c),u(n,h),n}(e,t,l);return r.length||c(e,l),{e:h,get c(){return function(e,t,r){if(t.length>0){for(var n=[],a=e,o=e.name,l=t.length-1;l>=0;l--){var u={v:!1},h=t[l](a,{kind:"class",name:o,addInitializer:i(n,u),metadata:r});u.v=!0,void 0!==h&&(s(10,h),a=h)}return[c(a,r),function(){for(var e=0;e<n.length;e++)n[e].call(a)}]}}(e,r,l)}}})(e,t,r,n)}function l(e){return e}function s(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){r(e);return}l.done?t(s):Promise.resolve(s).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){s(a,n,i,o,l,"next",e)}function l(e){s(a,n,i,o,l,"throw",e)}o(void 0)})}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function d(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function p(e,t,r){t=c(t);var n=h()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r);if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,l=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(l)throw n}}return a}}(e,t)||m(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t,r){return(k=h()?Reflect.construct:function(e,t,r){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return r&&n(a,r.prototype),a}).apply(null,arguments)}function w(e){var t="function"==typeof Map?new Map:void 0;return(w=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return k(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n(r,e)})(e)}function x(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){var u=[l,s];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function E(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var T,A,C,L,S,R,P,O,M,B,I,N,$,D,q,F,U,j,z,V,H,G,Q,W,K,Z,Y,J,X,ee,et,er,en,ei,ea,eo,el,es,eu,ec,eh,ed,ep,ey,ef,ev,e_,em,eb,eg,ek,ew,ex,eE,eT,eA,eC,eL,eS,eR,eP,eO,eM,eB,eI,eN,e$,eD,eq,eF,eU,ej,ez,eV,eH,eG,eQ,eW,eK,eZ,eY,eJ,eX,e0,e1,e2,e5,e3,e4,e8,e7,e6,e9,te,tt,tr,tn,ti,ta,to,tl,ts,tu,tc,th,td,tp,ty,tf,tv,t_,tm,tb,tg,tk,tw,tx,tE,tT,tA,tC,tL,tS,tR,tP,tO,tM,tB,tI,tN,t$,tD,tq,tF,tU,tj,tz,tV,tH,tG,tQ,tW,tK,tZ,tY,tJ,tX,t0,t1,t2,t5,t3,t4,t8,t7,t6,t9,re,rt,rr,rn,ri,ra,ro,rl,rs,ru,rc,rh,rd,rp,ry,rf,rv,r_,rm,rb,rg,rk,rw,rx,rE,rT,rA,rC,rL,rS,rR,rP,rO,rM,rB,rI,rN,r$,rD,rq,rF,rU,rj,rz,rV,rH,rG,rQ,rW,rK,rZ,rY,rJ,rX,r0,r1,r2,r5,r3,r4,r8,r7,r6,r9,ne,nt,nr,nn,ni,na,no,nl,ns,nu,nc,nh,nd,np,ny,nf,nv,n_,nm,nb,ng,nk,nw,nx,nE,nT,nA,nC,nL,nS,nR,nP,nO,nM,nB,nI,nN,n$,nD,nq,nF,nU,nj,nz,nV,nH,nG,nQ,nW,nK,nZ,nY,nJ,nX,n0,n1,n2,n5,n3,n4,n8,n7,n6,n9,ie,it,ir,ii,ia,io,il,is,iu,ic,ih,id,ip,iy,iv,i_,im,ib,ig,ik,iw,ix,iE,iT,iA,iC,iL,iS,iR,iP,iO,iM,iB,iI,iN,i$,iD,iq,iF,iU,ij,iz,iV,iH,iG,iQ,iW,iK,iZ,iY,iJ,iX,i0,i1,i2,i5,i3,i4,i8,i7,i6,i9,ae,at,ar,an,ai,aa,ao,al,as,au,ac,ah,ad,ap,ay,af,av,a_,am,ab,ag,ak,aw,ax,aE,aT,aA,aC,aL,aS,aR,aP,aO,aM,aB,aI,aN,a$,aD,aq,aF,aU,aj,az,aV,aH,aG,aQ,aW,aK,aZ,aY,aJ,aX,a0,a1,a2,a5,a3,a4,a8,a7,a6,a9,oe,ot,or,on,oi,oa,oo,ol,os,ou,oc,oh,od,op,oy,of,ov,o_,om,ob,og,ok,ow,ox,oE,oT,oA,oC,oL,oS,oR,oP,oO,oM,oB,oI,oN,o$,oD,oq,oF,oU,oj,oz,oV,oH,oG,oQ,oW,oK,oZ,oY,oJ,oX,o0,o1,o2,o5,o3,o4,o8,o7,o6,o9,le,lt,lr,ln,li,la,lo,ll,ls,lu,lc,lh,ld,lp,ly,lf,lv,l_,lm,lb,lg,lk,lw,lx,lE,lT,lA,lC,lL,lS,lR,lP,lO,lM,lB,lI,lN,l$,lD,lq,lF,lU,lj,lz,lV,lH,lG,lQ,lW,lK,lZ,lY,lJ,lX,l0,l1,l2,l5,l3,l4,l8,l7,l6,l9,se,st,sr,sn,si,sa,so,sl,ss,su,sc,sh,sd,sp,sy,sf,sv,s_,sm,sb,sg,sk,sw,sx,sE,sT,sA,sC,sL,sS,sR,sP,sO,sM,sB,sI,sN,s$,sD,sq,sF,sU,sj,sz,sV,sH,sG,sQ,sW,sK,sZ,sY,sJ,sX,s0,s1,s2,s5,s3,s4,s8,s7,s6,s9,ue,ut,ur,un,ui,ua,uo,ul,us,uu,uc,uh,ud,up,uy,uf,uv,u_,um,ub,ug,uk,uw,ux,uE,uT,uA,uC,uL,uS,uR,uP,uO,uM,uB,uI,uN,u$,uD,uq,uF,uU,uj,uz,uV,uH,uG,uQ,uW,uK,uZ,uY,uJ,uX,u0,u1,u2,u5,u3,u4,u8,u7,u6,u9,ce,ct,cr,cn,ci,ca,co,cl,cs,cu,cc,ch,cd,cp,cy,cf,cv,c_,cm,cb,cg,ck,cw,cx,cE,cT,cA,cC,cL,cS,cR,cP,cO,cM,cB,cI,cN,c$,cD,cq,cF,cU,cj,cz,cV=self,cH=cV.ShadowRoot&&(void 0===cV.ShadyCSS||cV.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cG=Symbol(),cQ=new WeakMap,cW=function(){function e(t,r,n){if(y(this,e),this._$cssResult$=!0,n!==cG)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}return v(e,[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(cH&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=cQ.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&cQ.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}]),e}(),cK=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new cW(1===e.length?e[0]:r.reduce(function(t,r,n){return t+function(e){if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(r)+e[n+1]},e[0]),e,cG)},cZ=function(e,t){var r=!0,n=!1,i=void 0;if(cH)e.adoptedStyleSheets=t.map(function(e){return E(e,CSSStyleSheet)?e:e.styleSheet});else try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value,s=document.createElement("style"),u=cV.litNonce;void 0!==u&&s.setAttribute("nonce",u),s.textContent=l.cssText,e.appendChild(s)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}},cY=cH?function(e){return e}:function(e){return E(e,CSSStyleSheet)?function(e){var t,r="",n=!0,i=!1,a=void 0;try{for(var o,l=e.cssRules[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;r+=s.cssText}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}return new cW("string"==typeof(t=r)?t:t+"",void 0,cG)}(e):e},cJ=Object.is,cX=Object.defineProperty,c0=Object.getOwnPropertyDescriptor,c1=Object.getOwnPropertyNames,c2=Object.getOwnPropertySymbols,c5=Object.getPrototypeOf,c3=self,c4=c3.trustedTypes,c8=c4?c4.emptyScript:"",c7=c3.reactiveElementPolyfillSupport,c6=function(e,t){return e},c9={toAttribute:function(e,t){switch(t){case Boolean:e=e?c8:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},he=function(e,t){return!cJ(e,t)},ht={attribute:!0,type:String,converter:c9,reflect:!1,useDefault:!1,hasChanged:he};null!=(S=Symbol).metadata||(S.metadata=Symbol("metadata")),null!=c3.litPropertyMetadata||(c3.litPropertyMetadata=new WeakMap);var hr=function(e){function t(){var e;return y(this,t),(e=p(this,t))._$Ep=void 0,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Em=null,e._$Ev(),e}return i(t,e),v(t,[{key:"_$Ev",value:function(){var e,t=this;this._$ES=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(e=this.constructor.l)||e.forEach(function(e){return e(t)})}},{key:"addController",value:function(e){var t,r;(null!=(t=this._$EO)?t:this._$EO=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null==(r=e.hostConnected)||r.call(e))}},{key:"removeController",value:function(e){var t;null==(t=this._$EO)||t.delete(e)}},{key:"_$E_",value:function(){var e=new Map,t=this.constructor.elementProperties,r=!0,n=!1,i=void 0;try{for(var a,o=t.keys()[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.hasOwnProperty(l)&&(e.set(l,this[l]),delete this[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}e.size>0&&(this._$Ep=e)}},{key:"createRenderRoot",value:function(){var e,t=null!=(e=this.shadowRoot)?e:this.attachShadow(this.constructor.shadowRootOptions);return cZ(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}},{key:"attributeChangedCallback",value:function(e,t,r){this._$AK(e,r)}},{key:"_$ET",value:function(e,t){var r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){var i,a=(void 0!==(null==(i=r.converter)?void 0:i.toAttribute)?r.converter:c9).toAttribute(t,r.type);this._$Em=e,null==a?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}},{key:"_$AK",value:function(e,t){var r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){var i,a,o,l=r.getPropertyOptions(n),s="function"==typeof l.converter?{fromAttribute:l.converter}:void 0!==(null==(a=l.converter)?void 0:a.fromAttribute)?l.converter:c9;this._$Em=n;var u=s.fromAttribute(t,l.type);this[n]=null!=(i=null!=u?u:null==(o=this._$Ej)?void 0:o.get(n))?i:u,this._$Em=null}}},{key:"requestUpdate",value:function(e,t,r,n,i){if(void 0===n&&(n=!1),void 0!==e){var a,o,l=this.constructor;if(!1===n&&(i=this[e]),null!=r||(r=l.getPropertyOptions(e)),!((null!=(a=r.hasChanged)?a:he)(i,t)||r.useDefault&&r.reflect&&i===(null==(o=this._$Ej)?void 0:o.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}},{key:"C",value:function(e,t,r,n){var i,a,o,l=r.useDefault,s=r.reflect,u=r.wrapped;l&&!(null!=(i=this._$Ej)?i:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,null!=(a=null!=n?n:t)?a:this[e]),!0!==u||void 0!==n)||(this._$AL.has(e)||(this.hasUpdated||l||(t=void 0),this._$AL.set(e,t)),!0===s&&this._$Em!==e&&(null!=(o=this._$Eq)?o:this._$Eq=new Set).add(e))}},{key:"_$EP",value:function(){return u(function(){var e;return x(this,function(t){switch(t.label){case 0:this.isUpdatePending=!0,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._$ES];case 2:return t.sent(),[3,4];case 3:return Promise.reject(t.sent()),[3,4];case 4:if(null==(e=this.scheduleUpdate()))return[3,6];return[4,e];case 5:t.sent(),t.label=6;case 6:return[2,!this.isUpdatePending]}})}).call(this)}},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){if(this.isUpdatePending){if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){var e,t=!0,r=!1,n=void 0;try{for(var i,a=this._$Ep[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=b(i.value,2),l=o[0],s=o[1];this[l]=s}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}this._$Ep=void 0}var u=this.constructor.elementProperties,c=!0,h=!1,d=void 0;if(u.size>0)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=b(p.value,2),v=f[0],_=f[1],m=_.wrapped,g=this[v];!0!==m||this._$AL.has(v)||void 0===g||this.C(v,void 0,_,g)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}var k=!1,w=this._$AL;try{(k=this.shouldUpdate(w))?(this.willUpdate(w),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(w)):this._$EM()}catch(e){throw k=!1,this._$EM(),e}k&&this._$AE(w)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null==(t=this._$EO)||t.forEach(function(e){var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$EM",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$ES}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;this._$Eq&&(this._$Eq=this._$Eq.forEach(function(e){return t._$ET(e,t[e])})),this._$EM()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this._$Ei(),(null!=(t=this.l)?t:this.l=[]).push(e)}},{key:"observedAttributes",get:function(){return this.finalize(),this._$Eh&&g(this._$Eh.keys())}},{key:"createProperty",value:function(e,t){if(void 0===t&&(t=ht),t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){var r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&cX(this.prototype,e,n)}}},{key:"getPropertyDescriptor",value:function(e,t,r){var n,i=null!=(n=c0(this.prototype,e))?n:{get:function(){return this[t]},set:function(e){this[t]=e}},a=i.get,o=i.set;return{get:a,set:function(t){var n=null==a?void 0:a.call(this);null==o||o.call(this,t),this.requestUpdate(e,n,r)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){var t;return null!=(t=this.elementProperties.get(e))?t:ht}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(c6("elementProperties"))){var e=c5(this);e.finalize(),void 0!==e.l&&(this.l=g(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(c6("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(c6("properties"))){var e=this.properties,t=g(c1(e)).concat(g(c2(e))),r=!0,n=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.createProperty(l,e[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}var s=this[Symbol.metadata];if(null!==s){var u=litPropertyMetadata.get(s),c=!0,h=!1,d=void 0;if(void 0!==u)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=b(p.value,2),v=f[0],_=f[1];this.elementProperties.set(v,_)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}this._$Eh=new Map;var m=!0,k=!1,w=void 0;try{for(var x,E=this.elementProperties[Symbol.iterator]();!(m=(x=E.next()).done);m=!0){var T=b(x.value,2),A=T[0],C=T[1],L=this._$Eu(A,C);void 0!==L&&this._$Eh.set(L,A)}}catch(e){k=!0,w=e}finally{try{m||null==E.return||E.return()}finally{if(k)throw w}}this.elementStyles=this.finalizeStyles(this.styles)}}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse()),n=!0,i=!1,a=void 0;try{for(var o,l=r[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;t.unshift(cY(s))}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}else void 0!==e&&t.push(cY(e));return t}},{key:"_$Eu",value:function(e,t){var r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}}]),t}(w(HTMLElement));hr.elementStyles=[],hr.shadowRootOptions={mode:"open"},hr[c6("elementProperties")]=new Map,hr[c6("finalized")]=new Map,null==c7||c7({ReactiveElement:hr}),(null!=(R=c3.reactiveElementVersions)?R:c3.reactiveElementVersions=[]).push("2.1.2");var hn=self,hi=function(e){return e},ha=hn.trustedTypes,ho=ha?ha.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,hl="$lit$",hs="lit$"+Math.random().toFixed(9).slice(2)+"$",hu="?"+hs,hc="<"+hu+">",hh=document,hd=function(){return hh.createComment("")},hp=function(e){return null===e||"object"!=(void 0===e?"undefined":d(e))&&"function"!=typeof e},hy=Array.isArray,hf="[ \n\f\r]",hv=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,h_=/-->/g,hm=/>/g,hb=RegExp(">|"+hf+"(?:([^\\s\"'>=/]+)("+hf+"*="+hf+"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),hg=/'/g,hk=/"/g,hw=/^(?:script|style|textarea|title)$/i,hx=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{_$litType$:1,strings:e,values:r}},hE=Symbol.for("lit-noChange"),hT=Symbol.for("lit-nothing"),hA=new WeakMap,hC=hh.createTreeWalker(hh,129,null,!1);function hL(e,t){if(!hy(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ho?ho.createHTML(t):t}var hS=function(e,t){for(var r,n=e.length-1,i=[],a=2===t?"<svg>":3===t?"<math>":"",o=hv,l=0;l<n;l++){for(var s=e[l],u=void 0,c=void 0,h=-1,d=0;d<s.length&&(o.lastIndex=d,null!==(c=o.exec(s)));)d=o.lastIndex,o===hv?"!--"===c[1]?o=h_:void 0!==c[1]?o=hm:void 0!==c[2]?(hw.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=hb):void 0!==c[3]&&(o=hb):o===hb?">"===c[0]?(o=null!=r?r:hv,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?hb:'"'===c[3]?hk:hg):o===hk||o===hg?o=hb:o===h_||o===hm?o=hv:(o=hb,r=void 0);var p=o===hb&&e[l+1].startsWith("/>")?" ":"";a+=o===hv?s+hc:h>=0?(i.push(u),s.slice(0,h)+hl+s.slice(h)+hs+p):s+hs+(-2===h?l:p)}return[hL(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]},hR=function(){function e(t,r){var n=t.strings,i=t._$litType$;y(this,e),this.parts=[];var a=0,o=0,l=n.length-1,s=this.parts,u=b(hS(n,i),2),c=u[0],h=u[1];if(this.el=e.createElement(c,r),hC.currentNode=this.el.content,2===i||3===i){var d,p=this.el.content.firstChild;p.replaceWith.apply(p,g(p.childNodes))}for(;null!==(d=hC.nextNode())&&s.length<l;){if(1===d.nodeType){var f=!0,v=!1,_=void 0;if(d.hasAttributes())try{for(var m,k=d.getAttributeNames()[Symbol.iterator]();!(f=(m=k.next()).done);f=!0){var w=m.value;if(w.endsWith(hl)){var x=h[o++],E=d.getAttribute(w).split(hs),T=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:T[2],strings:E,ctor:"."===T[1]?hI:"?"===T[1]?hN:"@"===T[1]?h$:hB}),d.removeAttribute(w)}else w.startsWith(hs)&&(s.push({type:6,index:a}),d.removeAttribute(w))}}catch(e){v=!0,_=e}finally{try{f||null==k.return||k.return()}finally{if(v)throw _}}if(hw.test(d.tagName)){var A=d.textContent.split(hs),C=A.length-1;if(C>0){d.textContent=ha?ha.emptyScript:"";for(var L=0;L<C;L++)d.append(A[L],hd()),hC.nextNode(),s.push({type:2,index:++a});d.append(A[C],hd())}}}else if(8===d.nodeType)if(d.data===hu)s.push({type:2,index:a});else for(var S=-1;-1!==(S=d.data.indexOf(hs,S+1));)s.push({type:7,index:a}),S+=hs.length-1;a++}}return v(e,null,[{key:"createElement",value:function(e,t){var r=hh.createElement("template");return r.innerHTML=e,r}}]),e}();function hP(e,t,r,n){if(void 0===r&&(r=e),t===hE)return t;var i,a,o,l,s=void 0!==n?null==(o=r._$Co)?void 0:o[n]:r._$Cl,u=hp(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==u&&(null==s||null==(l=s._$AO)||l.call(s,!1),void 0===u?s=void 0:(s=new u(e))._$AT(e,r,n),void 0!==n?(null!=(a=(i=r)._$Co)?a:i._$Co=[])[n]=s:r._$Cl=s),void 0!==s&&(t=hP(e,s._$AS(e,t.values),s,n)),t}var hO=function(){function e(t,r){y(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}return v(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,r=this._$AD,n=r.el.content,i=r.parts,a=(null!=(t=null==e?void 0:e.creationScope)?t:hh).importNode(n,!0);hC.currentNode=a;for(var o=hC.nextNode(),l=0,s=0,u=i[0];void 0!==u;){if(l===u.index){var c=void 0;2===u.type?c=new hM(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new hD(o,this,e)),this._$AV.push(c),u=i[++s]}l!==(null==u?void 0:u.index)&&(o=hC.nextNode(),l++)}return hC.currentNode=hh,a}},{key:"p",value:function(e){var t=0,r=!0,n=!1,i=void 0;try{for(var a,o=this._$AV[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;void 0!==l&&(void 0!==l.strings?(l._$AI(e,l,t),t+=l.strings.length-2):l._$AI(e[t])),t++}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}}]),e}(),hM=function(){function e(t,r,n,i){var a;y(this,e),this.type=2,this._$AH=hT,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=null==(a=null==i?void 0:i.isConnected)||a}return v(e,[{key:"_$AU",get:function(){var e,t;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e,t){var r;void 0===t&&(t=this),hp(e=hP(this,e,t))?e===hT||null==e||""===e?(this._$AH!==hT&&this._$AR(),this._$AH=hT):e!==this._$AH&&e!==hE&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):hy(r=e)||"function"==typeof(null==r?void 0:r[Symbol.iterator])?this.k(e):this._(e)}},{key:"O",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"T",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}},{key:"_",value:function(e){this._$AH!==hT&&hp(this._$AH)?this._$AA.nextSibling.data=e:this.T(hh.createTextNode(e)),this._$AH=e}},{key:"$",value:function(e){var t,r=e.values,n=e._$litType$,i="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=hR.createElement(hL(n.h,n.h[0]),this.options)),n);if((null==(t=this._$AH)?void 0:t._$AD)===i)this._$AH.p(r);else{var a=new hO(i,this),o=a.u(this.options);a.p(r),this.T(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=hA.get(e.strings);return void 0===t&&hA.set(e.strings,t=new hR(e)),t}},{key:"k",value:function(t){hy(this._$AH)||(this._$AH=[],this._$AR());var r,n=this._$AH,i=0,a=!0,o=!1,l=void 0;try{for(var s,u=t[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;i===n.length?n.push(r=new e(this.O(hd()),this.O(hd()),this,this.options)):r=n[i],r._$AI(c),i++}}catch(e){o=!0,l=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw l}}i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}},{key:"_$AR",value:function(e,t){for(void 0===e&&(e=this._$AA.nextSibling),null==(r=this._$AP)||r.call(this,!1,!0,t);e!==this._$AB;){var r,n=hi(e).nextSibling;hi(e).remove(),e=n}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cv=e,null==(t=this._$AP)||t.call(this,e))}}]),e}(),hB=function(){function e(t,r,n,i,a){y(this,e),this.type=1,this._$AH=hT,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=a,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=hT}return v(e,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e,t,r,n){void 0===t&&(t=this);var i=this.strings,a=!1;if(void 0===i)(a=!hp(e=hP(this,e,t,0))||e!==this._$AH&&e!==hE)&&(this._$AH=e);else{var o,l,s=e;for(e=i[0],o=0;o<i.length-1;o++)(l=hP(this,s[r+o],t,o))===hE&&(l=this._$AH[o]),a||(a=!hp(l)||l!==this._$AH[o]),l===hT?e=hT:e!==hT&&(e+=(null!=l?l:"")+i[o+1]),this._$AH[o]=l}a&&!n&&this.j(e)}},{key:"j",value:function(e){e===hT?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),hI=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=3,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element[this.name]=e===hT?void 0:e}}]),t}(hB),hN=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=4,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==hT)}}]),t}(hB),h$=function(e){function t(e,r,n,i,a){var o;return y(this,t),(o=p(this,t,[e,r,n,i,a])).type=5,o}return i(t,e),v(t,[{key:"_$AI",value:function(e,t){if(void 0===t&&(t=this),(e=null!=(r=hP(this,e,t,0))?r:hT)!==hE){var r,n=this._$AH,i=e===hT&&n!==hT||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==hT&&(n===hT||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(r=this.options)?void 0:r.host)?t:this.element,e):this._$AH.handleEvent(e)}}]),t}(hB),hD=function(){function e(t,r,n){y(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){hP(this,e)}}]),e}(),hq=hn.litHtmlPolyfillSupport;null==hq||hq(hR,hM),(null!=(P=hn.litHtmlVersions)?P:hn.litHtmlVersions=[]).push("3.3.2");var hF=function(e,t,r){var n=null!=(a=null==r?void 0:r.renderBefore)?a:t,i=n._$litPart$;if(void 0===i){var a,o,l=null!=(o=null==r?void 0:r.renderBefore)?o:null;n._$litPart$=i=new hM(t.insertBefore(hd(),l),l,void 0,null!=r?r:{})}return i._$AI(e),i},hU=globalThis,hj=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.renderOptions={host:e},e._$Do=void 0,e}return i(t,e),v(t,[{key:"createRenderRoot",value:function(){var t,r=e.prototype.createRenderRoot.call(this);return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=r.firstChild),r}},{key:"update",value:function(t){var r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),e.prototype.update.call(this,t),this._$Do=hF(r,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var t;e.prototype.connectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var t;e.prototype.disconnectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!1)}},{key:"render",value:function(){return hE}}]),t}(hr);hj._$litElement$=!0,hj.finalized=!0,null==(M=hU.litElementHydrateSupport)||M.call(hU,{LitElement:hj});var hz=hU.litElementPolyfillSupport;null==hz||hz({LitElement:hj}),(null!=(O=hU.litElementVersions)?O:hU.litElementVersions=[]).push("4.2.2");var hV=function(e){return function(t,r){void 0!==r?r.addInitializer(function(){customElements.define(e,t)}):customElements.define(e,t)}},hH={attribute:!0,type:String,converter:c9,reflect:!1,hasChanged:he},hG=function(e,t,r){void 0===e&&(e=hH);var n=r.kind,i=r.metadata,a=self.litPropertyMetadata.get(i);if(void 0===a&&self.litPropertyMetadata.set(i,a=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),a.set(r.name,e),"accessor"===n){var o=r.name;return{set:function(r){var n=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,n,e,!0,r)},init:function(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===n){var l=r.name;return function(r){var n=this[l];t.call(this,r),this.requestUpdate(l,n,e,!0,r)}}throw Error("Unsupported decorator location: "+n)};function hQ(e){return function(t,r){var n;return"object"==(void 0===r?"undefined":d(r))?hG(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function hW(e){var t,r;return hQ((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={state:!0,attribute:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}var hK=function(e,t,r){return r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=(void 0===t?"undefined":d(t))&&Object.defineProperty(e,t,r),r};function hZ(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host([hidden]){display:none!important}::slotted(theoplayer-time-range){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}"]);return hZ=function(){return e},e}var hY=cK(hZ());function hJ(){var e=a(["<slot></slot>"]);return hJ=function(){return e},e}N=hV("theoplayer-control-bar"),e.ControlBar=void 0,new(I=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[hY],t.shadowRootOptions=r({},hj.shadowRootOptions,{delegatesFocus:!0}),$(),t}return i(t,e),t}(l),B=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hx(hJ())},t}(hj),e.ControlBar=(D=o(B,[],[N],hj).c)[0],$=D[1],I);var hX=function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return{_$litDirective$:e,values:r}}},h0=function(){function e(t){y(this,e)}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,g(t))}}]),e}(),h1=hX(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("templateContent can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){return this.vt===e?hE:(this.vt=e,document.importNode(e.content,!0))}}]),t}(h0));function h2(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-tap-highlight-color:transparent;align-items:center;background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theoplayer-before-first-play-display,inline-flex);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);justify-content:center;line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}:host([hidden]){display:none!important}:host(:not([disabled])){cursor:pointer}:host(:focus){-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}:host(:focus:not(:focus-visible)){-webkit-box-shadow:none;box-shadow:none}:host(:hover){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}:host([aria-checked=true]){background:#fff;background:var(--theoplayer-button-checked-background,#fff);color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]){background:transparent;background:var(--theoplayer-control-background,transparent);color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}[part$=icon],[part~=icon]{font-size:0}::slotted(img),::slotted(svg),img,svg{fill:currentColor;color:#fff;color:var(--theoplayer-icon-color,#fff);height:24px;height:var(--theoplayer-button-icon-height,var(--theoplayer-control-height,24px));max-height:100%;max-width:100%;min-width:100%;-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-button-icon-transition,none);transition:var(--theoplayer-button-icon-transition,none);vertical-align:middle;width:24px;width:var(--theoplayer-button-icon-width,var(--theoplayer-control-height,24px))}::slotted(img),img{-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-button-icon-shadow,none);box-shadow:var(--theoplayer-button-icon-shadow,none)}::slotted(svg),svg{-webkit-filter:drop-shadow(none);filter:drop-shadow(none);-webkit-filter:drop-shadow(var(--theoplayer-button-icon-shadow,none));filter:drop-shadow(var(--theoplayer-button-icon-shadow,none))}:host(:hover:not([disabled])) ::slotted(img),:host(:hover:not([disabled])) img{-webkit-box-shadow:0 0 4px hsla(0,0%,100%,.5);box-shadow:0 0 4px hsla(0,0%,100%,.5);-webkit-box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5));box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5))}:host(:hover:not([disabled])) ::slotted(svg),:host(:hover:not([disabled])) svg{-webkit-filter:drop-shadow(0 0 4px hsla(0,0%,100%,.5));filter:drop-shadow(0 0 4px rgba(255,255,255,.5));-webkit-filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5)));filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px rgba(255,255,255,.5)))}"]);return h2=function(){return e},e}var h5=cK(h2()),h3=((T={}).CONFIGURATION="configuration",T.SOURCE="source",T.AUTOPLAY="autoplay",T.MUTED="muted",T.FULLSCREEN="fullscreen",T.FULLWINDOW="fullwindow",T.FLUID="fluid",T.DEVICE_TYPE="device-type",T.MOBILE="mobile",T.TV="tv",T.TV_FOCUS="tv-focus",T.MOBILE_ONLY="mobile-only",T.MOBILE_HIDDEN="mobile-hidden",T.TV_ONLY="tv-only",T.TV_HIDDEN="tv-hidden",T.USER_IDLE="user-idle",T.USER_IDLE_TIMEOUT="user-idle-timeout",T.NO_AUTO_HIDE="no-auto-hide",T.DISABLED="disabled",T.INERT="inert",T.HIDDEN="hidden",T.PAUSED="paused",T.ENDED="ended",T.VOLUME_LEVEL="volume-level",T.CASTING="casting",T.LOADING="loading",T.STREAM_TYPE="stream-type",T.LIVE="live",T.LIVE_ONLY="live-only",T.LIVE_HIDDEN="live-hidden",T.LIVE_THRESHOLD="live-threshold",T.DVR_THRESHOLD="dvr-threshold",T.REMAINING="remaining",T.REMAINING_WHEN_LIVE="remaining-when-live",T.SHOW_DURATION="show-duration",T.SEEK_OFFSET="seek-offset",T.MENU="menu",T.MENU_OPENED="menu-opened",T.MENU_CLOSE_ON_INPUT="menu-close-on-input",T.ARIA_LABEL="aria-label",T.ARIA_LIVE="aria-live",T.ARIA_CHECKED="aria-checked",T.HAS_AUDIO="has-audio",T.HAS_SUBTITLES="has-subtitles",T.HAS_ERROR="has-error",T.HAS_FIRST_PLAY="has-first-play",T.CAST_STATE="cast-state",T.TRACK_TYPE="track-type",T.SHOW_OFF="show-off",T.PLAYING_AD="playing-ad",T.SHOW_AD_MARKERS="show-ad-markers",T.CLICKTHROUGH="clickthrough",T.PROPERTY="property",T.VALUE="value",T),h4=((A={})[A.ENTER=13]="ENTER",A[A.ESCAPE=27]="ESCAPE",A[A.SPACE=32]="SPACE",A[A.END=35]="END",A[A.HOME=36]="HOME",A[A.LEFT=37]="LEFT",A[A.UP=38]="UP",A[A.RIGHT=39]="RIGHT",A[A.DOWN=40]="DOWN",A[A.BACK_SAMSUNG=88]="BACK_SAMSUNG",A[A.BACK_WEBOS=461]="BACK_WEBOS",A[A.BACK_TIZEN=10009]="BACK_TIZEN",A);function h8(e){return 37<=e&&e<=40}function h7(e){return 10009===e||27===e||88===e||461===e}function h6(e){return 13===e||32===e}function h9(){var e=a(["",""]);return h9=function(){return e},e}function de(){var e=a(["<slot></slot>"]);return de=function(){return e},e}function dt(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function dr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}U=hV("theoplayer-button"),z=hQ({reflect:!0,type:Boolean,attribute:h3.DISABLED}),e.Button=void 0,new(F=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[h5],j(),t}return i(t,e),t}(l),q=function(e){function t(t){var r;return r=e.call(this)||this,V(r),r._disabled=!1,r._onClick=function(){r.handleClick()},r._onKeyDown=function(e){!h6(e.keyCode)||e.metaKey||e.altKey?r.removeEventListener("keyup",r._onKeyUp):r.addEventListener("keyup",r._onKeyUp)},r._onKeyUp=function(e){r.removeEventListener("keyup",r._onKeyUp),h6(e.keyCode)&&r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(h3.ARIA_LIVE)||this.setAttribute(h3.ARIA_LIVE,"polite"),this._disabled||this._enable()},r.disconnectedCallback=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp)},r._enable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.addEventListener("keydown",this._onKeyDown),this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?hx(h9(),h1(this._template)):hx(de())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}}]),t}(hj),V=(H=o(q,[[z,4,"disabled"]],[U],hj)).e[0],e.Button=(G=H.c)[0],j=G[1],F);var dn=0;function di(e){return"__private_"+dn+++"_"+e}function da(){var e=a([":host{padding:0}a{color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));padding:10px;padding:var(--theoplayer-control-padding,10px);text-decoration:none}:host(:focus){-webkit-box-shadow:none;box-shadow:none;outline:0}a:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}a:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}:host([aria-checked=true]) a{color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]) a{color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}"]);return da=function(){return e},e}var dl=cK(da()),ds=function(e){return e},du=function(){return document.createComment("")},dc=function(e,t,r){var n=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new hM(n.insertBefore(du(),i),n.insertBefore(du(),i),e,e.options);else{var a,o,l=r._$AB.nextSibling,s=r._$AM,u=s!==e;if(u&&(null==(a=r._$AQ)||a.call(r,e),r._$AM=e,void 0!==r._$AP&&(o=e._$AU)!==s._$AU&&r._$AP(o)),l!==i||u)for(var c=r._$AA;c!==l;){var h=ds(c).nextSibling;ds(n).insertBefore(c,i),c=h}}return r},dh=function(e,t,r){return void 0===r&&(r=e),e._$AI(t,r),e},dd={},dp=function(e){e._$AR(),e._$AA.remove()},dy=function(e,t){var r=e._$AN;if(void 0===r)return!1;var n=!0,i=!1,a=void 0;try{for(var o,l,s=r[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var u=l.value;null==(o=u._$AO)||o.call(u,t,!1),dy(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0},df=function(e){var t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===(null==r?void 0:r.size))},dv=function(e){for(var t;t=e._$AM;e=t){var r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),db(t)}};function d_(e){void 0!==this._$AN?(df(this),this._$AM=e,dv(this)):this._$AM=e}function dm(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=0);var n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(n))for(var a=r;a<n.length;a++)dy(n[a],!1),df(n[a]);else null!=n&&(dy(n,!1),df(n));else dy(this,e)}var db=function(e){2==e.type&&(null!=e._$AP||(e._$AP=dm),null!=e._$AQ||(e._$AQ=d_))},dg=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e._$AN=void 0,e}return i(t,e),v(t,[{key:"_$AT",value:function(t,r,n){e.prototype._$AT.call(this,t,r,n),dv(this),this.isConnected=t._$AU}},{key:"_$AO",value:function(e,t){var r,n;void 0===t&&(t=!0),e!==this.isConnected&&(this.isConnected=e,e?null==(r=this.reconnected)||r.call(this):null==(n=this.disconnected)||n.call(this)),t&&(dy(this,e),df(this))}},{key:"setValue",value:function(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{var t=g(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}]),t}(h0),dk=function(){return new dw},dw=function e(){y(this,e)},dx=new WeakMap,dE=hX(function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),v(t,[{key:"render",value:function(e){return hT}},{key:"update",value:function(e,t){var r,n=b(t,1)[0],i=n!==this.G;return i&&void 0!==this.G&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=n,this.ht=null==(r=e.options)?void 0:r.host,this.rt(this.ct=e.element)),hT}},{key:"rt",value:function(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){var t,r=null!=(t=this.ht)?t:self,n=dx.get(r);void 0===n&&(n=new WeakMap,dx.set(r,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}},{key:"lt",get:function(){var e,t,r;return"function"==typeof this.G?null==(t=dx.get(null!=(e=this.ht)?e:self))?void 0:t.get(this.G):null==(r=this.G)?void 0:r.value}},{key:"disconnected",value:function(){this.lt===this.ct&&this.rt(void 0)}},{key:"reconnected",value:function(){this.rt(this.ct)}}]),t}(dg));function dT(){var e=a(["",""]);return dT=function(){return e},e}function dA(){var e=a(["<a ",' href="','" target="','" @keydown="','" @click="','">',"</a>"]);return dA=function(){return e},e}function dC(){var e=a(["<slot></slot>"]);return dC=function(){return e},e}Y=hV("theoplayer-link-button"),X=hQ({reflect:!0,type:Boolean,attribute:h3.DISABLED}),ee=hW(),et=hW(),e.LinkButton=void 0,new(Z=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dl],J(),t}return i(t,e),t}(l),Q=di("____private_href_1"),W=di("____private_target_2"),K=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,Q,{writable:!0,value:void 0}),Object.defineProperty(r,W,{writable:!0,value:void 0}),ei(r),r._disabled=!1,r._linkRef=dk(),dr(r,Q)[Q]=er(r,""),dr(r,W)[W]=en(r,""),r._onKeyDown=function(e){if(!e.metaKey&&!e.altKey)if(e.keyCode!==h4.SPACE)return;else{var t;e.preventDefault(),null==(t=r._linkRef.value)||t.click()}},r._onClick=function(){r.disabled||r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(h3.ARIA_LIVE)||this.setAttribute(h3.ARIA_LIVE,"polite"),this.hasAttribute(h3.DISABLED)||this._enable()},r._enable=function(){this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?hx(dT(),h1(this._template)):hx(dA(),dE(this._linkRef),this.href,this.target,this._onKeyDown,this._onClick,this.renderLinkContent())},r.renderLinkContent=function(){return hx(dC())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"href",get:function(){return dr(this,Q)[Q]},set:function(e){dr(this,Q)[Q]=e}},{key:"target",get:function(){return dr(this,W)[W]},set:function(e){dr(this,W)[W]=e}}]),t}(hj),er=(eo=(ea=o(K,[[X,4,"disabled"],[ee,1,"href"],[et,1,"target"]],[Y],hj)).e)[0],en=eo[1],ei=eo[2],e.LinkButton=(el=ea.c)[0],J=el[1],Z);var dL=function(e){function t(e){var r;if(y(this,t),(r=p(this,t,[e])).it=hT,2!==e.type)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){if(e===hT||null==e)return this._t=void 0,this.it=e;if(e===hE)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;var t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}]),t}(h0);dL.directiveName="unsafeHTML",dL.resultType=1;var dS=function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),t}(dL);dS.directiveName="unsafeSVG",dS.resultType=2;var dR=hX(dS);function dP(){var e=a([":host{--theoplayer-icon-color:var(--theoplayer-play-button-icon-color,unset);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host(:not([ended])) [part=replay-icon],:host(:not([paused])) [part=play-icon],:host([ended]) [part=pause-icon],:host([ended]) [part=play-icon],:host([paused]) [part=pause-icon]{display:none!important}"]);return dP=function(){return e},e}var dO=cK(dP());function dM(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=m(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dB(){var e=a([":host{display:contents}::slotted(:not([no-auto-hide])),slot{opacity:inherit}"]);return dB=function(){return e},e}var dI=cK(dB());function dN(){var e=a(["<slot></slot>"]);return dN=function(){return e},e}function d$(){}function dD(e){return e.nodeType===Node.ELEMENT_NODE}function dq(e){return E(e,HTMLElement)}ec=hV("theoplayer-slot-container"),e.SlotContainer=void 0,new(eu=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dI],eh(),t}return i(t,e),t}(l),es=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hx(dN())},t}(hj),e.SlotContainer=(ed=o(es,[],[ec],hj).c)[0],eh=ed[1],eu);var dF="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},dU="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){return Array.prototype.slice.call(e)},dj="function"==typeof Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return e[r]},dz="function"==typeof Array.prototype.findIndex?function(e,t){return e.findIndex(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return r;return -1},dV="function"==typeof String.prototype.startsWith?function(e,t){return e.startsWith(t)}:function(e,t){return e.substring(0,t.length)===t},dH="u">typeof Intl&&Intl.DisplayNames?function(e){var t=new Intl.DisplayNames([e,"en"],{type:"language",fallback:"none"}),r=t.of(e);if(r){var n=t.resolvedOptions().locale,i=r[0];return i.toLocaleUpperCase(n)+r.slice(i.length)}}:function(e){};function dG(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function dQ(e){if(e.shadowRoot)return e.shadowRoot.children;if("slot"===e.localName.toLowerCase()){var t=e.assignedNodes();if(t.length>0)return t.filter(dD)}return dq(e)?e.children:[]}function dW(e){for(var t,r=[],n=dM(e.assignedNodes({flatten:!0}));!(t=n()).done;){var i=t.value;dD(i)&&(r.push(i),"theoplayer-slot-container"===i.nodeName.toLowerCase())&&r.push.apply(r,[].concat(dU(i.children)))}return r}function dK(e){var t=[];return function e(t,r){if(dq(t)&&"none"!==getComputedStyle(t).display){if(t.hasAttribute("tabindex")&&Number(t.getAttribute("tabindex"))>=0)return void r.push(t);switch(t.tagName.toLowerCase()){case"button":case"input":case"textarea":case"select":case"details":r.push(t);break;case"a":t.href&&r.push(t);break;default:for(var n=dQ(t),i=0;i<n.length;i++)e(n[i],r)}}}(e,t),t}function dZ(e){var t=e.nodeName.toLowerCase();if(t.indexOf("-")>=0)if(!customElements.get(t))return customElements.whenDefined(t);else customElements.upgrade(e)}var dY="theoplayerUiObservedProperties";function dJ(e){return dY in e&&dF(e[dY])}var dX=function(e){return function(t,r){Object.defineProperty(t.prototype,dY,{value:e})}};function d0(e,t,r){return u(function(){var n;return x(this,function(i){switch(i.label){case 0:if(t.contains(e))return[2];if(!(e.nodeName.indexOf("-")>=0&&!dJ(e)))return[3,3];return[4,Promise.resolve()];case 1:return i.sent(),[4,customElements.whenDefined(e.nodeName.toLowerCase())];case 2:i.sent(),customElements.upgrade(e),i.label=3;case 3:if(dJ(e)&&r(e),!((n=dQ(e)).length>0))return[3,5];return[4,Promise.all(dU(n).map(function(e){return d0(e,t,r)}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function d1(){var e=a(['<span part="play-icon"><slot name="play-icon">','</slot></span><span part="pause-icon"><slot name="pause-icon">','</slot></span><span part="replay-icon"><slot name="replay-icon">',"</slot></span>"]);return d1=function(){return e},e}var d2=["seeking","seeked","ended","emptied","sourcechange"];function d5(){var e=a([":host(:not([volume-level=high])) [part=high-icon],:host(:not([volume-level=low])) [part=low-icon],:host(:not([volume-level=off])) [part=off-icon]{display:none!important}"]);return d5=function(){return e},e}e_=hV("theoplayer-play-button"),em=dX(["player"]),ek=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.PAUSED}),ew=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.ENDED}),e.PlayButton=void 0,new(ev=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[dO]),eb(),r}return i(r,t),r}(l),ep=di("____private_paused_1"),ey=di("____private_ended_2"),ef=function(t){function r(){var e;return e=t.apply(this,arguments)||this,Object.defineProperty(e,ep,{writable:!0,value:void 0}),Object.defineProperty(e,ey,{writable:!0,value:void 0}),dr(e,ep)[ep]=(eT(e),ex(e,!1)),dr(e,ey)[ey]=eE(e,!1),e._onPlay=function(){e.paused=!1,e._updateEnded()},e._onPause=function(){e.paused=!0,e._updateEnded()},e._updateFromPlayer=function(){var t,r;e.paused=null==(t=null==(r=e._player)?void 0:r.paused)||t,e._updateEnded(),e._updateDisabled()},e._updateDisabled=function(){var t;e.disabled=(null==(t=e._player)?void 0:t.source)===void 0},e}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},n._updateEnded=function(){var e,t;this.ended=null!=(e=null==(t=this._player)?void 0:t.ended)&&e},n.handleClick=function(){void 0!==this._player&&void 0!==this._player.source&&(this._player.paused?this._player.play():this._player.pause())},n.attributeChangedCallback=function(r,n,i){t.prototype.attributeChangedCallback.call(this,r,n,i),e.PlayButton.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},n._updateAriaLabel=function(){var e=this.ended?"replay":this.paused?"play":"pause";this.setAttribute(h3.ARIA_LABEL,e)},n.render=function(){return hx(d1(),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90" width="24" height="24"><path d="M77.504 50.868c-7.236 5.156-16.584 10.914-28.04 17.269-11.044 6.207-20.729 11.081-29.053 14.625l-9.224 3.43c-.581-2.493-1.125-6.188-1.632-11.08-1.143-9.75-1.715-20.513-1.715-32.288 0-10.781.777-20.858 2.333-30.234l2.251-10.772 9.787 3.29c8.476 3.375 17.663 8.166 27.563 14.373 10.48 6.562 19.472 12.805 26.97 18.73 3.749 2.982 6.449 5.279 8.099 6.891l-7.339 5.766"/></svg>\n'),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M2.108 1.914Q2.108.5 3.522.5h4.171q1.415 0 1.415 1.414v20.172q0 1.414-1.415 1.414H3.522q-1.414 0-1.414-1.414zm12.784 0Q14.892.5 16.307.5h4.171q1.414 0 1.414 1.414v20.172q0 1.414-1.414 1.414h-4.171q-1.415 0-1.415-1.414z"/></svg>\n'),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 23q-3.725 0-6.438-2.375Q2.85 18.25 2.275 14.7q-.1-.625.325-1.088.425-.462 1.125-.462.6 0 1.087.437.488.438.663 1.113.5 2.225 2.313 3.688Q9.6 19.85 12 19.85q2.8 0 4.75-1.963 1.95-1.962 1.95-4.762t-1.962-4.75q-1.963-1.95-4.763-1.95H11.8l.525.525q.375.375.363.85-.013.475-.363.825t-.85.363q-.5.012-.85-.338l-2.7-2.7q-.225-.225-.337-.513-.113-.287-.113-.587t.113-.588q.112-.287.337-.512L10.6 1.075q.35-.35.875-.363.525-.012.875.363.35.35.338.85-.013.5-.363.85l-.5.5h.15q2.05 0 3.85.775 1.8.775 3.15 2.112Q20.325 7.5 21.1 9.287q.775 1.788.775 3.838t-.775 3.85q-.775 1.8-2.112 3.137-1.338 1.338-3.138 2.113Q14.05 23 12 23Z"/></svg>\n'))},v(r,[{key:"paused",get:function(){return dr(this,ep)[ep]},set:function(e){dr(this,ep)[ep]=e}},{key:"ended",get:function(){return dr(this,ey)[ey]},set:function(e){dr(this,ey)[ey]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener("play",this._onPlay),this._player.removeEventListener("pause",this._onPause),this._player.removeEventListener(d2,this._updateFromPlayer)),this._player=e,this._updateFromPlayer(),void 0!==this._player&&(this._player.addEventListener("play",this._onPlay),this._player.addEventListener("pause",this._onPause),this._player.addEventListener(d2,this._updateFromPlayer)))}}]),r}(eg=e.Button),ex=(eC=(eA=o(ef,[[ek,1,"paused"],[ew,1,"ended"]],[e_,em],eg)).e)[0],eE=eC[1],eT=eC[2],e.PlayButton=(eL=eA.c)[0],eb=eL[1],ev);var d3=cK(d5());function d4(){var e=a(['<span part="off-icon"><slot name="off-icon">','</slot></span><span part="low-icon"><slot name="low-icon">','</slot></span><span part="high-icon"><slot name="high-icon">',"</slot></span>"]);return d4=function(){return e},e}var d8=["volumechange"];function d7(){var e=a([':host{position:relative}:host([seek-offset^="-"]) [part=icon]{-webkit-transform:scaleX(-1);transform:scaleX(-1)}[part=offset]{color:#fff;color:var(--theoplayer-icon-color,#fff);font-size:7.2px;font-size:var(--theoplayer-seek-button-font-size,calc(var(--theoplayer-button-icon-height, var(--theoplayer-control-height, 24px))*.3));left:50%;position:absolute;top:52.5%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}']);return d7=function(){return e},e}eO=hV("theoplayer-mute-button"),eM=dX(["player"]),eN=hQ({reflect:!0,state:!0,type:String,attribute:h3.VOLUME_LEVEL}),e$=hQ({reflect:!1,attribute:!1}),e.MuteButton=void 0,new(eP=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[d3]),eB(),r}return i(r,t),r}(l),eS=di("____private_volumeLevel_1"),eR=function(t){function r(){var e;return e=t.apply(this,arguments)||this,Object.defineProperty(e,eS,{writable:!0,value:void 0}),dr(e,eS)[eS]=(eq(e),eD(e,"off")),e._updateFromPlayer=function(){if(void 0!==e._player){var t=e._player.volume;e._player.muted?e.volumeLevel="off":t<.5?e.volumeLevel="low":e.volumeLevel="high"}else e.volumeLevel="off"},e}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},n.handleClick=function(){void 0!==this._player&&(this._player.muted=!this._player.muted,this._updateFromPlayer())},n.attributeChangedCallback=function(r,n,i){t.prototype.attributeChangedCallback.call(this,r,n,i),e.MuteButton.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},n._updateAriaLabel=function(){var e="off"===this.volumeLevel?"unmute":"mute";this.setAttribute(h3.ARIA_LABEL,e)},n.render=function(){return hx(d4(),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m19.225 22.55-2.25-2.275q-.175.1-.35.187-.175.088-.375.163-.525.2-1.075-.138-.55-.337-.55-1.062 0-.225.088-.425.087-.2.287-.325.05-.025.138-.088.087-.062.137-.087l-2.65-2.7v2.425q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5H3.525q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113.462-.462 1.112-.462H5.2L1.35 4.2Q1 3.85 1 3.375t.35-.825q.35-.35.85-.35t.85.35L20.9 20.9q.35.35.35.825t-.35.825q-.35.35-.838.35-.487 0-.837-.35ZM16.25 3.325q2.6 1.1 4.188 3.425 1.587 2.325 1.587 5.225 0 1.425-.4 2.7-.4 1.275-1.125 2.4L18.775 15.3q.425-.75.638-1.588.212-.837.212-1.737 0-2.125-1.175-3.875t-3.1-2.575q-.325-.125-.525-.4t-.2-.625q0-.65.525-1.038.525-.387 1.1-.137Zm.925 10.35-2.55-2.6V7.65q1.275.6 2.088 1.762.812 1.163.812 2.588 0 .45-.087.875-.088.425-.263.8ZM12.625 9l-3.45-3.575.775-.775q.75-.75 1.713-.338.962.413.962 1.463Z"/></svg>\n'),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M16.275 20.625q-.575.25-1.1-.15-.525-.4-.525-1.05 0-.35.188-.613.187-.262.512-.387 1.925-.825 3.113-2.575 1.187-1.75 1.187-3.875T18.463 8.1q-1.188-1.75-3.113-2.575-.325-.125-.512-.4-.188-.275-.188-.625 0-.65.525-1.038.525-.387 1.1-.137 2.6 1.1 4.175 3.425 1.575 2.325 1.575 5.225 0 2.9-1.575 5.225-1.575 2.325-4.175 3.425ZM3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'))},v(r,[{key:"volumeLevel",get:function(){return dr(this,eS)[eS]},set:function(e){dr(this,eS)[eS]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(d8,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(d8,this._updateFromPlayer))}}]),r}(eI=e.Button),eD=(eU=(eF=o(eR,[[eN,1,"volumeLevel"],[e$,4,"player"]],[eO,eM],eI)).e)[0],eq=eU[1],e.MuteButton=(ej=eF.c)[0],eB=ej[1],eP);var d6=cK(d7());function d9(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><span part="offset">',"</span>"]);return d9=function(){return e},e}function pe(){var e=a([":host{background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-text-color,#fff);display:inline-block;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));overflow:hidden;padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;text-align:center;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}"]);return pe=function(){return e},e}eG=hV("theoplayer-seek-button"),eQ=dX(["player"]),eZ=hQ({reflect:!0,type:Number,attribute:h3.SEEK_OFFSET}),eY=hQ({reflect:!1,attribute:!1}),e.SeekButton=void 0,new(eH=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[d6]),eW(),r}return i(r,t),r}(l),ez=di("____private_seekOffset_1"),eV=function(t){function r(){var e;return e=t.apply(this,arguments)||this,Object.defineProperty(e,ez,{writable:!0,value:void 0}),dr(e,ez)[ez]=(eX(e),eJ(e,10)),e}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this._updateAriaLabel()},n.handleClick=function(){if(void 0!==this._player){var e=this._player.duration;isNaN(e)||(this._player.currentTime=Math.max(0,Math.min(e,this._player.currentTime+this.seekOffset)))}},n.attributeChangedCallback=function(r,n,i){t.prototype.attributeChangedCallback.call(this,r,n,i),e.SeekButton.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},n._updateAriaLabel=function(){var e=this.seekOffset;this.setAttribute(h3.ARIA_LABEL,e>=0?"seek forward by "+e+" seconds":"seek backward by "+-e+" seconds")},n.render=function(){return hx(d9(),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 22.25q-1.925 0-3.6-.738-1.675-.737-2.912-1.974Q4.25 18.3 3.525 16.625q-.725-1.675-.725-3.6 0-1.9.725-3.575.725-1.675 1.963-2.925 1.237-1.25 2.925-1.975Q10.1 3.825 12 3.825h.15l-.7-.7q-.3-.325-.313-.788-.012-.462.313-.812.35-.35.813-.35.462 0 .812.325l2.65 2.675q.325.325.325.8 0 .475-.325.8l-2.65 2.65q-.325.325-.8.325-.475 0-.825-.35-.3-.325-.3-.8 0-.475.3-.8l.7-.7H12q-2.9 0-4.912 2.012-2.013 2.013-2.013 4.913 0 2.9 2.013 4.925Q9.1 19.975 12 19.975q2.6 0 4.55-1.687 1.95-1.688 2.325-4.238.05-.45.4-.738.35-.287.8-.287.45 0 .788.275.337.275.287.7-.375 3.55-2.987 5.9Q15.55 22.25 12 22.25Z"/></svg>\n'),String(Math.abs(this.seekOffset)))},v(r,[{key:"seekOffset",get:function(){return dr(this,ez)[ez]},set:function(e){dr(this,ez)[ez]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),r}(eK=e.Button),eJ=(e1=(e0=o(eV,[[eZ,1,"seekOffset"],[eY,4,"player"]],[eG,eQ],eK)).e)[0],eX=e1[1],e.SeekButton=(e2=e0.c)[0],eW=e2[1],eH);var pt=cK(pe());function pr(e){return!isNaN(e)&&isFinite(e)}function pn(e,t,r){void 0===t&&(t=0);var n,i=e<0||r&&0===e,a=Math.floor(t/60%60),o=Math.floor(t/3600);if(pr(e=Math.abs(e))){var l=Math.floor(e%60),s=Math.floor(e/60%60),u=Math.floor(e/3600),c=u>0||o>0;n=[c?""+u:"",(c||a>=0)&&s<10?"0"+s:""+s,l<10?"0"+l:""+l]}else n=[o>0?"--":"","--","--"];return(i?"-":"")+n.filter(function(e){return""!==e}).join(":")}var pi=[["hour","hours"],["minute","minutes"],["second","seconds"]];function pa(e,t){var r=pi[t][+(1!==e)];return e+" "+r}function po(e,t){if(!pr(e))return"";var r=e<0||t&&0===e,n=Math.floor((e=Math.abs(e))%60),i=Math.floor(e/60)%60,a=Math.floor(e/3600);return""+[0===a?"":pa(a,0),0===i?"":pa(i,1),0===n&&(a>0||i>0)?"":pa(n,2)].filter(function(e){return""!==e}).join(", ")+(r?" remaining":"")}function pl(){var e=a(["<span>","</span>"]);return pl=function(){return e},e}var ps=["timeupdate","seeking","seeked","durationchange"];function pu(){var e=a(["<span>","</span>"]);return pu=function(){return e},e}tr=hV("theoplayer-time-display"),tn=dX(["player","streamType"]),ta=hQ({reflect:!1,attribute:!1}),to=hQ({reflect:!0,type:Boolean,attribute:h3.REMAINING}),tl=hQ({reflect:!0,type:Boolean,attribute:h3.REMAINING_WHEN_LIVE}),ts=hQ({reflect:!0,type:Boolean,attribute:h3.SHOW_DURATION}),tu=hQ({reflect:!0,type:String,attribute:h3.STREAM_TYPE}),tc=hW(),th=hW(),td=hW(),e.TimeDisplay=void 0,new(tt=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pt],ti(),t}return i(t,e),t}(l),e5=di("____private_remaining_1"),e3=di("____private_remainingWhenLive_2"),e4=di("____private_showDuration_3"),e8=di("____private_streamType_4"),e7=di("____private__currentTime_5"),e6=di("____private__duration_6"),e9=di("____private__endTime_7"),te=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e5,{writable:!0,value:void 0}),Object.defineProperty(t,e3,{writable:!0,value:void 0}),Object.defineProperty(t,e4,{writable:!0,value:void 0}),Object.defineProperty(t,e8,{writable:!0,value:void 0}),Object.defineProperty(t,e7,{writable:!0,value:void 0}),Object.defineProperty(t,e6,{writable:!0,value:void 0}),Object.defineProperty(t,e9,{writable:!0,value:void 0}),dr(t,e5)[e5]=(tg(t),tp(t,!1)),dr(t,e3)[e3]=ty(t,!1),dr(t,e4)[e4]=tf(t,!1),dr(t,e8)[e8]=tv(t,"vod"),dr(t,e7)[e7]=t_(t,0),dr(t,e6)[e6]=tm(t,NaN),dr(t,e9)[e9]=tb(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.currentTime:0,n=t._player?t._player.duration:NaN,i=null==(e=t._player)?void 0:e.seekable,a=isFinite(n)?n:i&&i.length>0?i.end(0):NaN;t._currentTime=r,t._duration=n,t._endTime=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","progressbar"),this.hasAttribute(h3.ARIA_LABEL)||this.setAttribute(h3.ARIA_LABEL,"playback time"),this.hasAttribute(h3.ARIA_LIVE)||this.setAttribute(h3.ARIA_LIVE,"off")},r.render=function(){var e,t,r=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType,n=this._currentTime,i=this._endTime;return r&&(n=-((this._endTime||0)-n)),e=this.showDuration&&!r?pn(n,i,r)+" / "+pn(i):pn(n,i,r),t=isNaN(this._duration)?"video not loaded, unknown time":this.showDuration?po(n,r)+" of "+po(i):po(n,r),this.setAttribute("aria-valuetext",t),hx(pl(),e)},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(ps,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(ps,this._updateFromPlayer))}},{key:"remaining",get:function(){return dr(this,e5)[e5]},set:function(e){dr(this,e5)[e5]=e}},{key:"remainingWhenLive",get:function(){return dr(this,e3)[e3]},set:function(e){dr(this,e3)[e3]=e}},{key:"showDuration",get:function(){return dr(this,e4)[e4]},set:function(e){dr(this,e4)[e4]=e}},{key:"streamType",get:function(){return dr(this,e8)[e8]},set:function(e){dr(this,e8)[e8]=e}},{key:"_currentTime",get:function(){return dr(this,e7)[e7]},set:function(e){dr(this,e7)[e7]=e}},{key:"_duration",get:function(){return dr(this,e6)[e6]},set:function(e){dr(this,e6)[e6]=e}},{key:"_endTime",get:function(){return dr(this,e9)[e9]},set:function(e){dr(this,e9)[e9]=e}}]),t}(hj),tp=(tw=(tk=o(te,[[ta,4,"player"],[to,1,"remaining"],[tl,1,"remainingWhenLive"],[ts,1,"showDuration"],[tu,1,"streamType"],[tc,1,"_currentTime"],[th,1,"_duration"],[td,1,"_endTime"]],[tr,tn],hj)).e)[0],ty=tw[1],tf=tw[2],tv=tw[3],t_=tw[4],tm=tw[5],tb=tw[6],tg=tw[7],e.TimeDisplay=(tx=tk.c)[0],ti=tx[1],tt);var pc=["durationchange"];tC=hV("theoplayer-duration-display"),tL=dX(["player"]),tR=hQ({reflect:!1,attribute:!1}),tP=hW(),e.DurationDisplay=void 0,new(tA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pt],tS(),t}return i(t,e),t}(l),tE=di("____private_duration_1"),tT=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tE,{writable:!0,value:void 0}),dr(t,tE)[tE]=(tM(t),tO(t,NaN)),t._updateFromPlayer=function(){t.duration=t._player?t._player.duration:NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(h3.ARIA_LIVE)||this.setAttribute(h3.ARIA_LIVE,"off")},r.render=function(){return hx(pu(),pn(this.duration))},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(pc,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(pc,this._updateFromPlayer))}},{key:"duration",get:function(){return dr(this,tE)[tE]},set:function(e){dr(this,tE)[tE]=e}}]),t}(hj),tO=(tI=(tB=o(tT,[[tR,4,"player"],[tP,1,"duration"]],[tC,tL],hj)).e)[0],tM=tI[1],e.DurationDisplay=(tN=tB.c)[0],tS=tN[1],tA);var ph=!function(){try{var e=new Event("change");return"change"===e.type}catch(e){}return!1}()?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1),r}:function(e,t){return new Event(e,t)},pd=!function(){try{var e=new CustomEvent("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?function(e,t){var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1,null==t?void 0:t.detail),r}:function(e,t){return new CustomEvent(e,t)};t$=hV("theoplayer-radio-button"),tq=hQ({reflect:!0,type:Boolean,attribute:h3.ARIA_CHECKED,converter:{fromAttribute:function(e){return null!=e&&"false"!==e},toAttribute:function(e){return String(e)}}}),tF=hQ({attribute:h3.VALUE}),e.RadioButton=void 0;var pp=di("____private_value_1"),py=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pp,{writable:!0,value:void 0}),tj(t),t._checked=!1,dr(t,pp)[pp]=tU(t,void 0),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){this.hasAttribute("role")||this.setAttribute("role","radio"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),e.prototype.connectedCallback.call(this)},r.handleClick=function(){this.checked=!0,this.dispatchEvent(ph("input",{bubbles:!0,composed:!0}))},r.handleChange=function(){},v(t,[{key:"checked",get:function(){return this._checked},set:function(e){this._checked!==e&&(this._checked=e,this.handleChange(),this.dispatchEvent(ph("change",{bubbles:!0})))}},{key:"value",get:function(){return dr(this,pp)[pp]},set:function(e){dr(this,pp)[pp]=e}}]),t}(tD=e.Button);tU=(tV=(tz=o(py,[[tq,4,"checked"],[tF,1,"value"]],[t$],tD)).e)[0],tj=tV[1],e.RadioButton=(tH=tz.c)[0],(0,tH[1])();var pf=function(){function e(e,t,r,n){this.x=e,this.y=t,this.width=r,this.height=n}var t=e.prototype;return t.overlaps=function(e){return this.x<e.right&&this.right>e.x&&this.y<e.bottom&&this.bottom>e.y},t.contains=function(e){return this.x<=e.x&&e.right<=this.right&&this.y<=e.y&&e.bottom<=this.bottom},t.union=function(t){var r=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.right,t.right)-r,a=Math.max(this.bottom,t.bottom)-n;return new e(r,n,i,a)},t.snapToPixels=function(){return new e(Math.round(this.x),Math.round(this.y),Math.round(this.width),Math.round(this.height))},t.clone=function(){return new e(this.x,this.y,this.width,this.height)},t.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,left:this.left,right:this.right,top:this.top,bottom:this.bottom}},e.fromRect=function(t){var r,n,i,a,o,l;return new e(null!=(r=null!=(n=t.left)?n:t.x)?r:0,null!=(i=null!=(a=t.top)?a:t.y)?i:0,null!=(o=t.width)?o:0,null!=(l=t.height)?l:0)},v(e,[{key:"left",get:function(){return this.x},set:function(e){this.x=e}},{key:"right",get:function(){return this.x+this.width},set:function(e){this.x=e-this.width}},{key:"top",get:function(){return this.y},set:function(e){this.y=e}},{key:"bottom",get:function(){return this.y+this.height},set:function(e){this.y=e-this.height}}]),e}();function pv(){var e=function(){var e,t,r=document.activeElement;if(null==r)return null;for(;null!=(t=null==(e=r.shadowRoot)?void 0:e.activeElement);)r=t;return r}();return e&&e!==document.body&&dq(e)?e:null}function p_(e,t,r){var n,i,a,o=pv();if(null===o)return!1;var l=pf.fromRect(e.getBoundingClientRect()).snapToPixels(),s=pf.fromRect(o.getBoundingClientRect()).snapToPixels(),u=t.map(function(e){return{child:e,rect:pf.fromRect(e.getBoundingClientRect()).snapToPixels()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(r===h4.LEFT||r===h4.RIGHT){var c=s.clone();r===h4.LEFT?(c.left=l.left,c.width=s.left-l.left):(c.left=s.right,c.width=l.right-s.right),0===(a=u.filter(function(e){return c.overlaps(e.rect)})).length&&(c.top=l.top,c.height=l.height,a=u.filter(function(e){return c.overlaps(e.rect)}))}else{var h=s.clone();r===h4.UP?(h.top=l.top,h.height=s.top-l.top):(h.top=s.bottom,h.height=l.bottom-s.bottom),0===(a=u.filter(function(e){return h.overlaps(e.rect)})).length&&(h.left=l.left,h.width=l.width,a=u.filter(function(e){return h.overlaps(e.rect)}))}var d=(n=a,i=function(e){var t,r,n;return t=e.rect,r=s,n=0,t.right<r.left?n+=r.left-t.right:r.right<t.left&&(n+=t.left-r.right),t.bottom<r.top?n+=r.top-t.bottom:r.bottom<t.top&&(n+=t.top-r.bottom),n},function(e,t){if(0!==e.length)return e.reduce(function(e,r){return 0>=t(e,r)?e:r})}(n,function(e,t){return i(e)-i(t)}));return void 0!==d&&(d.child.focus(),!0)}function pm(){var e=a(["<slot ",' @slotchange="','"></slot>']);return pm=function(){return e},e}tG=hV("theoplayer-radio-group"),tQ=dX(["deviceType"]),tW=hQ({reflect:!0,type:String,attribute:h3.DEVICE_TYPE}),tK=hQ({attribute:h3.VALUE}),e.RadioGroup=void 0;var pb=di("____private_deviceType_1"),pg=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,pb,{writable:!0,value:void 0}),tY(t),t._slotRef=dk(),t._radioButtons=[],t._value=void 0,dr(t,pb)[pb]=tZ(t,"desktop"),t._onSlotChange=function(){var e,r=t._slotRef.value;if(r){for(var n,i=dW(r),a=[],o=dM(i);!(n=o()).done;){var l=n.value;if(!pk(l)){var s=dZ(l);s&&a.push(s)}}a.length>0&&Promise.all(a).then(t._onSlotChange,d$),t._radioButtons=i.filter(pk),t.focusedRadioButton||null==(e=t.firstRadioButton)||e.setAttribute("tabindex","0"),t.updateCheckedButton()}},t._onKeyDown=function(e){if("tv"===t.deviceType&&h8(e.keyCode)){p_(t,t._radioButtons,e.keyCode)&&(e.preventDefault(),e.stopPropagation());return}switch(e.keyCode){case h4.UP:case h4.LEFT:t._focusPrevButton()&&e.preventDefault();break;case h4.DOWN:case h4.RIGHT:t._focusNextButton()&&e.preventDefault();break;case h4.HOME:e.preventDefault(),t.setFocusedRadioButton(t.firstRadioButton);break;case h4.END:e.preventDefault(),t.setFocusedRadioButton(t.lastRadioButton)}},t._onButtonChange=function(e){var r=e.target;null!==r&&r.checked&&(t.value=r.value)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","radiogroup"),this.addEventListener("keydown",this._onKeyDown),this._onSlotChange()},r.disconnectedCallback=function(){e.prototype.disconnectedCallback.call(this),this.removeEventListener("keydown",this._onKeyDown)},r.firstUpdated=function(){this._onSlotChange()},r.createRenderRoot=function(){var t=e.prototype.createRenderRoot.call(this);return t.addEventListener("change",this._onButtonChange),t},r.allRadioButtons=function(){return this._radioButtons},r._prevRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>0?this._radioButtons[t-1]:null},r._nextRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>=0&&t<this._radioButtons.length-1?this._radioButtons[t+1]:null},r._focusPrevButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.firstRadioButton?this.setFocusedRadioButton(this.lastRadioButton):this.setFocusedRadioButton(this._prevRadioButton(e)),!0)},r._focusNextButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.lastRadioButton?this.setFocusedRadioButton(this.firstRadioButton):this.setFocusedRadioButton(this._nextRadioButton(e)),!0)},r.setFocusedRadioButton=function(e){this._unfocusAll(),e&&(e.tabIndex=0,e.focus())},r._unfocusAll=function(){for(var e,t=dM(this.allRadioButtons());!(e=t()).done;)e.value.tabIndex=-1},r.setCheckedRadioButton=function(e){for(var t,r=dM(this.allRadioButtons());!(t=r()).done;){var n=t.value;n.checked=n===e}},r.updateCheckedButton=function(){var e=this,t=this.allRadioButtons().find(function(t){return t.value==e.value});this.setCheckedRadioButton(null!=t?t:null)},r.render=function(){return hx(pm(),dE(this._slotRef),this._onSlotChange)},v(t,[{key:"deviceType",get:function(){return dr(this,pb)[pb]},set:function(e){dr(this,pb)[pb]=e}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.updateCheckedButton(),this.dispatchEvent(ph("change",{bubbles:!0})))}},{key:"focusedRadioButton",get:function(){var e;return null!=(e=dj(this._radioButtons,function(e){return 0===e.tabIndex}))?e:null}},{key:"checkedRadioButton",get:function(){var e;return null!=(e=dj(this._radioButtons,function(e){return e.checked}))?e:null}},{key:"firstRadioButton",get:function(){var e;return null!=(e=this._radioButtons[0])?e:null}},{key:"lastRadioButton",get:function(){var e=this._radioButtons;return e.length>0?e[e.length-1]:null}}]),t}(hj);function pk(t){return E(t,e.RadioButton)}function pw(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-menu-color,#fff);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);pointer-events:none}:host([hidden]){display:none!important}[part=heading]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center;align-self:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;pointer-events:auto}[part=heading] ::slotted(span),[part=heading]>span{padding:10px;padding:var(--theoplayer-control-padding,10px);padding-left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=content],[part=heading]>theoplayer-menu-close-button{pointer-events:auto}[part=content]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-item-align:center;-ms-grid-row-align:center;--theoplayer-control-hover-background:var(--theoplayer-menu-control-hover-background,hsla(0,0%,100%,.3));align-self:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:10px;margin:var(--theoplayer-menu-margin,10px);max-height:100%;max-width:100%;max-width:var(--theoplayer-menu-max-width,100%);min-height:0;min-width:80%;min-width:var(--theoplayer-menu-min-width,80%);overflow-y:auto}"]);return pw=function(){return e},e}tZ=(tX=(tJ=o(pg,[[tW,1,"deviceType"],[tK,4,"value"]],[tG,tQ],hj)).e)[0],tY=tX[1],e.RadioGroup=(t0=tJ.c)[0],(0,t0[1])();var px=cK(pw()),pE="theoplayermenuclose",pT="theoplayermenuchange";function pA(){var e=a(["",""]);return pA=function(){return e},e}function pC(){var e=a(['<div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>','</div><div part="content" @input="','">',"</div>"]);return pC=function(){return e},e}function pL(){var e=a(['<slot name="heading"></slot>']);return pL=function(){return e},e}function pS(){var e=a(["<slot></slot>"]);return pS=function(){return e},e}function pR(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;pointer-events:none}:host([hidden]){display:none!important}::slotted(*),:host>*{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch;min-height:0}"]);return pR=function(){return e},e}t3=hV("theoplayer-menu"),t8=hQ({reflect:!0,type:Boolean,attribute:h3.MENU_CLOSE_ON_INPUT}),t7=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.MENU_OPENED}),e.Menu=void 0,new(t5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[px],t.shadowRootOptions=r({},hj.shadowRootOptions,{delegatesFocus:!0}),t4(),t}return i(t,e),t}(l),t1=di("____private_closeOnInput_1"),t2=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,t1,{writable:!0,value:void 0}),t9(r),r._menuOpened=!1,dr(r,t1)[t1]=t6(r,!1),r._onContentInput=function(){if(r.closeOnInput){var e=pd(pE,{bubbles:!0,composed:!0});r.dispatchEvent(e)}},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(h3.HIDDEN,"")},r.openMenu=function(){this.menuOpened_=!0},r.closeMenu=function(){this.menuOpened_=!1},r.render=function(){return this._template?hx(pA(),h1(this._template)):hx(pC(),this.renderMenuHeading(),this._onContentInput,this.renderMenuContent())},r.renderMenuHeading=function(){return hx(pL())},r.renderMenuContent=function(){return hx(pS())},v(t,[{key:"closeOnInput",get:function(){return dr(this,t1)[t1]},set:function(e){dr(this,t1)[t1]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,dG(this,h3.HIDDEN,!e);var t=pd(pT,{bubbles:!0});this.dispatchEvent(t)}}}]),t}(hj),t6=(rt=(re=o(t2,[[t8,1,"closeOnInput"],[t7,4,"menuOpened_"]],[t3],hj)).e)[0],t9=rt[1],e.Menu=(rr=re.c)[0],t4=rr[1],t5);var pP=cK(pR()),pO="theoplayermenutoggle";function pM(){var e=a(["",""]);return pM=function(){return e},e}function pB(){var e=a(['<slot @slotchange="','"></slot>']);return pB=function(){return e},e}function pI(t){return!!dq(t)&&(E(t,e.Menu)||E(t,e.MenuGroup))}ro=hV("theoplayer-menu-group"),rs=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.MENU_OPENED}),e.MenuGroup=void 0,new(ra=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pP],t.shadowRootOptions=r({},hj.shadowRootOptions,{delegatesFocus:!0}),rl(),t}return i(t,e),t}(l),rn=di("____private__menuSlot_1"),ri=function(t){function r(r){var n;return Object.defineProperty(n=t.call(this)||this,rn,{writable:!0,value:void 0}),rc(n),n._menuOpened=!1,dr(n,rn)[rn]=ru(n,null),n._menus=[],n._openMenuStack=[],n._onMenuListChange=function(){for(var e,t=[].concat(dU(n.shadowRoot.children),n._menuSlot?dW(n._menuSlot):[]),r=[],i=dM(t);!(e=i()).done;){var a=e.value;if(!pI(a)){var o=dZ(a);o&&r.push(o)}}r.length>0&&Promise.all(r).then(n._onMenuListChange,d$);for(var l,s=t.filter(pI),u=dM(n._menus);!(l=u()).done;){var c=l.value;0>s.indexOf(c)&&n.closeMenu(c.id)}for(var h,d=dM(s);!(h=d()).done;){var p=h.value;0>n._menus.indexOf(p)&&p.closeMenu()}n._menus=s},n._onToggleMenu=function(e){var t=e.detail.menu;if(n.getMenuById(t)){e.stopPropagation();var r=dq(e.target)?e.target:void 0;n.isMenuOpen(t)?n.closeMenu(t):n.openMenu(t,r)}},n._onCloseMenu=function(e){n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._onMenuChange=function(t){var r=n.getCurrentMenu_();r&&r.menu===t.target&&E(r.menu,e.MenuGroup)&&!r.menu.hasCurrentMenu()&&n.closeCurrentMenu()},n._onKeyDown=function(e){!e.altKey&&h7(e.keyCode)&&n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._template=null==r?void 0:r.template,n._template&&n.performUpdate(),n}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(h3.HIDDEN,"")},n.createRenderRoot=function(){var e=t.prototype.createRenderRoot.call(this);return e.addEventListener(pO,this._onToggleMenu),e.addEventListener(pE,this._onCloseMenu),e.addEventListener(pT,this._onMenuChange),e},n.render=function(){return this._template?hx(pM(),h1(this._template)):hx(pB(),this._onMenuListChange)},n.firstUpdated=function(){this._onMenuListChange()},n.getMenuById=function(e){return e&&e!==this.id?dj(this._menus,function(t){return t.id===e}):this},n.openMenu=function(e,t){var r=this.getMenuById(e);if(r===this&&(r=this._menus[0]),!r)return!1;var n=this.getCurrentMenu_(),i=dz(this._openMenuStack,function(e){return e.menu===r});return i>=0?this.closeMenusFromIndex_(i+1):this._openMenuStack.push({menu:r,opener:t}),n&&n.menu.closeMenu(),r.openMenu(),this.menuOpened_=!0,r.focus(),!0},n.closeMenu=function(e){var t,r,n=this.getMenuById(e);if(n===this&&(n=null==(r=this._openMenuStack[0])?void 0:r.menu),!n)return!1;var i=dz(this._openMenuStack,function(e){return e.menu===n});if(i<0)return!1;var a=this._openMenuStack[i];this.closeMenusFromIndex_(i);var o=this.getCurrentMenu_();return void 0!==o?(o.menu.openMenu(),this.menuOpened_=!0,a.opener&&o.menu.contains(a.opener)?a.opener.focus():o.menu.focus()):(this.menuOpened_=!1,null==(t=a.opener)||t.focus()),!0},n.closeMenusFromIndex_=function(e){for(var t=this._openMenuStack.length-e,r=this._openMenuStack.length-1;r>=e;r--)this._openMenuStack[r].menu.closeMenu();this._openMenuStack.splice(e,t)},n.hasCurrentMenu=function(){return this._openMenuStack.length>0},n.getCurrentMenu_=function(){return this._openMenuStack.length>0?this._openMenuStack[this._openMenuStack.length-1]:void 0},n.closeCurrentMenu=function(){var e=this.getCurrentMenu_();return void 0!==e&&(this.closeMenu(e.menu.id),!0)},n.isMenuOpen=function(e){var t=this.getMenuById(e);return!!t&&this._openMenuStack.some(function(e){return e.menu===t})},v(r,[{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,dG(this,h3.MENU_OPENED,e),e?(this.removeAttribute(h3.HIDDEN),this.removeEventListener("keydown",this._onKeyDown),this.addEventListener("keydown",this._onKeyDown)):(this.setAttribute(h3.HIDDEN,""),this.removeEventListener("keydown",this._onKeyDown));var t=pd(pT,{bubbles:!0});this.dispatchEvent(t)}}},{key:"_menuSlot",get:function(){return dr(this,rn)[rn]},set:function(e){dr(this,rn)[rn]=e}}]),r}(hj),ru=(rd=(rh=o(ri,[[rs,4,"menuOpened_"],[function(e,t,r){var n=function(e){var t,r;return null!=(t=null==(r=e.renderRoot)?void 0:r.querySelector("slot"))?t:null};return hK(e,t,{get:function(){return n(this)}})},1,"_menuSlot"]],[ro],hj)).e)[0],rc=rd[1],e.MenuGroup=(rp=rh.c)[0],rl=rp[1],ra),ry=hV("theoplayer-menu-button"),rv=hQ({reflect:!0,type:String,attribute:h3.MENU}),r_=hQ({reflect:!0,state:!0,type:String,attribute:"aria-controls"}),e.MenuButton=void 0;var pN=di("____private__ariaControls_1"),p$=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pN,{writable:!0,value:void 0}),rb(t),t._menuId=null,dr(t,pN)[pN]=rm(t,null),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("aria-haspopup")||this.setAttribute("aria-haspopup","true")},r.handleClick=function(){var e=this.menu;if(e){var t=pd(pO,{bubbles:!0,composed:!0,detail:{menu:e}});this.dispatchEvent(t)}},v(t,[{key:"menu",get:function(){return this._menuId},set:function(e){e?(null==this._ariaControls||this._ariaControls===this._menuId)&&(this._ariaControls=e):this._ariaControls===this._menuId&&(this._ariaControls=null),this._menuId=e}},{key:"_ariaControls",get:function(){return dr(this,pN)[pN]},set:function(e){dr(this,pN)[pN]=e}}]),t}(rf=e.Button);function pD(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return pD=function(){return e},e}rm=(rk=(rg=o(p$,[[rv,4,"menu"],[r_,1,"_ariaControls"]],[ry],rf)).e)[0],rb=rk[1],e.MenuButton=(rw=rg.c)[0],(0,rw[1])(),rx=hV("theoplayer-menu-close-button"),e.CloseMenuButton=void 0;var pq=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(h3.ARIA_LABEL)||this.setAttribute(h3.ARIA_LABEL,"close menu")},r.handleClick=function(){var e=pd(pE,{bubbles:!0,composed:!0});this.dispatchEvent(e)},r.render=function(){return hx(pD(),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m10.525 19.275-6.375-6.35q-.175-.2-.262-.437Q3.8 12.25 3.8 12t.088-.488q.087-.237.262-.437l6.375-6.35q.375-.375.925-.388.55-.012.95.388.375.4.388.937.012.538-.363.938l-4.1 4.075H18.35q.55 0 .938.387.387.388.387.938 0 .55-.387.938-.388.387-.938.387H8.325l4.1 4.075q.35.375.363.925.012.55-.363.95-.4.4-.95.4-.55 0-.95-.4Z"/></svg>\n'))},t}(rE=e.Button);function pF(){var e=a(["<slot>","</slot>"]);return pF=function(){return e},e}e.CloseMenuButton=(rT=o(pq,[],[rx],rE).c)[0],(0,rT[1])();var pU=["change","update"];rA=hV("theoplayer-media-track-radio-button"),rL=hW(),rS=hQ({reflect:!1,attribute:!1}),e.MediaTrackRadioButton=void 0;var pj=di("____private__trackLabel_1"),pz=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pj,{writable:!0,value:void 0}),t._track=void rP(t),dr(t,pj)[pj]=rR(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this._trackLabel=this._track?function(e){var t=e.label,r=e.language;if(t&&t!==r)return t;var n=r&&dH(r);return n||r||t||""}(this._track):"",this.checked=!!this._track&&this._track.enabled},r._updateTrack=function(){this._track&&(this._track.enabled=this.checked)},r.handleChange=function(){this._updateTrack()},r.render=function(){return hx(pF(),this._trackLabel)},v(t,[{key:"_trackLabel",get:function(){return dr(this,pj)[pj]},set:function(e){dr(this,pj)[pj]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(pU,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(pU,this._onTrackChange))}}]),t}(rC=e.RadioButton);function pV(){var e=a([":host,theoplayer-radio-group{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([hidden]){display:none!important}"]);return pV=function(){return e},e}rR=(rM=(rO=o(pz,[[rL,1,"_trackLabel"],[rS,4,"track"]],[rA],rC)).e)[0],rP=rM[1],e.MediaTrackRadioButton=(rB=rO.c)[0],(0,rB[1])();var pH=cK(pV());function pG(e){return"subtitles"===e.kind||"captions"===e.kind}function pQ(e){return pG(e)&&!e.forced}function pW(e){var t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}function pK(e){if(e){if(e.label&&""!==e.label)return e.label;if(e.height)return""+e.height+"p";if(e.bandwidth){var t=e;if(t.bandwidth)return t.bandwidth>1e7?""+(t.bandwidth/1e6).toFixed(0)+"Mbps":t.bandwidth>1e6?""+(t.bandwidth/1e6).toFixed(1)+"Mbps":""+(t.bandwidth/1e3).toFixed(0)+"kbps";return}}}var pZ=function(e,t,r){for(var n=new Map,i=t;i<=r;i++)n.set(e[i],i);return n},pY=hX(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("repeat() can only be used in text expressions");return r}return i(t,e),v(t,[{key:"dt",value:function(e,t,r){void 0===r?r=t:void 0!==t&&(u=t);var n=[],i=[],a=0,o=!0,l=!1,s=void 0;try{for(var u,c,h=e[Symbol.iterator]();!(o=(c=h.next()).done);o=!0){var d=c.value;n[a]=u?u(d,a):a,i[a]=r(d,a),a++}}catch(e){l=!0,s=e}finally{try{o||null==h.return||h.return()}finally{if(l)throw s}}return{values:i,keys:n}}},{key:"render",value:function(e,t,r){return this.dt(e,t,r).values}},{key:"update",value:function(e,t){var r,n=b(t,3),i=n[0],a=n[1],o=n[2],l=e._$AH,s=this.dt(i,a,o),u=s.values,c=s.keys;if(!Array.isArray(l))return this.ut=c,u;for(var h,d,p,y=null!=(h=this.ut)?h:this.ut=[],f=[],v=0,_=l.length-1,m=0,g=u.length-1;v<=_&&m<=g;)if(null===l[v])v++;else if(null===l[_])_--;else if(y[v]===c[m])f[m]=dh(l[v],u[m]),v++,m++;else if(y[_]===c[g])f[g]=dh(l[_],u[g]),_--,g--;else if(y[v]===c[g])f[g]=dh(l[v],u[g]),dc(e,f[g+1],l[v]),v++,g--;else if(y[_]===c[m])f[m]=dh(l[_],u[m]),dc(e,l[v],l[_]),_--,m++;else if(void 0===d&&(d=pZ(c,m,g),p=pZ(y,v,_)),d.has(y[v]))if(d.has(y[_])){var k=p.get(c[m]),w=void 0!==k?l[k]:null;if(null===w){var x=dc(e,l[v]);dh(x,u[m]),f[m]=x}else f[m]=dh(w,u[m]),dc(e,l[v],w),l[k]=null;m++}else dp(l[_]),_--;else dp(l[v]),v++;for(;m<=g;){var E=dc(e,f[g+1]);dh(E,u[m]),f[m++]=E}for(;v<=_;){var T=l[v++];null!==T&&dp(T)}return this.ut=c,void 0===(r=f)&&(r=dd),e._$AH=r,hE}}]),t}(h0));function pJ(){var e=a(['<theoplayer-text-track-off-radio-button .trackList="','"></theoplayer-text-track-off-radio-button>']);return pJ=function(){return e},e}function pX(){var e=a(['<theoplayer-text-track-radio-button .track="','"></theoplayer-text-track-radio-button>']);return pX=function(){return e},e}function p0(){var e=a(['<theoplayer-media-track-radio-button .track="','"></theoplayer-media-track-radio-button>']);return p0=function(){return e},e}function p1(){var e=a(['<theoplayer-radio-group @change="','">'," ","</theoplayer-radio-group>"]);return p1=function(){return e},e}var p2=["addtrack","removetrack"];function p5(){var e=a(["<slot>","</slot>"]);return p5=function(){return e},e}rq=hV("theoplayer-track-radio-group"),rF=dX(["player"]),rj=hW(),rz=hQ({reflect:!0,type:String,attribute:h3.TRACK_TYPE}),rV=hQ({reflect:!0,type:Boolean,attribute:h3.SHOW_OFF}),e.TrackRadioGroup=void 0,new(rD=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pH],rU(),t}return i(t,e),t}(l),rI=di("____private__tracksList_1"),rN=di("____private_showOffButton_2"),r$=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,rI,{writable:!0,value:void 0}),Object.defineProperty(t,rN,{writable:!0,value:void 0}),rQ(t),t._trackType="audio",dr(t,rI)[rI]=rH(t),dr(t,rN)[rN]=rG(t,!1),t._updateTracks=function(){return t.requestUpdate()},t._onChange=function(){t.dispatchEvent(ph("change",{bubbles:!0}))},t}i(t,e);var r=t.prototype;return r._getTracksList=function(){if(void 0!==this._player){var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks:void 0}},r._updateTracksList=function(){var e=this._tracksList,t=this._getTracksList();e!==t&&(null==e||e.removeEventListener(p2,this._updateTracks),null==t||t.addEventListener(p2,this._updateTracks),this._tracksList=t)},r._getTracks=function(){if(void 0===this._player)return[];var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks.filter(pQ):[]},r.render=function(){var e=this._getTracks(),t="subtitles"===this.trackType;return hx(p1(),this._onChange,this.showOffButton&&t?hx(pJ(),this._tracksList):void 0,pY(e,function(e){return e.uid},function(e){return t?hx(pX(),e):hx(p0(),e)}))},v(t,[{key:"_tracksList",get:function(){return dr(this,rI)[rI]},set:function(e){dr(this,rI)[rI]=e}},{key:"trackType",get:function(){return this._trackType},set:function(e){this._trackType=e,this._updateTracksList()}},{key:"showOffButton",get:function(){return dr(this,rN)[rN]},set:function(e){dr(this,rN)[rN]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._player=e,this._updateTracksList(),this._updateTracks())}}]),t}(hj),rH=(rK=(rW=o(r$,[[rj,1,"_tracksList"],[rz,4,"trackType"],[rV,1,"showOffButton"]],[rq,rF],hj)).e)[0],rG=rK[1],rQ=rK[2],e.TrackRadioGroup=(rZ=rW.c)[0],rU=rZ[1],rD);var p3=["change","update"];rY=hV("theoplayer-text-track-radio-button"),rX=hW(),r0=hQ({reflect:!1,attribute:!1}),e.TextTrackRadioButton=void 0;var p4=di("____private__trackLabel_1"),p8=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,p4,{writable:!0,value:void 0}),t._track=void r2(t),dr(t,p4)[p4]=r1(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this._trackLabel=this._track?function(e){var t=e.label,r=e.language;if(t){if(t===r);else if(!("cea608"===e.type&&/^CC\d+$/.test(e.label)))return t}var n=r&&dH(r);return n||("cea608"===e.type&&"number"==typeof e.captionChannel?"CC"+e.captionChannel:r||t||"")}(this._track):"",this.checked=!!this._track&&"showing"===this._track.mode},r._updateTrack=function(){this._track&&(this._track.mode=this.checked?"showing":"disabled")},r.handleChange=function(){this._updateTrack()},r.render=function(){return hx(p5(),this._trackLabel)},v(t,[{key:"_trackLabel",get:function(){return dr(this,p4)[p4]},set:function(e){dr(this,p4)[p4]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(p3,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(p3,this._onTrackChange))}}]),t}(rJ=e.RadioButton);function p7(){var e=a(["<slot>Off</slot>"]);return p7=function(){return e},e}r1=(r3=(r5=o(p8,[[rX,1,"_trackLabel"],[r0,4,"track"]],[rY],rJ)).e)[0],r2=r3[1],e.TextTrackRadioButton=(r4=r5.c)[0],(0,r4[1])();var p6=["change"];r8=hV("theoplayer-text-track-off-radio-button"),r6=hQ({reflect:!1,attribute:!1}),e.TextTrackOffRadioButton=void 0;var p9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._trackList=void r9(t),t._onTrackChange=function(){t._updateFromTrackList()},t}i(t,e);var r=t.prototype;return r._updateFromTrackList=function(){this.checked=!this._trackList||!this._trackList.some(function(e){return pQ(e)&&"showing"===e.mode})},r._updateTrackList=function(){this._trackList&&this.checked&&function(e){for(var t,r=dM(e);!(t=r()).done;){var n=t.value;pG(n)&&"showing"===n.mode&&(n.mode="disabled")}}(this._trackList)},r.handleChange=function(){this._updateTrackList()},r.render=function(){return hx(p7())},v(t,[{key:"trackList",get:function(){return this._trackList},set:function(e){this._trackList&&this._trackList.removeEventListener(p6,this._onTrackChange),this._trackList=e,this._updateFromTrackList(),e&&e.addEventListener(p6,this._onTrackChange)}}]),t}(r7=e.RadioButton);function ye(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}[part=audio],[part=subtitles],theoplayer-track-radio-group{display:-webkit-box;display:-ms-flexbox;display:flex;min-height:0}[part=content]{-ms-grid-columns:1fr;display:-ms-grid;display:grid;grid-template-columns:1fr;min-height:0}:host([has-audio][has-subtitles]) [part=content]{-ms-grid-columns:1fr 10px 1fr;grid-template-columns:1fr 10px 1fr}:host([has-audio][has-subtitles]) [part=audio]{-ms-grid-column:1;grid-column:1}:host([has-audio][has-subtitles]) [part=subtitles]{-ms-grid-column:3;grid-column:3}:host(:not([has-audio])) [part=audio],:host(:not([has-subtitles])) [part=subtitles]{display:none!important}[part=audio],[part=subtitles]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-orient:vertical;-webkit-box-direction:normal;align-self:stretch;-ms-flex-direction:column;flex-direction:column;text-align:center}h2{margin:0 0 .5em}theoplayer-track-radio-group{overflow-y:auto}"]);return ye=function(){return e},e}r9=(ne=o(p9,[[r6,4,"trackList"]],[r8],r7)).e[0],e.TextTrackOffRadioButton=(nt=ne.c)[0],(0,nt[1])();var yt=cK(ye());function yr(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}"]);return yr=function(){return e},e}var yn=cK(yr());function yi(){var e=a(["table{border-collapse:collapse;table-layout:auto}table,table td,table tr{margin:0;padding:0}table td>*{font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px)}table td:first-child{white-space:nowrap;width:0}table td:last-child{text-align:center}table td>theoplayer-menu-button{display:-webkit-box;display:-ms-flexbox;display:flex}"]);return yi=function(){return e},e}var ya=cK(yi());function yo(e){var t,r;return e?dV(e,"rgb")?(t=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([0-9.]+))?\)$/i))?{r_:parseInt(t[1],10),g_:parseInt(t[2],10),b_:parseInt(t[3],10),a_:t[4]?parseFloat(t[4]):1}:null:dV(e,"#")?(r=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?{r_:parseInt(r[1],16),g_:parseInt(r[2],16),b_:parseInt(r[3],16),a_:1}:null:null:null}function yl(e){return"rgba("+e.r_+","+e.g_+","+e.b_+","+e.a_+")"}function ys(e){return"rgb("+e.r_+","+e.g_+","+e.b_+")"}function yu(e,t){return{r_:e.r_,g_:e.g_,b_:e.b_,a_:t}}var yc=yo("#ffffff"),yh=yo("#000000"),yd=[["White","rgb(255,255,255)"],["Yellow","rgb(255,255,0)"],["Green","rgb(0,255,0)"],["Cyan","rgb(0,255,255)"],["Blue","rgb(0,0,255)"],["Magenta","rgb(255,0,255)"],["Red","rgb(255,0,0)"],["Black","rgb(0,0,0)"]],yp=[["Monospace Serif",'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'],["Proportional Serif",'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'],["Monospace Sans",'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'],["Proportional Sans",'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif']],yy=[["None","none"],["Drop shadow","dropshadow"],["Raised","raised"],["Depressed","depressed"],["Uniform","uniform"]];function yf(){var e=a(["<span>","</span>"]);return yf=function(){return e},e}nr=hV("theoplayer-text-track-style-display"),nn=dX(["player"]),ni=hQ({reflect:!0,type:String,attribute:h3.PROPERTY}),na=hQ({reflect:!1,attribute:!1}),e.TextTrackStyleDisplay=void 0;var yv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,no(t),t._property="fontColor",t._updateFromPlayer=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.render=function(){return hx(yf(),this.renderValue())},r.renderValue=function(){if(void 0===this._player)return"";var e=this.property;switch(e){case"fontFamily":var t=this._player.textTrackStyle.fontFamily;if(!t)return"Default";var r=dj(yp,function(e){return e[0],e[1]===t});return r?r[0]:"Custom";case"fontColor":case"backgroundColor":case"windowColor":return function(e){if(!e)return"Default";var t=yo(e);if(t){var r=ys(t),n=dj(yd,function(e){return e[0],e[1]===r});if(n)return n[0]}return"Custom"}(this._player.textTrackStyle[e]);case"fontOpacity":return y_(this._player.textTrackStyle.fontColor);case"backgroundOpacity":return y_(this._player.textTrackStyle.backgroundColor);case"windowOpacity":return y_(this._player.textTrackStyle.windowColor);case"edgeStyle":var n=this._player.textTrackStyle.edgeStyle;if(!n)return"Default";var i=dj(yy,function(e){return e[0],e[1]===n});return i?i[0]:"Custom";default:return this._player.textTrackStyle[e]||"Default"}},v(t,[{key:"property",get:function(){return this._property},set:function(e){this._property=e,this._updateFromPlayer()}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),t}(hj);function y_(e){if(!e)return"Default";var t=yo(e);return t?""+100*t.a_+"%":"Custom"}function ym(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return ym=function(){return e},e}function yb(e,t,r){var n,i,a,o=null!=(n=null==(i=yo(t))?void 0:i.a_)?n:1;if(""!==e||1!==o)return yl(yu(null!=(a=yo(e))?a:r,o))}function yg(e,t,r){var n,i=null!=(n=yo(t))?n:r;if(""!==e||i.r_!==r.r_||i.g_!==r.g_||i.b_!==r.b_)return yl(yu(i,""==e?1:Number(e)/100))}function yk(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yk=function(){return e},e}function yw(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yw=function(){return e},e}function yx(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yx=function(){return e},e}function yE(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yE=function(){return e},e}function yT(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yT=function(){return e},e}function yA(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yA=function(){return e},e}function yC(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yC=function(){return e},e}function yL(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yL=function(){return e},e}function yS(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yS=function(){return e},e}function yR(){var e=a(['<theoplayer-menu class="theoplayer-text-track-style-menu"><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">Subtitle options</slot></span><theoplayer-text-track-style-reset-button class="theoplayer-menu-heading-button" slot="heading"></theoplayer-text-track-style-reset-button><table><tr><td><span>Font family</span></td><td><theoplayer-menu-button menu="font-family-menu"><theoplayer-text-track-style-display property="fontFamily"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Font color</span></td><td><theoplayer-menu-button menu="font-color-menu"><theoplayer-text-track-style-display property="fontColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Font opacity</span></td><td><theoplayer-menu-button menu="font-opacity-menu"><theoplayer-text-track-style-display property="fontOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Font size</span></td><td><theoplayer-menu-button menu="font-size-menu"><theoplayer-text-track-style-display property="fontSize"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Background color</span></td><td><theoplayer-menu-button menu="background-color-menu"><theoplayer-text-track-style-display property="backgroundColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Background opacity</span></td><td><theoplayer-menu-button menu="background-opacity-menu"><theoplayer-text-track-style-display property="backgroundOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Window color</span></td><td><theoplayer-menu-button menu="window-color-menu"><theoplayer-text-track-style-display property="windowColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Window opacity</span></td><td><theoplayer-menu-button menu="window-opacity-menu"><theoplayer-text-track-style-display property="windowOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Character edge style</span></td><td><theoplayer-menu-button menu="edge-style-menu"><theoplayer-text-track-style-display property="edgeStyle"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="font-family-menu" menu-close-on-input hidden><span slot="heading">Font family</span><theoplayer-text-track-style-radio-group property="fontFamily">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-color-menu" menu-close-on-input hidden><span slot="heading">Font color</span><theoplayer-text-track-style-radio-group property="fontColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-opacity-menu" menu-close-on-input hidden><span slot="heading">Font opacity</span><theoplayer-text-track-style-radio-group property="fontOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-size-menu" menu-close-on-input hidden><span slot="heading">Font size</span><theoplayer-text-track-style-radio-group property="fontSize">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-color-menu" menu-close-on-input hidden><span slot="heading">Background color</span><theoplayer-text-track-style-radio-group property="backgroundColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-opacity-menu" menu-close-on-input hidden><span slot="heading">Background opacity</span><theoplayer-text-track-style-radio-group property="backgroundOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-color-menu" menu-close-on-input hidden><span slot="heading">Window color</span><theoplayer-text-track-style-radio-group property="windowColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-opacity-menu" menu-close-on-input hidden><span slot="heading">Window opacity</span><theoplayer-text-track-style-radio-group property="windowOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="edge-style-menu" menu-close-on-input hidden><span slot="heading">Character edge style</span><theoplayer-text-track-style-radio-group property="edgeStyle">',"</theoplayer-text-track-style-radio-group></theoplayer-menu>"]);return yR=function(){return e},e}no=(nl=o(yv,[[ni,4,"property"],[na,4,"player"]],[nr,nn],hj)).e[0],e.TextTrackStyleDisplay=(ns=nl.c)[0],(0,ns[1])(),nh=hV("theoplayer-text-track-style-radio-group"),nd=dX(["player"]),ny=hQ({reflect:!0,type:String,attribute:h3.PROPERTY}),nf=hQ({reflect:!1,attribute:!1}),nv=hQ({reflect:!1,attribute:!1}),e.TextTrackStyleRadioGroup=void 0,new(nc=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pH],np(),t}return i(t,e),t}(l),nu=function(t){function r(){var e;return e=t.apply(this,arguments)||this,n_(e),e._radioGroupRef=dk(),e._property="fontColor",e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=t.value)},e._updateFromPlayer=function(){if(void 0!==e._player)switch(e.property){case"fontColor":var t,r,n=e._player.textTrackStyle.fontColor;e.value=n?ys(null!=(r=yo(n))?r:yc):"";break;case"backgroundColor":var i,a=e._player.textTrackStyle.backgroundColor;e.value=a?ys(null!=(i=yo(a))?i:yh):"";break;case"windowColor":var o,l=e._player.textTrackStyle.windowColor;e.value=l?ys(null!=(o=yo(l))?o:yh):"";break;case"fontOpacity":var s,u,c=e._player.textTrackStyle.fontColor;e.value=c?String((null!=(s=null==(u=yo(c))?void 0:u.a_)?s:1)*100):"";break;case"backgroundOpacity":var h,d,p=e._player.textTrackStyle.backgroundColor;e.value=p?String((null!=(h=null==(d=yo(p))?void 0:d.a_)?h:1)*100):"";break;case"windowOpacity":var y,f,v=e._player.textTrackStyle.windowColor;e.value=v?String((null!=(y=null==(f=yo(v))?void 0:f.a_)?y:1)*100):"";break;default:e.value=null!=(t=e._player.textTrackStyle[e.property])?t:""}},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;E(t,e.RadioGroup)||customElements.upgrade(t),t.value=this.value},n._updateToPlayer=function(){if(void 0!==this._player)switch(this.property){case"fontColor":this._player.textTrackStyle.fontColor=yb(this.value,this._player.textTrackStyle.fontColor,yc);break;case"backgroundColor":this._player.textTrackStyle.backgroundColor=yb(this.value,this._player.textTrackStyle.backgroundColor,yh);break;case"windowColor":this._player.textTrackStyle.windowColor=yb(this.value,this._player.textTrackStyle.windowColor,yh);break;case"fontOpacity":this._player.textTrackStyle.fontColor=yg(this.value,this._player.textTrackStyle.fontColor,yc);break;case"backgroundOpacity":this._player.textTrackStyle.backgroundColor=yg(this.value,this._player.textTrackStyle.backgroundColor,yh);break;case"windowOpacity":this._player.textTrackStyle.windowColor=yg(this.value,this._player.textTrackStyle.windowColor,yh);break;default:this._player.textTrackStyle[this.property]=""==this.value?void 0:this.value}},n.render=function(){return hx(ym(),dE(this._radioGroupRef),this._onChange)},v(r,[{key:"property",get:function(){return this._property},set:function(e){this._property!==e&&(this._property=e,this._updateFromPlayer())}},{key:"value",get:function(){return this._value},set:function(e){if(this._value!==e){this._value=e,this._updateToPlayer();var t=this._radioGroupRef.value;t&&(t.value=e),this.dispatchEvent(ph("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),r}(hj),n_=(nm=o(nu,[[ny,4,"property"],[nf,4,"value"],[nv,4,"player"]],[nh,nd],hj)).e[0],e.TextTrackStyleRadioGroup=(nb=nm.c)[0],np=nb[1],nc);var yP=[{label:"Default",value:""},{label:"White",value:"rgb(255,255,255)"},{label:"Yellow",value:"rgb(255,255,0)"},{label:"Green",value:"rgb(0,255,0)"},{label:"Cyan",value:"rgb(0,255,255)"},{label:"Blue",value:"rgb(0,0,255)"},{label:"Magenta",value:"rgb(255,0,255)"},{label:"Red",value:"rgb(255,0,0)"},{label:"Black",value:"rgb(0,0,0)"}],yO=[{label:"Default",value:""},{label:"Monospace Serif",value:'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'},{label:"Proportional Serif",value:'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'},{label:"Monospace Sans",value:'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'},{label:"Proportional Sans",value:'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}],yM=[{label:"Default",value:""},{label:"50%",value:"50%"},{label:"75%",value:"75%"},{label:"100%",value:"100%"},{label:"150%",value:"150%"},{label:"200%",value:"200%"}],yB=[{label:"Default",value:""},{label:"25%",value:"25"},{label:"50%",value:"50"},{label:"75%",value:"75"},{label:"100%",value:"100"}],yI=[{label:"Default",value:""},{label:"None",value:"none"},{label:"Drop shadow",value:"dropshadow"},{label:"Raised",value:"raised"},{label:"Depressed",value:"depressed"},{label:"Uniform",value:"uniform"}];function yN(){var e=a(['<theoplayer-menu><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">Language</slot></span><theoplayer-settings-menu-button class="theoplayer-menu-heading-button" menu="subtitle-options-menu" slot="heading"></theoplayer-settings-menu-button><div part="content"><div part="audio"><h2>Audio</h2><theoplayer-track-radio-group track-type="audio"></theoplayer-track-radio-group></div><div part="subtitles"><h2>Subtitles</h2><theoplayer-track-radio-group track-type="subtitles" show-off></theoplayer-track-radio-group></div></div></theoplayer-menu><theoplayer-text-track-style-menu id="subtitle-options-menu"></theoplayer-text-track-style-menu>']);return yN=function(){return e},e}nw=hV("theoplayer-text-track-style-menu"),e.TextTrackStyleMenu=void 0,new(nk=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[ya,yn]),nx(),r}return i(r,t),r}(l),ng=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hx(yR(),yO.map(function(e){var t=e.label,r=e.value;return hx(yk(),r,t)}),yP.map(function(e){var t=e.label,r=e.value;return hx(yw(),r,t)}),yB.map(function(e){var t=e.label,r=e.value;return hx(yx(),r,t)}),yM.map(function(e){var t=e.label,r=e.value;return hx(yE(),r,t)}),yP.map(function(e){var t=e.label,r=e.value;return hx(yT(),r,t)}),yB.map(function(e){var t=e.label,r=e.value;return hx(yA(),r,t)}),yP.map(function(e){var t=e.label,r=e.value;return hx(yC(),r,t)}),yB.map(function(e){var t=e.label,r=e.value;return hx(yL(),r,t)}),yI.map(function(e){var t=e.label,r=e.value;return hx(yS(),r,t)}))},t}(nE=e.MenuGroup),e.TextTrackStyleMenu=(nT=o(ng,[],[nw],nE).c)[0],nx=nT[1],nk);var y$=["addtrack","removetrack"];function yD(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return yD=function(){return e},e}nR=hV("theoplayer-language-menu"),nP=dX(["player"]),nB=hQ({state:!0}),nI=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.HAS_AUDIO}),nN=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.HAS_SUBTITLES}),e.LanguageMenu=void 0,new(nS=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[yt]),nO(),r}return i(r,t),r}(l),nA=di("____private__hasAudioTracks_1"),nC=di("____private__hasSubtitles_2"),nL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,nA,{writable:!0,value:void 0}),Object.defineProperty(t,nC,{writable:!0,value:void 0}),dr(t,nA)[nA]=(nq(t),n$(t,!1)),dr(t,nC)[nC]=nD(t,!1),t._updateAudioTracks=function(){var e,r,n=null!=(e=null==(r=t._player)?void 0:r.audioTracks)?e:[];t._hasAudioTracks=n.length>1},t._updateTextTracks=function(){var e,r,n=null!=(e=null==(r=t._player)?void 0:r.textTracks.filter(pQ))?e:[];t._hasSubtitles=n.length>0},t}return i(t,e),t.prototype.render=function(){return hx(yN())},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(y$,this._updateAudioTracks),null==(r=this._textTrackList)||r.removeEventListener(y$,this._updateTextTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateAudioTracks(),this._updateTextTracks(),null==(n=this._audioTrackList)||n.addEventListener(y$,this._updateAudioTracks),null==(i=this._textTrackList)||i.addEventListener(y$,this._updateTextTracks))}},{key:"_hasAudioTracks",get:function(){return dr(this,nA)[nA]},set:function(e){dr(this,nA)[nA]=e}},{key:"_hasSubtitles",get:function(){return dr(this,nC)[nC]},set:function(e){dr(this,nC)[nC]=e}}]),t}(nM=e.MenuGroup),n$=(nU=(nF=o(nL,[[nB,4,"player"],[nI,1,"_hasAudioTracks"],[nN,1,"_hasSubtitles"]],[nR,nP],nM)).e)[0],nD=nU[1],nq=nU[2],e.LanguageMenu=(nj=nF.c)[0],nO=nj[1],nS);var yq=["addtrack","removetrack"];nz=hV("theoplayer-language-menu-button"),nV=dX(["player"]),nG=hQ({reflect:!1,attribute:!1}),e.LanguageMenuButton=void 0;var yF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nQ(t),t._updateTracks=function(){var e=void 0!==t._player&&(t._player.audioTracks.length>=2||t._player.textTracks.some(pQ));dG(t,h3.HIDDEN,!e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(h3.ARIA_LABEL)||this.setAttribute(h3.ARIA_LABEL,"open language menu")},r.render=function(){return hx(yD(),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.469 15.446a6.892 6.892 310 1 0-4.772 3.342l2.872.986q1.9.626 1.9-1.374v-2.954l2.598 1.5V22q0 2-1.899 1.374l-4.95-1.632a9.892 9.892 310 1 1 6.849-4.796zM7 10a1 1 180 1 0 0 2 1 1 180 1 0 0-2zm4 0a1 1 180 1 0 0 2h5a1 1 180 1 0 0-2zm-3 4a1 1 180 1 0 0 2h3a1 1 180 1 0 0-2zm7 0a1 1 180 1 0 0 2 1 1 180 1 0 0-2z"/></svg>\n'))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(yq,this._updateTracks),null==(r=this._textTrackList)||r.removeEventListener(yq,this._updateTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateTracks(),null==(n=this._audioTrackList)||n.addEventListener(yq,this._updateTracks),null==(i=this._textTrackList)||i.addEventListener(yq,this._updateTracks))}}]),t}(nH=e.MenuButton);function yU(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return yU=function(){return e},e}function yj(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return yj=function(){return e},e}nQ=(nW=o(yF,[[nG,4,"player"]],[nz,nV],nH)).e[0],e.LanguageMenuButton=(nK=nW.c)[0],(0,nK[1])(),nJ=hV("theoplayer-playback-rate-radio-group"),nX=dX(["player"]),n1=hW(),n2=hW(),e.PlaybackRateRadioGroup=void 0,new(nY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pH],n0(),t}return i(t,e),t}(l),nZ=function(t){function r(){var e;return e=t.apply(this,arguments)||this,n5(e),e._radioGroupRef=dk(),e._value=1,e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=Number(t.value))},e._updateFromPlayer=function(){void 0!==e._player&&(e.value=e._player.playbackRate)},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;E(t,e.RadioGroup)||customElements.upgrade(t),t.value=String(this.value)},n.render=function(){return hx(yU(),dE(this._radioGroupRef),this._onChange)},v(r,[{key:"value",get:function(){return this._value},set:function(e){if(e=Number(e),this._value!==e){this._value=e,void 0!==this._player&&this._player.playbackRate!==e&&(this._player.playbackRate=e);var t=this._radioGroupRef.value;t&&(t.value=String(e)),this.dispatchEvent(ph("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("ratechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("ratechange",this._updateFromPlayer))}}]),r}(hj),n5=(n3=o(nZ,[[n1,4,"value"],[n2,4,"player"]],[nJ,nX],hj)).e[0],e.PlaybackRateRadioGroup=(n4=n3.c)[0],n0=n4[1],nY),n8=hV("theoplayer-playback-rate-menu-button"),e.PlaybackRateMenuButton=void 0;var yz=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(h3.ARIA_LABEL)||this.setAttribute(h3.ARIA_LABEL,"open playback speed menu")},r.render=function(){return hx(yj(),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 96 960 960" height="24" width="24"><path d="M418 716q24 24 61.435 23.5T536 712l171.826-250.174q12.392-19.087-1.652-32.283-14.044-13.195-33.131-.804L424 600q-27 19.13-28.5 55.565T418 716ZM204 915.218q-25.522 0-49.609-12.826-24.087-12.826-36.783-34.783-26.565-46.696-41.696-100.022Q60.782 714.261 60.782 656q0-86.391 32.913-162.566 32.913-76.174 89.956-133.217 57.044-57.044 133.436-90.24Q393.478 236.782 480 236.782q43.87 0 85.87 8.934 42 8.935 81 26.239 28.913 12.696 33.826 38.762 4.913 26.065-13.044 48.153-10.261 12.391-28.217 15.521-17.957 3.131-32.914-3.565-31.434-14.869-62.043-21.456-30.608-6.587-64.478-6.587-129.043 0-221.13 91.522Q166.783 525.826 166.783 656q0 42 10.935 79.891 10.934 37.891 30.804 73.326h542.956q23-38 32.37-75.608Q793.217 696 793.217 652q0-31.609-6.804-62.565-6.804-30.956-20.543-60.826-7.566-16.957-3.718-35.196 3.848-18.239 17.674-29.5 21.653-18.522 47.153-10.261t36.761 35.609q16.305 38 25.457 78.217 9.152 40.218 10.021 82.522 0 58.696-14.348 113.522-14.347 54.826-42.478 104.087-14.391 23.087-37.631 35.348-23.239 12.261-48.761 12.261H204ZM480 576Z"/></svg>\n'))},t}(n7=e.MenuButton);function yV(){var e=a(['<span slot="heading"><slot name="heading">Playback speed</slot></span>']);return yV=function(){return e},e}function yH(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yH=function(){return e},e}function yG(){var e=a(["<theoplayer-playback-rate-radio-group>","</theoplayer-playback-rate-radio-group>"]);return yG=function(){return e},e}e.PlaybackRateMenuButton=(n6=o(yz,[],[n8],n7).c)[0],(0,n6[1])();var yQ=[.25,.5,1,1.25,1.5,2];n9=hV("theoplayer-playback-rate-menu"),e.PlaybackRateMenu=void 0;var yW=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.renderMenuHeading=function(){return hx(yV())},r.renderMenuContent=function(){return hx(yG(),yQ.map(function(e){return hx(yH(),e,1===e?"Normal":""+e+"x")}))},t}(ie=e.Menu);function yK(){var e=a(["<span>","</span>"]);return yK=function(){return e},e}e.PlaybackRateMenu=(it=o(yW,[],[n9],ie).c)[0],(0,it[1])(),ir=hV("theoplayer-playback-rate-display"),ii=dX(["playbackRate"]),ia=hW(),e.PlaybackRateDisplay=void 0;var yZ=di("____private_playbackRate_1"),yY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yZ,{writable:!0,value:void 0}),dr(t,yZ)[yZ]=(il(t),io(t,1)),t}return i(t,e),t.prototype.render=function(){return hx(yK(),1===this.playbackRate?"Normal":""+this.playbackRate+"x")},v(t,[{key:"playbackRate",get:function(){return dr(this,yZ)[yZ]},set:function(e){dr(this,yZ)[yZ]=e}}]),t}(hj);function yJ(){var e=a(["<span>","</span>"]);return yJ=function(){return e},e}io=(iu=(is=o(yY,[[ia,1,"playbackRate"]],[ir,ii],hj)).e)[0],il=iu[1],e.PlaybackRateDisplay=(ic=is.c)[0],(0,ic[1])(),ih=hV("theoplayer-active-quality-display"),id=dX(["activeVideoQuality","targetVideoQualities"]),ip=hQ({reflect:!1,attribute:!1}),iy=hQ({reflect:!1,attribute:!1}),e.ActiveQualityDisplay=void 0;var yX=di("____private_activeVideoQuality_1"),y0=di("____private_targetVideoQualities_2"),y1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yX,{writable:!0,value:void 0}),Object.defineProperty(t,y0,{writable:!0,value:void 0}),dr(t,yX)[yX]=(im(t),iv(t,void 0)),dr(t,y0)[y0]=i_(t,void 0),t}return i(t,e),t.prototype.render=function(){var e,t=void 0!==this.targetVideoQualities&&1===this.targetVideoQualities.length,r=t?this.targetVideoQualities[0]:void 0,n=pK(null!=r?r:this.activeVideoQuality);return e=t?null!=n?n:"Unknown":"Automatic"+(n?" ("+n+")":""),hx(yJ(),e)},v(t,[{key:"activeVideoQuality",get:function(){return dr(this,yX)[yX]},set:function(e){dr(this,yX)[yX]=e}},{key:"targetVideoQualities",get:function(){return dr(this,y0)[y0]},set:function(e){dr(this,y0)[y0]=e}}]),t}(hj);function y2(){var e=a(["<slot>","</slot>"]);return y2=function(){return e},e}iv=(ig=(ib=o(y1,[[ip,1,"activeVideoQuality"],[iy,1,"targetVideoQualities"]],[ih,id],hj)).e)[0],i_=ig[1],im=ig[2],e.ActiveQualityDisplay=(ik=ib.c)[0],(0,ik[1])();var y5=["activequalitychanged","targetqualitychanged"],y3=["update"];iw=hV("theoplayer-quality-radio-button"),iE=hW(),iT=hQ({reflect:!1,attribute:!1}),iA=hQ({reflect:!1,attribute:!1}),e.QualityRadioButton=void 0;var y4=di("____private__qualityLabel_1"),y8=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,y4,{writable:!0,value:void 0}),t._track=void iL(t),t._quality=void 0,dr(t,y4)[y4]=iC(t,""),t._updateFromTrack=function(){if(void 0!==t._track){var e=t._track.targetQuality;Array.isArray(e)&&(e=1===e.length?e[0]:void 0),void 0===t._quality?t.checked=void 0===e:t.checked=e===t._quality}t._updateFromQuality()},t._updateFromQuality=function(){var e;t._qualityLabel=null!=(e=pK(t._quality))?e:"Automatic"},t}i(t,e);var r=t.prototype;return r.handleChange=function(){this._updateTargetQuality()},r._updateTargetQuality=function(){this._track&&this.checked&&(this._track.targetQuality=this._quality)},r.render=function(){return hx(y2(),this._qualityLabel)},v(t,[{key:"_qualityLabel",get:function(){return dr(this,y4)[y4]},set:function(e){dr(this,y4)[y4]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(y5,this._updateFromTrack),this._track=e,this._updateFromTrack(),e&&e.addEventListener(y5,this._updateFromTrack))}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality!==e&&(this._quality&&this._quality.removeEventListener(y3,this._updateFromQuality),this._quality=e,this._updateFromTrack(),e&&e.addEventListener(y3,this._updateFromQuality))}}]),t}(ix=e.RadioButton);function y7(){var e=a(['<theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>']);return y7=function(){return e},e}function y6(){var e=a(['<theoplayer-radio-group @change="','"><theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>',"</theoplayer-radio-group>"]);return y6=function(){return e},e}iC=(iR=(iS=o(y8,[[iE,1,"_qualityLabel"],[iT,4,"track"],[iA,4,"quality"]],[iw],ix)).e)[0],iL=iR[1],e.QualityRadioButton=(iP=iS.c)[0],(0,iP[1])();var y9=["addtrack","removetrack","change"];function fe(){var e=a(["<slot>Reset</slot>"]);return fe=function(){return e},e}iI=hV("theoplayer-quality-radio-group"),iN=dX(["player"]),iD=hW(),iq=hW(),e.QualityRadioGroup=void 0,new(iB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pH],i$(),t}return i(t,e),t}(l),iO=di("____private__track_1"),iM=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,iO,{writable:!0,value:void 0}),dr(t,iO)[iO]=(iU(t),iF(t)),t._onChange=function(){t.dispatchEvent(ph("change",{bubbles:!0}))},t._updateTrack=function(){var e,r,n=t._player?dj(t._player.videoTracks,function(e){return e.enabled}):void 0;t._track!==n&&(null==(e=t._track)||e.removeEventListener("update",t._update),t._track=n,null==(r=t._track)||r.addEventListener("update",t._update),t._update())},t._update=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.firstUpdated=function(){this._updateTrack()},r.render=function(){var e=this,t=this._track?this._track.qualities:[];return hx(y6(),this._onChange,this._track,void 0,1!==t.length&&pY(t,function(e){return e.uid},function(t){return hx(y7(),e._track,t)}))},v(t,[{key:"_track",get:function(){return dr(this,iO)[iO]},set:function(e){dr(this,iO)[iO]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._videoTracks)||t.removeEventListener(y9,this._updateTrack),this._player=e,this._videoTracks=null==e?void 0:e.videoTracks,this._updateTrack(),null==(r=this._videoTracks)||r.addEventListener(y9,this._updateTrack))}}]),t}(hj),iF=(iz=(ij=o(iM,[[iD,1,"_track"],[iq,4,"player"]],[iI,iN],hj)).e)[0],iU=iz[1],e.QualityRadioGroup=(iV=ij.c)[0],i$=iV[1],iB),iH=hV("theoplayer-text-track-style-reset-button"),iG=dX(["player"]),e.TextTrackStyleResetButton=void 0;var ft=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleClick=function(){if(void 0!==this._player){var e=this._player.textTrackStyle;e.fontFamily=void 0,e.fontColor=void 0,e.fontSize=void 0,e.backgroundColor=void 0,e.windowColor=void 0,e.edgeStyle=void 0}},r.render=function(){return hx(fe())},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(iQ=e.Button);function fr(){var e=a(['<theoplayer-menu><span slot="heading"><slot name="heading">Settings</slot></span><table><tr><td><span>Quality</span></td><td><theoplayer-menu-button menu="quality-menu"><theoplayer-active-quality-display></theoplayer-active-quality-display></theoplayer-menu-button></td></tr><tr><td><span>Playback speed</span></td><td><theoplayer-menu-button menu="playback-rate-menu"><theoplayer-playback-rate-display></theoplayer-playback-rate-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="quality-menu" menu-close-on-input hidden><span slot="heading">Quality</span><theoplayer-quality-radio-group></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-playback-rate-menu id="playback-rate-menu" menu-close-on-input hidden><span slot="heading">Playback speed</span></theoplayer-playback-rate-menu>']);return fr=function(){return e},e}e.TextTrackStyleResetButton=(iW=o(ft,[],[iH,iG],iQ).c)[0],(0,iW[1])(),iY=hV("theoplayer-settings-menu"),e.SettingsMenu=void 0,new(iZ=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[ya]),iJ(),r}return i(r,t),r}(l),iK=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hx(fr())},t}(iX=e.MenuGroup),e.SettingsMenu=(i0=o(iK,[],[iY],iX).c)[0],iJ=i0[1],iZ);var fn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M14 22.475h-4q-.475 0-.863-.337-.387-.338-.437-.813l-.3-2.2q-.2-.075-.4-.2t-.375-.25l-2.05.85q-.475.2-.937.05-.463-.15-.738-.6l-1.975-3.45q-.25-.45-.162-.95.087-.5.487-.775l1.775-1.35Q4 12.325 4 12.225v-.45q0-.1.025-.225L2.25 10.2q-.4-.3-.487-.8-.088-.5.162-.925L3.9 5.025q.25-.45.725-.588.475-.137.95.038l2.075.875q.175-.15.363-.263.187-.112.387-.187l.3-2.225q.05-.5.425-.825.375-.325.875-.325h4q.5 0 .875.325t.425.825l.3 2.225q.2.075.4.187.2.113.375.263l2.05-.875q.475-.175.938-.025.462.15.737.575l2 3.45q.25.45.15.95-.1.5-.5.775l-1.775 1.35v.675q0 .1-.025.225l1.775 1.35q.4.275.487.775.088.5-.162.95l-2 3.45q-.25.425-.725.587-.475.163-.95-.037l-2.025-.85q-.175.125-.362.25-.188.125-.388.2l-.3 2.2q-.05.475-.425.813-.375.337-.875.337ZM12 15.5q1.45 0 2.475-1.025Q15.5 13.45 15.5 12q0-1.45-1.025-2.475Q13.45 8.5 12 8.5q-1.45 0-2.475 1.025Q8.5 10.55 8.5 12q0 1.45 1.025 2.475Q10.55 15.5 12 15.5Z"/></svg>\n';function fi(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return fi=function(){return e},e}i1=hV("theoplayer-settings-menu-button"),e.SettingsMenuButton=void 0;var fa=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(h3.ARIA_LABEL)||this.setAttribute(h3.ARIA_LABEL,"open settings menu")},r.render=function(){return hx(fi(),dR(fn))},t}(i2=e.MenuButton);function fo(){var e=a([":host(:not([fullscreen])) [part=exit-icon],:host([fullscreen]) [part=enter-icon]{display:none!important}"]);return fo=function(){return e},e}e.SettingsMenuButton=(i5=o(fa,[],[i1],i2).c)[0],(0,i5[1])();var fl=cK(fo()),fs="theoplayerfullscreenenter",fu="theoplayerfullscreenexit";function fc(){var e=a(['<span part="enter-icon"><slot name="enter-icon">','</slot></span><span part="exit-icon"><slot name="exit-icon">',"</slot></span>"]);return fc=function(){return e},e}function fh(e,t){void 0!==window.ShadyCSS&&!1===window.ShadyCSS.nativeCss?window.ShadyCSS.styleSubtree(e,t):null!=t&&function(e,t){var r=e.style,n=!0,i=!1,a=void 0;try{for(var o,l=Object.entries(t)[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=b(o.value,2),u=s[0],c=s[1];r.setProperty(u,c)}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}(e,t)}function fd(){var e=a([":host{--thumb-height:var(--theoplayer-range-thumb-height,10px);--track-height:var(--theoplayer-range-track-height,4px);--theoplayer-range-padding:var(--theoplayer-control-padding,10px);background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-size:0;height:44px;height:calc(var(--theoplayer-control-height, 24px) + var(--theoplayer-range-padding)*2);padding-left:10px;padding-left:var(--theoplayer-range-padding-left,var(--theoplayer-range-padding));padding-right:10px;padding-right:var(--theoplayer-range-padding-right,var(--theoplayer-range-padding));pointer-events:auto;position:relative;-webkit-transition:background .15s linear;transition:background .15s linear;vertical-align:middle;width:100px}:host([hidden]){display:none!important}:host(:hover:not([disabled])){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}[part=container]{height:100%;position:relative}[part=background],[part=pointer]{border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);height:var(--track-height);position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%));transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%))}[part=background]{background:hsla(0,0%,100%,.2);background:var(--theoplayer-range-track-background,hsla(0,0%,100%,.2));min-width:40px;width:100%;width:var(--theoplayer-range-track-width,100%)}[part=pointer]{background:transparent;background:var(--theoplayer-range-track-pointer-background,transparent);border-right:none;border-right:var(--theoplayer-range-track-pointer-border-right,none);opacity:0;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden}:host(:hover:not([disabled])) [part=pointer]{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}input[type=range]{-webkit-appearance:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;min-height:100%;padding:0;position:relative;width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);-webkit-box-shadow:1px 1px 1px transparent;box-shadow:1px 1px 1px transparent;-webkit-box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);margin-top:calc(0px - var(--thumb-height)/2 + var(--track-height)/2);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);-webkit-transform:none;transform:none;-webkit-transform:var(--theoplayer-range-thumb-transform,none);transform:var(--theoplayer-range-thumb-transform,none);-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-moz-range-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);translate:0 0;translate:var(--theoplayer-range-track-translate-x,0) var(--theoplayer-range-track-translate-y,0);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-ms-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}:host([disabled]) input[type=range]::-webkit-slider-thumb{display:none}:host([disabled]) input[type=range]::-moz-range-thumb{display:none}:host([disabled]) input[type=range]::-ms-thumb{display:none}input[type=range]::-webkit-slider-runnable-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-range-track-box-shadow,none);box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);-webkit-transform:translate(0);transform:translate(0);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-moz-range-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-track{background:transparent;background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);color:transparent;cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper,input[type=range]::-ms-tooltip{display:none}:host([disabled]) input[type=range]::-webkit-slider-runnable-track{cursor:default}:host([disabled]) input[type=range]::-moz-range-track{cursor:default}:host([disabled]) input[type=range]::-ms-track{cursor:default}input[type=range]:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}input[type=range]:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}input[type=range]:focus::-webkit-slider-runnable-track{outline:0}"]);return fd=function(){return e},e}i7=hV("theoplayer-fullscreen-button"),i6=dX(["fullscreen"]),at=hQ({reflect:!0,type:Boolean,attribute:h3.FULLSCREEN}),e.FullscreenButton=void 0,new(i8=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[fl]),i9(),r}return i(r,t),r}(l),i3=di("____private_fullscreen_1"),i4=function(t){function r(){var e;return e=t.apply(this,arguments)||this,Object.defineProperty(e,i3,{writable:!0,value:void 0}),dr(e,i3)[i3]=(an(e),ar(e,!1)),e}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this._updateAriaLabel()},n.handleClick=function(){if(this.fullscreen){var e=pd(fu,{bubbles:!0,composed:!0});this.dispatchEvent(e)}else{var t=pd(fs,{bubbles:!0,composed:!0});this.dispatchEvent(t)}},n.attributeChangedCallback=function(r,n,i){t.prototype.attributeChangedCallback.call(this,r,n,i),e.FullscreenButton.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},n._updateAriaLabel=function(){var e=this.fullscreen?"exit fullscreen":"enter fullscreen";this.setAttribute(h3.ARIA_LABEL,e)},n.render=function(){return hx(fc(),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M5.9 19.225q-.475 0-.8-.325-.325-.325-.325-.8V15q0-.475.325-.812.325-.338.8-.338.5 0 .825.338.325.337.325.812v1.95H9q.475 0 .812.325.338.325.338.825 0 .475-.338.8-.337.325-.812.325Zm0-9.075q-.475 0-.8-.338-.325-.337-.325-.812V5.9q0-.475.325-.8.325-.325.8-.325H9q.475 0 .812.325.338.325.338.8 0 .5-.338.825-.337.325-.812.325H7.05V9q0 .475-.325.812-.325.338-.825.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8 0-.5.338-.825.337-.325.812-.325h1.95V15q0-.475.325-.812.325-.338.825-.338.475 0 .8.338.325.337.325.812v3.1q0 .475-.325.8-.325.325-.8.325Zm3.1-9.075q-.5 0-.825-.338-.325-.337-.325-.812V7.05H15q-.475 0-.812-.325-.338-.325-.338-.825 0-.475.338-.8.337-.325.812-.325h3.1q.475 0 .8.325.325.325.325.8V9q0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M9 19.225q-.475 0-.812-.325-.338-.325-.338-.8v-1.95H5.9q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.812.325-.338.8-.338H9q.475 0 .812.338.338.337.338.812v3.1q0 .475-.338.8-.337.325-.812.325ZM5.9 10.15q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.813.325-.337.8-.337h1.95V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .812.325.338.325.338.8V9q0 .475-.338.812-.337.338-.812.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8V15q0-.475.338-.812.337-.338.812-.338h3.1q.475 0 .8.338.325.337.325.812 0 .475-.325.812-.325.338-.8.338h-1.95v1.95q0 .475-.337.8-.338.325-.813.325Zm0-9.075q-.475 0-.812-.338-.338-.337-.338-.812V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .813.325.337.325.337.8v1.95h1.95q.475 0 .8.337.325.338.325.813 0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'))},v(r,[{key:"fullscreen",get:function(){return dr(this,i3)[i3]},set:function(e){dr(this,i3)[i3]=e}}]),r}(ae=e.Button),ar=(aa=(ai=o(i4,[[at,1,"fullscreen"]],[i7,i6],ae)).e)[0],an=aa[1],e.FullscreenButton=(ao=ai.c)[0],i9=ao[1],i8);var fp=cK(fd()),fy=function(){function e(){this._stops=[["transparent",100]]}var t=e.prototype;return t.add=function(e,t,r){if(!((t=Math.max(t,0))>=(r=Math.min(r,100)))){var n=dz(this._stops,function(e){var r=e[1];return t<=r});if(!(n<0)){var i=this._stops[n],a=i[0],o=i[1],l=[];if(t>0&&l.push([a,t]),l.push([e,r]),r<o)l.push([a,o]),(s=this._stops).splice.apply(s,[].concat([n,1],l));else{for(var s,u,c=n+1;c<this._stops.length&&!(r<this._stops[c][1]);)c++;(u=this._stops).splice.apply(u,[].concat([n,c-n],l))}}}},t.toGradientStops=function(){for(var e,t=[],r=0,n=dM(this._stops);!(e=n()).done;){var i=e.value,a=i[0],o=i[1];o<r||(t.push(a+" "+r+"%"),t.push(a+" "+o+"%"),r=o)}return t.join(", ")},e}(),ff="important",fv=" !"+ff,f_=hX(function(e){function t(e){var r,n;if(y(this,t),r=p(this,t,[e]),1!==e.type||"style"!==e.name||(null==(n=e.strings)?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return r}return i(t,e),v(t,[{key:"render",value:function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return null==n?t:t+((r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase())+":")+n+";"},"")}},{key:"update",value:function(e,t){var r=b(t,1)[0],n=e.element.style;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);var i=!0,a=!1,o=void 0;try{for(var l,s=this.ft[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var u=l.value;null==r[u]&&(this.ft.delete(u),u.includes("-")?n.removeProperty(u):n[u]=null)}}catch(e){a=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw o}}for(var c in r){var h=r[c];if(null!=h){this.ft.add(c);var d="string"==typeof h&&h.endsWith(fv);c.includes("-")||d?n.setProperty(c,d?h.slice(0,-11):h,d?ff:""):n[c]=h}}return hE}}]),t}(h0));function fm(){var e=a(['<div part="container"><div part="background"></div><div part="pointer" style="','"></div><input type="range" ',' .min="','" .max="','" .step="','" .valueAsNumber="','" .disabled="','" aria-label="','" aria-valuetext="','" aria-live="','" @input="','" @change="','" @keydown="','"> ',"</div>"]);return fm=function(){return e},e}function fb(){var e=a([""]);return fb=function(){return e},e}function fg(){var e=a(["input[type=range]{direction:ltr}.theoplayer-time-range-preview-rail{bottom:100%;left:0;opacity:0;pointer-events:none;position:absolute;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden;width:1%}:host(:hover:not([disabled])) .theoplayer-time-range-preview-rail{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}[part~=box]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));position:absolute;text-shadow:0 0 4px rgba(0,0,0,.75);text-shadow:var(--theoplayer-preview-text-shadow,0 0 4px rgba(0,0,0,.75));-webkit-transform:translateX(-50%);transform:translateX(-50%)}"]);return fg=function(){return e},e}ap=dX(["deviceType"]),af=hW(),av=hQ({reflect:!0,type:Boolean,attribute:h3.DISABLED}),a_=hQ({reflect:!0,type:Boolean,attribute:h3.HIDDEN}),am=hQ({reflect:!0,type:Boolean,attribute:h3.INERT}),ab=hQ({reflect:!1,attribute:!1}),ag=hW(),ak=hQ({reflect:!0,type:Number,attribute:"min"}),aw=hQ({reflect:!0,type:Number,attribute:"max"}),ax=hQ({reflect:!0,attribute:"step",converter:{fromAttribute:function(e){return null==e||"any"===e?"any":Number(e)}}}),aE=hQ({reflect:!0,type:String,attribute:h3.DEVICE_TYPE}),aT=hQ({reflect:!0,type:String,attribute:"aria-live"}),e.Range=void 0,new(ad=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fp],ay(),t}return i(t,e),t}(l),al=di("____private__pointerWidth_1"),as=di("____private_step_2"),au=di("____private_deviceType_3"),ac=di("____private_ariaLive_4"),ah=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,al,{writable:!0,value:void 0}),Object.defineProperty(t,as,{writable:!0,value:void 0}),Object.defineProperty(t,au,{writable:!0,value:void 0}),Object.defineProperty(t,ac,{writable:!0,value:void 0}),aR(t),t._rangeRef=dk(),t._min=0,t._max=100,t._value=0,t._disabled=!1,t._hidden=!1,t._inert=!1,t._rangeWidth=0,t._thumbWidth=10,dr(t,al)[al]=aA(t,0),dr(t,as)[as]=aC(t,"any"),dr(t,au)[au]=aL(t,"desktop"),dr(t,ac)[ac]=aS(t,null),t._onInput=function(e){t.value=e.target.valueAsNumber},t._updatePointerBar=function(e){var r=t._rangeRef.value;if(!t.disabled&&!t.inert&&r){var n=r.getBoundingClientRect(),i=(e.clientX-n.left)/n.width;i=Math.max(0,Math.min(1,i)),t.updatePointer_(i,n)}},t._onKeyDown=function(e){t.handleKeyDown_(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateRange(),this.addEventListener("pointermove",this._updatePointerBar)},r.disconnectedCallback=function(){this.removeEventListener("pointermove",this._updatePointerBar)},r.handleInput=function(){this._updateRange()},r._updateRange=function(e){this.hidden||(e||this.updateCachedWidths_(),this.updateBar_())},r.updateBar_=function(){fh(this,{"--theoplayer-range-track-progress-internal":"linear-gradient(to right, "+this.getBarColors().toGradientStops()+")"})},r.getBarColors=function(){var e=this.value,t=this.min,r=this.max,n=(e-t)/(r-t)*100;isNaN(n)&&(n=0);var i=0;t<e&&e<r&&(i=this._thumbWidth*(.5-n/100)/this._rangeWidth*100);var a=new fy;return a.add("var(--theoplayer-range-bar-color, #fff)",0,n+i),a},r.updateCachedWidths_=function(){var e,t,r=null!=(e=null==(t=this._rangeRef.value)?void 0:t.offsetWidth)?e:0;r>0&&(this._rangeWidth=r);var n=parseInt(getComputedStyle(this).getPropertyValue("--theoplayer-range-thumb-width")||"10px");n>0&&(this._thumbWidth=n)},r.getMinimumStepForVisibleChange_=function(){var e=this.min,t=this.max-e;return t<=0?NaN:t/this._rangeWidth},r.updatePointer_=function(e,t){this._pointerWidth=e*t.width},r.handleKeyDown_=function(e){"tv"===this.deviceType&&h8(e.keyCode)&&(e.keyCode===h4.LEFT||e.keyCode===h4.RIGHT?e.stopPropagation():(e.keyCode===h4.UP||e.keyCode===h4.DOWN)&&e.preventDefault())},r.render=function(){return hx(fm(),f_({width:""+this._pointerWidth+"px"}),dE(this._rangeRef),this.min,this.max,this.step,this.rawValue,this.disabled||this.inert,this.getAriaLabel(),this.getAriaValueText(),this.ariaLive,this._onInput,this._onInput,this._onKeyDown,this.renderRangeExtras())},r.renderRangeExtras=function(){return hx(fb())},v(t,[{key:"_pointerWidth",get:function(){return dr(this,al)[al]},set:function(e){dr(this,al)[al]=e}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled!==e&&(this._disabled=e,this.setAttribute("aria-disabled",this._disabled?"true":"false"))}},{key:"hidden",get:function(){return this._hidden},set:function(e){this._hidden!==e&&(this._hidden=e,this._updateRange())}},{key:"inert",get:function(){return this._inert},set:function(e){this._inert=e}},{key:"value",get:function(){return this.rawValue},set:function(e){var t=e;isNaN(this.min)||(t=Math.max(this.min,t)),isNaN(this.max)||(t=Math.min(this.max,t)),this.rawValue!==t&&(this.rawValue=t,this.handleInput())}},{key:"rawValue",get:function(){return this._value},set:function(e){this._value=e}},{key:"min",get:function(){return this._min},set:function(e){this._min=e,this._updateRange()}},{key:"max",get:function(){return this._max},set:function(e){this._max=e,this._updateRange()}},{key:"step",get:function(){return dr(this,as)[as]},set:function(e){dr(this,as)[as]=e}},{key:"deviceType",get:function(){return dr(this,au)[au]},set:function(e){dr(this,au)[au]=e}},{key:"ariaLive",get:function(){return dr(this,ac)[ac]},set:function(e){dr(this,ac)[ac]=e}}]),t}(hj),aA=(aO=(aP=o(ah,[[af,1,"_pointerWidth"],[av,4,"disabled"],[a_,4,"hidden"],[am,4,"inert"],[ab,4,"value"],[ag,4,"rawValue"],[ak,4,"min"],[aw,4,"max"],[ax,1,"step"],[aE,1,"deviceType"],[aT,1,"ariaLive"]],[ap],hj)).e)[0],aC=aO[1],aL=aO[2],aS=aO[3],aR=aO[4],e.Range=(aM=aP.c)[0],ay=aM[1],ad);var fk=cK(fg()),fw="theoplayerpreviewtimechange";function fx(e){return"linear"===e.type}function fE(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block}:host([hidden]){display:none!important}canvas{background:#fff;background:var(--theoplayer-preview-thumbnail-background,#fff);border-radius:2px;border-radius:var(--theoplayer-preview-thumbnail-padding,2px);display:none;padding:2px;padding:var(--theoplayer-preview-thumbnail-padding,2px)}"]);return fE=function(){return e},e}var fT=cK(fE());function fA(){var e=a(["<canvas ",' style="','"></canvas>']);return fA=function(){return e},e}var fC=["addtrack","removetrack"];function fL(e){return"metadata"===e.kind&&"thumbnails"===e.label}function fS(){var e=a(["<span>","</span>"]);return fS=function(){return e},e}a$=hV("theoplayer-preview-thumbnail"),aD=dX(["player","previewTime"]),aF=hW(),aU=hQ({reflect:!1,attribute:!1}),aj=hW(),e.PreviewThumbnail=void 0,new(aN=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fT],aq(),t}return i(t,e),t}(l),aB=di("____private__thumbnailVisible_1"),aI=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,aB,{writable:!0,value:void 0}),aV(t),t._canvasRef=dk(),t._previewTime=NaN,dr(t,aB)[aB]=az(t,!1),t._updateThumbnailTextTrack=function(){var e=t._thumbnailTextTrack,r=t._player?dj(t._player.textTracks,fL):void 0;e!==r&&(t._thumbnailTextTrack=r,t.updateThumbnail_())},t._thumbnailImageSource=document.createElement("img"),t._thumbnailImageSource.decoding="async",t}i(t,e);var r=t.prototype;return r.updateThumbnail_=function(){var e=this._thumbnailTextTrack;if(void 0===e)return void this.hideThumbnail_();"disabled"===e.mode&&(e.mode="hidden");var t=function(e,t){if(0!==e.length){for(var r,n=e[0],i=dM(e);!(r=i()).done;){var a=r.value;if(a.startTime<=t)n=a;else if(t>=a.endTime)break}return n}}(e.cues,this._previewTime);if(void 0===t)return void this.hideThumbnail_();var r=t.content.trim(),n=function(e){var t=e.match(/^(.+)#xywh=(\d+),(\d+),(\d+),(\d+)$/);if(t)return{url:t[1],x:+t[2],y:+t[3],w:+t[4],h:+t[5]}}(r),i=n?n.url:r;(i=new URL(i,e.src||location.href).href,this._lastLoadedThumbnailUrl!==i)?this.loadThumbnailImage_(i):this.showThumbnail_(n)},r.loadThumbnailImage_=function(e){var t=this;if(this._thumbnailImageSource.src!==e){var r=function(){t._lastLoadedThumbnailUrl=e,t.updateThumbnail_()};"function"==typeof this._thumbnailImageSource.decode?(this._thumbnailImageSource.src=e,this._thumbnailImageSource.decode().then(r,d$)):(this._thumbnailImageSource.onload=r,this._thumbnailImageSource.src="",this._thumbnailImageSource.src=e)}},r.showThumbnail_=function(e){var t,r=this._canvasRef.value;!r||(null!=this._canvasContext||(this._canvasContext=null!=(t=r.getContext("2d"))?t:void 0),this._canvasContext&&(e?(r.width=e.w,r.height=e.h,this._canvasContext.drawImage(this._thumbnailImageSource,e.x,e.y,e.w,e.h,0,0,e.w,e.h)):(r.width=this._thumbnailImageSource.naturalWidth,r.height=this._thumbnailImageSource.naturalHeight,this._canvasContext.drawImage(this._thumbnailImageSource,0,0)),this._thumbnailVisible=!0))},r.hideThumbnail_=function(){this._thumbnailVisible=!1},r.render=function(){var e={display:this._thumbnailVisible?"block":"none"};return hx(fA(),dE(this._canvasRef),f_(e))},v(t,[{key:"_thumbnailVisible",get:function(){return dr(this,aB)[aB]},set:function(e){dr(this,aB)[aB]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackList)||t.removeEventListener(fC,this._updateThumbnailTextTrack),this._player=e,this._textTrackList=null==e?void 0:e.textTracks,this._updateThumbnailTextTrack(),null==(r=this._textTrackList)||r.addEventListener(fC,this._updateThumbnailTextTrack))}},{key:"previewTime",get:function(){return this._previewTime},set:function(e){this._previewTime=e,this.updateThumbnail_()}}]),t}(hj),az=(aG=(aH=o(aI,[[aF,1,"_thumbnailVisible"],[aU,4,"player"],[aj,4,"previewTime"]],[a$,aD],hj)).e)[0],aV=aG[1],e.PreviewThumbnail=(aQ=aH.c)[0],aq=aQ[1],aN);var fR=["timeupdate","seeking","seeked","durationchange"];function fP(){var e=a(['<div class="theoplayer-time-range-preview-rail" style="','"><div part="box preview-box" ','><slot name="preview"><theoplayer-preview-thumbnail></theoplayer-preview-thumbnail><theoplayer-preview-time-display remaining-when-live></theoplayer-preview-time-display></slot></div></div>']);return fP=function(){return e},e}a1=hV("theoplayer-preview-time-display"),a2=dX(["player","previewTime","streamType"]),a3=hW(),a4=hQ({reflect:!0,type:Boolean,attribute:h3.REMAINING}),a8=hQ({reflect:!0,type:Boolean,attribute:h3.REMAINING_WHEN_LIVE}),a7=hQ({reflect:!0,type:String,attribute:h3.STREAM_TYPE}),a6=hQ({reflect:!1,attribute:!1}),a9=hW(),e.PreviewTimeDisplay=void 0,new(a0=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pt],a5(),t}return i(t,e),t}(l),aW=di("____private_previewTime_1"),aK=di("____private_remaining_2"),aZ=di("____private_remainingWhenLive_3"),aY=di("____private_streamType_4"),aJ=di("____private__endTime_5"),aX=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,aW,{writable:!0,value:void 0}),Object.defineProperty(t,aK,{writable:!0,value:void 0}),Object.defineProperty(t,aZ,{writable:!0,value:void 0}),Object.defineProperty(t,aY,{writable:!0,value:void 0}),Object.defineProperty(t,aJ,{writable:!0,value:void 0}),dr(t,aW)[aW]=(oa(t),oe(t,NaN)),dr(t,aK)[aK]=ot(t,!1),dr(t,aZ)[aZ]=or(t,!1),dr(t,aY)[aY]=on(t,"vod"),dr(t,aJ)[aJ]=oi(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.duration:NaN,n=null==(e=t._player)?void 0:e.seekable;t._endTime=isFinite(r)?r:n&&n.length>0?n.end(0):NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){var e=this.previewTime,t=this._endTime,r=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType;return r&&(e=-((t||0)-e)),hx(fS(),pn(e,t,r))},v(t,[{key:"previewTime",get:function(){return dr(this,aW)[aW]},set:function(e){dr(this,aW)[aW]=e}},{key:"remaining",get:function(){return dr(this,aK)[aK]},set:function(e){dr(this,aK)[aK]=e}},{key:"remainingWhenLive",get:function(){return dr(this,aZ)[aZ]},set:function(e){dr(this,aZ)[aZ]=e}},{key:"streamType",get:function(){return dr(this,aY)[aY]},set:function(e){dr(this,aY)[aY]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(fR,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(fR,this._updateFromPlayer))}},{key:"_endTime",get:function(){return dr(this,aJ)[aJ]},set:function(e){dr(this,aJ)[aJ]=e}}]),t}(hj),oe=(ol=(oo=o(aX,[[a3,1,"previewTime"],[a4,1,"remaining"],[a8,1,"remainingWhenLive"],[a7,1,"streamType"],[a6,4,"player"],[a9,1,"_endTime"]],[a1,a2],hj)).e)[0],ot=ol[1],or=ol[2],on=ol[3],oi=ol[4],oa=ol[5],e.PreviewTimeDisplay=(os=oo.c)[0],a5=os[1],a0);var fO=["timeupdate","durationchange","ratechange","seeking","seeked"],fM=["play","pause","ended","durationchange","readystatechange","error"],fB=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];od=hV("theoplayer-time-range"),op=dX(["player","streamType","deviceType"]),ov=hQ({reflect:!1,attribute:!1}),o_=hQ({reflect:!0,type:String,attribute:h3.STREAM_TYPE}),om=hQ({reflect:!0,type:Boolean,attribute:h3.SHOW_AD_MARKERS}),ob=hW(),e.TimeRange=void 0,new(oh=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Range.styles,[fk]),oy(),r}return i(r,t),r}(l),ou=di("____private__previewRailTransform_1"),oc=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,ou,{writable:!0,value:void 0}),ok(t),t._previewBoxEl=dk(),t._streamType="vod",t._showAdMarkers=!1,t._pausedWhileScrubbing=!1,t._autoAdvanceId=0,t._lastUpdateTime=0,t._lastCurrentTime=0,t._lastPlaybackRate=0,t._updateFromPlayer=function(){if(void 0!==t._player){t._lastUpdateTime=performance.now(),t._lastCurrentTime=t._player.currentTime,t._lastPlaybackRate=t._player.playbackRate;var e,r,n=t._player.seekable,i=t._lastCurrentTime;0!==n.length?(e=n.start(0),r=n.end(0)):(e=0,r=t._player.duration),isFinite(t._lastCurrentTime)||(i=t._player.duration===1/0?r:e),t.min=e,t.max=r,t.rawValue=i,t.updateDisabled_(n),t._updateRange()}},t._pauseOnScrubStart=function(){t._pausedWhileScrubbing||t.disabled||t.inert||void 0===t._player||t._player.paused||(t._pausedWhileScrubbing=!0,t._player.pause(),document.addEventListener("mouseup",t._playOnScrubEnd),document.addEventListener("pointerup",t._playOnScrubEnd),document.addEventListener("pointercancel",t._playOnScrubEnd))},t._playOnScrubEnd=function(){t._pausedWhileScrubbing&&(t._pausedWhileScrubbing=!1,document.removeEventListener("mouseup",t._playOnScrubEnd),document.removeEventListener("pointerup",t._playOnScrubEnd),document.removeEventListener("pointercancel",t._playOnScrubEnd),void 0!==t._player&&t._player.paused&&t._player.play())},t._toggleAutoAdvance=function(){t.shouldAutoAdvance_()?0===t._autoAdvanceId&&(t._updateFromPlayer(),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)):0!==t._autoAdvanceId&&(t._updateFromPlayer(),cancelAnimationFrame(t._autoAdvanceId),t._autoAdvanceId=0)},t._autoAdvanceWhilePlaying=function(){if(!t.shouldAutoAdvance_()){t._autoAdvanceId=0;return}var e=(performance.now()-t._lastUpdateTime)/1e3,r=t._lastCurrentTime+e*t._lastPlaybackRate;Math.abs(r-t.value)>=t.getMinimumStepForVisibleChange_()&&(t.rawValue=r,t._updateRange(!0)),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)},dr(t,ou)[ou]=og(t,""),t._onAdChange=function(){t._updateRange()},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("min")||(this.min=0),this.hasAttribute("max")||(this.max=1e3),this.hasAttribute(h3.ARIA_LIVE)||(this.ariaLive="off"),this._toggleAutoAdvance()},r.firstUpdated=function(e){var t,r;null==(t=this._rangeRef.value)||t.addEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.addEventListener("pointerdown",this._pauseOnScrubStart)},r.disconnectedCallback=function(){var t,r;e.prototype.disconnectedCallback.call(this),null==(t=this._rangeRef.value)||t.removeEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.removeEventListener("pointerdown",this._pauseOnScrubStart),this._toggleAutoAdvance()},r.updateDisabled_=function(e){void 0===e&&(e=null==(t=this._player)?void 0:t.seekable);var t,r="live"===this.streamType;void 0!==e&&(r||(r=0===e.length)),this.disabled=r},r.getAriaLabel=function(){return"seek"},r.getAriaValueText=function(){var e=po(this.value),t=po(this.max);return e&&t?e+" of "+t:"video not loaded, unknown time"},r.handleInput=function(){void 0!==this._player&&this._player.currentTime!==this.value&&(this._player.currentTime=this.value),e.prototype.handleInput.call(this)},r.shouldAutoAdvance_=function(){return this.isConnected&&void 0!==this._player&&!this._player.paused&&!this._player.ended&&!this._player.errorObject&&this._player.readyState>=3&&isFinite(this._lastCurrentTime)&&this.needToUpdateEveryFrame_()},r.needToUpdateEveryFrame_=function(){return this.getMinimumStepForVisibleChange_()<.25*this._lastPlaybackRate},r.updatePointer_=function(t,r){e.prototype.updatePointer_.call(this,t,r);var n=r.left+t*r.width,i=this._previewBoxEl.value;if(i){var a=i.getBoundingClientRect(),o=((n=Math.max(r.left+a.width/2,Math.min(r.right-a.width/2,n)))-r.left)/r.width;this._previewRailTransform="translateX("+(100*o*100).toFixed(6)+"%)"}if(void 0!==this._player){var l=this.min,s=pd(fw,{bubbles:!0,composed:!0,detail:{previewTime:l+t*(this.max-l)}});this.dispatchEvent(s)}},r.getBarColors=function(){var t=e.prototype.getBarColors.call(this);if(!this.showAdMarkers||!this._player||!this._player.ads||this._player.ads.playing)return t;for(var r,n=this.min,i=this.max,a=dM(this._player.ads.scheduledAdBreaks);!(r=a()).done;){var o=r.value;if(void 0===o.ads||!(o.ads.length>0)||o.ads.some(fx)){var l=o.timeOffset;if(l<0&&(l=this._player.duration),n<=l&&l<=i){var s=(l-n)/(i-n)*100,u=void 0,c=void 0;s+1<100?(u=s,c=s+1):(u=99,c=100),t.add("var(--theoplayer-time-range-ad-marker-color, #ffc50f)",u,c)}}}return t},r.handleKeyDown_=function(t){e.prototype.handleKeyDown_.call(this,t),"tv"===this.deviceType&&t.keyCode===h4.ENTER&&void 0!==this._player&&(this._player.paused?this._player.play():this._player.pause())},r.renderRangeExtras=function(){return hx(fP(),f_({transform:this._previewRailTransform}),dE(this._previewBoxEl))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(fO,this._updateFromPlayer),this._player.removeEventListener(fM,this._toggleAutoAdvance)),null==(t=this._ads)||t.removeEventListener(fB,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),this._toggleAutoAdvance(),void 0!==this._player&&(this._player.addEventListener(fO,this._updateFromPlayer),this._player.addEventListener(fM,this._toggleAutoAdvance)),null==(r=this._ads)||r.addEventListener(fB,this._onAdChange))}},{key:"streamType",get:function(){return this._streamType},set:function(e){this._streamType=e,this.updateDisabled_()}},{key:"showAdMarkers",get:function(){return this._showAdMarkers},set:function(e){this._showAdMarkers=e,this._updateRange()}},{key:"_previewRailTransform",get:function(){return dr(this,ou)[ou]},set:function(e){dr(this,ou)[ou]=e}}]),t}(of=e.Range),og=(ox=(ow=o(oc,[[ov,4,"player"],[o_,4,"streamType"],[om,4,"showAdMarkers"],[ob,1,"_previewRailTransform"]],[od,op],of)).e)[0],ok=ox[1],e.TimeRange=(oE=ow.c)[0],oy=oE[1],oh),oT=hV("theoplayer-volume-range"),oA=dX(["player","deviceType"]),oL=hQ({reflect:!1,attribute:!1}),e.VolumeRange=void 0;var fI=function(e){function t(){var t;return t=e.call(this)||this,oS(t),t._updateFromPlayer=function(){void 0!==t._player&&(t.rawValue=t._player.volume,t._updateRange())},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("min")||(this.min=0),this.hasAttribute("max")||(this.max=1)},r.getAriaLabel=function(){return"volume"},r.getAriaValueText=function(){return""+Math.round(this.value/this.max*100)+"%"},r.handleInput=function(){void 0!==this._player&&this._player.volume!==this.value&&(this._player.volume=this.value),e.prototype.handleInput.call(this)},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("volumechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("volumechange",this._updateFromPlayer))}}]),t}(oC=e.Range);function fN(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-error-icon-gap,10px);max-width:80%;max-width:var(--theoplayer-error-max-width,80%);min-width:0;min-width:var(--theoplayer-error-min-width,0)}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-error-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-error-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-error-icon-width,48px)}[part~=heading]{color:#fff;color:var(--theoplayer-error-heading-color,#fff);line-height:48px;line-height:var(--theoplayer-error-icon-height,48px);margin:0 0 10px;margin:var(--theoplayer-error-heading-margin,0 0 10px);padding:0}[part~=message]{color:#fff;color:var(--theoplayer-error-message-color,#fff);margin:0;margin:var(--theoplayer-error-message-margin,0);padding:0}[part~=fullscreen-controls]{-webkit-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-end;left:0;position:absolute;right:0}:host(:not([fullscreen])) [part~=fullscreen-controls]{display:none!important}"]);return fN=function(){return e},e}oS=(oR=o(fI,[[oL,4,"player"]],[oT,oA],oC)).e[0],e.VolumeRange=(oP=oR.c)[0],(0,oP[1])();var f$=cK(fN());function fD(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><h1 part="heading"><slot name="heading">An error occurred</slot></h1><p part="message"><slot name="message">','</slot></p></div><div part="fullscreen-controls"><slot name="fullscreen-controls"><theoplayer-fullscreen-button></theoplayer-fullscreen-button></slot></div>']);return fD=function(){return e},e}oN=hV("theoplayer-error-display"),o$=dX(["error","fullscreen"]),oq=hQ({reflect:!1,attribute:!1}),oF=hQ({reflect:!0,type:Boolean,attribute:h3.FULLSCREEN}),e.ErrorDisplay=void 0,new(oI=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f$],t.shadowRootOptions=r({},hj.shadowRootOptions,{delegatesFocus:!0}),oD(),t}return i(t,e),t}(l),oO=di("____private_error_1"),oM=di("____private_fullscreen_2"),oB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,oO,{writable:!0,value:void 0}),Object.defineProperty(t,oM,{writable:!0,value:void 0}),dr(t,oO)[oO]=(oz(t),oU(t)),dr(t,oM)[oM]=oj(t,!1),t}return i(t,e),t.prototype.render=function(){var e,t;return hx(fD(),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="48" width="48"><path d="M24.15 26.4q.85 0 1.425-.575.575-.575.575-1.425v-9.2q0-.8-.6-1.375t-1.4-.575q-.85 0-1.425.575-.575.575-.575 1.425v9.2q0 .8.6 1.375t1.4.575ZM24 34.7q1 0 1.625-.625t.625-1.625q0-.95-.625-1.625T24 30.15q-1 0-1.625.675t-.625 1.625q0 1 .625 1.625T24 34.7Zm0 10q-4.4 0-8.175-1.575Q12.05 41.55 9.25 38.75q-2.8-2.8-4.375-6.575Q3.3 28.4 3.3 24q0-4.35 1.575-8.125Q6.45 12.1 9.25 9.3q2.8-2.8 6.575-4.425Q19.6 3.25 24 3.25q4.35 0 8.125 1.625Q35.9 6.5 38.7 9.3q2.8 2.8 4.425 6.575Q44.75 19.65 44.75 24q0 4.4-1.625 8.175Q41.5 35.95 38.7 38.75q-2.8 2.8-6.575 4.375Q28.35 44.7 24 44.7Z"/></svg>\n'),null!=(e=null==(t=this.error)?void 0:t.message)?e:"")},v(t,[{key:"error",get:function(){return dr(this,oO)[oO]},set:function(e){dr(this,oO)[oO]=e}},{key:"fullscreen",get:function(){return dr(this,oM)[oM]},set:function(e){dr(this,oM)[oM]=e}}]),t}(hj),oU=(oH=(oV=o(oB,[[oq,1,"error"],[oF,1,"fullscreen"]],[oN,o$],hj)).e)[0],oj=oH[1],oz=oH[2],e.ErrorDisplay=(oG=oV.c)[0],oD=oG[1],oI),oQ=hW(),oW=hQ({reflect:!0,state:!0,type:String,attribute:h3.CAST_STATE});var fq=function(e){function t(t){var r;return r=e.call(this,t)||this,oK(r),r._castState="unavailable",r._updateCastState=function(){r.castState=r._castApi?r._castApi.state:"unavailable"},r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateCastState()},r.handleClick=function(){if(this._castApi){this._updateCastState();var e=this.castState;"available"===e?this._castApi.start():("connecting"===e||"connected"===e)&&this._castApi.stop()}},v(t,[{key:"castApi",get:function(){return this._castApi},set:function(e){void 0!==this._castApi&&this._castApi.removeEventListener("statechange",this._updateCastState),this._castApi=e,this._updateCastState(),void 0!==this._castApi&&this._castApi.addEventListener("statechange",this._updateCastState)}},{key:"castState",get:function(){return this._castState},set:function(e){this._castState=e}}]),t}(e.Button);function fF(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="24" width="24"><defs><clipPath id="theoplayer-chromecast-rings-mask-','"><path d="M0-36h44V0H0z"/></clipPath></defs><path class="theoplayer-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/><path class="theoplayer-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/><g class="theoplayer-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theoplayer-chromecast-rings-mask-',')"><circle stroke="none" cx="0" cy="0" r="30"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring2" cx="0" cy="0" r="12"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring3" cx="0" cy="0" r="20"/><path class="theoplayer-chromecast-ring theoplayer-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0"/></g></svg></span>']);return fF=function(){return e},e}function fU(){var e=a([":host([cast-state=unavailable]){display:none!important}:host([cast-state=connecting]) .theoplayer-chromecast-ring{-webkit-animation:.9s linear infinite;animation:.9s linear infinite}:host([cast-state=connecting]) .theoplayer-chromecast-ring1{-webkit-animation-name:theoplayer-chromecast-connecting-ring1;animation-name:theoplayer-chromecast-connecting-ring1}:host([cast-state=connecting]) .theoplayer-chromecast-ring2{-webkit-animation-name:theoplayer-chromecast-connecting-ring2;animation-name:theoplayer-chromecast-connecting-ring2}:host([cast-state=connecting]) .theoplayer-chromecast-ring3{-webkit-animation-name:theoplayer-chromecast-connecting-ring3;animation-name:theoplayer-chromecast-connecting-ring3}:host([cast-state=connecting]) .theoplayer-chromecast-ring4{-webkit-animation-name:theoplayer-chromecast-connecting-ring4;animation-name:theoplayer-chromecast-connecting-ring4}.theoplayer-chromecast-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-chromecast-inner{opacity:1}.theoplayer-chromecast-rings{clip-path:polygon(50% -100%,50% 50%,100% 50%,100% -100%)}@-webkit-keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}@keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}"]);return fU=function(){return e},e}oK=o(fq,[[oQ,4,"castApi"],[oW,4,"castState"]],[]).e[0];var fj=cK(fU()),fz=0;function fV(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-chromecast-display-icon-gap,10px);padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:none}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-chromecast-display-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-chromecast-display-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-chromecast-display-icon-width,48px)}[part=text]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part=heading]{color:#fff;color:var(--theoplayer-chromecast-display-heading-color,#fff);font-size:14px;font-size:var(--theoplayer-chromecast-display-heading-font-size,var(--theoplayer-text-font-size,14px));margin:0;margin:var(--theoplayer-chromecast-display-heading-margin,0);padding:0}[part=receiver]{color:#fff;color:var(--theoplayer-chromecast-display-receiver-color,#fff);font-size:17.5px;font-size:var(--theoplayer-chromecast-display-receiver-font-size,calc(var(--theoplayer-text-font-size, 14px)*1.25));margin:0;margin:var(--theoplayer-chromecast-display-receiver-margin,0);padding:0}"]);return fV=function(){return e},e}oJ=hV("theoplayer-chromecast-button"),oX=dX(["player"]),e.ChromecastButton=void 0,new(oY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(fq.styles,[fj]),o0(),t}return i(t,e),t}(l),oZ=function(t){function r(){var e;return(e=t.call(this)||this)._buttonId=++fz,e}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this._updateAriaLabel()},n.attributeChangedCallback=function(r,n,i){t.prototype.attributeChangedCallback.call(this,r,n,i),e.ChromecastButton.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},n._updateAriaLabel=function(){var e="connecting"===this.castState||"connected"===this.castState?"stop casting to Chromecast":"start casting to Chromecast";this.setAttribute(h3.ARIA_LABEL,e)},n.render=function(){var e;return e=this._buttonId,hx(fF(),e,e)},v(r,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.chromecast}}]),r}(fq),e.ChromecastButton=(o1=o(oZ,[],[oJ,oX],fq).c)[0],o0=o1[1],oY);var fH=cK(fV());function fG(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><p part="heading"><slot name="heading">Playing on</slot></p><p part="receiver">',"</p></div>"]);return fG=function(){return e},e}var fQ=["statechange"];function fW(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path class="theoplayer-airplay-inner" d="M5 7h14v8H5z"/><path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg></span>']);return fW=function(){return e},e}o4=hV("theoplayer-chromecast-display"),o8=dX(["player"]),o6=hW(),e.ChromecastDisplay=void 0,new(o3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fH],o7(),t}return i(t,e),t}(l),o2=di("____private__receiverName_1"),o5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,o2,{writable:!0,value:void 0}),dr(t,o2)[o2]=(le(t),o9(t,"Chromecast")),t._updateFromPlayer=function(){var e,r,n=null==(r=t._player)||null==(e=r.cast)?void 0:e.chromecast;void 0===n||"connected"!==n.state?t.setAttribute(h3.HIDDEN,""):(t._receiverName=n.receiverName||"Chromecast",t.removeAttribute(h3.HIDDEN))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(h3.HIDDEN)||this.setAttribute(h3.HIDDEN,""),this._updateFromPlayer()},r.render=function(){return hx(fG(),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48"><path d="M86.956 910.131h65.699q9.171 0 14.801-6.413 5.631-6.413 4.076-14.067-6.099-32.801-29.132-57.242-23.033-24.442-55.051-30.941-7.654-1.555-14.067 4.076-6.413 5.63-6.413 15.164v69.336q0 8.487 5.8 14.287 5.8 5.8 14.287 5.8Zm179.365 0q14.288 0 23.635-9.565 9.348-9.565 7.348-23.261-10.944-78.191-65.681-134.428-54.737-56.237-131.928-67.181-13.696-2-23.26 7.415-9.566 9.416-9.566 23.411 0 12.13 9.311 23.059 9.312 10.929 24.08 13.332 49.566 9.566 84.913 46.696 35.348 37.131 44.914 87.131 2.403 14.768 12.595 24.08 10.192 9.311 23.639 9.311Zm127.147 0q13.904 0 23.261-9.563 9.358-9.563 8.358-23.444-5.819-64.393-33.105-122.128-27.286-57.735-70.589-101.784-43.303-44.049-100.088-71.892-56.784-27.842-121.43-33.407-13.88-1-23.443 8.53-9.563 9.531-9.563 23.377 0 13.615 9.072 23.615 9.072 10 23.62 12.19 103.526 11.636 174.956 85.018 71.43 73.382 82.858 176.796 1.801 14.298 11.995 23.495 10.195 9.197 24.098 9.197ZM123.477 241.304h692.436q31.74 0 55.762 24.021 24.021 24.022 24.021 55.762v509.826q0 31.507-24.021 55.362-24.022 23.856-55.762 23.856H525.696q-16.706 0-28.158-11.501-11.451-11.502-11.451-28.283 0-16.782 11.451-28.108 11.452-11.326 28.158-11.326h290.217V321.087H146.087v146q-6.783 6.348-16.595 11.674-9.813 5.326-23.514 5.326-16.457 0-27.783-11.452-11.326-11.451-11.326-28.158v-146q0-21.834 16.838-39.504 16.837-17.669 39.77-17.669Zm317.914 363Z"/></svg>\n'),this._receiverName)},v(t,[{key:"_receiverName",get:function(){return dr(this,o2)[o2]},set:function(e){dr(this,o2)[o2]=e}},{key:"player",get:function(){return this._player},set:function(e){var t;this._player!==e&&(void 0!==this._castApi&&this._castApi.removeEventListener(fQ,this._updateFromPlayer),this._player=e,this._castApi=null==e||null==(t=e.cast)?void 0:t.chromecast,this._updateFromPlayer(),void 0!==this._castApi&&this._castApi.addEventListener(fQ,this._updateFromPlayer))}}]),t}(hj),o9=(lr=(lt=o(o5,[[o6,1,"_receiverName"]],[o4,o8],hj)).e)[0],le=lr[1],e.ChromecastDisplay=(ln=lt.c)[0],o7=ln[1],o3);var fK=hx(fW());function fZ(){var e=a([":host([cast-state=unavailable]){display:none!important}.theoplayer-airplay-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-airplay-inner{opacity:1}"]);return fZ=function(){return e},e}var fY=cK(fZ());function fJ(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;pointer-events:none!important;vertical-align:middle}[part=icon]{opacity:0;-webkit-transition:visibility .15s,opacity .15s;transition:visibility .15s,opacity .15s;visibility:hidden}:host([loading]) [part=icon]{opacity:1;-webkit-transition:visibility 0s,opacity 0s;transition:visibility 0s,opacity 0s;-webkit-transition-delay:.5s;transition-delay:.5s;-webkit-transition-delay:var(--theoplayer-loading-delay,.5s);transition-delay:var(--theoplayer-loading-delay,.5s);visibility:visible}[part=icon] ::slotted(img),[part=icon] ::slotted(svg){fill:#fff;fill:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));vertical-align:middle;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress{direction:ltr;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:0;height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));letter-spacing:0;line-height:0;position:relative;white-space:nowrap;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress svg,.theoplayer-loading-spinner{height:100%;position:absolute;width:100%}.theoplayer-loading-progress svg{stroke:#fff;stroke:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff))}.theoplayer-loading-gap-patch{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;left:47.5%;overflow:hidden;position:absolute;top:0;width:5%}.theoplayer-loading-gap-patch svg{left:-900%;-webkit-transform:rotate(180deg);transform:rotate(180deg);width:2000%}.theoplayer-loading-circle-clipper{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:100%;overflow:hidden;position:relative;width:50%}.theoplayer-loading-circle-clipper svg{width:200%}.theoplayer-loading-circle-right svg{left:-100%}.theoplayer-loading-progress{-webkit-animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite;animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite}.theoplayer-loading-spinner{-webkit-animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-left svg{-webkit-animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-right svg{-webkit-animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}@-webkit-keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@-webkit-keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@-webkit-keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}@keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}"]);return fJ=function(){return e},e}lo=hV("theoplayer-airplay-button"),ll=dX(["player"]),e.AirPlayButton=void 0,new(la=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(fq.styles,[fY]),ls(),t}return i(t,e),t}(l),li=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this._updateAriaLabel()},n.attributeChangedCallback=function(r,n,i){t.prototype.attributeChangedCallback.call(this,r,n,i),e.AirPlayButton.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},n._updateAriaLabel=function(){var e="connecting"===this.castState||"connected"===this.castState?"stop playing on AirPlay":"start playing on AirPlay";this.setAttribute(h3.ARIA_LABEL,e)},n.render=function(){return fK},v(r,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.airplay}}]),r}(fq),e.AirPlayButton=(lu=o(li,[],[lo,ll],fq).c)[0],ls=lu[1],la);var fX=cK(fJ());function f0(){var e=a(['<div part="icon"><slot name="icon"><div aria-hidden="true" class="theoplayer-loading-progress"><div class="theoplayer-loading-spinner"><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-left"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div><div class="theoplayer-loading-gap-patch"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="3.2"/></svg></div><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-right"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div></div></div></slot></div>']);return f0=function(){return e},e}var f1=hx(f0()),f2=["readystatechange","play","pause","playing","seeking","seeked"];function f5(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none!important}"]);return f5=function(){return e},e}lp=hV("theoplayer-loading-indicator"),ly=dX(["player"]),lv=hQ({reflect:!1,attribute:!1}),l_=hQ({reflect:!0,type:Boolean,attribute:h3.LOADING}),e.LoadingIndicator=void 0,new(ld=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fX],lf(),t}return i(t,e),t}(l),lc=di("____private_loading_1"),lh=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,lc,{writable:!0,value:void 0}),dr(t,lc)[lc]=(lb(t),lm(t,!1)),t._updateFromPlayer=function(){t.loading=void 0!==t._player&&!t._player.paused&&(t._player.seeking||t._player.readyState<3)},t}return i(t,e),t.prototype.render=function(){return f1},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(f2,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(f2,this._updateFromPlayer))}},{key:"loading",get:function(){return dr(this,lc)[lc]},set:function(e){dr(this,lc)[lc]=e}}]),t}(hj),lm=(lk=(lg=o(lh,[[lv,4,"player"],[l_,1,"loading"]],[lp,ly],hj)).e)[0],lb=lk[1],e.LoadingIndicator=(lw=lg.c)[0],lf=lw[1],ld);var f3=cK(f5());function f4(){var e=a([""]);return f4=function(){return e},e}function f8(){var e=a(["[part=icon] ::slotted(svg),[part=icon] svg{fill:#8c8c8c;fill:var(--theoplayer-live-button-color,#8c8c8c)}:host([live]:not([paused])) [part=icon] ::slotted(svg),:host([live]:not([paused])) [part=icon] svg{fill:red;fill:var(--theoplayer-live-button-active-color,red)}"]);return f8=function(){return e},e}lA=hV("theoplayer-gesture-receiver"),lC=dX(["player","deviceType"]),lS=hQ({reflect:!1,attribute:!1}),lR=hQ({reflect:!1,attribute:!1}),e.GestureReceiver=void 0,new(lT=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f3],lL(),t}return i(t,e),t}(l),lx=di("____private_deviceType_1"),lE=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,lx,{writable:!0,value:void 0}),lO(t),t._pointerType="",dr(t,lx)[lx]=lP(t,"desktop"),t._onPointerDown=function(e){t._pointerType=e.pointerType},t._onClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;"touch"===n?t.handleTap(e):"mouse"===n&&t.handleMouseClick(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.setAttribute("tabindex","-1"),this.setAttribute("aria-hidden","true")},r.handleTap=function(e){},r.handleMouseClick=function(e){if("desktop"===this.deviceType&&void 0!==this._player){var t;void 0===this._player.source||null!=(t=this._player.ads)&&t.playing||(this._player.paused?this._player.play():this._player.pause())}},r.render=function(){return hx(f4())},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._playerElement&&(this._playerElement.removeEventListener("pointerdown",this._onPointerDown),this._playerElement.removeEventListener("click",this._onClick)),this._player=e,this._playerElement=null==e?void 0:e.element,void 0!==this._playerElement&&(this._playerElement.addEventListener("pointerdown",this._onPointerDown),this._playerElement.addEventListener("click",this._onClick)))}},{key:"deviceType",get:function(){return dr(this,lx)[lx]},set:function(e){dr(this,lx)[lx]=e}}]),t}(hj),lP=(lB=(lM=o(lE,[[lS,4,"player"],[lR,1,"deviceType"]],[lA,lC],hj)).e)[0],lO=lB[1],e.GestureReceiver=(lI=lM.c)[0],lL=lI[1],lT);var f7=cK(f8());function f6(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><slot name="spacer"></slot><span part="text"><slot name="text">LIVE</slot></span>']);return f6=function(){return e},e}var f9=["play","pause","playing","emptied"],ve=["seeking","seeked","timeupdate","durationchange","emptied"];function vt(){var e=a([":host{padding:5px 10px;padding:calc(var(--theoplayer-control-padding, 10px) - var(--theoplayer-ad-display-padding, 5px)) var(--theoplayer-control-padding,10px);pointer-events:none}span{background:#ffc50f;background:var(--theoplayer-ad-display-background,#ffc50f);border-radius:2px;border-radius:var(--theoplayer-ad-display-border-radius,2px);color:#000;color:var(--theoplayer-ad-display-text-color,#000);display:inline-block;padding:5px;padding:var(--theoplayer-ad-display-padding,5px)}"]);return vt=function(){return e},e}lU=hV("theoplayer-live-button"),lj=dX(["player","streamType"]),lH=hQ({reflect:!0,type:Boolean,attribute:h3.PAUSED}),lG=hQ({reflect:!0,type:String,attribute:h3.STREAM_TYPE}),lQ=hQ({reflect:!0,type:Number,attribute:h3.LIVE_THRESHOLD,useDefault:!0}),lW=hQ({reflect:!0,type:Boolean,attribute:h3.LIVE}),lK=hQ({reflect:!1,attribute:!1}),e.LiveButton=void 0,new(lF=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[f7]),lz(),r}return i(r,t),r}(l),lN=di("____private_paused_1"),l$=di("____private_streamType_2"),lD=di("____private_live_3"),lq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,lN,{writable:!0,value:void 0}),Object.defineProperty(t,l$,{writable:!0,value:void 0}),Object.defineProperty(t,lD,{writable:!0,value:void 0}),lX(t),t._liveThreshold=10,dr(t,lN)[lN]=lZ(t,!1),dr(t,l$)[l$]=lY(t,"vod"),dr(t,lD)[lD]=lJ(t,!1),t._updatePaused=function(){t.paused=void 0===t._player||t._player.paused},t._updateLive=function(){t.live=void 0!==t._player&&function(e,t){if(e.duration===1/0){var r=e.seekable;return!(r.length>0)||r.end(r.length-1)-e.currentTime<=t}return!1}(t._player,t.liveThreshold)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(h3.ARIA_LABEL)||this.setAttribute(h3.ARIA_LABEL,"seek to live")},r.handleClick=function(){void 0!==this._player&&(this._player.hesp&&void 0!==this._player.hesp.manifest?this._player.hesp.goLive():(this._player.currentTime=1/0,this._player.play()))},r.render=function(){return hx(f6(),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><circle cx="12" cy="12" r="7"/></svg>\n'))},v(t,[{key:"paused",get:function(){return dr(this,lN)[lN]},set:function(e){dr(this,lN)[lN]=e}},{key:"streamType",get:function(){return dr(this,l$)[l$]},set:function(e){dr(this,l$)[l$]=e}},{key:"liveThreshold",get:function(){return this._liveThreshold},set:function(e){this._liveThreshold=isNaN(e)?0:e,this._updateLive()}},{key:"live",get:function(){return dr(this,lD)[lD]},set:function(e){dr(this,lD)[lD]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(f9,this._updatePaused),this._player.removeEventListener(ve,this._updateLive)),this._player=e,this._updatePaused(),this._updateLive(),void 0!==this._player&&(this._player.addEventListener(f9,this._updatePaused),this._player.addEventListener(ve,this._updateLive)))}}]),t}(lV=e.Button),lZ=(l1=(l0=o(lq,[[lH,1,"paused"],[lG,1,"streamType"],[lQ,4,"liveThreshold"],[lW,1,"live"],[lK,4,"player"]],[lU,lj],lV)).e)[0],lY=l1[1],lJ=l1[2],lX=l1[3],e.LiveButton=(l2=l0.c)[0],lz=l2[1],lF);var vr=cK(vt());function vn(){var e=a(["<span>","</span>"]);return vn=function(){return e},e}var vi=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];function va(){var e=a([":host{pointer-events:none}"]);return va=function(){return e},e}l8=hV("theoplayer-ad-display"),l7=dX(["player"]),l9=hW(),se=hQ({reflect:!1,attribute:!1}),e.AdDisplay=void 0,new(l4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pt,vr],l6(),t}return i(t,e),t}(l),l5=di("____private__text_1"),l3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,l5,{writable:!0,value:void 0}),dr(t,l5)[l5]=(sr(t),st(t,"")),t._updateFromPlayer=function(){var e,r,n,i=null==(r=t._player)?void 0:r.ads,a=(null!=(e=null==i||null==(n=i.currentAdBreak)?void 0:n.ads)?e:[]).filter(fx);if(void 0===i||!i.playing||0===a.length){t._text="",t.style.display="none";return}if(a.length>1){var o=dj(t._player.ads.currentAds||[],fx);if(o){var l=a.indexOf(o);if(l>=0){t._text="Ad "+(l+1)+" of "+a.length,t.style.display="";return}}}t._text="Ad",t.style.display=""},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){return hx(vn(),this._text)},v(t,[{key:"_text",get:function(){return dr(this,l5)[l5]},set:function(e){dr(this,l5)[l5]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(vi,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(vi,this._updateFromPlayer))}}]),t}(hj),st=(si=(sn=o(l3,[[l9,1,"_text"],[se,4,"player"]],[l8,l7],hj)).e)[0],sr=si[1],e.AdDisplay=(sa=sn.c)[0],l6=sa[1],l4);var vo=cK(va());function vl(){var e=a(["<span>Content will resume in ","s</span>"]);return vl=function(){return e},e}var vs=["adbreakbegin","adbreakend","adbreakchange","updateadbreak"];function vu(){var e=a(["<slot>Visit Advertiser</slot>"]);return vu=function(){return e},e}su=hV("theoplayer-ad-countdown"),sc=dX(["player"]),sd=hW(),sp=hQ({reflect:!1,attribute:!1}),e.AdCountdown=void 0,new(ss=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pt,vo],sh(),t}return i(t,e),t}(l),so=di("____private__maxRemainingDuration_1"),sl=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,so,{writable:!0,value:void 0}),dr(t,so)[so]=(sf(t),sy(t,0)),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(e=t._player)?void 0:e.ads,i=null==n||null==(r=n.currentAdBreak)?void 0:r.maxRemainingDuration;void 0===n||!n.playing||void 0===i||i<0?(t._maxRemainingDuration=0,t.style.display="none"):(t._maxRemainingDuration=Math.ceil(i),t.style.display="")},t}return i(t,e),t.prototype.render=function(){return hx(vl(),this._maxRemainingDuration)},v(t,[{key:"_maxRemainingDuration",get:function(){return dr(this,so)[so]},set:function(e){dr(this,so)[so]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(vs,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(vs,this._onAdChange))}}]),t}(hj),sy=(s_=(sv=o(sl,[[sd,1,"_maxRemainingDuration"],[sp,4,"player"]],[su,sc],hj)).e)[0],sf=s_[1],e.AdCountdown=(sm=sv.c)[0],sh=sm[1],ss);var vc=["adbegin","adend","adloaded","updatead","adskip"];sb=hV("theoplayer-ad-clickthrough-button"),sg=dX(["player"]),sw=hQ({reflect:!0,type:String,attribute:h3.CLICKTHROUGH}),sx=hQ({reflect:!1,attribute:!1}),e.AdClickThroughButton=void 0;var vh=function(e){function t(){var t;return t=e.call(this)||this,sE(t),t._clickThrough=null,t._updateFromPlayer=function(){var e,r,n=null==(r=t._player)?void 0:r.ads;if(!n||!n.playing){t.clickThrough=null;return}var i=dj(null!=(e=n.currentAds)?e:[],fx);if(void 0===i||"google-ima"===i.integration){t.clickThrough=null;return}var a=i.clickThrough;if(!a){t.clickThrough=null;return}t.clickThrough=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),null==this.clickThrough&&(this.disabled=!0,this.style.display="none")},r.handleClick=function(){var e;null==(e=this._player)||e.pause()},r.renderLinkContent=function(){return hx(vu())},v(t,[{key:"clickThrough",get:function(){return this._clickThrough},set:function(e){this._clickThrough!==e&&(this._clickThrough=e,this.href=e?String(e).trim():"#",this.target="_blank",this.disabled=null==e,this.style.display=null!=e?"":"none")}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(vc,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(vc,this._updateFromPlayer))}}]),t}(sk=e.LinkButton);function vd(){var e=a([":host{-ms-grid-columns:1fr;-ms-grid-rows:1fr;background:rgba(0,0,0,.7);background:var(--theoplayer-ad-skip-background,rgba(0,0,0,.7));border:1px solid hsla(0,0%,100%,.5);border:var(--theoplayer-ad-skip-border,1px solid hsla(0,0%,100%,.5));color:#fff;color:var(--theoplayer-ad-skip-color,#fff);display:-ms-grid;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}:host(:hover){background:rgba(0,0,0,.9);background:var(--theoplayer-ad-skip-hover-background,rgba(0,0,0,.9));border:1px solid #fff;border:var(--theoplayer-ad-skip-hover-border,1px solid #fff);color:#fff;color:var(--theoplayer-ad-skip-hover-color,var(--theoplayer-ad-skip-color,#fff))}:host([disabled]){background:transparent;background:var(--theoplayer-ad-skip-countdown-background,transparent);border:1px solid transparent;border:var(--theoplayer-ad-skip-countdown-border,1px solid transparent);color:#fff;color:var(--theoplayer-ad-skip-countdown-color,var(--theoplayer-ad-skip-color,#fff))}[part=countdown],[part=skip]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}[part=skip]{font-size:14px;font-size:var(--theoplayer-ad-skip-font-size,var(--theoplayer-text-font-size,14px));line-height:24px;line-height:var(--theoplayer-ad-skip-line-height,var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px)))}[part=skip-icon]{padding-left:10px;padding-left:var(--theoplayer-control-padding,10px)}[part=skip-icon] ::slotted(svg),[part=skip-icon] svg{height:24px;height:var(--theoplayer-ad-skip-icon-height,var(--theoplayer-control-height,24px));width:24px;width:var(--theoplayer-ad-skip-icon-width,var(--theoplayer-control-height,24px))}"]);return vd=function(){return e},e}sE=(sT=o(vh,[[sw,4,"clickThrough"],[sx,4,"player"]],[sb,sg],sk)).e[0],e.AdClickThroughButton=(sA=sT.c)[0],(0,sA[1])();var vp=cK(vd());function vy(){var e=a(['<span part="countdown" style="','">Skip in ',' seconds</span> <span part="skip" style="','"><span part="skip-text"><slot name="skip-text">Skip Ad</slot></span><span part="skip-icon"><slot name="skip-icon">',"</slot></span></span>"]);return vy=function(){return e},e}var vf=["adbegin","adend","adloaded","updatead","adskip"];sP=hV("theoplayer-ad-skip-button"),sO=dX(["player"]),sI=hW(),sN=hW(),s$=hQ({reflect:!1,attribute:!1}),e.AdSkipButton=void 0,new(sR=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[vp]),sM(),r}return i(r,t),r}(l),sC=di("____private__showCountdown_1"),sL=di("____private__timeToSkip_2"),sS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,sC,{writable:!0,value:void 0}),Object.defineProperty(t,sL,{writable:!0,value:void 0}),dr(t,sC)[sC]=(sF(t),sD(t,!1)),dr(t,sL)[sL]=sq(t,0),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(r=t._player)?void 0:r.ads;if(!n||!n.playing){t.style.display="none";return}var i=dj(null!=(e=n.currentAds)?e:[],fx);if(void 0===i||"google-ima"===i.integration){t.style.display="none";return}var a=i.skipOffset;if(void 0===a||a<0||void 0!==i.duration&&a>=i.duration){t.style.display="none";return}var o=t._player.currentTime;o<a?(t._showCountdown=!0,t._timeToSkip=Math.ceil(a-o),t.style.display="",t.setAttribute(h3.DISABLED,""),t.setAttribute(h3.ARIA_LIVE,"off")):(t._showCountdown=!1,t.style.display="",t.removeAttribute(h3.DISABLED),t.setAttribute(h3.ARIA_LIVE,"polite"))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._update()},r.handleClick=function(){var e,t;null==(t=this._player)||null==(e=t.ads)||e.skip()},r.render=function(){var e={visibility:this._showCountdown?"visible":"hidden"},t={visibility:this._showCountdown?"hidden":"visible",pointerEvents:this._showCountdown?"none":""};return hx(vy(),f_(e),this._timeToSkip,f_(t),dR('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.5 18q-.425 0-.712-.288-.288-.287-.288-.712V7q0-.425.288-.713Q17.075 6 17.5 6t.712.287q.288.288.288.713v10q0 .425-.288.712-.287.288-.712.288ZM7.05 16.975q-.5.35-1.025.05-.525-.3-.525-.9v-8.25q0-.6.525-.888.525-.287 1.025.038l6.2 4.15q.45.3.45.825 0 .525-.45.825Z"/></svg>\n'))},v(t,[{key:"_showCountdown",get:function(){return dr(this,sC)[sC]},set:function(e){dr(this,sC)[sC]=e}},{key:"_timeToSkip",get:function(){return dr(this,sL)[sL]},set:function(e){dr(this,sL)[sL]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(vf,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(vf,this._onAdChange))}}]),t}(sB=e.Button),sD=(sj=(sU=o(sS,[[sI,1,"_showCountdown"],[sN,1,"_timeToSkip"],[s$,4,"player"]],[sP,sO],sB)).e)[0],sq=sj[1],sF=sj[2],e.AdSkipButton=(sz=sU.c)[0],sM=sz[1],sR);var vv=((C={}).TopControlBar="top-control-bar",C.BottomControlBar="bottom-control-bar",C.Menu="menu",C),v_=[];function vm(){var e=a([':host{aspect-ratio:16/9;aspect-ratio:var(--theoplayer-aspect-ratio,16/9);background:#000;background:var(--theoplayer-background,#000);-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-ui-container;container-type:size;display:inline-block;height:var(--theoplayer-height);min-width:300px;min-width:var(--theoplayer-min-width,300px);position:relative}@supports not (aspect-ratio:1){:host{height:0;height:var(--theoplayer-height,calc((var(--theoplayer-aspect-ratio, 16 / 9))*0));padding-bottom:56.25%;padding-bottom:calc(100%/(var(--theoplayer-aspect-ratio, 16 / 9)))}}:host([hidden]){display:none!important}:host([fullscreen]){height:100%!important;padding:0!important;width:100%!important}:host(:-webkit-full-screen){height:100%!important;padding:0!important;width:100%!important}:host(:-ms-fullscreen){height:100%!important;padding:0!important;width:100%!important}:host(:fullscreen){height:100%!important;padding:0!important;width:100%!important}:host([fullwindow]){bottom:0!important;left:0!important;overflow:hidden!important;position:fixed!important;right:0!important;top:0!important;z-index:1000!important}:host([fluid]){--theoplayer-aspect-ratio:var(--theoplayer-video-width,16) /var(--theoplayer-video-height,9)}[part~=chrome]{position:relative}[part~=layer]{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}[part~=chrome],[part~=layer]:not([part~=media-layer]){display:-webkit-box;display:-ms-flexbox;display:flex}[part~=chrome],[part~=gesture-layer],[part~=vertical-layer]{pointer-events:none}[part~=chrome] ::slotted(*){pointer-events:auto}[part~=media-layer] video{border-radius:0;border-radius:var(--theoplayer-video-border-radius,0);-o-object-fit:contain;object-fit:contain;-o-object-fit:var(--theoplayer-video-object-fit,contain);object-fit:var(--theoplayer-video-object-fit,contain)}[part~=media-layer] .theoplayer-ad-linear{bottom:0;left:0;position:absolute;right:0;top:0;z-index:10}[part~=media-layer] .theo-ad-remaining-container,[part~=media-layer] .theoplayer-ad-skip,[part~=media-layer] .theoplayer-ad-touch-clickthrough{display:none!important}[part~=chrome],[part~=vertical-layer]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part~=centered]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;justify-content:center}[part~=middle]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}[part~=vertical-layer]:before{background:transparent;background:var(--theoplayer-control-backdrop-background,transparent);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;bottom:var(--theoplayer-menu-offset-bottom,0);padding:10px;padding:var(--theoplayer-menu-layer-padding,10px);top:0;top:var(--theoplayer-menu-offset-top,0)}[part=menu]{-ms-grid-column-align:stretch;background:rgba(0,0,0,.5);background:var(--theoplayer-menu-backdrop-background,rgba(0,0,0,.5));display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:stretch}[part=menu] ::slotted(*){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch}:host(:not([mobile])) [part=menu]{margin:auto 0 0 auto;margin:var(--theoplayer-menu-margin-top,auto) var(--theoplayer-menu-margin-right,0) var(--theoplayer-menu-margin-bottom,0) var(--theoplayer-menu-margin-left,auto);max-height:100%;min-width:200px;min-width:var(--theoplayer-menu-min-width,200px)}:host([mobile]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([tv]) [part~=menu-layer]{left:auto}:host([tv]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host(:not([menu-opened])) [part~=menu-layer],:host([menu-opened][mobile]) [part~=vertical-layer],:host([menu-opened][tv]) [part~=vertical-layer]{display:none!important}@container theoplayer-ui-container (max-width: 500px) or (max-height: 300px){:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;left:0;padding:0;right:0;top:0}:host(:not([mobile])) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([menu-opened]) [part~=vertical-layer]{display:none!important}}[part~=error-layer]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:rgba(0,0,0,.5);background:var(--theoplayer-error-background,rgba(0,0,0,.5));justify-content:center}:host(:not([has-error])) [part~=error-layer],:host([has-error]) [part~=layer]:not([part~=media-layer]):not([part~=error-layer]){display:none!important}[part~=chrome] ::slotted(theoplayer-control-bar){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}theoplayer-gesture-receiver{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}:host(:not([mobile])) [part~=chrome] ::slotted([mobile-only]),:host([mobile]) [part~=chrome] ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [part~=chrome] ::slotted([tv-only]),:host([tv]) [part~=chrome] ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [part~=chrome] ::slotted([live-hidden]),:host([stream-type=vod]) [part~=chrome] ::slotted([live-only]){display:none!important}:host(:not([playing-ad])) [part~=chrome] ::slotted([ad-only]),:host([playing-ad]) [part~=chrome] ::slotted([ad-hidden]){display:none!important}:host([user-idle]){cursor:none}:host([user-idle]) [part~=chrome] ::slotted(:not([no-auto-hide])){opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}:host([user-idle]) [part~=vertical-layer]:before{opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}']);return vm=function(){return e},e}var vb=cK(vm()),vg=function(){if("u">typeof document)for(var e,t=dM([["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]]);!(e=t()).done;){var r=e.value;if(r[1]in document)return{requestFullscreen_:r[0],exitFullscreen_:r[1],fullscreenElement_:r[2],fullscreenEnabled_:r[3],fullscreenchange_:r[4],fullscreenerror_:r[5]}}}();function vk(){if(("u"<typeof navigator?"undefined":d(navigator))!=="object")return!1;if(navigator.userAgentData)return navigator.userAgentData.mobile;var e=navigator.userAgent;return!!e&&/Android|iPhone|iPad|iPod|Mobile Safari|Windows Phone/i.test(e)}function vw(){if(("u"<typeof navigator?"undefined":d(navigator))!=="object")return!1;var e=navigator.userAgent;return!!e&&/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(e)}var vx="theoplayeruseridlechange",vE="theoplayerready";function vT(){var e=a(["html.theoplayer-ui-full-window{overflow:hidden!important}html.theoplayer-ui-full-window>body{height:100%!important;margin:0!important;padding:0!important;width:100%!important}"]);return vT=function(){return e},e}var vA=cK(vT()),vC="theoplayer-ui-global-styles",vL=!1;function vS(){var e=a(['<div part="layer media-layer" ','></div><div part="layer gesture-layer"><theoplayer-gesture-receiver></theoplayer-gesture-receiver></div><div part="layer vertical-layer"><div part="top chrome" ','><slot name="top-chrome" ',' @transitionstart="','" @transitionend="','"></slot></div><div part="middle chrome"><slot name="middle-chrome"></slot></div><div part="layer centered-layer centered loading"><slot name="centered-loading"></slot></div><div part="layer centered-layer centered chrome"><slot name="centered-chrome"></slot></div><div part="bottom chrome" ',"><slot ",' @transitionstart="','" @transitionend="','"></slot></div></div><div part="layer menu-layer" ',"><theoplayer-menu-group ",' part="menu" @theoplayermenuclose="','" @theoplayermenuchange="','"><slot name="menu"></slot></theoplayer-menu-group></div><div part="layer error-layer"><slot name="error"></slot></div>']);return vS=function(){return e},e}var vR="theoplayer-ui-full-window";function vP(e){for(var t,r,n=dW(e).filter(dq),i=dM(n);!(r=i()).done;){var a=r.value;if("0"!==getComputedStyle(a).opacity){var o=pf.fromRect(a.getBoundingClientRect());o.width>0&&o.height>0&&(t=t?t.union(o):o)}}return t}function vO(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-default-ui-container;container-type:inline-size;display:inline-block;min-width:300px;min-width:var(--theoplayer-min-width,300px);position:relative}:host([hidden]){display:none!important}theoplayer-ui{display:block;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}[part=title]{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);text-shadow:0 0 4px rgba(0,0,0,.75);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *,[part=centered-chrome] ::slotted(*){--theoplayer-button-icon-width:var(--theoplayer-centered-chrome-button-icon-width,48px);--theoplayer-control-height:var(--theoplayer-centered-chrome-control-height,48px);--theoplayer-play-button-icon-color:var(--theoplayer-center-play-button-icon-color,unset)}[part=middle-chrome]{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;justify-content:flex-end}[part=bottom-chrome],[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;pointer-events:none;position:relative}[part=bottom-chrome]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:var(--theoplayer-mobile-control-backdrop-background,rgba(0,0,0,.5))}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:var(--theoplayer-time-range-control-height,12px);--theoplayer-range-track-pointer-background:var(--theoplayer-time-range-track-pointer-background,hsla(0,0%,100%,.5))}[part=ad-chrome]{--theoplayer-control-height:var(--theoplayer-ad-chrome-control-height,12px);-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;pointer-events:none}theoplayer-ad-display,theoplayer-ad-skip-button{-ms-flex-negative:0;flex-shrink:0}theoplayer-ad-countdown,theoplayer-ad-skip-button[disabled]{text-shadow:0 0 4px rgba(0,0,0,.75)}theoplayer-ad-countdown{min-width:0}theoplayer-ad-skip-button{-webkit-box-align:end;-ms-flex-align:end;--theoplayer-ad-skip-font-size:calc(var(--theoplayer-text-font-size, 14px)*1.25);--theoplayer-ad-skip-line-height:calc(var(--theoplayer-text-content-height, var(--theoplayer-control-height, 24px))*1.25);--theoplayer-ad-skip-icon-width:24px;--theoplayer-ad-skip-icon-height:24px;align-items:end;border-right:0!important;justify-items:end}:host(:not([mobile])) [mobile-only],:host(:not([mobile])) theoplayer-control-bar ::slotted([mobile-only]),:host([mobile]) [mobile-hidden],:host([mobile]) theoplayer-control-bar ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [tv-only],:host(:not([tv])) theoplayer-control-bar ::slotted([tv-only]),:host([tv]) [tv-hidden],:host([tv]) theoplayer-control-bar ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui:not([playing-ad]) theoplayer-control-bar ::slotted([ad-only]),theoplayer-ui[playing-ad] [ad-hidden],theoplayer-ui[playing-ad] theoplayer-control-bar ::slotted([ad-hidden]){display:none!important}theoplayer-ui:not([has-first-play]) theoplayer-control-bar{display:none!important}theoplayer-ui:not([has-first-play]),theoplayer-ui:not([has-first-play]) ::slotted(*){--theoplayer-before-first-play-display:none}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:none!important}@container theoplayer-default-ui-container (max-width: 200px){:host(:not([mobile])) theoplayer-control-bar{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}theoplayer-ui:not([mobile]):not([casting]) theoplayer-ad-clickthrough-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:var(--theoplayer-volume-range-track-width,70px);overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display:not([stream-type=vod]){padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}theoplayer-ui[playing-ad] .theoplayer-ad-control{--theoplayer-control-height:var(--theoplayer-ad-control-height,16px)}']);return vO=function(){return e},e}sJ=hV("theoplayer-ui"),s0=hQ({reflect:!1,attribute:h3.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),s1=hQ({reflect:!1,attribute:h3.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),s2=hQ({reflect:!0,type:Boolean,attribute:h3.FLUID}),s5=hQ({reflect:!0,type:Boolean,attribute:h3.MUTED}),s3=hQ({reflect:!0,type:Boolean,attribute:h3.AUTOPLAY}),s4=hQ({reflect:!0,type:Boolean,attribute:h3.FULLSCREEN}),s8=hQ({reflect:!0,type:Boolean,attribute:h3.PAUSED}),s7=hQ({reflect:!0,type:Boolean,attribute:h3.ENDED}),s6=hQ({reflect:!0,type:Boolean,attribute:h3.CASTING}),s9=hQ({reflect:!0,type:Boolean,attribute:h3.USER_IDLE}),ue=hQ({reflect:!0,type:Number,attribute:h3.USER_IDLE_TIMEOUT,useDefault:!0}),ut=hQ({reflect:!0,type:String,attribute:h3.DEVICE_TYPE}),ur=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.MOBILE}),un=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.TV}),ui=hQ({reflect:!0,type:String,attribute:h3.STREAM_TYPE}),ua=hQ({reflect:!0,type:Number,attribute:h3.DVR_THRESHOLD,useDefault:!0}),uo=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.HAS_FIRST_PLAY}),ul=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.PLAYING_AD}),us=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.HAS_ERROR}),uu=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.FULLWINDOW}),uc=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.MENU_OPENED}),e.UIContainer=void 0,new(sY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vb],t.shadowRootOptions=r({},hj.shadowRootOptions,{delegatesFocus:!0}),t.READY_EVENT=vE,sX(),t}return i(t,e),t}(l),sV=di("____private_mobile_1"),sH=di("____private_tv_2"),sG=di("____private__hasFirstPlay_3"),sQ=di("____private__isPlayingAd_4"),sW=di("____private__hasError_5"),sK=di("____private__isFullWindow_6"),sZ=function(n){function a(e){var t;return void 0===e&&(e={}),Object.defineProperty(t=n.call(this)||this,sV,{writable:!0,value:void 0}),Object.defineProperty(t,sH,{writable:!0,value:void 0}),Object.defineProperty(t,sG,{writable:!0,value:void 0}),Object.defineProperty(t,sQ,{writable:!0,value:void 0}),Object.defineProperty(t,sW,{writable:!0,value:void 0}),Object.defineProperty(t,sK,{writable:!0,value:void 0}),u_(t),t._configuration={},t._playerRef=dk(),t._menuRef=dk(),t._menuGroupRef=dk(),t._menuOpened=!1,t._topChromeRef=dk(),t._topChromeSlotRef=dk(),t._bottomChromeRef=dk(),t._bottomChromeSlotRef=dk(),t._pointerType="",t._lastPointerUpTime=0,t._stateReceivers=[],t._player=void 0,t._source=void 0,t._muted=!1,t._autoplay=!1,t._fullscreen=!1,t._deviceType="desktop",t._streamType="vod",t._fluid=!1,t._userIdle=!1,t._userIdleTimeout=void 0,t._isUserActive=!1,t._userIdleTimer=0,t._paused=!1,t._ended=!1,t._casting=!1,t._dvrThreshold=60,t._previewTime=NaN,t._activeVideoTrack=void 0,dr(t,sV)[sV]=uh(t,!1),dr(t,sH)[sH]=ud(t,!1),dr(t,sG)[sG]=up(t,!1),dr(t,sQ)[sQ]=uy(t,!1),dr(t,sW)[sW]=uf(t,!1),dr(t,sK)[sK]=uv(t,!1),t._onMutation=function(e){var r=t._playerRef.value;if(r)for(var n,i=dM(e);!(n=i()).done;){var a=n.value;if("childList"===a.type){for(var o=a.addedNodes,l=a.removedNodes,s=0;s<o.length;s++){var u=o[s];dD(u)&&d0(u,r,t.registerStateReceiver_)}for(var c=0;c<l.length;c++){var h=l[c];dD(h)&&d0(h,r,t.unregisterStateReceiver_)}}}},t._onSlotChange=function(){t._playerRef.value&&d0(t,t._playerRef.value,t.registerStateReceiver_),t._updateTextTrackMargins()},t.registerStateReceiver_=function(e){t._stateReceivers.indexOf(e)>=0||(t._stateReceivers.push(e),t.propagateStateToReceiver_(e))},t.unregisterStateReceiver_=function(e){var r,n,i,a;r=t._stateReceivers,!((n=r.indexOf(e))<0)&&(i=r,a=n,i.splice(a,1),1)&&t.removeStateFromReceiver_(e)},t._onToggleMenu=function(e){e.stopPropagation();var r=e.detail.menu,n=t._menuGroupRef.value;if(n){if(!n.getMenuById(r))return void console.error('<theoplayer-ui>: cannot find menu with ID "'+r+'"');var i=dq(e.target)?e.target:void 0;n.isMenuOpen(r)?t.closeMenu_():(t.closeMenu_(),t.openMenu_(r,i))}},t._onCloseMenu=function(e){e.stopPropagation(),t.closeMenu_()},t._onMenuChange=function(){var e=t._menuRef.value;e.removeEventListener("pointerdown",t._onMenuPointerDown),e.removeEventListener("click",t._onMenuClick),t._menuGroupRef.value.hasCurrentMenu()?(e.addEventListener("pointerdown",t._onMenuPointerDown),e.addEventListener("click",t._onMenuClick),t.menuOpened_=!0):t.menuOpened_=!1,t.updateUserIdle_()},t._onMenuPointerDown=function(e){t._pointerType=e.pointerType},t._onMenuClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;e.target===t._menuRef.value&&"mouse"===n&&t._menuGroupRef.value.closeCurrentMenu()&&e.preventDefault()},t._onEnterFullscreen=function(e){if(e.stopPropagation(),vg&&document[vg.fullscreenEnabled_]&&t[vg.requestFullscreen_]){var n,i,a=t[vg.requestFullscreen_](r({navigationUI:"hide"},null==(i=t._configuration)||null==(n=i.ui)?void 0:n.fullscreenOptions));a&&a.then&&a.then(d$,d$)}else t._player&&t._player.presentation.supportsMode("fullscreen")?t._player.presentation.requestMode("fullscreen"):t._isFullWindow||(t._isFullWindow=!0,document.documentElement.classList.add(vR),window.addEventListener("keydown",t._exitFullscreenOnEsc),t._onFullscreenChange())},t._onExitFullscreen=function(e){if(e.stopPropagation(),vg){var r=document[vg.exitFullscreen_]();r&&r.then&&r.then(d$,d$)}t._player&&"fullscreen"===t._player.presentation.currentMode&&t._player.presentation.requestMode("inline"),t._isFullWindow&&(t._isFullWindow=!1,document.documentElement.classList.remove(vR),window.removeEventListener("keydown",t._exitFullscreenOnEsc),t._onFullscreenChange())},t._onFullscreenChange=function(){var e=!1;if(void 0!==vg){var r=document[vg.fullscreenElement_];r&&(e=function e(t,r){if(!t||!r)return!1;if(t.contains(r))return!0;var n=r.getRootNode();return!!n.host&&e(t,n.host)}(r,t))}e||void 0===t._player||"fullscreen"!==t._player.presentation.currentMode||(e=!0),t._isFullWindow&&(e=!0),t.fullscreen=e},t._exitFullscreenOnEsc=function(e){e.keyCode==h4.ESCAPE&&t._onExitFullscreen(e)},t._updateAspectRatio=function(){if(void 0!==t._player){var e=t._player,r=e.videoWidth,n=e.videoHeight;r>0&&n>0?fh(t,{"--theoplayer-video-width":""+r,"--theoplayer-video-height":""+n}):fh(t,{"--theoplayer-video-width":"","--theoplayer-video-height":""})}},t._updateError=function(){var e=null==(r=t._player)?void 0:r.errorObject;t._hasError=void 0!==e;for(var r,n,i=dM(t._stateReceivers);!(n=i()).done;){var a=n.value;a[dY].indexOf("error")>=0&&(a.error=e)}},t._onPlay=function(){t._hasFirstPlay=!0,t.paused=!1,t._updateEnded()},t._onPause=function(){t.paused=!0,t._updateEnded()},t._updatePausedAndEnded=function(){t.paused=!t._player||t._player.paused,t._updateEnded()},t._updateEnded=function(){t.ended=!!t._player&&t._player.ended},t._updateStreamType=function(){void 0!==t._player&&(t.streamType=t.computeStreamType_())},t._updatePlaybackRate=function(){if(void 0!==t._player)for(var e,r=t._player.playbackRate,n=dM(t._stateReceivers);!(e=n()).done;){var i=e.value;i[dY].indexOf("playbackRate")>=0&&(i.playbackRate=r)}},t._updateMuted=function(){void 0!==t._player&&(t.muted=t._player.muted)},t._updateActiveVideoTrack=function(){if(void 0!==t._player){var e,r,n,i,a=dj(t._player.videoTracks,function(e){return e.enabled});t._activeVideoTrack!==a&&(null==(e=t._activeVideoTrack)||e.removeEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(r=t._activeVideoTrack)||r.removeEventListener("targetqualitychanged",t._updateTargetVideoQualities),t._activeVideoTrack=a,t._updateActiveVideoQuality(),t._updateTargetVideoQualities(),null==(n=t._activeVideoTrack)||n.addEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(i=t._activeVideoTrack)||i.addEventListener("targetqualitychanged",t._updateTargetVideoQualities))}},t._updateActiveVideoQuality=function(){for(var e,r,n=null==(e=t._activeVideoTrack)?void 0:e.activeQuality,i=dM(t._stateReceivers);!(r=i()).done;){var a=r.value;a[dY].indexOf("activeVideoQuality")>=0&&(a.activeVideoQuality=n)}},t._updateTargetVideoQualities=function(){for(var e,r=pW(t._activeVideoTrack),n=dM(t._stateReceivers);!(e=n()).done;){var i=e.value;i[dY].indexOf("targetVideoQualities")>=0&&(i.targetVideoQualities=r)}},t._updateCasting=function(){var e,r,n;t.casting=null!=(e=null==(n=t._player)||null==(r=n.cast)?void 0:r.casting)&&e},t._updatePlayingAd=function(){var e,r,n;t._isPlayingAd=null!=(e=null==(n=t._player)||null==(r=n.ads)?void 0:r.playing)&&e},t._onSourceChange=function(){t.closeMenu_(),t._hasFirstPlay=void 0!==t._player&&!t._player.paused},t.setUserIdle_=function(){if(clearTimeout(t._userIdleTimer),t._userIdleTimer=0,!(t.userIdleTimeout<0)&&(t._isUserActive=!1,t.updateUserIdle_(),"tv"==t.deviceType&&t.isUserIdle_())){var e=pv();null!==e&&e.blur()}},t.scheduleUserIdle_=function(){if(t.setUserActive_(),clearTimeout(t._userIdleTimer),t.userIdleTimeout<0){t._userIdleTimer=0;return}t._userIdleTimer=setTimeout(t.setUserIdle_,1e3*t.userIdleTimeout)},t._onTvKeyDown=function(e){if(h7(e.keyCode))return void t.setUserIdle_();var r=function e(t){if(dq(t)&&"none"!==getComputedStyle(t).display){if(null!==t.getAttribute(h3.TV_FOCUS))return dK(t);for(var r=dQ(t),n=0;n<r.length;n++){var i=e(r[n]);if(i)return i}}}(t),n=dK(t),i=pv();if(!i){var a=null!=r?r:n;a.length>0&&(a[0].focus(),i=a[0])}!t.isUserIdle_()&&(e.keyCode===h4.ENTER?null!==i&&(e.preventDefault(),i.click()):h8(e.keyCode)&&p_(t,n,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},t._onKeyUp=function(e){h7(e.keyCode)||t.scheduleUserIdle_()},t._onPointerUp=function(e){"mouse"===e.pointerType?t.scheduleUserIdle_():"touch"===e.pointerType&&(t.isPlayerOrMedia_(e.target)&&t._isUserActive?t.setUserIdle_():(t.isUserIdle_()&&(t._lastPointerUpTime=performance.now(),t.addEventListener("click",t._onClickAfterPointerUp,!0)),t.scheduleUserIdle_()))},t._onClickAfterPointerUp=function(e){t.removeEventListener("click",t._onClickAfterPointerUp,!0),performance.now()-t._lastPointerUpTime<50&&(e.preventDefault(),e.stopPropagation())},t._onPointerMove=function(e){"mouse"===e.pointerType&&(t.setUserActive_(),t.isPlayerOrMedia_(e.target)&&t.scheduleUserIdle_())},t._onMouseLeave=function(){t.setUserIdle_()},t._onChromeSlotTransition=function(e){"opacity"===e.propertyName&&t._updateTextTrackMargins()},t._updateTextTrackMargins=function(){var e=t._player;if(void 0!==e){var r=t._topChromeSlotRef.value&&vP(t._topChromeSlotRef.value),n=t._bottomChromeSlotRef.value&&vP(t._bottomChromeSlotRef.value);e.textTrackStyle.marginTop=null==r?void 0:r.height,e.textTrackStyle.marginBottom=null==n?void 0:n.height}},t._onPreviewTimeChange=function(e){t._previewTime=e.detail.previewTime;for(var r,n=dM(t._stateReceivers);!(r=n()).done;){var i=r.value;i[dY].indexOf("previewTime")>=0&&(i.previewTime=t._previewTime)}},t._onDestroy=function(){t._player&&(t.removePlayerListeners_(t._player),t._player=void 0,t.propagatePlayerToAllReceivers_())},t._configuration=e,t._mutationObserver=new MutationObserver(t._onMutation),"u">typeof ResizeObserver&&(t._resizeObserver=new ResizeObserver(t._updateTextTrackMargins)),t.tryInitializePlayer_(),t}i(a,n);var o=a.prototype;return o._setConfiguration=function(e){this._configuration=null!=e?e:{},this.tryInitializePlayer_()},o._setSource=function(e){this._player?this._player.source=e:this._source=e},o.connectedCallback=function(){if(n.prototype.connectedCallback.call(this),!vL){if(cH)document.adoptedStyleSheets.push(vA.styleSheet);else if(!document.getElementById(vC)){var e,t=document.createElement("style");t.id=vC;var r=window.litNonce;void 0!==r&&t.setAttribute("nonce",r),e=vA.cssText,void 0===t.textContent?t.innerText=e:t.textContent=e,document.head.appendChild(t)}vL=!0}this.hasAttribute(h3.DEVICE_TYPE)||(this.deviceType=vk()?"mobile":vw()?"tv":"desktop"),this.hasAttribute(h3.PAUSED)||(this.paused=!0),this.tryInitializePlayer_();for(var i,a,o=dM(this._stateReceivers);!(a=o()).done;){var l=a.value;this.propagateStateToReceiver_(l)}this._mutationObserver.observe(this,{childList:!0,subtree:!0}),this.shadowRoot.addEventListener("slotchange",this._onSlotChange),null==(i=this._resizeObserver)||i.observe(this),this._updateTextTrackMargins(),void 0!==vg&&(document.addEventListener(vg.fullscreenchange_,this._onFullscreenChange),document.addEventListener(vg.fullscreenerror_,this._onFullscreenChange),this._onFullscreenChange()),this.setUserIdle_(),"tv"===this.deviceType&&window.addEventListener("keydown",this._onTvKeyDown),this._isFullWindow&&window.addEventListener("keydown",this._exitFullscreenOnEsc),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("pointerup",this._onPointerUp),this.addEventListener("pointermove",this._onPointerMove),this.addEventListener("mouseleave",this._onMouseLeave)},o.tryInitializePlayer_=function(){void 0!==this._player||void 0===this._playerRef.value||(void 0!==this._configuration.license||void 0!==this._configuration.licenseUrl)&&(this._player=new t.ChromelessPlayer(this._playerRef.value,this._configuration),this._source&&(this._player.source=this._source,this._source=void 0),this._player.muted!==this.muted&&(this._player.muted=this.muted),this._player.autoplay!==this.autoplay&&(this._player.autoplay=this.autoplay),this._updateAspectRatio(),this._updateError(),this._updatePausedAndEnded(),this._updateCasting(),this.addPlayerListeners_(this._player),this.propagatePlayerToAllReceivers_(),this.dispatchEvent(pd(vE)))},o.createRenderRoot=function(){var e=n.prototype.createRenderRoot.call(this);return e.addEventListener(pO,this._onToggleMenu),e.addEventListener(fs,this._onEnterFullscreen),e.addEventListener(fu,this._onExitFullscreen),e.addEventListener(fw,this._onPreviewTimeChange),e},o.firstUpdated=function(){this._menuGroupRef.value&&!E(this._menuGroupRef,e.MenuGroup)&&customElements.upgrade(this._menuGroupRef.value),this.tryInitializePlayer_(),this._playerRef.value&&d0(this,this._playerRef.value,this.registerStateReceiver_)},o.disconnectedCallback=function(){var e;n.prototype.disconnectedCallback.call(this),null==(e=this._resizeObserver)||e.disconnect(),this._mutationObserver.disconnect(),this.shadowRoot.removeEventListener("slotchange",this._onSlotChange),void 0!==vg&&(document.removeEventListener(vg.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(vg.fullscreenerror_,this._onFullscreenChange)),window.removeEventListener("keydown",this._onTvKeyDown),window.removeEventListener("keydown",this._exitFullscreenOnEsc),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("pointerup",this._onPointerUp),this.removeEventListener("click",this._onClickAfterPointerUp,!0),this.removeEventListener("pointermove",this._onPointerMove),this.removeEventListener("mouseleave",this._onMouseLeave),this._player&&(this.removePlayerListeners_(this._player),this._player.destroy(),this._player=void 0,this.propagatePlayerToAllReceivers_()),this._stateReceivers.length=0},o.propagateStateToReceiver_=function(e){var t,r=e[dY];r.indexOf("player")>=0&&(e.player=this._player),r.indexOf("fullscreen")>=0&&(e.fullscreen=this.fullscreen),r.indexOf("deviceType")>=0&&(e.deviceType=this.deviceType),r.indexOf("streamType")>=0&&(e.streamType=this.streamType),void 0!==this._player&&(r.indexOf("playbackRate")>=0&&(e.playbackRate=this._player.playbackRate),r.indexOf("error")>=0&&(e.error=this._player.errorObject),r.indexOf("activeVideoQuality")>=0&&(e.activeVideoQuality=null==(t=this._activeVideoTrack)?void 0:t.activeQuality),r.indexOf("targetVideoQualities")>=0&&(e.targetVideoQualities=pW(this._activeVideoTrack))),r.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)},o.propagatePlayerToAllReceivers_=function(){for(var e,t=dM(this._stateReceivers);!(e=t()).done;){var r=e.value;r[dY].indexOf("player")>=0&&(r.player=this._player)}},o.removeStateFromReceiver_=function(e){e[dY].indexOf("player")>=0&&(e.player=void 0)},o.openMenu_=function(e,t){var r=pf.fromRect(this._topChromeRef.value.getBoundingClientRect()),n=pf.fromRect(this._bottomChromeRef.value.getBoundingClientRect()),i=!0,a=!0;if(void 0!==t){var o=pf.fromRect(this.getBoundingClientRect()),l=pf.fromRect(t.getBoundingClientRect());o.width>0&&o.height>0&&(i=l.top>=o.top+o.height/2,a=l.left>=o.left+o.width/2)}this._menuGroupRef.value.openMenu(e,t),this._menuOpener=t,fh(this,{"--theoplayer-menu-offset-top":""+Math.round(r.height)+"px","--theoplayer-menu-offset-bottom":""+Math.round(n.height)+"px","--theoplayer-menu-margin-top":i?"auto":"0","--theoplayer-menu-margin-bottom":i?"0":"auto","--theoplayer-menu-margin-left":a?"auto":"0","--theoplayer-menu-margin-right":a?"0":"auto"})},o.closeMenu_=function(){var e,t,r;null==(t=this._menuGroupRef.value)||null==(e=t.closeMenu)||e.call(t),null==(r=this._menuOpener)||r.focus(),this._menuOpener=void 0},o.computeStreamType_=function(){var e=this.source,t=null!=(n=null==e?void 0:e.streamType)?n:this.getAttribute(h3.STREAM_TYPE),r=null==(i=this._player)?void 0:i.duration;if(void 0===r||isNaN(r))return t||((null==e?void 0:e.dvr)?"dvr":"vod");if(r!==1/0)return"vod";if("live"===t||"dvr"===t)return t;var n,i,a,o=this.dvrThreshold;if(o<=0)return"dvr";var l=null==(a=this._player)?void 0:a.seekable;return l&&l.length>0&&l.end(l.length-1)-l.start(0)>=o?"dvr":"live"},o.isUserIdle_=function(){return!this._isUserActive&&!this.paused&&!this.casting&&!!this._menuGroupRef.value&&!this._menuGroupRef.value.hasCurrentMenu()},o.setUserActive_=function(){clearTimeout(this._userIdleTimer),this._isUserActive=!0,this.updateUserIdle_()},o.updateUserIdle_=function(){this.userIdle=this.isUserIdle_()},o.isPlayerOrMedia_=function(e){return e===this||this._playerRef.value.contains(e)},o.addPlayerListeners_=function(e){var t,r,n;e.addEventListener("destroy",this._onDestroy),e.addEventListener("resize",this._updateAspectRatio),e.addEventListener(["error","sourcechange","emptied"],this._updateError),e.addEventListener("volumechange",this._updateMuted),e.addEventListener("play",this._onPlay),e.addEventListener("pause",this._onPause),e.addEventListener(["ended","emptied"],this._updatePausedAndEnded),e.addEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.addEventListener("ratechange",this._updatePlaybackRate),e.addEventListener("sourcechange",this._onSourceChange),e.addEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd),null==(t=e.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.addEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.addEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.addEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd)},o.removePlayerListeners_=function(e){e.removeEventListener("destroy",this._onDestroy),e.removeEventListener("resize",this._updateAspectRatio),e.removeEventListener(["error","sourcechange","emptied"],this._updateError),e.removeEventListener("volumechange",this._updateMuted),e.removeEventListener("play",this._onPlay),e.removeEventListener("pause",this._onPause),e.removeEventListener(["ended","emptied"],this._updatePausedAndEnded),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.removeEventListener("ratechange",this._updatePlaybackRate),e.removeEventListener("sourcechange",this._onSourceChange),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd);try{var t,r,n;null==(t=e.theoLive)||t.removeEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.removeEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.removeEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.removeEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd)}catch(e){}},o.render=function(){return hx(vS(),dE(this._playerRef),dE(this._topChromeRef),dE(this._topChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,dE(this._bottomChromeRef),dE(this._bottomChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,dE(this._menuRef),dE(this._menuGroupRef),this._onCloseMenu,this._onMenuChange)},v(a,[{key:"player",get:function(){return this._player}},{key:"configuration",get:function(){return this._configuration},set:function(e){this._setConfiguration(e)}},{key:"source",get:function(){return this._player?this._player.source:this._source},set:function(e){this._setSource(e)}},{key:"fluid",get:function(){return this._fluid},set:function(e){this._fluid=e,this._updateAspectRatio()}},{key:"muted",get:function(){return this._muted},set:function(e){this._muted=e,this._player&&this._player.muted!==e&&(this._player.muted=e)}},{key:"autoplay",get:function(){return this._autoplay},set:function(e){this._autoplay=e,this._player&&this._player.autoplay!==e&&(this._player.autoplay=e)}},{key:"fullscreen",get:function(){return this._fullscreen},set:function(e){if(this._fullscreen!==e){this._fullscreen=e;for(var t,r=dM(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dY].indexOf("fullscreen")>=0&&(n.fullscreen=e)}}}},{key:"paused",get:function(){return this._paused},set:function(e){this._paused=e,this._updateTextTrackMargins(),this.updateUserIdle_()}},{key:"ended",get:function(){return this._ended},set:function(e){this._ended=e}},{key:"casting",get:function(){return this._casting},set:function(e){this._casting=e,this._updateTextTrackMargins(),this.updateUserIdle_()}},{key:"userIdle",get:function(){return this._userIdle},set:function(e){this._userIdle!==e&&(this._userIdle=e,this._updateTextTrackMargins(),this.dispatchEvent(pd(vx)))}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){if(this._deviceType!==e){this._deviceType=e,this.mobile="mobile"===e,this.tv="tv"===e,window.removeEventListener("keydown",this._onTvKeyDown),"tv"===e&&window.addEventListener("keydown",this._onTvKeyDown);for(var t,r=dM(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dY].indexOf("deviceType")>=0&&(n.deviceType=e)}}}},{key:"mobile",get:function(){return dr(this,sV)[sV]},set:function(e){dr(this,sV)[sV]=e}},{key:"tv",get:function(){return dr(this,sH)[sH]},set:function(e){dr(this,sH)[sH]=e}},{key:"streamType",get:function(){return this._streamType},set:function(e){if(this._streamType!==e){this._streamType=e;for(var t,r=dM(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dY].indexOf("streamType")>=0&&(n.streamType=e)}var i=pd("theoplayerstreamtypechange",{bubbles:!0,composed:!0,detail:{streamType:e}});this.dispatchEvent(i)}}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e,this._updateStreamType()}},{key:"_hasFirstPlay",get:function(){return dr(this,sG)[sG]},set:function(e){dr(this,sG)[sG]=e}},{key:"_isPlayingAd",get:function(){return dr(this,sQ)[sQ]},set:function(e){dr(this,sQ)[sQ]=e}},{key:"_hasError",get:function(){return dr(this,sW)[sW]},set:function(e){dr(this,sW)[sW]=e}},{key:"_isFullWindow",get:function(){return dr(this,sK)[sK]},set:function(e){dr(this,sK)[sK]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){this._menuOpened!==e&&(this._menuOpened=e,dG(this,h3.MENU_OPENED,e))}}]),a}(hj),uh=(ub=(um=o(sZ,[[s0,4,"configuration"],[s1,4,"source"],[s2,4,"fluid"],[s5,4,"muted"],[s3,4,"autoplay"],[s4,4,"fullscreen"],[s8,4,"paused"],[s7,4,"ended"],[s6,4,"casting"],[s9,4,"userIdle"],[ue,4,"userIdleTimeout"],[ut,4,"deviceType"],[ur,1,"mobile"],[un,1,"tv"],[ui,4,"streamType"],[ua,4,"dvrThreshold"],[uo,1,"_hasFirstPlay"],[ul,1,"_isPlayingAd"],[us,1,"_hasError"],[uu,1,"_isFullWindow"],[uc,4,"menuOpened_"]],[sJ],hj)).e)[0],ud=ub[1],up=ub[2],uy=ub[3],uf=ub[4],uv=ub[5],u_=ub[6],e.UIContainer=(ug=um.c)[0],sX=ug[1],sY);var vM=cK(vO());function vB(){var e=a(["<theoplayer-ui ",' .configuration="','" .fluid="','" .muted="','" .autoplay="','" .deviceType="','" .streamType="','" .userIdleTimeout="','" .dvrThreshold="','" @theoplayerready="','" @theoplayeruseridlechange="','" @theoplayerstreamtypechange="','">',"</theoplayer-ui>"]);return vB=function(){return e},e}function vI(){var e=a(['<theoplayer-control-bar slot="top-chrome" part="top-chrome"><div part="title" ad-hidden style="','"><slot name="title" @slotchange="','"></slot></div><span class="theoplayer-spacer"></span><theoplayer-language-menu-button menu="language-menu" mobile-only ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button mobile-only ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button mobile-only ad-hidden></theoplayer-chromecast-button><slot name="top-control-bar"></slot><theoplayer-settings-menu-button menu="settings-menu" mobile-only ad-hidden></theoplayer-settings-menu-button><theoplayer-ad-clickthrough-button ad-only></theoplayer-ad-clickthrough-button></theoplayer-control-bar><theoplayer-loading-indicator slot="centered-loading" no-auto-hide></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><slot name="centered-chrome"><theoplayer-seek-button part="seek-back-button seek-button center-button" seek-offset="-10" mobile-only ad-hidden></theoplayer-seek-button><theoplayer-play-button part="center-play-button play-button center-button"></theoplayer-play-button><theoplayer-seek-button part="seek-forward-button seek-button center-button" seek-offset="10" mobile-only ad-hidden></theoplayer-seek-button></slot></div><div slot="middle-chrome" part="middle-chrome"><theoplayer-chromecast-display></theoplayer-chromecast-display></div><div part="bottom-chrome"><theoplayer-control-bar part="ad-chrome" ad-only><theoplayer-ad-display></theoplayer-ad-display><theoplayer-ad-countdown></theoplayer-ad-countdown><span class="theoplayer-spacer"></span><theoplayer-ad-skip-button></theoplayer-ad-skip-button></theoplayer-control-bar><theoplayer-control-bar><theoplayer-play-button part="play-button" mobile-hidden ad-only class="theoplayer-ad-control"></theoplayer-play-button><theoplayer-mute-button part="mute-button" ad-only class="theoplayer-ad-control"></theoplayer-mute-button><theoplayer-time-range part="time-range" show-ad-markers tv-focus .inert="','" class="theoplayer-ad-control" style="','"></theoplayer-time-range><theoplayer-chromecast-button tv-hidden ad-only class="theoplayer-ad-control"></theoplayer-chromecast-button><theoplayer-fullscreen-button ad-only class="theoplayer-ad-control"></theoplayer-fullscreen-button></theoplayer-control-bar><theoplayer-control-bar ad-hidden><theoplayer-play-button part="play-button" mobile-hidden></theoplayer-play-button><theoplayer-mute-button part="mute-button" tv-hidden></theoplayer-mute-button><theoplayer-volume-range part="volume-range" mobile-hidden tv-hidden></theoplayer-volume-range><theoplayer-live-button part="live-button" live-only ad-hidden></theoplayer-live-button><theoplayer-time-display show-duration remaining-when-live></theoplayer-time-display><span class="theoplayer-spacer" style="pointer-events:auto"></span><theoplayer-language-menu-button menu="language-menu" mobile-hidden ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button tv-hidden mobile-hidden ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button tv-hidden mobile-hidden ad-hidden></theoplayer-chromecast-button><slot name="bottom-control-bar"></slot><theoplayer-settings-menu-button menu="settings-menu" mobile-hidden ad-hidden></theoplayer-settings-menu-button><theoplayer-fullscreen-button part="fullscreen-button" tv-hidden></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-language-menu id="language-menu" slot="menu" hidden></theoplayer-language-menu><theoplayer-settings-menu id="settings-menu" slot="menu" hidden></theoplayer-settings-menu><slot name="error" slot="error"><theoplayer-error-display></theoplayer-error-display></slot><slot name="menu" slot="menu"></slot>']);return vI=function(){return e},e}function vN(){var e=a(["[part=icon]{display:inline-block;position:relative}[part=warning-icon]{display:none;height:60%;min-width:60%;position:absolute;right:-10%;top:0;width:60%}[part=warning-icon] svg{fill:red;fill:var(--theolive-bad-network-mode,red)}"]);return vN=function(){return e},e}uO=hV("theoplayer-default-ui"),uB=hW(),L={slot:"title",flatten:!0},uI=hQ({reflect:!1,attribute:h3.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),uN=hQ({reflect:!1,attribute:h3.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),u$=hQ({reflect:!0,type:Boolean,attribute:h3.FLUID}),uD=hQ({reflect:!0,type:Boolean,attribute:h3.MUTED}),uq=hQ({reflect:!0,type:Boolean,attribute:h3.AUTOPLAY}),uF=hQ({reflect:!0,type:String,attribute:h3.STREAM_TYPE}),uU=hQ({reflect:!0,type:Number,attribute:h3.USER_IDLE_TIMEOUT,useDefault:!0}),uj=hQ({reflect:!0,type:String,attribute:h3.DEVICE_TYPE}),uz=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.MOBILE}),uV=hQ({reflect:!0,state:!0,type:Boolean,attribute:h3.TV}),uH=hQ({reflect:!0,type:Number,attribute:h3.DVR_THRESHOLD,useDefault:!0}),uG=hW(),e.DefaultUI=void 0,new(uP=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vM],t.shadowRootOptions=r({},hj.shadowRootOptions,{delegatesFocus:!0}),t.READY_EVENT=vE,uM(),t}return i(t,e),t}(l),uk=di("____private__timeRangeInert_1"),uw=di("____private_titleSlotNodes_2"),ux=di("____private_fluid_3"),uE=di("____private_muted_4"),uT=di("____private_autoplay_5"),uA=di("____private_streamType_6"),uC=di("____private_mobile_7"),uL=di("____private_tv_8"),uS=di("____private__hasTitle_9"),uR=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this)||this,uk,{writable:!0,value:void 0}),Object.defineProperty(r,uw,{writable:!0,value:void 0}),Object.defineProperty(r,ux,{writable:!0,value:void 0}),Object.defineProperty(r,uE,{writable:!0,value:void 0}),Object.defineProperty(r,uT,{writable:!0,value:void 0}),Object.defineProperty(r,uA,{writable:!0,value:void 0}),Object.defineProperty(r,uC,{writable:!0,value:void 0}),Object.defineProperty(r,uL,{writable:!0,value:void 0}),Object.defineProperty(r,uS,{writable:!0,value:void 0}),u2(r),r._uiRef=dk(),dr(r,uk)[uk]=uQ(r,!1),r._timeRangeInertTimeout=0,r._appliedExtensions=!1,r._configuration={},r._source=void 0,r._userIdleTimeout=void 0,r._deviceType="desktop",r._dvrThreshold=60,dr(r,uw)[uw]=uW(r),dr(r,ux)[ux]=uK(r,!1),dr(r,uE)[uE]=uZ(r,!1),dr(r,uT)[uT]=uY(r,!1),dr(r,uA)[uA]=uJ(r,"vod"),dr(r,uC)[uC]=uX(r,!1),dr(r,uL)[uL]=u0(r,!1),dr(r,uS)[uS]=u1(r,!1),r._updateStreamType=function(){r._uiRef.value&&(r.streamType=r._uiRef.value.streamType)},r._updateUserIdle=function(){clearTimeout(r._timeRangeInertTimeout),r.userIdle?r._timeRangeInert=!0:r._timeRangeInertTimeout=setTimeout(function(){r._timeRangeInert=!1},50),r.dispatchEvent(pd(vx))},r._onTitleSlotChange=function(){r._hasTitle=r.titleSlotNodes.length>0},r.configuration=t,r}i(t,e);var n=t.prototype;return n.connectedCallback=function(){if(e.prototype.connectedCallback.call(this),this.hasAttribute(h3.DEVICE_TYPE)||(this.deviceType=vk()?"mobile":vw()?"tv":"desktop"),!this._appliedExtensions){this._appliedExtensions=!0;for(var t,r=dM(v_);!(t=r()).done;)(0,t.value)(this)}this._onTitleSlotChange()},n.disconnectedCallback=function(){clearTimeout(this._timeRangeInertTimeout)},n.firstUpdated=function(){this._source&&(this._uiRef.value.source=this._source,this._source=void 0)},n._onUiReady=function(){this.dispatchEvent(pd(vE))},n.render=function(){return hx(vB(),dE(this._uiRef),this.configuration,this.fluid,this.muted,this.autoplay,this.deviceType,this.streamType,this.userIdleTimeout,this.dvrThreshold,this._onUiReady,this._updateUserIdle,this._updateStreamType,this.renderUiContent())},n.renderUiContent=function(){return hx(vI(),f_({display:this._hasTitle?"":"none"}),this._onTitleSlotChange,this._timeRangeInert,f_({display:"live"===this.streamType?"none":""}))},v(t,[{key:"_timeRangeInert",get:function(){return dr(this,uk)[uk]},set:function(e){dr(this,uk)[uk]=e}},{key:"titleSlotNodes",get:function(){return dr(this,uw)[uw]},set:function(e){dr(this,uw)[uw]=e}},{key:"player",get:function(){var e;return null==(e=this._uiRef.value)?void 0:e.player}},{key:"configuration",get:function(){return this._configuration},set:function(e){var t;this._configuration=r({},e,{ads:r({},null!=(t=e.ads)?t:{},{showCountdown:!1})})}},{key:"source",get:function(){return this._uiRef.value?this._uiRef.value.source:this._source},set:function(e){this._uiRef.value?(this._source=void 0,this._uiRef.value.source=e):this._source=e}},{key:"fluid",get:function(){return dr(this,ux)[ux]},set:function(e){dr(this,ux)[ux]=e}},{key:"muted",get:function(){return dr(this,uE)[uE]},set:function(e){dr(this,uE)[uE]=e}},{key:"autoplay",get:function(){return dr(this,uT)[uT]},set:function(e){dr(this,uT)[uT]=e}},{key:"streamType",get:function(){return dr(this,uA)[uA]},set:function(e){dr(this,uA)[uA]=e}},{key:"userIdle",get:function(){return!!this._uiRef.value&&this._uiRef.value.userIdle}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){this._deviceType!==e&&(this._deviceType=e,this.mobile="mobile"===e,this.tv="tv"===e)}},{key:"mobile",get:function(){return dr(this,uC)[uC]},set:function(e){dr(this,uC)[uC]=e}},{key:"tv",get:function(){return dr(this,uL)[uL]},set:function(e){dr(this,uL)[uL]=e}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e}},{key:"_hasTitle",get:function(){return dr(this,uS)[uS]},set:function(e){dr(this,uS)[uS]=e}}]),t}(hj),uQ=(u3=(u5=o(uR,[[uB,1,"_timeRangeInert"],[function(e,t){var r=(null!=L?L:{}).slot,n="slot"+(r?"[name="+r+"]":":not([name])");return hK(e,t,{get:function(){var e,t,r=null==(t=this.renderRoot)?void 0:t.querySelector(n);return null!=(e=null==r?void 0:r.assignedNodes(L))?e:[]}})},1,"titleSlotNodes"],[uI,4,"configuration"],[uN,4,"source"],[u$,1,"fluid"],[uD,1,"muted"],[uq,1,"autoplay"],[uF,1,"streamType"],[uU,4,"userIdleTimeout"],[uj,4,"deviceType"],[uz,1,"mobile"],[uV,1,"tv"],[uH,4,"dvrThreshold"],[uG,1,"_hasTitle"]],[uO],hj)).e)[0],uW=u3[1],uK=u3[2],uZ=u3[3],uY=u3[4],uJ=u3[5],uX=u3[6],u0=u3[7],u1=u3[8],u2=u3[9],e.DefaultUI=(u4=u5.c)[0],uM=u4[1],uP);var v$=cK(vN());function vD(){var e=a(['<span part="icon">','<span part="warning-icon" style="','">',"</span></span>"]);return vD=function(){return e},e}u9=hV("theolive-bad-network-button"),ce=dX(["player"]),cn=hW(),ci=hQ({reflect:!1,attribute:!1}),new(u6=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuButton.styles,[v$]),ct(),r}return i(r,t),r}(l),u8=di("____private__inBadNetworkMode_1"),u7=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,u8,{writable:!0,value:void 0}),dr(t,u8)[u8]=(co(t),ca(t,!1)),t.handleEnterBadNetworkMode_=function(){t._inBadNetworkMode=!0},t.handleExitBadNetworkMode_=function(){t._inBadNetworkMode=!1},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(h3.ARIA_LABEL)||this.setAttribute(h3.ARIA_LABEL,"open settings menu")},r.render=function(){var e={display:this._inBadNetworkMode?"":"none"};return hx(vD(),dR(fn),f_(e),dR('<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48">\n <path d="m40 936 440-760 440 760H40Zm444.175-117q12.825 0 21.325-8.675 8.5-8.676 8.5-21.5 0-12.825-8.675-21.325-8.676-8.5-21.5-8.5-12.825 0-21.325 8.675-8.5 8.676-8.5 21.5 0 12.825 8.675 21.325 8.676 8.5 21.5 8.5ZM454 708h60V484h-60v224Z"/>\n</svg>'))},v(t,[{key:"_inBadNetworkMode",get:function(){return dr(this,u8)[u8]},set:function(e){dr(this,u8)[u8]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)))}}]),t}(cr=e.MenuButton),ca=(cs=(cl=o(u7,[[cn,1,"_inBadNetworkMode"],[ci,4,"player"]],[u9,ce],cr)).e)[0],co=cs[1],(cu=cl.c)[0],ct=cu[1],u6),cc=dX(["player"]);var vq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._badNetworkMode=!1,t.handleEnterBadNetworkMode_=function(){t._badNetworkMode=!0,t.handleEnterBadNetworkMode()},t.handleExitBadNetworkMode_=function(){t._badNetworkMode=!1,t.handleExitBadNetworkMode()},t}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){},r.handleExitBadNetworkMode=function(){},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._badNetworkMode=null!=(t=null==(r=this._theoLive)?void 0:r.badNetworkMode)&&t,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this.handlePlayer())}}]),t}(ch=e.RadioButton);function vF(){var e=a(["<slot>High Quality</slot>"]);return vF=function(){return e},e}cd=(cp=o(vq,[],[cc],ch).c)[0],(0,cp[1])(),cy=hV("theolive-automatic-quality-selector");var vU=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)!==!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!1)},r.render=function(){return hx(vF())},t}(cd);function vj(){var e=a(["<slot>Low Quality</slot>"]);return vj=function(){return e},e}(cf=o(vU,[],[cy],cd).c)[0],(0,cf[1])(),cv=hV("theolive-bad-network-quality-selector");var vz=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)===!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!0)},r.render=function(){return hx(vj())},t}(cd);function vV(){var e=a(["<theoplayer-radio-group ",' @change="','"><theolive-automatic-quality-selector></theolive-automatic-quality-selector><theolive-bad-network-quality-selector></theolive-bad-network-quality-selector></theoplayer-radio-group>']);return vV=function(){return e},e}function vH(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-family:Helvetica,Arial,sans-serif;position:relative;width:100%}:host([hidden]){display:none!important}theoplayer-ui{--theoplayer-loading-delay:0.1s;display:block;font-family:Helvetica,Arial,sans-serif;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}theoplayer-menu::part(heading){display:none!important}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *{--theoplayer-control-height:48px}[part=middle-chrome]{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;justify-content:flex-end;pointer-events:none}[part=bottom-chrome],[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;position:relative}[part=bottom-chrome]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:rgba(0,0,0,.5)}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:12px;--theoplayer-range-track-pointer-background:hsla(0,0%,100%,.5)}:host(:not([mobile])) [mobile-only],:host([mobile]) [mobile-hidden]{display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([has-first-play]) [part=centered-chrome] :not(theoplayer-play-button),theoplayer-ui:not([has-first-play]) theoplayer-control-bar,theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui[playing-ad] [ad-hidden]{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part=centered-chrome] theoplayer-play-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:70px;overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display{padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}p{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:20px;font-size:var(--theoplayer-text-font-size,20px)}theolive-bad-network-button{display:none;display:var(--theolive-bad-network-button-display,none)}theoplayer-settings-menu-button{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theolive-quality-button-display,inline-flex)}']);return vH=function(){return e},e}(c_=o(vz,[],[cv],cd).c)[0],(0,c_[1])(),cg=hV("theolive-bad-network-menu"),new(cb=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pH],ck(),t}return i(t,e),t}(l),cm=function(t){function r(){var e;return e=t.apply(this,arguments)||this,e._radioGroupRef=dk(),e._onChange=function(){e.dispatchEvent(new Event("change",{bubbles:!0}))},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){this._radioGroupRef.value&&!E(this._radioGroupRef.value,e.RadioGroup)&&customElements.upgrade(this._radioGroupRef.value)},n.render=function(){return hx(vV(),dE(this._radioGroupRef),this._onChange)},r}(hj),(cw=o(cm,[],[cg],hj).c)[0],ck=cw[1],cb);var vG=cK(vH());function vQ(){var e=a(['<p id="loading-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="loading-announcement">Loading...</slot></p><p id="offline-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="offline-announcement">The live stream hasn\'t started yet</slot></p><p id="announcement" no-auto-hide slot="centered-chrome" style="','">','</p><theoplayer-loading-indicator slot="centered-loading" no-auto-hide part="loading-indicator"></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><theoplayer-play-button part="center-play-button play-button center-button" style="','"></theoplayer-play-button></div><div part="bottom-chrome"><theoplayer-control-bar><theoplayer-play-button mobile-hidden part="play-button" style="','"></theoplayer-play-button><theoplayer-mute-button part="mute-button"></theoplayer-mute-button><theoplayer-volume-range mobile-hidden part="volume-range"></theoplayer-volume-range><theoplayer-live-button ad-hidden live-only part="live-button"></theoplayer-live-button><span class="theoplayer-spacer"></span><theoplayer-settings-menu-button ad-hidden menu="all-quality-menu" part="quality-button"></theoplayer-settings-menu-button><theolive-bad-network-button ad-hidden menu="quality-menu" part="theolive-bad-network-button"></theolive-bad-network-button><theoplayer-fullscreen-button part="fullscreen-button"></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-menu id="quality-menu" slot="menu" menu-close-on-input hidden><theolive-bad-network-menu></theolive-bad-network-menu></theoplayer-menu><theoplayer-menu id="all-quality-menu" slot="menu" menu-close-on-input hidden><theoplayer-quality-radio-group></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-error-display slot="error" part="error-display" style="','"></theoplayer-error-display>']);return vQ=function(){return e},e}cS=hV("theolive-default-ui"),cO=hW(),cM=hW(),cB=hW(),cI=hW(),e.THEOliveDefaultUI=void 0,new(cL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vG],cR(),t}return i(t,e),t}(l),cx=di("____private__announcementType_1"),cE=di("____private__announcementMessage_2"),cT=di("____private__hidePlayButton_3"),cA=di("____private__hideErrorDisplay_4"),cC=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this,t)||this,cx,{writable:!0,value:void 0}),Object.defineProperty(r,cE,{writable:!0,value:void 0}),Object.defineProperty(r,cT,{writable:!0,value:void 0}),Object.defineProperty(r,cA,{writable:!0,value:void 0}),dr(r,cx)[cx]=(cF(r),cN(r,"")),dr(r,cE)[cE]=c$(r,""),dr(r,cT)[cT]=cD(r,!1),dr(r,cA)[cA]=cq(r,!1),r.onLoadChannelStart=function(){r.showMessage_("loading",void 0)},r.onChannelOffline=function(){r.showMessage_("offline",void 0)},r.onChannelLoaded=function(){r.hidePlayerError(),r.hideMessage_()},r.onError=function(e){var t=e.errorObject.code;t<13e3||t>=14e3?r.showMessage_("offline",void 0):(r.stopHidingPlayerError(),r.hideMessage_())},r}i(t,e);var r=t.prototype;return r._onUiReady=function(){e.prototype._onUiReady.call(this);var t,r,n,i=this.player;i&&(null==(t=i.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this.onLoadChannelStart),null==(r=i.theoLive)||r.addEventListener(["distributionoffline","publicationoffline"],this.onChannelOffline),null==(n=i.theoLive)||n.addEventListener(["endpointloaded","publicationloaded"],this.onChannelLoaded),i.addEventListener("error",this.onError))},r.hidePlayerError=function(){var e;null==(e=this._uiRef.value)||e.removeAttribute(h3.HAS_ERROR),this._hideErrorDisplay=!0},r.stopHidingPlayerError=function(){var e;null==(e=this._uiRef.value)||e.setAttribute(h3.HAS_ERROR,""),this._hideErrorDisplay=!1},r.showMessage_=function(e,t){this.hidePlayerError(),this._announcementType=e,this._announcementMessage=null!=t?t:"",this._hidePlayButton=!0},r.hideMessage_=function(){this._announcementType="",this._announcementMessage="",this._hidePlayButton=!1},r.renderUiContent=function(){var e={display:"loading"===this._announcementType?"":"none"},t={display:"offline"===this._announcementType?"":"none"},r={display:"announcement"===this._announcementType?"":"none"},n={display:this._hidePlayButton?"none":""},i={display:this._hideErrorDisplay?"none":""};return hx(vQ(),f_(e),f_(t),f_(r),this._announcementMessage,f_(n),f_(n),f_(i))},v(t,[{key:"_announcementType",get:function(){return dr(this,cx)[cx]},set:function(e){dr(this,cx)[cx]=e}},{key:"_announcementMessage",get:function(){return dr(this,cE)[cE]},set:function(e){dr(this,cE)[cE]=e}},{key:"_hidePlayButton",get:function(){return dr(this,cT)[cT]},set:function(e){dr(this,cT)[cT]=e}},{key:"_hideErrorDisplay",get:function(){return dr(this,cA)[cA]},set:function(e){dr(this,cA)[cA]=e}}]),t}(cP=e.DefaultUI),cN=(cj=(cU=o(cC,[[cO,1,"_announcementType"],[cM,1,"_announcementMessage"],[cB,1,"_hidePlayButton"],[cI,1,"_hideErrorDisplay"]],[cS],cP)).e)[0],c$=cj[1],cD=cj[2],cq=cj[3],cF=cj[4],e.THEOliveDefaultUI=(cz=cU.c)[0],cR=cz[1],cL),e.Attribute=h3,e.CastButton=fq,e.ColorStops=fy,e.ExtensionSlot=vv,e.StateReceiverMixin=function(e,t){var r,n,a=dX(t),l=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(e);return r=(n=o(l,[],[a],e).c)[0],(0,n[1])(),r},e.buttonTemplate=dt,e.linkButtonTemplate=function(e,t){return void 0===t&&(t=""),dt("<a>"+e+"</a>",t)},e.menuGroupTemplate=function(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e},e.menuTemplate=function(e,t,r){return void 0===r&&(r=""),"<style>"+r+'</style><div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>'+e+'</div><div part="content">'+t+"</div>"},e.registerExtension=function(e){v_.push(e)},e.stateReceiver=dX,e.version="2.1.3"},"object"==typeof exports&&"u">typeof module?t(exports,require("theoplayer/chromeless")):"function"==typeof define&&define.amd?define(["exports","theoplayer/chromeless"],t):t((e="u">typeof globalThis?globalThis:e||self).THEOplayerUI={},e.THEOplayer);
|
|
1
|
+
var e,t;e=this,t=function(e,t){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}function a(e,t){return t||(t=e.slice(0)),e.raw=t,e}function o(e,t,r,n){function i(e,t){return function(r){(function(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")})(t,"addInitializer"),l(r,"An initializer"),e.push(r)}}function a(e,t,r,n,a,o,l,s,u){switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var c,h,d,p={kind:c,name:l?"#"+t:t,static:o,private:l,metadata:s},y={v:!1};if(p.addInitializer=i(n,y),0===a?l?(h=r.get,d=r.set):(h=function(){return this[t]},d=function(e){this[t]=e}):2===a?h=function(){return r.value}:((1===a||3===a)&&(h=function(){return r.get.call(this)}),(1===a||4===a)&&(d=function(e){r.set.call(this,e)})),h){var f=h;h=function(e){return 0==arguments.length&&(e=this),f.call(e)}}if(d){var v=d;d=function(e,t){return 1==arguments.length&&(t=e,e=this),v.call(e,t)}}if(l)p.access=h&&d?{get:h,set:d}:h?{get:h}:{set:d};else{var _=function(e){return t in e};p.access=h&&d?{has:_,get:h,set:d}:h?{has:_,get:h}:{has:_,set:d}}var g=e(u,p);return y.v=!0,g}function l(e,t){if("function"!=typeof e)throw TypeError(t+" must be a function")}function s(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&l(t.get,"accessor.get"),void 0!==t.set&&l(t.set,"accessor.set"),void 0!==t.init&&l(t.init,"accessor.init")}else if("function"!==r)throw TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function u(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}function c(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}return(o=function(e,t,r,n){if(void 0!==n)var o=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var l=Object.create(void 0===o?null:o),h=function(e,t,r){for(var n=[],i=new Map,o=new Map,l=0;l<t.length;l++){var c,h,d,p,y=t[l];if(Array.isArray(y)){var f=y[1],v=y[2],_=y.length>3,g=f>=5;if(g?(d=e,f-=5,p=h=h||[]):(d=e.prototype,p=c=c||[]),0!==f&&!_){var b=g?o:i,m=b.get(v)||0;if(!0===m||3===m&&4!==f||4===m&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+v);!m&&f>2?b.set(v,f):b.set(v,!0)}!function(e,t,r,n,i,o,l,u,c){var h,d,p,y,f,v,_=r[0];if(l?h=0===i||1===i?{get:r[3],set:r[4]}:3===i?{get:r[3]}:4===i?{set:r[3]}:{value:r[3]}:0!==i&&(h=Object.getOwnPropertyDescriptor(t,n)),1===i?p={get:h.get,set:h.set}:2===i?p=h.value:3===i?p=h.get:4===i&&(p=h.set),"function"==typeof _)void 0!==(y=a(_,n,h,u,i,o,l,c,p))&&(s(i,y),0===i?d=y:1===i?(d=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y);else for(var g=_.length-1;g>=0;g--)void 0!==(y=a(_[g],n,h,u,i,o,l,c,p))&&(s(i,y),0===i?v=y:1===i?(v=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y,void 0!==v&&(void 0===d?d=v:"function"==typeof d?d=[d,v]:d.push(v)));if(0===i||1===i){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var b=d;d=function(e,t){for(var r=t,n=0;n<b.length;n++)r=b[n].call(e,r);return r}}else{var m=d;d=function(e,t){return m.call(e,t)}}e.push(d)}0!==i&&(1===i?(h.get=p.get,h.set=p.set):2===i?h.value=p:3===i?h.get=p:4===i&&(h.set=p),l?1===i?(e.push(function(e,t){return p.get.call(e,t)}),e.push(function(e,t){return p.set.call(e,t)})):2===i?e.push(p):e.push(function(e,t){return p.call(e,t)}):Object.defineProperty(t,n,h))}(n,d,y,v,f,g,_,p,r)}}return u(n,c),u(n,h),n}(e,t,l);return r.length||c(e,l),{e:h,get c(){return function(e,t,r){if(t.length>0){for(var n=[],a=e,o=e.name,l=t.length-1;l>=0;l--){var u={v:!1},h=t[l](a,{kind:"class",name:o,addInitializer:i(n,u),metadata:r});u.v=!0,void 0!==h&&(s(10,h),a=h)}return[c(a,r),function(){for(var e=0;e<n.length;e++)n[e].call(a)}]}}(e,r,l)}}})(e,t,r,n)}function l(e){return e}function s(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){r(e);return}l.done?t(s):Promise.resolve(s).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){s(a,n,i,o,l,"next",e)}function l(e){s(a,n,i,o,l,"throw",e)}o(void 0)})}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function d(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function p(e,t,r){t=c(t);var n=h()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r);if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,l=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(l)throw n}}return a}}(e,t)||g(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t,r){return(k=h()?Reflect.construct:function(e,t,r){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return r&&n(a,r.prototype),a}).apply(null,arguments)}function w(e){var t="function"==typeof Map?new Map:void 0;return(w=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return k(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n(r,e)})(e)}function x(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){var u=[l,s];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function T(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var E,A,S,L,C,P,R,O,M,B,N,I,D,F,$,U,q,j,z,V,H,G,Q,W,K,Z,Y,J,X,ee,et,er,en,ei,ea,eo,el,es,eu,ec,eh,ed,ep,ey,ef,ev,e_,eg,eb,em,ek,ew,ex,eT,eE,eA,eS,eL,eC,eP,eR,eO,eM,eB,eN,eI,eD,eF,e$,eU,eq,ej,ez,eV,eH,eG,eQ,eW,eK,eZ,eY,eJ,eX,e0,e1,e2,e5,e3,e4,e8,e7,e6,e9,te,tt,tr,tn,ti,ta,to,tl,ts,tu,tc,th,td,tp,ty,tf,tv,t_,tg,tb,tm,tk,tw,tx,tT,tE,tA,tS,tL,tC,tP,tR,tO,tM,tB,tN,tI,tD,tF,t$,tU,tq,tj,tz,tV,tH,tG,tQ,tW,tK,tZ,tY,tJ,tX,t0,t1,t2,t5,t3,t4,t8,t7,t6,t9,re,rt,rr,rn,ri,ra,ro,rl,rs,ru,rc,rh,rd,rp,ry,rf,rv,r_,rg,rb,rm,rk,rw,rx,rT,rE,rA,rS,rL,rC,rP,rR,rO,rM,rB,rN,rI,rD,rF,r$,rU,rq,rj,rz,rV,rH,rG,rQ,rW,rK,rZ,rY,rJ,rX,r0,r1,r2,r5,r3,r4,r8,r7,r6,r9,ne,nt,nr,nn,ni,na,no,nl,ns,nu,nc,nh,nd,np,ny,nf,nv,n_,ng,nb,nm,nk,nw,nx,nT,nE,nA,nS,nL,nC,nP,nR,nO,nM,nB,nN,nI,nD,nF,n$,nU,nq,nj,nz,nV,nH,nG,nQ,nW,nK,nZ,nY,nJ,nX,n0,n1,n2,n5,n3,n4,n8,n7,n6,n9,ie,it,ir,ii,ia,io,il,is,iu,ic,ih,id,ip,iy,iv,i_,ig,ib,im,ik,iw,ix,iT,iE,iA,iS,iL,iC,iP,iR,iO,iM,iB,iN,iI,iD,iF,i$,iU,iq,ij,iz,iV,iH,iG,iQ,iW,iK,iZ,iY,iJ,iX,i0,i1,i2,i5,i3,i4,i8,i7,i6,i9,ae,at,ar,an,ai,aa,ao,al,as,au,ac,ah,ad,ap,ay,af,av,a_,ag,ab,am,ak,aw,ax,aT,aE,aA,aS,aL,aC,aP,aR,aO,aM,aB,aN,aI,aD,aF,a$,aU,aq,aj,az,aV,aH,aG,aQ,aW,aK,aZ,aY,aJ,aX,a0,a1,a2,a5,a3,a4,a8,a7,a6,a9,oe,ot,or,on,oi,oa,oo,ol,os,ou,oc,oh,od,op,oy,of,ov,o_,og,ob,om,ok,ow,ox,oT,oE,oA,oS,oL,oC,oP,oR,oO,oM,oB,oN,oI,oD,oF,o$,oU,oq,oj,oz,oV,oH,oG,oQ,oW,oK,oZ,oY,oJ,oX,o0,o1,o2,o5,o3,o4,o8,o7,o6,o9,le,lt,lr,ln,li,la,lo,ll,ls,lu,lc,lh,ld,lp,ly,lf,lv,l_,lg,lb,lm,lk,lw,lx,lT,lE,lA,lS,lL,lC,lP,lR,lO,lM,lB,lN,lI,lD,lF,l$,lU,lq,lj,lz,lV,lH,lG,lQ,lW,lK,lZ,lY,lJ,lX,l0,l1,l2,l5,l3,l4,l8,l7,l6,l9,se,st,sr,sn,si,sa,so,sl,ss,su,sc,sh,sd,sp,sy,sf,sv,s_,sg,sb,sm,sk,sw,sx,sT,sE,sA,sS,sL,sC,sP,sR,sO,sM,sB,sN,sI,sD,sF,s$,sU,sq,sj,sz,sV,sH,sG,sQ,sW,sK,sZ,sY,sJ,sX,s0,s1,s2,s5,s3,s4,s8,s7,s6,s9,ue,ut,ur,un,ui,ua,uo,ul,us,uu,uc,uh,ud,up,uy,uf,uv,u_,ug,ub,um,uk,uw,ux,uT,uE,uA,uS,uL,uC,uP,uR,uO,uM,uB,uN,uI,uD,uF,u$,uU,uq,uj,uz,uV,uH,uG,uQ,uW,uK,uZ,uY,uJ,uX,u0,u1,u2,u5,u3,u4,u8,u7,u6,u9,ce,ct,cr,cn,ci,ca,co,cl,cs,cu,cc,ch,cd,cp,cy,cf,cv,c_,cg,cb,cm,ck,cw,cx,cT,cE,cA,cS,cL,cC,cP,cR,cO,cM,cB,cN,cI,cD,cF,c$,cU,cq,cj,cz,cV,cH,cG,cQ,cW,cK,cZ,cY,cJ,cX,c0,c1,c2,c5,c3,c4,c8,c7,c6,c9,he,ht,hr,hn,hi,ha,ho,hl,hs,hu,hc,hh,hd,hp,hy,hf,hv,h_,hg,hb,hm,hk,hw,hx,hT,hE,hA,hS,hL,hC,hP,hR,hO,hM,hB,hN,hI,hD,hF,h$,hU,hq,hj,hz,hV,hH,hG,hQ,hW,hK,hZ,hY,hJ,hX,h0,h1,h2,h5,h3,h4,h8,h7,h6,h9,de,dt,dr,dn,di,da,dl,ds,du,dc,dh,dd,dp,dy,df,dv,d_,dg,db,dm,dk,dw,dx,dT,dE,dA,dS,dL,dC,dP,dR,dO,dM,dB,dN,dI,dD,dF,d$,dU,dq,dj,dz,dV,dH,dG,dQ,dW,dK,dZ,dY,dJ,dX,d0,d1,d2,d5,d3,d4,d8,d7,d6,d9,pe,pt,pr,pn,pi,pa,po,pl,ps,pu,pc,ph,pd,pp,py,pf,pv,p_,pg,pb,pm,pk,pw,px,pT=self,pE=pT.ShadowRoot&&(void 0===pT.ShadyCSS||pT.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pA=Symbol(),pS=new WeakMap,pL=function(){function e(t,r,n){if(y(this,e),this._$cssResult$=!0,n!==pA)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}return v(e,[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(pE&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=pS.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&pS.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}]),e}(),pC=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new pL(1===e.length?e[0]:r.reduce(function(t,r,n){return t+function(e){if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(r)+e[n+1]},e[0]),e,pA)},pP=function(e,t){var r=!0,n=!1,i=void 0;if(pE)e.adoptedStyleSheets=t.map(function(e){return T(e,CSSStyleSheet)?e:e.styleSheet});else try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value,s=document.createElement("style"),u=pT.litNonce;void 0!==u&&s.setAttribute("nonce",u),s.textContent=l.cssText,e.appendChild(s)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}},pR=pE?function(e){return e}:function(e){return T(e,CSSStyleSheet)?function(e){var t,r="",n=!0,i=!1,a=void 0;try{for(var o,l=e.cssRules[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;r+=s.cssText}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}return new pL("string"==typeof(t=r)?t:t+"",void 0,pA)}(e):e},pO=Object.is,pM=Object.defineProperty,pB=Object.getOwnPropertyDescriptor,pN=Object.getOwnPropertyNames,pI=Object.getOwnPropertySymbols,pD=Object.getPrototypeOf,pF=self,p$=pF.trustedTypes,pU=p$?p$.emptyScript:"",pq=pF.reactiveElementPolyfillSupport,pj=function(e,t){return e},pz={toAttribute:function(e,t){switch(t){case Boolean:e=e?pU:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},pV=function(e,t){return!pO(e,t)},pH={attribute:!0,type:String,converter:pz,reflect:!1,useDefault:!1,hasChanged:pV};null!=(C=Symbol).metadata||(C.metadata=Symbol("metadata")),null!=pF.litPropertyMetadata||(pF.litPropertyMetadata=new WeakMap);var pG=function(e){function t(){var e;return y(this,t),(e=p(this,t))._$Ep=void 0,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Em=null,e._$Ev(),e}return i(t,e),v(t,[{key:"_$Ev",value:function(){var e,t=this;this._$ES=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(e=this.constructor.l)||e.forEach(function(e){return e(t)})}},{key:"addController",value:function(e){var t,r;(null!=(t=this._$EO)?t:this._$EO=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null==(r=e.hostConnected)||r.call(e))}},{key:"removeController",value:function(e){var t;null==(t=this._$EO)||t.delete(e)}},{key:"_$E_",value:function(){var e=new Map,t=this.constructor.elementProperties,r=!0,n=!1,i=void 0;try{for(var a,o=t.keys()[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.hasOwnProperty(l)&&(e.set(l,this[l]),delete this[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}e.size>0&&(this._$Ep=e)}},{key:"createRenderRoot",value:function(){var e,t=null!=(e=this.shadowRoot)?e:this.attachShadow(this.constructor.shadowRootOptions);return pP(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}},{key:"attributeChangedCallback",value:function(e,t,r){this._$AK(e,r)}},{key:"_$ET",value:function(e,t){var r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){var i,a=(void 0!==(null==(i=r.converter)?void 0:i.toAttribute)?r.converter:pz).toAttribute(t,r.type);this._$Em=e,null==a?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}},{key:"_$AK",value:function(e,t){var r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){var i,a,o,l=r.getPropertyOptions(n),s="function"==typeof l.converter?{fromAttribute:l.converter}:void 0!==(null==(a=l.converter)?void 0:a.fromAttribute)?l.converter:pz;this._$Em=n;var u=s.fromAttribute(t,l.type);this[n]=null!=(i=null!=u?u:null==(o=this._$Ej)?void 0:o.get(n))?i:u,this._$Em=null}}},{key:"requestUpdate",value:function(e,t,r,n,i){if(void 0===n&&(n=!1),void 0!==e){var a,o,l=this.constructor;if(!1===n&&(i=this[e]),null!=r||(r=l.getPropertyOptions(e)),!((null!=(a=r.hasChanged)?a:pV)(i,t)||r.useDefault&&r.reflect&&i===(null==(o=this._$Ej)?void 0:o.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}},{key:"C",value:function(e,t,r,n){var i,a,o,l=r.useDefault,s=r.reflect,u=r.wrapped;l&&!(null!=(i=this._$Ej)?i:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,null!=(a=null!=n?n:t)?a:this[e]),!0!==u||void 0!==n)||(this._$AL.has(e)||(this.hasUpdated||l||(t=void 0),this._$AL.set(e,t)),!0===s&&this._$Em!==e&&(null!=(o=this._$Eq)?o:this._$Eq=new Set).add(e))}},{key:"_$EP",value:function(){return u(function(){var e;return x(this,function(t){switch(t.label){case 0:this.isUpdatePending=!0,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._$ES];case 2:return t.sent(),[3,4];case 3:return Promise.reject(t.sent()),[3,4];case 4:if(null==(e=this.scheduleUpdate()))return[3,6];return[4,e];case 5:t.sent(),t.label=6;case 6:return[2,!this.isUpdatePending]}})}).call(this)}},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){if(this.isUpdatePending){if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){var e,t=!0,r=!1,n=void 0;try{for(var i,a=this._$Ep[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=b(i.value,2),l=o[0],s=o[1];this[l]=s}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}this._$Ep=void 0}var u=this.constructor.elementProperties,c=!0,h=!1,d=void 0;if(u.size>0)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=b(p.value,2),v=f[0],_=f[1],g=_.wrapped,m=this[v];!0!==g||this._$AL.has(v)||void 0===m||this.C(v,void 0,_,m)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}var k=!1,w=this._$AL;try{(k=this.shouldUpdate(w))?(this.willUpdate(w),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(w)):this._$EM()}catch(e){throw k=!1,this._$EM(),e}k&&this._$AE(w)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null==(t=this._$EO)||t.forEach(function(e){var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$EM",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$ES}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;this._$Eq&&(this._$Eq=this._$Eq.forEach(function(e){return t._$ET(e,t[e])})),this._$EM()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this._$Ei(),(null!=(t=this.l)?t:this.l=[]).push(e)}},{key:"observedAttributes",get:function(){return this.finalize(),this._$Eh&&m(this._$Eh.keys())}},{key:"createProperty",value:function(e,t){if(void 0===t&&(t=pH),t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){var r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&pM(this.prototype,e,n)}}},{key:"getPropertyDescriptor",value:function(e,t,r){var n,i=null!=(n=pB(this.prototype,e))?n:{get:function(){return this[t]},set:function(e){this[t]=e}},a=i.get,o=i.set;return{get:a,set:function(t){var n=null==a?void 0:a.call(this);null==o||o.call(this,t),this.requestUpdate(e,n,r)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){var t;return null!=(t=this.elementProperties.get(e))?t:pH}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(pj("elementProperties"))){var e=pD(this);e.finalize(),void 0!==e.l&&(this.l=m(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(pj("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pj("properties"))){var e=this.properties,t=m(pN(e)).concat(m(pI(e))),r=!0,n=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.createProperty(l,e[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}var s=this[Symbol.metadata];if(null!==s){var u=litPropertyMetadata.get(s),c=!0,h=!1,d=void 0;if(void 0!==u)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=b(p.value,2),v=f[0],_=f[1];this.elementProperties.set(v,_)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}this._$Eh=new Map;var g=!0,k=!1,w=void 0;try{for(var x,T=this.elementProperties[Symbol.iterator]();!(g=(x=T.next()).done);g=!0){var E=b(x.value,2),A=E[0],S=E[1],L=this._$Eu(A,S);void 0!==L&&this._$Eh.set(L,A)}}catch(e){k=!0,w=e}finally{try{g||null==T.return||T.return()}finally{if(k)throw w}}this.elementStyles=this.finalizeStyles(this.styles)}}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse()),n=!0,i=!1,a=void 0;try{for(var o,l=r[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;t.unshift(pR(s))}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}else void 0!==e&&t.push(pR(e));return t}},{key:"_$Eu",value:function(e,t){var r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}}]),t}(w(HTMLElement));pG.elementStyles=[],pG.shadowRootOptions={mode:"open"},pG[pj("elementProperties")]=new Map,pG[pj("finalized")]=new Map,null==pq||pq({ReactiveElement:pG}),(null!=(P=pF.reactiveElementVersions)?P:pF.reactiveElementVersions=[]).push("2.1.2");var pQ=self,pW=function(e){return e},pK=pQ.trustedTypes,pZ=pK?pK.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,pY="$lit$",pJ="lit$"+Math.random().toFixed(9).slice(2)+"$",pX="?"+pJ,p0="<"+pX+">",p1=document,p2=function(){return p1.createComment("")},p5=function(e){return null===e||"object"!=(void 0===e?"undefined":d(e))&&"function"!=typeof e},p3=Array.isArray,p4="[ \n\f\r]",p8=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,p7=/-->/g,p6=/>/g,p9=RegExp(">|"+p4+"(?:([^\\s\"'>=/]+)("+p4+"*="+p4+"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),ye=/'/g,yt=/"/g,yr=/^(?:script|style|textarea|title)$/i,yn=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{_$litType$:1,strings:e,values:r}},yi=Symbol.for("lit-noChange"),ya=Symbol.for("lit-nothing"),yo=new WeakMap,yl=p1.createTreeWalker(p1,129,null,!1);function ys(e,t){if(!p3(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==pZ?pZ.createHTML(t):t}var yu=function(e,t){for(var r,n=e.length-1,i=[],a=2===t?"<svg>":3===t?"<math>":"",o=p8,l=0;l<n;l++){for(var s=e[l],u=void 0,c=void 0,h=-1,d=0;d<s.length&&(o.lastIndex=d,null!==(c=o.exec(s)));)d=o.lastIndex,o===p8?"!--"===c[1]?o=p7:void 0!==c[1]?o=p6:void 0!==c[2]?(yr.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=p9):void 0!==c[3]&&(o=p9):o===p9?">"===c[0]?(o=null!=r?r:p8,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?p9:'"'===c[3]?yt:ye):o===yt||o===ye?o=p9:o===p7||o===p6?o=p8:(o=p9,r=void 0);var p=o===p9&&e[l+1].startsWith("/>")?" ":"";a+=o===p8?s+p0:h>=0?(i.push(u),s.slice(0,h)+pY+s.slice(h)+pJ+p):s+pJ+(-2===h?l:p)}return[ys(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]},yc=function(){function e(t,r){var n=t.strings,i=t._$litType$;y(this,e),this.parts=[];var a=0,o=0,l=n.length-1,s=this.parts,u=b(yu(n,i),2),c=u[0],h=u[1];if(this.el=e.createElement(c,r),yl.currentNode=this.el.content,2===i||3===i){var d,p=this.el.content.firstChild;p.replaceWith.apply(p,m(p.childNodes))}for(;null!==(d=yl.nextNode())&&s.length<l;){if(1===d.nodeType){var f=!0,v=!1,_=void 0;if(d.hasAttributes())try{for(var g,k=d.getAttributeNames()[Symbol.iterator]();!(f=(g=k.next()).done);f=!0){var w=g.value;if(w.endsWith(pY)){var x=h[o++],T=d.getAttribute(w).split(pJ),E=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:E[2],strings:T,ctor:"."===E[1]?yf:"?"===E[1]?yv:"@"===E[1]?y_:yy}),d.removeAttribute(w)}else w.startsWith(pJ)&&(s.push({type:6,index:a}),d.removeAttribute(w))}}catch(e){v=!0,_=e}finally{try{f||null==k.return||k.return()}finally{if(v)throw _}}if(yr.test(d.tagName)){var A=d.textContent.split(pJ),S=A.length-1;if(S>0){d.textContent=pK?pK.emptyScript:"";for(var L=0;L<S;L++)d.append(A[L],p2()),yl.nextNode(),s.push({type:2,index:++a});d.append(A[S],p2())}}}else if(8===d.nodeType)if(d.data===pX)s.push({type:2,index:a});else for(var C=-1;-1!==(C=d.data.indexOf(pJ,C+1));)s.push({type:7,index:a}),C+=pJ.length-1;a++}}return v(e,null,[{key:"createElement",value:function(e,t){var r=p1.createElement("template");return r.innerHTML=e,r}}]),e}();function yh(e,t,r,n){if(void 0===r&&(r=e),t===yi)return t;var i,a,o,l,s=void 0!==n?null==(o=r._$Co)?void 0:o[n]:r._$Cl,u=p5(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==u&&(null==s||null==(l=s._$AO)||l.call(s,!1),void 0===u?s=void 0:(s=new u(e))._$AT(e,r,n),void 0!==n?(null!=(a=(i=r)._$Co)?a:i._$Co=[])[n]=s:r._$Cl=s),void 0!==s&&(t=yh(e,s._$AS(e,t.values),s,n)),t}var yd=function(){function e(t,r){y(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}return v(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,r=this._$AD,n=r.el.content,i=r.parts,a=(null!=(t=null==e?void 0:e.creationScope)?t:p1).importNode(n,!0);yl.currentNode=a;for(var o=yl.nextNode(),l=0,s=0,u=i[0];void 0!==u;){if(l===u.index){var c=void 0;2===u.type?c=new yp(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new yg(o,this,e)),this._$AV.push(c),u=i[++s]}l!==(null==u?void 0:u.index)&&(o=yl.nextNode(),l++)}return yl.currentNode=p1,a}},{key:"p",value:function(e){var t=0,r=!0,n=!1,i=void 0;try{for(var a,o=this._$AV[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;void 0!==l&&(void 0!==l.strings?(l._$AI(e,l,t),t+=l.strings.length-2):l._$AI(e[t])),t++}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}}]),e}(),yp=function(){function e(t,r,n,i){var a;y(this,e),this.type=2,this._$AH=ya,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=null==(a=null==i?void 0:i.isConnected)||a}return v(e,[{key:"_$AU",get:function(){var e,t;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e,t){var r;void 0===t&&(t=this),p5(e=yh(this,e,t))?e===ya||null==e||""===e?(this._$AH!==ya&&this._$AR(),this._$AH=ya):e!==this._$AH&&e!==yi&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):p3(r=e)||"function"==typeof(null==r?void 0:r[Symbol.iterator])?this.k(e):this._(e)}},{key:"O",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"T",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}},{key:"_",value:function(e){this._$AH!==ya&&p5(this._$AH)?this._$AA.nextSibling.data=e:this.T(p1.createTextNode(e)),this._$AH=e}},{key:"$",value:function(e){var t,r=e.values,n=e._$litType$,i="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=yc.createElement(ys(n.h,n.h[0]),this.options)),n);if((null==(t=this._$AH)?void 0:t._$AD)===i)this._$AH.p(r);else{var a=new yd(i,this),o=a.u(this.options);a.p(r),this.T(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=yo.get(e.strings);return void 0===t&&yo.set(e.strings,t=new yc(e)),t}},{key:"k",value:function(t){p3(this._$AH)||(this._$AH=[],this._$AR());var r,n=this._$AH,i=0,a=!0,o=!1,l=void 0;try{for(var s,u=t[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;i===n.length?n.push(r=new e(this.O(p2()),this.O(p2()),this,this.options)):r=n[i],r._$AI(c),i++}}catch(e){o=!0,l=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw l}}i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}},{key:"_$AR",value:function(e,t){for(void 0===e&&(e=this._$AA.nextSibling),null==(r=this._$AP)||r.call(this,!1,!0,t);e!==this._$AB;){var r,n=pW(e).nextSibling;pW(e).remove(),e=n}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cv=e,null==(t=this._$AP)||t.call(this,e))}}]),e}(),yy=function(){function e(t,r,n,i,a){y(this,e),this.type=1,this._$AH=ya,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=a,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ya}return v(e,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e,t,r,n){void 0===t&&(t=this);var i=this.strings,a=!1;if(void 0===i)(a=!p5(e=yh(this,e,t,0))||e!==this._$AH&&e!==yi)&&(this._$AH=e);else{var o,l,s=e;for(e=i[0],o=0;o<i.length-1;o++)(l=yh(this,s[r+o],t,o))===yi&&(l=this._$AH[o]),a||(a=!p5(l)||l!==this._$AH[o]),l===ya?e=ya:e!==ya&&(e+=(null!=l?l:"")+i[o+1]),this._$AH[o]=l}a&&!n&&this.j(e)}},{key:"j",value:function(e){e===ya?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),yf=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=3,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element[this.name]=e===ya?void 0:e}}]),t}(yy),yv=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=4,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==ya)}}]),t}(yy),y_=function(e){function t(e,r,n,i,a){var o;return y(this,t),(o=p(this,t,[e,r,n,i,a])).type=5,o}return i(t,e),v(t,[{key:"_$AI",value:function(e,t){if(void 0===t&&(t=this),(e=null!=(r=yh(this,e,t,0))?r:ya)!==yi){var r,n=this._$AH,i=e===ya&&n!==ya||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==ya&&(n===ya||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(r=this.options)?void 0:r.host)?t:this.element,e):this._$AH.handleEvent(e)}}]),t}(yy),yg=function(){function e(t,r,n){y(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){yh(this,e)}}]),e}(),yb=pQ.litHtmlPolyfillSupport;null==yb||yb(yc,yp),(null!=(R=pQ.litHtmlVersions)?R:pQ.litHtmlVersions=[]).push("3.3.2");var ym=function(e,t,r){var n=null!=(a=null==r?void 0:r.renderBefore)?a:t,i=n._$litPart$;if(void 0===i){var a,o,l=null!=(o=null==r?void 0:r.renderBefore)?o:null;n._$litPart$=i=new yp(t.insertBefore(p2(),l),l,void 0,null!=r?r:{})}return i._$AI(e),i},yk=globalThis,yw=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.renderOptions={host:e},e._$Do=void 0,e}return i(t,e),v(t,[{key:"createRenderRoot",value:function(){var t,r=e.prototype.createRenderRoot.call(this);return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=r.firstChild),r}},{key:"update",value:function(t){var r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),e.prototype.update.call(this,t),this._$Do=ym(r,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var t;e.prototype.connectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var t;e.prototype.disconnectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!1)}},{key:"render",value:function(){return yi}}]),t}(pG);yw._$litElement$=!0,yw.finalized=!0,null==(M=yk.litElementHydrateSupport)||M.call(yk,{LitElement:yw});var yx=yk.litElementPolyfillSupport;null==yx||yx({LitElement:yw}),(null!=(O=yk.litElementVersions)?O:yk.litElementVersions=[]).push("4.2.2");var yT=function(e){return function(t,r){void 0!==r?r.addInitializer(function(){customElements.define(e,t)}):customElements.define(e,t)}},yE={attribute:!0,type:String,converter:pz,reflect:!1,hasChanged:pV},yA=function(e,t,r){void 0===e&&(e=yE);var n=r.kind,i=r.metadata,a=self.litPropertyMetadata.get(i);if(void 0===a&&self.litPropertyMetadata.set(i,a=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),a.set(r.name,e),"accessor"===n){var o=r.name;return{set:function(r){var n=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,n,e,!0,r)},init:function(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===n){var l=r.name;return function(r){var n=this[l];t.call(this,r),this.requestUpdate(l,n,e,!0,r)}}throw Error("Unsupported decorator location: "+n)};function yS(e){return function(t,r){var n;return"object"==(void 0===r?"undefined":d(r))?yA(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function yL(e){var t,r;return yS((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={state:!0,attribute:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}var yC=function(e,t,r){return r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=(void 0===t?"undefined":d(t))&&Object.defineProperty(e,t,r),r};function yP(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host([hidden]){display:none!important}::slotted(theoplayer-time-range){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}"]);return yP=function(){return e},e}var yR=pC(yP());function yO(){var e=a(["<slot></slot>"]);return yO=function(){return e},e}function yM(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}I=yT("theoplayer-control-bar"),e.ControlBar=void 0,new(N=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yR],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),D(),t}return i(t,e),t}(l),B=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return yn(yO())},t}(yw),e.ControlBar=(F=o(B,[],[I],yw).c)[0],D=F[1],N);var yB=0;function yN(e){return"__private_"+yB+++"_"+e}var yI=function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return{_$litDirective$:e,values:r}}},yD=function(){function e(t){y(this,e)}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,m(t))}}]),e}(),yF=yI(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("templateContent can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){return this.vt===e?yi:(this.vt=e,document.importNode(e.content,!0))}}]),t}(yD));function y$(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-tap-highlight-color:transparent;align-items:center;background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theoplayer-before-first-play-display,inline-flex);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);justify-content:center;line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}:host([hidden]){display:none!important}:host(:not([disabled])){cursor:pointer}:host(:focus){-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}:host(:focus:not(:focus-visible)){-webkit-box-shadow:none;box-shadow:none}:host(:hover){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}:host([aria-checked=true]){background:#fff;background:var(--theoplayer-button-checked-background,#fff);color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]){background:transparent;background:var(--theoplayer-control-background,transparent);color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}[part$=icon],[part~=icon]{font-size:0}::slotted(img),::slotted(svg),img,svg{fill:currentColor;color:#fff;color:var(--theoplayer-icon-color,#fff);height:24px;height:var(--theoplayer-button-icon-height,var(--theoplayer-control-height,24px));max-height:100%;max-width:100%;min-width:100%;-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-button-icon-transition,none);transition:var(--theoplayer-button-icon-transition,none);vertical-align:middle;width:24px;width:var(--theoplayer-button-icon-width,var(--theoplayer-control-height,24px))}::slotted(img),img{-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-button-icon-shadow,none);box-shadow:var(--theoplayer-button-icon-shadow,none)}::slotted(svg),svg{-webkit-filter:drop-shadow(none);filter:drop-shadow(none);-webkit-filter:drop-shadow(var(--theoplayer-button-icon-shadow,none));filter:drop-shadow(var(--theoplayer-button-icon-shadow,none))}:host(:hover:not([disabled])) ::slotted(img),:host(:hover:not([disabled])) img{-webkit-box-shadow:0 0 4px hsla(0,0%,100%,.5);box-shadow:0 0 4px hsla(0,0%,100%,.5);-webkit-box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5));box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5))}:host(:hover:not([disabled])) ::slotted(svg),:host(:hover:not([disabled])) svg{-webkit-filter:drop-shadow(0 0 4px hsla(0,0%,100%,.5));filter:drop-shadow(0 0 4px rgba(255,255,255,.5));-webkit-filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5)));filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px rgba(255,255,255,.5)))}:host([disabled]) ::slotted(img),:host([disabled]) ::slotted(svg),:host([disabled]) img,:host([disabled]) svg{color:hsla(0,0%,80%,.5);color:var(--theoplayer-button-disabled-icon-color,hsla(0,0%,80%,.5))}"]);return y$=function(){return e},e}var yU=pC(y$()),yq=((E={}).CONFIGURATION="configuration",E.SOURCE="source",E.AUTOPLAY="autoplay",E.MUTED="muted",E.FULLSCREEN="fullscreen",E.FULLWINDOW="fullwindow",E.FLUID="fluid",E.DEVICE_TYPE="device-type",E.MOBILE="mobile",E.TV="tv",E.TV_FOCUS="tv-focus",E.MOBILE_ONLY="mobile-only",E.MOBILE_HIDDEN="mobile-hidden",E.TV_ONLY="tv-only",E.TV_HIDDEN="tv-hidden",E.USER_IDLE="user-idle",E.USER_IDLE_TIMEOUT="user-idle-timeout",E.NO_AUTO_HIDE="no-auto-hide",E.DISABLED="disabled",E.INERT="inert",E.HIDDEN="hidden",E.PAUSED="paused",E.ENDED="ended",E.VOLUME_LEVEL="volume-level",E.CASTING="casting",E.LOADING="loading",E.STREAM_TYPE="stream-type",E.LIVE="live",E.LIVE_ONLY="live-only",E.LIVE_HIDDEN="live-hidden",E.LIVE_THRESHOLD="live-threshold",E.DVR_THRESHOLD="dvr-threshold",E.REMAINING="remaining",E.REMAINING_WHEN_LIVE="remaining-when-live",E.SHOW_DURATION="show-duration",E.STEREO="stereo",E.SEEK_OFFSET="seek-offset",E.MENU="menu",E.MENU_OPENED="menu-opened",E.MENU_CLOSE_ON_INPUT="menu-close-on-input",E.ARIA_LABEL="aria-label",E.ARIA_LIVE="aria-live",E.ARIA_CHECKED="aria-checked",E.HAS_AUDIO="has-audio",E.HAS_SUBTITLES="has-subtitles",E.HAS_ERROR="has-error",E.HAS_FIRST_PLAY="has-first-play",E.CAST_STATE="cast-state",E.TRACK_TYPE="track-type",E.SHOW_OFF="show-off",E.PLAYING_AD="playing-ad",E.SHOW_AD_MARKERS="show-ad-markers",E.CLICKTHROUGH="clickthrough",E.PROPERTY="property",E.VALUE="value",E.LANG="lang",E),yj=((A={})[A.ENTER=13]="ENTER",A[A.ESCAPE=27]="ESCAPE",A[A.SPACE=32]="SPACE",A[A.END=35]="END",A[A.HOME=36]="HOME",A[A.LEFT=37]="LEFT",A[A.UP=38]="UP",A[A.RIGHT=39]="RIGHT",A[A.DOWN=40]="DOWN",A[A.BACK_SAMSUNG=88]="BACK_SAMSUNG",A[A.BACK_WEBOS=461]="BACK_WEBOS",A[A.BACK_TIZEN=10009]="BACK_TIZEN",A);function yz(e){return 37<=e&&e<=40}function yV(e){return 10009===e||27===e||88===e||461===e}function yH(e){return 13===e||32===e}function yG(){var e=a(["",""]);return yG=function(){return e},e}function yQ(){var e=a(["<slot></slot>"]);return yQ=function(){return e},e}function yW(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function yK(){var e=a([":host{padding:0}a{color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));padding:10px;padding:var(--theoplayer-control-padding,10px);text-decoration:none}:host(:focus){-webkit-box-shadow:none;box-shadow:none;outline:0}a:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}a:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}:host([aria-checked=true]) a{color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]) a{color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}"]);return yK=function(){return e},e}j=yT("theoplayer-button"),V=yS({reflect:!0,type:Boolean,attribute:yq.DISABLED}),H=yS({reflect:!0,state:!0,type:String,attribute:yq.ARIA_LABEL}),e.Button=void 0,new(q=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yU],z(),t}return i(t,e),t}(l),$=yN("____private_ariaLabel_1"),U=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,$,{writable:!0,value:void 0}),Q(r),r._disabled=!1,yM(r,$)[$]=G(r,null),r._onClick=function(){r.handleClick()},r._onKeyDown=function(e){!yH(e.keyCode)||e.metaKey||e.altKey?r.removeEventListener("keyup",r._onKeyUp):r.addEventListener("keyup",r._onKeyUp)},r._onKeyUp=function(e){r.removeEventListener("keyup",r._onKeyUp),yH(e.keyCode)&&r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(yq.ARIA_LIVE)||this.setAttribute(yq.ARIA_LIVE,"polite"),this._disabled||this._enable()},r.disconnectedCallback=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp)},r._enable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.addEventListener("keydown",this._onKeyDown),this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?yn(yG(),yF(this._template)):yn(yQ())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"ariaLabel",get:function(){return yM(this,$)[$]},set:function(e){yM(this,$)[$]=e}}]),t}(yw),G=(K=(W=o(U,[[V,4,"disabled"],[H,1,"ariaLabel"]],[j],yw)).e)[0],Q=K[1],e.Button=(Z=W.c)[0],z=Z[1],q);var yZ=pC(yK()),yY=function(e){return e},yJ=function(){return document.createComment("")},yX=function(e,t,r){var n=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new yp(n.insertBefore(yJ(),i),n.insertBefore(yJ(),i),e,e.options);else{var a,o,l=r._$AB.nextSibling,s=r._$AM,u=s!==e;if(u&&(null==(a=r._$AQ)||a.call(r,e),r._$AM=e,void 0!==r._$AP&&(o=e._$AU)!==s._$AU&&r._$AP(o)),l!==i||u)for(var c=r._$AA;c!==l;){var h=yY(c).nextSibling;yY(n).insertBefore(c,i),c=h}}return r},y0=function(e,t,r){return void 0===r&&(r=e),e._$AI(t,r),e},y1={},y2=function(e){e._$AR(),e._$AA.remove()},y5=function(e,t){var r=e._$AN;if(void 0===r)return!1;var n=!0,i=!1,a=void 0;try{for(var o,l,s=r[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var u=l.value;null==(o=u._$AO)||o.call(u,t,!1),y5(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0},y3=function(e){var t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===(null==r?void 0:r.size))},y4=function(e){for(var t;t=e._$AM;e=t){var r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),y6(t)}};function y8(e){void 0!==this._$AN?(y3(this),this._$AM=e,y4(this)):this._$AM=e}function y7(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=0);var n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(n))for(var a=r;a<n.length;a++)y5(n[a],!1),y3(n[a]);else null!=n&&(y5(n,!1),y3(n));else y5(this,e)}var y6=function(e){2==e.type&&(null!=e._$AP||(e._$AP=y7),null!=e._$AQ||(e._$AQ=y8))},y9=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e._$AN=void 0,e}return i(t,e),v(t,[{key:"_$AT",value:function(t,r,n){e.prototype._$AT.call(this,t,r,n),y4(this),this.isConnected=t._$AU}},{key:"_$AO",value:function(e,t){var r,n;void 0===t&&(t=!0),e!==this.isConnected&&(this.isConnected=e,e?null==(r=this.reconnected)||r.call(this):null==(n=this.disconnected)||n.call(this)),t&&(y5(this,e),y3(this))}},{key:"setValue",value:function(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{var t=m(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}]),t}(yD),fe=function(){return new ft},ft=function e(){y(this,e)},fr=new WeakMap,fn=yI(function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),v(t,[{key:"render",value:function(e){return ya}},{key:"update",value:function(e,t){var r,n=b(t,1)[0],i=n!==this.G;return i&&void 0!==this.G&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=n,this.ht=null==(r=e.options)?void 0:r.host,this.rt(this.ct=e.element)),ya}},{key:"rt",value:function(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){var t,r=null!=(t=this.ht)?t:self,n=fr.get(r);void 0===n&&(n=new WeakMap,fr.set(r,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}},{key:"lt",get:function(){var e,t,r;return"function"==typeof this.G?null==(t=fr.get(null!=(e=this.ht)?e:self))?void 0:t.get(this.G):null==(r=this.G)?void 0:r.value}},{key:"disconnected",value:function(){this.lt===this.ct&&this.rt(void 0)}},{key:"reconnected",value:function(){this.rt(this.ct)}}]),t}(y9));function fi(){var e=a(["",""]);return fi=function(){return e},e}function fa(){var e=a(["<a ",' href="','" target="','" @keydown="','" @click="','">',"</a>"]);return fa=function(){return e},e}function fo(){var e=a(["<slot></slot>"]);return fo=function(){return e},e}et=yT("theoplayer-link-button"),en=yS({reflect:!0,type:Boolean,attribute:yq.DISABLED}),ei=yL(),ea=yL(),e.LinkButton=void 0,new(ee=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yZ],er(),t}return i(t,e),t}(l),Y=yN("____private_href_1"),J=yN("____private_target_2"),X=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,Y,{writable:!0,value:void 0}),Object.defineProperty(r,J,{writable:!0,value:void 0}),es(r),r._disabled=!1,r._linkRef=fe(),yM(r,Y)[Y]=eo(r,""),yM(r,J)[J]=el(r,""),r._onKeyDown=function(e){if(!e.metaKey&&!e.altKey)if(e.keyCode!==yj.SPACE)return;else{var t;e.preventDefault(),null==(t=r._linkRef.value)||t.click()}},r._onClick=function(){r.disabled||r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(yq.ARIA_LIVE)||this.setAttribute(yq.ARIA_LIVE,"polite"),this.hasAttribute(yq.DISABLED)||this._enable()},r._enable=function(){this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?yn(fi(),yF(this._template)):yn(fa(),fn(this._linkRef),this.href,this.target,this._onKeyDown,this._onClick,this.renderLinkContent())},r.renderLinkContent=function(){return yn(fo())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"href",get:function(){return yM(this,Y)[Y]},set:function(e){yM(this,Y)[Y]=e}},{key:"target",get:function(){return yM(this,J)[J]},set:function(e){yM(this,J)[J]=e}}]),t}(yw),eo=(ec=(eu=o(X,[[en,4,"disabled"],[ei,1,"href"],[ea,1,"target"]],[et],yw)).e)[0],el=ec[1],es=ec[2],e.LinkButton=(eh=eu.c)[0],er=eh[1],ee);var fl=function(e){function t(e){var r;if(y(this,t),(r=p(this,t,[e])).it=ya,2!==e.type)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){if(e===ya||null==e)return this._t=void 0,this.it=e;if(e===yi)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;var t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}]),t}(yD);fl.directiveName="unsafeHTML",fl.resultType=1;var fs=function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),t}(fl);fs.directiveName="unsafeSVG",fs.resultType=2;var fu=yI(fs);function fc(){var e=a([":host{--theoplayer-icon-color:var(--theoplayer-play-button-icon-color,unset);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host(:not([ended])) [part=replay-icon],:host(:not([paused])) [part=play-icon],:host([ended]) [part=pause-icon],:host([ended]) [part=play-icon],:host([paused]) [part=pause-icon]{display:none!important}"]);return fc=function(){return e},e}var fh=pC(fc());function fd(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=g(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fp(){var e=a([":host{display:contents}::slotted(:not([no-auto-hide])),slot{opacity:inherit}"]);return fp=function(){return e},e}var fy=pC(fp());function ff(){var e=a(["<slot></slot>"]);return ff=function(){return e},e}function fv(){}function f_(e){return e.nodeType===Node.ELEMENT_NODE}function fg(e){return T(e,HTMLElement)}ey=yT("theoplayer-slot-container"),e.SlotContainer=void 0,new(ep=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fy],ef(),t}return i(t,e),t}(l),ed=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return yn(ff())},t}(yw),e.SlotContainer=(ev=o(ed,[],[ey],yw).c)[0],ef=ev[1],ep);var fb="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},fm="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){return Array.prototype.slice.call(e)},fk="function"==typeof Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return e[r]},fw="function"==typeof Array.prototype.findIndex?function(e,t){return e.findIndex(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return r;return -1},fx="function"==typeof String.prototype.startsWith?function(e,t){return e.startsWith(t)}:function(e,t){return e.substring(0,t.length)===t};function fT(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function fE(e){if(e.shadowRoot)return e.shadowRoot.children;if("slot"===e.localName.toLowerCase()){var t=e.assignedNodes();if(t.length>0)return t.filter(f_)}return fg(e)?e.children:[]}function fA(e){for(var t,r=[],n=fd(e.assignedNodes({flatten:!0}));!(t=n()).done;){var i=t.value;f_(i)&&(r.push(i),"theoplayer-slot-container"===i.nodeName.toLowerCase())&&r.push.apply(r,[].concat(fm(i.children)))}return r}function fS(e){var t=[];return function e(t,r){if(fg(t)&&"none"!==getComputedStyle(t).display){if(t.hasAttribute("tabindex")&&Number(t.getAttribute("tabindex"))>=0)return void r.push(t);switch(t.tagName.toLowerCase()){case"button":case"input":case"textarea":case"select":case"details":r.push(t);break;case"a":t.href&&r.push(t);break;default:for(var n=fE(t),i=0;i<n.length;i++)e(n[i],r)}}}(e,t),t}function fL(e){var t=e.nodeName.toLowerCase();if(t.indexOf("-")>=0)if(!customElements.get(t))return customElements.whenDefined(t);else customElements.upgrade(e)}function fC(e,t){if(!e.closest)return null;var r,n=e.closest(t);if(n)return n;var i=null==e.getRootNode||null==(r=e.getRootNode.call(e))?void 0:r.host;return i?fC(i,t):null}var fP="theoplayerUiObservedProperties";function fR(e){return fP in e&&fb(e[fP])}var fO=function(e){return function(t,r){Object.defineProperty(t.prototype,fP,{value:e})}};function fM(e,t,r){return u(function(){var n;return x(this,function(i){switch(i.label){case 0:if(t.contains(e))return[2];if(!(e.nodeName.indexOf("-")>=0&&!fR(e)))return[3,3];return[4,Promise.resolve()];case 1:return i.sent(),[4,customElements.whenDefined(e.nodeName.toLowerCase())];case 2:i.sent(),customElements.upgrade(e),i.label=3;case 3:if(fR(e)&&r(e),!((n=fE(e)).length>0))return[3,5];return[4,Promise.all(fm(n).map(function(e){return fM(e,t,r)}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function fB(e,t){try{var r=new Intl.DurationFormat(e,{style:t}),n=new Intl.DurationFormat(e,{style:t,secondsDisplay:"always"}).format({seconds:0});return function(e){return 0===e.hours&&0===e.minutes&&0===e.seconds?n:r.format(e)}}catch(e){return"narrow"===t?fI:fN}}function fN(e){var t=e.hours,r=e.minutes,n=e.seconds,i="";return 0!==t&&(i+=t+" hour"+(1===t?"":"s")),0!==r&&(""!==i&&(i+=", "),i+=r+" minute"+(1===r?"":"s")),(0!==n||""===i)&&(""!==i&&(i+=", "),i+=n+" second"+(1===n?"":"s")),i}function fI(e){var t=e.hours,r=e.minutes,n=e.seconds,i="";return 0!==t&&(i+=""+t+"h"),0!==r&&(""!==i&&(i+=" "),i+=""+r+"m"),(0!==n||""===i)&&(""!==i&&(i+=" "),i+=""+n+"s"),i}function fD(e){try{var t=new Intl.NumberFormat(e,{style:"percent"});return function(e){return t.format(e)}}catch(e){return fF}}function fF(e){return""+Math.round(100*e)+"%"}function f$(e){try{var t={style:"unit",unitDisplay:"narrow"},n=new Intl.NumberFormat(e,r({},t,{unit:"kilobit-per-second",maximumFractionDigits:0})),i=new Intl.NumberFormat(e,r({},t,{unit:"megabit-per-second",minimumSignificantDigits:2,maximumFractionDigits:1,roundingPriority:"lessPrecision"}));return function(e){return e>1e6?i.format(e/1e6):n.format(e/1e3)}}catch(e){return fU}}function fU(e){return e>1e7?""+(e/1e6).toFixed(0)+"Mb/s":e>1e6?""+(e/1e6).toFixed(1)+"Mb/s":""+(e/1e3).toFixed(0)+"kb/s"}function fq(e){try{var t=new Intl.DisplayNames([e,"en"],{type:"language",fallback:"none"});return function(e){try{return t.of(e)}catch(e){return}}}catch(e){return function(e){}}}var fj={playAria:"play",pauseAria:"pause",replayAria:"replay",muteAria:"mute",unmuteAria:"unmute",volumeAria:"volume",seekAria:"seek",seekForwardAria:function(e){return"seek forward by "+e},seekBackwardAria:function(e){return"seek backward by "+e},live:"LIVE",seekToLiveAria:"seek to live",fullscreenAria:"enter fullscreen",fullscreenExitAria:"exit fullscreen",vrAria:"watch in VR",vrExitAria:"stop watching in VR",vrUnavailableAria:"no VR capable device found",airplayAria:"start playing on AirPlay",airplayConnectedAria:"stop playing on AirPlay",chromecastAria:"start casting to Chromecast",chromecastConnectedAria:"stop casting to Chromecast",chromecastHeading:"Playing on",chromecastDefaultReceiverName:"Chromecast",timeOfTotalAria:function(e,t){return e+" of "+t},playbackTimeAria:"playback time",unknownTimeAria:"video not loaded, unknown time",adText:"Ad",adBreakText:function(e,t){return"Ad "+e+" of "+t},adClickThroughText:"Visit Advertiser",adCountdownText:function(e){return"Content will resume in "+e},adSkipButtonText:"Skip Ad",adSkipCountdownText:function(e){return"Skip in "+e},liveStreamLoading:"Loading...",liveStreamOffline:"The live stream hasn't started yet",closeMenuAria:"close menu",openLanguageMenuAria:"open language menu",languageMenuHeading:"Language",audioMenuHeading:"Audio",subtitleMenuHeading:"Subtitles",subtitleOff:"Off",openPlaybackRateMenuAria:"open playback speed menu",playbackRateMenuHeading:"Playback speed",formatPlaybackRate:function(e){return 1===e?"Normal":""+e+"x"},openSettingsMenuAria:"open settings menu",settingsMenuHeading:"Settings",qualityMenuHeading:"Quality",textTrackStyleMenuHeading:"Subtitle options",textTrackStyleFontFamily:"Font family",textTrackStyleFontColor:"Font color",textTrackStyleFontOpacity:"Font opacity",textTrackStyleFontSize:"Font size",textTrackStyleBackgroundColor:"Background color",textTrackStyleBackgroundOpacity:"Background opacity",textTrackStyleWindowColor:"Window color",textTrackStyleWindowOpacity:"Window opacity",textTrackStyleEdgeStyle:"Character edge style",textTrackStyleDefaultLabel:"Default",textTrackStyleCustomLabel:"Custom",textTrackStyleResetLabel:"Reset",fontFamilyLabels:{"Monospace Serif":"Monospace Serif","Proportional Serif":"Proportional Serif","Monospace Sans":"Monospace Sans","Proportional Sans":"Proportional Sans"},colorLabels:{White:"White",Yellow:"Yellow",Green:"Green",Cyan:"Cyan",Blue:"Blue",Magenta:"Magenta",Red:"Red",Black:"Black"},edgeStyleLabels:{none:"None",dropshadow:"Drop shadow",raised:"Raised",depressed:"Depressed",uniform:"Uniform"},automaticQualityLabel:"Automatic",unknownQualityLabel:"Unknown",highQualityLabel:"High Quality",lowQualityLabel:"Low Quality",errorHeading:"An error occurred",openBadNetworkModeMenuAria:"open bad network mode menu",formatDuration:fB("en","long"),formatNarrowDuration:fB("en","narrow"),formatRemainingDuration:function(e){return""+e+" remaining"},formatPercentage:fD("en"),formatBandwidth:f$("en"),formatLanguage:fq("en")},fz={};function fV(e){var t;return null!=(t=fz[e])?t:fj}function fH(){var e=a(['<span part="play-icon"><slot name="play-icon">','</slot></span><span part="pause-icon"><slot name="pause-icon">','</slot></span><span part="replay-icon"><slot name="replay-icon">',"</slot></span>"]);return fH=function(){return e},e}var fG=["seeking","seeked","ended","emptied","sourcechange"];function fQ(){var e=a([":host(:not([volume-level=high])) [part=high-icon],:host(:not([volume-level=low])) [part=low-icon],:host(:not([volume-level=off])) [part=off-icon]{display:none!important}"]);return fQ=function(){return e},e}ew=yT("theoplayer-play-button"),ex=fO(["player","lang"]),eA=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.PAUSED}),eS=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.ENDED}),eL=yS({reflect:!0,type:String,attribute:yq.LANG}),e.PlayButton=void 0,new(ek=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[fh]),eT(),r}return i(r,t),r}(l),e_=yN("____private_paused_1"),eg=yN("____private_ended_2"),eb=yN("____private_lang_3"),em=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e_,{writable:!0,value:void 0}),Object.defineProperty(t,eg,{writable:!0,value:void 0}),Object.defineProperty(t,eb,{writable:!0,value:void 0}),yM(t,e_)[e_]=(eO(t),eC(t,!1)),yM(t,eg)[eg]=eP(t,!1),yM(t,eb)[eb]=eR(t,""),t._onPlay=function(){t.paused=!1,t._updateEnded()},t._onPause=function(){t.paused=!0,t._updateEnded()},t._updateFromPlayer=function(){var e,r;t.paused=null==(e=null==(r=t._player)?void 0:r.paused)||e,t._updateEnded(),t._updateDisabled()},t._updateDisabled=function(){var e;t.disabled=(null==(e=t._player)?void 0:e.source)===void 0},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r._updateEnded=function(){var e,t;this.ended=null!=(e=null==(t=this._player)?void 0:t.ended)&&e},r.handleClick=function(){if(void 0!==this._player&&void 0!==this._player.source){this._player.paused?this._player.play():this._player.pause();var e=this._player.vr;void 0!==e&&"unavailable"!==e.state&&(e.useDeviceMotionControls=!0)}},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=this.ended?e.replayAria:this.paused?e.playAria:e.pauseAria},r.render=function(){return yn(fH(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90" width="24" height="24"><path d="M77.504 50.868c-7.236 5.156-16.584 10.914-28.04 17.269-11.044 6.207-20.729 11.081-29.053 14.625l-9.224 3.43c-.581-2.493-1.125-6.188-1.632-11.08-1.143-9.75-1.715-20.513-1.715-32.288 0-10.781.777-20.858 2.333-30.234l2.251-10.772 9.787 3.29c8.476 3.375 17.663 8.166 27.563 14.373 10.48 6.562 19.472 12.805 26.97 18.73 3.749 2.982 6.449 5.279 8.099 6.891l-7.339 5.766"/></svg>\n'),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M2.108 1.914Q2.108.5 3.522.5h4.171q1.415 0 1.415 1.414v20.172q0 1.414-1.415 1.414H3.522q-1.414 0-1.414-1.414zm12.784 0Q14.892.5 16.307.5h4.171q1.414 0 1.414 1.414v20.172q0 1.414-1.414 1.414h-4.171q-1.415 0-1.415-1.414z"/></svg>\n'),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 23q-3.725 0-6.438-2.375Q2.85 18.25 2.275 14.7q-.1-.625.325-1.088.425-.462 1.125-.462.6 0 1.087.437.488.438.663 1.113.5 2.225 2.313 3.688Q9.6 19.85 12 19.85q2.8 0 4.75-1.963 1.95-1.962 1.95-4.762t-1.962-4.75q-1.963-1.95-4.763-1.95H11.8l.525.525q.375.375.363.85-.013.475-.363.825t-.85.363q-.5.012-.85-.338l-2.7-2.7q-.225-.225-.337-.513-.113-.287-.113-.587t.113-.588q.112-.287.337-.512L10.6 1.075q.35-.35.875-.363.525-.012.875.363.35.35.338.85-.013.5-.363.85l-.5.5h.15q2.05 0 3.85.775 1.8.775 3.15 2.112Q20.325 7.5 21.1 9.287q.775 1.788.775 3.838t-.775 3.85q-.775 1.8-2.112 3.137-1.338 1.338-3.138 2.113Q14.05 23 12 23Z"/></svg>\n'))},v(t,[{key:"paused",get:function(){return yM(this,e_)[e_]},set:function(e){yM(this,e_)[e_]=e}},{key:"ended",get:function(){return yM(this,eg)[eg]},set:function(e){yM(this,eg)[eg]=e}},{key:"lang",get:function(){return yM(this,eb)[eb]},set:function(e){yM(this,eb)[eb]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener("play",this._onPlay),this._player.removeEventListener("pause",this._onPause),this._player.removeEventListener(fG,this._updateFromPlayer)),this._player=e,this._updateFromPlayer(),void 0!==this._player&&(this._player.addEventListener("play",this._onPlay),this._player.addEventListener("pause",this._onPause),this._player.addEventListener(fG,this._updateFromPlayer)))}}]),t}(eE=e.Button),eC=(eB=(eM=o(em,[[eA,1,"paused"],[eS,1,"ended"],[eL,1,"lang"]],[ew,ex],eE)).e)[0],eP=eB[1],eR=eB[2],eO=eB[3],e.PlayButton=(eN=eM.c)[0],eT=eN[1],ek);var fW=pC(fQ());function fK(){var e=a(['<span part="off-icon"><slot name="off-icon">','</slot></span><span part="low-icon"><slot name="low-icon">','</slot></span><span part="high-icon"><slot name="high-icon">',"</slot></span>"]);return fK=function(){return e},e}var fZ=["volumechange"];function fY(){var e=a([':host{position:relative}:host([seek-offset^="-"]) [part=icon]{-webkit-transform:scaleX(-1);transform:scaleX(-1)}[part=offset]{color:#fff;color:var(--theoplayer-icon-color,#fff);font-size:7.2px;font-size:var(--theoplayer-seek-button-font-size,calc(var(--theoplayer-button-icon-height, var(--theoplayer-control-height, 24px))*.3));left:50%;position:absolute;top:52.5%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}']);return fY=function(){return e},e}eU=yT("theoplayer-mute-button"),eq=fO(["player","lang"]),eV=yS({reflect:!0,state:!0,type:String,attribute:yq.VOLUME_LEVEL}),eH=yS({reflect:!0,type:String,attribute:yq.LANG}),eG=yS({reflect:!1,attribute:!1}),e.MuteButton=void 0,new(e$=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[fW]),ej(),r}return i(r,t),r}(l),eI=yN("____private_volumeLevel_1"),eD=yN("____private_lang_2"),eF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eI,{writable:!0,value:void 0}),Object.defineProperty(t,eD,{writable:!0,value:void 0}),yM(t,eI)[eI]=(eK(t),eQ(t,"off")),yM(t,eD)[eD]=eW(t,""),t._updateFromPlayer=function(){if(void 0!==t._player){var e=t._player.volume;t._player.muted?t.volumeLevel="off":e<.5?t.volumeLevel="low":t.volumeLevel="high"}else t.volumeLevel="off"},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r.handleClick=function(){void 0!==this._player&&(this._player.muted=!this._player.muted,this._updateFromPlayer())},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel="off"===this.volumeLevel?e.unmuteAria:e.muteAria},r.render=function(){return yn(fK(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m19.225 22.55-2.25-2.275q-.175.1-.35.187-.175.088-.375.163-.525.2-1.075-.138-.55-.337-.55-1.062 0-.225.088-.425.087-.2.287-.325.05-.025.138-.088.087-.062.137-.087l-2.65-2.7v2.425q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5H3.525q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113.462-.462 1.112-.462H5.2L1.35 4.2Q1 3.85 1 3.375t.35-.825q.35-.35.85-.35t.85.35L20.9 20.9q.35.35.35.825t-.35.825q-.35.35-.838.35-.487 0-.837-.35ZM16.25 3.325q2.6 1.1 4.188 3.425 1.587 2.325 1.587 5.225 0 1.425-.4 2.7-.4 1.275-1.125 2.4L18.775 15.3q.425-.75.638-1.588.212-.837.212-1.737 0-2.125-1.175-3.875t-3.1-2.575q-.325-.125-.525-.4t-.2-.625q0-.65.525-1.038.525-.387 1.1-.137Zm.925 10.35-2.55-2.6V7.65q1.275.6 2.088 1.762.812 1.163.812 2.588 0 .45-.087.875-.088.425-.263.8ZM12.625 9l-3.45-3.575.775-.775q.75-.75 1.713-.338.962.413.962 1.463Z"/></svg>\n'),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M16.275 20.625q-.575.25-1.1-.15-.525-.4-.525-1.05 0-.35.188-.613.187-.262.512-.387 1.925-.825 3.113-2.575 1.187-1.75 1.187-3.875T18.463 8.1q-1.188-1.75-3.113-2.575-.325-.125-.512-.4-.188-.275-.188-.625 0-.65.525-1.038.525-.387 1.1-.137 2.6 1.1 4.175 3.425 1.575 2.325 1.575 5.225 0 2.9-1.575 5.225-1.575 2.325-4.175 3.425ZM3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'))},v(t,[{key:"volumeLevel",get:function(){return yM(this,eI)[eI]},set:function(e){yM(this,eI)[eI]=e}},{key:"lang",get:function(){return yM(this,eD)[eD]},set:function(e){yM(this,eD)[eD]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(fZ,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(fZ,this._updateFromPlayer))}}]),t}(ez=e.Button),eQ=(eY=(eZ=o(eF,[[eV,1,"volumeLevel"],[eH,1,"lang"],[eG,4,"player"]],[eU,eq],ez)).e)[0],eW=eY[1],eK=eY[2],e.MuteButton=(eJ=eZ.c)[0],ej=eJ[1],e$);var fJ=pC(fY());function fX(e){return!isNaN(e)&&isFinite(e)}function f0(e,t,r){void 0===t&&(t=0);var n,i=e<0||r&&0===e,a=Math.floor(t/60%60),o=Math.floor(t/3600);if(fX(e=Math.abs(e))){var l=Math.floor(e%60),s=Math.floor(e/60%60),u=Math.floor(e/3600),c=u>0||o>0;n=[c?""+u:"",(c||a>=0)&&s<10?"0"+s:""+s,l<10?"0"+l:""+l]}else n=[o>0?"--":"","--","--"];return(i?"-":"")+n.filter(function(e){return""!==e}).join(":")}function f1(e){return{hours:Math.floor(e/3600),minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}}function f2(e,t,r){if(!fX(t))return"";var n=t<0||r&&0===t,i=e.formatDuration(f1(Math.abs(t)));return n?e.formatRemainingDuration(i):i}function f5(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><span part="offset">',"</span>"]);return f5=function(){return e},e}function f3(){var e=a([":host{background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-text-color,#fff);display:inline-block;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));overflow:hidden;padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;text-align:center;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}"]);return f3=function(){return e},e}e5=yT("theoplayer-seek-button"),e3=fO(["player","lang"]),e7=yS({reflect:!0,type:Number,attribute:yq.SEEK_OFFSET}),e6=yS({reflect:!0,type:String,attribute:yq.LANG}),e9=yS({reflect:!1,attribute:!1}),e.SeekButton=void 0,new(e2=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[fJ]),e4(),r}return i(r,t),r}(l),eX=yN("____private_seekOffset_1"),e0=yN("____private_lang_2"),e1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eX,{writable:!0,value:void 0}),Object.defineProperty(t,e0,{writable:!0,value:void 0}),yM(t,eX)[eX]=(tr(t),te(t,10)),yM(t,e0)[e0]=tt(t,""),t}i(t,e);var r=t.prototype;return r.handleClick=function(){if(void 0!==this._player){var e=this._player.duration;isNaN(e)||(this._player.currentTime=Math.max(0,Math.min(e,this._player.currentTime+this.seekOffset)))}},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang),t=this.seekOffset,r=e.formatDuration(f1(Math.abs(t)));this.ariaLabel=t>=0?e.seekForwardAria(r):e.seekBackwardAria(r)},r.render=function(){return yn(f5(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 22.25q-1.925 0-3.6-.738-1.675-.737-2.912-1.974Q4.25 18.3 3.525 16.625q-.725-1.675-.725-3.6 0-1.9.725-3.575.725-1.675 1.963-2.925 1.237-1.25 2.925-1.975Q10.1 3.825 12 3.825h.15l-.7-.7q-.3-.325-.313-.788-.012-.462.313-.812.35-.35.813-.35.462 0 .812.325l2.65 2.675q.325.325.325.8 0 .475-.325.8l-2.65 2.65q-.325.325-.8.325-.475 0-.825-.35-.3-.325-.3-.8 0-.475.3-.8l.7-.7H12q-2.9 0-4.912 2.012-2.013 2.013-2.013 4.913 0 2.9 2.013 4.925Q9.1 19.975 12 19.975q2.6 0 4.55-1.687 1.95-1.688 2.325-4.238.05-.45.4-.738.35-.287.8-.287.45 0 .788.275.337.275.287.7-.375 3.55-2.987 5.9Q15.55 22.25 12 22.25Z"/></svg>\n'),String(Math.abs(this.seekOffset)))},v(t,[{key:"seekOffset",get:function(){return yM(this,eX)[eX]},set:function(e){yM(this,eX)[eX]=e}},{key:"lang",get:function(){return yM(this,e0)[e0]},set:function(e){yM(this,e0)[e0]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(e8=e.Button),te=(ti=(tn=o(e1,[[e7,1,"seekOffset"],[e6,1,"lang"],[e9,4,"player"]],[e5,e3],e8)).e)[0],tt=ti[1],tr=ti[2],e.SeekButton=(ta=tn.c)[0],e4=ta[1],e2);var f4=pC(f3());function f8(){var e=a(["<span>","</span>"]);return f8=function(){return e},e}var f7=["timeupdate","seeking","seeked","durationchange"];function f6(){var e=a(["<span>","</span>"]);return f6=function(){return e},e}tv=yT("theoplayer-time-display"),t_=fO(["player","streamType","lang"]),tb=yS({reflect:!1,attribute:!1}),tm=yS({reflect:!0,type:Boolean,attribute:yq.REMAINING}),tk=yS({reflect:!0,type:Boolean,attribute:yq.REMAINING_WHEN_LIVE}),tw=yS({reflect:!0,type:Boolean,attribute:yq.SHOW_DURATION}),tx=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),tT=yS({reflect:!0,type:String,attribute:yq.LANG}),tE=yL(),tA=yL(),tS=yL(),e.TimeDisplay=void 0,new(tf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f4],tg(),t}return i(t,e),t}(l),to=yN("____private_remaining_1"),tl=yN("____private_remainingWhenLive_2"),ts=yN("____private_showDuration_3"),tu=yN("____private_streamType_4"),tc=yN("____private_lang_5"),th=yN("____private__currentTime_6"),td=yN("____private__duration_7"),tp=yN("____private__endTime_8"),ty=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,to,{writable:!0,value:void 0}),Object.defineProperty(t,tl,{writable:!0,value:void 0}),Object.defineProperty(t,ts,{writable:!0,value:void 0}),Object.defineProperty(t,tu,{writable:!0,value:void 0}),Object.defineProperty(t,tc,{writable:!0,value:void 0}),Object.defineProperty(t,th,{writable:!0,value:void 0}),Object.defineProperty(t,td,{writable:!0,value:void 0}),Object.defineProperty(t,tp,{writable:!0,value:void 0}),yM(t,to)[to]=(tI(t),tL(t,!1)),yM(t,tl)[tl]=tC(t,!1),yM(t,ts)[ts]=tP(t,!1),yM(t,tu)[tu]=tR(t,"vod"),yM(t,tc)[tc]=tO(t,""),yM(t,th)[th]=tM(t,0),yM(t,td)[td]=tB(t,NaN),yM(t,tp)[tp]=tN(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.currentTime:0,n=t._player?t._player.duration:NaN,i=null==(e=t._player)?void 0:e.seekable,a=isFinite(n)?n:i&&i.length>0?i.end(0):NaN;t._currentTime=r,t._duration=n,t._endTime=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","progressbar"),this.hasAttribute(yq.ARIA_LIVE)||this.setAttribute(yq.ARIA_LIVE,"off")},r.render=function(){var e,t,r=fV(this.lang),n=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType,i=this._currentTime,a=this._endTime;return n&&(i=-((this._endTime||0)-i)),e=this.showDuration&&!n?f0(i,a,n)+" / "+f0(a):f0(i,a,n),t=isNaN(this._duration)?r.unknownTimeAria:this.showDuration?r.timeOfTotalAria(f2(r,i,n),f2(r,a)):f2(r,i,n),this.setAttribute("aria-label",r.playbackTimeAria),this.setAttribute("aria-valuetext",t),yn(f8(),e)},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(f7,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(f7,this._updateFromPlayer))}},{key:"remaining",get:function(){return yM(this,to)[to]},set:function(e){yM(this,to)[to]=e}},{key:"remainingWhenLive",get:function(){return yM(this,tl)[tl]},set:function(e){yM(this,tl)[tl]=e}},{key:"showDuration",get:function(){return yM(this,ts)[ts]},set:function(e){yM(this,ts)[ts]=e}},{key:"streamType",get:function(){return yM(this,tu)[tu]},set:function(e){yM(this,tu)[tu]=e}},{key:"lang",get:function(){return yM(this,tc)[tc]},set:function(e){yM(this,tc)[tc]=e}},{key:"_currentTime",get:function(){return yM(this,th)[th]},set:function(e){yM(this,th)[th]=e}},{key:"_duration",get:function(){return yM(this,td)[td]},set:function(e){yM(this,td)[td]=e}},{key:"_endTime",get:function(){return yM(this,tp)[tp]},set:function(e){yM(this,tp)[tp]=e}}]),t}(yw),tL=(tF=(tD=o(ty,[[tb,4,"player"],[tm,1,"remaining"],[tk,1,"remainingWhenLive"],[tw,1,"showDuration"],[tx,1,"streamType"],[tT,1,"lang"],[tE,1,"_currentTime"],[tA,1,"_duration"],[tS,1,"_endTime"]],[tv,t_],yw)).e)[0],tC=tF[1],tP=tF[2],tR=tF[3],tO=tF[4],tM=tF[5],tB=tF[6],tN=tF[7],tI=tF[8],e.TimeDisplay=(t$=tD.c)[0],tg=t$[1],tf);var f9=["durationchange"];tz=yT("theoplayer-duration-display"),tV=fO(["player"]),tG=yS({reflect:!1,attribute:!1}),tQ=yL(),e.DurationDisplay=void 0,new(tj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f4],tH(),t}return i(t,e),t}(l),tU=yN("____private_duration_1"),tq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tU,{writable:!0,value:void 0}),yM(t,tU)[tU]=(tK(t),tW(t,NaN)),t._updateFromPlayer=function(){t.duration=t._player?t._player.duration:NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(yq.ARIA_LIVE)||this.setAttribute(yq.ARIA_LIVE,"off")},r.render=function(){return yn(f6(),f0(this.duration))},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(f9,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(f9,this._updateFromPlayer))}},{key:"duration",get:function(){return yM(this,tU)[tU]},set:function(e){yM(this,tU)[tU]=e}}]),t}(yw),tW=(tY=(tZ=o(tq,[[tG,4,"player"],[tQ,1,"duration"]],[tz,tV],yw)).e)[0],tK=tY[1],e.DurationDisplay=(tJ=tZ.c)[0],tH=tJ[1],tj);var ve=!function(){try{var e=new Event("change");return"change"===e.type}catch(e){}return!1}()?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1),r}:function(e,t){return new Event(e,t)},vt=!function(){try{var e=new CustomEvent("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?function(e,t){var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1,null==t?void 0:t.detail),r}:function(e,t){return new CustomEvent(e,t)};tX=yT("theoplayer-radio-button"),t1=yS({reflect:!0,type:Boolean,attribute:yq.ARIA_CHECKED,converter:{fromAttribute:function(e){return null!=e&&"false"!==e},toAttribute:function(e){return String(e)}}}),t2=yS({attribute:yq.VALUE}),e.RadioButton=void 0;var vr=yN("____private_value_1"),vn=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vr,{writable:!0,value:void 0}),t3(t),t._checked=!1,yM(t,vr)[vr]=t5(t,void 0),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){this.hasAttribute("role")||this.setAttribute("role","radio"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),e.prototype.connectedCallback.call(this)},r.handleClick=function(){this.checked=!0,this.dispatchEvent(ve("input",{bubbles:!0,composed:!0}))},r.handleChange=function(){},v(t,[{key:"checked",get:function(){return this._checked},set:function(e){this._checked!==e&&(this._checked=e,this.handleChange(),this.dispatchEvent(ve("change",{bubbles:!0})))}},{key:"value",get:function(){return yM(this,vr)[vr]},set:function(e){yM(this,vr)[vr]=e}}]),t}(t0=e.Button);t5=(t8=(t4=o(vn,[[t1,4,"checked"],[t2,1,"value"]],[tX],t0)).e)[0],t3=t8[1],e.RadioButton=(t7=t4.c)[0],(0,t7[1])();var vi=function(){function e(e,t,r,n){this.x=e,this.y=t,this.width=r,this.height=n}var t=e.prototype;return t.overlaps=function(e){return this.x<e.right&&this.right>e.x&&this.y<e.bottom&&this.bottom>e.y},t.contains=function(e){return this.x<=e.x&&e.right<=this.right&&this.y<=e.y&&e.bottom<=this.bottom},t.union=function(t){var r=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.right,t.right)-r,a=Math.max(this.bottom,t.bottom)-n;return new e(r,n,i,a)},t.snapToPixels=function(){return new e(Math.round(this.x),Math.round(this.y),Math.round(this.width),Math.round(this.height))},t.clone=function(){return new e(this.x,this.y,this.width,this.height)},t.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,left:this.left,right:this.right,top:this.top,bottom:this.bottom}},e.fromRect=function(t){var r,n,i,a,o,l;return new e(null!=(r=null!=(n=t.left)?n:t.x)?r:0,null!=(i=null!=(a=t.top)?a:t.y)?i:0,null!=(o=t.width)?o:0,null!=(l=t.height)?l:0)},v(e,[{key:"left",get:function(){return this.x},set:function(e){this.x=e}},{key:"right",get:function(){return this.x+this.width},set:function(e){this.x=e-this.width}},{key:"top",get:function(){return this.y},set:function(e){this.y=e}},{key:"bottom",get:function(){return this.y+this.height},set:function(e){this.y=e-this.height}}]),e}();function va(){var e=function(){var e,t,r=document.activeElement;if(null==r)return null;for(;null!=(t=null==(e=r.shadowRoot)?void 0:e.activeElement);)r=t;return r}();return e&&e!==document.body&&fg(e)?e:null}function vo(e,t,r){var n,i,a,o=va();if(null===o)return!1;var l=vi.fromRect(e.getBoundingClientRect()).snapToPixels(),s=vi.fromRect(o.getBoundingClientRect()).snapToPixels(),u=t.map(function(e){return{child:e,rect:vi.fromRect(e.getBoundingClientRect()).snapToPixels()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(r===yj.LEFT||r===yj.RIGHT){var c=s.clone();r===yj.LEFT?(c.left=l.left,c.width=s.left-l.left):(c.left=s.right,c.width=l.right-s.right),0===(a=u.filter(function(e){return c.overlaps(e.rect)})).length&&(c.top=l.top,c.height=l.height,a=u.filter(function(e){return c.overlaps(e.rect)}))}else{var h=s.clone();r===yj.UP?(h.top=l.top,h.height=s.top-l.top):(h.top=s.bottom,h.height=l.bottom-s.bottom),0===(a=u.filter(function(e){return h.overlaps(e.rect)})).length&&(h.left=l.left,h.width=l.width,a=u.filter(function(e){return h.overlaps(e.rect)}))}var d=(n=a,i=function(e){var t,r,n;return t=e.rect,r=s,n=0,t.right<r.left?n+=r.left-t.right:r.right<t.left&&(n+=t.left-r.right),t.bottom<r.top?n+=r.top-t.bottom:r.bottom<t.top&&(n+=t.top-r.bottom),n},function(e,t){if(0!==e.length)return e.reduce(function(e,r){return 0>=t(e,r)?e:r})}(n,function(e,t){return i(e)-i(t)}));return void 0!==d&&(d.child.focus(),!0)}function vl(){var e=a(["<slot ",' @slotchange="','"></slot>']);return vl=function(){return e},e}t6=yT("theoplayer-radio-group"),t9=fO(["deviceType"]),re=yS({reflect:!0,type:String,attribute:yq.DEVICE_TYPE}),rt=yS({attribute:yq.VALUE}),e.RadioGroup=void 0;var vs=yN("____private_deviceType_1"),vu=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,vs,{writable:!0,value:void 0}),rn(t),t._slotRef=fe(),t._radioButtons=[],t._value=void 0,yM(t,vs)[vs]=rr(t,"desktop"),t._onSlotChange=function(){var e,r=t._slotRef.value;if(r){for(var n,i=fA(r),a=[],o=fd(i);!(n=o()).done;){var l=n.value;if(!vc(l)){var s=fL(l);s&&a.push(s)}}a.length>0&&Promise.all(a).then(t._onSlotChange,fv),t._radioButtons=i.filter(vc),t.focusedRadioButton||null==(e=t.firstRadioButton)||e.setAttribute("tabindex","0"),t.updateCheckedButton()}},t._onKeyDown=function(e){if("tv"===t.deviceType&&yz(e.keyCode)){vo(t,t._radioButtons,e.keyCode)&&(e.preventDefault(),e.stopPropagation());return}switch(e.keyCode){case yj.UP:case yj.LEFT:t._focusPrevButton()&&e.preventDefault();break;case yj.DOWN:case yj.RIGHT:t._focusNextButton()&&e.preventDefault();break;case yj.HOME:e.preventDefault(),t.setFocusedRadioButton(t.firstRadioButton);break;case yj.END:e.preventDefault(),t.setFocusedRadioButton(t.lastRadioButton)}},t._onButtonChange=function(e){var r=e.target;null!==r&&r.checked&&(t.value=r.value)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","radiogroup"),this.addEventListener("keydown",this._onKeyDown),this._onSlotChange()},r.disconnectedCallback=function(){e.prototype.disconnectedCallback.call(this),this.removeEventListener("keydown",this._onKeyDown)},r.firstUpdated=function(){this._onSlotChange()},r.createRenderRoot=function(){var t=e.prototype.createRenderRoot.call(this);return t.addEventListener("change",this._onButtonChange),t},r.allRadioButtons=function(){return this._radioButtons},r._prevRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>0?this._radioButtons[t-1]:null},r._nextRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>=0&&t<this._radioButtons.length-1?this._radioButtons[t+1]:null},r._focusPrevButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.firstRadioButton?this.setFocusedRadioButton(this.lastRadioButton):this.setFocusedRadioButton(this._prevRadioButton(e)),!0)},r._focusNextButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.lastRadioButton?this.setFocusedRadioButton(this.firstRadioButton):this.setFocusedRadioButton(this._nextRadioButton(e)),!0)},r.setFocusedRadioButton=function(e){this._unfocusAll(),e&&(e.tabIndex=0,e.focus())},r._unfocusAll=function(){for(var e,t=fd(this.allRadioButtons());!(e=t()).done;)e.value.tabIndex=-1},r.setCheckedRadioButton=function(e){for(var t,r=fd(this.allRadioButtons());!(t=r()).done;){var n=t.value;n.checked=n===e}},r.updateCheckedButton=function(){var e=this,t=this.allRadioButtons().find(function(t){return t.value==e.value});this.setCheckedRadioButton(null!=t?t:null)},r.render=function(){return yn(vl(),fn(this._slotRef),this._onSlotChange)},v(t,[{key:"deviceType",get:function(){return yM(this,vs)[vs]},set:function(e){yM(this,vs)[vs]=e}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.updateCheckedButton(),this.dispatchEvent(ve("change",{bubbles:!0})))}},{key:"focusedRadioButton",get:function(){var e;return null!=(e=fk(this._radioButtons,function(e){return 0===e.tabIndex}))?e:null}},{key:"checkedRadioButton",get:function(){var e;return null!=(e=fk(this._radioButtons,function(e){return e.checked}))?e:null}},{key:"firstRadioButton",get:function(){var e;return null!=(e=this._radioButtons[0])?e:null}},{key:"lastRadioButton",get:function(){var e=this._radioButtons;return e.length>0?e[e.length-1]:null}}]),t}(yw);function vc(t){return T(t,e.RadioButton)}function vh(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-menu-color,#fff);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);pointer-events:none}:host([hidden]){display:none!important}[part=heading]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center;align-self:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;pointer-events:auto}[part=heading] ::slotted(span),[part=heading]>span{padding:10px;padding:var(--theoplayer-control-padding,10px);padding-left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=content],[part=heading]>theoplayer-menu-close-button{pointer-events:auto}[part=content]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-item-align:center;-ms-grid-row-align:center;--theoplayer-control-hover-background:var(--theoplayer-menu-control-hover-background,hsla(0,0%,100%,.3));align-self:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:10px;margin:var(--theoplayer-menu-margin,10px);max-height:100%;max-width:100%;max-width:var(--theoplayer-menu-max-width,100%);min-height:0;min-width:80%;min-width:var(--theoplayer-menu-min-width,80%);overflow-y:auto}"]);return vh=function(){return e},e}rr=(ra=(ri=o(vu,[[re,1,"deviceType"],[rt,4,"value"]],[t6,t9],yw)).e)[0],rn=ra[1],e.RadioGroup=(ro=ri.c)[0],(0,ro[1])();var vd=pC(vh()),vp="theoplayermenuclose",vy="theoplayermenuchange";function vf(){var e=a(["",""]);return vf=function(){return e},e}function vv(){var e=a(['<div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>','</div><div part="content" @input="','">',"</div>"]);return vv=function(){return e},e}function v_(){var e=a(['<slot name="heading"></slot>']);return v_=function(){return e},e}function vg(){var e=a(["<slot></slot>"]);return vg=function(){return e},e}function vb(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;pointer-events:none}:host([hidden]){display:none!important}::slotted(*),:host>*{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch;min-height:0}"]);return vb=function(){return e},e}rc=yT("theoplayer-menu"),rd=yS({reflect:!0,type:Boolean,attribute:yq.MENU_CLOSE_ON_INPUT}),rp=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.MENU_OPENED}),e.Menu=void 0,new(ru=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vd],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),rh(),t}return i(t,e),t}(l),rl=yN("____private_closeOnInput_1"),rs=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,rl,{writable:!0,value:void 0}),rf(r),r._menuOpened=!1,yM(r,rl)[rl]=ry(r,!1),r._onContentInput=function(){if(r.closeOnInput){var e=vt(vp,{bubbles:!0,composed:!0});r.dispatchEvent(e)}},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(yq.HIDDEN,"")},r.openMenu=function(){this.menuOpened_=!0},r.closeMenu=function(){this.menuOpened_=!1},r.render=function(){return this._template?yn(vf(),yF(this._template)):yn(vv(),this.renderMenuHeading(),this._onContentInput,this.renderMenuContent())},r.renderMenuHeading=function(){return yn(v_())},r.renderMenuContent=function(){return yn(vg())},v(t,[{key:"closeOnInput",get:function(){return yM(this,rl)[rl]},set:function(e){yM(this,rl)[rl]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,fT(this,yq.HIDDEN,!e);var t=vt(vy,{bubbles:!0});this.dispatchEvent(t)}}}]),t}(yw),ry=(r_=(rv=o(rs,[[rd,1,"closeOnInput"],[rp,4,"menuOpened_"]],[rc],yw)).e)[0],rf=r_[1],e.Menu=(rg=rv.c)[0],rh=rg[1],ru);var vm=pC(vb()),vk="theoplayermenutoggle";function vw(){var e=a(["",""]);return vw=function(){return e},e}function vx(){var e=a(['<slot @slotchange="','"></slot>']);return vx=function(){return e},e}function vT(t){return!!fg(t)&&(T(t,e.Menu)||T(t,e.MenuGroup))}rw=yT("theoplayer-menu-group"),rT=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.MENU_OPENED}),e.MenuGroup=void 0,new(rk=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vm],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),rx(),t}return i(t,e),t}(l),rb=yN("____private__menuSlot_1"),rm=function(t){function r(r){var n;return Object.defineProperty(n=t.call(this)||this,rb,{writable:!0,value:void 0}),rA(n),n._menuOpened=!1,yM(n,rb)[rb]=rE(n,null),n._menus=[],n._openMenuStack=[],n._onMenuListChange=function(){for(var e,t=[].concat(fm(n.shadowRoot.children),n._menuSlot?fA(n._menuSlot):[]),r=[],i=fd(t);!(e=i()).done;){var a=e.value;if(!vT(a)){var o=fL(a);o&&r.push(o)}}r.length>0&&Promise.all(r).then(n._onMenuListChange,fv);for(var l,s=t.filter(vT),u=fd(n._menus);!(l=u()).done;){var c=l.value;0>s.indexOf(c)&&n.closeMenu(c.id)}for(var h,d=fd(s);!(h=d()).done;){var p=h.value;0>n._menus.indexOf(p)&&p.closeMenu()}n._menus=s},n._onToggleMenu=function(e){var t=e.detail.menu;if(n.getMenuById(t)){e.stopPropagation();var r=fg(e.target)?e.target:void 0;n.isMenuOpen(t)?n.closeMenu(t):n.openMenu(t,r)}},n._onCloseMenu=function(e){n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._onMenuChange=function(t){var r=n.getCurrentMenu_();r&&r.menu===t.target&&T(r.menu,e.MenuGroup)&&!r.menu.hasCurrentMenu()&&n.closeCurrentMenu()},n._onKeyDown=function(e){!e.altKey&&yV(e.keyCode)&&n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._template=null==r?void 0:r.template,n._template&&n.performUpdate(),n}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(yq.HIDDEN,"")},n.createRenderRoot=function(){var e=t.prototype.createRenderRoot.call(this);return e.addEventListener(vk,this._onToggleMenu),e.addEventListener(vp,this._onCloseMenu),e.addEventListener(vy,this._onMenuChange),e},n.render=function(){return this._template?yn(vw(),yF(this._template)):yn(vx(),this._onMenuListChange)},n.firstUpdated=function(){this._onMenuListChange()},n.getMenuById=function(e){return e&&e!==this.id?fk(this._menus,function(t){return t.id===e}):this},n.openMenu=function(e,t){var r=this.getMenuById(e);if(r===this&&(r=this._menus[0]),!r)return!1;var n=this.getCurrentMenu_(),i=fw(this._openMenuStack,function(e){return e.menu===r});return i>=0?this.closeMenusFromIndex_(i+1):this._openMenuStack.push({menu:r,opener:t}),n&&n.menu.closeMenu(),r.openMenu(),this.menuOpened_=!0,r.focus(),!0},n.closeMenu=function(e){var t,r,n=this.getMenuById(e);if(n===this&&(n=null==(r=this._openMenuStack[0])?void 0:r.menu),!n)return!1;var i=fw(this._openMenuStack,function(e){return e.menu===n});if(i<0)return!1;var a=this._openMenuStack[i];this.closeMenusFromIndex_(i);var o=this.getCurrentMenu_();return void 0!==o?(o.menu.openMenu(),this.menuOpened_=!0,a.opener&&o.menu.contains(a.opener)?a.opener.focus():o.menu.focus()):(this.menuOpened_=!1,null==(t=a.opener)||t.focus()),!0},n.closeMenusFromIndex_=function(e){for(var t=this._openMenuStack.length-e,r=this._openMenuStack.length-1;r>=e;r--)this._openMenuStack[r].menu.closeMenu();this._openMenuStack.splice(e,t)},n.hasCurrentMenu=function(){return this._openMenuStack.length>0},n.getCurrentMenu_=function(){return this._openMenuStack.length>0?this._openMenuStack[this._openMenuStack.length-1]:void 0},n.closeCurrentMenu=function(){var e=this.getCurrentMenu_();return void 0!==e&&(this.closeMenu(e.menu.id),!0)},n.isMenuOpen=function(e){var t=this.getMenuById(e);return!!t&&this._openMenuStack.some(function(e){return e.menu===t})},v(r,[{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,fT(this,yq.MENU_OPENED,e),e?(this.removeAttribute(yq.HIDDEN),this.removeEventListener("keydown",this._onKeyDown),this.addEventListener("keydown",this._onKeyDown)):(this.setAttribute(yq.HIDDEN,""),this.removeEventListener("keydown",this._onKeyDown));var t=vt(vy,{bubbles:!0});this.dispatchEvent(t)}}},{key:"_menuSlot",get:function(){return yM(this,rb)[rb]},set:function(e){yM(this,rb)[rb]=e}}]),r}(yw),rE=(rL=(rS=o(rm,[[rT,4,"menuOpened_"],[function(e,t,r){var n=function(e){var t,r;return null!=(t=null==(r=e.renderRoot)?void 0:r.querySelector("slot"))?t:null};return yC(e,t,{get:function(){return n(this)}})},1,"_menuSlot"]],[rw],yw)).e)[0],rA=rL[1],e.MenuGroup=(rC=rS.c)[0],rx=rC[1],rk),rP=yT("theoplayer-menu-button"),rO=yS({reflect:!0,type:String,attribute:yq.MENU}),rM=yS({reflect:!0,state:!0,type:String,attribute:"aria-controls"}),e.MenuButton=void 0;var vE=yN("____private__ariaControls_1"),vA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vE,{writable:!0,value:void 0}),rN(t),t._menuId=null,yM(t,vE)[vE]=rB(t,null),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("aria-haspopup")||this.setAttribute("aria-haspopup","true")},r.handleClick=function(){var e=this.menu;if(e){var t=vt(vk,{bubbles:!0,composed:!0,detail:{menu:e}});this.dispatchEvent(t)}},v(t,[{key:"menu",get:function(){return this._menuId},set:function(e){e?(null==this._ariaControls||this._ariaControls===this._menuId)&&(this._ariaControls=e):this._ariaControls===this._menuId&&(this._ariaControls=null),this._menuId=e}},{key:"_ariaControls",get:function(){return yM(this,vE)[vE]},set:function(e){yM(this,vE)[vE]=e}}]),t}(rR=e.Button);function vS(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return vS=function(){return e},e}rB=(rD=(rI=o(vA,[[rO,4,"menu"],[rM,1,"_ariaControls"]],[rP],rR)).e)[0],rN=rD[1],e.MenuButton=(rF=rI.c)[0],(0,rF[1])(),r$=yT("theoplayer-menu-close-button"),rU=fO(["lang"]),rj=yS({reflect:!0,type:String,attribute:yq.LANG}),e.CloseMenuButton=void 0;var vL=yN("____private_lang_1"),vC=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vL,{writable:!0,value:void 0}),yM(t,vL)[vL]=(rV(t),rz(t,"")),t}i(t,e);var r=t.prototype;return r.handleClick=function(){var e=vt(vp,{bubbles:!0,composed:!0});this.dispatchEvent(e)},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.closeMenuAria},r.render=function(){return yn(vS(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m10.525 19.275-6.375-6.35q-.175-.2-.262-.437Q3.8 12.25 3.8 12t.088-.488q.087-.237.262-.437l6.375-6.35q.375-.375.925-.388.55-.012.95.388.375.4.388.937.012.538-.363.938l-4.1 4.075H18.35q.55 0 .938.387.387.388.387.938 0 .55-.387.938-.388.387-.938.387H8.325l4.1 4.075q.35.375.363.925.012.55-.363.95-.4.4-.95.4-.55 0-.95-.4Z"/></svg>\n'))},v(t,[{key:"lang",get:function(){return yM(this,vL)[vL]},set:function(e){yM(this,vL)[vL]=e}}]),t}(rq=e.Button);function vP(){var e=a(["<slot>","</slot>"]);return vP=function(){return e},e}rz=(rG=(rH=o(vC,[[rj,1,"lang"]],[r$,rU],rq)).e)[0],rV=rG[1],e.CloseMenuButton=(rQ=rH.c)[0],(0,rQ[1])();var vR=["change","update"];rW=yT("theoplayer-media-track-radio-button"),rK=fO(["lang"]),rY=yL(),rJ=yS({reflect:!0,type:String,attribute:yq.LANG}),rX=yS({reflect:!1,attribute:!1}),e.MediaTrackRadioButton=void 0;var vO=yN("____private__track_1"),vM=yN("____private_lang_2"),vB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vO,{writable:!0,value:void 0}),Object.defineProperty(t,vM,{writable:!0,value:void 0}),yM(t,vO)[vO]=(r2(t),r0(t,void 0)),yM(t,vM)[vM]=r1(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this.checked=!!this._track&&this._track.enabled,this.requestUpdate()},r._updateTrack=function(){this._track&&(this._track.enabled=this.checked)},r.handleChange=function(){this._updateTrack()},r.render=function(){var e=fV(this.lang),t=this._track?function(e,t){var r=t.label,n=t.language;if(r&&(!n||r!==n&&r!==fj.formatLanguage(n)))return r;var i=n&&e.formatLanguage(n);return i||r||n||""}(e,this._track):"";return yn(vP(),t)},v(t,[{key:"_track",get:function(){return yM(this,vO)[vO]},set:function(e){yM(this,vO)[vO]=e}},{key:"lang",get:function(){return yM(this,vM)[vM]},set:function(e){yM(this,vM)[vM]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(vR,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(vR,this._onTrackChange))}}]),t}(rZ=e.RadioButton);function vN(){var e=a([":host,theoplayer-radio-group{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([hidden]){display:none!important}"]);return vN=function(){return e},e}r0=(r3=(r5=o(vB,[[rY,1,"_track"],[rJ,1,"lang"],[rX,4,"track"]],[rW,rK],rZ)).e)[0],r1=r3[1],r2=r3[2],e.MediaTrackRadioButton=(r4=r5.c)[0],(0,r4[1])();var vI=pC(vN());function vD(e){return"subtitles"===e.kind||"captions"===e.kind}function vF(e){return vD(e)&&!e.forced}function v$(e){var t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}function vU(e,t){if(t){if(t.label&&""!==t.label)return t.label;if(t.height)return""+t.height+"p";if(t.bandwidth)return e.formatBandwidth(t.bandwidth)}}var vq=function(e,t,r){for(var n=new Map,i=t;i<=r;i++)n.set(e[i],i);return n},vj=yI(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("repeat() can only be used in text expressions");return r}return i(t,e),v(t,[{key:"dt",value:function(e,t,r){void 0===r?r=t:void 0!==t&&(u=t);var n=[],i=[],a=0,o=!0,l=!1,s=void 0;try{for(var u,c,h=e[Symbol.iterator]();!(o=(c=h.next()).done);o=!0){var d=c.value;n[a]=u?u(d,a):a,i[a]=r(d,a),a++}}catch(e){l=!0,s=e}finally{try{o||null==h.return||h.return()}finally{if(l)throw s}}return{values:i,keys:n}}},{key:"render",value:function(e,t,r){return this.dt(e,t,r).values}},{key:"update",value:function(e,t){var r,n=b(t,3),i=n[0],a=n[1],o=n[2],l=e._$AH,s=this.dt(i,a,o),u=s.values,c=s.keys;if(!Array.isArray(l))return this.ut=c,u;for(var h,d,p,y=null!=(h=this.ut)?h:this.ut=[],f=[],v=0,_=l.length-1,g=0,m=u.length-1;v<=_&&g<=m;)if(null===l[v])v++;else if(null===l[_])_--;else if(y[v]===c[g])f[g]=y0(l[v],u[g]),v++,g++;else if(y[_]===c[m])f[m]=y0(l[_],u[m]),_--,m--;else if(y[v]===c[m])f[m]=y0(l[v],u[m]),yX(e,f[m+1],l[v]),v++,m--;else if(y[_]===c[g])f[g]=y0(l[_],u[g]),yX(e,l[v],l[_]),_--,g++;else if(void 0===d&&(d=vq(c,g,m),p=vq(y,v,_)),d.has(y[v]))if(d.has(y[_])){var k=p.get(c[g]),w=void 0!==k?l[k]:null;if(null===w){var x=yX(e,l[v]);y0(x,u[g]),f[g]=x}else f[g]=y0(w,u[g]),yX(e,l[v],w),l[k]=null;g++}else y2(l[_]),_--;else y2(l[v]),v++;for(;g<=m;){var T=yX(e,f[m+1]);y0(T,u[g]),f[g++]=T}for(;v<=_;){var E=l[v++];null!==E&&y2(E)}return this.ut=c,void 0===(r=f)&&(r=y1),e._$AH=r,yi}}]),t}(yD));function vz(){var e=a(['<theoplayer-text-track-off-radio-button .trackList="','" lang="','"></theoplayer-text-track-off-radio-button>']);return vz=function(){return e},e}function vV(){var e=a(['<theoplayer-text-track-radio-button .track="','" lang="','"></theoplayer-text-track-radio-button>']);return vV=function(){return e},e}function vH(){var e=a(['<theoplayer-media-track-radio-button .track="','" lang="','"></theoplayer-media-track-radio-button>']);return vH=function(){return e},e}function vG(){var e=a(['<theoplayer-radio-group @change="','">'," ","</theoplayer-radio-group>"]);return vG=function(){return e},e}var vQ=["addtrack","removetrack"];function vW(){var e=a(["<slot>","</slot>"]);return vW=function(){return e},e}nt=yT("theoplayer-track-radio-group"),nr=fO(["player","lang"]),ni=yL(),na=yS({reflect:!0,type:String,attribute:yq.TRACK_TYPE}),no=yS({reflect:!0,type:Boolean,attribute:yq.SHOW_OFF}),nl=yS({reflect:!0,type:String,attribute:yq.LANG}),e.TrackRadioGroup=void 0,new(ne=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vI],nn(),t}return i(t,e),t}(l),r8=yN("____private__tracksList_1"),r7=yN("____private_showOffButton_2"),r6=yN("____private_lang_3"),r9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,r8,{writable:!0,value:void 0}),Object.defineProperty(t,r7,{writable:!0,value:void 0}),Object.defineProperty(t,r6,{writable:!0,value:void 0}),nh(t),t._trackType="audio",yM(t,r8)[r8]=ns(t),yM(t,r7)[r7]=nu(t,!1),yM(t,r6)[r6]=nc(t,""),t._updateTracks=function(){return t.requestUpdate()},t._onChange=function(){t.dispatchEvent(ve("change",{bubbles:!0}))},t}i(t,e);var r=t.prototype;return r._getTracksList=function(){if(void 0!==this._player){var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks:void 0}},r._updateTracksList=function(){var e=this._tracksList,t=this._getTracksList();e!==t&&(null==e||e.removeEventListener(vQ,this._updateTracks),null==t||t.addEventListener(vQ,this._updateTracks),this._tracksList=t)},r._getTracks=function(){if(void 0===this._player)return[];var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks.filter(vF):[]},r.render=function(){var e=this,t=this._getTracks(),r="subtitles"===this.trackType;return yn(vG(),this._onChange,this.showOffButton&&r?yn(vz(),this._tracksList,this.lang):void 0,vj(t,function(e){return e.uid},function(t){return r?yn(vV(),t,e.lang):yn(vH(),t,e.lang)}))},v(t,[{key:"_tracksList",get:function(){return yM(this,r8)[r8]},set:function(e){yM(this,r8)[r8]=e}},{key:"trackType",get:function(){return this._trackType},set:function(e){this._trackType=e,this._updateTracksList()}},{key:"showOffButton",get:function(){return yM(this,r7)[r7]},set:function(e){yM(this,r7)[r7]=e}},{key:"lang",get:function(){return yM(this,r6)[r6]},set:function(e){yM(this,r6)[r6]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._player=e,this._updateTracksList(),this._updateTracks())}}]),t}(yw),ns=(np=(nd=o(r9,[[ni,1,"_tracksList"],[na,4,"trackType"],[no,1,"showOffButton"],[nl,1,"lang"]],[nt,nr],yw)).e)[0],nu=np[1],nc=np[2],nh=np[3],e.TrackRadioGroup=(ny=nd.c)[0],nn=ny[1],ne);var vK=["change","update"];nf=yT("theoplayer-text-track-radio-button"),nv=fO(["lang"]),ng=yL(),nb=yS({reflect:!0,type:String,attribute:yq.LANG}),nm=yS({reflect:!1,attribute:!1}),e.TextTrackRadioButton=void 0;var vZ=yN("____private__track_1"),vY=yN("____private_lang_2"),vJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vZ,{writable:!0,value:void 0}),Object.defineProperty(t,vY,{writable:!0,value:void 0}),yM(t,vZ)[vZ]=(nx(t),nk(t,void 0)),yM(t,vY)[vY]=nw(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this.checked=!!this._track&&"showing"===this._track.mode,this.requestUpdate()},r._updateTrack=function(){this._track&&(this._track.mode=this.checked?"showing":"disabled")},r.handleChange=function(){this._updateTrack()},r.render=function(){var e=fV(this.lang),t=this._track?function(e,t){var r=t.label,n=t.language;if(r){if(n&&(r===n||r===fj.formatLanguage(n)));else if(!("cea608"===t.type&&/^CC\d+$/.test(t.label)))return r}var i=n&&e.formatLanguage(n);return i||("cea608"===t.type&&"number"==typeof t.captionChannel?"CC"+t.captionChannel:r||n||"")}(e,this._track):"";return yn(vW(),t)},v(t,[{key:"_track",get:function(){return yM(this,vZ)[vZ]},set:function(e){yM(this,vZ)[vZ]=e}},{key:"lang",get:function(){return yM(this,vY)[vY]},set:function(e){yM(this,vY)[vY]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(vK,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(vK,this._onTrackChange))}}]),t}(n_=e.RadioButton);function vX(){var e=a(["<slot>","</slot>"]);return vX=function(){return e},e}nk=(nE=(nT=o(vJ,[[ng,1,"_track"],[nb,1,"lang"],[nm,4,"track"]],[nf,nv],n_)).e)[0],nw=nE[1],nx=nE[2],e.TextTrackRadioButton=(nA=nT.c)[0],(0,nA[1])();var v0=["change"];nS=yT("theoplayer-text-track-off-radio-button"),nL=fO(["lang"]),nP=yS({reflect:!0,type:String,attribute:yq.LANG}),nR=yS({reflect:!1,attribute:!1}),e.TextTrackOffRadioButton=void 0;var v1=yN("____private_lang_1"),v2=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,v1,{writable:!0,value:void 0}),yM(t,v1)[v1]=(nM(t),nO(t,"")),t._trackList=void 0,t._onTrackChange=function(){t._updateFromTrackList()},t}i(t,e);var r=t.prototype;return r._updateFromTrackList=function(){this.checked=!this._trackList||!this._trackList.some(function(e){return vF(e)&&"showing"===e.mode})},r._updateTrackList=function(){this._trackList&&this.checked&&function(e){for(var t,r=fd(e);!(t=r()).done;){var n=t.value;vD(n)&&"showing"===n.mode&&(n.mode="disabled")}}(this._trackList)},r.handleChange=function(){this._updateTrackList()},r.render=function(){var e=fV(this.lang);return yn(vX(),e.subtitleOff)},v(t,[{key:"lang",get:function(){return yM(this,v1)[v1]},set:function(e){yM(this,v1)[v1]=e}},{key:"trackList",get:function(){return this._trackList},set:function(e){this._trackList&&this._trackList.removeEventListener(v0,this._onTrackChange),this._trackList=e,this._updateFromTrackList(),e&&e.addEventListener(v0,this._onTrackChange)}}]),t}(nC=e.RadioButton);function v5(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}[part=audio],[part=subtitles],theoplayer-track-radio-group{display:-webkit-box;display:-ms-flexbox;display:flex;min-height:0}[part=content]{-ms-grid-columns:1fr;display:-ms-grid;display:grid;grid-template-columns:1fr;min-height:0}:host([has-audio][has-subtitles]) [part=content]{-ms-grid-columns:1fr 10px 1fr;grid-template-columns:1fr 10px 1fr}:host([has-audio][has-subtitles]) [part=audio]{-ms-grid-column:1;grid-column:1}:host([has-audio][has-subtitles]) [part=subtitles]{-ms-grid-column:3;grid-column:3}:host(:not([has-audio])) [part=audio],:host(:not([has-subtitles])) [part=subtitles]{display:none!important}[part=audio],[part=subtitles]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-orient:vertical;-webkit-box-direction:normal;align-self:stretch;-ms-flex-direction:column;flex-direction:column;text-align:center}h2{margin:0 0 .5em}theoplayer-track-radio-group{overflow-y:auto}"]);return v5=function(){return e},e}nO=(nN=(nB=o(v2,[[nP,1,"lang"],[nR,4,"trackList"]],[nS,nL],nC)).e)[0],nM=nN[1],e.TextTrackOffRadioButton=(nI=nB.c)[0],(0,nI[1])();var v3=pC(v5());function v4(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}"]);return v4=function(){return e},e}var v8=pC(v4());function v7(){var e=a(["table{border-collapse:collapse;table-layout:auto}table,table td,table tr{margin:0;padding:0}table td>*{font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px)}table td:first-child{white-space:nowrap;width:0}table td:last-child{text-align:center}table td>theoplayer-menu-button{display:-webkit-box;display:-ms-flexbox;display:flex}"]);return v7=function(){return e},e}var v6=pC(v7()),v9=[{label:"White",value:"rgb(255,255,255)"},{label:"Yellow",value:"rgb(255,255,0)"},{label:"Green",value:"rgb(0,255,0)"},{label:"Cyan",value:"rgb(0,255,255)"},{label:"Blue",value:"rgb(0,0,255)"},{label:"Magenta",value:"rgb(255,0,255)"},{label:"Red",value:"rgb(255,0,0)"},{label:"Black",value:"rgb(0,0,0)"}],_e=[{label:"Monospace Serif",value:'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'},{label:"Proportional Serif",value:'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'},{label:"Monospace Sans",value:'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'},{label:"Proportional Sans",value:'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}],_t=[.5,.75,1,1.5,2],_r=[.25,.5,.75,1],_n=["none","dropshadow","raised","depressed","uniform"];function _i(e){var t,r;return e?fx(e,"rgb")?(t=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([0-9.]+))?\)$/i))?{r_:parseInt(t[1],10),g_:parseInt(t[2],10),b_:parseInt(t[3],10),a_:t[4]?parseFloat(t[4]):1}:null:fx(e,"#")?(r=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?{r_:parseInt(r[1],16),g_:parseInt(r[2],16),b_:parseInt(r[3],16),a_:1}:null:null:null}function _a(e){return"rgba("+e.r_+","+e.g_+","+e.b_+","+e.a_+")"}function _o(e){return"rgb("+e.r_+","+e.g_+","+e.b_+")"}function _l(e,t){return{r_:e.r_,g_:e.g_,b_:e.b_,a_:t}}var _s=_i("#ffffff"),_u=_i("#000000");function _c(){var e=a(["<span>","</span>"]);return _c=function(){return e},e}nD=yT("theoplayer-text-track-style-display"),nF=fO(["player","lang"]),n$=yS({reflect:!0,type:String,attribute:yq.LANG}),nU=yS({reflect:!0,type:String,attribute:yq.PROPERTY}),nq=yS({reflect:!1,attribute:!1}),e.TextTrackStyleDisplay=void 0;var _h=yN("____private_lang_1"),_d=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_h,{writable:!0,value:void 0}),yM(t,_h)[_h]=(nz(t),nj(t,"")),t._property="fontColor",t._updateFromPlayer=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.render=function(){var e=fV(this.lang);return yn(_c(),this.renderValue(e))},r.renderValue=function(e){if(void 0===this._player)return"";var t,r,n,i=this.property;switch(i){case"fontFamily":var a=this._player.textTrackStyle.fontFamily,o=e;if(!a)return o.textTrackStyleDefaultLabel;var l,s=fk(_e,function(e){return e.value===a});return s?null!=(l=o.fontFamilyLabels[s.label])?l:s.label:o.textTrackStyleCustomLabel;case"fontColor":case"backgroundColor":case"windowColor":return function(e,t){if(!e)return t.textTrackStyleDefaultLabel;var r=_i(e);if(r){var n,i=_o(r),a=fk(v9,function(e){return e.value===i});if(a)return null!=(n=t.colorLabels[a.label])?n:a.label}return t.textTrackStyleCustomLabel}(this._player.textTrackStyle[i],e);case"fontOpacity":return _p(this._player.textTrackStyle.fontColor,e);case"backgroundOpacity":return _p(this._player.textTrackStyle.backgroundColor,e);case"windowOpacity":return _p(this._player.textTrackStyle.windowColor,e);case"edgeStyle":return t=this._player.textTrackStyle.edgeStyle,r=e,t?null!=(n=r.edgeStyleLabels[t])?n:r.textTrackStyleCustomLabel:r.textTrackStyleDefaultLabel;default:return this._player.textTrackStyle[i]||e.textTrackStyleDefaultLabel}},v(t,[{key:"lang",get:function(){return yM(this,_h)[_h]},set:function(e){yM(this,_h)[_h]=e}},{key:"property",get:function(){return this._property},set:function(e){this._property=e,this._updateFromPlayer()}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),t}(yw);function _p(e,t){if(!e)return t.textTrackStyleDefaultLabel;var r=_i(e);return r?t.formatPercentage(r.a_):t.textTrackStyleCustomLabel}function _y(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return _y=function(){return e},e}function _f(e,t,r){var n,i,a,o=null!=(n=null==(i=_i(t))?void 0:i.a_)?n:1;if(""!==e||1!==o)return _a(_l(null!=(a=_i(e))?a:r,o))}function _v(e,t,r){var n,i=null!=(n=_i(t))?n:r;if(""!==e||i.r_!==r.r_||i.g_!==r.g_||i.b_!==r.b_)return _a(_l(i,""==e?1:Number(e)/100))}function __(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return __=function(){return e},e}function _g(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _g=function(){return e},e}function _b(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _b=function(){return e},e}function _m(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _m=function(){return e},e}function _k(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _k=function(){return e},e}function _w(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _w=function(){return e},e}function _x(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _x=function(){return e},e}function _T(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _T=function(){return e},e}function _E(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _E=function(){return e},e}function _A(){var e=a(['<theoplayer-menu class="theoplayer-text-track-style-menu"><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">','</slot></span><theoplayer-text-track-style-reset-button class="theoplayer-menu-heading-button" slot="heading"></theoplayer-text-track-style-reset-button><table><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-family-menu"><theoplayer-text-track-style-display property="fontFamily"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-color-menu"><theoplayer-text-track-style-display property="fontColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-opacity-menu"><theoplayer-text-track-style-display property="fontOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-size-menu"><theoplayer-text-track-style-display property="fontSize"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="background-color-menu"><theoplayer-text-track-style-display property="backgroundColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="background-opacity-menu"><theoplayer-text-track-style-display property="backgroundOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="window-color-menu"><theoplayer-text-track-style-display property="windowColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="window-opacity-menu"><theoplayer-text-track-style-display property="windowOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="edge-style-menu"><theoplayer-text-track-style-display property="edgeStyle"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="font-family-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontFamily"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-color-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontColor"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-opacity-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontOpacity"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-size-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontSize"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-color-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="backgroundColor"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-opacity-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="backgroundOpacity"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-color-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="windowColor"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-opacity-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="windowOpacity"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="edge-style-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="edgeStyle"><theoplayer-radio-button value="">',"</theoplayer-radio-button>","</theoplayer-text-track-style-radio-group></theoplayer-menu>"]);return _A=function(){return e},e}function _S(){var e=a(['<theoplayer-menu><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">','</slot></span><theoplayer-settings-menu-button class="theoplayer-menu-heading-button" menu="subtitle-options-menu" slot="heading" lang="','"></theoplayer-settings-menu-button><div part="content"><div part="audio"><h2>','</h2><theoplayer-track-radio-group track-type="audio" lang="','"></theoplayer-track-radio-group></div><div part="subtitles"><h2>','</h2><theoplayer-track-radio-group track-type="subtitles" show-off lang="','"></theoplayer-track-radio-group></div></div></theoplayer-menu><theoplayer-text-track-style-menu id="subtitle-options-menu" lang="','"></theoplayer-text-track-style-menu>']);return _S=function(){return e},e}nj=(nH=(nV=o(_d,[[n$,1,"lang"],[nU,4,"property"],[nq,4,"player"]],[nD,nF],yw)).e)[0],nz=nH[1],e.TextTrackStyleDisplay=(nG=nV.c)[0],(0,nG[1])(),nK=yT("theoplayer-text-track-style-radio-group"),nZ=fO(["player"]),nJ=yS({reflect:!0,type:String,attribute:yq.PROPERTY}),nX=yS({reflect:!1,attribute:!1}),n0=yS({reflect:!1,attribute:!1}),e.TextTrackStyleRadioGroup=void 0,new(nW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vI],nY(),t}return i(t,e),t}(l),nQ=function(t){function r(){var e;return e=t.apply(this,arguments)||this,n1(e),e._radioGroupRef=fe(),e._property="fontColor",e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=t.value)},e._updateFromPlayer=function(){if(void 0!==e._player)switch(e.property){case"fontColor":var t,r,n=e._player.textTrackStyle.fontColor;e.value=n?_o(null!=(r=_i(n))?r:_s):"";break;case"backgroundColor":var i,a=e._player.textTrackStyle.backgroundColor;e.value=a?_o(null!=(i=_i(a))?i:_u):"";break;case"windowColor":var o,l=e._player.textTrackStyle.windowColor;e.value=l?_o(null!=(o=_i(l))?o:_u):"";break;case"fontOpacity":var s,u,c=e._player.textTrackStyle.fontColor;e.value=c?String((null!=(s=null==(u=_i(c))?void 0:u.a_)?s:1)*100):"";break;case"backgroundOpacity":var h,d,p=e._player.textTrackStyle.backgroundColor;e.value=p?String((null!=(h=null==(d=_i(p))?void 0:d.a_)?h:1)*100):"";break;case"windowOpacity":var y,f,v=e._player.textTrackStyle.windowColor;e.value=v?String((null!=(y=null==(f=_i(v))?void 0:f.a_)?y:1)*100):"";break;default:e.value=null!=(t=e._player.textTrackStyle[e.property])?t:""}},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;T(t,e.RadioGroup)||customElements.upgrade(t),t.value=this.value},n._updateToPlayer=function(){if(void 0!==this._player)switch(this.property){case"fontColor":this._player.textTrackStyle.fontColor=_f(this.value,this._player.textTrackStyle.fontColor,_s);break;case"backgroundColor":this._player.textTrackStyle.backgroundColor=_f(this.value,this._player.textTrackStyle.backgroundColor,_u);break;case"windowColor":this._player.textTrackStyle.windowColor=_f(this.value,this._player.textTrackStyle.windowColor,_u);break;case"fontOpacity":this._player.textTrackStyle.fontColor=_v(this.value,this._player.textTrackStyle.fontColor,_s);break;case"backgroundOpacity":this._player.textTrackStyle.backgroundColor=_v(this.value,this._player.textTrackStyle.backgroundColor,_u);break;case"windowOpacity":this._player.textTrackStyle.windowColor=_v(this.value,this._player.textTrackStyle.windowColor,_u);break;default:this._player.textTrackStyle[this.property]=""==this.value?void 0:this.value}},n.render=function(){return yn(_y(),fn(this._radioGroupRef),this._onChange)},v(r,[{key:"property",get:function(){return this._property},set:function(e){this._property!==e&&(this._property=e,this._updateFromPlayer())}},{key:"value",get:function(){return this._value},set:function(e){if(this._value!==e){this._value=e,this._updateToPlayer();var t=this._radioGroupRef.value;t&&(t.value=e),this.dispatchEvent(ve("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),r}(yw),n1=(n2=o(nQ,[[nJ,4,"property"],[nX,4,"value"],[n0,4,"player"]],[nK,nZ],yw)).e[0],e.TextTrackStyleRadioGroup=(n5=n2.c)[0],nY=n5[1],nW),n7=yT("theoplayer-text-track-style-menu"),n6=fO(["lang"]),it=yS({reflect:!0,type:String,attribute:yq.LANG}),e.TextTrackStyleMenu=void 0,new(n8=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[v6,v8]),n9(),r}return i(r,t),r}(l),n3=yN("____private_lang_1"),n4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,n3,{writable:!0,value:void 0}),yM(t,n3)[n3]=(ii(t),ir(t,"")),t}return i(t,e),t.prototype.render=function(){var e=fV(this.lang);return yn(_A(),e.textTrackStyleMenuHeading,e.textTrackStyleFontFamily,e.textTrackStyleFontColor,e.textTrackStyleFontOpacity,e.textTrackStyleFontSize,e.textTrackStyleBackgroundColor,e.textTrackStyleBackgroundOpacity,e.textTrackStyleWindowColor,e.textTrackStyleWindowOpacity,e.textTrackStyleEdgeStyle,e.textTrackStyleFontFamily,e.textTrackStyleDefaultLabel,_e.map(function(t){var r,n=t.label,i=t.value;return yn(__(),i,null!=(r=e.fontFamilyLabels[n])?r:n)}),e.textTrackStyleFontColor,e.textTrackStyleDefaultLabel,v9.map(function(t){var r,n=t.label,i=t.value;return yn(_g(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleFontOpacity,e.textTrackStyleDefaultLabel,_r.map(function(t){return yn(_b(),100*t,e.formatPercentage(t))}),e.textTrackStyleFontSize,e.textTrackStyleDefaultLabel,_t.map(function(t){return yn(_m(),100*t,e.formatPercentage(t))}),e.textTrackStyleBackgroundColor,e.textTrackStyleDefaultLabel,v9.map(function(t){var r,n=t.label,i=t.value;return yn(_k(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleBackgroundOpacity,e.textTrackStyleDefaultLabel,_r.map(function(t){return yn(_w(),100*t,e.formatPercentage(t))}),e.textTrackStyleWindowColor,e.textTrackStyleDefaultLabel,v9.map(function(t){var r,n=t.label,i=t.value;return yn(_x(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleWindowOpacity,e.textTrackStyleDefaultLabel,_r.map(function(t){return yn(_T(),100*t,e.formatPercentage(t))}),e.textTrackStyleEdgeStyle,e.textTrackStyleDefaultLabel,_n.map(function(t){var r;return yn(_E(),t,null!=(r=e.edgeStyleLabels[t])?r:t)}))},v(t,[{key:"lang",get:function(){return yM(this,n3)[n3]},set:function(e){yM(this,n3)[n3]=e}}]),t}(ie=e.MenuGroup),ir=(io=(ia=o(n4,[[it,1,"lang"]],[n7,n6],ie)).e)[0],ii=io[1],e.TextTrackStyleMenu=(il=ia.c)[0],n9=il[1],n8);var _L=["addtrack","removetrack"];function _C(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return _C=function(){return e},e}ip=yT("theoplayer-language-menu"),iy=fO(["player","lang"]),ig=yS({reflect:!0,type:String,attribute:yq.LANG}),ib=yS({state:!0}),im=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.HAS_AUDIO}),ik=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.HAS_SUBTITLES}),e.LanguageMenu=void 0,new(id=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[v3]),iv(),r}return i(r,t),r}(l),is=yN("____private_lang_1"),iu=yN("____private__hasAudioTracks_2"),ic=yN("____private__hasSubtitles_3"),ih=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,is,{writable:!0,value:void 0}),Object.defineProperty(t,iu,{writable:!0,value:void 0}),Object.defineProperty(t,ic,{writable:!0,value:void 0}),yM(t,is)[is]=(iE(t),iw(t,"")),yM(t,iu)[iu]=ix(t,!1),yM(t,ic)[ic]=iT(t,!1),t._updateAudioTracks=function(){var e,r,n=null!=(e=null==(r=t._player)?void 0:r.audioTracks)?e:[];t._hasAudioTracks=n.length>1},t._updateTextTracks=function(){var e,r,n=null!=(e=null==(r=t._player)?void 0:r.textTracks.filter(vF))?e:[];t._hasSubtitles=n.length>0},t}return i(t,e),t.prototype.render=function(){var e=fV(this.lang);return yn(_S(),e.languageMenuHeading,this.lang,e.audioMenuHeading,this.lang,e.subtitleMenuHeading,this.lang,this.lang)},v(t,[{key:"lang",get:function(){return yM(this,is)[is]},set:function(e){yM(this,is)[is]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(_L,this._updateAudioTracks),null==(r=this._textTrackList)||r.removeEventListener(_L,this._updateTextTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateAudioTracks(),this._updateTextTracks(),null==(n=this._audioTrackList)||n.addEventListener(_L,this._updateAudioTracks),null==(i=this._textTrackList)||i.addEventListener(_L,this._updateTextTracks))}},{key:"_hasAudioTracks",get:function(){return yM(this,iu)[iu]},set:function(e){yM(this,iu)[iu]=e}},{key:"_hasSubtitles",get:function(){return yM(this,ic)[ic]},set:function(e){yM(this,ic)[ic]=e}}]),t}(i_=e.MenuGroup),iw=(iS=(iA=o(ih,[[ig,1,"lang"],[ib,4,"player"],[im,1,"_hasAudioTracks"],[ik,1,"_hasSubtitles"]],[ip,iy],i_)).e)[0],ix=iS[1],iT=iS[2],iE=iS[3],e.LanguageMenu=(iL=iA.c)[0],iv=iL[1],id);var _P=["addtrack","removetrack"];iC=yT("theoplayer-language-menu-button"),iP=fO(["player","lang"]),iO=yS({reflect:!1,attribute:!1}),iM=yS({reflect:!0,type:String,attribute:yq.LANG}),e.LanguageMenuButton=void 0;var _R=yN("____private_lang_1"),_O=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_R,{writable:!0,value:void 0}),yM(t,_R)[_R]=(iN(t),iB(t,"")),t._updateTracks=function(){var e=void 0!==t._player&&(t._player.audioTracks.length>=2||t._player.textTracks.some(vF));fT(t,yq.HIDDEN,!e)},t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.openLanguageMenuAria},r.render=function(){return yn(_C(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.469 15.446a6.892 6.892 310 1 0-4.772 3.342l2.872.986q1.9.626 1.9-1.374v-2.954l2.598 1.5V22q0 2-1.899 1.374l-4.95-1.632a9.892 9.892 310 1 1 6.849-4.796zM7 10a1 1 180 1 0 0 2 1 1 180 1 0 0-2zm4 0a1 1 180 1 0 0 2h5a1 1 180 1 0 0-2zm-3 4a1 1 180 1 0 0 2h3a1 1 180 1 0 0-2zm7 0a1 1 180 1 0 0 2 1 1 180 1 0 0-2z"/></svg>\n'))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(_P,this._updateTracks),null==(r=this._textTrackList)||r.removeEventListener(_P,this._updateTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateTracks(),null==(n=this._audioTrackList)||n.addEventListener(_P,this._updateTracks),null==(i=this._textTrackList)||i.addEventListener(_P,this._updateTracks))}},{key:"lang",get:function(){return yM(this,_R)[_R]},set:function(e){yM(this,_R)[_R]=e}}]),t}(iR=e.MenuButton);function _M(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return _M=function(){return e},e}function _B(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return _B=function(){return e},e}iB=(iD=(iI=o(_O,[[iO,4,"player"],[iM,1,"lang"]],[iC,iP],iR)).e)[0],iN=iD[1],e.LanguageMenuButton=(iF=iI.c)[0],(0,iF[1])(),iq=yT("theoplayer-playback-rate-radio-group"),ij=fO(["player"]),iV=yL(),iH=yL(),e.PlaybackRateRadioGroup=void 0,new(iU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vI],iz(),t}return i(t,e),t}(l),i$=function(t){function r(){var e;return e=t.apply(this,arguments)||this,iG(e),e._radioGroupRef=fe(),e._value=1,e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=Number(t.value))},e._updateFromPlayer=function(){void 0!==e._player&&(e.value=e._player.playbackRate)},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;T(t,e.RadioGroup)||customElements.upgrade(t),t.value=String(this.value)},n.render=function(){return yn(_M(),fn(this._radioGroupRef),this._onChange)},v(r,[{key:"value",get:function(){return this._value},set:function(e){if(e=Number(e),this._value!==e){this._value=e,void 0!==this._player&&this._player.playbackRate!==e&&(this._player.playbackRate=e);var t=this._radioGroupRef.value;t&&(t.value=String(e)),this.dispatchEvent(ve("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("ratechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("ratechange",this._updateFromPlayer))}}]),r}(yw),iG=(iQ=o(i$,[[iV,4,"value"],[iH,4,"player"]],[iq,ij],yw)).e[0],e.PlaybackRateRadioGroup=(iW=iQ.c)[0],iz=iW[1],iU),iK=yT("theoplayer-playback-rate-menu-button"),iZ=fO(["lang"]),iJ=yS({reflect:!0,type:String,attribute:yq.LANG}),e.PlaybackRateMenuButton=void 0;var _N=yN("____private_lang_1"),_I=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_N,{writable:!0,value:void 0}),yM(t,_N)[_N]=(i0(t),iX(t,"")),t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.openPlaybackRateMenuAria},r.render=function(){return yn(_B(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 96 960 960" height="24" width="24"><path d="M418 716q24 24 61.435 23.5T536 712l171.826-250.174q12.392-19.087-1.652-32.283-14.044-13.195-33.131-.804L424 600q-27 19.13-28.5 55.565T418 716ZM204 915.218q-25.522 0-49.609-12.826-24.087-12.826-36.783-34.783-26.565-46.696-41.696-100.022Q60.782 714.261 60.782 656q0-86.391 32.913-162.566 32.913-76.174 89.956-133.217 57.044-57.044 133.436-90.24Q393.478 236.782 480 236.782q43.87 0 85.87 8.934 42 8.935 81 26.239 28.913 12.696 33.826 38.762 4.913 26.065-13.044 48.153-10.261 12.391-28.217 15.521-17.957 3.131-32.914-3.565-31.434-14.869-62.043-21.456-30.608-6.587-64.478-6.587-129.043 0-221.13 91.522Q166.783 525.826 166.783 656q0 42 10.935 79.891 10.934 37.891 30.804 73.326h542.956q23-38 32.37-75.608Q793.217 696 793.217 652q0-31.609-6.804-62.565-6.804-30.956-20.543-60.826-7.566-16.957-3.718-35.196 3.848-18.239 17.674-29.5 21.653-18.522 47.153-10.261t36.761 35.609q16.305 38 25.457 78.217 9.152 40.218 10.021 82.522 0 58.696-14.348 113.522-14.347 54.826-42.478 104.087-14.391 23.087-37.631 35.348-23.239 12.261-48.761 12.261H204ZM480 576Z"/></svg>\n'))},v(t,[{key:"lang",get:function(){return yM(this,_N)[_N]},set:function(e){yM(this,_N)[_N]=e}}]),t}(iY=e.MenuButton);function _D(){var e=a(['<span slot="heading"><slot name="heading">',"</slot></span>"]);return _D=function(){return e},e}function _F(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _F=function(){return e},e}function _$(){var e=a(["<theoplayer-playback-rate-radio-group>","</theoplayer-playback-rate-radio-group>"]);return _$=function(){return e},e}iX=(i2=(i1=o(_I,[[iJ,1,"lang"]],[iK,iZ],iY)).e)[0],i0=i2[1],e.PlaybackRateMenuButton=(i5=i1.c)[0],(0,i5[1])();var _U=[.25,.5,1,1.25,1.5,2];i3=yT("theoplayer-playback-rate-menu"),i4=fO(["lang"]),i7=yS({reflect:!0,type:String,attribute:yq.LANG}),e.PlaybackRateMenu=void 0;var _q=yN("____private_lang_1"),_j=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_q,{writable:!0,value:void 0}),yM(t,_q)[_q]=(i9(t),i6(t,"")),t}i(t,e);var r=t.prototype;return r.renderMenuHeading=function(){var e=fV(this.lang);return yn(_D(),e.playbackRateMenuHeading)},r.renderMenuContent=function(){var e=fV(this.lang);return yn(_$(),_U.map(function(t){return yn(_F(),t,e.formatPlaybackRate(t))}))},v(t,[{key:"lang",get:function(){return yM(this,_q)[_q]},set:function(e){yM(this,_q)[_q]=e}}]),t}(i8=e.Menu);function _z(){var e=a(["<span>","</span>"]);return _z=function(){return e},e}i6=(at=(ae=o(_j,[[i7,1,"lang"]],[i3,i4],i8)).e)[0],i9=at[1],e.PlaybackRateMenu=(ar=ae.c)[0],(0,ar[1])(),an=yT("theoplayer-playback-rate-display"),ai=fO(["playbackRate","lang"]),aa=yS({reflect:!0,type:String,attribute:yq.LANG}),ao=yL(),e.PlaybackRateDisplay=void 0;var _V=yN("____private_lang_1"),_H=yN("____private_playbackRate_2"),_G=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_V,{writable:!0,value:void 0}),Object.defineProperty(t,_H,{writable:!0,value:void 0}),yM(t,_V)[_V]=(au(t),al(t,"")),yM(t,_H)[_H]=as(t,1),t}return i(t,e),t.prototype.render=function(){var e=fV(this.lang);return yn(_z(),e.formatPlaybackRate(this.playbackRate))},v(t,[{key:"lang",get:function(){return yM(this,_V)[_V]},set:function(e){yM(this,_V)[_V]=e}},{key:"playbackRate",get:function(){return yM(this,_H)[_H]},set:function(e){yM(this,_H)[_H]=e}}]),t}(yw);function _Q(){var e=a(["<span>","</span>"]);return _Q=function(){return e},e}al=(ah=(ac=o(_G,[[aa,1,"lang"],[ao,1,"playbackRate"]],[an,ai],yw)).e)[0],as=ah[1],au=ah[2],e.PlaybackRateDisplay=(ad=ac.c)[0],(0,ad[1])(),ap=yT("theoplayer-active-quality-display"),ay=fO(["activeVideoQuality","targetVideoQualities"]),af=yS({reflect:!1,attribute:!1}),av=yS({reflect:!1,attribute:!1}),a_=yS({reflect:!0,type:String,attribute:yq.LANG}),e.ActiveQualityDisplay=void 0;var _W=yN("____private_activeVideoQuality_1"),_K=yN("____private_targetVideoQualities_2"),_Z=yN("____private_lang_3"),_Y=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_W,{writable:!0,value:void 0}),Object.defineProperty(t,_K,{writable:!0,value:void 0}),Object.defineProperty(t,_Z,{writable:!0,value:void 0}),yM(t,_W)[_W]=(ak(t),ag(t,void 0)),yM(t,_K)[_K]=ab(t,void 0),yM(t,_Z)[_Z]=am(t,""),t}return i(t,e),t.prototype.render=function(){var e,t=fV(this.lang),r=void 0!==this.targetVideoQualities&&1===this.targetVideoQualities.length,n=r?this.targetVideoQualities[0]:void 0,i=vU(t,null!=n?n:this.activeVideoQuality);return e=r?null!=i?i:t.unknownQualityLabel:""+t.automaticQualityLabel+(i?" ("+i+")":""),yn(_Q(),e)},v(t,[{key:"activeVideoQuality",get:function(){return yM(this,_W)[_W]},set:function(e){yM(this,_W)[_W]=e}},{key:"targetVideoQualities",get:function(){return yM(this,_K)[_K]},set:function(e){yM(this,_K)[_K]=e}},{key:"lang",get:function(){return yM(this,_Z)[_Z]},set:function(e){yM(this,_Z)[_Z]=e}}]),t}(yw);function _J(){var e=a(["<slot>","</slot>"]);return _J=function(){return e},e}ag=(ax=(aw=o(_Y,[[af,1,"activeVideoQuality"],[av,1,"targetVideoQualities"],[a_,1,"lang"]],[ap,ay],yw)).e)[0],ab=ax[1],am=ax[2],ak=ax[3],e.ActiveQualityDisplay=(aT=aw.c)[0],(0,aT[1])();var _X=["activequalitychanged","targetqualitychanged"],_0=["update"];aE=yT("theoplayer-quality-radio-button"),aA=fO(["lang"]),aL=yL(),aC=yS({reflect:!0,type:String,attribute:yq.LANG}),aP=yS({reflect:!1,attribute:!1}),aR=yS({reflect:!1,attribute:!1}),e.QualityRadioButton=void 0;var _1=yN("____private__quality_1"),_2=yN("____private_lang_2"),_5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_1,{writable:!0,value:void 0}),Object.defineProperty(t,_2,{writable:!0,value:void 0}),t._track=void aB(t),yM(t,_1)[_1]=aO(t,void 0),yM(t,_2)[_2]=aM(t,""),t._updateFromTrack=function(){if(void 0!==t._track){var e=t._track.targetQuality;Array.isArray(e)&&(e=1===e.length?e[0]:void 0),void 0===t._quality?t.checked=void 0===e:t.checked=e===t._quality}t._updateFromQuality()},t._updateFromQuality=function(){t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.handleChange=function(){this._updateTargetQuality()},r._updateTargetQuality=function(){this._track&&this.checked&&(this._track.targetQuality=this._quality)},r.render=function(){var e,t=fV(this.lang),r=void 0===this._quality?t.automaticQualityLabel:null!=(e=vU(t,this._quality))?e:t.unknownQualityLabel;return yn(_J(),r)},v(t,[{key:"_quality",get:function(){return yM(this,_1)[_1]},set:function(e){yM(this,_1)[_1]=e}},{key:"lang",get:function(){return yM(this,_2)[_2]},set:function(e){yM(this,_2)[_2]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(_X,this._updateFromTrack),this._track=e,this._updateFromTrack(),e&&e.addEventListener(_X,this._updateFromTrack))}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality!==e&&(this._quality&&this._quality.removeEventListener(_0,this._updateFromQuality),this._quality=e,this._updateFromTrack(),e&&e.addEventListener(_0,this._updateFromQuality))}}]),t}(aS=e.RadioButton);function _3(){var e=a(['<theoplayer-quality-radio-button lang="','" .track="','" .quality="','"></theoplayer-quality-radio-button>']);return _3=function(){return e},e}function _4(){var e=a(['<theoplayer-radio-group @change="','"><theoplayer-quality-radio-button lang="','" .track="','" .quality="','"></theoplayer-quality-radio-button>',"</theoplayer-radio-group>"]);return _4=function(){return e},e}aO=(aI=(aN=o(_5,[[aL,1,"_quality"],[aC,1,"lang"],[aP,4,"track"],[aR,4,"quality"]],[aE,aA],aS)).e)[0],aM=aI[1],aB=aI[2],e.QualityRadioButton=(aD=aN.c)[0],(0,aD[1])();var _8=["addtrack","removetrack","change"];function _7(){var e=a(["<slot>","</slot>"]);return _7=function(){return e},e}aj=yT("theoplayer-quality-radio-group"),az=fO(["player","lang"]),aH=yL(),aG=yS({reflect:!0,type:String,attribute:yq.LANG}),aQ=yL(),e.QualityRadioGroup=void 0,new(aq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vI],aV(),t}return i(t,e),t}(l),aF=yN("____private__track_1"),a$=yN("____private_lang_2"),aU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,aF,{writable:!0,value:void 0}),Object.defineProperty(t,a$,{writable:!0,value:void 0}),yM(t,aF)[aF]=(aZ(t),aW(t)),yM(t,a$)[a$]=aK(t,""),t._onChange=function(){t.dispatchEvent(ve("change",{bubbles:!0}))},t._updateTrack=function(){var e,r,n=t._player?fk(t._player.videoTracks,function(e){return e.enabled}):void 0;t._track!==n&&(null==(e=t._track)||e.removeEventListener("update",t._update),t._track=n,null==(r=t._track)||r.addEventListener("update",t._update),t._update())},t._update=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.firstUpdated=function(){this._updateTrack()},r.render=function(){var e=this,t=this._track?this._track.qualities:[];return yn(_4(),this._onChange,this.lang,this._track,void 0,1!==t.length&&vj(t,function(e){return e.uid},function(t){return yn(_3(),e.lang,e._track,t)}))},v(t,[{key:"_track",get:function(){return yM(this,aF)[aF]},set:function(e){yM(this,aF)[aF]=e}},{key:"lang",get:function(){return yM(this,a$)[a$]},set:function(e){yM(this,a$)[a$]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._videoTracks)||t.removeEventListener(_8,this._updateTrack),this._player=e,this._videoTracks=null==e?void 0:e.videoTracks,this._updateTrack(),null==(r=this._videoTracks)||r.addEventListener(_8,this._updateTrack))}}]),t}(yw),aW=(aJ=(aY=o(aU,[[aH,1,"_track"],[aG,1,"lang"],[aQ,4,"player"]],[aj,az],yw)).e)[0],aK=aJ[1],aZ=aJ[2],e.QualityRadioGroup=(aX=aY.c)[0],aV=aX[1],aq),a0=yT("theoplayer-text-track-style-reset-button"),a1=fO(["player","lang"]),a5=yS({reflect:!0,type:String,attribute:yq.LANG}),e.TextTrackStyleResetButton=void 0;var _6=yN("____private_lang_1"),_9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_6,{writable:!0,value:void 0}),yM(t,_6)[_6]=(a4(t),a3(t,"")),t}i(t,e);var r=t.prototype;return r.handleClick=function(){if(void 0!==this._player){var e=this._player.textTrackStyle;e.fontFamily=void 0,e.fontColor=void 0,e.fontSize=void 0,e.backgroundColor=void 0,e.windowColor=void 0,e.edgeStyle=void 0}},r.render=function(){var e=fV(this.lang);return yn(_7(),e.textTrackStyleResetLabel)},v(t,[{key:"lang",get:function(){return yM(this,_6)[_6]},set:function(e){yM(this,_6)[_6]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(a2=e.Button);function ge(){var e=a(['<theoplayer-menu><span slot="heading"><slot name="heading">',"</slot></span><table><tr><td><span>",'</span></td><td><theoplayer-menu-button menu="quality-menu"><theoplayer-active-quality-display lang="','"></theoplayer-active-quality-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="playback-rate-menu"><theoplayer-playback-rate-display lang="','"></theoplayer-playback-rate-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="quality-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-quality-radio-group lang="','"></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-playback-rate-menu id="playback-rate-menu" lang="','" menu-close-on-input hidden></theoplayer-playback-rate-menu>']);return ge=function(){return e},e}a3=(a7=(a8=o(_9,[[a5,1,"lang"]],[a0,a1],a2)).e)[0],a4=a7[1],e.TextTrackStyleResetButton=(a6=a8.c)[0],(0,a6[1])(),or=yT("theoplayer-settings-menu"),on=fO(["lang"]),oo=yS({reflect:!0,type:String,attribute:yq.LANG}),e.SettingsMenu=void 0,new(ot=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[v6]),oi(),r}return i(r,t),r}(l),a9=yN("____private_lang_1"),oe=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,a9,{writable:!0,value:void 0}),yM(t,a9)[a9]=(os(t),ol(t,"")),t}return i(t,e),t.prototype.render=function(){var e=fV(this.lang);return yn(ge(),e.settingsMenuHeading,e.qualityMenuHeading,this.lang,e.playbackRateMenuHeading,this.lang,e.qualityMenuHeading,this.lang,this.lang)},v(t,[{key:"lang",get:function(){return yM(this,a9)[a9]},set:function(e){yM(this,a9)[a9]=e}}]),t}(oa=e.MenuGroup),ol=(oc=(ou=o(oe,[[oo,1,"lang"]],[or,on],oa)).e)[0],os=oc[1],e.SettingsMenu=(oh=ou.c)[0],oi=oh[1],ot);var gt='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M14 22.475h-4q-.475 0-.863-.337-.387-.338-.437-.813l-.3-2.2q-.2-.075-.4-.2t-.375-.25l-2.05.85q-.475.2-.937.05-.463-.15-.738-.6l-1.975-3.45q-.25-.45-.162-.95.087-.5.487-.775l1.775-1.35Q4 12.325 4 12.225v-.45q0-.1.025-.225L2.25 10.2q-.4-.3-.487-.8-.088-.5.162-.925L3.9 5.025q.25-.45.725-.588.475-.137.95.038l2.075.875q.175-.15.363-.263.187-.112.387-.187l.3-2.225q.05-.5.425-.825.375-.325.875-.325h4q.5 0 .875.325t.425.825l.3 2.225q.2.075.4.187.2.113.375.263l2.05-.875q.475-.175.938-.025.462.15.737.575l2 3.45q.25.45.15.95-.1.5-.5.775l-1.775 1.35v.675q0 .1-.025.225l1.775 1.35q.4.275.487.775.088.5-.162.95l-2 3.45q-.25.425-.725.587-.475.163-.95-.037l-2.025-.85q-.175.125-.362.25-.188.125-.388.2l-.3 2.2q-.05.475-.425.813-.375.337-.875.337ZM12 15.5q1.45 0 2.475-1.025Q15.5 13.45 15.5 12q0-1.45-1.025-2.475Q13.45 8.5 12 8.5q-1.45 0-2.475 1.025Q8.5 10.55 8.5 12q0 1.45 1.025 2.475Q10.55 15.5 12 15.5Z"/></svg>\n';function gr(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return gr=function(){return e},e}od=yT("theoplayer-settings-menu-button"),op=fO(["lang"]),of=yS({reflect:!0,type:String,attribute:yq.LANG}),e.SettingsMenuButton=void 0;var gn=yN("____private_lang_1"),gi=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gn,{writable:!0,value:void 0}),yM(t,gn)[gn]=(o_(t),ov(t,"")),t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.openSettingsMenuAria},r.render=function(){return yn(gr(),fu(gt))},v(t,[{key:"lang",get:function(){return yM(this,gn)[gn]},set:function(e){yM(this,gn)[gn]=e}}]),t}(oy=e.MenuButton);function ga(){var e=a([":host(:not([fullscreen])) [part=exit-icon],:host([fullscreen]) [part=enter-icon]{display:none!important}"]);return ga=function(){return e},e}ov=(ob=(og=o(gi,[[of,1,"lang"]],[od,op],oy)).e)[0],o_=ob[1],e.SettingsMenuButton=(om=og.c)[0],(0,om[1])();var go=pC(ga()),gl="theoplayerfullscreenenter",gs="theoplayerfullscreenexit";function gu(){var e=a(['<span part="enter-icon"><slot name="enter-icon">','</slot></span><span part="exit-icon"><slot name="exit-icon">',"</slot></span>"]);return gu=function(){return e},e}function gc(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return gc=function(){return e},e}oE=yT("theoplayer-fullscreen-button"),oA=fO(["fullscreen","lang"]),oC=yS({reflect:!0,type:Boolean,attribute:yq.FULLSCREEN}),oP=yS({reflect:!0,type:String,attribute:yq.LANG}),e.FullscreenButton=void 0,new(oT=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[go]),oS(),r}return i(r,t),r}(l),ok=yN("____private_fullscreen_1"),ow=yN("____private_lang_2"),ox=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ok,{writable:!0,value:void 0}),Object.defineProperty(t,ow,{writable:!0,value:void 0}),yM(t,ok)[ok]=(oM(t),oR(t,!1)),yM(t,ow)[ow]=oO(t,""),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.handleClick=function(){if(this.fullscreen){var e=vt(gs,{bubbles:!0,composed:!0});this.dispatchEvent(e)}else{var t=vt(gl,{bubbles:!0,composed:!0});this.dispatchEvent(t)}},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=this.fullscreen?e.fullscreenExitAria:e.fullscreenAria},r.render=function(){return yn(gu(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M5.9 19.225q-.475 0-.8-.325-.325-.325-.325-.8V15q0-.475.325-.812.325-.338.8-.338.5 0 .825.338.325.337.325.812v1.95H9q.475 0 .812.325.338.325.338.825 0 .475-.338.8-.337.325-.812.325Zm0-9.075q-.475 0-.8-.338-.325-.337-.325-.812V5.9q0-.475.325-.8.325-.325.8-.325H9q.475 0 .812.325.338.325.338.8 0 .5-.338.825-.337.325-.812.325H7.05V9q0 .475-.325.812-.325.338-.825.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8 0-.5.338-.825.337-.325.812-.325h1.95V15q0-.475.325-.812.325-.338.825-.338.475 0 .8.338.325.337.325.812v3.1q0 .475-.325.8-.325.325-.8.325Zm3.1-9.075q-.5 0-.825-.338-.325-.337-.325-.812V7.05H15q-.475 0-.812-.325-.338-.325-.338-.825 0-.475.338-.8.337-.325.812-.325h3.1q.475 0 .8.325.325.325.325.8V9q0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M9 19.225q-.475 0-.812-.325-.338-.325-.338-.8v-1.95H5.9q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.812.325-.338.8-.338H9q.475 0 .812.338.338.337.338.812v3.1q0 .475-.338.8-.337.325-.812.325ZM5.9 10.15q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.813.325-.337.8-.337h1.95V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .812.325.338.325.338.8V9q0 .475-.338.812-.337.338-.812.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8V15q0-.475.338-.812.337-.338.812-.338h3.1q.475 0 .8.338.325.337.325.812 0 .475-.325.812-.325.338-.8.338h-1.95v1.95q0 .475-.337.8-.338.325-.813.325Zm0-9.075q-.475 0-.812-.338-.338-.337-.338-.812V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .813.325.337.325.337.8v1.95h1.95q.475 0 .8.337.325.338.325.813 0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'))},v(t,[{key:"fullscreen",get:function(){return yM(this,ok)[ok]},set:function(e){yM(this,ok)[ok]=e}},{key:"lang",get:function(){return yM(this,ow)[ow]},set:function(e){yM(this,ow)[ow]=e}}]),t}(oL=e.Button),oR=(oN=(oB=o(ox,[[oC,1,"fullscreen"],[oP,1,"lang"]],[oE,oA],oL)).e)[0],oO=oN[1],oM=oN[2],e.FullscreenButton=(oI=oB.c)[0],oS=oI[1],oT);var gh=["statechange","stereochange"];oD=yT("theoplayer-vr-button"),oF=fO(["player","lang"]),oU=yS({reflect:!1,attribute:!1}),oq=yS({reflect:!0,type:Boolean,attribute:yq.STEREO}),oj=yS({reflect:!0,type:String,attribute:yq.LANG}),e.VRButton=void 0;var gd=yN("____private_stereo_1"),gp=yN("____private_lang_2"),gy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gd,{writable:!0,value:void 0}),Object.defineProperty(t,gp,{writable:!0,value:void 0}),yM(t,gd)[gd]=(oH(t),oz(t,!1)),yM(t,gp)[gp]=oV(t,""),t._updateFromPlayer=function(){var e,r=null==(e=t._player)?void 0:e.vr;if(!r||"unavailable"===r.state){t.stereo=!1,t.hidden=!0;return}t.hidden=!1,t.disabled=!r.canPresentVR,t.stereo=r.stereo},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r.handleClick=function(){var e,t=null==(e=this._player)?void 0:e.vr;t&&t.canPresentVR&&(t.stereo=!t.stereo,this.stereo=t.stereo)},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.stereo?this.ariaLabel=e.vrExitAria:this.disabled?this.ariaLabel=e.vrUnavailableAria:this.ariaLabel=e.vrAria},r.render=function(){return yn(gc(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M20.74 6H3.21C2.55 6 2 6.57 2 7.28v9.44c0 .71.55 1.28 1.21 1.28h4.79c.52 0 .98-.34 1.14-.83l1.13-3.37c.16-.49.62-.83 1.14-.83h1.1c.52 0 .98.34 1.14.83l1.13 3.37c.16.49.62.83 1.14.83h4.79c.66 0 1.21-.57 1.21-1.28V7.28C21.95 6.57 21.4 6 20.74 6zM7.5 14.62c-1.17 0-2.12-.95-2.12-2.12s.95-2.12 2.12-2.12 2.12.95 2.12 2.12-.95 2.12-2.12 2.12zm9 0c-1.17 0-2.12-.95-2.12-2.12s.95-2.12 2.12-2.12 2.12.95 2.12 2.12-.95 2.12-2.12 2.12z"/></svg>\n'))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(r=this._player)||null==(t=r.vr)||t.removeEventListener(gh,this._updateFromPlayer),this._player=e,null==(i=this._player)||null==(n=i.vr)||n.addEventListener(gh,this._updateFromPlayer),this._updateFromPlayer())}},{key:"stereo",get:function(){return yM(this,gd)[gd]},set:function(e){yM(this,gd)[gd]=e}},{key:"lang",get:function(){return yM(this,gp)[gp]},set:function(e){yM(this,gp)[gp]=e}}]),t}(o$=e.Button);oz=(oQ=(oG=o(gy,[[oU,4,"player"],[oq,1,"stereo"],[oj,1,"lang"]],[oD,oF],o$)).e)[0],oV=oQ[1],oH=oQ[2],e.VRButton=(oW=oG.c)[0],(0,oW[1])();var gf="important",gv=" !"+gf,g_=yI(function(e){function t(e){var r,n;if(y(this,t),r=p(this,t,[e]),1!==e.type||"style"!==e.name||(null==(n=e.strings)?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return r}return i(t,e),v(t,[{key:"render",value:function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return null==n?t:t+((r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase())+":")+n+";"},"")}},{key:"update",value:function(e,t){var r=b(t,1)[0],n=e.element.style;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);var i=!0,a=!1,o=void 0;try{for(var l,s=this.ft[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var u=l.value;null==r[u]&&(this.ft.delete(u),u.includes("-")?n.removeProperty(u):n[u]=null)}}catch(e){a=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw o}}for(var c in r){var h=r[c];if(null!=h){this.ft.add(c);var d="string"==typeof h&&h.endsWith(gv);c.includes("-")||d?n.setProperty(c,d?h.slice(0,-11):h,d?gf:""):n[c]=h}}return yi}}]),t}(yD));function gg(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none;vertical-align:middle}:host([hidden]){display:none!important}[part=dial]{border:.025em solid #fff;border:.025em solid var(--theoplayer-vr-compass-color,#fff);border-radius:100%;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:26px;font-size:var(--theoplayer-vr-compass-size,26px);height:1em;position:relative;width:1em}[part=dial]:after,[part=dial]:before{content:"";height:0;position:absolute;width:0}[part=dial]:before{border:.075em solid #fff;border:.075em solid var(--theoplayer-vr-compass-color,#fff);border-radius:100%;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}[part=dial]:after{border-bottom:.1em solid #fff;border-bottom:.1em solid var(--theoplayer-vr-compass-color,#fff);border-left:.1em solid transparent;border-right:.1em solid transparent;left:50%;top:0;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform-origin:50% 100%;transform-origin:50% 100%}[part=fov]{height:50%;overflow:hidden;-webkit-transform-origin:100% 100%;transform-origin:100% 100%;width:50%}[part=fov],[part=fov]:before{left:0;position:absolute;top:0}[part=fov]:before{border:.35em solid hsla(0,0%,100%,.75);border:.35em solid var(--theoplayer-vr-compass-fov-color,hsla(0,0%,100%,.75));border-radius:100%;-webkit-box-sizing:border-box;box-sizing:border-box;content:"";height:200%;-webkit-transform:skew(10deg);transform:skew(10deg);width:200%}']);return gg=function(){return e},e}var gb=pC(gg());function gm(){var e=a(['<div part="dial"><div part="fov" style="','"></div></div>']);return gm=function(){return e},e}var gk=["statechange","directionchange"];function gw(e,t){void 0!==window.ShadyCSS&&!1===window.ShadyCSS.nativeCss?window.ShadyCSS.styleSubtree(e,t):null!=t&&function(e,t){var r=e.style,n=!0,i=!1,a=void 0;try{for(var o,l=Object.entries(t)[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=b(o.value,2),u=s[0],c=s[1];r.setProperty(u,c)}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}(e,t)}function gx(){var e=a([":host{--thumb-height:var(--theoplayer-range-thumb-height,10px);--track-height:var(--theoplayer-range-track-height,4px);--theoplayer-range-padding:var(--theoplayer-control-padding,10px);background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-size:0;height:44px;height:calc(var(--theoplayer-control-height, 24px) + var(--theoplayer-range-padding)*2);padding-left:10px;padding-left:var(--theoplayer-range-padding-left,var(--theoplayer-range-padding));padding-right:10px;padding-right:var(--theoplayer-range-padding-right,var(--theoplayer-range-padding));pointer-events:auto;position:relative;-webkit-transition:background .15s linear;transition:background .15s linear;vertical-align:middle;width:100px}:host([hidden]){display:none!important}:host(:hover:not([disabled])){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}[part=container]{height:100%;position:relative}[part=background],[part=pointer]{border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);height:var(--track-height);position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%));transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%))}[part=background]{background:hsla(0,0%,100%,.2);background:var(--theoplayer-range-track-background,hsla(0,0%,100%,.2));min-width:40px;width:100%;width:var(--theoplayer-range-track-width,100%)}[part=pointer]{background:transparent;background:var(--theoplayer-range-track-pointer-background,transparent);border-right:none;border-right:var(--theoplayer-range-track-pointer-border-right,none);opacity:0;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden}:host(:hover:not([disabled])) [part=pointer]{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}input[type=range]{-webkit-appearance:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;min-height:100%;padding:0;position:relative;width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);-webkit-box-shadow:1px 1px 1px transparent;box-shadow:1px 1px 1px transparent;-webkit-box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);margin-top:calc(0px - var(--thumb-height)/2 + var(--track-height)/2);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);-webkit-transform:none;transform:none;-webkit-transform:var(--theoplayer-range-thumb-transform,none);transform:var(--theoplayer-range-thumb-transform,none);-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-moz-range-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);translate:0 0;translate:var(--theoplayer-range-track-translate-x,0) var(--theoplayer-range-track-translate-y,0);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-ms-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}:host([disabled]) input[type=range]::-webkit-slider-thumb{display:none}:host([disabled]) input[type=range]::-moz-range-thumb{display:none}:host([disabled]) input[type=range]::-ms-thumb{display:none}input[type=range]::-webkit-slider-runnable-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-range-track-box-shadow,none);box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);-webkit-transform:translate(0);transform:translate(0);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-moz-range-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-track{background:transparent;background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);color:transparent;cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper,input[type=range]::-ms-tooltip{display:none}:host([disabled]) input[type=range]::-webkit-slider-runnable-track{cursor:default}:host([disabled]) input[type=range]::-moz-range-track{cursor:default}:host([disabled]) input[type=range]::-ms-track{cursor:default}input[type=range]:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}input[type=range]:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}input[type=range]:focus::-webkit-slider-runnable-track{outline:0}"]);return gx=function(){return e},e}oJ=yT("theoplayer-vr-compass"),oX=fO(["player"]),o1=yL(),o2=yS({reflect:!1,attribute:!1}),e.VRCompass=void 0,new(oY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[gb],o0(),t}return i(t,e),t}(l),oK=yN("____private__yaw_1"),oZ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,oK,{writable:!0,value:void 0}),yM(t,oK)[oK]=(o3(t),o5(t,0)),t._updateFromPlayer=function(){var e,r,n,i,a=null==(e=t._player)?void 0:e.vr;if(!a||"unavailable"===a.state||(null==(i=t._player)||null==(n=i.source)||null==(r=n.vr)?void 0:r.nativeVR)){t.hidden=!0;return}t.hidden=!1,t._yaw=a.direction.yaw},t}return i(t,e),t.prototype.render=function(){var e=-this._yaw+40;return yn(gm(),g_({transform:"scale(0.875) rotate("+e+"deg) skew(-10deg)"}))},v(t,[{key:"_yaw",get:function(){return yM(this,oK)[oK]},set:function(e){yM(this,oK)[oK]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(null==(t=this._player.vr)||t.removeEventListener(gk,this._updateFromPlayer),this._player.removeEventListener("sourcechange",this._updateFromPlayer)),this._player=e,void 0!==this._player&&(null==(r=this._player.vr)||r.addEventListener(gk,this._updateFromPlayer),this._player.addEventListener("sourcechange",this._updateFromPlayer)),this._updateFromPlayer())}}]),t}(yw),o5=(o8=(o4=o(oZ,[[o1,1,"_yaw"],[o2,4,"player"]],[oJ,oX],yw)).e)[0],o3=o8[1],e.VRCompass=(o7=o4.c)[0],o0=o7[1],oY);var gT=pC(gx()),gE=function(){function e(){this._stops=[["transparent",100]]}var t=e.prototype;return t.add=function(e,t,r){if(!((t=Math.max(t,0))>=(r=Math.min(r,100)))){var n=fw(this._stops,function(e){var r=e[1];return t<=r});if(!(n<0)){var i=this._stops[n],a=i[0],o=i[1],l=[];if(t>0&&l.push([a,t]),l.push([e,r]),r<o)l.push([a,o]),(s=this._stops).splice.apply(s,[].concat([n,1],l));else{for(var s,u,c=n+1;c<this._stops.length&&!(r<this._stops[c][1]);)c++;(u=this._stops).splice.apply(u,[].concat([n,c-n],l))}}}},t.toGradientStops=function(){for(var e,t=[],r=0,n=fd(this._stops);!(e=n()).done;){var i=e.value,a=i[0],o=i[1];o<r||(t.push(a+" "+r+"%"),t.push(a+" "+o+"%"),r=o)}return t.join(", ")},e}();function gA(){var e=a(['<div part="container"><div part="background"></div><div part="pointer" style="','"></div><input type="range" ',' .min="','" .max="','" .step="','" .valueAsNumber="','" .disabled="','" aria-label="','" aria-valuetext="','" aria-live="','" @input="','" @change="','" @keydown="','"> ',"</div>"]);return gA=function(){return e},e}function gS(){var e=a([""]);return gS=function(){return e},e}function gL(){var e=a(["input[type=range]{direction:ltr}.theoplayer-time-range-preview-rail{bottom:100%;left:0;opacity:0;pointer-events:none;position:absolute;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden;width:1%}:host(:hover:not([disabled])) .theoplayer-time-range-preview-rail{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}[part~=box]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));position:absolute;text-shadow:0 0 4px rgba(0,0,0,.75);text-shadow:var(--theoplayer-preview-text-shadow,0 0 4px rgba(0,0,0,.75));-webkit-transform:translateX(-50%);transform:translateX(-50%)}"]);return gL=function(){return e},e}li=fO(["deviceType"]),lo=yL(),ll=yS({reflect:!0,type:Boolean,attribute:yq.DISABLED}),ls=yS({reflect:!0,type:Boolean,attribute:yq.HIDDEN}),lu=yS({reflect:!0,type:Boolean,attribute:yq.INERT}),lc=yS({reflect:!1,attribute:!1}),lh=yL(),ld=yS({reflect:!0,type:Number,attribute:"min"}),lp=yS({reflect:!0,type:Number,attribute:"max"}),ly=yS({reflect:!0,attribute:"step",converter:{fromAttribute:function(e){return null==e||"any"===e?"any":Number(e)}}}),lf=yS({reflect:!0,type:String,attribute:yq.DEVICE_TYPE}),lv=yS({reflect:!0,type:String,attribute:"aria-live"}),e.Range=void 0,new(ln=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[gT],la(),t}return i(t,e),t}(l),o6=yN("____private__pointerWidth_1"),o9=yN("____private_step_2"),le=yN("____private_deviceType_3"),lt=yN("____private_ariaLive_4"),lr=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,o6,{writable:!0,value:void 0}),Object.defineProperty(t,o9,{writable:!0,value:void 0}),Object.defineProperty(t,le,{writable:!0,value:void 0}),Object.defineProperty(t,lt,{writable:!0,value:void 0}),lk(t),t._rangeRef=fe(),t._min=0,t._max=100,t._value=0,t._disabled=!1,t._hidden=!1,t._inert=!1,t._rangeWidth=0,t._thumbWidth=10,yM(t,o6)[o6]=l_(t,0),yM(t,o9)[o9]=lg(t,"any"),yM(t,le)[le]=lb(t,"desktop"),yM(t,lt)[lt]=lm(t,null),t._onInput=function(e){t.value=e.target.valueAsNumber},t._updatePointerBar=function(e){var r=t._rangeRef.value;if(!t.disabled&&!t.inert&&r){var n=r.getBoundingClientRect(),i=(e.clientX-n.left)/n.width;i=Math.max(0,Math.min(1,i)),t.updatePointer_(i,n)}},t._onKeyDown=function(e){t.handleKeyDown_(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateRange(),this.addEventListener("pointermove",this._updatePointerBar)},r.disconnectedCallback=function(){this.removeEventListener("pointermove",this._updatePointerBar)},r.handleInput=function(){this._updateRange()},r._updateRange=function(e){this.hidden||(e||this.updateCachedWidths_(),this.updateBar_())},r.updateBar_=function(){gw(this,{"--theoplayer-range-track-progress-internal":"linear-gradient(to right, "+this.getBarColors().toGradientStops()+")"})},r.getBarColors=function(){var e=this.value,t=this.min,r=this.max,n=(e-t)/(r-t)*100;isNaN(n)&&(n=0);var i=0;t<e&&e<r&&(i=this._thumbWidth*(.5-n/100)/this._rangeWidth*100);var a=new gE;return a.add("var(--theoplayer-range-bar-color, #fff)",0,n+i),a},r.updateCachedWidths_=function(){var e,t,r=null!=(e=null==(t=this._rangeRef.value)?void 0:t.offsetWidth)?e:0;r>0&&(this._rangeWidth=r);var n=parseInt(getComputedStyle(this).getPropertyValue("--theoplayer-range-thumb-width")||"10px");n>0&&(this._thumbWidth=n)},r.getMinimumStepForVisibleChange_=function(){var e=this.min,t=this.max-e;return t<=0?NaN:t/this._rangeWidth},r.updatePointer_=function(e,t){this._pointerWidth=e*t.width},r.handleKeyDown_=function(e){"tv"===this.deviceType&&yz(e.keyCode)&&(e.keyCode===yj.LEFT||e.keyCode===yj.RIGHT?e.stopPropagation():(e.keyCode===yj.UP||e.keyCode===yj.DOWN)&&e.preventDefault())},r.render=function(){return yn(gA(),g_({width:""+this._pointerWidth+"px"}),fn(this._rangeRef),this.min,this.max,this.step,this.rawValue,this.disabled||this.inert,this.getAriaLabel(),this.getAriaValueText(),this.ariaLive,this._onInput,this._onInput,this._onKeyDown,this.renderRangeExtras())},r.renderRangeExtras=function(){return yn(gS())},v(t,[{key:"_pointerWidth",get:function(){return yM(this,o6)[o6]},set:function(e){yM(this,o6)[o6]=e}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled!==e&&(this._disabled=e,this.setAttribute("aria-disabled",this._disabled?"true":"false"))}},{key:"hidden",get:function(){return this._hidden},set:function(e){this._hidden!==e&&(this._hidden=e,this._updateRange())}},{key:"inert",get:function(){return this._inert},set:function(e){this._inert=e}},{key:"value",get:function(){return this.rawValue},set:function(e){var t=e;isNaN(this.min)||(t=Math.max(this.min,t)),isNaN(this.max)||(t=Math.min(this.max,t)),this.rawValue!==t&&(this.rawValue=t,this.handleInput())}},{key:"rawValue",get:function(){return this._value},set:function(e){this._value=e}},{key:"min",get:function(){return this._min},set:function(e){this._min=e,this._updateRange()}},{key:"max",get:function(){return this._max},set:function(e){this._max=e,this._updateRange()}},{key:"step",get:function(){return yM(this,o9)[o9]},set:function(e){yM(this,o9)[o9]=e}},{key:"deviceType",get:function(){return yM(this,le)[le]},set:function(e){yM(this,le)[le]=e}},{key:"ariaLive",get:function(){return yM(this,lt)[lt]},set:function(e){yM(this,lt)[lt]=e}}]),t}(yw),l_=(lx=(lw=o(lr,[[lo,1,"_pointerWidth"],[ll,4,"disabled"],[ls,4,"hidden"],[lu,4,"inert"],[lc,4,"value"],[lh,4,"rawValue"],[ld,4,"min"],[lp,4,"max"],[ly,1,"step"],[lf,1,"deviceType"],[lv,1,"ariaLive"]],[li],yw)).e)[0],lg=lx[1],lb=lx[2],lm=lx[3],lk=lx[4],e.Range=(lT=lw.c)[0],la=lT[1],ln);var gC=pC(gL()),gP="theoplayerpreviewtimechange";function gR(e){return"linear"===e.type}function gO(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block}:host([hidden]){display:none!important}canvas{background:#fff;background:var(--theoplayer-preview-thumbnail-background,#fff);border-radius:2px;border-radius:var(--theoplayer-preview-thumbnail-padding,2px);display:none;padding:2px;padding:var(--theoplayer-preview-thumbnail-padding,2px)}"]);return gO=function(){return e},e}var gM=pC(gO());function gB(){var e=a(["<canvas ",' style="','"></canvas>']);return gB=function(){return e},e}var gN=["addtrack","removetrack"];function gI(e){return"metadata"===e.kind&&"thumbnails"===e.label}function gD(){var e=a(["<span>","</span>"]);return gD=function(){return e},e}lL=yT("theoplayer-preview-thumbnail"),lC=fO(["player","previewTime"]),lR=yL(),lO=yS({reflect:!1,attribute:!1}),lM=yL(),e.PreviewThumbnail=void 0,new(lS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[gM],lP(),t}return i(t,e),t}(l),lE=yN("____private__thumbnailVisible_1"),lA=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,lE,{writable:!0,value:void 0}),lN(t),t._canvasRef=fe(),t._previewTime=NaN,yM(t,lE)[lE]=lB(t,!1),t._updateThumbnailTextTrack=function(){var e=t._thumbnailTextTrack,r=t._player?fk(t._player.textTracks,gI):void 0;e!==r&&(t._thumbnailTextTrack=r,t.updateThumbnail_())},t._thumbnailImageSource=document.createElement("img"),t._thumbnailImageSource.decoding="async",t}i(t,e);var r=t.prototype;return r.updateThumbnail_=function(){var e=this._thumbnailTextTrack;if(void 0===e)return void this.hideThumbnail_();"disabled"===e.mode&&(e.mode="hidden");var t=function(e,t){if(0!==e.length){for(var r,n=e[0],i=fd(e);!(r=i()).done;){var a=r.value;if(a.startTime<=t)n=a;else if(t>=a.endTime)break}return n}}(e.cues,this._previewTime);if(void 0===t)return void this.hideThumbnail_();var r=t.content.trim(),n=function(e){var t=e.match(/^(.+)#xywh=(\d+),(\d+),(\d+),(\d+)$/);if(t)return{url:t[1],x:+t[2],y:+t[3],w:+t[4],h:+t[5]}}(r),i=n?n.url:r;(i=new URL(i,e.src||location.href).href,this._lastLoadedThumbnailUrl!==i)?this.loadThumbnailImage_(i):this.showThumbnail_(n)},r.loadThumbnailImage_=function(e){var t=this;if(this._thumbnailImageSource.src!==e){var r=function(){t._lastLoadedThumbnailUrl=e,t.updateThumbnail_()};"function"==typeof this._thumbnailImageSource.decode?(this._thumbnailImageSource.src=e,this._thumbnailImageSource.decode().then(r,fv)):(this._thumbnailImageSource.onload=r,this._thumbnailImageSource.src="",this._thumbnailImageSource.src=e)}},r.showThumbnail_=function(e){var t,r=this._canvasRef.value;!r||(null!=this._canvasContext||(this._canvasContext=null!=(t=r.getContext("2d"))?t:void 0),this._canvasContext&&(e?(r.width=e.w,r.height=e.h,this._canvasContext.drawImage(this._thumbnailImageSource,e.x,e.y,e.w,e.h,0,0,e.w,e.h)):(r.width=this._thumbnailImageSource.naturalWidth,r.height=this._thumbnailImageSource.naturalHeight,this._canvasContext.drawImage(this._thumbnailImageSource,0,0)),this._thumbnailVisible=!0))},r.hideThumbnail_=function(){this._thumbnailVisible=!1},r.render=function(){var e={display:this._thumbnailVisible?"block":"none"};return yn(gB(),fn(this._canvasRef),g_(e))},v(t,[{key:"_thumbnailVisible",get:function(){return yM(this,lE)[lE]},set:function(e){yM(this,lE)[lE]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackList)||t.removeEventListener(gN,this._updateThumbnailTextTrack),this._player=e,this._textTrackList=null==e?void 0:e.textTracks,this._updateThumbnailTextTrack(),null==(r=this._textTrackList)||r.addEventListener(gN,this._updateThumbnailTextTrack))}},{key:"previewTime",get:function(){return this._previewTime},set:function(e){this._previewTime=e,this.updateThumbnail_()}}]),t}(yw),lB=(lD=(lI=o(lA,[[lR,1,"_thumbnailVisible"],[lO,4,"player"],[lM,4,"previewTime"]],[lL,lC],yw)).e)[0],lN=lD[1],e.PreviewThumbnail=(lF=lI.c)[0],lP=lF[1],lS);var gF=["timeupdate","seeking","seeked","durationchange"];function g$(){var e=a(['<div class="theoplayer-time-range-preview-rail" style="','"><div part="box preview-box" ','><slot name="preview"><theoplayer-preview-thumbnail></theoplayer-preview-thumbnail><theoplayer-preview-time-display remaining-when-live></theoplayer-preview-time-display></slot></div></div>']);return g$=function(){return e},e}lG=yT("theoplayer-preview-time-display"),lQ=fO(["player","previewTime","streamType"]),lK=yL(),lZ=yS({reflect:!0,type:Boolean,attribute:yq.REMAINING}),lY=yS({reflect:!0,type:Boolean,attribute:yq.REMAINING_WHEN_LIVE}),lJ=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),lX=yS({reflect:!1,attribute:!1}),l0=yL(),e.PreviewTimeDisplay=void 0,new(lH=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f4],lW(),t}return i(t,e),t}(l),l$=yN("____private_previewTime_1"),lU=yN("____private_remaining_2"),lq=yN("____private_remainingWhenLive_3"),lj=yN("____private_streamType_4"),lz=yN("____private__endTime_5"),lV=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,l$,{writable:!0,value:void 0}),Object.defineProperty(t,lU,{writable:!0,value:void 0}),Object.defineProperty(t,lq,{writable:!0,value:void 0}),Object.defineProperty(t,lj,{writable:!0,value:void 0}),Object.defineProperty(t,lz,{writable:!0,value:void 0}),yM(t,l$)[l$]=(l8(t),l1(t,NaN)),yM(t,lU)[lU]=l2(t,!1),yM(t,lq)[lq]=l5(t,!1),yM(t,lj)[lj]=l3(t,"vod"),yM(t,lz)[lz]=l4(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.duration:NaN,n=null==(e=t._player)?void 0:e.seekable;t._endTime=isFinite(r)?r:n&&n.length>0?n.end(0):NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){var e=this.previewTime,t=this._endTime,r=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType;return r&&(e=-((t||0)-e)),yn(gD(),f0(e,t,r))},v(t,[{key:"previewTime",get:function(){return yM(this,l$)[l$]},set:function(e){yM(this,l$)[l$]=e}},{key:"remaining",get:function(){return yM(this,lU)[lU]},set:function(e){yM(this,lU)[lU]=e}},{key:"remainingWhenLive",get:function(){return yM(this,lq)[lq]},set:function(e){yM(this,lq)[lq]=e}},{key:"streamType",get:function(){return yM(this,lj)[lj]},set:function(e){yM(this,lj)[lj]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(gF,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(gF,this._updateFromPlayer))}},{key:"_endTime",get:function(){return yM(this,lz)[lz]},set:function(e){yM(this,lz)[lz]=e}}]),t}(yw),l1=(l6=(l7=o(lV,[[lK,1,"previewTime"],[lZ,1,"remaining"],[lY,1,"remainingWhenLive"],[lJ,1,"streamType"],[lX,4,"player"],[l0,1,"_endTime"]],[lG,lQ],yw)).e)[0],l2=l6[1],l5=l6[2],l3=l6[3],l4=l6[4],l8=l6[5],e.PreviewTimeDisplay=(l9=l7.c)[0],lW=l9[1],lH);var gU=["timeupdate","durationchange","ratechange","seeking","seeked"],gq=["play","pause","ended","durationchange","readystatechange","error"],gj=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];si=yT("theoplayer-time-range"),sa=fO(["player","streamType","deviceType","lang"]),ss=yS({reflect:!1,attribute:!1}),su=yS({reflect:!0,type:String,attribute:yq.LANG}),sc=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),sh=yS({reflect:!0,type:Boolean,attribute:yq.SHOW_AD_MARKERS}),sd=yL(),e.TimeRange=void 0,new(sn=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Range.styles,[gC]),so(),r}return i(r,t),r}(l),se=yN("____private_lang_1"),st=yN("____private__previewRailTransform_2"),sr=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,se,{writable:!0,value:void 0}),Object.defineProperty(t,st,{writable:!0,value:void 0}),sf(t),t._previewBoxEl=fe(),t._streamType="vod",t._showAdMarkers=!1,t._pausedWhileScrubbing=!1,t._autoAdvanceId=0,t._lastUpdateTime=0,t._lastCurrentTime=0,t._lastPlaybackRate=0,yM(t,se)[se]=sp(t,""),t._updateFromPlayer=function(){if(void 0!==t._player){t._lastUpdateTime=performance.now(),t._lastCurrentTime=t._player.currentTime,t._lastPlaybackRate=t._player.playbackRate;var e,r,n=t._player.seekable,i=t._lastCurrentTime;0!==n.length?(e=n.start(0),r=n.end(0)):(e=0,r=t._player.duration),isFinite(t._lastCurrentTime)||(i=t._player.duration===1/0?r:e),t.min=e,t.max=r,t.rawValue=i,t.updateDisabled_(n),t._updateRange()}},t._pauseOnScrubStart=function(){t._pausedWhileScrubbing||t.disabled||t.inert||void 0===t._player||t._player.paused||(t._pausedWhileScrubbing=!0,t._player.pause(),document.addEventListener("mouseup",t._playOnScrubEnd),document.addEventListener("pointerup",t._playOnScrubEnd),document.addEventListener("pointercancel",t._playOnScrubEnd))},t._playOnScrubEnd=function(){t._pausedWhileScrubbing&&(t._pausedWhileScrubbing=!1,document.removeEventListener("mouseup",t._playOnScrubEnd),document.removeEventListener("pointerup",t._playOnScrubEnd),document.removeEventListener("pointercancel",t._playOnScrubEnd),void 0!==t._player&&t._player.paused&&t._player.play())},t._toggleAutoAdvance=function(){t.shouldAutoAdvance_()?0===t._autoAdvanceId&&(t._updateFromPlayer(),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)):0!==t._autoAdvanceId&&(t._updateFromPlayer(),cancelAnimationFrame(t._autoAdvanceId),t._autoAdvanceId=0)},t._autoAdvanceWhilePlaying=function(){if(!t.shouldAutoAdvance_()){t._autoAdvanceId=0;return}var e=(performance.now()-t._lastUpdateTime)/1e3,r=t._lastCurrentTime+e*t._lastPlaybackRate;Math.abs(r-t.value)>=t.getMinimumStepForVisibleChange_()&&(t.rawValue=r,t._updateRange(!0)),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)},yM(t,st)[st]=sy(t,""),t._onAdChange=function(){t._updateRange()},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("min")||(this.min=0),this.hasAttribute("max")||(this.max=1e3),this.hasAttribute(yq.ARIA_LIVE)||(this.ariaLive="off"),this._toggleAutoAdvance()},r.firstUpdated=function(e){var t,r;null==(t=this._rangeRef.value)||t.addEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.addEventListener("pointerdown",this._pauseOnScrubStart)},r.disconnectedCallback=function(){var t,r;e.prototype.disconnectedCallback.call(this),null==(t=this._rangeRef.value)||t.removeEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.removeEventListener("pointerdown",this._pauseOnScrubStart),this._toggleAutoAdvance()},r.updateDisabled_=function(e){void 0===e&&(e=null==(t=this._player)?void 0:t.seekable);var t,r="live"===this.streamType;void 0!==e&&(r||(r=0===e.length)),this.disabled=r},r.getAriaLabel=function(){return fV(this.lang).seekAria},r.getAriaValueText=function(){var e=fV(this.lang),t=f2(e,this.value),r=f2(e,this.max);return t&&r?e.timeOfTotalAria(t,r):e.unknownTimeAria},r.handleInput=function(){void 0!==this._player&&this._player.currentTime!==this.value&&(this._player.currentTime=this.value),e.prototype.handleInput.call(this)},r.shouldAutoAdvance_=function(){return this.isConnected&&void 0!==this._player&&!this._player.paused&&!this._player.ended&&!this._player.errorObject&&this._player.readyState>=3&&isFinite(this._lastCurrentTime)&&this.needToUpdateEveryFrame_()},r.needToUpdateEveryFrame_=function(){return this.getMinimumStepForVisibleChange_()<.25*this._lastPlaybackRate},r.updatePointer_=function(t,r){e.prototype.updatePointer_.call(this,t,r);var n=r.left+t*r.width,i=this._previewBoxEl.value;if(i){var a=i.getBoundingClientRect(),o=((n=Math.max(r.left+a.width/2,Math.min(r.right-a.width/2,n)))-r.left)/r.width;this._previewRailTransform="translateX("+(100*o*100).toFixed(6)+"%)"}if(void 0!==this._player){var l=this.min,s=vt(gP,{bubbles:!0,composed:!0,detail:{previewTime:l+t*(this.max-l)}});this.dispatchEvent(s)}},r.getBarColors=function(){var t=e.prototype.getBarColors.call(this);if(!this.showAdMarkers||!this._player||!this._player.ads||this._player.ads.playing)return t;for(var r,n=this.min,i=this.max,a=fd(this._player.ads.scheduledAdBreaks);!(r=a()).done;){var o=r.value;if(void 0===o.ads||!(o.ads.length>0)||o.ads.some(gR)){var l=o.timeOffset;if(l<0&&(l=this._player.duration),n<=l&&l<=i){var s=(l-n)/(i-n)*100,u=void 0,c=void 0;s+1<100?(u=s,c=s+1):(u=99,c=100),t.add("var(--theoplayer-time-range-ad-marker-color, #ffc50f)",u,c)}}}return t},r.handleKeyDown_=function(t){e.prototype.handleKeyDown_.call(this,t),"tv"===this.deviceType&&t.keyCode===yj.ENTER&&void 0!==this._player&&(this._player.paused?this._player.play():this._player.pause())},r.renderRangeExtras=function(){return yn(g$(),g_({transform:this._previewRailTransform}),fn(this._previewBoxEl))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(gU,this._updateFromPlayer),this._player.removeEventListener(gq,this._toggleAutoAdvance)),null==(t=this._ads)||t.removeEventListener(gj,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),this._toggleAutoAdvance(),void 0!==this._player&&(this._player.addEventListener(gU,this._updateFromPlayer),this._player.addEventListener(gq,this._toggleAutoAdvance)),null==(r=this._ads)||r.addEventListener(gj,this._onAdChange))}},{key:"lang",get:function(){return yM(this,se)[se]},set:function(e){yM(this,se)[se]=e}},{key:"streamType",get:function(){return this._streamType},set:function(e){this._streamType=e,this.updateDisabled_()}},{key:"showAdMarkers",get:function(){return this._showAdMarkers},set:function(e){this._showAdMarkers=e,this._updateRange()}},{key:"_previewRailTransform",get:function(){return yM(this,st)[st]},set:function(e){yM(this,st)[st]=e}}]),t}(sl=e.Range),sp=(s_=(sv=o(sr,[[ss,4,"player"],[su,1,"lang"],[sc,4,"streamType"],[sh,4,"showAdMarkers"],[sd,1,"_previewRailTransform"]],[si,sa],sl)).e)[0],sy=s_[1],sf=s_[2],e.TimeRange=(sg=sv.c)[0],so=sg[1],sn),sb=yT("theoplayer-volume-range"),sm=fO(["player","deviceType","lang"]),sw=yS({reflect:!0,type:String,attribute:yq.LANG}),sx=yS({reflect:!1,attribute:!1}),e.VolumeRange=void 0;var gz=yN("____private_lang_1"),gV=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,gz,{writable:!0,value:void 0}),yM(t,gz)[gz]=(sE(t),sT(t,"")),t._updateFromPlayer=function(){void 0!==t._player&&(t.rawValue=t._player.volume,t._updateRange())},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("min")||(this.min=0),this.hasAttribute("max")||(this.max=1)},r.getAriaLabel=function(){return fV(this.lang).volumeAria},r.getAriaValueText=function(){return fV(this.lang).formatPercentage(this.value/this.max)},r.handleInput=function(){void 0!==this._player&&this._player.volume!==this.value&&(this._player.volume=this.value),e.prototype.handleInput.call(this)},v(t,[{key:"lang",get:function(){return yM(this,gz)[gz]},set:function(e){yM(this,gz)[gz]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("volumechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("volumechange",this._updateFromPlayer))}}]),t}(sk=e.Range);function gH(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-error-icon-gap,10px);max-width:80%;max-width:var(--theoplayer-error-max-width,80%);min-width:0;min-width:var(--theoplayer-error-min-width,0)}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-error-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-error-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-error-icon-width,48px)}[part~=heading]{color:#fff;color:var(--theoplayer-error-heading-color,#fff);line-height:48px;line-height:var(--theoplayer-error-icon-height,48px);margin:0 0 10px;margin:var(--theoplayer-error-heading-margin,0 0 10px);padding:0}[part~=message]{color:#fff;color:var(--theoplayer-error-message-color,#fff);margin:0;margin:var(--theoplayer-error-message-margin,0);padding:0}[part~=fullscreen-controls]{-webkit-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-end;left:0;position:absolute;right:0}:host(:not([fullscreen])) [part~=fullscreen-controls]{display:none!important}"]);return gH=function(){return e},e}sT=(sS=(sA=o(gV,[[sw,1,"lang"],[sx,4,"player"]],[sb,sm],sk)).e)[0],sE=sS[1],e.VolumeRange=(sL=sA.c)[0],(0,sL[1])();var gG=pC(gH());function gQ(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><h1 part="heading"><slot name="heading">','</slot></h1><p part="message"><slot name="message">','</slot></p></div><div part="fullscreen-controls"><slot name="fullscreen-controls"><theoplayer-fullscreen-button></theoplayer-fullscreen-button></slot></div>']);return gQ=function(){return e},e}sB=yT("theoplayer-error-display"),sN=fO(["error","fullscreen","lang"]),sD=yS({reflect:!1,attribute:!1}),sF=yS({reflect:!0,type:Boolean,attribute:yq.FULLSCREEN}),s$=yS({reflect:!0,type:String,attribute:yq.LANG}),e.ErrorDisplay=void 0,new(sM=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[gG],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),sI(),t}return i(t,e),t}(l),sC=yN("____private_error_1"),sP=yN("____private_fullscreen_2"),sR=yN("____private_lang_3"),sO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,sC,{writable:!0,value:void 0}),Object.defineProperty(t,sP,{writable:!0,value:void 0}),Object.defineProperty(t,sR,{writable:!0,value:void 0}),yM(t,sC)[sC]=(sz(t),sU(t)),yM(t,sP)[sP]=sq(t,!1),yM(t,sR)[sR]=sj(t,""),t}return i(t,e),t.prototype.render=function(){var e,t,r=fV(this.lang);return yn(gQ(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="48" width="48"><path d="M24.15 26.4q.85 0 1.425-.575.575-.575.575-1.425v-9.2q0-.8-.6-1.375t-1.4-.575q-.85 0-1.425.575-.575.575-.575 1.425v9.2q0 .8.6 1.375t1.4.575ZM24 34.7q1 0 1.625-.625t.625-1.625q0-.95-.625-1.625T24 30.15q-1 0-1.625.675t-.625 1.625q0 1 .625 1.625T24 34.7Zm0 10q-4.4 0-8.175-1.575Q12.05 41.55 9.25 38.75q-2.8-2.8-4.375-6.575Q3.3 28.4 3.3 24q0-4.35 1.575-8.125Q6.45 12.1 9.25 9.3q2.8-2.8 6.575-4.425Q19.6 3.25 24 3.25q4.35 0 8.125 1.625Q35.9 6.5 38.7 9.3q2.8 2.8 4.425 6.575Q44.75 19.65 44.75 24q0 4.4-1.625 8.175Q41.5 35.95 38.7 38.75q-2.8 2.8-6.575 4.375Q28.35 44.7 24 44.7Z"/></svg>\n'),r.errorHeading,null!=(e=null==(t=this.error)?void 0:t.message)?e:"")},v(t,[{key:"error",get:function(){return yM(this,sC)[sC]},set:function(e){yM(this,sC)[sC]=e}},{key:"fullscreen",get:function(){return yM(this,sP)[sP]},set:function(e){yM(this,sP)[sP]=e}},{key:"lang",get:function(){return yM(this,sR)[sR]},set:function(e){yM(this,sR)[sR]=e}}]),t}(yw),sU=(sH=(sV=o(sO,[[sD,1,"error"],[sF,1,"fullscreen"],[s$,1,"lang"]],[sB,sN],yw)).e)[0],sq=sH[1],sj=sH[2],sz=sH[3],e.ErrorDisplay=(sG=sV.c)[0],sI=sG[1],sM),sQ=yL(),sW=yS({reflect:!0,state:!0,type:String,attribute:yq.CAST_STATE});var gW=function(e){function t(t){var r;return r=e.call(this,t)||this,sK(r),r._castState="unavailable",r._updateCastState=function(){r.castState=r._castApi?r._castApi.state:"unavailable"},r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateCastState()},r.handleClick=function(){if(this._castApi){this._updateCastState();var e=this.castState;"available"===e?this._castApi.start():("connecting"===e||"connected"===e)&&this._castApi.stop()}},v(t,[{key:"castApi",get:function(){return this._castApi},set:function(e){void 0!==this._castApi&&this._castApi.removeEventListener("statechange",this._updateCastState),this._castApi=e,this._updateCastState(),void 0!==this._castApi&&this._castApi.addEventListener("statechange",this._updateCastState)}},{key:"castState",get:function(){return this._castState},set:function(e){this._castState=e}}]),t}(e.Button);function gK(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="24" width="24"><defs><clipPath id="theoplayer-chromecast-rings-mask-','"><path d="M0-36h44V0H0z"/></clipPath></defs><path class="theoplayer-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/><path class="theoplayer-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/><g class="theoplayer-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theoplayer-chromecast-rings-mask-',')"><circle stroke="none" cx="0" cy="0" r="30"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring2" cx="0" cy="0" r="12"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring3" cx="0" cy="0" r="20"/><path class="theoplayer-chromecast-ring theoplayer-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0"/></g></svg></span>']);return gK=function(){return e},e}function gZ(){var e=a([":host([cast-state=unavailable]){display:none!important}:host([cast-state=connecting]) .theoplayer-chromecast-ring{-webkit-animation:.9s linear infinite;animation:.9s linear infinite}:host([cast-state=connecting]) .theoplayer-chromecast-ring1{-webkit-animation-name:theoplayer-chromecast-connecting-ring1;animation-name:theoplayer-chromecast-connecting-ring1}:host([cast-state=connecting]) .theoplayer-chromecast-ring2{-webkit-animation-name:theoplayer-chromecast-connecting-ring2;animation-name:theoplayer-chromecast-connecting-ring2}:host([cast-state=connecting]) .theoplayer-chromecast-ring3{-webkit-animation-name:theoplayer-chromecast-connecting-ring3;animation-name:theoplayer-chromecast-connecting-ring3}:host([cast-state=connecting]) .theoplayer-chromecast-ring4{-webkit-animation-name:theoplayer-chromecast-connecting-ring4;animation-name:theoplayer-chromecast-connecting-ring4}.theoplayer-chromecast-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-chromecast-inner{opacity:1}.theoplayer-chromecast-rings{clip-path:polygon(50% -100%,50% 50%,100% 50%,100% -100%)}@-webkit-keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}@keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}"]);return gZ=function(){return e},e}sK=o(gW,[[sQ,4,"castApi"],[sW,4,"castState"]],[]).e[0];var gY=pC(gZ()),gJ=0;function gX(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-chromecast-display-icon-gap,10px);padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:none}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-chromecast-display-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-chromecast-display-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-chromecast-display-icon-width,48px)}[part=text]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part=heading]{color:#fff;color:var(--theoplayer-chromecast-display-heading-color,#fff);font-size:14px;font-size:var(--theoplayer-chromecast-display-heading-font-size,var(--theoplayer-text-font-size,14px));margin:0;margin:var(--theoplayer-chromecast-display-heading-margin,0);padding:0}[part=receiver]{color:#fff;color:var(--theoplayer-chromecast-display-receiver-color,#fff);font-size:17.5px;font-size:var(--theoplayer-chromecast-display-receiver-font-size,calc(var(--theoplayer-text-font-size, 14px)*1.25));margin:0;margin:var(--theoplayer-chromecast-display-receiver-margin,0);padding:0}"]);return gX=function(){return e},e}sX=yT("theoplayer-chromecast-button"),s0=fO(["player","lang"]),s2=yS({reflect:!0,type:String,attribute:yq.LANG}),e.ChromecastButton=void 0,new(sJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(gW.styles,[gY]),s1(),t}return i(t,e),t}(l),sZ=yN("____private_lang_1"),sY=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,sZ,{writable:!0,value:void 0}),s3(t),t._buttonId=++gJ,yM(t,sZ)[sZ]=s5(t,""),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel="connecting"===this.castState||"connected"===this.castState?e.chromecastConnectedAria:e.chromecastAria},r.render=function(){var e;return e=this._buttonId,yn(gK(),e,e)},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.chromecast}},{key:"lang",get:function(){return yM(this,sZ)[sZ]},set:function(e){yM(this,sZ)[sZ]=e}}]),t}(gW),s5=(s8=(s4=o(sY,[[s2,1,"lang"]],[sX,s0],gW)).e)[0],s3=s8[1],e.ChromecastButton=(s7=s4.c)[0],s1=s7[1],sJ);var g0=pC(gX());function g1(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><p part="heading"><slot name="heading">','</slot></p><p part="receiver">',"</p></div>"]);return g1=function(){return e},e}var g2=["statechange"];function g5(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path class="theoplayer-airplay-inner" d="M5 7h14v8H5z"/><path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg></span>']);return g5=function(){return e},e}ur=yT("theoplayer-chromecast-display"),un=fO(["player","lang"]),ua=yS({reflect:!0,type:String,attribute:yq.LANG}),uo=yL(),e.ChromecastDisplay=void 0,new(ut=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[g0],ui(),t}return i(t,e),t}(l),s6=yN("____private_lang_1"),s9=yN("____private__receiverName_2"),ue=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,s6,{writable:!0,value:void 0}),Object.defineProperty(t,s9,{writable:!0,value:void 0}),yM(t,s6)[s6]=(uu(t),ul(t,"")),yM(t,s9)[s9]=us(t,""),t._updateFromPlayer=function(){var e,r,n=null==(r=t._player)||null==(e=r.cast)?void 0:e.chromecast;void 0===n||"connected"!==n.state?t.setAttribute(yq.HIDDEN,""):(t._receiverName=n.receiverName||"",t.removeAttribute(yq.HIDDEN))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(yq.HIDDEN)||this.setAttribute(yq.HIDDEN,""),this._updateFromPlayer()},r.render=function(){var e=fV(this.lang);return yn(g1(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48"><path d="M86.956 910.131h65.699q9.171 0 14.801-6.413 5.631-6.413 4.076-14.067-6.099-32.801-29.132-57.242-23.033-24.442-55.051-30.941-7.654-1.555-14.067 4.076-6.413 5.63-6.413 15.164v69.336q0 8.487 5.8 14.287 5.8 5.8 14.287 5.8Zm179.365 0q14.288 0 23.635-9.565 9.348-9.565 7.348-23.261-10.944-78.191-65.681-134.428-54.737-56.237-131.928-67.181-13.696-2-23.26 7.415-9.566 9.416-9.566 23.411 0 12.13 9.311 23.059 9.312 10.929 24.08 13.332 49.566 9.566 84.913 46.696 35.348 37.131 44.914 87.131 2.403 14.768 12.595 24.08 10.192 9.311 23.639 9.311Zm127.147 0q13.904 0 23.261-9.563 9.358-9.563 8.358-23.444-5.819-64.393-33.105-122.128-27.286-57.735-70.589-101.784-43.303-44.049-100.088-71.892-56.784-27.842-121.43-33.407-13.88-1-23.443 8.53-9.563 9.531-9.563 23.377 0 13.615 9.072 23.615 9.072 10 23.62 12.19 103.526 11.636 174.956 85.018 71.43 73.382 82.858 176.796 1.801 14.298 11.995 23.495 10.195 9.197 24.098 9.197ZM123.477 241.304h692.436q31.74 0 55.762 24.021 24.021 24.022 24.021 55.762v509.826q0 31.507-24.021 55.362-24.022 23.856-55.762 23.856H525.696q-16.706 0-28.158-11.501-11.451-11.502-11.451-28.283 0-16.782 11.451-28.108 11.452-11.326 28.158-11.326h290.217V321.087H146.087v146q-6.783 6.348-16.595 11.674-9.813 5.326-23.514 5.326-16.457 0-27.783-11.452-11.326-11.451-11.326-28.158v-146q0-21.834 16.838-39.504 16.837-17.669 39.77-17.669Zm317.914 363Z"/></svg>\n'),e.chromecastHeading,this._receiverName||e.chromecastDefaultReceiverName)},v(t,[{key:"lang",get:function(){return yM(this,s6)[s6]},set:function(e){yM(this,s6)[s6]=e}},{key:"_receiverName",get:function(){return yM(this,s9)[s9]},set:function(e){yM(this,s9)[s9]=e}},{key:"player",get:function(){return this._player},set:function(e){var t;this._player!==e&&(void 0!==this._castApi&&this._castApi.removeEventListener(g2,this._updateFromPlayer),this._player=e,this._castApi=null==e||null==(t=e.cast)?void 0:t.chromecast,this._updateFromPlayer(),void 0!==this._castApi&&this._castApi.addEventListener(g2,this._updateFromPlayer))}}]),t}(yw),ul=(uh=(uc=o(ue,[[ua,1,"lang"],[uo,1,"_receiverName"]],[ur,un],yw)).e)[0],us=uh[1],uu=uh[2],e.ChromecastDisplay=(ud=uc.c)[0],ui=ud[1],ut);var g3=yn(g5());function g4(){var e=a([":host([cast-state=unavailable]){display:none!important}.theoplayer-airplay-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-airplay-inner{opacity:1}"]);return g4=function(){return e},e}var g8=pC(g4());function g7(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;pointer-events:none!important;vertical-align:middle}[part=icon]{opacity:0;-webkit-transition:visibility .15s,opacity .15s;transition:visibility .15s,opacity .15s;visibility:hidden}:host([loading]) [part=icon]{opacity:1;-webkit-transition:visibility 0s,opacity 0s;transition:visibility 0s,opacity 0s;-webkit-transition-delay:.5s;transition-delay:.5s;-webkit-transition-delay:var(--theoplayer-loading-delay,.5s);transition-delay:var(--theoplayer-loading-delay,.5s);visibility:visible}[part=icon] ::slotted(img),[part=icon] ::slotted(svg){fill:#fff;fill:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));vertical-align:middle;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress{direction:ltr;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:0;height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));letter-spacing:0;line-height:0;position:relative;white-space:nowrap;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress svg,.theoplayer-loading-spinner{height:100%;position:absolute;width:100%}.theoplayer-loading-progress svg{stroke:#fff;stroke:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff))}.theoplayer-loading-gap-patch{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;left:47.5%;overflow:hidden;position:absolute;top:0;width:5%}.theoplayer-loading-gap-patch svg{left:-900%;-webkit-transform:rotate(180deg);transform:rotate(180deg);width:2000%}.theoplayer-loading-circle-clipper{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:100%;overflow:hidden;position:relative;width:50%}.theoplayer-loading-circle-clipper svg{width:200%}.theoplayer-loading-circle-right svg{left:-100%}.theoplayer-loading-progress{-webkit-animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite;animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite}.theoplayer-loading-spinner{-webkit-animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-left svg{-webkit-animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-right svg{-webkit-animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}@-webkit-keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@-webkit-keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@-webkit-keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}@keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}"]);return g7=function(){return e},e}uv=yT("theoplayer-airplay-button"),u_=fO(["player","lang"]),ub=yS({reflect:!0,type:String,attribute:yq.LANG}),e.AirPlayButton=void 0,new(uf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(gW.styles,[g8]),ug(),t}return i(t,e),t}(l),up=yN("____private_lang_1"),uy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,up,{writable:!0,value:void 0}),yM(t,up)[up]=(uk(t),um(t,"")),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel="connecting"===this.castState||"connected"===this.castState?e.airplayConnectedAria:e.airplayAria},r.render=function(){return g3},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.airplay}},{key:"lang",get:function(){return yM(this,up)[up]},set:function(e){yM(this,up)[up]=e}}]),t}(gW),um=(ux=(uw=o(uy,[[ub,1,"lang"]],[uv,u_],gW)).e)[0],uk=ux[1],e.AirPlayButton=(uT=uw.c)[0],ug=uT[1],uf);var g6=pC(g7());function g9(){var e=a(['<div part="icon"><slot name="icon"><div aria-hidden="true" class="theoplayer-loading-progress"><div class="theoplayer-loading-spinner"><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-left"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div><div class="theoplayer-loading-gap-patch"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="3.2"/></svg></div><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-right"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div></div></div></slot></div>']);return g9=function(){return e},e}var be=yn(g9()),bt=["readystatechange","play","pause","playing","seeking","seeked"];function br(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none!important}"]);return br=function(){return e},e}uL=yT("theoplayer-loading-indicator"),uC=fO(["player"]),uR=yS({reflect:!1,attribute:!1}),uO=yS({reflect:!0,type:Boolean,attribute:yq.LOADING}),e.LoadingIndicator=void 0,new(uS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[g6],uP(),t}return i(t,e),t}(l),uE=yN("____private_loading_1"),uA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uE,{writable:!0,value:void 0}),yM(t,uE)[uE]=(uB(t),uM(t,!1)),t._updateFromPlayer=function(){t.loading=void 0!==t._player&&!t._player.paused&&(t._player.seeking||t._player.readyState<3)},t}return i(t,e),t.prototype.render=function(){return be},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(bt,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(bt,this._updateFromPlayer))}},{key:"loading",get:function(){return yM(this,uE)[uE]},set:function(e){yM(this,uE)[uE]=e}}]),t}(yw),uM=(uI=(uN=o(uA,[[uR,4,"player"],[uO,1,"loading"]],[uL,uC],yw)).e)[0],uB=uI[1],e.LoadingIndicator=(uD=uN.c)[0],uP=uD[1],uS);var bn=pC(br());function bi(){var e=a([""]);return bi=function(){return e},e}function ba(){var e=a(["[part=icon] ::slotted(svg),[part=icon] svg{fill:#8c8c8c;fill:var(--theoplayer-live-button-color,#8c8c8c)}:host([live]:not([paused])) [part=icon] ::slotted(svg),:host([live]:not([paused])) [part=icon] svg{fill:red;fill:var(--theoplayer-live-button-active-color,red)}"]);return ba=function(){return e},e}uq=yT("theoplayer-gesture-receiver"),uj=fO(["player","deviceType"]),uV=yS({reflect:!1,attribute:!1}),uH=yS({reflect:!1,attribute:!1}),e.GestureReceiver=void 0,new(uU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[bn],uz(),t}return i(t,e),t}(l),uF=yN("____private_deviceType_1"),u$=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uF,{writable:!0,value:void 0}),uQ(t),t._pointerType="",yM(t,uF)[uF]=uG(t,"desktop"),t._onPointerDown=function(e){t._pointerType=e.pointerType},t._onClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;"touch"===n?t.handleTap(e):"mouse"===n&&t.handleMouseClick(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.setAttribute("tabindex","-1"),this.setAttribute("aria-hidden","true")},r.handleTap=function(e){},r.handleMouseClick=function(e){if("desktop"===this.deviceType&&void 0!==this._player){var t;void 0===this._player.source||null!=(t=this._player.ads)&&t.playing||this._player.vr&&"unavailable"!==this._player.vr.state||(this._player.paused?this._player.play():this._player.pause())}},r.render=function(){return yn(bi())},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._playerElement&&(this._playerElement.removeEventListener("pointerdown",this._onPointerDown),this._playerElement.removeEventListener("click",this._onClick)),this._player=e,this._playerElement=null==e?void 0:e.element,void 0!==this._playerElement&&(this._playerElement.addEventListener("pointerdown",this._onPointerDown),this._playerElement.addEventListener("click",this._onClick)))}},{key:"deviceType",get:function(){return yM(this,uF)[uF]},set:function(e){yM(this,uF)[uF]=e}}]),t}(yw),uG=(uK=(uW=o(u$,[[uV,4,"player"],[uH,1,"deviceType"]],[uq,uj],yw)).e)[0],uQ=uK[1],e.GestureReceiver=(uZ=uW.c)[0],uz=uZ[1],uU);var bo=pC(ba());function bl(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><slot name="spacer"></slot><span part="text"><slot name="text">',"</slot></span>"]);return bl=function(){return e},e}var bs=["play","pause","playing","emptied"],bu=["seeking","seeked","timeupdate","durationchange","emptied"];function bc(){var e=a([":host{padding:5px 10px;padding:calc(var(--theoplayer-control-padding, 10px) - var(--theoplayer-ad-display-padding, 5px)) var(--theoplayer-control-padding,10px);pointer-events:none}span{background:#ffc50f;background:var(--theoplayer-ad-display-background,#ffc50f);border-radius:2px;border-radius:var(--theoplayer-ad-display-border-radius,2px);color:#000;color:var(--theoplayer-ad-display-text-color,#000);display:inline-block;padding:5px;padding:var(--theoplayer-ad-display-padding,5px)}"]);return bc=function(){return e},e}u5=yT("theoplayer-live-button"),u3=fO(["player","streamType","lang"]),u7=yS({reflect:!0,type:Boolean,attribute:yq.PAUSED}),u6=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),u9=yS({reflect:!0,type:Number,attribute:yq.LIVE_THRESHOLD,useDefault:!0}),ce=yS({reflect:!0,type:Boolean,attribute:yq.LIVE}),ct=yS({reflect:!0,type:String,attribute:yq.LANG}),cr=yS({reflect:!1,attribute:!1}),e.LiveButton=void 0,new(u2=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[bo]),u4(),r}return i(r,t),r}(l),uY=yN("____private_paused_1"),uJ=yN("____private_streamType_2"),uX=yN("____private_live_3"),u0=yN("____private_lang_4"),u1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uY,{writable:!0,value:void 0}),Object.defineProperty(t,uJ,{writable:!0,value:void 0}),Object.defineProperty(t,uX,{writable:!0,value:void 0}),Object.defineProperty(t,u0,{writable:!0,value:void 0}),cl(t),t._liveThreshold=10,yM(t,uY)[uY]=cn(t,!1),yM(t,uJ)[uJ]=ci(t,"vod"),yM(t,uX)[uX]=ca(t,!1),yM(t,u0)[u0]=co(t,""),t._updatePaused=function(){t.paused=void 0===t._player||t._player.paused},t._updateLive=function(){t.live=void 0!==t._player&&function(e,t){if(e.duration===1/0){var r=e.seekable;return!(r.length>0)||r.end(r.length-1)-e.currentTime<=t}return!1}(t._player,t.liveThreshold)},t}i(t,e);var r=t.prototype;return r.handleClick=function(){void 0!==this._player&&(this._player.hesp&&void 0!==this._player.hesp.manifest?this._player.hesp.goLive():(this._player.currentTime=1/0,this._player.play()))},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.seekToLiveAria},r.render=function(){var e=fV(this.lang);return yn(bl(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><circle cx="12" cy="12" r="7"/></svg>\n'),e.live)},v(t,[{key:"paused",get:function(){return yM(this,uY)[uY]},set:function(e){yM(this,uY)[uY]=e}},{key:"streamType",get:function(){return yM(this,uJ)[uJ]},set:function(e){yM(this,uJ)[uJ]=e}},{key:"liveThreshold",get:function(){return this._liveThreshold},set:function(e){this._liveThreshold=isNaN(e)?0:e,this._updateLive()}},{key:"live",get:function(){return yM(this,uX)[uX]},set:function(e){yM(this,uX)[uX]=e}},{key:"lang",get:function(){return yM(this,u0)[u0]},set:function(e){yM(this,u0)[u0]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(bs,this._updatePaused),this._player.removeEventListener(bu,this._updateLive)),this._player=e,this._updatePaused(),this._updateLive(),void 0!==this._player&&(this._player.addEventListener(bs,this._updatePaused),this._player.addEventListener(bu,this._updateLive)))}}]),t}(u8=e.Button),cn=(cu=(cs=o(u1,[[u7,1,"paused"],[u6,1,"streamType"],[u9,4,"liveThreshold"],[ce,1,"live"],[ct,1,"lang"],[cr,4,"player"]],[u5,u3],u8)).e)[0],ci=cu[1],ca=cu[2],co=cu[3],cl=cu[4],e.LiveButton=(cc=cs.c)[0],u4=cc[1],u2);var bh=pC(bc());function bd(){var e=a(["<span>","</span>"]);return bd=function(){return e},e}var bp=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];function by(){var e=a([":host{pointer-events:none}"]);return by=function(){return e},e}cv=yT("theoplayer-ad-display"),c_=fO(["player","lang"]),cb=yL(),cm=yL(),ck=yS({reflect:!0,type:String,attribute:yq.LANG}),cw=yS({reflect:!1,attribute:!1}),e.AdDisplay=void 0,new(cf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f4,bh],cg(),t}return i(t,e),t}(l),ch=yN("____private__currentAd_1"),cd=yN("____private__totalAds_2"),cp=yN("____private_lang_3"),cy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ch,{writable:!0,value:void 0}),Object.defineProperty(t,cd,{writable:!0,value:void 0}),Object.defineProperty(t,cp,{writable:!0,value:void 0}),yM(t,ch)[ch]=(cA(t),cx(t,0)),yM(t,cd)[cd]=cT(t,0),yM(t,cp)[cp]=cE(t,""),t._updateFromPlayer=function(){var e,r,n,i=null==(r=t._player)?void 0:r.ads,a=(null!=(e=null==i||null==(n=i.currentAdBreak)?void 0:n.ads)?e:[]).filter(gR);if(void 0===i||!i.playing||0===a.length){t._currentAd=0,t._totalAds=0,t.style.display="none";return}var o=0;if(a.length>1){var l=fk(t._player.ads.currentAds||[],gR);if(l){var s=a.indexOf(l);s>=0&&(o=s+1)}}t._currentAd=o,t._totalAds=a.length,t.style.display=""},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){var e=fV(this.lang),t=this._totalAds>1?e.adBreakText(this._currentAd,this._totalAds):e.adText;return yn(bd(),t)},v(t,[{key:"_currentAd",get:function(){return yM(this,ch)[ch]},set:function(e){yM(this,ch)[ch]=e}},{key:"_totalAds",get:function(){return yM(this,cd)[cd]},set:function(e){yM(this,cd)[cd]=e}},{key:"lang",get:function(){return yM(this,cp)[cp]},set:function(e){yM(this,cp)[cp]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(bp,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(bp,this._updateFromPlayer))}}]),t}(yw),cx=(cL=(cS=o(cy,[[cb,1,"_currentAd"],[cm,1,"_totalAds"],[ck,1,"lang"],[cw,4,"player"]],[cv,c_],yw)).e)[0],cT=cL[1],cE=cL[2],cA=cL[3],e.AdDisplay=(cC=cS.c)[0],cg=cC[1],cf);var bf=pC(by());function bv(){var e=a(["<span>","</span>"]);return bv=function(){return e},e}var b_=["adbreakbegin","adbreakend","adbreakchange","updateadbreak"];function bg(){var e=a(["<slot>","</slot>"]);return bg=function(){return e},e}cB=yT("theoplayer-ad-countdown"),cN=fO(["player","lang"]),cD=yL(),cF=yS({reflect:!0,type:String,attribute:yq.LANG}),c$=yS({reflect:!1,attribute:!1}),e.AdCountdown=void 0,new(cM=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f4,bf],cI(),t}return i(t,e),t}(l),cP=yN("____private__maxRemainingDuration_1"),cR=yN("____private_lang_2"),cO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,cP,{writable:!0,value:void 0}),Object.defineProperty(t,cR,{writable:!0,value:void 0}),yM(t,cP)[cP]=(cj(t),cU(t,0)),yM(t,cR)[cR]=cq(t,""),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(e=t._player)?void 0:e.ads,i=null==n||null==(r=n.currentAdBreak)?void 0:r.maxRemainingDuration;void 0===n||!n.playing||void 0===i||i<0?(t._maxRemainingDuration=0,t.style.display="none"):(t._maxRemainingDuration=Math.ceil(i),t.style.display="")},t}return i(t,e),t.prototype.render=function(){var e=fV(this.lang),t=e.formatNarrowDuration(f1(this._maxRemainingDuration));return yn(bv(),e.adCountdownText(t))},v(t,[{key:"_maxRemainingDuration",get:function(){return yM(this,cP)[cP]},set:function(e){yM(this,cP)[cP]=e}},{key:"lang",get:function(){return yM(this,cR)[cR]},set:function(e){yM(this,cR)[cR]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(b_,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(b_,this._onAdChange))}}]),t}(yw),cU=(cV=(cz=o(cO,[[cD,1,"_maxRemainingDuration"],[cF,1,"lang"],[c$,4,"player"]],[cB,cN],yw)).e)[0],cq=cV[1],cj=cV[2],e.AdCountdown=(cH=cz.c)[0],cI=cH[1],cM);var bb=["adbegin","adend","adloaded","updatead","adskip"];cG=yT("theoplayer-ad-clickthrough-button"),cQ=fO(["player","lang"]),cK=yS({reflect:!0,type:String,attribute:yq.CLICKTHROUGH}),cZ=yS({reflect:!0,type:String,attribute:yq.LANG}),cY=yS({reflect:!1,attribute:!1}),e.AdClickThroughButton=void 0;var bm=yN("____private_lang_1"),bk=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,bm,{writable:!0,value:void 0}),cX(t),t._clickThrough=null,yM(t,bm)[bm]=cJ(t,""),t._updateFromPlayer=function(){var e,r,n=null==(r=t._player)?void 0:r.ads;if(!n||!n.playing){t.clickThrough=null;return}var i=fk(null!=(e=n.currentAds)?e:[],gR);if(void 0===i||"google-ima"===i.integration){t.clickThrough=null;return}var a=i.clickThrough;if(!a){t.clickThrough=null;return}t.clickThrough=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),null==this.clickThrough&&(this.disabled=!0,this.style.display="none")},r.handleClick=function(){var e;null==(e=this._player)||e.pause()},r.renderLinkContent=function(){var e=fV(this.lang);return yn(bg(),e.adClickThroughText)},v(t,[{key:"clickThrough",get:function(){return this._clickThrough},set:function(e){this._clickThrough!==e&&(this._clickThrough=e,this.href=e?String(e).trim():"#",this.target="_blank",this.disabled=null==e,this.style.display=null!=e?"":"none")}},{key:"lang",get:function(){return yM(this,bm)[bm]},set:function(e){yM(this,bm)[bm]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(bb,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(bb,this._updateFromPlayer))}}]),t}(cW=e.LinkButton);function bw(){var e=a([":host{-ms-grid-columns:1fr;-ms-grid-rows:1fr;background:rgba(0,0,0,.7);background:var(--theoplayer-ad-skip-background,rgba(0,0,0,.7));border:1px solid hsla(0,0%,100%,.5);border:var(--theoplayer-ad-skip-border,1px solid hsla(0,0%,100%,.5));color:#fff;color:var(--theoplayer-ad-skip-color,#fff);display:-ms-grid;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}:host(:hover){background:rgba(0,0,0,.9);background:var(--theoplayer-ad-skip-hover-background,rgba(0,0,0,.9));border:1px solid #fff;border:var(--theoplayer-ad-skip-hover-border,1px solid #fff);color:#fff;color:var(--theoplayer-ad-skip-hover-color,var(--theoplayer-ad-skip-color,#fff))}:host([disabled]){background:transparent;background:var(--theoplayer-ad-skip-countdown-background,transparent);border:1px solid transparent;border:var(--theoplayer-ad-skip-countdown-border,1px solid transparent);color:#fff;color:var(--theoplayer-ad-skip-countdown-color,var(--theoplayer-ad-skip-color,#fff))}[part=countdown],[part=skip]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}[part=skip]{font-size:14px;font-size:var(--theoplayer-ad-skip-font-size,var(--theoplayer-text-font-size,14px));line-height:24px;line-height:var(--theoplayer-ad-skip-line-height,var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px)))}[part=skip-icon]{padding-left:10px;padding-left:var(--theoplayer-control-padding,10px)}[part=skip-icon] ::slotted(svg),[part=skip-icon] svg{height:24px;height:var(--theoplayer-ad-skip-icon-height,var(--theoplayer-control-height,24px));width:24px;width:var(--theoplayer-ad-skip-icon-width,var(--theoplayer-control-height,24px))}"]);return bw=function(){return e},e}cJ=(c1=(c0=o(bk,[[cK,4,"clickThrough"],[cZ,1,"lang"],[cY,4,"player"]],[cG,cQ],cW)).e)[0],cX=c1[1],e.AdClickThroughButton=(c2=c0.c)[0],(0,c2[1])();var bx=pC(bw());function bT(){var e=a(['<span part="countdown" style="','">','</span> <span part="skip" style="','"><span part="skip-text"><slot name="skip-text">','</slot></span><span part="skip-icon"><slot name="skip-icon">',"</slot></span></span>"]);return bT=function(){return e},e}var bE=["adbegin","adend","adloaded","updatead","adskip"];c6=yT("theoplayer-ad-skip-button"),c9=fO(["player","lang"]),hr=yL(),hn=yL(),hi=yS({reflect:!0,type:String,attribute:yq.LANG}),ha=yS({reflect:!1,attribute:!1}),e.AdSkipButton=void 0,new(c7=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[bx]),he(),r}return i(r,t),r}(l),c5=yN("____private__showCountdown_1"),c3=yN("____private__timeToSkip_2"),c4=yN("____private_lang_3"),c8=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,c5,{writable:!0,value:void 0}),Object.defineProperty(t,c3,{writable:!0,value:void 0}),Object.defineProperty(t,c4,{writable:!0,value:void 0}),yM(t,c5)[c5]=(hu(t),ho(t,!1)),yM(t,c3)[c3]=hl(t,0),yM(t,c4)[c4]=hs(t,""),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(r=t._player)?void 0:r.ads;if(!n||!n.playing){t.style.display="none";return}var i=fk(null!=(e=n.currentAds)?e:[],gR);if(void 0===i||"google-ima"===i.integration){t.style.display="none";return}var a=i.skipOffset;if(void 0===a||a<0||void 0!==i.duration&&a>=i.duration){t.style.display="none";return}var o=t._player.currentTime;o<a?(t._showCountdown=!0,t._timeToSkip=Math.ceil(a-o),t.style.display="",t.setAttribute(yq.DISABLED,""),t.setAttribute(yq.ARIA_LIVE,"off")):(t._showCountdown=!1,t.style.display="",t.removeAttribute(yq.DISABLED),t.setAttribute(yq.ARIA_LIVE,"polite"))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._update()},r.handleClick=function(){var e,t;null==(t=this._player)||null==(e=t.ads)||e.skip()},r.render=function(){var e=fV(this.lang),t={visibility:this._showCountdown?"visible":"hidden"},r={visibility:this._showCountdown?"hidden":"visible",pointerEvents:this._showCountdown?"none":""},n=e.formatNarrowDuration(f1(this._timeToSkip));return yn(bT(),g_(t),e.adSkipCountdownText(n),g_(r),e.adSkipButtonText,fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.5 18q-.425 0-.712-.288-.288-.287-.288-.712V7q0-.425.288-.713Q17.075 6 17.5 6t.712.287q.288.288.288.713v10q0 .425-.288.712-.287.288-.712.288ZM7.05 16.975q-.5.35-1.025.05-.525-.3-.525-.9v-8.25q0-.6.525-.888.525-.287 1.025.038l6.2 4.15q.45.3.45.825 0 .525-.45.825Z"/></svg>\n'))},v(t,[{key:"_showCountdown",get:function(){return yM(this,c5)[c5]},set:function(e){yM(this,c5)[c5]=e}},{key:"_timeToSkip",get:function(){return yM(this,c3)[c3]},set:function(e){yM(this,c3)[c3]=e}},{key:"lang",get:function(){return yM(this,c4)[c4]},set:function(e){yM(this,c4)[c4]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(bE,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(bE,this._onAdChange))}}]),t}(ht=e.Button),ho=(hh=(hc=o(c8,[[hr,1,"_showCountdown"],[hn,1,"_timeToSkip"],[hi,1,"lang"],[ha,4,"player"]],[c6,c9],ht)).e)[0],hl=hh[1],hs=hh[2],hu=hh[3],e.AdSkipButton=(hd=hc.c)[0],he=hd[1],c7),hp=fO(["player","lang"]),hf=yS({reflect:!0,type:String,attribute:yq.LANG});var bA=yN("____private_lang_1"),bS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,bA,{writable:!0,value:void 0}),h_(t),t._badNetworkMode=!1,yM(t,bA)[bA]=hv(t,""),t.handleEnterBadNetworkMode_=function(){t._badNetworkMode=!0,t.handleEnterBadNetworkMode()},t.handleExitBadNetworkMode_=function(){t._badNetworkMode=!1,t.handleExitBadNetworkMode()},t}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){},r.handleExitBadNetworkMode=function(){},v(t,[{key:"lang",get:function(){return yM(this,bA)[bA]},set:function(e){yM(this,bA)[bA]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._badNetworkMode=null!=(t=null==(r=this._theoLive)?void 0:r.badNetworkMode)&&t,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this.handlePlayer())}}]),t}(hy=e.RadioButton);function bL(){var e=a(["<slot>","</slot>"]);return bL=function(){return e},e}hv=(hm=(hb=o(bS,[[hf,1,"lang"]],[hp],hy)).e)[0],h_=hm[1],hg=(hk=hb.c)[0],(0,hk[1])(),hw=yT("theolive-automatic-quality-selector"),e.AutomaticQualitySelector=void 0;var bC=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)!==!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!1)},r.render=function(){var e=fV(this.lang);return yn(bL(),e.highQualityLabel)},t}(hg);function bP(){var e=a(["[part=icon]{display:inline-block;position:relative}[part=warning-icon]{display:none;height:60%;min-width:60%;position:absolute;right:-10%;top:0;width:60%}[part=warning-icon] svg{fill:red;fill:var(--theolive-bad-network-mode,red)}"]);return bP=function(){return e},e}e.AutomaticQualitySelector=(hx=o(bC,[],[hw],hg).c)[0],(0,hx[1])();var bR=pC(bP());function bO(){var e=a(['<span part="icon">','<span part="warning-icon" style="','">',"</span></span>"]);return bO=function(){return e},e}function bM(){var e=a(["<slot>","</slot>"]);return bM=function(){return e},e}hL=yT("theolive-bad-network-button"),hC=fO(["player","lang"]),hO=yL(),hM=yS({reflect:!0,type:String,attribute:yq.LANG}),hB=yS({reflect:!1,attribute:!1}),e.BadNetworkModeButton=void 0,new(hS=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuButton.styles,[bR]),hP(),r}return i(r,t),r}(l),hT=yN("____private__inBadNetworkMode_1"),hE=yN("____private_lang_2"),hA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,hT,{writable:!0,value:void 0}),Object.defineProperty(t,hE,{writable:!0,value:void 0}),yM(t,hT)[hT]=(hD(t),hN(t,!1)),t.handleEnterBadNetworkMode_=function(){t._inBadNetworkMode=!0},t.handleExitBadNetworkMode_=function(){t._inBadNetworkMode=!1},yM(t,hE)[hE]=hI(t,""),t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.openBadNetworkModeMenuAria},r.render=function(){var e={display:this._inBadNetworkMode?"":"none"};return yn(bO(),fu(gt),g_(e),fu('<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48">\n <path d="m40 936 440-760 440 760H40Zm444.175-117q12.825 0 21.325-8.675 8.5-8.676 8.5-21.5 0-12.825-8.675-21.325-8.676-8.5-21.5-8.5-12.825 0-21.325 8.675-8.5 8.676-8.5 21.5 0 12.825 8.675 21.325 8.676 8.5 21.5 8.5ZM454 708h60V484h-60v224Z"/>\n</svg>'))},v(t,[{key:"_inBadNetworkMode",get:function(){return yM(this,hT)[hT]},set:function(e){yM(this,hT)[hT]=e}},{key:"lang",get:function(){return yM(this,hE)[hE]},set:function(e){yM(this,hE)[hE]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)))}}]),t}(hR=e.MenuButton),hN=(h$=(hF=o(hA,[[hO,1,"_inBadNetworkMode"],[hM,1,"lang"],[hB,4,"player"]],[hL,hC],hR)).e)[0],hI=h$[1],hD=h$[2],e.BadNetworkModeButton=(hU=hF.c)[0],hP=hU[1],hS),hq=yT("theolive-bad-network-quality-selector"),e.BadNetworkModeSelector=void 0;var bB=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)===!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!0)},r.render=function(){var e=fV(this.lang);return yn(bM(),e.lowQualityLabel)},t}(hg);function bN(){var e=a(["<theoplayer-radio-group ",' @change="','"><theolive-automatic-quality-selector></theolive-automatic-quality-selector><theolive-bad-network-quality-selector></theolive-bad-network-quality-selector></theoplayer-radio-group>']);return bN=function(){return e},e}e.BadNetworkModeSelector=(hj=o(bB,[],[hq],hg).c)[0],(0,hj[1])(),hH=yT("theolive-bad-network-menu"),e.BadNetworkModeMenu=void 0,new(hV=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vI],hG(),t}return i(t,e),t}(l),hz=function(t){function r(){var e;return e=t.apply(this,arguments)||this,e._radioGroupRef=fe(),e._onChange=function(){e.dispatchEvent(new Event("change",{bubbles:!0}))},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){this._radioGroupRef.value&&!T(this._radioGroupRef.value,e.RadioGroup)&&customElements.upgrade(this._radioGroupRef.value)},n.render=function(){return yn(bN(),fn(this._radioGroupRef),this._onChange)},r}(yw),e.BadNetworkModeMenu=(hQ=o(hz,[],[hH],yw).c)[0],hG=hQ[1],hV);var bI=((S={}).TopControlBar="top-control-bar",S.BottomControlBar="bottom-control-bar",S.Menu="menu",S),bD=[];function bF(){var e=a([':host{aspect-ratio:16/9;aspect-ratio:var(--theoplayer-aspect-ratio,16/9);background:#000;background:var(--theoplayer-background,#000);-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-ui-container;container-type:size;display:inline-block;height:var(--theoplayer-height);min-width:300px;min-width:var(--theoplayer-min-width,300px);position:relative}@supports not (aspect-ratio:1){:host{height:0;height:var(--theoplayer-height,calc((var(--theoplayer-aspect-ratio, 16 / 9))*0));padding-bottom:56.25%;padding-bottom:calc(100%/(var(--theoplayer-aspect-ratio, 16 / 9)))}}:host([hidden]){display:none!important}:host([fullscreen]){height:100%!important;padding:0!important;width:100%!important}:host(:-webkit-full-screen){height:100%!important;padding:0!important;width:100%!important}:host(:-ms-fullscreen){height:100%!important;padding:0!important;width:100%!important}:host(:fullscreen){height:100%!important;padding:0!important;width:100%!important}:host([fullwindow]){bottom:0!important;left:0!important;overflow:hidden!important;position:fixed!important;right:0!important;top:0!important;z-index:1000!important}:host([fluid]){--theoplayer-aspect-ratio:var(--theoplayer-video-width,16) /var(--theoplayer-video-height,9)}[part~=chrome]{position:relative}[part~=layer]{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}[part~=chrome],[part~=layer]:not([part~=media-layer]){display:-webkit-box;display:-ms-flexbox;display:flex}[part~=chrome],[part~=gesture-layer],[part~=vertical-layer]{pointer-events:none}[part~=chrome] ::slotted(*){pointer-events:auto}[part~=media-layer] video{border-radius:0;border-radius:var(--theoplayer-video-border-radius,0);-o-object-fit:contain;object-fit:contain;-o-object-fit:var(--theoplayer-video-object-fit,contain);object-fit:var(--theoplayer-video-object-fit,contain)}[part~=media-layer] .theoplayer-ad-linear{bottom:0;left:0;position:absolute;right:0;top:0;z-index:10}[part~=media-layer] .theo-ad-remaining-container,[part~=media-layer] .theoplayer-ad-skip,[part~=media-layer] .theoplayer-ad-touch-clickthrough{display:none!important}[part~=chrome],[part~=vertical-layer]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part~=centered]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;justify-content:center}[part~=middle]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}[part~=vertical-layer]:before{background:transparent;background:var(--theoplayer-control-backdrop-background,transparent);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;bottom:var(--theoplayer-menu-offset-bottom,0);padding:10px;padding:var(--theoplayer-menu-layer-padding,10px);top:0;top:var(--theoplayer-menu-offset-top,0)}[part=menu]{-ms-grid-column-align:stretch;background:rgba(0,0,0,.5);background:var(--theoplayer-menu-backdrop-background,rgba(0,0,0,.5));display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:stretch}[part=menu] ::slotted(*){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch}:host(:not([mobile])) [part=menu]{margin:auto 0 0 auto;margin:var(--theoplayer-menu-margin-top,auto) var(--theoplayer-menu-margin-right,0) var(--theoplayer-menu-margin-bottom,0) var(--theoplayer-menu-margin-left,auto);max-height:100%;min-width:200px;min-width:var(--theoplayer-menu-min-width,200px)}:host([mobile]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([tv]) [part~=menu-layer]{left:auto}:host([tv]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host(:not([menu-opened])) [part~=menu-layer],:host([menu-opened][mobile]) [part~=vertical-layer],:host([menu-opened][tv]) [part~=vertical-layer]{display:none!important}@container theoplayer-ui-container (max-width: 500px) or (max-height: 300px){:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;left:0;padding:0;right:0;top:0}:host(:not([mobile])) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([menu-opened]) [part~=vertical-layer]{display:none!important}}[part~=error-layer]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:rgba(0,0,0,.5);background:var(--theoplayer-error-background,rgba(0,0,0,.5));justify-content:center}:host(:not([has-error])) [part~=error-layer],:host([has-error]) [part~=layer]:not([part~=media-layer]):not([part~=error-layer]){display:none!important}[part~=chrome] ::slotted(theoplayer-control-bar){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}theoplayer-gesture-receiver{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}:host(:not([mobile])) [part~=chrome] ::slotted([mobile-only]),:host([mobile]) [part~=chrome] ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [part~=chrome] ::slotted([tv-only]),:host([tv]) [part~=chrome] ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [part~=chrome] ::slotted([live-hidden]),:host([stream-type=vod]) [part~=chrome] ::slotted([live-only]){display:none!important}:host(:not([playing-ad])) [part~=chrome] ::slotted([ad-only]),:host([playing-ad]) [part~=chrome] ::slotted([ad-hidden]){display:none!important}:host([user-idle]){cursor:none}:host([user-idle]) [part~=chrome] ::slotted(:not([no-auto-hide])){opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}:host([user-idle]) [part~=vertical-layer]:before{opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}']);return bF=function(){return e},e}var b$=pC(bF()),bU=function(){if("u">typeof document)for(var e,t=fd([["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]]);!(e=t()).done;){var r=e.value;if(r[1]in document)return{requestFullscreen_:r[0],exitFullscreen_:r[1],fullscreenElement_:r[2],fullscreenEnabled_:r[3],fullscreenchange_:r[4],fullscreenerror_:r[5]}}}();function bq(){if(("u"<typeof navigator?"undefined":d(navigator))!=="object")return!1;if(navigator.userAgentData)return navigator.userAgentData.mobile;var e=navigator.userAgent;return!!e&&/Android|iPhone|iPad|iPod|Mobile Safari|Windows Phone/i.test(e)}function bj(){if(("u"<typeof navigator?"undefined":d(navigator))!=="object")return!1;var e=navigator.userAgent;return!!e&&/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(e)}var bz="theoplayeruseridlechange",bV="theoplayerready";function bH(){var e=a(["html.theoplayer-ui-full-window{overflow:hidden!important}html.theoplayer-ui-full-window>body{height:100%!important;margin:0!important;padding:0!important;width:100%!important}"]);return bH=function(){return e},e}var bG=pC(bH()),bQ="theoplayer-ui-global-styles",bW=!1;function bK(){var e=a(['<div part="layer media-layer" ','></div><div part="layer gesture-layer"><theoplayer-gesture-receiver></theoplayer-gesture-receiver></div><div part="layer vertical-layer"><div part="top chrome" ','><slot name="top-chrome" ',' @transitionstart="','" @transitionend="','"></slot></div><div part="middle chrome"><slot name="middle-chrome"></slot></div><div part="layer centered-layer centered loading"><slot name="centered-loading"></slot></div><div part="layer centered-layer centered chrome"><slot name="centered-chrome"></slot></div><div part="bottom chrome" ',"><slot ",' @transitionstart="','" @transitionend="','"></slot></div></div><div part="layer menu-layer" ',"><theoplayer-menu-group ",' part="menu" @theoplayermenuclose="','" @theoplayermenuchange="','"><slot name="menu"></slot></theoplayer-menu-group></div><div part="layer error-layer"><slot name="error"></slot></div>']);return bK=function(){return e},e}var bZ="theoplayer-ui-full-window";function bY(e){for(var t,r,n=fA(e).filter(fg),i=fd(n);!(r=i()).done;){var a=r.value;if("0"!==getComputedStyle(a).opacity){var o=vi.fromRect(a.getBoundingClientRect());o.width>0&&o.height>0&&(t=t?t.union(o):o)}}return t}function bJ(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-default-ui-container;container-type:inline-size;display:inline-block;min-width:300px;min-width:var(--theoplayer-min-width,300px);position:relative}:host([hidden]){display:none!important}theoplayer-ui{display:block;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}[part=title]{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);text-shadow:0 0 4px rgba(0,0,0,.75);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *,[part=centered-chrome] ::slotted(*){--theoplayer-button-icon-width:var(--theoplayer-centered-chrome-button-icon-width,48px);--theoplayer-control-height:var(--theoplayer-centered-chrome-control-height,48px);--theoplayer-play-button-icon-color:var(--theoplayer-center-play-button-icon-color,unset)}[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;flex-grow:1;justify-content:flex-end;pointer-events:none;position:relative}[part=middle-chrome] theoplayer-vr-compass{margin:.5em;position:absolute;right:0;top:0;z-index:1}[part=bottom-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;pointer-events:none;position:relative}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:var(--theoplayer-mobile-control-backdrop-background,rgba(0,0,0,.5))}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:var(--theoplayer-time-range-control-height,12px);--theoplayer-range-track-pointer-background:var(--theoplayer-time-range-track-pointer-background,hsla(0,0%,100%,.5))}[part=ad-chrome]{--theoplayer-control-height:var(--theoplayer-ad-chrome-control-height,12px);-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;pointer-events:none}theoplayer-ad-display,theoplayer-ad-skip-button{-ms-flex-negative:0;flex-shrink:0}theoplayer-ad-countdown,theoplayer-ad-skip-button[disabled]{text-shadow:0 0 4px rgba(0,0,0,.75)}theoplayer-ad-countdown{min-width:0}theoplayer-ad-skip-button{-webkit-box-align:end;-ms-flex-align:end;--theoplayer-ad-skip-font-size:calc(var(--theoplayer-text-font-size, 14px)*1.25);--theoplayer-ad-skip-line-height:calc(var(--theoplayer-text-content-height, var(--theoplayer-control-height, 24px))*1.25);--theoplayer-ad-skip-icon-width:24px;--theoplayer-ad-skip-icon-height:24px;align-items:end;border-right:0!important;justify-items:end}:host(:not([mobile])) [mobile-only],:host(:not([mobile])) theoplayer-control-bar ::slotted([mobile-only]),:host([mobile]) [mobile-hidden],:host([mobile]) theoplayer-control-bar ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [tv-only],:host(:not([tv])) theoplayer-control-bar ::slotted([tv-only]),:host([tv]) [tv-hidden],:host([tv]) theoplayer-control-bar ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui:not([playing-ad]) theoplayer-control-bar ::slotted([ad-only]),theoplayer-ui[playing-ad] [ad-hidden],theoplayer-ui[playing-ad] theoplayer-control-bar ::slotted([ad-hidden]){display:none!important}theoplayer-ui:not([has-first-play]) theoplayer-control-bar{display:none!important}theoplayer-ui:not([has-first-play]),theoplayer-ui:not([has-first-play]) ::slotted(*){--theoplayer-before-first-play-display:none}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:none!important}@container theoplayer-default-ui-container (max-width: 200px){:host(:not([mobile])) theoplayer-control-bar{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}theoplayer-ui:not([mobile]):not([casting]) theoplayer-ad-clickthrough-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:var(--theoplayer-volume-range-track-width,70px);overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display:not([stream-type=vod]){padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}theoplayer-ui[playing-ad] .theoplayer-ad-control{--theoplayer-control-height:var(--theoplayer-ad-control-height,16px)}']);return bJ=function(){return e},e}h2=yT("theoplayer-ui"),h3=yS({reflect:!1,attribute:yq.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),h4=yS({reflect:!1,attribute:yq.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),h8=yS({reflect:!0,type:Boolean,attribute:yq.FLUID}),h7=yS({reflect:!0,type:String,attribute:yq.LANG}),h6=yS({reflect:!0,type:Boolean,attribute:yq.MUTED}),h9=yS({reflect:!0,type:Boolean,attribute:yq.AUTOPLAY}),de=yS({reflect:!0,type:Boolean,attribute:yq.FULLSCREEN}),dt=yS({reflect:!0,type:Boolean,attribute:yq.PAUSED}),dr=yS({reflect:!0,type:Boolean,attribute:yq.ENDED}),dn=yS({reflect:!0,type:Boolean,attribute:yq.CASTING}),di=yS({reflect:!0,type:Boolean,attribute:yq.USER_IDLE}),da=yS({reflect:!0,type:Number,attribute:yq.USER_IDLE_TIMEOUT,useDefault:!0}),dl=yS({reflect:!0,type:String,attribute:yq.DEVICE_TYPE}),ds=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.MOBILE}),du=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.TV}),dc=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),dh=yS({reflect:!0,type:Number,attribute:yq.DVR_THRESHOLD,useDefault:!0}),dd=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.HAS_FIRST_PLAY}),dp=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.PLAYING_AD}),dy=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.HAS_ERROR}),df=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.FULLWINDOW}),dv=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.MENU_OPENED}),e.UIContainer=void 0,new(h1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[b$],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),t.READY_EVENT=bV,h5(),t}return i(t,e),t}(l),hW=yN("____private_mobile_1"),hK=yN("____private_tv_2"),hZ=yN("____private__hasFirstPlay_3"),hY=yN("____private__isPlayingAd_4"),hJ=yN("____private__hasError_5"),hX=yN("____private__isFullWindow_6"),h0=function(n){function a(e){var t;return void 0===e&&(e={}),Object.defineProperty(t=n.call(this)||this,hW,{writable:!0,value:void 0}),Object.defineProperty(t,hK,{writable:!0,value:void 0}),Object.defineProperty(t,hZ,{writable:!0,value:void 0}),Object.defineProperty(t,hY,{writable:!0,value:void 0}),Object.defineProperty(t,hJ,{writable:!0,value:void 0}),Object.defineProperty(t,hX,{writable:!0,value:void 0}),dx(t),t._configuration={},t._playerRef=fe(),t._menuRef=fe(),t._menuGroupRef=fe(),t._menuOpened=!1,t._topChromeRef=fe(),t._topChromeSlotRef=fe(),t._bottomChromeRef=fe(),t._bottomChromeSlotRef=fe(),t._pointerType="",t._lastPointerUpTime=0,t._stateReceivers=[],t._player=void 0,t._source=void 0,t._muted=!1,t._autoplay=!1,t._fullscreen=!1,t._deviceType="desktop",t._streamType="vod",t._fluid=!1,t._language="",t._userIdle=!1,t._userIdleTimeout=void 0,t._isUserActive=!1,t._userIdleTimer=0,t._paused=!1,t._ended=!1,t._casting=!1,t._dvrThreshold=60,t._previewTime=NaN,t._activeVideoTrack=void 0,yM(t,hW)[hW]=d_(t,!1),yM(t,hK)[hK]=dg(t,!1),yM(t,hZ)[hZ]=db(t,!1),yM(t,hY)[hY]=dm(t,!1),yM(t,hJ)[hJ]=dk(t,!1),yM(t,hX)[hX]=dw(t,!1),t._onMutation=function(e){var r=t._playerRef.value;if(r)for(var n,i=fd(e);!(n=i()).done;){var a=n.value;if("childList"===a.type){for(var o=a.addedNodes,l=a.removedNodes,s=0;s<o.length;s++){var u=o[s];f_(u)&&fM(u,r,t.registerStateReceiver_)}for(var c=0;c<l.length;c++){var h=l[c];f_(h)&&fM(h,r,t.unregisterStateReceiver_)}}}},t._onSlotChange=function(){t._playerRef.value&&fM(t,t._playerRef.value,t.registerStateReceiver_),t._updateTextTrackMargins()},t.registerStateReceiver_=function(e){t._stateReceivers.indexOf(e)>=0||(t._stateReceivers.push(e),t.propagateStateToReceiver_(e))},t.unregisterStateReceiver_=function(e){var r,n,i,a;r=t._stateReceivers,!((n=r.indexOf(e))<0)&&(i=r,a=n,i.splice(a,1),1)&&t.removeStateFromReceiver_(e)},t._onToggleMenu=function(e){e.stopPropagation();var r=e.detail.menu,n=t._menuGroupRef.value;if(n){if(!n.getMenuById(r))return void console.error('<theoplayer-ui>: cannot find menu with ID "'+r+'"');var i=fg(e.target)?e.target:void 0;n.isMenuOpen(r)?t.closeMenu_():(t.closeMenu_(),t.openMenu_(r,i))}},t._onCloseMenu=function(e){e.stopPropagation(),t.closeMenu_()},t._onMenuChange=function(){var e=t._menuRef.value;e.removeEventListener("pointerdown",t._onMenuPointerDown),e.removeEventListener("click",t._onMenuClick),t._menuGroupRef.value.hasCurrentMenu()?(e.addEventListener("pointerdown",t._onMenuPointerDown),e.addEventListener("click",t._onMenuClick),t.menuOpened_=!0):t.menuOpened_=!1,t.updateUserIdle_()},t._onMenuPointerDown=function(e){t._pointerType=e.pointerType},t._onMenuClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;e.target===t._menuRef.value&&"mouse"===n&&t._menuGroupRef.value.closeCurrentMenu()&&e.preventDefault()},t._onEnterFullscreen=function(e){e.stopPropagation(),t._enterFullscreen()},t._onExitFullscreen=function(e){e.stopPropagation(),t._exitFullscreen()},t._vrFullscreen=!1,t._vrWasFullscreen=!1,t._onVrStateChange=function(){if(function(){if(("u"<typeof navigator?"undefined":d(navigator))!=="object")return!1;var e=navigator.userAgent;return!!e&&(/iPad|iPhone|iPod/.test(e)||/Macintosh/.test(e)&&navigator.maxTouchPoints>1)}()){var e,r,n=(null==(r=t._player)||null==(e=r.vr)?void 0:e.state)==="presenting";n&&!t._vrFullscreen?(t._vrFullscreen=!0,t._vrWasFullscreen=t.fullscreen,t.fullscreen||t._enterFullscreen()):!n&&t._vrFullscreen&&(t._vrFullscreen=!1,t._vrWasFullscreen||t._exitFullscreen())}},t._onFullscreenChange=function(){var e=!1;if(void 0!==bU){var r=document[bU.fullscreenElement_];r&&(e=function e(t,r){if(!t||!r)return!1;if(t.contains(r))return!0;var n=r.getRootNode();return!!n.host&&e(t,n.host)}(r,t))}e||void 0===t._player||"fullscreen"!==t._player.presentation.currentMode||(e=!0),t._isFullWindow&&(e=!0),t.fullscreen=e},t._exitFullscreenOnEsc=function(e){e.keyCode==yj.ESCAPE&&t._onExitFullscreen(e)},t._updateAspectRatio=function(){if(void 0!==t._player){var e=t._player,r=e.videoWidth,n=e.videoHeight;r>0&&n>0?gw(t,{"--theoplayer-video-width":""+r,"--theoplayer-video-height":""+n}):gw(t,{"--theoplayer-video-width":"","--theoplayer-video-height":""})}},t._updateError=function(){var e=null==(r=t._player)?void 0:r.errorObject;t._hasError=void 0!==e;for(var r,n,i=fd(t._stateReceivers);!(n=i()).done;){var a=n.value;a[fP].indexOf("error")>=0&&(a.error=e)}},t._onPlay=function(){t._hasFirstPlay=!0,t.paused=!1,t._updateEnded()},t._onPause=function(){t.paused=!0,t._updateEnded()},t._updatePausedAndEnded=function(){t.paused=!t._player||t._player.paused,t._updateEnded()},t._updateEnded=function(){t.ended=!!t._player&&t._player.ended},t._updateStreamType=function(){void 0!==t._player&&(t.streamType=t.computeStreamType_())},t._updatePlaybackRate=function(){if(void 0!==t._player)for(var e,r=t._player.playbackRate,n=fd(t._stateReceivers);!(e=n()).done;){var i=e.value;i[fP].indexOf("playbackRate")>=0&&(i.playbackRate=r)}},t._updateMuted=function(){void 0!==t._player&&(t.muted=t._player.muted)},t._updateActiveVideoTrack=function(){if(void 0!==t._player){var e,r,n,i,a=fk(t._player.videoTracks,function(e){return e.enabled});t._activeVideoTrack!==a&&(null==(e=t._activeVideoTrack)||e.removeEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(r=t._activeVideoTrack)||r.removeEventListener("targetqualitychanged",t._updateTargetVideoQualities),t._activeVideoTrack=a,t._updateActiveVideoQuality(),t._updateTargetVideoQualities(),null==(n=t._activeVideoTrack)||n.addEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(i=t._activeVideoTrack)||i.addEventListener("targetqualitychanged",t._updateTargetVideoQualities))}},t._updateActiveVideoQuality=function(){for(var e,r,n=null==(e=t._activeVideoTrack)?void 0:e.activeQuality,i=fd(t._stateReceivers);!(r=i()).done;){var a=r.value;a[fP].indexOf("activeVideoQuality")>=0&&(a.activeVideoQuality=n)}},t._updateTargetVideoQualities=function(){for(var e,r=v$(t._activeVideoTrack),n=fd(t._stateReceivers);!(e=n()).done;){var i=e.value;i[fP].indexOf("targetVideoQualities")>=0&&(i.targetVideoQualities=r)}},t._updateCasting=function(){var e,r,n;t.casting=null!=(e=null==(n=t._player)||null==(r=n.cast)?void 0:r.casting)&&e},t._updatePlayingAd=function(){var e,r,n;t._isPlayingAd=null!=(e=null==(n=t._player)||null==(r=n.ads)?void 0:r.playing)&&e},t._onSourceChange=function(){t.closeMenu_(),t._hasFirstPlay=void 0!==t._player&&!t._player.paused},t.setUserIdle_=function(){if(clearTimeout(t._userIdleTimer),t._userIdleTimer=0,!(t.userIdleTimeout<0)&&(t._isUserActive=!1,t.updateUserIdle_(),"tv"==t.deviceType&&t.isUserIdle_())){var e=va();null!==e&&e.blur()}},t.scheduleUserIdle_=function(){if(t.setUserActive_(),clearTimeout(t._userIdleTimer),t.userIdleTimeout<0){t._userIdleTimer=0;return}t._userIdleTimer=setTimeout(t.setUserIdle_,1e3*t.userIdleTimeout)},t._onTvKeyDown=function(e){if(yV(e.keyCode))return void t.setUserIdle_();var r=function e(t){if(fg(t)&&"none"!==getComputedStyle(t).display){if(null!==t.getAttribute(yq.TV_FOCUS))return fS(t);for(var r=fE(t),n=0;n<r.length;n++){var i=e(r[n]);if(i)return i}}}(t),n=fS(t),i=va();if(!i){var a=null!=r?r:n;a.length>0&&(a[0].focus(),i=a[0])}!t.isUserIdle_()&&(e.keyCode===yj.ENTER?null!==i&&(e.preventDefault(),i.click()):yz(e.keyCode)&&vo(t,n,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},t._onKeyUp=function(e){yV(e.keyCode)||t.scheduleUserIdle_()},t._onPointerUp=function(e){"mouse"===e.pointerType?t.scheduleUserIdle_():"touch"===e.pointerType&&(t.isPlayerOrMedia_(e.target)&&t._isUserActive?t.setUserIdle_():(t.isUserIdle_()&&(t._lastPointerUpTime=performance.now(),t.addEventListener("click",t._onClickAfterPointerUp,!0)),t.scheduleUserIdle_()))},t._onClickAfterPointerUp=function(e){t.removeEventListener("click",t._onClickAfterPointerUp,!0),performance.now()-t._lastPointerUpTime<50&&(e.preventDefault(),e.stopPropagation())},t._onPointerMove=function(e){"mouse"===e.pointerType&&(t.setUserActive_(),t.isPlayerOrMedia_(e.target)&&t.scheduleUserIdle_())},t._onMouseLeave=function(){t.setUserIdle_()},t._onChromeSlotTransition=function(e){"opacity"===e.propertyName&&t._updateTextTrackMargins()},t._updateTextTrackMargins=function(){var e=t._player;if(void 0!==e){var r=t._topChromeSlotRef.value&&bY(t._topChromeSlotRef.value),n=t._bottomChromeSlotRef.value&&bY(t._bottomChromeSlotRef.value);e.textTrackStyle.marginTop=null==r?void 0:r.height,e.textTrackStyle.marginBottom=null==n?void 0:n.height}},t._onPreviewTimeChange=function(e){t._previewTime=e.detail.previewTime;for(var r,n=fd(t._stateReceivers);!(r=n()).done;){var i=r.value;i[fP].indexOf("previewTime")>=0&&(i.previewTime=t._previewTime)}},t._onDestroy=function(){t._player&&(t.removePlayerListeners_(t._player),t._player=void 0,t.propagatePlayerToAllReceivers_())},t._configuration=e,t._mutationObserver=new MutationObserver(t._onMutation),"u">typeof ResizeObserver&&(t._resizeObserver=new ResizeObserver(t._updateTextTrackMargins)),t.tryInitializePlayer_(),t}i(a,n);var o=a.prototype;return o._setConfiguration=function(e){this._configuration=null!=e?e:{},this.tryInitializePlayer_()},o._setSource=function(e){this._player?this._player.source=e:this._source=e},o.connectedCallback=function(){if(n.prototype.connectedCallback.call(this),!bW){if(pE)document.adoptedStyleSheets.push(bG.styleSheet);else if(!document.getElementById(bQ)){var e,t=document.createElement("style");t.id=bQ;var r=window.litNonce;void 0!==r&&t.setAttribute("nonce",r),e=bG.cssText,void 0===t.textContent?t.innerText=e:t.textContent=e,document.head.appendChild(t)}bW=!0}this.hasAttribute(yq.LANG)||(this.lang=null!=(a=null==(o=fC(this,"[lang]"))?void 0:o.lang)?a:""),this.hasAttribute(yq.DEVICE_TYPE)||(this.deviceType=bq()?"mobile":bj()?"tv":"desktop"),this.hasAttribute(yq.PAUSED)||(this.paused=!0),this.tryInitializePlayer_();for(var i,a,o,l,s=fd(this._stateReceivers);!(l=s()).done;){var u=l.value;this.propagateStateToReceiver_(u)}this._mutationObserver.observe(this,{childList:!0,subtree:!0}),this.shadowRoot.addEventListener("slotchange",this._onSlotChange),null==(i=this._resizeObserver)||i.observe(this),this._updateTextTrackMargins(),void 0!==bU&&(document.addEventListener(bU.fullscreenchange_,this._onFullscreenChange),document.addEventListener(bU.fullscreenerror_,this._onFullscreenChange),this._onFullscreenChange()),this.setUserIdle_(),"tv"===this.deviceType&&window.addEventListener("keydown",this._onTvKeyDown),this._isFullWindow&&window.addEventListener("keydown",this._exitFullscreenOnEsc),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("pointerup",this._onPointerUp),this.addEventListener("pointermove",this._onPointerMove),this.addEventListener("mouseleave",this._onMouseLeave)},o.tryInitializePlayer_=function(){void 0!==this._player||void 0===this._playerRef.value||(void 0!==this._configuration.license||void 0!==this._configuration.licenseUrl)&&(this._player=new t.ChromelessPlayer(this._playerRef.value,this._configuration),this._source&&(this._player.source=this._source,this._source=void 0),this._player.muted!==this.muted&&(this._player.muted=this.muted),this._player.autoplay!==this.autoplay&&(this._player.autoplay=this.autoplay),this._updateAspectRatio(),this._updateError(),this._updatePausedAndEnded(),this._updateCasting(),this.addPlayerListeners_(this._player),this.propagatePlayerToAllReceivers_(),this.dispatchEvent(vt(bV)))},o.createRenderRoot=function(){var e=n.prototype.createRenderRoot.call(this);return e.addEventListener(vk,this._onToggleMenu),e.addEventListener(gl,this._onEnterFullscreen),e.addEventListener(gs,this._onExitFullscreen),e.addEventListener(gP,this._onPreviewTimeChange),e},o.firstUpdated=function(){this._menuGroupRef.value&&!T(this._menuGroupRef,e.MenuGroup)&&customElements.upgrade(this._menuGroupRef.value),this.tryInitializePlayer_(),this._playerRef.value&&fM(this,this._playerRef.value,this.registerStateReceiver_)},o.updated=function(){this._updateTextTrackMargins()},o.disconnectedCallback=function(){var e;n.prototype.disconnectedCallback.call(this),null==(e=this._resizeObserver)||e.disconnect(),this._mutationObserver.disconnect(),this.shadowRoot.removeEventListener("slotchange",this._onSlotChange),void 0!==bU&&(document.removeEventListener(bU.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(bU.fullscreenerror_,this._onFullscreenChange)),window.removeEventListener("keydown",this._onTvKeyDown),window.removeEventListener("keydown",this._exitFullscreenOnEsc),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("pointerup",this._onPointerUp),this.removeEventListener("click",this._onClickAfterPointerUp,!0),this.removeEventListener("pointermove",this._onPointerMove),this.removeEventListener("mouseleave",this._onMouseLeave),this._player&&(this.removePlayerListeners_(this._player),this._player.destroy(),this._player=void 0,this.propagatePlayerToAllReceivers_()),this._stateReceivers.length=0},o.propagateStateToReceiver_=function(e){var t,r=e[fP];r.indexOf("player")>=0&&(e.player=this._player),r.indexOf("lang")>=0&&(e.lang=this.lang),r.indexOf("fullscreen")>=0&&(e.fullscreen=this.fullscreen),r.indexOf("deviceType")>=0&&(e.deviceType=this.deviceType),r.indexOf("streamType")>=0&&(e.streamType=this.streamType),void 0!==this._player&&(r.indexOf("playbackRate")>=0&&(e.playbackRate=this._player.playbackRate),r.indexOf("error")>=0&&(e.error=this._player.errorObject),r.indexOf("activeVideoQuality")>=0&&(e.activeVideoQuality=null==(t=this._activeVideoTrack)?void 0:t.activeQuality),r.indexOf("targetVideoQualities")>=0&&(e.targetVideoQualities=v$(this._activeVideoTrack))),r.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)},o.propagatePlayerToAllReceivers_=function(){for(var e,t=fd(this._stateReceivers);!(e=t()).done;){var r=e.value;r[fP].indexOf("player")>=0&&(r.player=this._player)}},o.removeStateFromReceiver_=function(e){e[fP].indexOf("player")>=0&&(e.player=void 0)},o.openMenu_=function(e,t){var r=vi.fromRect(this._topChromeRef.value.getBoundingClientRect()),n=vi.fromRect(this._bottomChromeRef.value.getBoundingClientRect()),i=!0,a=!0;if(void 0!==t){var o=vi.fromRect(this.getBoundingClientRect()),l=vi.fromRect(t.getBoundingClientRect());o.width>0&&o.height>0&&(i=l.top>=o.top+o.height/2,a=l.left>=o.left+o.width/2)}this._menuGroupRef.value.openMenu(e,t),this._menuOpener=t,gw(this,{"--theoplayer-menu-offset-top":""+Math.round(r.height)+"px","--theoplayer-menu-offset-bottom":""+Math.round(n.height)+"px","--theoplayer-menu-margin-top":i?"auto":"0","--theoplayer-menu-margin-bottom":i?"0":"auto","--theoplayer-menu-margin-left":a?"auto":"0","--theoplayer-menu-margin-right":a?"0":"auto"})},o.closeMenu_=function(){var e,t,r;null==(t=this._menuGroupRef.value)||null==(e=t.closeMenu)||e.call(t),null==(r=this._menuOpener)||r.focus(),this._menuOpener=void 0},o._enterFullscreen=function(){if(bU&&document[bU.fullscreenEnabled_]&&this[bU.requestFullscreen_]){var e,t,n=this[bU.requestFullscreen_](r({navigationUI:"hide"},null==(t=this._configuration)||null==(e=t.ui)?void 0:e.fullscreenOptions));n&&n.then&&n.then(fv,fv)}else this._player&&this._player.presentation.supportsMode("fullscreen")?this._player.presentation.requestMode("fullscreen"):this._isFullWindow||(this._isFullWindow=!0,document.documentElement.classList.add(bZ),window.addEventListener("keydown",this._exitFullscreenOnEsc),this._onFullscreenChange())},o._exitFullscreen=function(){if(bU){var e=document[bU.exitFullscreen_]();e&&e.then&&e.then(fv,fv)}this._player&&"fullscreen"===this._player.presentation.currentMode&&this._player.presentation.requestMode("inline"),this._isFullWindow&&(this._isFullWindow=!1,document.documentElement.classList.remove(bZ),window.removeEventListener("keydown",this._exitFullscreenOnEsc),this._onFullscreenChange())},o.computeStreamType_=function(){var e=this.source,t=null!=(n=null==e?void 0:e.streamType)?n:this.getAttribute(yq.STREAM_TYPE),r=null==(i=this._player)?void 0:i.duration;if(void 0===r||isNaN(r))return t||"vod";if(r!==1/0)return"vod";if("live"===t||"dvr"===t)return t;var n,i,a,o=this.dvrThreshold;if(o<=0)return"dvr";var l=null==(a=this._player)?void 0:a.seekable;return l&&l.length>0&&l.end(l.length-1)-l.start(0)>=o?"dvr":"live"},o.isUserIdle_=function(){return!this._isUserActive&&!this.paused&&!this.casting&&!!this._menuGroupRef.value&&!this._menuGroupRef.value.hasCurrentMenu()},o.setUserActive_=function(){clearTimeout(this._userIdleTimer),this._isUserActive=!0,this.updateUserIdle_()},o.updateUserIdle_=function(){this.userIdle=this.isUserIdle_()},o.isPlayerOrMedia_=function(e){return e===this||this._playerRef.value.contains(e)},o.addPlayerListeners_=function(e){var t,r,n,i;e.addEventListener("destroy",this._onDestroy),e.addEventListener("resize",this._updateAspectRatio),e.addEventListener(["error","sourcechange","emptied"],this._updateError),e.addEventListener("volumechange",this._updateMuted),e.addEventListener("play",this._onPlay),e.addEventListener("pause",this._onPause),e.addEventListener(["ended","emptied"],this._updatePausedAndEnded),e.addEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.addEventListener("ratechange",this._updatePlaybackRate),e.addEventListener("sourcechange",this._onSourceChange),e.addEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd),null==(t=e.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.addEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.addEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.addEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd),null==(i=e.vr)||i.addEventListener("statechange",this._onVrStateChange)},o.removePlayerListeners_=function(e){e.removeEventListener("destroy",this._onDestroy),e.removeEventListener("resize",this._updateAspectRatio),e.removeEventListener(["error","sourcechange","emptied"],this._updateError),e.removeEventListener("volumechange",this._updateMuted),e.removeEventListener("play",this._onPlay),e.removeEventListener("pause",this._onPause),e.removeEventListener(["ended","emptied"],this._updatePausedAndEnded),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.removeEventListener("ratechange",this._updatePlaybackRate),e.removeEventListener("sourcechange",this._onSourceChange),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd);try{var t,r,n,i;null==(t=e.theoLive)||t.removeEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.removeEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.removeEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.removeEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd),null==(i=e.vr)||i.removeEventListener("statechange",this._onVrStateChange)}catch(e){}},o.render=function(){return yn(bK(),fn(this._playerRef),fn(this._topChromeRef),fn(this._topChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,fn(this._bottomChromeRef),fn(this._bottomChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,fn(this._menuRef),fn(this._menuGroupRef),this._onCloseMenu,this._onMenuChange)},v(a,[{key:"player",get:function(){return this._player}},{key:"configuration",get:function(){return this._configuration},set:function(e){this._setConfiguration(e)}},{key:"source",get:function(){return this._player?this._player.source:this._source},set:function(e){this._setSource(e)}},{key:"fluid",get:function(){return this._fluid},set:function(e){this._fluid=e,this._updateAspectRatio()}},{key:"lang",get:function(){return this._language},set:function(e){this._language=null!=e?e:"";for(var t,r=fd(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fP].indexOf("lang")>=0&&(n.lang=this._language)}}},{key:"muted",get:function(){return this._muted},set:function(e){this._muted=e,this._player&&this._player.muted!==e&&(this._player.muted=e)}},{key:"autoplay",get:function(){return this._autoplay},set:function(e){this._autoplay=e,this._player&&this._player.autoplay!==e&&(this._player.autoplay=e)}},{key:"fullscreen",get:function(){return this._fullscreen},set:function(e){if(this._fullscreen!==e){this._fullscreen=e;for(var t,r=fd(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fP].indexOf("fullscreen")>=0&&(n.fullscreen=e)}}}},{key:"paused",get:function(){return this._paused},set:function(e){this._paused=e,this.updateUserIdle_()}},{key:"ended",get:function(){return this._ended},set:function(e){this._ended=e}},{key:"casting",get:function(){return this._casting},set:function(e){this._casting=e,this.updateUserIdle_()}},{key:"userIdle",get:function(){return this._userIdle},set:function(e){this._userIdle!==e&&(this._userIdle=e,this.dispatchEvent(vt(bz)))}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){if(this._deviceType!==e){this._deviceType=e,this.mobile="mobile"===e,this.tv="tv"===e,window.removeEventListener("keydown",this._onTvKeyDown),"tv"===e&&window.addEventListener("keydown",this._onTvKeyDown);for(var t,r=fd(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fP].indexOf("deviceType")>=0&&(n.deviceType=e)}}}},{key:"mobile",get:function(){return yM(this,hW)[hW]},set:function(e){yM(this,hW)[hW]=e}},{key:"tv",get:function(){return yM(this,hK)[hK]},set:function(e){yM(this,hK)[hK]=e}},{key:"streamType",get:function(){return this._streamType},set:function(e){if(this._streamType!==e){this._streamType=e;for(var t,r=fd(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fP].indexOf("streamType")>=0&&(n.streamType=e)}var i=vt("theoplayerstreamtypechange",{bubbles:!0,composed:!0,detail:{streamType:e}});this.dispatchEvent(i)}}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e,this._updateStreamType()}},{key:"_hasFirstPlay",get:function(){return yM(this,hZ)[hZ]},set:function(e){yM(this,hZ)[hZ]=e}},{key:"_isPlayingAd",get:function(){return yM(this,hY)[hY]},set:function(e){yM(this,hY)[hY]=e}},{key:"_hasError",get:function(){return yM(this,hJ)[hJ]},set:function(e){yM(this,hJ)[hJ]=e}},{key:"_isFullWindow",get:function(){return yM(this,hX)[hX]},set:function(e){yM(this,hX)[hX]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){this._menuOpened!==e&&(this._menuOpened=e,fT(this,yq.MENU_OPENED,e))}}]),a}(yw),d_=(dE=(dT=o(h0,[[h3,4,"configuration"],[h4,4,"source"],[h8,4,"fluid"],[h7,4,"lang"],[h6,4,"muted"],[h9,4,"autoplay"],[de,4,"fullscreen"],[dt,4,"paused"],[dr,4,"ended"],[dn,4,"casting"],[di,4,"userIdle"],[da,4,"userIdleTimeout"],[dl,4,"deviceType"],[ds,1,"mobile"],[du,1,"tv"],[dc,4,"streamType"],[dh,4,"dvrThreshold"],[dd,1,"_hasFirstPlay"],[dp,1,"_isPlayingAd"],[dy,1,"_hasError"],[df,1,"_isFullWindow"],[dv,4,"menuOpened_"]],[h2],yw)).e)[0],dg=dE[1],db=dE[2],dm=dE[3],dk=dE[4],dw=dE[5],dx=dE[6],e.UIContainer=(dA=dT.c)[0],h5=dA[1],h1);var bX=pC(bJ());function b0(){var e=a(["<theoplayer-ui ",' .configuration="','" .lang="','" .fluid="','" .muted="','" .autoplay="','" .deviceType="','" .streamType="','" .userIdleTimeout="','" .dvrThreshold="','" @theoplayerready="','" @theoplayeruseridlechange="','" @theoplayerstreamtypechange="','">',"</theoplayer-ui>"]);return b0=function(){return e},e}function b1(){var e=a(['<theoplayer-control-bar slot="top-chrome" part="top-chrome"><div part="title" ad-hidden style="','"><slot name="title" @slotchange="','"></slot></div><span class="theoplayer-spacer"></span><theoplayer-language-menu-button menu="language-menu" mobile-only ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button mobile-only ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button mobile-only ad-hidden></theoplayer-chromecast-button><slot name="top-control-bar"></slot><theoplayer-settings-menu-button menu="settings-menu" mobile-only ad-hidden></theoplayer-settings-menu-button><theoplayer-ad-clickthrough-button ad-only></theoplayer-ad-clickthrough-button></theoplayer-control-bar><theoplayer-loading-indicator slot="centered-loading" no-auto-hide></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><slot name="centered-chrome"><theoplayer-seek-button part="seek-back-button seek-button center-button" seek-offset="-10" mobile-only ad-hidden></theoplayer-seek-button><theoplayer-play-button part="center-play-button play-button center-button"></theoplayer-play-button><theoplayer-seek-button part="seek-forward-button seek-button center-button" seek-offset="10" mobile-only ad-hidden></theoplayer-seek-button></slot></div><div slot="middle-chrome" part="middle-chrome"><theoplayer-chromecast-display></theoplayer-chromecast-display><theoplayer-vr-compass></theoplayer-vr-compass></div><div part="bottom-chrome"><theoplayer-control-bar part="ad-chrome" ad-only><theoplayer-ad-display></theoplayer-ad-display><theoplayer-ad-countdown></theoplayer-ad-countdown><span class="theoplayer-spacer"></span><theoplayer-ad-skip-button></theoplayer-ad-skip-button></theoplayer-control-bar><theoplayer-control-bar><theoplayer-play-button part="play-button" mobile-hidden ad-only class="theoplayer-ad-control"></theoplayer-play-button><theoplayer-mute-button part="mute-button" ad-only class="theoplayer-ad-control"></theoplayer-mute-button><theoplayer-time-range part="time-range" show-ad-markers tv-focus .inert="','" class="theoplayer-ad-control" style="','"></theoplayer-time-range><theoplayer-chromecast-button tv-hidden ad-only class="theoplayer-ad-control"></theoplayer-chromecast-button><theoplayer-fullscreen-button ad-only class="theoplayer-ad-control"></theoplayer-fullscreen-button></theoplayer-control-bar><theoplayer-control-bar ad-hidden><theoplayer-play-button part="play-button" mobile-hidden></theoplayer-play-button><theoplayer-mute-button part="mute-button" tv-hidden></theoplayer-mute-button><theoplayer-volume-range part="volume-range" mobile-hidden tv-hidden></theoplayer-volume-range><theoplayer-live-button part="live-button" live-only ad-hidden></theoplayer-live-button><theoplayer-time-display show-duration remaining-when-live></theoplayer-time-display><span class="theoplayer-spacer" style="pointer-events:auto"></span><theoplayer-language-menu-button menu="language-menu" mobile-hidden ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button tv-hidden mobile-hidden ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button tv-hidden mobile-hidden ad-hidden></theoplayer-chromecast-button><slot name="bottom-control-bar"></slot><theoplayer-vr-button tv-hidden ad-hidden></theoplayer-vr-button><theoplayer-settings-menu-button menu="settings-menu" mobile-hidden ad-hidden></theoplayer-settings-menu-button><theoplayer-fullscreen-button part="fullscreen-button" tv-hidden></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-language-menu id="language-menu" slot="menu" hidden></theoplayer-language-menu><theoplayer-settings-menu id="settings-menu" slot="menu" hidden></theoplayer-settings-menu><slot name="error" slot="error"><theoplayer-error-display></theoplayer-error-display></slot><slot name="menu" slot="menu"></slot>']);return b1=function(){return e},e}function b2(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-family:Helvetica,Arial,sans-serif;position:relative;width:100%}:host([hidden]){display:none!important}theoplayer-ui{--theoplayer-loading-delay:0.1s;display:block;font-family:Helvetica,Arial,sans-serif;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}theoplayer-menu::part(heading){display:none!important}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *{--theoplayer-control-height:48px}[part=middle-chrome]{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;justify-content:flex-end;pointer-events:none}[part=bottom-chrome],[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;position:relative}[part=bottom-chrome]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:rgba(0,0,0,.5)}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:12px;--theoplayer-range-track-pointer-background:hsla(0,0%,100%,.5)}:host(:not([mobile])) [mobile-only],:host([mobile]) [mobile-hidden]{display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([has-first-play]) [part=centered-chrome] :not(theoplayer-play-button),theoplayer-ui:not([has-first-play]) theoplayer-control-bar,theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui[playing-ad] [ad-hidden]{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part=centered-chrome] theoplayer-play-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:70px;overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display{padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}p{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:20px;font-size:var(--theoplayer-text-font-size,20px)}theolive-bad-network-button{display:none;display:var(--theolive-bad-network-button-display,none)}theoplayer-settings-menu-button{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theolive-quality-button-display,inline-flex)}']);return b2=function(){return e},e}dF=yT("theoplayer-default-ui"),dU=yL(),L={slot:"title",flatten:!0},dq=yS({reflect:!1,attribute:yq.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),dj=yS({reflect:!1,attribute:yq.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),dz=yS({reflect:!0,type:Boolean,attribute:yq.FLUID}),dV=yS({reflect:!0,type:String,attribute:yq.LANG}),dH=yS({reflect:!0,type:Boolean,attribute:yq.MUTED}),dG=yS({reflect:!0,type:Boolean,attribute:yq.AUTOPLAY}),dQ=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),dW=yS({reflect:!0,type:Number,attribute:yq.USER_IDLE_TIMEOUT,useDefault:!0}),dK=yS({reflect:!0,type:String,attribute:yq.DEVICE_TYPE}),dZ=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.MOBILE}),dY=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.TV}),dJ=yS({reflect:!0,type:Number,attribute:yq.DVR_THRESHOLD,useDefault:!0}),dX=yL(),e.DefaultUI=void 0,new(dD=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[bX],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),t.READY_EVENT=bV,d$(),t}return i(t,e),t}(l),dS=yN("____private__timeRangeInert_1"),dL=yN("____private_titleSlotNodes_2"),dC=yN("____private_fluid_3"),dP=yN("____private_muted_4"),dR=yN("____private_autoplay_5"),dO=yN("____private_streamType_6"),dM=yN("____private_mobile_7"),dB=yN("____private_tv_8"),dN=yN("____private__hasTitle_9"),dI=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this)||this,dS,{writable:!0,value:void 0}),Object.defineProperty(r,dL,{writable:!0,value:void 0}),Object.defineProperty(r,dC,{writable:!0,value:void 0}),Object.defineProperty(r,dP,{writable:!0,value:void 0}),Object.defineProperty(r,dR,{writable:!0,value:void 0}),Object.defineProperty(r,dO,{writable:!0,value:void 0}),Object.defineProperty(r,dM,{writable:!0,value:void 0}),Object.defineProperty(r,dB,{writable:!0,value:void 0}),Object.defineProperty(r,dN,{writable:!0,value:void 0}),d9(r),r._uiRef=fe(),yM(r,dS)[dS]=d0(r,!1),r._timeRangeInertTimeout=0,r._appliedExtensions=!1,r._configuration={},r._source=void 0,r._language="",r._userIdleTimeout=void 0,r._deviceType="desktop",r._dvrThreshold=60,yM(r,dL)[dL]=d1(r),yM(r,dC)[dC]=d2(r,!1),yM(r,dP)[dP]=d5(r,!1),yM(r,dR)[dR]=d3(r,!1),yM(r,dO)[dO]=d4(r,"vod"),yM(r,dM)[dM]=d8(r,!1),yM(r,dB)[dB]=d7(r,!1),yM(r,dN)[dN]=d6(r,!1),r._updateStreamType=function(){r._uiRef.value&&(r.streamType=r._uiRef.value.streamType)},r._updateUserIdle=function(){clearTimeout(r._timeRangeInertTimeout),r.userIdle?r._timeRangeInert=!0:r._timeRangeInertTimeout=setTimeout(function(){r._timeRangeInert=!1},50),r.dispatchEvent(vt(bz))},r._onTitleSlotChange=function(){r._hasTitle=r.titleSlotNodes.length>0},r.configuration=t,r}i(t,e);var n=t.prototype;return n.connectedCallback=function(){if(e.prototype.connectedCallback.call(this),this.hasAttribute(yq.LANG)||(this.lang=null!=(t=null==(r=fC(this,"[lang]"))?void 0:r.lang)?t:""),this.hasAttribute(yq.DEVICE_TYPE)||(this.deviceType=bq()?"mobile":bj()?"tv":"desktop"),!this._appliedExtensions){this._appliedExtensions=!0;for(var t,r,n,i=fd(bD);!(n=i()).done;)(0,n.value)(this)}this._onTitleSlotChange()},n.disconnectedCallback=function(){clearTimeout(this._timeRangeInertTimeout)},n.firstUpdated=function(){this._source&&(this._uiRef.value.source=this._source,this._source=void 0)},n._onUiReady=function(){this.dispatchEvent(vt(bV))},n.render=function(){return yn(b0(),fn(this._uiRef),this.configuration,this.lang,this.fluid,this.muted,this.autoplay,this.deviceType,this.streamType,this.userIdleTimeout,this.dvrThreshold,this._onUiReady,this._updateUserIdle,this._updateStreamType,this.renderUiContent())},n.renderUiContent=function(){return yn(b1(),g_({display:this._hasTitle?"":"none"}),this._onTitleSlotChange,this._timeRangeInert,g_({display:"live"===this.streamType?"none":""}))},v(t,[{key:"_timeRangeInert",get:function(){return yM(this,dS)[dS]},set:function(e){yM(this,dS)[dS]=e}},{key:"titleSlotNodes",get:function(){return yM(this,dL)[dL]},set:function(e){yM(this,dL)[dL]=e}},{key:"player",get:function(){var e;return null==(e=this._uiRef.value)?void 0:e.player}},{key:"configuration",get:function(){return this._configuration},set:function(e){var t;this._configuration=r({},e,{ads:r({},null!=(t=e.ads)?t:{},{showCountdown:!1})})}},{key:"source",get:function(){return this._uiRef.value?this._uiRef.value.source:this._source},set:function(e){this._uiRef.value?(this._source=void 0,this._uiRef.value.source=e):this._source=e}},{key:"fluid",get:function(){return yM(this,dC)[dC]},set:function(e){yM(this,dC)[dC]=e}},{key:"lang",get:function(){var e,t;return null!=(e=null==(t=this._uiRef.value)?void 0:t.lang)?e:this._language},set:function(e){this._language=null!=e?e:"",this._uiRef.value&&(this._uiRef.value.lang=this._language)}},{key:"muted",get:function(){return yM(this,dP)[dP]},set:function(e){yM(this,dP)[dP]=e}},{key:"autoplay",get:function(){return yM(this,dR)[dR]},set:function(e){yM(this,dR)[dR]=e}},{key:"streamType",get:function(){return yM(this,dO)[dO]},set:function(e){yM(this,dO)[dO]=e}},{key:"userIdle",get:function(){return!!this._uiRef.value&&this._uiRef.value.userIdle}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){this._deviceType!==e&&(this._deviceType=e,this.mobile="mobile"===e,this.tv="tv"===e)}},{key:"mobile",get:function(){return yM(this,dM)[dM]},set:function(e){yM(this,dM)[dM]=e}},{key:"tv",get:function(){return yM(this,dB)[dB]},set:function(e){yM(this,dB)[dB]=e}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e}},{key:"_hasTitle",get:function(){return yM(this,dN)[dN]},set:function(e){yM(this,dN)[dN]=e}}]),t}(yw),d0=(pt=(pe=o(dI,[[dU,1,"_timeRangeInert"],[function(e,t){var r=(null!=L?L:{}).slot,n="slot"+(r?"[name="+r+"]":":not([name])");return yC(e,t,{get:function(){var e,t,r=null==(t=this.renderRoot)?void 0:t.querySelector(n);return null!=(e=null==r?void 0:r.assignedNodes(L))?e:[]}})},1,"titleSlotNodes"],[dq,4,"configuration"],[dj,4,"source"],[dz,1,"fluid"],[dV,4,"lang"],[dH,1,"muted"],[dG,1,"autoplay"],[dQ,1,"streamType"],[dW,4,"userIdleTimeout"],[dK,4,"deviceType"],[dZ,1,"mobile"],[dY,1,"tv"],[dJ,4,"dvrThreshold"],[dX,1,"_hasTitle"]],[dF],yw)).e)[0],d1=pt[1],d2=pt[2],d5=pt[3],d3=pt[4],d4=pt[5],d8=pt[6],d7=pt[7],d6=pt[8],d9=pt[9],e.DefaultUI=(pr=pe.c)[0],d$=pr[1],dD);var b5=pC(b2());function b3(){var e=a(['<p id="loading-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="loading-announcement">','</slot></p><p id="offline-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="offline-announcement">','</slot></p><p id="announcement" no-auto-hide slot="centered-chrome" style="','">','</p><theoplayer-loading-indicator slot="centered-loading" no-auto-hide part="loading-indicator"></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><theoplayer-play-button part="center-play-button play-button center-button" style="','"></theoplayer-play-button></div><div part="bottom-chrome"><theoplayer-control-bar><theoplayer-play-button mobile-hidden part="play-button" style="','"></theoplayer-play-button><theoplayer-mute-button part="mute-button"></theoplayer-mute-button><theoplayer-volume-range mobile-hidden part="volume-range"></theoplayer-volume-range><theoplayer-live-button ad-hidden live-only part="live-button"></theoplayer-live-button><span class="theoplayer-spacer"></span><theoplayer-settings-menu-button ad-hidden menu="all-quality-menu" part="quality-button"></theoplayer-settings-menu-button><theolive-bad-network-button ad-hidden menu="quality-menu" part="theolive-bad-network-button"></theolive-bad-network-button><theoplayer-fullscreen-button part="fullscreen-button"></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-menu id="quality-menu" slot="menu" menu-close-on-input hidden><theolive-bad-network-menu></theolive-bad-network-menu></theoplayer-menu><theoplayer-menu id="all-quality-menu" slot="menu" menu-close-on-input hidden><theoplayer-quality-radio-group></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-error-display slot="error" part="error-display" style="','"></theoplayer-error-display>']);return b3=function(){return e},e}pu=yT("theolive-default-ui"),pd=yL(),pp=yL(),py=yL(),pf=yL(),e.THEOliveDefaultUI=void 0,new(ps=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[b5],pc(),t}return i(t,e),t}(l),pn=yN("____private__announcementType_1"),pi=yN("____private__announcementMessage_2"),pa=yN("____private__hidePlayButton_3"),po=yN("____private__hideErrorDisplay_4"),pl=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this,t)||this,pn,{writable:!0,value:void 0}),Object.defineProperty(r,pi,{writable:!0,value:void 0}),Object.defineProperty(r,pa,{writable:!0,value:void 0}),Object.defineProperty(r,po,{writable:!0,value:void 0}),yM(r,pn)[pn]=(pm(r),pv(r,"")),yM(r,pi)[pi]=p_(r,""),yM(r,pa)[pa]=pg(r,!1),yM(r,po)[po]=pb(r,!1),r.onLoadChannelStart=function(){r.showMessage_("loading",void 0)},r.onChannelOffline=function(){r.showMessage_("offline",void 0)},r.onChannelLoaded=function(){r.hidePlayerError(),r.hideMessage_()},r.onError=function(e){var t=e.errorObject.code;t<13e3||t>=14e3?r.showMessage_("offline",void 0):(r.stopHidingPlayerError(),r.hideMessage_())},r}i(t,e);var r=t.prototype;return r._onUiReady=function(){e.prototype._onUiReady.call(this);var t,r,n,i=this.player;i&&(null==(t=i.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this.onLoadChannelStart),null==(r=i.theoLive)||r.addEventListener(["distributionoffline","publicationoffline"],this.onChannelOffline),null==(n=i.theoLive)||n.addEventListener(["endpointloaded","publicationloaded"],this.onChannelLoaded),i.addEventListener("error",this.onError))},r.hidePlayerError=function(){var e;null==(e=this._uiRef.value)||e.removeAttribute(yq.HAS_ERROR),this._hideErrorDisplay=!0},r.stopHidingPlayerError=function(){var e;null==(e=this._uiRef.value)||e.setAttribute(yq.HAS_ERROR,""),this._hideErrorDisplay=!1},r.showMessage_=function(e,t){this.hidePlayerError(),this._announcementType=e,this._announcementMessage=null!=t?t:"",this._hidePlayButton=!0},r.hideMessage_=function(){this._announcementType="",this._announcementMessage="",this._hidePlayButton=!1},r.renderUiContent=function(){var e=fV(this.lang),t={display:"loading"===this._announcementType?"":"none"},r={display:"offline"===this._announcementType?"":"none"},n={display:"announcement"===this._announcementType?"":"none"},i={display:this._hidePlayButton?"none":""},a={display:this._hideErrorDisplay?"none":""};return yn(b3(),g_(t),e.liveStreamLoading,g_(r),e.liveStreamOffline,g_(n),this._announcementMessage,g_(i),g_(i),g_(a))},v(t,[{key:"_announcementType",get:function(){return yM(this,pn)[pn]},set:function(e){yM(this,pn)[pn]=e}},{key:"_announcementMessage",get:function(){return yM(this,pi)[pi]},set:function(e){yM(this,pi)[pi]=e}},{key:"_hidePlayButton",get:function(){return yM(this,pa)[pa]},set:function(e){yM(this,pa)[pa]=e}},{key:"_hideErrorDisplay",get:function(){return yM(this,po)[po]},set:function(e){yM(this,po)[po]=e}}]),t}(ph=e.DefaultUI),pv=(pw=(pk=o(pl,[[pd,1,"_announcementType"],[pp,1,"_announcementMessage"],[py,1,"_hidePlayButton"],[pf,1,"_hideErrorDisplay"]],[pu],ph)).e)[0],p_=pw[1],pg=pw[2],pb=pw[3],pm=pw[4],e.THEOliveDefaultUI=(px=pk.c)[0],pc=px[1],ps),e.Attribute=yq,e.CastButton=gW,e.ColorStops=gE,e.ExtensionSlot=bI,e.StateReceiverMixin=function(e,t){var r,n,a=fO(t),l=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(e);return r=(n=o(l,[],[a],e).c)[0],(0,n[1])(),r},e.addLocale=function(e,t){var n,i,a,o,l;fz[e]=r({},fj,t,{fontFamilyLabels:r({},fj.fontFamilyLabels,t.fontFamilyLabels),colorLabels:r({},fj.colorLabels,t.colorLabels),edgeStyleLabels:r({},fj.edgeStyleLabels,t.edgeStyleLabels),formatDuration:null!=(n=t.formatDuration)?n:fB(e,"long"),formatNarrowDuration:null!=(i=t.formatNarrowDuration)?i:fB(e,"narrow"),formatPercentage:null!=(a=t.formatPercentage)?a:fD(e),formatBandwidth:null!=(o=t.formatBandwidth)?o:f$(e),formatLanguage:null!=(l=t.formatLanguage)?l:fq(e)})},e.buttonTemplate=yW,e.linkButtonTemplate=function(e,t){return void 0===t&&(t=""),yW("<a>"+e+"</a>",t)},e.menuGroupTemplate=function(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e},e.menuTemplate=function(e,t,r){return void 0===r&&(r=""),"<style>"+r+'</style><div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>'+e+'</div><div part="content">'+t+"</div>"},e.registerExtension=function(e){bD.push(e)},e.stateReceiver=fO,e.version="2.3.0"},"object"==typeof exports&&"u">typeof module?t(exports,require("theoplayer/chromeless")):"function"==typeof define&&define.amd?define(["exports","theoplayer/chromeless"],t):t((e="u">typeof globalThis?globalThis:e||self).THEOplayerUI={},e.THEOplayer);
|