1/*! For license information please see 911275cd3136d26c2985b1d15de7b3b57f249aa7-08a432be50141170d53a.js.LICENSE.txt */ 2(self.webpackChunkpositive_money=self.webpackChunkpositive_money||[]).push([[91],{8075:function(e,t,n){"use strict";var i=n(453),a=n(487),r=a(i("String.prototype.indexOf"));e.exports=function(e,t){var n=i(e,!!t);return"function"==typeof n&&r(e,".prototype.")>-1?a(n):n}},487:function(e,t,n){"use strict";var i=n(6743),a=n(453),r=n(6897),o=n(9675),s=a("%Function.prototype.apply%"),l=a("%Function.prototype.call%"),d=a("%Reflect.apply%",!0)||i.call(l,s),u=n(655),c=a("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var t=d(i,l,arguments);return r(t,1+c(0,e.length-(arguments.length-1)),!0)};var h=function(){return d(i,s,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h},2880:function(e,t,n){"use strict";var i,a;n.d(t,{n6:function(){return E},PJ:function(){return g}});var r="blockquote",o="block",s="code",l="heading",d="inlineItem",u="itemLink",c="link",h="listItem",m="list",p="paragraph",v="root",f="span",b="thematicBreak";(i={})[r]=[p],i[o]=[],i[s]=[],i[l]="inlineNodes",i[d]=[],i[u]="inlineNodes",i[c]="inlineNodes",i[h]=[p,m],i[m]=[h],i[p]="inlineNodes",i[v]=[r,s,m,p,l,o,b],i[f]=[],i[b]=[],(a={})[r]=["children","attribution"],a[o]=["item"],a[s]=["language","highlight","code"],a[l]=["level","children","style"],a[d]=["item"],a[u]=["item","children","meta"],a[c]=["url","children","meta"],a[h]=["children"],a[m]=["style","children"],a[p]=["children","style"],a[v]=["children"],a[f]=["value","marks"],a[b]=[];function g(e){return e.type===c}function y(e){return e&&"schema"in e&&"document"in e}function E(e){if(!e)return!0;var t=function(e){return e&&"value"in e&&y(e.value)}(e)?e.value:y(e)?e:null;if(!t)throw new Error("Passed object is neither null, a Structured Text value or a DAST document");return"dast"===t.schema&&1===t.document.children.length&&"paragraph"===t.document.children[0].type&&1===t.document.children[0].children.length&&"span"===t.document.children[0].children[0].type&&""===t.document.children[0].children[0].value}},41:function(e,t,n){"use strict";var i=n(655),a=n(8068),r=n(9675),o=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new r("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new r("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],c=!!o&&o(e,t);if(i)i(e,t,{configurable:null===d&&c?c.configurable:!d,enumerable:null===s&&c?c.enumerable:!s,value:n,writable:null===l&&c?c.writable:!l});else{if(!u&&(s||l||d))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},8452:function(e,t,n){"use strict";var i=n(1189),a="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),r=Object.prototype.toString,o=Array.prototype.concat,s=n(41),l=n(592)(),d=function(e,t,n,i){if(t in e)if(!0===i){if(e[t]===n)return}else if("function"!=typeof(a=i)||"[object Function]"!==r.call(a)||!i())return;var a;l?s(e,t,n,!0):s(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},r=i(t);a&&(r=o.call(r,Object.getOwnPropertySymbols(t)));for(var s=0;s<r.length;s+=1)d(e,r[s],t[r[s]],n[r[s]])};u.supportsDescriptors=!!l,e.exports=u},655:function(e,t,n){"use strict";var i=n(453)("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch(a){i=!1}e.exports=i},1237:function(e){"use strict";e.exports=EvalError},9383:function(e){"use strict";e.exports=Error},9290:function(e){"use strict";e.exports=RangeError},9538:function(e){"use strict";e.exports=ReferenceError},8068:function(e){"use strict";e.exports=SyntaxError},9675:function(e){"use strict";e.exports=TypeError},5345:function(e){"use strict";e.exports=URIError},9353:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,i=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};e.exports=function(e){var a=this;if("function"!=typeof a||"[object Function]"!==t.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var r,o=function(e,t){for(var n=[],i=t||0,a=0;i<e.length;i+=1,a+=1)n[a]=e[i];return n}
2(arguments,1),s=n(0,a.length-o.length),l=[],d=0;d<s;d++)l[d]="$"+d;if(r=Function("binder","return function ("+function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var t=a.apply(this,i(o,arguments));return Object(t)===t?t:this}return a.apply(e,i(o,arguments))})),a.prototype){var u=function(){};u.prototype=a.prototype,r.prototype=new u,u.prototype=null}return r}},6743:function(e,t,n){"use strict";var i=n(9353);e.exports=Function.prototype.bind||i},8828:function(e){"use strict";e.exports=Object.assign},2532:function(e,t,n){"use strict";n.d(t,{G:function(){return B},L:function(){return g},M:function(){return S},P:function(){return T},_:function(){return l},a:function(){return s},b:function(){return m},c:function(){return c},g:function(){return p},h:function(){return u},w:function(){return v}});var i=n(4506),a=n(6540),r=(n(5147),n(5556)),o=n.n(r);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i<r.length;i++)t.indexOf(n=r[i])>=0||(a[n]=e[n]);return a}const d=["images","placeholder"],u=()=>"undefined"!=typeof HTMLImageElement&&"loading"in HTMLImageElement.prototype;const c=e=>{var t;return(e=>{var t,n;return Boolean(null==e||null==(t=e.images)||null==(n=t.fallback)?void 0:n.src)})(e)?e:(e=>Boolean(null==e?void 0:e.gatsbyImageData))(e)?e.gatsbyImageData:(e=>Boolean(null==e?void 0:e.gatsbyImage))(e)?e.gatsbyImage:null==e||null==(t=e.childImageSharp)?void 0:t.gatsbyImageData};function h(e,t,n){const i={};let a="gatsby-image-wrapper";return"fixed"===n?(i.width=e,i.height=t):"constrained"===n&&(a="gatsby-image-wrapper gatsby-image-wrapper-constrained"),{className:a,"data-gatsby-image-wrapper":"",style:i}}function m(e,t,n,i,a){return void 0===a&&(a={}),s({},n,{loading:i,shouldLoad:e,"data-main-image":"",style:s({},a,{opacity:t?1:0})})}function p(e,t,n,i,a,r,o,l){const d={};r&&(d.backgroundColor=r,"fixed"===n?(d.width=i,d.height=a,d.backgroundColor=r,d.position="relative"):("constrained"===n||"fullWidth"===n)&&(d.position="absolute",d.top=0,d.left=0,d.bottom=0,d.right=0)),o&&(d.objectFit=o),l&&(d.objectPosition=l);const u=s({},e,{"aria-hidden":!0,"data-placeholder-image":"",style:s({opacity:t?0:1,transition:"opacity 500ms linear"},d)});return u}function v(e,t){var n,a;const{images:r,placeholder:o}=e,u=s({},l(e,d),{images:s({},r,{sources:[]}),placeholder:o&&s({},o,{sources:[]})});var c;return t.forEach((t=>{var n;let{media:a,image:r}=t;a&&(r.layout,e.layout,(n=u.images.sources).push.apply(n,(0,i.A)(r.images.sources.map((e=>s({},e,{media:a})))).concat([{media:a,srcSet:r.images.fallback.srcSet}])),u.placeholder&&u.placeholder.sources.push({media:a,srcSet:r.placeholder.fallback}))})),(n=u.images.sources).push.apply(n,(0,i.A)(r.sources)),null!=o&&o.sources&&(null==(c=u.placeholder)||(a=c.sources).push.apply(a,(0,i.A)(o.sources))),u}const f=["children"],b=function(e){let{layout:t,width:n,height:i}=e;return"fullWidth"===t?a.createElement("div",{"aria-hidden":!0,style:{paddingTop:i/n*100+"%"}}):"constrained"===t?a.createElement("div",{style:{maxWidth:n,display:"block"}},a.createElement("img",{alt:"",role:"presentation","aria-hidden":"true",src:"data:image/svg+xml;charset=utf-8,%3Csvg%20height='"+i+"'%20width='"+n+"'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%3E%3C/svg%3E",style:{maxWidth:"100%",display:"block",position:"static"}})):null},g=function(e){let{children:t}=e,n=l(e,f);return a.createElement(a.Fragment,null,a.createElement(b,s({},n)),t,null)},y=["src","srcSet","loading","alt","shouldLoad"],E=["fallback","sources","shouldLoad"],_=function(e){let{src:t,srcSet:n,loading:i,alt:r="",shouldLoad:o}=e,d=l(e,y);return a.createElement("img",s({},d,{decoding:"async",loading:i,src:o?t:void 0,"data-src":o?void 0:t,srcSet:o?n:void 0,"data-srcset":o?void 0:n,alt:r}))},A=function(e){let{fallback:t,sources:n=[],shouldLoad:i=!0}=e,r=l(e,E);const o=r.sizes||(null==t?void 0:t.sizes),d=a.createElement(_,s({},r,t,{sizes:o,shouldLoad:i}));return n.length?a.createElement("picture",null,n.map((e=>{let{media:t,srcSet:n,type:r}=e;return a.createElement("source",{key:t+"-"+r+"-"+n,type:r,media:t,srcSet:i?n:void 0,"data-srcset":i?void 0:n,sizes:o})})),d):d};var k;_.propTypes={src:r.string.isRequired,alt:r.string.isRequired,sizes:r.string,srcSet:r.string,shouldLoad:r.bool},A.displayName="Picture",A.propTypes={alt:r.string.isRequired,shouldLoad:r.bool,fallback:r.exact({src:r.string.isRequired,srcSet:r.string,sizes:r.string}),sources:r.arrayOf(r.oneOfType([r.exact({media:r.string.isRequired,type:r.string,sizes:r.string,srcSet:r.string.isRequired}),r.exact({media:r.string,type:r.string.isRequired,sizes:r.string,srcSet:r.string.isRequired})]))};const w=["fallback"],T=function(e){let{fallback:t}=e,n=l(e,w);return t?a.createElement(A,s({},n,{fallback:{src:t},"aria-hidden":!0,alt:""})):a.createElement("div",s({},n))};T.displayName="Placeholder",T.propTypes={fallback:r.string,sources:null==(k=A.propTypes)?void 0:k.sources,alt:function(e,t,n){return e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null}};const S=function(e){return a.createElement(a.Fragment,null,a.createElement(A,s({},e)),a.createElement("noscript",null,a.createElement(A,s({},e,{shouldLoad:!0}))))};
2S.displayName="MainImage",S.propTypes=A.propTypes;const C=["as","className","class","style","image","loading","imgClassName","imgStyle","backgroundColor","objectFit","objectPosition"],I=["style","className"],x=e=>e.replace(/\n/g,""),L=function(e,t,n){for(var i=arguments.length,a=new Array(i>3?i-3:0),r=3;r<i;r++)a[r-3]=arguments[r];return e.alt||""===e.alt?o().string.apply(o(),[e,t,n].concat(a)):new Error('The "alt" prop is required in '+n+'. If the image is purely presentational then pass an empty string: e.g. alt="". Learn more: https://a11y-style-guide.com/style-guide/section-media.html')},R={image:o().object.isRequired,alt:L},M=["as","image","style","backgroundColor","className","class","onStartLoad","onLoad","onError"],D=["style","className"],O=new Set;let N,P;const U=function(e){let{as:t="div",image:i,style:r,backgroundColor:o,className:d,class:c,onStartLoad:m,onLoad:p,onError:v}=e,f=l(e,M);const{width:b,height:g,layout:y}=i,E=h(b,g,y),{style:_,className:A}=E,k=l(E,D),w=(0,a.useRef)(),T=(0,a.useMemo)((()=>JSON.stringify(i.images)),[i.images]);c&&(d=c);const S=function(e,t,n){let i="";return"fullWidth"===e&&(i='<div aria-hidden="true" style="padding-top: '+n/t*100+'%;"></div>'),"constrained"===e&&(i='<div style="max-width: '+t+'px; display: block;"><img alt="" role="presentation" aria-hidden="true" src="data:image/svg+xml;charset=utf-8,%3Csvg%20height=\''+n+"'%20width='"+t+"'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%3E%3C/svg%3E\" style=\"max-width: 100%; display: block; position: static;\"></div>"),i}(y,b,g);return(0,a.useEffect)((()=>{N||(N=n.e(108).then(n.bind(n,1108)).then((e=>{let{renderImageToString:t,swapPlaceholderImage:n}=e;return P=t,{renderImageToString:t,swapPlaceholderImage:n}})));const e=w.current.querySelector("[data-gatsby-image-ssr]");if(e&&u())return e.complete?(null==m||m({wasCached:!0}),null==p||p({wasCached:!0}),setTimeout((()=>{e.removeAttribute("data-gatsby-image-ssr")}),0)):(null==m||m({wasCached:!0}),e.addEventListener("load",(function t(){e.removeEventListener("load",t),null==p||p({wasCached:!0}),setTimeout((()=>{e.removeAttribute("data-gatsby-image-ssr")}),0)}))),void O.add(T);if(P&&O.has(T))return;let t,a;return N.then((e=>{let{renderImageToString:n,swapPlaceholderImage:o}=e;w.current&&(w.current.innerHTML=n(s({isLoading:!0,isLoaded:O.has(T),image:i},f)),O.has(T)||(t=requestAnimationFrame((()=>{w.current&&(a=o(w.current,T,O,r,m,p,v))}))))})),()=>{t&&cancelAnimationFrame(t),a&&a()}}),[i]),(0,a.useLayoutEffect)((()=>{O.has(T)&&P&&(w.current.innerHTML=P(s({isLoading:O.has(T),isLoaded:O.has(T),image:i},f)),null==m||m({wasCached:!0}),null==p||p({wasCached:!0}))}),[i]),(0,a.createElement)(t,s({},k,{style:s({},_,r,{backgroundColor:o}),className:A+(d?" "+d:""),ref:w,dangerouslySetInnerHTML:{__html:S},suppressHydrationWarning:!0}))},B=(0,a.memo)((function(e){return e.image?(0,a.createElement)(U,e):null}));B.propTypes=R,B.displayName="GatsbyImage";const W=["src","__imageData","__error","width","height","aspectRatio","tracedSVGOptions","placeholder","formats","quality","transformOptions","jpgOptions","pngOptions","webpOptions","avifOptions","blurredOptions","breakpoints","outputPixelDensities"];function H(e){return function(t){let{src:n,__imageData:i,__error:r}=t,o=l(t,W);return r&&console.warn(r),i?a.createElement(e,s({image:i},o)):(console.warn("Image not loaded",n),null)}}const j=H((function(e){let{as:t="div",className:n,class:i,style:r,image:o,loading:d="lazy",imgClassName:u,imgStyle:c,backgroundColor:v,objectFit:f,objectPosition:b}=e,y=l(e,C);if(!o)return console.warn("[gatsby-plugin-image] Missing image prop"),null;i&&(n=i),c=s({objectFit:f,objectPosition:b,backgroundColor:v},c);const{width:E,height:_,layout:A,images:k,placeholder:w,backgroundColor:L}=o,R=h(E,_,A),{style:M,className:D}=R,O=l(R,I),N={fallback:void 0,sources:[]};return k.fallback&&(N.fallback=s({},k.fallback,{srcSet:k.fallback.srcSet?x(k.fallback.srcSet):void 0})),k.sources&&(N.sources=k.sources.map((e=>s({},e,{srcSet:x(e.srcSet)})))),a.createElement(t,s({},O,{style:s({},M,r,{backgroundColor:v}),className:D+(n?" "+n:"")}),a.createElement(g,{layout:A,width:E,height:_},a.createElement(T,s({},p(w,!1,A,E,_,L,f,b))),a.createElement(S,s({"data-gatsby-image-ssr":"",className:u},y,m("eager"===d,!1,N,d,c)))))})),q=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return"fullWidth"!==e.layout||"width"!==t&&"height"!==t||!e[t]?o().number.apply(o(),[e,t].concat(i)):new Error('"'+t+'" '+e[t]+" may not be passed when layout is fullWidth.")},V=new Set(["fixed","fullWidth","constrained"]),F={src:o().string.isRequired,alt:L,width:q,height:q,sizes:o().string,layout:e=>{if(void 0!==e.layout&&!V.has(e.layout))return new Error("Invalid value "+e.layout+'" provided for prop "layout". Defaulting to "constrained". Valid values are "fixed", "fullWidth" or "constrained".')}};j.displayName="StaticImage",j.propTypes=F;const $=H(B);$.displayName="StaticImage",$.propTypes=F},5147:function(e){"use strict";const t=/[\p{Lu}]/u,n=/[\p{Ll}]/u,i=/^[\p{Lu}](?![\p{Lu}])/gu,a=/([\p{Alpha}\p{N}_]|$)/u,r=/[_.\- ]+/,o=new RegExp("^"+r.source),s=new RegExp(r.source+a.source,"gu"),l=new RegExp("\\d+"+a.source,"gu"),d=(e,a)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(a={pascalCase:!1,preserveConsecutiveUppercase:!1,...a},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const r=!1===a.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(a.locale),d=!1===a.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(a.locale);if(1===e.length)return a.pascalCase?d(e):r(e);return e!==r(e)&&(e=((e,i,a)=>{let r=!1,o=!1,s=!1;for(let l=0;l<e.length;l++){const d=e[l];r&&t.test(d)?(e=e.slice(0,l)+"-"+e.slice(l),r=!1,s=o,o=!0,l++):o&&s&&n.test(d)?(e=e.slice(0,l-1)+"-"+e.slice(l-1),s=o,o=!1,r=!0):(r=i(d)===d&&a(d)!==d,s=o,o=a(d)===d&&i(d)!==d)}return e})(e,r,d)),e=e.replace(o,""),e=a.preserveConsecutiveUppercase?((e,t)=>(i.lastIndex=0,e.replace(i,(e=>t(e)))))(e,r):r(e),a.pascalCase&&(e=d(e.charAt(0))+e.slice(1)),((e,t)=>(s.lastIndex=0,l.lastIndex=0,e.replace(s,((e,n)=>t(n))).replace(l,(e=>t(e)))))(e,d)};e.exports=d,e.exports.default=d},2927:function(e,t,n){"use strict";function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var i,a,r=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);o=!0);}catch(l){s=!0,a=l}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function r(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var o=n(6540),s=n(8154).Helmet,l=n(3932),d=n(8828);e.exports={HelmetDatoCms:function(e){var t=e.seo,n=e.favicon,a=e.children,u=r(e,["seo","favicon","children"]);return o.createElement(s,u,(t?t.tags:[]).concat(n?n.tags:[]).map((function(e,t){return o.createElement(e.tagName,d({key:"helmet-datocms-".concat(t)},l(e.attributes||{}).reduce((function(e,t){var n=i(t,2),a=n[0],r=n[1];return r&&(e[a]=r),e}),{})),e.content)})).concat(a))}}},7615:function(e,t,n){"use strict";var i=n(6540),a=n(6930);t.A=function(e){let{items:t,renderCustomTitle:n=null,defaultActive:r=0}=e;const{0:o,1:s}=(0,i.useState)(r);return 0===t.length?null:i.createElement("div",{className:"accordion"},t.map(((e,t)=>i.createElement("div",{key:t,className:"item "+(o===t?"active":""),onClick:()=>{var e;s(o===(e=t)?-1:e)}},i.createElement("div",{className:"ac-title"},i.createElement("h3",null,n?n(e):null==e?void 0:e.title),o===t?i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",viewBox:"0 0 56 56",fill:"none"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.5142 30.1179L35.0439 36.6476C35.2616 36.8579 35.5531 36.9742 35.8558 36.9716C36.1584 36.969 36.4479 36.8476 36.6619 36.6336C36.8759 36.4195 36.9973 36.13 37 35.8274C37.0026 35.5248 36.8862 35.2332 36.676 35.0155L30.1463 28.4858L36.676 21.9561C36.8862 21.7384 37.0026 21.4469 37 21.1442C36.9973 20.8416 36.8759 20.5521 36.6619 20.3381C36.4479 20.1241 36.1584 20.0027 35.8558 20C35.5531 19.9974 35.2616 20.1138 35.0439 20.324L28.5142 26.8537L21.9845 20.324C21.7658 20.119 21.476 20.007 21.1762 20.0119C20.8765 20.0168 20.5904 20.138 20.3785 20.3501C20.1666 20.5621 20.0455 20.8483 20.0408 21.1481C20.0362 21.4478 20.1483 21.7376 20.3535 21.9561L26.8821 28.4858L20.3524 35.0155C20.2421 35.122 20.1542 35.2493 20.0937 35.3902C20.0332 35.531 20.0014 35.6824 20 35.8357C19.9987 35.989 20.0279 36.141 20.086 36.2828C20.144 36.4247 20.2297 36.5535 20.3381 36.6619C20.4465 36.7703 20.5753 36.856 20.7172 36.914C20.859 36.9721 21.011 37.0013 21.1643 37C21.3176 36.9986 21.469 36.9668 21.6098 36.9063C21.7507 36.8458 21.878 36.7579 21.9845 36.6476L28.5142 30.1179Z",fill:"#011C25"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 54C42.3594 54 54 42.3594 54 28C54 13.6406 42.3594 2 28 2C13.6406 2 2 13.6406 2 28C2 42.3594 13.6406 54 28 54ZM28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"#011C25"})):i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",viewBox:"0 0 56 56",fill:"none"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.134 26.1388V16.9045C29.1288 16.6018 29.0049 16.3134 28.789 16.1013C28.5731 15.8891 28.2826 15.7702 27.9799 15.7702C27.6773 15.7702 27.3867 15.8891 27.1709 16.1013C26.955 16.3134 26.8311 16.6018 26.8259 16.9045V26.1388L17.5915 26.1388C17.2889 26.1441 17.0005 26.268 16.7883 26.4838C16.5762 26.6997 16.4573 26.9902 16.4573 27.2929C16.4573 27.5955 16.5762 27.8861 16.7883 28.102C17.0005 28.3178 17.2889 28.4417 17.5915 28.447H26.8259V37.6813C26.8355 37.981 26.9613 38.2651 27.1767 38.4736C27.3921 38.6821 27.6801 38.7986 27.9799 38.7985C28.2797 38.7984 28.5677 38.6817 28.7829 38.473C28.9982 38.2644 29.1238 37.9802 29.1332 37.6805L29.134 28.447L38.3684 28.447C38.5216 28.4496 38.6739 28.4218 38.8162 28.365C38.9586 28.3082 39.0882 28.2236 39.1975 28.1161C39.3068 28.0087 39.3936 27.8806 39.4529 27.7392C39.5122 27.5979 39.5427 27.4462 39.5427 27.2929C39.5427 27.1396 39.5122 26.9879 39.4529 26.8465C39.3936 26.7052 39.3068 26.5771 39.1975 26.4696C39.0882 26.3622 38.9586 26.2776 38.8162 26.2208C38.6739 26.164 38.5216 26.1361 38.3684 26.1388H29.134Z",fill:"#011C25"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46.3848 9.61522C36.2311 -0.538406 19.7689 -0.538406 9.61522 9.61522C-0.538407 19.7689 -0.538406 36.2311 9.61522 46.3848C19.7689 56.5384 36.2311 56.5384 46.3848 46.3848C56.5384 36.2311 56.5384 19.7689 46.3848 9.61522ZM47.799 8.20101C36.8643 -2.73367 19.1357 -2.73367 8.20101 8.20101C-2.733
267 19.1357 -2.73367 36.8643 8.20101 47.799C19.1357 58.7337 36.8643 58.7337 47.799 47.799C58.7337 36.8643 58.7337 19.1357 47.799 8.20101Z",fill:"#011C25"}))),i.createElement("div",{id:"ac-content",className:"ac-content"},i.createElement("div",{className:"ac-content",dangerouslySetInnerHTML:{__html:e.text}}),e.ctas&&i.createElement("div",{className:"cta-accordion"},i.createElement(a.A,{ctas:e.ctas})))))))}},6135:function(e,t,n){"use strict";n.d(t,{A:function(){return JA}});var i,a,r=n(6540),o="blockquote",s="block",l="code",d="heading",u="inlineItem",c="itemLink",h="link",m="listItem",p="list",v="paragraph",f="root",b="span",g="thematicBreak";(i={})[o]=[v],i[s]=[],i[l]=[],i[d]="inlineNodes",i[u]=[],i[c]="inlineNodes",i[h]="inlineNodes",i[m]=[v,p],i[p]=[m],i[v]="inlineNodes",i[f]=[o,l,p,v,d,s,g],i[b]=[],i[g]=[],(a={})[o]=["children","attribution"],a[s]=["item"],a[l]=["language","highlight","code"],a[d]=["level","children","style"],a[u]=["item"],a[c]=["item","children","meta"],a[h]=["url","children","meta"],a[m]=["children"],a[p]=["style","children"],a[v]=["children","style"],a[f]=["children"],a[b]=["value","marks"],a[g]=[];function y(e){return e.type===d}function E(e){return e.type===b}function _(e){return e.type===f}function A(e){return e.type===v}function k(e){return e.type===p}function w(e){return e.type===m}function T(e){return e.type===o}function S(e){return e.type===l}function C(e){return e.type===h}function I(e){return e.type===g}function x(e){return e&&"value"in e&&L(e.value)}function L(e){return e&&"schema"in e&&"document"in e}function R(e){var t=[];return M(e,t),t}function M(e,t){for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?M(i,t):t.push(i)}}var D,O=(D=function(e,t){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},D(e,t)},function(e,t){function n(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),N=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),a=0;for(t=0;t<n;t++)for(var r=arguments[t],o=0,s=r.length;o<s;o++,a++)i[a]=r[o];return i},P=function(e){function t(n,i){var a=e.call(this,n)||this;return a.node=i,Object.setPrototypeOf(a,t.prototype),a}return O(t,e),t}(Error),U=function(e,t){return{appliable:e,apply:function(e){return t(e)}}};function B(e,t,n,i,a){var r=function(e){return"children"in e}(t)?R(t.children.map((function(n,r){return B(e,n,"t-"+r,N([t],i),a)})).filter((function(e){return!!e}))):void 0,o=a.find((function(e){return e.appliable(t)}));if(o)return o.apply({adapter:e,node:t,children:r,key:n,ancestors:i});throw new P("Don't know how to render a node with type \""+t.type+'". Please specify a custom renderRule for it!',t)}function W(e,t,n){return t?B(e,x(t)?t.value.document:L(t)?t.document:t,"t-0",[],n):null}var H=function(){return H=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},H.apply(this,arguments)},j=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),a=0;for(t=0;t<n;t++)for(var r=arguments[t],o=0,s=r.length;o<s;o++,a++)i[a]=r[o];return i};function q(e){var t=e.customMarkRules;return U(E,(function(e){var n=e.adapter,i=e.key;return(e.node.marks||[]).reduce((function(e,a){if(e){var r=t.find((function(e){return e.appliable(a)}));return r?r.apply({adapter:n,key:i,mark:a,children:e}):n.renderNode(function(e){switch(e){case"emphasis":return"em";case"underline":return"u";case"strikethrough":return"del";case"highlight":return"mark";default:return e}}(a),{key:i},e)}}),function(e){var t=e.node,n=e.key,i=e.adapter,a=i.renderNode,r=i.renderText,o=i.renderFragment,s=t.value.split(/\n/);return 0===s.length?r(t.value,n):o(s.slice(1).reduce((function(e,t,i){return e.concat([a("br",{key:n+"-br-"+i}),r(t,n+"-line-"+i)])}),[r(s[0],n+"-line-first")]),n)}(e))}))}var V,F,$=function(e){var t=e.meta,n={};return t.forEach((function(e){["target","title","rel"].includes(e.id)&&(n[e.id]=e.value)})),n};var K="blockquote",G="block",Y="code",z="heading",Z="inlineItem",Q="itemLink",X="link",J="listItem",ee="list",te="paragraph",ne="root",ie="span",ae="thematicBreak";(V={})[K]=[te],V[G]=[],V[Y]=[],V[z]="inlineNodes",V[Z]=[],V[Q]="inlineNodes",V[X]="inlineNodes",V[J]=[te,ee],V[ee]=[J],V[te]="inlineNodes",V[ne]=[K,Y,ee,te,z,G,ae],V[ie]=[],V[ae]=[],(F={})[K]=["children","attribution"],F[G]=["item"],F[Y]=["language","highlight","code"],F[z]=["level","children","style"],F[Z]=["item"],F[Q]=["item","children","meta"],F[X]=["url","children","meta"],F[J]=["children"],F[ee]=["style","children"],F[te]=["children","style"],F[ne]=["children"],F[ie]=["value","marks"],F[ae]=[];function re(e){return e.type===G}function oe(e){return e.type===Q}function se(e){return e.type===Z}function le(e){return e&&"value"in e&&de(e.value)}
2function de(e){return e&&"schema"in e&&"document"in e}var ue=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ce=function(e){function t(n,i){var a=e.call(this,n)||this;return a.node=i,Object.setPrototypeOf(a,t.prototype),a}return ue(t,e),t}(Error);var he=function(e,t,n){if(n||2===arguments.length)for(var i,a=0,r=t.length;a<r;a++)!i&&a in t||(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))},me={renderNode:r.createElement,renderFragment:function(e,t){return r.createElement(r.Fragment,{key:t},e)},renderText:function(e,t){return e}};function pe(e,t){return(0,r.isValidElement)(e)&&null===e.key?(0,r.cloneElement)(e,{key:t}):e}function ve(e){var t=e.data,n=e.renderInlineRecord,i=e.renderLinkToRecord,a=e.renderBlock,o=e.renderText,s=e.renderNode,l=e.renderFragment,d=e.customMarkRules,u=e.customRules,c=e.customNodeRules,h=e.metaTransformer,m=function(e,t){var n=t.metaTransformer||$;return W(t.adapter,e,j(t.customNodeRules||[],[U(_,(function(e){var t=e.adapter.renderFragment,n=e.key;return t(e.children,n)})),U(A,(function(e){return(0,e.adapter.renderNode)("p",{key:e.key},e.children)})),U(k,(function(e){var t=e.adapter.renderNode,n=e.node,i=e.key,a=e.children;return t("bulleted"===n.style?"ul":"ol",{key:i},a)})),U(w,(function(e){return(0,e.adapter.renderNode)("li",{key:e.key},e.children)})),U(T,(function(e){var t=e.adapter.renderNode,n=e.key,i=e.node,a=e.children,r=i.attribution?j(a||[],[t("footer",{key:"footer"},i.attribution)]):a;return t("blockquote",{key:n},r)})),U(S,(function(e){var t=e.adapter,n=t.renderNode,i=t.renderText,a=e.key,r=e.node;return n("pre",{key:a,"data-language":r.language},n("code",null,i(r.code)))})),U(C,(function(e){var t=e.adapter.renderNode,i=e.key,a=e.children,r=e.node,o=r.meta?n({node:r,meta:r.meta}):{};return t("a",H(H({},o||{}),{key:i,href:r.url}),a)})),U(I,(function(e){return(0,e.adapter.renderNode)("hr",{key:e.key})})),U(y,(function(e){var t=e.node,n=e.adapter.renderNode,i=e.children,a=e.key;return n("h"+t.level,{key:a},i)})),q({customMarkRules:t.customMarkRules||[]})]))}(t,{adapter:{renderText:o||me.renderText,renderNode:s||me.renderNode,renderFragment:l||me.renderFragment},metaTransformer:h,customMarkRules:d,customNodeRules:he([U(se,(function(e){var i=e.node,a=e.key;if(!n)throw new ce("The Structured Text document contains an 'inlineItem' node, but no 'renderInlineRecord' prop is specified!",i);if(!le(t)||!t.links)throw new ce("The document contains an 'itemLink' node, but the passed data prop is not a Structured Text GraphQL response, or data.links is not present!",i);var r=t.links.find((function(e){return e.id===i.item}));if(!r)throw new ce("The Structured Text document contains an 'inlineItem' node, but cannot find a record with ID ".concat(i.item," inside data.links!"),i);return pe(n({record:r}),a)})),U(oe,(function(e){var n=e.node,a=e.key,r=e.children;if(!i)throw new ce("The Structured Text document contains an 'itemLink' node, but no 'renderLinkToRecord' prop is specified!",n);if(!le(t)||!t.links)throw new ce("The document contains an 'itemLink' node, but the passed data prop is not a Structured Text GraphQL response, or data.links is not present!",n);var o=t.links.find((function(e){return e.id===n.item}));if(!o)throw new ce("The Structured Text document contains an 'itemLink' node, but cannot find a record with ID ".concat(n.item," inside data.links!"),n);return pe(i({record:o,children:r,transformedMeta:n.meta?(h||$)({node:n,meta:n.meta}):null}),a)})),U(re,(function(e){var n=e.node,i=e.key;if(!a)throw new ce("The Structured Text document contains a 'block' node, but no 'renderBlock' prop is specified!",n);if(!le(t)||!t.blocks)throw new ce("The document contains an 'block' node, but the passed data prop is not a Structured Text GraphQL response, or data.blocks is not present!",n);var r=t.blocks.find((function(e){return e.id===n.item}));if(!r)throw new ce("The Structured Text document contains a 'block' node, but cannot find a record with ID ".concat(n.item," inside data.blocks!"),n);return pe(a({record:r}),i)}))],c||u||[],!0)});return"string"==typeof m?r.createElement(r.Fragment,null,m):m||null}var fe=n(4369),be=n(7615);
2var ge=function(e){let{content:t}=e;return r.createElement("div",{className:"embed-iframe",dangerouslySetInnerHTML:{__html:t.iframeCode}})},ye=n(1867),Ee=n(6494),_e=n(40);var Ae=e=>{let{block:t}=e;const{items:n}=t,i=e=>{const{fullname:t,gender:n,role:i,image:a,regions:o}=e;return r.createElement("article",{className:"member-item"},r.createElement(fe.A,{image:a}),r.createElement("div",{className:"metadata"},r.createElement("h3",null,t),r.createElement("div",{className:"gender"},n),r.createElement("div",{className:"role"},i),r.createElement("div",{className:"regions"},o.map(((e,t)=>r.createElement("span",{key:t},e.label,t!==o.length-1?", ":""))))))};return r.createElement("div",{id:"block-members"},r.createElement("div",{className:"items"},n.map((e=>{const{id:t,withDetailPage:n}=e;return n?r.createElement(_e.A,{key:t,to:e},i(e)):r.createElement(r.Fragment,{key:t},i(e))}))))};var ke=e=>{let{block:t}=e;const{headline:n,icon:i}=t;return r.createElement("div",{id:"block-headline-with-icon"},r.createElement("div",{className:"icon"},r.createElement("img",{src:i.url,alt:i.alt})),r.createElement("h4",null,n))};var we=e=>{let{block:t}=e;const{code:n}=t,i=n&&n.includes("<iframe")&&n.includes("youtube");return r.createElement("div",{className:"ui-block-embed "+(i?"is-video":""),dangerouslySetInnerHTML:{__html:n}})};var Te=e=>{let{vacancy:t}=e;const{name:n,location:i}=t;return r.createElement("article",{className:"vacancy-card"},r.createElement(_e.A,{to:t},r.createElement("div",null,r.createElement("p",null,i),r.createElement("h2",null,n)),r.createElement("span",null,"Read more and applyâ")))};var Se=e=>{let{block:t}=e;const{items:n=[]}=t;return r.createElement("div",{className:"block-vacancies"},n.map((e=>r.createElement(Te,{key:e.id,vacancy:e}))))};var Ce=e=>{let{block:t}=e;const{previewImage:n,asset:i}=t;return r.createElement("div",{className:"file-assets-block"},r.createElement("a",{href:i.url,target:"_blank",rel:"noopener noreferrer"},n?r.createElement("img",{src:n.url,alt:n.alt}):"Download File"))},Ie=n(1862),xe=Object.create,Le=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,Me=Object.getOwnPropertyNames,De=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty,Ne=function(e,t){return function(){return e&&(t=e(e=0)),t}},Pe=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}},Ue=function(e,t,n){return n=null!=e?xe(De(e)):{},function(e,t,n,i){if(t&&"object"==typeof t||"function"==typeof t)for(var a,r=Me(t),o=0,s=r.length;o<s;o++)a=r[o],!Oe.call(e,a)&&a!==n&&Le(e,a,{get:function(e){return t[e]}.bind(null,a),enumerable:!(i=Re(t,a))||i.enumerable});return e}(!t&&e&&e.__esModule?n:Le(n,"default",{value:e,enumerable:!0}),e)},Be=Pe((function(e,t){var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t.exports=n}));function We(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var He=Ne((function(){})),je=Pe((function(e,t){var n,i;He(),n=e,i=function(){var e=function(){},t="undefined",n=("undefined"==typeof window?"undefined":We(window))!==t&&We(window.navigator)!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"];function a(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(OA){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function r(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function o(t,n){for(var a=0;a<i.length;a++){var r=i[a];this[r]=a<t?e:this.methodFactory(r,t,n)}this.log=this.debug}function s(e,n,i){return function(){("undefined"==typeof console?"undefined":We(console))!==t&&(o.call(this,n,i),this[e].apply(this,arguments))}}function l(i,o,l){return function(i){return"debug"===i&&(i="log"),("undefined"==typeof console?"undefined":We(console))!==t&&("trace"===i&&n?r:void 0!==console[i]?a(console,i):void 0!==console.log?a(console,"log"):e)}(i)||s.apply(this,arguments)}function d(e,n,a){var r,s=this;n=null==n?"WARN":n;var d="loglevel";function u(){var e;if(("undefined"==typeof window?"undefined":We(window))!==t&&d){try{e=window.localStorage[d]}catch(gy){}if((void 0===e?"undefined":We(e))===t)try{var n=window.document.cookie,i=n.indexOf(encodeURIComponent(d)+"=");-1!==i&&(e=/^([^;]+)/.exec(n.slice(i))[1])}catch(gy){}return void 0===s.levels[e]&&(e=void 0),e}}"string"==typeof e?d+=":"+e:"symbol"===(void 0===e?"undefined":We(e))&&(d=void 0),s.name=e,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=a||l,s.getLevel=function(){return r},s.setLevel=function(n,a){if("string"==typeof n&&void 0!==s.levels[n.toUpperCase()]&&(n=s.levels[n.toUpperCase()]),!("number"==typeof n&&n>
2=0&&n<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(r=n,!1!==a&&function(e){var n=(i[e]||"silent").toUpperCase();if(("undefined"==typeof window?"undefined":We(window))!==t&&d){try{return void(window.localStorage[d]=n)}catch(a_){}try{window.document.cookie=encodeURIComponent(d)+"="+n+";"}catch(a_){}}}(n),o.call(s,n,e),("undefined"==typeof console?"undefined":We(console))===t&&n<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){n=e,u()||s.setLevel(e,!1)},s.resetLevel=function(){s.setLevel(n,!1),function(){if(("undefined"==typeof window?"undefined":We(window))!==t&&d){try{return void window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var c=u();null==c&&(c=n),s.setLevel(c,!1)}var u=new d,c={};u.getLogger=function(e){if("symbol"!==(void 0===e?"undefined":We(e))&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=c[e];return t||(t=c[e]=new d(e,u.getLevel(),u.methodFactory)),t};var h=("undefined"==typeof window?"undefined":We(window))!==t?window.log:void 0;return u.noConflict=function(){return("undefined"==typeof window?"undefined":We(window))!==t&&window.log===u&&(window.log=h),u},u.getLoggers=function(){return c},u.default=u,u},"function"==typeof define&&define.amd?define(i):"object"==typeof t&&t.exports?t.exports=i():n.log=i()}));function qe(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):qe(e,t)}var Ve=Ne((function(){Ve()})),Fe=Pe((function(e){var t=Object.prototype.hasOwnProperty;function n(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function i(e){try{return encodeURIComponent(e)}catch(t){return null}}
2e.stringify=function(e,n){n=n||"";var a,r,o=[];for(r in"string"!=typeof n&&(n="?"),e)if(t.call(e,r)){if(!(a=e[r])&&(null==a||isNaN(a))&&(a=""),r=i(r),a=i(a),null===r||null===a)continue;o.push(r+"="+a)}return o.length?n+o.join("&"):""},e.parse=function(e){for(var t,i=/([^=?#&]+)=?([^&]*)/g,a={};t=i.exec(e);){var r=n(t[1]),o=n(t[2]);null===r||null===o||r in a||(a[r]=o)}return a}})),$e=Pe((function(e,t){!function(n){var i=!1;if("function"==typeof define&&define.amd&&(define(n),i=!0),"object"==typeof e&&(t.exports=n(),i=!0),!i){var a=window.Cookies,r=window.Cookies=n();r.noConflict=function(){return window.Cookies=a,r}}}((function(){var e=function(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t};return function t(n){function i(t,a,r){var o;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(r=e({path:"/"},i.defaults,r)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{o=JSON.stringify(a),/^[\{\[]/.test(o)&&(a=o)}catch(ji){}return a=n.write?n.write(a,t):encodeURIComponent(String(a)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",a,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}t||(o={});for(var l=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u<l.length;u++){var c=l[u].split("="),h=c.slice(1).join("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{var m=c[0].replace(d,decodeURIComponent);if(h=n.read?n.read(h,m):n(h,m)||h.replace(d,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(ji){}if(t===m){o=h;break}t||(o[m]=h)}catch(ji){}}return o}}return i.set=i,i.get=function(e){return i.call(i,e)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(t,n){i(t,"",e(n,{expires:-1}))},i.withConverter=t,i}((function(){}))}))})),Ke=Pe((function(e,t){var n=Array.prototype.slice;t.exports=function(e,t){for(("length"in e||(e=[e]),e=n.call(e));e.length;){var i=e.shift(),a=t(i);if(a)return a;i.childNodes&&i.childNodes.length&&(e=n.call(i.childNodes).concat(e))}}})),Ge=Pe((function(e,t){function n(e,t){if(!qe(this,n))return new n(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}Ve(),t.exports=n,n.prototype.nodeType=8,n.prototype.nodeName="#comment",n.prototype.toString=function(){return"[object Comment]"}})),Ye=Pe((function(e,t){function n(e,t){if(!qe(this,n))return new n(e);this.data=e||"",this.length=this.data.length,this.ownerDocument=t||null}Ve(),t.exports=n,n.prototype.type="DOMTextNode",n.prototype.nodeType=3,n.prototype.nodeName="#text",n.prototype.toString=function(){return this.data},n.prototype.replaceData=function(e,t,n){var i=this.data,a=i.substring(0,e),r=i.substring(e+t,i.length);this.data=a+n+r,this.length=this.data.length}})),ze=Pe((function(e,t){t.exports=function(e){var t=this,n=e.type;e.target||(e.target=t),t.listeners||(t.listeners={});var i=t.listeners[n];if(i)return i.forEach((function(n){e.currentTarget=t,"function"==typeof n?n(e):n.handleEvent(e)}));t.parentNode&&t.parentNode.dispatchEvent(e)}})),Ze=Pe((function(e,t){t.exports=function(e,t){var n=this;n.listeners||(n.listeners={}),n.listeners[e]||(n.listeners[e]=[]),-1===n.listeners[e].indexOf(t)&&n.listeners[e].push(t)}})),Qe=Pe((function(e,t){t.exports=function(e,t){var n=this;if(n.listeners&&n.listeners[e]){var i=n.listeners[e],a=i.indexOf(t);-1!==a&&i.splice(a,1)}}})),Xe=Pe((function(e,t){He(),t.exports=i;var n=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function i(e){switch(e.nodeType){case 3:return o(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return function(e){var t=[],s=e.tagName;return"http://www.w3.org/1999/xhtml"===e.namespaceURI&&(s=s.toLowerCase()),t.push("<"+s+function(e){var t=[];
2for(var n in e)a(e,n)&&t.push({name:n,value:e[n]});for(var i in e._attributes)for(var o in e._attributes[i]){var s=e._attributes[i][o],l=(s.prefix?s.prefix+":":"")+o;t.push({name:l,value:s.value})}return e.className&&t.push({name:"class",value:e.className}),t.length?r(t):""}(e)+function(e){var t=e.dataset,n=[];for(var i in t)n.push({name:"data-"+i,value:t[i]});return n.length?r(n):""}(e)),n.indexOf(s)>-1?t.push(" />"):(t.push(">"),e.childNodes.length?t.push.apply(t,e.childNodes.map(i)):e.textContent||e.innerText?t.push(o(e.textContent||e.innerText)):e.innerHTML&&t.push(e.innerHTML),t.push("</"+s+">")),t.join("")}(e)}}function a(e,t){var n=We(e[t]);return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===n||"boolean"===n||"number"===n)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function r(e){var t=[];return e.forEach((function(e){var n=e.name,i=e.value;"style"===n&&(i=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach((function(n){var i=e[n];n=n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),t+=n+":"+i+";"})),t}(i)),t.push(n+'="'+function(e){return o(e).replace(/"/g,""")}(i)+'"')})),t.length?" "+t.join(" "):""}function o(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}})),Je=Pe((function(e,t){Ve();var n=Ke(),i=ze(),a=Ze(),r=Qe(),o=Xe(),s="http://www.w3.org/1999/xhtml";function l(e,t,n){if(!qe(this,l))return new l(e);var i=void 0===n?s:n||null;this.tagName=i===s?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=i,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}t.exports=l,l.prototype.type="DOMElement",l.prototype.nodeType=1,l.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},l.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[n]=e,e.parentNode=this,t},l.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},l.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=null==t?-1:this.childNodes.indexOf(t);return n>-1?this.childNodes.splice(n,0,e):this.childNodes.push(e),e.parentNode=this,e},l.prototype.setAttributeNS=function(e,t,n){var i=null,a=t,r=t.indexOf(":");(r>-1&&(i=t.substr(0,r),a=t.substr(r+1)),"INPUT"===this.tagName&&"type"===t)?this.type=n:(this._attributes[e]||(this._attributes[e]={}))[a]={value:n,prefix:i}},l.prototype.getAttributeNS=function(e,t){var n=this._attributes[e],i=n&&n[t]&&n[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof i?null:i},l.prototype.removeAttributeNS=function(e,t){var n=this._attributes[e];n&&delete n[t]},l.prototype.hasAttributeNS=function(e,t){var n=this._attributes[e];return!!n&&t in n},l.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},l.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},l.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},l.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},l.prototype.removeEventListener=r,l.prototype.addEventListener=a,l.prototype.dispatchEvent=i,l.prototype.focus=function(){},l.prototype.toString=function(){return o(this)},l.prototype.getElementsByClassName=function(e){var t=e.split(" "),i=[];return n(this,(function(e){if(1===e.nodeType){var n=(e.className||"").split(" ");t.every((function(e){return-1!==n.indexOf(e)}))&&i.push(e)}})),i},l.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return n(this.childNodes,(function(n){1===n.nodeType&&("*"===e||n.tagName.toLowerCase()===e)&&t.push(n)})),t},l.prototype.contains=function(e){return n(this,(function(t){return e===t}))||!1}})),et=Pe((function(e,t){Ve();var n=Je();function i(e){if(!qe(this,i))return new i;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}t.exports=i,i.prototype.type="DocumentFragment",i.prototype.nodeType=11,i.prototype.nodeName="#document-fragment",i.prototype.appendChild=n.prototype.appendChild,i.prototype.replaceChild=n.prototype.replaceChild,i.prototype.removeChild=n.prototype.removeChild,i.prototype.toString=function(){return this.childNodes.map((function(e){return String(e)})).join("")}})),tt=Pe((function(e,t){function n(e){}t.exports=n,n.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n},n.prototype.preventDefault=function(){}})),nt=Pe((function(e,t){Ve();
2var n=Ke(),i=Ge(),a=Ye(),r=Je(),o=et(),s=tt(),l=ze(),d=Ze(),u=Qe();function c(){if(!qe(this,c))return new c;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}t.exports=c;var h=c.prototype;h.createTextNode=function(e){return new a(e,this)},h.createElementNS=function(e,t){var n=null===e?null:String(e);return new r(t,this,n)},h.createElement=function(e){return new r(e,this)},h.createDocumentFragment=function(){return new o(this)},h.createEvent=function(e){return new s(e)},h.createComment=function(e){return new i(e,this)},h.getElementById=function(e){e=String(e);var t=n(this.childNodes,(function(t){if(String(t.id)===e)return t}));return t||null},h.getElementsByClassName=r.prototype.getElementsByClassName,h.getElementsByTagName=r.prototype.getElementsByTagName,h.contains=r.prototype.contains,h.removeEventListener=u,h.addEventListener=d,h.dispatchEvent=l})),it=Pe((function(e,t){var n=nt();t.exports=new n})),at=Pe((function(e,t){var n,i="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},a=it();"undefined"!=typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n}));function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);o=!0);}catch(l){s=!0,a=l}finally{try{!o&&null!=n.return&&n.return()}finally{if(s)throw a}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rt(e,t)}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var st=Ue(Be()),lt=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},dt=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)},ut=function(e){if(e&&void 0!==e.nodeName)return e.muxId||(e.muxId=dt()),e.muxId;var t;try{t=document.querySelector(e)}catch(Mg){}return t&&!t.muxId&&(t.muxId=e),(null==t?void 0:t.muxId)||e},ct=function(e){var t;e&&void 0!==e.nodeName?e=ut(t=e):t=document.querySelector(e);var n=t&&t.nodeName?t.nodeName.toLowerCase():"";return[t,e,n]},ht=Ue(je()),mt=ht.default.methodFactory;ht.default.methodFactory=function(e,t,n){var i=mt(e,t,n);return function(){for(var e=["[mux]"],t=0;t<arguments.length;t++)e.push(arguments[t]);i.apply(void 0,e)}},ht.default.setLevel(ht.default.getLevel());var pt=ht.default,vt=Ue(Be());function ft(){return"1"===(vt.default.doNotTrack||vt.default.navigator&&vt.default.navigator.doNotTrack)}var bt=Ue(Be()),gt={now:function(){var e=bt.default.performance,t=e&&e.timing,n=t&&t.navigationStart,i="number"==typeof n&&"function"==typeof e.now?n+e.now():Date.now();return Math.round(i)}},yt=gt;function Et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _t(e,t){if(!qe(e,t))throw new TypeError("Cannot call a class as a function")}function At(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function kt(e,t,n){return t&&At(e.prototype,t),n&&At(e,n),e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tt(e,t){return Tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tt(e,t)}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=St(e);if(t){var a=St(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){return!t||"object"!==We(t)&&"function"!=typeof t?Et(e):t}(this,n)}}Ve(),He();var It=function(e){return xt(e)[0]},xt=function(e){if("string"!=typeof e||""===e)return["localhost"];var t,n=(e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/)||[])[4];return n&&(t=(n.match(/[^\.]+\.[^\.]+$/)||[])[0]),[n,t]},Lt=Ue(Be()),Rt={exists:function(){var e=Lt.default.performance;return void 0!==(e&&e.timing)},domContentLoadedEventEnd:function(){var e=Lt.default.performance,t=e&&e.t
2iming;return t&&t.domContentLoadedEventEnd},navigationStart:function(){var e=Lt.default.performance,t=e&&e.timing;return t&&t.navigationStart}};function Mt(e,t,n){n=void 0===n?1:n,e[t]=e[t]||0,e[t]+=n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){wt(e,t,n[t])}))}return e}function Ot(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var Nt=["x-request-id","cf-ray","x-amz-cf-id","x-akamai-request-id"],Pt=["x-cdn","content-type"].concat(Nt);function Ut(e){var t={};return(e=e||"").trim().split(/[\r\n]+/).forEach((function(e){if(e){var n=e.split(": "),i=n.shift();i&&(Pt.indexOf(i.toLowerCase())>=0||0===i.toLowerCase().indexOf("x-litix-"))&&(t[i]=n.join(": "))}})),t}function Bt(e){if(e){var t=Nt.find((function(t){return void 0!==e[t]}));return t?e[t]:void 0}}var Wt=function(e){var t={};for(var n in e){var i=e[n];if(-1!==i["DATA-ID"].search("io.litix.data."))t[i["DATA-ID"].replace("io.litix.data.","")]=i.VALUE}return t},Ht=function(e){if(!e)return{};var t=Rt.navigationStart(),n=e.loading,i=n?n.start:e.trequest,a=n?n.first:e.tfirst,r=n?n.end:e.tload;return{bytesLoaded:e.total,requestStart:Math.round(t+i),responseStart:Math.round(t+a),responseEnd:Math.round(t+r)}},jt=function(e){if(e&&"function"==typeof e.getAllResponseHeaders)return Ut(e.getAllResponseHeaders())},qt=function(e,t){if(!e||!e.requestEndDate)return{};var n,i=It(e.url),a=e.url,r=e.bytesLoaded,o=new Date(e.requestStartDate).getTime(),s=new Date(e.firstByteDate).getTime(),l=new Date(e.requestEndDate).getTime(),d=isNaN(e.duration)?0:e.duration,u="function"==typeof t.getMetricsFor?t.getMetricsFor(e.mediaType).HttpList:t.getDashMetrics().getHttpRequests(e.mediaType);return u.length>0&&(n=Ut(u[u.length-1]._responseHeaders||"")),{requestStart:o,requestResponseStart:s,requestResponseEnd:l,requestBytesLoaded:r,requestResponseHeaders:n,requestMediaDuration:d,requestHostname:i,requestUrl:a,requestId:n?Bt(n):void 0}},Vt=function(e){var t;return null===(t=e.match(/.*codecs\*?="(.*)"/))||void 0===t?void 0:t[1]},Ft=function(e,t,n){var i=e.log;if(n&&n.on){var a=function(e){try{var t,n,i=null===(n=e.getVersion)||void 0===n||null===(t=n.call(e))||void 0===t?void 0:t.split(".").map((function(e){return parseInt(e)}))[0];return i}catch(a){return!1}}(n),r=function(n,i){return e.emit(t,n,i)},o=function(e){var t=e.type,n=(e.data||{}).url;r("requestcompleted",{request_event_type:t,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:It(n),request_url:n})};n.on("manifestLoaded",o);var s={},l=function(e){if("function"!=typeof e.getRequests)return null;var t=e.getRequests({state:"executed"});return 0===t.length?null:t[t.length-1]},d=function(e){var t=e.type,i=e.chunk,a=e.request,o=(i||{}).mediaInfo||{},l=o.type,d=o.bitrateList,u={};(d=d||[]).forEach((function(e,t){u[t]={},u[t].width=e.width,u[t].height=e.height,u[t].bitrate=e.bandwidth,u[t].attrs={}})),"video"===l?s.video=u:"audio"===l?s.audio=u:s.media=u;var c=qt(a,n),h=c.requestStart,m=c.requestResponseStart,p=c.requestResponseEnd,v=c.requestResponseHeaders,f=c.requestMediaDuration,b=c.requestHostname,g=c.requestUrl,y=c.requestId;r("requestcompleted",{request_event_type:t,request_start:h,request_response_start:m,request_response_end:p,request_bytes_loaded:-1,request_type:l+"_init",request_response_headers:v,request_hostname:b,request_id:y,request_url:g,request_media_duration:f,request_rendition_lists:s})};a>=4?n.on("initFragmentLoaded",d):n.on("initFragmentLoaded",(function(e){var t=e.type,n=e.fragmentModel,i=e.chunk,a=l(n);d({type:t,request:a,chunk:i})}));var u=function(e){var t=e.type,i=e.chunk,a=e.request,o=i||{},s=o.mediaInfo,l=o.start,d=(s||{}).type,u=qt(a,n),c=u.requestStart,h=u.requestResponseStart,m=u.requestResponseEnd,p=u.requestBytesLoaded,v=u.requestResponseHeaders,f=u.requestMediaDuration,b=u.requestHostname,g=u.requestUrl,y=u.requestId,E=function(e,t){var n=t.getQualityFor(e),i=t.getCurrentTrackFor(e).bitrateList;return i?{currentLevel:n,renditionWidth:i[n].width||null,renditionHeight:i[n].height||null,renditionBitrate:i[n].bandwidth}:{}}(d,n),_=E.currentLevel,A=E.renditionWidth,k=E.renditionHeight,w=E.renditionBitrate;r("requestcompleted",{request_event_type:t,request_start:c,request_response_start:h,request_response_end:m,request_bytes_loaded:p,request_type:d,request_response_headers:v,request_hostname:b,request_id:y,request_url:g,request_media_start_time:l,request_media_duration:f,request_current_level:_,request_labeled_bitrate:w,request_video_width:A,request_video_height:k})};a>=4?n.on("mediaFragmentLoaded",u):n.on("mediaFragmentLoaded",(function(e){var t=e.type,n=e.fragmentModel,i=e.chunk,a=l(n);u({type:t,request:a,chunk:i})}));var c={video:void 0,audio:void 0,totalBitrate:void 0},h=function(e,t,a){if("number"==typeof e.newQuality){var o=e.mediaType;if("audio"===o||"video"===o){var s=n.getBitrateInfoListFor(o).find((function(t){return t.qualityIndex===e.newQuality}));if(!s||"number"!=typeof s.bitrate)return void i.warn("missing bitrate info for ".concat(o));c[o]=Ot(Dt({},s),{codec:n.getCurrentTrackFor(o).codec});var l=function(){if(c.video&&"number"==typeof c.video.bitrate){if(!c.video.width||!c.video.height)return void i.warn("have bitrate info for video but missing width/height");var e=c.video.bitrate;if(c.audio&&"number"==typeof c.audio.bitrate&&(e+=c.audio.bitrate),e!==c.totalBitrate)return c.totalBitrate=e,{video_source_bitrate:e,video_source_height:c.video.height,video_source_width:c.video.width,video_source_codec:Vt(c.video.codec)}}}();l&&r("renditionchange",l)}}else i.warn("missing evt.newQuality in qualityChangeRendered event",e)};n.on("qualityChangeRendered",h);var m=function(e){var t=e.request,n=e.mediaType;r("requestcanceled",{request_event_type:(t=t||{}).type+"_"+t.action,request_url:t.url,request_type:n,request_hostname:It(t.url)})};n.on("fragmentLoadingAbandoned",m);var p=function(e){var t,n,i=e.error,a=(null==i||null===(t=i.data)||void 0===t?void 0:t.request)||{},o=(null==i||null===(n=i.data)||void 0===n?void 0:n.response)||{};27===(null==i?void 0:i.code)&&r("requestfailed",{request_error:a.type+"_"+a.action,request_url:a.url,request_hostname:It(a.url),request_type:a.mediaType,request_error_code:o.status,request_error_text:o.statusText});var s="".concat(null!=a&&a.url?"url: ".concat(a.url,"\n"):"")+"".concat(null!=o&&o.status||null!=o&&o.statusText?"response: ".concat(null==o?void 0:o.status,", ").concat(null==o?void 0:o.statusText,"\n"):"");r("error",{player_error_code:null==i?void 0:i.code,player_error_message:null==i?void 0:i.message,player_error_context:s})};n.on("error",p),n._stopMuxMonitor=function(){n.off("manifestLoaded",o),n.off("initFragmentLoaded",d),n.off("mediaFragmentLoaded",u),n.off("qualityChangeRendered",h),n.off("error",p),n.off("fragmentLoadingAbandoned",m),delete n._stopMuxMonitor}}else i.warn("Invalid dash.js player reference. Monitoring blocked.")},$t=0,Kt=function(){function e(){_t(this,e),wt(this,"_listeners",void 0)}return kt(e,[{key:"on",value:function(e,t,n){return t._eventEmitterGuid=t._eventEmitterGuid||++$t,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],n&&(t=t.bind(n)),this._listeners[e].push(t),t}},{key:"off",value:function(e,t){var n=this._listeners&&this._listeners[e];
2n&&n.forEach((function(e,i){e._eventEmitterGuid===t._eventEmitterGuid&&n.splice(i,1)}))}},{key:"one",value:function(e,t,n){var i=this;t._eventEmitterGuid=t._eventEmitterGuid||++$t;var a=function(){i.off(e,a),t.apply(n||this,arguments)};a._eventEmitterGuid=t._eventEmitterGuid,this.on(e,a)}},{key:"emit",value:function(e,t){var n=this;if(this._listeners){t=t||{};var i=this._listeners["before*"]||[],a=this._listeners[e]||[],r=this._listeners["after"+e]||[],o=function(t,i){(t=t.slice()).forEach((function(t){t.call(n,{type:e},i)}))};o(i,t),o(a,t),o(r,t)}}}]),e}(),Gt=Kt,Yt=Ue(Be()),zt=function(){function e(t){var n=this;_t(this,e),wt(this,"_playbackHeartbeatInterval",void 0),wt(this,"_playheadShouldBeProgressing",void 0),wt(this,"pm",void 0),this.pm=t,this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,t.on("playing",(function(){n._playheadShouldBeProgressing=!0})),t.on("play",this._startPlaybackHeartbeatInterval.bind(this)),t.on("playing",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adbreakstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplay",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplaying",this._startPlaybackHeartbeatInterval.bind(this)),t.on("devicewake",this._startPlaybackHeartbeatInterval.bind(this)),t.on("viewstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("rebufferstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("pause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("ended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("viewend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("error",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("aderror",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adpause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adbreakend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("seeked",(function(){t.data.player_is_paused?n._stopPlaybackHeartbeatInterval():n._startPlaybackHeartbeatInterval()})),t.on("timeupdate",(function(){null!==n._playbackHeartbeatInterval&&t.emit("playbackheartbeat")})),t.on("devicesleep",(function(e,i){null!==n._playbackHeartbeatInterval&&(Yt.default.clearInterval(n._playbackHeartbeatInterval),t.emit("playbackheartbeatend",{viewer_time:i.viewer_time}),n._playbackHeartbeatInterval=null)}))}return kt(e,[{key:"_startPlaybackHeartbeatInterval",value:function(){var e=this;null===this._playbackHeartbeatInterval&&(this.pm.emit("playbackheartbeat"),this._playbackHeartbeatInterval=Yt.default.setInterval((function(){e.pm.emit("playbackheartbeat")}),this.pm.playbackHeartbeatTime))}},{key:"_stopPlaybackHeartbeatInterval",value:function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(Yt.default.clearInterval(this._playbackHeartbeatInterval),this.pm.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)}}]),e}(),Zt=zt,Qt=function e(t){var n=this;_t(this,e),wt(this,"viewErrored",void 0),t.on("viewinit",(function(){n.viewErrored=!1})),t.on("error",(function(e,i){try{var a=t.errorTranslator({player_error_code:i.player_error_code,player_error_message:i.player_error_message,player_error_context:i.player_error_context,player_error_severity:i.player_error_severity,player_error_business_exception:i.player_error_business_exception});a&&(t.data.player_error_code=a.player_error_code||i.player_error_code,t.data.player_error_message=a.player_error_message||i.player_error_message,t.data.player_error_context=a.player_error_context||i.player_error_context,t.data.player_error_severity=a.player_error_severity||i.player_error_severity,t.data.player_error_business_exception=a.player_error_business_exception||i.player_error_business_exception,n.viewErrored=!0)}catch(r){t.mux.log.warn("Exception in error translator callback.",r),n.viewErrored=!0}})),t.on("aftererror",(function(){var e,n,i,a,r;null===(e=t.data)||void 0===e||delete e.player_error_code,null===(n=t.data)||void 0===n||delete n.player_error_message,null===(i=t.data)||void 0===i||delete i.player_error_context,null===(a=t.data)||void 0===a||delete a.player_error_severity,null===(r=t.data)||void 0===r||delete r.player_error_business_exception}))},Xt=function(){function e(t){_t(this,e),wt(this,"_watchTimeTrackerLastCheckedTime",void 0),wt
2(this,"pm",void 0),this.pm=t,this._watchTimeTrackerLastCheckedTime=null,t.on("playbackheartbeat",this._updateWatchTime.bind(this)),t.on("playbackheartbeatend",this._clearWatchTimeState.bind(this))}return kt(e,[{key:"_updateWatchTime",value:function(e,t){var n=t.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=n),Mt(this.pm.data,"view_watch_time",n-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=n}},{key:"_clearWatchTimeState",value:function(e,t){this._updateWatchTime(e,t),this._watchTimeTrackerLastCheckedTime=null}}]),e}(),Jt=Xt,en=function(){function e(t){var n=this;_t(this,e),wt(this,"_playbackTimeTrackerLastPlayheadPosition",void 0),wt(this,"_lastTime",void 0),wt(this,"_isAdPlaying",void 0),wt(this,"_callbackUpdatePlaybackTime",void 0),wt(this,"pm",void 0),this.pm=t,this._playbackTimeTrackerLastPlayheadPosition=-1,this._lastTime=yt.now(),this._isAdPlaying=!1,this._callbackUpdatePlaybackTime=null;var i=this._startPlaybackTimeTracking.bind(this);t.on("playing",i),t.on("adplaying",i),t.on("seeked",i);var a=this._stopPlaybackTimeTracking.bind(this);t.on("playbackheartbeatend",a),t.on("seeking",a),t.on("adplaying",(function(){n._isAdPlaying=!0})),t.on("adended",(function(){n._isAdPlaying=!1})),t.on("adpause",(function(){n._isAdPlaying=!1})),t.on("adbreakstart",(function(){n._isAdPlaying=!1})),t.on("adbreakend",(function(){n._isAdPlaying=!1})),t.on("adplay",(function(){n._isAdPlaying=!1})),t.on("viewinit",(function(){n._playbackTimeTrackerLastPlayheadPosition=-1,n._lastTime=yt.now(),n._isAdPlaying=!1,n._callbackUpdatePlaybackTime=null}))}return kt(e,[{key:"_startPlaybackTimeTracking",value:function(){null===this._callbackUpdatePlaybackTime&&(this._callbackUpdatePlaybackTime=this._updatePlaybackTime.bind(this),this._playbackTimeTrackerLastPlayheadPosition=this.pm.data.player_playhead_time,this.pm.on("playbackheartbeat",this._callbackUpdatePlaybackTime))}},{key:"_stopPlaybackTimeTracking",value:function(){this._callbackUpdatePlaybackTime&&(this._updatePlaybackTime(),this.pm.off("playbackheartbeat",this._callbackUpdatePlaybackTime),this._callbackUpdatePlaybackTime=null,this._playbackTimeTrackerLastPlayheadPosition=-1)}},{key:"_updatePlaybackTime",value:function(){var e=this.pm.data.player_playhead_time,t=yt.now(),n=-1;this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition?n=e-this._playbackTimeTrackerLastPlayheadPosition:this._isAdPlaying&&(n=t-this._lastTime),n>0&&n<=1e3&&Mt(this.pm.data,"view_content_playback_time",n),this._playbackTimeTrackerLastPlayheadPosition=e,this._lastTime=t}}]),e}(),tn=en,nn=function(){function e(t){_t(this,e),wt(this,"pm",void 0),this.pm=t;var n=this._updatePlayheadTime.bind(this);t.on("playbackheartbeat",n),t.on("playbackheartbeatend",n),t.on("timeupdate",n),t.on("destroy",(function(){t.off("timeupdate",n)}))}return kt(e,[{key:"_updateMaxPlayheadPosition",value:function(){this.pm.data.view_max_playhead_position=void 0===this.pm.data.view_max_playhead_position?this.pm.data.player_playhead_time:Math.max(this.pm.data.view_max_playhead_position,this.pm.data.player_playhead_time)}},{key:"_updatePlayheadTime",value:function(e,t){var n=this,i=function(){n.pm.currentFragmentPDT&&n.pm.currentFragmentStart&&(n.pm.data.player_program_time=n.pm.currentFragmentPDT+n.pm.data.player_playhead_time-n.pm.currentFragmentStart)};if(t&&t.player_playhead_time)this.pm.data.player_playhead_time=t.player_playhead_time,i(),this._updateMaxPlayheadPosition();else if(this.pm.getPlayheadTime){var a=this.pm.getPlayheadTime();void 0!==a&&(this.pm.data.player_playhead_time=a,i(),this._updateMaxPlayheadPosition())}}}]),e}(),an=nn,rn=3e5,on=function e(t){if(_t(this,e),!t.disableRebufferTracking){var n,i=function(e,t){a(t),n=void 0},a=function(e){if(n){var i=e.viewer_time-n;Mt(t.data,"view_rebuffer_duration",i),n=e.viewer_time,t.data.view_rebuffer_duration>rn&&(t.emit("viewend"),t.send("viewend"),t.mux.log.warn("Ending view after rebuffering for longer than ".concat(rn,"ms, future events will be ignored unless a programchange or videochange occurs.")))}t.data.view_watch_time>=0&&t.data.view_rebuffer_count>0&&(t.data.view_rebuffer_frequency=t.data.view_rebuffer_count/t.data.view_watch_time,t.data.view_rebuffer_percentage=t.data.view_rebuffer_duration/t.data.view_watch_time)};t.on("playbackheartbeat",(function(e,t){return a(t)})),t.on("rebufferstart",(function(e,a){n||(Mt(t.data,"view_rebuffer_count",1),n=a.viewer_time,t.one("rebufferend",i))}
2)),t.on("viewinit",(function(){n=void 0,t.off("rebufferend",i)}))}},sn=function(){function e(t){var n=this;_t(this,e),wt(this,"_lastCheckedTime",void 0),wt(this,"_lastPlayheadTime",void 0),wt(this,"_lastPlayheadTimeUpdatedTime",void 0),wt(this,"_rebuffering",void 0),wt(this,"pm",void 0),this.pm=t,!t.disableRebufferTracking&&!t.disablePlayheadRebufferTracking&&(this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,t.on("playbackheartbeat",this._checkIfRebuffering.bind(this)),t.on("playbackheartbeatend",this._cleanupRebufferTracker.bind(this)),t.on("seeking",(function(){n._cleanupRebufferTracker(null,{viewer_time:yt.now()})})))}return kt(e,[{key:"_checkIfRebuffering",value:function(e,t){if(this.pm.seekingTracker.isSeeking||this.pm.adTracker.isAdBreak||!this.pm.playbackHeartbeat._playheadShouldBeProgressing)this._cleanupRebufferTracker(e,t);else if(null!==this._lastCheckedTime)if(this._lastPlayheadTime===this.pm.data.player_playhead_time){var n=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.sustainedRebufferThreshold&&n>=this.pm.sustainedRebufferThreshold&&(this._rebuffering||(this._rebuffering=!0,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}))),this._lastCheckedTime=t.viewer_time}else this._cleanupRebufferTracker(e,t,!0);else this._prepareRebufferTrackerState(t.viewer_time)}},{key:"_clearRebufferTrackerState",value:function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null}},{key:"_prepareRebufferTrackerState",value:function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.pm.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e}},{key:"_cleanupRebufferTracker",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._rebuffering)this._rebuffering=!1,this.pm.emit("rebufferend",{viewer_time:t.viewer_time});else{if(null===this._lastCheckedTime)return;var i=this.pm.data.player_playhead_time-this._lastPlayheadTime,a=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.minimumRebufferDuration&&i>0&&a-i>this.pm.minimumRebufferDuration&&(this._lastCheckedTime=null,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.pm.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+a-i}))}n?this._prepareRebufferTrackerState(t.viewer_time):this._clearRebufferTrackerState()}}]),e}(),ln=sn,dn=function(){function e(t){var n=this;_t(this,e),wt(this,"NAVIGATION_START",void 0),wt(this,"pm",void 0),this.pm=t,t.on("viewinit",(function(){var e=t.data,i=e.view_id;if(!e.view_program_changed){var a=function(e,a){var r=a.viewer_time;("playing"===e.type&&void 0===t.data.view_time_to_first_frame||"adplaying"===e.type&&(void 0===t.data.view_time_to_first_frame||n._inPrerollPosition()))&&n.calculateTimeToFirstFrame(r||yt.now(),i)};t.one("playing",a),t.one("adplaying",a),t.one("viewend",(function(){t.off("playing",a),t.off("adplaying",a)}))}}))}return kt(e,[{key:"_inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"calculateTimeToFirstFrame",value:function(e,t){t===this.pm.data.view_id&&(this.pm.watchTimeTracker._updateWatchTime(null,{viewer_time:e}),this.pm.data.view_time_to_first_frame=this.pm.data.view_watch_time,(this.pm.data.player_autoplay_on||this.pm.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.pm.data.view_aggregate_startup_time=this.pm.data.view_start+this.pm.data.view_watch_time-this.NAVIGATION_START))}}]),e}(),un=dn,cn=function e(t){var n=this;_t(this,e),wt(this,"_lastPlayerHeight",void 0),wt(this,"_lastPlayerWidth",void 0),wt(this,"_lastPlayheadPosition",void 0),wt(this,"_lastSourceHeight",void 0),wt(this,"_lastSourceWidth",void 0),t.on("viewinit",(function(){n._lastPlayheadPosition=-1}));["pause","rebufferstart","seeking","error","adbreakstart","hb"].forEach((function(e){t.on(e,(function(){if(n._lastPlayheadPosition>=0&&t.data.player_playhead_time>=0&&n._lastPlayerWidth>=0&&n._lastSourceWidth>0&&n._lastPlayerHeight>=0&&n._lastSourceHeight>0){var e=t.data.player_playhead_time-n._lastPlayheadPosition;if(e<0)return void(n._lastPlayheadPosition=-1);var i=Math.min(n._lastPlayerWidth/n._lastSourceWidth,n._lastPlayerHeight/n._lastSourceHeight),a=Math.max(0,i-1),r=Math.max(0,1-i);t.data.view_max_upscale_percentage=Math.max(t.data.view_max_upscale_percentage||0,a),t.data.view_max_downscale_percentage=Math.max(t.data.view_max_downscale_percentage||0,r),Mt(t.data,"view_total_content_playback_time",e),Mt(t.data,"view_total_upscaling",a*e),Mt(t.data,"view_total_downscaling",r*e)}n._lastPlayheadPosition=-1}))})),["playing","hb"].forEach((function(e){t.on(e,(function(){n._lastPlayheadPosition=t.data.player_playhead_time,n._lastPlayerWidth=t.data.player_width,n._lastPlayerHeight=t.data.player_height,n._lastSourceWidth=t.data.video_source_width,n._lastSourceHeight=t.data.video_source_height}))}))},hn=function e(t){var n=this;_t(this,e),wt(this,"isSeeking",void 0),this.isSeeking=!1;var i=-1,a=function(){var e=yt.now(),a=(t.data.viewer_time||e)-(i||e);Mt(t.data,"view_seek_duration",a),t.data.view_max_seek_time=Math.max(t.data.view_max_seek_time||0,a),n.isSeeking=!1,i=-1};t.on("seeking",(function(e,r){Object.assign(t.data,r),n.isSeeking&&r.viewer_time-i<=2e3?i=r.viewer_time:(n.isSeeking&&a(),n.isSeeking=!0,i=r.viewer_time,Mt(t.data,"view_seek_count",1),t.send("seeking"))})),t.on("seeked",(function(){a()})),t.on("viewend",(function(){n.isSeeking&&(a(),t.send("seeked")),n.isSeeking=!1,i=-1}))},mn=function(e,t){e.push(t),e.sort((function(e,t){return e.viewer_time-t.viewer_time}))},pn=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror","adclicked","adskipped"],vn=function(){function e(t){var n=this;
2_t(this,e),wt(this,"_adHasPlayed",void 0),wt(this,"_adRequests",void 0),wt(this,"_adResponses",void 0),wt(this,"_currentAdRequestNumber",void 0),wt(this,"_currentAdResponseNumber",void 0),wt(this,"_prerollPlayTime",void 0),wt(this,"_wouldBeNewAdPlay",void 0),wt(this,"isAdBreak",void 0),wt(this,"pm",void 0),this.pm=t,t.on("viewinit",(function(){n.isAdBreak=!1,n._currentAdRequestNumber=0,n._currentAdResponseNumber=0,n._adRequests=[],n._adResponses=[],n._adHasPlayed=!1,n._wouldBeNewAdPlay=!0,n._prerollPlayTime=void 0})),pn.forEach((function(e){return t.on(e,n._updateAdData.bind(n))}));var i=function(){n.isAdBreak=!1};t.on("adbreakstart",(function(){n.isAdBreak=!0})),t.on("play",i),t.on("playing",i),t.on("viewend",i),t.on("adrequest",(function(e,i){i=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdRequestNumber++},i),mn(n._adRequests,i),Mt(t.data,"view_ad_request_count"),n.inPrerollPosition()&&(t.data.view_preroll_requested=!0,n._adHasPlayed||Mt(t.data,"view_preroll_request_count"))})),t.on("adresponse",(function(e,i){i=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdResponseNumber++},i),mn(n._adResponses,i);var a=n.findAdRequest(i.ad_request_id);a&&Mt(t.data,"view_ad_request_time",Math.max(0,i.viewer_time-a.viewer_time))})),t.on("adplay",(function(e,i){n._adHasPlayed=!0,n._wouldBeNewAdPlay&&(n._wouldBeNewAdPlay=!1,Mt(t.data,"view_ad_played_count")),n.inPrerollPosition()&&!t.data.view_preroll_played&&(t.data.view_preroll_played=!0,n._adRequests.length>0&&(t.data.view_preroll_request_time=Math.max(0,i.viewer_time-n._adRequests[0].viewer_time)),t.data.view_start&&(t.data.view_startup_preroll_request_time=Math.max(0,i.viewer_time-t.data.view_start)),n._prerollPlayTime=i.viewer_time)})),t.on("adplaying",(function(e,i){n.inPrerollPosition()&&void 0===t.data.view_preroll_load_time&&void 0!==n._prerollPlayTime&&(t.data.view_preroll_load_time=i.viewer_time-n._prerollPlayTime,t.data.view_startup_preroll_load_time=i.viewer_time-n._prerollPlayTime)})),t.on("adclicked",(function(e,i){n._wouldBeNewAdPlay||Mt(t.data,"view_ad_clicked_count")})),t.on("adskipped",(function(e,i){n._wouldBeNewAdPlay||Mt(t.data,"view_ad_skipped_count")})),t.on("adended",(function(){n._wouldBeNewAdPlay=!0})),t.on("aderror",(function(){n._wouldBeNewAdPlay=!0}))}return kt(e,[{key:"inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"findAdRequest",value:function(e){for(var t=0;t<this._adRequests.length;t++)if(this._adRequests[t].ad_request_id===e)return this._adRequests[t]}},{key:"_updateAdData",value:function(e,t){if(this.inPrerollPosition()){if(!this.pm.data.view_preroll_ad_tag_hostname&&t.ad_tag_url){var n=ot(xt(t.ad_tag_url),2),i=n[0],a=n[1];this.pm.data.view_preroll_ad_tag_domain=a,this.pm.data.view_preroll_ad_tag_hostname=i}if(!this.pm.data.view_preroll_ad_asset_hostname&&t.ad_asset_url){var r=ot(xt(t.ad_asset_url),2),o=r[0],s=r[1];this.pm.data.view_preroll_ad_asset_domain=s,this.pm.data.view_preroll_ad_asset_hostname=o}}this.pm.data.ad_asset_url=null==t?void 0:t.ad_asset_url,this.pm.data.ad_tag_url=null==t?void 0:t.ad_tag_url,this.pm.data.ad_creative_id=null==t?void 0:t.ad_creative_id,this.pm.data.ad_id=null==t?void 0:t.ad_id,this.pm.data.ad_universal_id=null==t?void 0:t.ad_universal_id}}]),e}(),fn=vn,bn=Ue(Be()),gn=function e(t){_t(this,e);var n,i,a=function(){t.disableRebufferTracking||n&&(Mt(t.data,"view_waiting_rebuffer_duration",yt.now()-n),n=!1,bn.default.clearInterval(i))},r=!1,o=function(){r=!1,a()};t.on("waiting",(function(){r&&(t.disableRebufferTracking||(Mt(t.data,"view_waiting_rebuffer_count",1),n=yt.now(),i=bn.default.setInterval((function(){if(n){var e=yt.now();Mt(t.data,"view_waiting_rebuffer_duration",e-n),n=e}}),250)))})),t.on("playing",(function(){a(),r=!0})),t.on("pause",o),t.on("seeking",o)},yn=function e(t){var n=this;_t(this,e),wt(this,"lastWallClockTime",void 0);var i=function(){n.lastWallClockTime=yt.now(),t.on("before*",a)},a=function(e){var i=yt.now(),a=n.lastWallClockTime;n.lastWallClockTime=i,i-a>3e4&&(t.emit("devicesleep",{viewer_time:a}),Object.assign(t.data,{viewer_time:a}),t.send("devicesleep"),t.emit("devicewake",{viewer_time:i}),Object.assign(t.data,{viewer_time:i}),t.send("devicewake"))};t.one("playbackheartbeat",i),t.on("playbackheartbeatend",(function(){t.off("before*",a),t.one("playbackheartbeat",i)}))},En=Ue(Be()),_n=Ue(Fe()),An=Ue($e()),kn="muxData",wn=function(){var e;try{e=_n.default.parse(An.default.get(kn)||"")}catch(ng){e={}}return e},Tn=function(e){try{An.default.set(kn,_n.default.stringify(e),{expires:365})}catch(ng){}};var Sn=Ue(Be()),Cn=function(){var e;switch(In()){case"cellular":e="cellular";break;case"ethernet":e="wired";break;case"wifi":e="wifi";break;case void 0:break;default:e="other"}return e},In=function(){var e=Sn.default.navigator,t=e&&(e.connection||e.mozConnection||e.webkitConnection);return t&&t.type};Cn.getConnectionFromAPI=In;var xn=Cn,Ln=Mn({a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",i:"internal",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"}),Rn=Mn({ad:"ad",ag:"aggregate",ap:"api",al:"application",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",br:"break",bw:"browser",by:"bytes",bz:"business",ca:"cached",cb:"cancel",cc:"codec",cd:"code",cg:"category",ch:"changed",ck:"clicked",cl:"canceled",cn:"config",co:"count",ce:"counter",cp:"complete",cr:"creative",ct:"content",cu:"current",cx:"c
2onnection",cz:"context",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",dr:"drm",dp:"dropped",du:"duration",dv:"device",ec:"encoding",ed:"edge",en:"end",eg:"engine",em:"embed",er:"error",ep:"experiments",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",ez:"exception",fa:"failed",fi:"first",fm:"family",ft:"format",fp:"fps",fq:"frequency",fr:"frame",fs:"fullscreen",ha:"has",hb:"holdback",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pr:"preload",ps:"position",pt:"part",py:"property",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",sd:"skipped",se:"session",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",st:"start",su:"startup",sv:"server",sw:"software",sy:"severity",ta:"tag",tc:"tech",te:"text",tg:"target",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",un:"universal",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"});function Mn(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Dn(e){var t={},n={};return Object.keys(e).forEach((function(i){var a=!1;if(e.hasOwnProperty(i)&&void 0!==e[i]){var r=i.split("_"),o=r[0],s=Ln[o];s||(pt.info("Data key word `"+r[0]+"` not expected in "+i),s=o+"_"),r.splice(1).forEach((function(e){"url"===e&&(a=!0),Rn[e]?s+=Rn[e]:Number(e)&&Math.floor(Number(e))===Number(e)?s+=e:(pt.info("Data key word `"+e+"` not expected in "+i),s+="_"+e+"_")})),a?n[s]=e[i]:t[s]=e[i]}})),Object.assign(t,n)}var On=Ue(Be()),Nn={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:1e4,maxPayloadKBSize:500},Pn=["hb","requestcompleted","requestfailed","requestcanceled"],Un=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._beaconUrl=e||"https://img.litix.io",this._eventQueue=[],this._postInFlight=!1,this._failureCount=0,this._sendTimeout=!1,this._options=Object.assign({},Nn,t)};Un.prototype.queueEvent=function(e,t){var n=Object.assign({},t);return(this._eventQueue.length<=this._options.maxQueueLength||"eventrateexceeded"===e)&&(this._eventQueue.push(n),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength)},Un.prototype.flushEvents=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&1===this._eventQueue.length?this._eventQueue.pop():(this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending())},Un.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.destroyed=!0,e?this._clearBeaconQueue():this.flushEvents(),On.default.clearTimeout(this._sendTimeout)},Un.prototype._clearBeaconQueue=function(){var e=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,t=this._eventQueue.slice(e);e>0&&Object.assign(t[t.length-1],Dn({mux_view_message:"event queue truncated"}));var n=this._createPayload(t);Wn(this._beaconUrl,n,!0,(function(){}))},Un.prototype._sendBeaconQueue=function(){var e=this;if(!this._postInFlight){var t=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0;var n=this._createPayload(t),i=yt.now();Wn(this._beaconUrl,n,!1,(function(n,a){a?(e._eventQueue=t.concat(e._eventQueue),e._failureCount+=1,pt.info("Error sending beacon: "+a)):e._failureCount=0,e._roundTripTime=yt.now()-i,e._postInFlight=!1}))}},Un.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var e=Math.pow(2,this._failureCount-1);return(1+(e*=Math.random()))*this._options.baseTimeBetweenBeacons},Un.prototype._startBeaconSending=function(){var e=this;On.default.clearTimeout(this._sendTimeout),!this.destroyed&&(this._sendTimeout=On.default.setTimeout((function(){e._eventQueue.length&&e._sendBeaconQueue(),e._startBeaconSending()}),this._getNextBeaconTime()))},Un.prototype._createPayload=function(e){var t=this,n={transmission_timestamp:Math.round(yt.now())};this._roundTripTime&&(n.rtt_ms=Math.round(this._roundTripTime));var i,a,r,o=function(){i=JSON.stringify({metadata:n,events:a||e}),r=i.length/1024},s=function(){return r<=t._options.maxPayloadKBSize};return o(),s()||(pt.info("Payload size is too big ("+r+" kb). Removing unnecessary events."),a=e.filter((function(e){return-1===Pn.indexOf(e.e)})),o()),s()||(pt.info("Payload size still too big ("+r+" kb). Cropping fields.."),a.forEach((function(e){for(var t in e){var n=e[t];"string"==typeof n&&n.length>51200&&(e[t]=n.substring(0,51200))}})),o()),i};var Bn=function(e){return e.length<=57344},Wn=function(e,t,n,i){if(n&&navigator&&navigator.sendBeacon&&navigator.sendBeacon(e,t))i();else if(On.default.fetch)On.default.fetch(e,{method:"POST",body:t,headers:{"Content-Type":"text/plain"},keepalive:Bn(t)}).then((function(e){return i(null,e.ok?null:"Error")})).catch((function(e){return i(null,e)}));else{if(On.default.XMLHttpRequest){var a=new On.default.XMLHttpRequest;return a.onreadystatechange=function(){if(4===a.readyState)return i(null,200!==a.status?"error":void 0)},a.open("POST",e),a.setRequestHeader("Content-Type","text/plain"),void a.send(t)}i()}},Hn=Un,jn=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id","player_error_code","player_error_message","player_error_context","player_error_severity","player_error_business_exception"],qn=["adplay","adplaying","adpause","adfirstquartile","admidpoint","adthirdquartile","adended","adresponse","adrequest"],Vn=["ad_id","ad_creative_id","ad_universal_id"],Fn=["viewstart","error","ended","viewend"],$n=function(){function e(t,n){var i,a,r,o,s,l,d,u,c,h,m,p,v,f,b,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
2_t(this,e),wt(this,"mux",void 0),wt(this,"envKey",void 0),wt(this,"options",void 0),wt(this,"eventQueue",void 0),wt(this,"sampleRate",void 0),wt(this,"disableCookies",void 0),wt(this,"respectDoNotTrack",void 0),wt(this,"previousBeaconData",void 0),wt(this,"lastEventTime",void 0),wt(this,"rateLimited",void 0),wt(this,"pageLevelData",void 0),wt(this,"viewerData",void 0),this.mux=t,this.envKey=n,this.options=g,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.eventQueue=new Hn(function(e,t){var n=t.beaconCollectionDomain,i=t.beaconDomain;if(n)return"https://"+n;var a=i||"litix.io";return(e=e||"inferred").match(/^[a-z0-9]+$/)?"https://"+e+"."+a:"https://img.litix.io/a.gif"}(this.envKey,this.options)),this.sampleRate=null!==(v=this.options.sampleRate)&&void 0!==v?v:1,this.disableCookies=null!==(f=this.options.disableCookies)&&void 0!==f&&f,this.respectDoNotTrack=null!==(b=this.options.respectDoNotTrack)&&void 0!==b&&b,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:null===(i=this.options.platform)||void 0===i?void 0:i.name,viewer_application_version:null===(a=this.options.platform)||void 0===a?void 0:a.version,viewer_application_engine:null===(r=this.options.platform)||void 0===r?void 0:r.layout,viewer_device_name:null===(o=this.options.platform)||void 0===o?void 0:o.product,viewer_device_category:"",viewer_device_manufacturer:null===(s=this.options.platform)||void 0===s?void 0:s.manufacturer,viewer_os_family:null===(d=this.options.platform)||void 0===d||null===(l=d.os)||void 0===l?void 0:l.family,viewer_os_architecture:null===(c=this.options.platform)||void 0===c||null===(u=c.os)||void 0===u?void 0:u.architecture,viewer_os_version:null===(m=this.options.platform)||void 0===m||null===(h=m.os)||void 0===h?void 0:h.version,viewer_connection_type:xn(),page_url:null===En.default||void 0===En.default||null===(p=En.default.location)||void 0===p?void 0:p.href},this.viewerData=this.disableCookies?{}:function(){var e=wn();return e.mux_viewer_id=e.mux_viewer_id||lt(),e.msn=e.msn||Math.random(),Tn(e),{mux_viewer_id:e.mux_viewer_id,mux_sample_number:e.msn}}()}return kt(e,[{key:"send",value:function(e,t){if(e&&null!=t&&t.view_id){if(this.respectDoNotTrack&&ft())return pt.info("Not sending `"+e+"` because Do Not Track is enabled");if(!t||"object"!=typeof t)return pt.error("A data object was expected in send() but was not provided");var n=this.disableCookies?{}:function(){var e=wn(),t=yt.now();return e.session_start&&(e.sst=e.session_start,delete e.session_start),e.session_id&&(e.sid=e.session_id,delete e.session_id),e.session_expires&&(e.sex=e.session_expires,delete e.session_expires),(!e.sex||e.sex<t)&&(e.sid=lt(),e.sst=t),e.sex=t+15e5,Tn(e),{session_id:e.sid,session_start:e.sst,session_expires:e.sex}}(),i=Ot(Dt({},this.pageLevelData,t,n,this.viewerData),{event:e,env_key:this.envKey});i.user_id&&(i.viewer_user_id=i.user_id,delete i.user_id);var a,r=(null!==(a=i.mux_sample_number)&&void 0!==a?a:0)>=this.sampleRate,o=Dn(this._deduplicateBeaconData(e,i));if(this.lastEventTime=this.mux.utils.now(),r)return pt.info("Not sending event due to sample rate restriction",e,i,o);if(this.envKey||pt.info("Missing environment key (envKey) - beacons will be dropped if the video source is not a valid mux video URL",e,i,o),!this.rateLimited)if(pt.info("Sending event",e,i,o),this.rateLimited=!this.eventQueue.queueEvent(e,o),this.mux.WINDOW_UNLOADING&&"viewend"===e)this.eventQueue.destroy(!0);else if(this.mux.WINDOW_HIDDEN&&"hb"===e?this.eventQueue.flushEvents(!0):Fn.indexOf(e)>=0&&this.eventQueue.flushEvents(),this.rateLimited)return i.event="eventrateexceeded",o=Dn(i),this.eventQueue.queueEvent(i.event,o),pt.error("Beaconing disabled due to rate limit.")}}},{key:"destroy",value:function(){this.eventQueue.destroy(!1)}},{key:"_deduplicateBeaconData",value:function(e,t){var n=this,i={},a=t.view_id;if("-1"===a||"viewstart"===e||"viewend"===e||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)i=Dt({},t),a&&(this.previousBeaconData=i),a&&"viewend"===e&&(this.previousBeaconData=null);else{var r=0===e.indexOf("request");Object.entries(t).forEach((function(t){var a=ot(t,2),o=a[0],s=a[1];n.previousBeaconData&&(s!==n.previousBeaconData[o]||jn.indexOf(o)>-1||n.objectHasChanged(r,o,s,n.previousBeaconData[o])||n.eventRequiresKey(e,o))&&(i[o]=s,n.previousBeaconData[o]=s)}))}return i}},{key:"objectHasChanged",value:function(e,t,n,i){return!(!e||0!==t.indexOf("request_"))&&("request_response_headers"===t||"object"!=typeof n||"object"!=typeof i||Object.keys(n||{}).length!==Object.keys(i||{}).length)}},{key:"eventRequiresKey",value:function(e,t){return!!("renditionchange"===e&&0===t.indexOf("video_source_")||Vn.includes(t)&&qn.includes(e))}}]),e}(),Kn=function e(t){_t(this,e);var n=0,i=0,a=0,r=0,o=0,s=0,l=0;t.on("requestcompleted",(function(e,s){var l,d,u=s.request_start,c=s.request_response_start,h=s.request_response_end,m=s.request_bytes_loaded;if(r++,c?(l=c-(null!=u?u:0),d=(null!=h?h:0)-c):d=(null!=h?h:0)-(null!=u?u:0),d>0&&m&&m>0){var p=m/d*8e3;o++,i+=m,a+=d,t.data.view_min_request_throughput=Math.min(t.data.view_min_request_throughput||1/0,p),t.data.view_average_request_throughput=i/a*8e3,t.data.view_request_count=r,l>0&&(n+=l,t.data.view_max_request_latency=Math.max(t.data.view_max_request_latency||0,l),t.data.view_average_request_latency=n/o)}})),t.on("requestfailed",(function(e,n){r++,s++,t.data.view_request_count=r,t.data.view_request_failed_count=s})),t.on("requestcanceled",(function(e,n){r++,l++,t.data.view_request_count=r,t.data.view_request_canceled_count=l}))},Gn=function e(t){var n=this;_t(this,e),wt(this,"_lastEventTime",void 0),t.on("before*",(function(e,i){var a=i.viewer_time,r=yt.now(),o=n._lastEventTime;if(n._lastEventTime=r,o&&r-o>36e5){var s=Object.keys(t.data).reduce((function(e,n){return 0===n.indexOf("video_")?Object.assign(e,wt({},n,t.data[n])):e}),{});t.mux.log.info("Received event after at least an hour inactivity, creating a new view"),t.emit("viewinit",Object.assign({viewer_time:a},s)),t.playbackHeartbeat._playheadShouldBeProgressing&&"play"!==e.type&&"adbreakstart"!==e.type&&(t.emit("play",{viewer_time:a}),"playing"!==e.type&&t.emit("playing",{viewer_time:a}))}}))},Yn=["viewstart","ended","loadstart","pause","play","playing","ratechange","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","adfirstquartile","admidpoint","adthirdquartile","rebufferstart","rebufferend","seeked","error","hb","requestcompleted","requestfailed","requestcanceled","renditionchange"],zn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&Tt(e,t)}(n,e);var t=Ct(n);function n(e,i,a){var r;
2_t(this,n),wt(Et(r=t.call(this)),"DOM_CONTENT_LOADED_EVENT_END",void 0),wt(Et(r),"NAVIGATION_START",void 0),wt(Et(r),"_destroyed",void 0),wt(Et(r),"_heartBeatTimeout",void 0),wt(Et(r),"adTracker",void 0),wt(Et(r),"dashjs",void 0),wt(Et(r),"data",void 0),wt(Et(r),"disablePlayheadRebufferTracking",void 0),wt(Et(r),"disableRebufferTracking",void 0),wt(Et(r),"errorTracker",void 0),wt(Et(r),"errorTranslator",void 0),wt(Et(r),"getAdData",void 0),wt(Et(r),"getPlayheadTime",void 0),wt(Et(r),"getStateData",void 0),wt(Et(r),"hlsjs",void 0),wt(Et(r),"id",void 0),wt(Et(r),"longResumeTracker",void 0),wt(Et(r),"minimumRebufferDuration",void 0),wt(Et(r),"mux",void 0),wt(Et(r),"oldEmit",void 0),wt(Et(r),"playbackEventDispatcher",void 0),wt(Et(r),"playbackHeartbeat",void 0),wt(Et(r),"playbackHeartbeatTime",void 0),wt(Et(r),"playheadTime",void 0),wt(Et(r),"seekingTracker",void 0),wt(Et(r),"sustainedRebufferThreshold",void 0),wt(Et(r),"watchTimeTracker",void 0),wt(Et(r),"currentFragmentPDT",void 0),wt(Et(r),"currentFragmentStart",void 0),r.DOM_CONTENT_LOADED_EVENT_END=Rt.domContentLoadedEventEnd(),r.NAVIGATION_START=Rt.navigationStart();r.mux=e,r.id=i,null!=a&&a.beaconDomain&&r.mux.log.warn("The `beaconDomain` setting has been deprecated in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`."),a=Object.assign({debug:!1,minimumRebufferDuration:250,sustainedRebufferThreshold:1e3,playbackHeartbeatTime:25,beaconDomain:"litix.io",sampleRate:1,disableCookies:!1,respectDoNotTrack:!1,disableRebufferTracking:!1,disablePlayheadRebufferTracking:!1,errorTranslator:function(e){return e}},a),a.data=a.data||{},a.data.property_key&&(a.data.env_key=a.data.property_key,delete a.data.property_key),pt.setLevel(a.debug?"debug":"warn"),r.getPlayheadTime=a.getPlayheadTime,r.getStateData=a.getStateData||function(){return{}},r.getAdData=a.getAdData||function(){},r.minimumRebufferDuration=a.minimumRebufferDuration,r.sustainedRebufferThreshold=a.sustainedRebufferThreshold,r.playbackHeartbeatTime=a.playbackHeartbeatTime,r.disableRebufferTracking=a.disableRebufferTracking,r.disableRebufferTracking&&r.mux.log.warn("Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering."),r.disablePlayheadRebufferTracking=a.disablePlayheadRebufferTracking,r.errorTranslator=a.errorTranslator,r.playbackEventDispatcher=new $n(e,a.data.env_key,a),r.data={player_instance_id:lt(),mux_sample_rate:a.sampleRate,beacon_domain:a.beaconCollectionDomain||a.beaconDomain},r.data.view_sequence_number=1,r.data.player_sequence_number=1,r.oldEmit=r.emit,r.emit=function(e,t){t=Object.assign({viewer_time:this.mux.utils.now()},t),this.oldEmit(e,t)};var o=function(){void 0===this.data.view_start&&(this.data.view_start=this.mux.utils.now(),this.emit("viewstart"))}.bind(Et(r));r.on("viewinit",(function(e,t){this._resetVideoData(),this._resetViewData(),this._resetErrorData(),this._updateStateData(),Object.assign(this.data,t),this._initializeViewData(),this.one("play",o),this.one("adbreakstart",o)}));var s=function(e){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",e)}.bind(Et(r));if(r.on("videochange",(function(e,t){s(t)})),r.on("programchange",(function(e,t){this.data.player_is_paused&&this.mux.log.warn("The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information."),s(Object.assign(t,{view_program_changed:!0})),o(),this.emit("play"),this.emit("playing")})),r.on("fragmentchange",(function(e,t){this.currentFragmentPDT=t.currentFragmentPDT,this.currentFragmentStart=t.currentFragmentStart})),r.on("destroy",r.destroy),"undefined"!=typeof window&&"function"==typeof window.addEventListener&&"function"==typeof window.removeEventListener){var l=function(){var e=void 0!==r.data.view_start;r.mux.WINDOW_HIDDEN="hidden"===document.visibilityState,e&&r.mux.WINDOW_HIDDEN&&(r.data.player_is_paused||r.emit("hb"))};window.addEventListener("visibilitychange",l,!1);var d=function(e){e.persisted||r.destroy()};window.addEventListener("pagehide",d,!1),r.on("destroy",(function(){window.removeEventListener("visibilitychange",l),window.removeEventListener("pagehide",d)}))}r.on("playerready",(function(e,t){Object.assign(this.data,t)}
2)),Yn.forEach((function(e){r.on(e,(function(t,n){0!==e.indexOf("ad")&&this._updateStateData(),Object.assign(this.data,n),this._sanitizeData()})),r.on("after"+e,(function(){("error"!==e||this.errorTracker.viewErrored)&&this.send(e)}))})),r.on("viewend",(function(e,t){Object.assign(r.data,t)}));return r.one("playerready",(function(e){var t=this.mux.utils.now();this.data.player_init_time&&(this.data.player_startup_time=t-this.data.player_init_time),!this.mux.PLAYER_TRACKED&&this.NAVIGATION_START&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.DOM_CONTENT_LOADED_EVENT_END)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.DOM_CONTENT_LOADED_EVENT_END||1/0)-this.NAVIGATION_START)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time})),r.longResumeTracker=new Gn(Et(r)),r.errorTracker=new Qt(Et(r)),new yn(Et(r)),r.seekingTracker=new hn(Et(r)),r.playheadTime=new an(Et(r)),r.playbackHeartbeat=new Zt(Et(r)),new cn(Et(r)),r.watchTimeTracker=new Jt(Et(r)),new tn(Et(r)),r.adTracker=new fn(Et(r)),new ln(Et(r)),new on(Et(r)),new un(Et(r)),new gn(Et(r)),new Kn(Et(r)),a.hlsjs&&r.addHLSJS(a),a.dashjs&&r.addDashJS(a),r.emit("viewinit",a.data),r}return kt(n,[{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,void 0!==this.data.view_start&&(this.emit
vendor: 4,209 bytes, line 2
2("viewend"),this.send("viewend")),this.playbackEventDispatcher.destroy(),this.removeHLSJS(),this.removeDashJS(),window.clearTimeout(this._heartBeatTimeout))}},{key:"send",value:function(e){if(this.data.view_id){var t=Object.assign({},this.data);if(void 0===t.video_source_is_live&&(t.player_source_duration===1/0||t.video_source_duration===1/0?t.video_source_is_live=!0:(t.player_source_duration>0||t.video_source_duration>0)&&(t.video_source_is_live=!1)),t.video_source_is_live||["player_program_time","player_manifest_newest_program_time","player_live_edge_program_time","player_program_time","video_holdback","video_part_holdback","video_target_duration","video_part_target_duration"].forEach((function(e){t[e]=void 0})),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var n=ot(xt(t.video_source_url),2),i=n[0],a=n[1];t.video_source_domain=a,t.video_source_hostname=i}delete t.ad_request_id,this.playbackEventDispatcher.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat(),"viewend"===e&&delete this.data.view_id}}},{key:"_updateStateData",value:function(){Object.assign(this.data,this.getStateData()),this.playheadTime._updatePlayheadTime(),this._sanitizeData()}},{key:"_sanitizeData",value:function(){var e=this;["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"].forEach((function(t){var n=parseInt(e.data[t],10);e.data[t]=isNaN(n)?void 0:n}));["player_source_url","video_source_url"].forEach((function(t){if(e.data[t]){var n=e.data[t].toLowerCase();(0===n.indexOf("data:")||0===n.indexOf("blob:"))&&(e.data[t]="MSE style URL")}}))}},{key:"_resetVideoData",value:function(){var e=this;Object.keys(this.data).forEach((function(t){0===t.indexOf("video_")&&delete e.data[t]}))}},{key:"_resetViewData",value:function(){var e=this;Object.keys(this.data).forEach((function(t){0===t.indexOf("view_")&&delete e.data[t]})),this.data.view_sequence_number=1}},{key:"_resetErrorData",value:function(){delete this.data.player_error_code,delete this.data.player_error_message,delete this.data.player_error_context,delete this.data.player_error_severity,delete this.data.player_error_business_exception}},{key:"_initializeViewData",value:function(){var e=this,t=this.data.view_id=lt(),n=function(){t===e.data.view_id&&Mt(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",n):n()}},{key:"_restartHeartBeat",value:function(){var e=this;window.clearTimeout(this._heartBeatTimeout),this._heartBeatTimeout=window.setTimeout((function(){e.data.player_is_paused||e.emit("hb")}),1e4)}},{key:"addHLSJS",value:function(e){e.hlsjs?this.hlsjs?this.mux.log.warn("An instance of HLS.js is already being monitored for this player."):(this.hlsjs=e.hlsjs,function(e,t,n){var i=arguments.length>4?arguments[4]:void 0,a=e.log,r=e.utils.secondsToMs,o=function(e){var t,n=parseInt(i.version);return 1===n&&null!==e.programDateTime&&(t=e.programDateTime),0===n&&null!==e.pdt&&(t=e.pdt),t};if(Rt.exists()){var s=function(n,i){return e.emit(t,n,i)},l=function(e,t){var n=t.levels,i=t.audioTracks,a=t.url,r=t.stats,o=t.networkDetails,l=t.sessionData,d={},u={};n.forEach((function(e,t){d[t]={width:e.width,height:e.height,bitrate:e.bitrate,attrs:e.attrs}})),i.forEach((function(e,t){u[t]={name:e.name,language:e.lang,bitrate:e.bitrate}}));var c=Ht(r),h=c.bytesLoaded,m=c.requestStart,p=c.responseStart,v=c.responseEnd;s("requestcompleted",Ot(Dt({},Wt(l)),{request_event_type:e,request_bytes_loaded:h,request_start:m,request_response_start:p,request_response_end:v,request_type:"manifest",request_hostname:It(a),request_response_headers:jt(o),request_rendition_lists:{media:d,audio:u,video:{}}}))};n.on(i.Events.MANIFEST_LOADED,l);var d=function(e,t){var n=t.details,i=t.level,a=t.networkDetails,l=t.stats,d=Ht(l),u=d.bytesLoaded,c=d.requestStart,h=d.responseStart,m=d.responseEnd,p=n.fragments[n.fragments.length-1],v=o(p)+r(p.duration);s("requestcompleted",{request_event_type:e,request_bytes_loaded:u,request_start:c,request_response_start:h,request_response_end:m,request_current_level:i,request_type:"manifest",request_hostname:It(n.url),request_response_headers:jt(
2a),video_holdback:n.holdBack&&r(n.holdBack),video_part_holdback:n.partHoldBack&&r(n.partHoldBack),video_part_target_duration:n.partTarget&&r(n.partTarget),video_target_duration:n.targetduration&&r(n.targetduration),video_source_is_live:n.live,player_manifest_newest_program_time:isNaN(v)?void 0:v})};n.on(i.Events.LEVEL_LOADED,d);var u=function(e,t){var n=t.details,i=t.networkDetails,a=t.stats,r=Ht(a),o=r.bytesLoaded,l=r.requestStart,d=r.responseStart,u=r.responseEnd;s("requestcompleted",{request_event_type:e,request_bytes_loaded:o,request_start:l,request_response_start:d,request_response_end:u,request_type:"manifest",request_hostname:It(n.url),request_response_headers:jt(i)})};n.on(i.Events.AUDIO_TRACK_LOADED,u);var c=function(e,t){var i=t.stats,a=t.networkDetails,r=t.frag;i=i||r.stats;var o=Ht(i),l=o.bytesLoaded,d=o.requestStart,u=o.responseStart,c=o.responseEnd,h=a?jt(a):void 0,m={request_event_type:e,request_bytes_loaded:l,request_start:d,request_response_start:u,request_response_end:c,request_hostname:a?It(a.responseURL):void 0,request_id:h?Bt(h):void 0,request_response_headers:h,request_media_duration:r.duration,request_url:null==a?void 0:a.responseURL};"main"===r.type?(m.request_type="media",m.request_current_level=r.level,m.request_video_width=(n.levels[r.level]||{}).width,m.request_video_height=(n.levels[r.level]||{}).height,m.request_labeled_bitrate=(n.levels[r.level]||{}).bitrate):m.request_type=r.type,s("requestcompleted",m)};n.on(i.Events.FRAG_LOADED,c);var h=function(e,t){var n=t.frag,i=n.start,a={currentFragmentPDT:o(n),currentFragmentStart:r(i)};s("fragmentchange",a)};n.on(i.Events.FRAG_CHANGED,h);var m=function(e,t){var n=t.type,a=t.details,r=t.response,o=t.fatal,l=t.frag,d=t.networkDetails,u=(null==l?void 0:l.url)||t.url||"",c=d?jt(d):void 0;if((a===i.ErrorDetails.MANIFEST_LOAD_ERROR||a===i.ErrorDetails.MANIFEST_LOAD_TIMEOUT||a===i.ErrorDetails.FRAG_LOAD_ERROR||a===i.ErrorDetails.FRAG_LOAD_TIMEOUT||a===i.ErrorDetails.LEVEL_LOAD_ERROR||a===i.ErrorDetails.LEVEL_LOAD_TIMEOUT||a===i.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||a===i.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT||a===i.ErrorDetails.SUBTITLE_LOAD_ERROR||a===i.ErrorDetails.SUBTITLE_LOAD_TIMEOUT||a===i.ErrorDetails.KEY_LOAD_ERROR||a===i.ErrorDetails.KEY_LOAD_TIMEOUT)&&s("requestfailed",{request_error:a,request_url:u,request_hostname:It(u),request_id:c?Bt(c):void 0,request_type:a===i.ErrorDetails.FRAG_LOAD_ERROR||a===i.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":a===i.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||a===i.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT?"audio":a===i.ErrorDetails.SUBTITLE_LOAD_ERROR||a===i.ErrorDetails.SUBTITLE_LOAD_TIMEOUT?"subtitle":a===i.ErrorDetails.KEY_LOAD_ERROR||a===i.ErrorDetails.KEY_LOAD_TIMEOUT?"encryption":"manifest",request_error_code:null==r?void 0:r.code,request_error_text:null==r?void 0:r.text}),o){var h,m="".concat(u?"url: ".concat(u,"\n"):"")+"".concat(r&&(r.code||r.text)?"response: ".concat(r.code,", ").concat(r.text,"\n"):"")+"".concat(t.reason?"failure reason: ".concat(t.reason,"\n"):"")+"".concat(t.level?"level: ".concat(t.level,"\n"):"")+"".concat(t.parent?"parent stream controller: ".concat(t.parent,"\n"):"")+"".concat(t.buffer?"buffer length: ".concat(t.buffer,"\n"):"")+"".concat(t.error?"error: ".concat(t.error,"\n"):"")+"".concat(t.event?"event: ".concat(t.event,"\n"):"")+"".concat(t.err?"error message: ".concat(null===(h=t.err)||void 0===h?void 0:h.message,"\n"):"");s("error",{player_error_code:n,player_error_message:a,player_error_context:m})}};n.on(i.Events.ERROR,m);var p=function(e,t){var n=t.frag,i=n&&n._url||"";s("requestcanceled",{request_event_type:e,request_url:i,request_type:"media",request_hostname:It(i)})};n.on(i.Events.FRAG_LOAD_EMERGENCY_ABORTED,p);var v=function(e,t){var i=t.level,r=n.levels[i];if(r&&r.attrs&&r.attrs.BANDWIDTH){var o,l=r.attrs.BANDWIDTH,d=parseFloat(r.attrs["FRAME-RATE"]);isNaN(d)||(o=d),l?s("renditionchange",{video_source_fps:o,video_source_bitrate:l,video_source_width:r.width,video_source_height:r.height,video_source_rendition_name:r.name,video_source_codec:null==r?void 0:r.videoCodec}):a.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(i.Events.LEVEL_SWITCHED,v),n._stopMuxMonitor=function(){n.off(i.Events.MANIFEST_LOADED,l),n.off(i.Events.LEVEL_LOADED,d),n.off(i.Events.AUDIO_TRACK_LOADED,u),n.off(i.Events.FRAG_LOADED,c),n.off(i.Events.FRAG_CHANGED,h),n.off(i.Events.ERROR,m),n.off(i.Events.FRAG_LOAD_EMERGENCY_ABORTED,p),n.off(i.Events.LEVEL_SWITCHED,v),n.off(i.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(i.Events.DESTROYING,n._stopMuxMonitor)}else a.warn("performance timing not supported. Not tracking HLS.js.")}(this.mux,this.id,e.hlsjs,{},e.Hls||window.Hls)):this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.")}},{key:"removeHLSJS",value:function(){this.hlsjs&&(function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()}(this.hlsjs),this.hlsjs=void 0)}},{key:"addDashJS",value:function(e){e.dashjs?this.dashjs?this.mux.log.warn("An instance of Dash.js is already being monitored for this player."):(this.dashjs=e.dashjs,Ft(this.mux,this.id,e.dashjs)):this.mux.log.warn("You must pass a valid dashjs instance in order to track it.")}},{key:"removeDashJS",value:function(){this.dashjs&&(function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()}(this.dashjs),this.dashjs=void 0)}}]),n}(Gt),Zn=zn;He();var Qn=Ue(at());var Xn=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],Jn={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"};var ei,ti=Ue(Be());ti.default&&ti.default.WeakMap&&(ei=new WeakMap);var ni="#EXT-X-TARGETDURATION",ii="#EXT-X-PART-INF",ai="#EXT-X-SERVER-CONTROL",ri="#EXTINF",oi="#EXT-X-PROGRAM-DATE-TIME",si="#EXT-X-VERSION",li="#EXT-X-SESSION-DATA",di=function(e){return this.buffer="",this.manifest={segments:[],serverControl:{},sessionData:{}},this.currentUri={},this.process(e),this.manifest};di.prototype.process=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.processLine(this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}
2,di.prototype.processLine=function(e){var t=e.indexOf(":"),n=fi(e,t),i=n[0],a=2===n.length?hi(n[1]):void 0;if("#"!==i[0])this.currentUri.uri=i,this.manifest.segments.push(this.currentUri),this.manifest.targetDuration&&!("duration"in this.currentUri)&&(this.currentUri.duration=this.manifest.targetDuration),this.currentUri={};else switch(i){case ni:if(!isFinite(a)||a<0)return;this.manifest.targetDuration=a,this.setHoldBack();break;case ii:ui(this.manifest,n),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),this.setHoldBack();break;case ai:ui(this.manifest,n),this.setHoldBack();break;case ri:0===a?this.currentUri.duration=.01:a>0&&(this.currentUri.duration=a);break;case oi:var r=a,o=new Date(r);this.manifest.dateTimeString||(this.manifest.dateTimeString=r,this.manifest.dateTimeObject=o),this.currentUri.dateTimeString=r,this.currentUri.dateTimeObject=o;break;case si:ui(this.manifest,n);break;case li:var s=bi(n[1]),l=Wt(s);Object.assign(this.manifest.sessionData,l)}},di.prototype.setHoldBack=function(){var e=this.manifest,t=e.serverControl,n=e.targetDuration,i=e.partTargetDuration;if(t){var a="holdBack",r="partHoldBack",o=n&&3*n,s=i&&2*i;n&&!t.hasOwnProperty(a)&&(t[a]=o),o&&t[a]<o&&(t[a]=o),i&&!t.hasOwnProperty(r)&&(t[r]=3*i),i&&t[r]<s&&(t[r]=s)}};var ui=function(e,t){var n,i=ci(t[0].replace("#EXT-X-",""));vi(t[1])?(n={},n=Object.assign(pi(t[1]),n)):n=hi(t[1]),e[i]=n},ci=function(e){return e.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()}))},hi=function(e){if("yes"===e.toLowerCase()||"no"===e.toLowerCase())return"yes"===e.toLowerCase();var t=-1!==e.indexOf(":")?e:parseFloat(e);return isNaN(t)?e:t},mi=function(e){var t={},n=e.split("=");n.length>1&&(t[ci(n[0])]=hi(n[1]));return t},pi=function(e){for(var t=e.split(","),n={},i=0;t.length>i;i++){var a=t[i],r=mi(a);n=Object.assign(r,n)}return n},vi=function(e){return e.indexOf("=")>-1},fi=function(e,t){return-1===t?[e]:[e.substring(0,t),e.substring(t+1)]},bi=function(e){var t={};if(e){var n=e.search(",");return[e.slice(0,n),e.slice(n+1)].forEach((function(e,n){for(var i=e.replace(/['"]+/g,"").split("="),a=0;a<i.length;a++)"DATA-ID"===i[a]&&(t["DATA-ID"]=i[1-a]),"VALUE"===i[a]&&(t.VALUE=i[1-a])})),{data:t}}},gi=di,yi={safeCall:function(e,t,n,i){var a=i;if(e&&"function"==typeof e[t])try{a=e[t].apply(e,n)}catch(eA){pt.info("safeCall error",eA)}return a},safeIncrement:Mt,getComputedStyle:function(e,t){return e&&t&&ti.default&&"function"==typeof ti.default.getComputedStyle?(ei&&ei.has(e)&&(n=ei.get(e)),n||(n=ti.default.getComputedStyle(e,null),ei&&ei.set(e,n)),n.getPropertyValue(t)):"";var n},secondsToMs:function(e){return Math.floor(1e3*e)},assign:Object.assign,headersStringToObject:Ut,cdnHeadersToRequestId:Bt,extractHostnameAndDomain:xt,extractHostname:It,manifestParser:gi,generateShortID:dt,generateUUID:lt,now:yt.now},Ei=yi,_i={PLAYER_READY:"playerready",VIEW_INIT:"viewinit",VIDEO_CHANGE:"videochange",PLAY:"play",PAUSE:"pause",PLAYING:"playing",TIME_UPDATE:"timeupdate",SEEKING:"seeking",SEEKED:"seeked",REBUFFER_START:"rebufferstart",REBUFFER_END:"rebufferend",ERROR:"error",ENDED:"ended",RENDITION_CHANGE:"renditionchange",ORIENTATION_CHANGE:"orientationchange",AD_REQUEST:"adrequest",AD_RESPONSE:"adresponse",AD_BREAK_START:"adbreakstart",AD_PLAY:"adplay",AD_PLAYING:"adplaying",AD_PAUSE:"adpause",AD_FIRST_QUARTILE:"adfirstquartile",AD_MID_POINT:"admidpoint",AD_THIRD_QUARTILE:"adthirdquartile",AD_ENDED:"adended",AD_BREAK_END:"adbreakend",AD_ERROR:"aderror",REQUEST_COMPLETED:"requestcompleted",REQUEST_FAILED:"requestfailed",REQUEST_CANCELLED:"requestcanceled"},Ai={},ki=function(e){var t=arguments;"string"==typeof e?ki.hasOwnProperty(e)?st.default.setTimeout((function(){t=Array.prototype.splice.call(t,1),ki[e].apply(null,t)}),0):pt.warn("`"+e+"` is an unknown task"):"function"==typeof e?st.default.setTimeout((function(){e(ki)}),0):pt.warn("`"+e+"` is invalid.")},wi={loaded:yt.now(),NAME:"mux-embed",VERSION:"5.2.1",API_VERSION:"2.1",PLAYER_TRACKED:!1,monitor:function(e,t){return function(e,t,n){var i=ot(ct(t),3),a=i[0],r=i[1],o=i[2],s=e.log,l=e.utils.getComputedStyle,d=e.utils.secondsToMs;if(!a)return s.error("No element was found with the `"+r+"` query selector.");if("video"!==o&&"audio"!==o)return s.error("The element of `"+r+"` was not a media element.");a.mux&&(a.mux.destroy(),delete a.mux,s.warn("Already monitoring this video element, replacing existing event listeners")),(n=Object.assign({automaticErrorTracking:!0},n)).data=Object.assign({player_software:"HTML5 Video Element",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:e.VERSION},n.data),n.getPlayheadTime=function(){return d(a.currentTime)},n.getStateData=function(){var e,t=this.hlsjs&&this.hlsjs.url,i=this.dashjs&&We("function"===this.dashjs.getSource)&&this.dashjs.getSource(),r
2={player_is_paused:a.paused,player_playhead_time:d(a.currentTime),player_width:parseInt(l(a,"width")),player_height:parseInt(l(a,"height")),player_autoplay_on:a.autoplay,player_preload_on:a.preload,player_language_code:a.lang,player_is_fullscreen:Qn.default&&!!(Qn.default.fullscreenElement||Qn.default.webkitFullscreenElement||Qn.default.mozFullScreenElement||Qn.default.msFullscreenElement),video_poster_url:a.poster,video_source_url:t||i||a.currentSrc,video_source_duration:d(a.duration),video_source_height:a.videoHeight,video_source_width:a.videoWidth,view_dropped_frame_count:null==a||null===(e=a.getVideoPlaybackQuality)||void 0===e?void 0:e.call(a).droppedVideoFrames},o=n.getPlayheadTime();if(a.getStartDate&&o>0){var s=a.getStartDate();if(s&&"function"==typeof s.getTime&&s.getTime()){var u=s.getTime();if(r.player_program_time=u+o,a.seekable.length>0){var c=u+a.seekable.end(a.seekable.length-1);r.player_live_edge_program_time=c}}}return r},a.mux=a.mux||{},a.mux.deleted=!1,a.mux.emit=function(t,n){e.emit(r,t,n)};var u=function(){s.error("The monitor for this video element has already been destroyed.")};a.mux.destroy=function(){Object.keys(a.mux.listeners).forEach((function(e){a.removeEventListener(e,a.mux.listeners[e],!1)})),delete a.mux.listeners,a.mux.destroy=u,a.mux.swapElement=u,a.mux.emit=u,a.mux.addHLSJS=u,a.mux.addDashJS=u,a.mux.removeHLSJS=u,a.mux.removeDashJS=u,a.mux.deleted=!0,e.emit(r,"destroy")},a.mux.swapElement=function(t){var n=ot(ct(t),3),i=n[0],r=n[1],o=n[2];return i?"video"!==o&&"audio"!==o?e.log.error("The element of `"+r+"` was not a media element."):(i.muxId=a.muxId,delete a.muxId,i.mux=i.mux||{},i.mux.listeners=Object.assign({},a.mux.listeners),delete a.mux.listeners,Object.keys(i.mux.listeners).forEach((function(e){a.removeEventListener(e,i.mux.listeners[e],!1),i.addEventListener(e,i.mux.listeners[e],!1)})),i.mux.swapElement=a.mux.swapElement,i.mux.destroy=a.mux.destroy,delete a.mux,void(a=i)):e.log.error("No element was found with the `"+r+"` query selector.")},a.mux.addHLSJS=function(t){e.addHLSJS(r,t)},a.mux.addDashJS=function(t){e.addDashJS(r,t)},a.mux.removeHLSJS=function(){e.removeHLSJS(r)},a.mux.removeDashJS=function(){e.removeDashJS(r)},e.init(r,n),e.emit(r,"playerready"),a.paused||(e.emit(r,"play"),a.readyState>2&&e.emit(r,"playing")),a.mux.listeners={},Xn.forEach((function(t){"error"===t&&!n.automaticErrorTracking||(a.mux.listeners[t]=function(){var n={};if("error"===t){if(!a.error||1===a.error.code)return;n.player_error_code=a.error.code,n.player_error_message=Jn[a.error.code]||a.error.message}e.emit(r,t,n)},a.addEventListener(t,a.mux.listeners[t],!1))}))}(ki,e,t)},destroyMonitor:function(e){var t=ot(ct(e),1)[0];t&&t.mux&&"function"==typeof t.mux.destroy?t.mux.destroy():pt.error("A video element monitor for `"+e+"` has not been initialized via `mux.monitor`.")},addHLSJS:function(e,t){var n=ut(e);Ai[n]?Ai[n].addHLSJS(t):pt.error("A monitor for `"+n+"` has not been initialized.")},addDashJS:function(e,t){var n=ut(e);Ai[n]?Ai[n].addDashJS(t):pt.error("A monitor for `"+n+"` has not been initialized.")},removeHLSJS:function(e){var t=ut(e);Ai[t]?Ai[t].removeHLSJS():pt.error("A monitor for `"+t+"` has not been initialized.")},removeDashJS:function(e){var t=ut(e);Ai[t]?Ai[t].removeDashJS():pt.error("A monitor for `"+t+"` has not been initialized.")},init:function(e,t){ft()&&t&&t.respectDoNotTrack&&pt.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var n=ut(e);Ai[n]=new Zn(ki,n,t)},emit:function(e,t,n){var i=ut(e);Ai[i]?(Ai[i].emit(t,n),"destroy"===t&&delete Ai[i]):pt.error("A monitor for `"+i+"` has not been initialized.")},checkDoNotTrack:ft,log:pt,utils:Ei,events:_i,WINDOW_HIDDEN:!1,WINDOW_UNLOADING:!1};Object.assign(ki,wi),void 0!==st.default&&"function"==typeof st.default.addEventListener&&st.default.addEventListener("pagehide",(function(e){e.persisted||(ki.WINDOW_UNLOADING=!0)}),!1);var Ti=ki,Si=n(4945).Ay,Ci=class e extends Error{constructor(t,n=e.MEDIA_ERR_CUSTOM,i,a){var r;super(t),this.name="MediaError",this.code=n,this.context=a,this.fatal=null!=i?i:n>=e.MEDIA_ERR_NETWORK&&n<=e.MEDIA_ERR_ENCRYPTED,this.message||(this.message=null!=(r=e.defaultMessages[this.code])?r:"")}};Ci.MEDIA_ERR_ABORTED=1,Ci.MEDIA_ERR_NETWORK=2,Ci.MEDIA_ERR_DECODE=3,Ci.MEDIA_ERR_SRC_NOT_SUPPORTED=4,Ci.MEDIA_ERR_ENCRYPTED=5,Ci.MEDIA_ERR_CUSTOM=100,Ci.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail.",3:"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.",4:"An unsupported error occurred. The server or network failed, or your browser does not support this format.",5:"The media is encrypted and there are no keys to decrypt it."};var Ii=Ci,xi=(e,t)=>!(e=>null==e)(t)&&e in t,Li={ANY:"any",MUTED:"muted"},Ri={ON_DEMAND:"on-demand",LIVE:"live",UNKNOWN:"unknown"},Mi="mse",Di="native",Oi={HEADER:"header",QUERY:"query",NONE:"none"},Ni=Object.values(Oi),Pi={M3U8:"application/vnd.apple.mpegurl",MP4:"video/mp4"},Ui={HLS:Pi.M3U8},Bi=(Object.keys(Ui),Object.values(Pi),(e,t,n,i,a=e)=>
2{a.addEventListener(t,n,i),e.addEventListener("teardown",(()=>{a.removeEventListener(t,n)}),{once:!0})});var Wi=e=>{let t=e.type;if(t){let e=t.toUpperCase();return xi(e,Ui)?Ui[e]:t}let{src:n}=e;return n?qi(n):""},Hi=e=>"VOD"===e?Ri.ON_DEMAND:Ri.LIVE,ji=e=>"EVENT"===e?Number.POSITIVE_INFINITY:"VOD"===e?Number.NaN:0,qi=e=>{let t="";try{t=new URL(e).pathname}catch{console.error("invalid url")}let n=t.lastIndexOf(".");if(n<0)return"";let i=t.slice(n+1).toUpperCase();return xi(i,Pi)?Pi[i]:""},Vi=Object.values(Li),Fi=e=>"boolean"==typeof e||"string"==typeof e&&Vi.includes(e),$i=(e,t)=>{if(!t)return;let n=e.muted,i=()=>e.muted=n;switch(t){case Li.ANY:e.play().catch((()=>{e.muted=!0,e.play().catch(i)}));break;case Li.MUTED:e.muted=!0,e.play().catch(i);break;default:e.play().catch((()=>{}))}};function Ki(e,t){var n;if(!("videoTracks"in e))return;let i=new WeakMap;t.on(Si.Events.MANIFEST_PARSED,(function(t,n){o();let a=e.addVideoTrack("main");a.selected=!0;for(let[e,r]of n.levels.entries()){let t=a.addRendition(r.url[0],r.width,r.height,r.videoCodec,r.bitrate);i.set(r,`${e}`),t.id=`${e}`}})),t.on(Si.Events.AUDIO_TRACKS_UPDATED,(function(t,n){r();for(let i of n.audioTracks){let t=i.default?"main":"alternative",n=e.addAudioTrack(t,i.name,i.lang);n.id=`${i.id}`,i.default&&(n.enabled=!0)}})),e.audioTracks.addEventListener("change",(()=>{var n;let i=+(null==(n=[...e.audioTracks].find((e=>e.enabled)))?void 0:n.id),a=t.audioTracks.map((e=>e.id));i!=t.audioTrack&&a.includes(i)&&(t.audioTrack=i)})),t.on(Si.Events.LEVELS_UPDATED,(function(t,n){var a;let r=e.videoTracks[null!=(a=e.videoTracks.selectedIndex)?a:0];if(!r)return;let o=n.levels.map((e=>i.get(e)));for(let i of e.videoRenditions)i.id&&!o.includes(i.id)&&r.removeRendition(i)}));let a=n=>{let i=e.currentTime,a=!1,r=(e,t)=>{a||(a=!Number.isFinite(t.endOffset))};t.on(Si.Events.BUFFER_FLUSHING,r),t.nextLevel=n,t.off(Si.Events.BUFFER_FLUSHING,r),a||t.trigger(Si.Events.BUFFER_FLUSHING,{startOffset:i+10,endOffset:1/0,type:"video"})};null==(n=e.videoRenditions)||n.addEventListener("change",(e=>{let n=e.target.selectedIndex;n!=t.nextLevel&&a(n)}));let r=()=>{for(let t of e.audioTracks)e.removeAudioTrack(t)},o=()=>{(()=>{for(let t of e.videoTracks)e.removeVideoTrack(t)})(),r()};t.once(Si.Events.DESTROYING,o)}var Gi=e=>"time"in e?e.time:e.startTime;function Yi(e,t,n,i,a){let r=document.createElement("track");return r.kind=t,r.label=n,i&&(r.srclang=i),a&&(r.id=a),r.track.mode=["subtitles","captions"].includes(t)?"disabled":"hidden",r.setAttribute("data-removeondestroy",""),e.append(r),r.track}function zi(e,t,n){var i;return null==(i=Array.from(e.querySelectorAll("track")).find((e=>e.track.label===t&&e.track.kind===n)))?void 0:i.track}async function Zi(e,t,n,i){let a=zi(e,n,i);return a||(a=Yi(e,i,n),a.mode="hidden",await new Promise((e=>setTimeout((()=>e(void 0)),0)))),"hidden"!==a.mode&&(a.mode="hidden"),[...t].sort(((e,t)=>Gi(t)-Gi(e))).forEach((t=>{var n,r;let o=t.value,s=Gi(t);if("endTime"in t&&null!=t.endTime)null==a||a.addCue(new VTTCue(s,t.endTime,"chapters"===i?o:JSON.stringify(null!=o?o:null)));else{let t=Array.prototype.findIndex.call(null==a?void 0:a.cues,(e=>e.startTime>=s)),l=null==(n=null==a?void 0:a.cues)?void 0:n[t],d=l?l.startTime:Number.isFinite(e.duration)?e.duration:Number.MAX_SAFE_INTEGER,u=null==(r=null==a?void 0:a.cues)?void 0:r[t-1];u&&(u.endTime=s),null==a||a.addCue(new VTTCue(s,d,"chapters"===i?o:JSON.stringify(null!=o?o:null)))}})),e.textTracks.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a}var Qi="cuepoints",Xi=Object.freeze({label:Qi});async function Ji(e,t,n=Xi){return Zi(e,t,n.label,"metadata")}var ea=e=>({time:e.startTime,value:JSON.parse(e.text)});function ta(e,t={label:Qi}){var n,i;let a=zi(e,t.label,"metadata");if(null==(n=null==a?void 0:a.activeCues)||!n.length)return;if(1===a.activeCues.length)return ea(a.activeCues[0]);let{currentTime:r}=e,o=Array.prototype.find.call(null!=(i=a.activeCues)?i:[],(({startTime:e,endTime:t})=>e<=r&&t>r));return ea(o||a.activeCues[0])}var na="chapters",ia=Object.freeze({label:na}),aa=e=>({startTime:e.startTime,endTime:e.endTime,value:e.text});async function ra(e,t,n=ia){return Zi(e,t,n.label,"chapters")}function oa(e,t={label:na}){var n,i;let a=zi(e,t.label,"chapters");if(null==(n=null==a?void 0:a.activeCues)||!n.length)return;if(1===a.activeCues.length)return aa(a.activeCues[0]);let{currentTime:r}=e,o=Array.prototype.find.call(null!=(i=a.activeCues)?i:[],(({startTime:e,endTime:t})=>e<=r&&t>r));return aa(o||a.activeCues[0])}var sa,la,da,ua,ca=async(e,t)=>{if(t===Pi.MP4)return{streamType:Ri.ON_DEMAND,targetLiveWindow:Number.NaN,liveEdgeStartOffset:void 0};if(t===Pi.M3U8){let t=await(async e=>fetch(e).then((e=>e.text())).then((e=>{let t=e.split("\n").find(((e,t,n)=>t&&n[t-1].startsWith("#EXT-X-STREAM-INF")));return fetch(t).then((e=>e.text())).then((e=>e.split("\n")))})))(e);return(e=>{var t,n,i;let a,r=null==(n=(null!=(t=e.find((e=>e.startsWith("#EXT-X-PLAYLIST-TYPE"))))?t:"").split(":")[1])?void 0:n.trim(),o=Hi(r),s=ji(r);if(o===Ri.LIVE){let t=e.find((e=>e.startsWith("#EXT-X-PART-INF")));if(t)a=2*+t.split(":")[1].split("=")[1];else{let t=e.find((e=>e.startsWith("#EXT-X-TARGETDURATION"))),n=null==(i=null==t?void 0:t.split(":"))?void 0:i[1];a=3*+(null!=n?n:6)}}return{streamType:o,targetLiveWindow:s,liveEdgeStartOffset:a}})(t)}return console.error(`Media type ${t} is an unrecognized or unsupported type for src ${e}.`),{streamType:void 0,targetLiveWindow:void 0,liveEdgeStartOffset:void 0}},ha=async(e,t,n=Wi({src:e}))=>{var i,a,r;let{streamType:o,targetLiveWindow:s,liveEdgeStartOffset:l}=await ca(e,n);(null!=(i=va.get(t))?i:{}).liveEdgeStartOffset=l,(null!=(a=va.get(t))?a:{}).targetLiveWindow=s,t.dispatchEvent(new CustomEvent("targetlivewindowch
2ange",{composed:!0,bubbles:!0})),(null!=(r=va.get(t))?r:{}).streamType=o,t.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))},ma=(e,t,n)=>{var i,a,r,o,s,l,d,u;let{streamType:c,targetLiveWindow:h,liveEdgeStartOffset:m,lowLatency:p}=(e=>{var t;let n,i=e.type,a=Hi(i),r=ji(i),o=!(null==(t=e.partList)||!t.length);return a===Ri.LIVE&&(n=o?2*e.partTarget:3*e.targetduration),{streamType:a,targetLiveWindow:r,liveEdgeStartOffset:n,lowLatency:o}})(e);if(c===Ri.LIVE){p?(n.config.backBufferLength=null!=(i=n.userConfig.backBufferLength)?i:4,n.config.maxFragLookUpTolerance=null!=(a=n.userConfig.maxFragLookUpTolerance)?a:.001,n.config.abrBandWidthUpFactor=null!=(r=n.userConfig.abrBandWidthUpFactor)?r:n.config.abrBandWidthFactor):n.config.backBufferLength=null!=(o=n.userConfig.backBufferLength)?o:8;let e=Object.freeze({get length(){return t.seekable.length},start(e){return t.seekable.start(e)},end(e){var i;return e>this.length||e<0||Number.isFinite(t.duration)?t.seekable.end(e):null!=(i=n.liveSyncPosition)?i:t.seekable.end(e)}});(null!=(s=va.get(t))?s:{}).seekable=e}(null!=(l=va.get(t))?l:{}).liveEdgeStartOffset=m,(null!=(d=va.get(t))?d:{}).targetLiveWindow=h,t.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0})),(null!=(u=va.get(t))?u:{}).streamType=c,t.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))},pa=-1!==(null!=(la=null==(sa=null==globalThis?void 0:globalThis.navigator)?void 0:sa.userAgent)?la:"").toLowerCase().indexOf("android"),va=new WeakMap,fa="mux.com",ba=null==(ua=(da=Si).isSupported)?void 0:ua.call(da),ga=pa,ya=Ti.utils.generateUUID,Ea=({playbackId:e,customDomain:t=fa,maxResolution:n,minResolution:i,renditionOrder:a,programStartTime:r,programEndTime:o,tokens:{playback:s}={},extraSourceParams:l={}}={})=>{if(!e)return;let[d,u=""]=(e=>{let t=e.indexOf("?");return t<0?[e]:[e.slice(0,t),e.slice(t)]})(e),c=new URL(`https://stream.${t}/${d}.m3u8${u}`);return s||c.searchParams.has("token")?(c.searchParams.forEach(((e,t)=>{"token"!=t&&c.searchParams.delete(t)})),s&&c.searchParams.set("token",s)):(n&&c.searchParams.set("max_resolution",n),i&&(c.searchParams.set("min_resolution",i),n&&+n.slice(0,-1)<+i.slice(0,-1)&&console.error("minResolution must be <= maxResolution","minResolution",i,"maxResolution",n)),a&&c.searchParams.set("rendition_order",a),r&&c.searchParams.set("program_start_time",`${r}`),o&&c.searchParams.set("program_end_time",`${o}`),Object.entries(l).forEach((([e,t])=>{null!=t&&c.searchParams.set(e,t)}))),c.toString()},_a=e=>{var t,n,i;return null!=(t=null==e?void 0:e.metadata)&&t.video_id?e.metadata.video_id:Ma(e)&&null!=(i=null!=(n=(e=>{if(!e)return;let[t]=e.split("?");return t||void 0})(e.playbackId))?n:(e=>{if(!e||!e.startsWith("https://stream."))return;let[t]=new URL(e).pathname.slice(1).split(".m3u8");return t||void 0})(e.src))?i:e.src},Aa=e=>{var t,n;return null!=(n=null==(t=va.get(e))?void 0:t.streamType)?n:Ri.UNKNOWN},ka=e=>{var t,n;return null!=(n=null==(t=va.get(e))?void 0:t.seekable)?n:e.seekable},wa=(e,t,n=.034)=>e>t||((e,t,n=.034)=>Math.abs(e-t)<=n)(e,t,n),Ta=(e,t)=>{var n,i,a;if(!t)return;if(e.readyState>2)return!1;let r=t.currentLevel>=0?null==(i=null==(n=t.levels)?void 0:n[t.currentLevel])?void 0:i.details:null==(a=t.levels.find((e=>!!e.details)))?void 0:a.details;if(!r||r.live)return;let{fragments:o}=r;if(null==o||!o.length)return;if(e.currentTime<e.duration-(r.targetduration+.5))return!1;let s=o[o.length-1];if(e.currentTime<=s.start)return!1;let l=s.start+s.duration/2,d=e.buffered.start(e.buffered.length-1),u=e.buffered.end(e.buffered.length-1);return l>d&&l<u},Sa=(e,t)=>e.ended||e.loop?e.ended:!(!t||!Ta(e,t))||((e,t=.034)=>e.paused&&wa(e.currentTime,e.duration,t))(e),Ca=(e,t,n)=>{Ia(t,n);let{metadata:i={}}=e,{view_session_id:a=ya()}=i,r=_a(e);i.view_session_id=a,i.video_id=r,e.metadata=i,va.set(t,{});let o=La(e,t),s=(({preload:e,src:t},n,i)=>{let a=e=>{null!=e&&["","none","metadata","auto"].includes(e)?n.setAttribute("preload",e):n.removeAttribute("preload")};if(!i)return a(e),a;let r=!1,o=!1,s=i.config.maxBufferLength,l=i.config.maxBufferSize,d=e=>{a(e);let t=null!=e?e:n.preload;o||"none"===t||("metadata"===t?(i.config.maxBufferLength=1,i.config.maxBufferSize=1):(i.config.maxBufferLength=s,i.config.maxBufferSize=l),u())},u=()=>{!r&&t&&(r=!0,i.loadSource(t))};return Bi(n,"play",(()=>{o=!0,i.config.maxBufferLength=s,i.config.maxBufferSize=l,u()}),{once:!0}),d(e),d})(e,t,o);Da(e,t,o),Oa(e,t,o),async function(e,t=Xi){new Promise((n=>{Bi(e,"loadstart",(async()=>{let i=await Ji(e,[],t);Bi(e,"cuechange",(()=>{let t=ta(e);if(t){let n=new CustomEvent("cuepointchange",{composed:!0,bubbles:!0,detail:t});e.dispatchEvent(n)}}),{},i),n(i)}))}))}(t),async function(e,t=ia){new Promise((n=>{Bi(e,"loadstart",(async()=>{let i=await ra(e,[],t);Bi(e,"cuechange",(()=>
2{let t=oa(e);if(t){let n=new CustomEvent("chapterchange",{composed:!0,bubbles:!0,detail:t});e.dispatchEvent(n)}}),{},i),n(i)}))}))}(t);let l=((e,t,n)=>{let{autoplay:i}=e,a=!1,r=!1,o=Fi(i)?i:!!i,s=()=>{a||Bi(t,"playing",(()=>{a=!0}),{once:!0})};if(s(),Bi(t,"loadstart",(()=>{a=!1,s(),$i(t,o)}),{once:!0}),Bi(t,"loadstart",(()=>{n||(r=e.streamType&&e.streamType!==Ri.UNKNOWN?e.streamType===Ri.LIVE:!Number.isFinite(t.duration)),$i(t,o)}),{once:!0}),n&&n.once(Si.Events.LEVEL_LOADED,((t,n)=>{var i;r=e.streamType&&e.streamType!==Ri.UNKNOWN?e.streamType===Ri.LIVE:null!=(i=n.details.live)&&i})),!o){let i=()=>{!r||Number.isFinite(e.startTime)||(null!=n&&n.liveSyncPosition?t.currentTime=n.liveSyncPosition:Number.isFinite(t.seekable.end(0))&&(t.currentTime=t.seekable.end(0)))};n&&Bi(t,"play",(()=>{"metadata"===t.preload?n.once(Si.Events.LEVEL_UPDATED,i):i()}),{once:!0})}return e=>{a||(o=Fi(e)?e:!!e,$i(t,o))}})(e,t,o);return{engine:o,setAutoplay:l,setPreload:s}},Ia=(e,t)=>{let n=null==t?void 0:t.engine;n&&(n.detachMedia(),n.destroy()),null!=e&&e.mux&&!e.mux.deleted&&(e.mux.destroy(),delete e.mux),e&&(e.removeAttribute("src"),e.load(),e.removeEventListener("error",Pa),e.removeEventListener("error",Ua),e.removeEventListener("durationchange",Na),va.delete(e),e.dispatchEvent(new Event("teardown")))};function xa(e,t){var n;let i=Wi(e);if(i!==Pi.M3U8)return!0;let a=!i||null==(n=t.canPlayType(i))||n,{preferPlayback:r}=e;return a&&(r===Di||!(ba&&(r===Mi||ga)))}var La=(e,t)=>{let{debug:n,streamType:i,startTime:a=-1,metadata:r,preferCmcd:o,_hlsConfig:s={}}=e,l=Wi(e)===Pi.M3U8,d=xa(e,t);if(l&&!d&&ba){let e={backBufferLength:30,renderTextTracksNatively:!1,liveDurationInfinity:!0,capLevelToPlayerSize:!0,capLevelOnFPSDrop:!0},t=Ra(i),l=o!==Oi.NONE?{useHeaders:o===Oi.HEADER,sessionId:null==r?void 0:r.view_session_id,contentId:null==r?void 0:r.video_id}:void 0;return new Si({debug:n,startPosition:a,cmcd:l,xhrSetup:(e,t)=>{var n,i;if(o&&o!==Oi.QUERY)return;let a=new URL(t);if(!a.searchParams.has("CMCD"))return;let r=(null!=(i=null==(n=a.searchParams.get("CMCD"))?void 0:n.split(","))?i:[]).filter((e=>e.startsWith("sid")||e.startsWith("cid"))).join(",");a.searchParams.set("CMCD",r),e.open("GET",a)},...e,...t,...s})}},Ra=e=>e===Ri.LIVE?{backBufferLength:8}:{},Ma=({playbackId:e,src:t,customDomain:n})=>{if(e)return!0;if("string"!=typeof t)return!1;let i=null==window?void 0:window.location.href,a=new URL(t,i).hostname.toLocaleLowerCase();return a.includes(fa)||!!n&&a.includes(n.toLocaleLowerCase())},Da=(e,t,n)=>{var i;let{envKey:a,disableTracking:r}=e,o=Ma(e);if(!r&&(a||o)){let{playerInitTime:r,playerSoftwareName:o,playerSoftwareVersion:s,beaconCollectionDomain:l,debug:d,disableCookies:u}=e,c={...e.metadata,video_title:(null==(i=null==e?void 0:e.metadata)?void 0:i.video_title)||void 0},h=t=>"string"!=typeof t.player_error_code&&("function"==typeof e.errorTranslator?e.errorTranslator(t):t);Ti.monitor(t,{debug:d,beaconCollectionDomain:l,hlsjs:n,Hls:n?Si:void 0,automaticErrorTracking:!1,errorTranslator:h,disableCookies:u,data:{...a?{env_key:a}:{},player_software_name:o,player_software:o,player_software_version:s,player_init_time:r,...c}})}},Oa=(e,t,n)=>{var i;let a,r,o=xa(e,t),{src:s}=e,l=()=>{t.ended||!Sa(t,n)||(Ta(t,n)?t.currentTime=t.buffered.end(t.buffered.length-1):t.dispatchEvent(new Event("ended")))},d=()=>{var e,n;let i=null==(e=ka(t))?void 0:e.start(0),o=null==(n=ka(t))?void 0:n.end(0);(r!==o||a!==i)&&t.dispatchEvent(new CustomEvent("seekablechange",{composed:!0})),a=i,r=o};if(Bi(t,"durationchange",d),t&&o){let n=Wi(e);if("string"==typeof s){let a=()=>{if(Aa(t)!==Ri.LIVE||Number.isFinite(t.duration))return;let e=setInterval(d,1e3);t.addEventListener("teardown",(()=>{clearInterval(e)}),{once:!0}),Bi(t,"durationchange",(()=>{Number.isFinite(t.duration)&&clearInterval(e)}))};if("none"===t.preload){let e=()=>{ha(s,t,n).then(a),t.removeEventListener("loadedmetadata",i)},i=()=>{ha(s,t,n).then(a),t.removeEventListener("play",e)};Bi(t,"play",e,{once:!0}),Bi(t,"loadedmetadata",i,{once:!0})}else ha(s,t,n).then(a);t.setAttribute("src",s),e.startTime&&((null!=(i=va.get(t))?i:{}).startTime=e.startTime,t.addEventListener("durationchange",Na,{once:!0}))}else t.removeAttribute("src");t.addEventListener("error",Pa),t.addEventListener("error",Ua),t.addEventListener("emptied",(()=>{t.querySelectorAll("track[data-removeondestroy]").forEach((e=>{e.remove()}))}),{once:!0}),Bi(t,"pause",l),Bi(t,"seeked",l),Bi(t,"play",(()=>
2{t.ended||wa(t.currentTime,t.duration)&&(t.currentTime=t.seekable.start(0))}))}else n&&s?(n.once(Si.Events.LEVEL_LOADED,((e,i)=>{ma(i.details,t,n),d(),Aa(t)===Ri.LIVE&&!Number.isFinite(t.duration)&&(n.on(Si.Events.LEVEL_UPDATED,d),Bi(t,"durationchange",(()=>{Number.isFinite(t.duration)&&n.off(Si.Events.LEVELS_UPDATED,d)})))})),n.on(Si.Events.ERROR,((e,n)=>{let i={[Si.ErrorTypes.NETWORK_ERROR]:Ii.MEDIA_ERR_NETWORK,[Si.ErrorTypes.MEDIA_ERROR]:Ii.MEDIA_ERR_DECODE},a=new Ii("",i[n.type]);a.fatal=n.fatal,a.data=n,t.dispatchEvent(new CustomEvent("error",{detail:a}))})),t.addEventListener("error",Ua),Bi(t,"waiting",l),Ki(e,n),function(e,t){t.on(Si.Events.NON_NATIVE_TEXT_TRACKS_FOUND,((n,{tracks:i})=>{i.forEach((n=>{var i;let a=null!=(i=n.subtitleTrack)?i:n.closedCaptions,r=t.subtitleTracks.findIndex((({lang:e,name:t,type:i})=>e==(null==a?void 0:a.lang)&&t===n.label&&i.toLowerCase()===n.kind));Yi(e,n.kind,n.label,null==a?void 0:a.lang,`${n.kind}${r}`)}))}));let n=()=>{var n;if(!t.subtitleTracks.length)return;let i=Array.from(e.textTracks).find((e=>e.id&&"showing"===e.mode&&["subtitles","captions"].includes(e.kind))),a=`${null==(n=t.subtitleTracks[t.subtitleTrack])?void 0:n.type.toLowerCase()}${t.subtitleTrack}`;if(i&&(t.subtitleTrack<0||(null==i?void 0:i.id)!==a)){let e=t.subtitleTracks.findIndex((({lang:e,name:t,type:n})=>e==i.language&&t===i.label&&n.toLowerCase()===i.kind));t.subtitleTrack=e}i&&(null==i?void 0:i.id)===a&&i.cues&&Array.from(i.cues).forEach((e=>{i.addCue(e)}))};e.textTracks.addEventListener("change",n),t.on(Si.Events.CUES_PARSED,((t,{track:n,cues:i})=>{let a=e.textTracks.getTrackById(n);if(!a)return;let r="disabled"===a.mode;r&&(a.mode="hidden"),i.forEach((e=>{var t;null!=(t=a.cues)&&t.getCueById(e.id)||a.addCue(e)})),r&&(a.mode="disabled")})),t.once(Si.Events.DESTROYING,(()=>{e.textTracks.removeEventListener("change",n),e.querySelectorAll("track[data-removeondestroy]").forEach((e=>{e.remove()}))}));let i=()=>
2{Array.from(e.textTracks).forEach((t=>{var n,i;if(!["subtitles","caption"].includes(t.kind)&&"thumbnails"===t.label){if(null==(n=t.cues)||!n.length){let t=e.querySelector('track[label="thumbnails"]'),n=null!=(i=null==t?void 0:t.getAttribute("src"))?i:"";null==t||t.removeAttribute("src"),setTimeout((()=>{null==t||t.setAttribute("src",n)}),0)}"hidden"!==t.mode&&(t.mode="hidden")}}))};t.once(Si.Events.MANIFEST_LOADED,i),t.once(Si.Events.MEDIA_ATTACHED,i)}(t,n),n.attachMedia(t)):console.error("It looks like the video you're trying to play will not work on this system! If possible, try upgrading to the newest versions of your browser or software.")};function Na(e){var t;let n=e.target,i=null==(t=va.get(n))?void 0:t.startTime;if(i&&function(e,t,n){t&&n>t&&(n=t);for(let i=0;i<e.length;i++)if(e.start(i)<=n&&e.end(i)>=n)return!0;return!1}(n.seekable,n.duration,i)){let e="auto"===n.preload;e&&(n.preload="none"),n.currentTime=i,e&&(n.preload="auto")}}async function Pa(e){if(!e.isTrusted)return;e.stopImmediatePropagation();let t=e.target;if(null==t||!t.error)return;let{message:n,code:i}=t.error,a=new Ii(n,i);if(t.src&&(i!==Ii.MEDIA_ERR_DECODE||void 0!==i))try{let{status:e}=await fetch(t.src);a.data={response:{code:e}}}catch{}t.dispatchEvent(new CustomEvent("error",{detail:a}))}function Ua(e){var t,n;if(!(e instanceof CustomEvent&&e.detail instanceof Ii))return;let i=e.target,a=e.detail;!a||!a.fatal||((null!=(t=va.get(i))?t:{}).error=a,null==(n=i.mux)||n.emit("error",{player_error_code:a.code,player_error_message:a.message,player_error_context:a.context}))}const Ba={MEDIA_PLAY_REQUEST:"mediaplayrequest",MEDIA_PAUSE_REQUEST:"mediapauserequest",MEDIA_MUTE_REQUEST:"mediamuterequest",MEDIA_UNMUTE_REQUEST:"mediaunmuterequest",MEDIA_VOLUME_REQUEST:"mediavolumerequest",MEDIA_SEEK_REQUEST:"mediaseekrequest",MEDIA_AIRPLAY_REQUEST:"mediaairplayrequest",MEDIA_ENTER_FULLSCREEN_REQUEST:"mediaenterfullscreenrequest",MEDIA_EXIT_FULLSCREEN_REQUEST:"mediaexitfullscreenrequest",MEDIA_PREVIEW_REQUEST:"mediapreviewrequest",MEDIA_ENTER_PIP_REQUEST:"mediaenterpiprequest",MEDIA_EXIT_PIP_REQUEST:"mediaexitpiprequest",MEDIA_ENTER_CAST_REQUEST:"mediaentercastrequest",MEDIA_EXIT_CAST_REQUEST:"mediaexitcastrequest",MEDIA_SHOW_TEXT_TRACKS_REQUEST:"mediashowtexttracksrequest",MEDIA_HIDE_TEXT_TRACKS_REQUEST:"mediahidetexttracksrequest",MEDIA_SHOW_SUBTITLES_REQUEST:"mediashowsubtitlesrequest",MEDIA_DISABLE_SUBTITLES_REQUEST:"mediadisablesubtitlesrequest",MEDIA_TOGGLE_SUBTITLES_REQUEST:"mediatogglesubtitlesrequest",MEDIA_PLAYBACK_RATE_REQUEST:"mediaplaybackraterequest",MEDIA_RENDITION_REQUEST:"mediarenditionrequest",MEDIA_AUDIO_TRACK_REQUEST:"mediaaudiotrackrequest",MEDIA_SEEK_TO_LIVE_REQUEST:"mediaseektoliverequest",REGISTER_MEDIA_STATE_RECEIVER:"registermediastatereceiver",UNREGISTER_MEDIA_STATE_RECEIVER:"unregistermediastatereceiver"},Wa={MEDIA_CHROME_ATTRIBUTES:"mediachromeattributes",MEDIA_CONTROLLER:"mediacontroller"},Ha={MEDIA_AIRPLAY_UNAVAILABLE:"mediaAirplayUnavailable",MEDIA_FULLSCREEN_UNAVAILABLE:"mediaFullscreenUnavailable",MEDIA_PIP_UNAVAILABLE:"mediaPipUnavailable",MEDIA_CAST_UNAVAILABLE:"mediaCastUnavailable",MEDIA_RENDITION_UNAVAILABLE:"mediaRenditionUnavailable",MEDIA_AUDIO_TRACK_UNAVAILABLE:"mediaAudioTrackUnavailable",MEDIA_PAUSED:"mediaPaused",MEDIA_HAS_P
2LAYED:"mediaHasPlayed",MEDIA_ENDED:"mediaEnded",MEDIA_MUTED:"mediaMuted",MEDIA_VOLUME_LEVEL:"mediaVolumeLevel",MEDIA_VOLUME:"mediaVolume",MEDIA_VOLUME_UNAVAILABLE:"mediaVolumeUnavailable",MEDIA_IS_PIP:"mediaIsPip",MEDIA_IS_CASTING:"mediaIsCasting",MEDIA_IS_AIRPLAYING:"mediaIsAirplaying",MEDIA_SUBTITLES_LIST:"mediaSubtitlesList",MEDIA_SUBTITLES_SHOWING:"mediaSubtitlesShowing",MEDIA_IS_FULLSCREEN:"mediaIsFullscreen",MEDIA_PLAYBACK_RATE:"mediaPlaybackRate",MEDIA_CURRENT_TIME:"mediaCurrentTime",MEDIA_DURATION:"mediaDuration",MEDIA_SEEKABLE:"mediaSeekable",MEDIA_PREVIEW_TIME:"mediaPreviewTime",MEDIA_PREVIEW_IMAGE:"mediaPreviewImage",MEDIA_PREVIEW_COORDS:"mediaPreviewCoords",MEDIA_PREVIEW_CHAPTER:"mediaPreviewChapter",MEDIA_LOADING:"mediaLoading",MEDIA_BUFFERED:"mediaBuffered",MEDIA_STREAM_TYPE:"mediaStreamType",MEDIA_TARGET_LIVE_WINDOW:"mediaTargetLiveWindow",MEDIA_TIME_IS_LIVE:"mediaTimeIsLive",MEDIA_RENDITION_LIST:"mediaRenditionList",MEDIA_RENDITION_SELECTED:"mediaRenditionSelected",MEDIA_AUDIO_TRACK_LIST:"mediaAudioTrackList",MEDIA_AUDIO_TRACK_ENABLED:"mediaAudioTrackEnabled",MEDIA_CHAPTERS_CUES:"mediaChaptersCues"},ja=Object.entries(Ha),qa=ja.reduce(((e,[t,n])=>(e[t]=`${n.toLowerCase()}`,e)),{}),Va=ja.reduce(((e,[t,n])=>(e[t]=`${n.toLowerCase()}`,e)),{USER_INACTIVE:"userinactivechange",BREAKPOINTS_CHANGE:"breakpointchange",BREAKPOINTS_COMPUTED:"breakpointscomputed"}),Fa=(Object.entries(Va).reduce(((e,[t,n])=>{const i=qa[t];return i&&(e[n]=i),e}),{userinactivechange:"userinactive"}),Object.entries(qa).reduce(((e,[t,n])=>{const i=Va[t];return i&&(e[n]=i),e}),{userinactive:"userinactivechange"})),$a={SUBTITLES:"subtitles",CAPTIONS:"captions",DESCRIPTIONS:"descriptions",CHAPTERS:"chapters",METADATA:"metadata"},Ka="disabled",Ga="showing",Ya="mouse",za="touch",Za="unavailable",Qa="unsupported",Xa={LIVE:"live",ON_DEMAND:"on-demand",UNKNOWN:"unknown"},Ja="fullscreen",er={AUDIO_PLAYER:()=>"audio player",VIDEO_PLAYER:()=>"video player",VOLUME:()=>"volume",SEEK:()=>"seek",CLOSED_CAPTIONS:()=>"closed captions",PLAYBACK_RATE:({playbackRate:e=1}={})=>`current playback rate ${e}`,PLAYBACK_TIME:()=>"playback time",MEDIA_LOADING:()=>"media loading",SETTINGS:()=>"settings",AUDIO_TRACKS:()=>"audio tracks",QUALITY:()=>"quality"},tr={PLAY:()=>"play",PAUSE:()=>"pause",MUTE:()=>"mute",UNMUTE:()=>"unmute",ENTER_AIRPLAY:()=>"start airplay",EXIT_AIRPLAY:()=>"stop airplay",ENTER_CAST:()=>"start casting",EXIT_CAST:()=>"stop casting",ENTER_FULLSCREEN:()=>"enter fullscreen mode",EXIT_FULLSCREEN:()=>"exit fullscreen mode",ENTER_PIP:()=>"enter picture in picture mode",EXIT_PIP:()=>"exit picture in picture mode",SEEK_FORWARD_N_SECS:({seekOffset:e=30}={})=>`seek forward ${e} seconds`,SEEK_BACK_N_SECS:({seekOffset:e=30}={})=>`seek back ${e} seconds`,SEEK_LIVE:()=>"seek to live",PLAYING_LIVE:()=>"playing live"};function nr(e){return null==e?void 0:e.split(/\s+/).map(ar)}function ir(e){if(e){const{id:t,width:n,height:i}=e;return[t,n,i].filter((e=>null!=e)).join(":")}}function ar(e){if(e){const[t,n,i]=e.split(":");return{id:t,width:n,height:i}}}function rr(e){return null==e?void 0:e.split(/\s+/).map(sr)}function or(e){if(e){const{id:t,kind:n,language:i,label:a}=e;return[t,n,i,a].filter((e=>null!=e)).join(":")}}function sr(e){if(e){const[t,n,i,a]=e.split(":");return{id:t,kind:n,language:i,label:a}}}function lr(e){return e.replace(/[-_]([a-z])/g,((e,t)=>t.toUpperCase()))}function dr(e){return"string"==typeof e&&(!isNaN(e)&&!isNaN(parseFloat(e)))}const ur=e=>new Promise((t=>setTimeout(t,e))),cr=[{singular:"hour",plural:"hours"},{singular:"minute",plural:"minutes"},{singular:"second",plural:"seconds"}],hr=e=>{if(!function(e){return"number"==typeof e&&!Number.isNaN(e)&&Number.isFinite(e)}(e))return"";const t=Math.abs(e),n=t!==e,i=new Date(0,0,0,0,0,t,0),a=[i.getHours(),i.getMinutes(),i.getSeconds()].map(((e,t)=>e&&((e,t)=>`${e} ${1===e?cr[t].singular:cr[t].plural}`)(e,t))).filter((e=>e)).join(", ");return`${a}${n?" remaining":""}`};function mr(e,t){let n=!1;e<0&&(n=!0,e=0-e),e=e<0?0:e;let i=Math.floor(e%60),a=Math.floor(e/60%60),r=Math.floor(e/3600);const o=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=a=i="0"),r=r>0||s>0?r+":":"",a=((r||o>=10)&&a<10?"0"+a:a)+":",i=i<10?"0"+i:i,(n?"-":"")+r+a+i}Object.freeze({length:0,start(e){const t=e>>>0;
2if(t>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(e){const t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0}});class pr{addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}}class vr extends pr{}const fr={createElement:function(){return new br.HTMLElement},createElementNS:function(){return new br.HTMLElement},addEventListener(){},removeEventListener(){},dispatchEvent(e){return!1}},br={ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},document:fr,Node:vr,HTMLElement:class extends vr{},DocumentFragment:class extends pr{},customElements:{get:function(){},define:function(){},whenDefined:function(){}},localStorage:{getItem(e){return null},setItem(e,t){},removeItem(e){}},CustomEvent:function(){},getComputedStyle:function(){},navigator:{languages:[],get userAgent(){return""}},matchMedia(e){return{matches:!1,media:e}}},gr="undefined"==typeof window||void 0===window.customElements,yr=Object.keys(br).every((e=>e in globalThis)),Er=gr&&!yr?br:globalThis,_r=gr&&!yr?fr:globalThis.document,Ar=new WeakMap,kr=e=>{let t=Ar.get(e);return t||Ar.set(e,t=new Set),t},wr=new Er.ResizeObserver((e=>{for(let t of e)for(let e of kr(t.target))e(t)}));function Tr(e,t){kr(e).add(t),wr.observe(e)}function Sr(e,t){const n=kr(e);n.delete(t),n.size||wr.unobserve(e)}function Cr(e){var t;return null!=(t=Ir(e))?t:Mr(e,"media-controller")}function Ir(e){var t;const{MEDIA_CONTROLLER:n}=Wa,i=e.getAttribute(n);if(i)return null==(t=Or(e))?void 0:t.getElementById(i)}const xr=(e,t,n=".value")=>{const i=e.querySelector(n);i&&(i.textContent=t)},Lr=(e,t)=>
2((e,t)=>{const n=`slot[name="${t}"]`,i=e.shadowRoot.querySelector(n);return i?i.children:[]})(e,t)[0],Rr=(e,t)=>!(!e||!t)&&(!!(null==e?void 0:e.contains(t))||Rr(e,t.getRootNode().host)),Mr=(e,t)=>{if(!e)return null;const n=e.closest(t);return n||Mr(e.getRootNode().host,t)};function Dr(e=document){var t;const n=null==e?void 0:e.activeElement;return n?null!=(t=Dr(n.shadowRoot))?t:n:null}function Or(e){var t;const n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e);return n instanceof ShadowRoot||n instanceof Document?n:null}function Nr(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Pr(e,t){const n=function(e,t){var n;let i;for(i of e.querySelectorAll("style")){let e;try{e=null==(n=i.sheet)?void 0:n.cssRules}catch{continue}for(let n of null!=e?e:[])if(t(n.selectorText))return n}}(e,(e=>e===t));return n||Ur(e,t)}function Ur(e,t){var n,i;const a=null!=(n=e.querySelectorAll("style"))?n:[],r=null==a?void 0:a[a.length-1];return(null==r?void 0:r.sheet)?(null==r||r.sheet.insertRule(`${t}{}`,r.sheet.cssRules.length),null==(i=r.sheet.cssRules)?void 0:i[r.sheet.cssRules.length-1]):(console.warn("Media Chrome: No style sheet found on style tag of",e),{style:{setProperty:()=>{},removeProperty:()=>"",getPropertyValue:()=>""}})}function Br(e,t,n=Number.NaN){const i=e.getAttribute(t);return null!=i?+i:n}function Wr(e,t,n){const i=+n;null==n||Number.isNaN(i)?e.hasAttribute(t)&&e.removeAttribute(t):Br(e,t,void 0)!==i&&e.setAttribute(t,`${i}`)}function Hr(e,t){return e.hasAttribute(t)}function jr(e,t,n){null!=n?Hr(e,t)!=n&&e.toggleAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function qr(e,t,n=null){var i;return null!=(i=e.getAttribute(t))?i:n}function Vr(e,t,n){if(null==n)return void(e.hasAttribute(t)&&e.removeAttribute(t));const i=`${n}`;qr(e,t,void 0)!==i&&e.setAttribute(t,i)}var Fr,$r=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Kr=(e,t,n)=>($r(e,t,"read from private field"),n?n.call(e):t.get(e)),Gr=(e,t,n,i)=>($r(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);const Yr=_r.createElement("template");Yr.innerHTML="\n<style>\n :host {\n display: var(--media-control-display, var(--media-gesture-receiver-display, inline-block));\n box-sizing: border-box;\n }\n</style>\n";class zr extends Er.HTMLElement{constructor(e={}){if(super(),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,Fr,void 0),!this.shadowRoot){const t=this.attachShadow({mode:"open"}),n=Yr.content.cloneNode(!0);this.nativeEl=n;let i=e.slotTemplate;i||(i=_r.createElement("template"),i.innerHTML=`<slot>${e.defaultContent||""}</slot>`),this.nativeEl.appendChild(i.content.cloneNode(!0)),t.appendChild(n)}}static get observedAttributes(){return[Wa.MEDIA_CONTROLLER,qa.MEDIA_PAUSED]}attributeChangedCallback(e,t,n){var i,a,r,o,s;e===Wa.MEDIA_CONTROLLER&&(t&&(null==(a=null==(i=Kr(this,Fr))?void 0:i.unassociateElement)||a.call(i,this),Gr(this,Fr,null)),n&&this.isConnected&&(Gr(this,Fr,null==(r=this.getRootNode())?void 0:r.getElementById(n)),null==(s=null==(o=Kr(this,Fr))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t,n,i;this.tabIndex=-1,this.setAttribute("aria-hidden","true"),Gr(this,Fr,function(e){var t;const n=e.getAttribute(Wa.MEDIA_CONTROLLER);if(n)return null==(t=e.getRootNode())?void 0:t.getElementById(n);return Mr(e,"media-controller")}(this)),this.getAttribute(Wa.MEDIA_CONTROLLER)&&(null==(t=null==(e=Kr(this,Fr))?void 0:e.associateElement)||t.call(e,this)),null==(n=Kr(this,Fr))||n.addEventListener("pointerdown",this),null==(i=Kr(this,Fr))||i.addEventListener("click",this)}disconnectedCallback(){var e,t,n,i;this.getAttribute(Wa.MEDIA_CONTROLLER)&&(null==(t=null==(e=Kr(this,Fr))?void 0:e.unassociateElement)||t.call(e,this)),null==(n=Kr(this,Fr))||n.removeEventListener("pointerdown",this),null==(i=Kr(this,Fr))||i.removeEventListener("click",this),Gr(this,Fr,null)}handleEvent(e){var t;const n=null==(t=e.composedPath())?void 0:t[0];if(["video","media-controller"].includes(null==n?void 0:n.localName))if("pointerdown"===e.type)this._pointerType=e.pointerType;else if("click"===e.type){const{clientX:t,clientY:n}=e,{left:i,top:a,width:r,height:o}=this.getBoundingClientRect(),s=t-i,l=n-a;if(s<0||l<0||s>r||l>o||0===r&&0===o)return;const{pointerType:d=this._pointerType}=e;if(this._pointerType=void 0,d===za)return void this.handleTap(e);if(d===Ya)return void this.handleMouseClick(e)}}get mediaPaused(){return Hr(this,qa.MEDIA_PAUSED)}set mediaPaused(e){jr(this,qa.MEDIA_PAUSED,e)}handleTap(e){}handleMouseClick(e){const t=this.mediaPaused?Ba.MEDIA_PLAY_REQUEST:Ba.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new Er.CustomEvent(t,{composed:!0,bubbles:!0}))}}Fr=new WeakMap,Er.customElements.get("media-gesture-receiver")||Er.customElements.define("media-gesture-receiver",zr);var Zr,Qr,Xr,Jr,eo,to,no,io,ao,ro,oo,so,lo=Object.defineProperty,uo=(e,t,n)=>(((e,t,n)=>{t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),co=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ho=(e,t,n)=>(co(e,t,"read from private field"),n?n.call(e):t.get(e)),mo=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},po=(e,t,n,i)=>(co(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),vo=(e,t,n)=>(co(e,t,"access private method"),n);const fo={AUDIO:"audio",AUTOHIDE:"autohide",BREAKPOINTS:"breakpoints",GESTURES_DISABLED:"gesturesdisabled",KEYBOARD_CONTROL:"keyboardcontrol",NO_AUTOHIDE:"noautohide",USER_INACTIVE:"userinactive"},bo=_r.createElement("template");bo.innerHTML=`\n <style>\n \n :host([${qa.MEDIA_IS_FULLSCREEN}]) ::slotted([slot=media]) {\n outline: none;\n }\n\n :host {\n box-sizing: border-box;\n position: relative;\n display: inline-block;\n line-height: 0;\n background-color: var(--media-background-color, #000);\n }\n\n :host(:not([${fo.AUDIO}])) [part~=layer]:not([part~=media-layer]) {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n display: flex;\n flex-flow: column nowrap;\n align-items: start;\n pointer-events: none;\n background: none;\n }\n\n slot[name=media] {\n display: var(--media-slot-display, contents);\n }\n\n \n :host([${fo.AUDIO}]) slot[name=media] {\n display: var(--media-slot-display, none);\n }\n\n \n :host([${fo.AUDIO}]) [part~=layer][part~=gesture-layer] {\n height: 0;\n display: block;\n }\n\n \n :host(:not([${fo.AUDIO}])[${fo.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]),\n :host(:not([${fo.AUDIO}])[${fo.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] {\n display: none;\n }\n\n \n ::slotted(:not([slot=media]):not([slot=poster]):not(media-loading-indicator):not([hidden])) {\n pointer-events: auto;\n }\n\n :host(:not([${fo.AUDIO}])) *[part~=layer][part~=centered-layer] {\n align-items: center;\n justify-content: center;\n }\n\n :host(:not([${fo.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]),\n :host(:not([${fo.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] {\n align-self: stretch;\n flex-grow: 1;\n }\n\n slot[name=middle-chrome] {\n display: inline;\n flex-grow: 1;\n pointer-events: none;\n background: none;\n }\n\n \n ::slotted([slot=media]),\n ::slotted([slot=poster]) {\n width: 100%;\n height: 100%;\n }\n\n \n :host(:not([${fo.AUDIO}])) .spacer {\n flex-grow: 1;\n }\n\n \n :host(:-webkit-full-screen) {\n \n width: 100% !important;\n height: 100% !important;\n }\n\n \n ::slotted(:not([slot=media]):not([slot=poster]):not([${fo.NO_AUTOHIDE}]):not([hidden])) {\n opacity: 1;\n transition: opacity 0.25s;\n }\n\n \n :host([${fo.USER_INACTIVE}]:not([${qa.MEDIA_PAUSED}]):not([${qa.MEDIA_IS_AIRPLAYING}
2]):not([${qa.MEDIA_IS_CASTING}]):not([${fo.AUDIO}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${fo.NO_AUTOHIDE}])) {\n opacity: 0;\n transition: opacity 1s;\n }\n\n :host([${fo.USER_INACTIVE}]:not([${qa.MEDIA_PAUSED}]):not([${qa.MEDIA_IS_CASTING}]):not([${fo.AUDIO}])) ::slotted([slot=media]) {\n cursor: none;\n }\n\n ::slotted(media-control-bar) {\n align-self: stretch;\n }\n\n \n :host(:not([${fo.AUDIO}])[${qa.MEDIA_HAS_PLAYED}]) slot[name=poster] {\n display: none;\n }\n\n ::slotted([role="menu"]) {\n align-self: end;\n }\n\n ::slotted([role="dialog"]) {\n align-self: center;\n }\n </style>\n\n <slot name="media" part="layer media-layer"></slot>\n <slot name="poster" part="layer poster-layer"></slot>\n <slot name="gestures-chrome" part="layer gesture-layer">\n <media-gesture-receiver slot="gestures-chrome"></media-gesture-receiver>\n </slot>\n <span part="layer vertical-layer">\n <slot name="top-chrome" part="top chrome"></slot>\n <slot name="middle-chrome" part="middle chrome"></slot>\n <slot name="centered-chrome" part="layer centered-layer center centered chrome"></slot>\n \n <slot part="bottom chrome"></slot>\n </span>\n`;const go=Object.values(qa),yo="sm:384 md:576 lg:768 xl:960";function Eo(e){!function(e,t){var n;if(!e.isConnected)return;const i=null!=(n=e.getAttribute(fo.BREAKPOINTS))?n:yo,a=function(e){const t=e.split(/\s+/);return Object.fromEntries(t.map((e=>e.split(":"))))}(i),r=function(e,t){return Object.keys(e).filter((n=>t>=e[n]))}(a,t);let o=!1;if(Object.keys(a).forEach((t=>{r.includes(t)?e.hasAttribute(`breakpoint${t}`)||(e.setAttribute(`breakpoint${t}`,""),o=!0):e.hasAttribute(`breakpoint${t}`)&&(e.removeAttribute(`breakpoint${t}`),o=!0)})),o){const t=new CustomEvent(Va.BREAKPOINTS_CHANGE,{detail:r});e.dispatchEvent(t)}}(e.target,e.contentRect.width)}
2class _o extends Er.HTMLElement{constructor(){super(),mo(this,Xr),mo(this,eo),mo(this,no),mo(this,ao),mo(this,oo),mo(this,Zr,0),mo(this,Qr,void 0),uo(this,"breakpointsComputed",!1),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(bo.content.cloneNode(!0)));new MutationObserver((e=>{const t=this.media;for(let n of e)"childList"===n.type&&(n.removedNodes.forEach((e=>{if("media"==e.slot&&n.target==this){let i=n.previousSibling&&n.previousSibling.previousElementSibling;if(i&&t){let t="media"!==i.slot;for(;null!==(i=i.previousSibling);)"media"==i.slot&&(t=!1);t&&this.mediaUnsetCallback(e)}else this.mediaUnsetCallback(e)}})),t&&n.addedNodes.forEach((e=>{e===t&&this.handleMediaUpdated(t)})))})).observe(this,{childList:!0,subtree:!0});let e=!1;Tr(this,(t=>{e||(setTimeout((()=>{Eo(t),e=!1,this.breakpointsComputed||(this.breakpointsComputed=!0,this.dispatchEvent(new CustomEvent(Va.BREAKPOINTS_COMPUTED,{bubbles:!0,composed:!0})))}),0),e=!0)}));let t=this.querySelector(":scope > slot[slot=media]");t&&t.addEventListener("slotchange",(()=>{t.assignedElements({flatten:!0}).length?this.handleMediaUpdated(this.media):ho(this,Qr)&&this.mediaUnsetCallback(ho(this,Qr))}))}static get observedAttributes(){return[fo.AUTOHIDE,fo.GESTURES_DISABLED].concat(go).filter((e=>![qa.MEDIA_RENDITION_LIST,qa.MEDIA_AUDIO_TRACK_LIST,qa.MEDIA_CHAPTERS_CUES].includes(e)))}attributeChangedCallback(e,t,n){e.toLowerCase()==fo.AUTOHIDE&&(this.autohide=n)}get media(){let e=this.querySelector(":scope > [slot=media]");return"SLOT"==(null==e?void 0:e.nodeName)&&(e=e.assignedElements({flatten:!0})[0]),e}async handleMediaUpdated(e){e&&(po(this,Qr,e),e.localName.includes("-")&&await Er.customElements.whenDefined(e.localName),this.mediaSetCallback(e))}connectedCallback(){var e;const t=null!=this.getAttribute(fo.AUDIO)?er.AUDIO_PLAYER():er.VIDEO_PLAYER();this.setAttribute("role","region"),this.setAttribute("aria-label",t),this.handleMediaUpdated(this.media),this.setAttribute(fo.USER_INACTIVE,""),this.addEventListener("pointerdown",this),this.addEventListener("pointermove",this),this.addEventListener("pointerup",this),this.addEventListener("mouseleave",this),this.addEventListener("keyup",this),null==(e=Er.window)||e.addEventListener("mouseup",this)}disconnectedCallback(){var e;this.media&&this.mediaUnsetCallback(this.media),null==(e=Er.window)||e.removeEventListener("mouseup",this)}mediaSetCallback(e){}mediaUnsetCallback(e){po(this,Qr,null)}handleEvent(e){switch(e.type){case"pointerdown":po(this,Zr,e.timeStamp);break;case"pointermove":vo(this,Xr,Jr).call(this,e);break;case"pointerup":vo(this,eo,to).call(this,e);break;case"mouseleave":vo(this,no,io).call(this);break;case"mouseup":this.removeAttribute(fo.KEYBOARD_CONTROL);break;case"keyup":vo(this,oo,so).call(this),this.setAttribute(fo.KEYBOARD_CONTROL,"")}}set autohide(e){e=Number(e),this._autohide=isNaN(e)?0:e}get autohide(){return void 0===this._autohide?2:this._autohide}}Zr=new WeakMap,Qr=new WeakMap,Xr=new WeakSet,Jr=function(e){if("mouse"!==e.pointerType){const t=250;if(e.timeStamp-ho(this,Zr)<t)return}vo(this,ao,ro).call(this),clearTimeout(this._inactiveTimeout),[this,this.media].includes(e.target)&&vo(this,oo,so).call(this)},eo=new WeakSet,to=function(e){if("touch"===e.pointerType){const t=!this.hasAttribute(fo.USER_INACTIVE);[this,this.media].includes(e.target)&&t?vo(this,no,io).call(this):vo(this,oo,so).call(this)}else e.composedPath().some((e=>["media-play-button","media-fullscreen-button"].includes(null==e?void 0:e.localName)))&&vo(this,oo,so).call(this)},no=new WeakSet,io=function(){if(this.autohide<0)return;if(this.hasAttribute(fo.USER_INACTIVE))return;this.setAttribute(fo.USER_INACTIVE,"");const e=new Er.CustomEvent(Va.USER_INACTIVE,{composed:!0,bubbles:!0,detail:!0});this.dispatchEvent(e)},ao=new WeakSet,ro=function(){if(!this.hasAttribute(fo.USER_INACTIVE))return;this.removeAttribute(fo.USER_INACTIVE);const e=new Er.CustomEvent(Va.USER_INACTIVE,{composed:!0,bubbles:!0,detail:!1});this.dispatchEvent(e)},oo=new WeakSet,so=function(){vo(this,ao,ro).call(this),clearTimeout(this._inactiveTimeout),this.autohide<0||(this._inactiveTimeout=setTimeout((()=>{vo(this,no,io).call(this)}),1e3*this.autohide))},Er.customElements.get("media-container")||Er.customElements.define("media-container",_o);var Ao,ko,wo,To,So,Co,Io=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},xo=(e,t,n)=>(Io(e,t,"read from private field"),n?n.call(e):t.get(e)),Lo=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ro=(e,t,n,i)=>(Io(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);class Mo{constructor(e,t,{defaultValue:n}={defaultValue:void 0}){Lo(this,So),Lo(this,Ao,void 0),Lo(this,ko,void 0),Lo(this,wo,void 0),Lo(this,To,new Set),Ro(this,Ao,e),Ro(this,ko,t),Ro(this,wo,new Set(n))}[Symbol.iterator](){return xo(this,So,Co).values()}get length(){return xo(this,So,Co).size}get value(){var e;return null!=(e=[...xo(this,So,Co)].join(" "))?e:""}set value(e){var t;e!==this.value&&(Ro(this,To,new Set),this.add(...null!=(t=null==e?void 0:e.split(" "))?t:[]))}toString(){return this.value}item(e){return[...xo(this,So,Co)][e]}values(){return xo(this,So,Co).values()}
2forEach(e){xo(this,So,Co).forEach(e)}add(...e){var t,n;e.forEach((e=>xo(this,To).add(e))),(""!==this.value||(null==(t=xo(this,Ao))?void 0:t.hasAttribute(`${xo(this,ko)}`)))&&(null==(n=xo(this,Ao))||n.setAttribute(`${xo(this,ko)}`,`${this.value}`))}remove(...e){var t;e.forEach((e=>xo(this,To).delete(e))),null==(t=xo(this,Ao))||t.setAttribute(`${xo(this,ko)}`,`${this.value}`)}contains(e){return xo(this,So,Co).has(e)}toggle(e,t){return void 0!==t?t?(this.add(e),!0):(this.remove(e),!1):this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){return this.remove(e),this.add(t),e===t}}Ao=new WeakMap,ko=new WeakMap,wo=new WeakMap,To=new WeakMap,So=new WeakSet,Co=function(){return xo(this,To).size?xo(this,To):xo(this,wo)};const Do=(e="")=>{let[t,n,i]=e.split(":");return t="cc"===t?"captions":"subtitles",{kind:t,language:n,label:i?decodeURIComponent(i):void 0}},Oo=(e="",t={})=>((e="")=>e.split(/\s+/))(e).map((e=>{const n=Do(e);return{...t,...n}})),No=e=>e?Array.isArray(e)?e.map((e=>"string"==typeof e?Do(e):e)):"string"==typeof e?Oo(e):[e]:[],Po=({kind:e,label:t,language:n}={kind:"subtitles"})=>t?`${"captions"===e?"cc":"sb"}:${n}:${encodeURIComponent(t)}`:n,Uo=(e=[])=>Array.prototype.map.call(e,Po).join(" "),Bo=e=>{const t=Object.entries(e).map((([e,t])=>((e,t)=>n=>n[e]===t)(e,t)));return e=>t.every((t=>t(e)))},Wo=(e,t=[],n=[])=>{const i=No(n).map(Bo);Array.from(t).filter((e=>i.some((t=>t(e))))).forEach((t=>{t.mode=e}))},Ho=(e,t=(()=>!0))=>{if(!(null==e?void 0:e.textTracks))return[];const n="function"==typeof t?t:Bo(t);return Array.from(e.textTracks).filter(n)},jo=e=>{var t;return!!(null==(t=e.mediaSubtitlesShowing)?void 0:t.length)||e.hasAttribute(qa.MEDIA_SUBTITLES_SHOWING)},qo={enter:"requestFullscreen",exit:"exitFullscreen",rootEvents:["fullscreenchange"],mediaEvents:[],element:"fullscreenElement",error:"fullscreenerror",enabled:"fullscreenEnabled"};let Vo;void 0===_r.fullscreenElement&&(qo.enter="webkitRequestFullScreen",qo.exit=null!=_r.webkitExitFullscreen?"webkitExitFullscreen":"webkitCancelFullScreen",qo.rootEvents=["webkitfullscreenchange"],qo.mediaEvents=["webkitbeginfullscreen","webkitendfullscreen"],qo.element="webkitFullscreenElement",qo.error="webkitfullscreenerror",qo.enabled="webkitFullscreenEnabled");const Fo=()=>{var e,t;return Vo||(Vo=null==(t=null==(e=_r)?void 0:e.createElement)?void 0:t.call(e,"video"),Vo)},$o=/.*Version\/.*Safari\/.*/.test(Er.navigator.userAgent),Ko=(e=Fo())=>(!Er.matchMedia("(display-mode: standalone)").matches||!$o)&&"function"==typeof(null==e?void 0:e.requestPictureInPicture),Go=(e=Fo())=>{let t=_r[qo.enabled];return!t&&e&&(t="webkitSupportsFullscreen"in e),t},Yo=Go(),zo=Ko(),Zo=!!Er.WebKitPlaybackTargetAvailabilityEvent,Qo=!!Er.chrome,Xo=e=>Ho(e.media,(e=>[$a.SUBTITLES,$a.CAPTIONS].includes(e.kind))).sort(((e,t)=>e.kind>=t.kind?1:-1)),Jo=e=>Ho(e.media,(e=>e.mode===Ga&&[$a.SUBTITLES,$a.CAPTIONS].includes(e.kind))),es=(e,t)=>{const n=Xo(e),i=Jo(e),a=!!i.length;if(n.length)if(!1===t||a&&!0!==t)Wo(Ka,n,i);else if(!0===t||!a&&!1!==t){let t=n[0];const{options:a}=e;if(!(null==a?void 0:a.noSubtitlesLangPref)){const e=globalThis.localStorage.getItem("media-chrome-pref-subtitles-lang"),i=e?[e,...globalThis.navigator.languages]:globalThis.navigator.languages,a=n.filter((e=>i.some((t=>e.language.toLowerCase().startsWith(t.split("-")[0]))))).sort(((e,t)=>i.findIndex((t=>e.language.toLowerCase().startsWith(t.split("-")[0])))-i.findIndex((e=>t.language.toLowerCase().startsWith(e.split("-")[0])))));a[0]&&(t=a[0])}const{language:r,label:o,kind:s}=t;Wo(Ka,n,i),Wo(Ga,n,[{language:r,label:o,kind:s}])}},ts=(e,t)=>e===t||typeof e==typeof t&&(!("number"!=typeof e||!Number.isNaN(e)||!Number.isNaN(t))||"object"==typeof e&&(Array.isArray(e)?ns(e,t):Object.entries(e).every((([e,n])=>e in t&&ts(n,t[e]))))),ns=(e,t)=>{const n=Array.isArray(e),i=Array.isArray(t);return n===i&&(!n&&!i||e.length===t.length&&e.every(((e,n)=>ts(e,t[n]))))},is=Object.values(Xa);let as;const rs=(async(e=Fo())=>{if(!e)return!1;const t=e.volume;return e.volume=t/2+.1,await ur(0),e.volume!==t})().then((e=>(as=e,as))),os={mediaPaused:{get(e){var t;const{media:n}=e;return null==(t=null==n?void 0:n.paused)||t},set(e,t){var n;const{media:i}=t;i&&(e?i.pause():null==(n=i.play())||n.catch((()=>{})))},mediaEvents:["play","playing","pause","emptied"]},mediaHasPlayed:{get(e,t){const{media:n}=e;return!!n&&(t?"playing"===t.type:!n.paused)},mediaEvents:["playing","emptied"]},mediaEnded:{get(e){var t;const{media:n}=e;return null!=(t=null==n?void 0:n.ended)&&t},mediaEvents:["seeked","ended","emptied"]},mediaPlaybackRate:{get(e){var t;const{media:n}=e;return null!=(t=null==n?void 0:n.playbackRate)?t:1},set(e,t){const{media:n}=t;n&&Number.isFinite(+e)&&(n.playbackRate=+e)},mediaEvents:["ratechange","loadstart"]},mediaMuted:{get(e){var t;const{media:n}=e;return null!=(t=null==n?void 0:n.muted)&&t},set(e,t){const{media:n}=t;n&&(n.muted=e)},mediaEvents:["volumechange"]},mediaVolume:{get(e){var t;const{media:n}=e;return null!=(t=null==n?void 0:n.volume)?t:1},set(e,t){const{media:n}=t;if(n){try{null==e?Er.localStorage.removeItem("media-chrome-pref-volume"):Er.localStorage.setItem("media-chrome-pref-volume",e.toString())}catch(i){}Number.isFinite(+e)&&(n.volume=+e)}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(e,t)=>{const{options:{noVolumePref:n}}=t;if(!n)try{const n=Er.localStorage.getItem("media-chrome-pref-volume");if(null==n)return;os.mediaVolume.set(+n,t),e(n)}catch(i){console.debug("Error getting volume pref",i)}}]},mediaVolumeLevel:{get(e){const{media:t}=e;return void 0===(null==t?void 0:t.volume)?"high":t.muted||0===t.volume?"off":t.volume<.5?"low":t.volume<.75?"medium":"high"},mediaEvents:["volumechange"]},mediaCurrentTime:{get(e){var t;const{media:n}=e;return null!=(t=null==n?void 0:n.currentTime)?t:0},set(e,t){const{media:n}=t;n&&0!==n.readyState&&(n.currentTime=e)},mediaEvents:["timeupdate","loadedmetadata"]},mediaDuration:{get(e){const{media:t,options:{defaultDuration:n}={}}=e;return!n||t&&t.duration&&!Number.isNaN(t.duration)&&Number.isFinite(t.duration)?Number.isFinite(null==t?void 0:t.duration)?t.duration:Number.NaN:n},mediaEvents:["durationchange","loadedmetadata","emptied"]},mediaLoading:{get(e){const{media:t}=e;return(null==t?void 0:t.readyState)<3},mediaEvents:["waiting","playing","emptied"]},mediaSeekable:{get(e){var t;const{media:n}=e;if(!(null==(t=null==n?void 0:n.seekable)?void 0:t.length))return;const i=n.seekable.start(0),a=n.seekable.end(n.seekable.length-1);return i||a?[Number(i.toFixed(3)),Number(a.toFixed(3))]:void 0},mediaEvents:["loadedmetadata","emptied","progress","seekablechange"]},mediaBuffered:{get(e){var t;const{media:n}=e,i=null!=(t=null==n?void 0:n.buffered)?t:[];return Array.from(i).map(((e,t)=>[Number(i.start(t).toFixed(3)),Number(i.end(t).toFixed(3))]))},mediaEvents:["progress","emptied"]},mediaStreamType:{get(e){const{media:t,options:{defaultStreamType:n}={}}=e,i=[Xa.LIVE,Xa.ON_DEMAND].includes(n)?n:void 0;if(!t)return i;const{streamType:a}=t;if(is.includes(a))return a===Xa.UNKNOWN?i:a;const r=t.duration;return r===1/0?Xa.LIVE:Number.isFinite(r)?Xa.ON_DEMAND:i}
2,mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange"]},mediaTargetLiveWindow:{get(e){const{media:t}=e;if(!t)return Number.NaN;const{targetLiveWindow:n}=t,i=os.mediaStreamType.get(e);return null!=n&&!Number.isNaN(n)||i!==Xa.LIVE?n:0},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange","targetlivewindowchange"]},mediaTimeIsLive:{get(e){const{media:t,options:{liveEdgeOffset:n=10}={}}=e;if(!t)return!1;if("number"==typeof t.liveEdgeStart)return!Number.isNaN(t.liveEdgeStart)&&t.currentTime>=t.liveEdgeStart;if(!(os.mediaStreamType.get(e)===Xa.LIVE))return!1;const i=t.seekable;if(!i)return!0;if(!i.length)return!1;const a=i.end(i.length-1)-n;return t.currentTime>=a},mediaEvents:["playing","timeupdate","progress","waiting","emptied"]},mediaSubtitlesList:{get(e){return Xo(e).map((({kind:e,label:t,language:n})=>({kind:e,label:t,language:n})))},mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack"]},mediaSubtitlesShowing:{get(e){return Jo(e).map((({kind:e,label:t,language:n})=>({kind:e,label:t,language:n})))},mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{var n,i;const{media:a,options:r}=t;if(!a)return;const o=e=>{var n;if(!r.defaultSubtitles)return;e&&![$a.CAPTIONS,$a.SUBTITLES].includes(null==(n=null==e?void 0:e.track)?void 0:n.kind)||es(t,!0)};return null==(n=a.textTracks)||n.addEventListener("addtrack",o),null==(i=a.textTracks)||i.addEventListener("removetrack",o),o(),()=>{var e,t;null==(e=a.textTracks)||e.removeEventListener("addtrack",o),null==(t=a.textTracks)||t.removeEventListener("removetrack",o)}}]},mediaChaptersCues:{get(e){var t;const{media:n}=e;if(!n)return[];const[i]=Ho(n,{kind:$a.CHAPTERS});return Array.from(null!=(t=null==i?void 0:i.cues)?t:[]).map((({text:e,startTime:t,endTime:n})=>({text:e,startTime:t,endTime:n})))},mediaEvents:["loadstart","loadedmetadata"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{const{media:n}=t;if(!n)return;const i=n.querySelector('track[kind="chapters"][default][src]');return null==i||i.addEventListener("load",e),()=>{null==i||i.removeEventListener("load",e)}}]},mediaIsPip:{get(e){var t,n;const{media:i,documentElement:a}=e;if(!i||!a)return!1;if(!a.pictureInPictureElement)return!1;if(a.pictureInPictureElement===i)return!0;if(a.pictureInPictureElement instanceof HTMLMediaElement)return!!(null==(t=i.localName)?void 0:t.includes("-"))&&Rr(i,a.pictureInPictureElement);if(a.pictureInPictureElement.localName.includes("-")){let e=a.pictureInPictureElement.shadowRoot;for(;null==e?void 0:e.pictureInPictureElement;){if(e.pictureInPictureElement===i)return!0;e=null==(n=e.pictureInPictureElement)?void 0:n.shadowRoot}}return!1},set(e,t){const{media:n}=t;if(n)if(e){if(!_r.pictureInPictureEnabled)return void console.warn("MediaChrome: Picture-in-picture is not enabled");if(!n.requestPictureInPicture)return void console.warn("MediaChrome: The current media does not support picture-in-picture");const e=()=>{console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a readyState > 0.")};n.requestPictureInPicture().catch((t=>{if(11!==t.code)throw t;if(n.src){if(0!==n.readyState||"none"!==n.preload)throw t;{const t=()=>{n.removeEventListener("loadedmetadata",i),n.preload="none"},i=()=>{n.requestPictureInPicture().catch(e),t()};n.addEventListener("loadedmetadata",i),n.preload="metadata",setTimeout((()=>{0===n.readyState&&e(),t()}),1e3)}}else console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a src set.")}))}else _r.pictureInPictureElement&&_r.exitPictureInPicture()},mediaEvents:["enterpictureinpicture","leavepictureinpicture"]},mediaRenditionList:{get(e){var t;const{media:n}=e;return[...null!=(t=null==n?void 0:n.videoRenditions)?t:[]].map((e=>({...e})))},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaRenditionSelected:{get(e){var t,n,i;const{media:a}=e;return null==(i=null==(n=null==a?void 0:a.videoRenditions)?void 0:n[null==(t=a.videoRenditions)?void 0:t.selectedIndex])?void 0:i.id},set(e,t){const{media:n}=t;if(!(null==n?void 0:n.videoRenditions))return void console.warn("MediaController: Rendition selection not supported by this media.");const i=e,a=Array.prototype.findIndex.call(n.videoRenditions,(e=>e.id==i));n.videoRenditions.selectedIndex!=a&&(n.videoRenditions.selectedIndex=a)},mediaEvents:["emptied"],videoRenditionsEvents:["addrendition","removerendition","change"]},mediaAudioTrackList:{get(e){var t;const{media:n}=e;return[...null!=(t=null==n?void 0:n.audioTracks)?t:[]]},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaAudioTrackEnabled:{get(e){var t,n;const{media:i}=e;return null==(n=[...null!=(t=null==i?void 0:i.audioTracks)?t:[]].find((e=>e.enabled)))?void 0:n.id},set(e,t){const{media:n}=t;if(!(null==n?void 0:n.audioTracks))return void console.warn("MediaChrome: Audio track selection not supported by this media.");const i=e;for(let a of n.audioTracks)a.enabled=i==a.id},mediaEvents:["emptied"],audioTracksEvents:["addtrack","removetrack","change"]},mediaIsFullscreen:{get(e){var t;const{media:n,documentElement:i,fullscreenElement:a=n}=e;if(!n||!i)return!1;if(!i[qo.element])return"webkitDisplayingFullscreen"in n&&"webkitPresentationMode"in n&&(n.webkitDisplayingFullscreen&&n.webkitPresentationMode===Ja);if(i[qo.element]===a)return!0;
2if(i[qo.element].localName.includes("-")){let e=i[qo.element].shadowRoot;if(!(qo.element in e))return Rr(i[qo.element],a);for(;null==e?void 0:e[qo.element];){if(e[qo.element]===a)return!0;e=null==(t=e[qo.element])?void 0:t.shadowRoot}}return!1},set(e,t){var n,i;const{media:a,fullscreenElement:r,documentElement:o}=t;if(e||!(null==o?void 0:o[qo.exit]))if(null==r?void 0:r[qo.enter]){const e=null==(i=r[qo.enter])?void 0:i.call(r);e instanceof Promise&&e.catch((()=>{}))}else(null==a?void 0:a.webkitEnterFullscreen)?a.webkitEnterFullscreen():(null==a?void 0:a.requestFullscreen)&&a.requestFullscreen();else{const e=null==(n=null==o?void 0:o[qo.exit])?void 0:n.call(o);e instanceof Promise&&e.catch((()=>{}))}},rootEvents:qo.rootEvents,mediaEvents:qo.mediaEvents},mediaIsCasting:{get(e){var t;const{media:n}=e;return!(!(null==n?void 0:n.remote)||"disconnected"===(null==(t=n.remote)?void 0:t.state))&&!!n.remote.state},set(e,t){var n,i;const{media:a}=t;a&&(e&&"disconnected"!==(null==(n=a.remote)?void 0:n.state)||(e||"connected"===(null==(i=a.remote)?void 0:i.state))&&("function"==typeof a.remote.prompt?a.remote.prompt().catch((()=>{})):console.warn("MediaChrome: Casting is not supported in this environment")))},remoteEvents:["connect","connecting","disconnect"]},mediaIsAirplaying:{get(){return!1},set(e,t){const{media:n}=t;n&&(n.webkitShowPlaybackTargetPicker&&Er.WebKitPlaybackTargetAvailabilityEvent?n.webkitShowPlaybackTargetPicker():console.warn("MediaChrome: received a request to select AirPlay but AirPlay is not supported in this environment"))},mediaEvents:["webkitcurrentplaybacktargetiswirelesschanged"]},mediaFullscreenUnavailable:{get(e){const{media:t}=e;if(!Yo||!Go(t))return Qa}},mediaPipUnavailable:{get(e){const{media:t}=e;if(!zo||!Ko(t))return Qa}},mediaVolumeUnavailable:{get(e){const{media:t}=e;if(!1===as||null==(null==t?void 0:t.volume))return Qa},stateOwnersUpdateHandlers:[e=>{null==as&&rs.then((t=>e(t?void 0:Qa)))}]},mediaCastUnavailable:{get(e,{availability:t="not-available"}={}){var n;const{media:i}=e;return Qo&&(null==(n=null==i?void 0:i.remote)?void 0:n.state)?null!=t&&"available"!==t?Za:void 0:Qa},stateOwnersUpdateHandlers:[(e,t)=>{var n;const{media:i}=t;if(!i)return;return i.disableRemotePlayback||i.hasAttribute("disableremoteplayback")||null==(n=null==i?void 0:i.remote)||n.watchAvailability((t=>{e({availability:t?"available":"not-available"})})).catch((t=>{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})})),()=>{var e;null==(e=null==i?void 0:i.remote)||e.cancelWatchAvailability().catch((()=>{}))}}]},mediaAirplayUnavailable:{get(e,t){return Zo?"not-available"===(null==t?void 0:t.availability)?Za:void 0:Qa},mediaEvents:["webkitplaybacktargetavailabilitychanged"],stateOwnersUpdateHandlers:[(e,t)=>{var n;const{media:i}=t;if(!i)return;return i.disableRemotePlayback||i.hasAttribute("disableremoteplayback")||null==(n=null==i?void 0:i.remote)||n.watchAvailability((t=>{e({availability:t?"available":"not-available"})})).catch((t=>{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})})),()=>{var e;null==(e=null==i?void 0:i.remote)||e.cancelWatchAvailability().catch((()=>{}))}}]},mediaRenditionUnavailable:{get(e){var t;const{media:n}=e;return(null==n?void 0:n.videoRenditions)?(null==(t=n.videoRenditions)?void 0:t.length)?void 0:Za:Qa},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaAudioTrackUnavailable:{get(e){var t,n;const{media:i}=e;return(null==i?void 0:i.audioTracks)?(null!=(n=null==(t=i.audioTracks)?void 0:t.length)?n:0)<=1?Za:void 0:Qa},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]}},ss={[Ba.MEDIA_PREVIEW_REQUEST](e,t,{detail:n}){var i,a,r;const{media:o}=t,s=null!=n?n:void 0;let l,d;if(o&&null!=s){const[e]=Ho(o,{kind:$a.METADATA,label:"thumbnails"}),t=Array.prototype.find.call(null!=(i=null==e?void 0:e.cues)?i:[],((e,t,n)=>0===t?e.endTime>s:t===n.length-1?e.startTime<=s:e.startTime<=s&&e.endTime>s));if(t){const e=/'^(?:[a-z]+:)?\/\//i.test(t.text)||null==(a=null==o?void 0:o.querySelector('track[label="thumbnails"]'))?void 0:a.src,n=new URL(t.text,e);d=new URLSearchParams(n.hash).get("#xywh").split(",").map((e=>+e)),l=n.href}}const u=e.mediaDuration.get(t);
2let c=null==(r=e.mediaChaptersCues.get(t).find(((e,t,n)=>t===n.length-1&&u===e.endTime?e.startTime<=s&&e.endTime>=s:e.startTime<=s&&e.endTime>s)))?void 0:r.text;return null!=n&&null==c&&(c=""),{mediaPreviewTime:s,mediaPreviewImage:l,mediaPreviewCoords:d,mediaPreviewChapter:c}},[Ba.MEDIA_PAUSE_REQUEST](e,t){e.mediaPaused.set(!0,t)},[Ba.MEDIA_PLAY_REQUEST](e,t){var n;if(e.mediaStreamType.get(t)===Xa.LIVE){const i=!(e.mediaTargetLiveWindow.get(t)>0),a=null==(n=e.mediaSeekable.get(t))?void 0:n[1];i&&a&&e.mediaCurrentTime.set(a,t)}e.mediaPaused.set(!1,t)},[Ba.MEDIA_PLAYBACK_RATE_REQUEST](e,t,{detail:n}){const i=n;e.mediaPlaybackRate.set(i,t)},[Ba.MEDIA_MUTE_REQUEST](e,t){e.mediaMuted.set(!0,t)},[Ba.MEDIA_UNMUTE_REQUEST](e,t){e.mediaVolume.get(t)||e.mediaVolume.set(.25,t),e.mediaMuted.set(!1,t)},[Ba.MEDIA_VOLUME_REQUEST](e,t,{detail:n}){const i=n;i&&e.mediaMuted.get(t)&&e.mediaMuted.set(!1,t),e.mediaVolume.set(i,t)},[Ba.MEDIA_SEEK_REQUEST](e,t,{detail:n}){const i=n;e.mediaCurrentTime.set(i,t)},[Ba.MEDIA_SEEK_TO_LIVE_REQUEST](e,t){var n;const i=null==(n=e.mediaSeekable.get(t))?void 0:n[1];Number.isNaN(Number(i))&&e.mediaCurrentTime.set(i,t)},[Ba.MEDIA_SHOW_SUBTITLES_REQUEST](e,t,{detail:n}){var i;const{options:a}=t,r=Xo(t),o=No(n),s=null==(i=o[0])?void 0:i.language;s&&!a.noSubtitlesLangPref&&Er.localStorage.setItem("media-chrome-pref-subtitles-lang",s),Wo(Ga,r,o)},[Ba.MEDIA_DISABLE_SUBTITLES_REQUEST](e,t,{detail:n}){const i=Xo(t);Wo(Ka,i,null!=n?n:[])},[Ba.MEDIA_TOGGLE_SUBTITLES_REQUEST](e,t,{detail:n}){es(t,n)},[Ba.MEDIA_RENDITION_REQUEST](e,t,{detail:n}){const i=n;e.mediaRenditionSelected.set(i,t)},[Ba.MEDIA_AUDIO_TRACK_REQUEST](e,t,{detail:n}){const i=n;e.mediaAudioTrackEnabled.set(i,t)},[Ba.MEDIA_ENTER_PIP_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsPip.set(!0,t)},[Ba.MEDIA_EXIT_PIP_REQUEST](e,t){e.mediaIsPip.set(!1,t)},[Ba.MEDIA_ENTER_FULLSCREEN_REQUEST](e,t){e.mediaIsPip.get(t)&&e.mediaIsPip.set(!1,t),e.mediaIsFullscreen.set(!0,t)},[Ba.MEDIA_EXIT_FULLSCREEN_REQUEST](e,t){e.mediaIsFullscreen.set(!1,t)},[Ba.MEDIA_ENTER_CAST_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsCasting.set(!0,t)},[Ba.MEDIA_EXIT_CAST_REQUEST](e,t){e.mediaIsCasting.set(!1,t)},[Ba.MEDIA_AIRPLAY_REQUEST](e,t){e.mediaIsAirplaying.set(!0,t)}};var ls,ds,us,cs,hs,ms,ps,vs,fs,bs,gs,ys,Es=({media:e,fullscreenElement:t,documentElement:n,stateMediator:i=os,requestMap:a=ss,options:r={},monitorStateOwnersOnlyWithSubscriptions:o=!0})=>{const s=[],l={options:{...r}};let d=Object.freeze({mediaPreviewTime:void 0,mediaPreviewImage:void 0,mediaPreviewCoords:void 0,mediaPreviewChapter:void 0});const u=e=>{null!=e&&(ts(e,d)||(d=Object.freeze({...d,...e}
2),s.forEach((e=>e(d)))))},c=()=>{const e=Object.entries(i).reduce(((e,[t,{get:n}])=>(e[t]=n(l),e)),{});u(e)},h={};let m;const p=async(e,t)=>{var n,a,r,d,p,v,f,b,g,y,E,_,A,k,w,T;const S=!!m;if(m={...l,...null!=m?m:{},...e},S)return;await(async(...e)=>{await Promise.all(e.filter((e=>e)).map((async e=>{if(!("localName"in e&&e instanceof Er.HTMLElement))return;const t=e.localName;if(!t.includes("-"))return;const n=Er.customElements.get(t);n&&e instanceof n||(await Er.customElements.whenDefined(t),Er.customElements.upgrade(e))})))})(...Object.values(e));const C=s.length>0&&0===t&&o,I=l.media!==m.media,x=(null==(n=l.media)?void 0:n.textTracks)!==(null==(a=m.media)?void 0:a.textTracks),L=(null==(r=l.media)?void 0:r.videoRenditions)!==(null==(d=m.media)?void 0:d.videoRenditions),R=(null==(p=l.media)?void 0:p.audioTracks)!==(null==(v=m.media)?void 0:v.audioTracks),M=(null==(f=l.media)?void 0:f.remote)!==(null==(b=m.media)?void 0:b.remote),D=l.documentElement!==m.documentElement,O=!!l.media&&(I||C),N=!!(null==(g=l.media)?void 0:g.textTracks)&&(x||C),P=!!(null==(y=l.media)?void 0:y.videoRenditions)&&(L||C),U=!!(null==(E=l.media)?void 0:E.audioTracks)&&(R||C),B=!!(null==(_=l.media)?void 0:_.remote)&&(M||C),W=!!l.documentElement&&(D||C),H=O||N||P||U||B||W,j=0===s.length&&1===t&&o,q=!!m.media&&(I||j),V=!!(null==(A=m.media)?void 0:A.textTracks)&&(x||j),F=!!(null==(k=m.media)?void 0:k.videoRenditions)&&(L||j),$=!!(null==(w=m.media)?void 0:w.audioTracks)&&(R||j),K=!!(null==(T=m.media)?void 0:T.remote)&&(M||j),G=!!m.documentElement&&(D||j),Y=q||V||F||$||K||G;if(!(H||Y))return Object.entries(m).forEach((([e,t])=>{l[e]=t})),c(),void(m=void 0);Object.entries(i).forEach((([e,{get:t,mediaEvents:n=[],textTracksEvents:i=[],videoRenditionsEvents:a=[],audioTracksEvents:r=[],remoteEvents:o=[],rootEvents:s=[],stateOwnersUpdateHandlers:d=[]}])=>{h[e]||(h[e]={});const c=n=>{const i=t(l,n);u({[e]:i})};let p;p=h[e].mediaEvents,n.forEach((t=>{p&&O&&(l.media.removeEventListener(t,p),h[e].mediaEvents=void 0),q&&(m.media.addEventListener(t,c),h[e].mediaEvents=c)})),p=h[e].textTracksEvents,i.forEach((t=>{var n,i;p&&N&&(null==(n=l.media.textTracks)||n.removeEventListener(t,p),h[e].textTracksEvents=void 0),V&&(null==(i=m.media.textTracks)||i.addEventListener(t,c),h[e].textTracksEvents=c)})),p=h[e].videoRenditionsEvents,a.forEach((t=>{var n,i;p&&P&&(null==(n=l.media.videoRenditions)||n.removeEventListener(t,p),h[e].videoRenditionsEvents=void 0),F&&(null==(i=m.media.videoRenditions)||i.addEventListener(t,c),h[e].videoRenditionsEvents=c)})),p=h[e].audioTracksEvents,r.forEach((t=>{var n,i;p&&U&&(null==(n=l.media.audioTracks)||n.removeEventListener(t,p),h[e].audioTracksEvents=void 0),$&&(null==(i=m.media.audioTracks)||i.addEventListener(t,c),h[e].audioTracksEvents=c)})),p=h[e].remoteEvents,o.forEach((t=>{var n,i;p&&B&&(null==(n=l.media.remote)||n.removeEventListener(t,p),h[e].remoteEvents=void 0),K&&(null==(i=m.media.remote)||i.addEventListener(t,c),h[e].remoteEvents=c)})),p=h[e].rootEvents,s.forEach((t=>{p&&W&&(l.documentElement.removeEventListener(t,p),h[e].rootEvents=void 0),G&&(m.documentElement.addEventListener(t,c),h[e].rootEvents=c)}));const v=h[e].stateOwnersUpdateHandlers;d.forEach((t=>{v&&H&&v(),Y&&(h[e].stateOwnersUpdateHandlers=t(c,m))}))})),Object.entries(m).forEach((([e,t])=>{l[e]=t})),c(),m=void 0};return p({media:e,fullscreenElement:t,documentElement:n,options:r}),{dispatch(e){const{type:t,detail:n}=e;a[t]?u(a[t](i,l,e)):"mediaelementchangerequest"===t?p({media:n}):"fullscreenelementchangerequest"===t?p({fullscreenElement:n}):"documentelementchangerequest"===t?p({documentElement:n}):"optionschangerequest"===t&&Object.entries(null!=n?n:{}).forEach((([e,t])=>{l.options[e]=t}))},getState(){return d},subscribe(e){return p({},s.length+1),s.push(e),e(d),()=>{const t=s.indexOf(e);t>=0&&(p({},s.length-1),s.splice(t,1))}}}},_s=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},As=(e,t,n)=>(_s(e,t,"read from private field"),n?n.call(e):t.get(e)),ks=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},ws=(e,t,n,i)=>(_s(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Ts=(e,t,n)=>(_s(e,t,"access private method"),n);const Ss=["ArrowLeft","ArrowRight","Enter"," ","f","m","k","c"],Cs="defaultsubt
2itles",Is="defaultstreamtype",xs="defaultduration",Ls="fullscreenelement",Rs="hotkeys",Ms="keysused",Ds="liveedgeoffset",Os="nohotkeys",Ns="novolumepref",Ps="nosubtitleslangpref",Us="nodefaultstore",Bs="keyboardforwardseekoffset",Ws="keyboardbackwardseekoffset";class Hs extends _o{constructor(){super(),ks(this,ps),ks(this,fs),ks(this,gs),ks(this,ls,new Mo(this,Rs)),ks(this,ds,void 0),ks(this,us,void 0),ks(this,cs,void 0),ks(this,hs,void 0),ks(this,ms,(e=>{var t;null==(t=As(this,us))||t.dispatch(e)})),this.mediaStateReceivers=[],this.associatedElementSubscriptions=new Map,this.associateElement(this);let e={};ws(this,cs,(t=>{Object.entries(t).forEach((([t,n])=>{if(t in e&&e[t]===n)return;this.propagateMediaState(t,n);const i=t.toLowerCase(),a=new Er.CustomEvent(Fa[i],{composed:!0,detail:n});this.dispatchEvent(a)})),e=t})),this.enableHotkeys()}static get observedAttributes(){return super.observedAttributes.concat(Os,Rs,Is,Cs,xs)}get mediaStore(){return As(this,us)}set mediaStore(e){var t,n;As(this,us)&&(null==(t=As(this,hs))||t.call(this),ws(this,hs,void 0)),ws(this,us,e),As(this,us)||this.hasAttribute(Us)?ws(this,hs,null==(n=As(this,us))?void 0:n.subscribe(As(this,cs))):Ts(this,ps,vs).call(this)}get fullscreenElement(){var e;return null!=(e=As(this,ds))?e:this}set fullscreenElement(e){var t;this.hasAttribute(Ls)&&this.removeAttribute(Ls),ws(this,ds,e),null==(t=As(this,us))||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}attributeChangedCallback(e,t,n){var i,a,r,o,s,l;if(super.attributeChangedCallback(e,t,n),e===Os)n!==t&&""===n?(this.hasAttribute(Rs)&&console.warn("Media Chrome: Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."),this.disableHotkeys()):n!==t&&null===n&&this.enableHotkeys();else if(e===Rs)As(this,ls).value=n;else if(e===Cs&&n!==t)null==(i=As(this,us))||i.dispatch({type:"optionschangerequest",detail:{defaultSubtitles:this.hasAttribute(Cs)}});else if(e===Is)null==(r=As(this,us))||r.dispatch({type:"optionschangerequest",detail:{defaultStreamType:null!=(a=this.getAttribute(Is))?a:void 0}});else if(e===Ds)null==(o=As(this,us))||o.dispatch({type:"optionschangerequest",detail:{liveEdgeOffset:this.hasAttribute(Ds)?+this.getAttribute(Ds):void 0}});else if(e===Ls){const e=n?null==(s=this.getRootNode())?void 0:s.getElementById(n):void 0;ws(this,ds,e),null==(l=As(this,us))||l.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}}connectedCallback(){var e,t;As(this,us)||this.hasAttribute(Us)||Ts(this,ps,vs).call(this),null==(e=As(this,us))||e.dispatch({type:"documentelementchangerequest",detail:_r}),super.connectedCallback(),As(this,us)&&!As(this,hs)&&ws(this,hs,null==(t=As(this,us))?void 0:t.subscribe(As(this,cs))),this.enableHotkeys()}disconnectedCallback(){var e,t,n,i;null==(e=super.disconnectedCallback)||e.call(this),As(this,us)&&(null==(t=As(this,us))||t.dispatch({type:"documentelementchangerequest",detail:void 0}),null==(n=As(this,us))||n.dispatch({type:Ba.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:!1})),As(this,hs)&&(null==(i=As(this,hs))||i.call(this),ws(this,hs,void 0))}mediaSetCallback(e){var t;super.mediaSetCallback(e),null==(t=As(this,us))||t.dispatch({type:"mediaelementchangerequest",detail:e}),e.hasAttribute("tabindex")||(e.tabIndex=-1)}mediaUnsetCallback(e){var t;super.mediaUnsetCallback(e),null==(t=As(this,us))||t.dispatch({type:"mediaelementchangerequest",detail:void 0})}propagateMediaState(e,t){Ys(this.mediaStateReceivers,e,t)}associateElement(e){if(!e)return;const{associatedElementSubscriptions:t}=this;if(t.has(e))return;const n=this.registerMediaStateReceiver.bind(this),i=this.unregisterMediaStateReceiver.bind(this),a=zs(e,n,i);Object.values(Ba).forEach((t=>{e.addEventListener(t,As(this,ms))})),t.set(e,a)}unassociateElement(e){if(!e)return;const{associatedElementSubscriptions:t}=this;if(!t.has(e))return;t.get(e)(),t.delete(e),Object.values(Ba).forEach((t=>{e.removeEventListener(t,As(this,ms))}))}registerMediaStateReceiver(e){if(!e)return;const t=this.mediaStateReceivers;t.indexOf(e)>-1||(t.push(e),As(this,us)&&Object.entries(As(this,us).getState()).forEac
2h((([t,n])=>{Ys([e],t,n)})))}unregisterMediaStateReceiver(e){const t=this.mediaStateReceivers,n=t.indexOf(e);n<0||t.splice(n,1)}enableHotkeys(){this.addEventListener("keydown",Ts(this,gs,ys))}disableHotkeys(){this.removeEventListener("keydown",Ts(this,gs,ys)),this.removeEventListener("keyup",Ts(this,fs,bs))}get hotkeys(){return As(this,ls)}keyboardShortcutHandler(e){var t,n,i,a,r,o;if((null!=(a=null!=(i=null==(t=e.target.getAttribute(Ms))?void 0:t.split(" "))?i:null==(n=e.target)?void 0:n.keysUsed)?a:[]).map((e=>"Space"===e?" ":e)).filter(Boolean).includes(e.key))return;let s,l,d;if(!(As(this,ls).contains(`no${e.key.toLowerCase()}`)||" "===e.key&&As(this,ls).contains("nospace")))switch(e.key){case" ":case"k":s=As(this,us).getState().mediaPaused?Ba.MEDIA_PLAY_REQUEST:Ba.MEDIA_PAUSE_REQUEST,this.dispatchEvent(new Er.CustomEvent(s,{composed:!0,bubbles:!0}));break;case"m":s="off"===this.mediaStore.getState().mediaVolumeLevel?Ba.MEDIA_UNMUTE_REQUEST:Ba.MEDIA_MUTE_REQUEST,this.dispatchEvent(new Er.CustomEvent(s,{composed:!0,bubbles:!0}));break;case"f":s=this.mediaStore.getState().mediaIsFullscreen?Ba.MEDIA_EXIT_FULLSCREEN_REQUEST:Ba.MEDIA_ENTER_FULLSCREEN_REQUEST,this.dispatchEvent(new Er.CustomEvent(s,{composed:!0,bubbles:!0}));break;case"c":this.dispatchEvent(new Er.CustomEvent(Ba.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}));break;case"ArrowLeft":{const e=this.hasAttribute(Ws)?+this.getAttribute(Ws):10;l=Math.max((null!=(r=this.mediaStore.getState().mediaCurrentTime)?r:0)-e,0),d=new Er.CustomEvent(Ba.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:l}),this.dispatchEvent(d);break}case"ArrowRight":{const e=this.hasAttribute(Bs)?+this.getAttribute(Bs):10;l=Math.max((null!=(o=this.mediaStore.getState().mediaCurrentTime)?o:0)+e,0),d=new Er.CustomEvent(Ba.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:l}),this.dispatchEvent(d);break}}}}ls=new WeakMap,ds=new WeakMap,us=new WeakMap,cs=new WeakMap,hs=new WeakMap,ms=new WeakMap,ps=new WeakSet,vs=function(){var e;this.mediaStore=Es({media:this.media,fullscreenElement:this.fullscreenElement,options:{defaultSubtitles:this.hasAttribute(Cs),defaultDuration:this.hasAttribute(xs)?+this.getAttribute(xs):void 0,defaultStreamType:null!=(e=this.getAttribute(Is))?e:void 0,liveEdgeOffset:this.hasAttribute(Ds)?+this.getAttribute(Ds):void 0,noVolumePref:this.hasAttribute(Ns),noSubtitlesLangPref:this.hasAttribute(Ps)}})},fs=new WeakSet,bs=function(e){const{key:t}=e;Ss.includes(t)?this.keyboardShortcutHandler(e):this.removeEventListener("keyup",Ts(this,fs,bs))},gs=new WeakSet,ys=function(e){const{metaKey:t,altKey:n,key:i}=e;t||n||!Ss.includes(i)?this.removeEventListener("keyup",Ts(this,fs,bs)):([" ","ArrowLeft","ArrowRight"].includes(i)&&!(As(this,ls).contains(`no${i.toLowerCase()}`)||" "===i&&As(this,ls).contains("nospace"))&&e.preventDefault(),this.addEventListener("keyup",Ts(this,fs,bs),{once:!0}))};const js=Object.values(qa),qs=Object.values(Ha),Vs=e=>{var t,n,i,a;let{observedAttributes:r}=e.constructor;!r&&(null==(t=e.nodeName)?void 0:t.includes("-"))&&(Er.customElements.upgrade(e),({observedAttributes:r}=e.constructor));const o=null==(a=null==(i=null==(n=null==e?void 0:e.getAttribute)?void 0:n.call(e,Wa.MEDIA_CHROME_ATTRIBUTES))?void 0:i.split)?void 0:a.call(i,/\s+/);return Array.isArray(r||o)?(r||o).filter((e=>js.includes(e))):[]},Fs=e=>(e=>{var t,n;return!(null==(t=e.nodeName)?void 0:t.includes("-"))||!Er.customElements.get(null==(n=e.nodeName)?void 0:n.toLowerCase())||e instanceof Er.customElements.get(e.nodeName.toLowerCase())||Er.customElements.upgrade(e),qs.some((t=>t in e))})(e)||!!Vs(e).length,$s=e=>{var t;return null==(t=null==e?void 0:e.join)?void 0:t.call(e,":")},Ks={[qa.MEDIA_SUBTITLES_LIST]:Uo,[qa.MEDIA_SUBTITLES_SHOWING]:Uo,[qa.MEDIA_SEEKABLE]:$s,[qa.MEDIA_BUFFERED]:e=>null==e?void 0:e.map($s).join(" "),[qa.MEDIA_PREVIEW_COORDS]:e=>null==e?void 0:e.join(" "),[qa.MEDIA_RENDITION_LIST]:function(e){return null==e?void 0:e.map(ir).join(" ")},[qa.MEDIA_AUDIO_TRACK_LIST]:function(e){return null==e?void 0:e.map(or).join(" ")}},Gs=(e,t)=>{if((e=>{var t;return!!(null==(t=e.closest)?void 0:t.call(e,'*[slot="media"]'))})(e))return;const n=(e,t)=>{var n,i;Fs(e)&&t(e);const{children:a=[]}=null!=e?e:{};[...a,...null!=(i=null==(n=null==e?void 0:e.shadowRoot)?void 0:n.children)?i:[]].forEac
2h((e=>Gs(e,t)))},i=null==e?void 0:e.nodeName.toLowerCase();!i.includes("-")||Fs(e)?n(e,t):Er.customElements.whenDefined(i).then((()=>{n(e,t)}))},Ys=(e,t,n)=>{e.forEach((e=>{if(t in e)return void(e[t]=n);const i=Vs(e),a=t.toLowerCase();i.includes(a)&&(async(e,t,n)=>{var i,a;if(e.isConnected||await ur(0),"boolean"==typeof n||null==n)return jr(e,t,n);if("number"==typeof n)return Wr(e,t,n);if("string"==typeof n)return Vr(e,t,n);if(Array.isArray(n)&&!n.length)return e.removeAttribute(t);const r=null!=(a=null==(i=Ks[t])?void 0:i.call(Ks,n))?a:n;e.setAttribute(t,r)})(e,a,n)}))},zs=(e,t,n)=>{Gs(e,t);const i=e=>{var n;const i=null!=(n=null==e?void 0:e.composedPath()[0])?n:e.target;t(i)},a=e=>{var t;const i=null!=(t=null==e?void 0:e.composedPath()[0])?t:e.target;n(i)};e.addEventListener(Ba.REGISTER_MEDIA_STATE_RECEIVER,i),e.addEventListener(Ba.UNREGISTER_MEDIA_STATE_RECEIVER,a);let r=[];const o=e=>{const i=e.target;"media"!==i.name&&(r.forEach((e=>Gs(e,n))),r=[...i.assignedElements({flatten:!0})],r.forEach((e=>Gs(e,t))))};e.addEventListener("slotchange",o);const s=new MutationObserver((e=>{e.forEach((e=>{const{addedNodes:i=[],removedNodes:a=[],type:r,target:o,attributeName:s}=e;"childList"===r?(Array.prototype.forEach.call(i,(e=>Gs(e,t))),Array.prototype.forEach.call(a,(e=>Gs(e,n)))):"attributes"===r&&s===Wa.MEDIA_CHROME_ATTRIBUTES&&(Fs(o)?t(o):n(o))}))}));s.observe(e,{childList:!0,attributes:!0,subtree:!0});return()=>{Gs(e,n),e.removeEventListener("slotchange",o),s.disconnect(),e.removeEventListener(Ba.REGISTER_MEDIA_STATE_RECEIVER,i),e.removeEventListener(Ba.UNREGISTER_MEDIA_STATE_RECEIVER,a)}};Er.customElements.get("media-controller")||Er.customElements.define("media-controller",Hs);var Zs,Qs,Xs,Js,el=Hs,tl=Object.defineProperty,nl=(e,t,n)=>(((e,t,n)=>{t in e?tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),il=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},al=(e,t,n)=>(il(e,t,"read from private field"),n?n.call(e):t.get(e)),rl=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},ol=(e,t,n,i)=>(il(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);const sl=_r.createElement("template");sl.innerHTML="\n<style>\n :host {\n font: var(--media-font,\n var(--media-font-weight, bold)\n var(--media-font-size, 14px) /\n var(--media-text-content-height, var(--media-control-height, 24px))\n var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));\n color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));\n padding: var(--media-button-padding, var(--media-control-padding, 10px));\n justify-content: var(--media-button-justify-content, center);\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n box-sizing: border-box;\n transition: background .15s linear;\n pointer-events: auto;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n\n \n :host(:focus-visible) {\n box-shadow: inset 0 0 0 2px rgb(27 127 204 / .9);\n outline: 0;\n }\n \n :host(:where(:focus)) {\n box-shadow: none;\n outline: 0;\n }\n\n :host(:hover) {\n background: var(--media-control-hover-background, rgba(50 50 70 / .7));\n }\n\n svg, img, ::slotted(svg), ::slotted(img) {\n width: var(--media-button-icon-width);\n height: var(--media-button-icon-height, var(--media-control-height, 24px));\n transform: var(--media-button-icon-transform);\n transition: var(--media-button-icon-transition);\n fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));\n vertical-align: middle;\n max-width: 100%;\n max-height: 100%;\n min-width: 100%;\n }\n</style>\n";class ll extends Er.HTMLElement{constructor(e={}){if(super(),rl(this,Zs,void 0),nl(this,"preventClick",!1),rl(this,Qs,(e=>{this.preventClick||this.handleClick(e)})),rl(this,Xs,(e=>{const{key:t}=e;this.keysUsed.includes(t)?this.preventClick||this.handleClick(e):this.removeEventListener("keyup",al(this,Xs))})),rl(this,Js,(e=>{const{metaKey:t,altKey:n,key:i}=e;
2t||n||!this.keysUsed.includes(i)?this.removeEventListener("keyup",al(this,Xs)):this.addEventListener("keyup",al(this,Xs),{once:!0})})),!this.shadowRoot){this.attachShadow({mode:"open"});const t=sl.content.cloneNode(!0);this.nativeEl=t;let n=e.slotTemplate;n||(n=_r.createElement("template"),n.innerHTML=`<slot>${e.defaultContent||""}</slot>`),this.nativeEl.appendChild(n.content.cloneNode(!0)),this.shadowRoot.appendChild(t)}}static get observedAttributes(){return["disabled",Wa.MEDIA_CONTROLLER]}enable(){this.addEventListener("click",al(this,Qs)),this.addEventListener("keydown",al(this,Js)),this.tabIndex=0}disable(){this.removeEventListener("click",al(this,Qs)),this.removeEventListener("keydown",al(this,Js)),this.removeEventListener("keyup",al(this,Xs)),this.tabIndex=-1}attributeChangedCallback(e,t,n){var i,a,r,o,s;e===Wa.MEDIA_CONTROLLER?(t&&(null==(a=null==(i=al(this,Zs))?void 0:i.unassociateElement)||a.call(i,this),ol(this,Zs,null)),n&&this.isConnected&&(ol(this,Zs,null==(r=this.getRootNode())?void 0:r.getElementById(n)),null==(s=null==(o=al(this,Zs))?void 0:o.associateElement)||s.call(o,this))):"disabled"===e&&n!==t&&(null==n?this.enable():this.disable())}connectedCallback(){var e,t,n;const{style:i}=Pr(this.shadowRoot,":host");i.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),this.hasAttribute("disabled")||this.enable(),this.setAttribute("role","button");const a=this.getAttribute(Wa.MEDIA_CONTROLLER);a&&(ol(this,Zs,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(n=null==(t=al(this,Zs))?void 0:t.associateElement)||n.call(t,this))}disconnectedCallback(){var e,t;this.disable(),null==(t=null==(e=al(this,Zs))?void 0:e.unassociateElement)||t.call(e,this),ol(this,Zs,null)}get keysUsed(){return["Enter"," "]}handleClick(e){}}Zs=new WeakMap,Qs=new WeakMap,Xs=new WeakMap,Js=new WeakMap,Er.customElements.get("media-chrome-button")||Er.customElements.define("media-chrome-button",ll);const dl='<svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M22.13 3H3.87a.87.87 0 0 0-.87.87v13.26a.87.87 0 0 0 .87.87h3.4L9 16H5V5h16v11h-4l1.72 2h3.4a.87.87 0 0 0 .87-.87V3.87a.87.87 0 0 0-.86-.87Zm-8.75 11.44a.5.5 0 0 0-.76 0l-4.91 5.73a.5.5 0 0 0 .38.83h9.82a.501.501 0 0 0 .38-.83l-4.91-5.73Z"/>\n</svg>\n',ul=_r.createElement("template");ul.innerHTML=`\n <style>\n :host([${qa.MEDIA_IS_AIRPLAYING}]) slot:not([name=exit]):not([name=icon]) {\n display: none !important;\n }\n\n \n :host(:not([${qa.MEDIA_IS_AIRPLAYING}])) slot:not([name=enter]):not([name=icon]) {\n display: none !important;\n }\n </style>\n\n <slot name="icon">\n <slot name="enter">${dl}</slot>\n <slot name="exit">${dl}</slot>\n </slot>\n`;const cl=e=>{const t=e.mediaIsAirplaying?tr.EXIT_AIRPLAY():tr.ENTER_AIRPLAY();e.setAttribute("aria-label",t)};class hl extends ll{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_IS_AIRPLAYING,qa.MEDIA_AIRPLAY_UNAVAILABLE]}constructor(e={}){super({slotTemplate:ul,...e})}connectedCallback(){super.connectedCallback(),cl(this)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_IS_AIRPLAYING&&cl(this)}get mediaIsAirplaying(){return Hr(this,qa.MEDIA_IS_AIRPLAYING)}set mediaIsAirplaying(e){jr(this,qa.MEDIA_IS_AIRPLAYING,e)}get mediaAirplayUnavailable(){return qr(this,qa.MEDIA_AIRPLAY_UNAVAILABLE)}set mediaAirplayUnavailable(e){Vr(this,qa.MEDIA_AIRPLAY_UNAVAILABLE,e)}handleClick(){const e=new Er.CustomEvent(Ba.MEDIA_AIRPLAY_REQUEST,{composed:!0,bubbles:!0});this.dispatchEvent(e)}}Er.customElements.get("media-airplay-button")||Er.customElements.define("media-airplay-button",hl);function ml({anchor:e,floating:t,placement:n}){let i=function({anchor:e,floating:t}){return{anchor:pl(e,t.offsetParent),floating:{x:0,y:0,width:t.offsetWidth,height:t.offsetHeight}}}({anchor:e,floating:t}),{x:a,y:r}=function({anchor:e,floating:t},n){const i="x"===function(e){return["top","bottom"].includes(vl(e))?"y":"x"}(n)?"y":"x",a="y"===i?"height":"width",r=vl(n),o=e.x+e.width/2-t.width/2,s=e.y+e.height/2-t.height/2,l=e[a]/2-t[a]/2;let d;switch(r){case"top":d={x:o,y:e.y-t.height};break;case"bottom":d={x:o,y:e.y+e.height};break;case"right":d={x:e.x+e.width,y:s};break;case"left":d={x:e.x-t.width,y:s};break;default:d={x:e.x,y:e.y}}switch(n.split("-")[1]){case"start":d[i]-=l;break;case"end":d[i]+=l}return d}(i,n);return{x:a,y:r}}function pl(e,t){let n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return{x:n.x-i.x,y:n.y-i.y,width:n.width,height:n.height}}function vl(e){return e.split("-")[0]}
2var fl=Object.defineProperty,bl=(e,t,n)=>(((e,t,n)=>{t in e?fl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class gl extends Event{constructor({action:e="auto",relatedTarget:t,...n}){super("invoke",n),bl(this,"action"),bl(this,"relatedTarget"),this.action=e,this.relatedTarget=t}}class yl extends Event{constructor({newState:e,oldState:t,...n}){super("toggle",n),bl(this,"newState"),bl(this,"oldState"),this.newState=e,this.oldState=t}}var El,_l,Al,kl,wl,Tl,Sl,Cl,Il,xl,Ll,Rl,Ml,Dl,Ol,Nl,Pl,Ul,Bl,Wl,Hl,jl,ql,Vl,Fl,$l,Kl,Gl,Yl,zl,Zl,Ql,Xl,Jl,ed,td,nd,id,ad,rd,od,sd,ld,dd,ud,cd=Object.defineProperty,hd=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},md=(e,t,n)=>(hd(e,t,"read from private field"),n?n.call(e):t.get(e)),pd=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},vd=(e,t,n,i)=>(hd(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),fd=(e,t,n)=>(hd(e,t,"access private method"),n);function bd({type:e,text:t,value:n,checked:i}){const a=_r.createElement("media-chrome-menu-item");a.type=null!=e?e:"",a.part.add("menu-item"),e&&a.part.add(e),a.value=n,a.checked=i;const r=_r.createElement("span");return r.textContent=t,a.append(r),a}function gd(e,t){let n=e.querySelector(`:scope > [slot="${t}"]`);if("SLOT"==(null==n?void 0:n.nodeName)&&(n=n.assignedElements({flatten:!0})[0]),n)return n=n.cloneNode(!0),n;let i=e.shadowRoot.querySelector(`[name="${t}"] > svg`);return i?i.cloneNode(!0):""}const yd=_r.createElement("template");yd.innerHTML='\n <style>\n :host {\n font: var(--media-font,\n var(--media-font-weight, normal)\n var(--media-font-size, 14px) /\n var(--media-text-content-height, var(--media-control-height, 24px))\n var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));\n color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n background: var(--media-menu-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .8))));\n border-radius: var(--media-menu-border-radius);\n border: var(--media-menu-border, none);\n display: var(--media-menu-display, inline-flex);\n transition: var(--media-menu-transition-in,\n visibility 0s,\n opacity .2s ease-out,\n transform .15s ease-out,\n left .2s ease-in-out,\n min-width .2s ease-in-out,\n min-height .2s ease-in-out\n ) !important;\n \n visibility: var(--media-menu-visibility, visible);\n opacity: var(--media-menu-opacity, 1);\n max-height: var(--media-menu-max-height, var(--_menu-max-height, 300px));\n transform: var(--media-menu-transform-in, translateY(0) scale(1));\n flex-direction: column;\n \n min-height: 0;\n position: relative;\n box-sizing: border-box;\n }\n\n :host([hidden]) {\n transition: var(--media-menu-transition-out,\n visibility .15s ease-in,\n opacity .15s ease-in,\n transform .15s ease-in\n ) !important;\n visibility: var(--media-menu-hidden-visibility, hidden);\n opacity: var(--media-menu-hidden-opacity, 0);\n max-height: var(--media-menu-hidden-max-height,\n var(--media-menu-max-height, var(--_menu-max-height, 300px)));\n transform: var(--media-menu-transform-out, translateY(2px) scale(.99));\n pointer-events: none;\n }\n\n :host([slot="submenu"]) {\n background: none;\n width: 100%;\n min-height: 100%;\n position: absolute;\n bottom: 0;\n right: -100%;\n }\n\n #container {\n display: flex;\n flex-direction: column;\n min-height: 0;\n transition: transform .2s ease-out;\n transform: translate(0, 0);\n }\n\n #container.has-expanded {\n transition: transform .2s ease-in;\n transform: translate(-100%, 0);\n }\n\n slot[name="header"] {\n display: flex;\n padding: .4em .7em;\n border-bottom: 1px solid rgb(255 255 255 / .25);\n cursor: default;\n }\n\n slot[name="header"][hidden] {\n display: none;\n }\n\n button[part~="back"] {\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n }\n\n svg[part~="back"] {\n height: var(--media-menu-icon-height, var(--media-control-height, 24px));\n fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));\n display: block;\n margin-right: .5ch;\n }\n\n slot:not([name]) {\n gap: var(--media-menu-gap);\n flex-direction: var(--media-menu-flex-direction, column);\n overflow: var(--media-menu-overflow, hidden auto);\n display: flex;\n min-height: 0;\n }\n\n :host([role="menu"]) slot:not([name]) {\n padding-block: .4em;\n }
2\n\n slot:not([name])::slotted([role="menu"]) {\n background: none;\n }\n\n media-chrome-menu-item > span {\n margin-right: .5ch;\n max-width: var(--media-menu-item-max-width);\n text-overflow: ellipsis;\n overflow: hidden;\n }\n </style>\n <style id="layout-row" media="width:0">\n\n slot[name="header"] {\n padding: .4em .5em;\n }\n\n slot:not([name]) {\n gap: var(--media-menu-gap, .25em);\n flex-direction: var(--media-menu-flex-direction, row);\n padding-inline: .5em;\n }\n\n media-chrome-menu-item {\n padding: .3em .5em;\n }\n\n media-chrome-menu-item[aria-checked="true"] {\n background: var(--media-menu-item-checked-background, rgb(255 255 255 / .2));\n }\n\n \n media-chrome-menu-item::part(checked-indicator) {\n display: var(--media-menu-item-checked-indicator-display, none);\n }\n </style>\n <div id="container">\n <slot name="header" hidden>\n <button part="back button" aria-label="Back to previous menu">\n <slot name="back-icon">\n <svg aria-hidden="true" viewBox="0 0 20 24" part="back indicator">\n <path d="m11.88 17.585.742-.669-4.2-4.665 4.2-4.666-.743-.669-4.803 5.335 4.803 5.334Z"/>\n </svg>\n </slot>\n <slot name="title"></slot>\n </button>\n </slot>\n <slot></slot>\n </div>\n <slot name="checked-indicator" hidden></slot>\n';const Ed="style",_d="hidden",Ad="disabled",kd="anchor";class wd extends Er.HTMLElement{constructor(){super(),pd(this,Il),pd(this,Rl),pd(this,Dl),pd(this,Nl),pd(this,Ul),pd(this,jl),pd(this,Vl),pd(this,$l),pd(this,Gl),pd(this,zl),pd(this,Ql),pd(this,Jl),pd(this,td),pd(this,id),pd(this,rd),pd(this,sd),pd(this,dd),pd(this,El,void 0),pd(this,_l,void 0),pd(this,Al,void 0),pd(this,kl,""),pd(this,wl,null),pd(this,Tl,new Set),pd(this,Sl,void 0),pd(this,Cl,!1),pd(this,Ll,(()=>{const e=md(this,Tl),t=new Set(this.items);for(const n of e)t.has(n)||this.dispatchEvent(new CustomEvent("removemenuitem",{detail:n}));for(const n of t)e.has(n)||this.dispatchEvent(new CustomEvent("addmenuitem",{detail:n}));vd(this,Tl,t)})),pd(this,Wl,(()=>{fd(this,jl,ql).call(this,!1),fd(this,Vl,Fl).call(this,!1)})),pd(this,Hl,(()=>{fd(this,jl,ql).call(this,!1)})),this.shadowRoot||(this.attachShadow({mode:"open"}),this.nativeEl=this.constructor.template.content.cloneNode(!0),this.shadowRoot.append(this.nativeEl)),this.container=this.shadowRoot.querySelector("#container"),this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.shadowRoot.addEventListener("slotchange",this),vd(this,Sl,new MutationObserver(md(this,Ll))),md(this,Sl).observe(this.defaultSlot,{childList:!0})}static get observedAttributes(){return[Ad,_d,Ed,kd,Wa.MEDIA_CONTROLLER]}static formatMenuItemText(e){return e}enable(){this.addEventListener("click",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this),this.addEventListener("invoke",this),this.addEventListener("toggle",this)}disable(){this.removeEventListener("click",this),this.removeEventListener("focusout",this),this.removeEventListener("keyup",this),this.removeEventListener("invoke",this),this.removeEventListener("toggle",this)}handleEvent(e){switch(e.type){case"slotchange":fd(this,Il,xl).call(this,e);break;case"invoke":fd(this,Dl,Ol).call(this,e);break;case"click":fd(this,$l,Kl).call(this,e);break;case"toggle":fd(this,zl,Zl).call(this,e);break;case"focusout":fd(this,Jl,ed).call(this,e);break;case"keydown":fd(this,td,nd).call(this,e)}}connectedCallback(){var e,t;fd(this,Rl,Ml).call(this),this.hasAttribute("disabled")||this.enable(),this.role||(this.role="menu"),vd(this,El,Ir(this)),null==(t=null==(e=md(this,El))?void 0:e.associateElement)||t.call(e,this),this.hidden||(Tr(Cd(this),md(this,Wl)),Tr(this,md(this,Hl)))}disconnectedCallback(){var e,t;Sr(Cd(this),md(this,Wl)),Sr(this,md(this,Hl)),this.disable(),null==(t=null==(e=md(this,El))?void 0:e.unassociateElement)||t.call(e,this),vd(this,El,null)}attributeChangedCallback(e,t,n){var i,a,r,o;e===_d&&n!==t?(md(this,Cl)||vd(this,Cl,!0),this.hidden?fd(this,Ul,Bl).call(this):fd(this,Nl,Pl).call(this),this.dispatchEvent(new yl({oldState:this.hidden?"open":"closed",newState:this.hidden?"closed":"open",bubbles:!0}))):e===Wa.MEDIA_CONTROLLER?(t&&(null==(a=null==(i=md(this,El))?void 0:i.unassociateElement)||a.call(i,this),vd(this,El,null)),n&&this.isConnected&&(vd(this,El,Ir(this)),null==(o=null==(r=md(this,El))?void 0:r.associateElement)||o.call(r,this))):e===Ad&&n!==t?null==n?this.enable():this.disable():e===Ed&&n!==t&&fd(this,Rl,Ml).call(this)}formatMenuItemText(e,t){return this.constructor.formatMenuItemText(e,t)}get anchor(){return this.getAttribute("anchor")}
2set anchor(e){this.setAttribute("anchor",`${e}`)}get anchorElement(){var e;return this.anchor?null==(e=Or(this))?void 0:e.querySelector(`#${this.anchor}`):null}get items(){return this.defaultSlot.assignedElements({flatten:!0}).filter(Sd)}get radioGroupItems(){return this.items.filter((e=>"menuitemradio"===e.role))}get checkedItems(){return this.items.filter((e=>e.checked))}get value(){var e,t;return null!=(t=null==(e=this.checkedItems[0])?void 0:e.value)?t:""}set value(e){const t=this.items.find((t=>t.value===e));t&&fd(this,dd,ud).call(this,t)}focus(){if(vd(this,_l,Dr()),this.items.length)return fd(this,sd,ld).call(this,this.items[0]),void this.items[0].focus();const e=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==e||e.focus()}handleSelect(e){var t;const n=fd(this,id,ad).call(this,e);n&&(fd(this,dd,ud).call(this,n,"checkbox"===n.type),md(this,Al)&&!this.hidden&&(null==(t=md(this,_l))||t.focus(),this.hidden=!0))}get keysUsed(){return["Enter","Escape","Tab"," ","ArrowDown","ArrowUp","Home","End"]}handleMove(e){var t,n;const{key:i}=e,a=this.items,r=null!=(n=null!=(t=fd(this,id,ad).call(this,e))?t:fd(this,rd,od).call(this))?n:a[0],o=a.indexOf(r);let s=Math.max(0,o);"ArrowDown"===i?s++:"ArrowUp"===i?s--:"Home"===e.key?s=0:"End"===e.key&&(s=a.length-1),s<0&&(s=a.length-1),s>a.length-1&&(s=0),fd(this,sd,ld).call(this,a[s]),a[s].focus()}}var Td;function Sd(e){return["menuitem","menuitemradio","menuitemcheckbox"].includes(null==e?void 0:e.role)}function Cd(e){var t;return null!=(t=e.getAttribute("bounds")?Mr(e,`#${e.getAttribute("bounds")}`):Cr(e)||e.parentElement)?t:e}El=new WeakMap,_l=new WeakMap,Al=new WeakMap,kl=new WeakMap,wl=new WeakMap,Tl=new WeakMap,Sl=new WeakMap,Cl=new WeakMap,Il=new WeakSet,xl=function(e){const t=e.target;for(let n of t.assignedNodes({flatten:!0}))3===n.nodeType&&""===n.textContent.trim()&&n.remove();if(["header","title"].includes(t.name)){this.shadowRoot.querySelector('slot[name="header"]').hidden=0===t.assignedNodes().length}t.name||md(this,Ll).call(this)},Ll=new WeakMap,Rl=new WeakSet,Ml=function(){var e;const t=this.shadowRoot.querySelector("#layout-row"),n=null==(e=getComputedStyle(this).getPropertyValue("--media-menu-layout"))?void 0:e.trim();t.setAttribute("media","row"===n?"":"width:0")},Dl=new WeakSet,Ol=function(e){vd(this,Al,e.relatedTarget),Rr(this,e.relatedTarget)||(this.hidden=!this.hidden)},Nl=new WeakSet,Pl=function(){var e;null==(e=md(this,Al))||e.setAttribute("aria-expanded","true"),requestAnimationFrame((()=>fd(this,jl,ql).call(this,!1))),this.addEventListener("transitionend",(()=>this.focus()),{once:!0}),Tr(Cd(this),md(this,Wl)),Tr(this,md(this,Hl))},Ul=new WeakSet,Bl=function(){var e;null==(e=md(this,Al))||e.setAttribute("aria-expanded","false"),Sr(Cd(this),md(this,Wl)),Sr(this,md(this,Hl))},Wl=new WeakMap,Hl=new WeakMap,jl=new WeakSet,ql=function(e,t){if(this.hasAttribute("mediacontroller")&&!this.anchor)return;if(this.hidden||!this.anchorElement)return;const{x:n,y:i}=ml({anchor:this.anchorElement,floating:this,placement:"top-start"});null!=t||(t=this.offsetWidth);const a=Cd(this).getBoundingClientRect(),r=this.anchorElement.getBoundingClientRect(),o=a.width-n-t,s=a.height-i-this.offsetHeight,l=a.height-r.height,{style:d}=Pr(this.shadowRoot,":host");e||d.setProperty("--media-menu-transition-in","none"),d.setProperty("position","absolute"),d.setProperty("right",`${Math.max(0,o)}px`),d.setProperty("bottom",`${s}px`),d.setProperty("--_menu-max-height",`${l}px`),d.removeProperty("--media-menu-transition-in")},Vl=new WeakSet,Fl=function(e){const t=this.querySelector('[role="menuitem"][aria-haspopup][aria-expanded="true"]'),n=null==t?void 0:t.querySelector('[role="menu"]'),{style:i}=Pr(this.shadowRoot,":host");if(e||i.setProperty("--media-menu-transition-in","none"),n){const i=n.offsetHeight,a=Math.max(n.offsetWidth,t.offsetWidth);this.style.setProperty("min-width",`${a}px`),this.style.setProperty("min-height",`${i}px`),fd(this,jl,ql).call(this,e,a)}else this.style.removeProperty("min-width"),this.style.removeProperty("min-height"),fd(this,jl,ql).call(this,e);i.removeProperty("--media-menu-transition-in")},$l=new WeakSet,Kl=function(e){var t;if(e.stopPropagation(),e.composedPath().includes(md(this,Gl,Yl)))return null==(t=md(this,_l))||t.focu
2s(),void(this.hidden=!0);const n=fd(this,id,ad).call(this,e);n&&!n.hasAttribute("disabled")&&(fd(this,sd,ld).call(this,n),this.handleSelect(e))},Gl=new WeakSet,Yl=function(){var e;return null==(e=this.shadowRoot.querySelector('slot[name="header"]').assignedElements({flatten:!0}))?void 0:e.find((e=>e.part.contains("back")&&e.part.contains("button")))},zl=new WeakSet,Zl=function(e){if(e.target===this)return;fd(this,Ql,Xl).call(this);const t=Array.from(this.querySelectorAll('[role="menuitem"][aria-haspopup]'));for(const n of t)n.invokeTargetElement!=e.target&&("open"!=e.newState||"true"!=n.getAttribute("aria-expanded")||n.invokeTargetElement.hidden||n.invokeTargetElement.dispatchEvent(new gl({relatedTarget:n})));for(const n of t)n.setAttribute("aria-expanded",`${!n.submenuElement.hidden}`);fd(this,Vl,Fl).call(this,!0)},Ql=new WeakSet,Xl=function(){const e=this.querySelector('[role="menuitem"] > [role="menu"]:not([hidden])');this.container.classList.toggle("has-expanded",!!e)},Jl=new WeakSet,ed=function(e){var t;Rr(this,e.relatedTarget)||(md(this,Cl)&&(null==(t=md(this,_l))||t.focus()),md(this,Al)&&md(this,Al)!==e.relatedTarget&&!this.hidden&&(this.hidden=!0))},td=new WeakSet,nd=function(e){var t,n,i,a,r;const{key:o,ctrlKey:s,altKey:l,metaKey:d}=e;if(!(s||l||d)&&this.keysUsed.includes(o))if(e.preventDefault(),e.stopPropagation(),"Tab"===o){if(md(this,Cl))return void(this.hidden=!0);e.shiftKey?null==(n=null==(t=this.previousElementSibling)?void 0:t.focus)||n.call(t):null==(a=null==(i=this.nextElementSibling)?void 0:i.focus)||a.call(i),this.blur()}else"Escape"===o?(null==(r=md(this,_l))||r.focus(),md(this,Cl)&&(this.hidden=!0)):"Enter"===o||" "===o?this.handleSelect(e):this.handleMove(e)},id=new WeakSet,ad=function(e){return e.composedPath().find((e=>["menuitemradio","menuitemcheckbox"].includes(e.role)))},rd=new WeakSet,od=function(){return this.items.find((e=>0===e.tabIndex))},sd=new WeakSet,ld=function(e){for(const t of this.items)t.tabIndex=t===e?0:-1},dd=new WeakSet,ud=function(e,t){const n=[...this.checkedItems];"radio"===e.type&&this.radioGroupItems.forEach((e=>e.checked=!1)),e.checked=!t||!e.checked,this.checkedItems.some(((e,t)=>e!=n[t]))&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},((e,t,n)=>{t in e?cd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(wd,"symbol"!=typeof(Td="template")?Td+"":Td,yd),Er.customElements.get("media-chrome-menu")||Er.customElements.define("media-chrome-menu",wd);var Id,xd,Ld,Rd,Md,Dd,Od=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Nd=(e,t,n)=>(Od(e,t,"read from private field"),n?n.call(e):t.get(e)),Pd=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ud=(e,t,n,i)=>(Od(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Bd=(e,t,n)=>(Od(e,t,"access private method"),n);class Wd extends wd{constructor(){super(...arguments),Pd(this,Ld),Pd(this,Md),Pd(this,Id,[]),Pd(this,xd,void 0)}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_AUDIO_TRACK_LIST,qa.MEDIA_AUDIO_TRACK_ENABLED,qa.MEDIA_AUDIO_TRACK_UNAVAILABLE]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_AUDIO_TRACK_ENABLED&&t!==n?this.value=n:e===qa.MEDIA_AUDIO_TRACK_LIST&&t!==n&&(Ud(this,Id,rr(n)),Bd(this,Ld,Rd).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",Bd(this,Md,Dd))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",Bd(this,Md,Dd))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:Cr(this).querySelector("media-audio-track-menu-button")}get mediaAudioTrackList(){return Nd(this,Id)}set mediaAudioTrackList(e){Ud(this,Id,e),Bd(this,Ld,Rd).call(this)}get mediaAudioTrackEnabled(){return qr(this,qa.MEDIA_AUDIO_TRACK_ENABLED)}set mediaAudioTrackEnabled(e){Vr(this,qa.MEDIA_AUDIO_TRACK_ENABLED,e)}}Id=new WeakMap,xd=new WeakMap,Ld=new WeakSet,Rd=function(){if(Nd(this,xd)===JSON.stringify(this.mediaAudioTrackList))return;Ud(this,xd,JSON.stringify(this.mediaAudioTrackList));const e=this.mediaAudioTrackList;this.defaultSlot.textContent="";for(const t of e){const e=bd({type:"radio",text:this.formatMenuItemText(t.label,t),value:`${t.id}`,checked:t.enabled});
2e.prepend(gd(this,"checked-indicator")),this.defaultSlot.append(e)}},Md=new WeakSet,Dd=function(){if(null==this.value)return;const e=new Er.CustomEvent(Ba.MEDIA_AUDIO_TRACK_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},Er.customElements.get("media-audio-track-menu")||Er.customElements.define("media-audio-track-menu",Wd);class Hd extends ll{connectedCallback(){super.connectedCallback(),this.invokeTargetElement&&this.setAttribute("aria-haspopup","menu")}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?null==(e=Or(this))?void 0:e.querySelector(`#${this.invokeTarget}`):null}handleClick(){this.invokeTargetElement.dispatchEvent(new gl({relatedTarget:this}))}}Er.customElements.get("media-chrome-menu-button")||Er.customElements.define("media-chrome-menu-button",Hd);const jd=_r.createElement("template");jd.innerHTML='\n <slot name="icon"><svg aria-hidden="true" viewBox="0 0 24 24">\n <path d="M11 17H9.5V7H11v10Zm-3-3H6.5v-4H8v4Zm6-5h-1.5v6H14V9Zm3 7h-1.5V8H17v8Z"/>\n <path d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z"/>\n</svg></slot>\n';class qd extends Hd{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_AUDIO_TRACK_ENABLED,qa.MEDIA_AUDIO_TRACK_UNAVAILABLE]}constructor(){super({slotTemplate:jd})}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",er.AUDIO_TRACKS())}get invokeTargetElement(){return null!=this.invokeTarget?super.invokeTargetElement:Cr(this).querySelector("media-audio-track-menu")}get mediaAudioTrackEnabled(){return qr(this,qa.MEDIA_AUDIO_TRACK_ENABLED)}set mediaAudioTrackEnabled(e){Vr(this,qa.MEDIA_AUDIO_TRACK_ENABLED,e)}}Er.customElements.get("media-audio-track-menu-button")||Er.customElements.define("media-audio-track-menu-button",qd);const Vd=_r.createElement("template");Vd.innerHTML='\n <style>\n :host([aria-checked="true"]) slot[name=off] {\n display: none !important;\n }\n\n \n :host(:not([aria-checked="true"])) slot[name=on] {\n display: none !important;\n }\n </style>\n\n <slot name="icon">\n <slot name="on"><svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>\n</svg></slot>\n <slot name="off"><svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>\n</svg></slot>\n </slot>\n';const Fd=e=>{e.setAttribute("aria-checked",jo(e))};class $d extends ll{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_SUBTITLES_LIST,qa.MEDIA_SUBTITLES_SHOWING]}constructor(e={}){super({slotTemplate:Vd,...e}),this._captionsReady=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","switch"),this.setAttribute("aria-label",er.CLOSED_CAPTIONS()),Fd(this)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_SUBTITLES_SHOWING&&Fd(this)}get mediaSubtitlesList(){return Kd(this,qa.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){Gd(this,qa.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return Kd(this,qa.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){Gd(this,qa.MEDIA_SUBTITLES_SHOWING,e)}handleClick(){this.dispatchEvent(new Er.CustomEvent(Ba.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}))}}const Kd=(e,t)=>{const n=e.getAttribute(t);return n?Oo(n):[]},Gd=(e,t,n)=>{if(!(null==n?void 0:n.length))return void e.removeAttribute(t);const i=Uo(n);e.getAttribute(t)!==i&&e.setAttribute(t,i)};Er.customElements.get("media-captions-button")||Er.customElements.define("media-captions-button",$d);
2var Yd,zd,Zd,Qd,Xd,Jd=Object.defineProperty,eu=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},tu=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},nu=(e,t,n)=>(eu(e,t,"access private method"),n);const iu=_r.createElement("template");iu.innerHTML=wd.template.innerHTML+'\n <slot name="captions-indicator" hidden>\n <svg aria-hidden="true" viewBox="0 0 26 24" part="captions-indicator indicator">\n <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>\n </svg></slot>';class au extends wd{constructor(){super(...arguments),tu(this,zd),tu(this,Qd),tu(this,Yd,void 0)}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_SUBTITLES_LIST,qa.MEDIA_SUBTITLES_SHOWING]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_SUBTITLES_LIST&&t!==n?nu(this,zd,Zd).call(this):e===qa.MEDIA_SUBTITLES_SHOWING&&t!==n&&(this.value=n)}connectedCallback(){super.connectedCallback(),this.addEventListener("change",nu(this,Qd,Xd))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",nu(this,Qd,Xd))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:Cr(this).querySelector("media-captions-menu-button")}get mediaSubtitlesList(){return ru(this,qa.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){ou(this,qa.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return ru(this,qa.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){ou(this,qa.MEDIA_SUBTITLES_SHOWING,e)}}Yd=new WeakMap,zd=new WeakSet,Zd=function(){var e;if(((e,t,n)=>(eu(e,t,"read from private field"),n?n.call(e):t.get(e)))(this,Yd)===JSON.stringify(this.mediaSubtitlesList))return;((e,t,n,i)=>{eu(e,t,"write to private field"),i?i.call(e,n):t.set(e,n)})(this,Yd,JSON.stringify(this.mediaSubtitlesList)),this.defaultSlot.textContent="";const t=!this.value,n=bd({type:"radio",text:this.formatMenuItemText("Off"),value:"off",checked:t});n.prepend(gd(this,"checked-indicator")),this.defaultSlot.append(n);const i=this.mediaSubtitlesList;for(const a of i){const t=bd({type:"radio",text:this.formatMenuItemText(a.label,a),value:Po(a),checked:this.value==Po(a)});t.prepend(gd(this,"checked-indicator"));"captions"===(null!=(e=a.kind)?e:"subs")&&t.append(gd(this,"captions-indicator")),this.defaultSlot.append(t)}},Qd=new WeakSet,Xd=function(){const e=this.mediaSubtitlesShowing,t=this.getAttribute(qa.MEDIA_SUBTITLES_SHOWING),n=this.value!==t;if((null==e?void 0:e.length)&&n&&this.dispatchEvent(new Er.CustomEvent(Ba.MEDIA_DISABLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:e})),!this.value||!n)return;const i=new Er.CustomEvent(Ba.MEDIA_SHOW_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(i)},((e,t,n)=>{((e,t,n)=>{t in e?Jd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(au,"template",iu);const ru=(e,t)=>{const n=e.getAttribute(t);return n?Oo(n):[]},ou=(e,t,n)=>{if(!(null==n?void 0:n.length))return void e.removeAttribute(t);const i=Uo(n);e.getAttribute(t)!==i&&e.setAttribute(t,i)};Er.customElements.get("media-captions-menu")||Er.customElements.define("media-captions-menu",au);const su=_r.createElement("template");su.innerHTML='\n <style>\n :host([aria-checked="true"]) slot[name=off] {\n display: none !important;\n }\n\n \n :host(:not([aria-checked="true"])) slot[name=on] {\n display: none !important;\n }\n </style>\n\n <slot name="icon">\n <slot name="on"><svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79
20 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>\n</svg></slot>\n <slot name="off"><svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>\n</svg></slot>\n </slot>\n';const lu=e=>{e.setAttribute("aria-checked",jo(e))};class du extends Hd{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_SUBTITLES_LIST,qa.MEDIA_SUBTITLES_SHOWING]}constructor(e={}){super({slotTemplate:su,...e}),this._captionsReady=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",er.CLOSED_CAPTIONS()),lu(this)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_SUBTITLES_SHOWING&&lu(this)}get invokeTargetElement(){return null!=this.invokeTarget?super.invokeTargetElement:Cr(this).querySelector("media-captions-menu")}get mediaSubtitlesList(){return uu(this,qa.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){cu(this,qa.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return uu(this,qa.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){cu(this,qa.MEDIA_SUBTITLES_SHOWING,e)}}const uu=(e,t)=>{const n=e.getAttribute(t);return n?Oo(n):[]},cu=(e,t,n)=>{if(!(null==n?void 0:n.length))return void e.removeAttribute(t);const i=Uo(n);e.getAttribute(t)!==i&&e.setAttribute(t,i)};Er.customElements.get("media-captions-menu-button")||Er.customElements.define("media-captions-menu-button",du);const hu=_r.createElement("template");hu.innerHTML=`\n <style>\n :host([${qa.MEDIA_IS_CASTING}]) slot:not([name=exit]):not([name=icon]) {\n display: none !important;\n }\n\n \n :host(:not([${qa.MEDIA_IS_CASTING}])) slot:not([name=enter]):not([name=icon]) {\n display: none !important;\n }\n </style>\n\n <slot name="icon">\n <slot name="enter"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/></g></svg></slot>\n <slot name="exit"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/><path class="cast_caf_icon_boxfill" d="M5,7 L5,8.63 C8,8.6 13.37,14 13.37,17 L19,17 L19,7 Z"/></g></svg></slot>\n </slot>\n`;const mu=e=>{const t=e.mediaIsCasting?tr.EXIT_CAST():tr.ENTER_CAST();e.setAttribute("aria-label",t)};class pu extends ll{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_IS_CASTING,qa.MEDIA_CAST_UNAVAILABLE]}constructor(e={}){super({slotTemplate:hu,...e})}connectedCallback(){super.connectedCallback(),mu(this)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_IS_CASTING&&mu(this)}get mediaIsCasting(){return Hr(this,qa.MEDIA_IS_CASTING)}set mediaIsCasting(e){jr(this,qa.MEDIA_IS_CASTING,e)}get mediaCastUnavailable(){return qr(this,qa.MEDIA_CAST_UNAVAILABLE)}set mediaCastUnavailable(e){Vr(this,qa.MEDIA_CAST_UNAVAILABLE,e)}handleClick(){const e=this.mediaIsCasting?Ba.MEDIA_EXIT_CAST_REQUEST:Ba.MEDIA_ENTER_CAST_REQUEST;this.dispatchEvent(new Er.CustomEvent(e,{composed:!0,bubbles:!0}))}}Er.customElements.get("media-cast-button")||Er.customElements.define("media-cast-button",pu);var vu,fu,bu,gu,yu,Eu,_u,Au,ku,wu,Tu,Su,Cu=Object.defineProperty,Iu=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},xu=(e,t,n)=>(Iu(e,t,"read from private field"),n?n.call(e):t.get(e)),Lu=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ru=(e,t,n,i)=>(Iu(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Mu=(e,t,n)=>(Iu(e,t,"access private method"),n);const Du=_r.createElement("template");
2Du.innerHTML="\n <style>\n :host {\n font: var(--media-font,\n var(--media-font-weight, normal)\n var(--media-font-size, 14px) /\n var(--media-text-content-height, var(--media-control-height, 24px))\n var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));\n color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n background: var(--media-dialog-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .8))));\n border-radius: var(--media-dialog-border-radius);\n border: var(--media-dialog-border, none);\n display: var(--media-dialog-display, inline-flex);\n transition: var(--media-dialog-transition-in,\n visibility 0s,\n opacity .2s ease-out,\n transform .15s ease-out\n ) !important;\n \n visibility: var(--media-dialog-visibility, visible);\n opacity: var(--media-dialog-opacity, 1);\n transform: var(--media-dialog-transform-in, translateY(0) scale(1));\n }\n\n :host([hidden]) {\n transition: var(--media-dialog-transition-out,\n visibility .15s ease-in,\n opacity .15s ease-in,\n transform .15s ease-in\n ) !important;\n visibility: var(--media-dialog-hidden-visibility, hidden);\n opacity: var(--media-dialog-hidden-opacity, 0);\n transform: var(--media-dialog-transform-out, translateY(2px) scale(.99));\n pointer-events: none;\n }\n </style>\n <slot></slot>\n";const Ou="hidden",Nu="anchor";class Pu extends Er.HTMLElement{constructor(){super(),Lu(this,bu),Lu(this,yu),Lu(this,_u),Lu(this,ku),Lu(this,Tu),Lu(this,vu,void 0),Lu(this,fu,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.nativeEl=this.constructor.template.content.cloneNode(!0),this.shadowRoot.append(this.nativeEl)),this.addEventListener("invoke",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this)}static get observedAttributes(){return[Ou,Nu]}handleEvent(e){switch(e.type){case"invoke":Mu(this,_u,Au).call(this,e);break;case"focusout":Mu(this,ku,wu).call(this,e);break;case"keydown":Mu(this,Tu,Su).call(this,e)}}connectedCallback(){this.role||(this.role="dialog")}attributeChangedCallback(e,t,n){e===Ou&&n!==t&&(this.hidden?Mu(this,yu,Eu).call(this):Mu(this,bu,gu).call(this))}focus(){Ru(this,vu,Dr());const e=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==e||e.focus()}get keysUsed(){return["Escape","Tab"]}}vu=new WeakMap,fu=new WeakMap,bu=new WeakSet,gu=function(){var e;null==(e=xu(this,fu))||e.setAttribute("aria-expanded","true"),this.addEventListener("transitionend",(()=>this.focus()),{once:!0})},yu=new WeakSet,Eu=function(){var e;null==(e=xu(this,fu))||e.setAttribute("aria-expanded","false")},_u=new WeakSet,Au=function(e){Ru(this,fu,e.relatedTarget),Rr(this,e.relatedTarget)||(this.hidden=!this.hidden)},ku=new WeakSet,wu=function(e){var t;Rr(this,e.relatedTarget)||(null==(t=xu(this,vu))||t.focus(),xu(this,fu)&&xu(this,fu)!==e.relatedTarget&&!this.hidden&&(this.hidden=!0))},Tu=new WeakSet,Su=function(e){var t,n,i,a,r;const{key:o,ctrlKey:s,altKey:l,metaKey:d}=e;s||l||d||this.keysUsed.includes(o)&&(e.preventDefault(),e.stopPropagation(),"Tab"===o?(e.shiftKey?null==(n=null==(t=this.previousElementSibling)?void 0:t.focus)||n.call(t):null==(a=null==(i=this.nextElementSibling)?void 0:i.focus)||a.call(i),this.blur()):"Escape"===o&&(null==(r=xu(this,vu))||r.focus(),this.hidden=!0))},((e,t,n)=>{((e,t,n)=>{t in e?Cu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(Pu,"template",Du),Er.customElements.get("media-chrome-dialog")||Er.customElements.define("media-chrome-dialog",Pu);var Uu,Bu,Wu,Hu,ju,qu,Vu,Fu,$u,Ku,Gu,Yu,zu,Zu,Qu,Xu=Object.defineProperty,Ju=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ec=(e,t,n)=>(Ju(e,t,"read from private field"),n?n.call(e):t.get(e)),tc=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},nc=(e,t,n,i)=>(Ju(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),ic=(e,t,n)=>(Ju(e,t,"access private method"),n);const ac=_r.createElement("template");ac.innerHTML='\n <style>\n :host {\n transition: var(--media-menu-item-transition,\n background .15s linear,\n opacity .2s ease-in-out\n );\n outline: var(--media-menu-item-outline, 0);\n outline-offset: var(--media-menu-item-outline-offset, -1px);\n cursor: pointer;\n display: flex;\n align-items: center;\n align-self: stretch;\n justify-self: stretch;\n white-space: nowrap;\n white-space-collapse: collapse;\n text-wrap: nowrap;\n padding: .4em .8em .4em 1em;\n }\n\n :host(:focus-visible) {\n box-shadow: var(--media-menu-item-focus-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));\n outline: var(--media-menu-item-hover-outline, 0);\n outline-offset: var(--media-menu-item-hover-outline-offset, var(--media-menu-item-outline-offset, -1px));\n }\n\n :host(:hover) {\n cursor: pointer;\n background: var(--media-menu-item-hover-background, rgb(92 92 102 / .5));\n outline: var(--media-menu-item-hover-outline);\n outline-offset: var(--media-menu-item-hover-outline-offset, var(--media-menu-item-outline-offset, -1px));\n }\n\n :host([aria-checked="true"]) {\n background: var(--media-menu-item-checked-background);\n }\n\n :host([hidden]) {\n display: none;\n }\n\n :host([disabled]) {\n pointer-events: none;\n color: rgba(255, 255, 255, .3);\n }\n\n slot:not([name]) {\n width: 100%;\n }
2\n\n slot:not([name="submenu"]) {\n display: inline-flex;\n align-items: center;\n transition: inherit;\n opacity: var(--media-menu-item-opacity, 1);\n }\n\n slot[name="description"] {\n justify-content: end;\n }\n\n slot[name="description"] > span {\n display: inline-block;\n margin-inline: 1em .2em;\n max-width: var(--media-menu-item-description-max-width, 100px);\n text-overflow: ellipsis;\n overflow: hidden;\n font-size: .8em;\n font-weight: 400;\n text-align: right;\n position: relative;\n top: .04em;\n }\n\n slot[name="checked-indicator"] {\n display: none;\n }\n\n :host(:is([role="menuitemradio"],[role="menuitemcheckbox"])) slot[name="checked-indicator"] {\n display: var(--media-menu-item-checked-indicator-display, inline-block);\n }\n\n \n svg, img, ::slotted(svg), ::slotted(img) {\n height: var(--media-menu-item-icon-height, var(--media-control-height, 24px));\n fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));\n display: block;\n }\n\n \n [part~="indicator"],\n ::slotted([part~="indicator"]) {\n fill: var(--media-menu-item-indicator-fill,\n var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))));\n height: var(--media-menu-item-indicator-height, 1.25em);\n margin-right: .5ch;\n }\n\n [part~="checked-indicator"] {\n visibility: hidden;\n }\n\n :host([aria-checked="true"]) [part~="checked-indicator"] {\n visibility: visible;\n }\n </style>\n <slot name="checked-indicator">\n <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">\n <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>\n </svg>\n </slot>\n <slot name="prefix"></slot>\n <slot></slot>\n <slot name="description"></slot>\n <slot name="suffix"></slot>\n <slot name="submenu"></slot>\n';const rc="type",oc="value",sc="checked",lc="disabled";class dc extends Er.HTMLElement{constructor(){super(),tc(this,Wu),tc(this,ju),tc(this,Vu),tc(this,Ku),tc(this,Yu),tc(this,Zu),tc(this,Uu,!1),tc(this,Bu,void 0),tc(this,$u,(()=>{var e,t;this.setAttribute("submenusize",`${this.submenuElement.items.length}`);const n=this.shadowRoot.querySelector('slot[name="description"]'),i=null==(t=null==(e=this.submenuElement.checkedItems)?void 0:e[0])?void 0:t.text,a=_r.createElement("span");a.textContent=null!=i?i:"",n.replaceChildren(a)})),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.shadowRoot.addEventListener("slotchange",this)}static get observedAttributes(){return[rc,lc,sc,oc]}enable(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),uc(this)&&!this.hasAttribute("aria-checked")&&this.setAttribute("aria-checked","false"),this.addEventListener("click",this),this.addEventListener("keydown",this)}disable(){this.removeAttribute("tabindex"),this.removeEventListener("click",this),this.removeEventListener("keydown",this),this.removeEventListener("keyup",this)}handleEvent(e){switch(e.type){case"slotchange":ic(this,Wu,Hu).call(this,e);break;case"click":this.handleClick(e);break;case"keydown":ic(this,Yu,zu).call(this,e);break;case"keyup":ic(this,Ku,Gu).call(this,e)}}attributeChangedCallback(e,t,n){e===sc&&uc(this)&&!ec(this,Uu)?this.setAttribute("aria-checked",null!=n?"true":"false"):e===rc&&n!==t?this.role="menuitem"+n:e===lc&&n!==t&&(null==n?this.enable():this.disable())}connectedCallback(){this.hasAttribute(lc)||this.enable(),this.role="menuitem"+this.type,nc(this,Bu,cc(this,this.parentNode)),ic(this,Zu,Qu).call(this)}disconnectedCallback(){this.disable(),ic(this,Zu,Qu).call(this),nc(this,Bu,null)}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?null==(e=Or(this))?void 0:e.querySelector(`#${this.invokeTarget}`):this.submenuElement}get submenuElement(){return this.shadowRoot.querySelector('slot[name="submenu"]').assignedElements({flatten:!0})[0]}get type(){var e;return null!=(e=this.getAttribute(rc))?e:""}set type(e){this.setAttribute(rc,`${e}`)}get value(){var e;return null!=(e=this.getAttribute(oc))?e:this.text}set value(e){this.setAttribute(oc,e)}get text(){var e;return(null!=(e=this.textContent)?e:"").trim()}get checked(){if(uc(this))return"true"===this.getAttribute("aria-checked")}set checked(e){uc(this)&&(nc(this,Uu,!0),this.setAttribute("aria-checked",e?"true":"false"),e?this.part.add("checked"):this.part.remove("checked"))}handleClick(e){uc(this)||this.invokeTargetElement&&Rr(this,e.target)&&this.invokeTargetElement.dispatchEvent(new gl({relatedTarget:this}))}get keysUsed(){return["Enter"," "]}}function uc(e){return"radio"===e.type||"checkbox"===e.type}function cc(e,t){if(!e)return null;const{host:n}=e.getRootNode();return!t&&n?cc(e,n):(null==t?void 0:t.items)?t:cc(t,null==t?void 0:t.parentNode)}Uu=new WeakMap,Bu=new WeakMap,Wu=new WeakSet,Hu=function(e){const t=e.target;if(!(null==t?void 0:t.name))for(let n of t.assignedNodes({flatten:!0}))n instanceof Text&&""===n.textContent.trim()&&n.remove();"submenu"===t.name&&(this.submenuElement?ic(this,ju,qu).call(this):ic(this,Vu,Fu).call(this))},ju=new WeakSet,qu=async function(){this.setAttribute("aria-haspopup","menu"),this.setAttribute("aria-expanded",`${!this.submenuElement.hidden}`),this.submenuElement.addEventListener("change",ec(this,$u)),this.submenuElement.addEventListener("addmenuitem",ec(this,$u)),this.submenuElement.addEventListener("removemenuitem",ec(this,$u)),ec(this,$u).call(this)},Vu=new WeakSet,Fu=function(){this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.submenuElement.removeEventListener("change",ec(this,$u)),this.submenuElement.removeEventListener("addmenuitem",ec(this,$u)),this.submenuElement.removeEventListener("removemenuitem",ec(this,$u)),ec(this,$u).call(this)}
2,$u=new WeakMap,Ku=new WeakSet,Gu=function(e){const{key:t}=e;this.keysUsed.includes(t)?this.handleClick(e):this.removeEventListener("keyup",ic(this,Ku,Gu))},Yu=new WeakSet,zu=function(e){const{metaKey:t,altKey:n,key:i}=e;t||n||!this.keysUsed.includes(i)?this.removeEventListener("keyup",ic(this,Ku,Gu)):this.addEventListener("keyup",ic(this,Ku,Gu),{once:!0})},Zu=new WeakSet,Qu=function(){var e;const t=null==(e=ec(this,Bu))?void 0:e.radioGroupItems;if(!t)return;let n=t.filter((e=>"true"===e.getAttribute("aria-checked"))).pop();n||(n=t[0]);for(const i of t)i.setAttribute("aria-checked","false");null==n||n.setAttribute("aria-checked","true")},((e,t,n)=>{((e,t,n)=>{t in e?Xu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(dc,"template",ac),Er.customElements.get("media-chrome-menu-item")||Er.customElements.define("media-chrome-menu-item",dc);var hc,mc,pc,vc,fc,bc,gc,yc,Ec,_c,Ac,kc,wc,Tc,Sc,Cc,Ic,xc,Lc,Rc,Mc,Dc,Oc,Nc,Pc,Uc=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Bc=(e,t,n)=>(Uc(e,t,"read from private field"),n?n.call(e):t.get(e)),Wc=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Hc=(e,t,n,i)=>(Uc(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),jc=(e,t,n)=>(Uc(e,t,"access private method"),n);const qc=_r.createElement("template");qc.innerHTML='\n <style>\n :host {\n --_focus-box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));\n --_media-range-padding: var(--media-range-padding, var(--media-control-padding, 10px));\n\n box-shadow: var(--_focus-visible-box-shadow, none);\n background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));\n height: calc(var(--media-control-height, 24px) + 2 * var(--_media-range-padding));\n display: inline-flex;\n align-items: center;\n \n vertical-align: middle;\n box-sizing: border-box;\n position: relative;\n width: 100px;\n transition: background .15s linear;\n cursor: pointer;\n pointer-events: auto;\n touch-action: none; \n z-index: 1; \n }\n\n \n input[type=range]:focus {\n outline: 0;\n }\n input[type=range]:focus::-webkit-slider-runnable-track {\n outline: 0;\n }\n\n :host(:hover) {\n background: var(--media-control-hover-background, rgb(50 50 70 / .7));\n }\n\n #leftgap {\n padding-left: var(--media-range-padding-left, var(--_media-range-padding));\n }\n\n #rightgap {\n padding-right: var(--media-range-padding-right, var(--_media-range-padding));\n }\n\n #startpoint,\n #endpoint {\n position: absolute;\n }\n\n #endpoint {\n right: 0;\n }\n\n #container {\n \n width: var(--media-range-track-width, 100%);\n transform: translate(var(--media-range-track-translate-x, 0px), var(--media-range-track-translate-y, 0px));\n position: relative;\n height: 100%;\n display: flex;\n align-items: center;\n min-width: 40px;\n }\n\n #range {\n \n display: var(--media-time-range-hover-display, block);\n bottom: var(--media-time-range-hover-bottom, -7px);\n height: var(--media-time-range-hover-height, max(100% + 7px, 25px));\n width: 100%;\n position: absolute;\n cursor: pointer;\n\n -webkit-appearance: none; \n -webkit-tap-highlight-color: transparent;\n background: transparent; \n margin: 0;\n z-index: 1;\n }\n\n @media (hover: hover) {\n #range {\n bottom: var(--media-time-range-hover-bottom, -5px);\n height: var(--media-time-range-hover-height, max(100% + 5px, 20px));\n }\n }\n\n \n \n #range::-webkit-slider-thumb {\n -webkit-appearance: none;\n background: transparent;\n width: .1px;\n height: .1px;\n }\n\n \n #range::-moz-range-thumb {\n background: transparent;\n border: transparent;\n width: .1px;\n height: .1px;\n }\n\n #appearance {\n height: var(--media-range-track-height, 4px);\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n position: absolute;\n \n will-change: transform;\n }
2\n\n #background,\n #track {\n border-radius: var(--media-range-track-border-radius, 1px);\n position: absolute;\n width: 100%;\n height: 100%;\n }\n\n #background {\n background: var(--media-range-track-background, rgb(255 255 255 / .2));\n backdrop-filter: var(--media-range-track-background-backdrop-filter);\n -webkit-backdrop-filter: var(--media-range-track-background-backdrop-filter);\n }\n\n #track {\n border: var(--media-range-track-border, none);\n outline: var(--media-range-track-outline);\n outline-offset: var(--media-range-track-outline-offset);\n backdrop-filter: var(--media-range-track-backdrop-filter);\n -webkit-backdrop-filter: var(--media-range-track-backdrop-filter);\n box-shadow: var(--media-range-track-box-shadow, none);\n overflow: hidden;\n }\n\n #progress,\n #highlight,\n #pointer {\n position: absolute;\n height: 100%;\n will-change: width;\n }\n\n #progress {\n background: var(--media-range-bar-color, var(--media-primary-color, rgb(238 238 238)));\n transition: var(--media-range-track-transition);\n }\n\n #pointer {\n background: var(--media-range-track-pointer-background);\n border-right: var(--media-range-track-pointer-border-right);\n transition: visibility .25s, opacity .25s;\n visibility: hidden;\n opacity: 0;\n }\n\n @media (hover: hover) {\n :host(:hover) #pointer {\n transition: visibility .5s, opacity .5s;\n visibility: visible;\n opacity: 1;\n }\n }\n\n #thumb {\n width: var(--media-range-thumb-width, 10
2px);\n height: var(--media-range-thumb-height, 10px);\n margin-left: calc(var(--media-range-thumb-width, 10px) / -2);\n border: var(--media-range-thumb-border, none);\n border-radius: var(--media-range-thumb-border-radius, 10px);\n background: var(--media-range-thumb-background, var(--media-primary-color, rgb(238 238 238)));\n box-shadow: var(--media-range-thumb-box-shadow, 1px 1px 1px transparent);\n transition: var(--media-range-thumb-transition);\n transform: var(--media-range-thumb-transform, none);\n opacity: var(--media-range-thumb-opacity, 1);\n position: absolute;\n left: 0;\n cursor: pointer;\n }\n\n :host([disabled]) #thumb {\n background-color: #777;\n }\n\n .segments #appearance {\n height: var(--media-range-segment-hover-height, 7px);\n }\n\n #background,\n #track {\n clip-path: url(#segments-clipping);\n }\n\n #segments {\n --segments-gap: var(--media-range-segments-gap, 2px);\n position: absolute;\n width: 100%;\n height: 100%;\n }\n\n #segments-clipping {\n transform: translateX(calc(var(--segments-gap) / 2));\n }\n\n #segments-clipping:empty {\n display: none;\n }\n\n #segments-clipping rect {\n height: var(--media-range-track-height, 4px);\n y: calc((var(--media-range-segment-hover-height, 7px) - var(--media-range-track-height, 4px)) / 2);\n transition: var(--media-range-segment-transition, transform .1s ease-in-out);\n transform: var(--media-range-segment-transform, scaleY(1));\n transform-origin: center;\n }\n </style>\n <div id="leftgap"></div>\n <div id="container">\n <div id="startpoint"></div>\n <div id="endpoint"></div>\n <div id="appearance" part="appearance">\n <div id="background"></div>\n <div id="track">\n <div id="highlight"></div>\n <div id="pointer"></div>\n <div id="progress"></div>\n </div>\n <div id="thumb"></div>\n <svg id="segments"><clipPath id="segments-clipping"></clipPath></svg>\n </div>
2\n <input id="range" type="range" min="0" max="1" step="any" value="0">\n </div>\n <div id="rightgap"></div>\n';class Vc extends Er.HTMLElement{constructor(){super(),Wc(this,_c),Wc(this,kc),Wc(this,Tc),Wc(this,Cc),Wc(this,xc),Wc(this,Rc),Wc(this,Dc),Wc(this,Nc),Wc(this,hc,void 0),Wc(this,mc,void 0),Wc(this,pc,void 0),Wc(this,vc,void 0),Wc(this,fc,{}),Wc(this,bc,[]),Wc(this,gc,(()=>{if(this.range.matches(":focus-visible")){const{style:e}=Pr(this.shadowRoot,":host");e.setProperty("--_focus-visible-box-shadow","var(--_focus-box-shadow)")}})),Wc(this,yc,(()=>{const{style:e}=Pr(this.shadowRoot,":host");e.removeProperty("--_focus-visible-box-shadow")})),Wc(this,Ec,(()=>{const e=this.shadowRoot.querySelector("#segments-clipping");e&&e.parentNode.append(e)})),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(qc.content.cloneNode(!0))),this.container=this.shadowRoot.querySelector("#container"),Hc(this,pc,this.shadowRoot.querySelector("#startpoint")),Hc(this,vc,this.shadowRoot.querySelector("#endpoint")),this.range=this.shadowRoot.querySelector("#range"),this.appearance=this.shadowRoot.querySelector("#appearance")}static get observedAttributes(){return["disabled","aria-disabled",Wa.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,n){var i,a,r,o,s;e===Wa.MEDIA_CONTROLLER?(t&&(null==(a=null==(i=Bc(this,hc))?void 0:i.unassociateElement)||a.call(i,this),Hc(this,hc,null)),n&&this.isConnected&&(Hc(this,hc,null==(r=this.getRootNode())?void 0:r.getElementById(n)),null==(s=null==(o=Bc(this,hc))?void 0:o.associateElement)||s.call(o,this))):("disabled"===e||"aria-disabled"===e&&t!==n)&&(null==n?(this.range.removeAttribute(e),jc(this,kc,wc).call(this)):(this.range.setAttribute(e,n),jc(this,Tc,Sc).call(this)))}connectedCallback(){var e,t,n;const{style:i}=Pr(this.shadowRoot,":host");i.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),Bc(this,fc).pointer=Pr(this.shadowRoot,"#pointer"),Bc(this,fc).progress=Pr(this.shadowRoot,"#progress"),Bc(this,fc).thumb=Pr(this.shadowRoot,"#thumb");const a=this.getAttribute(Wa.MEDIA_CONTROLLER);a&&(Hc(this,hc,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(n=null==(t=Bc(this,hc))?void 0:t.associateElement)||n.call(t,this)),this.updateBar(),this.shadowRoot.addEventListener("focusin",Bc(this,gc)),this.shadowRoot.addEventListener("focusout",Bc(this,yc)),jc(this,kc,wc).call(this),Tr(this.container,Bc(this,Ec))}disconnectedCallback(){var e,t;jc(this,Tc,Sc).call(this),null==(t=null==(e=Bc(this,hc))?void 0:e.unassociateElement)||t.call(e,this),Hc(this,hc,null),this.shadowRoot.removeEventListener("focusin",Bc(this,gc)),this.shadowRoot.removeEventListener("focusout",Bc(this,yc)),Sr(this.container,Bc(this,Ec))}updatePointerBar(e){var t;null==(t=Bc(this,fc).pointer)||t.style.setProperty("width",100*this.getPointerRatio(e)+"%")}updateBar(){var e,t;const n=100*this.range.valueAsNumber;null==(e=Bc(this,fc).progress)||e.style.setProperty("width",`${n}%`),null==(t=Bc(this,fc).thumb)||t.style.setProperty("left",`${n}%`)}updateSegments(e){const t=this.shadowRoot.querySelector("#segments-clipping");if(t.textContent="",this.container.classList.toggle("segments",!!(null==e?void 0:e.length)),!(null==e?void 0:e.length))return;Bc(this,fc).activeSegment=Ur(this.shadowRoot,"#segments-clipping rect:nth-child(0)");const n=[...new Set([+this.range.min,...e.flatMap((e=>[e.start,e.end])),+this.range.max])];Hc(this,bc,[...n]);const i=n.pop();for(const[a,r]of n.entries()){const[e,o]=[0===a,a===n.length-1],s=e?"calc(var(--segments-gap) / -1)":100*r+"%",l=`calc(${100*((o?i:n[a+1])-r)}%${e||o?"":" - var(--segments-gap)"})`,d=_r.createElementNS("http://www.w3.org/2000/svg","rect"),u=Pr(this.shadowRoot,`#segments-clipping rect:nth-child(${a+1})`);u.style.setProperty("x",s),u.style.setProperty("width",l),t.append(d)}}getPointerRatio(e){let t=function(e,t,n,i){const a=Nr(n,i),r=Nr(n,{x:e,y:t}),o=Nr(i,{x:e,y:t});return r>a||o>a?r>o?1:0:r/a}(e.clientX,e.clientY,Bc(this,pc).getBoundingClientRect(),Bc(this,vc).getBoundingClientRect());return Math.max(0,Math.min(1,t))}get dragging(){return this.hasAttribute("dragging")}handleEvent(e){switch(e.type){case"pointermove":jc(this,Nc,Pc).call(this,e);break;case"input":this.updateBar();break;case"pointerenter":jc(this,xc,Lc).call(this,e);break;case"pointerdown":jc(this,Cc,Ic).call(this,e);break;case"pointerup":jc(this,Rc,Mc).call(this);break;case"pointerleave":jc(this,Dc,Oc).call(this)}}get keysUsed(){return["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"]}}hc=new WeakMap,mc=new WeakMap,pc=new WeakMap,vc=new WeakMap,fc=new WeakMap,bc=new WeakMap,gc=new WeakMap,yc=new WeakMap,Ec=new WeakMap,_c=new WeakSet,Ac=function(e){const t=Bc(this,fc).activeSegment;if(!t)return;const n=this.getPointerRatio(e),i=Bc(this,bc).findIndex(((e,t,i)=>{const a=i[t+1];return null!=a&&n>=e&&n<=a})),a=`#segments-clipping rect:nth-child(${i+1})`;t.selectorText==a&&t.style.transform||(t.selectorText=a,t.style.setProperty("transform","var(--media-range-segment-hover-transform, scaleY(2))"))},kc=new WeakSet,wc=function(){this.hasAttribute("disabled")||(this.addEventListener("input",this),this.addEventListener("pointerdown",this),this.addEventListener("pointerenter",this))},Tc=new WeakSet,Sc=function(){var e,t;this.removeEventListener("input",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointerenter",this),null==(e=Er.window)||e.removeEventListener("pointerup",this),null==(t=Er.window)||t.removeEventListener("pointermove",this)},Cc=new WeakSet,Ic=function(e){var t;Hc(this,mc,e.composedPath().includes(this.range)),null==(t=Er.window)||t.addEventListener("pointerup",this)},xc=new WeakSet,Lc=function(e){var t;"mouse"!==e.pointerType&&jc(this,Cc,Ic).call(this,e),this.addEventListener("pointerleave",this),null==(t=Er.window)||t.addEventListener("pointermove",this)},Rc=new WeakSet,Mc=function(){var e;null==(e=Er.window)||e.removeEventListener("pointerup",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")},Dc=new WeakSet,Oc=function(){var e,t;this.removeEventListener("pointerleave",this),null==(e=Er.window)||e.removeEventListener("pointermove",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled"),null==(t=Bc(this,fc).activeSegment)||t.style.removeProperty("transform")},Nc=new WeakSet,Pc=function(e){this.toggleAttribute("dragging",1===e.buttons||"mouse"!==e.pointerType),this.updatePointerBar(e),jc(this,_c,Ac).call(this,e),!this.dragging||"mouse"===e.pointerType&&Bc(this,mc)||(this.range.disabled=!0,this.range.valueAsNumber=this.getPointerRatio(e),this.range.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))},Er.customElements.get("media-chrome-range")||Er.customElements.define("media-chrome-range",Vc);var Fc,$c=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Kc=(e,t,n)=>($c(e,t,"read from private field"),n?n.call(e):t.get(e)),Gc=(e,t,n,i)=>($c(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);const Yc=_r.createElement("template");
2Yc.innerHTML="\n <style>\n :host {\n \n box-sizing: border-box;\n display: var(--media-control-display, var(--media-control-bar-display, inline-flex));\n color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n --media-loading-indicator-icon-height: 44px;\n }\n\n ::slotted(media-time-range),\n ::slotted(media-volume-range) {\n min-height: 100%;\n }\n\n ::slotted(media-time-range),\n ::slotted(media-clip-selector) {\n flex-grow: 1;\n }\n </style>\n\n <slot></slot>\n";class zc extends Er.HTMLElement{constructor(){super(),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,Fc,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(Yc.content.cloneNode(!0)))}static get observedAttributes(){return[Wa.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,n){var i,a,r,o,s;e===Wa.MEDIA_CONTROLLER&&(t&&(null==(a=null==(i=Kc(this,Fc))?void 0:i.unassociateElement)||a.call(i,this),Gc(this,Fc,null)),n&&this.isConnected&&(Gc(this,Fc,null==(r=this.getRootNode())?void 0:r.getElementById(n)),null==(s=null==(o=Kc(this,Fc))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t,n;const i=this.getAttribute(Wa.MEDIA_CONTROLLER);i&&(Gc(this,Fc,null==(e=this.getRootNode())?void 0:e.getElementById(i)),null==(n=null==(t=Kc(this,Fc))?void 0:t.associateElement)||n.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=Kc(this,Fc))?void 0:e.unassociateElement)||t.call(e,this),Gc(this,Fc,null)}}Fc=new WeakMap,Er.customElements.get("media-control-bar")||Er.customElements.define("media-control-bar",zc);var Zc,Qc=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Xc=(e,t,n)=>(Qc(e,t,"read from private field"),n?n.call(e):t.get(e)),Jc=(e,t,n,i)=>(Qc(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);const eh=_r.createElement("template");
2eh.innerHTML="\n <style>\n :host {\n font: var(--media-font,\n var(--media-font-weight, normal)\n var(--media-font-size, 14px) /\n var(--media-text-content-height, var(--media-control-height, 24px))\n var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));\n color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n background: var(--media-text-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))));\n padding: var(--media-control-padding, 10px);\n display: inline-flex;\n justify-content: center;\n align-items: center;\n vertical-align: middle;\n box-sizing: border-box;\n text-align: center;\n pointer-events: auto;\n }\n\n \n :host(:focus-visible) {\n box-shadow: inset 0 0 0 2px rgb(27 127 204 / .9);\n outline: 0;\n }\n\n \n :host(:where(:focus)) {\n box-shadow: none;\n outline: 0;\n }\n </style>\n <slot></slot>\n";
2class th extends Er.HTMLElement{constructor(){super(),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,Zc,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(eh.content.cloneNode(!0)))}static get observedAttributes(){return[Wa.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,n){var i,a,r,o,s;e===Wa.MEDIA_CONTROLLER&&(t&&(null==(a=null==(i=Xc(this,Zc))?void 0:i.unassociateElement)||a.call(i,this),Jc(this,Zc,null)),n&&this.isConnected&&(Jc(this,Zc,null==(r=this.getRootNode())?void 0:r.getElementById(n)),null==(s=null==(o=Xc(this,Zc))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t,n;const{style:i}=Pr(this.shadowRoot,":host");i.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`);const a=this.getAttribute(Wa.MEDIA_CONTROLLER);a&&(Jc(this,Zc,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(n=null==(t=Xc(this,Zc))?void 0:t.associateElement)||n.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=Xc(this,Zc))?void 0:e.unassociateElement)||t.call(e,this),Jc(this,Zc,null)}}Zc=new WeakMap,Er.customElements.get("media-text-display")||Er.customElements.define("media-text-display",th);var nh,ih=th,ah=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},rh=(e,t,n)=>(ah(e,t,"read from private field"),n?n.call(e):t.get(e));class oh extends th{constructor(){super(),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,nh,void 0),((e,t,n,i)=>{ah(e,t,"write to private field"),i?i.call(e,n):t.set(e,n)})(this,nh,this.shadowRoot.querySelector("slot")),rh(this,nh).textContent=mr(0)}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_DURATION]}attributeChangedCallback(e,t,n){e===qa.MEDIA_DURATION&&(rh(this,nh).textContent=mr(+n)),super.attributeChangedCallback(e,t,n)}get mediaDuration(){return Br(this,qa.MEDIA_DURATION)}set mediaDuration(e){Wr(this,qa.MEDIA_DURATION,e)}}nh=new WeakMap,Er.customElements.get("media-duration-display")||Er.customElements.define("media-duration-display",oh);const sh=_r.createElement("template");sh.innerHTML=`\n <style>\n :host([${qa.MEDIA_IS_FULLSCREEN}]) slot:not([name=exit]):not([name=icon]) {\n display: none !important;\n }\n\n \n :host(:not([${qa.MEDIA_IS_FULLSCREEN}])) slot:not([name=enter]):not([name=icon]) {\n display: none !important;\n }\n </style>\n\n <slot name="icon">\n <slot name="enter"><svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M16 3v2.5h3.5V9H22V3h-6ZM4 9h2.5V5.5H10V3H4v6Zm15.5 9.5H16V21h6v-6h-2.5v3.5ZM6.5 15H4v6h6v-2.5H6.5V15Z"/>\n</svg></slot>\n <slot name="exit"><svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M18.5 6.5V3H16v6h6V6.5h-3.5ZM16 21h2.5v-3.5H22V15h-6v6ZM4 17.5h3.5V21H10v-6H4v2.5Zm3.5-11H4V9h6V3H7.5v3.5Z"/>\n</svg></slot>\n </slot>\n`;const lh=e=>{const t=e.mediaIsFullscreen?tr.EXIT_FULLSCREEN():tr.ENTER_FULLSCREEN();e.setAttribute("aria-label",t)};class dh extends ll{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_IS_FULLSCREEN,qa.MEDIA_FULLSCREEN_UNAVAILABLE]}constructor(e={}){super({slotTemplate:sh,...e})}connectedCallback(){super.connectedCallback(),lh(this)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_IS_FULLSCREEN&&lh(this)}get mediaFullscreenUnavailable(){return qr(this,qa.MEDIA_FULLSCREEN_UNAVAILABLE)}set mediaFullscreenUnavailable(e){Vr(this,qa.MEDIA_FULLSCREEN_UNAVAILABLE,e)}get mediaIsFullscreen(){return Hr(this,qa.MEDIA_IS_FULLSCREEN)}set mediaIsFullscreen(e){jr(this,qa.MEDIA_IS_FULLSCREEN,e)}handleClick(){const e=this.mediaIsFullscreen?Ba.MEDIA_EXIT_FULLSCREEN_REQUEST:Ba.MEDIA_ENTER_FULLSCREEN_REQUEST;this.dispatchEvent(new Er.CustomEvent(e,{composed:!0,bubbles:!0}))}}Er.customElements.get("media-fullscreen-button")||Er.customElements.define("media-fullscreen-button",dh);const{MEDIA_TIME_IS_LIVE:uh,MEDIA_PAUSED:ch}=qa,{MEDIA_SEEK_TO_LIVE_REQUEST:hh,MEDIA_PLAY_REQUEST:mh}=Ba,ph=_r.createElement("template");ph.innerHTML=`\n <style>\n\n slot[name=indicator] > *,\n :host ::slotted([slot=indicator]) {\n \n min-width: auto;\n fill: var(--media-live-button-icon-color, rgb(140, 140, 140));\n color: var(--media-live-button-icon-color, rgb(140, 140, 140));\n }\n\n :host([${uh}]:not([${ch}
2])) slot[name=indicator] > *,\n :host([${uh}]:not([${ch}])) ::slotted([slot=indicator]) {\n fill: var(--media-live-button-indicator-color, rgb(255, 0, 0));\n color: var(--media-live-button-indicator-color, rgb(255, 0, 0));\n }\n\n :host([${uh}]:not([${ch}])) {\n cursor: not-allowed;\n }\n\n </style>\n\n <slot name="indicator"><svg viewBox="0 0 6 12"><circle cx="3" cy="6" r="2"></circle></svg></slot>\n \n <slot name="spacer"> </slot><slot name="text">LIVE</slot>\n`;const vh=e=>{const t=e.mediaPaused||!e.mediaTimeIsLive,n=t?tr.SEEK_LIVE():tr.PLAYING_LIVE();e.setAttribute("aria-label",n),t?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true")};class fh extends ll{static get observedAttributes(){return[...super.observedAttributes,ch,uh]}constructor(e={}){super({slotTemplate:ph,...e})}connectedCallback(){vh(this),super.connectedCallback()}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),vh(this)}get mediaPaused(){return Hr(this,qa.MEDIA_PAUSED)}set mediaPaused(e){jr(this,qa.MEDIA_PAUSED,e)}get mediaTimeIsLive(){return Hr(this,qa.MEDIA_TIME_IS_LIVE)}set mediaTimeIsLive(e){jr(this,qa.MEDIA_TIME_IS_LIVE,e)}handleClick(){!this.mediaPaused&&this.mediaTimeIsLive||(this.dispatchEvent(new Er.CustomEvent(hh,{composed:!0,bubbles:!0})),this.hasAttribute(ch)&&this.dispatchEvent(new Er.CustomEvent(mh,{composed:!0,bubbles:!0})))}}Er.customElements.get("media-live-button")||Er.customElements.define("media-live-button",fh);var bh,gh,yh=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Eh=(e,t,n)=>(yh(e,t,"read from private field"),n?n.call(e):t.get(e)),_h=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ah=(e,t,n,i)=>(yh(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);const kh="loadingdelay",wh=_r.createElement("template");wh.innerHTML=`\n<style>\n:host {\n display: var(--media-control-display, var(--media-loading-indicator-display, inline-block));\n vertical-align: middle;\n box-sizing: border-box;\n --_loading-indicator-delay: var(--media-loading-indicator-transition-delay, 500ms);\n}\n\n#status {\n color: rgba(0,0,0,0);\n width: 0px;\n height: 0px;\n}\n\n:host slot[name=icon] > *,\n:host ::slotted([slot=icon]) {\n opacity: var(--media-loading-indicator-opacity, 0);\n transition: opacity 0.15s;\n}\n\n:host([${qa.MEDIA_LOADING}]:not([${qa.MEDIA_PAUSED}])) slot[name=icon] > *,\n:host([${qa.MEDIA_LOADING}]:not([${qa.MEDIA_PAUSED}])) ::slotted([slot=icon]) {\n opacity: var(--media-loading-indicator-opacity, 1);\n transition: opacity 0.15s var(--_loading-indicator-delay);\n}\n\n:host #status {\n visibility: var(--media-loading-indicator-opacity, hidden);\n transition: visibility 0.15s;\n}\n\n:host([${qa.MEDIA_LOADING}]:not([${qa.MEDIA_PAUSED}])) #status {\n visibility: var(--media-loading-indicator-opacity, visible);\n transition: visibility 0.15s var(--_loading-indicator-delay);\n}\n\nsvg, img, ::slotted(svg), ::slotted(img) {\n width: var(--media-loading-indicator-icon-width);\n height: var(--media-loading-indicator-icon-height, 100px);\n fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));\n vertical-align: middle;\n}\n</style>\n\n<slot name="icon">\n<svg aria-hidden="true" viewBox="0 0 100 100">\n <path d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">\n <animateTransform\n attributeName="transform"\n attributeType="XML"\n type="rotate"\n dur="1s"\n from="0 50 50"\n to="360 50 50"\n repeatCount="indefinite" />\n </path>\n</svg>\n</slot>\n<div id="status" role="status" aria-live="polite">${er.MEDIA_LOADING()}</div>\n`;class Th extends Er.HTMLElement{constructor(){if(super(),_h(this,bh,void 0),_h(this,gh,500),!this.shadowRoot){const e=this.attachShadow({mode:"open"}),t=wh.content.cloneNode(!0);e.appendChild(t)}}static get observedAttributes(){return[Wa.MEDIA_CONTROLLER,qa.MEDIA_PAUSED,qa.MEDIA_LOADING,kh]}attributeChangedCallback(e,t,n){var i,a,r,o,s;e===kh&&t!==n?this.loadingDelay=Number(n):e===Wa.MEDIA_CONTROLLER&&(t&&(null==(a=null==(i=Eh(this,bh))?void 0:i.unassociateElement)||a.call(i,this),Ah(this,bh,null)),n&&this.isConnected&&(Ah(this,bh,null==(r=this.getRootNode())?void 0:r.getElementById(n)),null==(s=null==(o=Eh(this,bh))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t,n;const i=this.getAttribute(Wa.MEDIA_CONTROLLER);i&&(Ah(this,bh,null==(e=this.getRootNode())?void 0:e.getElementById(i)),null==(n=null==(t=Eh(this,bh))?void 0:t.associateElement)||n.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=Eh(this,bh))?void 0:e.unassociateElement)||t.call(e,this),Ah(this,bh,null)}get loadingDelay(){return Eh(this,gh)}set loadingDelay(e){Ah(this,gh,e);const{style:t}=Pr(this.shadowRoot,":host");t.setProperty("--_loading-indicator-delay",`var(--media-loading-indicator-transition-delay, ${e}ms)`)}get mediaPaused(){return Hr(this,qa.MEDIA_PAUSED)}set mediaPaused(e){jr(this,qa.MEDIA_PAUSED,e)}get mediaLoading(){return Hr(this,qa.MEDIA_LOADING)}set mediaLoading(e){jr(this,qa.MEDIA_LOADING,e)}}bh=new WeakMap,gh=new WeakMap,Er.customElements.get("media-loading-indicator")||Er.customElements.define("media-loading-indicator",Th);const{MEDIA_VOLUME_LEVEL:Sh}=qa,Ch='<svg aria-hidden="true" viewBox="0 0 24 24">\n <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4Z"/>\n</svg>',Ih=_r.createElement("template");Ih.innerHTML=`\n <style>\n \n :host(:not([${Sh}
2])) slot:not([name=high]):not([name=icon]), \n :host([${Sh}=high]) slot:not([name=high]):not([name=icon]) {\n display: none !important;\n }\n\n :host([${Sh}=off]) slot:not([name=off]):not([name=icon]) {\n display: none !important;\n }\n\n :host([${Sh}=low]) slot:not([name=low]):not([name=icon]) {\n display: none !important;\n }\n\n :host([${Sh}=medium]) slot:not([name=medium]):not([name=icon]) {\n display: none !important;\n }\n </style>\n\n <slot name="icon">\n <slot name="off"><svg aria-hidden="true" viewBox="0 0 24 24">\n <path d="M16.5 12A4.5 4.5 0 0 0 14 8v2.18l2.45 2.45a4.22 4.22 0 0 0 .05-.63Zm2.5 0a6.84 6.84 0 0 1-.54 2.64L20 16.15A8.8 8.8 0 0 0 21 12a9 9 0 0 0-7-8.77v2.06A7 7 0 0 1 19 12ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25A6.92 6.92 0 0 1 14 18.7v2.06A9 9 0 0 0 17.69 19l2 2.05L21 19.73l-9-9L4.27 3ZM12 4 9.91 6.09 12 8.18V4Z"/>\n</svg></slot>\n <slot name="low">${Ch}</slot>\n <slot name="medium">${Ch}</slot>\n <slot name="high"><svg aria-hidden="true" viewBox="0 0 24 24">\n <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4ZM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54Z"/>\n</svg></slot>\n </slot>\n`;const xh=e=>{const t="off"===e.mediaVolumeLevel?tr.UNMUTE():tr.MUTE();e.setAttribute("aria-label",t)};class Lh extends ll{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_VOLUME_LEVEL]}constructor(e={}){super({slotTemplate:Ih,...e})}connectedCallback(){xh(this),super.connectedCallback()}attributeChangedCallback(e,t,n){e===qa.MEDIA_VOLUME_LEVEL&&xh(this),super.attributeChangedCallback(e,t,n)}get mediaVolumeLevel(){return qr(this,qa.MEDIA_VOLUME_LEVEL)}set mediaVolumeLevel(e){Vr(this,qa.MEDIA_VOLUME_LEVEL,e)}handleClick(){const e="off"===this.mediaVolumeLevel?Ba.MEDIA_UNMUTE_REQUEST:Ba.MEDIA_MUTE_REQUEST;this.dispatchEvent(new Er.CustomEvent(e,{composed:!0,bubbles:!0}))}}Er.customElements.get("media-mute-button")||Er.customElements.define("media-mute-button",Lh);const Rh='<svg aria-hidden="true" viewBox="0 0 28 24">\n <path d="M24 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Zm-1 16H5V5h18v14Zm-3-8h-7v5h7v-5Z"/>\n</svg>',Mh=_r.createElement("template");Mh.innerHTML=`\n <style>\n :host([${qa.MEDIA_IS_PIP}]) slot:not([name=exit]):not([name=icon]) {\n display: none !important;\n }\n\n \n :host(:not([${qa.MEDIA_IS_PIP}])) slot:not([name=enter]):not([name=icon]) {\n display: none !important;\n }\n </style>\n\n <slot name="icon">\n <slot name="enter">${Rh}</slot>\n <slot name="exit">${Rh}</slot>\n </slot>\n`;const Dh=e=>{const t=e.mediaIsPip?tr.EXIT_PIP():tr.ENTER_PIP();e.setAttribute("aria-label",t)};class Oh extends ll{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_IS_PIP,qa.MEDIA_PIP_UNAVAILABLE]}constructor(e={}){super({slotTemplate:Mh,...e})}connectedCallback(){Dh(this),super.connectedCallback()}attributeChangedCallback(e,t,n){e===qa.MEDIA_IS_PIP&&Dh(this),super.attributeChangedCallback(e,t,n)}get mediaPipUnavailable(){return qr(this,qa.MEDIA_PIP_UNAVAILABLE)}set mediaPipUnavailable(e){Vr(this,qa.MEDIA_PIP_UNAVAILABLE,e)}get mediaIsPip(){return Hr(this,qa.MEDIA_IS_PIP)}set mediaIsPip(e){jr(this,qa.MEDIA_IS_PIP,e)}handleClick(){const e=this.mediaIsPip?Ba.MEDIA_EXIT_PIP_REQUEST:Ba.MEDIA_ENTER_PIP_REQUEST;this.dispatchEvent(new Er.CustomEvent(e,{composed:!0,bubbles:!0}))}}Er.customElements.get("media-pip-button")||Er.customElements.define("media-pip-button",Oh);var Nh,Ph=(e,t,n)=>(((e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)})(e,t,"read from private field"),n?n.call(e):t.get(e));const Uh="rates",Bh=[1,1.2,1.5,1.7,2],Wh=_r.createElement("template");Wh.innerHTML='\n <style>\n :host {\n min-width: 5ch;\n padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));\n }\n </style>\n <slot name="icon"></slot>\n';class Hh extends ll{constructor(e={}){super({slotTemplate:Wh,...e}),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,Nh,new Mo(this,Uh,{defaultValue:Bh})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML="1x"}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_PLAYBACK_RATE,Uh]}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),e===Uh&&(Ph(this,Nh).value=n),e===qa.MEDIA_PLAYBACK_RATE){const e=n?+n:Number.NaN,t=Number.isNaN(e)?1:e;this.container.innerHTML=`${t}x`,this.setAttribute("aria-label",er.PLAYBACK_RATE({playbackRate:t}))}}get rates(){return Ph(this,Nh)}set rates(e){e?Array.isArray(e)&&(Ph(this,Nh).value=e.join(" ")):Ph(this,Nh).value=""}get mediaPlaybackRate(){return Br(this,qa.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){Wr(this,qa.MEDIA_PLAYBACK_RATE,e)}handleClick(){var e,t;const n=Array.from(this.rates.values(),(e=>+e)).sort(((e,t)=>e-t)),i=null!=(t=null!=(e=n.find((e=>e>this.mediaPlaybackRate)))?e:n[0])?t:1,a=new Er.CustomEvent(Ba.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:i});this.dispatchEvent(a)}}Nh=new WeakMap,Er.customElements.get("media-playback-rate-button")||Er.customElements.define("media-playback-rate-button",Hh);var jh,qh,Vh,Fh,$h,Kh=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Gh=(e,t,n)=>(Kh(e,t,"read from private field"),n?n.call(e):t.get(e)),Yh=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},zh=(e,t,n)=>(Kh(e,t,"access private method"),n);
2const Zh="rates";class Qh extends wd{constructor(){super(),Yh(this,qh),Yh(this,Fh),Yh(this,jh,new Mo(this,Zh,{defaultValue:Bh})),zh(this,qh,Vh).call(this)}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_PLAYBACK_RATE,Zh]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_PLAYBACK_RATE&&t!=n?this.value=n:e===Zh&&t!=n&&(Gh(this,jh).value=n,zh(this,qh,Vh).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",zh(this,Fh,$h))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",zh(this,Fh,$h))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:Cr(this).querySelector("media-playback-rate-menu-button")}get rates(){return Gh(this,jh)}set rates(e){e?Array.isArray(e)&&(Gh(this,jh).value=e.join(" ")):Gh(this,jh).value="",zh(this,qh,Vh).call(this)}get mediaPlaybackRate(){return Br(this,qa.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){Wr(this,qa.MEDIA_PLAYBACK_RATE,e)}}jh=new WeakMap,qh=new WeakSet,Vh=function(){this.defaultSlot.textContent="";for(const e of this.rates){const t=bd({type:"radio",text:this.formatMenuItemText(`${e}x`,e),value:e,checked:this.mediaPlaybackRate==e});t.prepend(gd(this,"checked-indicator")),this.defaultSlot.append(t)}},Fh=new WeakSet,$h=function(){if(!this.value)return;const e=new Er.CustomEvent(Ba.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},Er.customElements.get("media-playback-rate-menu")||Er.customElements.define("media-playback-rate-menu",Qh);var Xh,Jh=(e,t,n)=>(((e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)})(e,t,"read from private field"),n?n.call(e):t.get(e));const em="rates",tm=[1,1.2,1.5,1.7,2],nm=_r.createElement("template");nm.innerHTML='\n <style>\n :host {\n min-width: 5ch;\n padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));\n }\n </style>\n <slot name="icon"></slot>\n';class im extends Hd{constructor(e={}){super({slotTemplate:nm,...e}),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,Xh,new Mo(this,em,{defaultValue:tm})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML="1x"}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_PLAYBACK_RATE,em]}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),e===em&&(Jh(this,Xh).value=n),e===qa.MEDIA_PLAYBACK_RATE){const e=n?+n:Number.NaN,t=Number.isNaN(e)?1:e;this.container.innerHTML=`${t}x`,this.setAttribute("aria-label",er.PLAYBACK_RATE({playbackRate:t}))}}get invokeTargetElement(){return null!=this.invokeTarget?super.invokeTargetElement:Cr(this).querySelector("media-playback-rate-menu")}get rates(){return Jh(this,Xh)}set rates(e){e?Array.isArray(e)&&(Jh(this,Xh).value=e.join(" ")):Jh(this,Xh).value=""}get mediaPlaybackRate(){return Br(this,qa.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){Wr(this,qa.MEDIA_PLAYBACK_RATE,e)}}Xh=new WeakMap,Er.customElements.get("media-playback-rate-menu-button")||Er.customElements.define("media-playback-rate-menu-button",im);const am=_r.createElement("template");am.innerHTML=`\n <style>\n :host([${qa.MEDIA_PAUSED}]) slot[name=pause] {\n display: none !important;\n }\n\n :host(:not([${qa.MEDIA_PAUSED}])) slot[name=play] {\n display: none !important;\n }\n </style>\n\n <slot name="icon">\n <slot name="play"><svg aria-hidden="true" viewBox="0 0 24 24">\n <path d="m6 21 15-9L6 3v18Z"/>\n</svg></slot>\n <slot name="pause"><svg aria-hidden="true" viewBox="0 0 24 24">\n <path d="M6 20h4V4H6v16Zm8-16v16h4V4h-4Z"/>\n</svg></slot>\n </slot>\n`;const rm=e=>{const t=e.mediaPaused?tr.PLAY():tr.PAUSE();e.setAttribute("aria-label",t)};class om extends ll{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_PAUSED,qa.MEDIA_ENDED]}constructor(e={}){super({slotTemplate:am,...e})}connectedCallback(){rm(this),super.connectedCallback()}attributeChangedCallback(e,t,n){e===qa.MEDIA_PAUSED&&rm(this),super.attributeChangedCallback(e,t,n)}get mediaPaused(){return Hr(this,qa.MEDIA_PAUSED)}set mediaPaused(e){jr(this,qa.MEDIA_PAUSED,e)}handleClick(){const e=this.mediaPaused?Ba.MEDIA_PLAY_REQUEST:Ba.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new Er.CustomEvent(e,{composed:!0,bubbles:!0}))}}Er.customElements.get("media-play-button")||Er.customElements.define("media-play-button",om);const sm="placeholdersrc",lm="src",dm=_r.createElement("template");dm.innerHTML='\n <style>\n :host {\n pointer-events: none;\n display: var(--media-poster-image-display, inline-block);\n box-sizing: border-box;\n }\n\n img {\n max-width: 100%;\n max-height: 100%;\n min-width: 100%;\n min-height: 100%;\n background-repeat: no-repeat;\n background-position: var(--media-poster-image-background-position, var(--media-object-position, center));\n background-size: var(--media-poster-image-background-size, var(--media-object-fit, contain));\n object-fit: var(--media-object-fit, contain);\n object-position: var(--media-object-position, center);\n }\n </style>\n\n <img part="poster img" aria-hidden="true" id="image"/>\n';
2class um extends Er.HTMLElement{static get observedAttributes(){return[sm,lm]}constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(dm.content.cloneNode(!0))),this.image=this.shadowRoot.querySelector("#image")}attributeChangedCallback(e,t,n){e===lm&&(null==n?this.image.removeAttribute(lm):this.image.setAttribute(lm,n)),e===sm&&(null==n?this.image.style.removeProperty("background-image"):((e,t)=>{e.style["background-image"]=`url('${t}')`})(this.image,n))}get placeholderSrc(){return qr(this,sm)}set placeholderSrc(e){Vr(this,lm,e)}get src(){return qr(this,lm)}set src(e){Vr(this,lm,e)}}Er.customElements.get("media-poster-image")||Er.customElements.define("media-poster-image",um);var cm,hm=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};class mm extends ih{constructor(){super(),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,cm,void 0),((e,t,n,i)=>{hm(e,t,"write to private field"),i?i.call(e,n):t.set(e,n)})(this,cm,this.shadowRoot.querySelector("slot"))}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_PREVIEW_CHAPTER]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_PREVIEW_CHAPTER&&n!==t&&null!=n&&(((e,t,n)=>(hm(e,t,"read from private field"),n?n.call(e):t.get(e)))(this,cm).textContent=n,""!==n?this.setAttribute("aria-valuetext",`chapter: ${n}`):this.removeAttribute("aria-valuetext"))}get mediaPreviewChapter(){return qr(this,qa.MEDIA_PREVIEW_CHAPTER)}set mediaPreviewChapter(e){Vr(this,qa.MEDIA_PREVIEW_CHAPTER,e)}}cm=new WeakMap,Er.customElements.get("media-preview-chapter-display")||Er.customElements.define("media-preview-chapter-display",mm);var pm,vm=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)}
2,fm=(e,t,n)=>(vm(e,t,"read from private field"),n?n.call(e):t.get(e)),bm=(e,t,n,i)=>(vm(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);const gm=_r.createElement("template");gm.innerHTML='\n <style>\n :host {\n box-sizing: border-box;\n display: var(--media-control-display, var(--media-preview-thumbnail-display, inline-block));\n overflow: hidden;\n }\n\n img {\n display: none;\n position: relative;\n }\n </style>\n <img crossorigin loading="eager" decoding="async">\n';class ym extends Er.HTMLElement{constructor(){super(),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,pm,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(gm.content.cloneNode(!0)))}static get observedAttributes(){return[Wa.MEDIA_CONTROLLER,qa.MEDIA_PREVIEW_IMAGE,qa.MEDIA_PREVIEW_COORDS]}connectedCallback(){var e,t,n;const i=this.getAttribute(Wa.MEDIA_CONTROLLER);i&&(bm(this,pm,null==(e=this.getRootNode())?void 0:e.getElementById(i)),null==(n=null==(t=fm(this,pm))?void 0:t.associateElement)||n.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=fm(this,pm))?void 0:e.unassociateElement)||t.call(e,this),bm(this,pm,null)}attributeChangedCallback(e,t,n){var i,a,r,o,s;[qa.MEDIA_PREVIEW_IMAGE,qa.MEDIA_PREVIEW_COORDS].includes(e)&&this.update(),e===Wa.MEDIA_CONTROLLER&&(t&&(null==(a=null==(i=fm(this,pm))?void 0:i.unassociateElement)||a.call(i,this),bm(this,pm,null)),n&&this.isConnected&&(bm(this,pm,null==(r=this.getRootNode())?void 0:r.getElementById(n)),null==(s=null==(o=fm(this,pm))?void 0:o.associateElement)||s.call(o,this)))}get mediaPreviewImage(){return qr(this,qa.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){Vr(this,qa.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewCoords(){const e=this.getAttribute(qa.MEDIA_PREVIEW_COORDS);if(e)return e.split(/\s+/).map((e=>+e))}set mediaPreviewCoords(e){e?this.setAttribute(qa.MEDIA_PREVIEW_COORDS,e.join(" ")):this.removeAttribute(qa.MEDIA_PREVIEW_COORDS)}update(){const e=this.mediaPreviewCoords,t=this.mediaPreviewImage;if(!e||!t)return;const[n,i,a,r]=e,o=t.split("#")[0],s=getComputedStyle(this),{maxWidth:l,maxHeight:d,minWidth:u,minHeight:c}=s,h=Math.min(parseInt(l)/a,parseInt(d)/r),m=Math.max(parseInt(u)/a,parseInt(c)/r),p=h<1,v=p?h:m>1?m:1,{style:f}=Pr(this.shadowRoot,":host"),b=Pr(this.shadowRoot,"img").style,g=this.shadowRoot.querySelector("img"),y=p?"min":"max";f.setProperty(`${y}-width`,"initial","important"),f.setProperty(`${y}-height`,"initial","important"),f.width=a*v+"px",f.height=r*v+"px";const E=()=>{b.width=this.imgWidth*v+"px",b.height=this.imgHeight*v+"px",b.display="block"};g.src!==o&&(g.onload=()=>{this.imgWidth=g.naturalWidth,this.imgHeight=g.naturalHeight,E()},g.src=o,E()),E(),b.transform=`translate(-${n*v}px, -${i*v}px)`}}pm=new WeakMap,Er.customElements.get("media-preview-thumbnail")||Er.customElements.define("media-preview-thumbnail",ym);var Em,_m=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Am=(e,t,n)=>(_m(e,t,"read from private field"),n?n.call(e):t.get(e));class km extends th{constructor(){super(),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,Em,void 0),((e,t,n,i)=>{_m(e,t,"write to private field"),i?i.call(e,n):t.set(e,n)})(this,Em,this.shadowRoot.querySelector("slot")),Am(this,Em).textContent=mr(0)}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_PREVIEW_TIME]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_PREVIEW_TIME&&null!=n&&(Am(this,Em).textContent=mr(n))}get mediaPreviewTime(){return Br(this,qa.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){Wr(this,qa.MEDIA_PREVIEW_TIME,e)}}Em=new WeakMap,Er.customElements.get("media-preview-time-display")||Er.customElements.define("media-preview-time-display",km);var wm,Tm,Sm,Cm,Im,xm,Lm=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Rm=(e,t,n)=>(Lm(e,t,"read from private field"),n?n.call(e):t.get(e)),Mm=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)}
2,Dm=(e,t,n,i)=>(Lm(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Om=(e,t,n)=>(Lm(e,t,"access private method"),n);class Nm extends wd{constructor(){super(...arguments),Mm(this,Sm),Mm(this,Im),Mm(this,wm,[]),Mm(this,Tm,void 0)}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_RENDITION_LIST,qa.MEDIA_RENDITION_SELECTED,qa.MEDIA_RENDITION_UNAVAILABLE]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_RENDITION_SELECTED&&t!==n?this.value=null!=n?n:"auto":e===qa.MEDIA_RENDITION_LIST&&t!==n&&(Dm(this,wm,nr(n)),Om(this,Sm,Cm).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",Om(this,Im,xm))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",Om(this,Im,xm))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:Cr(this).querySelector("media-rendition-menu-button")}get mediaRenditionList(){return Rm(this,wm)}set mediaRenditionList(e){Dm(this,wm,e),Om(this,Sm,Cm).call(this)}get mediaRenditionSelected(){return qr(this,qa.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){Vr(this,qa.MEDIA_RENDITION_SELECTED,e)}}wm=new WeakMap,Tm=new WeakMap,Sm=new WeakSet,Cm=function(){if(Rm(this,Tm)===JSON.stringify(this.mediaRenditionList))return;Dm(this,Tm,JSON.stringify(this.mediaRenditionList));const e=this.mediaRenditionList.sort(((e,t)=>t.height-e.height));this.defaultSlot.textContent="";let t=!this.mediaRenditionSelected;for(const i of e){const e=bd({type:"radio",text:this.formatMenuItemText(`${Math.min(i.width,i.height)}p`,i),value:`${i.id}`,checked:i.selected&&!t});e.prepend(gd(this,"checked-indicator")),this.defaultSlot.append(e)}const n=bd({type:"radio",text:this.formatMenuItemText("Auto"),value:"auto",checked:t});n.prepend(gd(this,"checked-indicator")),this.defaultSlot.append(n)},Im=new WeakSet,xm=function(){if(null==this.value)return;const e=new Er.CustomEvent(Ba.MEDIA_RENDITION_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},Er.customElements.get("media-rendition-menu")||Er.customElements.define("media-rendition-menu",Nm);const Pm=_r.createElement("template");Pm.innerHTML='\n <slot name="icon"><svg aria-hidden="true" viewBox="0 0 24 24">\n <path d="M13.5 2.5h2v6h-2v-2h-11v-2h11v-2Zm4 2h4v2h-4v-2Zm-12 4h2v6h-2v-2h-3v-2h3v-2Zm4 2h12v2h-12v-2Zm1 4h2v6h-2v-2h-8v-2h8v-2Zm4 2h7v2h-7v-2Z" />\n</svg></slot>\n';class Um extends Hd{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_RENDITION_SELECTED,qa.MEDIA_RENDITION_UNAVAILABLE]}constructor(){super({slotTemplate:Pm})}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",er.QUALITY())}get invokeTargetElement(){return null!=this.invokeTarget?super.invokeTargetElement:Cr(this).querySelector("media-rendition-menu")}get mediaRenditionSelected(){return qr(this,qa.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){Vr(this,qa.MEDIA_RENDITION_SELECTED,e)}}Er.customElements.get("media-rendition-menu-button")||Er.customElements.define("media-rendition-menu-button",Um);const Bm="seekoffset",Wm=_r.createElement("template");Wm.innerHTML='\n <slot name="icon"><svg aria-hidden="true" viewBox="0 0 20 24"><defs><style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style></defs><text class="text value" transform="translate(2.18 19.87)">30</text><path d="M10 6V3L4.37 7 10 10.94V8a5.54 5.54 0 0 1 1.9 10.48v2.12A7.5 7.5 0 0 0 10 6Z"/></svg></slot>\n';class Hm extends ll{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_CURRENT_TIME,Bm]}constructor(e={}){super({slotTemplate:Wm,...e})}connectedCallback(){this.seekOffset=Br(this,Bm,30),super.connectedCallback()}attributeChangedCallback(e,t,n){e===Bm&&(this.seekOffset=Br(this,Bm,30)),super.attributeChangedCallback(e,t,n)}get seekOffset(){return Br(this,Bm,30)}set seekOffset(e){Wr(this,Bm,e),this.setAttribute("aria-label",tr.SEEK_BACK_N_SECS({seekOffset:this.seekOffset})),xr(Lr(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return Br(this,qa.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){Wr(this,qa.MEDIA_CURRENT_TIME,e)}handleClick(){const e=Math.max(this.mediaCurrentTime-this.seekOffset,0),t=new Er.CustomEvent(Ba.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}}Er.customElements.get("media-seek-backward-button")||Er.customElements.define("media-seek-backward-button",Hm);const jm="seekoffset",qm=_r.createElement("template");qm.innerHTML='\n <slot name="icon"><svg aria-hidden="true" viewBox="0 0 20 24"><defs><style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style></defs><text class="text value" transform="translate(8.9 19.87)">30</text><path d="M10 6V3l5.61 4L10 10.94V8a5.54 5.54 0 0 0-1.9 10.48v2.12A7.5 7.5 0 0 1 10 6Z"/></svg></slot>\n';class Vm extends ll{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_CURRENT_TIME,jm]}constructor(e={}){super({slotTemplate:qm,...e})}connectedCallback(){this.seekOffset=Br(this,jm,30),super.connectedCallback()}attributeChangedCallback(e,t,n){e===jm&&(this.seekOffset=Br(this,jm,30)),super.attributeChangedCallback(e,t,n)}get seekOffset(){return Br(this,jm,30)}set seekOffset(e){Wr(this,jm,e),this.setAttribute("aria-label",tr.SEEK_FORWARD_N_SECS({seekOffset:this.seekOffset})),xr(Lr(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return Br(this,qa.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){Wr(this,qa.MEDIA_CURRENT_TIME,e)}handleClick(){const e=this.mediaCurrentTime+this.seekOffset,t=new Er.CustomEvent(Ba.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}}Er.customElements.get("media-seek-forward-button")||Er.customElements.define("media-seek-forward-button",Vm);var Fm=Object.defineProperty;const $m=_r.createElement("template");
2$m.innerHTML=wd.template.innerHTML+'\n <style>\n :host {\n background: var(--media-settings-menu-background,\n var(--media-menu-background,\n var(--media-control-background,\n var(--media-secondary-color, rgb(20 20 30 / .8)))));\n min-width: var(--media-settings-menu-min-width, 160px);\n border-radius: 2px 2px 0 0;\n overflow: hidden;\n }\n\n :host([role="menu"]) {\n \n justify-content: end;\n }\n\n slot:not([name]) {\n justify-content: var(--media-settings-menu-justify-content);\n flex-direction: var(--media-settings-menu-flex-direction, column);\n overflow: visible;\n }\n\n #container.has-expanded {\n --media-settings-menu-item-opacity: 0;\n }\n </style>\n';class Km extends wd{get anchorElement(){return"auto"!==this.anchor?super.anchorElement:Cr(this).querySelector("media-settings-menu-button")}}((e,t,n)=>{((e,t,n)=>{t in e?Fm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(Km,"template",$m),Er.customElements.get("media-settings-menu")||Er.customElements.define("media-settings-menu",Km);const Gm=_r.createElement("template");Gm.innerHTML='\n <slot name="icon">\n <svg aria-hidden="true" viewBox="0 0 24 24">\n <path d="M4.5 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"/>\n </svg>\n </slot>\n';class Ym extends Hd{static get observedAttributes(){return[...super.observedAttributes,"target"]}constructor(){super({slotTemplate:Gm})}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",er.SETTINGS())}get invokeTargetElement(){return null!=this.invokeTarget?super.invokeTargetElement:Cr(this).querySelector("media-settings-menu")}}Er.customElements.get("media-settings-menu-button")||Er.customElements.define("media-settings-menu-button",Ym);var zm,Zm=Object.defineProperty;const Qm=_r.createElement("template");Qm.innerHTML=dc.template.innerHTML+'\n <style>\n slot:not([name="submenu"]) {\n opacity: var(--media-settings-menu-item-opacity, var(--media-menu-item-opacity));\n }\n\n :host([aria-expanded="true"]:hover) {\n background: transparent;\n }\n </style>\n',(null==(zm=Qm.content)?void 0:zm.querySelector)&&(Qm.content.querySelector('slot[name="suffix"]').innerHTML='\n <svg aria-hidden="true" viewBox="0 0 20 24">\n <path d="m8.12 17.585-.742-.669 4.2-4.665-4.2-4.666.743-.669 4.803 5.335-4.803 5.334Z"/>\n </svg>\n ');class Xm extends dc{}((e,t,n)=>{((e,t,n)=>{t in e?Zm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(Xm,"template",Qm),Er.customElements.get("media-settings-menu-item")||Er.customElements.define("media-settings-menu-item",Xm);var Jm,ep=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},tp=(e,t,n)=>(ep(e,t,"read from private field"),n?n.call(e):t.get(e));const np={REMAINING:"remaining",SHOW_DURATION:"showduration",NO_TOGGLE:"notoggle"},ip=[...Object.values(np),qa.MEDIA_CURRENT_TIME,qa.MEDIA_DURATION,qa.MEDIA_SEEKABLE],ap=["Enter"," "],rp=(e,{timesSep:t=" / "}={})=>{var n,i;const a=e.hasAttribute(np.REMAINING),r=e.hasAttribute(np.SHOW_DURATION),o=null!=(n=e.mediaCurrentTime)?n:0,[,s]=null!=(i=e.mediaSeekable)?i:[];let l=0;Number.isFinite(e.mediaDuration)?l=e.mediaDuration:Number.isFinite(s)&&(l=s);const d=mr(a?0-(l-o):o);return r?`${d}${t}${mr(l)}`:d};class op extends th{constructor(){super(),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,Jm,void 0),((e,t,n,i)=>{ep(e,t,"write to private field"),i?i.call(e,n):t.set(e,n)})(this,Jm,this.shadowRoot.querySelector("slot")),tp(this,Jm).innerHTML=`${rp(this)}`}static get observedAttributes(){return[...super.observedAttributes,...ip,"disabled"]}connectedCallback(){const{style:e}=Pr(this.shadowRoot,":host(:hover:not([notoggle]))");e.setProperty("cursor","pointer"),e.setProperty("background","var(--media-control-hover-background, rgba(50 50 70 / .7))"),this.hasAttribute("disabled")||this.enable(),this.setAttribute("role","progressbar"),this.setAttribute("aria-label",er.PLAYBACK_TIME());const t=e=>{const{key:n}=e;ap.includes(n)?this.toggleTimeDisplay():this.removeEventListener("keyup",t)};this.addEventListener("keydown",(e=>{const{metaKey:n,altKey:i,key:a}=e;n||i||!ap.includes(a)?this.removeEventListener("keyup",t):this.addEventListener("keyup",t)})),this.addEventListener("click",this.toggleTimeDisplay),super.connectedCallback()}toggleTimeDisplay(){this.noToggle||(this.hasAttribute("remaining")?this.removeAttribute("remaining"):this.setAttribute("remaining",""))}disconnectedCallback(){this.disable(),super.disconnectedCallback()}attributeChangedCallback(e,t,n){ip.includes(e)?this.update():"disabled"===e&&n!==t&&(null==n?this.enable():this.disable()),super.attributeChangedCallback(e,t,n)}enable(){this.tabIndex=0}disable(){this.tabIndex=-1}get remaining(){return Hr(this,np.REMAINING)}set remaining(e){jr(this,np.REMAINING,e)}get showDuration(){return Hr(this,np.SHOW_DURATION)}set showDuration(e){jr(this,np.SHOW_DURATION,e)}get noToggle(){return Hr(this,np.NO_TOGGLE)}set noToggle(e){jr(this,np.NO_TOGGLE,e)}get mediaDuration(){return Br(this,qa.MEDIA_DURATION)}set mediaDuration(e){Wr(this,qa.MEDIA_DURATION,e)}get mediaCurrentTime(){return Br(this,qa.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){Wr(this,qa.MEDIA_CURRENT_TIME,e)}get mediaSeekable(){const e=this.getAttribute(qa.MEDIA_SEEKABLE);if(e)return e.split(":").map((e=>+e))}set mediaSeekable(e){null!=e?this.setAttribute(qa.MEDIA_SEEKABLE,e.join(":")):this.removeAttribute(qa.MEDIA_SEEKABLE)}update(){const e=rp(this);(e=>{var t;const n=e.mediaCurrentTime,[,i]=null!=(t=e.mediaSeekable)?t:[];let a=null;if(Number.isFinite(e.mediaDuration)?a=e.mediaDuration:Number.isFinite(i)&&(a=i),null==n||null===a)return void e.setAttribute("aria-valuetext","video not loaded, unknown time.");const r=e.hasAttribute(np.REMAINING),o=e.hasAttribute(np.SHOW_DURATION),s=hr(r?0-(a-n):n);if(!o)return void e.setAttribute("aria-valuetext",s);const l=`${s} of ${hr(a)}`;e.setAttribute("aria-valuetext",l)})(this),e!==tp(this,Jm).innerHTML&&(tp(this,Jm).innerHTML=e)}}Jm=new WeakMap,Er.customElements.get("media-time-display")||Er.customElements.define("media-time-display",op);var sp,lp,dp,up,cp,hp,mp,pp,vp,fp,bp=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},gp=(e,t,n)=>(bp(e,t,"read from private field"),n?n.call(e):t.get(e)),yp=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ep=(e,t,n,i)=>(bp(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);class _p{constructor(e,t,n){yp(this,sp,void 0),yp(this,lp,void 0),yp(this,dp,void 0),yp(this,up,void 0),yp(this,cp,void 0),yp(this,hp,void 0),yp(this,mp,void 0),yp(this,pp,void 0),yp(this,vp,0),yp(this,fp,((e=performance.now())=>{Ep(this,vp,requestAnimationFrame(gp(this,fp))),Ep(this,up,performance.now()-gp(this,dp));const t=1e3/this.fps;if(gp(this,up)>t){Ep(this,dp,e-gp(this,up)%t);const n=1e3/((e-gp(this,lp))/++((e,t,n,i)=>({set _(i){Ep(e,t,i,n)},get _(){return gp(e,t,i)}}))(this,cp)._),i=(e-gp(this,hp))/1e3/this.duration;let a=gp(this,mp)+i*this.playbackRate;a-gp(this,sp).valueAsNumber>0?Ep(this,pp,this.playbackRate/this.duration/n):(Ep(this,pp,.995*gp(this,pp)),a=gp(this,sp).valueAsNumber+gp(this,pp)),this.callback(a)}})),Ep(this,sp,e),this.callback=t,this.fps=n}start(){0===gp(this,vp)&&(Ep(this,dp,performance.now()),Ep(this,lp,gp(this,dp)),Ep(this,cp,0),gp(this,fp).call(this))}stop(){0!==gp(this,vp)&&(cancelAnimationFrame(gp(this,vp)),Ep(this,vp,0))}update({start:e,duration:t,playbackRate:n}){const i=e-gp(this,sp).valueAsNumber,a=Math.abs(t-this.duration);(i>0||i<-.03||a>=.5)&&this.callback(e),Ep(this,mp,e),Ep(this,hp,performance.now()),this.duration=t,this.playbackRate=n}}sp=new WeakMap,lp=new WeakMap,dp=new WeakMap,up=new WeakMap,cp=new WeakMap,hp=new WeakMap,mp=new WeakMap,p
2p=new WeakMap,vp=new WeakMap,fp=new WeakMap;var Ap,kp,wp,Tp,Sp,Cp,Ip,xp,Lp,Rp,Mp,Dp,Op,Np,Pp,Up,Bp,Wp,Hp,jp,qp,Vp,Fp,$p,Kp,Gp,Yp=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},zp=(e,t,n)=>(Yp(e,t,"read from private field"),n?n.call(e):t.get(e)),Zp=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qp=(e,t,n,i)=>(Yp(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Xp=(e,t,n)=>(Yp(e,t,"access private method"),n);const Jp=_r.createElement("template");Jp.innerHTML=`\n <style>\n :host {\n --media-box-border-radius: 4px;\n --media-box-padding-left: 10px;\n --media-box-padding-right: 10px;\n --media-preview-border-radius: var(--media-box-border-radius);\n --media-box-arrow-offset: var(--media-box-border-radius);\n --_control-background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));\n --_preview-background: var(--media-preview-background, var(--_control-background));\n\n \n contain: layout;\n }\n\n #highlight {\n background: var(--media-time-range-buffered-color, rgb(255 255 255 / .4));\n }\n\n #preview-rail,\n #current-rail {\n width: 100%;\n position: absolute;\n left: 0;\n bottom: 100%;\n pointer-events: none;\n will-change: transform;\n }\n\n [part~="box"] {\n width: min-content;\n \n position: absolute;\n bottom: 100%;\n flex-direction: column;\n align-items: center;\n transform: translateX(-50%);\n }\n\n [part~="current-box"] {\n display: var(--media-current-box-display, var(--media-box-display, flex));\n margin: var(--media-current-box-margin, var(--media-box-margin, 0 0 5px));\n visibility: hidden;\n }\n\n [part~="preview-box"] {\n display: var(--media-preview-box-display, var(--media-box-display, flex));\n margin: var(--media-preview-box-margin, var(--media-box-margin, 0 0 5px));\n transition-property: var(--media-preview-transition-property, visibility, opacity);\n transition-duration: var(--media-preview-transition-duration-out, .25s);\n transition-delay: var(--media-preview-transition-delay-out, 0s);\n visibility: hidden;\n opacity: 0;\n }\n\n :host(:is([${qa.MEDIA_PREVIEW_IMAGE}], [${qa.MEDIA_PREVIEW_TIME}])[dragging]) [part~="preview-box"] {\n transition-duration: var(--media-preview-transition-duration-in, .5s);\n transition-delay: var(--media-preview-transition-delay-in, .25s);\n visibility: visible;\n opacity: 1;\n }\n\n @media (hover: hover) {\n :host(:is([${qa.MEDIA_PREVIEW_IMAGE}], [${qa.MEDIA_PREVIEW_TIME}]):hover) [part~="preview-box"] {\n transition-duration: var(--media-preview-transition-duration-in, .5s);\n transition-delay: var(--media-preview-transition-delay-in, .25s);\n visibility: visible;\n opacity: 1;\n }\n }\n\n media-preview-thumbnail,\n ::slotted(media-preview-thumbnail) {\n visibility: hidden;\n \n transition: visibility 0s .25s;\n transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));\n background: var(--media-preview-thumbnail-background, var(--_preview-background));\n box-shadow: var(--media-preview-thumbnail-box-shadow, 0 0 4px rgb(0 0 0 / .2));\n max-width: var(--media-preview-thumbnail-max-width, 180px);\n max-height: var(--media-preview-thumbnail-max-height, 160px);\n min-width: var(--media-preview-thumbnail-min-width, 120px);\n min-height: var(--media-preview-thumbnail-min-height, 80px);\n border: var(--media-preview-thumbnail-border);\n border-radius: var(--media-preview-thumbnail-border-radius,\n var(--media-preview-border-radius) var(--media-preview-border-radius) 0 0);\n }\n\n :host([${qa.MEDIA_PREVIEW_IMAGE}][dragging]) media-preview-thumbnail,\n :host([${qa.MEDIA_PREVIEW_IMAGE}][dragging]) ::slotted(media-preview-thumbnail) {\n transition-delay: var(--media-preview-transition-delay-in, .25s);\n visibility: visible;\n }\n\n @media (hover: hover) {\n :host([${qa.MEDIA_PREVIEW_IMAGE}
2]:hover) media-preview-thumbnail,\n :host([${qa.MEDIA_PREVIEW_IMAGE}]:hover) ::slotted(media-preview-thumbnail) {\n transition-delay: var(--media-preview-transition-delay-in, .25s);\n visibility: visible;\n }\n\n :host([${qa.MEDIA_PREVIEW_TIME}]:hover) {\n --media-time-range-hover-display: block;\n }\n }\n\n media-preview-chapter-display,\n ::slotted(media-preview-chapter-display) {\n font-size: var(--media-font-size, 13px);\n line-height: 17px;\n min-width: 0;\n visibility: hidden;\n \n transition: min-width 0s, border-radius 0s, margin 0s, padding 0s, visibility 0s;\n transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));\n background: var(--media-preview-chapter-background, var(--_preview-background));\n border-radius: var(--media-preview-chapter-border-radius,\n var(--media-preview-border-radius) var(--media-preview-border-radius)\n var(--media-preview-border-radius) var(--media-preview-border-radius));\n padding: var(--media-preview-chapter-padding, 3.5px 9px);\n margin: var(--media-preview-chapter-margin, 0 0 5px);\n text-shadow: var(--media-preview-chapter-text-shadow, 0 0 4px rgb(0 0 0 / .75));\n }\n\n :host([${qa.MEDIA_PREVIEW_IMAGE}]) media-preview-chapter-display,\n :host([${qa.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-chapter-display) {\n transition-delay: var(--media-preview-transition-delay-in, .25s);\n border-radius: var(--media-preview-chapter-border-radius, 0);\n padding: var(--media-preview-chapter-padding, 3.5px 9px 0);\n margin: var(--media-preview-chapter-margin, 0);\n min-width: 100%;\n }\n\n media-preview-chapter-display[${qa.MEDIA_PREVIEW_CHAPTER}],\n ::slotted(media-preview-chapter-display[${qa.MEDIA_PREVIEW_CHAPTER}]) {\n visibility: visible;\n }\n\n media-preview-chapter-display:not([aria-valuetext]),\n ::slotted(media-preview-chapter-display:not([aria-valuetext])) {\n display: none;\n }\n\n media-preview-time-display,\n ::slotted(media-preview-time-display),\n media-time-display,\n ::slotted(media-time-display) {\n font-size: var(--media-font-size, 13px);\n line-height: 17px;\n min-width: 0;\n \n transition: min-width 0s, border-radius 0s;\n transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));\n background: var(--media-preview-time-background, var(--_preview-background));\n border-radius: var(--media-preview-time-border-radius,\n var(--media-preview-border-radius) var(--media-preview-border-radius)\n var(--media-preview-border-radius) var(--media-preview-border-radius));\n padding: var(--media-preview-time-padding, 3.5px 9px);\n margin: var(--media-preview-time-margin, 0);\n text-shadow: var(--media-preview-time-text-shadow, 0 0 4px rgb(0 0 0 / .75));\n transform: translateX(min(\n max(calc(50% - var(--_box-width) / 2),\n calc(var(--_box-shift, 0))),\n calc(var(--_box-width) / 2 - 50%)\n ));\n }\n\n :host([${qa.MEDIA_PREVIEW_IMAGE}]) media-preview-time-display,\n :host([${qa.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-time-display) {\n transition-delay: var(--media-preview-transition-delay-in, .25s);\n border-radius: var(--media-preview-time-border-radius,\n 0 0 var(--media-preview-border-radius) var(--media-preview-border-radius));\n min-width: 100%;\n transform: translateX(0);\n }\n\n :host([${qa.MEDIA_PREVIEW_TIME}]:hover) {\n --media-time-range-hover-display: block;\n }\n\n [part~="arrow"],\n ::slotted([part~="arrow"]) {\n display: var(--media-box-arrow-display, inline-block);\n transform: translateX(min(\n max(calc(50% - var(--_box-width) / 2 + var(--media-box-arrow-offset)),\n calc(var(--_box-shift, 0))),\n calc(var(--_box-width) / 2 - 50% - var(--media-box-arrow-offset))\n ));\n \n border-color: transparent;\n border-top-color: var(--media-box-arrow-background, var(--_control-background));\n border-width: var(--media-box-arrow-border-width,\n var(--media-box-arrow-height, 5px) var(--media-box-arrow-width, 6px) 0);\n border-style: solid;\n justify-content: center;\n height: 0;\n }\n </style>\n <div id="preview-rail">\n <slot name="preview" part="box preview-box">
2\n <media-preview-thumbnail></media-preview-thumbnail>\n <media-preview-chapter-display></media-preview-chapter-display>\n <media-preview-time-display></media-preview-time-display>\n <slot name="preview-arrow"><div part="arrow"></div></slot>\n </slot>\n </div>\n <div id="current-rail">\n <slot name="current" part="box current-box">\n \n </slot>\n </div>\n`;const ev=(e,t=e.mediaCurrentTime)=>{const n=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,i=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;if(Number.isNaN(i))return 0;const a=(t-n)/(i-n);return Math.max(0,Math.min(a,1))},tv=(e,t=e.range.valueAsNumber)=>{const n=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,i=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;return Number.isNaN(i)?0:t*(i-n)+n};class nv extends Vc{constructor(){super(),Zp(this,Rp),Zp(this,Dp),Zp(this,Pp),Zp(this,Bp),Zp(this,Hp),Zp(this,qp),Zp(this,Fp),Zp(this,Kp),Zp(this,Ap,void 0),Zp(this,kp,void 0),Zp(this,wp,void 0),Zp(this,Tp,void 0),Zp(this,Sp,void 0),Zp(this,Cp,void 0),Zp(this,Ip,void 0),Zp(this,xp,void 0),Zp(this,Lp,void 0),Zp(this,Np,(e=>{this.dragging||(this.range.valueAsNumber=e,this.updateBar())})),this.container.appendChild(Jp.content.cloneNode(!0)),Qp(this,wp,this.shadowRoot.querySelectorAll('[part~="box"]')),Qp(this,Sp,this.shadowRoot.querySelector('[part~="preview-box"]')),Qp(this,Cp,this.shadowRoot.querySelector('[part~="current-box"]'));const e=getComputedStyle(this);Qp(this,Ip,parseInt(e.getPropertyValue("--media-box-padding-left"))),Qp(this,xp,parseInt(e.getPropertyValue("--media-box-padding-right"))),Qp(this,kp,new _p(this.range,zp(this,Np),60))}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_PAUSED,qa.MEDIA_DURATION,qa.MEDIA_SEEKABLE,qa.MEDIA_CURRENT_TIME,qa.MEDIA_PREVIEW_IMAGE,qa.MEDIA_PREVIEW_TIME,qa.MEDIA_PREVIEW_CHAPTER,qa.MEDIA_BUFFERED,qa.MEDIA_PLAYBACK_RATE,qa.MEDIA_LOADING,qa.MEDIA_ENDED]}connectedCallback(){var e;super.connectedCallback(),this.range.setAttribute("aria-label",er.SEEK()),Xp(this,Rp,Mp).call(this),Qp(this,Ap,this.getRootNode()),null==(e=zp(this,Ap))||e.addEventListener("transitionstart",this)}disconnectedCallback(){var e;super.disconnectedCallback(),Xp(this,Rp,Mp).call(this),null==(e=zp(this,Ap))||e.removeEventListener("transitionstart",this),Qp(this,Ap,null)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),t!=n&&(e===qa.MEDIA_CURRENT_TIME||e===qa.MEDIA_PAUSED||e===qa.MEDIA_ENDED||e===qa.MEDIA_LOADING||e===qa.MEDIA_DURATION||e===qa.MEDIA_SEEKABLE?(zp(this,kp).update({start:ev(this),duration:this.mediaSeekableEnd-this.mediaSeekableStart,playbackRate:this.mediaPlaybackRate}),Xp(this,Rp,Mp).call(this),(e=>{const t=e.range,n=hr(+tv(e)),i=hr(+e.mediaSeekableEnd),a=n&&i?`${n} of ${i}`:"video not loaded, unknown time.";t.setAttribute("aria-valuetext",a)})(this)):e===qa.MEDIA_BUFFERED&&this.updateBufferedBar(),e!==qa.MEDIA_DURATION&&e!==qa.MEDIA_SEEKABLE||(this.mediaChaptersCues=zp(this,Lp),this.updateBar()))}get mediaChaptersCues(){return zp(this,Lp)}set mediaChaptersCues(e){var t;Qp(this,Lp,e),this.updateSegments(null==(t=zp(this,Lp))?void 0:t.map((e=>({start:ev(this,e.startTime),end:ev(this,e.endTime)}))))}get mediaPaused(){return Hr(this,qa.MEDIA_PAUSED)}set mediaPaused(e){jr(this,qa.MEDIA_PAUSED,e)}get mediaLoading(){return Hr(this,qa.MEDIA_LOADING)}set mediaLoading(e){jr(this,qa.MEDIA_LOADING,e)}get mediaDuration(){return Br(this,qa.MEDIA_DURATION)}set mediaDuration(e){Wr(this,qa.MEDIA_DURATION,e)}get mediaCurrentTime(){return Br(this,qa.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){Wr(this,qa.MEDIA_CURRENT_TIME,e)}get mediaPlaybackRate(){return Br(this,qa.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){Wr(this,qa.MEDIA_PLAYBACK_RATE,e)}get mediaBuffered(){const e=this.getAttribute(qa.MEDIA_BUFFERED);return e?e.split(" ").map((e=>e.split(":").map((e=>+e)))):[]}set mediaBuffered(e){if(!e)return void this.removeAttribute(qa.MEDIA_BUFFERED);const t=e.map((e=>e.join(":"))).join(" ");this.setAttribute(qa.MEDIA_BUFFERED,t)}get mediaSeekable(){const e=this.getAttribute(qa.MEDIA_SEEKABLE);if(e)return e.split(":").map((e=>+e))}set mediaSeekable(e){null!=e?this.setAttribute(qa.MEDIA_SEEKABLE,e.join(":")):this.removeAttribute(qa.MEDIA_SEEKABLE)}get mediaSeekableEnd(){var e;const[,t=this.mediaDuration]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaSeekableStart(){var e;const[t=0]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaPreviewImage(){return qr(this,qa.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){Vr(this,qa.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewTime(){return Br(this,qa.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){Wr(this,qa.MEDIA_PREVIEW_TIME,e)}get mediaEnded(){return Hr(this,qa.MEDIA_ENDED)}set mediaEnded(e){jr(this,qa.MEDIA_ENDED,e)}updateBar(){super.updateBar(),this.updateBufferedBar(),this.updateCurrentBox()}updateBufferedBar(){var e;const t=this.mediaBuffered;if(!t.length)return;let n;if(this.mediaEnded)n=1;else{const i=this.mediaCurrentTime,[,a=this.mediaSeekableStart]=null!=(e=t.find((([e,t])=>e<=i&&i<=t)))?e:[];n=ev(this,a)}const{style:i}=Pr(this.shadowRoot,"#highlight");i.setProperty("width",100*n+"%")}updateCurrentBox(){if(!this.shadowRoot.querySelector('slot[name="current"]').assignedElements().length)return;const e=Pr(this.shadowRoot,"#current-rail"),t=Pr(this.shadowRoot,'[part~="current-box"]'),n=Xp(this,Pp,Up).call(this,zp(this,Cp)),i=Xp(this,Bp,Wp).call(this,n,this.range.valueAsNumber),a=Xp(this,Hp,jp).call(this,n,this.range.valueAsNumber);e.style.transform=`translateX(${i})`,e.style.setProperty("--_range-width",`${n.range.width}`),t.style.setProperty("--_box-shift",`${a}`),t.style.setProperty("--_box-width",`${n.box.width}px`),t.style.setProperty("visibility","initial")}handleEvent(e){switch(super.handleEvent(e),e.type){case"input":Xp(this,Kp,Gp).call(this);break;case"pointermove":Xp(this,qp,Vp).call(this,e);break;case"pointerup":case"pointerleave":Xp(this,Fp,$p).call(this,null);break;case"transitionstart":Rr(e.target,this)&&setTimeout((()=>Xp(this,Rp,Mp).call(this)),0)}}}Ap=new WeakMap,kp=new WeakMap,wp=new WeakMap,Tp=new WeakMap,Sp=new WeakMap,Cp=new WeakMap,Ip=new WeakMap,xp=new WeakMap,Lp=new WeakMap,Rp=new WeakSet,Mp=function(){Xp(this,Dp,Op).call(this)?zp(this,kp).start():zp(this,kp).stop()},Dp=new WeakSet,Op=function(){return this.isConnected&&!this.mediaPaused&&!this.mediaLoading&&!this.mediaEnded&&this.mediaSeekableEnd>0&&function(e,t=3){if(e.checkVisibility)return e.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});let n=e;for(;n&&t>0;){const e=getComputedStyle(n);if("0"===e.opacity||"hidden"===e.visibility||"none"===e.display)return!1;n=n.parentElement,t--}return!0}(this)},Np=new WeakMap,Pp=new WeakSet,Up=function(e){var t;const n=(null!=(t=this.getAttribute("bounds")?Mr(this,`#${this.getAttribute("bounds")}`):this.parentElement)?t:this).getBoundingClientRect(),i=this.range.getBoundingClientRect(),a=e.offsetWidth;return{box:{width:a,min:-(i.left-n.left-a/2),max:n.right-i.left-a/2},bounds:n,range:i}},Bp=new WeakSet,Wp=function(e,t){let n=100*t+"%";const{width:i,min:a,max:r}=e.box;if(!i)return n;if(!Number.isNaN(a)){n=`max(${`calc(1 / var(--_range-width) * 100 * ${a}% + ${"var(--media-box-padding-left)"})`}, ${n})`}if(!Number.isNaN(r)){n=`min(${n}
2, ${`calc(1 / var(--_range-width) * 100 * ${r}% - ${"var(--media-box-padding-right)"})`})`}return n},Hp=new WeakSet,jp=function(e,t){const{width:n,min:i,max:a}=e.box,r=t*e.range.width;if(r<i+zp(this,Ip)){return`${r-n/2+(e.range.left-e.bounds.left-zp(this,Ip))}px`}if(r>a-zp(this,xp)){return r+n/2-(e.bounds.right-e.range.right-zp(this,xp))-e.range.width+"px"}return 0},qp=new WeakSet,Vp=function(e){const t=[...zp(this,wp)].some((t=>e.composedPath().includes(t)));if(!this.dragging&&(t||!e.composedPath().includes(this)))return void Xp(this,Fp,$p).call(this,null);const n=this.mediaSeekableEnd;if(!n)return;const i=Pr(this.shadowRoot,"#preview-rail"),a=Pr(this.shadowRoot,'[part~="preview-box"]'),r=Xp(this,Pp,Up).call(this,zp(this,Sp));let o=(e.clientX-r.range.left)/r.range.width;o=Math.max(0,Math.min(1,o));const s=Xp(this,Bp,Wp).call(this,r,o),l=Xp(this,Hp,jp).call(this,r,o);i.style.transform=`translateX(${s})`,i.style.setProperty("--_range-width",`${r.range.width}`),a.style.setProperty("--_box-shift",`${l}`),a.style.setProperty("--_box-width",`${r.box.width}px`);const d=Math.round(zp(this,Tp))-Math.round(o*n);Math.abs(d)<1&&o>.01&&o<.99||(Qp(this,Tp,o*n),Xp(this,Fp,$p).call(this,zp(this,Tp)))},Fp=new WeakSet,$p=function(e){this.dispatchEvent(new Er.CustomEvent(Ba.MEDIA_PREVIEW_REQUEST,{composed:!0,bubbles:!0,detail:e}))},Kp=new WeakSet,Gp=function(){zp(this,kp).stop();const e=tv(this);this.dispatchEvent(new Er.CustomEvent(Ba.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e}))},Er.customElements.get("media-time-range")||Er.customElements.define("media-time-range",nv);class iv extends Vc{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_VOLUME,qa.MEDIA_MUTED,qa.MEDIA_VOLUME_UNAVAILABLE]}constructor(){super(),this.range.addEventListener("input",(()=>{const e=this.range.value,t=new Er.CustomEvent(Ba.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}))}connectedCallback(){super.connectedCallback(),this.range.setAttribute("aria-label",er.VOLUME())}attributeChangedCallback(e,t,n){var i;super.attributeChangedCallback(e,t,n),e!==qa.MEDIA_VOLUME&&e!==qa.MEDIA_MUTED||(this.range.valueAsNumber=(i=this).mediaMuted?0:i.mediaVolume,this.range.setAttribute("aria-valuetext",(({value:e})=>`${Math.round(100*e)}%`)(this.range)),this.updateBar())}
2get mediaVolume(){return Br(this,qa.MEDIA_VOLUME,1)}set mediaVolume(e){Wr(this,qa.MEDIA_VOLUME,e)}get mediaMuted(){return Hr(this,qa.MEDIA_MUTED)}set mediaMuted(e){jr(this,qa.MEDIA_MUTED,e)}get mediaVolumeUnavailable(){return qr(this,qa.MEDIA_VOLUME_UNAVAILABLE)}set mediaVolumeUnavailable(e){Vr(this,qa.MEDIA_VOLUME_UNAVAILABLE,e)}}Er.customElements.get("media-volume-range")||Er.customElements.define("media-volume-range",iv);var av,rv,ov,sv,lv,dv,uv,cv,hv,mv,pv,vv,fv,bv,gv,yv,Ev,_v,Av,kv=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},wv=(e,t,n)=>(kv(e,t,"read from private field"),n?n.call(e):t.get(e)),Tv=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Sv=(e,t,n,i)=>(kv(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Cv=(e,t,n)=>(kv(e,t,"access private method"),n);function Iv(e,t,n){const i=_r.createElement("media-chrome-option");i.part.add("option"),i.value=t,i.selected=n;const a=_r.createElement("span");return a.textContent=e,i.append(a),i}function xv(e,t){let n=e.querySelector(`:scope > [slot="${t}"]`);return"SLOT"==(null==n?void 0:n.nodeName)&&(n=n.assignedElements({flatten:!0})[0]),n?(n=n.cloneNode(!0),n.removeAttribute("slot"),n):e.shadowRoot.querySelector(`[name="${t}"] > svg`).cloneNode(!0)}const Lv=_r.createElement("template");Lv.innerHTML='\n<style>\n :host {\n font: var(--media-font,\n var(--media-font-weight, normal)\n var(--media-font-size, 15px) /\n var(--media-text-content-height, var(--media-control-height, 24px))\n var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));\n color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n background: var(--media-listbox-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .8))));\n border-radius: var(--media-listbox-border-radius);\n display: inline-flex;\n flex-direction: column;\n position: relative;\n box-sizing: border-box;\n }\n\n ::slotted([slot="header"]) {\n padding: .4em 1.4em;\n border-bottom: 1px solid rgb(255 255 255 / .25);\n }\n\n #container {\n gap: var(--media-listbox-gap);\n display: flex;\n flex-direction: var(--media-listbox-flex-direction, column);\n overflow: hidden auto;\n padding-block: .5em;\n }\n\n media-chrome-option {\n padding-inline: .7em 1.4em;\n }\n\n media-chrome-option > span {\n margin-inline: .5ch;\n }\n\n [part~="indicator"] {\n fill: var(--media-option-indicator-fill, var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))));\n height: var(--media-option-indicator-height, 1.25em);\n vertical-align: var(--media-option-indicator-vertical-align, text-top);\n }\n\n [part~="select-indicator"] {\n display: var(--media-option-select-indicator-display);\n visibility: hidden;\n }\n\n [aria-selected="true"] > [part~="select-indicator"] {\n visibility: visible;\n }\n</style>\n<style id="layout-row" media="width:0">\n\n ::slotted([slot="header"]) {\n padding: .4em .5em;\n }\n\n #container {\n gap: var(--media-listbox-gap, .25em);\n flex-direction: var(--media-listbox-flex-direction, row);\n padding-inline: .5em;\n }\n\n media-chrome-option {\n padding: .3em .24em;\n }\n\n media-chrome-option[aria-selected="true"] {\n background: var(--media-option-selected-background, rgb(255 255 255 / .2));\n }\n\n [part~="select-indicator"] {\n display: var(--media-option-select-indicator-display, none);\n }\n</style>\n<slot name="header"></slot>\n<slot id="container"></slot>\n<slot name="select-indicator" hidden>\n<svg aria-hidden="true" viewBox="0 1 24 24" part="select-indicator indicator">\n <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>\n</svg></slot>\n';class Rv extends Er.HTMLElement{constructor(e={}){super(),Tv(this,dv),Tv(this,mv),Tv(this,vv),Tv(this,bv),Tv(this,yv),Tv(this,_v),Tv(this,av,void 0),Tv(this,rv,""),Tv(this,ov,null),Tv(this,sv,!1),Tv(this,lv,(e=>{this.handleClick(e)})),Tv(this,cv,(e=>{const{key:t}=e;"Escape"!==t?"Meta"!==t?Cv(this,dv,uv).call(this,e):Sv(this,sv,!1):this.removeEventListener("keyup",wv(this,cv))})),Tv(this,hv,(e=>{const{key:t,altKey:n}=e;n?this.removeEventListener("keyup",wv(this,cv)):"Meta"!==t?(this.keysUsed.includes(t)&&e.preventDefault(),wv(this,sv)&&this.keysUsed.includes(t)?Cv(this,dv,uv).call(this,e):this.addEventListener("keyup",wv(this,cv),{once:!0})):Sv(this,sv,!0)})),this.shadowRoot||(this.attachShadow({mode:"open"}),this.nativeEl=Lv.content.cloneNode(!0),e.slotTemplate&&this.nativeEl.append(e.slotTemplate.content.cloneNode(!0)),this.shadowRoot.append(this.nativeEl)),this.container=this.shadowRoot.querySelector("#container"),this.container.addEventListener("slotchange",(e=>{for(let t of e.target.assignedNodes({flatten:!0}))3===t.nodeType&&""===t.textContent.trim()&&t.remove()}))}static get observedAttributes(){return["disabled","style",Wa.MEDIA_CONTROLLER]}static formatOptionText(e){return e}formatOptionText(e,t){return this.constructor.formatOptionText(e,t)}get options(){var e;let t=this.querySelectorAll("media-chrome-option");return t.length||(t=null==(e=this.container)?void 0:e.querySelectorAll("media-chrome-option")),Array.from(t)}get selectedOptions(){return this.options.filter((e=>e.selected))}get value(){var e,t;return null!=(t=null==(e=this.selectedOptions[0])?void 0:e.value)?t:""}set value(e){const t=this.options.find((t=>t.value===e));t&&Cv(this,bv,gv).call(this,t)}focus(){var e;null==(e=this.selectedOptions[0])||e.focus()}enable(){this.addEventListener("click",wv(this,lv)),this.addEventListener("keydown",wv(this,hv))}disable(){this.removeEventListener("click",wv(this,lv)),this.removeEventListener("keyup",wv(this,cv))}attributeChangedCallback(e,t,n){var i,a,r,o,s;"style"===e&&n!==t?Cv(this,mv,pv).call(this):e===Wa.MEDIA_CONTROLLER?(t&&(null==(a=null==(i=wv(this,av))?void 0:i.unassociateElement)||a.call(i,this),Sv(this,av,null)),n&&this.isConnected&&(Sv(this,av,null==(r=this.getRootNode())?void 0:r.getElementById(n)),null==(s=null==(o=wv(this,av))?void 0:o.associateElement)||s.call(o,this))):"disabled"===e&&n!==t&&(null==n?this.enable():this.disable())}connectedCallback(){var e,t,n;Cv(this,mv,pv).call(this),this.hasAttribute("disabled")||this.enable(),this.hasAttribute("role")||this.setAttribute("role","listbox");const i=this.getAttribute(Wa.MEDIA_CONTROLLER);i&&(Sv(this,av,null==(e=this.getRootNode())?void 0:e.getElementById(i)),null==(n=null==(t=wv(this,av))?void 0:t.associateElement)||n.call(t,this))}disconnectedCallback(){var e,t;this.disable(),null==(t=null==(e=wv(this,av))?void 0:e.unassociateElement)||t.call(e,this),Sv(this,av,null)}get keysUsed(){return["Enter"," ","ArrowDown","ArrowUp","Home","End"]}handleSelection(e,t){const n=Cv(this,vv,fv).call(this,e);n&&Cv(this,bv,gv).call(this,n,t)}handleMovement(e){const{key:t}=e,n=this.options;let i,a=Cv(this,vv,fv).call(this,e);switch(a||(a=n.filter((e=>"0"===e.getAttribute("tabindex")))[0]),t){case"ArrowDown":i=a.nextElementSibling,(null==i?void 0:i.hasAttribute("disabled"))&&(i=i.nextElementSibling);break;case"ArrowUp":i=a.previousElementSibling,(null==i?void 0:i.hasAttribute("disabled"))&&(i=i.previousElementSibling);break;case"Home":i=n[0];break;case"End":i=n[n.length-1];break;default:i=Cv(this,yv,Ev).call(this,t)}i&&(n.forEach((e=>e.setAttribute("tabindex","-1"))),i.setAttribute("tabindex","0"),i.focus())}handleClick(e){const t=Cv(this,vv,fv).call(this,e);t&&!t.hasAttribute("disabled")&&(this.options.forEach((e=>e.setAttribute("tabindex","-1"))),t.setAttribute("tabindex","0"),this.handleSelection(e,this.hasAttribute("aria-multiselectable")&&"true"===this.getAttribute("aria-multiselectable")))}}av=new WeakMap,rv=new WeakMap,ov=new WeakMap,sv=new WeakMap,lv=new WeakMap,dv=new WeakSet,uv=function(e){const{key:t}=e;"Enter"===t||" "===t?this.handleSelection(e,this.hasAttribute("aria-multiselectable")&&"true"===this.getAttribute("aria-multiselectable")):this.handleMovement(e)},cv=new WeakMap,hv=new WeakMap,mv=new WeakSet,pv=function(){var e;const t=this.shadowRoot.querySelector("#layout-row"),n="row"===(null==(e=getComputedStyle(this).getPropertyValue("--media-listbox-layout"))?void 0:e.trim());t.setAttribute("media",n?"":"width:0")},vv=new WeakSet,fv=function(e){const t=e.composedPath(),n=t.findIndex((e=>"MEDIA-CHROME-OPTION"===e.nodeName));return t[n]},bv=new WeakSet,gv=function(e,t){const n=[...this.selectedOptions];this.hasAttribute("aria-multiselectable")&&"true"===this.getAttribute("aria-multiselectable")||this.options.forEach((e=>e.selected=!1)),e.selected=!t||!e.selected,this.selectedOptions.some(((e,t)=>e!=n[t]))&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},yv=new WeakSet,Ev=function(e){Cv(this,_v,Av).call(this);const t=this.options,n=t.findIndex((e=>"0"===e.getAttribute("tabindex")));Sv(this,rv,wv(this,rv)+e);const i=wv(this,rv).split("").every((t=>t===e)),a=t.slice(n+(i?1:0)).filter((e=>e.textContent.toLowerCase().startsWith(wv(this,rv)))),r=t.slice(0,n-(i?1:0)).filter((e=>e.textContent.toLowerCase().startsWith(wv(this,rv))));let o=[],s=[];i&&(o=t.slice(n+(i?1:0)).filter((t=>t.textContent.startsWith(e))),s=t.slice(0,n-(i?1:0)).filter((t=>t.textContent.startsWith(e))));return[...a,...r,...o,...s][0]},_v=new WeakSet,Av=function(){clearTimeout(wv(this,ov)),Sv(this,ov,null),Sv(this,ov,setTimeout((()=>{Sv(this,rv,""),Sv(this,ov,null)}),500))},Er.customElements.get("media-chrome-listbox")||Er.customElements.define("media-chrome-listbox",Rv);
2var Mv,Dv,Ov,Nv,Pv=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Uv=(e,t,n)=>(Pv(e,t,"read from private field"),n?n.call(e):t.get(e)),Bv=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Wv=(e,t,n,i)=>(Pv(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Hv=(e,t,n)=>(Pv(e,t,"access private method"),n);const jv=_r.createElement("template");jv.innerHTML='\n<style>\n :host {\n cursor: pointer;\n display: block;\n line-height: revert;\n white-space: nowrap;\n white-space-collapse: collapse;\n text-wrap: nowrap;\n padding: .4em .5em;\n transition: var(--media-option-transition);\n outline: var(--media-option-outline, 0);\n outline-offset: var(--media-option-outline-offset, -1px);\n }\n\n :host(:focus-visible) {\n box-shadow: var(--media-option-focus-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));\n outline: var(--media-option-hover-outline, 0);\n outline-offset: var(--media-option-hover-outline-offset, var(--media-option-outline-offset, -1px));\n }\n\n :host(:hover) {\n cursor: pointer;\n background: var(--media-option-hover-background, rgb(82 82 122 / .8));\n outline: var(--media-option-hover-outline);\n outline-offset: var(--media-option-hover-outline-offset, var(--media-option-outline-offset, -1px));\n }\n\n :host([aria-selected="true"]) {\n background: var(--media-option-selected-background);\n }\n\n :host([disabled]) {\n pointer-events: none;\n color: rgba(255, 255, 255, .3);\n }\n</style>\n<slot></slot>\n';const qv="value",Vv="selected",Fv="disabled";class $v extends Er.HTMLElement{constructor(){super(),Bv(this,Ov),Bv(this,Mv,!1),Bv(this,Dv,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(jv.content.cloneNode(!0)))}static get observedAttributes(){return[Fv,Vv,qv]}get value(){var e;return null!=(e=this.getAttribute(qv))?e:this.text}set value(e){this.setAttribute(qv,e)}get text(){var e;return(null!=(e=this.textContent)?e:"").trim()}get selected(){return"true"===this.getAttribute("aria-selected")}set selected(e){Wv(this,Mv,!0),this.setAttribute("aria-selected",e?"true":"false"),e?this.part.add("option-selected"):this.part.remove("option-selected")}enable(){this.hasAttribute("tabindex")||this.setAttribute("tabindex",-1),this.hasAttribute("aria-selected")||this.setAttribute("aria-selected","false")}disable(){this.removeAttribute("tabindex")}attributeChangedCallback(e,t,n){e!==Vv||Uv(this,Mv)?e===Fv&&n!==t&&(null==n?this.enable():this.disable()):this.setAttribute("aria-selected",null!=n?"true":"false")}connectedCallback(){this.hasAttribute(Fv)||this.enable(),this.setAttribute("role","option"),Wv(this,Dv,Kv(this,this.parentNode)),Hv(this,Ov,Nv).call(this)}disconnectedCallback(){this.disable(),Hv(this,Ov,Nv).call(this),Wv(this,Dv,null)}handleClick(){}}function Kv(e,t){if(!e)return null;const{host:n}=e.getRootNode();return!t&&n?Kv(e,n):(null==t?void 0:t.options)?t:Kv(t,null==t?void 0:t.parentNode)}Mv=new WeakMap,Dv=new WeakMap,Ov=new WeakSet,Nv=function(){var e;const t=null==(e=Uv(this,Dv))?void 0:e.options;if(!t)return;let n=t.filter((e=>"true"===e.getAttribute("aria-selected"))).pop();n||(n=t[0]),"true"!==Uv(this,Dv).getAttribute("aria-multiselectable")&&t.forEach((e=>{e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false")})),null==n||n.setAttribute("tabindex","0"),null==n||n.setAttribute("aria-selected","true")},Er.customElements.get("media-chrome-option")||Er.customElements.define("media-chrome-option",$v);var Gv,Yv,zv,Zv,Qv,Xv,Jv,ef,tf,nf,af,rf,of,sf,lf,df,uf,cf=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},hf=(e,t,n)=>(cf(e,t,"read from private field"),n?n.call(e):t.get(e)),mf=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},pf=(e,t,n,i)=>(cf(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),vf=(e,t,n)=>(cf(e,t,"access private method"),n);const ff=_r.createElement("template");ff.innerHTML='\n <style>\n :host {\n font: var(--media-font,\n var(--media-font-weight, normal)\n var(--media-font-size, 15px) /\n var(--media-text-content-height, var(--media-control-height, 24px))\n var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));\n color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n display: inline-flex;\n position: relative;\n flex-shrink: .5;\n }\n\n [name=listbox]::slotted(*),\n [part=listbox] {\n position: absolute;\n bottom: 100%;\n max-height: 300px;\n transition: var(--media-selectmenu-transition-in,\n visibility 0s, transform .15s ease-out, opacity .15s ease-out);\n transform: var(--media-listbox-transform-in, translateY(0) scale(1));\n visibility: visible;\n opacity: 1;\n }\n\n [name=listbox][hidden]::slotted(*),\n [hidden] [part=listbox] {\n transition: var(--media-selectmenu-transition-out,\n visibility .15s ease-out, transform .15s ease-out, opacity .15s ease-out);\n transform: var(--media-listbox-transform-out, translateY(2px) scale(.99));\n visibility: hidden;\n opacity: 0;\n pointer-events: none;\n }\n\n slot[name=listbox][hidden] {\n display: block;\n }\n </style>\n\n <slot name="button">\n <media-chrome-button aria-haspopup="listbox" part="button">\n <slot name="button-content"></slot>\n </media-chrome-button>\n </slot>\n <slot name="listbox" hidden>\n <media-chrome-listbox id="listbox" part="listbox">\n <slot></slot>\n </media-chrome-listbox>\n </slot>\n';
2class bf extends Er.HTMLElement{constructor(){var e;super(),mf(this,af),mf(this,of),mf(this,lf),mf(this,Gv,void 0),mf(this,Yv,void 0),mf(this,zv,void 0),mf(this,Zv,void 0),mf(this,Qv,void 0),mf(this,Xv,(e=>{const{key:t}=e;if(!this.keysUsed.includes(t))return void this.removeEventListener("keyup",hf(this,Xv));!e.composedPath().includes(hf(this,Yv))||"Enter"!==t&&" "!==t?"Escape"===t&&vf(this,lf,df).call(this):vf(this,af,rf).call(this)})),mf(this,Jv,(e=>{const{metaKey:t,altKey:n,key:i}=e;t||n||!this.keysUsed.includes(i)?this.removeEventListener("keyup",hf(this,Xv)):(e.preventDefault(),this.addEventListener("keyup",hf(this,Xv),{once:!0}))})),mf(this,ef,(e=>{e.composedPath().includes(this)||vf(this,lf,df).call(this)})),mf(this,tf,(e=>{e.composedPath().includes(hf(this,Yv))&&vf(this,af,rf).call(this)})),mf(this,nf,(()=>{vf(this,lf,df).call(this)})),mf(this,uf,(()=>{if(0===hf(this,Zv).offsetWidth)return;const e=hf(this,Zv).offsetWidth,t=hf(this,Yv).getBoundingClientRect();if(this.hasAttribute("mediacontroller")||hf(this,Yv).hasAttribute("mediacontroller")||hf(this,Zv).hasAttribute("mediacontroller"))return hf(this,Zv).style.zIndex="1",hf(this,Zv).style.bottom="unset",hf(this,Zv).style.right=null,hf(this,Zv).style.left="0",void(hf(this,Zv).style.top=`${t.height}px`);const n=gf(this).getBoundingClientRect(),i=t.x+e,a=Math.max(t.right-i,t.right-n.right);hf(this,Zv).style.left=null,hf(this,Zv).style.right=`${a}px`,hf(this,Zv).style.maxHeight=n.height-t.height+"px"})),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(ff.content.cloneNode(!0))),null==(e=this.init)||e.call(this),pf(this,Yv,this.shadowRoot.querySelector("[part=button]")),pf(this,Zv,this.shadowRoot.querySelector("[part=listbox]")),pf(this,zv,this.shadowRoot.querySelector("slot[name=button]")),hf(this,zv).addEventListener("slotchange",(()=>{const e=hf(this,zv).assignedElements()[0];if(!e)return;pf(this,Yv,e),hf(this,Yv).preventClick=!0;this.hasAttribute("disabled")||hf(this,Yv).hasAttribute("disabled")?this.disable():(this.enable(),hf(this,Yv).setAttribute("aria-haspopup","listbox"))})),pf(this,Qv,this.shadowRoot.querySelector("slot[name=listbox]")),hf(this,Qv).addEventListener("slotchange",(()=>{pf(this,Zv,hf(this,Qv).assignedElements()[0]||hf(this,Zv))}))}static get observedAttributes(){return["disabled",Wa.MEDIA_CONTROLLER]}enable(){hf(this,Yv).toggleAttribute("disabled",!1),this.addEventListener("change",hf(this,nf)),this.addEventListener("keydown",hf(this,Jv)),this.addEventListener("click",hf(this,tf)),_r.addEventListener("click",hf(this,ef))}disable(){hf(this,Yv).toggleAttribute("disabled",!0),this.removeEventListener("change",hf(this,nf)),this.removeEventListener("keydown",hf(this,Jv)),this.removeEventListener("keyup",hf(this,Xv)),this.removeEventListener("click",hf(this,tf)),_r.removeEventListener("click",hf(this,ef))}attributeChangedCallback(e,t,n){var i,a,r,o,s;e===Wa.MEDIA_CONTROLLER?(t&&(null==(a=null==(i=hf(this,Gv))?void 0:i.unassociateElement)||a.call(i,this),pf(this,Gv,null),hf(this,Zv).removeAttribute(Wa.MEDIA_CONTROLLER)),n&&this.isConnected&&(pf(this,Gv,null==(r=this.getRootNode())?void 0:r.getElementById(n)),null==(s=null==(o=hf(this,Gv))?void 0:o.associateElement)||s.call(o,this),hf(this,Zv).setAttribute(Wa.MEDIA_CONTROLLER,n))):"disabled"===e&&n!==t&&(null==n?this.enable():this.disable())}connectedCallback(){var e,t,n;const{style:i}=Pr(this.shadowRoot,":host");i.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`);const a=this.getAttribute(Wa.MEDIA_CONTROLLER);a&&(pf(this,Gv,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(n=null==(t=hf(this,Gv))?void 0:t.associateElement)||n.call(t,this),hf(this,Zv).setAttribute(Wa.MEDIA_CONTROLLER,a)),this.hasAttribute("disabled")||this.enable(),hf(this,Qv).hidden||Tr(gf(this),hf(this,uf))}disconnectedCallback(){var e,t;Sr(gf(this),hf(this,uf)),this.disable(),null==(t=null==(e=hf(this,Gv))?void 0:e.unassociateElement)||t.call(e,this),pf(this,Gv,null),hf(this,Zv).removeAttribute(Wa.MEDIA_CONTROLLER)}get keysUsed(){return["Enter","Escape"," ","ArrowUp","ArrowDown","f","c","k","m"]}}function gf(e){var t;return null!=(t=e.getAttribute("bounds")?Mr(e,`#${e.getAttribute("bounds")}`):function(e){var t;const n=e.getAttribute(Wa.MEDIA_CONTROLLER);if(n)return null==(t=e.getRootNode())?void 0:t.getElementById(n);return Mr(e,"media-controller")}(e)||e.parentElement)?t:e}Gv=new WeakMap,Yv=new WeakMap,zv=new WeakMap,Zv=new WeakMap,Qv=new WeakMap,Xv=new WeakMap,Jv=new WeakMap,ef=new WeakMap,tf=new WeakMap,nf=new WeakMap,af=new WeakSet,rf=function(){hf(this,Qv).hidden?vf(this,of,sf).call(this):vf(this,lf,df).call(this)},of=new WeakSet,sf=function(){hf(this,Qv).hidden&&(hf(this,Qv).hidden=!1,hf(this,Yv).setAttribute("aria-expanded","true"),hf(this,uf).call(this),hf(this,Zv).focus(),Tr(gf(this),hf(this,uf)))},lf=new WeakSet,df=function(){if(hf(this,Qv).hidden)return;Sr(gf(this),hf(this,uf));const e=Dr();hf(this,Qv).hidden=!0,hf(this,Yv).setAttribute("aria-expanded","fal
2se"),Rr(hf(this,Zv),e)&&hf(this,Yv).focus()},uf=new WeakMap,Er.customElements.get("media-chrome-selectmenu")||Er.customElements.define("media-chrome-selectmenu",bf);var yf,Ef,_f,Af,kf,wf=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Tf=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Sf=(e,t,n)=>(wf(e,t,"access private method"),n);const Cf=_r.createElement("template");Cf.innerHTML='\n <slot name="captions-indicator" hidden>\n<svg aria-hidden="true" viewBox="0 0 26 24" part="captions-indicator indicator">\n <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>\n</svg></slot>\n';class If extends Rv{constructor(){super({slotTemplate:Cf}),Tf(this,Ef),Tf(this,Af),Tf(this,yf,void 0)}static get observedAttributes(){return[...super.observedAttributes,"aria-multiselectable",qa.MEDIA_SUBTITLES_LIST,qa.MEDIA_SUBTITLES_SHOWING]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_SUBTITLES_LIST&&t!==n?Sf(this,Ef,_f).call(this):e===qa.MEDIA_SUBTITLES_SHOWING&&t!==n?this.value=n:"aria-multiselectable"===e&&(this.removeAttribute("aria-multiselectable"),console.warn("Captions List doesn't currently support multiple selections. You can enable multiple items via the media.textTracks API."))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",Sf(this,Af,kf))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",Sf(this,Af,kf))}get mediaSubtitlesList(){return xf(this,qa.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){Lf(this,qa.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return xf(this,qa.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){Lf(this,qa.MEDIA_SUBTITLES_SHOWING,e)}}yf=new WeakMap,Ef=new WeakSet,_f=function(){var e;if(((e,t,n)=>(wf(e,t,"read from private field"),n?n.call(e):t.get(e)))(this,yf)===JSON.stringify(this.mediaSubtitlesList))return;((e,t,n,i)=>{wf(e,t,"write to private field"),i?i.call(e,n):t.set(e,n)})(this,yf,JSON.stringify(this.mediaSubtitlesList));const t=this.shadowRoot.querySelector("#container");t.textContent="";const n=!this.value,i=Iv(this.formatOptionText("Off"),"off",n);i.prepend(xv(this,"select-indicator")),t.append(i);const a=this.mediaSubtitlesList;for(const r of a){const n=Iv(this.formatOptionText(r.label,r),Po(r),this.value==Po(r));n.prepend(xv(this,"select-indicator"));"captions"===(null!=(e=r.kind)?e:"subs")&&n.append(xv(this,"captions-indicator")),t.append(n)}},Af=new WeakSet,kf=function(){const e=this.mediaSubtitlesShowing,t=this.getAttribute(qa.MEDIA_SUBTITLES_SHOWING),n=this.value!==t;if((null==e?void 0:e.length)&&n&&this.dispatchEvent(new Er.CustomEvent(Ba.MEDIA_DISABLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:e})),!this.value||!n)return;const i=new Er.CustomEvent(Ba.MEDIA_SHOW_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(i)};const xf=(e,t)=>{const n=e.getAttribute(t);return n?Oo(n):[]},Lf=(e,t,n)=>{if(!(null==n?void 0:n.length))return void e.removeAttribute(t);const i=Uo(n);e.getAttribute(t)!==i&&e.setAttribute(t,i)};Er.customElements.get("media-captions-listbox")||Er.customElements.define("media-captions-listbox",If);class Rf extends bf{init(){const e=_r.createElement("media-captions-button");e.part.add("button"),e.preventClick=!0;const t=_r.createElement("media-captions-listbox");t.part.add("listbox"),t.setAttribute("exportparts","option, option-selected, indicator");const n=this.shadowRoot.querySelector("slot[name=button]"),i=this.shadowRoot.querySelector("slot[name=listbox]");n.textContent="",i.textContent="",n.append(e),i.append(t)}}Er.customElements.get("media-captions-selectmenu")||Er.customElements.define("media-captions-selectmenu",Rf);
2var Mf,Df,Of,Nf,Pf,Uf=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Bf=(e,t,n)=>(Uf(e,t,"read from private field"),n?n.call(e):t.get(e)),Wf=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Hf=(e,t,n)=>(Uf(e,t,"access private method"),n);const jf="rates";class qf extends Rv{constructor(){super(),Wf(this,Df),Wf(this,Nf),Wf(this,Mf,new Mo(this,jf,{defaultValue:Bh})),Hf(this,Df,Of).call(this)}static get observedAttributes(){return[...super.observedAttributes,"aria-multiselectable",qa.MEDIA_PLAYBACK_RATE,jf]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_PLAYBACK_RATE&&t!=n?this.value=n:e===jf&&t!=n&&(Bf(this,Mf).value=n,Hf(this,Df,Of).call(this))}get rates(){return Bf(this,Mf)}set rates(e){e?Array.isArray(e)&&(Bf(this,Mf).value=e.join(" ")):Bf(this,Mf).value="",Hf(this,Df,Of).call(this)}get mediaPlaybackRate(){return Br(this,qa.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){Wr(this,qa.MEDIA_PLAYBACK_RATE,e)}connectedCallback(){super.connectedCallback(),this.addEventListener("change",Hf(this,Nf,Pf))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",Hf(this,Nf,Pf))}}Mf=new WeakMap,Df=new WeakSet,Of=function(){const e=this.shadowRoot.querySelector("#container");e.textContent="";for(const t of this.rates){const n=Iv(this.formatOptionText(`${t}x`,t),t,this.mediaPlaybackRate==t);n.prepend(xv(this,"select-indicator")),e.append(n)}},Nf=new WeakSet,Pf=function(){if(!this.value)return;const e=new Er.CustomEvent(Ba.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},Er.customElements.get("media-playback-rate-listbox")||Er.customElements.define("media-playback-rate-listbox",qf);class Vf extends bf{init(){const e=_r.createElement("media-playback-rate-button");e.part.add("button"),e.preventClick=!0;const t=_r.createElement("media-playback-rate-listbox");t.part.add("listbox"),t.setAttribute("exportparts","option, option-selected, indicator");const n=this.shadowRoot.querySelector("slot[name=button]"),i=this.shadowRoot.querySelector("slot[name=listbox]");n.textContent="",i.textContent="",n.append(e),i.append(t)}}Er.customElements.get("media-playback-rate-selectmenu")||Er.customElements.define("media-playback-rate-selectmenu",Vf);var Ff,$f,Kf,Gf,Yf,zf,Zf=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Qf=(e,t,n)=>(Zf(e,t,"read from private field"),n?n.call(e):t.get(e)),Xf=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Jf=(e,t,n,i)=>(Zf(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),eb=(e,t,n)=>(Zf(e,t,"access private method"),n);class tb extends Rv{constructor(){super(...arguments),Xf(this,Kf),Xf(this,Yf),Xf(this,Ff,[]),Xf(this,$f,void 0)}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_RENDITION_LIST,qa.MEDIA_RENDITION_SELECTED]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_RENDITION_SELECTED&&t!==n?this.value=null!=n?n:"auto":e===qa.MEDIA_RENDITION_LIST&&t!==n&&(Jf(this,Ff,nr(n)),eb(this,Kf,Gf).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",eb(this,Yf,zf))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",eb(this,Yf,zf))}get mediaRenditionList(){return Qf(this,Ff)}set mediaRenditionList(e){Jf(this,Ff,e),eb(this,Kf,Gf).call(this)}get mediaRenditionSelected(){return qr(this,qa.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){Vr(this,qa.MEDIA_RENDITION_SELECTED,e)}}Ff=new WeakMap,$f=new WeakMap,Kf=new WeakSet,Gf=function(){if(Qf(this,$f)===JSON.stringify(this.mediaRenditionList))return;Jf(this,$f,JSON.stringify(this.mediaRenditionList));const e=this.mediaRenditionList.sort(((e,t)=>t.height-e.height)),t=this.shadowRoot.querySelector("#container");t.textContent="";let n=!this.mediaRenditionSelected;for(const a of e){const e=Iv(this.formatOptionText(`${Math.min(a.width,a.height)}p`,a),`${a.id}`,a.selected&&!n);
2e.prepend(xv(this,"select-indicator")),t.append(e)}const i=Iv(this.formatOptionText("Auto"),"auto",n);i.prepend(xv(this,"select-indicator")),t.append(i)},Yf=new WeakSet,zf=function(){if(null==this.value)return;const e=new Er.CustomEvent(Ba.MEDIA_RENDITION_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},Er.customElements.get("media-rendition-listbox")||Er.customElements.define("media-rendition-listbox",tb);const nb=_r.createElement("template");nb.innerHTML='\n <slot name="icon"><svg aria-hidden="true" viewBox="0 0 24 24">\n <path d="M13.5 2.5h2v6h-2v-2h-11v-2h11v-2Zm4 2h4v2h-4v-2Zm-12 4h2v6h-2v-2h-3v-2h3v-2Zm4 2h12v2h-12v-2Zm1 4h2v6h-2v-2h-8v-2h8v-2Zm4 2h7v2h-7v-2Z" />\n</svg></slot>\n';class ib extends ll{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_RENDITION_SELECTED,qa.MEDIA_RENDITION_UNAVAILABLE]}constructor(){super({slotTemplate:nb})}get mediaRenditionSelected(){return qr(this,qa.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){Vr(this,qa.MEDIA_RENDITION_SELECTED,e)}}Er.customElements.get("media-rendition-button")||Er.customElements.define("media-rendition-button",ib);class ab extends bf{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_RENDITION_SELECTED,qa.MEDIA_RENDITION_UNAVAILABLE]}init(){const e=_r.createElement("media-rendition-button");e.part.add("button"),e.preventClick=!0;const t=_r.createElement("media-rendition-listbox");t.part.add("listbox"),t.setAttribute("exportparts","option, option-selected, indicator");const n=this.shadowRoot.querySelector("slot[name=button]"),i=this.shadowRoot.querySelector("slot[name=listbox]");n.textContent="",i.textContent="",n.append(e),i.append(t)}}Er.customElements.get("media-rendition-selectmenu")||Er.customElements.define("media-rendition-selectmenu",ab);var rb,ob,sb,lb,db,ub,cb=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},hb=(e,t,n)=>(cb(e,t,"read from private field"),n?n.call(e):t.get(e)),mb=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},pb=(e,t,n,i)=>(cb(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),vb=(e,t,n)=>(cb(e,t,"access private method"),n);class fb extends Rv{constructor(){super(...arguments),mb(this,sb),mb(this,db),mb(this,rb,[]),mb(this,ob,void 0)}static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_AUDIO_TRACK_LIST,qa.MEDIA_AUDIO_TRACK_ENABLED]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===qa.MEDIA_AUDIO_TRACK_ENABLED&&t!==n?this.value=n:e===qa.MEDIA_AUDIO_TRACK_LIST&&t!==n&&(pb(this,rb,rr(n)),vb(this,sb,lb).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",vb(this,db,ub))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",vb(this,db,ub))}get mediaAudioTrackList(){return hb(this,rb)}set mediaAudioTrackList(e){pb(this,rb,e),vb(this,sb,lb).call(this)}get mediaAudioTrackEnabled(){return qr(this,qa.MEDIA_AUDIO_TRACK_ENABLED)}set mediaAudioTrackEnabled(e){Vr(this,qa.MEDIA_AUDIO_TRACK_ENABLED,e)}}rb=new WeakMap,ob=new WeakMap,sb=new WeakSet,lb=function(){if(hb(this,ob)===JSON.stringify(this.mediaAudioTrackList))return;pb(this,ob,JSON.stringify(this.mediaAudioTrackList));const e=this.mediaAudioTrackList,t=this.shadowRoot.querySelector("#container");t.textContent="";for(const n of e){const e=Iv(this.formatOptionText(n.label,n),`${n.id}`,n.enabled);e.prepend(xv(this,"select-indicator")),t.append(e)}},db=new WeakSet,ub=function(){if(null==this.value)return;const e=new Er.CustomEvent(Ba.MEDIA_AUDIO_TRACK_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},Er.customElements.get("media-audio-track-listbox")||Er.customElements.define("media-audio-track-listbox",fb);const bb=_r.createElement("template");bb.innerHTML='\n <slot name="icon"><svg aria-hidden="true" viewBox="0 0 24 24">\n <path d="M11 17H9.5V7H11v10Zm-3-3H6.5v-4H8v4Zm6-5h-1.5v6H14V9Zm3 7h-1.5V8H17v8Z"/>\n <path d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z"/>\n</svg></slot>\n';class gb extends ll{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_AUDIO_TRACK_ENABLED,qa.MEDIA_AUDIO_TRACK_UNAVAILABLE]}constructor(){super({slotTemplate:bb})}get mediaAudioTrackEnabled(){return qr(this,qa.MEDIA_AUDIO_TRACK_ENABLED)}set mediaAudioTrackEnabled(e){Vr(this,qa.MEDIA_AUDIO_TRACK_ENABLED,e)}}Er.customElements.get("media-audio-track-button")||Er.customElements.define("media-audio-track-button",gb);class yb extends bf{static get observedAttributes(){return[...super.observedAttributes,qa.MEDIA_AUDIO_TRACK_ENABLED,qa.MEDIA_AUDIO_TRACK_UNAVAILABLE]}init(){const e=_r.createElement("media-audio-track-button");e.part.add("button"),e.preventClick=!0;const t=_r.createElement("media-audio-track-listbox");t.part.add("listbox"),t.setAttribute("exportparts","option, option-selected, indicator");const n=this.shadowRoot.querySelector("slot[name=button]"),i=this.shadowRoot.querySelector("slot[name=listbox]");n.textContent="",i.textContent="",n.append(e),i.append(t)}}Er.customElements.get("media-audio-track-selectmenu")||Er.customElements.define("media-audio-track-selectmenu",yb);var Eb=Object.defineProperty,_b=Object.getPrototypeOf,Ab=Reflect.get,kb=(e,t,n
2)=>(((e,t,n)=>{t in e?Eb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),wb=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Tb=(e,t,n)=>(wb(e,t,"read from private field"),n?n.call(e):t.get(e)),Sb=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Cb=(e,t,n,i)=>(wb(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Ib=(e,t,n)=>(wb(e,t,"access private method"),n),xb=(e,t,n)=>Ab(_b(e),n,t),Lb=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if("undefined"==typeof DocumentFragment){class e extends Lb{}globalThis.DocumentFragment=e}var Rb,Mb=class extends Lb{},Db={get(e){},define(e,t,n){},upgrade(e){},whenDefined(e){return Promise.resolve(Mb)}};Rb=new WeakMap;var Ob,Nb={document:{createElement:function(e,t){return new Mb}},DocumentFragment:DocumentFragment,customElements:Db,CustomEvent:class{constructor(e,t={}){Sb(this,Rb,void 0),Cb(this,Rb,null==t?void 0:t.detail)}get detail(){return Tb(this,Rb)}initCustomEvent(){}},EventTarget:Lb,HTMLElement:Mb,HTMLVideoElement:class extends Lb{}},Pb="undefined"==typeof window||void 0===globalThis.customElements,Ub=Pb?Nb:globalThis,Bb=(Pb||globalThis.document,(()=>{try{return"0.19.0"}catch{}return"UNKNOWN"})()),Wb=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],Hb=null==(Ob=globalThis.document)?void 0:Ob.createElement("template");Hb&&(Hb.innerHTML='\n <style>\n :host {\n display: inline-flex;\n line-height: 0;\n flex-direction: column;\n justify-content: end;\n }\n\n audio {\n width: 100%;\n }\n </style>\n <slot name="media"></slot>\n <slot></slot>\n ');var jb,qb=null==(jb=globalThis.document)?void 0:jb.createElement("template");qb&&(qb.innerHTML='\n <style>\n :host {\n display: inline-block;\n line-height: 0;\n }\n\n video {\n max-width: 100%;\n max-height: 100%;\n min-width: 100%;\n min-height: 100%;\n object-fit: var(--media-object-fit, contain);\n object-position: var(--media-object-position, 50% 50%);\n }\n\n video::-webkit-media-text-track-container {\n transform: var(--media-webkit-text-track-transform);\n transition: var(--media-webkit-text-track-transition);\n }\n </style>\n <slot name="media"></slot>\n <slot></slot>\n ');var Vb=(e,{tag:t,is:n})=>{var i,a,r,o,s,l,d,u,c,h,m,p,v,f,b,g;let y=null==(i=globalThis.document)?void 0:i.createElement(t,{is:n}),E=y?function(e){let t=[];for(let n=Object.getPrototypeOf(e);n&&n!==HTMLElement.prototype;n=Object.getPrototypeOf(n))t.push(...Object.getOwnPropertyNames(n));return t}(y):[];return a=class extends e{constructor(){super(),Sb(this,c),Sb(this,m),Sb(this,v),Sb(this,b),Sb(this,l,void 0),Sb(this,d,void 0),Sb(this,u,new Map),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0)))}static get observedAttributes(){var e,t,n;return Ib(e=a,o,s).call(e),[...null!=(n=null==(t=null==y?void 0:y.constructor)?void 0:t.observedAttributes)?n:[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}get nativeEl(){var e,n,i;return null!=(i=null!=(n=null!=(e=Tb(this,d))?e:this.shadowRoot.querySelector(t))?n:this.querySelector(":scope > [slot=media]"))?i:this.querySelector(t)}set nativeEl(e){Cb(this,d,e)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.toggleAttribute("muted",!!e)}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",`${e}`)}get preload(){var e,t;return null!=(t=this.getAttribute("preload"))?t:null==(e=this.nativeEl)?void 0:e.preload}set preload(e){this.setAttribute("preload",`${e}`)}init(){var e,i;if(!this.nativeEl){let e=document.createElement(t,{is:n});e.part=t,this.shadowRoot.querySelector('slot[name="media"]').append(e)}this.nativeEl.muted=this.hasAttribute("muted");for(let t of E)Ib(this,v,f).call(this,t);this.shadowRoot.addEventListener("slotchange",this);for(let t of this.constructor.Events)null==(i=(e=this.shadowRoot).addEventListener)||i.call(e,t,this,!0)}handleEvent(e){"slotchange"!==e.type?e.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(e.type,{detail:e.detail})):Ib(this,m,p).call(this)}attributeChangedCallback(e,t,n){Ib(this,c,h).call(this),Ib(this,b,g).call(this,e,t,n)}connectedCallback(){Ib(this,c,h).call(this)}},r=new WeakMap,o=new WeakSet,s=function(){if(Tb(this,r))return;Cb(this,r,!0);let e=new Set(this.observedAttributes);e.delete("muted");for(let t of E)if(!(t in this.prototype))if("function"==typeof y[t])this.prototype[t]=function(...e){return Ib(this,c,h).call(this),this.call?this.call(t,...e):this.nativeEl[t].apply(this.nativeEl,e)};else{let n={get(){var n,i,a;Ib(this,c,h).call(this);let r=t.toLowerCase();if(e.has(r)){let e=this.getAttribute(r);return null!==e&&(""===e||e)}return null!=(a=null==(n=this.get)?void 0:n.call(this,t))?a:null==(i=this.nativeEl)?void 0:i[t]}};t!==t.toUpperCase()&&(n.set=function(n){Ib(this,c,h).call(this);let i=t.toLowerCase();e.has(i)?!0===n||!1===n||null==n?this.toggleAttribute(i,!!n):this.setAttribute(i,n):this.set?this.set(t,n):this.nativeEl[t]=n}),Object.defineProperty(this.prototype,t,n)}},l=new WeakMap,d=new WeakMap,u=new WeakMap,c=new WeakSet,h=function(){Tb(this,l)||(Cb(this,l,!0),this.init())},m=new WeakSet,p=function(){let e=new Map(Tb(this,u));this.shadowRoot.querySelector("slot:not([name])").assignedElements().filter((e=>
2["track","source"].includes(e.localName))).forEach((t=>{var n,i;e.delete(t);let a=Tb(this,u).get(t);a||(a=t.cloneNode(),Tb(this,u).set(t,a)),null==(i=(n=this.nativeEl).append)||i.call(n,a),"track"===a.localName&&a.default&&("chapters"===a.kind||"metadata"===a.kind)&&"disabled"===a.track.mode&&(a.track.mode="hidden")})),e.forEach((e=>e.remove()))},v=new WeakSet,f=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}},b=new WeakSet,g=function(e,t,n){var i,r,o,s,l,d;["id","class"].includes(e)||!a.observedAttributes.includes(e)&&this.constructor.observedAttributes.includes(e)||(null===n?null==(r=(i=this.nativeEl).removeAttribute)||r.call(i,e):(null==(s=(o=this.nativeEl).getAttribute)?void 0:s.call(o,e))!=n&&(null==(d=(l=this.nativeEl).setAttribute)||d.call(l,e,n)))},Sb(a,o),kb(a,"Events",Wb),kb(a,"template",t.endsWith("audio")?Hb:qb),Sb(a,r,void 0),a};var Fb=globalThis.document?Vb(HTMLElement,{tag:"video"}):class{},$b=(globalThis.document&&Vb(HTMLElement,{tag:"audio"}),new WeakMap),Kb=class extends Error{},Gb=class extends Error{},Yb=globalThis.WeakRef?class extends Set{add(e){super.add(new WeakRef(e))}forEach(e){super.forEach((t=>{let n=t.deref();n&&e(n)}))}}:Set;function zb(){return"undefined"!=typeof chrome&&chrome.cast&&chrome.cast.isAvailable}function Zb(){return"undefined"!=typeof cast&&cast.framework}function Qb(){if(Zb())return cast.framework.CastContext.getInstance()}function Xb(){var e;return null==(e=Qb())?void 0:e.getCurrentSession()}function Jb(){var e;return null==(e=Xb())?void 0:e.getSessionObj().media[0]}function eg(e){return Qb().setOptions({receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped",androidReceiverCompatible:!1,language:"en-US",resumeSavedSession:!0,...e})}var tg,ng,ig=new Yb,ag=new WeakSet;ng=e=>{e&&!tg&&(tg=cast.framework,Qb().addEventListener(tg.CastContextEventType.CAST_STATE_CHANGED,(e=>{ig.forEach((t=>{var n,i;return null==(i=(n=$b.get(t)).onCastStateChanged)?void 0:i.call(n,e)}))})),Qb().addEventListener(tg.CastContextEventType.SESSION_STATE_CHANGED,(e=>{ig.forEach((t=>{var n,i;return null==(i=(n=$b.get(t)).onSessionStateChanged)?void 0:i.call(n,e)}))})),ig.forEach((e=>{var t,n;return null==(n=(t=$b.get(e)).init)?void 0:n.call(t)})))},zb()?Zb()?ng(chrome.cast.isAvailable):customElements.whenDefined("google-cast-button").then((()=>ng(chrome.cast.isAvailable))):globalThis.__onGCastApiAvailable=()=>{customElements.whenDefined("google-cast-button").then((()=>ng(chrome.cast.isAvailable)))};var rg,og,sg,lg,dg,ug,cg,hg,mg,pg,vg,fg,bg,gg,yg,Eg,_g,Ag,kg,wg,Tg,Sg,Cg=0,Ig=class extends EventTarget{constructor(e){super(),Sb(this,mg),Sb(this,vg),Sb(this,bg),Sb(this,yg),Sb(this,_g),Sb(this,kg),Sb(this,Tg),Sb(this,rg,void 0),Sb(this,og,void 0),Sb(this,sg,void 0),Sb(this,lg,void 0),Sb(this,dg,"disconnected"),Sb(this,ug,!1),Sb(this,cg,new Set),Sb(this,hg,new WeakMap),Cb(this,rg,e),ig.add(this),$b.set(this,{init:()=>Ib(this,_g,Ag).call(this),onCastStateChanged:()=>Ib(this,bg,gg).call(this),onSessionStateChanged:()=>Ib(this,yg,Eg).call(this),getCastPlayer:()=>Tb(this,mg,pg)}),Ib(this,_g,Ag).call(this)}get state(){return Tb(this,dg)}async watchAvailability(e){if(Tb(this,rg).disableRemotePlayback)throw new Kb("disableRemotePlayback attribute is present.");return Tb(this,hg).set(e,++Cg),Tb(this,cg).add(e),Cg}async cancelWatchAvailability(e){if(Tb(this,rg).disableRemotePlayback)throw new Kb("disableRemotePlayback attribute is present.");e?Tb(this,cg).delete(e):Tb(this,cg).clear()}async prompt(){var e,t;if(Tb(this,rg).disableRemotePlayback)throw new Kb("disableRemotePlayback attribute is present.");if(!zb())throw new Gb("The RemotePlayback API is disabled on this platform.");let n=ag.has(Tb(this,rg));ag.add(Tb(this,rg)),eg(Tb(this,rg).castOptions),Object.entries(Tb(this,lg)).forEach((([e,t])=>{Tb(this,sg).controller.addEventListener(e,t)}));try{await Qb().requestSession()}catch(XE){if("cancel"===XE)return void(n||ag.delete(Tb(this,rg)));throw new Error(XE)}null==(t=null==(e=$b.get(Tb(this,rg)))?void 0:e.loadOnPrompt)||t.call(e)}};rg=new WeakMap,og=new WeakMap,sg=new WeakMap,lg=new WeakMap,dg=new WeakMap,ug=new WeakMap,cg=new WeakMap,hg=new WeakMap,mg=new WeakSet,pg=function(){if(ag.has(Tb(this,rg)))return Tb(this,sg)},vg=new WeakSet,fg=function(){ag.has(Tb(this,rg))&&(Object.entries(Tb(this,lg)).forEac
2h((([e,t])=>{Tb(this,sg).controller.removeEventListener(e,t)})),ag.delete(Tb(this,rg)),Tb(this,rg).muted=Tb(this,sg).isMuted,Tb(this,rg).currentTime=Tb(this,sg).savedPlayerState.currentTime,!1===Tb(this,sg).savedPlayerState.isPaused&&Tb(this,rg).play())},bg=new WeakSet,gg=function(){let e=Qb().getCastState();if(ag.has(Tb(this,rg))&&"CONNECTING"===e&&(Cb(this,dg,"connecting"),this.dispatchEvent(new Event("connecting"))),!Tb(this,ug)&&null!=e&&e.includes("CONNECT")){Cb(this,ug,!0);for(let e of Tb(this,cg))e(!0)}else if(Tb(this,ug)&&(!e||"NO_DEVICES_AVAILABLE"===e)){Cb(this,ug,!1);for(let e of Tb(this,cg))e(!1)}},yg=new WeakSet,Eg=async function(){var e;let{SESSION_RESUMED:t}=tg.SessionState;if(Qb().getSessionState()===t&&Tb(this,rg).castSrc===(null==(e=Jb())?void 0:e.media.contentId)){ag.add(Tb(this,rg)),Object.entries(Tb(this,lg)).forEach((([e,t])=>{Tb(this,sg).controller.addEventListener(e,t)}));try{await function(e){return new Promise(((t,n)=>{Jb().getStatus(e,t,n)}))}(new chrome.cast.media.GetStatusRequest)}catch(n){console.error(n)}Tb(this,lg)[tg.RemotePlayerEventType.IS_PAUSED_CHANGED](),Tb(this,lg)[tg.RemotePlayerEventType.PLAYER_STATE_CHANGED]()}},_g=new WeakSet,Ag=function(){!tg||Tb(this,og)||(Cb(this,og,!0),eg(Tb(this,rg).castOptions),Tb(this,rg).textTracks.addEventListener("change",(()=>Ib(this,Tg,Sg).call(this))),Ib(this,bg,gg).call(this),Cb(this,sg,new tg.RemotePlayer),new tg.RemotePlayerController(Tb(this,sg)),Cb(this,lg,{[tg.RemotePlayerEventType.IS_CONNECTED_CHANGED]:({value:e})=>{!0===e?(Cb(this,dg,"connected"),this.dispatchEvent(new Event("connect"))):(Ib(this,vg,fg).call(this),Cb(this,dg,"disconnected"),this.dispatchEvent(new Event("disconnect")))},[tg.RemotePlayerEventType.DURATION_CHANGED]:()=>{Tb(this,rg).dispatchEvent(new Event("durationchange"))},[tg.RemotePlayerEventType.VOLUME_LEVEL_CHANGED]:()=>{Tb(this,rg).dispatchEvent(new Event("volumechange"))},[tg.RemotePlayerEventType.IS_MUTED_CHANGED]:()=>{Tb(this,rg).dispatchEvent(new Event("volumechange"))},[tg.RemotePlayerEventType.CURRENT_TIME_CHANGED]:()=>{var e;null!=(e=Tb(this,mg,pg))&&e.isMediaLoaded&&Tb(this,rg).dispatchEvent(new Event("timeupdate"))},[tg.RemotePlayerEventType.VIDEO_INFO_CHANGED]:()=>{Tb(this,rg).dispatchEvent(new Event("resize"))},[tg.RemotePlayerEventType.IS_PAUSED_CHANGED]:()=>{Tb(this,rg).dispatchEvent(new Event(this.paused?"pause":"play"))},[tg.RemotePlayerEventType.PLAYER_STATE_CHANGED]:()=>{var e,t;(null==(e=Tb(this,mg,pg))?void 0:e.playerState)!==chrome.cast.media.PlayerState.PAUSED&&Tb(this,rg).dispatchEvent(new Event({[chrome.cast.media.PlayerState.PLAYING]:"playing",[chrome.cast.media.PlayerState.BUFFERING]:"waiting",[chrome.cast.media.PlayerState.IDLE]:"emptied"}[null==(t=Tb(this,mg,pg))?void 0:t.playerState]))},[tg.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED]:async()=>{var e;null!=(e=Tb(this,mg,pg))&&e.isMediaLoaded&&(await Promise.resolve(),Ib(this,kg,wg).call(this))}}))},kg=new WeakSet,wg=function(){Ib(this,Tg,Sg).call(this)},Tg=new WeakSet,Sg=async function(){var e,t,n,i,a;if(!Tb(this,mg,pg))return;let r=(null!=(t=null==(e=Tb(this,sg).mediaInfo)?void 0:e.tracks)?t:[]).filter((({type:e})=>e===chrome.cast.media.TrackType.TEXT)),o=[...Tb(this,rg).textTracks].filter((({kind:e})=>"subtitles"===e||"captions"===e)),s=r.map((({language:e,name:t,trackId:n})=>{var i;let{mode:a}=null!=(i=o.find((n=>n.language===e&&n.label===t)))?i:{};return!!a&&{mode:a,trackId:n}})).filter(Boolean),l=s.filter((({mode:e})=>"showing"!==e)).map((({trackId:e})=>e)),d=s.find((({mode:e})=>"showing"===e)),u=null!=(a=null==(i=null==(n=Xb())?void 0:n.getSessionObj().media[0])?void 0:i.activeTrackIds)?a:[],c=u;if(u.length&&(c=c.filter((e=>!l.includes(e)))),null!=d&&d.trackId&&(c=[...c,d.trackId]),c=[...new Set(c)],!((e,t)=>e.length===t.length&&e.every((e=>t.includes(e))))(u,c))try{let e=new chrome.cast.media.EditTracksInfoRequest(c);await function(e){return new Promise(((t,n)=>{Jb().editTracksInfo(e,t,n)}))}(e)}catch(Bi){console.error(Bi)}};var xg=e=>{var t,n,i,a,r,o,s,l,d;return n=class extends e{constructor(){super(...arguments),Sb(this,o),Sb(this,l),Sb(this,i,{paused:!1}),Sb(this,a,{receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped",androidReceiverCompatible:!1,language:"en-US",resumeSavedSession:!0}),Sb(this,r,void 0)}get remote(){return Tb(this,r)?Tb(this,r):globalThis.chrome?(function(){let e="https://www.gstatic.
2com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";if(globalThis.chrome.cast||document.querySelector(`script[src="${e}"]`))return;let t=document.createElement("script");t.src=e,document.head.append(t)}(),$b.set(this,{loadOnPrompt:()=>Ib(this,l,d).call(this)}),Cb(this,r,new Ig(this))):super.remote}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"cast-receiver"===e&&n)Tb(this,a).receiverApplicationId=n;else if(Tb(this,o,s))switch(e){case"cast-stream-type":case"cast-src":this.load()}}async load(){var e,t;if(!Tb(this,o,s))return super.load();let n=new chrome.cast.media.MediaInfo(this.castSrc,this.castContentType),a=[...this.querySelectorAll("track")].filter((({kind:e,src:t})=>t&&("subtitles"===e||"captions"===e))),r=[],l=0;a.length&&(n.tracks=a.map((e=>{let t=++l;0===r.length&&"showing"===e.track.mode&&r.push(t);let n=new chrome.cast.media.Track(t,chrome.cast.media.TrackType.TEXT);return n.trackContentId=e.src,n.trackContentType="text/vtt",n.subtype="captions"===e.kind?chrome.cast.media.TextTrackType.CAPTIONS:chrome.cast.media.TextTrackType.SUBTITLES,n.name=e.label,n.language=e.srclang,n}))),"live"===this.castStreamType?n.streamType=chrome.cast.media.StreamType.LIVE:n.streamType=chrome.cast.media.StreamType.BUFFERED,n.metadata=new chrome.cast.media.GenericMediaMetadata,n.metadata.title=this.title,n.metadata.images=[{url:this.poster}];let d=new chrome.cast.media.LoadRequest(n);d.currentTime=null!=(e=super.currentTime)?e:0,d.autoplay=!Tb(this,i).paused,d.activeTrackIds=r,await(null==(t=Xb())?void 0:t.loadMedia(d)),this.dispatchEvent(new Event("volumechange"))}play(){var e;if(!Tb(this,o,s))return super.play();Tb(this,o,s).isPaused&&(null==(e=Tb(this,o,s).controller)||e.playOrPause())}pause(){var e;Tb(this,o,s)?Tb(this,o,s).isPaused||null==(e=Tb(this,o,s).controller)||e.playOrPause():super.pause()}get castOptions(){return Tb(this,a)}get castReceiver(){var e;return null!=(e=this.getAttribute("cast-receiver"))?e:void 0}set castReceiver(e){this.castReceiver!=e&&this.setAttribute("cast-receiver",`${e}`)}get castSrc(){var e,t,n;return null!=(n=null!=(t=this.getAttribute("cast-src"))?t:null==(e=this.querySelector("source"))?void 0:e.src)?n:this.currentSrc}set castSrc(e){this.castSrc!=e&&this.setAttribute("cast-src",`${e}`)}get castContentType(){var e;return null!=(e=this.getAttribute("cast-content-type"))?e:void 0}set castContentType(e){this.setAttribute("cast-content-type",`${e}`)}get castStreamType(){var e,t;return null!=(t=null!=(e=this.getAttribute("cast-stream-type"))?e:this.streamType)?t:void 0}set castStreamType(e){this.setAttribute("cast-stream-type",`${e}`)}get readyState(){if(Tb(this,o,s))switch(Tb(this,o,s).playerState){case chrome.cast.media.PlayerState.IDLE:return 0;case chrome.cast.media.PlayerState.BUFFERING:return 2;default:return 3}return super.readyState}get paused(){return Tb(this,o,s)?Tb(this,o,s).isPaused:super.paused}get muted(){var e;return Tb(this,o,s)?null==(e=Tb(this,o,s))?void 0:e.isMuted:super.muted}set muted(e){var t;Tb(this,o,s)?(e&&!Tb(this,o,s).isMuted||!e&&Tb(this,o,s).isMuted)&&(null==(t=Tb(this,o,s).controller)||t.muteOrUnmute()):super.muted=e}get volume(){var e,t;return Tb(this,o,s)?null!=(t=null==(e=Tb(this,o,s))?void 0:e.volumeLevel)?t:1:super.volume}set volume(e){var t;if(Tb(this,o,s))return Tb(this,o,s).volumeLevel=+e,void(null==(t=Tb(this,o,s).controller)||t.setVolumeLevel());super.volume=e}get duration(){var e,t,n;return Tb(this,o,s)&&null!=(e=Tb(this,o,s))&&e.isMediaLoaded?null!=(n=null==(t=Tb(this,o,s))?void 0:t.duration)?n:NaN:super.duration}get currentTime(){var e,t,n;return Tb(this,o,s)&&null!=(e=Tb(this,o,s))&&e.isMediaLoaded?null!=(n=null==(t=Tb(this,o,s))?void 0:t.currentTime)?n:0:super.currentTime}set currentTime(e){var t;if(Tb(this,o,s))return Tb(this,o,s).currentTime=e,void(null==(t=Tb(this,o,s).controller)||t.seek());super.currentTime=e}},i=new WeakMap,a=new WeakMap,r=new WeakMap,o=new WeakSet,s=function(){var e,t;return null==(t=null==(e=$b.get(this.remote))?void 0:e.getCastPlayer)?void 0:t.call(e)},l=new WeakSet,d=async function(){Tb(this,i).paused=xb(n.prototype,this,"paused"),xb(n.prototype,this,"pause").call(this),this.muted=xb(n.prototype,this,"muted");try{await this.load()}catch(e){console.error(e)}},kb(n,"observedAttributes",[...null!=(t=e.observedAttributes)?t:[],"cast-src","cast-content-type","cast-stream-type","cast-receiver"]),n}
2,Lg=class extends Event{constructor(e,t){super(e),kb(this,"track"),this.track=t.track}},Rg=new WeakMap;function Mg(e){var t;return null!=(t=Rg.get(e))?t:function(e,t){let n=Rg.get(e);return n||Rg.set(e,n={}),Object.assign(n,t)}(e,{})}function Dg(e,t){let n=e.videoTracks;Mg(t).media=e,Mg(t).renditionSet||(Mg(t).renditionSet=new Set);let i=Mg(n).trackSet;i.add(t);let a=i.size-1;a in Hg.prototype||Object.defineProperty(Hg.prototype,a,{get(){return[...Mg(this).trackSet][a]}}),queueMicrotask((()=>{n.dispatchEvent(new Lg("addtrack",{track:t}))}))}function Og(e){var t;let n=null==(t=Mg(e).media)?void 0:t.videoTracks;n&&(Mg(n).trackSet.delete(e),queueMicrotask((()=>{n.dispatchEvent(new Lg("removetrack",{track:e}))})))}var Ng,Pg,Ug,Bg,Wg,Hg=class extends EventTarget{constructor(){super(),Sb(this,Bg),Sb(this,Ng,void 0),Sb(this,Pg,void 0),Sb(this,Ug,void 0),Mg(this).trackSet=new Set}[Symbol.iterator](){return Tb(this,Bg,Wg).values()}get length(){return Tb(this,Bg,Wg).size}getTrackById(e){var t;return null!=(t=[...Tb(this,Bg,Wg)].find((t=>t.id===e)))?t:null}get selectedIndex(){return[...Tb(this,Bg,Wg)].findIndex((e=>e.selected))}get onaddtrack(){return Tb(this,Ng)}set onaddtrack(e){Tb(this,Ng)&&(this.removeEventListener("addtrack",Tb(this,Ng)),Cb(this,Ng,void 0)),"function"==typeof e&&(Cb(this,Ng,e),this.addEventListener("addtrack",e))}get onremovetrack(){return Tb(this,Pg)}set onremovetrack(e){Tb(this,Pg)&&(this.removeEventListener("removetrack",Tb(this,Pg)),Cb(this,Pg,void 0)),"function"==typeof e&&(Cb(this,Pg,e),this.addEventListener("removetrack",e))}get onchange(){return Tb(this,Ug)}set onchange(e){Tb(this,Ug)&&(this.removeEventListener("change",Tb(this,Ug)),Cb(this,Ug,void 0)),"function"==typeof e&&(Cb(this,Ug,e),this.addEventListener("change",e))}};Ng=new WeakMap,Pg=new WeakMap,Ug=new WeakMap,Bg=new WeakSet,Wg=function(){return Mg(this).trackSet};var jg=class extends Event{constructor(e,t){super(e),kb(this,"rendition"),this.rendition=t.rendition}};function qg(e){return[...Mg(e).media.videoTracks].filter((e=>e.selected)).flatMap((e=>[...Mg(e).renditionSet]))}var Vg,Fg,$g,Kg=class extends EventTarget{constructor(){super(...arguments),Sb(this,Vg,void 0),Sb(this,Fg,void 0),Sb(this,$g,void 0)}[Symbol.iterator](){return qg(this).values()}get length(){return qg(this).length}getRenditionById(e){var t;return null!=(t=qg(this).find((t=>`${t.id}`==`${e}`)))?t:null}get selectedIndex(){return qg(this).findIndex((e=>e.selected))}set selectedIndex(e){for(let[t,n]of qg(this).entries())n.selected=t===e}get onaddrendition(){return Tb(this,Vg)}set onaddrendition(e){Tb(this,Vg)&&(this.removeEventListener("addrendition",Tb(this,Vg)),Cb(this,Vg,void 0)),"function"==typeof e&&(Cb(this,Vg,e),this.addEventListener("addrendition",e))}get onremoverendition(){return Tb(this,Fg)}set onremoverendition(e){Tb(this,Fg)&&(this.removeEventListener("removerendition",Tb(this,Fg)),Cb(this,Fg,void 0)),"function"==typeof e&&(Cb(this,Fg,e),this.addEventListener("removerendition",e))}get onchange(){return Tb(this,$g)}set onchange(e){Tb(this,$g)&&(this.removeEventListener("change",Tb(this,$g)),Cb(this,$g,void 0)),"function"==typeof e&&(Cb(this,$g,e),this.addEventListener("change",e))}};Vg=new WeakMap,Fg=new WeakMap,$g=new WeakMap;var Gg,Yg=class{constructor(){kb(this,"src"),kb(this,"id"),kb(this,"width"),kb(this,"height"),kb(this,"bitrate"),kb(this,"frameRate"),kb(this,"codec"),Sb(this,Gg,!1)}get selected(){return Tb(this,Gg)}set selected(e){Tb(this,Gg)!==e&&(Cb(this,Gg,e),function(e){let t=Mg(e).media.videoRenditions;!t||Mg(t).changeRequested||(Mg(t).changeRequested=!0,queueMicrotask((()=>{delete Mg(t).changeRequested,Mg(e).track.selected&&t.dispatchEvent(new Event("change"))})))}(this))}};Gg=new WeakMap;var zg,Zg=class{constructor(){kb(this,"id"),kb(this,"kind"),kb(this,"label",""),kb(this,"language",""),kb(this,"sourceBuffer"),Sb(this,zg,!1)}addRendition(e,t,n,i,a,r){let o=new Yg;return o.src=e,o.width=t,o.height=n,o.frameRate=r,o.bitrate=a,o.codec=i,function(e,t){let n=Mg(e).media.videoRenditions;Mg(t).media=Mg(e).media,Mg(t).track=e;let i=Mg(e).renditionSet;i.add(t);let a=i.size-1;
2a in Kg.prototype||Object.defineProperty(Kg.prototype,a,{get(){return qg(this)[a]}}),queueMicrotask((()=>{e.selected&&n.dispatchEvent(new jg("addrendition",{rendition:t}))}))}(this,o),o}removeRendition(e){!function(e){let t=Mg(e).media.videoRenditions,n=Mg(e).track;Mg(n).renditionSet.delete(e),queueMicrotask((()=>{Mg(e).track.selected&&t.dispatchEvent(new jg("removerendition",{rendition:e}))}))}(e)}get selected(){return Tb(this,zg)}set selected(e){Tb(this,zg)!==e&&(Cb(this,zg,e),!0===e&&function(e){var t;let n=null!=(t=Mg(e).media.videoTracks)?t:[],i=!1;for(let a of n)a!==e&&(a.selected=!1,i=!0);if(i){if(Mg(n).changeRequested)return;Mg(n).changeRequested=!0,queueMicrotask((()=>{delete Mg(n).changeRequested,n.dispatchEvent(new Event("change"))}))}}(this))}};function Qg(e){return[...Mg(e).media.audioTracks].filter((e=>e.enabled)).flatMap((e=>[...Mg(e).renditionSet]))}zg=new WeakMap;var Xg,Jg,ey,ty=class extends EventTarget{constructor(){super(...arguments),Sb(this,Xg,void 0),Sb(this,Jg,void 0),Sb(this,ey,void 0)}[Symbol.iterator](){return Qg(this).values()}get length(){return Qg(this).length}getRenditionById(e){var t;return null!=(t=Qg(this).find((t=>`${t.id}`==`${e}`)))?t:null}get selectedIndex(){return Qg(this).findIndex((e=>e.selected))}set selectedIndex(e){for(let[t,n]of Qg(this).entries())n.selected=t===e}get onaddrendition(){return Tb(this,Xg)}set onaddrendition(e){Tb(this,Xg)&&(this.removeEventListener("addrendition",Tb(this,Xg)),Cb(this,Xg,void 0)),"function"==typeof e&&(Cb(this,Xg,e),this.addEventListener("addrendition",e))}get onremoverendition(){return Tb(this,Jg)}set onremoverendition(e){Tb(this,Jg)&&(this.removeEventListener("removerendition",Tb(this,Jg)),Cb(this,Jg,void 0)),"function"==typeof e&&(Cb(this,Jg,e),this.addEventListener("removerendition",e))}get onchange(){return Tb(this,ey)}set onchange(e){Tb(this,ey)&&(this.removeEventListener("change",Tb(this,ey)),Cb(this,ey,void 0)),"function"==typeof e&&(Cb(this,ey,e),this.addEventListener("change",e))}};Xg=new WeakMap,Jg=new WeakMap,ey=new WeakMap;var ny,iy=class{constructor(){kb(this,"src"),kb(this,"id"),kb(this,"bitrate"),kb(this,"codec"),Sb(this,ny,!1)}get selected(){return Tb(this,ny)}set selected(e){Tb(this,ny)!==e&&(Cb(this,ny,e),function(e){let t=Mg(e).media.audioRenditions;!t||Mg(t).changeRequested||(Mg(t).changeRequested=!0,queueMicrotask((()=>{delete Mg(t).changeRequested,Mg(e).track.enabled&&t.dispatchEvent(new Event("change"))})))}(this))}};function ay(e,t){let n=e.audioTracks;Mg(t).media=e,Mg(t).renditionSet||(Mg(t).renditionSet=new Set);let i=Mg(n).trackSet;i.add(t);let a=i.size-1;a in cy.prototype||Object.defineProperty(cy.prototype,a,{get(){return[...Mg(this).trackSet][a]}}),queueMicrotask((()=>{n.dispatchEvent(new Lg("addtrack",{track:t}))}))}function ry(e){var t;let n=null==(t=Mg(e).media)?void 0:t.audioTracks;n&&(Mg(n).trackSet.delete(e),queueMicrotask((()=>{n.dispatchEvent(new Lg("removetrack",{track:e}))})))}ny=new WeakMap;var oy,sy,ly,dy,uy,cy=class extends EventTarget{constructor(){super(),Sb(this,dy),Sb(this,oy,void 0),Sb(this,sy,void 0),Sb(this,ly,void 0),Mg(this).trackSet=new Set}[Symbol.iterator](){return Tb(this,dy,uy).values()}get length(){return Tb(this,dy,uy).size}getTrackById(e){var t;return null!=(t=[...Tb(this,dy,uy)].find((t=>t.id===e)))?t:null}get onaddtrack(){return Tb(this,oy)}set onaddtrack(e){Tb(this,oy)&&(this.removeEventListener("addtrack",Tb(this,oy)),Cb(this,oy,void 0)),"function"==typeof e&&(Cb(this,oy,e),this.addEventListener("addtrack",e))}get onremovetrack(){return Tb(this,sy)}set onremovetrack(e){Tb(this,sy)&&(this.removeEventListener("removetrack",Tb(this,sy)),Cb(this,sy,void 0)),"function"==typeof e&&(Cb(this,sy,e),this.addEventListener("removetrack",e))}get onchange(){return Tb(this,ly)}set onchange(e){Tb(this,ly)&&(this.removeEventListener("change",Tb(this,ly)),Cb(this,ly,void 0)),"function"==typeof e&&(Cb(this,ly,e),this.addEventListener("change",e))}};oy=new WeakMap,sy=new WeakMap,ly=new WeakMap,dy=new WeakSet,uy=function(){return Mg(this).trackSet};var hy,my=class{constructor(){kb(this,"id"),kb(this,"kind"),kb(this,"label",""),kb(this,"language",""),kb(this,"sourceBuffer"),Sb(this,hy,!1)}addRendition(e,t,n){let i=new iy;return i.src=e,i.codec=t,i.bitrate=n,function(e,t){let n=Mg(e).media.audioRenditions;Mg(t).media=Mg(e).media,Mg(t).track=e;let i=Mg(e).renditionSet;i.add(t);let a=i.size-1;
2a in ty.prototype||Object.defineProperty(ty.prototype,a,{get(){return Qg(this)[a]}}),queueMicrotask((()=>{e.enabled&&n.dispatchEvent(new jg("addrendition",{rendition:t}))}))}(this,i),i}removeRendition(e){!function(e){let t=Mg(e).media.audioRenditions,n=Mg(e).track;Mg(n).renditionSet.delete(e),queueMicrotask((()=>{Mg(e).track.enabled&&t.dispatchEvent(new jg("removerendition",{rendition:e}))}))}(e)}get enabled(){return Tb(this,hy)}set enabled(e){Tb(this,hy)!==e&&(Cb(this,hy,e),function(e){let t=Mg(e).media.audioTracks;!t||Mg(t).changeRequested||(Mg(t).changeRequested=!0,queueMicrotask((()=>{delete Mg(t).changeRequested,t.dispatchEvent(new Event("change"))})))}(this))}};hy=new WeakMap;var py=by(globalThis.HTMLMediaElement,"video"),vy=by(globalThis.HTMLMediaElement,"audio");function fy(e){if(null==e||!e.prototype)return e;let t=by(e,"video");(!t||`${t}`.includes("[native code]"))&&Object.defineProperty(e.prototype,"videoTracks",{get(){return function(e){var t;let n=Mg(e).videoTracks;if(!n&&(n=new Hg,Mg(e).videoTracks=n,py)){let i=py.call(null!=(t=e.nativeEl)?t:e);for(let t of i)Dg(e,t);i.addEventListener("change",(()=>{n.dispatchEvent(new Event("change"))})),i.addEventListener("addtrack",(t=>{if([...n].some((e=>e instanceof Zg)))for(let e of i)Og(e);else Dg(e,t.track)})),i.addEventListener("removetrack",(e=>{Og(e.track)}))}return n}(this)}});let n=by(e,"audio");(!n||`${n}`.includes("[native code]"))&&Object.defineProperty(e.prototype,"audioTracks",{get(){return function(e){var t;let n=Mg(e).audioTracks;
2if(!n&&(n=new cy,Mg(e).audioTracks=n,vy)){let i=vy.call(null!=(t=e.nativeEl)?t:e);for(let t of i)ay(e,t);i.addEventListener("change",(()=>{n.dispatchEvent(new Event("change"))})),i.addEventListener("addtrack",(t=>{if([...n].some((e=>e instanceof my)))for(let e of i)ry(e);else ay(e,t.track)})),i.addEventListener("removetrack",(e=>{ry(e.track)}))}return n}(this)}}),"addVideoTrack"in e.prototype||(e.prototype.addVideoTrack=function(e,t="",n=""){let i=new Zg;return i.kind=e,i.label=t,i.language=n,Dg(this,i),i}),"removeVideoTrack"in e.prototype||(e.prototype.removeVideoTrack=Og),"addAudioTrack"in e.prototype||(e.prototype.addAudioTrack=function(e,t="",n=""){let i=new my;return i.kind=e,i.label=t,i.language=n,ay(this,i),i}),"removeAudioTrack"in e.prototype||(e.prototype.removeAudioTrack=ry),"videoRenditions"in e.prototype||Object.defineProperty(e.prototype,"videoRenditions",{get(){return i(this)}});let i=e=>{let t=Mg(e).videoRenditions;return t||(t=new Kg,Mg(t).media=e,Mg(e).videoRenditions=t),t};"audioRenditions"in e.prototype||Object.defineProperty(e.prototype,"audioRenditions",{get(){return a(this)}});let a=e=>{let t=Mg(e).audioRenditions;return t||(t=new ty,Mg(t).media=e,Mg(e).audioRenditions=t),t};return e}function by(e,t){var n;if(null!=e&&e.prototype)return null==(n=Object.getOwnPropertyDescriptor(e.prototype,`${t}Tracks`))?void 0:n.get}Wb.push("castchange","entercast","leavecast");var gy,yy,Ey,_y,Ay,ky,wy,Ty,Sy,Cy,Iy={BEACON_COLLECTION_DOMAIN:"beacon-collection-domain",CUSTOM_DOMAIN:"custom-domain",DEBUG:"debug",DISABLE_TRACKING:"disable-tracking",DISABLE_COOKIES:"disable-cookies",ENV_KEY:"env-key",MAX_RESOLUTION:"max-resolution",MIN_RESOLUTION:"min-resolution",RENDITION_ORDER:"rendition-order",PROGRAM_START_TIME:"program-start-time",PROGRAM_END_TIME:"program-end-time",METADATA_URL:"metadata-url",PLAYBACK_ID:"playback-id",PLAYER_SOFTWARE_NAME:"player-software-name",PLAYER_SOFTWARE_VERSION:"player-software-version",PREFER_CMCD:"prefer-cmcd",PREFER_PLAYBACK:"prefer-playback",START_TIME:"start-time",STREAM_TYPE:"stream-type",TARGET_LIVE_WINDOW:"target-live-window",LIVE_EDGE_OFFSET:"live-edge-offset",TYPE:"type"},xy=Object.values(Iy),Ly=Bb,Ry=class extends Fb{constructor(){super(),Sb(this,Sy),Sb(this,gy,void 0),Sb(this,yy,void 0),Sb(this,Ey,void 0),Sb(this,_y,{}),Sb(this,Ay,void 0),Sb(this,ky,void 0),Sb(this,wy,void 0),Sb(this,Ty,void 0),Cb(this,Ey,Ti.utils.now())}static get observedAttributes(){var e;return[...xy,...null!=(e=Fb.observedAttributes)?e:[]]}get preferCmcd(){var e;return null!=(e=this.getAttribute(Iy.PREFER_CMCD))?e:void 0}set preferCmcd(e){e!==this.preferCmcd&&(e?Ni.includes(e)?this.setAttribute(Iy.PREFER_CMCD,e):console.warn(`Invalid value for preferCmcd. Must be one of ${Ni.join()}`):this.removeAttribute(Iy.PREFER_CMCD))}get playerInitTime(){return Tb(this,Ey)}get playerSoftwareName(){var e;return null!=(e=Tb(this,wy))?e:"mux-video"}set playerSoftwareName(e){Cb(this,wy,e)}get playerSoftwareVersion(){var e;return null!=(e=Tb(this,ky))?e:Ly}set playerSoftwareVersion(e){Cb(this,ky,e)}get _hls(){var e;return null==(e=Tb(this,gy))?void 0:e.engine}get mux(){var e;return null==(e=this.nativeEl)?void 0:e.mux}get error(){var e;return null!=(e=(e=>{var t;return null==(t=va.get(e))?void 0:t.error})(this.nativeEl))?e:null}get errorTranslator(){return Tb(this,Ty)}set errorTranslator(e){Cb(this,Ty,e)}get src(){return this.getAttribute("src")}set src(e){e!==this.src&&(null==e?this.removeAttribute("src"):this.setAttribute("src",e))}get type(){var e;return null!=(e=this.getAttribute(Iy.TYPE))?e:void 0}set type(e){e!==this.type&&(e?this.setAttribute(Iy.TYPE,e):this.removeAttribute(Iy.TYPE))}get autoplay(){let e=this.getAttribute("autoplay");return null!==e&&(""===e||e)}set autoplay(e){e!==this.autoplay&&(e?this.setAttribute("autoplay","string"==typeof e?e:""):this.removeAttribute("autoplay"))}get preload(){let e=this.getAttribute("preload");return""===e?"auto":["none","metadata","auto"].includes(e)?e:super.preload}set preload(e){e!=this.getAttribute("preload")&&(["","none","metadata","auto"].includes(e)?this.setAttribute("preload",e):this.removeAttribute("preload"))}get debug(){return null!=this.getAttribute(Iy.DEBUG)}set debug(e){e!==this.debug&&(e?this.setAttribute(Iy.DEBUG,""):this.removeAttribute(Iy.DEBUG))}get disableTracking(){return this.hasAttribute(Iy.DISABLE_TRACKING)}set disableTracking(e){e!==this.disableTracking&&this.toggleAttribute(Iy.DISABLE_TRACKING,!!e)}get disableCookies(){return this.hasAttribute(Iy.DISABLE_COOKIES)}set disableCookies(e){e!==this.disableCookies&&(e?this.setAttribute(Iy.DISABLE_COOKIES,""):this.removeAttribute(Iy.DISABLE_COOKIES))}get startTime(){let e=this.getAttribute(Iy.START_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set startTime(e){e!==this.startTime&&(null==e?this.removeAttribute(Iy.START_TIME):this.setAttribute(Iy.START_TIME,`${e}`))}get playbackId(){var e;return null!=(e=this.getAttribute(Iy.PLAYBACK_ID))?e:void 0}set playbackId(e){e!==this.playbackId&&(e?this.setAttribute(Iy.PLAYBACK_ID,e):this.removeAttribute(Iy.PLAYBACK_ID))}get maxResolution(){var e;return null!=(e=this.getAttribute(Iy.MAX_RESOLUTION))?e:void 0}set maxResolution(e){e!==this.maxResolution&&(e?this.setAttribute(Iy.MAX_RESOLUTION,e):this.removeAttribute(Iy.MAX_RESOLUTION))}get minResolution(){var e;return null!=(e=this.getAttribute(Iy.MIN_RESOLUTION))?e:void 0}set minResolution(e){e!==this.minResolution&&(e?this.setAttribute(Iy.MIN_RESOLUTION,e):this.removeAttribute(Iy.MIN_RESOLUTION))}get renditionOrder(){var e;return null!=(e=this.getAttribute(Iy.RENDITION_ORDER))?e:void 0}set renditionOrder(e){e!==this.renditionOrder&&(e?this.setAttribute(Iy.RENDITION_ORDER,e):this.removeAttribute(Iy.RENDITION_ORDER))}get programStartTime(){let e=this.getAttribute(Iy.PROGRAM_START_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set programStartTime(e){null==e?this.removeAttribute(Iy.PROGRAM_START_TIME):this.setAttribute(Iy.PROGRAM_START_TIME,`${e}`)}get programEndTime(){let e=this.getAttribute(Iy.PROGRAM_END_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set programEndTime(e){null==e?this.removeAttribute(Iy.PROGRAM_END_TIME):this.setAttribute(Iy.PROGRAM_END_TIME,`${e}`)}get customDomain(){var e;return null!=(e=this.getAttribute(Iy.CUSTOM_DOMAIN))?e:void 0}set customDomain(e){e!==this.customDomain&&(e?this.setAttribute(Iy.CUSTOM_DOMAIN,e):this.removeAttribute(Iy.CUSTOM_DOMAIN))}get ended(){return Sa(this.nativeEl,this._hls)}get envKey(){var e;return null!=(e=this.getAttribute(Iy.ENV_KEY))?e:void 0}set envKey(e){e!==this.envKey&&(e?this.setAttribute(Iy.ENV_KEY,e):this.removeAttribute(Iy.ENV_KEY))}get beaconCollectionDomain(){var e;return null!=(e=this.getAttribute(Iy.BEACON_COLLECTION_DOMAIN))?e:void 0}set beaconCollectionDomain(e){e!==this.beaconCollectionDomain&&(e?this.setAttribute(Iy.BEACON_COLLECTION_DOMAIN,e):this.removeAttribute(Iy.BEACON_COLLECTION_DOMAIN))}get streamType(){var e;return null!=(e=this.getAttribute(Iy.STREAM_TYPE))?e:Aa(this.nativeEl)}set streamType(e){e!==this.streamType&&(e?this.setAttribute(Iy.STREAM_TYPE,e):this.removeAttribute(Iy.STREAM_TYPE))}get targetLiveWindow(){return this.hasAttribute(Iy.TARGET_LIVE_WINDOW)?+this.getAttribute(Iy.TARGET_LIVE_WINDOW):(e=>{var t,n;return null!=(n=null==(t=va.get(e))?void 0:t.targetLiveWindow)?n:Number.NaN})(this.nativeEl)}set targetLiveWindow(e){e!=this.targetLiveWindow&&(null==e?this.removeAttribute(Iy.TARGET_LIVE_WINDOW):this.setAttribute(Iy.TARGET_LIVE_WINDOW,""+ +e))}get liveEdgeStart(){var e,t;if(this.hasAttribute(Iy.LIVE_EDGE_OFFSET)){let{liveEdgeOffset:n}=this,i=null!=(e=this.nativeEl.seekable.end(0))?e:0,a=null!=(t=this.nativeEl.seekable.start(0))?t:0;return Math.max(a,i-n)}return(e=>{var t;let n=null==(t=va.get(e))?void 0:t.liveEdgeStartOffset;if("number"!=typeof n)return Number.NaN;let i=ka(e);return i.length?i.end(i.length-1)-n:Number.NaN})(this.nativeEl)}get liveEdgeOffset(){if(this.hasAttribute(Iy.LIVE_EDGE_OFFSET))return+this.getAttribute(Iy.LIVE_EDGE_OFFSET)}set liveEdgeOffset(e){e!=this.targetLiveWindow&&(null==e?this.removeAttribute(Iy.LIVE_EDGE_OFFSET):this.setAttribute(Iy.LIVE_EDGE_OFFSET,""+ +e))}get seekable(){return ka(this.nativeEl)}async addCuePoints(e){return Ji(this.nativeEl,e)}get activeCuePoint(){return ta(this.nativeEl)}get cuePoints(){return function(e,t={label:Qi}){let n=zi(e,t.label,"metadata");return null!=n&&n.cues?Array.from(n.cues,(e=>ea(e))):[]}(this.nativeEl)}
2async addChapters(e){return ra(this.nativeEl,e)}get activeChapter(){return oa(this.nativeEl)}get chapters(){return function(e,t={label:na}){var n;let i=zi(e,t.label,"chapters");return null!=(n=null==i?void 0:i.cues)&&n.length?Array.from(i.cues,(e=>aa(e))):[]}(this.nativeEl)}getStartDate(){return function(e,t){if(t){let n=t.playingDate;if(null!=n)return new Date(n.getTime()-1e3*e.currentTime)}return"function"==typeof e.getStartDate?e.getStartDate():new Date(NaN)}(this.nativeEl,this._hls)}get currentPdt(){return function(e,t){if(t&&t.playingDate)return t.playingDate;if("function"==typeof e.getStartDate){let t=e.getStartDate();return new Date(t.getTime()+1e3*e.currentTime)}return new Date(NaN)}(this.nativeEl,this._hls)}get preferPlayback(){let e=this.getAttribute(Iy.PREFER_PLAYBACK);if(e===Mi||e===Di)return e}set preferPlayback(e){e!==this.preferPlayback&&(e===Mi||e===Di?this.setAttribute(Iy.PREFER_PLAYBACK,e):this.removeAttribute(Iy.PREFER_PLAYBACK))}get metadata(){return{...this.getAttributeNames().filter((e=>e.startsWith("metadata-")&&![Iy.METADATA_URL].includes(e))).reduce(((e,t)=>{let n=this.getAttribute(t);return null!=n&&(e[t.replace(/^metadata-/,"").replace(/-/g,"_")]=n),e}),{}),...Tb(this,_y)}}set metadata(e){Cb(this,_y,null!=e?e:{}),this.mux&&this.mux.emit("hb",Tb(this,_y))}get _hlsConfig(){return Tb(this,Ay)}set _hlsConfig(e){Cb(this,Ay,e)}load(){Cb(this,gy,Ca(this,this.nativeEl,Tb(this,gy)))}unload(){Ia(this.nativeEl,Tb(this,gy)),Cb(this,gy,void 0)}attributeChangedCallback(e,t,n){var i,a;switch(Fb.observedAttributes.includes(e)&&!["src","autoplay","preload"].includes(e)&&super.attributeChangedCallback(e,t,n),e){case Iy.PLAYER_SOFTWARE_NAME:this.playerSoftwareName=null!=n?n:void 0;break;case Iy.PLAYER_SOFTWARE_VERSION:this.playerSoftwareVersion=null!=n?n:void 0;break;case"src":{let e=!!t,i=!!n;!e&&i?Ib(this,Sy,Cy).call(this):e&&!i?this.unload():e&&i&&(this.unload(),Ib(this,Sy,Cy).call(this));break}
2case"autoplay":if(n===t)break;null==(i=Tb(this,gy))||i.setAutoplay(this.autoplay);break;case"preload":if(n===t)break;null==(a=Tb(this,gy))||a.setPreload(n);break;case Iy.PLAYBACK_ID:this.src=Ea(this);break;case Iy.DEBUG:{let e=this.debug;this.mux&&console.info("Cannot toggle debug mode of mux data after initialization. Make sure you set all metadata to override before setting the src."),this._hls&&(this._hls.config.debug=e);break}case Iy.METADATA_URL:n&&fetch(n).then((e=>e.json())).then((e=>this.metadata=e)).catch((()=>console.error(`Unable to load or parse metadata JSON from metadata-url ${n}!`)));break;case Iy.STREAM_TYPE:(null==n||n!==t)&&this.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}));break;case Iy.TARGET_LIVE_WINDOW:(null==n||n!==t)&&this.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0,detail:this.targetLiveWindow}))}}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.nativeEl&&this.src&&!Tb(this,gy)&&Ib(this,Sy,Cy).call(this)}disconnectedCallback(){this.unload()}};gy=new WeakMap,yy=new WeakMap,Ey=new WeakMap,_y=new WeakMap,Ay=new WeakMap,ky=new WeakMap,wy=new WeakMap,Ty=new WeakMap,Sy=new WeakSet,Cy=async function(){Tb(this,yy)||(await Cb(this,yy,Promise.resolve()),Cb(this,yy,null),this.load())};var My=class extends(xg(fy(Ry))){};Ub.customElements.get("mux-video")||(Ub.customElements.define("mux-video",My),Ub.MuxVideoElement=My);var Dy,Oy,Ny,Py,Uy,By,Wy,Hy,jy,qy,Vy,Fy=My,$y=Object.defineProperty,Ky=(e,t,n)=>(((e,t,n)=>{t in e?$y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),Gy=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Yy=(e,t,n)=>(Gy(e,t,"read from private field"),n?n.call(e):t.get(e)),zy=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Zy=(e,t,n,i)=>(Gy(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);const Qy={processCallback(e,t,n){if(n)for(const[i,a]of t)if(i in n){const e=n[i];"boolean"==typeof e&&a instanceof rE&&"boolean"==typeof a.element[a.attributeName]?a.booleanValue=e:"function"==typeof e&&a instanceof rE?a.element[a.attributeName]=e:a.value=e}}};
2class Xy extends Er.DocumentFragment{constructor(e,t,n=Qy){var i;super(),zy(this,Dy,void 0),zy(this,Oy,void 0),this.append(e.content.cloneNode(!0)),Zy(this,Dy,Jy(this)),Zy(this,Oy,n),null==(i=n.createCallback)||i.call(n,this,Yy(this,Dy),t),n.processCallback(this,Yy(this,Dy),t)}update(e){Yy(this,Oy).processCallback(this,Yy(this,Dy),e)}}Dy=new WeakMap,Oy=new WeakMap;const Jy=(e,t=[])=>{let n,i;for(let a of e.attributes||[])if(a.value.includes("{{")){const r=new aE;for([n,i]of tE(a.value))if(n){const n=new rE(e,a.name,a.namespaceURI);r.append(n),t.push([i,n])}else r.append(i);a.value=r.toString()}for(let a of e.childNodes)if(1!==a.nodeType||a instanceof HTMLTemplateElement){if(1===a.nodeType||a.data.includes("{{")){const r=[];if(a.data)for([n,i]of tE(a.data))if(n){const n=new oE(e);r.push(n),t.push([i,n])}else r.push(new Text(i));else if(a instanceof HTMLTemplateElement){const n=new sE(e,a);r.push(n),t.push([n.expression,n])}a.replaceWith(...r.flatMap((e=>e.replacementNodes||[e])))}}else Jy(a,t);return t},eE={},tE=e=>{let t,n="",i=0,a=eE[e],r=0;if(a)return a;for(a=[];t=e[r];r++)"{"===t&&"{"===e[r+1]&&"\\"!==e[r-1]&&e[r+2]&&1==++i?(n&&a.push([0,n]),n="",r++):"}"!==t||"}"!==e[r+1]||"\\"===e[r-1]||--i?n+=t||"":(a.push([1,n.trim()]),n="",r++);return n&&a.push([0,(i>0?"{{":"")+n]),eE[e]=a};class nE{get value(){return""}set value(e){}toString(){return this.value}}const iE=new WeakMap;class aE{constructor(){zy(this,Ny,[])}[Symbol.iterator](){return Yy(this,Ny).values()}get length(){return Yy(this,Ny).length}item(e){return Yy(this,Ny)[e]}append(...e){for(const t of e)t instanceof rE&&iE.set(t,this),Yy(this,Ny).push(t)}toString(){return Yy(this,Ny).join("")}}Ny=new WeakMap;class rE extends nE{constructor(e,t,n){super(),zy(this,Hy),zy(this,Py,""),zy(this,Uy,void 0),zy(this,By,void 0),zy(this,Wy,void 0),Zy(this,Uy,e),Zy(this,By,t),Zy(this,Wy,n)}get attributeName(){return Yy(this,By)}get attributeNamespace(){return Yy(this,Wy)}get element(){return Yy(this,Uy)}get value(){return Yy(this,Py)}set value(e){Yy(this,Py)!==e&&(Zy(this,Py,e),Yy(this,Hy,jy)&&1!==Yy(this,Hy,jy).length?Yy(this,Uy).setAttributeNS(Yy(this,Wy),Yy(this,By),Yy(this,Hy,jy)):null==e?Yy(this,Uy).removeAttributeNS(Yy(this,Wy),Yy(this,By)):Yy(this,Uy).setAttributeNS(Yy(this,Wy),Yy(this,By),e))}get booleanValue(){return Yy(this,Uy).hasAttributeNS(Yy(this,Wy),Yy(this,By))}set booleanValue(e){if(Yy(this,Hy,jy)&&1!==Yy(this,Hy,jy).length)throw new DOMException("Value is not fully templatized");this.value=e?"":null}}Py=new WeakMap,Uy=new WeakMap,By=new WeakMap,Wy=new WeakMap,Hy=new WeakSet,jy=function(){return iE.get(this)};class oE extends nE{constructor(e,t){super(),zy(this,qy,void 0),zy(this,Vy,void 0),Zy(this,qy,e),Zy(this,Vy,t?[...t]:[new Text])}get replacementNodes(){return Yy(this,Vy)}get parentNode(){return Yy(this,qy)}get nextSibling(){return Yy(this,Vy)[Yy(this,Vy).length-1].nextSibling}get previousSibling(){return Yy(this,Vy)[0].previousSibling}get value(){return Yy(this,Vy).map((e=>e.textContent)).join("")}set value(e){this.replace(e)}replace(...e){const t=e.flat().flatMap((e=>null==e?[new Text]:e.forEach?[...e]:11===e.nodeType?[...e.childNodes]:e.nodeType?[e]:[new Text(e)]));t.length||t.push(new Text),Zy(this,Vy,function(e,t,n,i=null){let a,r,o,s=0,l=n.length,d=t.length;for(;s<l&&s<d&&t[s]==n[s];)s++;for(;s<l&&s<d&&n[l-1]==t[d-1];)i=n[(--d,--l)];if(s==d)for(;s<l;)e.insertBefore(n[s++],i);if(s==l)for(;s<d;)e.removeChild(t[s++]);else{for(a=t[s];s<l;)o=n[s++],r=a?a.nextSibling:i,a==o?a=r:s<l&&n[s]==r?(e.replaceChild(o,a),a=r):e.insertBefore(o,a);for(;a!=i;)r=a.nextSibling,e.removeChild(a),a=r}return n}(Yy(this,Vy)[0].parentNode,Yy(this,Vy),t,this.nextSibling))}}qy=new WeakMap,Vy=new WeakMap;class sE extends oE{constructor(e,t){let n=t.getAttribute("directive")||t.getAttribute("type"),i=t.getAttribute("expression")||t.getAttribute(n)||"";i.startsWith("{{")&&(i=i.trim().slice(2,-2).trim()),super(e),Ky(this,"directive"),this.expression=i,this.template=t,this.directive=n}}const lE={string:e=>String(e)};class dE{constructor(e){this.template=e,this.state=void 0}}const uE=new WeakMap,cE=new WeakMap,hE={partial:(e,t)=>{t[e.expression]=new dE(e.template)},if:(e,t)=>
2{var n;if(fE(e.expression,t))if(uE.get(e)!==e.template){uE.set(e,e.template);const n=new Xy(e.template,t,pE);e.replace(n),cE.set(e,n)}else null==(n=cE.get(e))||n.update(t);else e.replace(""),uE.delete(e),cE.delete(e)}},mE=Object.keys(hE),pE={processCallback(e,t,n){var i,a;if(n)for(const[r,o]of t){if(o instanceof sE){if(!o.directive){const e=mE.find((e=>o.template.hasAttribute(e)));e&&(o.directive=e,o.expression=o.template.getAttribute(e))}null==(i=hE[o.directive])||i.call(hE,o,n);continue}let e=fE(r,n);e instanceof dE?uE.get(o)!==e.template?(uE.set(o,e.template),e=new Xy(e.template,e.state,pE),o.value=e,cE.set(o,e)):null==(a=cE.get(o))||a.update(e.state):e?(o instanceof rE&&o.attributeName.startsWith("aria-")&&(e=String(e)),o instanceof rE?"boolean"==typeof e?o.booleanValue=e:"function"==typeof e?o.element[o.attributeName]=e:o.value=e:(o.value=e,uE.delete(o),cE.delete(o))):o instanceof rE?o.value=void 0:(o.value=void 0,uE.delete(o),cE.delete(o))}}},vE={"!":e=>!e,"!!":e=>!!e,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,">":(e,t)=>e>t,">=":(e,t)=>
2e>=t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,"??":(e,t)=>null!=e?e:t,"|":(e,t)=>{var n;return null==(n=lE[t])?void 0:n.call(lE,e)}};function fE(e,t={}){var n,i,a,r,o,s,l;const d=function(e){return function(e,t){let n,i,a,r=[];for(;e;){a=null,n=e.length;for(let r in t)i=t[r].exec(e),i&&i.index<n&&(a={token:i[0],type:r,matches:i.slice(1)},n=i.index);n&&r.push({token:e.substr(0,n),type:void 0}),a&&r.push(a),e=e.substr(n+(a?a.token.length:0))}return r}(e,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter((({type:e})=>"ws"!==e))}(e);if(0===d.length||d.some((({type:e})=>!e)))return bE(e);if(">"===(null==(n=d[0])?void 0:n.token)){const n=t[null==(i=d[1])?void 0:i.token];if(!n)return bE(e);const s={...t};n.state=s;const l=d.slice(2);for(let e=0;e<l.length;e+=3){const n=null==(a=l[e])?void 0:a.token,i=null==(r=l[e+1])?void 0:r.token,d=null==(o=l[e+2])?void 0:o.token;n&&"="===i&&(s[n]=yE(d,t))}return n}if(1===d.length)return gE(d[0])?yE(d[0].token,t):bE(e);if(2===d.length){const n=null==(s=d[0])?void 0:s.token,i=vE[n];if(!i||!gE(d[1]))return bE(e);return i(yE(d[1].token,t))}if(3===d.length){const n=null==(l=d[1])?void 0:l.token,i=vE[n];if(!i||!gE(d[0])||!gE(d[2]))return bE(e);const a=yE(d[0].token,t);if("|"===n)return i(a,d[2].token);return i(a,yE(d[2].token,t))}}function bE(e){return console.warn(`Warning: invalid expression \`${e}\``),!1}function gE({type:e}){return["number","boolean","string","param"].includes(e)}function yE(e,t){const n=e[0],i=e.slice(-1);return"true"===e||"false"===e?"true"===e:n===i&&["'",'"'].includes(n)?e.slice(1,-1):dr(e)?parseFloat(e):t[e]}var EE,_E,AE,kE,wE,TE,SE,CE=Object.defineProperty,IE=(e,t,n)=>(((e,t,n)=>{t in e?CE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),xE=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},LE=(e,t,n)=>(xE(e,t,"read from private field"),n?n.call(e):t.get(e)),RE=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},ME=(e,t,n,i)=>(xE(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),DE=(e,t,n)=>(xE(e,t,"access private method"),n);const OE={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},NE=_r.createElement("template");
2NE.innerHTML="\n <style>\n :host {\n display: inline-block;\n line-height: 0;\n }\n\n media-controller {\n width: 100%;\n height: 100%;\n }\n\n media-controller:not([mediasubtitleslist]) media-captions-selectmenu,\n media-captions-button:not([mediasubtitleslist]),\n media-rendition-selectmenu[mediarenditionunavailable],\n media-audio-track-selectmenu[mediaaudiotrackunavailable],\n media-volume-range[mediavolumeunavailable],\n media-airplay-button[mediaairplayunavailable],\n media-fullscreen-button[mediafullscreenunavailable],\n media-cast-button[mediacastunavailable],\n media-pip-button[mediapipunavailable] {\n display: none;\n }\n </style>\n";class PE extends Er.HTMLElement{constructor(){super(),RE(this,kE),RE(this,TE),IE(this,"renderRoot"),IE(this,"renderer"),RE(this,EE,void 0),RE(this,_E,void 0),RE(this,AE,void 0),this.shadowRoot?this.renderRoot=this.shadowRoot:(this.renderRoot=this.attachShadow({mode:"open"}),this.createRenderer());const e=new MutationObserver((e=>{var t;this.mediaController&&!(null==(t=this.mediaController)?void 0:t.breakpointsComputed)||e.some((e=>{const t=e.target;return t===this||"media-controller"===t.localName&&(!!OE[e.attributeName]||!!e.attributeName.startsWith("breakpoint"))}))&&this.render()}));e.observe(this,{attributes:!0}),e.observe(this.renderRoot,{attributes:!0,subtree:!0}),this.addEventListener(Va.BREAKPOINTS_COMPUTED,this.render),DE(this,kE,wE).call(this,"template")}get mediaController(){return this.renderRoot.querySelector("media-controller")}get template(){var e;return null!=(e=LE(this,EE))?e:this.constructor.template}set template(e){ME(this,AE,null),ME(this,EE,e),this.createRenderer()}get props(){var e,t,n;const i=[...Array.from(null!=(t=null==(e=this.mediaController)?void 0:e.attributes)?t:[]).filter((({name:e})=>OE[e]||e.startsWith("breakpoint"))),...Array.from(this.attributes)],a={};for(let r of i){const e=null!=(n=OE[r.name])?n:lr(r.name);let{value:t}=r;null!=t?(dr(t)&&(t=parseFloat(t)),a[e]=""===t||t):a[e]=!1}return a}
2attributeChangedCallback(e,t,n){"template"===e&&t!=n&&DE(this,TE,SE).call(this)}connectedCallback(){DE(this,TE,SE).call(this)}createRenderer(){this.template&&this.template!==LE(this,_E)&&(ME(this,_E,this.template),this.renderer=new Xy(this.template,this.props,this.constructor.processor),this.renderRoot.textContent="",this.renderRoot.append(NE.content.cloneNode(!0),this.renderer))}render(){var e;null==(e=this.renderer)||e.update(this.props)}}EE=new WeakMap,_E=new WeakMap,AE=new WeakMap,kE=new WeakSet,wE=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}},TE=new WeakSet,SE=function(){var e;const t=this.getAttribute("template");if(!t||t===LE(this,AE))return;const n=this.getRootNode(),i=null==(e=null==n?void 0:n.getElementById)?void 0:e.call(n,t);if(i)return ME(this,AE,t),ME(this,EE,i),void this.createRenderer();(function(e){if(!/^(\/|\.\/|https?:\/\/)/.test(e))return!1;const t=/^https?:\/\//.test(e)?void 0:location.origin;try{new URL(e,t)}catch(n){return!1}return!0})(t)&&(ME(this,AE,t),async function(e){const t=await fetch(e);if(200!==t.status)throw new Error(`Failed to load resource: the server responded with a status of ${t.status}`);return t.text()}(t).then((e=>{const t=_r.createElement("template");t.innerHTML=e,ME(this,EE,t),this.createRenderer()})).catch(console.error))},IE(PE,"template"),IE(PE,"observedAttributes",["template"]),IE(PE,"processor",pE),Er.customElements.get("media-theme")||Er.customElements.define("media-theme",PE);var UE=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},BE=(e,t,n)=>(UE(e,t,"read from private field"),n?n.call(e):t.get(e)),WE=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},HE=(e,t,n,i)=>(UE(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),jE=(e,t,n)=>(UE(e,t,"access private method"),n),qE=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if("undefined"==typeof DocumentFragment){class e extends qE{}globalThis.DocumentFragment=e}var VE,FE=class extends qE{},$E={get(e){},define(e,t,n){},upgrade(e){},whenDefined(e){return Promise.resolve(FE)}};VE=new WeakMap;var KE={document:{createElement:function(e,t){return new FE}},DocumentFragment:DocumentFragment,customElements:$E,CustomEvent:class{constructor(e,t={}){WE(this,VE,void 0),HE(this,VE,null==t?void 0:t.detail)}get detail(){return BE(this,VE)}initCustomEvent(){}},EventTarget:qE,HTMLElement:FE,HTMLVideoElement:class extends qE{}},GE="undefined"==typeof window||void 0===globalThis.customElements,YE=GE?KE:globalThis,zE=GE?KE.document:globalThis.document,ZE={code:"en"},QE="en";function XE(e,t=!0){var n,i;let a=t&&null!=(i=null==(n=ZE)?void 0:n[e])?i:e,r=t?ZE.code:QE;return new JE(a,r)}var JE=class{constructor(e,t=(e=>null!=(e=ZE.code)?e:QE)()){this.message=e,this.locale=t}format(e){return this.message.replace(/\{(\w+)\}/g,((t,n)=>{var i;return null!=(i=e[n])?i:""}))}toString(){return this.message}};function e_(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function t_(e){return e.replace(/[-_]([a-z])/g,((e,t)=>t.toUpperCase()))}function n_(e){if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}function i_(e){let t=function(e){let t={};for(let n in e)null!=e[n]&&(t[n]=e[n]);return new URLSearchParams(t)}(e).toString();return t?"?"+t:""}function a_(e){let t=(null!=e?e:"").split(".")[1];if(!t)return{};let n=t.replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(n).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(i)}var r_=(e,t)=>!(!e||!t)&&(!!e.contains(t)||r_(e,t.getRootNode().host)),o_="mux.com",s_=(()=>{try{return"2.7.0"}catch{}return"UNKNOWN"})(),l_=()=>s_,d_=e=>{if(e){if([Ri.LIVE,Ri.ON_DEMAND].includes(e))return e;if(null!=e&&e.includes("live"))return Ri.LIVE}},u_={crossorigin:"crossOrigin",playsinline:"playsInline"};function c_(e){var t;return null!=(t=u_[e])?t:t_(e)}var h_,m_,p_,v_=class{constructor(e,t){WE(this,h_,void 0),WE(this,m_,void 0),WE(this,p_,[]),HE(this,h_,e),HE(this,m_,t)}[Symbol.iterator](){return BE(this,p_).values()}get length(){return BE(this,p_).length}get value(){var e;return null!=(e=BE(this,p_).join(" "))?e:""}set value(e){var t;e!==this.value&&(HE(this,p_,[]),this.add(...null!=(t=null==e?void 0:e.split(" "))?t:[]))}toString(){return this.value}item(e){return BE(this,p_)[e]}values(){return BE(this,p_).values()}keys(){return BE(this,p_).keys()}forEach(e){BE(this,p_).forEach(e)}add(...e){var t,n;e.forEach((e=>{this.contains(e)||BE(this,p_).push(e)})),(""!==this.value||null!=(t=BE(this,h_))&&t.hasAttribute(`${BE(this,m_)}`))&&(null==(n=BE(this,h_))||n.setAttribute(`${BE(this,m_)}`,`${this.value}`))}remove(...e){var t;e.forEach((e=>{BE(this,p_).splice(BE(this,p_).indexOf(e),1)}
2)),null==(t=BE(this,h_))||t.setAttribute(`${BE(this,m_)}`,`${this.value}`)}contains(e){return BE(this,p_).includes(e)}toggle(e,t){return void 0!==t?t?(this.add(e),!0):(this.remove(e),!1):this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){this.remove(e),this.add(t)}};h_=new WeakMap,m_=new WeakMap,p_=new WeakMap;var f_=`[mux-player ${l_()}]`;function b_(...e){console.warn(f_,...e)}function g_(...e){console.error(f_,...e)}function y_(e){var t;let n=null!=(t=e.message)?t:"";if(e.context&&(n+=` ${e.context}`),e.file){let t="https://github.com/muxinc/elements/blob/main/errors/";n+=` ${XE("Read more: ")}\n${t}${e.file}`}b_(n)}var E_={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},__={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},A_=Object.freeze({length:0,start(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),k_=Wb.filter((e=>"error"!==e)),w_=Object.values(E_).filter((e=>![E_.PLAYSINLINE].includes(e))),T_=Object.values(__);var S_=class extends YE.HTMLElement{static get observedAttributes(){return[...w_,...T_]}constructor(){super(),this.querySelectorAll(":scope > track").forEach((e=>{var t;null==(t=this.media)||t.append(e.cloneNode())}));new MutationObserver((e=>{for(let t of e)"childList"===t.type&&(t.removedNodes.forEach((e=>{var t,n;let i=null==(t=this.media)?void 0:t.querySelector(`track[src="${e.src}"]`);i&&(null==(n=this.media)||n.removeChild(i))})),t.addedNodes.forEach((e=>{var t;null==(t=this.media)||t.append(e.cloneNode())})))})).observe(this,{childList:!0,subtree:!0})}attributeChangedCallback(e,t,n){var i,a;switch(e){case __.MUTED:return void(this.media&&(this.media.muted=null!=n,this.media.defaultMuted=null!=n));case __.VOLUME:{let e=null!=(i=n_(n))?i:1;return void(this.media&&(this.media.volume=e))}case __.PLAYBACKRATE:{let e=null!=(a=n_(n))?a:1;return void(this.media&&(this.media.playbackRate=e,this.media.defaultPlaybackRate=e))}}}play(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.play())?t:Promise.reject()}pause(){var e;null==(e=this.media)||e.pause()}requestCast(e){var t;return null==(t=this.media)?void 0:t.requestCast(e)}get media(){var e;return null==(e=this.shadowRoot)?void 0:e.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var e,t;return null==(t=null==(e=this.media)?void 0:e.paused)||t}get duration(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.duration)?t:NaN}get ended(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.ended)&&t}get buffered(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.buffered)?t:A_}get seekable(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.seekable)?t:A_}get readyState(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.readyState)?t:0}get videoWidth(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.videoWidth)?t:0}get videoHeight(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.videoHeight)?t:0}get currentTime(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.currentTime)?t:0}set currentTime(e){this.media&&(this.media.currentTime=Number(e))}get volume(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.volume)?t:1}set volume(e){this.media&&(this.media.volume=Number(e))}get playbackRate(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.playbackRate)?t:1}set playbackRate(e){this.media&&(this.media.playbackRate=Number(e))}get defaultPlaybackRate(){var e;return null!=(e=n_(this.getAttribute(__.PLAYBACKRATE)))?e:1}set defaultPlaybackRate(e){null!=e?this.setAttribute(__.PLAYBACKRATE,`${e}`):this.removeAttribute(__.PLAYBACKRATE)}get crossOrigin(){return C_(this,E_.CROSSORIGIN)}set crossOrigin(e){this.setAttribute(E_.CROSSORIGIN,`${e}`)}get autoplay(){return null!=C_(this,E_.AUTOPLAY)}set autoplay(e){e?this.setAttribute(E_.AUTOPLAY,"string"==typeof e?e:""):this.removeAttribute(E_.AUTOPLAY)}get loop(){return null!=C_(this,E_.LOOP)}set loop(e){e?this.setAttribute(E_.LOOP,""):this.removeAttribute(E_.LOOP)}get muted(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.muted)&&t}set muted(e){this.media&&(this.media.muted=!!e)}get defaultMuted(){return null!=C_(this,E_.MUTED)}set defaultMuted(e){e?this.setAttribute(E_.MUTED,""):this.removeAttribute(E_.MUTED)}
2get playsInline(){return null!=C_(this,E_.PLAYSINLINE)}set playsInline(e){g_("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(e){["","none","metadata","auto"].includes(e)?this.setAttribute(E_.PRELOAD,e):this.removeAttribute(E_.PRELOAD)}};function C_(e,t){return e.media?e.media.getAttribute(t):e.getAttribute(t)}var I_=S_,x_="\n :host {\n z-index: 100;\n display: var(--media-dialog-display, flex);\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n box-sizing: border-box;\n color: #fff;\n line-height: 18px;\n font-family: Arial, sans-serif;\n padding: var(--media-dialog-backdrop-padding, 0);\n background: var(--media-dialog-backdrop-background,\n linear-gradient(to bottom, rgba(20, 20, 30, 0.7) 50%, rgba(20, 20, 30, 0.9))\n );\n /* Needs to use !important to prevent overwrite of media-chrome */\n transition: var(--media-dialog-transition-open, visibility .2s, opacity .2s) !important;\n transform: var(--media-dialog-transform-open, none) !important;\n visibility: visible !important;\n opacity: 1 !important;\n pointer-events: auto !important;\n }\n\n :host(:not([open])) {\n /* Needs to use !important to prevent overwrite of media-chrome */\n transition: var(--media-dialog-transition-close, visibility .1s, opacity .1s) !important;\n transform: var(--media-dialog-transform-close, none) !important;\n visibility: hidden !important;\n opacity: 0 !important;\n pointer-events: none !important;\n }\n\n :focus-visible {\n box-shadow: 0 0 0 2px rgba(27, 127, 204, 0.9);\n }\n\n .dialog {\n position: relative;\n box-sizing: border-box;\n background: var(--media-dialog-background, none);\n padding: var(--media-dialog-padding, 10px);\n width: min(320px, 100%);\n word-wrap: break-word;\n max-height: 100%;\n overflow: auto;\n text-align: center;\n line-height: 1.4;\n }\n",L_=zE.createElement("template");L_.innerHTML=`\n <style>\n ${x_}\n </style>\n\n <div class="dialog">\n <slot></slot>\n </div>\n`;var R_=class extends YE.HTMLElement{constructor(){var e;super(),this.attachShadow({mode:"open"}),null==(e=this.shadowRoot)||e.appendChild(this.constructor.template.content.cloneNode(!0))}show(){this.setAttribute("open",""),this.dispatchEvent(new CustomEvent("open",{composed:!0,bubbles:!0})),M_(this)}close(){this.hasAttribute("open")&&(this.removeAttribute("open"),this.dispatchEvent(new CustomEvent("close",{composed:!0,bubbles:!0})),function(e){e._previouslyFocusedElement instanceof HTMLElement&&e._previouslyFocusedElement.focus()}(this))}attributeChangedCallback(e,t,n){"open"===e&&t!==n&&(null!=n?this.show():this.close())}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","dialog"),this.hasAttribute("open")&&M_(this)}};function M_(e){let t=new CustomEvent("initfocus",{composed:!0,bubbles:!0,cancelable:!0});if(e.dispatchEvent(t),t.defaultPrevented)return;let n=e.querySelector("[autofocus]:not([disabled])");!n&&e.tabIndex>=0&&(n=e),n||(n=D_(e.shadowRoot)),e._previouslyFocusedElement=zE.activeElement,zE.activeElement instanceof HTMLElement&&zE.activeElement.blur(),e.addEventListener("transitionend",(()=>{n instanceof HTMLElement&&n.focus({preventScroll:!0})}),{once:!0})}function D_(e){let t=["button","input","keygen","select","textarea"].map((function(e){return e+":not([disabled])"}));t.push('[tabindex]:not([disabled]):not([tabindex=""])');let n=null==e?void 0:e.querySelector(t.join(", "));if(!n&&"attachShadow"in Element.prototype){let t=(null==e?void 0:e.querySelectorAll("*"))||[];for(let e=0;e<t.length&&!(t[e].tagName&&t[e].shadowRoot&&(n=D_(t[e].shadowRoot),n));e++);}return n}R_.styles=x_,R_.template=L_,R_.observedAttributes=["open"],YE.customElements.get("media-dialog")||(YE.customElements.define("media-dialog",R_),YE.MediaDialog=R_);var O_=R_,N_=zE.createElement("template");N_.innerHTML=`\n <style>\n ${O_.styles}\n\n .close {\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 28px;\n height: 28px;\n position: absolute;\n top: 1rem;\n right: 1rem;\n }\n </style>\n\n <div class="dialog">\n <slot></slot>\n </div>\n\n <slot name="close">\n <button class="close" tabindex="0">\n <svg fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />\n </svg>\n </button>\n </slot>\n`;var P_=class extends O_{constructor(){var e,t;super(),null==(t=null==(e=this.shadowRoot)?void 0:e.querySelector(".close"))||t.addEventListener("click",(()=>{this.close()}))}};P_.template=N_,YE.customElements.get("mxp-dialog")||(YE.customElements.define("mxp-dialog",P_),YE.MxpDialog=P_);var U_=new WeakMap,B_=class e{constructor(e,t){this.element=e,this.type=t,this.element.addEventListener(this.type,this);let n=U_.get(this.element);n&&n.set(this.type,this)}set(e){if("function"==typeof e)this.handleEvent=e.bind(this.element);else if("object"==typeof e&&"function"==typeof e.handleEvent)this.handleEvent=e.handleEvent.bind(e);else{this.element.removeEventListener(this.type,this);let e=U_.get(this.element);
2e&&e.delete(this.type)}}static for(t){U_.has(t.element)||U_.set(t.element,new Map);let n=t.attributeName.slice(2),i=U_.get(t.element);return i&&i.has(n)?i.get(n):new e(t.element,n)}};function W_(e,t){(function(e,t){if(e instanceof rE&&t instanceof Element){let n=e.element;return n[e.attributeName]!==t&&(e.element.removeAttributeNS(e.attributeNamespace,e.attributeName),n[e.attributeName]=t),!0}return!1})(e,t)||function(e,t){if("boolean"==typeof t&&e instanceof rE){let n=e.attributeNamespace;return t!==e.element.hasAttributeNS(n,e.attributeName)&&(e.booleanValue=t),!0}return!1}(e,t)||function(e,t){return!!(e instanceof rE&&e.attributeName.startsWith("on"))&&(B_.for(e).set(t),e.element.removeAttributeNS(e.attributeNamespace,e.attributeName),!0)}(e,t)||function(e,t){return!1===t&&e instanceof oE&&(e.replace(""),!0)}(e,t)||function(e,t){return t instanceof V_&&e instanceof oE&&(t.renderInto(e),!0)}(e,t)||function(e,t){return t instanceof DocumentFragment&&e instanceof oE&&(t.childNodes.length&&e.replace(...t.childNodes),!0)}(e,t)||function(e,t){if(e instanceof rE){let n=e.attributeNamespace,i=e.element.getAttributeNS(n,e.attributeName);return String(t)!==i&&(e.value=String(t)),!0}e.value=String(t)}(e,t)}var H_=new Map,j_=new WeakMap,q_=new WeakMap,V_=class{constructor(e,t,n){this.strings=e,this.values=t,this.processor=n,this.stringsKey=this.strings.join("�")}get template(){if(H_.has(this.stringsKey))return H_.get(this.stringsKey);{let e=zE.createElement("template"),t=this.strings.length-1;return e.innerHTML=this.strings.reduce(((e,n,i)=>e+n+(i<t?`{{ ${i} }}`:"")),""),H_.set(this.stringsKey,e),e}}renderInto(e){var t;let n=this.template;if(j_.get(e)!==n){j_.set(e,n);let t=new Xy(n,this.values,this.processor);return q_.set(e,t),void(e instanceof oE?e.replace(...t.children):e.appendChild(t))}let i=q_.get(e);null==(t=null==i?void 0:i.update)||t.call(i,this.values)}},F_={processCallback(e,t,n){var i;if(n)for(let[a,r]of t)if(a in n){W_(r,null!=(i=n[a])?i:"")}}};function $_(e,...t){return new V_(e,t,F_)}var K_=Object.values({TOP:"top",CENTER:"center",BOTTOM:"bottom",LAYER:"layer",MEDIA_LAYER:"media-layer",POSTER_LAYER:"poster-layer",VERTICAL_LAYER:"vertical-layer",CENTERED_LAYER:"centered-layer",GESTURE_LAYER:"gesture-layer",CONTROLLER_LAYER:"controller",BUTTON:"button",RANGE:"range",DISPLAY:"display",CONTROL_BAR:"control-bar",SELECTMENU:"selectmenu",LISTBOX:"listbox",OPTION:"option",POSTER:"poster",LIVE:"live",PLAY:"play",PRE_PLAY:"pre-play",SEEK_BACKWARD:"seek-backward",SEEK_FORWARD:"seek-forward",MUTE:"mute",CAPTIONS:"captions",AIRPLAY:"airplay",PIP:"pip",FULLSCREEN:"fullscreen",CAST:"cast",PLAYBACK_RATE:"playback-rate",VOLUME:"volume",TIME:"time",TITLE:"title",AUDIO_TRACK:"audio-track",RENDITION:"rendition"}).join(", "),G_=e=>{var t,n,i,a,r,o,s,l,d,u,c,h,m,p,v,f,b,g,y,E,_,A,k,w,T,S,C,I,x,L,R,M,D,O,N,P;return $_` 3 <media-theme 4 template="${e.themeTemplate||!1}" 5 defaultstreamtype="${null!=(t=e.defaultStreamType)&&t}" 6 hotkeys="${(e=>{let t=e.hotKeys?`${e.hotKeys}`:"";return"live"===d_(e.streamType)&&(t+=" noarrowleft noarrowright"),t})(e)||!1}" 7 nohotkeys="${e.noHotKeys||!e.hasSrc||e.isDialogOpen||!1}" 8 noautoseektolive="${!(null==(n=e.streamType)||!n.includes(Ri.LIVE))&&0!==e.targetLiveWindow}" 9 novolumepref="${e.novolumepref||!1}" 10 disabled="${!e.hasSrc||e.isDialogOpen}" 11 audio="${null!=(i=e.audio)&&i}" 12 style="${null!=(a=function(e){let t="";return Object.entries(e).forEach((([e,n])=>{null!=n&&(t+=`${e_(e)}: ${n}; `)})),t?t.trim():void 0}({"--media-primary-color":e.primaryColor,"--media-secondary-color":e.secondaryColor,"--media-accent-color":e.accentColor}))&&a}" 13 defaultsubtitles="${!e.defaultHiddenCaptions}" 14 forwardseekoffset="${null!=(r=e.forwardSeekOffset)&&r}" 15 backwardseekoffset="${null!=(o=e.backwardSeekOffset)&&o}" 16 playbackrates="${null!=(s=e.playbackRates)&&s}" 17 defaultshowremainingtime="${null!=(l=e.defaultShowRemainingTime)&&l}" 18 defaultduration="${null!=(d=e.defaultDuration)&&d}" 19 hideduration="${null!=(u=e.hideDuration)&&u}" 20 title="${null!=(c=e.title)&&c}" 21 exportparts="${K_}" 22 > 23 <mux-video 24 slot="media" 25 target-live-window="${null!=(h=e.targetLiveWindow)&&h}" 26 stream-type="${null!=(m=d_(e.streamType))&&m}" 27 crossorigin="${null!=(p=e.crossOrigin)?p:""}" 28 playsinline 29 autoplay="${null!=(v=e.autoplay)&&v}" 30 muted="${null!=(f=e.muted)&&f}" 31 loop="${null!=(b=e.loop)&&b}" 32 preload="${null!=(g=e.preload)&&g}" 33 debug="${null!=(y=e.debug)&&y}" 34 prefer-cmcd="${null!=(E=e.preferCmcd)&&E}" 35 disable-tracking="${null!=(_=e.disableTracking)&&_}" 36 disable-cookies="${null!=(A=e.disableCookies)&&A}" 37 prefer-playback="${null!=(k=e.preferPlayback)&&k}" 38 start-time="${null!=e.startTime&&e.startTime}" 39 beacon-collection-domain="${null!=(w=e.beaconCollectionDomain)&&w}" 40 player-software-name="${null!=(T=e.playerSoftwareName)&&T}" 41 player-software-version="${null!=(S=e.playerSoftwareVersion)&&S}"
42 env-key="${null!=(C=e.envKey)&&C}" 43 custom-domain="${null!=(I=e.customDomain)&&I}" 44 src="${e.src?e.src:!!e.playbackId&&Ea(e)}" 45 cast-src="${e.src?e.src:!!e.playbackId&&Ea(e)}" 46 exportparts="video" 47 > 48 ${e.storyboard?$_`<track label="thumbnails" default kind="metadata" src="${e.storyboard}" />`:$_``} 49 </mux-video> 50 <slot name="poster" slot="poster"> 51 <media-poster-image 52 part="poster" 53 exportparts="poster, img" 54 src="${""!==e.poster&&(null!=(x=e.poster)&&x)}" 55 placeholdersrc="${null!=(L=e.placeholder)&&L}" 56 ></media-poster-image> 57 </slot> 58 <mxp-dialog 59 no-auto-hide 60 open="${null!=(R=e.isDialogOpen)&&R}" 61 onclose="${e.onCloseErrorDialog}" 62 oninitfocus="${e.onInitFocusDialog}" 63 > 64 ${null!=(M=e.dialog)&&M.title?$_`<h3>${e.dialog.title}</h3>`:$_``} 65 <p> 66 ${null==(D=e.dialog)?void 0:D.message} 67 ${null!=(O=e.dialog)&&O.linkUrl?$_`<a 68 href="${e.dialog.linkUrl}" 69 target="_blank" 70 rel="external noopener" 71 aria-label="${null!=(N=e.dialog.linkText)?N:""} ${XE("(opens in a new window)")}" 72 >${null!=(P=e.dialog.linkText)?P:e.dialog.linkUrl}</a 73 >`:$_``} 74 </p> 75 </mxp-dialog> 76 </media-theme> 77`};function Y_(e,t,n,i,a){var r,o,s;let l={},d={};switch(e.code){case Ii.MEDIA_ERR_NETWORK:switch(l.title=XE("Network Error",a),l.message=e.message,null==(r=e.data)?void 0:r.response.code){case 412:l.title=XE("Video is not currently available",a),l.message=XE("The live stream or video file are not yet ready.",a),d.message=XE("This playback-id may belong to a live stream that is not currently active or an asset that is not ready.",a),d.file="412-not-playable.md";break;case 404:l.title=XE("Video does not exist",a),l.message="",d.message=XE("This playback-id does not exist. You may have used an Asset ID or an ID from a different resource.",a),d.file="404-not-found.md";break;case 403:{if(l.title=XE("Invalid playback URL",a),l.message=XE("The video URL or playback-token are formatted with incorrect or incomplete information.",a),d.message=XE("403 error trying to access this playback URL. If this is a signed URL, you might need to provide a playback-token.",a),d.file="missing-signed-tokens.md",!i)break;let{exp:e,aud:t,sub:r}=a_(i),o=r!==n,s="v"!==t,u={timeStyle:"medium",dateStyle:"medium"};if(Date.now()>1e3*e){l.title=XE("Video URL has expired",a),l.message=XE("The videoâs secured playback-token has expired.",a),d.message=XE("The videoâs secured playback-token has expired.",a),d.context=XE("Expired at: {expiredDate}. Current time: {currentDate}.",a).format({expiredDate:new Intl.DateTimeFormat(ZE.code,u).format(1e3*e),currentDate:new Intl.DateTimeFormat(ZE.code,u).format(Date.now())}),d.file="403-expired-token.md";break}if(o){l.title=XE("Video URL is formatted incorrectly",a),l.message=XE("The videoâs playback ID does not match the one encoded in the playback-token.",a),d.message=XE("The videoâs playback ID does not match the one encoded in the playback-token.",a),d.context=XE("Specified playback ID: {playbackId} and the playback ID encoded in the playback-token: {tokenPlaybackId}",a).format({playbackId:n,tokenPlaybackId:r}),d.file="403-playback-id-mismatch.md";break}if(s){l.title=XE("Video URL is formatted incorrectly",a),l.message=XE("The playback-token is formatted with incorrect information.",a),d.message=XE("The playback-token is formatted with incorrect information.",a),d.context=XE("The playback-token has an incorrect aud value: {tokenType}. aud value should be v.",a).format({tokenType:t}),d.file="403-incorrect-aud-value.md";break}d.message=XE("403 error trying to access this playback URL. If this is a signed playback ID, the token might not have been generated correctly.",a),d.file="403-malformatted-token.md";break}}break;case Ii.MEDIA_ERR_DECODE:{let{message:t}=e;l={title:XE("Media Error",a),message:t},d.file="media-decode-error.md";break}case Ii.MEDIA_ERR_SRC_NOT_SUPPORTED:{let r=null==(s=null==(o=e.data)?void 0:o.response)?void 0:s.code;if(r>=400&&r<500){e.code=Ii.MEDIA_ERR_NETWORK,e.data={response:{code:r}},({dialog:l,devlog:d}=Y_(e,t,n,i));break}l={title:XE("Source Not Supported",a),message:e.message},d.file="media-src-not-supported.md";break}default:l={title:XE("Error",a),message:e.message}}return t&&(l={title:XE("Your device appears to be offline",a),message:XE("Check your internet connection and try reloading this video.",a)}),{dialog:l,devlog:d}}var z_=zE.createElement("template");"innerHTML"in z_&&(z_.innerHTML='<template id="media-theme-gerwig">\n <style>\n @keyframes pre-play-hide {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n\n 30% {\n transform: scale(0.7);\n }\n\n 100% {\n transform: scale(1.5);\n opacity: 0;\n }\n }\n\n :host {\n --_primary-color: var(--media-primary-color, #fff);\n --_secondary-color: var(--media-secondary-color, transparent);\n --_accent-color: var(--media-accent-color, #fa50b5);\n --_text-color: var(--media-text-color, #000);\n\n --media-icon-color: var(--_primary-color);\n --media-control-background: var(--_secondary-color);\n --media-control-hover-background: var(--_accent-color);\n --media-time-buffered-color: rgba(255, 255, 255, 0.4);\n --media-preview-time-text-shadow: none;\n --media-control-height: 14px;\n --media-control-padding: 6px;\n\n color: var(--_primary-color);\n display: inline-block;\n width: 100%;\n height: 100%;\n }\n\n :host([audio]) {\n --_secondary-color: var(--media-secondary-color, black);\n --media-preview-time-text-shadow: none;\n }\n\n :host([audio]) ::slotted([slot=\'media\']) {\n height: 0px;\n }\n\n :host([audio]) media-loading-indicator {\n display: none;\n }\n\n :host([audio]) media-controller {\n background: transparent;\n }\n\n :host([audio]) media-controller::part(vertical-layer) {\n background: transparent;\n }\n\n :host([audio]) media-control-bar {\n width: 100%;\n background-color: var(--media-control-background);\n }\n\n /*\n * 0.433s is the transition duration for VTT Regions.\n * Borrowed here, so the captions don\'t move too fast.\n */\n media-controller ::slotted([slot=\'media\']) {\n --media-webkit-text-track-transform: translateY(0) scale(0.98);\n --media-webkit-text-track-transition: transform 0.433s ease-out 0.3s;\n }\n media-controller:is([mediapaused], :not([userinactive])) ::slotted([slot=\'media\']) {\n --media-webkit-text-track-transform: translateY(-50px) scale(0.98);\n --media-webkit-text-track-transition: transform 0.15s ease;\n }\n\n media-time-range {\n --media-box-padding-left: 6px;\n --media-box-padding-right: 6px;\n --media-range-bar-color: var(--_accent-color);\n --media-time-range-buffered-color: var(--_primary-color);\n --media-range-track-color: transparent;\n --media-range-track-background: rgba(255, 255, 255, 0.4);\n --media-range-thumb-background: radial-gradient(\n circle,\n #000 0%,\n #000 25%,\n var(--_accent-color) 25%,\n var(--_accent-color)\n );\n --media-range-thumb-width: 12px;\n --media-range-thumb-height: 12px;\n --media-range-thumb-transform: scale(0);\n --media-range-thumb-transition: transform 0.3s;\n --media-range-thumb-opacity: 1;\n --media-preview-background: var(--_primary-color);\n --media-box-arrow-background: var(--_primary-color);
77\n --media-preview-thumbnail-border: 5px solid var(--_primary-color);\n --media-preview-border-radius: 5px;\n --media-text-color: var(--_text-color);\n --media-control-hover-background: transparent;\n --media-preview-chapter-text-shadow: none;\n color: var(--_accent-color);\n padding: 0 6px;\n }\n\n :host([audio]) media-time-range {\n --media-preview-time-padding: 1.5px 6px;\n --media-preview-box-margin: 0 0 -5px;\n }\n\n media-time-range:hover {\n --media-range-thumb-transform: scale(1);\n }\n\n media-preview-thumbnail {\n border-bottom-width: 0;\n }\n\n [part~=\'listbox\'] {\n border-radius: 2px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n bottom: calc(100% + 16px);\n padding: 2.5px 10px;\n }\n\n [part~=\'listbox\']::part(indicator) {\n fill: var(--_accent-color);\n }\n\n [part~=\'listbox\']::part(option) {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 6px 10px;\n min-height: 34px;\n }\n\n [part~=\'listbox\']::part(option-selected) {\n font-weight: 700;\n }\n\n media-captions-selectmenu,\n media-rendition-selectmenu,\n media-audio-track-selectmenu,\n media-playback-rate-listbox[part~=\'listbox\'] {\n --media-listbox-background: var(--_primary-color);\n --media-option-selected-background: transparent;\n --media-option-hover-background: transparent;\n --media-option-hover-outline: var(--_accent-color) solid 1px;\n --media-text-color: var(--_text-color);\n }\n\n /* The icon is a circle so make it 16px high instead of 14px for more balance. */\n media-audio-track-selectmenu {\n --media-control-padding: 5px;\n --media-control-height: 16px;\n }\n\n media-playback-rate-button {\n --media-control-padding: 6px 3px;\n min-width: 4.4ch;\n }\n\n media-playback-rate-listbox[part~=\'listbox\'] {\n --media-listbox-layout: row;\n --media-option-selected-background: var(--_accent-color);\n margin-right: 6px;\n padding: 0;\n }\n\n media-playback-rate-listbox[part~=\'listbox\']::part(option) {\n padding: 6px 4px;\n }\n\n media-playback-rate-listbox[part~=\'listbox\']::part(option-selected) {\n color: #fff;\n }\n\n :host(:not([audio])) media-time-range {\n /* Adding px is required here for calc() */\n --media-range-padding: 0px;\n background: transparent;\n z-index: 10;\n height: 10px;\n bottom: -3px;\n width: 100%;\n }\n\n media-control-bar :is([role=\'button\'], [role=\'switch\'], button) {\n line-height: 0;\n }\n\n media-control-bar :is([part*=\'button\'], [part*=\'range\'], [part*=\'display\']) {\n border-radius: 3px;\n }\n\n .spacer {\n flex-grow: 1;\n background-color: var(--media-control-background, rgba(20, 20, 30, 0.7));\n }\n\n media-control-bar[slot~=\'top-chrome\'] {\n min-height: 42px;\n pointer-events: none;\n }\n\n media-control-bar {\n --gradient-steps: hsl(0 0% 0% / 0) 0%, hsl(0 0% 0% / 0.013) 8.1%, hsl(0 0% 0% / 0.049) 15.5%,\n hsl(0 0% 0% / 0.104) 22.5%, hsl(0 0% 0% / 0.175) 29%, hsl(0 0% 0% / 0.259) 35.3%, hsl(0 0% 0% / 0.352) 41.2%,\n hsl(0 0% 0% / 0.45) 47.1%, hsl(0 0% 0% / 0.55) 52.9%, hsl(0 0% 0% / 0.648) 58.8%, hsl(0 0% 0% / 0.741) 64.7%,\n hsl(0 0% 0% / 0.825) 71%, hsl(0 0% 0% / 0.896) 77.5%, hsl(0 0% 0% / 0.951) 84.5%, hsl(0 0% 0% / 0.987) 91.9%,\n hsl(0 0% 0%) 100%;\n }\n\n :host([title]:not([audio])) media-control-bar[slot=\'top-chrome\']::before {\n content: \'\';\n position: absolute;\n width: 100%;\n padding-bottom: min(100px, 25%);\n background: linear-gradient(to top, var(--gradient-steps));\n opacity: 0.8;\n pointer-events: none;\n }\n\n :host(:not([audio])) media-control-bar[part~=\'bottom\']::before {\n content: \'\';\n position: absolute;\n width: 100%;\n bottom: 0;\n left: 0;\n padding-bottom: min(100px, 25%);\n background: linear-gradient(to bottom, var(--gradient-steps));\n opacity: 0.8;\n z-index: 1;\n pointer-events: none;\n }\n\n media-control-bar[part~=\'bottom\'] > * {\n z-index: 2;\n }\n\n media-control-bar[part~=\'bottom\'] {\n padding: 6px 6px;\n }\n\n media-control-bar[slot~=\'top-chrome\'] > * {\n --media-control-background: transparent;\n --media-control-hover-background: transparent;\n position: relative;\n }\n\n media-controller::part(vertical-layer) {\n transition: background-color 1s;\n }\n\n media-controller:is([mediapaused], :not([userinactive]))::part(vertical-layer) {\n background-color: var(--controls-backdrop-color, var(--controls, transparent));\n transition: background-color 0.25s;\n }
77\n\n .center-controls {\n --media-button-icon-width: 100%;\n --media-button-icon-height: auto;\n pointer-events: none;\n width: 100%;\n display: flex;\n flex-flow: row;\n align-items: center;\n justify-content: center;\n filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.25)) drop-shadow(0 0 6px rgb(0 0 0 / 0.25));\n paint-order: stroke;\n stroke: rgba(102, 102, 102, 1);\n stroke-width: 0.3px;\n text-shadow:\n 0 0 2px rgb(0 0 0 / 0.25),\n 0 0 6px rgb(0 0 0 / 0.25);\n }\n\n .center-controls media-play-button {\n --media-control-background: transparent;\n --media-control-hover-background: transparent;\n --media-control-padding: 0;\n width: 40px;\n }\n\n [breakpointsm] .center-controls media-play-button {\n width: 90px;\n height: 90px;\n border-radius: 50%;\n transition: background 0.4s;\n padding: 24px;\n --media-control-background: #000;\n --media-control-hover-background: var(--_accent-color);\n }\n\n .center-controls media-seek-backward-button,\n .center-controls media-seek-forward-button {\n --media-control-background: transparent;\n --media-control-hover-background: transparent;\n padding: 0;\n margin: 0 20px;\n width: max(33px, min(8%, 40px));\n }\n\n [breakpointsm]:not([audio]) .center-controls.pre-playback {\n display: grid;\n align-items: initial;\n justify-content: initial;\n height: 100%;\n overflow: hidden;\n }\n\n [breakpointsm]:not([audio]) .center-controls.pre-playback media-play-button {\n place-self: var(--_pre-playback-place, center);\n grid-area: 1 / 1;\n margin: 16px;\n }\n\n /* Show and hide controls or pre-playback state */\n\n [breakpointsm]:is([mediahasplayed], :not([mediapaused])):not([audio])\n .center-controls.pre-playback\n media-play-button {\n animation: 0.3s linear forwards pre-play-hide;\n }\n\n .autoplay-unmute {\n --media-control-hover-background: transparent;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.25)) drop-shadow(0 0 6px rgb(0 0 0 / 0.25));\n }\n\n .autoplay-unmute-btn {\n --media-control-height: 16px;\n border-radius: 8px;\n background: #000;\n color: var(--_primary-color);\n display: flex;\n align-items: center;\n padding: 8px 16px;\n font-size: 18px;\n font-weight: 500;\n cursor: pointer;\n }\n\n .autoplay-unmute-btn:hover {\n background: var(--_accent-color);\n }\n\n [breakpointsm] .autoplay-unmute-btn {\n --media-control-height: 30px;\n padding: 14px 24px;\n font-size: 26px;\n }\n\n .autoplay-unmute-btn svg {\n margin: 0 6px 0 0;\n }\n\n [breakpointsm] .autoplay-unmute-btn svg {\n margin: 0 10px 0 0;\n }\n\n media-controller:not([audio]):not([mediahasplayed]) *:is(media-control-bar, media-time-range) {\n display: none;\n }\n\n media-loading-indicator {\n --media-loading-icon-width: 100%;\n --media-button-icon-height: auto;\n display: var(--media-control-display, var(--media-loading-indicator-display, flex));\n pointer-events: none;\n position: absolute;\n width: min(15%, 150px);\n flex-flow: row;\n align-items: center;\n justify-content: center;\n }\n\n /* Intentionally don\'t target the div for transition but the children\n of the div. Prevents messing with media-chrome\'s autohide feature. */\n media-loading-indicator + div * {\n transition: opacity 0.15s;\n opacity: 1;\n }\n\n media-loading-indicator[medialoading]:not([mediapaused]) ~ div > * {\n opacity: 0;\n transition-delay: 400ms;\n }\n\n media-volume-range {\n width: min(100%, 100px);\n --media-range-padding-left: 10px;\n --media-range-padding-right: 10px;\n --media-range-thumb-width: 12px;\n --media-range-thumb-height: 12px;\n --media-range-thumb-background: radial-gradient(\n circle,\n #000 0%,\n #000 25%,\n var(--_primary-color) 25%,\n var(--_primary-color)\n );\n --media-control-hover-background: none;\n }\n\n media-time-display {\n white-space: nowrap;\n }\n\n /* Generic style for explicitly disabled controls */\n media-control-bar[part~=\'bottom\'] [disabled],\n media-control-bar[part~=\'bottom\'] [aria-disabled=\'true\'] {\n opacity: 60%;
77\n cursor: not-allowed;\n }\n\n media-text-display {\n --media-font-size: 16px;\n --media-control-padding: 14px;\n font-weight: 500;\n }\n\n media-play-button.animated *:is(g, path) {\n transition: all 0.3s;\n }\n\n media-play-button.animated[mediapaused] .pause-icon-pt1 {\n opacity: 0;\n }\n\n media-play-button.animated[mediapaused] .pause-icon-pt2 {\n transform-origin: center center;\n transform: scaleY(0);\n }\n\n media-play-button.animated[mediapaused] .play-icon {\n clip-path: inset(0 0 0 0);\n }\n\n media-play-button.animated:not([mediapaused]) .play-icon {\n clip-path: inset(0 0 0 100%);\n }\n\n media-seek-forward-button,\n media-seek-backward-button {\n --media-font-weight: 400;\n }\n\n .mute-icon {\n display: inline-block;\n }\n\n .mute-icon :is(path, g) {\n transition: opacity 0.5s;\n }\n\n .muted {\n opacity: 0;\n }\n\n media-mute-button[mediavolumelevel=\'low\'] :is(.volume-medium, .volume-high),\n media-mute-button[mediavolumelevel=\'medium\'] :is(.volume-high) {\n opacity: 0;\n }\n\n media-mute-button[mediavolumelevel=\'off\'] .unmuted {\n opacity: 0;\n }\n\n media-mute-button[mediavolumelevel=\'off\'] .muted {\n opacity: 1;\n }\n\n /**\n * Our defaults for these buttons are to hide them at small sizes\n * users can override this with CSS\n */\n media-controller:not([breakpointsm]):not([audio]) {\n --bottom-play-button: none;\n --bottom-seek-backward-button: none;\n --bottom-seek-forward-button: none;\n --bottom-time-display: none;\n --bottom-playback-rate-selectmenu: none;\n --bottom-pip-button: none;\n }\n </style>\n\n <template partial="TitleDisplay">\n <template if="title">\n <media-text-display part="top title display" class="title-display">{{title}}</media-text-display>\n </template>\n </template>\n\n <template partial="PlayButton">\n <media-play-button\n part="{{section ?? \'bottom\'}} play button"\n disabled="{{disabled}}"\n aria-disabled="{{disabled}}"\n class="animated"\n >\n <svg aria-hidden="true" viewBox="0 0 18 14" slot="icon">\n <g class="play-icon">\n <path\n d="M15.5987 6.2911L3.45577 0.110898C2.83667 -0.204202 2.06287 0.189698 2.06287 0.819798V13.1802C2.06287 13.8103 2.83667 14.2042 3.45577 13.8891L15.5987 7.7089C16.2178 7.3938 16.2178 6.6061 15.5987 6.2911Z"\n />\n </g>\n <g class="pause-icon">\n <path\n class="pause-icon-pt1"\n d="M5.90709 0H2.96889C2.46857 0 2.06299 0.405585 2.06299 0.9059V13.0941C2.06299 13.5944 2.46857 14 2.96889 14H5.90709C6.4074 14 6.81299 13.5944 6.81299 13.0941V0.9059C6.81299 0.405585 6.4074 0 5.90709 0Z"\n />\n <path\n class="pause-icon-pt2"\n d="M15.1571 0H12.2189C11.7186 0 11.313 0.405585 11.313 0.9059V13.0941C11.313 13.5944 11.7186 14 12.2189 14H15.1571C15.6574 14 16.063 13.5944 16.063 13.0941V0.9059C16.063 0.405585 15.6574 0 15.1571 0Z"\n />\n </g>\n </svg>\n </media-play-button>\n </template>\n\n <template partial="PrePlayButton">\n <media-play-button\n part="{{section ?? \'center\'}} play button pre-play"\n disabled="{{disabled}}"\n aria-disabled="{{disabled}}"\n >\n <svg aria-hidden="true" viewBox="0 0 18 14" slot="icon" style="transform: translate(3px, 0)">\n <path\n d="M15.5987 6.2911L3.45577 0.110898C2.83667 -0.204202 2.06287 0.189698 2.06287 0.819798V13.1802C2.06287 13.8103 2.83667 14.2042 3.45577 13.8891L15.5987 7.7089C16.2178 7.3938 16.2178 6.6061 15.5987 6.2911Z"\n />\n </svg>\n </media-play-button>\n </template>\n\n <template partial="SeekBackwardButton">\n <media-seek-backward-button\n seekoffset="{{backwardseekoffset}}"\n part="{{section ?? \'bottom\'}} seek-backward button"\n disabled="{{disabled}}"\n aria-disabled="{{disabled}}"\n >\n <svg viewBox="0 0 22 14" aria-hidden="true" slot="icon">\n <path\n d="M3.65 2.07888L0.0864 6.7279C-0.0288 6.87812 -0.0288 7.12188 0.0864 7.2721L3.65 11.9211C3.7792 12.0896 4 11.9703 4 11.7321V2.26787C4 2.02968 3.7792 1.9104 3.65 2.07888Z"\n />\n <text transform="translate(6 12)" style="font-size: 14px; font-family: \'ArialMT\', \'Arial\'">\n {{backwardseekoffset}}\n </text>\n </svg>\n </media-seek-backward-button>\n </template>\n\n <template partial="SeekForwardButton">\n <media-seek-forward-button\n seekoffset="{{forwardseekoffset}}"\n part="{{section ?? \'bottom\'}} seek-forward button"\n disabled="{{disabled}}"\n aria-disabled="{{disabled}}"\n >\n <svg viewBox="0 0 22 14" aria-hidden="true" slot="icon">\n <g>\n <text transform="translate(-1 12)" style="font-size: 14px; font-family: \'ArialMT\', \'Arial\'">\n {{forwardseekoffset}}\n </text>\n <path\n d="M18.35 11.9211L21.9136 7.2721C22.0288 7.12188 22.0288 6.87812 21.9136 6.7279L18.35 2.07888C18.2208
771.91041 18 2.02968 18 2.26787V11.7321C18 11.9703 18.2208 12.0896 18.35 11.9211Z"\n />\n </g>\n </svg>\n </media-seek-forward-button>\n </template>\n\n <template partial="MuteButton">\n <media-mute-button part="bottom mute button" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n <svg viewBox="0 0 18 14" slot="icon" class="mute-icon" aria-hidden="true">\n <g class="unmuted">\n <path\n d="M6.76786 1.21233L3.98606 3.98924H1.19937C0.593146 3.98924 0.101743 4.51375 0.101743 5.1607V6.96412L0 6.99998L0.101743 7.03583V8.83926C0.101743 9.48633 0.593146 10.0108 1.19937 10.0108H3.98606L6.76773 12.7877C7.23561 13.2547 8 12.9007 8 12.2171V1.78301C8 1.09925 7.23574 0.745258 6.76786 1.21233Z"\n />\n <path\n class="volume-low"\n d="M10 3.54781C10.7452 4.55141 11.1393 5.74511 11.1393 6.99991C11.1393 8.25471 10.7453 9.44791 10 10.4515L10.7988 11.0496C11.6734 9.87201 12.1356 8.47161 12.1356 6.99991C12.1356 5.52821 11.6735 4.12731 10.7988 2.94971L10 3.54781Z"\n />\n <path\n class="volume-medium"\n d="M12.3778 2.40086C13.2709 3.76756 13.7428 5.35806 13.7428 7.00026C13.7428 8.64246 13.2709 10.233 12.3778 11.5992L13.2106 12.1484C14.2107 10.6185 14.739 8.83796 14.739 7.00016C14.739 5.16236 14.2107 3.38236 13.2106 1.85156L12.3778 2.40086Z"\n />\n <path\n class="volume-high"\n d="M15.5981 0.75L14.7478 1.2719C15.7937 2.9919 16.3468 4.9723 16.3468 7C16.3468 9.0277 15.7937 11.0082 14.7478 12.7281L15.5981 13.25C16.7398 11.3722 17.343 9.211 17.343 7C17.343 4.789 16.7398 2.6268 15.5981 0.75Z"\n />\n </g>\n <g class="muted">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M4.39976 4.98924H1.19937C1.19429 4.98924 1.17777 4.98961 1.15296 5.01609C1.1271 5.04369 1.10174 5.09245 1.10174 5.1607V8.83926C1.10174 8.90761 1.12714 8.95641 1.15299 8.984C1.17779 9.01047 1.1943 9.01084 1.19937 9.01084H4.39977L7 11.6066V2.39357L4.39976 4.98924ZM7.47434 1.92006C7.4743 1.9201 7.47439 1.92002 7.47434 1.92006V1.92006ZM6.76773 12.7877L3.98606 10.0108H1.19937C0.593146 10.0108 0.101743 9.48633 0.101743 8.83926V7.03583L0 6.99998L0.101743 6.96412V5.1607C0.101743 4.51375 0.593146 3.98924 1.19937 3.98924H3.98606L6.76786 1.21233C7.23574 0.745258 8 1.09925 8 1.78301V12.2171C8 12.9007 7.23561 13.2547 6.76773 12.7877Z"\n />\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M15.2677 9.30323C15.463 9.49849 15.7796 9.49849 15.9749 9.30323C16.1701 9.10796 16.1701 8.79138 15.9749 8.59612L14.2071 6.82841L15.9749 5.06066C16.1702 4.8654 16.1702 4.54882 15.9749 4.35355C15.7796 4.15829 15.4631 4.15829 15.2678 4.35355L13.5 6.1213L11.7322 4.35348C11.537 4.15822 11.2204 4.15822 11.0251 4.35348C10.8298 4.54874 10.8298 4.86532 11.0251 5.06058L12.7929 6.82841L11.0251 8.59619C10.8299 8.79146 10.8299 9.10804 11.0251 9.3033C11.2204 9.49856 11.537 9.49856 11.7323 9.3033L13.5 7.53552L15.2677 9.30323Z"\n />\n </g>\n </svg>\n </media-mute-button>\n </template>\n\n <template partial="PipButton">\n <media-pip-button part="bottom pip button" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n <svg viewBox="0 0 18 14" aria-hidden="true" slot="icon">\n <path\n d="M15.9891 0H2.011C0.9004 0 0 0.9003 0 2.0109V11.989C0 13.0996 0.9004 14 2.011 14H15.9891C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.9891 0ZM17 11.9891C17 12.5465 16.5465 13 15.9891 13H2.011C1.4536 13 1.0001 12.5465 1.0001 11.9891V2.0109C1.0001 1.4535 1.4536 0.9999 2.011 0.9999H15.9891C16.5465 0.9999 17 1.4535 17 2.0109V11.9891Z"\n />\n <path\n d="M15.356 5.67822H8.19523C8.03253 5.67822 7.90063 5.81012 7.90063 5.97282V11.3836C7.90063 11.5463 8.03253 11.6782 8.19523 11.6782H15.356C15.5187 11.6782 15.6506 11.5463 15.6506 11.3836V5.97282C15.6506 5.81012 15.5187 5.67822 15.356 5.67822Z"\n />\n </svg>\n </media-pip-button>\n </template>\n\n <template partial="CaptionsMenuButton">\n <media-captions-selectmenu part="bottom captions selectmenu" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n <media-captions-button\n slot="button"\n part="bottom captions button"\n disabled="{{disabled}}"\n aria-disabled="{{disabled}}"\n >\n <svg aria-hidden="true" viewBox="0 0 18 14" slot="on">\n <path\n d="M15.989 0H2.011C0.9004 0 0 0.9003 0 2.0109V11.9891C0 13.0997 0.9004 14 2.011 14H15.989C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.989 0ZM4.2292 8.7639C4.5954 9.1902 5.0935 9.4031 5.7233 9.4031C6.1852 9.4031 6.5544 9.301 6.8302 9.0969C7.1061 8.8933 7.2863 8.614 7.3702 8.26H8.4322C8.3062 8.884 8.0093 9.3733 7.5411 9.7273C7.0733 10.0813 6.4703 10.2581 5.732 10.2581C5.108 10.2581 4.5699 10.1219 4.1168 9.8489C3.6637 9.5759 3.3141 9.1946 3.0685 8.7058C2.8224 8.2165 2.6994 7.6511 2.6994 7.009C2.6994 6.3611 2.8224 5.7927 3.0685 5.3034C3.3141 4.8146 3.6637 4.4323 4.1168 4.1559C4.5699 3.88 5.108 3.7418 5.732 3.7418C6.4703 3.7418 7.0733 3.922 7.5411 4.2818C8.0094 4.6422 8.3062 5.1461 8.4322 5.794H7.3702C7.2862 5.4283 7.106 5.1368 6.8302 4.921C6.5544 4.7052 6.1852 4.5968 5.7233 4.5968C5.0934 4.5968 4.5954 4.8116 4.2292 5.2404C3.8635 5.6696 3.6804 6.259 3.6804 7.
77009C3.6804 7.7531 3.8635 8.3381 4.2292 8.7639ZM11.0974 8.7639C11.4636 9.1902 11.9617 9.4031 12.5915 9.4031C13.0534 9.4031 13.4226 9.301 13.6984 9.0969C13.9743 8.8933 14.1545 8.614 14.2384 8.26H15.3004C15.1744 8.884 14.8775 9.3733 14.4093 9.7273C13.9415 10.0813 13.3385 10.2581 12.6002 10.2581C11.9762 10.2581 11.4381 10.1219 10.985 9.8489C10.5319 9.5759 10.1823 9.1946 9.9367 8.7058C9.6906 8.2165 9.5676 7.6511 9.5676 7.009C9.5676 6.3611 9.6906 5.7927 9.9367 5.3034C10.1823 4.8146 10.5319 4.4323 10.985 4.1559C11.4381 3.88 11.9762 3.7418 12.6002 3.7418C13.3385 3.7418 13.9415 3.922 14.4093 4.2818C14.8776 4.6422 15.1744 5.1461 15.3004 5.794H14.2384C14.1544 5.4283 13.9742 5.1368 13.6984 4.921C13.4226 4.7052 13.0534 4.5968 12.5915 4.5968C11.9616 4.5968 11.4636 4.8116 11.0974 5.2404C10.7317 5.6696 10.5486 6.259 10.5486 7.009C10.5486 7.7531 10.7317 8.3381 11.0974 8.7639Z"\n />\n </svg>\n <svg aria-hidden="true" viewBox="0 0 18 14" slot="off">\n <path\n d="M5.73219 10.258C5.10819 10.258 4.57009 10.1218 4.11699 9.8488C3.66389 9.5758 3.31429 9.1945 3.06869 8.7057C2.82259 8.2164 2.69958 7.651 2.69958 7.0089C2.69958 6.361 2.82259 5.7926 3.06869 5.3033C3.31429 4.8145 3.66389 4.4322 4.11699 4.1558C4.57009 3.8799 5.10819 3.7417 5.73219 3.7417C6.47049 3.7417 7.07348 3.9219 7.54128 4.2817C8.00958 4.6421 8.30638 5.146 8.43238 5.7939H7.37039C7.28639 5.4282 7.10618 5.1367 6.83039 4.9209C6.55459 4.7051 6.18538 4.5967 5.72348 4.5967C5.09358 4.5967 4.59559 4.8115 4.22939 5.2403C3.86369 5.6695 3.68058 6.2589 3.68058 7.0089C3.68058 7.753 3.86369 8.338 4.22939 8.7638C4.59559 9.1901 5.09368 9.403 5.72348 9.403C6.18538 9.403 6.55459 9.3009 6.83039 9.0968C7.10629 8.8932 7.28649 8.6139 7.37039 8.2599H8.43238C8.30638 8.8839 8.00948 9.3732 7.54128 9.7272C7.07348 10.0812 6.47049 10.258 5.73219 10.258Z"\n />\n <path\n d="M12.6003 10.258C11.9763 10.258 11.4382 10.1218 10.9851 9.8488C10.532 9.5758 10.1824 9.1945 9.93685 8.7057C9.69075 8.2164 9.56775 7.651 9.56775 7.0089C9.56775 6.361 9.69075 5.7926 9.93685 5.3033C10.1824 4.8145 10.532 4.4322 10.9851 4.1558C11.4382 3.8799 11.9763 3.7417 12.6003 3.7417C13.3386 3.7417 13.9416 3.9219 14.4094 4.2817C14.8777 4.6421 15.1745 5.146 15.3005 5.7939H14.2385C14.1545 5.4282 13.9743 5.1367 13.6985 4.9209C13.4227 4.7051 13.0535 4.5967 12.5916 4.5967C11.9617 4.5967 11.4637 4.8115 11.0975 5.2403C10.7318 5.6695 10.5487 6.2589 10.5487 7.0089C10.5487 7.753 10.7318 8.338 11.0975 8.7638C11.4637 9.1901 11.9618 9.403 12.5916 9.403C13.0535 9.403 13.4227 9.3009 13.6985 9.0968C13.9744 8.8932 14.1546 8.6139 14.2385 8.2599H15.3005C15.1745 8.8839 14.8776 9.3732 14.4094 9.7272C13.9416 10.0812 13.3386 10.258 12.6003 10.258Z"\n />\n <path\n d="M15.9891 1C16.5465 1 17 1.4535 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H2.0109C1.4535 13 1 12.5465 1 11.9891V2.0109C1 1.4535 1.4535 0.9999 2.0109 0.9999L15.9891 1ZM15.9891 0H2.0109C0.9003 0 0 0.9003 0 2.0109V11.9891C0 13.0997 0.9003 14 2.0109 14H15.9891C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.9891 0Z"\n />\n </svg>\n </media-captions-button>\n <media-captions-listbox slot="listbox" exportparts="option" part="bottom captions listbox">\n <div slot="select-indicator">\n <style>\n .listbox-indicator {\n position: relative;\n top: 1px;\n width: 0.9em;\n height: auto;\n fill: var(--_accent-color);\n }\n\n [aria-selected=\'false\'] .listbox-indicator {\n display: none;\n }\n </style>\n <svg viewBox="0 0 14 18" class="listbox-indicator">\n <path\n d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"\n fill-rule="evenodd"\n />\n </svg>\n </div>\n </media-captions-listbox>\n </media-captions-selectmenu>\n </template>\n\n <template partial="AirplayButton">\n <media-airplay-button part="bottom airplay button" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n <svg viewBox="0 0 18 14" aria-hidden="true" slot="icon">\n <path\n d="M16.1383 0H1.8618C0.8335 0 0 0.8335 0 1.8617V10.1382C0 11.1664 0.8335 12 1.8618 12H3.076C3.1204 11.9433 3.1503 11.8785 3.2012 11.826L4.004 11H1.8618C1.3866 11 1 10.6134 1 10.1382V1.8617C1 1.3865 1.3866 0.9999 1.8618 0.9999H16.1383C16.6135 0.9999 17.0001 1.3865 17.0001 1.8617V10.1382C17.0001 10.6134 16.6135 11 16.1383 11H13.9961L14.7989 11.826C14.8499 11.8785 14.8798 11.9432 14.9241 12H16.1383C17.1665 12 18.0001 11.1664 18.0001 10.1382V1.8617C18 0.8335 17.1665 0 16.1383 0Z"\n />\n <path\n d="M9.55061 8.21903C9.39981 8.06383 9.20001 7.98633 9.00011 7.98633C8.80021 7.98633 8.60031 8.06383 8.44951 8.21903L4.09771 12.697C3.62471 13.1838 3.96961 13.9998 4.64831 13.9998H13.3518C14.0304 13.9998 14.3754 13.1838 13.9023 12.697L9.55061 8.21903Z"\n />\n </svg>\n </media-airplay-button>\n </template>\n\n <template partial="FullscreenButton">\n <media-fullscreen-button part="bottom fullscreen button" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n <svg viewBox="0 0 18 14" aria-hidden="true" slot="enter">\n <path\n d="M1.00745 4.39539L1.01445 1.98789C1.01605 1.43049 1.47085 0.978289 2.02835 0.979989L6.39375 0.992589L6.39665 -0.007411L2.03125 -0.020011C0.920646 -0.023211 0.0176463 0.874489 0.0144463 1.98509L0.00744629 4.39539H1.00745Z"\n />\n <path\n d="M17.0144 2.03431L17.0076 4.39541H18.0076L18.0144 2.03721C18.0176 0.926712 17.1199 0.0237125 16.0093 0.0205125L11.6439 0.0078125L11.641 1.00781L16.0064 1.02041C16.5638 1.02201 17.016 1.47681 17.0144 2.03431Z"\n />\n <path\n d="M16.9925 9.60498L16.9855 12.0124C16.9839 12.5698 16.5291 13.022 15.9717 13.0204L11.6063 13.0078L11.6034 14.0078L15.9688 14.0204C17.0794 14.0236 17.9823 13.1259 17.9855 12.0153L1
777.9925 9.60498H16.9925Z"\n />\n <path\n d="M0.985626 11.9661L0.992426 9.60498H-0.0074737L-0.0142737 11.9632C-0.0174737 13.0738 0.880226 13.9767 1.99083 13.98L6.35623 13.9926L6.35913 12.9926L1.99373 12.98C1.43633 12.9784 0.983926 12.5236 0.985626 11.9661Z"\n />\n </svg>\n <svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">\n <path\n d="M5.39655 -0.0200195L5.38955 2.38748C5.38795 2.94488 4.93315 3.39708 4.37565 3.39538L0.0103463 3.38278L0.00744629 4.38278L4.37285 4.39538C5.48345 4.39858 6.38635 3.50088 6.38965 2.39028L6.39665 -0.0200195H5.39655Z"\n />\n <path\n d="M12.6411 2.36891L12.6479 0.0078125H11.6479L11.6411 2.36601C11.6379 3.47651 12.5356 4.37951 13.6462 4.38271L18.0116 4.39531L18.0145 3.39531L13.6491 3.38271C13.0917 3.38111 12.6395 2.92641 12.6411 2.36891Z"\n />\n <path\n d="M12.6034 14.0204L12.6104 11.613C12.612 11.0556 13.0668 10.6034 13.6242 10.605L17.9896 10.6176L17.9925 9.61759L13.6271 9.60499C12.5165 9.60179 11.6136 10.4995 11.6104 11.6101L11.6034 14.0204H12.6034Z"\n />\n <path\n d="M5.359 11.6315L5.3522 13.9926H6.3522L6.359 11.6344C6.3622 10.5238 5.4645 9.62088 4.3539 9.61758L-0.0115043 9.60498L-0.0144043 10.605L4.351 10.6176C4.9084 10.6192 5.3607 11.074 5.359 11.6315Z"\n />\n </svg>\n </media-fullscreen-button>\n </template>\n\n <template partial="CastButton">\n <media-cast-button part="bottom cast button" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n <svg viewBox="0 0 18 14" aria-hidden="true" slot="enter">\n <path\n d="M16.0072 0H2.0291C0.9185 0 0.0181 0.9003 0.0181 2.011V5.5009C0.357 5.5016 0.6895 5.5275 1.0181 5.5669V2.011C1.0181 1.4536 1.4716 1 2.029 1H16.0072C16.5646 1 17.0181 1.4536 17.0181 2.011V11.9891C17.0181 12.5465 16.5646 13 16.0072 13H8.4358C8.4746 13.3286 8.4999 13.6611 8.4999 13.9999H16.0071C17.1177 13.9999 18.018 13.0996 18.018 11.989V2.011C18.0181 0.9003 17.1178 0 16.0072 0ZM0 6.4999V7.4999C3.584 7.4999 6.5 10.4159 6.5 13.9999H7.5C7.5 9.8642 4.1357 6.4999 0 6.4999ZM0 8.7499V9.7499C2.3433 9.7499 4.25 11.6566 4.25 13.9999H5.25C5.25 11.1049 2.895 8.7499 0 8.7499ZM0.0181 11V14H3.0181C3.0181 12.3431 1.675 11 0.0181 11Z"\n />\n </svg>\n <svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">\n <path\n d="M15.9891 0H2.01103C0.900434 0 3.35947e-05 0.9003 3.35947e-05 2.011V5.5009C0.338934 5.5016 0.671434 5.5275 1.00003 5.5669V2.011C1.00003 1.4536 1.45353 1 2.01093 1H15.9891C16.5465 1 17 1.4536 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H8.41773C8.45653 13.3286 8.48183 13.6611 8.48183 13.9999H15.989C17.0996 13.9999 17.9999 13.0996 17.9999 11.989V2.011C18 0.9003 17.0997 0 15.9891 0ZM-0.0180664 6.4999V7.4999C3.56593 7.4999 6.48193 10.4159 6.48193 13.9999H7.48193C7.48193 9.8642 4.11763 6.4999 -0.0180664 6.4999ZM-0.0180664 8.7499V9.7499C2.32523 9.7499 4.23193 11.6566 4.23193 13.9999H5.23193C5.23193 11.1049 2.87693 8.7499 -0.0180664 8.7499ZM3.35947e-05 11V14H3.00003C3.00003 12.3431 1.65693 11 3.35947e-05 11Z"\n />\n <path d="M2.15002 5.634C5.18352 6.4207 7.57252 8.8151 8.35282 11.8499H15.8501V2.1499H2.15002V5.634Z" />\n </svg>\n </media-cast-button>\n </template>\n\n <template partial="LiveButton">\n <media-live-button part="{{section ?? \'top\'}} live button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
77\n <span slot="text">Live</span>\n </media-live-button>\n </template>\n\n <template partial="PlaybackRateSelect">\n <media-playback-rate-selectmenu\n part="bottom playback-rate selectmenu"\n disabled="{{disabled}}"\n aria-disabled="{{disabled}}"\n >\n <media-playback-rate-button slot="button" part="bottom playback-rate button"></media-playback-rate-button>\n <media-playback-rate-listbox\n slot="listbox"\n rates="{{playbackrates}}"\n exportparts="option"\n part="bottom playback-rate listbox"\n ></media-playback-rate-listbox>\n </media-playback-rate-selectmenu>\n </template>\n\n <template partial="VolumeRange">\n <media-volume-range\n part="bottom volume range"\n disabled="{{disabled}}"\n aria-disabled="{{disabled}}"\n ></media-volume-range>\n </template>\n\n <template partial="TimeDisplay">\n <media-time-display\n remaining="{{defaultshowremainingtime}}"\n showduration="{{!hideduration}}"\n part="bottom time display"\n disabled="{{disabled}}"\n aria-disabled="{{disabled}}"\n ></media-time-display>\n </template>\n\n <template partial="TimeRange">\n <media-time-range part="bottom time range" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n <media-preview-thumbnail slot="preview"></media-preview-thumbnail>\n <media-preview-chapter-display slot="preview"></media-preview-chapter-display>\n <media-preview-time-display slot="preview"></media-preview-time-display>\n <div slot="preview" part="arrow"></div>\n </media-time-range>\n </template>\n\n <template partial="AudioTrackSelect">\n <media-audio-track-selectmenu\n part="bottom audio-track selectmenu"\n disabled="{{disabled}}"\n aria-disabled="{{disabled}}"\n >\n <media-audio-track-button slot="button" part="bottom audio-track button">\n <svg aria-hidden="true" slot="icon" viewBox="0 0 18 16">\n <path d="M9 15A7 7 0 1 1 9 1a7 7 0 0 1 0 14Zm0 1A8 8 0 1 0 9 0a8 8 0 0 0 0 16Z" />\n <path\n d="M5.2 6.3a.5.5 0 0 1 .5.5v2.4a.5.5 0 1 1-1 0V6.8a.5.5 0 0 1 .5-.5Zm2.4-2.4a.5.5 0 0 1 .5.5v7.2a.5.5 0 0 1-1 0V4.4a.5.5 0 0 1 .5-.5ZM10 5.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.4-.8a.5.5 0 0 1 .5.5v5.6a.5.5 0 0 1-1 0V5.2a.5.5 0 0 1 .5-.5Z"\n />\n </svg>\n </media-audio-track-button>\n <media-audio-track-listbox slot="listbox" exportparts="option" part="bottom audio-track listbox">\n <div slot="select-indicator">\n <style>\n .listbox-indicator {\n position: relative;\n top: 1px;\n width: 0.9em;\n height: auto;\n fill: var(--_accent-color);\n }\n\n [aria-selected=\'false\'] .listbox-indicator {\n display: none;\n }\n </style>\n <svg viewBox="0 0 14 18" class="listbox-indicator">\n <path\n d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"\n fill-rule="evenodd"\n />\n </svg>\n </div>\n </media-audio-track-listbox>\n </media-audio-track-selectmenu>\n </template>\n\n <template partial="RenditionSelect">\n <media-rendition-selectmenu part="bottom rendition selectmenu" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n <media-rendition-button slot="button" part="bottom rendition button">\n <svg aria-hidden="true" slot="icon" viewBox="0 0 18 14">\n <path\n d="M2.25 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM9 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.75 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"\n />\n </svg>\n </media-rendition-button>\n <media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">\n <div slot="select-indicator">\n <style>\n .listbox-indicator {\n position: relative;\n top: 1px;\n width: 0.9em;\n height: auto;\n fill: var(--_accent-color);\n }\n\n [aria-selected=\'false\'] .listbox-indicator {\n display: none;\n }\n </style>\n <svg viewBox="0 0 14 18" class="listbox-indicator">\n <path\n d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"\n fill-rule="evenodd"\n />\n </svg>\n </div>\n </media-rendition-listbox>\n </media-rendition-selectmenu>\n </template>\n\n <media-controller\n part="controller"\n defaultstreamtype="{{defaultstreamtype ?? \'on-demand\'}}
77"\n breakpoints="sm:470"\n gesturesdisabled="{{disabled}}"\n hotkeys="{{hotkeys}}"\n nohotkeys="{{nohotkeys}}"\n novolumepref="{{novolumepref}}"\n audio="{{audio}}"\n noautoseektolive="{{noautoseektolive}}"\n defaultsubtitles="{{defaultsubtitles}}"\n defaultduration="{{defaultduration ?? false}}"\n keyboardforwardseekoffset="{{forwardseekoffset}}"\n keyboardbackwardseekoffset="{{backwardseekoffset}}"\n exportparts="layer, media-layer, poster-layer, vertical-layer, centered-layer, gesture-layer"\n style="--_pre-playback-place:{{preplaybackplace ?? \'center\'}}"\n >\n <slot name="media" slot="media"></slot>\n <slot name="poster" slot="poster"></slot>\n\n <media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>\n\n <template if="!audio">\n \x3c!-- Pre-playback UI --\x3e\n <div slot="centered-chrome" class="center-controls pre-playback">\n <template if="streamtype == \'on-demand\'">\n <template if="!breakpointsm"> {{>SeekBackwardButton section="center"}} </template>\n <template if="!breakpointsm"> {{>PlayButton section="center"}} </template>\n <template if="breakpointsm"> {{>PrePlayButton section="center"}} </template>\n <template if="!breakpointsm"> {{>SeekForwardButton section="center"}} </template>\n </template>\n\n <template if="streamtype == \'live\'">\n <template if="!breakpointsm">\n <template if="targetlivewindow > 0"> {{>SeekBackwardButton section="center"}} </template>\n </template>\n <template if="!breakpointsm"> {{>PlayButton section="center"}} </template>\n <template if="breakpointsm"> {{>PrePlayButton section="center"}} </template>\n <template if="!breakpointsm">\n <template if="targetlivewindow > 0"> {{>SeekForwardButton section="center"}} </template>\n </template>\n </template>\n </div>\n\n \x3c!-- Auotplay centered unmute button --\x3e\n \x3c!--\n todo: figure out how show this with available state variables\n needs to show when:\n - autoplay is enabled\n - playback has been successful\n - audio is muted\n - in place / instead of the pre-plaback play button\n - not to show again after user has interacted with this button\n - OR user has interacted with the mute button in the control bar\n --\x3e\n \x3c!--\n There should be a >MuteButton to the left of the "Unmute" text, but a templating bug\n makes it appear even if commented out in the markup, add it back when code is un-commented\n --\x3e\n \x3c!-- <div slot="centered-chrome" class="autoplay-unmute">\n <div role="button" class="autoplay-unmute-btn">Unmute</div>\n </div> --\x3e\n\n <template if="streamtype == \'on-demand\'">\n <template if="breakpointsm">\n <media-control-bar part="control-bar top" slot="top-chrome">{{>TitleDisplay}} </media-control-bar>\n </template>\n {{>TimeRange}}\n <media-control-bar part="control-bar bottom">\n {{>PlayButton}} {{>SeekBackwardButton}} {{>SeekForwardButton}} {{>TimeDisplay}} {{>MuteButton}}\n {{>VolumeRange}}\n <div class="spacer"></div>\n {{>RenditionSelect}} {{>PlaybackRateSelect}} {{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}}\n {{>CastButton}} {{>PipButton}} {{>FullscreenButton}}\n </media-control-bar>\n </template>\n\n <template if="streamtype == \'live\'">\n <media-control-bar part="control-bar top" slot="top-chrome">\n {{>LiveButton}}\n <template if="breakpointsm"> {{>TitleDisplay}} </template>\n </media-control-bar>\n <template if="targetlivewindow > 0">{{>TimeRange}}</template>\n <media-control-bar part="control-bar bottom">\n {{>PlayButton}}\n <template if="targetlivewindow > 0">{{>SeekBackwardButton}} {{>SeekForwardButton}}</template>\n {{>MuteButton}} {{>VolumeRange}}\n <div class="spacer"></div>\n {{>RenditionSelect}} {{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}} {{>CastButton}}\n {{>PipButton}} {{>FullscreenButton}}\n </media-control-bar>\n </template>\n </template>\n\n <template if="audio">\n <template if="streamtype == \'on-demand\'">\n <template if="title">\n <media-control-bar part="control-bar top">{{>TitleDisplay}}</media-control-bar>\n </template>\n <media-control-bar part="control-bar bottom">\n {{>PlayButton}}\n <template if="breakpointsm"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>\n {{>MuteButton}}\n <template if="breakpointsm">{{>VolumeRange}}</template>\n {{>TimeDisplay}} {{>TimeRange}}\n <template if="breakpointsm">{{>PlaybackRateSelect}}</template>\n {{>AirplayButton}} {{>CastButton}}\n </media-control-bar>\n </template>\n\n <template if="streamtype == \'live\'">\n <template if="title">\n <media-control-bar part="control-bar top">{{>TitleDisplay}}</media-control-bar>\n </template>\n <media-control-bar part="control-bar bottom">\n <template if="breakpointsm">\n {{>PlayButton}} {{>LiveButton section="bottom"}} {{>MuteButton}} {{>VolumeRange}}\n <template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>\n </template>\n <template if="targetlivewindow > 0"> {{>TimeDisplay}} {{>TimeRange}} </template>\n <template if="!targetlivewindow"><div class="spacer"></div></template>\n {{>AirplayButton}} {{>CastButton}}\n </media-control-bar>\n </template>\n </template>\n\n <slot></slot>\n </media-controller>\n</template>\n');var Z_,Q_,X_=class extends PE{};X_.template=null==(Q_=null==(Z_=z_.content)?void 0:Z_.children)?void 0:Q_[0],YE.customElements.get("media-theme-gerwig")||YE.customElements.define("media-theme-gerwig",X_);var J_={SRC:"src",POSTER:"poster"},eA={STYLE:"style",DEFAULT_HIDDEN_CAPTIONS:"default-hidden-captions",PRIMARY_COLOR:"primary-color",SECONDARY_COLOR:"secondary-color",ACCENT_COLOR:"accent-color",FORWARD_SEEK_OFFSET:"forward-seek-offset",BACKWARD_SEEK_OFFSET:"backward-seek-offset",P
77LAYBACK_TOKEN:"playback-token",THUMBNAIL_TOKEN:"thumbnail-token",STORYBOARD_TOKEN:"storyboard-token",STORYBOARD_SRC:"storyboard-src",THUMBNAIL_TIME:"thumbnail-time",AUDIO:"audio",NOHOTKEYS:"nohotkeys",HOTKEYS:"hotkeys",PLAYBACK_RATES:"playbackrates",DEFAULT_SHOW_REMAINING_TIME:"default-show-remaining-time",DEFAULT_DURATION:"default-duration",TITLE:"title",PLACEHOLDER:"placeholder",THEME:"theme",DEFAULT_STREAM_TYPE:"default-stream-type",TARGET_LIVE_WINDOW:"target-live-window",EXTRA_SOURCE_PARAMS:"extra-source-params",NO_VOLUME_PREF:"no-volume-pref"},tA=["audio","backwardseekoffset","defaultduration","defaultshowremainingtime","defaultsubtitles","noautoseektolive","disabled","exportparts","forwardseekoffset","hideduration","hotkeys","nohotkeys","playbackrates","defaultstreamtype","streamtype","style","targetlivewindow","template","title","novolumepref"];function nA(e){var t,n;let i=e.theme;if(i){let a=null==(n=null==(t=e.getRootNode())?void 0:t.getElementById)?void 0:n.call(t,i);if(a&&a instanceof HTMLTemplateElement)return a;i.startsWith("media-theme-")||(i=`media-theme-${i}`);let r=YE.customElements.get(i);if(null!=r&&r.template)return r.template}}function iA(e){var t;let n=null==(t=e.mediaController)?void 0:t.querySelector("media-time-display");return n&&"none"===getComputedStyle(n).getPropertyValue("--media-duration-display-display").trim()}function aA(e){let t=e.hasAttribute(eA.TITLE)?{video_title:e.getAttribute(eA.TITLE)}:{};return e.getAttributeNames().filter((e=>e.startsWith("metadata-"))).reduce(((t,n)=>{let i=e.getAttribute(n);return null!==i&&(t[n.replace(/^metadata-/,"").replace(/-/g,"_")]=i),t}),t)}var rA,oA,sA,lA,dA,uA,cA,hA,mA,pA,vA,fA,bA,gA,yA,EA,_A,AA,kA,wA,TA,SA=Object.values(Iy),CA=Object.values(J_),IA=Object.values(eA),xA=l_(),LA={dialog:void 0,isDialogOpen:!1},RA={redundant_streams:!0},MA=class extends I_{constructor(){super(),WE(this,uA),WE(this,hA),WE(this,pA),WE(this,fA),WE(this,gA),WE(this,EA),WE(this,AA),WE(this,wA),WE(this,rA,!1),WE(this,oA,{}),WE(this,sA,!0),WE(this,lA,new v_(this,"hotkeys")),WE(this,dA,{...LA,onCloseErrorDialog:()=>jE(this,pA,vA).call(this,{dialog:void 0,isDialogOpen:!1}),onInitFocusDialog:e=>{r_(this,zE.activeElement)||e.preventDefault()}}),this.attachShadow({mode:"open"}),jE(this,hA,mA).call(this),this.isConnected&&jE(this,uA,cA).call(this)}static get observedAttributes(){var e;return[...null!=(e=I_.observedAttributes)?e:[],...CA,...SA,...IA]}get mediaTheme(){var e;return null==(e=this.shadowRoot)?void 0:e.querySelector("media-theme")}get mediaController(){var e,t;return null==(t=null==(e=this.mediaTheme)?void 0:e.shadowRoot)?void 0:t.querySelector("media-controller")}connectedCallback(){var e;let t=null==(e=this.shadowRoot)?void 0:e.querySelector("mux-video");t&&(t.metadata=aA(this))}attributeChangedCallback(e,t,n){switch(jE(this,uA,cA).call(this),super.attributeChangedCallback(e,t,n),e){case eA.HOTKEYS:BE(this,lA).value=n;break;case eA.THUMBNAIL_TIME:null!=n&&this.tokens.thumbnail&&b_(XE("Use of thumbnail-time with thumbnail-token is currently unsupported. Ignore thumbnail-time.").format({}));break;case eA.THUMBNAIL_TOKEN:{let{aud:e}=a_(n);n&&"t"!==e&&b_(XE("The provided thumbnail-token should have audience value 't' instead of '{aud}'.").format({aud:e}));break}case eA.STORYBOARD_TOKEN:{let{aud:e}=a_(n);n&&"s"!==e&&b_(XE("The provided storyboard-token should have audience value 's' instead of '{aud}'.").format({aud:e}));break}case Iy.PLAYBACK_ID:null!=n&&n.includes("?token")&&g_(XE("The specificed playback ID {playbackId} contains a token which must be provided via the playback-token attribute.").format({playbackId:n}));break;case Iy.STREAM_TYPE:n&&![Ri.LIVE,Ri.ON_DEMAND,Ri.UNKNOWN].includes(n)?["ll-live","live:dvr","ll-live:dvr"].includes(this.streamType)?this.targetLiveWindow=n.includes("dvr")?Number.POSITIVE_INFINITY:0:y_({file:"invalid-stream-type.md",message:XE("Invalid stream-type value supplied: `{streamType}`. Please provide stream-type as either: `on-demand` or `live`").format({streamType:this.streamType})}):n===Ri.LIVE?null==this.getAttribute(eA.TARGET_LIVE_WINDOW)&&(this.targetLiveWindow=0):this.targetLiveWindow=Number.NaN}[Iy.PLAYBACK_ID,J_.SRC,eA.PLAYBACK_TOKEN].includes(e)&&t!==n&&HE(this,dA,{...BE(this,dA),...LA}),jE(this,fA,bA).call(this,{[c_(e)]:n})}get preferCmcd(){var e;return null!=(e=this.getAttribute(Iy.PREFER_CMCD))?e:void 0}set preferCmcd(e){e!==this.preferCmcd&&(e?Ni.includes(e)?this.setAttribute(Iy.PREFER_CMCD,e):b_(`Invalid value for preferCmcd. Must be one of ${Ni.join()}`):this.removeAttribute(Iy.PREFER_CMCD))}get hasPlayed(){var e,t;return null!=(t=null==(e=this.mediaController)?void 0:e.hasAttribute(qa.MEDIA_HAS_P
77LAYED))&&t}get inLiveWindow(){var e;return null==(e=this.mediaController)?void 0:e.hasAttribute(qa.MEDIA_TIME_IS_LIVE)}get _hls(){var e;return null==(e=this.media)?void 0:e._hls}get mux(){var e;return null==(e=this.media)?void 0:e.mux}get theme(){var e;return null!=(e=this.getAttribute(eA.THEME))?e:"gerwig"}set theme(e){this.setAttribute(eA.THEME,`${e}`)}get themeProps(){let e=this.mediaTheme;if(!e)return;let t={};for(let n of e.getAttributeNames()){if(tA.includes(n))continue;let i=e.getAttribute(n);t[t_(n)]=""===i||i}return t}set themeProps(e){var t,n;jE(this,uA,cA).call(this);let i={...this.themeProps,...e};for(let a in i){if(tA.includes(a))continue;let i=null==e?void 0:e[a];"boolean"==typeof i||null==i?null==(t=this.mediaTheme)||t.toggleAttribute(e_(a),!!i):null==(n=this.mediaTheme)||n.setAttribute(e_(a),i)}}get playbackId(){var e;return null!=(e=this.getAttribute(Iy.PLAYBACK_ID))?e:void 0}set playbackId(e){e?this.setAttribute(Iy.PLAYBACK_ID,e):this.removeAttribute(Iy.PLAYBACK_ID)}get src(){var e,t;return this.playbackId?null!=(e=DA(this,J_.SRC))?e:void 0:null!=(t=this.getAttribute(J_.SRC))?t:void 0}set src(e){e?this.setAttribute(J_.SRC,e):this.removeAttribute(J_.SRC)}get poster(){var e;let t=this.getAttribute(J_.POSTER);return null!=t?t:this.playbackId&&!this.audio?((e,{token:t,customDomain:n=o_,thumbnailTime:i,programTime:a}={})=>{let r=null==t?i:void 0,{aud:o}=a_(t);if(!t||"t"===o)return`https://image.${n}/${e}/thumbnail.webp${i_({token:t,time:r,program_time:a})}`})(this.playbackId,{customDomain:this.customDomain,thumbnailTime:null!=(e=this.thumbnailTime)?e:this.startTime,programTime:this.programStartTime,token:this.tokens.thumbnail}):void 0}set poster(e){e||""===e?this.setAttribute(J_.POSTER,e):this.removeAttribute(J_.POSTER)}get storyboardSrc(){var e;return null!=(e=this.getAttribute(eA.STORYBOARD_SRC))?e:void 0}set storyboardSrc(e){e?this.setAttribute(eA.STORYBOARD_SRC,e):this.removeAttribute(eA.STORYBOARD_SRC)}get storyboard(){return this.storyboardSrc&&!this.tokens.storyboard?this.storyboardSrc:!this.audio&&this.playbackId&&this.streamType&&![Ri.LIVE,Ri.UNKNOWN].includes(this.streamType)?((e,{token:t,customDomain:n=o_,programStartTime:i,programEndTime:a}={})=>{let{aud:r}=a_(t);if(!t||"s"===r)return`https://image.${n}/${e}/storyboard.vtt${i_({token:t,format:"webp",program_start_time:i,program_end_time:a})}`})(this.playbackId,{customDomain:this.customDomain,token:this.tokens.storyboard,programStartTime:this.programStartTime,programEndTime:this.programEndTime}):void 0}get audio(){return this.hasAttribute(eA.AUDIO)}set audio(e){e?this.setAttribute(eA.AUDIO,""):this.removeAttribute(eA.AUDIO)}get hotkeys(){return BE(this,lA)}get nohotkeys(){return this.hasAttribute(eA.NOHOTKEYS)}set nohotkeys(e){e?this.setAttribute(eA.NOHOTKEYS,""):this.removeAttribute(eA.NOHOTKEYS)}get thumbnailTime(){return n_(this.getAttribute(eA.THUMBNAIL_TIME))}set thumbnailTime(e){this.setAttribute(eA.THUMBNAIL_TIME,`${e}`)}get title(){var e;return null!=(e=this.getAttribute(eA.TITLE))?e:""}set title(e){e!==this.title&&(e?this.setAttribute(eA.TITLE,e):this.removeAttribute("title"),super.title=e)}get placeholder(){var e;return null!=(e=DA(this,eA.PLACEHOLDER))?e:""}set placeholder(e){this.setAttribute(eA.PLACEHOLDER,`${e}`)}get primaryColor(){var e,t;let n=this.getAttribute(eA.PRIMARY_COLOR);if(null!=n||this.mediaTheme&&(n=null==(t=null==(e=YE.getComputedStyle(this.mediaTheme))?void 0:e.getPropertyValue("--_primary-color"))?void 0:t.trim(),n))return n}set primaryColor(e){this.setAttribute(eA.PRIMARY_COLOR,`${e}`)}get secondaryColor(){var e,t;let n=this.getAttribute(eA.SECONDARY_COLOR);if(null!=n||this.mediaTheme&&(n=null==(t=null==(e=YE.getComputedStyle(this.mediaTheme))?void 0:e.getPropertyValue("--_secondary-color"))?void 0:t.trim(),n))return n}set secondaryColor(e){this.setAttribute(eA.SECONDARY_COLOR,`${e}`)}get accentColor(){var e,t;let n=this.getAttribute(eA.ACCENT_COLOR);if(null!=n||this.mediaTheme&&(n=null==(t=null==(e=YE.getComputedStyle(this.mediaTheme))?void 0:e.getPropertyValue("--_accent-color"))?void 0:t.trim(),n))return n}set accentColor(e){this.setAttribute(eA.ACCENT_COLOR,`${e}`)}get defaultShowRemainingTime(){return this.hasAttribute(eA.DEFAULT_SHOW_REMAINING_TIME)}set defaultShowRemainingTime(e){e?this.setAttribute(eA.DEFAULT_SHOW_REMAINING_TIME,""):this.removeAttribute(eA.DEFAULT_SHOW_REMAINING_TIME)}get playbackRates(){if(this.hasAttribute(eA.PLAYBACK_RATES))return this.getAttribute(eA.PLAYBACK_RATES).trim().split(/\s*,?\s+/).map((e=>Number(e))).filter((e=>!Number.isNaN(e))).sort(((e,t)=>e-t))}set playbackRates(e){e?this.setAttribute(eA.PLAYBACK_RATES,e.join(" ")):this.removeAttribute(eA.PLAYBACK_RATES)}get forwardSeekOffset(){var e;return null!=(e=n_(this.getAttribute(eA.FORWARD_SEEK_OFFSET)))?e:10}set forwardSeekOffset(e){this.setAttribute(eA.FORWARD_SEEK_OFFSET,`${e}`)}get backwardSeekOffset(){var e;return null!=(e=n_(this.getAttribute(eA.BACKWARD_SEEK_OFFSET)))?e:10}set backwardSeekOffset(e){this.setAttribute(eA.BACKWARD_SEEK_OFFSET,`${e}`)}get defaultHiddenCaptions(){return this.hasAttribute(eA.DEFAULT_HIDDEN_CAPTIONS)}set defaultHiddenCaptions(e){e?this.setAttribute(eA.DEFAULT_HIDDEN_CAPTIONS,""):this.removeAttribute(eA.DEFAULT_HIDDEN_CAPTIONS)}get defaultDuration(){return n_(this.getAttribute(eA.DEFAULT_DURATION))}set defaultDuration(e){null==e?this.removeAttribute(eA.DEFAULT_DURATION):this.setAttribute(eA.DEFAULT_DURATION,`${e}`)}get playerSoftwareName(){var e;return null!=(e=this.getAttribute(Iy.PLAYER_SOFTWARE_NAME))?e:"mux-player"}get playerSoftwareVersion(){var e;return null!=(e=this.getAttribute(Iy.PLAYER_SOFTWARE_VERSION))?e:xA}get beaconCollectionDomain(){var e;return null!=(e=this.getAttribute(Iy.BEACON_COLLECTION_DOMAIN))?e:void 0}set beaconCollectionDomain(e){e!==this.beaconCollectionDomain&&(e?this.setAttribute(Iy.BEACON_COLLECTION_DOMAIN,e):this.removeAttribute(Iy.BEACON_COLLECTION_DOMAIN))}get maxResolution(){var e;return null!=(e=this.getAttribute(Iy.MAX_RESOLUTION))?e:void 0}set maxResolution(e){e!==this.maxResolution&&(e?this.setAttribute(Iy.MAX_RESOLUTION,e):this.removeAttribute(Iy.MAX_RESOLUTION))}get minResolution(){var e;return null!=(e=this.getAttribute(Iy.MIN_RESOLUTION))?e:void 0}set minResolution(e){e!==this.minResolution&&(e?this.setAttribute(Iy.MIN_RESOLUTION,e):this.removeAttribute(Iy.MIN_RESOLUTION))}get renditionOrder(){var e;return null!=(e=this.getAttribute(Iy.RENDITION_ORDER))?e:void 0}set renditionOrder(e){e!==this.renditionOrder&&(e?this.setAttribute(Iy.RENDITION_ORDER,e):this.removeAttribute(Iy.RENDITION_ORDER))}get programStartTime(){return n_(this.getAttribute(Iy.PROGRAM_START_TIME))}set programStartTime(e){null==e?this.removeAttribute(Iy.PROGRAM_START_TIME):this.setAttribute(Iy.PROGRAM_START_TIME,`${e}`)}get programEndTime(){return n_(this.getAttribute(Iy.PROGRAM_END_TIME))}set programEndTime(e){null==e?this.removeAttribute(Iy.PROGRAM_END_TIME):this.setAttribute(Iy.PROGRAM_END_TIME,`${e}`)}get extraSourceParams(){return this.hasAttribute(eA.EXTRA_SOURCE_PARAMS)?[...new URLSearchParams(this.getAttribute(eA.EXTRA_SOURCE_PARAMS)).entries()].reduce(((e,[t,n])=>(e[t]=n,e)),{}):RA}set extraSourceParams(e){null==e?this.removeAttribute(eA.EXTRA_SOURCE_PARAMS):this.setAttribute(eA.EXTRA_SOURCE_PARAMS,new URLSearchParams(e).toString())}get customDomain(){var e;return null!=(e=this.getAttribute(Iy.CUSTOM_DOMAIN))?e:void 0}set customDomain(e){e!==this.customDomain&&(e?this.setAttribute(Iy.CUSTOM_DOMAIN,e):this.removeAttribute(Iy.CUSTOM_DOMAIN))}get envKey(){var e;return null!=(e=DA(this,Iy.ENV_KEY))?e:void 0}set envKey(e){this.setAttribute(Iy.ENV_KEY,`${e}`)}get noVolumePref(){return this.hasAttribute(eA.NO_VOLUME_PREF)}set noVolumePref(e){e?this.setAttribute(eA.NO_VOLUME_PREF,""):this.removeAttribute(eA.NO_VOLUME_PREF)}get debug(){return null!=DA(this,Iy.DEBUG)}set debug(e){e?this.setAttribute(Iy.DEBUG,""):this.removeAttribute(Iy.DEBUG)}get disableTracking(){return null!=DA(this,Iy.DISABLE_TRACKING)}set disableTracking(e){this.toggleAttribute(Iy.DISABLE_TRACKING,!!e)}get disableCookies(){return null!=DA(this,Iy.DISABLE_COOKIES)}set disableCookies(e){e?this.setAttribute(Iy.DISABLE_COOKIES,""):this.removeAttribute(Iy.DISABLE_COOKIES)}get streamType(){var e,t,n;return null!=(n=null!=(t=this.getAttribute(Iy.STREAM_TYPE))?t:null==(e=this.media)?void 0:e.streamType)?n:Ri.UNKNOWN}set streamType(e){this.setAttribute(Iy.STREAM_TYPE,`${e}`)}get defaultStreamType(){var e,t,n;return null!=(n=null!=(t=this.getAttribute(eA.DEFAULT_STREAM_TYPE))?t:null==(e=this.mediaController)?void 0:e.getAttribute(eA.DEFAULT_STREAM_TYPE))?n:Ri.ON_DEMAND}set defaultStreamType(e){e?this.setAttribute(eA.DEFAULT_STREAM_TYPE,e):this.removeAttribute(eA.DEFAULT_STREAM_TYPE)}get targetLiveWindow(){var e,t;return this.hasAttribute(eA.TARGET_LIVE_WINDOW)?+this.getAttribute(eA.TARGET_LIVE_WINDOW):null!=(t=null==(e=this.media)?void 0:e.targetLiveWindow)?t:Number.NaN}set targetLiveWindow(e){e==this.targetLiveWindow||Number.isNaN(e)&&Number.isNaN(this.targetLiveWindow)||(null==e?this.removeAttribute(eA.TARGET_LIVE_WINDOW):this.setAttribute(eA.TARGET_LIVE_WINDOW,""+ +e))}get liveEdgeStart(){var e;return null==(e=this.media)?void 0:e.liveEdgeStart}get startTime(){return n_(DA(this,Iy.START_TIME))}set startTime(e){this.setAttribute(Iy.START_TIME,`${e}`)}get preferPlayback(){let e=this.getAttribute(Iy.PREFER_PLAYBACK);if(e===Mi||e===Di)return e}set preferPlayback(e){e!==this.preferPlayback&&(e===Mi||e===Di?this.setAttribute(Iy.PREFER_PLAYBACK,e):this.removeAttribute(Iy.PREFER_PLAYBACK))}get metadata(){var e;return null==(e=this.media)?void 0:e.metadata}set metadata(e){jE(this,uA,cA).call(this),this.media?this.media.metadata={...aA(this),...e}:g_("underlying media element missing when trying to set metadata. metadata will not be set.")}
77get _hlsConfig(){var e;return null==(e=this.media)?void 0:e._hlsConfig}set _hlsConfig(e){jE(this,uA,cA).call(this),this.media?this.media._hlsConfig=e:g_("underlying media element missing when trying to set _hlsConfig. _hlsConfig will not be set.")}async addCuePoints(e){var t;if(jE(this,uA,cA).call(this),this.media)return null==(t=this.media)?void 0:t.addCuePoints(e);g_("underlying media element missing when trying to addCuePoints. cuePoints will not be added.")}get activeCuePoint(){var e;return null==(e=this.media)?void 0:e.activeCuePoint}get cuePoints(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.cuePoints)?t:[]}addChapters(e){var t;if(jE(this,uA,cA).call(this),this.media)return null==(t=this.media)?void 0:t.addChapters(e);g_("underlying media element missing when trying to addChapters. chapters will not be added.")}get activeChapter(){var e;return null==(e=this.media)?void 0:e.activeChapter}get chapters(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.chapters)?t:[]}getStartDate(){var e;return null==(e=this.media)?void 0:e.getStartDate()}get currentPdt(){var e;return null==(e=this.media)?void 0:e.currentPdt}get tokens(){let e=this.getAttribute(eA.PLAYBACK_TOKEN),t=this.getAttribute(eA.THUMBNAIL_TOKEN),n=this.getAttribute(eA.STORYBOARD_TOKEN);return{...BE(this,oA),...null!=e?{playback:e}:{},...null!=t?{thumbnail:t}:{},...null!=n?{storyboard:n}:{}}}set tokens(e){HE(this,oA,null!=e?e:{})}get playbackToken(){var e;return null!=(e=this.getAttribute(eA.PLAYBACK_TOKEN))?e:void 0}set playbackToken(e){this.setAttribute(eA.PLAYBACK_TOKEN,`${e}`)}get thumbnailToken(){var e;return null!=(e=this.getAttribute(eA.THUMBNAIL_TOKEN))?e:void 0}set thumbnailToken(e){this.setAttribute(eA.THUMBNAIL_TOKEN,`${e}`)}get storyboardToken(){var e;return null!=(e=this.getAttribute(eA.STORYBOARD_TOKEN))?e:void 0}set storyboardToken(e){this.setAttribute(eA.STORYBOARD_TOKEN,`${e}`)}addTextTrack(e,t,n,i){var a;let r=null==(a=this.media)?void 0:a.nativeEl;if(r)return Yi(r,e,t,n,i)}removeTextTrack(e){var t;let n=null==(t=this.media)?void 0:t.nativeEl;if(n)return function(e,t){let n=Array.prototype.find.call(e.querySelectorAll("track"),(e=>e.track===t));null==n||n.remove()}(n,e)}get textTracks(){var e;return null==(e=this.media)?void 0:e.textTracks}};function DA(e,t){return e.media?e.media.getAttribute(t):e.getAttribute(t)}rA=new WeakMap,oA=new WeakMap,sA=new WeakMap,lA=new WeakMap,dA=new WeakMap,uA=new WeakSet,cA=function(){var e,t,n;if(!BE(this,rA)){HE(this,rA,!0),jE(this,fA,bA).call(this);try{if(customElements.upgrade(this.mediaTheme),!(this.mediaTheme instanceof YE.HTMLElement))throw""}catch{g_("<media-theme> failed to upgrade!")}try{if(customElements.upgrade(this.media),!(this.media instanceof Fy))throw""}catch{g_("<mux-video> failed to upgrade!")}try{if(customElements.upgrade(this.mediaController),!(this.mediaController instanceof el))throw""}catch{g_("<media-controller> failed to upgrade!")}(function(e){e.querySelectorAll(":scope > track").forEach((t=>{var n;null==(n=e.media)||n.append(t.cloneNode())})),k_.forEach((t=>{var n;null==(n=e.media)||n.addEventListener(t,(t=>{e.dispatchEvent(new Event(t.type))}))}))})(this),jE(this,gA,yA).call(this),jE(this,EA,_A).call(this),jE(this,AA,kA).call(this),HE(this,sA,null==(t=null==(e=this.mediaController)?void 0:e.hasAttribute(fo.USER_INACTIVE))||t),jE(this,wA,TA).call(this),null==(n=this.media)||n.addEventListener("streamtypechange",(()=>{jE(this,fA,bA).call(this)}))}},hA=new WeakSet,mA=function(){var e,t;try{null==(e=null==window?void 0:window.CSS)||e.registerProperty({name:"--media-primary-color",syntax:"<color>",inherits:!0}),null==(t=null==window?void 0:window.CSS)||t.registerProperty({name:"--media-secondary-color",syntax:"<color>",inherits:!0})}catch{}},pA=new WeakSet,vA=function(e){Object.assign(BE(this,dA),e),jE(this,fA,bA).call(this)},fA=new WeakSet,bA=function(e={}){!function(e,t){e.renderInto(t)}((e=>$_` 78 <style> 79 ${":host {\n --media-control-display: var(--controls);\n --media-loading-indicator-display: var(--loading-indicator);\n --media-dialog-display: var(--dialog);\n --media-play-button-display: var(--play-button);\n --media-live-button-display: var(--live-button);\n --media-seek-backward-button-display: var(--seek-backward-button);\n --media-seek-forward-button-display: var(--seek-forward-button);\n --media-mute-button-display: var(--mute-button);\n --media-captions-button-display: var(--captions-button);\n --media-captions-selectmenu-display: var(--captions-selectmenu, var(--media-captions-button-display));\n --media-rendition-selectmenu-display: var(--rendition-selectmenu);\n --media-audio-track-selectmenu-display: var(--audio-track-selectmenu);\n --media-airplay-button-display: var(--airplay-button);\n --media-pip-button-display: var(--pip-button);\n --media-fullscreen-button-display: var(--fullscreen-button);\n --media-cast-button-display: var(--cast-button);\n --media-playback-rate-button-display: var(--playback-rate-button);\n --media-playback-rate-selectmenu-display: var(--playback-rate-selectmenu);\n --media-volume-range-display: var(--volume-range);\n --media-time-range-display: var(--time-range);\n --media-time-display-display: var(--time-display);\n --media-duration-display-display: var(--duration-display);\n --media-title-display-display: var(--title-display);\n\n display: inline-block;\n width: 100%;\n line-height: 0;\n}\n\n/* Hide custom elements that are not defined yet */\n:not(:defined) {\n display: none;\n}\n\na {\n color: #fff;\n font-size: 0.9em;\n text-decoration: underline;\n}\n\nmedia-theme {\n width: 100%;\n height: 100%;\n direction: ltr;\n}\n\nmedia-poster-image {\n width: 100%;\n height: 100%;\n}\n\nmedia-poster-image:not([src]):not([placeholdersrc]) {\n display: none;\n}
79\n\n::part(top),\n[part~='top'] {\n --media-control-display: var(--controls, var(--top-controls));\n --media-play-button-display: var(--play-button, var(--top-play-button));\n --media-live-button-display: var(--live-button, var(--top-live-button));\n --media-seek-backward-button-display: var(--seek-backward-button, var(--top-seek-backward-button));\n --media-seek-forward-button-display: var(--seek-forward-button, var(--top-seek-forward-button));\n --media-mute-button-display: var(--mute-button, var(--top-mute-button));\n --media-captions-button-display: var(--captions-button, var(--top-captions-button));\n --media-captions-selectmenu-display: var(\n --captions-selectmenu,\n var(--media-captions-button-display, var(--top-captions-selectmenu))\n );\n --media-rendition-selectmenu-display: var(--rendition-selectmenu, var(--top-rendition-selectmenu));\n --media-audio-track-selectmenu-display: var(--audio-track-selectmenu, var(--top-audio-track-selectmenu));\n --media-airplay-button-display: var(--airplay-button, var(--top-airplay-button));\n --media-pip-button-display: var(--pip-button, var(--top-pip-button));\n --media-fullscreen-button-display: var(--fullscreen-button, var(--top-fullscreen-button));\n --media-cast-button-display: var(--cast-button, var(--top-cast-button));\n --media-playback-rate-button-display: var(--playback-rate-button, var(--top-playback-rate-button));\n --media-playback-rate-selectmenu-display: var(\n --captions-selectmenu,\n var(--media-playback-rate-button-display, var(--top-playback-rate-selectmenu))\n );\n --media-volume-range-display: var(--volume-range, var(--top-volume-range));\n --media-time-range-display: var(--time-range, var(--top-time-range));\n --media-time-display-display: var(--time-display, var(--top-time-display));\n --media-duration-display-display: var(--duration-display, var(--top-duration-display));\n --media-title-display-display: var(--title-display, var(--top-title-display));\n}\n\n::part(center),\n[part~='center'] {\n --media-control-display: var(--controls, var(--center-controls));\n --media-play-button-display: var(--play-button, var(--center-play-button));\n --media-live-button-display: var(--live-button, var(--center-live-button));\n --media-seek-backward-button-display: var(--seek-backward-button, var(--center-seek-backward-button));\n --media-seek-forward-button-display: var(--seek-forward-button, var(--center-seek-forward-button));\n --media-mute-button-display: var(--mute-button, var(--center-mute-button));\n --media-captions-button-display: var(--captions-button, var(--center-captions-button));\n --media-captions-selectmenu-display: var(\n --captions-selectmenu,\n var(--media-captions-button-display, var(--center-captions-selectmenu))\n );\n --media-rendition-selectmenu-display: var(--rendition-selectmenu, var(--center-rendition-selectmenu));\n --media-audio-track-selectmenu-display: var(--audio-track-selectmenu, var(--center-audio-track-selectmenu));\n --media-airplay-button-display: var(--airplay-button, var(--center-airplay-button));\n --media-pip-button-display: var(--pip-button, var(--center-pip-button));\n --media-fullscreen-button-display: var(--fullscreen-button, var(--center-fullscreen-button));\n --media-cast-button-display: var(--cast-button, var(--center-cast-button));\n --media-playback-rate-button-display: var(--playback-rate-button, var(--center-playback-rate-button));\n --media-playback-rate-selectmenu-display: var(\n --playback-rate-selectmenu,\n var(--media-playback-rate-button-display, var(--center-playback-rate-selectmenu))\n );\n --media-volume-range-display: var(--volume-range, var(--center-volume-range));\n --media-time-range-display: var(--time-range, var(--center-time-range));\n --media-time-display-display: var(--time-display, var(--center-time-display));\n --media-duration-display-display: var(--duration-display, var(--center-duration-display));\n}\n\n::part(bottom),\n[part~='bottom'] {\n --media-control-display: var(--controls, var(--bottom-controls));\n --media-play-button-display: var(--play-button, var(--bottom-play-button));\n --media-live-button-display: var(--live-button, var(--bottom-live-button));\n --media-seek-backward-button-display: var(--seek-backward-button, var(--bottom-seek-backward-button));\n --media-seek-forward-button-display: var(--seek-forward-button, var(--bottom-seek-forward-button));\n --media-mute-button-display: var(--mute-button, var(--bottom-mute-button));\n --media-captions-button-display: var(--captions-button, var(--bottom-captions-button));\n --media-captions-selectmenu-display: var(\n --captions-selectmenu,\n var(--media-captions-button-display, var(--bottom-captions-selectmenu))\n );\n --media-rendition-selectmenu-display: var(--rendition-selectmenu, var(--bottom-rendition-selectmenu));\n --media-audio-track-selectmenu-display: var(--audio-track-selectmenu, var(--bottom-audio-track-selectmenu));\n --media-airplay-button-display: var(--airplay-button, var(--bottom-airplay-button));\n --media-pip-button-display: var(--pip-button, var(--bottom-pip-button));\n --media-fullscreen-button-display: var(--fullscreen-button, var(--bottom-fullscreen-button));\n --media-cast-button-display: var(--cast-button, var(--bottom-cast-button));\n --media-playback-rate-button-display: var(--playback-rate-button, var(--bottom-playback-rate-button));\n --media-playback-rate-selectmenu-display: var(\n --playback-rate-selectmenu,\n var(--media-playback-rate-button-display, var(--bottom-playback-rate-selectmenu))\n );\n --media-volume-range-display: var(--volume-range, var(--bottom-volume-range));\n --media-time-range-display: var(--time-range, var(--bottom-time-range));\n --media-time-display-display: var(--time-display, var(--bottom-time-display));\n --media-duration-display-display: var(--duration-display, var(--bottom-duration-display));\n --media-title-display-display: var(--title-display, var(--bottom-title-display));\n}\n"} 80 </style> 81 ${G_(e)} 82`)(function(e,t){var n;return{src:!e.playbackId&&e.src,playbackId:e.playbackId,hasSrc:!!e.playbackId||!!e.src,poster:e.poster,storyboard:e.storyboard,storyboardSrc:e.getAttribute(eA.STORYBOARD_SRC),placeholder:e.getAttribute("placeholder"),themeTemplate:nA(e),thumbnailTime:!e.tokens.thumbnail&&e.thumbnailTime,autoplay:e.autoplay,crossOrigin:e.crossOrigin,loop:e.loop,noHotKeys:e.hasAttribute(eA.NOHOTKEYS),hotKeys:e.getAttribute(eA.HOTKEYS),muted:e.muted,paused:e.paused,preload:e.preload,envKey:e.envKey,preferCmcd:e.preferCmcd,debug:e.debug,disableTracking:e.disableTracking,disableCookies:e.disableCookies,tokens:e.tokens,beaconCollectionDomain:e.beaconCollectionDomain,maxResolution:e.maxResolution,minResolution:e.minResolution,programStartTime:e.programStartTime,programEndTime:e.programEndTime,renditionOrder:e.renditionOrder,metadata:e.metadata,playerSoftwareName:e.playerSoftwareName,playerSoftwareVersion:e.playerSoftwareVersion,startTime:e.startTime,preferPlayback:e.preferPlayback,audio:e.audio,defaultStreamType:e.defaultStreamType,targetLiveWindow:e.getAttribute(Iy.TARGET_LIVE_WINDOW),streamType:d_(e.getAttribute(Iy.STREAM_TYPE)),primaryColor:e.getAttribute(eA.PRIMARY_COLOR),secondaryColor:e.getAttribute(eA.SECONDARY_COLOR),accentColor:e.getAttribute(eA.ACCENT_COLOR),forwardSeekOffset:e.forwardSeekOffset,backwardSeekOffset:e.backwardSeekOffset,defaultHiddenCaptions:e.defaultHiddenCaptions,defaultDuration:e.defaultDuration,defaultShowRemainingTime:e.defaultShowRemainingTime,hideDuration:iA(e),playbackRates:e.getAttribute(eA.PLAYBACK_RATES),customDomain:null!=(n=e.getAttribute(Iy.CUSTOM_DOMAIN))?n:void 0,title:e.getAttribute(eA.TITLE),novolumepref:e.hasAttribute(eA.NO_VOLUME_PREF),...t,extraSourceParams:e.extraSourceParams}}(this,{...BE(this,dA),...e})),this.shadowRoot)},gA=new WeakSet,yA=function(){let e=e=>{var t,n;if(null==e||!e.startsWith("theme-"))return;let i=e.replace(/^theme-/,"");if(tA.includes(i))return;let a=this.getAttribute(e);null!=a?null==(t=this.mediaTheme)||t.setAttribute(i,a):null==(n=this.mediaTheme)||n.removeAttribute(i)};new MutationObserver((t=>{for(let{attributeName:n}of t)e(n)})).observe(this,{attributes:!0}
82),this.getAttributeNames().forEach(e)},EA=new WeakSet,_A=function(){var e;this.addEventListener("error",(e=>{let{detail:t}=e;if(t instanceof Ii||(t=new Ii(t.message,t.code,t.fatal)),null==t||!t.fatal)return b_(t),void(t.data&&b_(`${t.name} data:`,t.data));let{dialog:n,devlog:i}=Y_(t,!window.navigator.onLine,this.playbackId,this.playbackToken);i.message&&y_(i),g_(t),t.data&&g_(`${t.name} data:`,t.data),jE(this,pA,vA).call(this,{isDialogOpen:!0,dialog:n})})),this.media&&(this.media.errorTranslator=(e={})=>{var t,n,i;if(!((null==(t=this.media)?void 0:t.error)instanceof Ii))return e;let{devlog:a}=Y_(null==(n=this.media)?void 0:n.error,!window.navigator.onLine,this.playbackId,this.playbackToken,!1);return{player_error_code:null==(i=this.media)?void 0:i.error.code,player_error_message:a.message?String(a.message):e.player_error_message,player_error_context:a.context?String(a.context):e.player_error_context}}),null==(e=this.media)||e.addEventListener("error",(e=>{var t,n;let{detail:i}=e;if(!i){let{message:e,code:a}=null!=(n=null==(t=this.media)?void 0:t.error)?n:{};i=new Ii(e,a)}null!=i&&i.fatal&&this.dispatchEvent(new CustomEvent("error",{detail:i}))}
82))},AA=new WeakSet,kA=function(){var e,t,n,i;let a=()=>jE(this,fA,bA).call(this);null==(t=null==(e=this.media)?void 0:e.textTracks)||t.addEventListener("addtrack",a),null==(i=null==(n=this.media)?void 0:n.textTracks)||i.addEventListener("removetrack",a)},wA=new WeakSet,TA=function(){var e,t;if(!/Firefox/i.test(navigator.userAgent))return;let n,i=new WeakMap,a=()=>this.streamType===Ri.LIVE&&!this.secondaryColor&&this.offsetWidth>=800,r=(e,t,n=!1)=>{a()||Array.from(e&&e.activeCues||[]).forEach((e=>{if(!(!e.snapToLines||e.line<-5||e.line>=0&&e.line<10))if(!t||this.paused){let t=e.text.split("\n").length,a=-3;this.streamType===Ri.LIVE&&(a=-2);let r=a-t;if(e.line===r&&!n)return;i.has(e)||i.set(e,e.line),e.line=r}else setTimeout((()=>{e.line=i.get(e)||"auto"}),500)}))},o=()=>{var e,t;r(n,null!=(t=null==(e=this.mediaController)?void 0:e.hasAttribute(fo.USER_INACTIVE))&&t)},s=()=>{var e,t;let i=Array.from((null==(t=null==(e=this.mediaController)?void 0:e.media)?void 0:t.textTracks)||[]).filter((e=>["subtitles","captions"].includes(e.kind)&&"showing"===e.mode))[0];i!==n&&(null==n||n.removeEventListener("cuechange",o)),n=i,null==n||n.addEventListener("cuechange",o),r(n,BE(this,sA))};s(),null==(e=this.textTracks)||e.addEventListener("change",s),null==(t=this.textTracks)||t.addEventListener("addtrack",s),this.addEventListener("userinactivechange",(()=>{var e,t;let i=null==(t=null==(e=this.mediaController)?void 0:e.hasAttribute(fo.USER_INACTIVE))||t;BE(this,sA)!==i&&(HE(this,sA,i),r(n,BE(this,sA)))}))},YE.customElements.get("mux-player")||(YE.customElements.define("mux-player",MA),YE.MuxPlayerElement=MA);var OA={className:"class",classname:"class",htmlFor:"for",crossOrigin:"crossorigin",viewBox:"viewBox",playsInline:"playsinline",autoPlay:"autoplay",playbackRate:"playbackrate"},NA=(e={})=>Object.entries(e).reduce(((e,[t,n])=>{let i=((e,t)=>{if("boolean"!=typeof t||t){if(((e,t)=>!(e=>null==e)(t)&&e in t)(e,OA))return OA[e];if(null!=typeof t)return/[A-Z]/.test(e)?(e=>e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)))(e):e}})(t,n);if(!i)return e;let a=((e,t)=>"boolean"==typeof e?"":e)(n);return e[i]=a,e}),{}),PA=Object.prototype.hasOwnProperty,UA=(e,t,n)=>!((e,t)=>{if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(Array.isArray(e))return!(!Array.isArray(t)||e.length!==t.length)&&e.some(((e,n)=>t[n]===e));let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let a=0;a<n.length;a++)if(!PA.call(t,n[a])||!Object.is(e[n[a]],t[n[a]]))return!1;return!0})(t,e[n]),BA=(e,t,n)=>{e[n]=t},WA=(e,t,n,i=BA,a=UA)=>(0,r.useEffect)((()=>{let r=null==n?void 0:n.current;r&&a(r,t,e)&&i(r,t,e)}),[null==n?void 0:n.current,t]),HA=(()=>{try{return"2.7.0"}catch{}return"UNKNOWN"})(),jA=r.forwardRef((({children:e,...t},n)=>r.createElement("mux-player",NA({...t,ref:n}),e))),qA=(e,t,n)=>(0,r.useEffect)((()=>{let i=null==t?void 0:t.current;if(i&&n)return i.addEventListener(e,n),()=>{i.removeEventListener(e,n)}}),[null==t?void 0:t.current,n]),VA=HA,FA=r.forwardRef(((e,t)=>{let n=(0,r.useRef)(null),i=((...e)=>{let t=(0,r.useRef)(null);return(0,r.useEffect)((()=>{e.forEach((e=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}))}),[e]),t})(n,t),[a]=((e,t)=>{let{onAbort:n,onCanPlay:i,onCanPlayThrough:a,onEmptied:r,onLoadStart:o,onLoadedData:s,onLoadedMetadata:l,onProgress:d,onDurationChange:u,onVolumeChange:c,onRateChange:h,onResize:m,onWaiting:p,onPlay:v,onPlaying:f,onTimeUpdate:b,onPause:g,onSeeking:y,onSeeked:E,onStalled:_,onSuspend:A,onEnded:k,onError:w,onCuePointChange:T,onCuePointsChange:S,onChapterChange:C,metadata:I,tokens:x,paused:L,playbackId:R,playbackRates:M,currentTime:D,themeProps:O,extraSourceParams:N,_hlsConfig:P,...U}=t;return WA("playbackRates",M,e),WA("metadata",I,e),WA("extraSourceParams",N,e),WA("_hlsConfig",P,e),WA("themeProps",O,e),WA("tokens",x,e),WA("playbackId",R,e),WA("paused",L,e,((e,t)=>
82{null!=t&&(t?e.pause():e.play())}),((e,t,n)=>!(e.hasAttribute("autoplay")&&!e.hasPlayed)&&UA(e,t,n))),WA("currentTime",D,e,((e,t)=>{null!=t&&(e.currentTime=t)})),qA("abort",e,n),qA("canplay",e,i),qA("canplaythrough",e,a),qA("emptied",e,r),qA("loadstart",e,o),qA("loadeddata",e,s),qA("loadedmetadata",e,l),qA("progress",e,d),qA("durationchange",e,u),qA("volumechange",e,c),qA("ratechange",e,h),qA("resize",e,m),qA("waiting",e,p),qA("play",e,v),qA("playing",e,f),qA("timeupdate",e,b),qA("pause",e,g),qA("seeking",e,y),qA("seeked",e,E),qA("stalled",e,_),qA("suspend",e,A),qA("ended",e,k),qA("error",e,w),qA("cuepointchange",e,T),qA("cuepointschange",e,S),qA("chapterchange",e,C),[U]})(n,e);return r.createElement(jA,{ref:i,playerSoftwareName:"mux-player-react",playerSoftwareVersion:VA,...a})})),$A=FA;var KA=e=>{let{block:t}=e;const{file:n,internalVideo:i}=t;if(!n&&!i)return console.warn("No video found"),null;if(n)return r.createElement(Ie.A,{video:n});const{video:{muxPlaybackId:a}}=i;return r.createElement("div",{className:"manual-video-block"},r.createElement($A,{playbackId:a}))},GA=n(4392);var YA=e=>{let{block:t}=e;const{form:n}=t,{formId:i}=(0,GA.A)(n);return r.createElement("div",{className:"single-form-block"},n&&r.createElement("div",{id:i,className:"iframe-form"}))},zA=n(1953);var ZA=e=>{let{block:t}=e;const{image:n,ctas:i}=t;return r.createElement("div",{className:"block-image-hyperlink"},r.createElement(_e.A,{to:i},r.createElement(fe.A,{image:n})))},QA=n(2880);var XA=e=>{let{block:t}=e;const{facebookUrl:n,twitterXUrl:i,linkedinUrl:a,tiktokUrl:o,youtubeUrl:s,instagramUrl:l,blueskyUrl:d}=t;return r.createElement("div",{className:"block-social-media-links"},n&&r.createElement("a",{href:n,target:"_blank",rel:"noreferrer"},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"46",viewBox:"0 0 45 46",fill:"none"},r.createElement("circle",{cx:"22.5",cy:"23",r:"22.5",fill:"#1EB48F"}),r.createElement("path",{d:"M24.6667 24.7381H27.7619L29 19.7857H24.6667V17.3095C24.6667 16.0343 24.6667 14.8333 27.1429 14.8333H29V10.6733C28.5964 10.6201 27.0723 10.5 25.4628 10.5C22.1013 10.5 19.7143 12.5515 19.7143 16.319V19.7857H16V24.7381H19.7143V35.2619H24.6667V24.7381Z",fill:"white"}))),i&&r.createElement("a",{href:i,target:"_blank",rel:"noreferrer"},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"46",viewBox:"0 0 45 46",fill:"none"},r.createElement("circle",{cx:"22.5",cy:"23",r:"22.5",fill:"#1EB48F"}),r.createElement("path",{d:"M24.9047 21.9696L32.3513 13.5H30.5873L24.1187 20.8525L18.956 13.5H13L20.8087 24.6194L13 33.5H14.764L21.5907 25.7338L27.044 33.5H33M15.4007 14.8016H18.1107L30.586 32.2624H27.8753",fill:"white"}))),a&&r.createElement("a",{href:a,target:"_blank",rel:"noreferrer"},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"46",viewBox:"0 0 45 46",fill:"none"},r.createElement("circle",{cx:"22.5",cy:"23",r:"22.5",fill:"#1EB48F"}),r.createElement("path",{d:"M18.0291 30.5H14.2973V19.15H18.0291V30.5ZM16.1612 17.6017C14.9679 17.6017 14 16.6682 14 15.5412C14 14.9998 14.2277 14.4806 14.633 14.0978C15.0383 13.7151 15.588 13.5 16.1612 13.5C16.7344 13.5 17.2841 13.7151 17.6894 14.0978C18.0947 14.4806 18.3224 14.9998 18.3224 15.5412C18.3224 16.6682 17.3541 17.6017 16.1612 17.6017ZM31.996 30.5H28.2722V24.9749C28.2722 23.6581 28.2441 21.9695 26.332 21.9695C24.3918 21.9695 24.0945 23.4001 24.0945 24.88V30.5H20.3667V19.15H23.9458V20.6982H23.998C24.4963 19.8065 25.7133 18.8654 27.5289 18.8654C31.3057 18.8654 32 21.2143 32 24.2653V30.5H31.996Z",fill:"white"}))),l&&r.createElement("a",{href:l,target:"_blank",rel:"noreferrer"},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"46",viewBox:"0 0 45 46",fill:"none"},r.createElement("circle",{cx:"22.5",cy:"23",r:"22.5",fill:"#1EB48F"}),r.createElement("path",{d:"M23.0286 13.5012C23.7583 13.4984 24.488 13.5058 25.2176 13.5232L25.4116 13.5302C25.6356 13.5382 25.8566 13.5482 26.1236 13.5602C27.1876 13.6102 27.9136 13.7782 28.5506 14.0252C29.2106 14.2792 29.7666 14.6232 30.3226 15.1792C30.831 15.6788 31.2244 16.2832 31.4756 16.9502C31.7226 17.5872 31.8906 18.3142 31.9406 19.3782C31.9526 19.6442 31.9626 19.8662 31.9706 20.0902L31.9766 20.2842C31.9943 21.0134 32.002 21.7428 31.9996 22.4722L32.0006 23.2182V24.5282C32.003 25.258 31.9954 25.9877 31.9776 26.7172L31.9716 26.9112C31.9636 27.1352 31.9536 27.3562 31.9416 27.6232C31.8916 28.6872 31.7216 29.4132 31.4756 30.0502C31.2252 30.718 30.8317 31.3228 30.3226 31.8222C29.8225 32.3306 29.2179 32.724 28.5506 32.9752C27.9136 33.2222 27.1876 33.3902 26.1236 33.4402C25.8566 33.4522 25.6356 33.4622 25.4116 33.4702L25.2176 33.4762C24.4881 33.494 23.7583 33.5017 23.0286 33.4992L22.2826 33.5002H20.9736C20.2438 33.5027 19.5141 33.495 18.7846 33.4772L18.5906 33.4712C18.3532 33.4626 18.1158 33.4526 17.8786 33.4412C16.8146 33.3912 16.0886 33.2212 15.4506 32.9752C14.7833 32.7246 14.1788 32.3311 13.6796 31.8222C13.1706 31.3225 12.7768 30.7178 12.5256 30.0502C12.2786 29.4132 12.1106 28.6872 12.0606 27.6232C12.0494 27.3859
8212.0394 27.1486 12.0306 26.9112L12.0256 26.7172C12.0071 25.9877 11.9988 25.258 12.0006 24.5282V22.4722C11.9978 21.7428 12.0051 21.0134 12.0226 20.2842L12.0296 20.0902C12.0376 19.8662 12.0476 19.6442 12.0596 19.3782C12.1096 18.3132 12.2776 17.5882 12.5246 16.9502C12.7759 16.2829 13.1705 15.6787 13.6806 15.1802C14.1795 14.671 14.7835 14.2768 15.4506 14.0252C16.0886 13.7782 16.8136 13.6102 17.8786 13.5602L18.5906 13.5302L18.7846 13.5252C19.5138 13.5068 20.2432 13.4985 20.9726 13.5002L23.0286 13.5012ZM22.0006 18.5002C20.6745 18.5002 19.4027 19.027 18.465 19.9647C17.5274 20.9024 17.0006 22.1741 17.0006 23.5002C17.0006 24.8263 17.5274 26.0981 18.465 27.0358C19.4027 27.9734 20.6745 28.5002 22.0006 28.5002C23.3267 28.5002 24.5984 27.9734 25.5361 27.0358C26.4738 26.0981 27.0006 24.8263 27.0006 23.5002C27.0006 22.1741 26.4738 20.9024 25.5361 19.9647C24.5984 19.027 23.3267 18.5002 22.0006 18.5002ZM22.0006 20.5002C22.3945 20.5002 22.7847 20.5777 23.1487 20.7284C23.5127 20.8791 23.8434 21.1 24.122 21.3786C24.4007 21.6571 24.6217 21.9878 24.7725 22.3517C24.9233 22.7157 25.001 23.1058 25.0011 23.4997C25.0011 23.8937 24.9236 24.2838 24.7729 24.6478C24.6222 25.0118 24.4013 25.3426 24.1228 25.6212C23.8442 25.8998 23.5135 26.1209 23.1496 26.2717C22.7856 26.4225 22.3955 26.5002 22.0016 26.5002C21.2059 26.5002 20.4429 26.1842 19.8803 25.6216C19.3176 25.0589 19.0016 24.2959 19.0016 23.5002C19.0016 22.7046 19.3176 21.9415 19.8803 21.3789C20.4429 20.8163 21.2059 20.5002 22.0016 20.5002M27.2516 17.0002C26.929 17.0131 26.6239 17.1504 26.4002 17.3832C26.1765 17.616 26.0516 17.9264 26.0516 18.2492C26.0516 18.5721 26.1765 18.8824 26.4002 19.1153C26.6239 19.3481 26.929 19.4853 27.2516 19.4982C27.5831 19.4982 27.901 19.3665 28.1355 19.1321C28.3699 18.8977 28.5016 18.5798 28.5016 18.2482C28.5016 17.9167 28.3699 17.5988 28.1355 17.3643C27.901 17.1299 27.5831 16.9982 27.2516 16.9982",fill:"white"}))),o&&r.createElement("a",{href:o,target:"_blank",rel:"noreferrer"},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"46",viewBox:"0 0 45 46",fill:"none"},r.createElement("circle",{cx:"22.5",cy:"23",r:"22.5",fill:"#1EB48F"}),r.createElement("path",{d:"M23.0796 9.5225C24.5246 9.5 25.9586 9.51125 27.3926 9.5C27.4809 11.2212 28.0875 12.9762 29.323 14.1912C30.5584 15.4399 32.3013 16.0137 34 16.2049V20.7386C32.4116 20.6824 30.8121 20.3449 29.3671 19.6474C28.7384 19.3549 28.1537 18.9836 27.5801 18.6011C27.5691 21.8861 27.5912 25.1711 27.5581 28.4448C27.4698 30.0197 26.9624 31.5835 26.0689 32.8772C24.6239 35.0372 22.1199 36.4434 19.5498 36.4884C17.9724 36.5784 16.395 36.1397 15.0493 35.3297C12.8211 33.9909 11.2547 31.5385 11.0231 28.906C11.001 28.3435 10.99 27.781 11.012 27.2298C11.2106 25.0923 12.2475 23.0448 13.8579 21.6498C15.689 20.0299 18.2482 19.2536 20.6418 19.7149C20.6639 21.3799 20.5977 23.0448 20.5977 24.7098C19.5057 24.3498 18.2261 24.4511 17.2664 25.1261C16.5715 25.5873 16.042 26.296 15.7663 27.0948C15.5346 27.6685 15.6008 28.2985 15.6118 28.906C15.8766 30.751 17.6194 32.3035 19.4726 32.1347C20.708 32.1235 21.8883 31.3922 22.5281 30.3235C22.7377 29.9522 22.9693 29.5697 22.9803 29.131C23.0906 27.1173 23.0465 25.1148 23.0575 23.1011C23.0686 18.5674 23.0465 14.0449 23.0796 9.5225Z",fill:"white"}))),s&&r.createElement("a",{href:s,target:"_blank",rel:"noreferrer"},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"46",viewBox:"0 0 45 46",fill:"none"},r.createElement("circle",{cx:"22.5",cy:"23",r:"22.5",fill:"#1EB48F"}),r.createElement("path",{d:"M34.4985 17.3164C34.2225 16.2078 33.4092 15.3347 32.3766 15.0384C30.505 14.5 23 14.5 23 14.5C23 14.5 15.495 14.5 13.6234 15.0384C12.5908 15.3347 11.7775 16.2078 11.5015 17.3164C11 19.3258 11 23.5182 11 23.5182C11 23.5182 11 27.7106 11.5015 29.72C11.7775 30.8286 12.5908 31.6653 13.6234 31.9616C15.495 32.5 23 32.5 23 32.5C23 32.5 30.505 32.5 32.3766 31.9616C33.4092 31.6653 34.2225 30.8286 34.4985 29.72C35 27.7106 35 23.5182 35 23.5182C35 23.5182 35 19.3258 34.4985 17.3164ZM20.5454 27.3246V19.7118L26.8181 23.5183L20.5454 27.3246Z",fill:"white"}))),d&&r.createElement("a",{href:d,target:"_blank",rel:"noreferrer"},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"45",viewBox:"0 0 45 45",fill:"none"},r.createElement("circle",{cx:"22.5",cy:"22.5",r:"22.5",fill:"#1EB48F"}),r.createElement("path",{d:"M23 21.4661C21.913 19.3521 18.954 15.4131 16.202 13.4711C13.566 11.6101 12.561 11.9321 11.902 12.2311C11.139 12.5741 11 13.7461 11 14.4341C11 15.1241 11.378 20.0841 11.624 20.9131C12.439 23.6491 15.337 24.5731 18.007 24.2771C18.143 24.2571 18.2813 24.2384 18.422 24.2211C18.284 24.2431 18.1457 24.2617 18.007 24.2771C14.095 24.8571 10.62 26.2821 15.177 31.3551C20.19 36.5451 22.047 30.2421 23 27.0471C23.953 30.2421 25.05 36.3181 3
820.733 31.3551C35 27.0471 31.905 24.8571 27.993 24.2771C27.8543 24.2616 27.7159 24.243 27.578 24.2211C27.718 24.2384 27.8563 24.2571 27.993 24.2771C30.663 24.5741 33.561 23.6491 34.376 20.9131C34.622 20.0851 35 15.1231 35 14.4351C35 13.7451 34.861 12.5741 34.098 12.2291C33.439 11.9311 32.434 11.6091 29.798 13.4691C27.046 15.4141 24.087 19.3531 23 21.4661Z",fill:"white"}))))};var JA=e=>{let{content:t}=e;if(!t||null==t||!t.value)return null;const n=(0,zA.XY)(t);return r.createElement(ve,{data:n,renderBlock:e=>{let{record:t}=e;switch(t.__typename){case"DatoCmsEmbedIframe":return r.createElement(ge,{content:t,key:t.id});case"DatoCmsTableBlock":return r.createElement(ye.A,{content:t,key:t.id});case"DatoCmsAcordion":return r.createElement(be.A,{items:t.items,key:t.id});case"DatoCmsCta":return r.createElement("div",{key:t.id,className:"structured-cta"},r.createElement(Ee.A,{cta:t}));case"DatoCmsMembersBlock":return r.createElement(Ae,{key:t.id,block:t});case"DatoCmsImage":return r.createElement("div",{key:t.id},r.createElement(fe.A,{image:t.image}));case"DatoCmsHeadlineWithIcon":return r.createElement(ke,{key:t.id,block:t});case"DatoCmsEmbed":return r.createElement(we,{key:t.id,block:t});case"DatoCmsVacancyBlock":return r.createElement(Se,{key:t.id,block:t});case"DatoCmsFile":return r.createElement(Ce,{key:t.id,block:t});case"DatoCmsVideo":return r.createElement(KA,{key:t.id,block:t});case"DatoCmsSingleForm":return r.createElement(YA,{key:t.id,block:t});case"DatoCmsTable":return r.createElement(ye.A,{key:t.id,block:t});case"DatoCmsImageHyperlink":return r.createElement(ZA,{key:t.id,block:t});case"DatoCmsSocialMediaLink":return r.createElement(XA,{key:t.id,block:t});default:return null}},renderLinkToRecord:e=>{let{record:t,children:n}=e;return r.createElement(_e.A,{to:t},n)},customNodeRules:[U(QA.PJ,(e=>{let{adapter:{renderNode:t},node:n,children:i,key:a}=e;return n.url.startsWith("#")?t("a",{href:n.url,key:a},i):t("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",key:a},i)}))]})}},1867:function(e,t,n){"use strict";var i=n(6540);t.A=function(e){let{block:t}=e;const{content:n}=t;return i.createElement("div",{className:"responsive-table"},i.createElement("div",{dangerouslySetInnerHTML:{__html:n}}))}},6494:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(6540),a=n(40);function r(e){let{cta:t=null,variant:n=null}=e;return i.createElement(a.A,{to:t,className:"custom-btn "+(n||"")},null==t?void 0:t.label)}},6930:function(e,t,n){"use strict";var i=n(6540),a=n(6494);t.A=e=>{let{ctas:t=[]}=e;return t&&0!==t.length?i.createElement("div",{className:"ctas"},t.map(((e,t)=>{var n;return i.createElement(a.A,{key:null!==(n=e.id)&&void 0!==n?n:"cta-"+t,cta:e})}))):null}},4369:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n(6540),a=n(2532);var r=e=>{let{image:t,imageMobile:n,...r}=e;const o=null!=t&&t.alt?t.alt:r.alt?r.alt:"image";let s=null==t?void 0:t.gatsbyImageData;return n&&(s=(0,a.w)((0,a.c)(t),[{media:"(max-width: 768px)",image:(0,a.c)(n)}])),null!=t&&t.gatsbyImageData?i.createElement(a.G,Object.assign({alt:o,image:s},r)):null!=t&&t.url?i.createElement("img",{src:t.url,alt:o,loading:"lazy"}):""},o="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMSIgdmlld0JveD0iMCAwIDIwIDIxIiBmaWxsPSJub25lIj4KICA8cGF0aCBvcGFjaXR5PSIwLjUiIGQ9Ik04LjY1ODQzIDNMNy42ODI4NCA1LjA1ODc4SDQuMzY1OEMzLjYwOTE2IDUuMDU4NzggMyA1LjcwMTU2IDMgNi40OTk5MVYxNS41NTg5QzMgMTYuMzU3MiAzLjYwOTE5IDE3IDQuMzY1OCAxN0gxNy42MzQyQzE4LjM5MDggMTcgMTkgMTYuMzU3MiAxOSAxNS41NTg5VjYuNDk5OTFDMTkgNS43MDE0MyAxOC4zOTA4IDUuMDU4NzggMTcuNjM0MiA1LjA1ODc4SDE0LjMxNzJMMTMuMzQxNiAzSDguNjU4NDNaTTEwLjk5OTkgNi40OTk5NkMxMy4zNjE1IDYuNDk5OTYgMTUuMjkyNyA4LjUzNzU3IDE1LjI5MjcgMTEuMDI5NEMxNS4yOTI3IDEzLjUyMTIgMTMuMzYxNiAxNS41NTg5IDEwLjk5OTkgMTUuNTU4OUM4LjYzODQ3IDE1LjU1ODkgNi43MDcxOSAxMy41MjEzIDYuNzA3MTkgMTEuMDI5NEM2LjcwNzE5IDguNTM3NjMgOC42MzgzMSA2LjQ5OTk2IDEwLjk5OTkgNi40OTk5NlpNMTAuOTk5OSA4LjE0NzAxQzkuNDgyMDQgOC4xNDcwMSA4LjI2ODI0IDkuNDI3NzggOC4yNjgyNCAxMS4wMjk0QzguMjY4MjQgMTIuNjMxIDkuNDgyMDcgMTMuOTExNyAxMC45OTk5IDEzLjkxMTdDMTIuNTE3OSAxMy45MTE3IDEzLjczMTcgMTIuNjMwOSAxMy43MzE3IDExLjAyOTRDMTMuNzMxNyA5LjQyNzc1IDEyLjUxNzggOC4xNDcwMSAxMC45OTk5IDguMTQ3MDFaIiBmaWxsPSIjMDExQzI1Ii8+Cjwvc3ZnPg==";function s(e){let{image:t,imageMobile:n=null,...a}=e;return i.createElement("div",{className:"image-wrapper"},i.createElement(r,Object.assign({image:t,imageMobile:n}
82,a)),(null==t?void 0:t.title)&&i.createElement("div",{className:"caption"},i.createElement("img",{src:o,alt:"Caption icon"}),i.createElement("span",{className:"image-caption"},t.title)))}},40:function(e,t,n){"use strict";var i=n(6540),a=n(4810),r=n(1953),o=n(1463);t.A=e=>{var t;let{to:n={},params:s=null,children:l,...d}=e;const{region:u}=(0,o.A)();if(null!=n&&n.externalUrl)return i.createElement("a",Object.assign({href:n.externalUrl,target:"_blank"},d),l);const{model:c,slug:h}=(null==n?void 0:n.link)||n||{},m=(null==n?void 0:n.region)||(null==n||null===(t=n.link)||void 0===t?void 0:t.region);let p=null;const v=null==n?void 0:n.redirects;if(v){const e=v[u.toLowerCase()];e&&(p=(0,r.sb)(e.model,e.slug,e.region))}let f=(0,r.sb)(c,h,m);const b="undefined"!=typeof window?window.location.pathname:"";return null!=n&&n.withMultipleRegions&&(f="/"+u.toLowerCase()+f),i.createElement(a.N_,Object.assign({activeClassName:"active-link",to:p||f,state:{prevPath:b,params:s}},d),l)}},4138:function(e,t,n){"use strict";var i=n(6540);t.A=e=>{let{variant:t}=e;return i.createElement("span",{className:"loader "+(t||"")})}},1862:function(e,t,n){"use strict";var i=n(6540),a=n(4369),r=n(4138);t.A=function(e){let{video:t,thumbnail:n=null,toggleModal:o}=e;const{0:s,1:l}=(0,i.useState)(o||!1),{0:d,1:u}=(0,i.useState)(!0);return t?i.createElement("div",{className:"video-player"},s?i.createElement("div",{className:"fullscreen"},i.createElement("span",{onClick:()=>{l(!1),document.body.style.overflow=""}},"Close"),d&&i.createElement("div",{className:"spinner"},i.createElement(r.A,null)),i.createElement("iframe",{src:(()=>{var e;const n=null!==(e=null==t?void 0:t.url)&&void 0!==e?e:t.source.url,i=null==n?void 0:n.match(/(?:v=|\/shorts\/)([^&?/]+)/),a=i?i[1]:null;if(!a)return console.error("VideoPlayer: Invalid video URL."),null;const r="undefined"!=typeof window?window.location.origin:"https://positivemoney.org",o=new URL("https://www.youtube-nocookie.com/embed/"+a);return o.searchParams.set("autoplay","1"),o.searchParams.set("origin",r),o.searchParams.set("enablejsapi","1"),o.searchParams.set("rel","0"),o.searchParams.set("modestbranding","1"),o.toString()})(),onLoad:()=>u(!1),style:d?{display:"none"}:{},referrerpolicy:"strict-origin-when-cross-origin"})):i.createElement("div",{className:"thumbnail",onClick:()=>{l(!0),u(!0),document.body.style.overflow="hidden"}},i.createElement(a.A,{image:n||(null!=t&&t.source?{url:t.source.thumbnailUrl}:{url:null==t?void 0:t.thumbnailUrl})}),i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"86",height:"86",viewBox:"0 0 86 86",fill:"none"},i.createElement("circle",{cx:"43",cy:"43",r:"43",fill:"#011C25"}),i.createElement("path",{d:"M34 29V58L58.4211 43.5L34 29Z",fill:"#FAF9F6"})))):null}},5938:function(e,t,n){"use strict";var i=n(6540),a=n(2927);t.A=e=>{let{seo:t,favicon:n=null,homepage:r=!1,children:o}=e;return r&&(t.tags[0].content=t.tags[0].content.replace("- PositiveMoney","")),i.createElement(a.HelmetDatoCms,{seo:t,favicon:null==n?void 0:n.faviconMetaTags},o)}},4392:function(e,t,n){"use strict";var i=n(6540);t.A=e=>((0,i.useEffect)((()=>{if(!e)return;const{sourceUrl:t,cssLink:n,containerElementId:i}=e,a=document.getElementById(i);if(!a||!t)return;let r=null;n&&(r=document.createElement("link"),r.href=n,r.rel="stylesheet",r.type="text/css",document.head.appendChild(r));const o=document.createElement("script");return o.src=t,o.async=!0,a.appendChild(o),()=>{r&&r.parentNode&&r.parentNode.removeChild&&r.parentNode.removeChild(r),o&&o.parentNode&&o.parentNode.removeChild&&o.parentNode.removeChild(o)}}),[e]),{formId:null==e?void 0:e.containerElementId})},1463:function(e,t,n){"use strict";var i=n(6540),a=n(6267);t.A=function(){const e=(0,i.useContext)(a.S),{region:t="",updateRegion:n,regionForFilters:r="",updateRegionForFilters:o,sharedRegionForFilters:s="",updateSharedRegionForFilters:l,showInitialPopUp:d}=e||{};return{region:t,updateRegion:n,regionForFilters:r,updateRegionForFilters:o,sharedRegionForFilters:s,updateSharedRegionForFilters:l,showInitialPopUp:d}}},1953:function(e,t,n){"use strict";n.d(t,{Fj:function(){return s},XY:function(){return l},ch:function(){return o},sb:function(){return r}});n(2041);var i=n(2880),a=n(7290);const r=function(e,t,n){void 0===e&&(e={}),void 0===t&&(t=""),void 0===n&&(n=[]);const{apiKey:i}=e;if("work"===i){return"/"+(0,a.En)([n]).toLowerCase()+"/work/"+t}if("update"===i){return"/"+(0,a.En)(n).toLowerCase()+"/update/"+t}if("resource_publication"===i){return"/"+(0,a.En)(n).toLowerCase()+"/publications/"+t}if("take_action"===i)return"/action/"+t;if("team"===i)return"/team/"+t;if("archive"===i){return"/"+(0,a.En)(n).toLowerCase()+"/archive/"+t}if("resource_video"===i){return"/"+(0,a.En)(n).toLowerCase()+"/videos/"+t}if("vacancie"===i)return"/vacancy/"+t;if("coverage"===i){return"/"+(0,a.En)(n).toLowerCase()+"/coverage/"+t}if("press_release"===i){return"/"+(0,a.En)(n).toLowerCase()+"/press-release/"+t}{const e=(0,a.En)(n);return e&&"no-set"!==e?"/"+e.toLowerCase()+"/"+t:"/"+t}},o=e=>!e||!e.value&&0===e.blocks.length||(0,i.n6)(e),s=e=>e?e.toLowerCase().replaceAll(" ","-"):"",l=e=>{let t=e;if("string"==typeof t)return t=t.replace(/\[shortcut\](.*?)\[\/shortcut\]/gi,"$1"),t=t.replace(/\[sws_button[^\]]*\](.*?)\[\/sws_button\]/gi,"$1"),t=t.replace(/\[line\]/gi,""),t=t.replace(/\[quote[^\]]*\](.*?)\[\/quote\]/gi,"$1"),t=t.replace(/\[quote[^\]]*\]/gi,""),t=t.replace(/\[\/quote\]/gi,""),t=t.replace(/\[sws_divider_top\]/gi,""),t=t.replace(/\[et_pb_section[^\]]*\]/gi,""),t=t.replace(/\[et_pb_row[^\]]*\]/gi,""),t=t.replace(/\[et_pb_column[^\]]*\]\[et_pb_text[^\]]*\](.*?)\[\/et_pb_text\]\[\/et_pb_column\]/gi,"$1"),t=t.replace(/\[et_pb_column[^\]]*\]/gi,""),t=t.replace(/\[et_pb_text[^\]]*\]/gi,""),t=t.replace(/\[\/et_pb_row\]/gi,""),t=t.replace(/\[\/et_pb_section\]/gi,""),t=t.replace(/\[\/et_pb_text\]/gi,""),t=t.replace(/\[\/et_pb_column\]/gi,""),t;if("object"==typeof t&&null!==t)for(const n in t)t[n]=l(t[n]);return t}},7290:function(e,t,n){"use strict";n.d(t,{EJ:function(){return i},En:function(){return o},Zr:function(){return a}});const i=(e,t)=>e.length<=t?e:e.substring(0,t)+"...",a=e=>{if(!e)return e;if(r(e)){let t=e.toLowerCase();return t=t.replace(/&/g,"&"),t.charAt(0).toUpperCase()+t.slice(1)}return e.replace(/&/g,"&")},r=e=>e.split(" ").every((e=>e===e.toUpperCase())),o=e=>{const t=["UK","EU","GLOBAL","US"],n=e.map((e=>{var t;return null===(t=e.label)||void 0===t?void 0:t.toUpperCase()})).filter((e=>t.includes(e))).sort(((e,n)=>t.indexOf(e)-t.indexOf(n)));return n.length>0?n.join("-"):"no-set"}},453:function(e,t,n){"use strict";var i,a=n(9383),r=n(1237),o=n(9290),s=n(9538),l=n(8068),d=n(9675),u=n(5345),c=Function,h=function(e){try{return c('"use strict"; return ('+e+").constructor;")()}catch(t){}},m=Object.getOwnPropertyDescriptor;if(m)try{m({},"")}catch(N){m=null}var p=function(){throw new d},v=m?function(){try{return p}catch(e){try{return m(arguments,"callee").get}catch(t){return p}}}():p,f=n(4039)(),b=n(24)(),g=Object.getPrototypeOf||(b?function(e){return e.__proto__}:null),y={},E="undefined"!=typeof Uint8Array&&g?g(Uint8Array):i,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":f&&g?g([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":r,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
82IteratorPrototype%":f&&g?g(g([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&g?g((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&g?g((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&g?g(""[Symbol.iterator]()):i,"%Symbol%":f?Symbol:i,"%SyntaxError%":l,"%ThrowTypeError%":v,"%TypedArray%":E,"%TypeError%":d,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet};if(g)try{null.error}catch(N){var A=g(g(N));_["%Error.prototype%"]=A}var k=function e(t){var n;if("%AsyncFunction%"===t)n=h("async function () {}");else if("%GeneratorFunction%"===t)n=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=h("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&g&&(n=g(a.prototype))}return _[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(6743),S=n(9957),C=T.call(Function.call,Array.prototype.concat),I=T.call(Function.apply,Array.prototype.splice),x=T.call(Function.call,String.prototype.replace),L=T.call(Function.call,String.prototype.slice),R=T.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,O=function(e,t){var n,i=e;if(S(w,i)&&(i="%"+(n=w[i])[0]+"%"),S(_,i)){var a=_[i];if(a===y&&(a=k(i)),void 0===a&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new d('"allowMissing" argument must be a boolean');if(null===R(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=L(e,0,1),n=L(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var i=[];return x(e,M,(function(e,t,n,a){i[i.length]=n?x(a,D,"$1"):t||e})),i}(e),i=n.length>0?n[0]:"",a=O("%"+i+"%",t),r=a.name,o=a.value,s=!1,u=a.alias;u&&(i=u[0],I(n,C([0,1],u)));for(var c=1,h=!0;c<n.length;c+=1){var p=n[c],v=L(p,0,1),f=L(p,-1);if(('"'===v||"'"===v||"`"===v||'"'===f||"'"===f||"`"===f)&&v!==f)throw new l("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),S(_,r="%"+(i+="."+p)+"%"))o=_[r];
82else if(null!=o){if(!(p in o)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(m&&c+1>=n.length){var b=m(o,p);o=(h=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:o[p]}else h=S(o,p),o=o[p];h&&!s&&(_[r]=o)}}return o}},5795:function(e,t,n){"use strict";var i=n(453)("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch(a){i=null}e.exports=i},592:function(e,t,n){"use strict";var i=n(655),a=function(){return!!i};a.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},24:function(e){"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},4039:function(e,t,n){"use strict";var i="undefined"!=typeof Symbol&&Symbol,a=n(1333);e.exports=function(){return"function"==typeof i&&("function"==typeof Symbol&&("symbol"==typeof i("foo")&&("symbol"==typeof Symbol("bar")&&a())))}},1333:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},9957:function(e,t,n){"use strict";var i=Function.prototype.call,a=Object.prototype.hasOwnProperty,r=n(6743);e.exports=r.call(i,a)},8875:function(e,t,n){"use strict";var i;if(!Object.keys){var a=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=n(1093),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),d=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},m=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{c(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();i=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===r.call(e),i=o(e),s=t&&"[object String]"===r.call(e),h=[];if(!t&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var p=d&&n;if(s&&e.length>0&&!a.call(e,0))for(var v=0;v<e.length;++v)h.push(String(v));if(i&&e.length>0)for(var f=0;f<e.length;++f)h.push(String(f));else for(var b in e)p&&"prototype"===b||!a.call(e,b)||h.push(String(b));if(l)for(var g=function(e){if("undefined"==typeof window||!m)return c(e);try{return c(e)}catch(t){return!1}}(e),y=0;y<u.length;++y)g&&"constructor"===u[y]||!a.call(e,u[y])||h.push(u[y]);return h}}e.exports=i},1189:function(e,t,n){"use strict";var i=Array.prototype.slice,a=n(1093),r=Object.keys,o=r?function(e){return r(e)}:n(8875),s=Object.keys;o.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return a(e)?s(i.call(e)):s(e)})}else Object.keys=o;return Object.keys||o},e.exports=o},1093:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),i="[object Arguments]"===n;
82return i||(i="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),i}},3488:function(e,t,n){"use strict";var i=n(351),a=n(8075),r=a("Object.prototype.propertyIsEnumerable"),o=a("Array.prototype.push");e.exports=function(e){var t=i(e),n=[];for(var a in t)r(t,a)&&o(n,[a,t[a]]);return n}},3932:function(e,t,n){"use strict";var i=n(8452),a=n(487),r=n(3488),o=n(3445),s=n(7891),l=a(o(),Object);i(l,{getPolyfill:o,implementation:r,shim:s}),e.exports=l},3445:function(e,t,n){"use strict";var i=n(3488);e.exports=function(){return"function"==typeof Object.entries?Object.entries:i}},7891:function(e,t,n){"use strict";var i=n(3445),a=n(8452);e.exports=function(){var e=i();return a(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},115:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,i="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function r(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var s,l,d,u;if(Array.isArray(e)){if((s=e.length)!=o.length)return!1;for(l=s;0!=l--;)if(!r(e[l],o[l]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!r(l.value[1],o.get(l.value[0])))return!1;return!0}if(i&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((s=e.length)!=o.length)return!1;for(l=s;0!=l--;)if(e[l]!==o[l])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof o.toString)return e.toString()===o.toString();if((s=(d=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(o,d[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==d[l]&&"__v"!==d[l]&&"__o"!==d[l]||!e.$$typeof)&&!r(e[d[l]],o[d[l]]))return!1;return!0}return e!=e&&o!=o}e.exports=function(e,t){try{return r(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},8154:function(e,t,n){"use strict";n.r(t),n.d(t,{Helmet:function(){return me}});var i,a,r,o,s=n(5556),l=n.n(s),d=n(2098),u=n.n(d),c=n(115),h=n.n(c),m=n(6540),p=n(8828),v=n.n(p),f="bodyAttributes",b="htmlAttributes",g="titleAttributes",y={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},E=(Object.keys(y).map((function(e){return y[e]})),"charset"),_="cssText",A="href",k="http-equiv",w="innerHTML",T="itemprop",S="name",C="property",I="rel",x="src",L="target",R={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},M="defaultTitle",D="defer",O="encodeSpecialCharacters",N="onChangeClientState",P="titleTemplate",U=Object.keys(R).reduce((function(e,t){return e[R[t]]=t,e}),{}),B=[y.NOSCRIPT,y.SCRIPT,y.STYLE],W="data-react-helmet",H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},V=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n},F=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},$=function(e){var t=Z(e,y.TITLE),n=Z(e,P);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var i=Z(e,M);return t||i||void 0},K=function(e){return Z(e,N)||function(){}},G=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return q({},e,t)}),{})},Y=function(e,t){return t.filter((function(e){return void 0!==e[y.BASE]})).map((function(e){return e[y.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var i=Object.keys(n),a=0;a<i.length;a++){var r=i[a].toLowerCase();if(-1!==e.indexOf(r)&&n[r])return t.concat(n)}return t}),[])},z=function(e,t,n){var i={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&te("Helmet: "+e+' should be of type "Array". Instead found type "'+H(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n=void 0,r=Object.keys(e),o=0;o<r.length;o++){var s=r[o],l=s.toLowerCase();-1===t.indexOf(l)||n===I&&"canonical"===e[n].toLowerCase()||l===I&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==w&&s!==_&&s!==T||(n=s)}if(!n||!e[n])return!1;var d=e[n].toLowerCase();return i[n]||(i[n]={}),a[n]||(a[n]={}),!i[n][d]&&(a[n][d]=!0,!0)}
82)).reverse().forEach((function(t){return e.push(t)}));for(var r=Object.keys(a),o=0;o<r.length;o++){var s=r[o],l=v()({},i[s],a[s]);i[s]=l}return e}),[]).reverse()},Z=function(e,t){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.hasOwnProperty(t))return i[t]}return null},Q=(i=Date.now(),function(e){var t=Date.now();t-i>16?(i=t,e(t)):setTimeout((function(){Q(e)}),0)}),X=function(e){return clearTimeout(e)},J="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Q:n.g.requestAnimationFrame||Q,ee="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||X:n.g.cancelAnimationFrame||X,te=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ne=null,ie=function(e,t){var n=e.baseTag,i=e.bodyAttributes,a=e.htmlAttributes,r=e.linkTags,o=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,d=e.scriptTags,u=e.styleTags,c=e.title,h=e.titleAttributes;oe(y.BODY,i),oe(y.HTML,a),re(c,h);var m={baseTag:se(y.BASE,n),linkTags:se(y.LINK,r),metaTags:se(y.META,o),noscriptTags:se(y.NOSCRIPT,s),scriptTags:se(y.SCRIPT,d),styleTags:se(y.STYLE,u)},p={},v={};Object.keys(m).forEach((function(e){var t=m[e],n=t.newTags,i=t.oldTags;n.length&&(p[e]=n),i.length&&(v[e]=m[e].oldTags)})),t&&t(),l(e,p,v)},ae=function(e){return Array.isArray(e)?e.join(""):e},re=function(e,t){void 0!==e&&document.title!==e&&(document.title=ae(e)),oe(y.TITLE,t)},oe=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var i=n.getAttribute(W),a=i?i.split(","):[],r=[].concat(a),o=Object.keys(t),s=0;s<o.length;s++){var l=o[s],d=t[l]||"";n.getAttribute(l)!==d&&n.setAttribute(l,d),-1===a.indexOf(l)&&a.push(l);var u=r.indexOf(l);-1!==u&&r.splice(u,1)}for(var c=r.length-1;c>=0;c--)n.removeAttribute(r[c]);a.length===r.length?n.removeAttribute(W):n.getAttribute(W)!==o.join(",")&&n.setAttribute(W,o.join(","))}},se=function(e,t){var n=document.head||document.querySelector(y.HEAD),i=n.querySelectorAll(e+"["+W+"]"),a=Array.prototype.slice.call(i),r=[],o=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var i in t)if(t.hasOwnProperty(i))if(i===w)n.innerHTML=t.innerHTML;else if(i===_)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[i]?"":t[i];n.setAttribute(i,s)}n.setAttribute(W,"true"),a.some((function(e,t){return o=t,n.isEqualNode(e)}))?a.splice(o,1):r.push(n)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),r.forEach((function(e){return n.appendChild(e)})),{oldTags:a,newTags:r}},le=function(e){return Object.keys(e).reduce((function(t,n){var i=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+i:i}),"")},de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[R[n]||n]=e[n],t}),t)},ue=function(e,t,n){switch(e){case y.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(i={key:e})[W]=!0,a=de(n,i),[m.createElement(y.TITLE,a,e)];var e,n,i,a},toString:function(){return function(e,t,n,i){var a=le(n),r=ae(t);return a?"<"+e+" "+W+'="true" '+a+">"+F(r,i)+"</"+e+">":"<"+e+" "+W+'="true">'+F(r,i)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case f:case b:return{toComponent:function(){return de(t)},toString:function(){return le(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var i,a=((i={key:n})[W]=!0,i);return Object.keys(t).forEach((function(e){var n=R[e]||e;if(n===w||n===_){var i=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:i}}else a[n]=t[e]})),m.createElement(e,a)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,i){var a=Object.keys(i).filter((function(e){return!(e===w||e===_)})).reduce((function(e,t){var a=void 0===i[t]?t:t+'="'+F(i[t],n)+'"';return e?e+" "+a:a}),""),r=i.innerHTML||i.cssText||"",o=-1===B.indexOf(e);return t+"<"+e+" "+W+'="true" '+a+(o?"/>":">"+r+"</"+e+">")}),"")}(e,t,n)}}}},ce=function(e){var t=e.baseTag,n=e.bodyAttributes,i=e.encode,a=e.htmlAttributes,r=e.linkTags,o=e.metaTags,s=e.noscriptTags,l=e.scriptTags,d=e.styleTags,u=e.title,c=void 0===u?"":u,h=e.titleAttributes;return{base:ue(y.BASE,t,i),bodyAttributes:ue(f,n,i),htmlAttributes:ue(b,a,i),link:ue(y.LINK,r,i),meta:ue(y.META,o,i),noscript:ue(y.NOSCRIPT,s,i),script:ue(y.SCRIPT,l,i),style:ue(y.STYLE,d,i),title:ue(y.TITLE,{title:c,titleAttributes:h},i)}}
82,he=u()((function(e){return{baseTag:Y([A,L],e),bodyAttributes:G(f,e),defer:Z(e,D),encode:Z(e,O),htmlAttributes:G(b,e),linkTags:z(y.LINK,[I,A],e),metaTags:z(y.META,[S,E,k,C,T],e),noscriptTags:z(y.NOSCRIPT,[w],e),onChangeClientState:K(e),scriptTags:z(y.SCRIPT,[x,w],e),styleTags:z(y.STYLE,[_],e),title:$(e),titleAttributes:G(g,e)}}),(function(e){ne&&ee(ne),e.defer?ne=J((function(){ie(e,(function(){ne=null}))})):(ie(e),ne=null)}),ce)((function(){return null})),me=(a=he,o=r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!h()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case y.SCRIPT:case y.NOSCRIPT:return{innerHTML:t};case y.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,i=e.arrayTypeChildren,a=e.newChildProps,r=e.nestedChildren;return q({},i,((t={})[n.type]=[].concat(i[n.type]||[],[q({},a,this.mapNestedChildrenToProps(n,r))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,i=e.child,a=e.newProps,r=e.newChildProps,o=e.nestedChildren;switch(i.type){case y.TITLE:return q({},a,((t={})[i.type]=o,t.titleAttributes=q({},r),t));case y.BODY:return q({},a,{bodyAttributes:q({},r)});case y.HTML:return q({},a,{htmlAttributes:q({},r)})}return q({},a,((n={})[i.type]=q({},r),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=q({},t);return Object.keys(e).forEach((function(t){var i;n=q({},n,((i={})[t]=e[t],i))})),n}
82,t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,i={};return m.Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,r=a.children,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[U[n]||n]=e[n],t}),t)}(V(a,["children"]));switch(n.warnOnInvalidChildren(e,r),e.type){case y.LINK:case y.META:case y.NOSCRIPT:case y.SCRIPT:case y.STYLE:i=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:o,nestedChildren:r});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:r})}}})),t=this.mapArrayTypeChildrenToProps(i,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=V(e,["children"]),i=q({},n);return t&&(i=this.mapChildrenToProps(t,i)),m.createElement(a,i)},j(t,null,[{key:"canUseDOM",set:function(e){a.canUseDOM=e}}]),t}(m.Component),r.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=a.peek,r.rewind=function(){var e=a.rewind();return e||(e=ce({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},o);me.renderStatic=me.rewind,t.default=me},2098:function(e,t,n){"use strict";var i,a=n(6540),r=(i=a)&&"object"==typeof i&&"default"in i?i.default:i;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(i){if("function"!=typeof i)throw new Error("Expected WrappedComponent to be a React component.");var l,d=[];function u(){l=e(d.map((function(e){return e.props}))),c.canUseDOM?t(l):n&&(l=n(l))}var c=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.peek=function(){return l},a.rewind=function(){if(a.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,d=[],e};var o=a.prototype;return o.UNSAFE_componentWillMount=function(){d.push(this),u()},o.componentDidUpdate=function(){u()},o.componentWillUnmount=function(){var e=d.indexOf(this);d.splice(e,1),u()},o.render=function(){return r.createElement(i,this.props)},a}(a.PureComponent);return o(c,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(i)+")"),o(c,"canUseDOM",s),c}}},6897:function(e,t,n){"use strict";var i=n(453),a=n(41),r=n(592)(),o=n(5795),s=n(9675),l=i("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,d=!0;if("length"in e&&o){var u=o(e,"length");u&&!u.configurable&&(i=!1),u&&!u.writable&&(d=!1)}return(i||d||!n)&&(r?a(e,"length",t,!0,!0):a(e,"length",t)),e}},9306:function(e,t,n){"use strict";var i=n(4901),a=n(6823),r=TypeError;e.exports=function(e){if(i(e))return e;throw new r(a(e)+" is not a function")}},8551:function(e,t,n){"use strict";var i=n(34),a=String,r=TypeError;e.exports=function(e){if(i(e))return e;throw new r(a(e)+" is not an object")}},9617:function(e,t,n){"use strict";var i=n(5397),a=n(5610),r=n(6198),o=function(e){return function(t,n,o){var s=i(t),l=r(s);if(0===l)return!e&&-1;var d,u=a(o,l);if(e&&n!=n){for(;l>u;)if((d=s[u++])!=d)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},4576:function(e,t,n){"use strict";var i=n(9504),a=i({}.toString),r=i("".slice);e.exports=function(e){return r(a(e),8,-1)}}
vendor: 14,597 bytes, line 82
82,6955:function(e,t,n){"use strict";var i=n(2140),a=n(4901),r=n(4576),o=n(8227)("toStringTag"),s=Object,l="Arguments"===r(function(){return arguments}());e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),o))?n:l?r(t):"Object"===(i=r(t))&&a(t.callee)?"Arguments":i}},7740:function(e,t,n){"use strict";var i=n(9297),a=n(5031),r=n(7347),o=n(4913);e.exports=function(e,t,n){for(var s=a(t),l=o.f,d=r.f,u=0;u<s.length;u++){var c=s[u];i(e,c)||n&&i(n,c)||l(e,c,d(t,c))}}},6699:function(e,t,n){"use strict";var i=n(3724),a=n(4913),r=n(6980);e.exports=i?function(e,t,n){return a.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6840:function(e,t,n){"use strict";var i=n(4901),a=n(4913),r=n(283),o=n(9433);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,d=void 0!==s.name?s.name:t;if(i(n)&&r(n,d,s),s.global)l?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:a.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},9433:function(e,t,n){"use strict";var i=n(4475),a=Object.defineProperty;e.exports=function(e,t){try{a(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},3724:function(e,t,n){"use strict";var i=n(9039);e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(e,t,n){"use strict";var i=n(4475),a=n(34),r=i.document,o=a(r)&&a(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},9392:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:function(e,t,n){"use strict";var i,a,r=n(4475),o=n(9392),s=r.process,l=r.Deno,d=s&&s.versions||l&&l.version,u=d&&d.v8;u&&(a=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(a=+i[1]),e.exports=a},8727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:function(e,t,n){"use strict";var i=n(4475),a=n(7347).f,r=n(6699),o=n(6840),s=n(9433),l=n(7740),d=n(2796);e.exports=function(e,t){var n,u,c,h,m,p=e.target,v=e.global,f=e.stat;if(n=v?i:f?i[p]||s(p,{}):i[p]&&i[p].prototype)for(u in t){if(h=t[u],c=e.dontCallGetSet?(m=a(n,u))&&m.value:n[u],!d(v?u:p+(f?".":"#")+u,e.forced)&&void 0!==c){if(typeof h==typeof c)continue;l(h,c)}(e.sham||c&&c.sham)&&r(h,"sham",!0),o(n,u,h,e)}}},9039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},616:function(e,t,n){"use strict";var i=n(9039);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9565:function(e,t,n){"use strict";var i=n(616),a=Function.prototype.call;e.exports=i?a.bind(a):function(){return a.apply(a,arguments)}},350:function(e,t,n){"use strict";var i=n(3724),a=n(9297),r=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=a(r,"name"),l=s&&"something"===function(){}.name,d=s&&(!i||i&&o(r,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:d}},9504:function(e,t,n){"use strict";var i=n(616),a=Function.prototype,r=a.call,o=i&&a.bind.bind(r,r);e.exports=i?o:function(e){return function(){return r.apply(e,arguments)}}},7751:function(e,t,n){"use strict";var i=n(4475),a=n(4901);e.exports=function(e,t){return arguments.length<2?(n=i[e],a(n)?n:void 0):i[e]&&i[e][t];var n}},5966:function(e,t,n){"use strict";var i=n(9306),a=n(4117);e.exports=function(e,t){var n=e[t];return a(n)?void 0:i(n)}},2478:function(e,t,n){"use strict";var i=n(9504),a=n(8981),r=Math.floor,o=i("".charAt),s=i("".replace),l=i("".slice),d=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,c,h){var m=n+e.length,p=i.length,v=u;return void 0!==c&&(c=a(c),v=d),s(h,v,(function(a,s){var d;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,m);case"<":d=c[l(s,1,-1)];break;default:var u=+s;if(0===u)return a;if(u>p){var h=r(u/10);return 0===h?a:h<=p?void 0===i[h-1]?o(s,1):i[h-1]+o(s,1):a}d=i[u-1]}return void 0===d?"":d}))}},4475:function(e,t,n){"use strict";var i=function(e){return e&&e.Math===Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(e,t,n){"use strict";var i=n(9504),a=n(8981),r=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(a(e),t)}},421:function(e){"use strict";e.exports={}},5917:function(e,t,n){"use strict";var i=n(3724),a=n(9039),r=n(4055);e.exports=!i&&!a((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},7055:function(e,t,n){"use strict";var i=n(9504),a=n(9039),r=n(4576),o=Object,s=i("".split);e.exports=a((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===r(e)?s(e,""):o(e)}:o},3706:function(e,t,n){"use strict";var i=n(9504),a=n(4901),r=n(7629),o=i(Function.toString);a(r.inspectSource)||(r.inspectSource=function(e){return o(e)}),e.exports=r.inspectSource},1181:function(e,t,n){"use strict";var i,a,r,o=n(8622),s=n(4475),l=n(34),d=n(6699),u=n(9297),c=n(7629),h=n(6119),m=n(421),p="Object already initialized",v=s.TypeError,f=s.WeakMap;if(o||c.state){var b=c.state||(c.state=new f);b.get=b.get,b.has=b.has,b.set=b.set,i=function(e,t){if(b.has(e))throw new v(p);return t.facade=e,b.set(e,t),t},a=function(e){return b.get(e)||{}},r=function(e){return b.has(e)}}else{var g=h("state");m[g]=!0,i=function(e,t){if(u(e,g))throw new v(p);return t.facade=e,d(e,g,t),t},a=function(e){return u(e,g)?e[g]:{}},r=function(e){return u(e,g)}}e.exports={set:i,get:a,has:r,enforce:function(e){return r(e)?a(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=a(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return n}}}},4901:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2796:function(e,t,n){"use strict";var i=n(9039),a=n(4901),r=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n===u||n!==d&&(a(t)?i(t):!!t)},s=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=o.data={},d=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},4117:function(e){"use strict";e.exports=function(e){return null==e}},34:function(e,t,n){"use strict";var i=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},8776:function(e){"use strict";e.exports=!1},788:function(e,t,n){"use strict";var i=n(34),a=n(4576),r=n(8227)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"===a(e))}},757:function(e,t,n){"use strict";var i=n(7751),a=n(4901),r=n(1625),o=n(7040),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return a(t)&&r(t.prototype,s(e))}},6198:function(e,t,n){"use strict";var i=n(8014);e.exports=function(e){return i(e.length)}},283:function(e,t,n){"use strict";var i=n(9504),a=n(9039),r=n(4901),o=n(9297),s=n(3724),l=n(350).CONFIGURABLE,d=n(3706),u=n(1181),c=u.enforce,h=u.get,m=String,p=Object.defineProperty,v=i("".slice),f=i("".replace),b=i([].join),g=s&&!a((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),E=e.exports=function(e,t,n){"Symbol("===v(m(t),0,7)&&(t="["+f(m(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var i=c(e);return o(i,"source")||(i.source=b(y,"string"==typeof t?t:"")),e};Function.prototype.toString=E((function(){return r(this)&&h(this).source||d(this)}),"toString")},741:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},4913:function(e,t,n){"use strict";var i=n(3724),a=n(5917),r=n(8686),o=n(8551),s=n(6969),l=TypeError,d=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c="enumerable",h="configurable",m="writable";t.f=i?r?function(e,t,n){if(o(e),t=s(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var i=u(e,t);i&&i[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:c in n?n[c]:i[c],writable:!1})}return d(e,t,n)}:d:function(e,t,n){if(o(e),t=s(t),o(n),a)try{return d(e,t,n)}catch(i){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7347:function(e,t,n){"use strict";var i=n(3724),a=n(9565),r=n(8773),o=n(6980),s=n(5397),l=n(6969),d=n(9297),u=n(5917),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=s(e),t=l(t),u)try{return c(e,t)}catch(n){}if(d(e,t))return o(!a(r.f,e,t),e[t])}},8480:function(e,t,n){"use strict";var i=n(1828),a=n(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,a)}},3717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},1625:function(e,t,n){"use strict";var i=n(9504);e.exports=i({}.isPrototypeOf)},1828:function(e,t,n){"use strict";var i=n(9504),a=n(9297),r=n(5397),o=n(9617).indexOf,s=n(421),l=i([].push);e.exports=function(e,t){var n,i=r(e),d=0,u=[];for(n in i)!a(s,n)&&a(i,n)&&l(u,n);for(;t.length>d;)a(i,n=t[d++])&&(~o(u,n)||l(u,n));return u}},8773:function(e,t){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!n.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},4270:function(e,t,n){"use strict";var i=n(9565),a=n(4901),r=n(34),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&a(n=e.toString)&&!r(s=i(n,e)))return s;if(a(n=e.valueOf)&&!r(s=i(n,e)))return s;if("string"!==t&&a(n=e.toString)&&!r(s=i(n,e)))return s;throw new o("Can't convert object to primitive value")}},5031:function(e,t,n){"use strict";var i=n(7751),a=n(9504),r=n(8480),o=n(3717),s=n(8551),l=a([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(s(e)),n=o.f;return n?l(t,n(e)):t}},7979:function(e,t,n){"use strict";var i=n(8551);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},1034:function(e,t,n){"use strict";var i=n(9565),a=n(9297),r=n(1625),o=n(7979),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||a(e,"flags")||!r(s,e)?t:i(o,e)}},7750:function(e,t,n){"use strict";var i=n(4117),a=TypeError;e.exports=function(e){if(i(e))throw new a("Can't call method on "+e);return e}},6119:function(e,t,n){"use strict";var i=n(5745),a=n(3392),r=i("keys");e.exports=function(e){return r[e]||(r[e]=a(e))}},7629:function(e,t,n){"use strict";var i=n(8776),a=n(4475),r=n(9433),o="__core-js_shared__",s=e.exports=a[o]||r(o,{});(s.versions||(s.versions=[])).push({version:"3.36.0",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,n){"use strict";var i=n(7629);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},4495:function(e,t,n){"use strict";var i=n(7388),a=n(9039),r=n(4475).String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},5610:function(e,t,n){"use strict";var i=n(1291),a=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?a(n+t,0):r(n,t)}},5397:function(e,t,n){"use strict";var i=n(7055),a=n(7750);e.exports=function(e){return i(a(e))}},1291:function(e,t,n){"use strict";var i=n(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},8014:function(e,t,n){"use strict";var i=n(1291),a=Math.min;e.exports=function(e){var t=i(e);return t>0?a(t,9007199254740991):0}},8981:function(e,t,n){"use strict";var i=n(7750),a=Object;e.exports=function(e){return a(i(e))}},2777:function(e,t,n){"use strict";var i=n(9565),a=n(34),r=n(757),o=n(5966),s=n(4270),l=n(8227),d=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!a(e)||r(e))return e;var n,l=o(e,u);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!a(n)||r(n))return n;throw new d("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969:function(e,t,n){"use strict";var i=n(2777),a=n(757);e.exports=function(e){var t=i(e,"string");return a(t)?t:t+""}},2140:function(e,t,n){"use strict";var i={};i[n(8227)("toStringTag")]="z",e.exports="[object z]"===String(i)},3036:function(e,t,n){"use strict";var i=n(6955),a=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},6823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},3392:function(e,t,n){"use strict";var i=n(9504),a=0,r=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++a+r,36)}},7040:function(e,t,n){"use strict";var i=n(4495);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,n){"use strict";var i=n(3724),a=n(9039);e.exports=i&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:function(e,t,n){"use strict";var i=n(4475),a=n(4901),r=i.WeakMap;e.exports=a(r)&&/native code/.test(String(r))},8227:function(e,t,n){"use strict";var i=n(4475),a=n(5745),r=n(9297),o=n(3392),s=n(4495),l=n(7040),d=i.Symbol,u=a("wks"),c=l?d.for||d:d&&d.withoutSetter||o;e.exports=function(e){return r(u,e)||(u[e]=s&&r(d,e)?d[e]:c("Symbol."+e)),u[e]}},9978:function(e,t,n){"use strict";var i=n(6518),a=n(9565),r=n(9504),o=n(7750),s=n(4901),l=n(4117),d=n(788),u=n(3036),c=n(5966),h=n(1034),m=n(2478),p=n(8227),v=n(8776),f=p("replace"),b=TypeError,g=r("".indexOf),y=r("".replace),E=r("".slice),_=Math.max;i({target:"String",proto:!0},{replaceAll:function(e,t){var n,i,r,p,A,k,w,T,S,C=o(this),I=0,x=0,L="";if(!l(e)){if((n=d(e))&&(i=u(o(h(e))),!~g(i,"g")))throw new b("`.replaceAll` does not allow non-global regexes");if(r=c(e,f))return a(r,e,C,t);
82if(v&&n)return y(u(C),e,t)}for(p=u(C),A=u(e),(k=s(t))||(t=u(t)),w=A.length,T=_(1,w),I=g(p,A);-1!==I;)S=k?u(t(A,I,p)):m(A,p,I,[],void 0,t),L+=E(p,x,I)+S,x=I+w,I=I+T>p.length?-1:g(p,A,I+T);return x<p.length&&(L+=E(p,x)),L}})},2041:function(e,t,n){"use strict";n(9978)},351:function(e,t,n){"use strict";e.exports=n(2524)},2524:function(e,t,n){"use strict";var i=n(9675);e.exports=function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e}}}]); 83//# sourceMappingURL=911275cd3136d26c2985b1d15de7b3b57f249aa7-08a432be50141170d53a.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.