@theoplayer/web-ui 2.1.1 → 2.1.3

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.
@@ -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 m=function(e){return t in e};p.access=h&&d?{has:m,get:h,set:d}:h?{has:m,get:h}:{has:m,set:d}}var _=e(u,p);return y.v=!0,_}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],m=y.length>3,_=f>=5;if(_?(d=e,f-=5,p=h=h||[]):(d=e.prototype,p=c=c||[]),0!==f&&!m){var b=_?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,m=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 m)void 0!==(y=a(m,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;_>=0;_--)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 m(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 _(e,t){if(e){if("string"==typeof e)return m(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 m(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)||_(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 m(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(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,em,e_,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,tm,t_,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,rm,r_,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,nm,n_,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,im,i_,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,am,a_,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,om,o_,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,lm,l_,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,sm,s_,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,um,u_,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,cm,c_,cb,cg,ck,cw,cx,cE,cT,cA,cC,cL,cS,cR,cP,cO=self,cM=cO.ShadowRoot&&(void 0===cO.ShadyCSS||cO.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cB=Symbol(),cI=new WeakMap,cN=function(){function e(t,r,n){if(y(this,e),this._$cssResult$=!0,n!==cB)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(cM&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=cI.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&cI.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}]),e}(),c$=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 cN(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,cB)},cD=function(e,t){var r=!0,n=!1,i=void 0;if(cM)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=cO.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}}},cq=cM?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 cN("string"==typeof(t=r)?t:t+"",void 0,cB)}(e):e},cF=Object.is,cU=Object.defineProperty,cj=Object.getOwnPropertyDescriptor,cz=Object.getOwnPropertyNames,cV=Object.getOwnPropertySymbols,cH=Object.getPrototypeOf,cG=self,cQ=cG.trustedTypes,cW=cQ?cQ.emptyScript:"",cK=cG.reactiveElementPolyfillSupport,cZ=function(e,t){return e},cY={toAttribute:function(e,t){switch(t){case Boolean:e=e?cW: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}},cJ=function(e,t){return!cF(e,t)},cX={attribute:!0,type:String,converter:cY,reflect:!1,useDefault:!1,hasChanged:cJ};null!=(S=Symbol).metadata||(S.metadata=Symbol("metadata")),null!=cG.litPropertyMetadata||(cG.litPropertyMetadata=new WeakMap);var c0=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 cD(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:cY).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:cY;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:cJ)(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],m=f[1],_=m.wrapped,g=this[v];!0!==_||this._$AL.has(v)||void 0===g||this.C(v,void 0,m,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=cX),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&&cU(this.prototype,e,n)}}},{key:"getPropertyDescriptor",value:function(e,t,r){var n,i=null!=(n=cj(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:cX}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(cZ("elementProperties"))){var e=cH(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(cZ("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(cZ("properties"))){var e=this.properties,t=g(cz(e)).concat(g(cV(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],m=f[1];this.elementProperties.set(v,m)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}this._$Eh=new Map;var _=!0,k=!1,w=void 0;try{for(var x,E=this.elementProperties[Symbol.iterator]();!(_=(x=E.next()).done);_=!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{_||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(cq(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(cq(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));c0.elementStyles=[],c0.shadowRootOptions={mode:"open"},c0[cZ("elementProperties")]=new Map,c0[cZ("finalized")]=new Map,null==cK||cK({ReactiveElement:c0}),(null!=(R=cG.reactiveElementVersions)?R:cG.reactiveElementVersions=[]).push("2.1.2");var c1=self,c2=function(e){return e},c5=c1.trustedTypes,c3=c5?c5.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,c4="$lit$",c8="lit$"+Math.random().toFixed(9).slice(2)+"$",c7="?"+c8,c6="<"+c7+">",c9=document,he=function(){return c9.createComment("")},ht=function(e){return null===e||"object"!=(void 0===e?"undefined":d(e))&&"function"!=typeof e},hr=Array.isArray,hn="[ \n\f\r]",hi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ha=/-->/g,ho=/>/g,hl=RegExp(">|"+hn+"(?:([^\\s\"'>=/]+)("+hn+"*="+hn+"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),hs=/'/g,hu=/"/g,hc=/^(?:script|style|textarea|title)$/i,hh=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}},hd=Symbol.for("lit-noChange"),hp=Symbol.for("lit-nothing"),hy=new WeakMap,hf=c9.createTreeWalker(c9,129,null,!1);function hv(e,t){if(!hr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==c3?c3.createHTML(t):t}var hm=function(e,t){for(var r,n=e.length-1,i=[],a=2===t?"<svg>":3===t?"<math>":"",o=hi,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===hi?"!--"===c[1]?o=ha:void 0!==c[1]?o=ho:void 0!==c[2]?(hc.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=hl):void 0!==c[3]&&(o=hl):o===hl?">"===c[0]?(o=null!=r?r:hi,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?hl:'"'===c[3]?hu:hs):o===hu||o===hs?o=hl:o===ha||o===ho?o=hi:(o=hl,r=void 0);var p=o===hl&&e[l+1].startsWith("/>")?" ":"";a+=o===hi?s+c6:h>=0?(i.push(u),s.slice(0,h)+c4+s.slice(h)+c8+p):s+c8+(-2===h?l:p)}return[hv(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]},h_=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(hm(n,i),2),c=u[0],h=u[1];if(this.el=e.createElement(c,r),hf.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=hf.nextNode())&&s.length<l;){if(1===d.nodeType){var f=!0,v=!1,m=void 0;if(d.hasAttributes())try{for(var _,k=d.getAttributeNames()[Symbol.iterator]();!(f=(_=k.next()).done);f=!0){var w=_.value;if(w.endsWith(c4)){var x=h[o++],E=d.getAttribute(w).split(c8),T=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:T[2],strings:E,ctor:"."===T[1]?hx:"?"===T[1]?hE:"@"===T[1]?hT:hw}),d.removeAttribute(w)}else w.startsWith(c8)&&(s.push({type:6,index:a}),d.removeAttribute(w))}}catch(e){v=!0,m=e}finally{try{f||null==k.return||k.return()}finally{if(v)throw m}}if(hc.test(d.tagName)){var A=d.textContent.split(c8),C=A.length-1;if(C>0){d.textContent=c5?c5.emptyScript:"";for(var L=0;L<C;L++)d.append(A[L],he()),hf.nextNode(),s.push({type:2,index:++a});d.append(A[C],he())}}}else if(8===d.nodeType)if(d.data===c7)s.push({type:2,index:a});else for(var S=-1;-1!==(S=d.data.indexOf(c8,S+1));)s.push({type:7,index:a}),S+=c8.length-1;a++}}return v(e,null,[{key:"createElement",value:function(e,t){var r=c9.createElement("template");return r.innerHTML=e,r}}]),e}();function hb(e,t,r,n){if(void 0===r&&(r=e),t===hd)return t;var i,a,o,l,s=void 0!==n?null==(o=r._$Co)?void 0:o[n]:r._$Cl,u=ht(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=hb(e,s._$AS(e,t.values),s,n)),t}var hg=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:c9).importNode(n,!0);hf.currentNode=a;for(var o=hf.nextNode(),l=0,s=0,u=i[0];void 0!==u;){if(l===u.index){var c=void 0;2===u.type?c=new hk(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new hA(o,this,e)),this._$AV.push(c),u=i[++s]}l!==(null==u?void 0:u.index)&&(o=hf.nextNode(),l++)}return hf.currentNode=c9,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}(),hk=function(){function e(t,r,n,i){var a;y(this,e),this.type=2,this._$AH=hp,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),ht(e=hb(this,e,t))?e===hp||null==e||""===e?(this._$AH!==hp&&this._$AR(),this._$AH=hp):e!==this._$AH&&e!==hd&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):hr(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!==hp&&ht(this._$AH)?this._$AA.nextSibling.data=e:this.T(c9.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=h_.createElement(hv(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 hg(i,this),o=a.u(this.options);a.p(r),this.T(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=hy.get(e.strings);return void 0===t&&hy.set(e.strings,t=new h_(e)),t}},{key:"k",value:function(t){hr(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(he()),this.O(he()),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=c2(e).nextSibling;c2(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}(),hw=function(){function e(t,r,n,i,a){y(this,e),this.type=1,this._$AH=hp,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=hp}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=!ht(e=hb(this,e,t,0))||e!==this._$AH&&e!==hd)&&(this._$AH=e);else{var o,l,s=e;for(e=i[0],o=0;o<i.length-1;o++)(l=hb(this,s[r+o],t,o))===hd&&(l=this._$AH[o]),a||(a=!ht(l)||l!==this._$AH[o]),l===hp?e=hp:e!==hp&&(e+=(null!=l?l:"")+i[o+1]),this._$AH[o]=l}a&&!n&&this.j(e)}},{key:"j",value:function(e){e===hp?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),hx=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===hp?void 0:e}}]),t}(hw),hE=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!==hp)}}]),t}(hw),hT=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=hb(this,e,t,0))?r:hp)!==hd){var r,n=this._$AH,i=e===hp&&n!==hp||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==hp&&(n===hp||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}(hw),hA=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){hb(this,e)}}]),e}(),hC=c1.litHtmlPolyfillSupport;null==hC||hC(h_,hk),(null!=(P=c1.litHtmlVersions)?P:c1.litHtmlVersions=[]).push("3.3.2");var hL=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 hk(t.insertBefore(he(),l),l,void 0,null!=r?r:{})}return i._$AI(e),i},hS=globalThis,hR=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=hL(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 hd}}]),t}(c0);hR._$litElement$=!0,hR.finalized=!0,null==(M=hS.litElementHydrateSupport)||M.call(hS,{LitElement:hR});var hP=hS.litElementPolyfillSupport;null==hP||hP({LitElement:hR}),(null!=(O=hS.litElementVersions)?O:hS.litElementVersions=[]).push("4.2.2");var hO=function(e){return function(t,r){void 0!==r?r.addInitializer(function(){customElements.define(e,t)}):customElements.define(e,t)}},hM={attribute:!0,type:String,converter:cY,reflect:!1,hasChanged:cJ},hB=function(e,t,r){void 0===e&&(e=hM);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 hI(e){return function(t,r){var n;return"object"==(void 0===r?"undefined":d(r))?hB(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function hN(e){var t,r;return hI((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 h$=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 hD(){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 hD=function(){return e},e}var hq=c$(hD());function hF(){var e=a(["<slot></slot>"]);return hF=function(){return e},e}N=hO("theoplayer-control-bar"),e.ControlBar=void 0,new(I=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[hq],t.shadowRootOptions=r({},hR.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 hh(hF())},t}(hR),e.ControlBar=(D=o(B,[],[N],hR).c)[0],$=D[1],I);var hU=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}}},hj=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}(),hz=hU(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?hd:(this.vt=e,document.importNode(e.content,!0))}}]),t}(hj));function hV(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;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 hV=function(){return e},e}var hH=c$(hV()),hG=((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),hQ=((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 hW(e){return 37<=e&&e<=40}function hK(e){return 10009===e||27===e||88===e||461===e}function hZ(e){return 13===e||32===e}function hY(){var e=a(["",""]);return hY=function(){return e},e}function hJ(){var e=a(["<slot></slot>"]);return hJ=function(){return e},e}function hX(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function h0(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}U=hO("theoplayer-button"),z=hI({reflect:!0,type:Boolean,attribute:hG.DISABLED}),e.Button=void 0,new(F=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[hH],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){!hZ(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),hZ(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(hG.ARIA_LIVE)||this.setAttribute(hG.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?hh(hY(),hz(this._template)):hh(hJ())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}}]),t}(hR),V=(H=o(q,[[z,4,"disabled"]],[U],hR)).e[0],e.Button=(G=H.c)[0],j=G[1],F);var h1=0;function h2(e){return"__private_"+h1+++"_"+e}function h5(){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 h5=function(){return e},e}var h3=c$(h5()),h4=function(e){return e},h8=function(){return document.createComment("")},h7=function(e,t,r){var n=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new hk(n.insertBefore(h8(),i),n.insertBefore(h8(),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=h4(c).nextSibling;h4(n).insertBefore(c,i),c=h}}return r},h6=function(e,t,r){return void 0===r&&(r=e),e._$AI(t,r),e},h9={},de=function(e){e._$AR(),e._$AA.remove()},dt=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),dt(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0},dr=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))},dn=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),dl(t)}};function di(e){void 0!==this._$AN?(dr(this),this._$AM=e,dn(this)):this._$AM=e}function da(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++)dt(n[a],!1),dr(n[a]);else null!=n&&(dt(n,!1),dr(n));else dt(this,e)}var dl=function(e){2==e.type&&(null!=e._$AP||(e._$AP=da),null!=e._$AQ||(e._$AQ=di))},ds=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),dn(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&&(dt(this,e),dr(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}(hj),du=function(){return new dc},dc=function e(){y(this,e)},dh=new WeakMap,dd=hU(function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),v(t,[{key:"render",value:function(e){return hp}},{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)),hp}},{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=dh.get(r);void 0===n&&(n=new WeakMap,dh.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=dh.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}(ds));function dp(){var e=a(["",""]);return dp=function(){return e},e}function dy(){var e=a(["<a ",' href="','" target="','" @keydown="','" @click="','">',"</a>"]);return dy=function(){return e},e}function df(){var e=a(["<slot></slot>"]);return df=function(){return e},e}Y=hO("theoplayer-link-button"),X=hI({reflect:!0,type:Boolean,attribute:hG.DISABLED}),ee=hN(),et=hN(),e.LinkButton=void 0,new(Z=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[h3],J(),t}return i(t,e),t}(l),Q=h2("____private_href_1"),W=h2("____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=du(),h0(r,Q)[Q]=er(r,""),h0(r,W)[W]=en(r,""),r._onKeyDown=function(e){if(!e.metaKey&&!e.altKey)if(e.keyCode!==hQ.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(hG.ARIA_LIVE)||this.setAttribute(hG.ARIA_LIVE,"polite"),this.hasAttribute(hG.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?hh(dp(),hz(this._template)):hh(dy(),dd(this._linkRef),this.href,this.target,this._onKeyDown,this._onClick,this.renderLinkContent())},r.renderLinkContent=function(){return hh(df())},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 h0(this,Q)[Q]},set:function(e){h0(this,Q)[Q]=e}},{key:"target",get:function(){return h0(this,W)[W]},set:function(e){h0(this,W)[W]=e}}]),t}(hR),er=(eo=(ea=o(K,[[X,4,"disabled"],[ee,1,"href"],[et,1,"target"]],[Y],hR)).e)[0],en=eo[1],ei=eo[2],e.LinkButton=(el=ea.c)[0],J=el[1],Z);var dv=function(e){function t(e){var r;if(y(this,t),(r=p(this,t,[e])).it=hp,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===hp||null==e)return this._t=void 0,this.it=e;if(e===hd)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}(hj);dv.directiveName="unsafeHTML",dv.resultType=1;var dm=function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),t}(dv);dm.directiveName="unsafeSVG",dm.resultType=2;var d_=hU(dm);function db(){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 db=function(){return e},e}var dg=c$(db());function dk(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=_(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 dw(){var e=a([":host{display:contents}::slotted(:not([no-auto-hide])),slot{opacity:inherit}"]);return dw=function(){return e},e}var dx=c$(dw());function dE(){var e=a(["<slot></slot>"]);return dE=function(){return e},e}function dT(){}function dA(e){return e.nodeType===Node.ELEMENT_NODE}function dC(e){return E(e,HTMLElement)}ec=hO("theoplayer-slot-container"),e.SlotContainer=void 0,new(eu=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dx],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 hh(dE())},t}(hR),e.SlotContainer=(ed=o(es,[],[ec],hR).c)[0],eh=ed[1],eu);var dL="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},dS="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){return Array.prototype.slice.call(e)},dR="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]},dP="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},dO="function"==typeof String.prototype.startsWith?function(e,t){return e.startsWith(t)}:function(e,t){return e.substring(0,t.length)===t},dM="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 dB(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function dI(e){if(e.shadowRoot)return e.shadowRoot.children;if("slot"===e.localName.toLowerCase()){var t=e.assignedNodes();if(t.length>0)return t.filter(dA)}return dC(e)?e.children:[]}function dN(e){for(var t,r=[],n=dk(e.assignedNodes({flatten:!0}));!(t=n()).done;){var i=t.value;dA(i)&&(r.push(i),"theoplayer-slot-container"===i.nodeName.toLowerCase())&&r.push.apply(r,[].concat(dS(i.children)))}return r}function d$(e){var t=[];return function e(t,r){if(dC(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=dI(t),i=0;i<n.length;i++)e(n[i],r)}}}(e,t),t}function dD(e){var t=e.nodeName.toLowerCase();if(t.indexOf("-")>=0)if(!customElements.get(t))return customElements.whenDefined(t);else customElements.upgrade(e)}var dq="theoplayerUiObservedProperties";function dF(e){return dq in e&&dL(e[dq])}var dU=function(e){return function(t,r){Object.defineProperty(t.prototype,dq,{value:e})}};function dj(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&&!dF(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(dF(e)&&r(e),!((n=dI(e)).length>0))return[3,5];return[4,Promise.all(dS(n).map(function(e){return dj(e,t,r)}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function dz(){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 dz=function(){return e},e}var dV=["seeking","seeked","ended","emptied","sourcechange"];function dH(){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 dH=function(){return e},e}em=hO("theoplayer-play-button"),e_=dU(["player"]),ek=hI({reflect:!0,state:!0,type:Boolean,attribute:hG.PAUSED}),ew=hI({reflect:!0,state:!0,type:Boolean,attribute:hG.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,[dg]),eb(),r}return i(r,t),r}(l),ep=h2("____private_paused_1"),ey=h2("____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}),h0(e,ep)[ep]=(eT(e),ex(e,!1)),h0(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(hG.ARIA_LABEL,e)},n.render=function(){return hh(dz(),d_('<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'),d_('<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'),d_('<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 h0(this,ep)[ep]},set:function(e){h0(this,ep)[ep]=e}},{key:"ended",get:function(){return h0(this,ey)[ey]},set:function(e){h0(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(dV,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(dV,this._updateFromPlayer)))}}]),r}(eg=e.Button),ex=(eC=(eA=o(ef,[[ek,1,"paused"],[ew,1,"ended"]],[em,e_],eg)).e)[0],eE=eC[1],eT=eC[2],e.PlayButton=(eL=eA.c)[0],eb=eL[1],ev);var dG=c$(dH());function dQ(){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 dQ=function(){return e},e}var dW=["volumechange"];function dK(){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 dK=function(){return e},e}eO=hO("theoplayer-mute-button"),eM=dU(["player"]),eN=hI({reflect:!0,state:!0,type:String,attribute:hG.VOLUME_LEVEL}),e$=hI({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,[dG]),eB(),r}return i(r,t),r}(l),eS=h2("____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}),h0(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(hG.ARIA_LABEL,e)},n.render=function(){return hh(dQ(),d_('<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'),d_('<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'),d_('<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 h0(this,eS)[eS]},set:function(e){h0(this,eS)[eS]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(dW,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(dW,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 dZ=c$(dK());function dY(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><span part="offset">',"</span>"]);return dY=function(){return e},e}function dJ(){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 dJ=function(){return e},e}eG=hO("theoplayer-seek-button"),eQ=dU(["player"]),eZ=hI({reflect:!0,type:Number,attribute:hG.SEEK_OFFSET}),eY=hI({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,[dZ]),eW(),r}return i(r,t),r}(l),ez=h2("____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}),h0(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(hG.ARIA_LABEL,e>=0?"seek forward by "+e+" seconds":"seek backward by "+-e+" seconds")},n.render=function(){return hh(dY(),d_('<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 h0(this,ez)[ez]},set:function(e){h0(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 dX=c$(dJ());function d0(e){return!isNaN(e)&&isFinite(e)}function d1(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(d0(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 d2=[["hour","hours"],["minute","minutes"],["second","seconds"]];function d5(e,t){var r=d2[t][+(1!==e)];return e+" "+r}function d3(e,t){if(!d0(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?"":d5(a,0),0===i?"":d5(i,1),0===n&&(a>0||i>0)?"":d5(n,2)].filter(function(e){return""!==e}).join(", ")+(r?" remaining":"")}function d4(){var e=a(["<span>","</span>"]);return d4=function(){return e},e}var d8=["timeupdate","seeking","seeked","durationchange"];function d7(){var e=a(["<span>","</span>"]);return d7=function(){return e},e}tr=hO("theoplayer-time-display"),tn=dU(["player","streamType"]),ta=hI({reflect:!1,attribute:!1}),to=hI({reflect:!0,type:Boolean,attribute:hG.REMAINING}),tl=hI({reflect:!0,type:Boolean,attribute:hG.REMAINING_WHEN_LIVE}),ts=hI({reflect:!0,type:Boolean,attribute:hG.SHOW_DURATION}),tu=hI({reflect:!0,type:String,attribute:hG.STREAM_TYPE}),tc=hN(),th=hN(),td=hN(),e.TimeDisplay=void 0,new(tt=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dX],ti(),t}return i(t,e),t}(l),e5=h2("____private_remaining_1"),e3=h2("____private_remainingWhenLive_2"),e4=h2("____private_showDuration_3"),e8=h2("____private_streamType_4"),e7=h2("____private__currentTime_5"),e6=h2("____private__duration_6"),e9=h2("____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}),h0(t,e5)[e5]=(tg(t),tp(t,!1)),h0(t,e3)[e3]=ty(t,!1),h0(t,e4)[e4]=tf(t,!1),h0(t,e8)[e8]=tv(t,"vod"),h0(t,e7)[e7]=tm(t,0),h0(t,e6)[e6]=t_(t,NaN),h0(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(hG.ARIA_LABEL)||this.setAttribute(hG.ARIA_LABEL,"playback time"),this.hasAttribute(hG.ARIA_LIVE)||this.setAttribute(hG.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?d1(n,i,r)+" / "+d1(i):d1(n,i,r),t=isNaN(this._duration)?"video not loaded, unknown time":this.showDuration?d3(n,r)+" of "+d3(i):d3(n,r),this.setAttribute("aria-valuetext",t),hh(d4(),e)},v(t,[{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))}},{key:"remaining",get:function(){return h0(this,e5)[e5]},set:function(e){h0(this,e5)[e5]=e}},{key:"remainingWhenLive",get:function(){return h0(this,e3)[e3]},set:function(e){h0(this,e3)[e3]=e}},{key:"showDuration",get:function(){return h0(this,e4)[e4]},set:function(e){h0(this,e4)[e4]=e}},{key:"streamType",get:function(){return h0(this,e8)[e8]},set:function(e){h0(this,e8)[e8]=e}},{key:"_currentTime",get:function(){return h0(this,e7)[e7]},set:function(e){h0(this,e7)[e7]=e}},{key:"_duration",get:function(){return h0(this,e6)[e6]},set:function(e){h0(this,e6)[e6]=e}},{key:"_endTime",get:function(){return h0(this,e9)[e9]},set:function(e){h0(this,e9)[e9]=e}}]),t}(hR),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],hR)).e)[0],ty=tw[1],tf=tw[2],tv=tw[3],tm=tw[4],t_=tw[5],tb=tw[6],tg=tw[7],e.TimeDisplay=(tx=tk.c)[0],ti=tx[1],tt);var d6=["durationchange"];tC=hO("theoplayer-duration-display"),tL=dU(["player"]),tR=hI({reflect:!1,attribute:!1}),tP=hN(),e.DurationDisplay=void 0,new(tA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dX],tS(),t}return i(t,e),t}(l),tE=h2("____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}),h0(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(hG.ARIA_LIVE)||this.setAttribute(hG.ARIA_LIVE,"off")},r.render=function(){return hh(d7(),d1(this.duration))},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(d6,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(d6,this._updateFromPlayer))}},{key:"duration",get:function(){return h0(this,tE)[tE]},set:function(e){h0(this,tE)[tE]=e}}]),t}(hR),tO=(tI=(tB=o(tT,[[tR,4,"player"],[tP,1,"duration"]],[tC,tL],hR)).e)[0],tM=tI[1],e.DurationDisplay=(tN=tB.c)[0],tS=tN[1],tA);var d9=!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)},pe=!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$=hO("theoplayer-radio-button"),tq=hI({reflect:!0,type:Boolean,attribute:hG.ARIA_CHECKED,converter:{fromAttribute:function(e){return null!=e&&"false"!==e},toAttribute:function(e){return String(e)}}}),tF=hI({attribute:hG.VALUE}),e.RadioButton=void 0;var pt=h2("____private_value_1"),pr=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pt,{writable:!0,value:void 0}),tj(t),t._checked=!1,h0(t,pt)[pt]=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(d9("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(d9("change",{bubbles:!0})))}},{key:"value",get:function(){return h0(this,pt)[pt]},set:function(e){h0(this,pt)[pt]=e}}]),t}(tD=e.Button);tU=(tV=(tz=o(pr,[[tq,4,"checked"],[tF,1,"value"]],[t$],tD)).e)[0],tj=tV[1],e.RadioButton=(tH=tz.c)[0],(0,tH[1])();var pn=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 pi(){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&&dC(e)?e:null}function pa(e,t,r){var n,i,a,o=pi();if(null===o)return!1;var l=pn.fromRect(e.getBoundingClientRect()).snapToPixels(),s=pn.fromRect(o.getBoundingClientRect()).snapToPixels(),u=t.map(function(e){return{child:e,rect:pn.fromRect(e.getBoundingClientRect()).snapToPixels()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(r===hQ.LEFT||r===hQ.RIGHT){var c=s.clone();r===hQ.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===hQ.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 po(){var e=a(["<slot ",' @slotchange="','"></slot>']);return po=function(){return e},e}tG=hO("theoplayer-radio-group"),tQ=dU(["deviceType"]),tW=hI({reflect:!0,type:String,attribute:hG.DEVICE_TYPE}),tK=hI({attribute:hG.VALUE}),e.RadioGroup=void 0;var pl=h2("____private_deviceType_1"),ps=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,pl,{writable:!0,value:void 0}),tY(t),t._slotRef=du(),t._radioButtons=[],t._value=void 0,h0(t,pl)[pl]=tZ(t,"desktop"),t._onSlotChange=function(){var e,r=t._slotRef.value;if(r){for(var n,i=dN(r),a=[],o=dk(i);!(n=o()).done;){var l=n.value;if(!pu(l)){var s=dD(l);s&&a.push(s)}}a.length>0&&Promise.all(a).then(t._onSlotChange,dT),t._radioButtons=i.filter(pu),t.focusedRadioButton||null==(e=t.firstRadioButton)||e.setAttribute("tabindex","0"),t.updateCheckedButton()}},t._onKeyDown=function(e){if("tv"===t.deviceType&&hW(e.keyCode)){pa(t,t._radioButtons,e.keyCode)&&(e.preventDefault(),e.stopPropagation());return}switch(e.keyCode){case hQ.UP:case hQ.LEFT:t._focusPrevButton()&&e.preventDefault();break;case hQ.DOWN:case hQ.RIGHT:t._focusNextButton()&&e.preventDefault();break;case hQ.HOME:e.preventDefault(),t.setFocusedRadioButton(t.firstRadioButton);break;case hQ.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=dk(this.allRadioButtons());!(e=t()).done;)e.value.tabIndex=-1},r.setCheckedRadioButton=function(e){for(var t,r=dk(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 hh(po(),dd(this._slotRef),this._onSlotChange)},v(t,[{key:"deviceType",get:function(){return h0(this,pl)[pl]},set:function(e){h0(this,pl)[pl]=e}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.updateCheckedButton(),this.dispatchEvent(d9("change",{bubbles:!0})))}},{key:"focusedRadioButton",get:function(){var e;return null!=(e=dR(this._radioButtons,function(e){return 0===e.tabIndex}))?e:null}},{key:"checkedRadioButton",get:function(){var e;return null!=(e=dR(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}(hR);function pu(t){return E(t,e.RadioButton)}function pc(){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 pc=function(){return e},e}tZ=(tX=(tJ=o(ps,[[tW,1,"deviceType"],[tK,4,"value"]],[tG,tQ],hR)).e)[0],tY=tX[1],e.RadioGroup=(t0=tJ.c)[0],(0,t0[1])();var ph=c$(pc()),pd="theoplayermenuclose",pp="theoplayermenuchange";function py(){var e=a(["",""]);return py=function(){return e},e}function pf(){var e=a(['<div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>','</div><div part="content" @input="','">',"</div>"]);return pf=function(){return e},e}function pv(){var e=a(['<slot name="heading"></slot>']);return pv=function(){return e},e}function pm(){var e=a(["<slot></slot>"]);return pm=function(){return e},e}function p_(){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 p_=function(){return e},e}t3=hO("theoplayer-menu"),t8=hI({reflect:!0,type:Boolean,attribute:hG.MENU_CLOSE_ON_INPUT}),t7=hI({reflect:!0,state:!0,type:Boolean,attribute:hG.MENU_OPENED}),e.Menu=void 0,new(t5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[ph],t.shadowRootOptions=r({},hR.shadowRootOptions,{delegatesFocus:!0}),t4(),t}return i(t,e),t}(l),t1=h2("____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,h0(r,t1)[t1]=t6(r,!1),r._onContentInput=function(){if(r.closeOnInput){var e=pe(pd,{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(hG.HIDDEN,"")},r.openMenu=function(){this.menuOpened_=!0},r.closeMenu=function(){this.menuOpened_=!1},r.render=function(){return this._template?hh(py(),hz(this._template)):hh(pf(),this.renderMenuHeading(),this._onContentInput,this.renderMenuContent())},r.renderMenuHeading=function(){return hh(pv())},r.renderMenuContent=function(){return hh(pm())},v(t,[{key:"closeOnInput",get:function(){return h0(this,t1)[t1]},set:function(e){h0(this,t1)[t1]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,dB(this,hG.HIDDEN,!e);var t=pe(pp,{bubbles:!0});this.dispatchEvent(t)}}}]),t}(hR),t6=(rt=(re=o(t2,[[t8,1,"closeOnInput"],[t7,4,"menuOpened_"]],[t3],hR)).e)[0],t9=rt[1],e.Menu=(rr=re.c)[0],t4=rr[1],t5);var pb=c$(p_()),pg="theoplayermenutoggle";function pk(){var e=a(["",""]);return pk=function(){return e},e}function pw(){var e=a(['<slot @slotchange="','"></slot>']);return pw=function(){return e},e}function px(t){return!!dC(t)&&(E(t,e.Menu)||E(t,e.MenuGroup))}ro=hO("theoplayer-menu-group"),rs=hI({reflect:!0,state:!0,type:Boolean,attribute:hG.MENU_OPENED}),e.MenuGroup=void 0,new(ra=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pb],t.shadowRootOptions=r({},hR.shadowRootOptions,{delegatesFocus:!0}),rl(),t}return i(t,e),t}(l),rn=h2("____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,h0(n,rn)[rn]=ru(n,null),n._menus=[],n._openMenuStack=[],n._onMenuListChange=function(){for(var e,t=[].concat(dS(n.shadowRoot.children),n._menuSlot?dN(n._menuSlot):[]),r=[],i=dk(t);!(e=i()).done;){var a=e.value;if(!px(a)){var o=dD(a);o&&r.push(o)}}r.length>0&&Promise.all(r).then(n._onMenuListChange,dT);for(var l,s=t.filter(px),u=dk(n._menus);!(l=u()).done;){var c=l.value;0>s.indexOf(c)&&n.closeMenu(c.id)}for(var h,d=dk(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=dC(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&&hK(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(hG.HIDDEN,"")},n.createRenderRoot=function(){var e=t.prototype.createRenderRoot.call(this);return e.addEventListener(pg,this._onToggleMenu),e.addEventListener(pd,this._onCloseMenu),e.addEventListener(pp,this._onMenuChange),e},n.render=function(){return this._template?hh(pk(),hz(this._template)):hh(pw(),this._onMenuListChange)},n.firstUpdated=function(){this._onMenuListChange()},n.getMenuById=function(e){return e&&e!==this.id?dR(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=dP(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=dP(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,dB(this,hG.MENU_OPENED,e),e?(this.removeAttribute(hG.HIDDEN),this.removeEventListener("keydown",this._onKeyDown),this.addEventListener("keydown",this._onKeyDown)):(this.setAttribute(hG.HIDDEN,""),this.removeEventListener("keydown",this._onKeyDown));var t=pe(pp,{bubbles:!0});this.dispatchEvent(t)}}},{key:"_menuSlot",get:function(){return h0(this,rn)[rn]},set:function(e){h0(this,rn)[rn]=e}}]),r}(hR),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 h$(e,t,{get:function(){return n(this)}})},1,"_menuSlot"]],[ro],hR)).e)[0],rc=rd[1],e.MenuGroup=(rp=rh.c)[0],rl=rp[1],ra),ry=hO("theoplayer-menu-button"),rv=hI({reflect:!0,type:String,attribute:hG.MENU}),rm=hI({reflect:!0,state:!0,type:String,attribute:"aria-controls"}),e.MenuButton=void 0;var pE=h2("____private__ariaControls_1"),pT=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pE,{writable:!0,value:void 0}),rb(t),t._menuId=null,h0(t,pE)[pE]=r_(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=pe(pg,{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 h0(this,pE)[pE]},set:function(e){h0(this,pE)[pE]=e}}]),t}(rf=e.Button);function pA(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return pA=function(){return e},e}r_=(rk=(rg=o(pT,[[rv,4,"menu"],[rm,1,"_ariaControls"]],[ry],rf)).e)[0],rb=rk[1],e.MenuButton=(rw=rg.c)[0],(0,rw[1])(),rx=hO("theoplayer-menu-close-button"),e.CloseMenuButton=void 0;var pC=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(hG.ARIA_LABEL)||this.setAttribute(hG.ARIA_LABEL,"close menu")},r.handleClick=function(){var e=pe(pd,{bubbles:!0,composed:!0});this.dispatchEvent(e)},r.render=function(){return hh(pA(),d_('<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 pL(){var e=a(["<slot>","</slot>"]);return pL=function(){return e},e}e.CloseMenuButton=(rT=o(pC,[],[rx],rE).c)[0],(0,rT[1])();var pS=["change","update"];rA=hO("theoplayer-media-track-radio-button"),rL=hN(),rS=hI({reflect:!1,attribute:!1}),e.MediaTrackRadioButton=void 0;var pR=h2("____private__trackLabel_1"),pP=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pR,{writable:!0,value:void 0}),t._track=void rP(t),h0(t,pR)[pR]=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&&dM(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 hh(pL(),this._trackLabel)},v(t,[{key:"_trackLabel",get:function(){return h0(this,pR)[pR]},set:function(e){h0(this,pR)[pR]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(pS,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(pS,this._onTrackChange))}}]),t}(rC=e.RadioButton);function pO(){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 pO=function(){return e},e}rR=(rM=(rO=o(pP,[[rL,1,"_trackLabel"],[rS,4,"track"]],[rA],rC)).e)[0],rP=rM[1],e.MediaTrackRadioButton=(rB=rO.c)[0],(0,rB[1])();var pM=c$(pO());function pB(e){return"subtitles"===e.kind||"captions"===e.kind}function pI(e){return pB(e)&&!e.forced}function pN(e){var t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}function p$(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 pD=function(e,t,r){for(var n=new Map,i=t;i<=r;i++)n.set(e[i],i);return n},pq=hU(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,m=l.length-1,_=0,g=u.length-1;v<=m&&_<=g;)if(null===l[v])v++;else if(null===l[m])m--;else if(y[v]===c[_])f[_]=h6(l[v],u[_]),v++,_++;else if(y[m]===c[g])f[g]=h6(l[m],u[g]),m--,g--;else if(y[v]===c[g])f[g]=h6(l[v],u[g]),h7(e,f[g+1],l[v]),v++,g--;else if(y[m]===c[_])f[_]=h6(l[m],u[_]),h7(e,l[v],l[m]),m--,_++;else if(void 0===d&&(d=pD(c,_,g),p=pD(y,v,m)),d.has(y[v]))if(d.has(y[m])){var k=p.get(c[_]),w=void 0!==k?l[k]:null;if(null===w){var x=h7(e,l[v]);h6(x,u[_]),f[_]=x}else f[_]=h6(w,u[_]),h7(e,l[v],w),l[k]=null;_++}else de(l[m]),m--;else de(l[v]),v++;for(;_<=g;){var E=h7(e,f[g+1]);h6(E,u[_]),f[_++]=E}for(;v<=m;){var T=l[v++];null!==T&&de(T)}return this.ut=c,void 0===(r=f)&&(r=h9),e._$AH=r,hd}}]),t}(hj));function pF(){var e=a(['<theoplayer-text-track-off-radio-button .trackList="','"></theoplayer-text-track-off-radio-button>']);return pF=function(){return e},e}function pU(){var e=a(['<theoplayer-text-track-radio-button .track="','"></theoplayer-text-track-radio-button>']);return pU=function(){return e},e}function pj(){var e=a(['<theoplayer-media-track-radio-button .track="','"></theoplayer-media-track-radio-button>']);return pj=function(){return e},e}function pz(){var e=a(['<theoplayer-radio-group @change="','">'," ","</theoplayer-radio-group>"]);return pz=function(){return e},e}var pV=["addtrack","removetrack"];function pH(){var e=a(["<slot>","</slot>"]);return pH=function(){return e},e}rq=hO("theoplayer-track-radio-group"),rF=dU(["player"]),rj=hN(),rz=hI({reflect:!0,type:String,attribute:hG.TRACK_TYPE}),rV=hI({reflect:!0,type:Boolean,attribute:hG.SHOW_OFF}),e.TrackRadioGroup=void 0,new(rD=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pM],rU(),t}return i(t,e),t}(l),rI=h2("____private__tracksList_1"),rN=h2("____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",h0(t,rI)[rI]=rH(t),h0(t,rN)[rN]=rG(t,!1),t._updateTracks=function(){return t.requestUpdate()},t._onChange=function(){t.dispatchEvent(d9("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(pV,this._updateTracks),null==t||t.addEventListener(pV,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(pI):[]},r.render=function(){var e=this._getTracks(),t="subtitles"===this.trackType;return hh(pz(),this._onChange,this.showOffButton&&t?hh(pF(),this._tracksList):void 0,pq(e,function(e){return e.uid},function(e){return t?hh(pU(),e):hh(pj(),e)}))},v(t,[{key:"_tracksList",get:function(){return h0(this,rI)[rI]},set:function(e){h0(this,rI)[rI]=e}},{key:"trackType",get:function(){return this._trackType},set:function(e){this._trackType=e,this._updateTracksList()}},{key:"showOffButton",get:function(){return h0(this,rN)[rN]},set:function(e){h0(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}(hR),rH=(rK=(rW=o(r$,[[rj,1,"_tracksList"],[rz,4,"trackType"],[rV,1,"showOffButton"]],[rq,rF],hR)).e)[0],rG=rK[1],rQ=rK[2],e.TrackRadioGroup=(rZ=rW.c)[0],rU=rZ[1],rD);var pG=["change","update"];rY=hO("theoplayer-text-track-radio-button"),rX=hN(),r0=hI({reflect:!1,attribute:!1}),e.TextTrackRadioButton=void 0;var pQ=h2("____private__trackLabel_1"),pW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pQ,{writable:!0,value:void 0}),t._track=void r2(t),h0(t,pQ)[pQ]=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&&dM(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 hh(pH(),this._trackLabel)},v(t,[{key:"_trackLabel",get:function(){return h0(this,pQ)[pQ]},set:function(e){h0(this,pQ)[pQ]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(pG,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(pG,this._onTrackChange))}}]),t}(rJ=e.RadioButton);function pK(){var e=a(["<slot>Off</slot>"]);return pK=function(){return e},e}r1=(r3=(r5=o(pW,[[rX,1,"_trackLabel"],[r0,4,"track"]],[rY],rJ)).e)[0],r2=r3[1],e.TextTrackRadioButton=(r4=r5.c)[0],(0,r4[1])();var pZ=["change"];r8=hO("theoplayer-text-track-off-radio-button"),r6=hI({reflect:!1,attribute:!1}),e.TextTrackOffRadioButton=void 0;var pY=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 pI(e)&&"showing"===e.mode})},r._updateTrackList=function(){this._trackList&&this.checked&&function(e){for(var t,r=dk(e);!(t=r()).done;){var n=t.value;pB(n)&&"showing"===n.mode&&(n.mode="disabled")}}(this._trackList)},r.handleChange=function(){this._updateTrackList()},r.render=function(){return hh(pK())},v(t,[{key:"trackList",get:function(){return this._trackList},set:function(e){this._trackList&&this._trackList.removeEventListener(pZ,this._onTrackChange),this._trackList=e,this._updateFromTrackList(),e&&e.addEventListener(pZ,this._onTrackChange)}}]),t}(r7=e.RadioButton);function pJ(){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 pJ=function(){return e},e}r9=(ne=o(pY,[[r6,4,"trackList"]],[r8],r7)).e[0],e.TextTrackOffRadioButton=(nt=ne.c)[0],(0,nt[1])();var pX=c$(pJ());function p0(){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 p0=function(){return e},e}var p1=c$(p0());function p2(){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 p2=function(){return e},e}var p5=c$(p2());function p3(e){var t,r;return e?dO(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:dO(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 p4(e){return"rgba("+e.r_+","+e.g_+","+e.b_+","+e.a_+")"}function p8(e){return"rgb("+e.r_+","+e.g_+","+e.b_+")"}function p7(e,t){return{r_:e.r_,g_:e.g_,b_:e.b_,a_:t}}var p6=p3("#ffffff"),p9=p3("#000000"),ye=[["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)"]],yt=[["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']],yr=[["None","none"],["Drop shadow","dropshadow"],["Raised","raised"],["Depressed","depressed"],["Uniform","uniform"]];function yn(){var e=a(["<span>","</span>"]);return yn=function(){return e},e}nr=hO("theoplayer-text-track-style-display"),nn=dU(["player"]),ni=hI({reflect:!0,type:String,attribute:hG.PROPERTY}),na=hI({reflect:!1,attribute:!1}),e.TextTrackStyleDisplay=void 0;var yi=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 hh(yn(),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=dR(yt,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=p3(e);if(t){var r=p8(t),n=dR(ye,function(e){return e[0],e[1]===r});if(n)return n[0]}return"Custom"}(this._player.textTrackStyle[e]);case"fontOpacity":return ya(this._player.textTrackStyle.fontColor);case"backgroundOpacity":return ya(this._player.textTrackStyle.backgroundColor);case"windowOpacity":return ya(this._player.textTrackStyle.windowColor);case"edgeStyle":var n=this._player.textTrackStyle.edgeStyle;if(!n)return"Default";var i=dR(yr,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}(hR);function ya(e){if(!e)return"Default";var t=p3(e);return t?""+100*t.a_+"%":"Custom"}function yo(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return yo=function(){return e},e}function yl(e,t,r){var n,i,a,o=null!=(n=null==(i=p3(t))?void 0:i.a_)?n:1;if(""!==e||1!==o)return p4(p7(null!=(a=p3(e))?a:r,o))}function ys(e,t,r){var n,i=null!=(n=p3(t))?n:r;if(""!==e||i.r_!==r.r_||i.g_!==r.g_||i.b_!==r.b_)return p4(p7(i,""==e?1:Number(e)/100))}function yu(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yu=function(){return e},e}function yc(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yc=function(){return e},e}function yh(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yh=function(){return e},e}function yd(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yd=function(){return e},e}function yp(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yp=function(){return e},e}function yy(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yy=function(){return e},e}function yf(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yf=function(){return e},e}function yv(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yv=function(){return e},e}function ym(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return ym=function(){return e},e}function y_(){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 y_=function(){return e},e}no=(nl=o(yi,[[ni,4,"property"],[na,4,"player"]],[nr,nn],hR)).e[0],e.TextTrackStyleDisplay=(ns=nl.c)[0],(0,ns[1])(),nh=hO("theoplayer-text-track-style-radio-group"),nd=dU(["player"]),ny=hI({reflect:!0,type:String,attribute:hG.PROPERTY}),nf=hI({reflect:!1,attribute:!1}),nv=hI({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=[pM],np(),t}return i(t,e),t}(l),nu=function(t){function r(){var e;return e=t.apply(this,arguments)||this,nm(e),e._radioGroupRef=du(),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?p8(null!=(r=p3(n))?r:p6):"";break;case"backgroundColor":var i,a=e._player.textTrackStyle.backgroundColor;e.value=a?p8(null!=(i=p3(a))?i:p9):"";break;case"windowColor":var o,l=e._player.textTrackStyle.windowColor;e.value=l?p8(null!=(o=p3(l))?o:p9):"";break;case"fontOpacity":var s,u,c=e._player.textTrackStyle.fontColor;e.value=c?String((null!=(s=null==(u=p3(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=p3(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=p3(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=yl(this.value,this._player.textTrackStyle.fontColor,p6);break;case"backgroundColor":this._player.textTrackStyle.backgroundColor=yl(this.value,this._player.textTrackStyle.backgroundColor,p9);break;case"windowColor":this._player.textTrackStyle.windowColor=yl(this.value,this._player.textTrackStyle.windowColor,p9);break;case"fontOpacity":this._player.textTrackStyle.fontColor=ys(this.value,this._player.textTrackStyle.fontColor,p6);break;case"backgroundOpacity":this._player.textTrackStyle.backgroundColor=ys(this.value,this._player.textTrackStyle.backgroundColor,p9);break;case"windowOpacity":this._player.textTrackStyle.windowColor=ys(this.value,this._player.textTrackStyle.windowColor,p9);break;default:this._player.textTrackStyle[this.property]=""==this.value?void 0:this.value}},n.render=function(){return hh(yo(),dd(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(d9("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}(hR),nm=(n_=o(nu,[[ny,4,"property"],[nf,4,"value"],[nv,4,"player"]],[nh,nd],hR)).e[0],e.TextTrackStyleRadioGroup=(nb=n_.c)[0],np=nb[1],nc);var yb=[{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)"}],yg=[{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'}],yk=[{label:"Default",value:""},{label:"50%",value:"50%"},{label:"75%",value:"75%"},{label:"100%",value:"100%"},{label:"150%",value:"150%"},{label:"200%",value:"200%"}],yw=[{label:"Default",value:""},{label:"25%",value:"25"},{label:"50%",value:"50"},{label:"75%",value:"75"},{label:"100%",value:"100"}],yx=[{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 yE(){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 yE=function(){return e},e}nw=hO("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,[p5,p1]),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 hh(y_(),yg.map(function(e){var t=e.label,r=e.value;return hh(yu(),r,t)}),yb.map(function(e){var t=e.label,r=e.value;return hh(yc(),r,t)}),yw.map(function(e){var t=e.label,r=e.value;return hh(yh(),r,t)}),yk.map(function(e){var t=e.label,r=e.value;return hh(yd(),r,t)}),yb.map(function(e){var t=e.label,r=e.value;return hh(yp(),r,t)}),yw.map(function(e){var t=e.label,r=e.value;return hh(yy(),r,t)}),yb.map(function(e){var t=e.label,r=e.value;return hh(yf(),r,t)}),yw.map(function(e){var t=e.label,r=e.value;return hh(yv(),r,t)}),yx.map(function(e){var t=e.label,r=e.value;return hh(ym(),r,t)}))},t}(nE=e.MenuGroup),e.TextTrackStyleMenu=(nT=o(ng,[],[nw],nE).c)[0],nx=nT[1],nk);var yT=["addtrack","removetrack"];function yA(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return yA=function(){return e},e}nR=hO("theoplayer-language-menu"),nP=dU(["player"]),nB=hI({state:!0}),nI=hI({reflect:!0,state:!0,type:Boolean,attribute:hG.HAS_AUDIO}),nN=hI({reflect:!0,state:!0,type:Boolean,attribute:hG.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,[pX]),nO(),r}return i(r,t),r}(l),nA=h2("____private__hasAudioTracks_1"),nC=h2("____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}),h0(t,nA)[nA]=(nq(t),n$(t,!1)),h0(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(pI))?e:[];t._hasSubtitles=n.length>0},t}return i(t,e),t.prototype.render=function(){return hh(yE())},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(yT,this._updateAudioTracks),null==(r=this._textTrackList)||r.removeEventListener(yT,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(yT,this._updateAudioTracks),null==(i=this._textTrackList)||i.addEventListener(yT,this._updateTextTracks))}},{key:"_hasAudioTracks",get:function(){return h0(this,nA)[nA]},set:function(e){h0(this,nA)[nA]=e}},{key:"_hasSubtitles",get:function(){return h0(this,nC)[nC]},set:function(e){h0(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 yC=["addtrack","removetrack"];nz=hO("theoplayer-language-menu-button"),nV=dU(["player"]),nG=hI({reflect:!1,attribute:!1}),e.LanguageMenuButton=void 0;var yL=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(pI));dB(t,hG.HIDDEN,!e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hG.ARIA_LABEL)||this.setAttribute(hG.ARIA_LABEL,"open language menu")},r.render=function(){return hh(yA(),d_('<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(yC,this._updateTracks),null==(r=this._textTrackList)||r.removeEventListener(yC,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(yC,this._updateTracks),null==(i=this._textTrackList)||i.addEventListener(yC,this._updateTracks))}}]),t}(nH=e.MenuButton);function yS(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return yS=function(){return e},e}function yR(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return yR=function(){return e},e}nQ=(nW=o(yL,[[nG,4,"player"]],[nz,nV],nH)).e[0],e.LanguageMenuButton=(nK=nW.c)[0],(0,nK[1])(),nJ=hO("theoplayer-playback-rate-radio-group"),nX=dU(["player"]),n1=hN(),n2=hN(),e.PlaybackRateRadioGroup=void 0,new(nY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pM],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=du(),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 hh(yS(),dd(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);var t=this._radioGroupRef.value;t&&(t.value=String(e)),this.dispatchEvent(d9("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}(hR),n5=(n3=o(nZ,[[n1,4,"value"],[n2,4,"player"]],[nJ,nX],hR)).e[0],e.PlaybackRateRadioGroup=(n4=n3.c)[0],n0=n4[1],nY),n8=hO("theoplayer-playback-rate-menu-button"),e.PlaybackRateMenuButton=void 0;var yP=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(hG.ARIA_LABEL)||this.setAttribute(hG.ARIA_LABEL,"open playback speed menu")},r.render=function(){return hh(yR(),d_('<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 yO(){var e=a(['<span slot="heading"><slot name="heading">Playback speed</slot></span>']);return yO=function(){return e},e}function yM(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yM=function(){return e},e}function yB(){var e=a(["<theoplayer-playback-rate-radio-group>","</theoplayer-playback-rate-radio-group>"]);return yB=function(){return e},e}e.PlaybackRateMenuButton=(n6=o(yP,[],[n8],n7).c)[0],(0,n6[1])();var yI=[.25,.5,1,1.25,1.5,2];n9=hO("theoplayer-playback-rate-menu"),e.PlaybackRateMenu=void 0;var yN=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.renderMenuHeading=function(){return hh(yO())},r.renderMenuContent=function(){return hh(yB(),yI.map(function(e){return hh(yM(),e,1===e?"Normal":""+e+"x")}))},t}(ie=e.Menu);function y$(){var e=a(["<span>","</span>"]);return y$=function(){return e},e}e.PlaybackRateMenu=(it=o(yN,[],[n9],ie).c)[0],(0,it[1])(),ir=hO("theoplayer-playback-rate-display"),ii=dU(["playbackRate"]),ia=hN(),e.PlaybackRateDisplay=void 0;var yD=h2("____private_playbackRate_1"),yq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yD,{writable:!0,value:void 0}),h0(t,yD)[yD]=(il(t),io(t,1)),t}return i(t,e),t.prototype.render=function(){return hh(y$(),1===this.playbackRate?"Normal":""+this.playbackRate+"x")},v(t,[{key:"playbackRate",get:function(){return h0(this,yD)[yD]},set:function(e){h0(this,yD)[yD]=e}}]),t}(hR);function yF(){var e=a(["<span>","</span>"]);return yF=function(){return e},e}io=(iu=(is=o(yq,[[ia,1,"playbackRate"]],[ir,ii],hR)).e)[0],il=iu[1],e.PlaybackRateDisplay=(ic=is.c)[0],(0,ic[1])(),ih=hO("theoplayer-active-quality-display"),id=dU(["activeVideoQuality","targetVideoQualities"]),ip=hI({reflect:!1,attribute:!1}),iy=hI({reflect:!1,attribute:!1}),e.ActiveQualityDisplay=void 0;var yU=h2("____private_activeVideoQuality_1"),yj=h2("____private_targetVideoQualities_2"),yz=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yU,{writable:!0,value:void 0}),Object.defineProperty(t,yj,{writable:!0,value:void 0}),h0(t,yU)[yU]=(i_(t),iv(t,void 0)),h0(t,yj)[yj]=im(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=p$(null!=r?r:this.activeVideoQuality);return e=t?null!=n?n:"Unknown":"Automatic"+(n?" ("+n+")":""),hh(yF(),e)},v(t,[{key:"activeVideoQuality",get:function(){return h0(this,yU)[yU]},set:function(e){h0(this,yU)[yU]=e}},{key:"targetVideoQualities",get:function(){return h0(this,yj)[yj]},set:function(e){h0(this,yj)[yj]=e}}]),t}(hR);function yV(){var e=a(["<slot>","</slot>"]);return yV=function(){return e},e}iv=(ig=(ib=o(yz,[[ip,1,"activeVideoQuality"],[iy,1,"targetVideoQualities"]],[ih,id],hR)).e)[0],im=ig[1],i_=ig[2],e.ActiveQualityDisplay=(ik=ib.c)[0],(0,ik[1])();var yH=["activequalitychanged","targetqualitychanged"],yG=["update"];iw=hO("theoplayer-quality-radio-button"),iE=hN(),iT=hI({reflect:!1,attribute:!1}),iA=hI({reflect:!1,attribute:!1}),e.QualityRadioButton=void 0;var yQ=h2("____private__qualityLabel_1"),yW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yQ,{writable:!0,value:void 0}),t._track=void iL(t),t._quality=void 0,h0(t,yQ)[yQ]=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=p$(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 hh(yV(),this._qualityLabel)},v(t,[{key:"_qualityLabel",get:function(){return h0(this,yQ)[yQ]},set:function(e){h0(this,yQ)[yQ]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(yH,this._updateFromTrack),this._track=e,this._updateFromTrack(),e&&e.addEventListener(yH,this._updateFromTrack))}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality!==e&&(this._quality&&this._quality.removeEventListener(yG,this._updateFromQuality),this._quality=e,this._updateFromTrack(),e&&e.addEventListener(yG,this._updateFromQuality))}}]),t}(ix=e.RadioButton);function yK(){var e=a(['<theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>']);return yK=function(){return e},e}function yZ(){var e=a(['<theoplayer-radio-group @change="','"><theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>',"</theoplayer-radio-group>"]);return yZ=function(){return e},e}iC=(iR=(iS=o(yW,[[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 yY=["addtrack","removetrack","change"];function yJ(){var e=a(["<slot>Reset</slot>"]);return yJ=function(){return e},e}iI=hO("theoplayer-quality-radio-group"),iN=dU(["player"]),iD=hN(),iq=hN(),e.QualityRadioGroup=void 0,new(iB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pM],i$(),t}return i(t,e),t}(l),iO=h2("____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}),h0(t,iO)[iO]=(iU(t),iF(t)),t._onChange=function(){t.dispatchEvent(d9("change",{bubbles:!0}))},t._updateTrack=function(){var e,r,n=t._player?dR(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 hh(yZ(),this._onChange,this._track,void 0,1!==t.length&&pq(t,function(e){return e.uid},function(t){return hh(yK(),e._track,t)}))},v(t,[{key:"_track",get:function(){return h0(this,iO)[iO]},set:function(e){h0(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(yY,this._updateTrack),this._player=e,this._videoTracks=null==e?void 0:e.videoTracks,this._updateTrack(),null==(r=this._videoTracks)||r.addEventListener(yY,this._updateTrack))}}]),t}(hR),iF=(iz=(ij=o(iM,[[iD,1,"_track"],[iq,4,"player"]],[iI,iN],hR)).e)[0],iU=iz[1],e.QualityRadioGroup=(iV=ij.c)[0],i$=iV[1],iB),iH=hO("theoplayer-text-track-style-reset-button"),iG=dU(["player"]),e.TextTrackStyleResetButton=void 0;var yX=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 hh(yJ())},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(iQ=e.Button);function y0(){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 y0=function(){return e},e}e.TextTrackStyleResetButton=(iW=o(yX,[],[iH,iG],iQ).c)[0],(0,iW[1])(),iY=hO("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,[p5]),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 hh(y0())},t}(iX=e.MenuGroup),e.SettingsMenu=(i0=o(iK,[],[iY],iX).c)[0],iJ=i0[1],iZ);var y1='<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 y2(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return y2=function(){return e},e}i1=hO("theoplayer-settings-menu-button"),e.SettingsMenuButton=void 0;var y5=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(hG.ARIA_LABEL)||this.setAttribute(hG.ARIA_LABEL,"open settings menu")},r.render=function(){return hh(y2(),d_(y1))},t}(i2=e.MenuButton);function y3(){var e=a([":host(:not([fullscreen])) [part=exit-icon],:host([fullscreen]) [part=enter-icon]{display:none!important}"]);return y3=function(){return e},e}e.SettingsMenuButton=(i5=o(y5,[],[i1],i2).c)[0],(0,i5[1])();var y4=c$(y3()),y8="theoplayerfullscreenenter",y7="theoplayerfullscreenexit";function y6(){var e=a(['<span part="enter-icon"><slot name="enter-icon">','</slot></span><span part="exit-icon"><slot name="exit-icon">',"</slot></span>"]);return y6=function(){return e},e}function y9(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 fe(){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 fe=function(){return e},e}i7=hO("theoplayer-fullscreen-button"),i6=dU(["fullscreen"]),at=hI({reflect:!0,type:Boolean,attribute:hG.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,[y4]),i9(),r}return i(r,t),r}(l),i3=h2("____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}),h0(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=pe(y7,{bubbles:!0,composed:!0});this.dispatchEvent(e)}else{var t=pe(y8,{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(hG.ARIA_LABEL,e)},n.render=function(){return hh(y6(),d_('<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'),d_('<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 h0(this,i3)[i3]},set:function(e){h0(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 ft=c$(fe()),fr=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=dP(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=dk(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}(),fn="important",fi=" !"+fn,fa=hU(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(fi);c.includes("-")||d?n.setProperty(c,d?h.slice(0,-11):h,d?fn:""):n[c]=h}}return hd}}]),t}(hj));function fo(){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 fo=function(){return e},e}function fl(){var e=a([""]);return fl=function(){return e},e}function fs(){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 fs=function(){return e},e}ap=dU(["deviceType"]),af=hN(),av=hI({reflect:!0,type:Boolean,attribute:hG.DISABLED}),am=hI({reflect:!0,type:Boolean,attribute:hG.HIDDEN}),a_=hI({reflect:!0,type:Boolean,attribute:hG.INERT}),ab=hI({reflect:!1,attribute:!1}),ag=hN(),ak=hI({reflect:!0,type:Number,attribute:"min"}),aw=hI({reflect:!0,type:Number,attribute:"max"}),ax=hI({reflect:!0,attribute:"step",converter:{fromAttribute:function(e){return null==e||"any"===e?"any":Number(e)}}}),aE=hI({reflect:!0,type:String,attribute:hG.DEVICE_TYPE}),aT=hI({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=[ft],ay(),t}return i(t,e),t}(l),al=h2("____private__pointerWidth_1"),as=h2("____private_step_2"),au=h2("____private_deviceType_3"),ac=h2("____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=du(),t._min=0,t._max=100,t._value=0,t._disabled=!1,t._hidden=!1,t._inert=!1,t._rangeWidth=0,t._thumbWidth=10,h0(t,al)[al]=aA(t,0),h0(t,as)[as]=aC(t,"any"),h0(t,au)[au]=aL(t,"desktop"),h0(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(){y9(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 fr;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&&hW(e.keyCode)&&(e.keyCode===hQ.LEFT||e.keyCode===hQ.RIGHT?e.stopPropagation():(e.keyCode===hQ.UP||e.keyCode===hQ.DOWN)&&e.preventDefault())},r.render=function(){return hh(fo(),fa({width:""+this._pointerWidth+"px"}),dd(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 hh(fl())},v(t,[{key:"_pointerWidth",get:function(){return h0(this,al)[al]},set:function(e){h0(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 h0(this,as)[as]},set:function(e){h0(this,as)[as]=e}},{key:"deviceType",get:function(){return h0(this,au)[au]},set:function(e){h0(this,au)[au]=e}},{key:"ariaLive",get:function(){return h0(this,ac)[ac]},set:function(e){h0(this,ac)[ac]=e}}]),t}(hR),aA=(aO=(aP=o(ah,[[af,1,"_pointerWidth"],[av,4,"disabled"],[am,4,"hidden"],[a_,4,"inert"],[ab,4,"value"],[ag,4,"rawValue"],[ak,4,"min"],[aw,4,"max"],[ax,1,"step"],[aE,1,"deviceType"],[aT,1,"ariaLive"]],[ap],hR)).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 fu=c$(fs()),fc="theoplayerpreviewtimechange";function fh(e){return"linear"===e.type}function fd(){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 fd=function(){return e},e}var fp=c$(fd());function fy(){var e=a(["<canvas ",' style="','"></canvas>']);return fy=function(){return e},e}var ff=["addtrack","removetrack"];function fv(e){return"metadata"===e.kind&&"thumbnails"===e.label}function fm(){var e=a(["<span>","</span>"]);return fm=function(){return e},e}a$=hO("theoplayer-preview-thumbnail"),aD=dU(["player","previewTime"]),aF=hN(),aU=hI({reflect:!1,attribute:!1}),aj=hN(),e.PreviewThumbnail=void 0,new(aN=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fp],aq(),t}return i(t,e),t}(l),aB=h2("____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=du(),t._previewTime=NaN,h0(t,aB)[aB]=az(t,!1),t._updateThumbnailTextTrack=function(){var e=t._thumbnailTextTrack,r=t._player?dR(t._player.textTracks,fv):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=dk(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,dT)):(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 hh(fy(),dd(this._canvasRef),fa(e))},v(t,[{key:"_thumbnailVisible",get:function(){return h0(this,aB)[aB]},set:function(e){h0(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(ff,this._updateThumbnailTextTrack),this._player=e,this._textTrackList=null==e?void 0:e.textTracks,this._updateThumbnailTextTrack(),null==(r=this._textTrackList)||r.addEventListener(ff,this._updateThumbnailTextTrack))}},{key:"previewTime",get:function(){return this._previewTime},set:function(e){this._previewTime=e,this.updateThumbnail_()}}]),t}(hR),az=(aG=(aH=o(aI,[[aF,1,"_thumbnailVisible"],[aU,4,"player"],[aj,4,"previewTime"]],[a$,aD],hR)).e)[0],aV=aG[1],e.PreviewThumbnail=(aQ=aH.c)[0],aq=aQ[1],aN);var f_=["timeupdate","seeking","seeked","durationchange"];function fb(){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 fb=function(){return e},e}a1=hO("theoplayer-preview-time-display"),a2=dU(["player","previewTime","streamType"]),a3=hN(),a4=hI({reflect:!0,type:Boolean,attribute:hG.REMAINING}),a8=hI({reflect:!0,type:Boolean,attribute:hG.REMAINING_WHEN_LIVE}),a7=hI({reflect:!0,type:String,attribute:hG.STREAM_TYPE}),a6=hI({reflect:!1,attribute:!1}),a9=hN(),e.PreviewTimeDisplay=void 0,new(a0=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dX],a5(),t}return i(t,e),t}(l),aW=h2("____private_previewTime_1"),aK=h2("____private_remaining_2"),aZ=h2("____private_remainingWhenLive_3"),aY=h2("____private_streamType_4"),aJ=h2("____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}),h0(t,aW)[aW]=(oa(t),oe(t,NaN)),h0(t,aK)[aK]=ot(t,!1),h0(t,aZ)[aZ]=or(t,!1),h0(t,aY)[aY]=on(t,"vod"),h0(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)),hh(fm(),d1(e,t,r))},v(t,[{key:"previewTime",get:function(){return h0(this,aW)[aW]},set:function(e){h0(this,aW)[aW]=e}},{key:"remaining",get:function(){return h0(this,aK)[aK]},set:function(e){h0(this,aK)[aK]=e}},{key:"remainingWhenLive",get:function(){return h0(this,aZ)[aZ]},set:function(e){h0(this,aZ)[aZ]=e}},{key:"streamType",get:function(){return h0(this,aY)[aY]},set:function(e){h0(this,aY)[aY]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(f_,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(f_,this._updateFromPlayer))}},{key:"_endTime",get:function(){return h0(this,aJ)[aJ]},set:function(e){h0(this,aJ)[aJ]=e}}]),t}(hR),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],hR)).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 fg=["timeupdate","durationchange","ratechange","seeking","seeked"],fk=["play","pause","ended","durationchange","readystatechange","error"],fw=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];od=hO("theoplayer-time-range"),op=dU(["player","streamType","deviceType"]),ov=hI({reflect:!1,attribute:!1}),om=hI({reflect:!0,type:String,attribute:hG.STREAM_TYPE}),o_=hI({reflect:!0,type:Boolean,attribute:hG.SHOW_AD_MARKERS}),ob=hN(),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,[fu]),oy(),r}return i(r,t),r}(l),ou=h2("____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=du(),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)},h0(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(hG.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=d3(this.value),t=d3(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=pe(fc,{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=dk(this._player.ads.scheduledAdBreaks);!(r=a()).done;){var o=r.value;if(void 0===o.ads||!(o.ads.length>0)||o.ads.some(fh)){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===hQ.ENTER&&void 0!==this._player&&(this._player.paused?this._player.play():this._player.pause())},r.renderRangeExtras=function(){return hh(fb(),fa({transform:this._previewRailTransform}),dd(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(fg,this._updateFromPlayer),this._player.removeEventListener(fk,this._toggleAutoAdvance)),null==(t=this._ads)||t.removeEventListener(fw,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),this._toggleAutoAdvance(),void 0!==this._player&&(this._player.addEventListener(fg,this._updateFromPlayer),this._player.addEventListener(fk,this._toggleAutoAdvance)),null==(r=this._ads)||r.addEventListener(fw,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 h0(this,ou)[ou]},set:function(e){h0(this,ou)[ou]=e}}]),t}(of=e.Range),og=(ox=(ow=o(oc,[[ov,4,"player"],[om,4,"streamType"],[o_,4,"showAdMarkers"],[ob,1,"_previewRailTransform"]],[od,op],of)).e)[0],ok=ox[1],e.TimeRange=(oE=ow.c)[0],oy=oE[1],oh),oT=hO("theoplayer-volume-range"),oA=dU(["player","deviceType"]),oL=hI({reflect:!1,attribute:!1}),e.VolumeRange=void 0;var fx=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 fE(){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 fE=function(){return e},e}oS=(oR=o(fx,[[oL,4,"player"]],[oT,oA],oC)).e[0],e.VolumeRange=(oP=oR.c)[0],(0,oP[1])();var fT=c$(fE());function fA(){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 fA=function(){return e},e}oN=hO("theoplayer-error-display"),o$=dU(["error","fullscreen"]),oq=hI({reflect:!1,attribute:!1}),oF=hI({reflect:!0,type:Boolean,attribute:hG.FULLSCREEN}),e.ErrorDisplay=void 0,new(oI=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fT],t.shadowRootOptions=r({},hR.shadowRootOptions,{delegatesFocus:!0}),oD(),t}return i(t,e),t}(l),oO=h2("____private_error_1"),oM=h2("____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}),h0(t,oO)[oO]=(oz(t),oU(t)),h0(t,oM)[oM]=oj(t,!1),t}return i(t,e),t.prototype.render=function(){var e,t;return hh(fA(),d_('<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 h0(this,oO)[oO]},set:function(e){h0(this,oO)[oO]=e}},{key:"fullscreen",get:function(){return h0(this,oM)[oM]},set:function(e){h0(this,oM)[oM]=e}}]),t}(hR),oU=(oH=(oV=o(oB,[[oq,1,"error"],[oF,1,"fullscreen"]],[oN,o$],hR)).e)[0],oj=oH[1],oz=oH[2],e.ErrorDisplay=(oG=oV.c)[0],oD=oG[1],oI),oQ=hN(),oW=hI({reflect:!0,state:!0,type:String,attribute:hG.CAST_STATE});var fC=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 fL(){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 fL=function(){return e},e}function fS(){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 fS=function(){return e},e}oK=o(fC,[[oQ,4,"castApi"],[oW,4,"castState"]],[]).e[0];var fR=c$(fS()),fP=0;function fO(){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 fO=function(){return e},e}oJ=hO("theoplayer-chromecast-button"),oX=dU(["player"]),e.ChromecastButton=void 0,new(oY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(fC.styles,[fR]),o0(),t}return i(t,e),t}(l),oZ=function(t){function r(){var e;return(e=t.call(this)||this)._buttonId=++fP,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(hG.ARIA_LABEL,e)},n.render=function(){var e;return e=this._buttonId,hh(fL(),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}(fC),e.ChromecastButton=(o1=o(oZ,[],[oJ,oX],fC).c)[0],o0=o1[1],oY);var fM=c$(fO());function fB(){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 fB=function(){return e},e}var fI=["statechange"];function fN(){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 fN=function(){return e},e}o4=hO("theoplayer-chromecast-display"),o8=dU(["player"]),o6=hN(),e.ChromecastDisplay=void 0,new(o3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fM],o7(),t}return i(t,e),t}(l),o2=h2("____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}),h0(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(hG.HIDDEN,""):(t._receiverName=n.receiverName||"Chromecast",t.removeAttribute(hG.HIDDEN))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hG.HIDDEN)||this.setAttribute(hG.HIDDEN,""),this._updateFromPlayer()},r.render=function(){return hh(fB(),d_('<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 h0(this,o2)[o2]},set:function(e){h0(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(fI,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(fI,this._updateFromPlayer))}}]),t}(hR),o9=(lr=(lt=o(o5,[[o6,1,"_receiverName"]],[o4,o8],hR)).e)[0],le=lr[1],e.ChromecastDisplay=(ln=lt.c)[0],o7=ln[1],o3);var f$=hh(fN());function fD(){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 fD=function(){return e},e}var fq=c$(fD());function fF(){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 fF=function(){return e},e}lo=hO("theoplayer-airplay-button"),ll=dU(["player"]),e.AirPlayButton=void 0,new(la=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(fC.styles,[fq]),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(hG.ARIA_LABEL,e)},n.render=function(){return f$},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}(fC),e.AirPlayButton=(lu=o(li,[],[lo,ll],fC).c)[0],ls=lu[1],la);var fU=c$(fF());function fj(){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 fj=function(){return e},e}var fz=hh(fj()),fV=["readystatechange","play","pause","playing","seeking","seeked"];function fH(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none!important}"]);return fH=function(){return e},e}lp=hO("theoplayer-loading-indicator"),ly=dU(["player"]),lv=hI({reflect:!1,attribute:!1}),lm=hI({reflect:!0,type:Boolean,attribute:hG.LOADING}),e.LoadingIndicator=void 0,new(ld=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fU],lf(),t}return i(t,e),t}(l),lc=h2("____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}),h0(t,lc)[lc]=(lb(t),l_(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 fz},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(fV,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(fV,this._updateFromPlayer))}},{key:"loading",get:function(){return h0(this,lc)[lc]},set:function(e){h0(this,lc)[lc]=e}}]),t}(hR),l_=(lk=(lg=o(lh,[[lv,4,"player"],[lm,1,"loading"]],[lp,ly],hR)).e)[0],lb=lk[1],e.LoadingIndicator=(lw=lg.c)[0],lf=lw[1],ld);var fG=c$(fH());function fQ(){var e=a([""]);return fQ=function(){return e},e}function fW(){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 fW=function(){return e},e}lA=hO("theoplayer-gesture-receiver"),lC=dU(["player","deviceType"]),lS=hI({reflect:!1,attribute:!1}),lR=hI({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=[fG],lL(),t}return i(t,e),t}(l),lx=h2("____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="",h0(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 hh(fQ())},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 h0(this,lx)[lx]},set:function(e){h0(this,lx)[lx]=e}}]),t}(hR),lP=(lB=(lM=o(lE,[[lS,4,"player"],[lR,1,"deviceType"]],[lA,lC],hR)).e)[0],lO=lB[1],e.GestureReceiver=(lI=lM.c)[0],lL=lI[1],lT);var fK=c$(fW());function fZ(){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 fZ=function(){return e},e}var fY=["play","pause","playing","emptied"],fJ=["seeking","seeked","timeupdate","durationchange","emptied"];function fX(){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 fX=function(){return e},e}lU=hO("theoplayer-live-button"),lj=dU(["player","streamType"]),lH=hI({reflect:!0,type:Boolean,attribute:hG.PAUSED}),lG=hI({reflect:!0,type:String,attribute:hG.STREAM_TYPE}),lQ=hI({reflect:!0,type:Number,attribute:hG.LIVE_THRESHOLD,useDefault:!0}),lW=hI({reflect:!0,type:Boolean,attribute:hG.LIVE}),lK=hI({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,[fK]),lz(),r}return i(r,t),r}(l),lN=h2("____private_paused_1"),l$=h2("____private_streamType_2"),lD=h2("____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,h0(t,lN)[lN]=lZ(t,!1),h0(t,l$)[l$]=lY(t,"vod"),h0(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(hG.ARIA_LABEL)||this.setAttribute(hG.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 hh(fZ(),d_('<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 h0(this,lN)[lN]},set:function(e){h0(this,lN)[lN]=e}},{key:"streamType",get:function(){return h0(this,l$)[l$]},set:function(e){h0(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 h0(this,lD)[lD]},set:function(e){h0(this,lD)[lD]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(fY,this._updatePaused),this._player.removeEventListener(fJ,this._updateLive)),this._player=e,this._updatePaused(),this._updateLive(),void 0!==this._player&&(this._player.addEventListener(fY,this._updatePaused),this._player.addEventListener(fJ,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 f0=c$(fX());function f1(){var e=a(["<span>","</span>"]);return f1=function(){return e},e}var f2=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];function f5(){var e=a([":host{pointer-events:none}"]);return f5=function(){return e},e}l8=hO("theoplayer-ad-display"),l7=dU(["player"]),l9=hN(),se=hI({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=[dX,f0],l6(),t}return i(t,e),t}(l),l5=h2("____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}),h0(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(fh);if(void 0===i||!i.playing||0===a.length){t._text="",t.style.display="none";return}if(a.length>1){var o=dR(t._player.ads.currentAds||[],fh);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 hh(f1(),this._text)},v(t,[{key:"_text",get:function(){return h0(this,l5)[l5]},set:function(e){h0(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(f2,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(f2,this._updateFromPlayer))}}]),t}(hR),st=(si=(sn=o(l3,[[l9,1,"_text"],[se,4,"player"]],[l8,l7],hR)).e)[0],sr=si[1],e.AdDisplay=(sa=sn.c)[0],l6=sa[1],l4);var f3=c$(f5());function f4(){var e=a(["<span>Content will resume in ","s</span>"]);return f4=function(){return e},e}var f8=["adbreakbegin","adbreakend","adbreakchange","updateadbreak"];function f7(){var e=a(["<slot>Visit Advertiser</slot>"]);return f7=function(){return e},e}su=hO("theoplayer-ad-countdown"),sc=dU(["player"]),sd=hN(),sp=hI({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=[dX,f3],sh(),t}return i(t,e),t}(l),so=h2("____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}),h0(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 hh(f4(),this._maxRemainingDuration)},v(t,[{key:"_maxRemainingDuration",get:function(){return h0(this,so)[so]},set:function(e){h0(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(f8,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(f8,this._onAdChange))}}]),t}(hR),sy=(sm=(sv=o(sl,[[sd,1,"_maxRemainingDuration"],[sp,4,"player"]],[su,sc],hR)).e)[0],sf=sm[1],e.AdCountdown=(s_=sv.c)[0],sh=s_[1],ss);var f6=["adbegin","adend","adloaded","updatead","adskip"];sb=hO("theoplayer-ad-clickthrough-button"),sg=dU(["player"]),sw=hI({reflect:!0,type:String,attribute:hG.CLICKTHROUGH}),sx=hI({reflect:!1,attribute:!1}),e.AdClickThroughButton=void 0;var f9=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=dR(null!=(e=n.currentAds)?e:[],fh);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 hh(f7())},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(f6,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(f6,this._updateFromPlayer))}}]),t}(sk=e.LinkButton);function ve(){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 ve=function(){return e},e}sE=(sT=o(f9,[[sw,4,"clickThrough"],[sx,4,"player"]],[sb,sg],sk)).e[0],e.AdClickThroughButton=(sA=sT.c)[0],(0,sA[1])();var vt=c$(ve());function vr(){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 vr=function(){return e},e}var vn=["adbegin","adend","adloaded","updatead","adskip"];sP=hO("theoplayer-ad-skip-button"),sO=dU(["player"]),sI=hN(),sN=hN(),s$=hI({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,[vt]),sM(),r}return i(r,t),r}(l),sC=h2("____private__showCountdown_1"),sL=h2("____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}),h0(t,sC)[sC]=(sF(t),sD(t,!1)),h0(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=dR(null!=(e=n.currentAds)?e:[],fh);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(hG.DISABLED,""),t.setAttribute(hG.ARIA_LIVE,"off")):(t._showCountdown=!1,t.style.display="",t.removeAttribute(hG.DISABLED),t.setAttribute(hG.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 hh(vr(),fa(e),this._timeToSkip,fa(t),d_('<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 h0(this,sC)[sC]},set:function(e){h0(this,sC)[sC]=e}},{key:"_timeToSkip",get:function(){return h0(this,sL)[sL]},set:function(e){h0(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(vn,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(vn,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 vi=((C={}).TopControlBar="top-control-bar",C.BottomControlBar="bottom-control-bar",C.Menu="menu",C),va=[];function vo(){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 vo=function(){return e},e}var vl=c$(vo()),vs=function(){if("u">typeof document)for(var e,t=dk([["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 vu(){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 vc(){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 vh="theoplayeruseridlechange",vd="theoplayerready";function vp(){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 vp=function(){return e},e}var vy=c$(vp()),vf="theoplayer-ui-global-styles",vv=!1;function vm(){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 vm=function(){return e},e}var v_="theoplayer-ui-full-window";function vb(e){for(var t,r,n=dN(e).filter(dC),i=dk(n);!(r=i()).done;){var a=r.value;if("0"!==getComputedStyle(a).opacity){var o=pn.fromRect(a.getBoundingClientRect());o.width>0&&o.height>0&&(t=t?t.union(o):o)}}return t}function vg(){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 vg=function(){return e},e}sZ=hO("theoplayer-ui"),sJ=hI({reflect:!1,attribute:hG.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),sX=hI({reflect:!1,attribute:hG.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),s0=hI({reflect:!0,type:Boolean,attribute:hG.FLUID}),s1=hI({reflect:!0,type:Boolean,attribute:hG.MUTED}),s2=hI({reflect:!0,type:Boolean,attribute:hG.AUTOPLAY}),s5=hI({reflect:!0,type:Boolean,attribute:hG.FULLSCREEN}),s3=hI({reflect:!0,type:Boolean,attribute:hG.PAUSED}),s4=hI({reflect:!0,type:Boolean,attribute:hG.ENDED}),s8=hI({reflect:!0,type:Boolean,attribute:hG.CASTING}),s7=hI({reflect:!0,type:Boolean,attribute:hG.USER_IDLE}),s6=hI({reflect:!0,type:Number,attribute:hG.USER_IDLE_TIMEOUT,useDefault:!0}),s9=hI({reflect:!0,type:String,attribute:hG.DEVICE_TYPE}),ue=hI({reflect:!0,type:String,attribute:hG.STREAM_TYPE}),ut=hI({reflect:!0,type:Number,attribute:hG.DVR_THRESHOLD,useDefault:!0}),ur=hI({reflect:!0,state:!0,type:Boolean,attribute:hG.HAS_FIRST_PLAY}),un=hI({reflect:!0,state:!0,type:Boolean,attribute:hG.PLAYING_AD}),ui=hI({reflect:!0,state:!0,type:Boolean,attribute:hG.HAS_ERROR}),ua=hI({reflect:!0,state:!0,type:Boolean,attribute:hG.FULLWINDOW}),uo=hI({reflect:!0,state:!0,type:Boolean,attribute:hG.MENU_OPENED}),e.UIContainer=void 0,new(sK=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vl],t.shadowRootOptions=r({},hR.shadowRootOptions,{delegatesFocus:!0}),t.READY_EVENT=vd,sY(),t}return i(t,e),t}(l),sV=h2("____private__hasFirstPlay_1"),sH=h2("____private__isPlayingAd_2"),sG=h2("____private__hasError_3"),sQ=h2("____private__isFullWindow_4"),sW=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}),uh(t),t._configuration={},t._playerRef=du(),t._menuRef=du(),t._menuGroupRef=du(),t._menuOpened=!1,t._topChromeRef=du(),t._topChromeSlotRef=du(),t._bottomChromeRef=du(),t._bottomChromeSlotRef=du(),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,h0(t,sV)[sV]=ul(t,!1),h0(t,sH)[sH]=us(t,!1),h0(t,sG)[sG]=uu(t,!1),h0(t,sQ)[sQ]=uc(t,!1),t._onMutation=function(e){var r=t._playerRef.value;if(r)for(var n,i=dk(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];dA(u)&&dj(u,r,t.registerStateReceiver_)}for(var c=0;c<l.length;c++){var h=l[c];dA(h)&&dj(h,r,t.unregisterStateReceiver_)}}}},t._onSlotChange=function(){t._playerRef.value&&dj(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=dC(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(),vs&&document[vs.fullscreenEnabled_]&&t[vs.requestFullscreen_]){var n,i,a=t[vs.requestFullscreen_](r({navigationUI:"hide"},null==(i=t._configuration)||null==(n=i.ui)?void 0:n.fullscreenOptions));a&&a.then&&a.then(dT,dT)}else t._player&&t._player.presentation.supportsMode("fullscreen")?t._player.presentation.requestMode("fullscreen"):t._isFullWindow||(t._isFullWindow=!0,document.documentElement.classList.add(v_),window.addEventListener("keydown",t._exitFullscreenOnEsc),t._onFullscreenChange())},t._onExitFullscreen=function(e){if(e.stopPropagation(),vs){var r=document[vs.exitFullscreen_]();r&&r.then&&r.then(dT,dT)}t._player&&"fullscreen"===t._player.presentation.currentMode&&t._player.presentation.requestMode("inline"),t._isFullWindow&&(t._isFullWindow=!1,document.documentElement.classList.remove(v_),window.removeEventListener("keydown",t._exitFullscreenOnEsc),t._onFullscreenChange())},t._onFullscreenChange=function(){var e=!1;if(void 0!==vs){var r=document[vs.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==hQ.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?y9(t,{"--theoplayer-video-width":""+r,"--theoplayer-video-height":""+n}):y9(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=dk(t._stateReceivers);!(n=i()).done;){var a=n.value;a[dq].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=dk(t._stateReceivers);!(e=n()).done;){var i=e.value;i[dq].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=dR(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=dk(t._stateReceivers);!(r=i()).done;){var a=r.value;a[dq].indexOf("activeVideoQuality")>=0&&(a.activeVideoQuality=n)}},t._updateTargetVideoQualities=function(){for(var e,r=pN(t._activeVideoTrack),n=dk(t._stateReceivers);!(e=n()).done;){var i=e.value;i[dq].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=pi();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(hK(e.keyCode))return void t.setUserIdle_();var r=function e(t){if(dC(t)&&"none"!==getComputedStyle(t).display){if(null!==t.getAttribute(hG.TV_FOCUS))return d$(t);for(var r=dI(t),n=0;n<r.length;n++){var i=e(r[n]);if(i)return i}}}(t),n=d$(t),i=pi();if(!i){var a=null!=r?r:n;a.length>0&&(a[0].focus(),i=a[0])}!t.isUserIdle_()&&(e.keyCode===hQ.ENTER?null!==i&&(e.preventDefault(),i.click()):hW(e.keyCode)&&pa(t,n,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},t._onKeyUp=function(e){hK(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&&vb(t._topChromeSlotRef.value),n=t._bottomChromeSlotRef.value&&vb(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=dk(t._stateReceivers);!(r=n()).done;){var i=r.value;i[dq].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),!vv){if(cM)document.adoptedStyleSheets.push(vy.styleSheet);else if(!document.getElementById(vf)){var e,t=document.createElement("style");t.id=vf;var r=window.litNonce;void 0!==r&&t.setAttribute("nonce",r),e=vy.cssText,void 0===t.textContent?t.innerText=e:t.textContent=e,document.head.appendChild(t)}vv=!0}this.hasAttribute(hG.DEVICE_TYPE)||(this.deviceType=vu()?"mobile":vc()?"tv":"desktop"),this.hasAttribute(hG.PAUSED)||(this.paused=!0),this.tryInitializePlayer_();for(var i,a,o=dk(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!==vs&&(document.addEventListener(vs.fullscreenchange_,this._onFullscreenChange),document.addEventListener(vs.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.autoplay=this.autoplay,this._updateAspectRatio(),this._updateError(),this._updatePausedAndEnded(),this._updateCasting(),this.addPlayerListeners_(this._player),this.propagatePlayerToAllReceivers_(),this.dispatchEvent(pe(vd)))},o.createRenderRoot=function(){var e=n.prototype.createRenderRoot.call(this);return e.addEventListener(pg,this._onToggleMenu),e.addEventListener(y8,this._onEnterFullscreen),e.addEventListener(y7,this._onExitFullscreen),e.addEventListener(fc,this._onPreviewTimeChange),e},o.firstUpdated=function(){this._menuGroupRef.value&&!E(this._menuGroupRef,e.MenuGroup)&&customElements.upgrade(this._menuGroupRef.value),this.tryInitializePlayer_(),this._playerRef.value&&dj(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!==vs&&(document.removeEventListener(vs.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(vs.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[dq];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=pN(this._activeVideoTrack))),r.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)},o.propagatePlayerToAllReceivers_=function(){for(var e,t=dk(this._stateReceivers);!(e=t()).done;){var r=e.value;r[dq].indexOf("player")>=0&&(r.player=this._player)}},o.removeStateFromReceiver_=function(e){e[dq].indexOf("player")>=0&&(e.player=void 0)},o.openMenu_=function(e,t){var r=pn.fromRect(this._topChromeRef.value.getBoundingClientRect()),n=pn.fromRect(this._bottomChromeRef.value.getBoundingClientRect()),i=!0,a=!0;if(void 0!==t){var o=pn.fromRect(this.getBoundingClientRect()),l=pn.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,y9(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(hG.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 hh(vm(),dd(this._playerRef),dd(this._topChromeRef),dd(this._topChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,dd(this._bottomChromeRef),dd(this._bottomChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,dd(this._menuRef),dd(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)}},{key:"autoplay",get:function(){return this._autoplay},set:function(e){this._autoplay=e,this._player&&(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=dk(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dq].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(pe(vh)))}},{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,dB(this,hG.MOBILE,"mobile"===e),dB(this,hG.TV,"tv"===e),window.removeEventListener("keydown",this._onTvKeyDown),"tv"===e&&window.addEventListener("keydown",this._onTvKeyDown);for(var t,r=dk(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dq].indexOf("deviceType")>=0&&(n.deviceType=e)}}}},{key:"streamType",get:function(){return this._streamType},set:function(e){if(this._streamType!==e){this._streamType=e;for(var t,r=dk(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dq].indexOf("streamType")>=0&&(n.streamType=e)}var i=pe("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 h0(this,sV)[sV]},set:function(e){h0(this,sV)[sV]=e}},{key:"_isPlayingAd",get:function(){return h0(this,sH)[sH]},set:function(e){h0(this,sH)[sH]=e}},{key:"_hasError",get:function(){return h0(this,sG)[sG]},set:function(e){h0(this,sG)[sG]=e}},{key:"_isFullWindow",get:function(){return h0(this,sQ)[sQ]},set:function(e){h0(this,sQ)[sQ]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){this._menuOpened!==e&&(this._menuOpened=e,dB(this,hG.MENU_OPENED,e))}}]),a}(hR),ul=(up=(ud=o(sW,[[sJ,4,"configuration"],[sX,4,"source"],[s0,4,"fluid"],[s1,4,"muted"],[s2,4,"autoplay"],[s5,4,"fullscreen"],[s3,4,"paused"],[s4,4,"ended"],[s8,4,"casting"],[s7,4,"userIdle"],[s6,4,"userIdleTimeout"],[s9,4,"deviceType"],[ue,4,"streamType"],[ut,4,"dvrThreshold"],[ur,1,"_hasFirstPlay"],[un,1,"_isPlayingAd"],[ui,1,"_hasError"],[ua,1,"_isFullWindow"],[uo,4,"menuOpened_"]],[sZ],hR)).e)[0],us=up[1],uu=up[2],uc=up[3],uh=up[4],e.UIContainer=(uy=ud.c)[0],sY=uy[1],sK);var vk=c$(vg());function vw(){var e=a(["<theoplayer-ui ",' .configuration="','" .fluid="','" .muted="','" .autoplay="','" .deviceType="','" .streamType="','" .userIdleTimeout="','" .dvrThreshold="','" @theoplayerready="','" @theoplayeruseridlechange="','" @theoplayerstreamtypechange="','">',"</theoplayer-ui>"]);return vw=function(){return e},e}function vx(){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 vx=function(){return e},e}function vE(){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 vE=function(){return e},e}uE=hO("theoplayer-default-ui"),uA=hN(),L={slot:"title",flatten:!0},uC=hI({reflect:!1,attribute:hG.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),uL=hI({reflect:!1,attribute:hG.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),uS=hI({reflect:!0,type:Boolean,attribute:hG.FLUID}),uR=hI({reflect:!0,type:Boolean,attribute:hG.MUTED}),uP=hI({reflect:!0,type:Boolean,attribute:hG.AUTOPLAY}),uO=hI({reflect:!0,type:String,attribute:hG.STREAM_TYPE}),uM=hI({reflect:!0,type:Number,attribute:hG.USER_IDLE_TIMEOUT,useDefault:!0}),uB=hI({reflect:!0,type:String,attribute:hG.DEVICE_TYPE}),uI=hI({reflect:!0,type:Number,attribute:hG.DVR_THRESHOLD,useDefault:!0}),uN=hN(),e.DefaultUI=void 0,new(ux=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vk],t.shadowRootOptions=r({},hR.shadowRootOptions,{delegatesFocus:!0}),t.READY_EVENT=vd,uT(),t}return i(t,e),t}(l),uf=h2("____private__timeRangeInert_1"),uv=h2("____private_titleSlotNodes_2"),um=h2("____private_fluid_3"),u_=h2("____private_muted_4"),ub=h2("____private_autoplay_5"),ug=h2("____private_streamType_6"),uk=h2("____private__hasTitle_7"),uw=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this)||this,uf,{writable:!0,value:void 0}),Object.defineProperty(r,uv,{writable:!0,value:void 0}),Object.defineProperty(r,um,{writable:!0,value:void 0}),Object.defineProperty(r,u_,{writable:!0,value:void 0}),Object.defineProperty(r,ub,{writable:!0,value:void 0}),Object.defineProperty(r,ug,{writable:!0,value:void 0}),Object.defineProperty(r,uk,{writable:!0,value:void 0}),uV(r),r._uiRef=du(),h0(r,uf)[uf]=u$(r,!1),r._timeRangeInertTimeout=0,r._appliedExtensions=!1,r._configuration={},r._source=void 0,r._userIdleTimeout=void 0,r._deviceType="desktop",r._dvrThreshold=60,h0(r,uv)[uv]=uD(r),h0(r,um)[um]=uq(r,!1),h0(r,u_)[u_]=uF(r,!1),h0(r,ub)[ub]=uU(r,!1),h0(r,ug)[ug]=uj(r,"vod"),h0(r,uk)[uk]=uz(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(pe(vh))},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(hG.DEVICE_TYPE)||(this.deviceType=vu()?"mobile":vc()?"tv":"desktop"),!this._appliedExtensions){this._appliedExtensions=!0;for(var t,r=dk(va);!(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(pe(vd))},n.render=function(){return hh(vw(),dd(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 hh(vx(),fa({display:this._hasTitle?"":"none"}),this._onTitleSlotChange,this._timeRangeInert,fa({display:"live"===this.streamType?"none":""}))},v(t,[{key:"_timeRangeInert",get:function(){return h0(this,uf)[uf]},set:function(e){h0(this,uf)[uf]=e}},{key:"titleSlotNodes",get:function(){return h0(this,uv)[uv]},set:function(e){h0(this,uv)[uv]=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 h0(this,um)[um]},set:function(e){h0(this,um)[um]=e}},{key:"muted",get:function(){return h0(this,u_)[u_]},set:function(e){h0(this,u_)[u_]=e}},{key:"autoplay",get:function(){return h0(this,ub)[ub]},set:function(e){h0(this,ub)[ub]=e}},{key:"streamType",get:function(){return h0(this,ug)[ug]},set:function(e){h0(this,ug)[ug]=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,dB(this,hG.MOBILE,"mobile"===e),dB(this,hG.TV,"tv"===e))}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e}},{key:"_hasTitle",get:function(){return h0(this,uk)[uk]},set:function(e){h0(this,uk)[uk]=e}}]),t}(hR),u$=(uG=(uH=o(uw,[[uA,1,"_timeRangeInert"],[function(e,t){var r=(null!=L?L:{}).slot,n="slot"+(r?"[name="+r+"]":":not([name])");return h$(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"],[uC,4,"configuration"],[uL,4,"source"],[uS,1,"fluid"],[uR,1,"muted"],[uP,1,"autoplay"],[uO,1,"streamType"],[uM,4,"userIdleTimeout"],[uB,4,"deviceType"],[uI,4,"dvrThreshold"],[uN,1,"_hasTitle"]],[uE],hR)).e)[0],uD=uG[1],uq=uG[2],uF=uG[3],uU=uG[4],uj=uG[5],uz=uG[6],uV=uG[7],e.DefaultUI=(uQ=uH.c)[0],uT=uQ[1],ux);var vT=c$(vE());function vA(){var e=a(['<span part="icon">','<span part="warning-icon" style="','">',"</span></span>"]);return vA=function(){return e},e}uY=hO("theolive-bad-network-button"),uJ=dU(["player"]),u1=hN(),u2=hI({reflect:!1,attribute:!1}),new(uZ=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuButton.styles,[vT]),uX(),r}return i(r,t),r}(l),uW=h2("____private__inBadNetworkMode_1"),uK=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uW,{writable:!0,value:void 0}),h0(t,uW)[uW]=(u3(t),u5(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(hG.ARIA_LABEL)||this.setAttribute(hG.ARIA_LABEL,"open settings menu")},r.render=function(){var e={display:this._inBadNetworkMode?"":"none"};return hh(vA(),d_(y1),fa(e),d_('<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 h0(this,uW)[uW]},set:function(e){h0(this,uW)[uW]=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}(u0=e.MenuButton),u5=(u8=(u4=o(uK,[[u1,1,"_inBadNetworkMode"],[u2,4,"player"]],[uY,uJ],u0)).e)[0],u3=u8[1],(u7=u4.c)[0],uX=u7[1],uZ),u6=dU(["player"]);var vC=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}(u9=e.RadioButton);function vL(){var e=a(["<slot>High Quality</slot>"]);return vL=function(){return e},e}ce=(ct=o(vC,[],[u6],u9).c)[0],(0,ct[1])(),cr=hO("theolive-automatic-quality-selector");var vS=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 hh(vL())},t}(ce);function vR(){var e=a(["<slot>Low Quality</slot>"]);return vR=function(){return e},e}(cn=o(vS,[],[cr],ce).c)[0],(0,cn[1])(),ci=hO("theolive-bad-network-quality-selector");var vP=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 hh(vR())},t}(ce);function vO(){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 vO=function(){return e},e}function vM(){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 vM=function(){return e},e}(ca=o(vP,[],[ci],ce).c)[0],(0,ca[1])(),cs=hO("theolive-bad-network-menu"),new(cl=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pM],cu(),t}return i(t,e),t}(l),co=function(t){function r(){var e;return e=t.apply(this,arguments)||this,e._radioGroupRef=du(),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 hh(vO(),dd(this._radioGroupRef),this._onChange)},r}(hR),(cc=o(co,[],[cs],hR).c)[0],cu=cc[1],cl);var vB=c$(vM());function vI(){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 vI=function(){return e},e}cm=hO("theolive-default-ui"),cg=hN(),ck=hN(),cw=hN(),cx=hN(),e.THEOliveDefaultUI=void 0,new(cv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vB],c_(),t}return i(t,e),t}(l),ch=h2("____private__announcementType_1"),cd=h2("____private__announcementMessage_2"),cp=h2("____private__hidePlayButton_3"),cy=h2("____private__hideErrorDisplay_4"),cf=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this,t)||this,ch,{writable:!0,value:void 0}),Object.defineProperty(r,cd,{writable:!0,value:void 0}),Object.defineProperty(r,cp,{writable:!0,value:void 0}),Object.defineProperty(r,cy,{writable:!0,value:void 0}),h0(r,ch)[ch]=(cL(r),cE(r,"")),h0(r,cd)[cd]=cT(r,""),h0(r,cp)[cp]=cA(r,!1),h0(r,cy)[cy]=cC(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(hG.HAS_ERROR),this._hideErrorDisplay=!0},r.stopHidingPlayerError=function(){var e;null==(e=this._uiRef.value)||e.setAttribute(hG.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 hh(vI(),fa(e),fa(t),fa(r),this._announcementMessage,fa(n),fa(n),fa(i))},v(t,[{key:"_announcementType",get:function(){return h0(this,ch)[ch]},set:function(e){h0(this,ch)[ch]=e}},{key:"_announcementMessage",get:function(){return h0(this,cd)[cd]},set:function(e){h0(this,cd)[cd]=e}},{key:"_hidePlayButton",get:function(){return h0(this,cp)[cp]},set:function(e){h0(this,cp)[cp]=e}},{key:"_hideErrorDisplay",get:function(){return h0(this,cy)[cy]},set:function(e){h0(this,cy)[cy]=e}}]),t}(cb=e.DefaultUI),cE=(cR=(cS=o(cf,[[cg,1,"_announcementType"],[ck,1,"_announcementMessage"],[cw,1,"_hidePlayButton"],[cx,1,"_hideErrorDisplay"]],[cm],cb)).e)[0],cT=cR[1],cA=cR[2],cC=cR[3],cL=cR[4],e.THEOliveDefaultUI=(cP=cS.c)[0],c_=cP[1],cv),e.Attribute=hG,e.CastButton=fC,e.ColorStops=fr,e.ExtensionSlot=vi,e.StateReceiverMixin=function(e,t){var r,n,a=dU(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=hX,e.linkButtonTemplate=function(e,t){return void 0===t&&(t=""),hX("<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){va.push(e)},e.stateReceiver=dU,e.version="2.1.1"},"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 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);