sdk.parone.io
Open in
urlscan Pro
151.101.1.91
Public Scan
Submitted URL: http://sdk.parone.io/
Effective URL: https://sdk.parone.io/
Submission: On May 29 via api from IT — Scanned from IT
Effective URL: https://sdk.parone.io/
Submission: On May 29 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
(function(Gi){typeof define=="function"&&define.amd?define(Gi):Gi()})(function(){"use strict";var B_=Object.defineProperty;var U_=(Gi,gt,$i)=>gt in Gi?B_(Gi,gt,{enumerable:!0,configurable:!0,writable:!0,value:$i}):Gi[gt]=$i;var _r=(Gi,gt,$i)=>(U_(Gi,typeof gt!="symbol"?gt+"":gt,$i),$i);/** * @vue/shared v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Gi(r,n){const c=new Set(r.split(","));return n?p=>c.has(p.toLowerCase()):p=>c.has(p)}const gt={},$i=[],Oi=()=>{},jf=()=>!1,kn=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Gs=r=>r.startsWith("onUpdate:"),ei=Object.assign,$s=(r,n)=>{const c=r.indexOf(n);c>-1&&r.splice(c,1)},Gf=Object.prototype.hasOwnProperty,mt=(r,n)=>Gf.call(r,n),Ve=Array.isArray,Na=r=>To(r)==="[object Map]",_n=r=>To(r)==="[object Set]",Zd=r=>To(r)==="[object Date]",at=r=>typeof r=="function",ii=r=>typeof r=="string",Tr=r=>typeof r=="symbol",Ot=r=>r!==null&&typeof r=="object",ec=r=>(Ot(r)||at(r))&&at(r.then)&&at(r.catch),tc=Object.prototype.toString,To=r=>tc.call(r),$f=r=>To(r).slice(8,-1),ic=r=>To(r)==="[object Object]",Hs=r=>ii(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Eo=Gi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tn=r=>{const n=Object.create(null);return c=>n[c]||(n[c]=r(c))},Hf=/-(\w)/g,Mi=Tn(r=>r.replace(Hf,(n,c)=>c?c.toUpperCase():"")),Kf=/\B([A-Z])/g,Hi=Tn(r=>r.replace(Kf,"-$1").toLowerCase()),En=Tn(r=>r.charAt(0).toUpperCase()+r.slice(1)),Ks=Tn(r=>r?`on${En(r)}`:""),Yr=(r,n)=>!Object.is(r,n),Sn=(r,n)=>{for(let c=0;c<r.length;c++)r[c](n)},rc=(r,n,c,p=!1)=>{Object.defineProperty(r,n,{configurable:!0,enumerable:!1,writable:p,value:c})},Ys=r=>{const n=parseFloat(r);return isNaN(n)?r:n},Ws=r=>{const n=ii(r)?Number(r):NaN;return isNaN(n)?r:n};let ac;const qs=()=>ac||(ac=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function wi(r){if(Ve(r)){const n={};for(let c=0;c<r.length;c++){const p=r[c],g=ii(p)?Xf(p):wi(p);if(g)for(const v in g)n[v]=g[v]}return n}else if(ii(r)||Ot(r))return r}const Yf=/;(?![^(]*\))/g,Wf=/:([^]+)/,qf=/\/\*[^]*?\*\//g;function Xf(r){const n={};return r.replace(qf,"").split(Yf).forEach(c=>{if(c){const p=c.split(Wf);p.length>1&&(n[p[0].trim()]=p[1].trim())}}),n}function wt(r){let n="";if(ii(r))n=r;else if(Ve(r))for(let c=0;c<r.length;c++){const p=wt(r[c]);p&&(n+=p+" ")}else if(Ot(r))for(const c in r)r[c]&&(n+=c+" ");return n.trim()}const Qf=Gi("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function oc(r){return!!r||r===""}function Jf(r,n){if(r.length!==n.length)return!1;let c=!0;for(let p=0;c&&p<r.length;p++)c=Ln(r[p],n[p]);return c}function Ln(r,n){if(r===n)return!0;let c=Zd(r),p=Zd(n);if(c||p)return c&&p?r.getTime()===n.getTime():!1;if(c=Tr(r),p=Tr(n),c||p)return r===n;if(c=Ve(r),p=Ve(n),c||p)return c&&p?Jf(r,n):!1;if(c=Ot(r),p=Ot(n),c||p){if(!c||!p)return!1;const g=Object.keys(r).length,v=Object.keys(n).length;if(g!==v)return!1;for(const b in r){const k=r.hasOwnProperty(b),S=n.hasOwnProperty(b);if(k&&!S||!k&&S||!Ln(r[b],n[b]))return!1}}return String(r)===String(n)}function nc(r,n){return r.findIndex(c=>Ln(c,n))}const Me=r=>ii(r)?r:r==null?"":Ve(r)||Ot(r)&&(r.toString===tc||!at(r.toString))?JSON.stringify(r,sc,2):String(r),sc=(r,n)=>n&&n.__v_isRef?sc(r,n.value):Na(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((c,[p,g],v)=>(c[Xs(p,v)+" =>"]=g,c),{})}:_n(n)?{[`Set(${n.size})`]:[...n.values()].map(c=>Xs(c))}:Tr(n)?Xs(n):Ot(n)&&!Ve(n)&&!ic(n)?String(n):n,Xs=(r,n="")=>{var c;return Tr(r)?`Symbol(${(c=r.description)!=null?c:n})`:r};/** * @vue/reactivity v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let er;class Zf{constructor(n=!1){this.detached=n,this._active=!0,this.effects=[],this.cleanups=[],this.parent=er,!n&&er&&(this.index=(er.scopes||(er.scopes=[])).push(this)-1)}get active(){return this._active}run(n){if(this._active){const c=er;try{return er=this,n()}finally{er=c}}}on(){er=this}off(){er=this.parent}stop(n){if(this._active){let c,p;for(c=0,p=this.effects.length;c<p;c++)this.effects[c].stop();for(c=0,p=this.cleanups.length;c<p;c++)this.cleanups[c]();if(this.scopes)for(c=0,p=this.scopes.length;c<p;c++)this.scopes[c].stop(!0);if(!this.detached&&this.parent&&!n){const g=this.parent.scopes.pop();g&&g!==this&&(this.parent.scopes[this.index]=g,g.index=this.index)}this.parent=void 0,this._active=!1}}}function eg(r,n=er){n&&n.active&&n.effects.push(r)}function tg(){return er}let ua;class Qs{constructor(n,c,p,g){this.fn=n,this.trigger=c,this.scheduler=p,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,eg(this,g)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Er();for(let n=0;n<this._depsLength;n++){const c=this.deps[n];if(c.computed&&(ig(c.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Sr()}return this._dirtyLevel>=4}set dirty(n){this._dirtyLevel=n?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let n=Wr,c=ua;try{return Wr=!0,ua=this,this._runnings++,lc(this),this.fn()}finally{dc(this),this._runnings--,ua=c,Wr=n}}stop(){this.active&&(lc(this),dc(this),this.onStop&&this.onStop(),this.active=!1)}}function ig(r){return r.value}function lc(r){r._trackId++,r._depsLength=0}function dc(r){if(r.deps.length>r._depsLength){for(let n=r._depsLength;n<r.deps.length;n++)cc(r.deps[n],r);r.deps.length=r._depsLength}}function cc(r,n){const c=r.get(n);c!==void 0&&n._trackId!==c&&(r.delete(n),r.size===0&&r.cleanup())}let Wr=!0,Js=0;const uc=[];function Er(){uc.push(Wr),Wr=!1}function Sr(){const r=uc.pop();Wr=r===void 0?!0:r}function Zs(){Js++}function el(){for(Js--;!Js&&tl.length;)tl.shift()()}function pc(r,n,c){if(n.get(r)!==r._trackId){n.set(r,r._trackId);const p=r.deps[r._depsLength];p!==n?(p&&cc(p,r),r.deps[r._depsLength++]=n):r._depsLength++}}const tl=[];function hc(r,n,c){Zs();for(const p of r.keys()){let g;p._dirtyLevel<n&&(g!=null?g:g=r.get(p)===p._trackId)&&(p._shouldSchedule||(p._shouldSchedule=p._dirtyLevel===0),p._dirtyLevel=n),p._shouldSchedule&&(g!=null?g:g=r.get(p)===p._trackId)&&(p.trigger(),(!p._runnings||p.allowRecurse)&&p._dirtyLevel!==2&&(p._shouldSchedule=!1,p.scheduler&&tl.push(p.scheduler)))}el()}const fc=(r,n)=>{const c=new Map;return c.cleanup=r,c.computed=n,c},An=new WeakMap,pa=Symbol(""),il=Symbol("");function Ri(r,n,c){if(Wr&&ua){let p=An.get(r);p||An.set(r,p=new Map);let g=p.get(c);g||p.set(c,g=fc(()=>p.delete(c))),pc(ua,g)}}function Lr(r,n,c,p,g,v){const b=An.get(r);if(!b)return;let k=[];if(n==="clear")k=[...b.values()];else if(c==="length"&&Ve(r)){const S=Number(p);b.forEach((C,R)=>{(R==="length"||!Tr(R)&&R>=S)&&k.push(C)})}else switch(c!==void 0&&k.push(b.get(c)),n){case"add":Ve(r)?Hs(c)&&k.push(b.get("length")):(k.push(b.get(pa)),Na(r)&&k.push(b.get(il)));break;case"delete":Ve(r)||(k.push(b.get(pa)),Na(r)&&k.push(b.get(il)));break;case"set":Na(r)&&k.push(b.get(pa));break}Zs();for(const S of k)S&&hc(S,4);el()}function rg(r,n){const c=An.get(r);return c&&c.get(n)}const ag=Gi("__proto__,__v_isRef,__isVue"),gc=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Tr)),mc=og();function og(){const r={};return["includes","indexOf","lastIndexOf"].forEach(n=>{r[n]=function(...c){const p=pt(this);for(let v=0,b=this.length;v<b;v++)Ri(p,"get",v+"");const g=p[n](...c);return g===-1||g===!1?p[n](...c.map(pt)):g}}),["push","pop","shift","unshift","splice"].forEach(n=>{r[n]=function(...c){Er(),Zs();const p=pt(this)[n].apply(this,c);return el(),Sr(),p}}),r}function ng(r){Tr(r)||(r=String(r));const n=pt(this);return Ri(n,"has",r),n.hasOwnProperty(r)}class vc{constructor(n=!1,c=!1){this._isReadonly=n,this._isShallow=c}get(n,c,p){const g=this._isReadonly,v=this._isShallow;if(c==="__v_isReactive")return!g;if(c==="__v_isReadonly")return g;if(c==="__v_isShallow")return v;if(c==="__v_raw")return p===(g?v?Lc:Sc:v?Ec:Tc).get(n)||Object.getPrototypeOf(n)===Object.getPrototypeOf(p)?n:void 0;const b=Ve(n);if(!g){if(b&&mt(mc,c))return Reflect.get(mc,c,p);if(c==="hasOwnProperty")return ng}const k=Reflect.get(n,c,p);return(Tr(c)?gc.has(c):ag(c))||(g||Ri(n,"get",c),v)?k:Wt(k)?b&&Hs(c)?k:k.value:Ot(k)?g?Ac(k):al(k):k}}class bc extends vc{constructor(n=!1){super(!1,n)}set(n,c,p,g){let v=n[c];if(!this._isShallow){const S=Lo(v);if(!Nn(p)&&!Lo(p)&&(v=pt(v),p=pt(p)),!Ve(n)&&Wt(v)&&!Wt(p))return S?!1:(v.value=p,!0)}const b=Ve(n)&&Hs(c)?Number(c)<n.length:mt(n,c),k=Reflect.set(n,c,p,g);return n===pt(g)&&(b?Yr(p,v)&&Lr(n,"set",c,p):Lr(n,"add",c,p)),k}deleteProperty(n,c){const p=mt(n,c);n[c];const g=Reflect.deleteProperty(n,c);return g&&p&&Lr(n,"delete",c,void 0),g}has(n,c){const p=Reflect.has(n,c);return(!Tr(c)||!gc.has(c))&&Ri(n,"has",c),p}ownKeys(n){return Ri(n,"iterate",Ve(n)?"length":pa),Reflect.ownKeys(n)}}class wc extends vc{constructor(n=!1){super(!0,n)}set(n,c){return!0}deleteProperty(n,c){return!0}}const sg=new bc,lg=new wc,dg=new bc(!0),cg=new wc(!0),rl=r=>r,Cn=r=>Reflect.getPrototypeOf(r);function Rn(r,n,c=!1,p=!1){r=r.__v_raw;const g=pt(r),v=pt(n);c||(Yr(n,v)&&Ri(g,"get",n),Ri(g,"get",v));const{has:b}=Cn(g),k=p?rl:c?ol:Ao;if(b.call(g,n))return k(r.get(n));if(b.call(g,v))return k(r.get(v));r!==g&&r.get(n)}function Dn(r,n=!1){const c=this.__v_raw,p=pt(c),g=pt(r);return n||(Yr(r,g)&&Ri(p,"has",r),Ri(p,"has",g)),r===g?c.has(r):c.has(r)||c.has(g)}function In(r,n=!1){return r=r.__v_raw,!n&&Ri(pt(r),"iterate",pa),Reflect.get(r,"size",r)}function xc(r){r=pt(r);const n=pt(this);return Cn(n).has.call(n,r)||(n.add(r),Lr(n,"add",r,r)),this}function yc(r,n){n=pt(n);const c=pt(this),{has:p,get:g}=Cn(c);let v=p.call(c,r);v||(r=pt(r),v=p.call(c,r));const b=g.call(c,r);return c.set(r,n),v?Yr(n,b)&&Lr(c,"set",r,n):Lr(c,"add",r,n),this}function kc(r){const n=pt(this),{has:c,get:p}=Cn(n);let g=c.call(n,r);g||(r=pt(r),g=c.call(n,r)),p&&p.call(n,r);const v=n.delete(r);return g&&Lr(n,"delete",r,void 0),v}function _c(){const r=pt(this),n=r.size!==0,c=r.clear();return n&&Lr(r,"clear",void 0,void 0),c}function Pn(r,n){return function(p,g){const v=this,b=v.__v_raw,k=pt(b),S=n?rl:r?ol:Ao;return!r&&Ri(k,"iterate",pa),b.forEach((C,R)=>p.call(g,S(C),S(R),v))}}function On(r,n,c){return function(...p){const g=this.__v_raw,v=pt(g),b=Na(v),k=r==="entries"||r===Symbol.iterator&&b,S=r==="keys"&&b,C=g[r](...p),R=c?rl:n?ol:Ao;return!n&&Ri(v,"iterate",S?il:pa),{next(){const{value:D,done:M}=C.next();return M?{value:D,done:M}:{value:k?[R(D[0]),R(D[1])]:R(D),done:M}},[Symbol.iterator](){return this}}}}function qr(r){return function(...n){return r==="delete"?!1:r==="clear"?void 0:this}}function ug(){const r={get(v){return Rn(this,v)},get size(){return In(this)},has:Dn,add:xc,set:yc,delete:kc,clear:_c,forEach:Pn(!1,!1)},n={get(v){return Rn(this,v,!1,!0)},get size(){return In(this)},has:Dn,add:xc,set:yc,delete:kc,clear:_c,forEach:Pn(!1,!0)},c={get(v){return Rn(this,v,!0)},get size(){return In(this,!0)},has(v){return Dn.call(this,v,!0)},add:qr("add"),set:qr("set"),delete:qr("delete"),clear:qr("clear"),forEach:Pn(!0,!1)},p={get(v){return Rn(this,v,!0,!0)},get size(){return In(this,!0)},has(v){return Dn.call(this,v,!0)},add:qr("add"),set:qr("set"),delete:qr("delete"),clear:qr("clear"),forEach:Pn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(v=>{r[v]=On(v,!1,!1),c[v]=On(v,!0,!1),n[v]=On(v,!1,!0),p[v]=On(v,!0,!0)}),[r,c,n,p]}const[pg,hg,fg,gg]=ug();function Mn(r,n){const c=n?r?gg:fg:r?hg:pg;return(p,g,v)=>g==="__v_isReactive"?!r:g==="__v_isReadonly"?r:g==="__v_raw"?p:Reflect.get(mt(c,g)&&g in p?c:p,g,v)}const mg={get:Mn(!1,!1)},vg={get:Mn(!1,!0)},bg={get:Mn(!0,!1)},wg={get:Mn(!0,!0)},Tc=new WeakMap,Ec=new WeakMap,Sc=new WeakMap,Lc=new WeakMap;function xg(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yg(r){return r.__v_skip||!Object.isExtensible(r)?0:xg($f(r))}function al(r){return Lo(r)?r:Fn(r,!1,sg,mg,Tc)}function kg(r){return Fn(r,!1,dg,vg,Ec)}function Ac(r){return Fn(r,!0,lg,bg,Sc)}function j_(r){return Fn(r,!0,cg,wg,Lc)}function Fn(r,n,c,p,g){if(!Ot(r)||r.__v_raw&&!(n&&r.__v_isReactive))return r;const v=g.get(r);if(v)return v;const b=yg(r);if(b===0)return r;const k=new Proxy(r,b===2?p:c);return g.set(r,k),k}function So(r){return Lo(r)?So(r.__v_raw):!!(r&&r.__v_isReactive)}function Lo(r){return!!(r&&r.__v_isReadonly)}function Nn(r){return!!(r&&r.__v_isShallow)}function Cc(r){return r?!!r.__v_raw:!1}function pt(r){const n=r&&r.__v_raw;return n?pt(n):r}function _g(r){return Object.isExtensible(r)&&rc(r,"__v_skip",!0),r}const Ao=r=>Ot(r)?al(r):r,ol=r=>Ot(r)?Ac(r):r;class Rc{constructor(n,c,p,g){this.getter=n,this._setter=c,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Qs(()=>n(this._value),()=>zn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!g,this.__v_isReadonly=p}get value(){const n=pt(this);return(!n._cacheable||n.effect.dirty)&&Yr(n._value,n._value=n.effect.run())&&zn(n,4),Dc(n),n.effect._dirtyLevel>=2&&zn(n,2),n._value}set value(n){this._setter(n)}get _dirty(){return this.effect.dirty}set _dirty(n){this.effect.dirty=n}}function Tg(r,n,c=!1){let p,g;const v=at(r);return v?(p=r,g=Oi):(p=r.get,g=r.set),new Rc(p,g,v||!g,c)}function Dc(r){var n;Wr&&ua&&(r=pt(r),pc(ua,(n=r.dep)!=null?n:r.dep=fc(()=>r.dep=void 0,r instanceof Rc?r:void 0)))}function zn(r,n=4,c){r=pt(r);const p=r.dep;p&&hc(p,n)}function Wt(r){return!!(r&&r.__v_isRef===!0)}function K(r){return Eg(r,!1)}function Eg(r,n){return Wt(r)?r:new Sg(r,n)}class Sg{constructor(n,c){this.__v_isShallow=c,this.dep=void 0,this.__v_isRef=!0,this._rawValue=c?n:pt(n),this._value=c?n:Ao(n)}get value(){return Dc(this),this._value}set value(n){const c=this.__v_isShallow||Nn(n)||Lo(n);n=c?n:pt(n),Yr(n,this._rawValue)&&(this._rawValue=n,this._value=c?n:Ao(n),zn(this,4))}}function F(r){return Wt(r)?r.value:r}const Lg={get:(r,n,c)=>F(Reflect.get(r,n,c)),set:(r,n,c,p)=>{const g=r[n];return Wt(g)&&!Wt(c)?(g.value=c,!0):Reflect.set(r,n,c,p)}};function Ic(r){return So(r)?r:new Proxy(r,Lg)}function nl(r){const n=Ve(r)?new Array(r.length):{};for(const c in r)n[c]=Cg(r,c);return n}class Ag{constructor(n,c,p){this._object=n,this._key=c,this._defaultValue=p,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}get dep(){return rg(pt(this._object),this._key)}}function Cg(r,n,c){const p=r[n];return Wt(p)?p:new Ag(r,n,c)}/** * @vue/runtime-core v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const Co=[];function G_(r,...n){Er();const c=Co.length?Co[Co.length-1].component:null,p=c&&c.appContext.config.warnHandler,g=Rg();if(p)Ar(p,c,11,[r+n.map(v=>{var b,k;return(k=(b=v.toString)==null?void 0:b.call(v))!=null?k:JSON.stringify(v)}).join(""),c&&c.proxy,g.map(({vnode:v})=>`at <${Lu(c,v.type)}>`).join(` `),g]);else{const v=[`[Vue warn]: ${r}`,...n];g.length&&v.push(` `,...Dg(g)),console.warn(...v)}Sr()}function Rg(){let r=Co[Co.length-1];if(!r)return[];const n=[];for(;r;){const c=n[0];c&&c.vnode===r?c.recurseCount++:n.push({vnode:r,recurseCount:0});const p=r.component&&r.component.parent;r=p&&p.vnode}return n}function Dg(r){const n=[];return r.forEach((c,p)=>{n.push(...p===0?[]:[` `],...Ig(c))}),n}function Ig({vnode:r,recurseCount:n}){const c=n>0?`... (${n} recursive calls)`:"",p=r.component?r.component.parent==null:!1,g=` at <${Lu(r.component,r.type,p)}`,v=">"+c;return r.props?[g,...Pg(r.props),v]:[g+v]}function Pg(r){const n=[],c=Object.keys(r);return c.slice(0,3).forEach(p=>{n.push(...Pc(p,r[p]))}),c.length>3&&n.push(" ..."),n}function Pc(r,n,c){return ii(n)?(n=JSON.stringify(n),c?n:[`${r}=${n}`]):typeof n=="number"||typeof n=="boolean"||n==null?c?n:[`${r}=${n}`]:Wt(n)?(n=Pc(r,pt(n.value),!0),c?n:[`${r}=Ref<`,n,">"]):at(n)?[`${r}=fn${n.name?`<${n.name}>`:""}`]:(n=pt(n),c?n:[`${r}=`,n])}function Ar(r,n,c,p){try{return p?r(...p):r()}catch(g){Bn(g,n,c)}}function Ki(r,n,c,p){if(at(r)){const g=Ar(r,n,c,p);return g&&ec(g)&&g.catch(v=>{Bn(v,n,c)}),g}if(Ve(r)){const g=[];for(let v=0;v<r.length;v++)g.push(Ki(r[v],n,c,p));return g}}function Bn(r,n,c,p=!0){const g=n?n.vnode:null;if(n){let v=n.parent;const b=n.proxy,k=`https://vuejs.org/error-reference/#runtime-${c}`;for(;v;){const C=v.ec;if(C){for(let R=0;R<C.length;R++)if(C[R](r,b,k)===!1)return}v=v.parent}const S=n.appContext.config.errorHandler;if(S){Er(),Ar(S,null,10,[r,b,k]),Sr();return}}Og(r,c,g,p)}function Og(r,n,c,p=!0){console.error(r)}let Ro=!1,sl=!1;const xi=[];let lr=0;const za=[];let Xr=null,ha=0;const Oc=Promise.resolve();let ll=null;function Do(r){const n=ll||Oc;return r?n.then(this?r.bind(this):r):n}function Mg(r){let n=lr+1,c=xi.length;for(;n<c;){const p=n+c>>>1,g=xi[p],v=Io(g);v<r||v===r&&g.pre?n=p+1:c=p}return n}function dl(r){(!xi.length||!xi.includes(r,Ro&&r.allowRecurse?lr+1:lr))&&(r.id==null?xi.push(r):xi.splice(Mg(r.id),0,r),Mc())}function Mc(){!Ro&&!sl&&(sl=!0,ll=Oc.then(zc))}function Fg(r){const n=xi.indexOf(r);n>lr&&xi.splice(n,1)}function Ng(r){Ve(r)?za.push(...r):(!Xr||!Xr.includes(r,r.allowRecurse?ha+1:ha))&&za.push(r),Mc()}function Fc(r,n,c=Ro?lr+1:0){for(;c<xi.length;c++){const p=xi[c];if(p&&p.pre){if(r&&p.id!==r.uid)continue;xi.splice(c,1),c--,p()}}}function Nc(r){if(za.length){const n=[...new Set(za)].sort((c,p)=>Io(c)-Io(p));if(za.length=0,Xr){Xr.push(...n);return}for(Xr=n,ha=0;ha<Xr.length;ha++)Xr[ha]();Xr=null,ha=0}}const Io=r=>r.id==null?1/0:r.id,zg=(r,n)=>{const c=Io(r)-Io(n);if(c===0){if(r.pre&&!n.pre)return-1;if(n.pre&&!r.pre)return 1}return c};function zc(r){sl=!1,Ro=!0,xi.sort(zg);const n=Oi;try{for(lr=0;lr<xi.length;lr++){const c=xi[lr];c&&c.active!==!1&&Ar(c,null,14)}}finally{lr=0,xi.length=0,Nc(),Ro=!1,ll=null,(xi.length||za.length)&&zc()}}function Bg(r,n,...c){if(r.isUnmounted)return;const p=r.vnode.props||gt;let g=c;const v=n.startsWith("update:"),b=v&&n.slice(7);if(b&&b in p){const R=`${b==="modelValue"?"model":b}Modifiers`,{number:D,trim:M}=p[R]||gt;M&&(g=c.map(H=>ii(H)?H.trim():H)),D&&(g=c.map(Ys))}let k,S=p[k=Ks(n)]||p[k=Ks(Mi(n))];!S&&v&&(S=p[k=Ks(Hi(n))]),S&&Ki(S,r,6,g);const C=p[k+"Once"];if(C){if(!r.emitted)r.emitted={};else if(r.emitted[k])return;r.emitted[k]=!0,Ki(C,r,6,g)}}function Bc(r,n,c=!1){const p=n.emitsCache,g=p.get(r);if(g!==void 0)return g;const v=r.emits;let b={},k=!1;if(!at(r)){const S=C=>{const R=Bc(C,n,!0);R&&(k=!0,ei(b,R))};!c&&n.mixins.length&&n.mixins.forEach(S),r.extends&&S(r.extends),r.mixins&&r.mixins.forEach(S)}return!v&&!k?(Ot(r)&&p.set(r,null),null):(Ve(v)?v.forEach(S=>b[S]=null):ei(b,v),Ot(r)&&p.set(r,b),b)}function Un(r,n){return!r||!kn(n)?!1:(n=n.slice(2).replace(/Once$/,""),mt(r,n[0].toLowerCase()+n.slice(1))||mt(r,Hi(n))||mt(r,n))}let oi=null,Uc=null;function Vn(r){const n=oi;return oi=r,Uc=r&&r.type.__scopeId||null,n}function Fi(r,n=oi,c){if(!n||r._n)return r;const p=(...g)=>{p._d&&vu(-1);const v=Vn(n);let b;try{b=r(...g)}finally{Vn(v),p._d&&vu(1)}return b};return p._n=!0,p._c=!0,p._d=!0,p}function $_(){}function cl(r){const{type:n,vnode:c,proxy:p,withProxy:g,propsOptions:[v],slots:b,attrs:k,emit:S,render:C,renderCache:R,props:D,data:M,setupState:H,ctx:W,inheritAttrs:Y}=r,ce=Vn(r);let se,ge;try{if(c.shapeFlag&4){const _e=g||p,te=_e;se=ur(C.call(te,_e,R,D,H,M,W)),ge=k}else{const _e=n;se=ur(_e.length>1?_e(D,{attrs:k,slots:b,emit:S}):_e(D,null)),ge=n.props?k:Ug(k)}}catch(_e){No.length=0,Bn(_e,r,1),se=Le(Ni)}let pe=se;if(ge&&Y!==!1){const _e=Object.keys(ge),{shapeFlag:te}=pe;_e.length&&te&7&&(v&&_e.some(Gs)&&(ge=Vg(ge,v)),pe=Dr(pe,ge,!1,!0))}return c.dirs&&(pe=Dr(pe,null,!1,!0),pe.dirs=pe.dirs?pe.dirs.concat(c.dirs):c.dirs),c.transition&&(pe.transition=c.transition),se=pe,Vn(ce),se}const Ug=r=>{let n;for(const c in r)(c==="class"||c==="style"||kn(c))&&((n||(n={}))[c]=r[c]);return n},Vg=(r,n)=>{const c={};for(const p in r)(!Gs(p)||!(p.slice(9)in n))&&(c[p]=r[p]);return c};function jg(r,n,c){const{props:p,children:g,component:v}=r,{props:b,children:k,patchFlag:S}=n,C=v.emitsOptions;if(n.dirs||n.transition)return!0;if(c&&S>=0){if(S&1024)return!0;if(S&16)return p?Vc(p,b,C):!!b;if(S&8){const R=n.dynamicProps;for(let D=0;D<R.length;D++){const M=R[D];if(b[M]!==p[M]&&!Un(C,M))return!0}}}else return(g||k)&&(!k||!k.$stable)?!0:p===b?!1:p?b?Vc(p,b,C):!0:!!b;return!1}function Vc(r,n,c){const p=Object.keys(n);if(p.length!==Object.keys(r).length)return!0;for(let g=0;g<p.length;g++){const v=p[g];if(n[v]!==r[v]&&!Un(c,v))return!0}return!1}function Gg({vnode:r,parent:n},c){for(;n;){const p=n.subTree;if(p.suspense&&p.suspense.activeBranch===r&&(p.el=r.el),p===r)(r=n.vnode).el=c,n=n.parent;else break}}const jc="components";function $g(r,n){return Kg(jc,r,!0,n)||r}const Hg=Symbol.for("v-ndc");function Kg(r,n,c=!0,p=!1){const g=oi||vi;if(g){const v=g.type;if(r===jc){const k=Su(v,!1);if(k&&(k===n||k===Mi(n)||k===En(Mi(n))))return v}const b=Gc(g[r]||v[r],n)||Gc(g.appContext[r],n);return!b&&p?v:b}}function Gc(r,n){return r&&(r[n]||r[Mi(n)]||r[En(Mi(n))])}const Yg=r=>r.__isSuspense;function Wg(r,n){n&&n.pendingBranch?Ve(r)?n.effects.push(...r):n.effects.push(r):Ng(r)}const qg=Symbol.for("v-scx"),Xg=()=>Dt(qg);function Cr(r,n){return ul(r,null,n)}const jn={};function Bt(r,n,c){return ul(r,n,c)}function ul(r,n,{immediate:c,deep:p,flush:g,once:v,onTrack:b,onTrigger:k}=gt){if(n&&v){const xe=n;n=(...de)=>{xe(...de),te()}}const S=vi,C=xe=>p===!0?xe:fa(xe,p===!1?1:void 0);let R,D=!1,M=!1;if(Wt(r)?(R=()=>r.value,D=Nn(r)):So(r)?(R=()=>C(r),D=!0):Ve(r)?(M=!0,D=r.some(xe=>So(xe)||Nn(xe)),R=()=>r.map(xe=>{if(Wt(xe))return xe.value;if(So(xe))return C(xe);if(at(xe))return Ar(xe,S,2)})):at(r)?n?R=()=>Ar(r,S,2):R=()=>(H&&H(),Ki(r,S,3,[W])):R=Oi,n&&p){const xe=R;R=()=>fa(xe())}let H,W=xe=>{H=pe.onStop=()=>{Ar(xe,S,4),H=pe.onStop=void 0}},Y;if(Jn)if(W=Oi,n?c&&Ki(n,S,3,[R(),M?[]:void 0,W]):R(),g==="sync"){const xe=Xg();Y=xe.__watcherHandles||(xe.__watcherHandles=[])}else return Oi;let ce=M?new Array(r.length).fill(jn):jn;const se=()=>{if(!(!pe.active||!pe.dirty))if(n){const xe=pe.run();(p||D||(M?xe.some((de,y)=>Yr(de,ce[y])):Yr(xe,ce)))&&(H&&H(),Ki(n,S,3,[xe,ce===jn?void 0:M&&ce[0]===jn?[]:ce,W]),ce=xe)}else pe.run()};se.allowRecurse=!!n;let ge;g==="sync"?ge=se:g==="post"?ge=()=>Di(se,S&&S.suspense):(se.pre=!0,S&&(se.id=S.uid),ge=()=>dl(se));const pe=new Qs(R,Oi,ge),_e=tg(),te=()=>{pe.stop(),_e&&$s(_e.effects,pe)};return n?c?se():ce=pe.run():g==="post"?Di(pe.run.bind(pe),S&&S.suspense):pe.run(),Y&&Y.push(te),te}function Qg(r,n,c){const p=this.proxy,g=ii(r)?r.includes(".")?$c(p,r):()=>p[r]:r.bind(p,p);let v;at(n)?v=n:(v=n.handler,c=n);const b=Bo(this),k=ul(g,v.bind(p),c);return b(),k}function $c(r,n){const c=n.split(".");return()=>{let p=r;for(let g=0;g<c.length&&p;g++)p=p[c[g]];return p}}function fa(r,n=1/0,c){if(n<=0||!Ot(r)||r.__v_skip||(c=c||new Set,c.has(r)))return r;if(c.add(r),n--,Wt(r))fa(r.value,n,c);else if(Ve(r))for(let p=0;p<r.length;p++)fa(r[p],n,c);else if(_n(r)||Na(r))r.forEach(p=>{fa(p,n,c)});else if(ic(r))for(const p in r)fa(r[p],n,c);return r}function dr(r,n){if(oi===null)return r;const c=Zn(oi)||oi.proxy,p=r.dirs||(r.dirs=[]);for(let g=0;g<n.length;g++){let[v,b,k,S=gt]=n[g];v&&(at(v)&&(v={mounted:v,updated:v}),v.deep&&fa(b),p.push({dir:v,instance:c,value:b,oldValue:void 0,arg:k,modifiers:S}))}return r}function ga(r,n,c,p){const g=r.dirs,v=n&&n.dirs;for(let b=0;b<g.length;b++){const k=g[b];v&&(k.oldValue=v[b].value);let S=k.dir[p];S&&(Er(),Ki(S,c,8,[r.el,k,r,n]),Sr())}}const Qr=Symbol("_leaveCb"),Gn=Symbol("_enterCb");function Jg(){const r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Kt(()=>{r.isMounted=!0}),gl(()=>{r.isUnmounting=!0}),r}const Yi=[Function,Array],Hc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Yi,onEnter:Yi,onAfterEnter:Yi,onEnterCancelled:Yi,onBeforeLeave:Yi,onLeave:Yi,onAfterLeave:Yi,onLeaveCancelled:Yi,onBeforeAppear:Yi,onAppear:Yi,onAfterAppear:Yi,onAppearCancelled:Yi},Zg={name:"BaseTransition",props:Hc,setup(r,{slots:n}){const c=xu(),p=Jg();return()=>{const g=n.default&&Wc(n.default(),!0);if(!g||!g.length)return;let v=g[0];if(g.length>1){for(const M of g)if(M.type!==Ni){v=M;break}}const b=pt(r),{mode:k}=b;if(p.isLeaving)return hl(v);const S=Yc(v);if(!S)return hl(v);const C=pl(S,b,p,c);fl(S,C);const R=c.subTree,D=R&&Yc(R);if(D&&D.type!==Ni&&!va(S,D)){const M=pl(D,b,p,c);if(fl(D,M),k==="out-in"&&S.type!==Ni)return p.isLeaving=!0,M.afterLeave=()=>{p.isLeaving=!1,c.update.active!==!1&&(c.effect.dirty=!0,c.update())},hl(v);k==="in-out"&&S.type!==Ni&&(M.delayLeave=(H,W,Y)=>{const ce=Kc(p,D);ce[String(D.key)]=D,H[Qr]=()=>{W(),H[Qr]=void 0,delete C.delayedLeave},C.delayedLeave=Y})}return v}}};function Kc(r,n){const{leavingVNodes:c}=r;let p=c.get(n.type);return p||(p=Object.create(null),c.set(n.type,p)),p}function pl(r,n,c,p){const{appear:g,mode:v,persisted:b=!1,onBeforeEnter:k,onEnter:S,onAfterEnter:C,onEnterCancelled:R,onBeforeLeave:D,onLeave:M,onAfterLeave:H,onLeaveCancelled:W,onBeforeAppear:Y,onAppear:ce,onAfterAppear:se,onAppearCancelled:ge}=n,pe=String(r.key),_e=Kc(c,r),te=(y,re)=>{y&&Ki(y,p,9,re)},xe=(y,re)=>{const z=re[1];te(y,re),Ve(y)?y.every(Se=>Se.length<=1)&&z():y.length<=1&&z()},de={mode:v,persisted:b,beforeEnter(y){let re=k;if(!c.isMounted)if(g)re=Y||k;else return;y[Qr]&&y[Qr](!0);const z=_e[pe];z&&va(r,z)&&z.el[Qr]&&z.el[Qr](),te(re,[y])},enter(y){let re=S,z=C,Se=R;if(!c.isMounted)if(g)re=ce||S,z=se||C,Se=ge||R;else return;let ye=!1;const Re=y[Gn]=dt=>{ye||(ye=!0,dt?te(Se,[y]):te(z,[y]),de.delayedLeave&&de.delayedLeave(),y[Gn]=void 0)};re?xe(re,[y,Re]):Re()},leave(y,re){const z=String(r.key);if(y[Gn]&&y[Gn](!0),c.isUnmounting)return re();te(D,[y]);let Se=!1;const ye=y[Qr]=Re=>{Se||(Se=!0,re(),Re?te(W,[y]):te(H,[y]),y[Qr]=void 0,_e[z]===r&&delete _e[z])};_e[z]=r,M?xe(M,[y,ye]):ye()},clone(y){return pl(y,n,c,p)}};return de}function hl(r){if($n(r))return r=Dr(r),r.children=null,r}function Yc(r){if(!$n(r))return r;const{shapeFlag:n,children:c}=r;if(c){if(n&16)return c[0];if(n&32&&at(c.default))return c.default()}}function fl(r,n){r.shapeFlag&6&&r.component?fl(r.component.subTree,n):r.shapeFlag&128?(r.ssContent.transition=n.clone(r.ssContent),r.ssFallback.transition=n.clone(r.ssFallback)):r.transition=n}function Wc(r,n=!1,c){let p=[],g=0;for(let v=0;v<r.length;v++){let b=r[v];const k=c==null?b.key:String(c)+String(b.key!=null?b.key:v);b.type===nt?(b.patchFlag&128&&g++,p=p.concat(Wc(b.children,n,k))):(n||b.type!==Ni)&&p.push(k!=null?Dr(b,{key:k}):b)}if(g>1)for(let v=0;v<p.length;v++)p[v].patchFlag=-2;return p}/*! #__NO_SIDE_EFFECTS__ */function Ye(r,n){return at(r)?(()=>ei({name:r.name},n,{setup:r}))():r}const Po=r=>!!r.type.__asyncLoader,$n=r=>r.type.__isKeepAlive;function em(r,n){qc(r,"a",n)}function tm(r,n){qc(r,"da",n)}function qc(r,n,c=vi){const p=r.__wdc||(r.__wdc=()=>{let g=c;for(;g;){if(g.isDeactivated)return;g=g.parent}return r()});if(Hn(n,p,c),c){let g=c.parent;for(;g&&g.parent;)$n(g.parent.vnode)&&im(p,n,c,g),g=g.parent}}function im(r,n,c,p){const g=Hn(n,r,p,!0);Kn(()=>{$s(p[n],g)},c)}function Hn(r,n,c=vi,p=!1){if(c){const g=c[r]||(c[r]=[]),v=n.__weh||(n.__weh=(...b)=>{if(c.isUnmounted)return;Er();const k=Bo(c),S=Ki(n,c,r,b);return k(),Sr(),S});return p?g.unshift(v):g.push(v),v}}const Rr=r=>(n,c=vi)=>(!Jn||r==="sp")&&Hn(r,(...p)=>n(...p),c),rm=Rr("bm"),Kt=Rr("m"),am=Rr("bu"),om=Rr("u"),gl=Rr("bum"),Kn=Rr("um"),nm=Rr("sp"),sm=Rr("rtg"),lm=Rr("rtc");function dm(r,n=vi){Hn("ec",r,n)}function ri(r,n,c,p){let g;const v=c&&c[p];if(Ve(r)||ii(r)){g=new Array(r.length);for(let b=0,k=r.length;b<k;b++)g[b]=n(r[b],b,void 0,v&&v[b])}else if(typeof r=="number"){g=new Array(r);for(let b=0;b<r;b++)g[b]=n(b+1,b,void 0,v&&v[b])}else if(Ot(r))if(r[Symbol.iterator])g=Array.from(r,(b,k)=>n(b,k,void 0,v&&v[k]));else{const b=Object.keys(r);g=new Array(b.length);for(let k=0,S=b.length;k<S;k++){const C=b[k];g[k]=n(r[C],C,k,v&&v[k])}}else g=[];return c&&(c[p]=g),g}function mi(r,n,c={},p,g){if(oi.isCE||oi.parent&&Po(oi.parent)&&oi.parent.isCE)return n!=="default"&&(c.name=n),Le("slot",c,p&&p());let v=r[n];v&&v._c&&(v._d=!1),V();const b=v&&Xc(v(c)),k=ze(nt,{key:c.key||b&&b.key||`_${n}`},b||(p?p():[]),b&&r._===1?64:-2);return!g&&k.scopeId&&(k.slotScopeIds=[k.scopeId+"-s"]),v&&v._c&&(v._d=!0),k}function Xc(r){return r.some(n=>qn(n)?!(n.type===Ni||n.type===nt&&!Xc(n.children)):!0)?r:null}const ml=r=>r?ku(r)?Zn(r)||r.proxy:ml(r.parent):null,Oo=ei(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>ml(r.parent),$root:r=>ml(r.root),$emit:r=>r.emit,$options:r=>wl(r),$forceUpdate:r=>r.f||(r.f=()=>{r.effect.dirty=!0,dl(r.update)}),$nextTick:r=>r.n||(r.n=Do.bind(r.proxy)),$watch:r=>Qg.bind(r)}),vl=(r,n)=>r!==gt&&!r.__isScriptSetup&&mt(r,n),cm={get({_:r},n){if(n==="__v_skip")return!0;const{ctx:c,setupState:p,data:g,props:v,accessCache:b,type:k,appContext:S}=r;let C;if(n[0]!=="$"){const H=b[n];if(H!==void 0)switch(H){case 1:return p[n];case 2:return g[n];case 4:return c[n];case 3:return v[n]}else{if(vl(p,n))return b[n]=1,p[n];if(g!==gt&&mt(g,n))return b[n]=2,g[n];if((C=r.propsOptions[0])&&mt(C,n))return b[n]=3,v[n];if(c!==gt&&mt(c,n))return b[n]=4,c[n];bl&&(b[n]=0)}}const R=Oo[n];let D,M;if(R)return n==="$attrs"&&Ri(r.attrs,"get",""),R(r);if((D=k.__cssModules)&&(D=D[n]))return D;if(c!==gt&&mt(c,n))return b[n]=4,c[n];if(M=S.config.globalProperties,mt(M,n))return M[n]},set({_:r},n,c){const{data:p,setupState:g,ctx:v}=r;return vl(g,n)?(g[n]=c,!0):p!==gt&&mt(p,n)?(p[n]=c,!0):mt(r.props,n)||n[0]==="$"&&n.slice(1)in r?!1:(v[n]=c,!0)},has({_:{data:r,setupState:n,accessCache:c,ctx:p,appContext:g,propsOptions:v}},b){let k;return!!c[b]||r!==gt&&mt(r,b)||vl(n,b)||(k=v[0])&&mt(k,b)||mt(p,b)||mt(Oo,b)||mt(g.config.globalProperties,b)},defineProperty(r,n,c){return c.get!=null?r._.accessCache[n]=0:mt(c,"value")&&this.set(r,n,c.value,null),Reflect.defineProperty(r,n,c)}};function Qc(r){return Ve(r)?r.reduce((n,c)=>(n[c]=null,n),{}):r}let bl=!0;function um(r){const n=wl(r),c=r.proxy,p=r.ctx;bl=!1,n.beforeCreate&&Jc(n.beforeCreate,r,"bc");const{data:g,computed:v,methods:b,watch:k,provide:S,inject:C,created:R,beforeMount:D,mounted:M,beforeUpdate:H,updated:W,activated:Y,deactivated:ce,beforeDestroy:se,beforeUnmount:ge,destroyed:pe,unmounted:_e,render:te,renderTracked:xe,renderTriggered:de,errorCaptured:y,serverPrefetch:re,expose:z,inheritAttrs:Se,components:ye,directives:Re,filters:dt}=n;if(C&&pm(C,p,null),b)for(const he in b){const qe=b[he];at(qe)&&(p[he]=qe.bind(c))}if(g){const he=g.call(c,c);Ot(he)&&(r.data=al(he))}if(bl=!0,v)for(const he in v){const qe=v[he],Pe=at(qe)?qe.bind(c,c):at(qe.get)?qe.get.bind(c,c):Oi,qt=!at(qe)&&at(qe.set)?qe.set.bind(c):Oi,Mt=oe({get:Pe,set:qt});Object.defineProperty(p,he,{enumerable:!0,configurable:!0,get:()=>Mt.value,set:kt=>Mt.value=kt})}if(k)for(const he in k)Zc(k[he],p,c,he);if(S){const he=at(S)?S.call(c):S;Reflect.ownKeys(he).forEach(qe=>{Ba(qe,he[qe])})}R&&Jc(R,r,"c");function j(he,qe){Ve(qe)?qe.forEach(Pe=>he(Pe.bind(c))):qe&&he(qe.bind(c))}if(j(rm,D),j(Kt,M),j(am,H),j(om,W),j(em,Y),j(tm,ce),j(dm,y),j(lm,xe),j(sm,de),j(gl,ge),j(Kn,_e),j(nm,re),Ve(z))if(z.length){const he=r.exposed||(r.exposed={});z.forEach(qe=>{Object.defineProperty(he,qe,{get:()=>c[qe],set:Pe=>c[qe]=Pe})})}else r.exposed||(r.exposed={});te&&r.render===Oi&&(r.render=te),Se!=null&&(r.inheritAttrs=Se),ye&&(r.components=ye),Re&&(r.directives=Re)}function pm(r,n,c=Oi){Ve(r)&&(r=xl(r));for(const p in r){const g=r[p];let v;Ot(g)?"default"in g?v=Dt(g.from||p,g.default,!0):v=Dt(g.from||p):v=Dt(g),Wt(v)?Object.defineProperty(n,p,{enumerable:!0,configurable:!0,get:()=>v.value,set:b=>v.value=b}):n[p]=v}}function Jc(r,n,c){Ki(Ve(r)?r.map(p=>p.bind(n.proxy)):r.bind(n.proxy),n,c)}function Zc(r,n,c,p){const g=p.includes(".")?$c(c,p):()=>c[p];if(ii(r)){const v=n[r];at(v)&&Bt(g,v)}else if(at(r))Bt(g,r.bind(c));else if(Ot(r))if(Ve(r))r.forEach(v=>Zc(v,n,c,p));else{const v=at(r.handler)?r.handler.bind(c):n[r.handler];at(v)&&Bt(g,v,r)}}function wl(r){const n=r.type,{mixins:c,extends:p}=n,{mixins:g,optionsCache:v,config:{optionMergeStrategies:b}}=r.appContext,k=v.get(n);let S;return k?S=k:!g.length&&!c&&!p?S=n:(S={},g.length&&g.forEach(C=>Yn(S,C,b,!0)),Yn(S,n,b)),Ot(n)&&v.set(n,S),S}function Yn(r,n,c,p=!1){const{mixins:g,extends:v}=n;v&&Yn(r,v,c,!0),g&&g.forEach(b=>Yn(r,b,c,!0));for(const b in n)if(!(p&&b==="expose")){const k=hm[b]||c&&c[b];r[b]=k?k(r[b],n[b]):n[b]}return r}const hm={data:eu,props:tu,emits:tu,methods:Mo,computed:Mo,beforeCreate:Si,created:Si,beforeMount:Si,mounted:Si,beforeUpdate:Si,updated:Si,beforeDestroy:Si,beforeUnmount:Si,destroyed:Si,unmounted:Si,activated:Si,deactivated:Si,errorCaptured:Si,serverPrefetch:Si,components:Mo,directives:Mo,watch:gm,provide:eu,inject:fm};function eu(r,n){return n?r?function(){return ei(at(r)?r.call(this,this):r,at(n)?n.call(this,this):n)}:n:r}function fm(r,n){return Mo(xl(r),xl(n))}function xl(r){if(Ve(r)){const n={};for(let c=0;c<r.length;c++)n[r[c]]=r[c];return n}return r}function Si(r,n){return r?[...new Set([].concat(r,n))]:n}function Mo(r,n){return r?ei(Object.create(null),r,n):n}function tu(r,n){return r?Ve(r)&&Ve(n)?[...new Set([...r,...n])]:ei(Object.create(null),Qc(r),Qc(n!=null?n:{})):n}function gm(r,n){if(!r)return n;if(!n)return r;const c=ei(Object.create(null),r);for(const p in n)c[p]=Si(r[p],n[p]);return c}function iu(){return{app:null,config:{isNativeTag:jf,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let mm=0;function vm(r,n){return function(p,g=null){at(p)||(p=ei({},p)),g!=null&&!Ot(g)&&(g=null);const v=iu(),b=new WeakSet;let k=!1;const S=v.app={_uid:mm++,_component:p,_props:g,_container:null,_context:v,_instance:null,version:Gm,get config(){return v.config},set config(C){},use(C,...R){return b.has(C)||(C&&at(C.install)?(b.add(C),C.install(S,...R)):at(C)&&(b.add(C),C(S,...R))),S},mixin(C){return v.mixins.includes(C)||v.mixins.push(C),S},component(C,R){return R?(v.components[C]=R,S):v.components[C]},directive(C,R){return R?(v.directives[C]=R,S):v.directives[C]},mount(C,R,D){if(!k){const M=Le(p,g);return M.appContext=v,D===!0?D="svg":D===!1&&(D=void 0),R&&n?n(M,C):r(M,C,D),k=!0,S._container=C,C.__vue_app__=S,Zn(M.component)||M.component.proxy}},unmount(){k&&(r(null,S._container),delete S._container.__vue_app__)},provide(C,R){return v.provides[C]=R,S},runWithContext(C){const R=Fo;Fo=S;try{return C()}finally{Fo=R}}};return S}}let Fo=null;function Ba(r,n){if(vi){let c=vi.provides;const p=vi.parent&&vi.parent.provides;p===c&&(c=vi.provides=Object.create(p)),c[r]=n}}function Dt(r,n,c=!1){const p=vi||oi;if(p||Fo){const g=p?p.parent==null?p.vnode.appContext&&p.vnode.appContext.provides:p.parent.provides:Fo._context.provides;if(g&&r in g)return g[r];if(arguments.length>1)return c&&at(n)?n.call(p&&p.proxy):n}}const ru={},au=()=>Object.create(ru),ou=r=>Object.getPrototypeOf(r)===ru;function bm(r,n,c,p=!1){const g={},v=au();r.propsDefaults=Object.create(null),nu(r,n,g,v);for(const b in r.propsOptions[0])b in g||(g[b]=void 0);c?r.props=p?g:kg(g):r.type.props?r.props=g:r.props=v,r.attrs=v}function wm(r,n,c,p){const{props:g,attrs:v,vnode:{patchFlag:b}}=r,k=pt(g),[S]=r.propsOptions;let C=!1;if((p||b>0)&&!(b&16)){if(b&8){const R=r.vnode.dynamicProps;for(let D=0;D<R.length;D++){let M=R[D];if(Un(r.emitsOptions,M))continue;const H=n[M];if(S)if(mt(v,M))H!==v[M]&&(v[M]=H,C=!0);else{const W=Mi(M);g[W]=yl(S,k,W,H,r,!1)}else H!==v[M]&&(v[M]=H,C=!0)}}}else{nu(r,n,g,v)&&(C=!0);let R;for(const D in k)(!n||!mt(n,D)&&((R=Hi(D))===D||!mt(n,R)))&&(S?c&&(c[D]!==void 0||c[R]!==void 0)&&(g[D]=yl(S,k,D,void 0,r,!0)):delete g[D]);if(v!==k)for(const D in v)(!n||!mt(n,D)&&!0)&&(delete v[D],C=!0)}C&&Lr(r.attrs,"set","")}function nu(r,n,c,p){const[g,v]=r.propsOptions;let b=!1,k;if(n)for(let S in n){if(Eo(S))continue;const C=n[S];let R;g&&mt(g,R=Mi(S))?!v||!v.includes(R)?c[R]=C:(k||(k={}))[R]=C:Un(r.emitsOptions,S)||(!(S in p)||C!==p[S])&&(p[S]=C,b=!0)}if(v){const S=pt(c),C=k||gt;for(let R=0;R<v.length;R++){const D=v[R];c[D]=yl(g,S,D,C[D],r,!mt(C,D))}}return b}function yl(r,n,c,p,g,v){const b=r[c];if(b!=null){const k=mt(b,"default");if(k&&p===void 0){const S=b.default;if(b.type!==Function&&!b.skipFactory&&at(S)){const{propsDefaults:C}=g;if(c in C)p=C[c];else{const R=Bo(g);p=C[c]=S.call(null,n),R()}}else p=S}b[0]&&(v&&!k?p=!1:b[1]&&(p===""||p===Hi(c))&&(p=!0))}return p}function su(r,n,c=!1){const p=n.propsCache,g=p.get(r);if(g)return g;const v=r.props,b={},k=[];let S=!1;if(!at(r)){const R=D=>{S=!0;const[M,H]=su(D,n,!0);ei(b,M),H&&k.push(...H)};!c&&n.mixins.length&&n.mixins.forEach(R),r.extends&&R(r.extends),r.mixins&&r.mixins.forEach(R)}if(!v&&!S)return Ot(r)&&p.set(r,$i),$i;if(Ve(v))for(let R=0;R<v.length;R++){const D=Mi(v[R]);lu(D)&&(b[D]=gt)}else if(v)for(const R in v){const D=Mi(R);if(lu(D)){const M=v[R],H=b[D]=Ve(M)||at(M)?{type:M}:ei({},M);if(H){const W=uu(Boolean,H.type),Y=uu(String,H.type);H[0]=W>-1,H[1]=Y<0||W<Y,(W>-1||mt(H,"default"))&&k.push(D)}}}const C=[b,k];return Ot(r)&&p.set(r,C),C}function lu(r){return r[0]!=="$"&&!Eo(r)}function du(r){return r===null?"null":typeof r=="function"?r.name||"":typeof r=="object"&&r.constructor&&r.constructor.name||""}function cu(r,n){return du(r)===du(n)}function uu(r,n){return Ve(n)?n.findIndex(c=>cu(c,r)):at(n)&&cu(n,r)?0:-1}const pu=r=>r[0]==="_"||r==="$stable",kl=r=>Ve(r)?r.map(ur):[ur(r)],xm=(r,n,c)=>{if(n._n)return n;const p=Fi((...g)=>kl(n(...g)),c);return p._c=!1,p},hu=(r,n,c)=>{const p=r._ctx;for(const g in r){if(pu(g))continue;const v=r[g];if(at(v))n[g]=xm(g,v,p);else if(v!=null){const b=kl(v);n[g]=()=>b}}},fu=(r,n)=>{const c=kl(n);r.slots.default=()=>c},ym=(r,n)=>{const c=r.slots=au();if(r.vnode.shapeFlag&32){const p=n._;p?(ei(c,n),rc(c,"_",p,!0)):hu(n,c)}else n&&fu(r,n)},km=(r,n,c)=>{const{vnode:p,slots:g}=r;let v=!0,b=gt;if(p.shapeFlag&32){const k=n._;k?c&&k===1?v=!1:(ei(g,n),!c&&k===1&&delete g._):(v=!n.$stable,hu(n,g)),b=n}else n&&(fu(r,n),b={default:1});if(v)for(const k in g)!pu(k)&&b[k]==null&&delete g[k]};function _l(r,n,c,p,g=!1){if(Ve(r)){r.forEach((M,H)=>_l(M,n&&(Ve(n)?n[H]:n),c,p,g));return}if(Po(p)&&!g)return;const v=p.shapeFlag&4?Zn(p.component)||p.component.proxy:p.el,b=g?null:v,{i:k,r:S}=r,C=n&&n.r,R=k.refs===gt?k.refs={}:k.refs,D=k.setupState;if(C!=null&&C!==S&&(ii(C)?(R[C]=null,mt(D,C)&&(D[C]=null)):Wt(C)&&(C.value=null)),at(S))Ar(S,k,12,[b,R]);else{const M=ii(S),H=Wt(S);if(M||H){const W=()=>{if(r.f){const Y=M?mt(D,S)?D[S]:R[S]:S.value;g?Ve(Y)&&$s(Y,v):Ve(Y)?Y.includes(v)||Y.push(v):M?(R[S]=[v],mt(D,S)&&(D[S]=R[S])):(S.value=[v],r.k&&(R[r.k]=S.value))}else M?(R[S]=b,mt(D,S)&&(D[S]=b)):H&&(S.value=b,r.k&&(R[r.k]=b))};b?(W.id=-1,Di(W,c)):W()}}}function _m(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(qs().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Di=Wg;function Tm(r){return Em(r)}function Em(r,n){_m();const c=qs();c.__VUE__=!0;const{insert:p,remove:g,patchProp:v,createElement:b,createText:k,createComment:S,setText:C,setElementText:R,parentNode:D,nextSibling:M,setScopeId:H=Oi,insertStaticContent:W}=r,Y=(O,N,Z,le=null,ue=null,we=null,Ee=void 0,fe=null,ke=!!N.dynamicChildren)=>{if(O===N)return;O&&!va(O,N)&&(le=Xt(O),kt(O,ue,we,!0),O=null),N.patchFlag===-2&&(ke=!1,N.dynamicChildren=null);const{type:me,ref:Ce,shapeFlag:Be}=N;switch(me){case Wn:ce(O,N,Z,le);break;case Ni:se(O,N,Z,le);break;case El:O==null&&ge(N,Z,le,Ee);break;case nt:ye(O,N,Z,le,ue,we,Ee,fe,ke);break;default:Be&1?te(O,N,Z,le,ue,we,Ee,fe,ke):Be&6?Re(O,N,Z,le,ue,we,Ee,fe,ke):(Be&64||Be&128)&&me.process(O,N,Z,le,ue,we,Ee,fe,ke,Ze)}Ce!=null&&ue&&_l(Ce,O&&O.ref,we,N||O,!N)},ce=(O,N,Z,le)=>{if(O==null)p(N.el=k(N.children),Z,le);else{const ue=N.el=O.el;N.children!==O.children&&C(ue,N.children)}},se=(O,N,Z,le)=>{O==null?p(N.el=S(N.children||""),Z,le):N.el=O.el},ge=(O,N,Z,le)=>{[O.el,O.anchor]=W(O.children,N,Z,le,O.el,O.anchor)},pe=({el:O,anchor:N},Z,le)=>{let ue;for(;O&&O!==N;)ue=M(O),p(O,Z,le),O=ue;p(N,Z,le)},_e=({el:O,anchor:N})=>{let Z;for(;O&&O!==N;)Z=M(O),g(O),O=Z;g(N)},te=(O,N,Z,le,ue,we,Ee,fe,ke)=>{N.type==="svg"?Ee="svg":N.type==="math"&&(Ee="mathml"),O==null?xe(N,Z,le,ue,we,Ee,fe,ke):re(O,N,ue,we,Ee,fe,ke)},xe=(O,N,Z,le,ue,we,Ee,fe)=>{let ke,me;const{props:Ce,shapeFlag:Be,transition:Oe,dirs:$e}=O;if(ke=O.el=b(O.type,we,Ce&&Ce.is,Ce),Be&8?R(ke,O.children):Be&16&&y(O.children,ke,null,le,ue,Tl(O,we),Ee,fe),$e&&ga(O,null,le,"created"),de(ke,O,O.scopeId,Ee,le),Ce){for(const ct in Ce)ct!=="value"&&!Eo(ct)&&v(ke,ct,null,Ce[ct],we,O.children,le,ue,Nt);"value"in Ce&&v(ke,"value",null,Ce.value,we),(me=Ce.onVnodeBeforeMount)&&pr(me,le,O)}$e&&ga(O,null,le,"beforeMount");const it=Sm(ue,Oe);it&&Oe.beforeEnter(ke),p(ke,N,Z),((me=Ce&&Ce.onVnodeMounted)||it||$e)&&Di(()=>{me&&pr(me,le,O),it&&Oe.enter(ke),$e&&ga(O,null,le,"mounted")},ue)},de=(O,N,Z,le,ue)=>{if(Z&&H(O,Z),le)for(let we=0;we<le.length;we++)H(O,le[we]);if(ue){let we=ue.subTree;if(N===we){const Ee=ue.vnode;de(O,Ee,Ee.scopeId,Ee.slotScopeIds,ue.parent)}}},y=(O,N,Z,le,ue,we,Ee,fe,ke=0)=>{for(let me=ke;me<O.length;me++){const Ce=O[me]=fe?Jr(O[me]):ur(O[me]);Y(null,Ce,N,Z,le,ue,we,Ee,fe)}},re=(O,N,Z,le,ue,we,Ee)=>{const fe=N.el=O.el;let{patchFlag:ke,dynamicChildren:me,dirs:Ce}=N;ke|=O.patchFlag&16;const Be=O.props||gt,Oe=N.props||gt;let $e;if(Z&&ma(Z,!1),($e=Oe.onVnodeBeforeUpdate)&&pr($e,Z,N,O),Ce&&ga(N,O,Z,"beforeUpdate"),Z&&ma(Z,!0),me?z(O.dynamicChildren,me,fe,Z,le,Tl(N,ue),we):Ee||qe(O,N,fe,null,Z,le,Tl(N,ue),we,!1),ke>0){if(ke&16)Se(fe,N,Be,Oe,Z,le,ue);else if(ke&2&&Be.class!==Oe.class&&v(fe,"class",null,Oe.class,ue),ke&4&&v(fe,"style",Be.style,Oe.style,ue),ke&8){const it=N.dynamicProps;for(let ct=0;ct<it.length;ct++){const ut=it[ct],St=Be[ut],li=Oe[ut];(li!==St||ut==="value")&&v(fe,ut,St,li,ue,O.children,Z,le,Nt)}}ke&1&&O.children!==N.children&&R(fe,N.children)}else!Ee&&me==null&&Se(fe,N,Be,Oe,Z,le,ue);(($e=Oe.onVnodeUpdated)||Ce)&&Di(()=>{$e&&pr($e,Z,N,O),Ce&&ga(N,O,Z,"updated")},le)},z=(O,N,Z,le,ue,we,Ee)=>{for(let fe=0;fe<N.length;fe++){const ke=O[fe],me=N[fe],Ce=ke.el&&(ke.type===nt||!va(ke,me)||ke.shapeFlag&70)?D(ke.el):Z;Y(ke,me,Ce,null,le,ue,we,Ee,!0)}},Se=(O,N,Z,le,ue,we,Ee)=>{if(Z!==le){if(Z!==gt)for(const fe in Z)!Eo(fe)&&!(fe in le)&&v(O,fe,Z[fe],null,Ee,N.children,ue,we,Nt);for(const fe in le){if(Eo(fe))continue;const ke=le[fe],me=Z[fe];ke!==me&&fe!=="value"&&v(O,fe,me,ke,Ee,N.children,ue,we,Nt)}"value"in le&&v(O,"value",Z.value,le.value,Ee)}},ye=(O,N,Z,le,ue,we,Ee,fe,ke)=>{const me=N.el=O?O.el:k(""),Ce=N.anchor=O?O.anchor:k("");let{patchFlag:Be,dynamicChildren:Oe,slotScopeIds:$e}=N;$e&&(fe=fe?fe.concat($e):$e),O==null?(p(me,Z,le),p(Ce,Z,le),y(N.children||[],Z,Ce,ue,we,Ee,fe,ke)):Be>0&&Be&64&&Oe&&O.dynamicChildren?(z(O.dynamicChildren,Oe,Z,ue,we,Ee,fe),(N.key!=null||ue&&N===ue.subTree)&&gu(O,N,!0)):qe(O,N,Z,Ce,ue,we,Ee,fe,ke)},Re=(O,N,Z,le,ue,we,Ee,fe,ke)=>{N.slotScopeIds=fe,O==null?N.shapeFlag&512?ue.ctx.activate(N,Z,le,Ee,ke):dt(N,Z,le,ue,we,Ee,ke):st(O,N,ke)},dt=(O,N,Z,le,ue,we,Ee)=>{const fe=O.component=Mm(O,le,ue);if($n(O)&&(fe.ctx.renderer=Ze),Fm(fe),fe.asyncDep){if(ue&&ue.registerDep(fe,j),!O.el){const ke=fe.subTree=Le(Ni);se(null,ke,N,Z)}}else j(fe,O,N,Z,ue,we,Ee)},st=(O,N,Z)=>{const le=N.component=O.component;if(jg(O,N,Z))if(le.asyncDep&&!le.asyncResolved){he(le,N,Z);return}else le.next=N,Fg(le.update),le.effect.dirty=!0,le.update();else N.el=O.el,le.vnode=N},j=(O,N,Z,le,ue,we,Ee)=>{const fe=()=>{if(O.isMounted){let{next:Ce,bu:Be,u:Oe,parent:$e,vnode:it}=O;{const Ai=mu(O);if(Ai){Ce&&(Ce.el=it.el,he(O,Ce,Ee)),Ai.asyncDep.then(()=>{O.isUnmounted||fe()});return}}let ct=Ce,ut;ma(O,!1),Ce?(Ce.el=it.el,he(O,Ce,Ee)):Ce=it,Be&&Sn(Be),(ut=Ce.props&&Ce.props.onVnodeBeforeUpdate)&&pr(ut,$e,Ce,it),ma(O,!0);const St=cl(O),li=O.subTree;O.subTree=St,Y(li,St,D(li.el),Xt(li),O,ue,we),Ce.el=St.el,ct===null&&Gg(O,St.el),Oe&&Di(Oe,ue),(ut=Ce.props&&Ce.props.onVnodeUpdated)&&Di(()=>pr(ut,$e,Ce,it),ue)}else{let Ce;const{el:Be,props:Oe}=N,{bm:$e,m:it,parent:ct}=O,ut=Po(N);if(ma(O,!1),$e&&Sn($e),!ut&&(Ce=Oe&&Oe.onVnodeBeforeMount)&&pr(Ce,ct,N),ma(O,!0),Be&&It){const St=()=>{O.subTree=cl(O),It(Be,O.subTree,O,ue,null)};ut?N.type.__asyncLoader().then(()=>!O.isUnmounted&&St()):St()}else{const St=O.subTree=cl(O);Y(null,St,Z,le,O,ue,we),N.el=St.el}if(it&&Di(it,ue),!ut&&(Ce=Oe&&Oe.onVnodeMounted)){const St=N;Di(()=>pr(Ce,ct,St),ue)}(N.shapeFlag&256||ct&&Po(ct.vnode)&&ct.vnode.shapeFlag&256)&&O.a&&Di(O.a,ue),O.isMounted=!0,N=Z=le=null}},ke=O.effect=new Qs(fe,Oi,()=>dl(me),O.scope),me=O.update=()=>{ke.dirty&&ke.run()};me.id=O.uid,ma(O,!0),me()},he=(O,N,Z)=>{N.component=O;const le=O.vnode.props;O.vnode=N,O.next=null,wm(O,N.props,le,Z),km(O,N.children,Z),Er(),Fc(O),Sr()},qe=(O,N,Z,le,ue,we,Ee,fe,ke=!1)=>{const me=O&&O.children,Ce=O?O.shapeFlag:0,Be=N.children,{patchFlag:Oe,shapeFlag:$e}=N;if(Oe>0){if(Oe&128){qt(me,Be,Z,le,ue,we,Ee,fe,ke);return}else if(Oe&256){Pe(me,Be,Z,le,ue,we,Ee,fe,ke);return}}$e&8?(Ce&16&&Nt(me,ue,we),Be!==me&&R(Z,Be)):Ce&16?$e&16?qt(me,Be,Z,le,ue,we,Ee,fe,ke):Nt(me,ue,we,!0):(Ce&8&&R(Z,""),$e&16&&y(Be,Z,le,ue,we,Ee,fe,ke))},Pe=(O,N,Z,le,ue,we,Ee,fe,ke)=>{O=O||$i,N=N||$i;const me=O.length,Ce=N.length,Be=Math.min(me,Ce);let Oe;for(Oe=0;Oe<Be;Oe++){const $e=N[Oe]=ke?Jr(N[Oe]):ur(N[Oe]);Y(O[Oe],$e,Z,null,ue,we,Ee,fe,ke)}me>Ce?Nt(O,ue,we,!0,!1,Be):y(N,Z,le,ue,we,Ee,fe,ke,Be)},qt=(O,N,Z,le,ue,we,Ee,fe,ke)=>{let me=0;const Ce=N.length;let Be=O.length-1,Oe=Ce-1;for(;me<=Be&&me<=Oe;){const $e=O[me],it=N[me]=ke?Jr(N[me]):ur(N[me]);if(va($e,it))Y($e,it,Z,null,ue,we,Ee,fe,ke);else break;me++}for(;me<=Be&&me<=Oe;){const $e=O[Be],it=N[Oe]=ke?Jr(N[Oe]):ur(N[Oe]);if(va($e,it))Y($e,it,Z,null,ue,we,Ee,fe,ke);else break;Be--,Oe--}if(me>Be){if(me<=Oe){const $e=Oe+1,it=$e<Ce?N[$e].el:le;for(;me<=Oe;)Y(null,N[me]=ke?Jr(N[me]):ur(N[me]),Z,it,ue,we,Ee,fe,ke),me++}}else if(me>Oe)for(;me<=Be;)kt(O[me],ue,we,!0),me++;else{const $e=me,it=me,ct=new Map;for(me=it;me<=Oe;me++){const di=N[me]=ke?Jr(N[me]):ur(N[me]);di.key!=null&&ct.set(di.key,me)}let ut,St=0;const li=Oe-it+1;let Ai=!1,Fr=0;const rr=new Array(li);for(me=0;me<li;me++)rr[me]=0;for(me=$e;me<=Be;me++){const di=O[me];if(St>=li){kt(di,ue,we,!0);continue}let ci;if(di.key!=null)ci=ct.get(di.key);else for(ut=it;ut<=Oe;ut++)if(rr[ut-it]===0&&va(di,N[ut])){ci=ut;break}ci===void 0?kt(di,ue,we,!0):(rr[ci-it]=me+1,ci>=Fr?Fr=ci:Ai=!0,Y(di,N[ci],Z,null,ue,we,Ee,fe,ke),St++)}const Nr=Ai?Lm(rr):$i;for(ut=Nr.length-1,me=li-1;me>=0;me--){const di=it+me,ci=N[di],na=di+1<Ce?N[di+1].el:le;rr[me]===0?Y(null,ci,Z,na,ue,we,Ee,fe,ke):Ai&&(ut<0||me!==Nr[ut]?Mt(ci,Z,na,2):ut--)}}},Mt=(O,N,Z,le,ue=null)=>{const{el:we,type:Ee,transition:fe,children:ke,shapeFlag:me}=O;if(me&6){Mt(O.component.subTree,N,Z,le);return}if(me&128){O.suspense.move(N,Z,le);return}if(me&64){Ee.move(O,N,Z,Ze);return}if(Ee===nt){p(we,N,Z);for(let Be=0;Be<ke.length;Be++)Mt(ke[Be],N,Z,le);p(O.anchor,N,Z);return}if(Ee===El){pe(O,N,Z);return}if(le!==2&&me&1&&fe)if(le===0)fe.beforeEnter(we),p(we,N,Z),Di(()=>fe.enter(we),ue);else{const{leave:Be,delayLeave:Oe,afterLeave:$e}=fe,it=()=>p(we,N,Z),ct=()=>{Be(we,()=>{it(),$e&&$e()})};Oe?Oe(we,it,ct):ct()}else p(we,N,Z)},kt=(O,N,Z,le=!1,ue=!1)=>{const{type:we,props:Ee,ref:fe,children:ke,dynamicChildren:me,shapeFlag:Ce,patchFlag:Be,dirs:Oe}=O;if(fe!=null&&_l(fe,null,Z,O,!0),Ce&256){N.ctx.deactivate(O);return}const $e=Ce&1&&Oe,it=!Po(O);let ct;if(it&&(ct=Ee&&Ee.onVnodeBeforeUnmount)&&pr(ct,N,O),Ce&6)Et(O.component,Z,le);else{if(Ce&128){O.suspense.unmount(Z,le);return}$e&&ga(O,null,N,"beforeUnmount"),Ce&64?O.type.remove(O,N,Z,ue,Ze,le):me&&(we!==nt||Be>0&&Be&64)?Nt(me,N,Z,!1,!0):(we===nt&&Be&384||!ue&&Ce&16)&&Nt(ke,N,Z),le&&_t(O)}(it&&(ct=Ee&&Ee.onVnodeUnmounted)||$e)&&Di(()=>{ct&&pr(ct,N,O),$e&&ga(O,null,N,"unmounted")},Z)},_t=O=>{const{type:N,el:Z,anchor:le,transition:ue}=O;if(N===nt){Ft(Z,le);return}if(N===El){_e(O);return}const we=()=>{g(Z),ue&&!ue.persisted&&ue.afterLeave&&ue.afterLeave()};if(O.shapeFlag&1&&ue&&!ue.persisted){const{leave:Ee,delayLeave:fe}=ue,ke=()=>Ee(Z,we);fe?fe(O.el,we,ke):ke()}else we()},Ft=(O,N)=>{let Z;for(;O!==N;)Z=M(O),g(O),O=Z;g(N)},Et=(O,N,Z)=>{const{bum:le,scope:ue,update:we,subTree:Ee,um:fe}=O;le&&Sn(le),ue.stop(),we&&(we.active=!1,kt(Ee,O,N,Z)),fe&&Di(fe,N),Di(()=>{O.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},Nt=(O,N,Z,le=!1,ue=!1,we=0)=>{for(let Ee=we;Ee<O.length;Ee++)kt(O[Ee],N,Z,le,ue)},Xt=O=>O.shapeFlag&6?Xt(O.component.subTree):O.shapeFlag&128?O.suspense.next():M(O.anchor||O.el);let xt=!1;const Li=(O,N,Z)=>{O==null?N._vnode&&kt(N._vnode,null,null,!0):Y(N._vnode||null,O,N,null,null,null,Z),xt||(xt=!0,Fc(),Nc(),xt=!1),N._vnode=O},Ze={p:Y,um:kt,m:Mt,r:_t,mt:dt,mc:y,pc:qe,pbc:z,n:Xt,o:r};let si,It;return n&&([si,It]=n(Ze)),{render:Li,hydrate:si,createApp:vm(Li,si)}}function Tl({type:r,props:n},c){return c==="svg"&&r==="foreignObject"||c==="mathml"&&r==="annotation-xml"&&n&&n.encoding&&n.encoding.includes("html")?void 0:c}function ma({effect:r,update:n},c){r.allowRecurse=n.allowRecurse=c}function Sm(r,n){return(!r||r&&!r.pendingBranch)&&n&&!n.persisted}function gu(r,n,c=!1){const p=r.children,g=n.children;if(Ve(p)&&Ve(g))for(let v=0;v<p.length;v++){const b=p[v];let k=g[v];k.shapeFlag&1&&!k.dynamicChildren&&((k.patchFlag<=0||k.patchFlag===32)&&(k=g[v]=Jr(g[v]),k.el=b.el),c||gu(b,k)),k.type===Wn&&(k.el=b.el)}}function Lm(r){const n=r.slice(),c=[0];let p,g,v,b,k;const S=r.length;for(p=0;p<S;p++){const C=r[p];if(C!==0){if(g=c[c.length-1],r[g]<C){n[p]=g,c.push(p);continue}for(v=0,b=c.length-1;v<b;)k=v+b>>1,r[c[k]]<C?v=k+1:b=k;C<r[c[v]]&&(v>0&&(n[p]=c[v-1]),c[v]=p)}}for(v=c.length,b=c[v-1];v-- >0;)c[v]=b,b=n[b];return c}function mu(r){const n=r.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:mu(n)}const Am=r=>r.__isTeleport,nt=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),Ni=Symbol.for("v-cmt"),El=Symbol.for("v-stc"),No=[];let tr=null;function V(r=!1){No.push(tr=r?null:[])}function Cm(){No.pop(),tr=No[No.length-1]||null}let zo=1;function vu(r){zo+=r}function bu(r){return r.dynamicChildren=zo>0?tr||$i:null,Cm(),zo>0&&tr&&tr.push(r),r}function Q(r,n,c,p,g,v){return bu(U(r,n,c,p,g,v,!0))}function ze(r,n,c,p,g){return bu(Le(r,n,c,p,g,!0))}function qn(r){return r?r.__v_isVNode===!0:!1}function va(r,n){return r.type===n.type&&r.key===n.key}const wu=({key:r})=>r!=null?r:null,Xn=({ref:r,ref_key:n,ref_for:c})=>(typeof r=="number"&&(r=""+r),r!=null?ii(r)||Wt(r)||at(r)?{i:oi,r,k:n,f:!!c}:r:null);function U(r,n=null,c=null,p=0,g=null,v=r===nt?0:1,b=!1,k=!1){const S={__v_isVNode:!0,__v_skip:!0,type:r,props:n,key:n&&wu(n),ref:n&&Xn(n),scopeId:Uc,slotScopeIds:null,children:c,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:v,patchFlag:p,dynamicProps:g,dynamicChildren:null,appContext:null,ctx:oi};return k?(Sl(S,c),v&128&&r.normalize(S)):c&&(S.shapeFlag|=ii(c)?8:16),zo>0&&!b&&tr&&(S.patchFlag>0||v&6)&&S.patchFlag!==32&&tr.push(S),S}const Le=Rm;function Rm(r,n=null,c=null,p=0,g=null,v=!1){if((!r||r===Hg)&&(r=Ni),qn(r)){const k=Dr(r,n,!0);return c&&Sl(k,c),zo>0&&!v&&tr&&(k.shapeFlag&6?tr[tr.indexOf(r)]=k:tr.push(k)),k.patchFlag|=-2,k}if(jm(r)&&(r=r.__vccOpts),n){n=Dm(n);let{class:k,style:S}=n;k&&!ii(k)&&(n.class=wt(k)),Ot(S)&&(Cc(S)&&!Ve(S)&&(S=ei({},S)),n.style=wi(S))}const b=ii(r)?1:Yg(r)?128:Am(r)?64:Ot(r)?4:at(r)?2:0;return U(r,n,c,p,g,b,v,!0)}function Dm(r){return r?Cc(r)||ou(r)?ei({},r):r:null}function Dr(r,n,c=!1,p=!1){const{props:g,ref:v,patchFlag:b,children:k,transition:S}=r,C=n?Im(g||{},n):g,R={__v_isVNode:!0,__v_skip:!0,type:r.type,props:C,key:C&&wu(C),ref:n&&n.ref?c&&v?Ve(v)?v.concat(Xn(n)):[v,Xn(n)]:Xn(n):v,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:k,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:n&&r.type!==nt?b===-1?16:b|16:b,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:S,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Dr(r.ssContent),ssFallback:r.ssFallback&&Dr(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return S&&p&&(R.transition=S.clone(R)),R}function cr(r=" ",n=0){return Le(Wn,null,r,n)}function ve(r="",n=!1){return n?(V(),ze(Ni,null,r)):Le(Ni,null,r)}function ur(r){return r==null||typeof r=="boolean"?Le(Ni):Ve(r)?Le(nt,null,r.slice()):typeof r=="object"?Jr(r):Le(Wn,null,String(r))}function Jr(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Dr(r)}function Sl(r,n){let c=0;const{shapeFlag:p}=r;if(n==null)n=null;else if(Ve(n))c=16;else if(typeof n=="object")if(p&65){const g=n.default;g&&(g._c&&(g._d=!1),Sl(r,g()),g._c&&(g._d=!0));return}else{c=32;const g=n._;!g&&!ou(n)?n._ctx=oi:g===3&&oi&&(oi.slots._===1?n._=1:(n._=2,r.patchFlag|=1024))}else at(n)?(n={default:n,_ctx:oi},c=32):(n=String(n),p&64?(c=16,n=[cr(n)]):c=8);r.children=n,r.shapeFlag|=c}function Im(...r){const n={};for(let c=0;c<r.length;c++){const p=r[c];for(const g in p)if(g==="class")n.class!==p.class&&(n.class=wt([n.class,p.class]));else if(g==="style")n.style=wi([n.style,p.style]);else if(kn(g)){const v=n[g],b=p[g];b&&v!==b&&!(Ve(v)&&v.includes(b))&&(n[g]=v?[].concat(v,b):b)}else g!==""&&(n[g]=p[g])}return n}function pr(r,n,c,p=null){Ki(r,n,7,[c,p])}const Pm=iu();let Om=0;function Mm(r,n,c){const p=r.type,g=(n?n.appContext:r.appContext)||Pm,v={uid:Om++,vnode:r,type:p,parent:n,appContext:g,root:null,next:null,subTree:null,effect:null,update:null,scope:new Zf(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(g.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:su(p,g),emitsOptions:Bc(p,g),emit:null,emitted:null,propsDefaults:gt,inheritAttrs:p.inheritAttrs,ctx:gt,data:gt,props:gt,attrs:gt,slots:gt,refs:gt,setupState:gt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:c,suspenseId:c?c.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return v.ctx={_:v},v.root=n?n.root:v,v.emit=Bg.bind(null,v),r.ce&&r.ce(v),v}let vi=null;const xu=()=>vi||oi;let Qn,Ll;{const r=qs(),n=(c,p)=>{let g;return(g=r[c])||(g=r[c]=[]),g.push(p),v=>{g.length>1?g.forEach(b=>b(v)):g[0](v)}};Qn=n("__VUE_INSTANCE_SETTERS__",c=>vi=c),Ll=n("__VUE_SSR_SETTERS__",c=>Jn=c)}const Bo=r=>{const n=vi;return Qn(r),r.scope.on(),()=>{r.scope.off(),Qn(n)}},yu=()=>{vi&&vi.scope.off(),Qn(null)};function ku(r){return r.vnode.shapeFlag&4}let Jn=!1;function Fm(r,n=!1){n&&Ll(n);const{props:c,children:p}=r.vnode,g=ku(r);bm(r,c,g,n),ym(r,p);const v=g?Nm(r,n):void 0;return n&&Ll(!1),v}function Nm(r,n){const c=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,cm);const{setup:p}=c;if(p){const g=r.setupContext=p.length>1?Bm(r):null,v=Bo(r);Er();const b=Ar(p,r,0,[r.props,g]);if(Sr(),v(),ec(b)){if(b.then(yu,yu),n)return b.then(k=>{_u(r,k,n)}).catch(k=>{Bn(k,r,0)});r.asyncDep=b}else _u(r,b,n)}else Eu(r,n)}function _u(r,n,c){at(n)?r.type.__ssrInlineRender?r.ssrRender=n:r.render=n:Ot(n)&&(r.setupState=Ic(n)),Eu(r,c)}let Tu;function Eu(r,n,c){const p=r.type;if(!r.render){if(!n&&Tu&&!p.render){const g=p.template||wl(r).template;if(g){const{isCustomElement:v,compilerOptions:b}=r.appContext.config,{delimiters:k,compilerOptions:S}=p,C=ei(ei({isCustomElement:v,delimiters:k},b),S);p.render=Tu(g,C)}}r.render=p.render||Oi}{const g=Bo(r);Er();try{um(r)}finally{Sr(),g()}}}const zm={get(r,n){return Ri(r,"get",""),r[n]}};function Bm(r){const n=c=>{r.exposed=c||{}};return{attrs:new Proxy(r.attrs,zm),slots:r.slots,emit:r.emit,expose:n}}function Zn(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(Ic(_g(r.exposed)),{get(n,c){if(c in n)return n[c];if(c in Oo)return Oo[c](r)},has(n,c){return c in n||c in Oo}}))}const Um=/(?:^|[-_])(\w)/g,Vm=r=>r.replace(Um,n=>n.toUpperCase()).replace(/[-_]/g,"");function Su(r,n=!0){return at(r)?r.displayName||r.name:r.name||n&&r.__name}function Lu(r,n,c=!1){let p=Su(n);if(!p&&n.__file){const g=n.__file.match(/([^/\\]+)\.\w+$/);g&&(p=g[1])}if(!p&&r&&r.parent){const g=v=>{for(const b in v)if(v[b]===n)return b};p=g(r.components||r.parent.type.components)||g(r.appContext.components)}return p?Vm(p):c?"App":"Anonymous"}function jm(r){return at(r)&&"__vccOpts"in r}const oe=(r,n)=>Tg(r,n,Jn);function es(r,n,c){const p=arguments.length;return p===2?Ot(n)&&!Ve(n)?qn(n)?Le(r,null,[n]):Le(r,n):Le(r,null,n):(p>3?c=Array.prototype.slice.call(arguments,2):p===3&&qn(c)&&(c=[c]),Le(r,n,c))}const Gm="3.4.27";/** * @vue/runtime-dom v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const $m="http://www.w3.org/2000/svg",Hm="http://www.w3.org/1998/Math/MathML",Zr=typeof document<"u"?document:null,Au=Zr&&Zr.createElement("template"),Km={insert:(r,n,c)=>{n.insertBefore(r,c||null)},remove:r=>{const n=r.parentNode;n&&n.removeChild(r)},createElement:(r,n,c,p)=>{const g=n==="svg"?Zr.createElementNS($m,r):n==="mathml"?Zr.createElementNS(Hm,r):Zr.createElement(r,c?{is:c}:void 0);return r==="select"&&p&&p.multiple!=null&&g.setAttribute("multiple",p.multiple),g},createText:r=>Zr.createTextNode(r),createComment:r=>Zr.createComment(r),setText:(r,n)=>{r.nodeValue=n},setElementText:(r,n)=>{r.textContent=n},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Zr.querySelector(r),setScopeId(r,n){r.setAttribute(n,"")},insertStaticContent(r,n,c,p,g,v){const b=c?c.previousSibling:n.lastChild;if(g&&(g===v||g.nextSibling))for(;n.insertBefore(g.cloneNode(!0),c),!(g===v||!(g=g.nextSibling)););else{Au.innerHTML=p==="svg"?`<svg>${r}</svg>`:p==="mathml"?`<math>${r}</math>`:r;const k=Au.content;if(p==="svg"||p==="mathml"){const S=k.firstChild;for(;S.firstChild;)k.appendChild(S.firstChild);k.removeChild(S)}n.insertBefore(k,c)}return[b?b.nextSibling:n.firstChild,c?c.previousSibling:n.lastChild]}},ea="transition",Uo="animation",Vo=Symbol("_vtc"),Ua=(r,{slots:n})=>es(Zg,Ym(r),n);Ua.displayName="Transition";const Cu={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Ua.props=ei({},Hc,Cu);const ba=(r,n=[])=>{Ve(r)?r.forEach(c=>c(...n)):r&&r(...n)},Ru=r=>r?Ve(r)?r.some(n=>n.length>1):r.length>1:!1;function Ym(r){const n={};for(const ye in r)ye in Cu||(n[ye]=r[ye]);if(r.css===!1)return n;const{name:c="v",type:p,duration:g,enterFromClass:v=`${c}-enter-from`,enterActiveClass:b=`${c}-enter-active`,enterToClass:k=`${c}-enter-to`,appearFromClass:S=v,appearActiveClass:C=b,appearToClass:R=k,leaveFromClass:D=`${c}-leave-from`,leaveActiveClass:M=`${c}-leave-active`,leaveToClass:H=`${c}-leave-to`}=r,W=Wm(g),Y=W&&W[0],ce=W&&W[1],{onBeforeEnter:se,onEnter:ge,onEnterCancelled:pe,onLeave:_e,onLeaveCancelled:te,onBeforeAppear:xe=se,onAppear:de=ge,onAppearCancelled:y=pe}=n,re=(ye,Re,dt)=>{wa(ye,Re?R:k),wa(ye,Re?C:b),dt&&dt()},z=(ye,Re)=>{ye._isLeaving=!1,wa(ye,D),wa(ye,H),wa(ye,M),Re&&Re()},Se=ye=>(Re,dt)=>{const st=ye?de:ge,j=()=>re(Re,ye,dt);ba(st,[Re,j]),Du(()=>{wa(Re,ye?S:v),ta(Re,ye?R:k),Ru(st)||Iu(Re,p,Y,j)})};return ei(n,{onBeforeEnter(ye){ba(se,[ye]),ta(ye,v),ta(ye,b)},onBeforeAppear(ye){ba(xe,[ye]),ta(ye,S),ta(ye,C)},onEnter:Se(!1),onAppear:Se(!0),onLeave(ye,Re){ye._isLeaving=!0;const dt=()=>z(ye,Re);ta(ye,D),ta(ye,M),Qm(),Du(()=>{!ye._isLeaving||(wa(ye,D),ta(ye,H),Ru(_e)||Iu(ye,p,ce,dt))}),ba(_e,[ye,dt])},onEnterCancelled(ye){re(ye,!1),ba(pe,[ye])},onAppearCancelled(ye){re(ye,!0),ba(y,[ye])},onLeaveCancelled(ye){z(ye),ba(te,[ye])}})}function Wm(r){if(r==null)return null;if(Ot(r))return[Al(r.enter),Al(r.leave)];{const n=Al(r);return[n,n]}}function Al(r){return Ws(r)}function ta(r,n){n.split(/\s+/).forEach(c=>c&&r.classList.add(c)),(r[Vo]||(r[Vo]=new Set)).add(n)}function wa(r,n){n.split(/\s+/).forEach(p=>p&&r.classList.remove(p));const c=r[Vo];c&&(c.delete(n),c.size||(r[Vo]=void 0))}function Du(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let qm=0;function Iu(r,n,c,p){const g=r._endId=++qm,v=()=>{g===r._endId&&p()};if(c)return setTimeout(v,c);const{type:b,timeout:k,propCount:S}=Xm(r,n);if(!b)return p();const C=b+"end";let R=0;const D=()=>{r.removeEventListener(C,M),v()},M=H=>{H.target===r&&++R>=S&&D()};setTimeout(()=>{R<S&&D()},k+1),r.addEventListener(C,M)}function Xm(r,n){const c=window.getComputedStyle(r),p=W=>(c[W]||"").split(", "),g=p(`${ea}Delay`),v=p(`${ea}Duration`),b=Pu(g,v),k=p(`${Uo}Delay`),S=p(`${Uo}Duration`),C=Pu(k,S);let R=null,D=0,M=0;n===ea?b>0&&(R=ea,D=b,M=v.length):n===Uo?C>0&&(R=Uo,D=C,M=S.length):(D=Math.max(b,C),R=D>0?b>C?ea:Uo:null,M=R?R===ea?v.length:S.length:0);const H=R===ea&&/\b(transform|all)(,|$)/.test(p(`${ea}Property`).toString());return{type:R,timeout:D,propCount:M,hasTransform:H}}function Pu(r,n){for(;r.length<n.length;)r=r.concat(r);return Math.max(...n.map((c,p)=>Ou(c)+Ou(r[p])))}function Ou(r){return r==="auto"?0:Number(r.slice(0,-1).replace(",","."))*1e3}function Qm(){return document.body.offsetHeight}function Jm(r,n,c){const p=r[Vo];p&&(n=(n?[n,...p]:[...p]).join(" ")),n==null?r.removeAttribute("class"):c?r.setAttribute("class",n):r.className=n}const ts=Symbol("_vod"),Mu=Symbol("_vsh"),jo={beforeMount(r,{value:n},{transition:c}){r[ts]=r.style.display==="none"?"":r.style.display,c&&n?c.beforeEnter(r):Go(r,n)},mounted(r,{value:n},{transition:c}){c&&n&&c.enter(r)},updated(r,{value:n,oldValue:c},{transition:p}){!n!=!c&&(p?n?(p.beforeEnter(r),Go(r,!0),p.enter(r)):p.leave(r,()=>{Go(r,!1)}):Go(r,n))},beforeUnmount(r,{value:n}){Go(r,n)}};function Go(r,n){r.style.display=n?r[ts]:"none",r[Mu]=!n}const Zm=Symbol(""),e0=/(^|;)\s*display\s*:/;function t0(r,n,c){const p=r.style,g=ii(c);let v=!1;if(c&&!g){if(n)if(ii(n))for(const b of n.split(";")){const k=b.slice(0,b.indexOf(":")).trim();c[k]==null&&is(p,k,"")}else for(const b in n)c[b]==null&&is(p,b,"");for(const b in c)b==="display"&&(v=!0),is(p,b,c[b])}else if(g){if(n!==c){const b=p[Zm];b&&(c+=";"+b),p.cssText=c,v=e0.test(c)}}else n&&r.removeAttribute("style");ts in r&&(r[ts]=v?p.display:"",r[Mu]&&(p.display="none"))}const Fu=/\s*!important$/;function is(r,n,c){if(Ve(c))c.forEach(p=>is(r,n,p));else if(c==null&&(c=""),n.startsWith("--"))r.setProperty(n,c);else{const p=i0(r,n);Fu.test(c)?r.setProperty(Hi(p),c.replace(Fu,""),"important"):r[p]=c}}const Nu=["Webkit","Moz","ms"],Cl={};function i0(r,n){const c=Cl[n];if(c)return c;let p=Mi(n);if(p!=="filter"&&p in r)return Cl[n]=p;p=En(p);for(let g=0;g<Nu.length;g++){const v=Nu[g]+p;if(v in r)return Cl[n]=v}return n}const zu="http://www.w3.org/1999/xlink";function r0(r,n,c,p,g){if(p&&n.startsWith("xlink:"))c==null?r.removeAttributeNS(zu,n.slice(6,n.length)):r.setAttributeNS(zu,n,c);else{const v=Qf(n);c==null||v&&!oc(c)?r.removeAttribute(n):r.setAttribute(n,v?"":c)}}function a0(r,n,c,p,g,v,b){if(n==="innerHTML"||n==="textContent"){p&&b(p,g,v),r[n]=c==null?"":c;return}const k=r.tagName;if(n==="value"&&k!=="PROGRESS"&&!k.includes("-")){const C=k==="OPTION"?r.getAttribute("value")||"":r.value,R=c==null?"":c;(C!==R||!("_value"in r))&&(r.value=R),c==null&&r.removeAttribute(n),r._value=c;return}let S=!1;if(c===""||c==null){const C=typeof r[n];C==="boolean"?c=oc(c):c==null&&C==="string"?(c="",S=!0):C==="number"&&(c=0,S=!0)}try{r[n]=c}catch{}S&&r.removeAttribute(n)}function xa(r,n,c,p){r.addEventListener(n,c,p)}function o0(r,n,c,p){r.removeEventListener(n,c,p)}const Bu=Symbol("_vei");function n0(r,n,c,p,g=null){const v=r[Bu]||(r[Bu]={}),b=v[n];if(p&&b)b.value=p;else{const[k,S]=s0(n);if(p){const C=v[n]=c0(p,g);xa(r,k,C,S)}else b&&(o0(r,k,b,S),v[n]=void 0)}}const Uu=/(?:Once|Passive|Capture)$/;function s0(r){let n;if(Uu.test(r)){n={};let p;for(;p=r.match(Uu);)r=r.slice(0,r.length-p[0].length),n[p[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):Hi(r.slice(2)),n]}let Rl=0;const l0=Promise.resolve(),d0=()=>Rl||(l0.then(()=>Rl=0),Rl=Date.now());function c0(r,n){const c=p=>{if(!p._vts)p._vts=Date.now();else if(p._vts<=c.attached)return;Ki(u0(p,c.value),n,5,[p])};return c.value=r,c.attached=d0(),c}function u0(r,n){if(Ve(n)){const c=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{c.call(r),r._stopped=!0},n.map(p=>g=>!g._stopped&&p&&p(g))}else return n}const Vu=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,p0=(r,n,c,p,g,v,b,k,S)=>{const C=g==="svg";n==="class"?Jm(r,p,C):n==="style"?t0(r,c,p):kn(n)?Gs(n)||n0(r,n,c,p,b):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):h0(r,n,p,C))?a0(r,n,p,v,b,k,S):(n==="true-value"?r._trueValue=p:n==="false-value"&&(r._falseValue=p),r0(r,n,p,C))};function h0(r,n,c,p){if(p)return!!(n==="innerHTML"||n==="textContent"||n in r&&Vu(n)&&at(c));if(n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&r.tagName==="INPUT"||n==="type"&&r.tagName==="TEXTAREA")return!1;if(n==="width"||n==="height"){const g=r.tagName;if(g==="IMG"||g==="VIDEO"||g==="CANVAS"||g==="SOURCE")return!1}return Vu(n)&&ii(c)?!1:n in r}/*! #__NO_SIDE_EFFECTS__ */function hr(r,n){const c=Ye(r);class p extends Dl{constructor(v){super(c,v,n)}}return p.def=c,p}const f0=typeof HTMLElement<"u"?HTMLElement:class{};class Dl extends f0{constructor(n,c={},p){super(),this._def=n,this._props=c,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&p?p(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Do(()=>{this._connected||(Ku(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let p=0;p<this.attributes.length;p++)this._setAttr(this.attributes[p].name);this._ob=new MutationObserver(p=>{for(const g of p)this._setAttr(g.attributeName)}),this._ob.observe(this,{attributes:!0});const n=(p,g=!1)=>{const{props:v,styles:b}=p;let k;if(v&&!Ve(v))for(const S in v){const C=v[S];(C===Number||C&&C.type===Number)&&(S in this._props&&(this._props[S]=Ws(this._props[S])),(k||(k=Object.create(null)))[Mi(S)]=!0)}this._numberProps=k,g&&this._resolveProps(p),this._applyStyles(b),this._update()},c=this._def.__asyncLoader;c?c().then(p=>n(p,!0)):n(this._def)}_resolveProps(n){const{props:c}=n,p=Ve(c)?c:Object.keys(c||{});for(const g of Object.keys(this))g[0]!=="_"&&p.includes(g)&&this._setProp(g,this[g],!0,!1);for(const g of p.map(Mi))Object.defineProperty(this,g,{get(){return this._getProp(g)},set(v){this._setProp(g,v)}})}_setAttr(n){let c=this.hasAttribute(n)?this.getAttribute(n):void 0;const p=Mi(n);this._numberProps&&this._numberProps[p]&&(c=Ws(c)),this._setProp(p,c,!1)}_getProp(n){return this._props[n]}_setProp(n,c,p=!0,g=!0){c!==this._props[n]&&(this._props[n]=c,g&&this._instance&&this._update(),p&&(c===!0?this.setAttribute(Hi(n),""):typeof c=="string"||typeof c=="number"?this.setAttribute(Hi(n),c+""):c||this.removeAttribute(Hi(n))))}_update(){Ku(this._createVNode(),this.shadowRoot)}_createVNode(){const n=Le(this._def,ei({},this._props));return this._instance||(n.ce=c=>{this._instance=c,c.isCE=!0;const p=(v,b)=>{this.dispatchEvent(new CustomEvent(v,{detail:b}))};c.emit=(v,...b)=>{p(v,b),Hi(v)!==v&&p(Hi(v),b)};let g=this;for(;g=g&&(g.parentNode||g.host);)if(g instanceof Dl){c.parent=g._instance,c.provides=g._instance.provides;break}}),n}_applyStyles(n){n&&n.forEach(c=>{const p=document.createElement("style");p.textContent=c,this.shadowRoot.appendChild(p)})}}const rs=r=>{const n=r.props["onUpdate:modelValue"]||!1;return Ve(n)?c=>Sn(n,c):n};function g0(r){r.target.composing=!0}function ju(r){const n=r.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const Va=Symbol("_assign"),as={created(r,{modifiers:{lazy:n,trim:c,number:p}},g){r[Va]=rs(g);const v=p||g.props&&g.props.type==="number";xa(r,n?"change":"input",b=>{if(b.target.composing)return;let k=r.value;c&&(k=k.trim()),v&&(k=Ys(k)),r[Va](k)}),c&&xa(r,"change",()=>{r.value=r.value.trim()}),n||(xa(r,"compositionstart",g0),xa(r,"compositionend",ju),xa(r,"change",ju))},mounted(r,{value:n}){r.value=n==null?"":n},beforeUpdate(r,{value:n,modifiers:{lazy:c,trim:p,number:g}},v){if(r[Va]=rs(v),r.composing)return;const b=(g||r.type==="number")&&!/^0\d/.test(r.value)?Ys(r.value):r.value,k=n==null?"":n;b!==k&&(document.activeElement===r&&r.type!=="range"&&(c||p&&r.value.trim()===k)||(r.value=k))}},m0={deep:!0,created(r,n,c){r[Va]=rs(c),xa(r,"change",()=>{const p=r._modelValue,g=v0(r),v=r.checked,b=r[Va];if(Ve(p)){const k=nc(p,g),S=k!==-1;if(v&&!S)b(p.concat(g));else if(!v&&S){const C=[...p];C.splice(k,1),b(C)}}else if(_n(p)){const k=new Set(p);v?k.add(g):k.delete(g),b(k)}else b($u(r,v))})},mounted:Gu,beforeUpdate(r,n,c){r[Va]=rs(c),Gu(r,n,c)}};function Gu(r,{value:n,oldValue:c},p){r._modelValue=n,Ve(n)?r.checked=nc(n,p.props.value)>-1:_n(n)?r.checked=n.has(p.props.value):n!==c&&(r.checked=Ln(n,$u(r,!0)))}function v0(r){return"_value"in r?r._value:r.value}function $u(r,n){const c=n?"_trueValue":"_falseValue";return c in r?r[c]:n}const b0=["ctrl","shift","alt","meta"],w0={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,n)=>b0.some(c=>r[`${c}Key`]&&!n.includes(c))},Ut=(r,n)=>{const c=r._withMods||(r._withMods={}),p=n.join(".");return c[p]||(c[p]=(g,...v)=>{for(let b=0;b<n.length;b++){const k=w0[n[b]];if(k&&k(g,n))return}return r(g,...v)})},x0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},fr=(r,n)=>{const c=r._withKeys||(r._withKeys={}),p=n.join(".");return c[p]||(c[p]=g=>{if(!("key"in g))return;const v=Hi(g.key);if(n.some(b=>b===v||x0[b]===v))return r(g)})},y0=ei({patchProp:p0},Km);let Hu;function k0(){return Hu||(Hu=Tm(y0))}const Ku=(...r)=>{k0().render(...r)},_0={style:{"pointer-events":"none",opacity:"0",position:"absolute",left:"0px",right:"0px",top:"0px",bottom:"0px","z-index":"1000"}},$o=Ye({__name:"IntersectionMonitor",emits:["visible"],setup(r,{emit:n}){const c=n;return Kt(()=>{var p,g,v;new IntersectionObserver(async b=>{for(let k in b)c("visible",b[k].isIntersecting)},{threshold:.5}).observe((v=(g=(p=xu())==null?void 0:p.vnode)==null?void 0:g.el)==null?void 0:v.parentNode)}),(p,g)=>(V(),Q("div",_0))}}),K_="";var Yu=function(){if(typeof Map<"u")return Map;function r(n,c){var p=-1;return n.some(function(g,v){return g[0]===c?(p=v,!0):!1}),p}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(c){var p=r(this.__entries__,c),g=this.__entries__[p];return g&&g[1]},n.prototype.set=function(c,p){var g=r(this.__entries__,c);~g?this.__entries__[g][1]=p:this.__entries__.push([c,p])},n.prototype.delete=function(c){var p=this.__entries__,g=r(p,c);~g&&p.splice(g,1)},n.prototype.has=function(c){return!!~r(this.__entries__,c)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(c,p){p===void 0&&(p=null);for(var g=0,v=this.__entries__;g<v.length;g++){var b=v[g];c.call(p,b[1],b[0])}},n}()}(),Il=typeof window<"u"&&typeof document<"u"&&window.document===document,os=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),T0=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(os):function(r){return setTimeout(function(){return r(Date.now())},1e3/60)}}(),E0=2;function S0(r,n){var c=!1,p=!1,g=0;function v(){c&&(c=!1,r()),p&&k()}function b(){T0(v)}function k(){var S=Date.now();if(c){if(S-g<E0)return;p=!0}else c=!0,p=!1,setTimeout(b,n);g=S}return k}var L0=20,A0=["top","right","bottom","left","width","height","size","weight"],C0=typeof MutationObserver<"u",R0=function(){function r(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=S0(this.refresh.bind(this),L0)}return r.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},r.prototype.removeObserver=function(n){var c=this.observers_,p=c.indexOf(n);~p&&c.splice(p,1),!c.length&&this.connected_&&this.disconnect_()},r.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},r.prototype.updateObservers_=function(){var n=this.observers_.filter(function(c){return c.gatherActive(),c.hasActive()});return n.forEach(function(c){return c.broadcastActive()}),n.length>0},r.prototype.connect_=function(){!Il||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),C0?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},r.prototype.disconnect_=function(){!Il||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},r.prototype.onTransitionEnd_=function(n){var c=n.propertyName,p=c===void 0?"":c,g=A0.some(function(v){return!!~p.indexOf(v)});g&&this.refresh()},r.getInstance=function(){return this.instance_||(this.instance_=new r),this.instance_},r.instance_=null,r}(),Wu=function(r,n){for(var c=0,p=Object.keys(n);c<p.length;c++){var g=p[c];Object.defineProperty(r,g,{value:n[g],enumerable:!1,writable:!1,configurable:!0})}return r},ja=function(r){var n=r&&r.ownerDocument&&r.ownerDocument.defaultView;return n||os},qu=ss(0,0,0,0);function ns(r){return parseFloat(r)||0}function Xu(r){for(var n=[],c=1;c<arguments.length;c++)n[c-1]=arguments[c];return n.reduce(function(p,g){var v=r["border-"+g+"-width"];return p+ns(v)},0)}function D0(r){for(var n=["top","right","bottom","left"],c={},p=0,g=n;p<g.length;p++){var v=g[p],b=r["padding-"+v];c[v]=ns(b)}return c}function I0(r){var n=r.getBBox();return ss(0,0,n.width,n.height)}function P0(r){var n=r.clientWidth,c=r.clientHeight;if(!n&&!c)return qu;var p=ja(r).getComputedStyle(r),g=D0(p),v=g.left+g.right,b=g.top+g.bottom,k=ns(p.width),S=ns(p.height);if(p.boxSizing==="border-box"&&(Math.round(k+v)!==n&&(k-=Xu(p,"left","right")+v),Math.round(S+b)!==c&&(S-=Xu(p,"top","bottom")+b)),!M0(r)){var C=Math.round(k+v)-n,R=Math.round(S+b)-c;Math.abs(C)!==1&&(k-=C),Math.abs(R)!==1&&(S-=R)}return ss(g.left,g.top,k,S)}var O0=function(){return typeof SVGGraphicsElement<"u"?function(r){return r instanceof ja(r).SVGGraphicsElement}:function(r){return r instanceof ja(r).SVGElement&&typeof r.getBBox=="function"}}();function M0(r){return r===ja(r).document.documentElement}function F0(r){return Il?O0(r)?I0(r):P0(r):qu}function N0(r){var n=r.x,c=r.y,p=r.width,g=r.height,v=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,b=Object.create(v.prototype);return Wu(b,{x:n,y:c,width:p,height:g,top:c,right:n+p,bottom:g+c,left:n}),b}function ss(r,n,c,p){return{x:r,y:n,width:c,height:p}}var z0=function(){function r(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ss(0,0,0,0),this.target=n}return r.prototype.isActive=function(){var n=F0(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},r.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},r}(),B0=function(){function r(n,c){var p=N0(c);Wu(this,{target:n,contentRect:p})}return r}(),U0=function(){function r(n,c,p){if(this.activeObservations_=[],this.observations_=new Yu,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=c,this.callbackCtx_=p}return r.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof ja(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;c.has(n)||(c.set(n,new z0(n)),this.controller_.addObserver(this),this.controller_.refresh())}},r.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof ja(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;!c.has(n)||(c.delete(n),c.size||this.controller_.removeObserver(this))}},r.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},r.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(c){c.isActive()&&n.activeObservations_.push(c)})},r.prototype.broadcastActive=function(){if(!!this.hasActive()){var n=this.callbackCtx_,c=this.activeObservations_.map(function(p){return new B0(p.target,p.broadcastRect())});this.callback_.call(n,c,n),this.clearActive()}},r.prototype.clearActive=function(){this.activeObservations_.splice(0)},r.prototype.hasActive=function(){return this.activeObservations_.length>0},r}(),Qu=typeof WeakMap<"u"?new WeakMap:new Yu,Ju=function(){function r(n){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var c=R0.getInstance(),p=new U0(n,c,this);Qu.set(this,p)}return r}();["observe","unobserve","disconnect"].forEach(function(r){Ju.prototype[r]=function(){var n;return(n=Qu.get(this))[r].apply(n,arguments)}});var Ho=function(){return typeof os.ResizeObserver<"u"?os.ResizeObserver:Ju}();const ls=new URL("https://lambda.parone.app");new URL("stage/get-playlists",ls),new URL("demo/get-playlists",ls),new URL("prod/get-playlists",ls);const V0={stage:new URL("https://ingest.parone.io/po-dl-stage.html"),demo:new URL("https://ingest.parone.io/po-dl-demo.html"),prod:new URL("https://ingest.parone.io/po-dl.html"),local:"http://localhost:3000/video-list"},ds={stage:new URL("https://static-stage.parone.io/"),demo:new URL("https://static-stage.parone.io/"),prod:new URL("https://static.parone.io/")},Pl={stage:"https://lambda.parone.app/stage/can-play",demo:"https://lambda.parone.app/demo/can-play",prod:"https://lambda.parone.app/prod/can-play",local:"http://localhost:3000/can-play"},j0={stage:"https://mediahub-stage.parone.app/subscription",demo:"https://mediahub-demo.parone.app/subscription",prod:"https://mediahub-prod.parone.app/subscription"},G0={stage:"https://range-test.parone.io",demo:"https://range-demo.parone.io",prod:"https://range-prod.parone.io",local:"https://range-local-range.parone.io"},$0={mediahub_embedded:"3chip.png",mediahub_shared:"2chip.png",mediahub_downloaded:"1chip.png",played_1s:"0iron.png",played_3s:"1iron.png",played_15s:"2iron.png",played_30s:"putter.png",video_impression:"tee.png",video_played:"swing.png",video_ended:"cup.png",played_25percent:"3iron.png",played_50percent:"4iron.png",played_75percent:"5iron.png",livestream_minute:"6iron.png",thumbnail:"1wood.png",video_autoplay:"1putt.png",ad_unmuted:"2putt.png",ad_muted:"3putt.png",video_pause:"4putt.png",video_resume:"5putt.png",ad_cont_pause:"1swing.png",ad_cont_resume:"2swing.png",ad_click:"3swing.png",ad_start:"4swing.png",ad_impression:"5swing.png",ad_pause:"6swing.png",ad_resume:"7swing.png",ad_25:"8swing.png",ad_50:"9swing.png",ad_75:"10swing.png",ad_100:"11swing.png",ads_complete:"12swing.png",ad_done:"13swing.png",ad_loaded:"14swing.png",ad_can_play:"15swing.png",video_muted:"6putt.png",video_unmuted:"7putt.png",video_played_muted:"8putt.png",video_played_unmuted:"9putt.png",ad_skip:"16swing.png",ad_autoplayed:"17swing.png",ad_played_muted:"18swing.png",ad_played_unmuted:"19swing.png",video_caption_enabled:"14putt.png",ecom_viewed:"1cart.png",ecom_hidden:"2cart.png",ecom_clicked:"3cart.png",ecom_bar_hidden:"4cart.png",ecom_bar_shown:"5cart.png",video_docked:"10putt.png",video_undocked:"11putt.png",video_enter_fullscreen:"12putt.png",video_exit_fullscreen:"13putt.png",video_one_second:"15putt.png",video_caption_disabled:"16putt.png",video_airplay_one_second:"17putt.png",video_cast_started:"19putt.png",video_cast_stopped:"20putt.png",video_entered_airplay:"21putt.png",video_airplay_live_one_minute:"22putt.png"},ne={mediahub_embedded:"mediahub_embedded",mediahub_shared:"mediahub_shared",mediahub_downloaded:"mediahub_downloaded",played_1s:"played_1s",played_3s:"played_3s",played_15s:"played_15s",played_30s:"played_30s",video_impression:"video_impression",video_played:"video_played",video_ended:"video_ended",played_25percent:"played_25percent",played_50percent:"played_50percent",played_75percent:"played_75percent",livestream_minute:"livestream_minute",thumbnail:"thumbnail",video_autoplay:"video_autoplay",video_unmute:"video_unmute",video_mute:"video_mute",video_pause:"video_pause",video_resume:"video_resume",ad_cont_pause:"ad_cont_pause",ad_cont_resume:"ad_cont_resume",ad_click:"ad_click",ad_start:"ad_start",ad_impression:"ad_impression",ad_pause:"ad_pause",ad_resume:"ad_resume",ad_25:"ad_25",ad_50:"ad_50",ad_75:"ad_75",ad_100:"ad_100",ads_complete:"ads_complete",ad_done:"ad_done",ad_loaded:"ad_loaded",ad_can_play:"ad_can_play",video_muted:"video_muted",video_unmuted:"video_unmuted",video_played_muted:"video_played_muted",video_played_unmuted:"video_played_unmuted",ad_muted:"ad_muted",ad_unmuted:"ad_unmuted",ad_skip:"ad_skip",ad_autoplayed:"ad_autoplayed",ad_played_muted:"ad_played_muted",ad_played_unmuted:"ad_played_unmuted",video_caption_enabled:"video_caption_enabled",ecom_viewed:"ecom_viewed",ecom_hidden:"ecom_hidden",ecom_clicked:"ecom_clicked",ecom_bar_hidden:"ecom_bar_hidden",ecom_bar_shown:"ecom_bar_shown",video_docked:"video_docked",video_undocked:"video_undocked",video_enter_fullscreen:"video_enter_fullscreen",video_exit_fullscreen:"video_exit_fullscreen",video_one_second:"video_one_second",video_caption_disabled:"video_caption_disabled",video_airplay_one_second:"video_airplay_one_second",video_cast_started:"video_cast_started",video_cast_stopped:"video_cast_stopped",video_entered_airplay:"video_entered_airplay",video_airplay_live_one_minute:"video_airplay_live_one_minute"},ya={feed:{type:String},env:{default:"prod",validator(r){return["stage","demo","prod","local"].includes(r)}},styles:{type:Boolean,default:!1},startAt:{type:Number,default:0},defaultlang:{type:String,default:"English"},dockable:String,dockableSticky:String,accentcolor:{type:String,default:"#076652"},stylesheet:{type:String,default:""},tput:{type:String,default:""},tputHashed:{type:String,default:""},hideAll:{type:String,default:"false"},hideOverlay:{type:String,default:"false"},hideTitle:{type:String,default:"false"},hideLogo:{type:String,default:"false"},hideDescription:{type:String,default:"false"},autoplay:{type:String,default:"false"},autoplaymuted:{type:String,default:"true"},from:{type:String,default:""},to:{type:String,default:"now"},vastOverride:{type:String,default:""},position:{type:String,default:""},playerId:{type:String,default:""},vastOverrideId:{type:String,default:""},vastOverrideDelay:{type:String,default:""},useAdsOverride:{type:String,default:"false"},keepVideoPlayingOffscreen:{type:String,default:"true"},keepAdsPlayingOffscreen:{type:String,default:"false"},touchToPlay:{type:String,default:"false"},defaultRes:{type:String,default:""},sourceOverride:{type:String,default:""},key1:{type:String,default:""},key2:{type:String,default:""},key3:{type:String,default:""},key4:{type:String,default:""},windowUrl:{type:String,default:""},dockedLogo:{type:String,default:""},startDocked:{type:String,default:"false"},startDockedPositionBottom:{type:String,default:"20"}},Ko={url:"",title:"",thumbnail:"",translations:[],livestream_id:0,video_id:0},Ol=[{speed:.5,name:".5x"},{speed:.75,name:".75x"},{speed:1,name:"Normal"},{speed:1.25,name:"1.25x"},{speed:1.5,name:"1.5x"},{speed:1.75,name:"1.75x"},{speed:2,name:"2x"},{speed:4,name:"4x"}],Ml=[{quality:1078,name:"1080p"},{quality:718,name:"720p"},{quality:540,name:"540p"}],Fl=[{quality:1080,name:"1080p"},{quality:720,name:"720p"},{quality:360,name:"360p"}];[...Ml.map(({quality:r})=>r),...Fl.map(({quality:r})=>r)];const Ga=["enterFullscreen","exitFullscreen"];let Zu=(r=21)=>crypto.getRandomValues(new Uint8Array(r)).reduce((n,c)=>(c&=63,c<36?n+=c.toString(36):c<62?n+=(c-26).toString(36).toUpperCase():c>62?n+="-":n+="_",n),"");const ia=async r=>r?(await fetch(r)).json():[];function ep(r){let n=r;if(r)if(r.includes("d")){const c=parseInt(r.replace("d",""));isNaN(c)&&(n=null)}else{const c=new Date(r);(!(c instanceof Date)||isNaN(c.valueOf()))&&(n=null)}return n}const H0=(r,n,c)=>{if(!["stage","demo","prod"].includes(r))throw new Error("Invalid environment");const p=new URL(`${r}/${n}`,ls);return c&&(p.search=new URLSearchParams(c).toString()),p};function cs(r,n,c){return{feedUrl:oe(()=>{let p=new URL(Pl[r.env]);const g=JSON.parse(r.campaigns||r.contentKeys||"[]"),v=g!=null&&g.length?{feed:r.feed,list:g,fingerprint:n.value}:{feed:r.feed,fingerprint:n.value};if(v.page=c||0,r.from){const b=ep(r.from);b&&(v.from=b)}if(r.to){const b=ep(r.to);b&&(v.to=b)}return p.search=new URLSearchParams(v).toString(),p.toString()})}}function tp(r,n){return r.translations?r.translations.find(c=>c.language==n):null}function us(r,n){if(n!="English"){const c=tp(r,n);return c?c.title:r.title}return r.title}function ip(r,n){if(n!="English"){const c=tp(r,n);return c?c.description:r.description}return r.description}const K0=Zu();function Ir(){return K0}const rp=r=>{const n=`${r}`;return n.length==2?n:`0${n}`},Yo=r=>oe(()=>{const n=!r.value||r.value<0?0:r.value;return`${rp(Math.floor(n/60))}:${rp(Math.floor(n%60))}`});var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ap(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var op={exports:{}};(function(r,n){(function c(p){var g;g=function(){function v(l,o){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(l);o&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(l,i).enumerable})),e.push.apply(e,t)}return e}function b(l){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?v(Object(e),!0).forEach(function(t){var i,a,s;i=l,a=t,s=e[t],(a=k(a))in i?Object.defineProperty(i,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[a]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach(function(t){Object.defineProperty(l,t,Object.getOwnPropertyDescriptor(e,t))})}return l}function k(l){var o=function(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}(l,"string");return typeof o=="symbol"?o:String(o)}function S(l,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,k(t.key),t)}}function C(l,o,e){return o&&S(l.prototype,o),e&&S(l,e),Object.defineProperty(l,"prototype",{writable:!1}),l}function R(){return R=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(l[t]=e[t])}return l},R.apply(this,arguments)}function D(l,o){l.prototype=Object.create(o.prototype),l.prototype.constructor=l,H(l,o)}function M(l){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},M(l)}function H(l,o){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H(l,o)}function W(l,o,e){return W=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct.bind():function(t,i,a){var s=[null];s.push.apply(s,i);var d=new(Function.bind.apply(t,s));return a&&H(d,a.prototype),d},W.apply(null,arguments)}function Y(l){var o=typeof Map=="function"?new Map:void 0;return Y=function(e){if(e===null||!function(i){try{return Function.toString.call(i).indexOf("[native code]")!==-1}catch{return typeof i=="function"}}(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(o!==void 0){if(o.has(e))return o.get(e);o.set(e,t)}function t(){return W(e,arguments,M(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),H(t,e)},Y(l)}function ce(l,o){(o==null||o>l.length)&&(o=l.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=l[e];return t}function se(l,o){var e=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(e)return(e=e.call(l)).next.bind(e);if(Array.isArray(l)||(e=function(i,a){if(i){if(typeof i=="string")return ce(i,a);var s=Object.prototype.toString.call(i).slice(8,-1);return s==="Object"&&i.constructor&&(s=i.constructor.name),s==="Map"||s==="Set"?Array.from(i):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?ce(i,a):void 0}}(l))||o&&l&&typeof l.length=="number"){e&&(l=e);var t=0;return function(){return t>=l.length?{done:!0}:{done:!1,value:l[t++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var pe={exports:{}};(function(l,o){var e,t,i,a,s;e=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,t=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(d,u,f){if(f=f||{},d=d.trim(),!(u=u.trim())){if(!f.alwaysNormalize)return d;var h=s.parseURL(d);if(!h)throw new Error("Error trying to parse base URL.");return h.path=s.normalizePath(h.path),s.buildURLFromParts(h)}var m=s.parseURL(u);if(!m)throw new Error("Error trying to parse relative URL.");if(m.scheme)return f.alwaysNormalize?(m.path=s.normalizePath(m.path),s.buildURLFromParts(m)):u;var w=s.parseURL(d);if(!w)throw new Error("Error trying to parse base URL.");if(!w.netLoc&&w.path&&w.path[0]!=="/"){var x=t.exec(w.path);w.netLoc=x[1],w.path=x[2]}w.netLoc&&!w.path&&(w.path="/");var _={scheme:w.scheme,netLoc:m.netLoc,path:null,params:m.params,query:m.query,fragment:m.fragment};if(!m.netLoc&&(_.netLoc=w.netLoc,m.path[0]!=="/"))if(m.path){var E=w.path,A=E.substring(0,E.lastIndexOf("/")+1)+m.path;_.path=s.normalizePath(A)}else _.path=w.path,m.params||(_.params=w.params,m.query||(_.query=w.query));return _.path===null&&(_.path=f.alwaysNormalize?s.normalizePath(m.path):m.path),s.buildURLFromParts(_)},parseURL:function(d){var u=e.exec(d);return u?{scheme:u[1]||"",netLoc:u[2]||"",path:u[3]||"",params:u[4]||"",query:u[5]||"",fragment:u[6]||""}:null},normalizePath:function(d){for(d=d.split("").reverse().join("").replace(i,"");d.length!==(d=d.replace(a,"")).length;);return d.split("").reverse().join("")},buildURLFromParts:function(d){return d.scheme+d.netLoc+d.path+d.params+d.query+d.fragment}},l.exports=s})(pe);var _e=pe.exports,te=Number.isFinite||function(l){return typeof l=="number"&&isFinite(l)},xe=Number.isSafeInteger||function(l){return typeof l=="number"&&Math.abs(l)<=de},de=Number.MAX_SAFE_INTEGER||9007199254740991,y=function(l){return l.MEDIA_ATTACHING="hlsMediaAttaching",l.MEDIA_ATTACHED="hlsMediaAttached",l.MEDIA_DETACHING="hlsMediaDetaching",l.MEDIA_DETACHED="hlsMediaDetached",l.BUFFER_RESET="hlsBufferReset",l.BUFFER_CODECS="hlsBufferCodecs",l.BUFFER_CREATED="hlsBufferCreated",l.BUFFER_APPENDING="hlsBufferAppending",l.BUFFER_APPENDED="hlsBufferAppended",l.BUFFER_EOS="hlsBufferEos",l.BUFFER_FLUSHING="hlsBufferFlushing",l.BUFFER_FLUSHED="hlsBufferFlushed",l.MANIFEST_LOADING="hlsManifestLoading",l.MANIFEST_LOADED="hlsManifestLoaded",l.MANIFEST_PARSED="hlsManifestParsed",l.LEVEL_SWITCHING="hlsLevelSwitching",l.LEVEL_SWITCHED="hlsLevelSwitched",l.LEVEL_LOADING="hlsLevelLoading",l.LEVEL_LOADED="hlsLevelLoaded",l.LEVEL_UPDATED="hlsLevelUpdated",l.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",l.LEVELS_UPDATED="hlsLevelsUpdated",l.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",l.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",l.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",l.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",l.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",l.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",l.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",l.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",l.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",l.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",l.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",l.CUES_PARSED="hlsCuesParsed",l.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",l.INIT_PTS_FOUND="hlsInitPtsFound",l.FRAG_LOADING="hlsFragLoading",l.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",l.FRAG_LOADED="hlsFragLoaded",l.FRAG_DECRYPTED="hlsFragDecrypted",l.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",l.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",l.FRAG_PARSING_METADATA="hlsFragParsingMetadata",l.FRAG_PARSED="hlsFragParsed",l.FRAG_BUFFERED="hlsFragBuffered",l.FRAG_CHANGED="hlsFragChanged",l.FPS_DROP="hlsFpsDrop",l.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",l.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",l.ERROR="hlsError",l.DESTROYING="hlsDestroying",l.KEY_LOADING="hlsKeyLoading",l.KEY_LOADED="hlsKeyLoaded",l.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",l.BACK_BUFFER_REACHED="hlsBackBufferReached",l.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",l}({}),re=function(l){return l.NETWORK_ERROR="networkError",l.MEDIA_ERROR="mediaError",l.KEY_SYSTEM_ERROR="keySystemError",l.MUX_ERROR="muxError",l.OTHER_ERROR="otherError",l}({}),z=function(l){return l.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",l.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",l.KEY_SYSTEM_NO_SESSION="keySystemNoSession",l.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",l.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",l.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",l.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",l.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",l.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",l.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",l.MANIFEST_LOAD_ERROR="manifestLoadError",l.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",l.MANIFEST_PARSING_ERROR="manifestParsingError",l.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",l.LEVEL_EMPTY_ERROR="levelEmptyError",l.LEVEL_LOAD_ERROR="levelLoadError",l.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",l.LEVEL_PARSING_ERROR="levelParsingError",l.LEVEL_SWITCH_ERROR="levelSwitchError",l.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",l.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",l.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",l.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",l.FRAG_LOAD_ERROR="fragLoadError",l.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",l.FRAG_DECRYPT_ERROR="fragDecryptError",l.FRAG_PARSING_ERROR="fragParsingError",l.FRAG_GAP="fragGap",l.REMUX_ALLOC_ERROR="remuxAllocError",l.KEY_LOAD_ERROR="keyLoadError",l.KEY_LOAD_TIMEOUT="keyLoadTimeOut",l.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",l.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",l.BUFFER_APPEND_ERROR="bufferAppendError",l.BUFFER_APPENDING_ERROR="bufferAppendingError",l.BUFFER_STALLED_ERROR="bufferStalledError",l.BUFFER_FULL_ERROR="bufferFullError",l.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",l.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",l.INTERNAL_EXCEPTION="internalException",l.INTERNAL_ABORTED="aborted",l.UNKNOWN="unknown",l}({}),Se=function(){},ye={trace:Se,debug:Se,log:Se,warn:Se,info:Se,error:Se},Re=ye;function dt(l){for(var o=arguments.length,e=new Array(o>1?o-1:0),t=1;t<o;t++)e[t-1]=arguments[t];e.forEach(function(i){Re[i]=l[i]?l[i].bind(l):function(a){var s=self.console[a];return s?s.bind(self.console,"["+a+"] >"):Se}(i)})}function st(l,o){if(typeof console=="object"&&l===!0||typeof l=="object"){dt(l,"debug","log","info","warn","error");try{Re.log('Debug logs enabled for "'+o+'" in hls.js version 1.5.8')}catch{Re=ye}}else Re=ye}var j=Re,he=/^(\d+)x(\d+)$/,qe=/(.+?)=(".*?"|.*?)(?:,|$)/g,Pe=function(){function l(e){typeof e=="string"&&(e=l.parseAttrList(e)),R(this,e)}var o=l.prototype;return o.decimalInteger=function(e){var t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t},o.hexadecimalInteger=function(e){if(this[e]){var t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;for(var i=new Uint8Array(t.length/2),a=0;a<t.length/2;a++)i[a]=parseInt(t.slice(2*a,2*a+2),16);return i}return null},o.hexadecimalIntegerAsNumber=function(e){var t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t},o.decimalFloatingPoint=function(e){return parseFloat(this[e])},o.optionalFloat=function(e,t){var i=this[e];return i?parseFloat(i):t},o.enumeratedString=function(e){return this[e]},o.bool=function(e){return this[e]==="YES"},o.decimalResolution=function(e){var t=he.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}},l.parseAttrList=function(e){var t,i={};for(qe.lastIndex=0;(t=qe.exec(e))!==null;){var a=t[2];a.indexOf('"')===0&&a.lastIndexOf('"')===a.length-1&&(a=a.slice(1,-1)),i[t[1].trim()]=a}return i},C(l,[{key:"clientAttrs",get:function(){return Object.keys(this).filter(function(e){return e.substring(0,2)==="X-"})}}]),l}();function qt(l){return l==="SCTE35-OUT"||l==="SCTE35-IN"}var Mt=function(){function l(o,e){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,e){var t=e.attr;for(var i in t)if(Object.prototype.hasOwnProperty.call(o,i)&&o[i]!==t[i]){j.warn('DATERANGE tag attribute: "'+i+'" does not match for tags with ID: "'+o.ID+'"'),this._badValueForSameId=i;break}o=R(new Pe({}),t,o)}if(this.attr=o,this._startDate=new Date(o["START-DATE"]),"END-DATE"in this.attr){var a=new Date(this.attr["END-DATE"]);te(a.getTime())&&(this._endDate=a)}}return C(l,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var o=this.duration;return o!==null?new Date(this._startDate.getTime()+1e3*o):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var o=this.attr.decimalFloatingPoint("DURATION");if(te(o))return o}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&te(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),l}(),kt=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}},_t="audio",Ft="video",Et="audiovideo",Nt=function(){function l(o){var e;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=((e={})[_t]=null,e[Ft]=null,e[Et]=null,e),this.baseurl=o}return l.prototype.setByteRange=function(o,e){var t,i=o.split("@",2);t=i.length===1?(e==null?void 0:e.byteRangeEndOffset)||0:parseInt(i[1]),this._byteRange=[t,parseInt(i[0])+t]},C(l,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=_e.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(o){this._url=o}}]),l}(),Xt=function(l){function o(t,i){var a;return(a=l.call(this,i)||this)._decryptdata=null,a.rawProgramDateTime=null,a.programDateTime=null,a.tagList=[],a.duration=0,a.sn=0,a.levelkeys=void 0,a.type=void 0,a.loader=null,a.keyLoader=null,a.level=-1,a.cc=0,a.startPTS=void 0,a.endPTS=void 0,a.startDTS=void 0,a.endDTS=void 0,a.start=0,a.deltaPTS=void 0,a.maxStartPTS=void 0,a.minEndPTS=void 0,a.stats=new kt,a.data=void 0,a.bitrateTest=!1,a.title=null,a.initSegment=null,a.endList=void 0,a.gap=void 0,a.urlId=0,a.type=t,a}D(o,l);var e=o.prototype;return e.setKeyFormat=function(t){if(this.levelkeys){var i=this.levelkeys[t];i&&!this._decryptdata&&(this._decryptdata=i.getDecryptData(this.sn))}},e.abortRequests=function(){var t,i;(t=this.loader)==null||t.abort(),(i=this.keyLoader)==null||i.abort()},e.setElementaryStreamInfo=function(t,i,a,s,d,u){u===void 0&&(u=!1);var f=this.elementaryStreams,h=f[t];h?(h.startPTS=Math.min(h.startPTS,i),h.endPTS=Math.max(h.endPTS,a),h.startDTS=Math.min(h.startDTS,s),h.endDTS=Math.max(h.endDTS,d)):f[t]={startPTS:i,endPTS:a,startDTS:s,endDTS:d,partial:u}},e.clearElementaryStreamInfo=function(){var t=this.elementaryStreams;t[_t]=null,t[Ft]=null,t[Et]=null},C(o,[{key:"decryptdata",get:function(){if(!this.levelkeys&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{var i=Object.keys(this.levelkeys);if(i.length===1)return this._decryptdata=this.levelkeys[i[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null||!te(this.programDateTime))return null;var t=te(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){var t;if((t=this._decryptdata)!=null&&t.encrypted)return!0;if(this.levelkeys){var i=Object.keys(this.levelkeys),a=i.length;if(a>1||a===1&&this.levelkeys[i[0]].encrypted)return!0}return!1}}]),o}(Nt),xt=function(l){function o(e,t,i,a,s){var d;(d=l.call(this,i)||this).fragOffset=0,d.duration=0,d.gap=!1,d.independent=!1,d.relurl=void 0,d.fragment=void 0,d.index=void 0,d.stats=new kt,d.duration=e.decimalFloatingPoint("DURATION"),d.gap=e.bool("GAP"),d.independent=e.bool("INDEPENDENT"),d.relurl=e.enumeratedString("URI"),d.fragment=t,d.index=a;var u=e.enumeratedString("BYTERANGE");return u&&d.setByteRange(u,s),s&&(d.fragOffset=s.fragOffset+s.duration),d}return D(o,l),C(o,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var e=this.elementaryStreams;return!!(e.audio||e.video||e.audiovideo)}}]),o}(Nt),Li=function(){function l(o){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=o}return l.prototype.reloaded=function(o){if(!o)return this.advanced=!0,void(this.updated=!0);var e=this.lastPartSn-o.lastPartSn,t=this.lastPartIndex-o.lastPartIndex;this.updated=this.endSN!==o.endSN||!!t||!!e||!this.live,this.advanced=this.endSN>o.endSN||e>0||e===0&&t>0,this.updated||this.advanced?this.misses=Math.floor(.6*o.misses):this.misses=o.misses+1,this.availabilityDelay=o.availabilityDelay},C(l,[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&te(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}},{key:"drift",get:function(){var o=this.driftEndTime-this.driftStartTime;return o>0?1e3*(this.driftEnd-this.driftStart)/o:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var o;return(o=this.partList)!=null&&o.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var o;return(o=this.fragments)!=null&&o.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var o;return(o=this.partList)!=null&&o.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var o;return(o=this.partList)!=null&&o.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),l}();function Ze(l){return Uint8Array.from(atob(l),function(o){return o.charCodeAt(0)})}function si(l){var o,e,t=l.split(":"),i=null;if(t[0]==="data"&&t.length===2){var a=t[1].split(";"),s=a[a.length-1].split(",");if(s.length===2){var d=s[0]==="base64",u=s[1];d?(a.splice(-1,1),i=Ze(u)):(o=It(u).subarray(0,16),(e=new Uint8Array(16)).set(o,16-o.length),i=e)}}return i}function It(l){return Uint8Array.from(unescape(encodeURIComponent(l)),function(o){return o.charCodeAt(0)})}var O=typeof self<"u"?self:void 0,N={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Z="org.w3.clearkey",le="com.apple.streamingkeydelivery",ue="com.microsoft.playready",we="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function Ee(l){switch(l){case le:return N.FAIRPLAY;case ue:return N.PLAYREADY;case we:return N.WIDEVINE;case Z:return N.CLEARKEY}}var fe="edef8ba979d64acea3c827dcd51d21ed";function ke(l){switch(l){case N.FAIRPLAY:return le;case N.PLAYREADY:return ue;case N.WIDEVINE:return we;case N.CLEARKEY:return Z}}function me(l){var o=l.drmSystems,e=l.widevineLicenseUrl,t=o?[N.FAIRPLAY,N.WIDEVINE,N.PLAYREADY,N.CLEARKEY].filter(function(i){return!!o[i]}):[];return!t[N.WIDEVINE]&&e&&t.push(N.WIDEVINE),t}var Ce,Be=O!=null&&(Ce=O.navigator)!=null&&Ce.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;function Oe(l,o,e){return Uint8Array.prototype.slice?l.slice(o,e):new Uint8Array(Array.prototype.slice.call(l,o,e))}var $e,it=function(l,o){return o+10<=l.length&&l[o]===73&&l[o+1]===68&&l[o+2]===51&&l[o+3]<255&&l[o+4]<255&&l[o+6]<128&&l[o+7]<128&&l[o+8]<128&&l[o+9]<128},ct=function(l,o){return o+10<=l.length&&l[o]===51&&l[o+1]===68&&l[o+2]===73&&l[o+3]<255&&l[o+4]<255&&l[o+6]<128&&l[o+7]<128&&l[o+8]<128&&l[o+9]<128},ut=function(l,o){for(var e=o,t=0;it(l,o);)t+=10,t+=St(l,o+6),ct(l,o+10)&&(t+=10),o+=t;if(t>0)return l.subarray(e,e+t)},St=function(l,o){var e=0;return e=(127&l[o])<<21,e|=(127&l[o+1])<<14,e|=(127&l[o+2])<<7,e|=127&l[o+3]},li=function(l,o){return it(l,o)&&St(l,o+6)+10<=l.length-o},Ai=function(l){for(var o=Nr(l),e=0;e<o.length;e++){var t=o[e];if(Fr(t))return Je(t)}},Fr=function(l){return l&&l.key==="PRIV"&&l.info==="com.apple.streaming.transportStreamTimestamp"},rr=function(l){var o=String.fromCharCode(l[0],l[1],l[2],l[3]),e=St(l,4);return{type:o,size:e,data:l.subarray(10,10+e)}},Nr=function(l){for(var o=0,e=[];it(l,o);){for(var t=St(l,o+6),i=(o+=10)+t;o+8<i;){var a=rr(l.subarray(o)),s=di(a);s&&e.push(s),o+=a.size+10}ct(l,o)&&(o+=10)}return e},di=function(l){return l.type==="PRIV"?ci(l):l.type[0]==="W"?tn(l):na(l)},ci=function(l){if(!(l.size<2)){var o=Xe(l.data,!0),e=new Uint8Array(l.data.subarray(o.length+1));return{key:l.type,info:o,data:e.buffer}}},na=function(l){if(!(l.size<2)){if(l.type==="TXXX"){var o=1,e=Xe(l.data.subarray(o),!0);o+=e.length+1;var t=Xe(l.data.subarray(o));return{key:l.type,info:e,data:t}}var i=Xe(l.data.subarray(1));return{key:l.type,data:i}}},tn=function(l){if(l.type==="WXXX"){if(l.size<2)return;var o=1,e=Xe(l.data.subarray(o),!0);o+=e.length+1;var t=Xe(l.data.subarray(o));return{key:l.type,info:e,data:t}}var i=Xe(l.data);return{key:l.type,data:i}},Je=function(l){if(l.data.byteLength===8){var o=new Uint8Array(l.data),e=1&o[3],t=(o[4]<<23)+(o[5]<<15)+(o[6]<<7)+o[7];return t/=45,e&&(t+=4772185884e-2),Math.round(t)}},Xe=function(l,o){o===void 0&&(o=!1);var e=Qt();if(e){var t=e.decode(l);if(o){var i=t.indexOf("\0");return i!==-1?t.substring(0,i):t}return t.replace(/\0/g,"")}for(var a,s,d,u=l.length,f="",h=0;h<u;){if((a=l[h++])===0&&o)return f;if(a!==0&&a!==3)switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:f+=String.fromCharCode(a);break;case 12:case 13:s=l[h++],f+=String.fromCharCode((31&a)<<6|63&s);break;case 14:s=l[h++],d=l[h++],f+=String.fromCharCode((15&a)<<12|(63&s)<<6|(63&d)<<0)}}return f};function Qt(){if(!navigator.userAgent.includes("PlayStation 4"))return $e||self.TextDecoder===void 0||($e=new self.TextDecoder("utf-8")),$e}var lt=function(l){for(var o="",e=0;e<l.length;e++){var t=l[e].toString(16);t.length<2&&(t="0"+t),o+=t}return o},ar=Math.pow(2,32)-1,rn=[].push,sa={video:1,audio:2,id3:3,text:4};function Vt(l){return String.fromCharCode.apply(null,l)}function La(l,o){var e=l[o]<<8|l[o+1];return e<0?65536+e:e}function Ge(l,o){var e=la(l,o);return e<0?4294967296+e:e}function eo(l,o){var e=Ge(l,o);return e*=Math.pow(2,32),e+=Ge(l,o+4)}function la(l,o){return l[o]<<24|l[o+1]<<16|l[o+2]<<8|l[o+3]}function Aa(l,o,e){l[o]=e>>24,l[o+1]=e>>16&255,l[o+2]=e>>8&255,l[o+3]=255&e}function et(l,o){var e=[];if(!o.length)return e;for(var t=l.byteLength,i=0;i<t;){var a=Ge(l,i),s=a>1?i+a:t;if(Vt(l.subarray(i+4,i+8))===o[0])if(o.length===1)e.push(l.subarray(i+8,s));else{var d=et(l.subarray(i+8,s),o.slice(1));d.length&&rn.apply(e,d)}i=s}return e}function an(l){var o=[],e=l[0],t=8,i=Ge(l,t);t+=4;var a=0,s=0;e===0?(a=Ge(l,t),s=Ge(l,t+4),t+=8):(a=eo(l,t),s=eo(l,t+8),t+=16),t+=2;var d=l.length+s,u=La(l,t);t+=2;for(var f=0;f<u;f++){var h=t,m=Ge(l,h);h+=4;var w=2147483647&m;if((2147483648&m)>>>31==1)return j.warn("SIDX has hierarchical references (not supported)"),null;var x=Ge(l,h);h+=4,o.push({referenceSize:w,subsegmentDuration:x,info:{duration:x/i,start:d,end:d+w-1}}),d+=w,t=h+=4}return{earliestPresentationTime:a,timescale:i,version:e,referencesCount:u,references:o}}function on(l){for(var o=[],e=et(l,["moov","trak"]),t=0;t<e.length;t++){var i=e[t],a=et(i,["tkhd"])[0];if(a){var s=a[0],d=Ge(a,s===0?12:20),u=et(i,["mdia","mdhd"])[0];if(u){var f=Ge(u,(s=u[0])===0?12:20),h=et(i,["mdia","hdlr"])[0];if(h){var m=Vt(h.subarray(8,12)),w={soun:_t,vide:Ft}[m];if(w){var x=to(et(i,["mdia","minf","stbl","stsd"])[0]);o[d]={timescale:f,type:w},o[w]=b({timescale:f,id:d},x)}}}}}return et(l,["moov","mvex","trex"]).forEach(function(_){var E=Ge(_,4),A=o[E];A&&(A.default={duration:Ge(_,12),flags:Ge(_,20)})}),o}function to(l){var o=l.subarray(8),e=o.subarray(86),t=Vt(o.subarray(4,8)),i=t,a=t==="enca"||t==="encv";if(a){var s=et(o,[t])[0];et(s.subarray(t==="enca"?28:78),["sinf"]).forEach(function(Qe){var ft=et(Qe,["schm"])[0];if(ft){var rt=Vt(ft.subarray(4,8));if(rt==="cbcs"||rt==="cenc"){var Rt=et(Qe,["frma"])[0];Rt&&(i=Vt(Rt))}}})}switch(i){case"avc1":case"avc2":case"avc3":case"avc4":var d=et(e,["avcC"])[0];i+="."+io(d[1])+io(d[2])+io(d[3]);break;case"mp4a":var u=et(o,[t])[0],f=et(u.subarray(28),["esds"])[0];if(f&&f.length>12){var h=4;if(f[h++]!==3)break;h=nn(f,h),h+=2;var m=f[h++];if(128&m&&(h+=2),64&m&&(h+=f[h++]),f[h++]!==4)break;h=nn(f,h);var w=f[h++];if(w!==64||(i+="."+io(w),h+=12,f[h++]!==5))break;h=nn(f,h);var x=f[h++],_=(248&x)>>3;_===31&&(_+=1+((7&x)<<3)+((224&f[h])>>5)),i+="."+_}break;case"hvc1":case"hev1":var E=et(e,["hvcC"])[0],A=E[1],T=["","A","B","C"][A>>6],L=31&A,I=Ge(E,2),P=(32&A)>>5?"H":"L",G=E[12],$=E.subarray(6,12);i+="."+T+L,i+="."+I.toString(16).toUpperCase(),i+="."+P+G;for(var B="",J=$.length;J--;){var X=$[J];(X||B)&&(B="."+X.toString(16).toUpperCase()+B)}i+=B;break;case"dvh1":case"dvhe":var ee=et(e,["dvcC"])[0],ae=ee[2]>>1&127,be=ee[2]<<5&32|ee[3]>>3&31;i+="."+qi(ae)+"."+qi(be);break;case"vp09":var Te=et(e,["vpcC"])[0],Ie=Te[4],De=Te[5],Ue=Te[6]>>4&15;i+="."+qi(Ie)+"."+qi(De)+"."+qi(Ue);break;case"av01":var Ae=et(e,["av1C"])[0],Ne=Ae[1]>>>5,Ke=31&Ae[1],je=Ae[2]>>>7?"H":"M",We=(64&Ae[2])>>6,vt=(32&Ae[2])>>5,$t=Ne===2&&We?vt?12:10:We?10:8,At=(16&Ae[2])>>4,ti=(8&Ae[2])>>3,jt=(4&Ae[2])>>2,Ct=3&Ae[2];i+="."+Ne+"."+qi(Ke)+je+"."+qi($t)+"."+At+"."+ti+jt+Ct+"."+qi(1)+"."+qi(1)+"."+qi(1)+".0"}return{codec:i,encrypted:a}}function nn(l,o){for(var e=o+5;128&l[o++]&&o<e;);return o}function io(l){return("0"+l.toString(16).toUpperCase()).slice(-2)}function qi(l){return(l<10?"0":"")+l}function sn(l){var o=et(l,["schm"])[0];if(o){var e=Vt(o.subarray(4,8));if(e==="cbcs"||e==="cenc")return et(l,["schi","tenc"])[0]}return j.error("[eme] missing 'schm' box"),null}function ln(l){var o=Ge(l,0),e=8;1&o&&(e+=4),4&o&&(e+=4);for(var t=0,i=Ge(l,4),a=0;a<i;a++)256&o&&(t+=Ge(l,e),e+=4),512&o&&(e+=4),1024&o&&(e+=4),2048&o&&(e+=4);return t}function Ii(l,o){var e=new Uint8Array(l.length+o.length);return e.set(l),e.set(o,l.length),e}function ie(l,o){var e=[],t=o.samples,i=o.timescale,a=o.id,s=!1;return et(t,["moof"]).map(function(d){var u=d.byteOffset-8;et(d,["traf"]).map(function(f){var h=et(f,["tfdt"]).map(function(m){var w=m[0],x=Ge(m,4);return w===1&&(x*=Math.pow(2,32),x+=Ge(m,8)),x/i})[0];return h!==void 0&&(l=h),et(f,["tfhd"]).map(function(m){var w=Ge(m,4),x=16777215&Ge(m,0),_=0,E=(16&x)!=0,A=0,T=(32&x)!=0,L=8;w===a&&((1&x)!=0&&(L+=8),(2&x)!=0&&(L+=4),(8&x)!=0&&(_=Ge(m,L),L+=4),E&&(A=Ge(m,L),L+=4),T&&(L+=4),o.type==="video"&&(s=function(I){if(!I)return!1;var P=I.indexOf("."),G=P<0?I:I.substring(0,P);return G==="hvc1"||G==="hev1"||G==="dvh1"||G==="dvhe"}(o.codec)),et(f,["trun"]).map(function(I){var P=I[0],G=16777215&Ge(I,0),$=(1&G)!=0,B=0,J=(4&G)!=0,X=(256&G)!=0,ee=0,ae=(512&G)!=0,be=0,Te=(1024&G)!=0,Ie=(2048&G)!=0,De=0,Ue=Ge(I,4),Ae=8;$&&(B=Ge(I,Ae),Ae+=4),J&&(Ae+=4);for(var Ne=B+u,Ke=0;Ke<Ue;Ke++){if(X?(ee=Ge(I,Ae),Ae+=4):ee=_,ae?(be=Ge(I,Ae),Ae+=4):be=A,Te&&(Ae+=4),Ie&&(De=P===0?Ge(I,Ae):la(I,Ae),Ae+=4),o.type===Ft)for(var je=0;je<be;){var We=Ge(t,Ne);Fe(s,t[Ne+=4])&&He(t.subarray(Ne,Ne+We),s?2:1,l+De/i,e),Ne+=We,je+=We+4}l+=ee/i}}))})})}),e}function Fe(l,o){if(l){var e=o>>1&63;return e===39||e===40}return(31&o)==6}function He(l,o,e,t){var i=Gt(l),a=0;a+=o;for(var s=0,d=0,u=0;a<i.length;){s=0;do{if(a>=i.length)break;s+=u=i[a++]}while(u===255);d=0;do{if(a>=i.length)break;d+=u=i[a++]}while(u===255);var f=i.length-a,h=a;if(d<f)a+=d;else if(d>f){j.error("Malformed SEI payload. "+d+" is too small, only "+f+" bytes left to parse.");break}if(s===4){if(i[h++]===181){var m=La(i,h);if(h+=2,m===49){var w=Ge(i,h);if(h+=4,w===1195456820){var x=i[h++];if(x===3){var _=i[h++],E=64&_,A=E?2+3*(31&_):0,T=new Uint8Array(A);if(E){T[0]=_;for(var L=1;L<A;L++)T[L]=i[h++]}t.push({type:x,payloadType:s,pts:e,bytes:T})}}}}}else if(s===5&&d>16){for(var I=[],P=0;P<16;P++){var G=i[h++].toString(16);I.push(G.length==1?"0"+G:G),P!==3&&P!==5&&P!==7&&P!==9||I.push("-")}for(var $=d-16,B=new Uint8Array($),J=0;J<$;J++)B[J]=i[h++];t.push({payloadType:s,pts:e,uuid:I.join(""),userData:Xe(B),userDataBytes:B})}}}function Gt(l){for(var o=l.byteLength,e=[],t=1;t<o-2;)l[t]===0&&l[t+1]===0&&l[t+2]===3?(e.push(t+2),t+=2):t++;if(e.length===0)return l;var i=o-e.length,a=new Uint8Array(i),s=0;for(t=0;t<i;s++,t++)s===e[0]&&(s++,e.shift()),a[t]=l[s];return a}function or(l,o,e){if(l.byteLength!==16)throw new RangeError("Invalid system id");var t,i,a;if(o){t=1,i=new Uint8Array(16*o.length);for(var s=0;s<o.length;s++){var d=o[s];if(d.byteLength!==16)throw new RangeError("Invalid key");i.set(d,16*s)}}else t=0,i=new Uint8Array;t>0?(a=new Uint8Array(4),o.length>0&&new DataView(a.buffer).setUint32(0,o.length,!1)):a=new Uint8Array;var u=new Uint8Array(4);return e&&e.byteLength>0&&new DataView(u.buffer).setUint32(0,e.byteLength,!1),function(f){for(var h=arguments.length,m=new Array(h>1?h-1:0),w=1;w<h;w++)m[w-1]=arguments[w];for(var x=m.length,_=8,E=x;E--;)_+=m[E].byteLength;var A=new Uint8Array(_);for(A[0]=_>>24&255,A[1]=_>>16&255,A[2]=_>>8&255,A[3]=255&_,A.set(f,4),E=0,_=8;E<x;E++)A.set(m[E],_),_+=m[E].byteLength;return A}([112,115,115,104],new Uint8Array([t,0,0,0]),l,a,i,u,e||new Uint8Array)}var Ui={},zr=function(){function l(e,t,i,a,s){a===void 0&&(a=[1]),s===void 0&&(s=null),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=i,this.keyFormatVersions=a,this.iv=s,this.encrypted=!!e&&e!=="NONE",this.isCommonEncryption=this.encrypted&&e!=="AES-128"}l.clearKeyUriToKeyIdMap=function(){Ui={}};var o=l.prototype;return o.isSupported=function(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case le:case we:case ue:case Z:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1},o.getDecryptData=function(e){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method!=="AES-128"||this.iv||j.warn('missing IV for initialization segment with method="'+this.method+'" - compliance issue'),e=0);var t=function(A){for(var T=new Uint8Array(16),L=12;L<16;L++)T[L]=A>>8*(15-L)&255;return T}(e);return new l(this.method,this.uri,"identity",this.keyFormatVersions,t)}var i=si(this.uri);if(i)switch(this.keyFormat){case we:this.pssh=i,i.length>=22&&(this.keyId=i.subarray(i.length-22,i.length-6));break;case ue:var a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=or(a,null,i);var s=new Uint16Array(i.buffer,i.byteOffset,i.byteLength/2),d=String.fromCharCode.apply(null,Array.from(s)),u=d.substring(d.indexOf("<"),d.length),f=new DOMParser().parseFromString(u,"text/xml").getElementsByTagName("KID")[0];if(f){var h=f.childNodes[0]?f.childNodes[0].nodeValue:f.getAttribute("VALUE");if(h){var m=Ze(h).subarray(0,16);(function(A){var T=function(L,I,P){var G=L[I];L[I]=L[P],L[P]=G};T(A,0,3),T(A,1,2),T(A,4,5),T(A,6,7)})(m),this.keyId=m}}break;default:var w=i.subarray(0,16);if(w.length!==16){var x=new Uint8Array(16);x.set(w,16-w.length),w=x}this.keyId=w}if(!this.keyId||this.keyId.byteLength!==16){var _=Ui[this.uri];if(!_){var E=Object.keys(Ui).length%Number.MAX_SAFE_INTEGER;_=new Uint8Array(16),new DataView(_.buffer,12,4).setUint32(0,E),Ui[this.uri]=_}this.keyId=_}return this},l}(),Jt=/\{\$([a-zA-Z0-9-_]+)\}/g;function Ca(l){return Jt.test(l)}function hi(l,o,e){if(l.variableList!==null||l.hasVariableRefs)for(var t=e.length;t--;){var i=e[t],a=o[i];a&&(o[i]=ro(l,a))}}function ro(l,o){if(l.variableList!==null||l.hasVariableRefs){var e=l.variableList;return o.replace(Jt,function(t){var i=t.substring(2,t.length-1),a=e==null?void 0:e[i];return a===void 0?(l.playlistParsingError||(l.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'+i+'"')),t):a})}return o}function ao(l,o,e){var t,i,a=l.variableList;if(a||(l.variableList=a={}),"QUERYPARAM"in o){t=o.QUERYPARAM;try{var s=new self.URL(e).searchParams;if(!s.has(t))throw new Error('"'+t+'" does not match any query parameter in URI: "'+e+'"');i=s.get(t)}catch(d){l.playlistParsingError||(l.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: "+d.message))}}else t=o.NAME,i=o.VALUE;t in a?l.playlistParsingError||(l.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'+t+'"')):a[t]=i||""}function Ra(l,o,e){var t=o.IMPORT;if(e&&t in e){var i=l.variableList;i||(l.variableList=i={}),i[t]=e[t]}else l.playlistParsingError||(l.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'+t+'"'))}function nr(l){if(l===void 0&&(l=!0),typeof self<"u")return(l||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}var oo={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function dn(l,o,e){return e===void 0&&(e=!0),!l.split(",").some(function(t){return!qp(t,o,e)})}function qp(l,o,e){var t;e===void 0&&(e=!0);var i=nr(e);return(t=i==null?void 0:i.isTypeSupported(cn(l,o)))!=null&&t}function cn(l,o){return o+'/mp4;codecs="'+l+'"'}function Xp(l){if(l){var o=l.substring(0,4);return oo.video[o]}return 2}function ws(l){return l.split(",").reduce(function(o,e){var t=oo.video[e];return t?(2*t+o)/(o?3:2):(oo.audio[e]+o)/(o?2:1)},0)}var sd={},U1=/flac|opus/i;function xs(l,o){return o===void 0&&(o=!0),l.replace(U1,function(e){return function(t,i){if(i===void 0&&(i=!0),sd[t])return sd[t];for(var a={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[t],s=0;s<a.length;s++)if(qp(a[s],"audio",i))return sd[t]=a[s],a[s];return t}(e.toLowerCase(),o)})}function Qp(l,o){return l&&l!=="mp4a"?l:o&&o.split(",")[0]}var Jp=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,Zp=/#EXT-X-MEDIA:(.*)/g,V1=/^#EXT(?:INF|-X-TARGETDURATION):/m,eh=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),j1=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),un=function(){function l(){}return l.findGroup=function(o,e){for(var t=0;t<o.length;t++){var i=o[t];if(i.id===e)return i}},l.resolve=function(o,e){return _e.buildAbsoluteURL(e,o,{alwaysNormalize:!0})},l.isMediaPlaylist=function(o){return V1.test(o)},l.parseMasterPlaylist=function(o,e){var t,i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:Ca(o)},a=[];for(Jp.lastIndex=0;(t=Jp.exec(o))!=null;)if(t[1]){var s,d=new Pe(t[1]);hi(i,d,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var u=ro(i,t[2]),f={attrs:d,bitrate:d.decimalInteger("BANDWIDTH")||d.decimalInteger("AVERAGE-BANDWIDTH"),name:d.NAME,url:l.resolve(u,e)},h=d.decimalResolution("RESOLUTION");h&&(f.width=h.width,f.height=h.height),G1(d.CODECS,f),(s=f.unknownCodecs)!=null&&s.length||a.push(f),i.levels.push(f)}else if(t[3]){var m=t[3],w=t[4];switch(m){case"SESSION-DATA":var x=new Pe(w);hi(i,x,["DATA-ID","LANGUAGE","VALUE","URI"]);var _=x["DATA-ID"];_&&(i.sessionData===null&&(i.sessionData={}),i.sessionData[_]=x);break;case"SESSION-KEY":var E=th(w,e,i);E.encrypted&&E.isSupported()?(i.sessionKeys===null&&(i.sessionKeys=[]),i.sessionKeys.push(E)):j.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'+w+'"');break;case"DEFINE":var A=new Pe(w);hi(i,A,["NAME","VALUE","QUERYPARAM"]),ao(i,A,e);break;case"CONTENT-STEERING":var T=new Pe(w);hi(i,T,["SERVER-URI","PATHWAY-ID"]),i.contentSteering={uri:l.resolve(T["SERVER-URI"],e),pathwayId:T["PATHWAY-ID"]||"."};break;case"START":i.startTimeOffset=ih(w)}}var L=a.length>0&&a.length<i.levels.length;return i.levels=L?a:i.levels,i.levels.length===0&&(i.playlistParsingError=new Error("no levels found in manifest")),i},l.parseMasterPlaylistMedia=function(o,e,t){var i,a={},s=t.levels,d={AUDIO:s.map(function(P){return{id:P.attrs.AUDIO,audioCodec:P.audioCodec}}),SUBTITLES:s.map(function(P){return{id:P.attrs.SUBTITLES,textCodec:P.textCodec}}),"CLOSED-CAPTIONS":[]},u=0;for(Zp.lastIndex=0;(i=Zp.exec(o))!==null;){var f=new Pe(i[1]),h=f.TYPE;if(h){var m=d[h],w=a[h]||[];a[h]=w,hi(t,f,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var x=f.LANGUAGE,_=f["ASSOC-LANGUAGE"],E=f.CHANNELS,A=f.CHARACTERISTICS,T=f["INSTREAM-ID"],L={attrs:f,bitrate:0,id:u++,groupId:f["GROUP-ID"]||"",name:f.NAME||x||"",type:h,default:f.bool("DEFAULT"),autoselect:f.bool("AUTOSELECT"),forced:f.bool("FORCED"),lang:x,url:f.URI?l.resolve(f.URI,e):""};if(_&&(L.assocLang=_),E&&(L.channels=E),A&&(L.characteristics=A),T&&(L.instreamId=T),m!=null&&m.length){var I=l.findGroup(m,L.groupId)||m[0];rh(L,I,"audioCodec"),rh(L,I,"textCodec")}w.push(L)}}return a},l.parseLevelPlaylist=function(o,e,t,i,a,s){var d,u,f,h=new Li(e),m=h.fragments,w=null,x=0,_=0,E=0,A=0,T=null,L=new Xt(i,e),I=-1,P=!1,G=null;for(eh.lastIndex=0,h.m3u8=o,h.hasVariableRefs=Ca(o);(d=eh.exec(o))!==null;){P&&(P=!1,(L=new Xt(i,e)).start=E,L.sn=x,L.cc=A,L.level=t,w&&(L.initSegment=w,L.rawProgramDateTime=w.rawProgramDateTime,w.rawProgramDateTime=null,G&&(L.setByteRange(G),G=null)));var $=d[1];if($){L.duration=parseFloat($);var B=(" "+d[2]).slice(1);L.title=B||null,L.tagList.push(B?["INF",$,B]:["INF",$])}else if(d[3]){if(te(L.duration)){L.start=E,f&&nh(L,f,h),L.sn=x,L.level=t,L.cc=A,m.push(L);var J=(" "+d[3]).slice(1);L.relurl=ro(h,J),ah(L,T),T=L,E+=L.duration,x++,_=0,P=!0}}else if(d[4]){var X=(" "+d[4]).slice(1);T?L.setByteRange(X,T):L.setByteRange(X)}else if(d[5])L.rawProgramDateTime=(" "+d[5]).slice(1),L.tagList.push(["PROGRAM-DATE-TIME",L.rawProgramDateTime]),I===-1&&(I=m.length);else{if(!(d=d[0].match(j1))){j.warn("No matches on slow regex match for level playlist!");continue}for(u=1;u<d.length&&d[u]===void 0;u++);var ee=(" "+d[u]).slice(1),ae=(" "+d[u+1]).slice(1),be=d[u+2]?(" "+d[u+2]).slice(1):"";switch(ee){case"PLAYLIST-TYPE":h.type=ae.toUpperCase();break;case"MEDIA-SEQUENCE":x=h.startSN=parseInt(ae);break;case"SKIP":var Te=new Pe(ae);hi(h,Te,["RECENTLY-REMOVED-DATERANGES"]);var Ie=Te.decimalInteger("SKIPPED-SEGMENTS");if(te(Ie)){h.skippedSegments=Ie;for(var De=Ie;De--;)m.unshift(null);x+=Ie}var Ue=Te.enumeratedString("RECENTLY-REMOVED-DATERANGES");Ue&&(h.recentlyRemovedDateranges=Ue.split(" "));break;case"TARGETDURATION":h.targetduration=Math.max(parseInt(ae),1);break;case"VERSION":h.version=parseInt(ae);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":h.live=!1;break;case"#":(ae||be)&&L.tagList.push(be?[ae,be]:[ae]);break;case"DISCONTINUITY":A++,L.tagList.push(["DIS"]);break;case"GAP":L.gap=!0,L.tagList.push([ee]);break;case"BITRATE":L.tagList.push([ee,ae]);break;case"DATERANGE":var Ae=new Pe(ae);hi(h,Ae,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),hi(h,Ae,Ae.clientAttrs);var Ne=new Mt(Ae,h.dateRanges[Ae.ID]);Ne.isValid||h.skippedSegments?h.dateRanges[Ne.id]=Ne:j.warn('Ignoring invalid DATERANGE tag: "'+ae+'"'),L.tagList.push(["EXT-X-DATERANGE",ae]);break;case"DEFINE":var Ke=new Pe(ae);hi(h,Ke,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Ke?Ra(h,Ke,s):ao(h,Ke,e);break;case"DISCONTINUITY-SEQUENCE":A=parseInt(ae);break;case"KEY":var je=th(ae,e,h);if(je.isSupported()){if(je.method==="NONE"){f=void 0;break}f||(f={}),f[je.keyFormat]&&(f=R({},f)),f[je.keyFormat]=je}else j.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'+ae+'"');break;case"START":h.startTimeOffset=ih(ae);break;case"MAP":var We=new Pe(ae);if(hi(h,We,["BYTERANGE","URI"]),L.duration){var vt=new Xt(i,e);oh(vt,We,t,f),w=vt,L.initSegment=w,w.rawProgramDateTime&&!L.rawProgramDateTime&&(L.rawProgramDateTime=w.rawProgramDateTime)}else{var $t=L.byteRangeEndOffset;if($t){var At=L.byteRangeStartOffset;G=$t-At+"@"+At}else G=null;oh(L,We,t,f),w=L,P=!0}break;case"SERVER-CONTROL":var ti=new Pe(ae);h.canBlockReload=ti.bool("CAN-BLOCK-RELOAD"),h.canSkipUntil=ti.optionalFloat("CAN-SKIP-UNTIL",0),h.canSkipDateRanges=h.canSkipUntil>0&&ti.bool("CAN-SKIP-DATERANGES"),h.partHoldBack=ti.optionalFloat("PART-HOLD-BACK",0),h.holdBack=ti.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var jt=new Pe(ae);h.partTarget=jt.decimalFloatingPoint("PART-TARGET");break;case"PART":var Ct=h.partList;Ct||(Ct=h.partList=[]);var Qe=_>0?Ct[Ct.length-1]:void 0,ft=_++,rt=new Pe(ae);hi(h,rt,["BYTERANGE","URI"]);var Rt=new xt(rt,L,e,ft,Qe);Ct.push(Rt),L.duration+=Rt.duration;break;case"PRELOAD-HINT":var tt=new Pe(ae);hi(h,tt,["URI"]),h.preloadHint=tt;break;case"RENDITION-REPORT":var zt=new Pe(ae);hi(h,zt,["URI"]),h.renditionReports=h.renditionReports||[],h.renditionReports.push(zt);break;default:j.warn("line parsed but not handled: "+d)}}}T&&!T.relurl?(m.pop(),E-=T.duration,h.partList&&(h.fragmentHint=T)):h.partList&&(ah(L,T),L.cc=A,h.fragmentHint=L,f&&nh(L,f,h));var bt=m.length,Ci=m[0],Ti=m[bt-1];if((E+=h.skippedSegments*h.targetduration)>0&&bt&&Ti){h.averagetargetduration=E/bt;var yt=Ti.sn;h.endSN=yt!=="initSegment"?yt:0,h.live||(Ti.endList=!0),Ci&&(h.startCC=Ci.cc)}else h.endSN=0,h.startCC=0;return h.fragmentHint&&(E+=h.fragmentHint.duration),h.totalduration=E,h.endCC=A,I>0&&function(Zt,ai){for(var Ei=Zt[ai],Vi=ai;Vi--;){var fi=Zt[Vi];if(!fi)return;fi.programDateTime=Ei.programDateTime-1e3*fi.duration,Ei=fi}}(m,I),h},l}();function th(l,o,e){var t,i,a=new Pe(l);hi(e,a,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var s=(t=a.METHOD)!=null?t:"",d=a.URI,u=a.hexadecimalInteger("IV"),f=a.KEYFORMATVERSIONS,h=(i=a.KEYFORMAT)!=null?i:"identity";d&&a.IV&&!u&&j.error("Invalid IV: "+a.IV);var m=d?un.resolve(d,o):"",w=(f||"1").split("/").map(Number).filter(Number.isFinite);return new zr(s,m,h,w,u)}function ih(l){var o=new Pe(l).decimalFloatingPoint("TIME-OFFSET");return te(o)?o:null}function G1(l,o){var e=(l||"").split(/[ ,]+/).filter(function(t){return t});["video","audio","text"].forEach(function(t){var i=e.filter(function(a){return function(s,d){var u=oo[d];return!!u&&!!u[s.slice(0,4)]}(a,t)});i.length&&(o[t+"Codec"]=i.join(","),e=e.filter(function(a){return i.indexOf(a)===-1}))}),o.unknownCodecs=e}function rh(l,o,e){var t=o[e];t&&(l[e]=t)}function ah(l,o){l.rawProgramDateTime?l.programDateTime=Date.parse(l.rawProgramDateTime):o!=null&&o.programDateTime&&(l.programDateTime=o.endProgramDateTime),te(l.programDateTime)||(l.programDateTime=null,l.rawProgramDateTime=null)}function oh(l,o,e,t){l.relurl=o.URI,o.BYTERANGE&&l.setByteRange(o.BYTERANGE),l.level=e,l.sn="initSegment",t&&(l.levelkeys=t),l.initSegment=null}function nh(l,o,e){l.levelkeys=o;var t=e.encryptedFragments;t.length&&t[t.length-1].levelkeys===o||!Object.keys(o).some(function(i){return o[i].isCommonEncryption})||t.push(l)}var no="manifest",Da="level",sr="audioTrack",wr="subtitleTrack",Lt="main",Xi="audio",Br="subtitle";function sh(l){switch(l.type){case sr:return Xi;case wr:return Br;default:return Lt}}function ld(l,o){var e=l.url;return e!==void 0&&e.indexOf("data:")!==0||(e=o.url),e}var $1=function(){function l(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}var o=l.prototype;return o.startLoad=function(e){},o.stopLoad=function(){this.destroyInternalLoaders()},o.registerListeners=function(){var e=this.hls;e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.LEVEL_LOADING,this.onLevelLoading,this),e.on(y.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(y.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},o.unregisterListeners=function(){var e=this.hls;e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.LEVEL_LOADING,this.onLevelLoading,this),e.off(y.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(y.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},o.createInternalLoader=function(e){var t=this.hls.config,i=t.pLoader,a=t.loader,s=new(i||a)(t);return this.loaders[e.type]=s,s},o.getInternalLoader=function(e){return this.loaders[e.type]},o.resetInternalLoader=function(e){this.loaders[e]&&delete this.loaders[e]},o.destroyInternalLoaders=function(){for(var e in this.loaders){var t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}},o.destroy=function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()},o.onManifestLoading=function(e,t){var i=t.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:no,url:i,deliveryDirectives:null})},o.onLevelLoading=function(e,t){var i=t.id,a=t.level,s=t.pathwayId,d=t.url,u=t.deliveryDirectives;this.load({id:i,level:a,pathwayId:s,responseType:"text",type:Da,url:d,deliveryDirectives:u})},o.onAudioTrackLoading=function(e,t){var i=t.id,a=t.groupId,s=t.url,d=t.deliveryDirectives;this.load({id:i,groupId:a,level:null,responseType:"text",type:sr,url:s,deliveryDirectives:d})},o.onSubtitleTrackLoading=function(e,t){var i=t.id,a=t.groupId,s=t.url,d=t.deliveryDirectives;this.load({id:i,groupId:a,level:null,responseType:"text",type:wr,url:s,deliveryDirectives:d})},o.load=function(e){var t,i,a,s=this,d=this.hls.config,u=this.getInternalLoader(e);if(u){var f=u.context;if(f&&f.url===e.url&&f.level===e.level)return void j.trace("[playlist-loader]: playlist request ongoing");j.log("[playlist-loader]: aborting previous loader for type: "+e.type),u.abort()}if(i=e.type===no?d.manifestLoadPolicy.default:R({},d.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),u=this.createInternalLoader(e),te((t=e.deliveryDirectives)==null?void 0:t.part)&&(e.type===Da&&e.level!==null?a=this.hls.levels[e.level].details:e.type===sr&&e.id!==null?a=this.hls.audioTracks[e.id].details:e.type===wr&&e.id!==null&&(a=this.hls.subtitleTracks[e.id].details),a)){var h=a.partTarget,m=a.targetduration;if(h&&m){var w=1e3*Math.max(3*h,.8*m);i=R({},i,{maxTimeToFirstByteMs:Math.min(w,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(w,i.maxTimeToFirstByteMs)})}}var x=i.errorRetry||i.timeoutRetry||{},_={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:x.maxNumRetry||0,retryDelay:x.retryDelayMs||0,maxRetryDelay:x.maxRetryDelayMs||0},E={onSuccess:function(A,T,L,I){var P=s.getInternalLoader(L);s.resetInternalLoader(L.type);var G=A.data;G.indexOf("#EXTM3U")===0?(T.parsing.start=performance.now(),un.isMediaPlaylist(G)?s.handleTrackOrLevelPlaylist(A,T,L,I||null,P):s.handleMasterPlaylist(A,T,L,I)):s.handleManifestParsingError(A,L,new Error("no EXTM3U delimiter"),I||null,T)},onError:function(A,T,L,I){s.handleNetworkError(T,L,!1,A,I)},onTimeout:function(A,T,L){s.handleNetworkError(T,L,!0,void 0,A)}};u.load(e,_,E)},o.handleMasterPlaylist=function(e,t,i,a){var s=this.hls,d=e.data,u=ld(e,i),f=un.parseMasterPlaylist(d,u);if(f.playlistParsingError)this.handleManifestParsingError(e,i,f.playlistParsingError,a,t);else{var h=f.contentSteering,m=f.levels,w=f.sessionData,x=f.sessionKeys,_=f.startTimeOffset,E=f.variableList;this.variableList=E;var A=un.parseMasterPlaylistMedia(d,u,f),T=A.AUDIO,L=T===void 0?[]:T,I=A.SUBTITLES,P=A["CLOSED-CAPTIONS"];L.length&&(L.some(function(G){return!G.url})||!m[0].audioCodec||m[0].attrs.AUDIO||(j.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),L.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Pe({}),bitrate:0,url:""}))),s.trigger(y.MANIFEST_LOADED,{levels:m,audioTracks:L,subtitles:I,captions:P,contentSteering:h,url:u,stats:t,networkDetails:a,sessionData:w,sessionKeys:x,startTimeOffset:_,variableList:E})}},o.handleTrackOrLevelPlaylist=function(e,t,i,a,s){var d=this.hls,u=i.id,f=i.level,h=i.type,m=ld(e,i),w=te(f)?f:te(u)?u:0,x=sh(i),_=un.parseLevelPlaylist(e.data,m,w,x,0,this.variableList);if(h===no){var E={attrs:new Pe({}),bitrate:0,details:_,name:"",url:m};d.trigger(y.MANIFEST_LOADED,{levels:[E],audioTracks:[],url:m,stats:t,networkDetails:a,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),i.levelDetails=_,this.handlePlaylistLoaded(_,e,t,i,a,s)},o.handleManifestParsingError=function(e,t,i,a,s){this.hls.trigger(y.ERROR,{type:re.NETWORK_ERROR,details:z.MANIFEST_PARSING_ERROR,fatal:t.type===no,url:e.url,err:i,error:i,reason:i.message,response:e,context:t,networkDetails:a,stats:s})},o.handleNetworkError=function(e,t,i,a,s){i===void 0&&(i=!1);var d="A network "+(i?"timeout":"error"+(a?" (status "+a.code+")":""))+" occurred while loading "+e.type;e.type===Da?d+=": "+e.level+" id: "+e.id:e.type!==sr&&e.type!==wr||(d+=" id: "+e.id+' group-id: "'+e.groupId+'"');var u=new Error(d);j.warn("[playlist-loader]: "+d);var f=z.UNKNOWN,h=!1,m=this.getInternalLoader(e);switch(e.type){case no:f=i?z.MANIFEST_LOAD_TIMEOUT:z.MANIFEST_LOAD_ERROR,h=!0;break;case Da:f=i?z.LEVEL_LOAD_TIMEOUT:z.LEVEL_LOAD_ERROR,h=!1;break;case sr:f=i?z.AUDIO_TRACK_LOAD_TIMEOUT:z.AUDIO_TRACK_LOAD_ERROR,h=!1;break;case wr:f=i?z.SUBTITLE_TRACK_LOAD_TIMEOUT:z.SUBTITLE_LOAD_ERROR,h=!1}m&&this.resetInternalLoader(e.type);var w={type:re.NETWORK_ERROR,details:f,fatal:h,url:e.url,loader:m,context:e,error:u,networkDetails:t,stats:s};if(a){var x=(t==null?void 0:t.url)||e.url;w.response=b({url:x,data:void 0},a)}this.hls.trigger(y.ERROR,w)},o.handlePlaylistLoaded=function(e,t,i,a,s,d){var u=this.hls,f=a.type,h=a.level,m=a.id,w=a.groupId,x=a.deliveryDirectives,_=ld(t,a),E=sh(a),A=typeof a.level=="number"&&E===Lt?h:void 0;if(e.fragments.length){e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));var T=e.playlistParsingError;if(T)u.trigger(y.ERROR,{type:re.NETWORK_ERROR,details:z.LEVEL_PARSING_ERROR,fatal:!1,url:_,error:T,reason:T.message,response:t,context:a,level:A,parent:E,networkDetails:s,stats:i});else switch(e.live&&d&&(d.getCacheAge&&(e.ageHeader=d.getCacheAge()||0),d.getCacheAge&&!isNaN(e.ageHeader)||(e.ageHeader=0)),f){case no:case Da:u.trigger(y.LEVEL_LOADED,{details:e,level:A||0,id:m||0,stats:i,networkDetails:s,deliveryDirectives:x});break;case sr:u.trigger(y.AUDIO_TRACK_LOADED,{details:e,id:m||0,groupId:w||"",stats:i,networkDetails:s,deliveryDirectives:x});break;case wr:u.trigger(y.SUBTITLE_TRACK_LOADED,{details:e,id:m||0,groupId:w||"",stats:i,networkDetails:s,deliveryDirectives:x})}}else{var L=new Error("No Segments found in Playlist");u.trigger(y.ERROR,{type:re.NETWORK_ERROR,details:z.LEVEL_EMPTY_ERROR,fatal:!1,url:_,error:L,reason:L.message,response:t,context:a,level:A,parent:E,networkDetails:s,stats:i})}},l}();function lh(l,o){var e;try{e=new Event("addtrack")}catch{(e=document.createEvent("Event")).initEvent("addtrack",!1,!1)}e.track=l,o.dispatchEvent(e)}function dh(l,o){var e=l.mode;if(e==="disabled"&&(l.mode="hidden"),l.cues&&!l.cues.getCueById(o.id))try{if(l.addCue(o),!l.cues.getCueById(o.id))throw new Error("addCue is failed for: "+o)}catch(i){j.debug("[texttrack-utils]: "+i);try{var t=new self.TextTrackCue(o.startTime,o.endTime,o.text);t.id=o.id,l.addCue(t)}catch(a){j.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: "+a)}}e==="disabled"&&(l.mode=e)}function so(l){var o=l.mode;if(o==="disabled"&&(l.mode="hidden"),l.cues)for(var e=l.cues.length;e--;)l.removeCue(l.cues[e]);o==="disabled"&&(l.mode=o)}function dd(l,o,e,t){var i=l.mode;if(i==="disabled"&&(l.mode="hidden"),l.cues&&l.cues.length>0)for(var a=function(d,u,f){var h=[],m=function(E,A){if(A<E[0].startTime)return 0;var T=E.length-1;if(A>E[T].endTime)return-1;for(var L=0,I=T;L<=I;){var P=Math.floor((I+L)/2);if(A<E[P].startTime)I=P-1;else{if(!(A>E[P].startTime&&L<T))return P;L=P+1}}return E[L].startTime-A<A-E[I].startTime?L:I}(d,u);if(m>-1)for(var w=m,x=d.length;w<x;w++){var _=d[w];if(_.startTime>=u&&_.endTime<=f)h.push(_);else if(_.startTime>f)return h}return h}(l.cues,o,e),s=0;s<a.length;s++)t&&!t(a[s])||l.removeCue(a[s]);i==="disabled"&&(l.mode=i)}function ys(l){for(var o=[],e=0;e<l.length;e++){var t=l[e];t.kind!=="subtitles"&&t.kind!=="captions"||!t.label||o.push(l[e])}return o}var pn="org.id3",H1="com.apple.quicktime.HLS",hn="https://aomedia.org/emsg/ID3";function cd(){if(typeof self<"u")return self.VTTCue||self.TextTrackCue}function ch(l,o,e,t,i){var a=new l(o,e,"");try{a.value=t,i&&(a.type=i)}catch{a=new l(o,e,JSON.stringify(i?b({type:i},t):t))}return a}var ks=function(){var l=cd();try{l&&new l(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function ud(l,o){return l.getTime()/1e3-o}var K1=function(){function l(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}var o=l.prototype;return o.destroy=function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null},o._registerListeners=function(){var e=this.hls;e.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(y.LEVEL_UPDATED,this.onLevelUpdated,this)},o._unregisterListeners=function(){var e=this.hls;e.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(y.LEVEL_UPDATED,this.onLevelUpdated,this)},o.onMediaAttached=function(e,t){this.media=t.media},o.onMediaDetaching=function(){this.id3Track&&(so(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})},o.onManifestLoading=function(){this.dateRangeCuesAppended={}},o.createTrack=function(e){var t=this.getID3Track(e.textTracks);return t.mode="hidden",t},o.getID3Track=function(e){if(this.media){for(var t=0;t<e.length;t++){var i=e[t];if(i.kind==="metadata"&&i.label==="id3")return lh(i,this.media),i}return this.media.addTextTrack("metadata","id3")}},o.onFragParsingMetadata=function(e,t){if(this.media){var i=this.hls.config,a=i.enableEmsgMetadataCues,s=i.enableID3MetadataCues;if(a||s){var d=t.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));var u=cd();if(u)for(var f=0;f<d.length;f++){var h=d[f].type;if((h!==hn||a)&&s){var m=Nr(d[f].data);if(m){var w=d[f].pts,x=w+d[f].duration;x>ks&&(x=ks),x-w<=0&&(x=w+.25);for(var _=0;_<m.length;_++){var E=m[_];if(!Fr(E)){this.updateId3CueEnds(w,h);var A=ch(u,w,x,E,h);A&&this.id3Track.addCue(A)}}}}}}}},o.updateId3CueEnds=function(e,t){var i,a=(i=this.id3Track)==null?void 0:i.cues;if(a)for(var s=a.length;s--;){var d=a[s];d.type===t&&d.startTime<e&&d.endTime===ks&&(d.endTime=e)}},o.onBufferFlushing=function(e,t){var i=t.startOffset,a=t.endOffset,s=t.type,d=this.id3Track,u=this.hls;if(u){var f=u.config,h=f.enableEmsgMetadataCues,m=f.enableID3MetadataCues;d&&(h||m)&&dd(d,i,a,s==="audio"?function(w){return w.type===pn&&m}:s==="video"?function(w){return w.type===hn&&h}:function(w){return w.type===pn&&m||w.type===hn&&h})}},o.onLevelUpdated=function(e,t){var i=this,a=t.details;if(this.media&&a.hasProgramDateTime&&this.hls.config.enableDateRangeMetadataCues){var s=this.dateRangeCuesAppended,d=this.id3Track,u=a.dateRanges,f=Object.keys(u);if(d)for(var h=Object.keys(s).filter(function(L){return!f.includes(L)}),m=function(){var L=h[w];Object.keys(s[L].cues).forEach(function(I){d.removeCue(s[L].cues[I])}),delete s[L]},w=h.length;w--;)m();var x=a.fragments[a.fragments.length-1];if(f.length!==0&&te(x==null?void 0:x.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(var _=x.programDateTime/1e3-x.start,E=cd(),A=function(){var L=f[T],I=u[L],P=ud(I.startDate,_),G=s[L],$=(G==null?void 0:G.cues)||{},B=(G==null?void 0:G.durationKnown)||!1,J=ks,X=I.endDate;if(X)J=ud(X,_),B=!0;else if(I.endOnNext&&!B){var ee=f.reduce(function(Ke,je){if(je!==I.id){var We=u[je];if(We.class===I.class&&We.startDate>I.startDate&&(!Ke||I.startDate<Ke.startDate))return We}return Ke},null);ee&&(J=ud(ee.startDate,_),B=!0)}for(var ae,be,Te=Object.keys(I.attr),Ie=0;Ie<Te.length;Ie++){var De=Te[Ie];if((be=De)!=="ID"&&be!=="CLASS"&&be!=="START-DATE"&&be!=="DURATION"&&be!=="END-DATE"&&be!=="END-ON-NEXT"){var Ue=$[De];if(Ue)B&&!G.durationKnown&&(Ue.endTime=J);else if(E){var Ae=I.attr[De];qt(De)&&(ae=Ae,Ae=Uint8Array.from(ae.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer);var Ne=ch(E,P,J,{key:De,data:Ae},H1);Ne&&(Ne.id=L,i.id3Track.addCue(Ne),$[De]=Ne)}}}s[L]={cues:$,dateRange:I,durationKnown:B}},T=0;T<f.length;T++)A()}}},l}(),Y1=function(){function l(e){var t=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return t.timeupdate()},this.hls=e,this.config=e.config,this.registerListeners()}var o=l.prototype;return o.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},o.registerListeners=function(){this.hls.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(y.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(y.ERROR,this.onError,this)},o.unregisterListeners=function(){this.hls.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(y.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(y.ERROR,this.onError,this)},o.onMediaAttached=function(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},o.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},o.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},o.onLevelUpdated=function(e,t){var i=t.details;this.levelDetails=i,i.advanced&&this.timeupdate(),!i.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},o.onError=function(e,t){var i;t.details===z.BUFFER_STALLED_ERROR&&(this.stallCount++,(i=this.levelDetails)!=null&&i.live&&j.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))},o.timeupdate=function(){var e=this.media,t=this.levelDetails;if(e&&t){this.currentTime=e.currentTime;var i=this.computeLatency();if(i!==null){this._latency=i;var a=this.config,s=a.lowLatencyMode,d=a.maxLiveSyncPlaybackRate;if(s&&d!==1&&t.live){var u=this.targetLatency;if(u!==null){var f=i-u;if(f<Math.min(this.maxLatency,u+t.targetduration)&&f>.05&&this.forwardBufferLength>1){var h=Math.min(2,Math.max(1,d)),m=Math.round(2/(1+Math.exp(-.75*f-this.edgeStalled))*20)/20;e.playbackRate=Math.min(h,Math.max(1,m))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}}}}},o.estimateLiveEdge=function(){var e=this.levelDetails;return e===null?null:e.edge+e.age},o.computeLatency=function(){var e=this.estimateLiveEdge();return e===null?null:e-this.currentTime},C(l,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var e=this.config,t=this.levelDetails;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var e=this.levelDetails;if(e===null)return null;var t=e.holdBack,i=e.partHoldBack,a=e.targetduration,s=this.config,d=s.liveSyncDuration,u=s.liveSyncDurationCount,f=s.lowLatencyMode,h=this.hls.userConfig,m=f&&i||t;(h.liveSyncDuration||h.liveSyncDurationCount||m===0)&&(m=d!==void 0?d:u*a);var w=a;return m+Math.min(1*this.stallCount,w)}},{key:"liveSyncPosition",get:function(){var e=this.estimateLiveEdge(),t=this.targetLatency,i=this.levelDetails;if(e===null||t===null||i===null)return null;var a=i.edge,s=e-t-this.edgeStalled,d=a-i.totalduration,u=a-(this.config.lowLatencyMode&&i.partTarget||i.targetduration);return Math.min(Math.max(d,s),u)}},{key:"drift",get:function(){var e=this.levelDetails;return e===null?1:e.drift}},{key:"edgeStalled",get:function(){var e=this.levelDetails;if(e===null)return 0;var t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}},{key:"forwardBufferLength",get:function(){var e=this.media,t=this.levelDetails;if(!e||!t)return 0;var i=e.buffered.length;return(i?e.buffered.end(i-1):t.edge)-this.currentTime}}]),l}(),pd=["NONE","TYPE-0","TYPE-1",null],_s=["SDR","PQ","HLG"],uh="",W1="YES",q1="v2";function ph(l){var o=l.canSkipUntil,e=l.canSkipDateRanges,t=l.age;return o&&t<o/2?e?q1:W1:uh}var hh=function(){function l(o,e,t){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=o,this.part=e,this.skip=t}return l.prototype.addDirectives=function(o){var e=new self.URL(o);return this.msn!==void 0&&e.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&e.searchParams.set("_HLS_part",this.part.toString()),this.skip&&e.searchParams.set("_HLS_skip",this.skip),e.href},l}(),lo=function(){function l(e){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(function(t){return!!t}).map(function(t){return t.substring(0,4)}).join(","),this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}var o=l.prototype;return o.hasAudioGroup=function(e){return fh(this._audioGroups,e)},o.hasSubtitleGroup=function(e){return fh(this._subtitleGroups,e)},o.addGroupId=function(e,t){if(t){if(e==="audio"){var i=this._audioGroups;i||(i=this._audioGroups=[]),i.indexOf(t)===-1&&i.push(t)}else if(e==="text"){var a=this._subtitleGroups;a||(a=this._subtitleGroups=[]),a.indexOf(t)===-1&&a.push(t)}}},o.addFallback=function(){},C(l,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"averageBitrate",get:function(){return this._avgBitrate||this.realBitrate||this.bitrate}},{key:"attrs",get:function(){return this._attrs[0]}},{key:"codecs",get:function(){return this.attrs.CODECS||""}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"videoRange",get:function(){return this.attrs["VIDEO-RANGE"]||"SDR"}},{key:"score",get:function(){return this.attrs.optionalFloat("SCORE",0)}},{key:"uri",get:function(){return this.url[0]||""}},{key:"audioGroups",get:function(){return this._audioGroups}},{key:"subtitleGroups",get:function(){return this._subtitleGroups}},{key:"urlId",get:function(){return 0},set:function(e){}},{key:"audioGroupIds",get:function(){return this.audioGroups?[this.audioGroupId]:void 0}},{key:"textGroupIds",get:function(){return this.subtitleGroups?[this.textGroupId]:void 0}},{key:"audioGroupId",get:function(){var e;return(e=this.audioGroups)==null?void 0:e[0]}},{key:"textGroupId",get:function(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}}]),l}();function fh(l,o){return!(!o||!l)&&l.indexOf(o)!==-1}function hd(l,o){var e=o.startPTS;if(te(e)){var t,i=0;o.sn>l.sn?(i=e-l.start,t=l):(i=l.start-e,t=o),t.duration!==i&&(t.duration=i)}else o.sn>l.sn?l.cc===o.cc&&l.minEndPTS?o.start=l.start+(l.minEndPTS-l.start):o.start=l.start+l.duration:o.start=Math.max(l.start-o.duration,0)}function gh(l,o,e,t,i,a){t-e<=0&&(j.warn("Fragment should have a positive duration",o),t=e+o.duration,a=i+o.duration);var s=e,d=t,u=o.startPTS,f=o.endPTS;if(te(u)){var h=Math.abs(u-e);te(o.deltaPTS)?o.deltaPTS=Math.max(h,o.deltaPTS):o.deltaPTS=h,s=Math.max(e,u),e=Math.min(e,u),i=Math.min(i,o.startDTS),d=Math.min(t,f),t=Math.max(t,f),a=Math.max(a,o.endDTS)}var m=e-o.start;o.start!==0&&(o.start=e),o.duration=t-o.start,o.startPTS=e,o.maxStartPTS=s,o.startDTS=i,o.endPTS=t,o.minEndPTS=d,o.endDTS=a;var w,x=o.sn;if(!l||x<l.startSN||x>l.endSN)return 0;var _=x-l.startSN,E=l.fragments;for(E[_]=o,w=_;w>0;w--)hd(E[w],E[w-1]);for(w=_;w<E.length-1;w++)hd(E[w],E[w+1]);return l.fragmentHint&&hd(E[E.length-1],l.fragmentHint),l.PTSKnown=l.alignedSliding=!0,m}function X1(l,o){for(var e=null,t=l.fragments,i=t.length-1;i>=0;i--){var a=t[i].initSegment;if(a){e=a;break}}l.fragmentHint&&delete l.fragmentHint.endPTS;var s,d,u,f,h,m=0;if(function(T,L,I){for(var P=L.skippedSegments,G=Math.max(T.startSN,L.startSN)-L.startSN,$=(T.fragmentHint?1:0)+(P?L.endSN:Math.min(T.endSN,L.endSN))-L.startSN,B=L.startSN-T.startSN,J=L.fragmentHint?L.fragments.concat(L.fragmentHint):L.fragments,X=T.fragmentHint?T.fragments.concat(T.fragmentHint):T.fragments,ee=G;ee<=$;ee++){var ae=X[B+ee],be=J[ee];P&&!be&&ee<P&&(be=L.fragments[ee]=ae),ae&&be&&I(ae,be)}}(l,o,function(T,L){T.relurl&&(m=T.cc-L.cc),te(T.startPTS)&&te(T.endPTS)&&(L.start=L.startPTS=T.startPTS,L.startDTS=T.startDTS,L.maxStartPTS=T.maxStartPTS,L.endPTS=T.endPTS,L.endDTS=T.endDTS,L.minEndPTS=T.minEndPTS,L.duration=T.endPTS-T.startPTS,L.duration&&(s=L),o.PTSKnown=o.alignedSliding=!0),L.elementaryStreams=T.elementaryStreams,L.loader=T.loader,L.stats=T.stats,T.initSegment&&(L.initSegment=T.initSegment,e=T.initSegment)}),e&&(o.fragmentHint?o.fragments.concat(o.fragmentHint):o.fragments).forEach(function(T){var L;!T||T.initSegment&&T.initSegment.relurl!==((L=e)==null?void 0:L.relurl)||(T.initSegment=e)}),o.skippedSegments)if(o.deltaUpdateFailed=o.fragments.some(function(T){return!T}),o.deltaUpdateFailed){j.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var w=o.skippedSegments;w--;)o.fragments.shift();o.startSN=o.fragments[0].sn,o.startCC=o.fragments[0].cc}else o.canSkipDateRanges&&(o.dateRanges=(d=l.dateRanges,u=o.dateRanges,f=o.recentlyRemovedDateranges,h=R({},d),f&&f.forEach(function(T){delete h[T]}),Object.keys(u).forEach(function(T){var L=new Mt(u[T].attr,h[T]);L.isValid?h[T]=L:j.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'+JSON.stringify(u[T].attr)+'"')}),h));var x=o.fragments;if(m){j.warn("discontinuity sliding from playlist, take drift into account");for(var _=0;_<x.length;_++)x[_].cc+=m}o.skippedSegments&&(o.startCC=o.fragments[0].cc),function(T,L,I){if(T&&L)for(var P=0,G=0,$=T.length;G<=$;G++){var B=T[G],J=L[G+P];B&&J&&B.index===J.index&&B.fragment.sn===J.fragment.sn?I(B,J):P--}}(l.partList,o.partList,function(T,L){L.elementaryStreams=T.elementaryStreams,L.stats=T.stats}),s?gh(o,s,s.startPTS,s.endPTS,s.startDTS,s.endDTS):mh(l,o),x.length&&(o.totalduration=o.edge-x[0].start),o.driftStartTime=l.driftStartTime,o.driftStart=l.driftStart;var E=o.advancedDateTime;if(o.advanced&&E){var A=o.edge;o.driftStart||(o.driftStartTime=E,o.driftStart=A),o.driftEndTime=E,o.driftEnd=A}else o.driftEndTime=l.driftEndTime,o.driftEnd=l.driftEnd,o.advancedDateTime=l.advancedDateTime}function mh(l,o){var e=o.startSN+o.skippedSegments-l.startSN,t=l.fragments;e<0||e>=t.length||fd(o,t[e].start)}function fd(l,o){if(o){for(var e=l.fragments,t=l.skippedSegments;t<e.length;t++)e[t].start+=o;l.fragmentHint&&(l.fragmentHint.start+=o)}}function vh(l,o,e){var t;return l!=null&&l.details?bh((t=l.details)==null?void 0:t.partList,o,e):null}function bh(l,o,e){if(l)for(var t=l.length;t--;){var i=l[t];if(i.index===e&&i.fragment.sn===o)return i}return null}function wh(l){l.forEach(function(o,e){var t=o.details;t!=null&&t.fragments&&t.fragments.forEach(function(i){i.level=e})})}function Ts(l){switch(l.details){case z.FRAG_LOAD_TIMEOUT:case z.KEY_LOAD_TIMEOUT:case z.LEVEL_LOAD_TIMEOUT:case z.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function xh(l,o){var e=Ts(o);return l.default[(e?"timeout":"error")+"Retry"]}function gd(l,o){var e=l.backoff==="linear"?1:Math.pow(2,o);return Math.min(e*l.retryDelayMs,l.maxRetryDelayMs)}function yh(l){return b(b({},l),{errorRetry:null,timeoutRetry:null})}function Es(l,o,e,t){if(!l)return!1;var i=t==null?void 0:t.code,a=o<l.maxNumRetry&&(function(s){return s===0&&navigator.onLine===!1||!!s&&(s<400||s>499)}(i)||!!e);return l.shouldRetry?l.shouldRetry(l,o,e,t,a):a}var kh=function(l,o){for(var e=0,t=l.length-1,i=null,a=null;e<=t;){var s=o(a=l[i=(e+t)/2|0]);if(s>0)e=i+1;else{if(!(s<0))return a;t=i-1}}return null};function Ss(l,o,e,t){e===void 0&&(e=0),t===void 0&&(t=0);var i=null;if(l){i=o[l.sn-o[0].sn+1]||null;var a=l.endDTS-e;a>0&&a<15e-7&&(e+=15e-7)}else e===0&&o[0].start===0&&(i=o[0]);if(i&&(!l||l.level===i.level)&&md(e,t,i)===0)return i;var s=kh(o,md.bind(null,e,t));return!s||s===l&&i?i:s}function md(l,o,e){if(l===void 0&&(l=0),o===void 0&&(o=0),e.start<=l&&e.start+e.duration>l)return 0;var t=Math.min(o,e.duration+(e.deltaPTS?e.deltaPTS:0));return e.start+e.duration-t<=l?1:e.start-t>l&&e.start?-1:0}function Q1(l,o,e){var t=1e3*Math.min(o,e.duration+(e.deltaPTS?e.deltaPTS:0));return(e.endProgramDateTime||0)-t>l}var vd=0,Ur=2,J1=3,Ls=5,co=0,bd=1,_h=2,Z1=function(){function l(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=j.log.bind(j,"[info]:"),this.warn=j.warn.bind(j,"[warning]:"),this.error=j.error.bind(j,"[error]:"),this.registerListeners()}var o=l.prototype;return o.registerListeners=function(){var e=this.hls;e.on(y.ERROR,this.onError,this),e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.LEVEL_UPDATED,this.onLevelUpdated,this)},o.unregisterListeners=function(){var e=this.hls;e&&(e.off(y.ERROR,this.onError,this),e.off(y.ERROR,this.onErrorOut,this),e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.LEVEL_UPDATED,this.onLevelUpdated,this))},o.destroy=function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}},o.startLoad=function(e){},o.stopLoad=function(){this.playlistError=0},o.getVariantLevelIndex=function(e){return(e==null?void 0:e.type)===Lt?e.level:this.hls.loadLevel},o.onManifestLoading=function(){this.playlistError=0,this.penalizedRenditions={}},o.onLevelUpdated=function(){this.playlistError=0},o.onError=function(e,t){var i,a;if(!t.fatal){var s=this.hls,d=t.context;switch(t.details){case z.FRAG_LOAD_ERROR:case z.FRAG_LOAD_TIMEOUT:case z.KEY_LOAD_ERROR:case z.KEY_LOAD_TIMEOUT:return void(t.errorAction=this.getFragRetryOrSwitchAction(t));case z.FRAG_PARSING_ERROR:if((i=t.frag)!=null&&i.gap)return void(t.errorAction={action:vd,flags:co});case z.FRAG_GAP:case z.FRAG_DECRYPT_ERROR:return t.errorAction=this.getFragRetryOrSwitchAction(t),void(t.errorAction.action=Ur);case z.LEVEL_EMPTY_ERROR:case z.LEVEL_PARSING_ERROR:var u,f,h=t.parent===Lt?t.level:s.loadLevel;return void(t.details===z.LEVEL_EMPTY_ERROR&&(u=t.context)!=null&&(f=u.levelDetails)!=null&&f.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,h):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,h)));case z.LEVEL_LOAD_ERROR:case z.LEVEL_LOAD_TIMEOUT:return void(typeof(d==null?void 0:d.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,d.level)));case z.AUDIO_TRACK_LOAD_ERROR:case z.AUDIO_TRACK_LOAD_TIMEOUT:case z.SUBTITLE_LOAD_ERROR:case z.SUBTITLE_TRACK_LOAD_TIMEOUT:if(d){var m=s.levels[s.loadLevel];if(m&&(d.type===sr&&m.hasAudioGroup(d.groupId)||d.type===wr&&m.hasSubtitleGroup(d.groupId)))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.loadLevel),t.errorAction.action=Ur,void(t.errorAction.flags=bd)}return;case z.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:var w=s.levels[s.loadLevel],x=w==null?void 0:w.attrs["HDCP-LEVEL"];return void(x?t.errorAction={action:Ur,flags:_h,hdcpLevel:x}:this.keySystemError(t));case z.BUFFER_ADD_CODEC_ERROR:case z.REMUX_ALLOC_ERROR:case z.BUFFER_APPEND_ERROR:return void(t.errorAction=this.getLevelSwitchAction(t,(a=t.level)!=null?a:s.loadLevel));case z.INTERNAL_EXCEPTION:case z.BUFFER_APPENDING_ERROR:case z.BUFFER_FULL_ERROR:case z.LEVEL_SWITCH_ERROR:case z.BUFFER_STALLED_ERROR:case z.BUFFER_SEEK_OVER_HOLE:case z.BUFFER_NUDGE_ON_STALL:return void(t.errorAction={action:vd,flags:co})}t.type===re.KEY_SYSTEM_ERROR&&this.keySystemError(t)}},o.keySystemError=function(e){var t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)},o.getPlaylistRetryOrSwitchAction=function(e,t){var i=xh(this.hls.config.playlistLoadPolicy,e),a=this.playlistError++;if(Es(i,a,Ts(e),e.response))return{action:Ls,flags:co,retryConfig:i,retryCount:a};var s=this.getLevelSwitchAction(e,t);return i&&(s.retryConfig=i,s.retryCount=a),s},o.getFragRetryOrSwitchAction=function(e){var t=this.hls,i=this.getVariantLevelIndex(e.frag),a=t.levels[i],s=t.config,d=s.fragLoadPolicy,u=s.keyLoadPolicy,f=xh(e.details.startsWith("key")?u:d,e),h=t.levels.reduce(function(w,x){return w+x.fragmentError},0);if(a&&(e.details!==z.FRAG_GAP&&a.fragmentError++,Es(f,h,Ts(e),e.response)))return{action:Ls,flags:co,retryConfig:f,retryCount:h};var m=this.getLevelSwitchAction(e,i);return f&&(m.retryConfig=f,m.retryCount=h),m},o.getLevelSwitchAction=function(e,t){var i=this.hls;t==null&&(t=i.loadLevel);var a=this.hls.levels[t];if(a){var s,d,u=e.details;a.loadError++,u===z.BUFFER_APPEND_ERROR&&a.fragmentError++;var f=-1,h=i.levels,m=i.loadLevel,w=i.minAutoLevel,x=i.maxAutoLevel;i.autoLevelEnabled||(i.loadLevel=-1);for(var _,E=(s=e.frag)==null?void 0:s.type,A=(E===Xi&&u===z.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(u===z.BUFFER_ADD_CODEC_ERROR||u===z.BUFFER_APPEND_ERROR))&&h.some(function(B){var J=B.audioCodec;return a.audioCodec!==J}),T=e.sourceBufferName==="video"&&(u===z.BUFFER_ADD_CODEC_ERROR||u===z.BUFFER_APPEND_ERROR)&&h.some(function(B){var J=B.codecSet,X=B.audioCodec;return a.codecSet!==J&&a.audioCodec===X}),L=(d=e.context)!=null?d:{},I=L.type,P=L.groupId,G=function(){var B=($+m)%h.length;if(B!==m&&B>=w&&B<=x&&h[B].loadError===0){var J,X,ee=h[B];if(u===z.FRAG_GAP&&e.frag){var ae=h[B].details;if(ae){var be=Ss(e.frag,ae.fragments,e.frag.start);if(be!=null&&be.gap)return 0}}else if(I===sr&&ee.hasAudioGroup(P)||I===wr&&ee.hasSubtitleGroup(P)||E===Xi&&(J=a.audioGroups)!=null&&J.some(function(Te){return ee.hasAudioGroup(Te)})||E===Br&&(X=a.subtitleGroups)!=null&&X.some(function(Te){return ee.hasSubtitleGroup(Te)})||A&&a.audioCodec===ee.audioCodec||!A&&a.audioCodec!==ee.audioCodec||T&&a.codecSet===ee.codecSet)return 0;return f=B,1}},$=h.length;$--&&((_=G())===0||_!==1););if(f>-1&&i.loadLevel!==f)return e.levelRetry=!0,this.playlistError=0,{action:Ur,flags:co,nextAutoLevel:f}}return{action:Ur,flags:bd}},o.onErrorOut=function(e,t){var i;switch((i=t.errorAction)==null?void 0:i.action){case vd:break;case Ur:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===z.FRAG_GAP?/MediaSource readyState: ended/.test(t.error.message)&&(this.warn('MediaSource ended after "'+t.sourceBufferName+'" sourceBuffer append error. Attempting to recover from media error.'),this.hls.recoverMediaError()):t.fatal=!0}t.fatal&&this.hls.stopLoad()},o.sendAlternateToPenaltyBox=function(e){var t=this.hls,i=e.errorAction;if(i){var a=i.flags,s=i.hdcpLevel,d=i.nextAutoLevel;switch(a){case co:this.switchLevel(e,d);break;case _h:s&&(t.maxHdcpLevel=pd[pd.indexOf(s)-1],i.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'+t.maxHdcpLevel+'" or lower')}i.resolved||this.switchLevel(e,d)}},o.switchLevel=function(e,t){t!==void 0&&e.errorAction&&(this.warn("switching to level "+t+" after "+e.details),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)},l}(),wd=function(){function l(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=j.log.bind(j,t+":"),this.warn=j.warn.bind(j,t+":"),this.hls=e}var o=l.prototype;return o.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},o.clearTimer=function(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)},o.startLoad=function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()},o.stopLoad=function(){this.canLoad=!1,this.clearTimer()},o.switchParams=function(e,t,i){var a=t==null?void 0:t.renditionReports;if(a){for(var s=-1,d=0;d<a.length;d++){var u=a[d],f=void 0;try{f=new self.URL(u.URI,t.url).href}catch(E){j.warn("Could not construct new URL for Rendition Report: "+E),f=u.URI||""}if(f===e){s=d;break}f===e.substring(0,f.length)&&(s=d)}if(s!==-1){var h=a[s],m=parseInt(h["LAST-MSN"])||(t==null?void 0:t.lastPartSn),w=parseInt(h["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){var x=Math.min(t.age-t.partTarget,t.targetduration);w>=0&&x>t.partTarget&&(w+=1)}var _=i&&ph(i);return new hh(m,w>=0?w:void 0,_)}}},o.loadPlaylist=function(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())},o.shouldLoadPlaylist=function(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)},o.shouldReloadPlaylist=function(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)},o.playlistLoaded=function(e,t,i){var a=this,s=t.details,d=t.stats,u=self.performance.now(),f=d.loading.first?Math.max(0,u-d.loading.first):0;if(s.advancedDateTime=Date.now()-f,s.live||i!=null&&i.live){if(s.reloaded(i),i&&this.log("live playlist "+e+" "+(s.advanced?"REFRESHED "+s.lastPartSn+"-"+s.lastPartIndex:s.updated?"UPDATED":"MISSED")),i&&s.fragments.length>0&&X1(i,s),!this.canLoad||!s.live)return;var h,m=void 0,w=void 0;if(s.canBlockReload&&s.endSN&&s.advanced){var x=this.hls.config.lowLatencyMode,_=s.lastPartSn,E=s.endSN,A=s.lastPartIndex,T=_===E;A!==-1?(m=T?E+1:_,w=T?x?0:A:A+1):m=E+1;var L=s.age,I=L+s.ageHeader,P=Math.min(I-s.partTarget,1.5*s.targetduration);if(P>0){if(i&&P>i.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+i.tuneInGoal+" to: "+P+" with playlist age: "+s.age),P=0;else{var G=Math.floor(P/s.targetduration);m+=G,w!==void 0&&(w+=Math.round(P%s.targetduration/s.partTarget)),this.log("CDN Tune-in age: "+s.ageHeader+"s last advanced "+L.toFixed(2)+"s goal: "+P+" skip sn "+G+" to part "+w)}s.tuneInGoal=P}if(h=this.getDeliveryDirectives(s,t.deliveryDirectives,m,w),x||!T)return void this.loadPlaylist(h)}else(s.canBlockReload||s.canSkipUntil)&&(h=this.getDeliveryDirectives(s,t.deliveryDirectives,m,w));var $=this.hls.mainForwardBufferInfo,B=$?$.end-$.len:0,J=function(ee,ae){ae===void 0&&(ae=1/0);var be=1e3*ee.targetduration;if(ee.updated){var Te=ee.fragments;if(Te.length&&4*be>ae){var Ie=1e3*Te[Te.length-1].duration;Ie<be&&(be=Ie)}}else be/=2;return Math.round(be)}(s,1e3*(s.edge-B));s.updated&&u>this.requestScheduled+J&&(this.requestScheduled=d.loading.start),m!==void 0&&s.canBlockReload?this.requestScheduled=d.loading.first+J-(1e3*s.partTarget||1e3):this.requestScheduled===-1||this.requestScheduled+J<u?this.requestScheduled=u:this.requestScheduled-u<=0&&(this.requestScheduled+=J);var X=this.requestScheduled-u;X=Math.max(0,X),this.log("reload live playlist "+e+" in "+Math.round(X)+" ms"),this.timer=self.setTimeout(function(){return a.loadPlaylist(h)},X)}else this.clearTimer()},o.getDeliveryDirectives=function(e,t,i,a){var s=ph(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(i=t.msn,a=t.part,s=uh),new hh(i,a,s)},o.checkRetry=function(e){var t=this,i=e.details,a=Ts(e),s=e.errorAction,d=s||{},u=d.action,f=d.retryCount,h=f===void 0?0:f,m=d.retryConfig,w=!!s&&!!m&&(u===Ls||!s.resolved&&u===Ur);if(w){var x;if(this.requestScheduled=-1,h>=m.maxNumRetry)return!1;if(a&&(x=e.context)!=null&&x.deliveryDirectives)this.warn("Retrying playlist loading "+(h+1)+"/"+m.maxNumRetry+' after "'+i+'" without delivery-directives'),this.loadPlaylist();else{var _=gd(m,h);this.timer=self.setTimeout(function(){return t.loadPlaylist()},_),this.warn("Retrying playlist loading "+(h+1)+"/"+m.maxNumRetry+' after "'+i+'" in '+_+"ms")}e.levelRetry=!0,s.resolved=!0}return w},l}(),uo=function(){function l(e,t,i){t===void 0&&(t=0),i===void 0&&(i=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=i}var o=l.prototype;return o.sample=function(e,t){var i=Math.pow(this.alpha_,e);this.estimate_=t*(1-i)+i*this.estimate_,this.totalWeight_+=e},o.getTotalWeight=function(){return this.totalWeight_},o.getEstimate=function(){if(this.alpha_){var e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_},l}(),ek=function(){function l(e,t,i,a){a===void 0&&(a=100),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=i,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new uo(e),this.fast_=new uo(t),this.defaultTTFB_=a,this.ttfb_=new uo(e)}var o=l.prototype;return o.update=function(e,t){var i=this.slow_,a=this.fast_,s=this.ttfb_;i.halfLife!==e&&(this.slow_=new uo(e,i.getEstimate(),i.getTotalWeight())),a.halfLife!==t&&(this.fast_=new uo(t,a.getEstimate(),a.getTotalWeight())),s.halfLife!==e&&(this.ttfb_=new uo(e,s.getEstimate(),s.getTotalWeight()))},o.sample=function(e,t){var i=(e=Math.max(e,this.minDelayMs_))/1e3,a=8*t/i;this.fast_.sample(i,a),this.slow_.sample(i,a)},o.sampleTTFB=function(e){var t=e/1e3,i=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(i,Math.max(e,5))},o.canEstimate=function(){return this.fast_.getTotalWeight()>=this.minWeight_},o.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},o.getEstimateTTFB=function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_},o.destroy=function(){},l}(),Th={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Eh={};function tk(l,o,e){var t=l.videoCodec,i=l.audioCodec;if(!t||!i||!e)return Promise.resolve(Th);var a={width:l.width,height:l.height,bitrate:Math.ceil(Math.max(.9*l.bitrate,l.averageBitrate)),framerate:l.frameRate||30},s=l.videoRange;s!=="SDR"&&(a.transferFunction=s.toLowerCase());var d=t.split(",").map(function(u){return{type:"media-source",video:b(b({},a),{},{contentType:cn(u,"video")})}});return i&&l.audioGroups&&l.audioGroups.forEach(function(u){var f;u&&((f=o.groups[u])==null||f.tracks.forEach(function(h){if(h.groupId===u){var m=h.channels||"",w=parseFloat(m);te(w)&&w>2&&d.push.apply(d,i.split(",").map(function(x){return{type:"media-source",audio:{contentType:cn(x,"audio"),channels:""+w}}}))}}))}),Promise.all(d.map(function(u){var f=function(h){var m=h.audio,w=h.video,x=w||m;if(x){var _=x.contentType.split('"')[1];if(w)return"r"+w.height+"x"+w.width+"f"+Math.ceil(w.framerate)+(w.transferFunction||"sd")+"_"+_+"_"+Math.ceil(w.bitrate/1e5);if(m)return"c"+m.channels+(m.spatialRendering?"s":"n")+"_"+_}return""}(u);return Eh[f]||(Eh[f]=e.decodingInfo(u))})).then(function(u){return{supported:!u.some(function(f){return!f.supported}),configurations:d,decodingInfoResults:u}}).catch(function(u){return{supported:!1,configurations:d,decodingInfoResults:[],error:u}})}function ik(l,o){var e=!1,t=[];return l&&(e=l!=="SDR",t=[l]),o&&(t=o.allowedVideoRanges||_s.slice(0),t=(e=o.preferHDR!==void 0?o.preferHDR:function(){if(typeof matchMedia=="function"){var i=matchMedia("(dynamic-range: high)"),a=matchMedia("bad query");if(i.media!==a.media)return i.matches===!0}return!1}())?t.filter(function(i){return i!=="SDR"}):["SDR"]),{preferHDR:e,allowedVideoRanges:t}}function Vr(l,o){j.log('[abr] start candidates with "'+l+'" ignored because '+o)}function xr(l,o,e){if("attrs"in l){var t=o.indexOf(l);if(t!==-1)return t}for(var i=0;i<o.length;i++)if(po(l,o[i],e))return i;return-1}function po(l,o,e){var t=l.groupId,i=l.name,a=l.lang,s=l.assocLang,d=l.characteristics,u=l.default,f=l.forced;return(t===void 0||o.groupId===t)&&(i===void 0||o.name===i)&&(a===void 0||o.lang===a)&&(a===void 0||o.assocLang===s)&&(u===void 0||o.default===u)&&(f===void 0||o.forced===f)&&(d===void 0||function(h,m){m===void 0&&(m="");var w=h.split(","),x=m.split(",");return w.length===x.length&&!w.some(function(_){return x.indexOf(_)===-1})}(d,o.characteristics))&&(e===void 0||e(l,o))}function ho(l,o){var e=l.audioCodec,t=l.channels;return!(e!==void 0&&(o.audioCodec||"").substring(0,4)!==e.substring(0,4)||t!==void 0&&t!==(o.channels||"2"))}function Sh(l,o,e){for(var t=o;t;t--)if(e(l[t]))return t;for(var i=o+1;i<l.length;i++)if(e(l[i]))return i;return-1}var rk=function(){function l(e){var t=this;this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this._abandonRulesCheck=function(){var i=t.fragCurrent,a=t.partCurrent,s=t.hls,d=s.autoLevelEnabled,u=s.media;if(i&&u){var f=performance.now(),h=a?a.stats:i.stats,m=a?a.duration:i.duration,w=f-h.loading.start,x=s.minAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||i.level<=x)return t.clearTimer(),void(t._nextAutoLevel=-1);if(d&&!u.paused&&u.playbackRate&&u.readyState){var _=s.mainForwardBufferInfo;if(_!==null){var E=t.bwEstimator.getEstimateTTFB(),A=Math.abs(u.playbackRate);if(!(w<=Math.max(E,m/(2*A)*1e3))){var T=_.len/A,L=h.loading.first?h.loading.first-h.loading.start:-1,I=h.loaded&&L>-1,P=t.getBwEstimate(),G=s.levels,$=G[i.level],B=h.total||Math.max(h.loaded,Math.round(m*$.averageBitrate/8)),J=I?w-L:w;J<1&&I&&(J=Math.min(w,8*h.loaded/P));var X=I?1e3*h.loaded/J:0,ee=X?(B-h.loaded)/X:8*B/P+E/1e3;if(!(ee<=T)){var ae,be=X?8*X:P,Te=Number.POSITIVE_INFINITY;for(ae=i.level-1;ae>x;ae--){var Ie=G[ae].maxBitrate;if((Te=t.getTimeToLoadFrag(E/1e3,be,m*Ie,!G[ae].details))<T)break}if(!(Te>=ee||Te>10*m)){s.nextLoadLevel=s.nextAutoLevel=ae,I?t.bwEstimator.sample(w-Math.min(E,L),h.loaded):t.bwEstimator.sampleTTFB(w);var De=G[ae].maxBitrate;t.getBwEstimate()*t.hls.config.abrBandWidthUpFactor>De&&t.resetEstimator(De),t.clearTimer(),j.warn("[abr] Fragment "+i.sn+(a?" part "+a.index:"")+" of level "+i.level+` is loading too slowly; Time to underbuffer: `+T.toFixed(3)+` s Estimated load time for current fragment: `+ee.toFixed(3)+` s Estimated load time for down switch fragment: `+Te.toFixed(3)+` s TTFB estimate: `+(0|L)+` ms Current BW estimate: `+(te(P)?0|P:"Unknown")+` bps New BW estimate: `+(0|t.getBwEstimate())+` bps Switching to level `+ae+" @ "+(0|De)+" bps"),s.trigger(y.FRAG_LOAD_EMERGENCY_ABORTED,{frag:i,part:a,stats:h})}}}}}}},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}var o=l.prototype;return o.resetEstimator=function(e){e&&(j.log("setting initial bwe to "+e),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()},o.initEstimator=function(){var e=this.hls.config;return new ek(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)},o.registerListeners=function(){var e=this.hls;e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.FRAG_LOADING,this.onFragLoading,this),e.on(y.FRAG_LOADED,this.onFragLoaded,this),e.on(y.FRAG_BUFFERED,this.onFragBuffered,this),e.on(y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(y.LEVEL_LOADED,this.onLevelLoaded,this),e.on(y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(y.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(y.ERROR,this.onError,this)},o.unregisterListeners=function(){var e=this.hls;e&&(e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.FRAG_LOADING,this.onFragLoading,this),e.off(y.FRAG_LOADED,this.onFragLoaded,this),e.off(y.FRAG_BUFFERED,this.onFragBuffered,this),e.off(y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(y.LEVEL_LOADED,this.onLevelLoaded,this),e.off(y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(y.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(y.ERROR,this.onError,this))},o.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null},o.onManifestLoading=function(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()},o.onLevelsUpdated=function(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null},o.onMaxAutoLevelUpdated=function(){this.firstSelection=-1,this.nextAutoLevelKey=""},o.onFragLoading=function(e,t){var i,a=t.frag;this.ignoreFragment(a)||(a.bitrateTest||(this.fragCurrent=a,this.partCurrent=(i=t.part)!=null?i:null),this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100))},o.onLevelSwitching=function(e,t){this.clearTimer()},o.onError=function(e,t){if(!t.fatal)switch(t.details){case z.BUFFER_ADD_CODEC_ERROR:case z.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case z.FRAG_LOAD_TIMEOUT:var i=t.frag,a=this.fragCurrent,s=this.partCurrent;if(i&&a&&i.sn===a.sn&&i.level===a.level){var d=performance.now(),u=s?s.stats:i.stats,f=d-u.loading.start,h=u.loading.first?u.loading.first-u.loading.start:-1;if(u.loaded&&h>-1){var m=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(f-Math.min(m,h),u.loaded)}else this.bwEstimator.sampleTTFB(f)}}},o.getTimeToLoadFrag=function(e,t,i,a){return e+i/t+(a?this.lastLevelLoadSec:0)},o.onLevelLoaded=function(e,t){var i=this.hls.config,a=t.stats.loading,s=a.end-a.start;te(s)&&(this.lastLevelLoadSec=s/1e3),t.details.live?this.bwEstimator.update(i.abrEwmaSlowLive,i.abrEwmaFastLive):this.bwEstimator.update(i.abrEwmaSlowVoD,i.abrEwmaFastVoD)},o.onFragLoaded=function(e,t){var i=t.frag,a=t.part,s=a?a.stats:i.stats;if(i.type===Lt&&this.bwEstimator.sampleTTFB(s.loading.first-s.loading.start),!this.ignoreFragment(i)){if(this.clearTimer(),i.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){var d=a?a.duration:i.duration,u=this.hls.levels[i.level],f=(u.loaded?u.loaded.bytes:0)+s.loaded,h=(u.loaded?u.loaded.duration:0)+d;u.loaded={bytes:f,duration:h},u.realBitrate=Math.round(8*f/h)}if(i.bitrateTest){var m={stats:s,frag:i,part:a,id:i.type};this.onFragBuffered(y.FRAG_BUFFERED,m),i.bitrateTest=!1}else this.lastLoadedFragLevel=i.level}},o.onFragBuffered=function(e,t){var i=t.frag,a=t.part,s=a!=null&&a.stats.loaded?a.stats:i.stats;if(!s.aborted&&!this.ignoreFragment(i)){var d=s.parsing.end-s.loading.start-Math.min(s.loading.first-s.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(d,s.loaded),s.bwEstimate=this.getBwEstimate(),i.bitrateTest?this.bitrateTestDelay=d/1e3:this.bitrateTestDelay=0}},o.ignoreFragment=function(e){return e.type!==Lt||e.sn==="initSegment"},o.clearTimer=function(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)},o.getAutoLevelKey=function(){return this.getBwEstimate()+"_"+this.getStarvationDelay().toFixed(2)},o.getNextABRAutoLevel=function(){var e=this.fragCurrent,t=this.partCurrent,i=this.hls,a=i.maxAutoLevel,s=i.config,d=i.minAutoLevel,u=t?t.duration:e?e.duration:0,f=this.getBwEstimate(),h=this.getStarvationDelay(),m=s.abrBandWidthFactor,w=s.abrBandWidthUpFactor;if(h){var x=this.findBestLevel(f,d,a,h,0,m,w);if(x>=0)return x}var _=u?Math.min(u,s.maxStarvationDelay):s.maxStarvationDelay;if(!h){var E=this.bitrateTestDelay;E&&(_=(u?Math.min(u,s.maxLoadingDelay):s.maxLoadingDelay)-E,j.info("[abr] bitrate test took "+Math.round(1e3*E)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*_)+" ms"),m=w=1)}var A=this.findBestLevel(f,d,a,h,_,m,w);if(j.info("[abr] "+(h?"rebuffering expected":"buffer is empty")+", optimal quality level "+A),A>-1)return A;var T=i.levels[d],L=i.levels[i.loadLevel];return(T==null?void 0:T.bitrate)<(L==null?void 0:L.bitrate)?d:i.loadLevel},o.getStarvationDelay=function(){var e=this.hls,t=e.media;if(!t)return 1/0;var i=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,a=e.mainForwardBufferInfo;return(a?a.len:0)/i},o.getBwEstimate=function(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate},o.findBestLevel=function(e,t,i,a,s,d,u){var f,h=this,m=a+s,w=this.lastLoadedFragLevel,x=w===-1?this.hls.firstLevel:w,_=this.fragCurrent,E=this.partCurrent,A=this.hls,T=A.levels,L=A.allAudioTracks,I=A.loadLevel,P=A.config;if(T.length===1)return 0;var G,$=T[x],B=!($==null||(f=$.details)==null||!f.live),J=I===-1||w===-1,X="SDR",ee=($==null?void 0:$.frameRate)||0,ae=P.audioPreference,be=P.videoPreference,Te=this.audioTracksByGroup||(this.audioTracksByGroup=function(Ct){return Ct.reduce(function(Qe,ft){var rt=Qe.groups[ft.groupId];rt||(rt=Qe.groups[ft.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),rt.tracks.push(ft);var Rt=ft.channels||"2";return rt.channels[Rt]=(rt.channels[Rt]||0)+1,rt.hasDefault=rt.hasDefault||ft.default,rt.hasAutoSelect=rt.hasAutoSelect||ft.autoselect,rt.hasDefault&&(Qe.hasDefaultAudio=!0),rt.hasAutoSelect&&(Qe.hasAutoSelectAudio=!0),Qe},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}(L));if(J){if(this.firstSelection!==-1)return this.firstSelection;var Ie=this.codecTiers||(this.codecTiers=function(Ct,Qe,ft,rt){return Ct.slice(ft,rt+1).reduce(function(Rt,tt){if(!tt.codecSet)return Rt;var zt=tt.audioGroups,bt=Rt[tt.codecSet];bt||(Rt[tt.codecSet]=bt={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!zt,fragmentError:0}),bt.minBitrate=Math.min(bt.minBitrate,tt.bitrate);var Ci=Math.min(tt.height,tt.width);return bt.minHeight=Math.min(bt.minHeight,Ci),bt.minFramerate=Math.min(bt.minFramerate,tt.frameRate),bt.maxScore=Math.max(bt.maxScore,tt.score),bt.fragmentError+=tt.fragmentError,bt.videoRanges[tt.videoRange]=(bt.videoRanges[tt.videoRange]||0)+1,zt&&zt.forEach(function(Ti){if(Ti){var yt=Qe.groups[Ti];yt&&(bt.hasDefaultAudio=bt.hasDefaultAudio||Qe.hasDefaultAudio?yt.hasDefault:yt.hasAutoSelect||!Qe.hasDefaultAudio&&!Qe.hasAutoSelectAudio,Object.keys(yt.channels).forEach(function(Zt){bt.channels[Zt]=(bt.channels[Zt]||0)+yt.channels[Zt]}))}}),Rt},{})}(T,Te,t,i)),De=function(Ct,Qe,ft,rt,Rt){for(var tt=Object.keys(Ct),zt=rt==null?void 0:rt.channels,bt=rt==null?void 0:rt.audioCodec,Ci=zt&&parseInt(zt)===2,Ti=!0,yt=!1,Zt=1/0,ai=1/0,Ei=1/0,Vi=0,fi=[],Pi=ik(Qe,Rt),yn=Pi.preferHDR,ca=Pi.allowedVideoRanges,_o=function(){var Pt=Ct[tt[Kr]];Ti=Pt.channels[2]>0,Zt=Math.min(Zt,Pt.minHeight),ai=Math.min(ai,Pt.minFramerate),Ei=Math.min(Ei,Pt.minBitrate);var Ht=ca.filter(function(ui){return Pt.videoRanges[ui]>0});Ht.length>0&&(yt=!0,fi=Ht)},Kr=tt.length;Kr--;)_o();Zt=te(Zt)?Zt:0,ai=te(ai)?ai:0;var ji=Math.max(1080,Zt),gi=Math.max(30,ai);return Ei=te(Ei)?Ei:ft,ft=Math.max(Ei,ft),yt||(Qe=void 0,fi=[]),{codecSet:tt.reduce(function(Pt,Ht){var ui=Ct[Ht];if(Ht===Pt)return Pt;if(ui.minBitrate>ft)return Vr(Ht,"min bitrate of "+ui.minBitrate+" > current estimate of "+ft),Pt;if(!ui.hasDefaultAudio)return Vr(Ht,"no renditions with default or auto-select sound found"),Pt;if(bt&&Ht.indexOf(bt.substring(0,4))%5!=0)return Vr(Ht,'audio codec preference "'+bt+'" not found'),Pt;if(zt&&!Ci){if(!ui.channels[zt])return Vr(Ht,"no renditions with "+zt+" channel sound found (channels options: "+Object.keys(ui.channels)+")"),Pt}else if((!bt||Ci)&&Ti&&ui.channels[2]===0)return Vr(Ht,"no renditions with stereo sound found"),Pt;return ui.minHeight>ji?(Vr(Ht,"min resolution of "+ui.minHeight+" > maximum of "+ji),Pt):ui.minFramerate>gi?(Vr(Ht,"min framerate of "+ui.minFramerate+" > maximum of "+gi),Pt):fi.some(function(Jd){return ui.videoRanges[Jd]>0})?ui.maxScore<Vi?(Vr(Ht,"max score of "+ui.maxScore+" < selected max of "+Vi),Pt):Pt&&(ws(Ht)>=ws(Pt)||ui.fragmentError>Ct[Pt].fragmentError)?Pt:(Vi=ui.maxScore,Ht):(Vr(Ht,"no variants with VIDEO-RANGE of "+JSON.stringify(fi)+" found"),Pt)},void 0),videoRanges:fi,preferHDR:yn,minFramerate:ai,minBitrate:Ei}}(Ie,X,e,ae,be),Ue=De.codecSet,Ae=De.videoRanges,Ne=De.minFramerate,Ke=De.minBitrate,je=De.preferHDR;G=Ue,X=je?Ae[Ae.length-1]:Ae[0],ee=Ne,e=Math.max(e,Ke),j.log("[abr] picked start tier "+JSON.stringify(De))}else G=$==null?void 0:$.codecSet,X=$==null?void 0:$.videoRange;for(var We,vt=E?E.duration:_?_.duration:0,$t=this.bwEstimator.getEstimateTTFB()/1e3,At=[],ti=function(){var Ct,Qe=T[jt],ft=jt>x;if(!Qe)return 0;if(P.useMediaCapabilities&&!Qe.supportedResult&&!Qe.supportedPromise){var rt=navigator.mediaCapabilities;typeof(rt==null?void 0:rt.decodingInfo)=="function"&&function(yt,Zt,ai,Ei,Vi,fi){var Pi=yt.audioCodec?yt.audioGroups:null,yn=fi==null?void 0:fi.audioCodec,ca=fi==null?void 0:fi.channels,_o=ca?parseInt(ca):yn?1/0:2,Kr=null;if(Pi!=null&&Pi.length)try{Kr=Pi.length===1&&Pi[0]?Zt.groups[Pi[0]].channels:Pi.reduce(function(ji,gi){if(gi){var Pt=Zt.groups[gi];if(!Pt)throw new Error("Audio track group "+gi+" not found");Object.keys(Pt.channels).forEach(function(Ht){ji[Ht]=(ji[Ht]||0)+Pt.channels[Ht]})}return ji},{2:0})}catch{return!0}return yt.videoCodec!==void 0&&(yt.width>1920&&yt.height>1088||yt.height>1920&&yt.width>1088||yt.frameRate>Math.max(Ei,30)||yt.videoRange!=="SDR"&&yt.videoRange!==ai||yt.bitrate>Math.max(Vi,8e6))||!!Kr&&te(_o)&&Object.keys(Kr).some(function(ji){return parseInt(ji)>_o})}(Qe,Te,X,ee,e,ae)?(Qe.supportedPromise=tk(Qe,Te,rt),Qe.supportedPromise.then(function(yt){if(h.hls){Qe.supportedResult=yt;var Zt=h.hls.levels,ai=Zt.indexOf(Qe);yt.error?j.warn('[abr] MediaCapabilities decodingInfo error: "'+yt.error+'" for level '+ai+" "+JSON.stringify(yt)):yt.supported||(j.warn("[abr] Unsupported MediaCapabilities decodingInfo result for level "+ai+" "+JSON.stringify(yt)),ai>-1&&Zt.length>1&&(j.log("[abr] Removing unsupported level "+ai),h.hls.removeLevel(ai)))}})):Qe.supportedResult=Th}if(G&&Qe.codecSet!==G||X&&Qe.videoRange!==X||ft&&ee>Qe.frameRate||!ft&&ee>0&&ee<Qe.frameRate||Qe.supportedResult&&((Ct=Qe.supportedResult.decodingInfoResults)==null||!Ct[0].smooth))return At.push(jt),0;var Rt,tt=Qe.details,zt=(E?tt==null?void 0:tt.partTarget:tt==null?void 0:tt.averagetargetduration)||vt;Rt=ft?u*e:d*e;var bt=vt&&a>=2*vt&&s===0?T[jt].averageBitrate:T[jt].maxBitrate,Ci=h.getTimeToLoadFrag($t,Rt,bt*zt,tt===void 0);if(Rt>=bt&&(jt===w||Qe.loadError===0&&Qe.fragmentError===0)&&(Ci<=$t||!te(Ci)||B&&!h.bitrateTestDelay||Ci<m)){var Ti=h.forcedAutoLevel;return jt===I||Ti!==-1&&Ti===I||(At.length&&j.trace("[abr] Skipped level(s) "+At.join(",")+" of "+i+' max with CODECS and VIDEO-RANGE:"'+T[At[0]].codecs+'" '+T[At[0]].videoRange+'; not compatible with "'+$.codecs+'" '+X),j.info("[abr] switch candidate:"+x+"->"+jt+" adjustedbw("+Math.round(Rt)+")-bitrate="+Math.round(Rt-bt)+" ttfb:"+$t.toFixed(1)+" avgDuration:"+zt.toFixed(1)+" maxFetchDuration:"+m.toFixed(1)+" fetchDuration:"+Ci.toFixed(1)+" firstSelection:"+J+" codecSet:"+G+" videoRange:"+X+" hls.loadLevel:"+I)),J&&(h.firstSelection=jt),{v:jt}}},jt=i;jt>=t;jt--)if((We=ti())!==0&&We)return We.v;return-1},C(l,[{key:"firstAutoLevel",get:function(){var e=this.hls,t=e.maxAutoLevel,i=e.minAutoLevel,a=this.getBwEstimate(),s=this.hls.config.maxStarvationDelay,d=this.findBestLevel(a,i,t,0,s,1,1);if(d>-1)return d;var u=this.hls.firstLevel,f=Math.min(Math.max(u,i),t);return j.warn("[abr] Could not find best starting auto level. Defaulting to first in playlist "+u+" clamped to "+f),f}},{key:"forcedAutoLevel",get:function(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}},{key:"nextAutoLevel",get:function(){var e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),i=this.lastLoadedFragLevel>-1;if(!(e===-1||t&&i&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return e;var a=t&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){var s=this.hls.levels;if(s.length>Math.max(e,a)&&s[e].loadError<=s[a].loadError)return e}return this._nextAutoLevel=a,this.nextAutoLevelKey=this.getAutoLevelKey(),a},set:function(e){var t=this.hls,i=t.maxAutoLevel,a=t.minAutoLevel,s=Math.min(Math.max(e,a),i);this._nextAutoLevel!==s&&(this.nextAutoLevelKey="",this._nextAutoLevel=s)}}]),l}(),ak=function(){function l(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var o=l.prototype;return o.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},o.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},o.onHandlerDestroyed=function(){},o.hasInterval=function(){return!!this._tickInterval},o.hasNextTick=function(){return!!this._tickTimer},o.setInterval=function(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)},o.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},o.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},o.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},o.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},o.doTick=function(){},l}(),fn="NOT_LOADED",Lh="APPENDING",fo="PARTIAL",gn="OK",ok=function(){function l(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}var o=l.prototype;return o._registerListeners=function(){var e=this.hls;e.on(y.BUFFER_APPENDED,this.onBufferAppended,this),e.on(y.FRAG_BUFFERED,this.onFragBuffered,this),e.on(y.FRAG_LOADED,this.onFragLoaded,this)},o._unregisterListeners=function(){var e=this.hls;e.off(y.BUFFER_APPENDED,this.onBufferAppended,this),e.off(y.FRAG_BUFFERED,this.onFragBuffered,this),e.off(y.FRAG_LOADED,this.onFragLoaded,this)},o.destroy=function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null},o.getAppendedFrag=function(e,t){var i=this.activePartLists[t];if(i)for(var a=i.length;a--;){var s=i[a];if(!s)break;var d=s.end;if(s.start<=e&&d!==null&&e<=d)return s}return this.getBufferedFrag(e,t)},o.getBufferedFrag=function(e,t){for(var i=this.fragments,a=Object.keys(i),s=a.length;s--;){var d=i[a[s]];if((d==null?void 0:d.body.type)===t&&d.buffered){var u=d.body;if(u.start<=e&&e<=u.end)return u}}return null},o.detectEvictedFragments=function(e,t,i,a){var s=this;this.timeRanges&&(this.timeRanges[e]=t);var d=(a==null?void 0:a.fragment.sn)||-1;Object.keys(this.fragments).forEach(function(u){var f=s.fragments[u];if(f&&!(d>=f.body.sn))if(f.buffered||f.loaded){var h=f.range[e];h&&h.time.some(function(m){var w=!s.isTimeBuffered(m.startPTS,m.endPTS,t);return w&&s.removeFragment(f.body),w})}else f.body.type===i&&s.removeFragment(f.body)})},o.detectPartialFragments=function(e){var t=this,i=this.timeRanges,a=e.frag,s=e.part;if(i&&a.sn!=="initSegment"){var d=go(a),u=this.fragments[d];if(!(!u||u.buffered&&a.gap)){var f=!a.relurl;Object.keys(i).forEach(function(h){var m=a.elementaryStreams[h];if(m){var w=i[h],x=f||m.partial===!0;u.range[h]=t.getBufferedTimes(a,s,x,w)}}),u.loaded=null,Object.keys(u.range).length?(u.buffered=!0,(u.body.endList=a.endList||u.body.endList)&&(this.endListFragments[u.body.type]=u),As(u)||this.removeParts(a.sn-1,a.type)):this.removeFragment(u.body)}}},o.removeParts=function(e,t){var i=this.activePartLists[t];i&&(this.activePartLists[t]=i.filter(function(a){return a.fragment.sn>=e}))},o.fragBuffered=function(e,t){var i=go(e),a=this.fragments[i];!a&&t&&(a=this.fragments[i]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),a&&(a.loaded=null,a.buffered=!0)},o.getBufferedTimes=function(e,t,i,a){for(var s={time:[],partial:i},d=e.start,u=e.end,f=e.minEndPTS||u,h=e.maxStartPTS||d,m=0;m<a.length;m++){var w=a.start(m)-this.bufferPadding,x=a.end(m)+this.bufferPadding;if(h>=w&&f<=x){s.time.push({startPTS:Math.max(d,a.start(m)),endPTS:Math.min(u,a.end(m))});break}if(d<x&&u>w){var _=Math.max(d,a.start(m)),E=Math.min(u,a.end(m));E>_&&(s.partial=!0,s.time.push({startPTS:_,endPTS:E}))}else if(u<=w)break}return s},o.getPartialFragment=function(e){var t,i,a,s=null,d=0,u=this.bufferPadding,f=this.fragments;return Object.keys(f).forEach(function(h){var m=f[h];m&&As(m)&&(i=m.body.start-u,a=m.body.end+u,e>=i&&e<=a&&(t=Math.min(e-i,a-e),d<=t&&(s=m.body,d=t)))}),s},o.isEndListAppended=function(e){var t=this.endListFragments[e];return t!==void 0&&(t.buffered||As(t))},o.getState=function(e){var t=go(e),i=this.fragments[t];return i?i.buffered?As(i)?fo:gn:Lh:fn},o.isTimeBuffered=function(e,t,i){for(var a,s,d=0;d<i.length;d++){if(a=i.start(d)-this.bufferPadding,s=i.end(d)+this.bufferPadding,e>=a&&t<=s)return!0;if(t<=a)return!1}return!1},o.onFragLoaded=function(e,t){var i=t.frag,a=t.part;if(i.sn!=="initSegment"&&!i.bitrateTest){var s=a?null:t,d=go(i);this.fragments[d]={body:i,appendedPTS:null,loaded:s,buffered:!1,range:Object.create(null)}}},o.onBufferAppended=function(e,t){var i=this,a=t.frag,s=t.part,d=t.timeRanges;if(a.sn!=="initSegment"){var u=a.type;if(s){var f=this.activePartLists[u];f||(this.activePartLists[u]=f=[]),f.push(s)}this.timeRanges=d,Object.keys(d).forEach(function(h){var m=d[h];i.detectEvictedFragments(h,m,u,s)})}},o.onFragBuffered=function(e,t){this.detectPartialFragments(t)},o.hasFragment=function(e){var t=go(e);return!!this.fragments[t]},o.hasParts=function(e){var t;return!((t=this.activePartLists[e])==null||!t.length)},o.removeFragmentsInRange=function(e,t,i,a,s){var d=this;a&&!this.hasGaps||Object.keys(this.fragments).forEach(function(u){var f=d.fragments[u];if(f){var h=f.body;h.type!==i||a&&!h.gap||h.start<t&&h.end>e&&(f.buffered||s)&&d.removeFragment(h)}})},o.removeFragment=function(e){var t=go(e);e.stats.loaded=0,e.clearElementaryStreamInfo();var i=this.activePartLists[e.type];if(i){var a=e.sn;this.activePartLists[e.type]=i.filter(function(s){return s.fragment.sn!==a})}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]},o.removeAllFragments=function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1},l}();function As(l){var o,e,t;return l.buffered&&(l.body.gap||((o=l.range.video)==null?void 0:o.partial)||((e=l.range.audio)==null?void 0:e.partial)||((t=l.range.audiovideo)==null?void 0:t.partial))}function go(l){return l.type+"_"+l.level+"_"+l.sn}var nk={length:0,start:function(){return 0},end:function(){return 0}},Yt=function(){function l(){}return l.isBuffered=function(o,e){try{if(o){for(var t=l.getBuffered(o),i=0;i<t.length;i++)if(e>=t.start(i)&&e<=t.end(i))return!0}}catch{}return!1},l.bufferInfo=function(o,e,t){try{if(o){var i,a=l.getBuffered(o),s=[];for(i=0;i<a.length;i++)s.push({start:a.start(i),end:a.end(i)});return this.bufferedInfo(s,e,t)}}catch{}return{len:0,start:e,end:e,nextStart:void 0}},l.bufferedInfo=function(o,e,t){e=Math.max(0,e),o.sort(function(E,A){var T=E.start-A.start;return T||A.end-E.end});var i=[];if(t)for(var a=0;a<o.length;a++){var s=i.length;if(s){var d=i[s-1].end;o[a].start-d<t?o[a].end>d&&(i[s-1].end=o[a].end):i.push(o[a])}else i.push(o[a])}else i=o;for(var u,f=0,h=e,m=e,w=0;w<i.length;w++){var x=i[w].start,_=i[w].end;if(e+t>=x&&e<_)h=x,f=(m=_)-e;else if(e+t<x){u=x;break}}return{len:f,start:h||0,end:m||0,nextStart:u}},l.getBuffered=function(o){try{return o.buffered}catch(e){return j.log("failed to get media.buffered",e),nk}},l}(),xd=function(l,o,e,t,i,a){t===void 0&&(t=0),i===void 0&&(i=-1),a===void 0&&(a=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=l,this.sn=o,this.id=e,this.size=t,this.part=i,this.partial=a};function Cs(l,o){for(var e=0,t=l.length;e<t;e++){var i;if(((i=l[e])==null?void 0:i.cc)===o)return l[e]}return null}function Ah(l,o){if(l){var e=l.start+o;l.start=l.startPTS=e,l.endPTS=e+l.duration}}function Ch(l,o){for(var e=o.fragments,t=0,i=e.length;t<i;t++)Ah(e[t],l);o.fragmentHint&&Ah(o.fragmentHint,l),o.alignedSliding=!0}function sk(l,o,e){o&&(function(t,i,a){if(function(d,u,f){return!(!u||!(f.endCC>f.startCC||d&&d.cc<f.startCC))}(t,a,i)){var s=function(d,u){var f=d.fragments,h=u.fragments;if(h.length&&f.length){var m=Cs(f,h[0].cc);if(m&&(!m||m.startPTS))return m;j.log("No frag in previous level to align on")}else j.log("No fragments to align")}(a,i);s&&te(s.start)&&(j.log("Adjusting PTS using last level due to CC increase within current level "+i.url),Ch(s.start,i))}}(l,e,o),!e.alignedSliding&&o&&Rs(e,o),e.alignedSliding||!o||e.skippedSegments||mh(o,e))}function Rs(l,o){if(l.hasProgramDateTime&&o.hasProgramDateTime){var e=l.fragments,t=o.fragments;if(e.length&&t.length){var i,a,s=Math.min(o.endCC,l.endCC);o.startCC<s&&l.startCC<s&&(i=Cs(t,s),a=Cs(e,s)),i&&a||(a=Cs(e,(i=t[Math.floor(t.length/2)]).cc)||e[Math.floor(e.length/2)]);var d=i.programDateTime,u=a.programDateTime;d&&u&&Ch((u-d)/1e3-(a.start-i.start),l)}}}var Rh=Math.pow(2,17),lk=function(){function l(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}var o=l.prototype;return o.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},o.abort=function(){this.loader&&this.loader.abort()},o.load=function(e,t){var i=this,a=e.url;if(!a)return Promise.reject(new jr({type:re.NETWORK_ERROR,details:z.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error("Fragment does not have a "+(a?"part list":"url")),networkDetails:null}));this.abort();var s=this.config,d=s.fLoader,u=s.loader;return new Promise(function(f,h){if(i.loader&&i.loader.destroy(),e.gap){if(e.tagList.some(function(E){return E[0]==="GAP"}))return void h(Ih(e));e.gap=!1}var m=i.loader=e.loader=d?new d(s):new u(s),w=Dh(e),x=yh(s.fragLoadPolicy.default),_={loadPolicy:x,timeout:x.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Rh};e.stats=m.stats,m.load(w,_,{onSuccess:function(E,A,T,L){i.resetLoader(e,m);var I=E.data;T.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(I.slice(0,16)),I=I.slice(16)),f({frag:e,part:null,payload:I,networkDetails:L})},onError:function(E,A,T,L){i.resetLoader(e,m),h(new jr({type:re.NETWORK_ERROR,details:z.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:b({url:a,data:void 0},E),error:new Error("HTTP Error "+E.code+" "+E.text),networkDetails:T,stats:L}))},onAbort:function(E,A,T){i.resetLoader(e,m),h(new jr({type:re.NETWORK_ERROR,details:z.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:T,stats:E}))},onTimeout:function(E,A,T){i.resetLoader(e,m),h(new jr({type:re.NETWORK_ERROR,details:z.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error("Timeout after "+_.timeout+"ms"),networkDetails:T,stats:E}))},onProgress:function(E,A,T,L){t&&t({frag:e,part:null,payload:T,networkDetails:L})}})})},o.loadPart=function(e,t,i){var a=this;this.abort();var s=this.config,d=s.fLoader,u=s.loader;return new Promise(function(f,h){if(a.loader&&a.loader.destroy(),e.gap||t.gap)h(Ih(e,t));else{var m=a.loader=e.loader=d?new d(s):new u(s),w=Dh(e,t),x=yh(s.fragLoadPolicy.default),_={loadPolicy:x,timeout:x.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Rh};t.stats=m.stats,m.load(w,_,{onSuccess:function(E,A,T,L){a.resetLoader(e,m),a.updateStatsFromPart(e,t);var I={frag:e,part:t,payload:E.data,networkDetails:L};i(I),f(I)},onError:function(E,A,T,L){a.resetLoader(e,m),h(new jr({type:re.NETWORK_ERROR,details:z.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:b({url:w.url,data:void 0},E),error:new Error("HTTP Error "+E.code+" "+E.text),networkDetails:T,stats:L}))},onAbort:function(E,A,T){e.stats.aborted=t.stats.aborted,a.resetLoader(e,m),h(new jr({type:re.NETWORK_ERROR,details:z.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:T,stats:E}))},onTimeout:function(E,A,T){a.resetLoader(e,m),h(new jr({type:re.NETWORK_ERROR,details:z.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error("Timeout after "+_.timeout+"ms"),networkDetails:T,stats:E}))}})}})},o.updateStatsFromPart=function(e,t){var i=e.stats,a=t.stats,s=a.total;if(i.loaded+=a.loaded,s){var d=Math.round(e.duration/t.duration),u=Math.min(Math.round(i.loaded/s),d),f=(d-u)*Math.round(i.loaded/u);i.total=i.loaded+f}else i.total=Math.max(i.loaded,i.total);var h=i.loading,m=a.loading;h.start?h.first+=m.first-m.start:(h.start=m.start,h.first=m.first),h.end=m.end},o.resetLoader=function(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()},l}();function Dh(l,o){o===void 0&&(o=null);var e=o||l,t={frag:l,part:o,responseType:"arraybuffer",url:e.url,headers:{},rangeStart:0,rangeEnd:0},i=e.byteRangeStartOffset,a=e.byteRangeEndOffset;if(te(i)&&te(a)){var s,d=i,u=a;if(l.sn==="initSegment"&&((s=l.decryptdata)==null?void 0:s.method)==="AES-128"){var f=a-i;f%16&&(u=a+(16-f%16)),i!==0&&(t.resetIV=!0,d=i-16)}t.rangeStart=d,t.rangeEnd=u}return t}function Ih(l,o){var e=new Error("GAP "+(l.gap?"tag":"attribute")+" found"),t={type:re.MEDIA_ERROR,details:z.FRAG_GAP,fatal:!1,frag:l,error:e,networkDetails:null};return o&&(t.part=o),(o||l).stats.aborted=!0,new jr(t)}var jr=function(l){function o(e){var t;return(t=l.call(this,e.error.message)||this).data=void 0,t.data=e,t}return D(o,l),o}(Y(Error)),dk=function(){function l(o,e){this.subtle=void 0,this.aesIV=void 0,this.subtle=o,this.aesIV=e}return l.prototype.decrypt=function(o,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,o)},l}(),ck=function(){function l(o,e){this.subtle=void 0,this.key=void 0,this.subtle=o,this.key=e}return l.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},l}(),uk=function(){function l(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var o=l.prototype;return o.uint8ArrayToUint32Array_=function(e){for(var t=new DataView(e),i=new Uint32Array(4),a=0;a<4;a++)i[a]=t.getUint32(4*a);return i},o.initTable=function(){var e=this.sBox,t=this.invSBox,i=this.subMix,a=i[0],s=i[1],d=i[2],u=i[3],f=this.invSubMix,h=f[0],m=f[1],w=f[2],x=f[3],_=new Uint32Array(256),E=0,A=0,T=0;for(T=0;T<256;T++)_[T]=T<128?T<<1:T<<1^283;for(T=0;T<256;T++){var L=A^A<<1^A<<2^A<<3^A<<4;L=L>>>8^255&L^99,e[E]=L,t[L]=E;var I=_[E],P=_[I],G=_[P],$=257*_[L]^16843008*L;a[E]=$<<24|$>>>8,s[E]=$<<16|$>>>16,d[E]=$<<8|$>>>24,u[E]=$,$=16843009*G^65537*P^257*I^16843008*E,h[L]=$<<24|$>>>8,m[L]=$<<16|$>>>16,w[L]=$<<8|$>>>24,x[L]=$,E?(E=I^_[_[_[G^I]]],A^=_[_[A]]):E=A=1}},o.expandKey=function(e){for(var t=this.uint8ArrayToUint32Array_(e),i=!0,a=0;a<t.length&&i;)i=t[a]===this.key[a],a++;if(!i){this.key=t;var s=this.keySize=t.length;if(s!==4&&s!==6&&s!==8)throw new Error("Invalid aes key size="+s);var d,u,f,h,m=this.ksRows=4*(s+6+1),w=this.keySchedule=new Uint32Array(m),x=this.invKeySchedule=new Uint32Array(m),_=this.sBox,E=this.rcon,A=this.invSubMix,T=A[0],L=A[1],I=A[2],P=A[3];for(d=0;d<m;d++)d<s?f=w[d]=t[d]:(h=f,d%s==0?(h=_[(h=h<<8|h>>>24)>>>24]<<24|_[h>>>16&255]<<16|_[h>>>8&255]<<8|_[255&h],h^=E[d/s|0]<<24):s>6&&d%s==4&&(h=_[h>>>24]<<24|_[h>>>16&255]<<16|_[h>>>8&255]<<8|_[255&h]),w[d]=f=(w[d-s]^h)>>>0);for(u=0;u<m;u++)d=m-u,h=3&u?w[d]:w[d-4],x[u]=u<4||d<=4?h:T[_[h>>>24]]^L[_[h>>>16&255]]^I[_[h>>>8&255]]^P[_[255&h]],x[u]=x[u]>>>0}},o.networkToHostOrderSwap=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},o.decrypt=function(e,t,i){for(var a,s,d,u,f,h,m,w,x,_,E,A,T,L,I=this.keySize+6,P=this.invKeySchedule,G=this.invSBox,$=this.invSubMix,B=$[0],J=$[1],X=$[2],ee=$[3],ae=this.uint8ArrayToUint32Array_(i),be=ae[0],Te=ae[1],Ie=ae[2],De=ae[3],Ue=new Int32Array(e),Ae=new Int32Array(Ue.length),Ne=this.networkToHostOrderSwap;t<Ue.length;){for(x=Ne(Ue[t]),_=Ne(Ue[t+1]),E=Ne(Ue[t+2]),A=Ne(Ue[t+3]),f=x^P[0],h=A^P[1],m=E^P[2],w=_^P[3],T=4,L=1;L<I;L++)a=B[f>>>24]^J[h>>16&255]^X[m>>8&255]^ee[255&w]^P[T],s=B[h>>>24]^J[m>>16&255]^X[w>>8&255]^ee[255&f]^P[T+1],d=B[m>>>24]^J[w>>16&255]^X[f>>8&255]^ee[255&h]^P[T+2],u=B[w>>>24]^J[f>>16&255]^X[h>>8&255]^ee[255&m]^P[T+3],f=a,h=s,m=d,w=u,T+=4;a=G[f>>>24]<<24^G[h>>16&255]<<16^G[m>>8&255]<<8^G[255&w]^P[T],s=G[h>>>24]<<24^G[m>>16&255]<<16^G[w>>8&255]<<8^G[255&f]^P[T+1],d=G[m>>>24]<<24^G[w>>16&255]<<16^G[f>>8&255]<<8^G[255&h]^P[T+2],u=G[w>>>24]<<24^G[f>>16&255]<<16^G[h>>8&255]<<8^G[255&m]^P[T+3],Ae[t]=Ne(a^be),Ae[t+1]=Ne(u^Te),Ae[t+2]=Ne(d^Ie),Ae[t+3]=Ne(s^De),be=x,Te=_,Ie=E,De=A,t+=4}return Ae.buffer},l}(),yd=function(){function l(e,t){var i=(t===void 0?{}:t).removePKCS7Padding,a=i===void 0||i;if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=a,a)try{var s=self.crypto;s&&(this.subtle=s.subtle||s.webkitSubtle)}catch{}this.subtle===null&&(this.useSoftware=!0)}var o=l.prototype;return o.destroy=function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null},o.isSync=function(){return this.useSoftware},o.flush=function(){var e=this.currentResult,t=this.remainderData;if(!e||t)return this.reset(),null;var i,a,s,d=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?(a=(i=d).byteLength,(s=a&&new DataView(i.buffer).getUint8(a-1))?Oe(i,0,a-s):i):d},o.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},o.decrypt=function(e,t,i){var a=this;return this.useSoftware?new Promise(function(s,d){a.softwareDecrypt(new Uint8Array(e),t,i);var u=a.flush();u?s(u.buffer):d(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,i)},o.softwareDecrypt=function(e,t,i){var a=this.currentIV,s=this.currentResult,d=this.remainderData;this.logOnce("JS AES decrypt"),d&&(e=Ii(d,e),this.remainderData=null);var u=this.getValidChunk(e);if(!u.length)return null;a&&(i=a);var f=this.softwareDecrypter;f||(f=this.softwareDecrypter=new uk),f.expandKey(t);var h=s;return this.currentResult=f.decrypt(u.buffer,0,i),this.currentIV=Oe(u,-16).buffer,h||null},o.webCryptoDecrypt=function(e,t,i){var a=this,s=this.subtle;return this.key===t&&this.fastAesKey||(this.key=t,this.fastAesKey=new ck(s,t)),this.fastAesKey.expandKey().then(function(d){return s?(a.logOnce("WebCrypto AES decrypt"),new dk(s,new Uint8Array(i)).decrypt(e.buffer,d)):Promise.reject(new Error("web crypto not initialized"))}).catch(function(d){return j.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, "+d.name+": "+d.message),a.onWebCryptoError(e,t,i)})},o.onWebCryptoError=function(e,t,i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,i);var a=this.flush();if(a)return a.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")},o.getValidChunk=function(e){var t=e,i=e.length-e.length%16;return i!==e.length&&(t=Oe(e,0,i),this.remainderData=Oe(e,i)),t},o.logOnce=function(e){this.logEnabled&&(j.log("[decrypter]: "+e),this.logEnabled=!1)},l}(),pk=function(l){for(var o="",e=l.length,t=0;t<e;t++)o+="["+l.start(t).toFixed(3)+"-"+l.end(t).toFixed(3)+"]";return o},Qi="STOPPED",ot="IDLE",kd="KEY_LOADING",mo="FRAG_LOADING",vo="FRAG_LOADING_WAITING_RETRY",mn="WAITING_TRACK",Gr="PARSING",Ds="PARSED",vn="ENDED",bo="ERROR",bn="WAITING_INIT_PTS",Ia="WAITING_LEVEL",_d=function(l){function o(t,i,a,s,d){var u;return(u=l.call(this)||this).hls=void 0,u.fragPrevious=null,u.fragCurrent=null,u.fragmentTracker=void 0,u.transmuxer=null,u._state=Qi,u.playlistType=void 0,u.media=null,u.mediaBuffer=null,u.config=void 0,u.bitrateTest=!1,u.lastCurrentTime=0,u.nextLoadPosition=0,u.startPosition=0,u.startTimeOffset=null,u.loadedmetadata=!1,u.retryDate=0,u.levels=null,u.fragmentLoader=void 0,u.keyLoader=void 0,u.levelLastLoaded=null,u.startFragRequested=!1,u.decrypter=void 0,u.initPTS=[],u.onvseeking=null,u.onvended=null,u.logPrefix="",u.log=void 0,u.warn=void 0,u.playlistType=d,u.logPrefix=s,u.log=j.log.bind(j,s+":"),u.warn=j.warn.bind(j,s+":"),u.hls=t,u.fragmentLoader=new lk(t.config),u.keyLoader=a,u.fragmentTracker=i,u.config=t.config,u.decrypter=new yd(t.config),t.on(y.MANIFEST_LOADED,u.onManifestLoaded,function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(u)),u}D(o,l);var e=o.prototype;return e.doTick=function(){this.onTickEnd()},e.onTickEnd=function(){},e.startLoad=function(t){},e.stopLoad=function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var t=this.fragCurrent;t!=null&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Qi},e._streamEnded=function(t,i){if(i.live||t.nextStart||!t.end||!this.media)return!1;var a=i.partList;if(a!=null&&a.length){var s=a[a.length-1];return Yt.isBuffered(this.media,s.start+s.duration/2)}var d=i.fragments[i.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(d)},e.getLevelDetails=function(){var t;if(this.levels&&this.levelLastLoaded!==null)return(t=this.levelLastLoaded)==null?void 0:t.details},e.onMediaAttached=function(t,i){var a=this.media=this.mediaBuffer=i.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),a.addEventListener("seeking",this.onvseeking),a.addEventListener("ended",this.onvended);var s=this.config;this.levels&&s.autoStartLoad&&this.state===Qi&&this.startLoad(s.startPosition)},e.onMediaDetaching=function(){var t=this.media;t!=null&&t.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&this.onvseeking&&this.onvended&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},e.onMediaSeeking=function(){var t=this.config,i=this.fragCurrent,a=this.media,s=this.mediaBuffer,d=this.state,u=a?a.currentTime:0,f=Yt.bufferInfo(s||a,u,t.maxBufferHole);if(this.log("media seeking to "+(te(u)?u.toFixed(3):u)+", state: "+d),this.state===vn)this.resetLoadingState();else if(i){var h=t.maxFragLookUpTolerance,m=i.start-h,w=i.start+i.duration+h;if(!f.len||w<f.start||m>f.end){var x=u>w;(u<m||x)&&(x&&i.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),i.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}a&&(this.fragmentTracker.removeFragmentsInRange(u,1/0,this.playlistType,!0),this.lastCurrentTime=u),this.loadedmetadata||f.len||(this.nextLoadPosition=this.startPosition=u),this.tickImmediate()},e.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},e.onManifestLoaded=function(t,i){this.startTimeOffset=i.startTimeOffset,this.initPTS=[]},e.onHandlerDestroying=function(){this.hls.off(y.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),l.prototype.onHandlerDestroying.call(this),this.hls=null},e.onHandlerDestroyed=function(){this.state=Qi,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,l.prototype.onHandlerDestroyed.call(this)},e.loadFragment=function(t,i,a){this._loadFragForPlayback(t,i,a)},e._loadFragForPlayback=function(t,i,a){var s=this;this._doFragLoad(t,i,a,function(d){if(s.fragContextChanged(t))return s.warn("Fragment "+t.sn+(d.part?" p: "+d.part.index:"")+" of level "+t.level+" was dropped during download."),void s.fragmentTracker.removeFragment(t);t.stats.chunkCount++,s._handleFragmentLoadProgress(d)}).then(function(d){if(d){var u=s.state;s.fragContextChanged(t)?(u===mo||!s.fragCurrent&&u===Gr)&&(s.fragmentTracker.removeFragment(t),s.state=ot):("payload"in d&&(s.log("Loaded fragment "+t.sn+" of level "+t.level),s.hls.trigger(y.FRAG_LOADED,d)),s._handleFragmentLoadComplete(d))}}).catch(function(d){s.state!==Qi&&s.state!==bo&&(s.warn(d),s.resetFragmentLoading(t))})},e.clearTrackerIfNeeded=function(t){var i,a=this.fragmentTracker;if(a.getState(t)===Lh){var s=t.type,d=this.getFwdBufferInfo(this.mediaBuffer,s),u=Math.max(t.duration,d?d.len:this.config.maxBufferLength);this.reduceMaxBufferLength(u)&&a.removeFragment(t)}else((i=this.mediaBuffer)==null?void 0:i.buffered.length)===0?a.removeAllFragments():a.hasParts(t.type)&&(a.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),a.getState(t)===fo&&a.removeFragment(t))},e.checkLiveUpdate=function(t){if(t.updated&&!t.live){var i=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:i,part:null,stats:i.stats,id:i.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)},e.flushMainBuffer=function(t,i,a){if(a===void 0&&(a=null),t-i){var s={startOffset:t,endOffset:i,type:a};this.hls.trigger(y.BUFFER_FLUSHING,s)}},e._loadInitSegment=function(t,i){var a=this;this._doFragLoad(t,i).then(function(s){if(!s||a.fragContextChanged(t)||!a.levels)throw new Error("init load aborted");return s}).then(function(s){var d=a.hls,u=s.payload,f=t.decryptdata;if(u&&u.byteLength>0&&f!=null&&f.key&&f.iv&&f.method==="AES-128"){var h=self.performance.now();return a.decrypter.decrypt(new Uint8Array(u),f.key.buffer,f.iv.buffer).catch(function(m){throw d.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.FRAG_DECRYPT_ERROR,fatal:!1,error:m,reason:m.message,frag:t}),m}).then(function(m){var w=self.performance.now();return d.trigger(y.FRAG_DECRYPTED,{frag:t,payload:m,stats:{tstart:h,tdecrypt:w}}),s.payload=m,a.completeInitSegmentLoad(s)})}return a.completeInitSegmentLoad(s)}).catch(function(s){a.state!==Qi&&a.state!==bo&&(a.warn(s),a.resetFragmentLoading(t))})},e.completeInitSegmentLoad=function(t){if(!this.levels)throw new Error("init load aborted, missing levels");var i=t.frag.stats;this.state=ot,t.frag.data=new Uint8Array(t.payload),i.parsing.start=i.buffering.start=self.performance.now(),i.parsing.end=i.buffering.end=self.performance.now(),this.tick()},e.fragContextChanged=function(t){var i=this.fragCurrent;return!t||!i||t.sn!==i.sn||t.level!==i.level},e.fragBufferedComplete=function(t,i){var a,s,d,u,f=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered "+t.type+" sn: "+t.sn+(i?" part: "+i.index:"")+" of "+(this.playlistType===Lt?"level":"track")+" "+t.level+" (frag:["+((a=t.startPTS)!=null?a:NaN).toFixed(3)+"-"+((s=t.endPTS)!=null?s:NaN).toFixed(3)+"] > buffer:"+(f?pk(Yt.getBuffered(f)):"(detached)")+")"),t.sn!=="initSegment"){var h;if(t.type!==Br){var m=t.elementaryStreams;if(!Object.keys(m).some(function(x){return!!m[x]}))return void(this.state=ot)}var w=(h=this.levels)==null?void 0:h[t.level];w!=null&&w.fragmentError&&(this.log("Resetting level fragment error count of "+w.fragmentError+" on frag buffered"),w.fragmentError=0)}this.state=ot,f&&(!this.loadedmetadata&&t.type==Lt&&f.buffered.length&&((d=this.fragCurrent)==null?void 0:d.sn)===((u=this.fragPrevious)==null?void 0:u.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())},e.seekToStartPos=function(){},e._handleFragmentLoadComplete=function(t){var i=this.transmuxer;if(i){var a=t.frag,s=t.part,d=t.partsLoaded,u=!d||d.length===0||d.some(function(h){return!h}),f=new xd(a.level,a.sn,a.stats.chunkCount+1,0,s?s.index:-1,!u);i.flush(f)}},e._handleFragmentLoadProgress=function(t){},e._doFragLoad=function(t,i,a,s){var d,u=this;a===void 0&&(a=null);var f=i==null?void 0:i.details;if(!this.levels||!f)throw new Error("frag load aborted, missing level"+(f?"":" detail")+"s");var h=null;if(!t.encrypted||(d=t.decryptdata)!=null&&d.key?!t.encrypted&&f.encryptedFragments.length&&this.keyLoader.loadClear(t,f.encryptedFragments):(this.log("Loading key for "+t.sn+" of ["+f.startSN+"-"+f.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+t.level),this.state=kd,this.fragCurrent=t,h=this.keyLoader.load(t).then(function(T){if(!u.fragContextChanged(T.frag))return u.hls.trigger(y.KEY_LOADED,T),u.state===kd&&(u.state=ot),T}),this.hls.trigger(y.KEY_LOADING,{frag:t}),this.fragCurrent===null&&(h=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))),a=Math.max(t.start,a||0),this.config.lowLatencyMode&&t.sn!=="initSegment"){var m=f.partList;if(m&&s){a>t.end&&f.fragmentHint&&(t=f.fragmentHint);var w=this.getNextPart(m,t,a);if(w>-1){var x,_=m[w];return this.log("Loading part sn: "+t.sn+" p: "+_.index+" cc: "+t.cc+" of playlist ["+f.startSN+"-"+f.endSN+"] parts [0-"+w+"-"+(m.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+t.level+", target: "+parseFloat(a.toFixed(3))),this.nextLoadPosition=_.start+_.duration,this.state=mo,x=h?h.then(function(T){return!T||u.fragContextChanged(T.frag)?null:u.doFragPartsLoad(t,_,i,s)}).catch(function(T){return u.handleFragLoadError(T)}):this.doFragPartsLoad(t,_,i,s).catch(function(T){return u.handleFragLoadError(T)}),this.hls.trigger(y.FRAG_LOADING,{frag:t,part:_,targetBufferTime:a}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):x}if(!t.url||this.loadedEndOfParts(m,a))return Promise.resolve(null)}}this.log("Loading fragment "+t.sn+" cc: "+t.cc+" "+(f?"of ["+f.startSN+"-"+f.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+t.level+", target: "+parseFloat(a.toFixed(3))),te(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=mo;var E,A=this.config.progressive;return E=A&&h?h.then(function(T){return!T||u.fragContextChanged(T==null?void 0:T.frag)?null:u.fragmentLoader.load(t,s)}).catch(function(T){return u.handleFragLoadError(T)}):Promise.all([this.fragmentLoader.load(t,A?s:void 0),h]).then(function(T){var L=T[0];return!A&&L&&s&&s(L),L}).catch(function(T){return u.handleFragLoadError(T)}),this.hls.trigger(y.FRAG_LOADING,{frag:t,targetBufferTime:a}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):E},e.doFragPartsLoad=function(t,i,a,s){var d=this;return new Promise(function(u,f){var h,m=[],w=(h=a.details)==null?void 0:h.partList;(function x(_){d.fragmentLoader.loadPart(t,_,s).then(function(E){m[_.index]=E;var A=E.part;d.hls.trigger(y.FRAG_LOADED,E);var T=vh(a,t.sn,_.index+1)||bh(w,t.sn,_.index+1);if(!T)return u({frag:t,part:A,partsLoaded:m});x(T)}).catch(f)})(i)})},e.handleFragLoadError=function(t){if("data"in t){var i=t.data;t.data&&i.details===z.INTERNAL_ABORTED?this.handleFragLoadAborted(i.frag,i.part):this.hls.trigger(y.ERROR,i)}else this.hls.trigger(y.ERROR,{type:re.OTHER_ERROR,details:z.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null},e._handleTransmuxerFlush=function(t){var i=this.getCurrentContext(t);if(i&&this.state===Gr){var a=i.frag,s=i.part,d=i.level,u=self.performance.now();a.stats.parsing.end=u,s&&(s.stats.parsing.end=u),this.updateLevelTiming(a,s,d,t.partial)}else this.fragCurrent||this.state===Qi||this.state===bo||(this.state=ot)},e.getCurrentContext=function(t){var i=this.levels,a=this.fragCurrent,s=t.level,d=t.sn,u=t.part;if(i==null||!i[s])return this.warn("Levels object was unset while buffering fragment "+d+" of level "+s+". The current chunk will not be buffered."),null;var f=i[s],h=u>-1?vh(f,d,u):null,m=h?h.fragment:function(w,x,_){if(w==null||!w.details)return null;var E=w.details,A=E.fragments[x-E.startSN];return A||((A=E.fragmentHint)&&A.sn===x?A:x<E.startSN&&_&&_.sn===x?_:null)}(f,d,a);return m?(a&&a!==m&&(m.stats=a.stats),{frag:m,part:h,level:f}):null},e.bufferFragmentData=function(t,i,a,s,d){var u;if(t&&this.state===Gr){var f=t.data1,h=t.data2,m=f;if(f&&h&&(m=Ii(f,h)),(u=m)!=null&&u.length){var w={type:t.type,frag:i,part:a,chunkMeta:s,parent:i.type,data:m};if(this.hls.trigger(y.BUFFER_APPENDING,w),t.dropped&&t.independent&&!a){if(d)return;this.flushBufferGap(i)}}}},e.flushBufferGap=function(t){var i=this.media;if(i)if(Yt.isBuffered(i,i.currentTime)){var a=i.currentTime,s=Yt.bufferInfo(i,a,0),d=t.duration,u=Math.min(2*this.config.maxFragLookUpTolerance,.25*d),f=Math.max(Math.min(t.start-u,s.end-u),a+u);t.start-f>u&&this.flushMainBuffer(f,t.start)}else this.flushMainBuffer(0,t.start)},e.getFwdBufferInfo=function(t,i){var a=this.getLoadPosition();return te(a)?this.getFwdBufferInfoAtPos(t,a,i):null},e.getFwdBufferInfoAtPos=function(t,i,a){var s=this.config.maxBufferHole,d=Yt.bufferInfo(t,i,s);if(d.len===0&&d.nextStart!==void 0){var u=this.fragmentTracker.getBufferedFrag(i,a);if(u&&d.nextStart<u.end)return Yt.bufferInfo(t,i,Math.max(d.nextStart,s))}return d},e.getMaxBufferLength=function(t){var i,a=this.config;return i=t?Math.max(8*a.maxBufferSize/t,a.maxBufferLength):a.maxBufferLength,Math.min(i,a.maxMaxBufferLength)},e.reduceMaxBufferLength=function(t){var i=this.config,a=t||i.maxBufferLength;return i.maxMaxBufferLength>=a&&(i.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+i.maxMaxBufferLength+"s"),!0)},e.getAppendedFrag=function(t,i){var a=this.fragmentTracker.getAppendedFrag(t,Lt);return a&&"fragment"in a?a.fragment:a},e.getNextFragment=function(t,i){var a=i.fragments,s=a.length;if(!s)return null;var d,u=this.config,f=a[0].start;if(i.live){var h=u.initialLiveManifestSize;if(s<h)return this.warn("Not enough fragments to start playback (have: "+s+", need: "+h+")"),null;(!i.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||t<f)&&(d=this.getInitialLiveFragment(i,a),this.startPosition=this.nextLoadPosition=d?this.hls.liveSyncPosition||d.start:t)}else t<=f&&(d=a[0]);if(!d){var m=u.lowLatencyMode?i.partEnd:i.fragmentEnd;d=this.getFragmentAtPosition(t,m,i)}return this.mapToInitFragWhenRequired(d)},e.isLoopLoading=function(t,i){var a=this.fragmentTracker.getState(t);return(a===gn||a===fo&&!!t.gap)&&this.nextLoadPosition>i},e.getNextFragmentLoopLoading=function(t,i,a,s,d){var u=t.gap,f=this.getNextFragment(this.nextLoadPosition,i);if(f===null)return f;if(t=f,u&&t&&!t.gap&&a.nextStart){var h=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,a.nextStart,s);if(h!==null&&a.len+h.len>=d)return this.log('buffer full after gaps in "'+s+'" playlist starting at sn: '+t.sn),null}return t},e.mapToInitFragWhenRequired=function(t){return t==null||!t.initSegment||t!=null&&t.initSegment.data||this.bitrateTest?t:t.initSegment},e.getNextPart=function(t,i,a){for(var s=-1,d=!1,u=!0,f=0,h=t.length;f<h;f++){var m=t[f];if(u=u&&!m.independent,s>-1&&a<m.start)break;var w=m.loaded;w?s=-1:(d||m.independent||u)&&m.fragment===i&&(s=f),d=w}return s},e.loadedEndOfParts=function(t,i){var a=t[t.length-1];return a&&i>a.start&&a.loaded},e.getInitialLiveFragment=function(t,i){var a=this.fragPrevious,s=null;if(a){if(t.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+a.programDateTime),s=function(h,m,w){if(m===null||!Array.isArray(h)||!h.length||!te(m)||m<(h[0].programDateTime||0)||m>=(h[h.length-1].endProgramDateTime||0))return null;w=w||0;for(var x=0;x<h.length;++x){var _=h[x];if(Q1(m,w,_))return _}return null}(i,a.endProgramDateTime,this.config.maxFragLookUpTolerance)),!s){var d=a.sn+1;if(d>=t.startSN&&d<=t.endSN){var u=i[d-t.startSN];a.cc===u.cc&&(s=u,this.log("Live playlist, switching playlist, load frag with next SN: "+s.sn))}s||(s=function(h,m){return kh(h,function(w){return w.cc<m?1:w.cc>m?-1:0})}(i,a.cc),s&&this.log("Live playlist, switching playlist, load frag with same CC: "+s.sn))}}else{var f=this.hls.liveSyncPosition;f!==null&&(s=this.getFragmentAtPosition(f,this.bitrateTest?t.fragmentEnd:t.edge,t))}return s},e.getFragmentAtPosition=function(t,i,a){var s,d=this.config,u=this.fragPrevious,f=a.fragments,h=a.endSN,m=a.fragmentHint,w=d.maxFragLookUpTolerance,x=a.partList,_=!!(d.lowLatencyMode&&x!=null&&x.length&&m);if(_&&m&&!this.bitrateTest&&(f=f.concat(m),h=m.sn),s=t<i?Ss(u,f,t,t>i-w?0:w):f[f.length-1]){var E=s.sn-a.startSN,A=this.fragmentTracker.getState(s);if((A===gn||A===fo&&s.gap)&&(u=s),u&&s.sn===u.sn&&(!_||x[0].fragment.sn>s.sn)&&u&&s.level===u.level){var T=f[E+1];s=s.sn<h&&this.fragmentTracker.getState(T)!==gn?T:null}}return s},e.synchronizeToLiveEdge=function(t){var i=this.config,a=this.media;if(a){var s=this.hls.liveSyncPosition,d=a.currentTime,u=t.fragments[0].start,f=t.edge,h=d>=u-i.maxFragLookUpTolerance&&d<=f;if(s!==null&&a.duration>s&&(d<s||!h)){var m=i.liveMaxLatencyDuration!==void 0?i.liveMaxLatencyDuration:i.liveMaxLatencyDurationCount*t.targetduration;(!h&&a.readyState<4||d<f-m)&&(this.loadedmetadata||(this.nextLoadPosition=s),a.readyState&&(this.warn("Playback: "+d.toFixed(3)+" is located too far from the end of live sliding playlist: "+f+", reset currentTime to : "+s.toFixed(3)),a.currentTime=s))}}},e.alignPlaylists=function(t,i,a){var s=t.fragments.length;if(!s)return this.warn("No fragments in live playlist"),0;var d=t.fragments[0].start,u=!i,f=t.alignedSliding&&te(d);if(u||!f&&!d){var h=this.fragPrevious;sk(h,a,t);var m=t.fragments[0].start;return this.log("Live playlist sliding: "+m.toFixed(2)+" start-sn: "+(i?i.startSN:"na")+"->"+t.startSN+" prev-sn: "+(h?h.sn:"na")+" fragments: "+s),m}return d},e.waitForCdnTuneIn=function(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,3*t.partTarget)},e.setStartPosition=function(t,i){var a=this.startPosition;if(a<i&&(a=-1),a===-1||this.lastCurrentTime===-1){var s=this.startTimeOffset!==null,d=s?this.startTimeOffset:t.startTimeOffset;d!==null&&te(d)?(a=i+d,d<0&&(a+=t.totalduration),a=Math.min(Math.max(i,a),i+t.totalduration),this.log("Start time offset "+d+" found in "+(s?"multivariant":"media")+" playlist, adjust startPosition to "+a),this.startPosition=a):t.live?a=this.hls.liveSyncPosition||i:this.startPosition=a=0,this.lastCurrentTime=a}this.nextLoadPosition=a},e.getLoadPosition=function(){var t=this.media,i=0;return this.loadedmetadata&&t?i=t.currentTime:this.nextLoadPosition&&(i=this.nextLoadPosition),i},e.handleFragLoadAborted=function(t,i){this.transmuxer&&t.sn!=="initSegment"&&t.stats.aborted&&(this.warn("Fragment "+t.sn+(i?" part "+i.index:"")+" of level "+t.level+" was aborted"),this.resetFragmentLoading(t))},e.resetFragmentLoading=function(t){this.fragCurrent&&(this.fragContextChanged(t)||this.state===vo)||(this.state=ot)},e.onFragmentOrKeyLoadError=function(t,i){if(i.chunkMeta&&!i.frag){var a=this.getCurrentContext(i.chunkMeta);a&&(i.frag=a.frag)}var s=i.frag;if(s&&s.type===t&&this.levels)if(this.fragContextChanged(s)){var d;this.warn("Frag load error must match current frag to retry "+s.url+" > "+((d=this.fragCurrent)==null?void 0:d.url))}else{var u=i.details===z.FRAG_GAP;u&&this.fragmentTracker.fragBuffered(s,!0);var f=i.errorAction,h=f||{},m=h.action,w=h.retryCount,x=w===void 0?0:w,_=h.retryConfig;if(f&&m===Ls&&_){this.resetStartWhenNotLoaded(this.levelLastLoaded);var E=gd(_,x);this.warn("Fragment "+s.sn+" of "+t+" "+s.level+" errored with "+i.details+", retrying loading "+(x+1)+"/"+_.maxNumRetry+" in "+E+"ms"),f.resolved=!0,this.retryDate=self.performance.now()+E,this.state=vo}else if(_&&f){if(this.resetFragmentErrors(t),!(x<_.maxNumRetry))return void j.warn(i.details+" reached or exceeded max retry ("+x+")");u||m===J1||(f.resolved=!0)}else(f==null?void 0:f.action)===Ur?this.state=Ia:this.state=bo;this.tickImmediate()}},e.reduceLengthAndFlushBuffer=function(t){if(this.state===Gr||this.state===Ds){var i=t.parent,a=this.getFwdBufferInfo(this.mediaBuffer,i),s=a&&a.len>.5;s&&this.reduceMaxBufferLength(a.len);var d=!s;return d&&this.warn("Buffer full error while media.currentTime is not buffered, flush "+i+" buffer"),t.frag&&(this.fragmentTracker.removeFragment(t.frag),this.nextLoadPosition=t.frag.start),this.resetLoadingState(),d}return!1},e.resetFragmentErrors=function(t){t===Xi&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Qi&&(this.state=ot)},e.afterBufferFlushed=function(t,i,a){if(t){var s=Yt.getBuffered(t);this.fragmentTracker.detectEvictedFragments(i,s,a),this.state===vn&&this.resetLoadingState()}},e.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=ot},e.resetStartWhenNotLoaded=function(t){if(!this.loadedmetadata){this.startFragRequested=!1;var i=t?t.details:null;i!=null&&i.live?(this.startPosition=-1,this.setStartPosition(i,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},e.resetWhenMissingContext=function(t){this.warn("The loading context changed while buffering fragment "+t.sn+" of level "+t.level+". This chunk will not be buffered."),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()},e.removeUnbufferedFrags=function(t){t===void 0&&(t=0),this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)},e.updateLevelTiming=function(t,i,a,s){var d,u=this,f=a.details;if(f){if(!Object.keys(t.elementaryStreams).reduce(function(m,w){var x=t.elementaryStreams[w];if(x){var _=x.endPTS-x.startPTS;if(_<=0)return u.warn("Could not parse fragment "+t.sn+" "+w+" duration reliably ("+_+")"),m||!1;var E=s?0:gh(f,t,x.startPTS,x.endPTS,x.startDTS,x.endDTS);return u.hls.trigger(y.LEVEL_PTS_UPDATED,{details:f,level:a,drift:E,type:w,frag:t,start:x.startPTS,end:x.endPTS}),!0}return m},!1)&&((d=this.transmuxer)==null?void 0:d.error)===null){var h=new Error("Found no media in fragment "+t.sn+" of level "+t.level+" resetting transmuxer to fallback to playlist timing");if(a.fragmentError===0&&(a.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)),this.warn(h.message),this.hls.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.FRAG_PARSING_ERROR,fatal:!1,error:h,frag:t,reason:"Found no media in msn "+t.sn+' of level "'+a.url+'"'}),!this.hls)return;this.resetTransmuxer()}this.state=Ds,this.hls.trigger(y.FRAG_PARSED,{frag:t,part:i})}else this.warn("level.details undefined")},e.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},e.recoverWorkerError=function(t){t.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())},C(o,[{key:"state",get:function(){return this._state},set:function(t){var i=this._state;i!==t&&(this._state=t,this.log(i+"->"+t))}}]),o}(ak),Ph=function(){function l(){this.chunks=[],this.dataLength=0}var o=l.prototype;return o.push=function(e){this.chunks.push(e),this.dataLength+=e.length},o.flush=function(){var e,t=this.chunks,i=this.dataLength;return t.length?(e=t.length===1?t[0]:function(a,s){for(var d=new Uint8Array(s),u=0,f=0;f<a.length;f++){var h=a[f];d.set(h,u),u+=h.length}return d}(t,i),this.reset(),e):new Uint8Array(0)},o.reset=function(){this.chunks.length=0,this.dataLength=0},l}();function yr(l,o){return l===void 0&&(l=""),o===void 0&&(o=9e4),{type:l,id:-1,pid:-1,inputTimeScale:o,sequenceNumber:-1,samples:[],dropped:0}}var Td=function(){function l(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}var o=l.prototype;return o.resetInitSegment=function(e,t,i,a){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},o.resetTimeStamp=function(e){this.initPTS=e,this.resetContiguity()},o.resetContiguity=function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0},o.canParse=function(e,t){return!1},o.appendFrame=function(e,t,i){},o.demux=function(e,t){this.cachedData&&(e=Ii(this.cachedData,e),this.cachedData=null);var i,a=ut(e,0),s=a?a.length:0,d=this._audioTrack,u=this._id3Track,f=a?Ai(a):void 0,h=e.length;for((this.basePTS===null||this.frameIndex===0&&te(f))&&(this.basePTS=hk(f,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),a&&a.length>0&&u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:a,type:pn,duration:Number.POSITIVE_INFINITY});s<h;){if(this.canParse(e,s)){var m=this.appendFrame(d,e,s);m?(this.frameIndex++,this.lastPTS=m.sample.pts,i=s+=m.length):s=h}else li(e,s)?(a=ut(e,s),u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:a,type:pn,duration:Number.POSITIVE_INFINITY}),i=s+=a.length):s++;if(s===h&&i!==h){var w=Oe(e,i);this.cachedData?this.cachedData=Ii(this.cachedData,w):this.cachedData=w}}return{audioTrack:d,videoTrack:yr(),id3Track:u,textTrack:yr()}},o.demuxSampleAes=function(e,t,i){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},o.flush=function(e){var t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:yr(),id3Track:this._id3Track,textTrack:yr()}},o.destroy=function(){},l}(),hk=function(l,o,e){return te(l)?90*l:9e4*o+(e?9e4*e.baseTime/e.timescale:0)};function Oh(l,o){return l[o]===255&&(246&l[o+1])==240}function Mh(l,o){return 1&l[o+1]?7:9}function Ed(l,o){return(3&l[o+3])<<11|l[o+4]<<3|(224&l[o+5])>>>5}function Is(l,o){return o+1<l.length&&Oh(l,o)}function fk(l,o){if(Is(l,o)){var e=Mh(l,o);if(o+e>=l.length)return!1;var t=Ed(l,o);if(t<=e)return!1;var i=o+t;return i===l.length||Is(l,i)}return!1}function Fh(l,o,e,t,i){if(!l.samplerate){var a=function(s,d,u,f){var h,m,w,x,_=navigator.userAgent.toLowerCase(),E=f,A=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];h=1+((192&d[u+2])>>>6);var T=(60&d[u+2])>>>2;if(!(T>A.length-1))return w=(1&d[u+2])<<2,w|=(192&d[u+3])>>>6,j.log("manifest codec:"+f+", ADTS type:"+h+", samplingIndex:"+T),/firefox/i.test(_)?T>=6?(h=5,x=new Array(4),m=T-3):(h=2,x=new Array(2),m=T):_.indexOf("android")!==-1?(h=2,x=new Array(2),m=T):(h=5,x=new Array(4),f&&(f.indexOf("mp4a.40.29")!==-1||f.indexOf("mp4a.40.5")!==-1)||!f&&T>=6?m=T-3:((f&&f.indexOf("mp4a.40.2")!==-1&&(T>=6&&w===1||/vivaldi/i.test(_))||!f&&w===1)&&(h=2,x=new Array(2)),m=T)),x[0]=h<<3,x[0]|=(14&T)>>1,x[1]|=(1&T)<<7,x[1]|=w<<3,h===5&&(x[1]|=(14&m)>>1,x[2]=(1&m)<<7,x[2]|=8,x[3]=0),{config:x,samplerate:A[T],channelCount:w,codec:"mp4a.40."+h,manifestCodec:E};var L=new Error("invalid ADTS sampling index:"+T);s.emit(y.ERROR,y.ERROR,{type:re.MEDIA_ERROR,details:z.FRAG_PARSING_ERROR,fatal:!0,error:L,reason:L.message})}(o,e,t,i);if(!a)return;l.config=a.config,l.samplerate=a.samplerate,l.channelCount=a.channelCount,l.codec=a.codec,l.manifestCodec=a.manifestCodec,j.log("parsed codec:"+l.codec+", rate:"+a.samplerate+", channels:"+a.channelCount)}}function Nh(l){return 9216e4/l}function zh(l,o,e,t,i){var a,s=t+i*Nh(l.samplerate),d=function(_,E){var A=Mh(_,E);if(E+A<=_.length){var T=Ed(_,E)-A;if(T>0)return{headerLength:A,frameLength:T}}}(o,e);if(d){var u=d.frameLength,f=d.headerLength,h=f+u,m=Math.max(0,e+h-o.length);m?(a=new Uint8Array(h-f)).set(o.subarray(e+f,o.length),0):a=o.subarray(e+f,e+h);var w={unit:a,pts:s};return m||l.samples.push(w),{sample:w,length:h,missing:m}}var x=o.length-e;return(a=new Uint8Array(x)).set(o.subarray(e,o.length),0),{sample:{unit:a,pts:s},length:x,missing:-1}}var Ps=null,gk=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],mk=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],vk=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],bk=[0,1,1,4];function Bh(l,o,e,t,i){if(!(e+24>o.length)){var a=Uh(o,e);if(a&&e+a.frameLength<=o.length){var s=t+i*(9e4*a.samplesPerFrame/a.sampleRate),d={unit:o.subarray(e,e+a.frameLength),pts:s,dts:s};return l.config=[],l.channelCount=a.channelCount,l.samplerate=a.sampleRate,l.samples.push(d),{sample:d,length:a.frameLength,missing:0}}}}function Uh(l,o){var e=l[o+1]>>3&3,t=l[o+1]>>1&3,i=l[o+2]>>4&15,a=l[o+2]>>2&3;if(e!==1&&i!==0&&i!==15&&a!==3){var s=l[o+2]>>1&1,d=l[o+3]>>6,u=1e3*gk[14*(e===3?3-t:t===3?3:4)+i-1],f=mk[3*(e===3?0:e===2?1:2)+a],h=d===3?1:2,m=vk[e][t],w=bk[t],x=8*m*w,_=Math.floor(m*u/f+s)*w;if(Ps===null){var E=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ps=E?parseInt(E[1]):0}return!!Ps&&Ps<=87&&t===2&&u>=224e3&&d===0&&(l[o+3]=128|l[o+3]),{sampleRate:f,channelCount:h,frameLength:_,samplesPerFrame:x}}}function Sd(l,o){return l[o]===255&&(224&l[o+1])==224&&(6&l[o+1])!=0}function Vh(l,o){return o+1<l.length&&Sd(l,o)}function jh(l,o){if(o+1<l.length&&Sd(l,o)){var e=Uh(l,o),t=4;e!=null&&e.frameLength&&(t=e.frameLength);var i=o+t;return i===l.length||Vh(l,i)}return!1}var wk=function(l){function o(t,i){var a;return(a=l.call(this)||this).observer=void 0,a.config=void 0,a.observer=t,a.config=i,a}D(o,l);var e=o.prototype;return e.resetInitSegment=function(t,i,a,s){l.prototype.resetInitSegment.call(this,t,i,a,s),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:i,duration:s,inputTimeScale:9e4,dropped:0}},o.probe=function(t){if(!t)return!1;var i=ut(t,0),a=(i==null?void 0:i.length)||0;if(jh(t,a))return!1;for(var s=t.length;a<s;a++)if(fk(t,a))return j.log("ADTS sync word found !"),!0;return!1},e.canParse=function(t,i){return function(a,s){return function(d,u){return u+5<d.length}(a,s)&&Oh(a,s)&&Ed(a,s)<=a.length-s}(t,i)},e.appendFrame=function(t,i,a){Fh(t,this.observer,i,a,t.manifestCodec);var s=zh(t,i,a,this.basePTS,this.frameIndex);if(s&&s.missing===0)return s},o}(Td),xk=/\/emsg[-/]ID3/i,yk=function(){function l(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}var o=l.prototype;return o.resetTimeStamp=function(){},o.resetInitSegment=function(e,t,i,a){var s=this.videoTrack=yr("video",1),d=this.audioTrack=yr("audio",1),u=this.txtTrack=yr("text",1);if(this.id3Track=yr("id3",1),this.timeOffset=0,e!=null&&e.byteLength){var f=on(e);if(f.video){var h=f.video,m=h.id,w=h.timescale,x=h.codec;s.id=m,s.timescale=u.timescale=w,s.codec=x}if(f.audio){var _=f.audio,E=_.id,A=_.timescale,T=_.codec;d.id=E,d.timescale=A,d.codec=T}u.id=sa.text,s.sampleDuration=0,s.duration=d.duration=a}},o.resetContiguity=function(){this.remainderData=null},l.probe=function(e){return function(t){for(var i=t.byteLength,a=0;a<i;){var s=Ge(t,a);if(s>8&&t[a+4]===109&&t[a+5]===111&&t[a+6]===111&&t[a+7]===102)return!0;a=s>1?a+s:i}return!1}(e)},o.demux=function(e,t){this.timeOffset=t;var i=e,a=this.videoTrack,s=this.txtTrack;if(this.config.progressive){this.remainderData&&(i=Ii(this.remainderData,e));var d=function(f){var h={valid:null,remainder:null},m=et(f,["moof"]);if(m.length<2)return h.remainder=f,h;var w=m[m.length-1];return h.valid=Oe(f,0,w.byteOffset-8),h.remainder=Oe(f,w.byteOffset-8),h}(i);this.remainderData=d.remainder,a.samples=d.valid||new Uint8Array}else a.samples=i;var u=this.extractID3Track(a,t);return s.samples=ie(t,a),{videoTrack:a,audioTrack:this.audioTrack,id3Track:u,textTrack:this.txtTrack}},o.flush=function(){var e=this.timeOffset,t=this.videoTrack,i=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;var a=this.extractID3Track(t,this.timeOffset);return i.samples=ie(e,t),{videoTrack:t,audioTrack:yr(),id3Track:a,textTrack:yr()}},o.extractID3Track=function(e,t){var i=this.id3Track;if(e.samples.length){var a=et(e.samples,["emsg"]);a&&a.forEach(function(s){var d=function(m){var w=m[0],x="",_="",E=0,A=0,T=0,L=0,I=0,P=0;if(w===0){for(;Vt(m.subarray(P,P+1))!=="\0";)x+=Vt(m.subarray(P,P+1)),P+=1;for(x+=Vt(m.subarray(P,P+1)),P+=1;Vt(m.subarray(P,P+1))!=="\0";)_+=Vt(m.subarray(P,P+1)),P+=1;_+=Vt(m.subarray(P,P+1)),P+=1,E=Ge(m,12),A=Ge(m,16),L=Ge(m,20),I=Ge(m,24),P=28}else if(w===1){E=Ge(m,P+=4);var G=Ge(m,P+=4),$=Ge(m,P+=4);for(P+=4,T=Math.pow(2,32)*G+$,xe(T)||(T=Number.MAX_SAFE_INTEGER,j.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),L=Ge(m,P),I=Ge(m,P+=4),P+=4;Vt(m.subarray(P,P+1))!=="\0";)x+=Vt(m.subarray(P,P+1)),P+=1;for(x+=Vt(m.subarray(P,P+1)),P+=1;Vt(m.subarray(P,P+1))!=="\0";)_+=Vt(m.subarray(P,P+1)),P+=1;_+=Vt(m.subarray(P,P+1)),P+=1}return{schemeIdUri:x,value:_,timeScale:E,presentationTime:T,presentationTimeDelta:A,eventDuration:L,id:I,payload:m.subarray(P,m.byteLength)}}(s);if(xk.test(d.schemeIdUri)){var u=te(d.presentationTime)?d.presentationTime/d.timeScale:t+d.presentationTimeDelta/d.timeScale,f=d.eventDuration===4294967295?Number.POSITIVE_INFINITY:d.eventDuration/d.timeScale;f<=.001&&(f=Number.POSITIVE_INFINITY);var h=d.payload;i.samples.push({data:h,len:h.byteLength,dts:u,pts:u,type:hn,duration:f})}})}return i},o.demuxSampleAes=function(e,t,i){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},o.destroy=function(){},l}(),Gh=function(l,o){var e=0,t=5;o+=t;for(var i=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);t>0;){s[0]=l[o];var d=Math.min(t,8),u=8-d;a[0]=4278190080>>>24+u<<u,i[0]=(s[0]&a[0])>>u,e=e?e<<d|i[0]:i[0],o+=1,t-=d}return e},kk=function(l){function o(t){var i;return(i=l.call(this)||this).observer=void 0,i.observer=t,i}D(o,l);var e=o.prototype;return e.resetInitSegment=function(t,i,a,s){l.prototype.resetInitSegment.call(this,t,i,a,s),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:i,duration:s,inputTimeScale:9e4,dropped:0}},e.canParse=function(t,i){return i+64<t.length},e.appendFrame=function(t,i,a){var s=$h(t,i,a,this.basePTS,this.frameIndex);if(s!==-1)return{sample:t.samples[t.samples.length-1],length:s,missing:0}},o.probe=function(t){if(!t)return!1;var i=ut(t,0);if(!i)return!1;var a=i.length;return t[a]===11&&t[a+1]===119&&Ai(i)!==void 0&&Gh(t,a)<16},o}(Td);function $h(l,o,e,t,i){if(e+8>o.length||o[e]!==11||o[e+1]!==119)return-1;var a=o[e+4]>>6;if(a>=3)return-1;var s=[48e3,44100,32e3][a],d=63&o[e+4],u=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+a];if(e+u>o.length)return-1;var f=o[e+6]>>5,h=0;f===2?h+=2:(1&f&&f!==1&&(h+=2),4&f&&(h+=2));var m=(o[e+6]<<8|o[e+7])>>12-h&1,w=[2,1,2,3,3,4,4,5][f]+m,x=o[e+5]>>3,_=7&o[e+5],E=new Uint8Array([a<<6|x<<1|_>>2,(3&_)<<6|f<<3|m<<2|d>>4,d<<4&224]),A=t+i*(1536/s*9e4),T=o.subarray(e,e+u);return l.config=E,l.channelCount=w,l.samplerate=s,l.samples.push({unit:T,pts:A}),u}var _k=function(){function l(){this.VideoSample=null}var o=l.prototype;return o.createVideoSample=function(e,t,i,a){return{key:e,frame:!1,pts:t,dts:i,units:[],debug:a,length:0}},o.getLastNalUnit=function(e){var t,i,a=this.VideoSample;if(a&&a.units.length!==0||(a=e[e.length-1]),(t=a)!=null&&t.units){var s=a.units;i=s[s.length-1]}return i},o.pushAccessUnit=function(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){var i=t.samples,a=i.length;if(!a)return void t.dropped++;var s=i[a-1];e.pts=s.pts,e.dts=s.dts}t.samples.push(e)}e.debug.length&&j.log(e.pts+"/"+e.dts+":"+e.debug)},l}(),Hh=function(){function l(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}var o=l.prototype;return o.loadWord=function(){var e=this.data,t=this.bytesAvailable,i=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(s===0)throw new Error("no bytes available");a.set(e.subarray(i,i+s)),this.word=new DataView(a.buffer).getUint32(0),this.bitsAvailable=8*s,this.bytesAvailable-=s},o.skipBits=function(e){var t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,e-=(t=e>>3)<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},o.readBits=function(e){var t=Math.min(this.bitsAvailable,e),i=this.word>>>32-t;if(e>32&&j.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(t=e-t)>0&&this.bitsAvailable?i<<t|this.readBits(t):i},o.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!=0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},o.skipUEG=function(){this.skipBits(1+this.skipLZ())},o.skipEG=function(){this.skipBits(1+this.skipLZ())},o.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},o.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},o.readBoolean=function(){return this.readBits(1)===1},o.readUByte=function(){return this.readBits(8)},o.readUShort=function(){return this.readBits(16)},o.readUInt=function(){return this.readBits(32)},o.skipScalingList=function(e){for(var t=8,i=8,a=0;a<e;a++)i!==0&&(i=(t+this.readEG()+256)%256),t=i===0?t:i},o.readSPS=function(){var e,t,i,a=0,s=0,d=0,u=0,f=this.readUByte.bind(this),h=this.readBits.bind(this),m=this.readUEG.bind(this),w=this.readBoolean.bind(this),x=this.skipBits.bind(this),_=this.skipEG.bind(this),E=this.skipUEG.bind(this),A=this.skipScalingList.bind(this);f();var T=f();if(h(5),x(3),f(),E(),T===100||T===110||T===122||T===244||T===44||T===83||T===86||T===118||T===128){var L=m();if(L===3&&x(1),E(),E(),x(1),w())for(t=L!==3?8:12,i=0;i<t;i++)w()&&A(i<6?16:64)}E();var I=m();if(I===0)m();else if(I===1)for(x(1),_(),_(),e=m(),i=0;i<e;i++)_();E(),x(1);var P=m(),G=m(),$=h(1);$===0&&x(1),x(1),w()&&(a=m(),s=m(),d=m(),u=m());var B=[1,1];if(w()&&w())switch(f()){case 1:B=[1,1];break;case 2:B=[12,11];break;case 3:B=[10,11];break;case 4:B=[16,11];break;case 5:B=[40,33];break;case 6:B=[24,11];break;case 7:B=[20,11];break;case 8:B=[32,11];break;case 9:B=[80,33];break;case 10:B=[18,11];break;case 11:B=[15,11];break;case 12:B=[64,33];break;case 13:B=[160,99];break;case 14:B=[4,3];break;case 15:B=[3,2];break;case 16:B=[2,1];break;case 255:B=[f()<<8|f(),f()<<8|f()]}return{width:Math.ceil(16*(P+1)-2*a-2*s),height:(2-$)*(G+1)*16-($?2:4)*(d+u),pixelRatio:B}},o.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},l}(),Tk=function(l){function o(){return l.apply(this,arguments)||this}D(o,l);var e=o.prototype;return e.parseAVCPES=function(t,i,a,s,d){var u,f=this,h=this.parseAVCNALu(t,a.data),m=this.VideoSample,w=!1;a.data=null,m&&h.length&&!t.audFound&&(this.pushAccessUnit(m,t),m=this.VideoSample=this.createVideoSample(!1,a.pts,a.dts,"")),h.forEach(function(x){var _;switch(x.type){case 1:var E=!1;u=!0;var A,T=x.data;if(w&&T.length>4){var L=new Hh(T).readSliceType();L!==2&&L!==4&&L!==7&&L!==9||(E=!0)}E&&(A=m)!=null&&A.frame&&!m.key&&(f.pushAccessUnit(m,t),m=f.VideoSample=null),m||(m=f.VideoSample=f.createVideoSample(!0,a.pts,a.dts,"")),m.frame=!0,m.key=E;break;case 5:u=!0,(_=m)!=null&&_.frame&&!m.key&&(f.pushAccessUnit(m,t),m=f.VideoSample=null),m||(m=f.VideoSample=f.createVideoSample(!0,a.pts,a.dts,"")),m.key=!0,m.frame=!0;break;case 6:u=!0,He(x.data,1,a.pts,i.samples);break;case 7:var I,P;u=!0,w=!0;var G=x.data,$=new Hh(G).readSPS();if(!t.sps||t.width!==$.width||t.height!==$.height||((I=t.pixelRatio)==null?void 0:I[0])!==$.pixelRatio[0]||((P=t.pixelRatio)==null?void 0:P[1])!==$.pixelRatio[1]){t.width=$.width,t.height=$.height,t.pixelRatio=$.pixelRatio,t.sps=[G],t.duration=d;for(var B=G.subarray(1,4),J="avc1.",X=0;X<3;X++){var ee=B[X].toString(16);ee.length<2&&(ee="0"+ee),J+=ee}t.codec=J}break;case 8:u=!0,t.pps=[x.data];break;case 9:u=!0,t.audFound=!0,m&&f.pushAccessUnit(m,t),m=f.VideoSample=f.createVideoSample(!1,a.pts,a.dts,"");break;case 12:u=!0;break;default:u=!1,m&&(m.debug+="unknown NAL "+x.type+" ")}m&&u&&m.units.push(x)}),s&&m&&(this.pushAccessUnit(m,t),this.VideoSample=null)},e.parseAVCNALu=function(t,i){var a,s,d=i.byteLength,u=t.naluState||0,f=u,h=[],m=0,w=-1,x=0;for(u===-1&&(w=0,x=31&i[0],u=0,m=1);m<d;)if(a=i[m++],u)if(u!==1)if(a)if(a===1){if(s=m-u-1,w>=0){var _={data:i.subarray(w,s),type:x};h.push(_)}else{var E=this.getLastNalUnit(t.samples);E&&(f&&m<=4-f&&E.state&&(E.data=E.data.subarray(0,E.data.byteLength-f)),s>0&&(E.data=Ii(E.data,i.subarray(0,s)),E.state=0))}m<d?(w=m,x=31&i[m],u=0):u=-1}else u=0;else u=3;else u=a?0:2;else u=a?0:1;if(w>=0&&u>=0){var A={data:i.subarray(w,d),type:x,state:u};h.push(A)}if(h.length===0){var T=this.getLastNalUnit(t.samples);T&&(T.data=Ii(T.data,i))}return t.naluState=u,h},o}(_k),Ek=function(){function l(e,t,i){this.keyData=void 0,this.decrypter=void 0,this.keyData=i,this.decrypter=new yd(t,{removePKCS7Padding:!1})}var o=l.prototype;return o.decryptBuffer=function(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)},o.decryptAacSample=function(e,t,i){var a=this,s=e[t].unit;if(!(s.length<=16)){var d=s.subarray(16,s.length-s.length%16),u=d.buffer.slice(d.byteOffset,d.byteOffset+d.length);this.decryptBuffer(u).then(function(f){var h=new Uint8Array(f);s.set(h,16),a.decrypter.isSync()||a.decryptAacSamples(e,t+1,i)})}},o.decryptAacSamples=function(e,t,i){for(;;t++){if(t>=e.length)return void i();if(!(e[t].unit.length<32||(this.decryptAacSample(e,t,i),this.decrypter.isSync())))return}},o.getAvcEncryptedData=function(e){for(var t=16*Math.floor((e.length-48)/160)+16,i=new Int8Array(t),a=0,s=32;s<e.length-16;s+=160,a+=16)i.set(e.subarray(s,s+16),a);return i},o.getAvcDecryptedUnit=function(e,t){for(var i=new Uint8Array(t),a=0,s=32;s<e.length-16;s+=160,a+=16)e.set(i.subarray(a,a+16),s);return e},o.decryptAvcSample=function(e,t,i,a,s){var d=this,u=Gt(s.data),f=this.getAvcEncryptedData(u);this.decryptBuffer(f.buffer).then(function(h){s.data=d.getAvcDecryptedUnit(u,h),d.decrypter.isSync()||d.decryptAvcSamples(e,t,i+1,a)})},o.decryptAvcSamples=function(e,t,i,a){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,i=0){if(t>=e.length)return void a();for(var s=e[t].units;!(i>=s.length);i++){var d=s[i];if(!(d.data.length<=48||d.type!==1&&d.type!==5||(this.decryptAvcSample(e,t,i,a,d),this.decrypter.isSync())))return}}},l}(),ki=188,Sk=function(){function l(e,t,i){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=i,this.videoParser=new Tk}l.probe=function(e){var t=l.syncOffset(e);return t>0&&j.warn("MPEG2-TS detected but first sync word found @ offset "+t),t!==-1},l.syncOffset=function(e){for(var t=e.length,i=Math.min(940,t-ki)+1,a=0;a<i;){for(var s=!1,d=-1,u=0,f=a;f<t;f+=ki){if(e[f]!==71||t-f!==ki&&e[f+ki]!==71){if(u)return-1;break}if(u++,d===-1&&(d=f)!==0&&(i=Math.min(d+18612,e.length-ki)+1),s||(s=Ld(e,f)===0),s&&u>1&&(d===0&&u>2||f+ki>i))return d}a++}return-1},l.createTrack=function(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:sa[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}};var o=l.prototype;return o.resetInitSegment=function(e,t,i,a){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=l.createTrack("video"),this._audioTrack=l.createTrack("audio",a),this._id3Track=l.createTrack("id3"),this._txtTrack=l.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=i,this._duration=a},o.resetTimeStamp=function(){},o.resetContiguity=function(){var e=this._audioTrack,t=this._videoTrack,i=this._id3Track;e&&(e.pesData=null),t&&(t.pesData=null),i&&(i.pesData=null),this.aacOverFlow=null,this.remainderData=null},o.demux=function(e,t,i,a){var s;i===void 0&&(i=!1),a===void 0&&(a=!1),i||(this.sampleAes=null);var d=this._videoTrack,u=this._audioTrack,f=this._id3Track,h=this._txtTrack,m=d.pid,w=d.pesData,x=u.pid,_=f.pid,E=u.pesData,A=f.pesData,T=null,L=this.pmtParsed,I=this._pmtId,P=e.length;if(this.remainderData&&(P=(e=Ii(this.remainderData,e)).length,this.remainderData=null),P<ki&&!a)return this.remainderData=e,{audioTrack:u,videoTrack:d,id3Track:f,textTrack:h};var G=Math.max(0,l.syncOffset(e));(P-=(P-G)%ki)<e.byteLength&&!a&&(this.remainderData=new Uint8Array(e.buffer,P,e.buffer.byteLength-P));for(var $=0,B=G;B<P;B+=ki)if(e[B]===71){var J=!!(64&e[B+1]),X=Ld(e,B),ee=void 0;if((48&e[B+3])>>4>1){if((ee=B+5+e[B+4])===B+ki)continue}else ee=B+4;switch(X){case m:J&&(w&&(s=wo(w))&&this.videoParser.parseAVCPES(d,h,s,!1,this._duration),w={data:[],size:0}),w&&(w.data.push(e.subarray(ee,B+ki)),w.size+=B+ki-ee);break;case x:if(J){if(E&&(s=wo(E)))switch(u.segmentCodec){case"aac":this.parseAACPES(u,s);break;case"mp3":this.parseMPEGPES(u,s);break;case"ac3":this.parseAC3PES(u,s)}E={data:[],size:0}}E&&(E.data.push(e.subarray(ee,B+ki)),E.size+=B+ki-ee);break;case _:J&&(A&&(s=wo(A))&&this.parseID3PES(f,s),A={data:[],size:0}),A&&(A.data.push(e.subarray(ee,B+ki)),A.size+=B+ki-ee);break;case 0:J&&(ee+=e[ee]+1),I=this._pmtId=Lk(e,ee);break;case I:J&&(ee+=e[ee]+1);var ae=Ak(e,ee,this.typeSupported,i);(m=ae.videoPid)>0&&(d.pid=m,d.segmentCodec=ae.segmentVideoCodec),(x=ae.audioPid)>0&&(u.pid=x,u.segmentCodec=ae.segmentAudioCodec),(_=ae.id3Pid)>0&&(f.pid=_),T===null||L||(j.warn("MPEG-TS PMT found at "+B+" after unknown PID '"+T+"'. Backtracking to sync byte @"+G+" to parse all TS packets."),T=null,B=G-188),L=this.pmtParsed=!0;break;case 17:case 8191:break;default:T=X}}else $++;if($>0){var be=new Error("Found "+$+" TS packet/s that do not start with 0x47");this.observer.emit(y.ERROR,y.ERROR,{type:re.MEDIA_ERROR,details:z.FRAG_PARSING_ERROR,fatal:!1,error:be,reason:be.message})}d.pesData=w,u.pesData=E,f.pesData=A;var Te={audioTrack:u,videoTrack:d,id3Track:f,textTrack:h};return a&&this.extractRemainingSamples(Te),Te},o.flush=function(){var e,t=this.remainderData;return this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e},o.extractRemainingSamples=function(e){var t,i=e.audioTrack,a=e.videoTrack,s=e.id3Track,d=e.textTrack,u=a.pesData,f=i.pesData,h=s.pesData;if(u&&(t=wo(u))?(this.videoParser.parseAVCPES(a,d,t,!0,this._duration),a.pesData=null):a.pesData=u,f&&(t=wo(f))){switch(i.segmentCodec){case"aac":this.parseAACPES(i,t);break;case"mp3":this.parseMPEGPES(i,t);break;case"ac3":this.parseAC3PES(i,t)}i.pesData=null}else f!=null&&f.size&&j.log("last AAC PES packet truncated,might overlap between fragments"),i.pesData=f;h&&(t=wo(h))?(this.parseID3PES(s,t),s.pesData=null):s.pesData=h},o.demuxSampleAes=function(e,t,i){var a=this.demux(e,i,!0,!this.config.progressive),s=this.sampleAes=new Ek(this.observer,this.config,t);return this.decrypt(a,s)},o.decrypt=function(e,t){return new Promise(function(i){var a=e.audioTrack,s=e.videoTrack;a.samples&&a.segmentCodec==="aac"?t.decryptAacSamples(a.samples,0,function(){s.samples?t.decryptAvcSamples(s.samples,0,0,function(){i(e)}):i(e)}):s.samples&&t.decryptAvcSamples(s.samples,0,0,function(){i(e)})})},o.destroy=function(){this._duration=0},o.parseAACPES=function(e,t){var i,a,s,d=0,u=this.aacOverFlow,f=t.data;if(u){this.aacOverFlow=null;var h=u.missing,m=u.sample.unit.byteLength;if(h===-1)f=Ii(u.sample.unit,f);else{var w=m-h;u.sample.unit.set(f.subarray(0,h),w),e.samples.push(u.sample),d=u.missing}}for(i=d,a=f.length;i<a-1&&!Is(f,i);i++);if(i!==d){var x,_=i<a-1;x=_?"AAC PES did not start with ADTS header,offset:"+i:"No ADTS header found in AAC PES";var E=new Error(x);if(j.warn("parsing error: "+x),this.observer.emit(y.ERROR,y.ERROR,{type:re.MEDIA_ERROR,details:z.FRAG_PARSING_ERROR,fatal:!1,levelRetry:_,error:E,reason:x}),!_)return}if(Fh(e,this.observer,f,i,this.audioCodec),t.pts!==void 0)s=t.pts;else{if(!u)return void j.warn("[tsdemuxer]: AAC PES unknown PTS");var A=Nh(e.samplerate);s=u.sample.pts+A}for(var T,L=0;i<a;){if(i+=(T=zh(e,f,i,s,L)).length,T.missing){this.aacOverFlow=T;break}for(L++;i<a-1&&!Is(f,i);i++);}},o.parseMPEGPES=function(e,t){var i=t.data,a=i.length,s=0,d=0,u=t.pts;if(u!==void 0)for(;d<a;)if(Vh(i,d)){var f=Bh(e,i,d,u,s);if(!f)break;d+=f.length,s++}else d++;else j.warn("[tsdemuxer]: MPEG PES unknown PTS")},o.parseAC3PES=function(e,t){var i=t.data,a=t.pts;if(a!==void 0)for(var s,d=i.length,u=0,f=0;f<d&&(s=$h(e,i,f,a,u++))>0;)f+=s;else j.warn("[tsdemuxer]: AC3 PES unknown PTS")},o.parseID3PES=function(e,t){if(t.pts!==void 0){var i=R({},t,{type:this._videoTrack?hn:pn,duration:Number.POSITIVE_INFINITY});e.samples.push(i)}else j.warn("[tsdemuxer]: ID3 PES unknown PTS")},l}();function Ld(l,o){return((31&l[o+1])<<8)+l[o+2]}function Lk(l,o){return(31&l[o+10])<<8|l[o+11]}function Ak(l,o,e,t){var i={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},a=o+3+((15&l[o+1])<<8|l[o+2])-4;for(o+=12+((15&l[o+10])<<8|l[o+11]);o<a;){var s=Ld(l,o),d=(15&l[o+3])<<8|l[o+4];switch(l[o]){case 207:if(!t){Ad("ADTS AAC");break}case 15:i.audioPid===-1&&(i.audioPid=s);break;case 21:i.id3Pid===-1&&(i.id3Pid=s);break;case 219:if(!t){Ad("H.264");break}case 27:i.videoPid===-1&&(i.videoPid=s,i.segmentVideoCodec="avc");break;case 3:case 4:e.mpeg||e.mp3?i.audioPid===-1&&(i.audioPid=s,i.segmentAudioCodec="mp3"):j.log("MPEG audio found, not supported in this browser");break;case 193:if(!t){Ad("AC-3");break}case 129:e.ac3?i.audioPid===-1&&(i.audioPid=s,i.segmentAudioCodec="ac3"):j.log("AC-3 audio found, not supported in this browser");break;case 6:if(i.audioPid===-1&&d>0)for(var u=o+5,f=d;f>2;){l[u]===106&&(e.ac3!==!0?j.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=s,i.segmentAudioCodec="ac3"));var h=l[u+1]+2;u+=h,f-=h}break;case 194:case 135:j.warn("Unsupported EC-3 in M2TS found");break;case 36:j.warn("Unsupported HEVC in M2TS found")}o+=d+5}return i}function Ad(l){j.log(l+" with AES-128-CBC encryption found in unencrypted stream")}function wo(l){var o,e,t,i,a,s=0,d=l.data;if(!l||l.size===0)return null;for(;d[0].length<19&&d.length>1;)d[0]=Ii(d[0],d[1]),d.splice(1,1);if(((o=d[0])[0]<<16)+(o[1]<<8)+o[2]===1){if((e=(o[4]<<8)+o[5])&&e>l.size-6)return null;var u=o[7];192&u&&(i=536870912*(14&o[9])+4194304*(255&o[10])+16384*(254&o[11])+128*(255&o[12])+(254&o[13])/2,64&u?i-(a=536870912*(14&o[14])+4194304*(255&o[15])+16384*(254&o[16])+128*(255&o[17])+(254&o[18])/2)>54e5&&(j.warn(Math.round((i-a)/9e4)+"s delta between PTS and DTS, align them"),i=a):a=i);var f=(t=o[8])+9;if(l.size<=f)return null;l.size-=f;for(var h=new Uint8Array(l.size),m=0,w=d.length;m<w;m++){var x=(o=d[m]).byteLength;if(f){if(f>x){f-=x;continue}o=o.subarray(f),x-=f,f=0}h.set(o,s),s+=x}return e&&(e-=t+3),{data:h,pts:i,dts:a,len:e}}return null}var Ck=function(l){function o(){return l.apply(this,arguments)||this}D(o,l);var e=o.prototype;return e.resetInitSegment=function(t,i,a,s){l.prototype.resetInitSegment.call(this,t,i,a,s),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:i,duration:s,inputTimeScale:9e4,dropped:0}},o.probe=function(t){if(!t)return!1;var i=ut(t,0),a=(i==null?void 0:i.length)||0;if(i&&t[a]===11&&t[a+1]===119&&Ai(i)!==void 0&&Gh(t,a)<=16)return!1;for(var s=t.length;a<s;a++)if(jh(t,a))return j.log("MPEG Audio sync word found !"),!0;return!1},e.canParse=function(t,i){return function(a,s){return Sd(a,s)&&4<=a.length-s}(t,i)},e.appendFrame=function(t,i,a){if(this.basePTS!==null)return Bh(t,i,a,this.basePTS,this.frameIndex)},o}(Td),Kh=function(){function l(){}return l.getSilentFrame=function(o,e){if(o==="mp4a.40.2"){if(e===1)return new Uint8Array([0,200,0,128,35,128]);if(e===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(e===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(e===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(e===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(e===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(e===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(e===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(e===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}},l}(),da=Math.pow(2,32)-1,bi=function(){function l(){}return l.init=function(){var o;for(o in l.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},l.types)l.types.hasOwnProperty(o)&&(l.types[o]=[o.charCodeAt(0),o.charCodeAt(1),o.charCodeAt(2),o.charCodeAt(3)]);var e=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),t=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);l.HDLR_TYPES={video:e,audio:t};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);l.STTS=l.STSC=l.STCO=a,l.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),l.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),l.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),l.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var s=new Uint8Array([105,115,111,109]),d=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);l.FTYP=l.box(l.types.ftyp,s,u,s,d),l.DINF=l.box(l.types.dinf,l.box(l.types.dref,i))},l.box=function(o){for(var e=8,t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];for(var s=i.length,d=s;s--;)e+=i[s].byteLength;var u=new Uint8Array(e);for(u[0]=e>>24&255,u[1]=e>>16&255,u[2]=e>>8&255,u[3]=255&e,u.set(o,4),s=0,e=8;s<d;s++)u.set(i[s],e),e+=i[s].byteLength;return u},l.hdlr=function(o){return l.box(l.types.hdlr,l.HDLR_TYPES[o])},l.mdat=function(o){return l.box(l.types.mdat,o)},l.mdhd=function(o,e){e*=o;var t=Math.floor(e/(da+1)),i=Math.floor(e%(da+1));return l.box(l.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,o>>24&255,o>>16&255,o>>8&255,255&o,t>>24,t>>16&255,t>>8&255,255&t,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))},l.mdia=function(o){return l.box(l.types.mdia,l.mdhd(o.timescale,o.duration),l.hdlr(o.type),l.minf(o))},l.mfhd=function(o){return l.box(l.types.mfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,255&o]))},l.minf=function(o){return o.type==="audio"?l.box(l.types.minf,l.box(l.types.smhd,l.SMHD),l.DINF,l.stbl(o)):l.box(l.types.minf,l.box(l.types.vmhd,l.VMHD),l.DINF,l.stbl(o))},l.moof=function(o,e,t){return l.box(l.types.moof,l.mfhd(o),l.traf(t,e))},l.moov=function(o){for(var e=o.length,t=[];e--;)t[e]=l.trak(o[e]);return l.box.apply(null,[l.types.moov,l.mvhd(o[0].timescale,o[0].duration)].concat(t).concat(l.mvex(o)))},l.mvex=function(o){for(var e=o.length,t=[];e--;)t[e]=l.trex(o[e]);return l.box.apply(null,[l.types.mvex].concat(t))},l.mvhd=function(o,e){e*=o;var t=Math.floor(e/(da+1)),i=Math.floor(e%(da+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,o>>24&255,o>>16&255,o>>8&255,255&o,t>>24,t>>16&255,t>>8&255,255&t,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return l.box(l.types.mvhd,a)},l.sdtp=function(o){var e,t,i=o.samples||[],a=new Uint8Array(4+i.length);for(e=0;e<i.length;e++)t=i[e].flags,a[e+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return l.box(l.types.sdtp,a)},l.stbl=function(o){return l.box(l.types.stbl,l.stsd(o),l.box(l.types.stts,l.STTS),l.box(l.types.stsc,l.STSC),l.box(l.types.stsz,l.STSZ),l.box(l.types.stco,l.STCO))},l.avc1=function(o){var e,t,i,a=[],s=[];for(e=0;e<o.sps.length;e++)i=(t=o.sps[e]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(t));for(e=0;e<o.pps.length;e++)i=(t=o.pps[e]).byteLength,s.push(i>>>8&255),s.push(255&i),s=s.concat(Array.prototype.slice.call(t));var d=l.box(l.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|o.sps.length].concat(a).concat([o.pps.length]).concat(s))),u=o.width,f=o.height,h=o.pixelRatio[0],m=o.pixelRatio[1];return l.box(l.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,u>>8&255,255&u,f>>8&255,255&f,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),d,l.box(l.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),l.box(l.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,255&h,m>>24,m>>16&255,m>>8&255,255&m])))},l.esds=function(o){var e=o.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(o.config).concat([6,1,2]))},l.audioStsd=function(o){var e=o.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,o.channelCount,0,16,0,0,0,0,e>>8&255,255&e,0,0])},l.mp4a=function(o){return l.box(l.types.mp4a,l.audioStsd(o),l.box(l.types.esds,l.esds(o)))},l.mp3=function(o){return l.box(l.types[".mp3"],l.audioStsd(o))},l.ac3=function(o){return l.box(l.types["ac-3"],l.audioStsd(o),l.box(l.types.dac3,o.config))},l.stsd=function(o){return o.type==="audio"?o.segmentCodec==="mp3"&&o.codec==="mp3"?l.box(l.types.stsd,l.STSD,l.mp3(o)):o.segmentCodec==="ac3"?l.box(l.types.stsd,l.STSD,l.ac3(o)):l.box(l.types.stsd,l.STSD,l.mp4a(o)):l.box(l.types.stsd,l.STSD,l.avc1(o))},l.tkhd=function(o){var e=o.id,t=o.duration*o.timescale,i=o.width,a=o.height,s=Math.floor(t/(da+1)),d=Math.floor(t%(da+1));return l.box(l.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,d>>24,d>>16&255,d>>8&255,255&d,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,a>>8&255,255&a,0,0]))},l.traf=function(o,e){var t=l.sdtp(o),i=o.id,a=Math.floor(e/(da+1)),s=Math.floor(e%(da+1));return l.box(l.types.traf,l.box(l.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),l.box(l.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s])),l.trun(o,t.length+16+20+8+16+8+8),t)},l.trak=function(o){return o.duration=o.duration||4294967295,l.box(l.types.trak,l.tkhd(o),l.mdia(o))},l.trex=function(o){var e=o.id;return l.box(l.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},l.trun=function(o,e){var t,i,a,s,d,u,f=o.samples||[],h=f.length,m=12+16*h,w=new Uint8Array(m);for(e+=8+m,w.set([o.type==="video"?1:0,0,15,1,h>>>24&255,h>>>16&255,h>>>8&255,255&h,e>>>24&255,e>>>16&255,e>>>8&255,255&e],0),t=0;t<h;t++)a=(i=f[t]).duration,s=i.size,d=i.flags,u=i.cts,w.set([a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,61440&d.degradPrio,15&d.degradPrio,u>>>24&255,u>>>16&255,u>>>8&255,255&u],12+16*t);return l.box(l.types.trun,w)},l.initSegment=function(o){l.types||l.init();var e=l.moov(o);return Ii(l.FTYP,e)},l}();bi.types=void 0,bi.HDLR_TYPES=void 0,bi.STTS=void 0,bi.STSC=void 0,bi.STCO=void 0,bi.STSZ=void 0,bi.VMHD=void 0,bi.SMHD=void 0,bi.STSD=void 0,bi.FTYP=void 0,bi.DINF=void 0;var Yh=9e4;function Cd(l,o,e,t){e===void 0&&(e=1),t===void 0&&(t=!1);var i=l*o*e;return t?Math.round(i):i}function wn(l,o){return o===void 0&&(o=!1),Cd(l,1e3,1/Yh,o)}var xo=null,Rd=null,Os=function(){function l(e,t,i,a){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=i,this.ISGenerated=!1,xo===null){var s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);xo=s?parseInt(s[1]):0}if(Rd===null){var d=navigator.userAgent.match(/Safari\/(\d+)/i);Rd=d?parseInt(d[1]):0}}var o=l.prototype;return o.destroy=function(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null},o.resetTimeStamp=function(e){j.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e},o.resetNextTimestamp=function(){j.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},o.resetInitSegment=function(){j.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0},o.getVideoStartPts=function(e){var t=!1,i=e.reduce(function(a,s){var d=s.pts-a;return d<-4294967296?(t=!0,Ji(a,s.pts)):d>0?a:s.pts},e[0].pts);return t&&j.debug("PTS rollover detected"),i},o.remux=function(e,t,i,a,s,d,u,f){var h,m,w,x,_,E,A=s,T=s,L=e.pid>-1,I=t.pid>-1,P=t.samples.length,G=e.samples.length>0,$=u&&P>0||P>1;if((!L||G)&&(!I||$)||this.ISGenerated||u){if(this.ISGenerated){var B,J,X,ee,ae=this.videoTrackConfig;!ae||t.width===ae.width&&t.height===ae.height&&((B=t.pixelRatio)==null?void 0:B[0])===((J=ae.pixelRatio)==null?void 0:J[0])&&((X=t.pixelRatio)==null?void 0:X[1])===((ee=ae.pixelRatio)==null?void 0:ee[1])||this.resetInitSegment()}else w=this.generateIS(e,t,s,d);var be,Te=this.isVideoContiguous,Ie=-1;if($&&(Ie=function(Ke){for(var je=0;je<Ke.length;je++)if(Ke[je].key)return je;return-1}(t.samples),!Te&&this.config.forceKeyFrameOnDiscontinuity))if(E=!0,Ie>0){j.warn("[mp4-remuxer]: Dropped "+Ie+" out of "+P+" video samples due to a missing keyframe");var De=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Ie),t.dropped+=Ie,be=T+=(t.samples[0].pts-De)/t.inputTimeScale}else Ie===-1&&(j.warn("[mp4-remuxer]: No keyframe found out of "+P+" video samples"),E=!1);if(this.ISGenerated){if(G&&$){var Ue=this.getVideoStartPts(t.samples),Ae=(Ji(e.samples[0].pts,Ue)-Ue)/t.inputTimeScale;A+=Math.max(0,Ae),T+=Math.max(0,-Ae)}if(G){if(e.samplerate||(j.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),w=this.generateIS(e,t,s,d)),m=this.remuxAudio(e,A,this.isAudioContiguous,d,I||$||f===Xi?T:void 0),$){var Ne=m?m.endPTS-m.startPTS:0;t.inputTimeScale||(j.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),w=this.generateIS(e,t,s,d)),h=this.remuxVideo(t,T,Te,Ne)}}else $&&(h=this.remuxVideo(t,T,Te,0));h&&(h.firstKeyFrame=Ie,h.independent=Ie!==-1,h.firstKeyFramePTS=be)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(i.samples.length&&(_=Wh(i,s,this._initPTS,this._initDTS)),a.samples.length&&(x=qh(a,s,this._initPTS))),{audio:m,video:h,initSegment:w,independent:E,text:x,id3:_}},o.generateIS=function(e,t,i,a){var s,d,u,f=e.samples,h=t.samples,m=this.typeSupported,w={},x=this._initPTS,_=!x||a,E="audio/mp4";if(_&&(s=d=1/0),e.config&&f.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":m.mpeg?(E="audio/mpeg",e.codec=""):m.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}w.audio={id:"audio",container:E,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&m.mpeg?new Uint8Array(0):bi.initSegment([e]),metadata:{channelCount:e.channelCount}},_&&(u=e.inputTimeScale,x&&u===x.timescale?_=!1:s=d=f[0].pts-Math.round(u*i))}if(t.sps&&t.pps&&h.length){if(t.timescale=t.inputTimeScale,w.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:bi.initSegment([t]),metadata:{width:t.width,height:t.height}},_)if(u=t.inputTimeScale,x&&u===x.timescale)_=!1;else{var A=this.getVideoStartPts(h),T=Math.round(u*i);d=Math.min(d,Ji(h[0].dts,A)-T),s=Math.min(s,A-T)}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(w).length)return this.ISGenerated=!0,_?(this._initPTS={baseTime:s,timescale:u},this._initDTS={baseTime:d,timescale:u}):s=u=void 0,{tracks:w,initPTS:s,timescale:u}},o.remuxVideo=function(e,t,i,a){var s,d,u=e.inputTimeScale,f=e.samples,h=[],m=f.length,w=this._initPTS,x=this.nextAvcDts,_=8,E=this.videoSampleDuration,A=Number.POSITIVE_INFINITY,T=Number.NEGATIVE_INFINITY,L=!1;if(!i||x===null){var I=t*u,P=f[0].pts-Ji(f[0].dts,f[0].pts);xo&&x!==null&&Math.abs(I-P-x)<15e3?i=!0:x=I-P}for(var G=w.baseTime*u/w.timescale,$=0;$<m;$++){var B=f[$];B.pts=Ji(B.pts-G,x),B.dts=Ji(B.dts-G,x),B.dts<f[$>0?$-1:$].dts&&(L=!0)}L&&f.sort(function(js,Vf){var N_=js.dts-Vf.dts,z_=js.pts-Vf.pts;return N_||z_}),s=f[0].dts;var J=(d=f[f.length-1].dts)-s,X=J?Math.round(J/(m-1)):E||e.inputTimeScale/30;if(i){var ee=s-x,ae=ee>X,be=ee<-1;if((ae||be)&&(ae?j.warn("AVC: "+wn(ee,!0)+" ms ("+ee+"dts) hole between fragments detected at "+t.toFixed(3)):j.warn("AVC: "+wn(-ee,!0)+" ms ("+ee+"dts) overlapping between fragments detected at "+t.toFixed(3)),!be||x>=f[0].pts||xo)){s=x;var Te=f[0].pts-ee;if(ae)f[0].dts=s,f[0].pts=Te;else for(var Ie=0;Ie<f.length&&!(f[Ie].dts>Te);Ie++)f[Ie].dts-=ee,f[Ie].pts-=ee;j.log("Video: Initial PTS/DTS adjusted: "+wn(Te,!0)+"/"+wn(s,!0)+", delta: "+wn(ee,!0)+" ms")}}for(var De=0,Ue=0,Ae=s=Math.max(0,s),Ne=0;Ne<m;Ne++){for(var Ke=f[Ne],je=Ke.units,We=je.length,vt=0,$t=0;$t<We;$t++)vt+=je[$t].data.length;Ue+=vt,De+=We,Ke.length=vt,Ke.dts<Ae?(Ke.dts=Ae,Ae+=X/4|0||1):Ae=Ke.dts,A=Math.min(Ke.pts,A),T=Math.max(Ke.pts,T)}d=f[m-1].dts;var At,ti=Ue+4*De+8;try{At=new Uint8Array(ti)}catch(js){return void this.observer.emit(y.ERROR,y.ERROR,{type:re.MUX_ERROR,details:z.REMUX_ALLOC_ERROR,fatal:!1,error:js,bytes:ti,reason:"fail allocating video mdat "+ti})}var jt=new DataView(At.buffer);jt.setUint32(0,ti),At.set(bi.types.mdat,4);for(var Ct=!1,Qe=Number.POSITIVE_INFINITY,ft=Number.POSITIVE_INFINITY,rt=Number.NEGATIVE_INFINITY,Rt=Number.NEGATIVE_INFINITY,tt=0;tt<m;tt++){for(var zt=f[tt],bt=zt.units,Ci=0,Ti=0,yt=bt.length;Ti<yt;Ti++){var Zt=bt[Ti],ai=Zt.data,Ei=Zt.data.byteLength;jt.setUint32(_,Ei),_+=4,At.set(ai,_),_+=Ei,Ci+=4+Ei}var Vi=void 0;if(tt<m-1)E=f[tt+1].dts-zt.dts,Vi=f[tt+1].pts-zt.pts;else{var fi=this.config,Pi=tt>0?zt.dts-f[tt-1].dts:X;if(Vi=tt>0?zt.pts-f[tt-1].pts:X,fi.stretchShortVideoTrack&&this.nextAudioPts!==null){var yn=Math.floor(fi.maxBufferHole*u),ca=(a?A+a*u:this.nextAudioPts)-zt.pts;ca>yn?((E=ca-Pi)<0?E=Pi:Ct=!0,j.log("[mp4-remuxer]: It is approximately "+ca/90+" ms to the next segment; using duration "+E/90+" ms for the last video frame.")):E=Pi}else E=Pi}var _o=Math.round(zt.pts-zt.dts);Qe=Math.min(Qe,E),rt=Math.max(rt,E),ft=Math.min(ft,Vi),Rt=Math.max(Rt,Vi),h.push(new Xh(zt.key,E,Ci,_o))}if(h.length){if(xo){if(xo<70){var Kr=h[0].flags;Kr.dependsOn=2,Kr.isNonSync=0}}else if(Rd&&Rt-ft<rt-Qe&&X/rt<.025&&h[0].cts===0){j.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var ji=s,gi=0,Pt=h.length;gi<Pt;gi++){var Ht=ji+h[gi].duration,ui=ji+h[gi].cts;if(gi<Pt-1){var Jd=Ht+h[gi+1].cts;h[gi].duration=Jd-ui}else h[gi].duration=gi?h[gi-1].duration:X;h[gi].cts=0,ji=Ht}}}E=Ct||!E?X:E,this.nextAvcDts=x=d+E,this.videoSampleDuration=E,this.isVideoContiguous=!0;var F_={data1:bi.moof(e.sequenceNumber++,s,R({},e,{samples:h})),data2:At,startPTS:A/u,endPTS:(T+E)/u,startDTS:s/u,endDTS:x/u,type:"video",hasAudio:!1,hasVideo:!0,nb:h.length,dropped:e.dropped};return e.samples=[],e.dropped=0,F_},o.getSamplesPerFrame=function(e){switch(e.segmentCodec){case"mp3":return 1152;case"ac3":return 1536;default:return 1024}},o.remuxAudio=function(e,t,i,a,s){var d=e.inputTimeScale,u=d/(e.samplerate?e.samplerate:d),f=this.getSamplesPerFrame(e),h=f*u,m=this._initPTS,w=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,x=[],_=s!==void 0,E=e.samples,A=w?0:8,T=this.nextAudioPts||-1,L=t*d,I=m.baseTime*d/m.timescale;if(this.isAudioContiguous=i=i||E.length&&T>0&&(a&&Math.abs(L-T)<9e3||Math.abs(Ji(E[0].pts-I,L)-T)<20*h),E.forEach(function(tt){tt.pts=Ji(tt.pts-I,L)}),!i||T<0){if(E=E.filter(function(tt){return tt.pts>=0}),!E.length)return;T=s===0?0:a&&!_?Math.max(0,L):E[0].pts}if(e.segmentCodec==="aac")for(var P=this.config.maxAudioFramesDrift,G=0,$=T;G<E.length;G++){var B=E[G],J=B.pts,X=J-$,ee=Math.abs(1e3*X/d);if(X<=-P*h&&_)G===0&&(j.warn("Audio frame @ "+(J/d).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*X/d)+" ms."),this.nextAudioPts=T=$=J);else if(X>=P*h&&ee<1e4&&_){var ae=Math.round(X/h);($=J-ae*h)<0&&(ae--,$+=h),G===0&&(this.nextAudioPts=T=$),j.warn("[mp4-remuxer]: Injecting "+ae+" audio frame @ "+($/d).toFixed(3)+"s due to "+Math.round(1e3*X/d)+" ms gap.");for(var be=0;be<ae;be++){var Te=Math.max($,0),Ie=Kh.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);Ie||(j.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Ie=B.unit.subarray()),E.splice(G,0,{unit:Ie,pts:Te}),$+=h,G++}}B.pts=$,$+=h}for(var De,Ue=null,Ae=null,Ne=0,Ke=E.length;Ke--;)Ne+=E[Ke].unit.byteLength;for(var je=0,We=E.length;je<We;je++){var vt=E[je],$t=vt.unit,At=vt.pts;if(Ae!==null)x[je-1].duration=Math.round((At-Ae)/u);else{if(i&&e.segmentCodec==="aac"&&(At=T),Ue=At,!(Ne>0))return;Ne+=A;try{De=new Uint8Array(Ne)}catch(tt){return void this.observer.emit(y.ERROR,y.ERROR,{type:re.MUX_ERROR,details:z.REMUX_ALLOC_ERROR,fatal:!1,error:tt,bytes:Ne,reason:"fail allocating audio mdat "+Ne})}w||(new DataView(De.buffer).setUint32(0,Ne),De.set(bi.types.mdat,4))}De.set($t,A);var ti=$t.byteLength;A+=ti,x.push(new Xh(!0,f,ti,0)),Ae=At}var jt=x.length;if(jt){var Ct=x[x.length-1];this.nextAudioPts=T=Ae+u*Ct.duration;var Qe=w?new Uint8Array(0):bi.moof(e.sequenceNumber++,Ue/u,R({},e,{samples:x}));e.samples=[];var ft=Ue/d,rt=T/d,Rt={data1:Qe,data2:De,startPTS:ft,endPTS:rt,startDTS:ft,endDTS:rt,type:"audio",hasAudio:!0,hasVideo:!1,nb:jt};return this.isAudioContiguous=!0,Rt}},o.remuxEmptyAudio=function(e,t,i,a){var s=e.inputTimeScale,d=s/(e.samplerate?e.samplerate:s),u=this.nextAudioPts,f=this._initDTS,h=9e4*f.baseTime/f.timescale,m=(u!==null?u:a.startDTS*s)+h,w=a.endDTS*s+h,x=1024*d,_=Math.ceil((w-m)/x),E=Kh.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(j.warn("[mp4-remuxer]: remux empty Audio"),E){for(var A=[],T=0;T<_;T++){var L=m+T*x;A.push({unit:E,pts:L,dts:L})}return e.samples=A,this.remuxAudio(e,t,i,!1)}j.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec")},l}();function Ji(l,o){var e;if(o===null)return l;for(e=o<l?-8589934592:8589934592;Math.abs(l-o)>4294967296;)l+=e;return l}function Wh(l,o,e,t){var i=l.samples.length;if(i){for(var a=l.inputTimeScale,s=0;s<i;s++){var d=l.samples[s];d.pts=Ji(d.pts-e.baseTime*a/e.timescale,o*a)/a,d.dts=Ji(d.dts-t.baseTime*a/t.timescale,o*a)/a}var u=l.samples;return l.samples=[],{samples:u}}}function qh(l,o,e){var t=l.samples.length;if(t){for(var i=l.inputTimeScale,a=0;a<t;a++){var s=l.samples[a];s.pts=Ji(s.pts-e.baseTime*i/e.timescale,o*i)/i}l.samples.sort(function(u,f){return u.pts-f.pts});var d=l.samples;return l.samples=[],{samples:d}}}var $r,Xh=function(l,o,e,t){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=o,this.size=e,this.cts=t,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:l?2:1,isNonSync:l?0:1}},Rk=function(){function l(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}var o=l.prototype;return o.destroy=function(){},o.resetTimeStamp=function(e){this.initPTS=e,this.lastEndTime=null},o.resetNextTimestamp=function(){this.lastEndTime=null},o.resetInitSegment=function(e,t,i,a){this.audioCodec=t,this.videoCodec=i,this.generateInitSegment(function(s,d){if(!s||!d)return s;var u=d.keyId;return u&&d.isCommonEncryption&&et(s,["moov","trak"]).forEach(function(f){var h=et(f,["mdia","minf","stbl","stsd"])[0].subarray(8),m=et(h,["enca"]),w=m.length>0;w||(m=et(h,["encv"])),m.forEach(function(x){et(w?x.subarray(28):x.subarray(78),["sinf"]).forEach(function(_){var E=sn(_);if(E){var A=E.subarray(8,24);A.some(function(T){return T!==0})||(j.log("[eme] Patching keyId in 'enc"+(w?"a":"v")+">sinf>>tenc' box: "+lt(A)+" -> "+lt(u)),E.set(u,8))}})})}),s}(e,a)),this.emitInitSegment=!0},o.generateInitSegment=function(e){var t=this.audioCodec,i=this.videoCodec;if(e==null||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var a=this.initData=on(e);a.audio&&(t=Qh(a.audio,_t)),a.video&&(i=Qh(a.video,Ft));var s={};a.audio&&a.video?s.audiovideo={container:"video/mp4",codec:t+","+i,initSegment:e,id:"main"}:a.audio?s.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:a.video?s.video={container:"video/mp4",codec:i,initSegment:e,id:"main"}:j.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=s},o.remux=function(e,t,i,a,s,d){var u,f,h=this.initPTS,m=this.lastEndTime,w={audio:void 0,video:void 0,text:a,id3:i,initSegment:void 0};te(m)||(m=this.lastEndTime=s||0);var x=t.samples;if(x==null||!x.length)return w;var _={initPTS:void 0,timescale:1},E=this.initData;if((u=E)!=null&&u.length||(this.generateInitSegment(x),E=this.initData),(f=E)==null||!f.length)return j.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),w;this.emitInitSegment&&(_.tracks=this.initTracks,this.emitInitSegment=!1);var A=function(X,ee){for(var ae=0,be=0,Te=0,Ie=et(X,["moof","traf"]),De=0;De<Ie.length;De++){var Ue=Ie[De],Ae=et(Ue,["tfhd"])[0],Ne=ee[Ge(Ae,4)];if(Ne){var Ke=Ne.default,je=Ge(Ae,0)|(Ke==null?void 0:Ke.flags),We=Ke==null?void 0:Ke.duration;8&je&&(We=Ge(Ae,2&je?12:8));for(var vt=Ne.timescale||9e4,$t=et(Ue,["trun"]),At=0;At<$t.length;At++)!(ae=ln($t[At]))&&We&&(ae=We*Ge($t[At],4)),Ne.type===Ft?be+=ae/vt:Ne.type===_t&&(Te+=ae/vt)}}if(be===0&&Te===0){for(var ti=1/0,jt=0,Ct=0,Qe=et(X,["sidx"]),ft=0;ft<Qe.length;ft++){var rt=an(Qe[ft]);if(rt!=null&&rt.references){ti=Math.min(ti,rt.earliestPresentationTime/rt.timescale);var Rt=rt.references.reduce(function(tt,zt){return tt+zt.info.duration||0},0);Ct=(jt=Math.max(jt,Rt+rt.earliestPresentationTime/rt.timescale))-ti}}if(Ct&&te(Ct))return Ct}return be||Te}(x,E),T=function(X,ee){return et(ee,["moof","traf"]).reduce(function(ae,be){var Te=et(be,["tfdt"])[0],Ie=Te[0],De=et(be,["tfhd"]).reduce(function(Ue,Ae){var Ne=Ge(Ae,4),Ke=X[Ne];if(Ke){var je=Ge(Te,4);if(Ie===1){if(je===ar)return j.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),Ue;je*=ar+1,je+=Ge(Te,8)}var We=je/(Ke.timescale||9e4);if(te(We)&&(Ue===null||We<Ue))return We}return Ue},null);return De!==null&&te(De)&&(ae===null||De<ae)?De:ae},null)}(E,x),L=T===null?s:T;(function(X,ee,ae,be){if(X===null)return!0;var Te=Math.max(be,1),Ie=ee-X.baseTime/X.timescale;return Math.abs(Ie-ae)>Te}(h,L,s,A)||_.timescale!==h.timescale&&d)&&(_.initPTS=L-s,h&&h.timescale===1&&j.warn("Adjusting initPTS by "+(_.initPTS-h.baseTime)),this.initPTS=h={baseTime:_.initPTS,timescale:1});var I=e?L-h.baseTime/h.timescale:m,P=I+A;(function(X,ee,ae){et(ee,["moof","traf"]).forEach(function(be){et(be,["tfhd"]).forEach(function(Te){var Ie=Ge(Te,4),De=X[Ie];if(De){var Ue=De.timescale||9e4;et(be,["tfdt"]).forEach(function(Ae){var Ne=Ae[0],Ke=ae*Ue;if(Ke){var je=Ge(Ae,4);if(Ne===0)je-=Ke,Aa(Ae,4,je=Math.max(je,0));else{je*=Math.pow(2,32),je+=Ge(Ae,8),je-=Ke,je=Math.max(je,0);var We=Math.floor(je/(ar+1)),vt=Math.floor(je%(ar+1));Aa(Ae,4,We),Aa(Ae,8,vt)}}})}})})})(E,x,h.baseTime/h.timescale),A>0?this.lastEndTime=P:(j.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var G=!!E.audio,$=!!E.video,B="";G&&(B+="audio"),$&&(B+="video");var J={data1:x,startPTS:I,startDTS:I,endPTS:P,endDTS:P,type:B,hasAudio:G,hasVideo:$,nb:1,dropped:0};return w.audio=J.type==="audio"?J:void 0,w.video=J.type!=="audio"?J:void 0,w.initSegment=_,w.id3=Wh(i,s,h,h),a.samples.length&&(w.text=qh(a,s,h)),w},l}();function Qh(l,o){var e=l==null?void 0:l.codec;if(e&&e.length>4)return e;if(o===_t){if(e==="ec-3"||e==="ac-3"||e==="alac")return e;if(e==="fLaC"||e==="Opus")return xs(e,!1);var t="mp4a.40.5";return j.info('Parsed audio codec "'+e+'" or audio object type not handled. Using "'+t+'"'),t}return j.warn('Unhandled video codec "'+e+'"'),e==="hvc1"||e==="hev1"?"hvc1.1.6.L120.90":e==="av01"?"av01.0.04M.08":"avc1.42e01e"}try{$r=self.performance.now.bind(self.performance)}catch{j.debug("Unable to use Performance API on this environment"),$r=O==null?void 0:O.Date.now}var Ms=[{demux:yk,remux:Rk},{demux:Sk,remux:Os},{demux:wk,remux:Os},{demux:Ck,remux:Os}];Ms.splice(2,0,{demux:kk,remux:Os});var Dd=function(){function l(e,t,i,a,s){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=i,this.vendor=a,this.id=s}var o=l.prototype;return o.configure=function(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()},o.push=function(e,t,i,a){var s=this,d=i.transmuxing;d.executeStart=$r();var u=new Uint8Array(e),f=this.currentTransmuxState,h=this.transmuxConfig;a&&(this.currentTransmuxState=a);var m=a||f,w=m.contiguous,x=m.discontinuity,_=m.trackSwitch,E=m.accurateTimeOffset,A=m.timeOffset,T=m.initSegmentChange,L=h.audioCodec,I=h.videoCodec,P=h.defaultInitPts,G=h.duration,$=h.initSegmentData,B=function(Ie,De){var Ue=null;return Ie.byteLength>0&&(De==null?void 0:De.key)!=null&&De.iv!==null&&De.method!=null&&(Ue=De),Ue}(u,t);if(B&&B.method==="AES-128"){var J=this.getDecrypter();if(!J.isSync())return this.decryptionPromise=J.webCryptoDecrypt(u,B.key.buffer,B.iv.buffer).then(function(Ie){var De=s.push(Ie,null,i);return s.decryptionPromise=null,De}),this.decryptionPromise;var X=J.softwareDecrypt(u,B.key.buffer,B.iv.buffer);if(i.part>-1&&(X=J.flush()),!X)return d.executeEnd=$r(),Id(i);u=new Uint8Array(X)}var ee=this.needsProbing(x,_);if(ee){var ae=this.configureTransmuxer(u);if(ae)return j.warn("[transmuxer] "+ae.message),this.observer.emit(y.ERROR,y.ERROR,{type:re.MEDIA_ERROR,details:z.FRAG_PARSING_ERROR,fatal:!1,error:ae,reason:ae.message}),d.executeEnd=$r(),Id(i)}(x||_||T||ee)&&this.resetInitSegment($,L,I,G,t),(x||T||ee)&&this.resetInitialTimestamp(P),w||this.resetContiguity();var be=this.transmux(u,B,A,E,i),Te=this.currentTransmuxState;return Te.contiguous=!0,Te.discontinuity=!1,Te.trackSwitch=!1,d.executeEnd=$r(),be},o.flush=function(e){var t=this,i=e.transmuxing;i.executeStart=$r();var a=this.decrypter,s=this.currentTransmuxState,d=this.decryptionPromise;if(d)return d.then(function(){return t.flush(e)});var u=[],f=s.timeOffset;if(a){var h=a.flush();h&&u.push(this.push(h,null,e))}var m=this.demuxer,w=this.remuxer;if(!m||!w)return i.executeEnd=$r(),[Id(e)];var x=m.flush(f);return Pa(x)?x.then(function(_){return t.flushRemux(u,_,e),u}):(this.flushRemux(u,x,e),u)},o.flushRemux=function(e,t,i){var a=t.audioTrack,s=t.videoTrack,d=t.id3Track,u=t.textTrack,f=this.currentTransmuxState,h=f.accurateTimeOffset,m=f.timeOffset;j.log("[transmuxer.ts]: Flushed fragment "+i.sn+(i.part>-1?" p: "+i.part:"")+" of level "+i.level);var w=this.remuxer.remux(a,s,d,u,m,h,!0,this.id);e.push({remuxResult:w,chunkMeta:i}),i.transmuxing.executeEnd=$r()},o.resetInitialTimestamp=function(e){var t=this.demuxer,i=this.remuxer;t&&i&&(t.resetTimeStamp(e),i.resetTimeStamp(e))},o.resetContiguity=function(){var e=this.demuxer,t=this.remuxer;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())},o.resetInitSegment=function(e,t,i,a,s){var d=this.demuxer,u=this.remuxer;d&&u&&(d.resetInitSegment(e,t,i,a),u.resetInitSegment(e,t,i,s))},o.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},o.transmux=function(e,t,i,a,s){return t&&t.method==="SAMPLE-AES"?this.transmuxSampleAes(e,t,i,a,s):this.transmuxUnencrypted(e,i,a,s)},o.transmuxUnencrypted=function(e,t,i,a){var s=this.demuxer.demux(e,t,!1,!this.config.progressive),d=s.audioTrack,u=s.videoTrack,f=s.id3Track,h=s.textTrack;return{remuxResult:this.remuxer.remux(d,u,f,h,t,i,!1,this.id),chunkMeta:a}},o.transmuxSampleAes=function(e,t,i,a,s){var d=this;return this.demuxer.demuxSampleAes(e,t,i).then(function(u){return{remuxResult:d.remuxer.remux(u.audioTrack,u.videoTrack,u.id3Track,u.textTrack,i,a,!1,d.id),chunkMeta:s}})},o.configureTransmuxer=function(e){for(var t,i=this.config,a=this.observer,s=this.typeSupported,d=this.vendor,u=0,f=Ms.length;u<f;u++){var h;if((h=Ms[u].demux)!=null&&h.probe(e)){t=Ms[u];break}}if(!t)return new Error("Failed to find demuxer by probing fragment data");var m=this.demuxer,w=this.remuxer,x=t.remux,_=t.demux;w&&w instanceof x||(this.remuxer=new x(a,i,s,d)),m&&m instanceof _||(this.demuxer=new _(a,i,s),this.probe=_.probe)},o.needsProbing=function(e,t){return!this.demuxer||!this.remuxer||e||t},o.getDecrypter=function(){var e=this.decrypter;return e||(e=this.decrypter=new yd(this.config)),e},l}(),Id=function(l){return{remuxResult:{},chunkMeta:l}};function Pa(l){return"then"in l&&l.then instanceof Function}var Dk=function(l,o,e,t,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=l,this.videoCodec=o,this.initSegmentData=e,this.duration=t,this.defaultInitPts=i||null},Ik=function(l,o,e,t,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=l,this.contiguous=o,this.accurateTimeOffset=e,this.trackSwitch=t,this.timeOffset=i,this.initSegmentChange=a},Jh={exports:{}};(function(l){var o=Object.prototype.hasOwnProperty,e="~";function t(){}function i(u,f,h){this.fn=u,this.context=f,this.once=h||!1}function a(u,f,h,m,w){if(typeof h!="function")throw new TypeError("The listener must be a function");var x=new i(h,m||u,w),_=e?e+f:f;return u._events[_]?u._events[_].fn?u._events[_]=[u._events[_],x]:u._events[_].push(x):(u._events[_]=x,u._eventsCount++),u}function s(u,f){--u._eventsCount==0?u._events=new t:delete u._events[f]}function d(){this._events=new t,this._eventsCount=0}Object.create&&(t.prototype=Object.create(null),new t().__proto__||(e=!1)),d.prototype.eventNames=function(){var u,f,h=[];if(this._eventsCount===0)return h;for(f in u=this._events)o.call(u,f)&&h.push(e?f.slice(1):f);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(u)):h},d.prototype.listeners=function(u){var f=e?e+u:u,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var m=0,w=h.length,x=new Array(w);m<w;m++)x[m]=h[m].fn;return x},d.prototype.listenerCount=function(u){var f=e?e+u:u,h=this._events[f];return h?h.fn?1:h.length:0},d.prototype.emit=function(u,f,h,m,w,x){var _=e?e+u:u;if(!this._events[_])return!1;var E,A,T=this._events[_],L=arguments.length;if(T.fn){switch(T.once&&this.removeListener(u,T.fn,void 0,!0),L){case 1:return T.fn.call(T.context),!0;case 2:return T.fn.call(T.context,f),!0;case 3:return T.fn.call(T.context,f,h),!0;case 4:return T.fn.call(T.context,f,h,m),!0;case 5:return T.fn.call(T.context,f,h,m,w),!0;case 6:return T.fn.call(T.context,f,h,m,w,x),!0}for(A=1,E=new Array(L-1);A<L;A++)E[A-1]=arguments[A];T.fn.apply(T.context,E)}else{var I,P=T.length;for(A=0;A<P;A++)switch(T[A].once&&this.removeListener(u,T[A].fn,void 0,!0),L){case 1:T[A].fn.call(T[A].context);break;case 2:T[A].fn.call(T[A].context,f);break;case 3:T[A].fn.call(T[A].context,f,h);break;case 4:T[A].fn.call(T[A].context,f,h,m);break;default:if(!E)for(I=1,E=new Array(L-1);I<L;I++)E[I-1]=arguments[I];T[A].fn.apply(T[A].context,E)}}return!0},d.prototype.on=function(u,f,h){return a(this,u,f,h,!1)},d.prototype.once=function(u,f,h){return a(this,u,f,h,!0)},d.prototype.removeListener=function(u,f,h,m){var w=e?e+u:u;if(!this._events[w])return this;if(!f)return s(this,w),this;var x=this._events[w];if(x.fn)x.fn!==f||m&&!x.once||h&&x.context!==h||s(this,w);else{for(var _=0,E=[],A=x.length;_<A;_++)(x[_].fn!==f||m&&!x[_].once||h&&x[_].context!==h)&&E.push(x[_]);E.length?this._events[w]=E.length===1?E[0]:E:s(this,w)}return this},d.prototype.removeAllListeners=function(u){var f;return u?(f=e?e+u:u,this._events[f]&&s(this,f)):(this._events=new t,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=e,d.EventEmitter=d,l.exports=d})(Jh);var Fs=ge(Jh.exports);function Pd(l,o){if(!((e=o.remuxResult).audio||e.video||e.text||e.id3||e.initSegment))return!1;var e,t=[],i=o.remuxResult,a=i.audio,s=i.video;return a&&Zh(t,a),s&&Zh(t,s),l.postMessage({event:"transmuxComplete",data:o},t),!0}function Zh(l,o){o.data1&&l.push(o.data1.buffer),o.data2&&l.push(o.data2.buffer)}function ef(l,o,e){o.reduce(function(t,i){return Pd(l,i)||t},!1)||l.postMessage({event:"transmuxComplete",data:o[0]}),l.postMessage({event:"flush",data:e})}p!==void 0&&p&&function(l){var o=new Fs,e=function(i,a){l.postMessage({event:i,data:a})};o.on(y.FRAG_DECRYPTED,e),o.on(y.ERROR,e);var t=function(){var i=function(s){var d=function(u){e("workerLog",{logType:s,message:u})};j[s]=d};for(var a in j)i(a)};l.addEventListener("message",function(i){var a=i.data;switch(a.cmd){case"init":var s=JSON.parse(a.config);l.transmuxer=new Dd(o,a.typeSupported,s,a.vendor,a.id),st(s.debug,a.id),t(),e("init",null);break;case"configure":l.transmuxer.configure(a.config);break;case"demux":var d=l.transmuxer.push(a.data,a.decryptdata,a.chunkMeta,a.state);Pa(d)?(l.transmuxer.async=!0,d.then(function(h){Pd(l,h)}).catch(function(h){e(y.ERROR,{type:re.MEDIA_ERROR,details:z.FRAG_PARSING_ERROR,chunkMeta:a.chunkMeta,fatal:!1,error:h,err:h,reason:"transmuxer-worker push error"})})):(l.transmuxer.async=!1,Pd(l,d));break;case"flush":var u=a.chunkMeta,f=l.transmuxer.flush(u);Pa(f)||l.transmuxer.async?(Pa(f)||(f=Promise.resolve(f)),f.then(function(h){ef(l,h,u)}).catch(function(h){e(y.ERROR,{type:re.MEDIA_ERROR,details:z.FRAG_PARSING_ERROR,chunkMeta:a.chunkMeta,fatal:!1,error:h,err:h,reason:"transmuxer-worker flush error"})})):ef(l,f,u)}})}(self);var tf=function(){function l(e,t,i,a){var s=this;this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var d=e.config;this.hls=e,this.id=t,this.useWorker=!!d.enableWorker,this.onTransmuxComplete=i,this.onFlush=a;var u=function(T,L){(L=L||{}).frag=s.frag,L.id=s.id,T===y.ERROR&&(s.error=L.error),s.hls.trigger(T,L)};this.observer=new Fs,this.observer.on(y.FRAG_DECRYPTED,u),this.observer.on(y.ERROR,u);var f,h,m,w,x=nr(d.preferManagedMediaSource)||{isTypeSupported:function(){return!1}},_={mpeg:x.isTypeSupported("audio/mpeg"),mp3:x.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:x.isTypeSupported('audio/mp4; codecs="ac-3"')},E=navigator.vendor;if(!this.useWorker||typeof Worker>"u"||(d.workerPath,0))this.transmuxer=new Dd(this.observer,_,d,E,t);else try{d.workerPath?(j.log("loading Web Worker "+d.workerPath+' for "'+t+'"'),this.workerContext=(m=d.workerPath,w=new self.URL(m,self.location.href).href,{worker:new self.Worker(w),scriptURL:w})):(j.log('injecting Web Worker for "'+t+'"'),this.workerContext=(f=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;("+c.toString()+")(true);"],{type:"text/javascript"}),h=self.URL.createObjectURL(f),{worker:new self.Worker(h),objectURL:h})),this.onwmsg=function(T){return s.onWorkerMessage(T)};var A=this.workerContext.worker;A.addEventListener("message",this.onwmsg),A.onerror=function(T){var L=new Error(T.message+" ("+T.filename+":"+T.lineno+")");d.enableWorker=!1,j.warn('Error in "'+t+'" Web Worker, fallback to inline'),s.hls.trigger(y.ERROR,{type:re.OTHER_ERROR,details:z.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:L})},A.postMessage({cmd:"init",typeSupported:_,vendor:E,id:t,config:JSON.stringify(d)})}catch(T){j.warn('Error setting up "'+t+'" Web Worker, fallback to inline',T),this.resetWorker(),this.error=null,this.transmuxer=new Dd(this.observer,_,d,E,t)}}var o=l.prototype;return o.resetWorker=function(){if(this.workerContext){var e=this.workerContext,t=e.worker,i=e.objectURL;i&&self.URL.revokeObjectURL(i),t.removeEventListener("message",this.onwmsg),t.onerror=null,t.terminate(),this.workerContext=null}},o.destroy=function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}var t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null},o.push=function(e,t,i,a,s,d,u,f,h,m){var w,x,_=this;h.transmuxing.start=self.performance.now();var E=this.transmuxer,A=d?d.start:s.start,T=s.decryptdata,L=this.frag,I=!(L&&s.cc===L.cc),P=!(L&&h.level===L.level),G=L?h.sn-L.sn:-1,$=this.part?h.part-this.part.index:-1,B=G===0&&h.id>1&&h.id===(L==null?void 0:L.stats.chunkCount),J=!P&&(G===1||G===0&&($===1||B&&$<=0)),X=self.performance.now();(P||G||s.stats.parsing.start===0)&&(s.stats.parsing.start=X),!d||!$&&J||(d.stats.parsing.start=X);var ee=!(L&&((w=s.initSegment)==null?void 0:w.url)===((x=L.initSegment)==null?void 0:x.url)),ae=new Ik(I,J,f,P,A,ee);if(!J||I||ee){j.log("[transmuxer-interface, "+s.type+"]: Starting new transmux session for sn: "+h.sn+" p: "+h.part+" level: "+h.level+" id: "+h.id+` discontinuity: `+I+` trackSwitch: `+P+` contiguous: `+J+` accurateTimeOffset: `+f+` timeOffset: `+A+` initSegmentChange: `+ee);var be=new Dk(i,a,t,u,m);this.configureTransmuxer(be)}if(this.frag=s,this.part=d,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:T,chunkMeta:h,state:ae},e instanceof ArrayBuffer?[e]:[]);else if(E){var Te=E.push(e,T,h,ae);Pa(Te)?(E.async=!0,Te.then(function(Ie){_.handleTransmuxComplete(Ie)}).catch(function(Ie){_.transmuxerError(Ie,h,"transmuxer-interface push error")})):(E.async=!1,this.handleTransmuxComplete(Te))}},o.flush=function(e){var t=this;e.transmuxing.start=self.performance.now();var i=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(i){var a=i.flush(e);Pa(a)||i.async?(Pa(a)||(a=Promise.resolve(a)),a.then(function(s){t.handleFlushResult(s,e)}).catch(function(s){t.transmuxerError(s,e,"transmuxer-interface flush error")})):this.handleFlushResult(a,e)}},o.transmuxerError=function(e,t,i){this.hls&&(this.error=e,this.hls.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.FRAG_PARSING_ERROR,chunkMeta:t,fatal:!1,error:e,err:e,reason:i}))},o.handleFlushResult=function(e,t){var i=this;e.forEach(function(a){i.handleTransmuxComplete(a)}),this.onFlush(t)},o.onWorkerMessage=function(e){var t=e.data,i=this.hls;switch(t.event){case"init":var a,s=(a=this.workerContext)==null?void 0:a.objectURL;s&&self.URL.revokeObjectURL(s);break;case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":j[t.data.logType]&&j[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,i.trigger(t.event,t.data)}},o.configureTransmuxer=function(e){var t=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)},o.handleTransmuxComplete=function(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)},l}();function rf(l,o){if(l.length!==o.length)return!1;for(var e=0;e<l.length;e++)if(!yo(l[e].attrs,o[e].attrs))return!1;return!0}function yo(l,o,e){var t=l["STABLE-RENDITION-ID"];return t&&!e?t===o["STABLE-RENDITION-ID"]:!(e||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(function(i){return l[i]!==o[i]})}function Od(l,o){return o.label.toLowerCase()===l.name.toLowerCase()&&(!o.language||o.language.toLowerCase()===(l.lang||"").toLowerCase())}var Pk=function(l){function o(t,i,a){var s;return(s=l.call(this,t,i,a,"[audio-stream-controller]",Xi)||this).videoBuffer=null,s.videoTrackCC=-1,s.waitingVideoCC=-1,s.bufferedTrack=null,s.switchingTrack=null,s.trackId=-1,s.waitingData=null,s.mainDetails=null,s.flushing=!1,s.bufferFlushed=!1,s.cachedTrackLoadedData=null,s._registerListeners(),s}D(o,l);var e=o.prototype;return e.onHandlerDestroying=function(){this._unregisterListeners(),l.prototype.onHandlerDestroying.call(this),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null},e._registerListeners=function(){var t=this.hls;t.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(y.MANIFEST_LOADING,this.onManifestLoading,this),t.on(y.LEVEL_LOADED,this.onLevelLoaded,this),t.on(y.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(y.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(y.ERROR,this.onError,this),t.on(y.BUFFER_RESET,this.onBufferReset,this),t.on(y.BUFFER_CREATED,this.onBufferCreated,this),t.on(y.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(y.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(y.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(y.FRAG_BUFFERED,this.onFragBuffered,this)},e._unregisterListeners=function(){var t=this.hls;t.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(y.MANIFEST_LOADING,this.onManifestLoading,this),t.off(y.LEVEL_LOADED,this.onLevelLoaded,this),t.off(y.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(y.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(y.ERROR,this.onError,this),t.off(y.BUFFER_RESET,this.onBufferReset,this),t.off(y.BUFFER_CREATED,this.onBufferCreated,this),t.off(y.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(y.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(y.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(y.FRAG_BUFFERED,this.onFragBuffered,this)},e.onInitPtsFound=function(t,i){var a=i.frag,s=i.id,d=i.initPTS,u=i.timescale;if(s==="main"){var f=a.cc;this.initPTS[a.cc]={baseTime:d,timescale:u},this.log("InitPTS for cc: "+f+" found from main: "+d),this.videoTrackCC=f,this.state===bn&&this.tick()}},e.startLoad=function(t){if(!this.levels)return this.startPosition=t,void(this.state=Qi);var i=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),i>0&&t===-1?(this.log("Override startPosition with lastCurrentTime @"+i.toFixed(3)),t=i,this.state=ot):(this.loadedmetadata=!1,this.state=mn),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},e.doTick=function(){switch(this.state){case ot:this.doTickIdle();break;case mn:var t,i=this.levels,a=this.trackId,s=i==null||(t=i[a])==null?void 0:t.details;if(s){if(this.waitForCdnTuneIn(s))break;this.state=bn}break;case vo:var d,u=performance.now(),f=this.retryDate;if(!f||u>=f||(d=this.media)!=null&&d.seeking){var h=this.levels,m=this.trackId;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((h==null?void 0:h[m])||null),this.state=ot}break;case bn:var w=this.waitingData;if(w){var x=w.frag,_=w.part,E=w.cache,A=w.complete;if(this.initPTS[x.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=mo;var T={frag:x,part:_,payload:E.flush(),networkDetails:null};this._handleFragmentLoadProgress(T),A&&l.prototype._handleFragmentLoadComplete.call(this,T)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc ("+x.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var L=this.getLoadPosition(),I=Yt.bufferInfo(this.mediaBuffer,L,this.config.maxBufferHole);md(I.end,this.config.maxFragLookUpTolerance,x)<0&&(this.log("Waiting fragment cc ("+x.cc+") @ "+x.start+" cancelled because another fragment at "+I.end+" is needed"),this.clearWaitingFragment())}}else this.state=ot}this.onTickEnd()},e.clearWaitingFragment=function(){var t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=ot)},e.resetLoadingState=function(){this.clearWaitingFragment(),l.prototype.resetLoadingState.call(this)},e.onTickEnd=function(){var t=this.media;t!=null&&t.readyState&&(this.lastCurrentTime=t.currentTime)},e.doTickIdle=function(){var t=this.hls,i=this.levels,a=this.media,s=this.trackId,d=t.config;if((a||!this.startFragRequested&&d.startFragPrefetch)&&i!=null&&i[s]){var u=i[s],f=u.details;if(!f||f.live&&this.levelLastLoaded!==u||this.waitForCdnTuneIn(f))this.state=mn;else{var h=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&h&&(this.bufferFlushed=!1,this.afterBufferFlushed(h,_t,Xi));var m=this.getFwdBufferInfo(h,Xi);if(m!==null){var w=this.bufferedTrack,x=this.switchingTrack;if(!x&&this._streamEnded(m,f))return t.trigger(y.BUFFER_EOS,{type:"audio"}),void(this.state=vn);var _=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Lt),E=m.len,A=this.getMaxBufferLength(_==null?void 0:_.len),T=f.fragments,L=T[0].start,I=this.flushing?this.getLoadPosition():m.end;if(x&&a){var P=this.getLoadPosition();w&&!yo(x.attrs,w.attrs)&&(I=P),f.PTSKnown&&P<L&&(m.end>L||m.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),a.currentTime=L+.05)}if(!(E>=A&&!x&&I<T[T.length-1].start)){var G=this.getNextFragment(I,f),$=!1;if(G&&this.isLoopLoading(G,I)&&($=!!G.gap,G=this.getNextFragmentLoopLoading(G,f,m,Lt,A)),G){var B=_&&G.start>_.end+f.targetduration;if(B||(_==null||!_.len)&&m.len){var J=this.getAppendedFrag(G.start,Lt);if(J===null||($||($=!!J.gap||!!B&&_.len===0),B&&!$||$&&m.nextStart&&m.nextStart<J.end))return}this.loadFragment(G,u,I)}else this.bufferFlushed=!0}}}}},e.getMaxBufferLength=function(t){var i=l.prototype.getMaxBufferLength.call(this);return t?Math.min(Math.max(i,t),this.config.maxMaxBufferLength):i},e.onMediaDetaching=function(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,l.prototype.onMediaDetaching.call(this)},e.onAudioTracksUpdated=function(t,i){var a=i.audioTracks;this.resetTransmuxer(),this.levels=a.map(function(s){return new lo(s)})},e.onAudioTrackSwitching=function(t,i){var a=!!i.url;this.trackId=i.id;var s=this.fragCurrent;s&&(s.abortRequests(),this.removeUnbufferedFrags(s.start)),this.resetLoadingState(),a?this.setInterval(100):this.resetTransmuxer(),a?(this.switchingTrack=i,this.state=ot,this.flushAudioIfNeeded(i)):(this.switchingTrack=null,this.bufferedTrack=i,this.state=Qi),this.tick()},e.onManifestLoading=function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1},e.onLevelLoaded=function(t,i){this.mainDetails=i.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(y.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)},e.onAudioTrackLoaded=function(t,i){var a;if(this.mainDetails!=null){var s=this.levels,d=i.details,u=i.id;if(s){this.log("Audio track "+u+" loaded ["+d.startSN+","+d.endSN+"]"+(d.lastPartSn?"[part-"+d.lastPartSn+"-"+d.lastPartIndex+"]":"")+",duration:"+d.totalduration);var f=s[u],h=0;if(d.live||(a=f.details)!=null&&a.live){this.checkLiveUpdate(d);var m,w=this.mainDetails;if(d.deltaUpdateFailed||!w)return;!f.details&&d.hasProgramDateTime&&w.hasProgramDateTime?(Rs(d,w),h=d.fragments[0].start):h=this.alignPlaylists(d,f.details,(m=this.levelLastLoaded)==null?void 0:m.details)}f.details=d,this.levelLastLoaded=f,this.startFragRequested||!this.mainDetails&&d.live||this.setStartPosition(this.mainDetails||d,h),this.state!==mn||this.waitForCdnTuneIn(d)||(this.state=ot),this.tick()}else this.warn("Audio tracks were reset while loading level "+u)}else this.cachedTrackLoadedData=i},e._handleFragmentLoadProgress=function(t){var i,a=t.frag,s=t.part,d=t.payload,u=this.config,f=this.trackId,h=this.levels;if(h){var m=h[f];if(m){var w=m.details;if(!w)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(a.start);var x=u.defaultAudioCodec||m.audioCodec||"mp4a.40.2",_=this.transmuxer;_||(_=this.transmuxer=new tf(this.hls,Xi,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var E=this.initPTS[a.cc],A=(i=a.initSegment)==null?void 0:i.data;if(E!==void 0){var T=s?s.index:-1,L=T!==-1,I=new xd(a.level,a.sn,a.stats.chunkCount,d.byteLength,T,L);_.push(d,A,x,"",a,s,w.totalduration,!1,I,E)}else this.log("Unknown video PTS for cc "+a.cc+", waiting for video PTS before demuxing audio frag "+a.sn+" of ["+w.startSN+" ,"+w.endSN+"],track "+f),(this.waitingData=this.waitingData||{frag:a,part:s,cache:new Ph,complete:!1}).cache.push(new Uint8Array(d)),this.waitingVideoCC=this.videoTrackCC,this.state=bn}else this.warn("Audio track is undefined on fragment load progress")}else this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+a.sn+" of level "+a.level+" will not be buffered")},e._handleFragmentLoadComplete=function(t){this.waitingData?this.waitingData.complete=!0:l.prototype._handleFragmentLoadComplete.call(this,t)},e.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},e.onBufferCreated=function(t,i){var a=i.tracks.audio;a&&(this.mediaBuffer=a.buffer||null),i.tracks.video&&(this.videoBuffer=i.tracks.video.buffer||null)},e.onFragBuffered=function(t,i){var a=i.frag,s=i.part;if(a.type===Xi)if(this.fragContextChanged(a))this.warn("Fragment "+a.sn+(s?" p: "+s.index:"")+" of level "+a.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+(this.switchingTrack?this.switchingTrack.name:"false"));else{if(a.sn!=="initSegment"){this.fragPrevious=a;var d=this.switchingTrack;d&&(this.bufferedTrack=d,this.switchingTrack=null,this.hls.trigger(y.AUDIO_TRACK_SWITCHED,b({},d)))}this.fragBufferedComplete(a,s)}else if(!this.loadedmetadata&&a.type===Lt){var u=this.videoBuffer||this.media;u&&Yt.getBuffered(u).length&&(this.loadedmetadata=!0)}},e.onError=function(t,i){var a;if(i.fatal)this.state=bo;else switch(i.details){case z.FRAG_GAP:case z.FRAG_PARSING_ERROR:case z.FRAG_DECRYPT_ERROR:case z.FRAG_LOAD_ERROR:case z.FRAG_LOAD_TIMEOUT:case z.KEY_LOAD_ERROR:case z.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Xi,i);break;case z.AUDIO_TRACK_LOAD_ERROR:case z.AUDIO_TRACK_LOAD_TIMEOUT:case z.LEVEL_PARSING_ERROR:i.levelRetry||this.state!==mn||((a=i.context)==null?void 0:a.type)!==sr||(this.state=ot);break;case z.BUFFER_APPEND_ERROR:case z.BUFFER_FULL_ERROR:if(!i.parent||i.parent!=="audio")return;if(i.details===z.BUFFER_APPEND_ERROR)return void this.resetLoadingState();this.reduceLengthAndFlushBuffer(i)&&(this.bufferedTrack=null,l.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case z.INTERNAL_EXCEPTION:this.recoverWorkerError(i)}},e.onBufferFlushing=function(t,i){i.type!==Ft&&(this.flushing=!0)},e.onBufferFlushed=function(t,i){var a=i.type;if(a!==Ft){this.flushing=!1,this.bufferFlushed=!0,this.state===vn&&(this.state=ot);var s=this.mediaBuffer||this.media;s&&(this.afterBufferFlushed(s,a,Xi),this.tick())}},e._handleTransmuxComplete=function(t){var i,a="audio",s=this.hls,d=t.remuxResult,u=t.chunkMeta,f=this.getCurrentContext(u);if(f){var h=f.frag,m=f.part,w=f.level,x=w.details,_=d.audio,E=d.text,A=d.id3,T=d.initSegment;if(!this.fragContextChanged(h)&&x){if(this.state=Gr,this.switchingTrack&&_&&this.completeAudioSwitch(this.switchingTrack),T!=null&&T.tracks){var L=h.initSegment||h;this._bufferInitSegment(w,T.tracks,L,u),s.trigger(y.FRAG_PARSING_INIT_SEGMENT,{frag:L,id:a,tracks:T.tracks})}if(_){var I=_.startPTS,P=_.endPTS,G=_.startDTS,$=_.endDTS;m&&(m.elementaryStreams[_t]={startPTS:I,endPTS:P,startDTS:G,endDTS:$}),h.setElementaryStreamInfo(_t,I,P,G,$),this.bufferFragmentData(_,h,m,u)}if(A!=null&&(i=A.samples)!=null&&i.length){var B=R({id:a,frag:h,details:x},A);s.trigger(y.FRAG_PARSING_METADATA,B)}if(E){var J=R({id:a,frag:h,details:x},E);s.trigger(y.FRAG_PARSING_USERDATA,J)}}else this.fragmentTracker.removeFragment(h)}else this.resetWhenMissingContext(u)},e._bufferInitSegment=function(t,i,a,s){if(this.state===Gr){i.video&&delete i.video;var d=i.audio;if(d){d.id="audio";var u=t.audioCodec;this.log("Init audio buffer, container:"+d.container+", codecs[level/parsed]=["+u+"/"+d.codec+"]"),u&&u.split(",").length===1&&(d.levelCodec=u),this.hls.trigger(y.BUFFER_CODECS,i);var f=d.initSegment;if(f!=null&&f.byteLength){var h={type:"audio",frag:a,part:null,chunkMeta:s,parent:a.type,data:f};this.hls.trigger(y.BUFFER_APPENDING,h)}this.tickImmediate()}}},e.loadFragment=function(t,i,a){var s,d=this.fragmentTracker.getState(t);if(this.fragCurrent=t,this.switchingTrack||d===fn||d===fo)if(t.sn==="initSegment")this._loadInitSegment(t,i);else if((s=i.details)!=null&&s.live&&!this.initPTS[t.cc]){this.log("Waiting for video PTS in continuity counter "+t.cc+" of live stream before loading audio fragment "+t.sn+" of level "+this.trackId),this.state=bn;var u=this.mainDetails;u&&u.fragments[0].start!==i.details.fragments[0].start&&Rs(i.details,u)}else this.startFragRequested=!0,l.prototype.loadFragment.call(this,t,i,a);else this.clearTrackerIfNeeded(t)},e.flushAudioIfNeeded=function(t){var i=this.media,a=this.bufferedTrack,s=a==null?void 0:a.attrs,d=t.attrs;i&&s&&(s.CHANNELS!==d.CHANNELS||a.name!==t.name||a.lang!==t.lang)&&(this.log("Switching audio track : flushing all audio"),l.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)},e.completeAudioSwitch=function(t){var i=this.hls;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,i.trigger(y.AUDIO_TRACK_SWITCHED,b({},t))},o}(_d),Ok=function(l){function o(t){var i;return(i=l.call(this,t,"[audio-track-controller]")||this).tracks=[],i.groupIds=null,i.tracksInGroup=[],i.trackId=-1,i.currentTrack=null,i.selectDefaultTrack=!0,i.registerListeners(),i}D(o,l);var e=o.prototype;return e.registerListeners=function(){var t=this.hls;t.on(y.MANIFEST_LOADING,this.onManifestLoading,this),t.on(y.MANIFEST_PARSED,this.onManifestParsed,this),t.on(y.LEVEL_LOADING,this.onLevelLoading,this),t.on(y.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(y.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(y.ERROR,this.onError,this)},e.unregisterListeners=function(){var t=this.hls;t.off(y.MANIFEST_LOADING,this.onManifestLoading,this),t.off(y.MANIFEST_PARSED,this.onManifestParsed,this),t.off(y.LEVEL_LOADING,this.onLevelLoading,this),t.off(y.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(y.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(y.ERROR,this.onError,this)},e.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,l.prototype.destroy.call(this)},e.onManifestLoading=function(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0},e.onManifestParsed=function(t,i){this.tracks=i.audioTracks||[]},e.onAudioTrackLoaded=function(t,i){var a=i.id,s=i.groupId,d=i.details,u=this.tracksInGroup[a];if(u&&u.groupId===s){var f=u.details;u.details=i.details,this.log("Audio track "+a+' "'+u.name+'" lang:'+u.lang+" group:"+s+" loaded ["+d.startSN+"-"+d.endSN+"]"),a===this.trackId&&this.playlistLoaded(a,i,f)}else this.warn("Audio track with id:"+a+" and group:"+s+" not found in active group "+(u==null?void 0:u.groupId))},e.onLevelLoading=function(t,i){this.switchLevel(i.level)},e.onLevelSwitching=function(t,i){this.switchLevel(i.level)},e.switchLevel=function(t){var i=this.hls.levels[t];if(i){var a=i.audioGroups||null,s=this.groupIds,d=this.currentTrack;if(!a||(s==null?void 0:s.length)!==(a==null?void 0:a.length)||a!=null&&a.some(function(T){return(s==null?void 0:s.indexOf(T))===-1})){this.groupIds=a,this.trackId=-1,this.currentTrack=null;var u=this.tracks.filter(function(T){return!a||a.indexOf(T.groupId)!==-1});if(u.length)this.selectDefaultTrack&&!u.some(function(T){return T.default})&&(this.selectDefaultTrack=!1),u.forEach(function(T,L){T.id=L});else if(!d&&!this.tracksInGroup.length)return;this.tracksInGroup=u;var f=this.hls.config.audioPreference;if(!d&&f){var h=xr(f,u,ho);if(h>-1)d=u[h];else{var m=xr(f,this.tracks);d=this.tracks[m]}}var w=this.findTrackId(d);w===-1&&d&&(w=this.findTrackId(null));var x={audioTracks:u};this.log("Updating audio tracks, "+u.length+" track(s) found in group(s): "+(a==null?void 0:a.join(","))),this.hls.trigger(y.AUDIO_TRACKS_UPDATED,x);var _=this.trackId;if(w!==-1&&_===-1)this.setAudioTrack(w);else if(u.length&&_===-1){var E,A=new Error("No audio track selected for current audio group-ID(s): "+((E=this.groupIds)==null?void 0:E.join(","))+" track count: "+u.length);this.warn(A.message),this.hls.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:A})}}else this.shouldReloadPlaylist(d)&&this.setAudioTrack(this.trackId)}},e.onError=function(t,i){!i.fatal&&i.context&&(i.context.type!==sr||i.context.id!==this.trackId||this.groupIds&&this.groupIds.indexOf(i.context.groupId)===-1||(this.requestScheduled=-1,this.checkRetry(i)))},e.setAudioOption=function(t){var i=this.hls;if(i.config.audioPreference=t,t){var a=this.allAudioTracks;if(this.selectDefaultTrack=!1,a.length){var s=this.currentTrack;if(s&&po(t,s,ho))return s;var d=xr(t,this.tracksInGroup,ho);if(d>-1){var u=this.tracksInGroup[d];return this.setAudioTrack(d),u}if(s){var f=i.loadLevel;f===-1&&(f=i.firstAutoLevel);var h=function(w,x,_,E,A){var T=x[E],L=x.reduce(function(B,J,X){var ee=J.uri;return(B[ee]||(B[ee]=[])).push(X),B},{})[T.uri];L.length>1&&(E=Math.max.apply(Math,L));var I=T.videoRange,P=T.frameRate,G=T.codecSet.substring(0,4),$=Sh(x,E,function(B){if(B.videoRange!==I||B.frameRate!==P||B.codecSet.substring(0,4)!==G)return!1;var J=B.audioGroups,X=_.filter(function(ee){return!J||J.indexOf(ee.groupId)!==-1});return xr(w,X,A)>-1});return $>-1?$:Sh(x,E,function(B){var J=B.audioGroups,X=_.filter(function(ee){return!J||J.indexOf(ee.groupId)!==-1});return xr(w,X,A)>-1})}(t,i.levels,a,f,ho);if(h===-1)return null;i.nextLoadLevel=h}if(t.channels||t.audioCodec){var m=xr(t,a);if(m>-1)return a[m]}}}return null},e.setAudioTrack=function(t){var i=this.tracksInGroup;if(t<0||t>=i.length)this.warn("Invalid audio track id: "+t);else{this.clearTimer(),this.selectDefaultTrack=!1;var a=this.currentTrack,s=i[t],d=s.details&&!s.details.live;if(!(t===this.trackId&&s===a&&d||(this.log("Switching to audio-track "+t+' "'+s.name+'" lang:'+s.lang+" group:"+s.groupId+" channels:"+s.channels),this.trackId=t,this.currentTrack=s,this.hls.trigger(y.AUDIO_TRACK_SWITCHING,b({},s)),d))){var u=this.switchParams(s.url,a==null?void 0:a.details,s.details);this.loadPlaylist(u)}}},e.findTrackId=function(t){for(var i=this.tracksInGroup,a=0;a<i.length;a++){var s=i[a];if((!this.selectDefaultTrack||s.default)&&(!t||po(t,s,ho)))return a}if(t){for(var d=t.name,u=t.lang,f=t.assocLang,h=t.characteristics,m=t.audioCodec,w=t.channels,x=0;x<i.length;x++)if(po({name:d,lang:u,assocLang:f,characteristics:h,audioCodec:m,channels:w},i[x],ho))return x;for(var _=0;_<i.length;_++){var E=i[_];if(yo(t.attrs,E.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return _}for(var A=0;A<i.length;A++){var T=i[A];if(yo(t.attrs,T.attrs,["LANGUAGE"]))return A}}return-1},e.loadPlaylist=function(t){var i=this.currentTrack;if(this.shouldLoadPlaylist(i)&&i){l.prototype.loadPlaylist.call(this);var a=i.id,s=i.groupId,d=i.url;if(t)try{d=t.addDirectives(d)}catch(u){this.warn("Could not construct new URL with HLS Delivery Directives: "+u)}this.log("loading audio-track playlist "+a+' "'+i.name+'" lang:'+i.lang+" group:"+s),this.clearTimer(),this.hls.trigger(y.AUDIO_TRACK_LOADING,{url:d,id:a,groupId:s,deliveryDirectives:t||null})}},C(o,[{key:"allAudioTracks",get:function(){return this.tracks}},{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}}]),o}(wd),Mk=function(l){function o(t,i,a){var s;return(s=l.call(this,t,i,a,"[subtitle-stream-controller]",Br)||this).currentTrackId=-1,s.tracksBuffered=[],s.mainDetails=null,s._registerListeners(),s}D(o,l);var e=o.prototype;return e.onHandlerDestroying=function(){this._unregisterListeners(),l.prototype.onHandlerDestroying.call(this),this.mainDetails=null},e._registerListeners=function(){var t=this.hls;t.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(y.MANIFEST_LOADING,this.onManifestLoading,this),t.on(y.LEVEL_LOADED,this.onLevelLoaded,this),t.on(y.ERROR,this.onError,this),t.on(y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(y.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(y.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(y.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(y.FRAG_BUFFERED,this.onFragBuffered,this)},e._unregisterListeners=function(){var t=this.hls;t.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(y.MANIFEST_LOADING,this.onManifestLoading,this),t.off(y.LEVEL_LOADED,this.onLevelLoaded,this),t.off(y.ERROR,this.onError,this),t.off(y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(y.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(y.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(y.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(y.FRAG_BUFFERED,this.onFragBuffered,this)},e.startLoad=function(t){this.stopLoad(),this.state=ot,this.setInterval(500),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},e.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},e.onMediaDetaching=function(){this.tracksBuffered=[],l.prototype.onMediaDetaching.call(this)},e.onLevelLoaded=function(t,i){this.mainDetails=i.details},e.onSubtitleFragProcessed=function(t,i){var a=i.frag,s=i.success;if(this.fragPrevious=a,this.state=ot,s){var d=this.tracksBuffered[this.currentTrackId];if(d){for(var u,f=a.start,h=0;h<d.length;h++)if(f>=d[h].start&&f<=d[h].end){u=d[h];break}var m=a.start+a.duration;u?u.end=m:(u={start:f,end:m},d.push(u)),this.fragmentTracker.fragBuffered(a),this.fragBufferedComplete(a,null)}}},e.onBufferFlushing=function(t,i){var a=i.startOffset,s=i.endOffset;if(a===0&&s!==Number.POSITIVE_INFINITY){var d=s-1;if(d<=0)return;i.endOffsetSubtitles=Math.max(0,d),this.tracksBuffered.forEach(function(u){for(var f=0;f<u.length;)if(u[f].end<=d)u.shift();else{if(!(u[f].start<d))break;u[f].start=d,f++}}),this.fragmentTracker.removeFragmentsInRange(a,d,Br)}},e.onFragBuffered=function(t,i){var a;this.loadedmetadata||i.frag.type!==Lt||(a=this.media)!=null&&a.buffered.length&&(this.loadedmetadata=!0)},e.onError=function(t,i){var a=i.frag;(a==null?void 0:a.type)===Br&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Qi&&(this.state=ot))},e.onSubtitleTracksUpdated=function(t,i){var a=this,s=i.subtitleTracks;this.levels&&rf(this.levels,s)?this.levels=s.map(function(d){return new lo(d)}):(this.tracksBuffered=[],this.levels=s.map(function(d){var u=new lo(d);return a.tracksBuffered[u.id]=[],u}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Br),this.fragPrevious=null,this.mediaBuffer=null)},e.onSubtitleTrackSwitch=function(t,i){var a;if(this.currentTrackId=i.id,(a=this.levels)!=null&&a.length&&this.currentTrackId!==-1){var s=this.levels[this.currentTrackId];s!=null&&s.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,s&&this.setInterval(500)}else this.clearInterval()},e.onSubtitleTrackLoaded=function(t,i){var a,s=this.currentTrackId,d=this.levels,u=i.details,f=i.id;if(d){var h=d[s];if(!(f>=d.length||f!==s)&&h){this.log("Subtitle track "+f+" loaded ["+u.startSN+","+u.endSN+"]"+(u.lastPartSn?"[part-"+u.lastPartSn+"-"+u.lastPartIndex+"]":"")+",duration:"+u.totalduration),this.mediaBuffer=this.mediaBufferTimeRanges;var m=0;if(u.live||(a=h.details)!=null&&a.live){var w=this.mainDetails;if(u.deltaUpdateFailed||!w)return;var x,_=w.fragments[0];h.details?(m=this.alignPlaylists(u,h.details,(x=this.levelLastLoaded)==null?void 0:x.details))===0&&_&&fd(u,m=_.start):u.hasProgramDateTime&&w.hasProgramDateTime?(Rs(u,w),m=u.fragments[0].start):_&&fd(u,m=_.start)}h.details=u,this.levelLastLoaded=h,this.startFragRequested||!this.mainDetails&&u.live||this.setStartPosition(this.mainDetails||u,m),this.tick(),u.live&&!this.fragCurrent&&this.media&&this.state===ot&&(Ss(null,u.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),h.details=void 0))}}else this.warn("Subtitle tracks were reset while loading level "+f)},e._handleFragmentLoadComplete=function(t){var i=this,a=t.frag,s=t.payload,d=a.decryptdata,u=this.hls;if(!this.fragContextChanged(a)&&s&&s.byteLength>0&&d!=null&&d.key&&d.iv&&d.method==="AES-128"){var f=performance.now();this.decrypter.decrypt(new Uint8Array(s),d.key.buffer,d.iv.buffer).catch(function(h){throw u.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.FRAG_DECRYPT_ERROR,fatal:!1,error:h,reason:h.message,frag:a}),h}).then(function(h){var m=performance.now();u.trigger(y.FRAG_DECRYPTED,{frag:a,payload:h,stats:{tstart:f,tdecrypt:m}})}).catch(function(h){i.warn(h.name+": "+h.message),i.state=ot})}},e.doTick=function(){if(this.media){if(this.state===ot){var t=this.currentTrackId,i=this.levels,a=i==null?void 0:i[t];if(!a||!i.length||!a.details)return;var s=this.config,d=this.getLoadPosition(),u=Yt.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],d,s.maxBufferHole),f=u.end,h=u.len,m=this.getFwdBufferInfo(this.media,Lt),w=a.details;if(h>this.getMaxBufferLength(m==null?void 0:m.len)+w.levelTargetDuration)return;var x=w.fragments,_=x.length,E=w.edge,A=null,T=this.fragPrevious;if(f<E){var L=s.maxFragLookUpTolerance,I=f>E-L?0:L;!(A=Ss(T,x,Math.max(x[0].start,f),I))&&T&&T.start<x[0].start&&(A=x[0])}else A=x[_-1];if(!A)return;if((A=this.mapToInitFragWhenRequired(A)).sn!=="initSegment"){var P=x[A.sn-w.startSN-1];P&&P.cc===A.cc&&this.fragmentTracker.getState(P)===fn&&(A=P)}this.fragmentTracker.getState(A)===fn&&this.loadFragment(A,a,f)}}else this.state=ot},e.getMaxBufferLength=function(t){var i=l.prototype.getMaxBufferLength.call(this);return t?Math.max(i,t):i},e.loadFragment=function(t,i,a){this.fragCurrent=t,t.sn==="initSegment"?this._loadInitSegment(t,i):(this.startFragRequested=!0,l.prototype.loadFragment.call(this,t,i,a))},C(o,[{key:"mediaBufferTimeRanges",get:function(){return new Fk(this.tracksBuffered[this.currentTrackId]||[])}}]),o}(_d),Fk=function(l){this.buffered=void 0;var o=function(e,t,i){if((t>>>=0)>i-1)throw new DOMException("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is greater than the maximum bound ("+i+")");return l[t][e]};this.buffered={get length(){return l.length},end:function(e){return o("end",e,l.length)},start:function(e){return o("start",e,l.length)}}},Nk=function(l){function o(t){var i;return(i=l.call(this,t,"[subtitle-track-controller]")||this).media=null,i.tracks=[],i.groupIds=null,i.tracksInGroup=[],i.trackId=-1,i.currentTrack=null,i.selectDefaultTrack=!0,i.queuedDefaultTrack=-1,i.asyncPollTrackChange=function(){return i.pollTrackChange(0)},i.useTextTrackPolling=!1,i.subtitlePollingInterval=-1,i._subtitleDisplay=!0,i.onTextTracksChanged=function(){if(i.useTextTrackPolling||self.clearInterval(i.subtitlePollingInterval),i.media&&i.hls.config.renderTextTracksNatively){for(var a=null,s=ys(i.media.textTracks),d=0;d<s.length;d++)if(s[d].mode==="hidden")a=s[d];else if(s[d].mode==="showing"){a=s[d];break}var u=i.findTrackForTextTrack(a);i.subtitleTrack!==u&&i.setSubtitleTrack(u)}},i.registerListeners(),i}D(o,l);var e=o.prototype;return e.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,l.prototype.destroy.call(this)},e.registerListeners=function(){var t=this.hls;t.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(y.MANIFEST_LOADING,this.onManifestLoading,this),t.on(y.MANIFEST_PARSED,this.onManifestParsed,this),t.on(y.LEVEL_LOADING,this.onLevelLoading,this),t.on(y.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(y.ERROR,this.onError,this)},e.unregisterListeners=function(){var t=this.hls;t.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(y.MANIFEST_LOADING,this.onManifestLoading,this),t.off(y.MANIFEST_PARSED,this.onManifestParsed,this),t.off(y.LEVEL_LOADING,this.onLevelLoading,this),t.off(y.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(y.ERROR,this.onError,this)},e.onMediaAttached=function(t,i){this.media=i.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))},e.pollTrackChange=function(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)},e.onMediaDetaching=function(){this.media&&(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),ys(this.media.textTracks).forEach(function(t){so(t)}),this.subtitleTrack=-1,this.media=null)},e.onManifestLoading=function(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0},e.onManifestParsed=function(t,i){this.tracks=i.subtitleTracks},e.onSubtitleTrackLoaded=function(t,i){var a=i.id,s=i.groupId,d=i.details,u=this.tracksInGroup[a];if(u&&u.groupId===s){var f=u.details;u.details=i.details,this.log("Subtitle track "+a+' "'+u.name+'" lang:'+u.lang+" group:"+s+" loaded ["+d.startSN+"-"+d.endSN+"]"),a===this.trackId&&this.playlistLoaded(a,i,f)}else this.warn("Subtitle track with id:"+a+" and group:"+s+" not found in active group "+(u==null?void 0:u.groupId))},e.onLevelLoading=function(t,i){this.switchLevel(i.level)},e.onLevelSwitching=function(t,i){this.switchLevel(i.level)},e.switchLevel=function(t){var i=this.hls.levels[t];if(i){var a=i.subtitleGroups||null,s=this.groupIds,d=this.currentTrack;if(!a||(s==null?void 0:s.length)!==(a==null?void 0:a.length)||a!=null&&a.some(function(_){return(s==null?void 0:s.indexOf(_))===-1})){this.groupIds=a,this.trackId=-1,this.currentTrack=null;var u=this.tracks.filter(function(_){return!a||a.indexOf(_.groupId)!==-1});if(u.length)this.selectDefaultTrack&&!u.some(function(_){return _.default})&&(this.selectDefaultTrack=!1),u.forEach(function(_,E){_.id=E});else if(!d&&!this.tracksInGroup.length)return;this.tracksInGroup=u;var f=this.hls.config.subtitlePreference;if(!d&&f){this.selectDefaultTrack=!1;var h=xr(f,u);if(h>-1)d=u[h];else{var m=xr(f,this.tracks);d=this.tracks[m]}}var w=this.findTrackId(d);w===-1&&d&&(w=this.findTrackId(null));var x={subtitleTracks:u};this.log("Updating subtitle tracks, "+u.length+' track(s) found in "'+(a==null?void 0:a.join(","))+'" group-id'),this.hls.trigger(y.SUBTITLE_TRACKS_UPDATED,x),w!==-1&&this.trackId===-1&&this.setSubtitleTrack(w)}else this.shouldReloadPlaylist(d)&&this.setSubtitleTrack(this.trackId)}},e.findTrackId=function(t){for(var i=this.tracksInGroup,a=this.selectDefaultTrack,s=0;s<i.length;s++){var d=i[s];if((!a||d.default)&&(a||t)&&(!t||po(d,t)))return s}if(t){for(var u=0;u<i.length;u++){var f=i[u];if(yo(t.attrs,f.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return u}for(var h=0;h<i.length;h++){var m=i[h];if(yo(t.attrs,m.attrs,["LANGUAGE"]))return h}}return-1},e.findTrackForTextTrack=function(t){if(t){for(var i=this.tracksInGroup,a=0;a<i.length;a++)if(Od(i[a],t))return a}return-1},e.onError=function(t,i){!i.fatal&&i.context&&(i.context.type!==wr||i.context.id!==this.trackId||this.groupIds&&this.groupIds.indexOf(i.context.groupId)===-1||this.checkRetry(i))},e.setSubtitleOption=function(t){if(this.hls.config.subtitlePreference=t,t){var i=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,i.length){var a=this.currentTrack;if(a&&po(t,a))return a;var s=xr(t,this.tracksInGroup);if(s>-1){var d=this.tracksInGroup[s];return this.setSubtitleTrack(s),d}if(a)return null;var u=xr(t,i);if(u>-1)return i[u]}}return null},e.loadPlaylist=function(t){l.prototype.loadPlaylist.call(this);var i=this.currentTrack;if(this.shouldLoadPlaylist(i)&&i){var a=i.id,s=i.groupId,d=i.url;if(t)try{d=t.addDirectives(d)}catch(u){this.warn("Could not construct new URL with HLS Delivery Directives: "+u)}this.log("Loading subtitle playlist for id "+a),this.hls.trigger(y.SUBTITLE_TRACK_LOADING,{url:d,id:a,groupId:s,deliveryDirectives:t||null})}},e.toggleTrackModes=function(){var t=this.media;if(t){var i,a=ys(t.textTracks),s=this.currentTrack;if(s&&((i=a.filter(function(u){return Od(s,u)})[0])||this.warn('Unable to find subtitle TextTrack with name "'+s.name+'" and language "'+s.lang+'"')),[].slice.call(a).forEach(function(u){u.mode!=="disabled"&&u!==i&&(u.mode="disabled")}),i){var d=this.subtitleDisplay?"showing":"hidden";i.mode!==d&&(i.mode=d)}}},e.setSubtitleTrack=function(t){var i=this.tracksInGroup;if(this.media)if(t<-1||t>=i.length||!te(t))this.warn("Invalid subtitle track id: "+t);else{this.clearTimer(),this.selectDefaultTrack=!1;var a=this.currentTrack,s=i[t]||null;if(this.trackId=t,this.currentTrack=s,this.toggleTrackModes(),s){var d=!!s.details&&!s.details.live;if(t!==this.trackId||s!==a||!d){this.log("Switching to subtitle-track "+t+(s?' "'+s.name+'" lang:'+s.lang+" group:"+s.groupId:""));var u=s.id,f=s.groupId,h=f===void 0?"":f,m=s.name,w=s.type,x=s.url;this.hls.trigger(y.SUBTITLE_TRACK_SWITCH,{id:u,groupId:h,name:m,type:w,url:x});var _=this.switchParams(s.url,a==null?void 0:a.details,s.details);this.loadPlaylist(_)}}else this.hls.trigger(y.SUBTITLE_TRACK_SWITCH,{id:t})}else this.queuedDefaultTrack=t},C(o,[{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(t){this._subtitleDisplay=t,this.trackId>-1&&this.toggleTrackModes()}},{key:"allSubtitleTracks",get:function(){return this.tracks}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1,this.setSubtitleTrack(t)}}]),o}(wd),zk=function(){function l(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}var o=l.prototype;return o.append=function(e,t,i){var a=this.queues[t];a.push(e),a.length!==1||i||this.executeNext(t)},o.insertAbort=function(e,t){this.queues[t].unshift(e),this.executeNext(t)},o.appendBlocker=function(e){var t,i=new Promise(function(s){t=s}),a={execute:t,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(a,e),i},o.executeNext=function(e){var t=this.queues[e];if(t.length){var i=t[0];try{i.execute()}catch(s){j.warn('[buffer-operation-queue]: Exception executing "'+e+'" SourceBuffer operation: '+s),i.onError(s);var a=this.buffers[e];a!=null&&a.updating||this.shiftAndExecuteNext(e)}}},o.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},o.current=function(e){return this.queues[e][0]},l}(),af=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Bk=function(){function l(e){var t=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=function(s){t.hls&&t.hls.pauseBuffering()},this._onStartStreaming=function(s){t.hls&&t.hls.resumeBuffering()},this._onMediaSourceOpen=function(){var s=t.media,d=t.mediaSource;t.log("Media source opened"),s&&(s.removeEventListener("emptied",t._onMediaEmptied),t.updateMediaElementDuration(),t.hls.trigger(y.MEDIA_ATTACHED,{media:s,mediaSource:d})),d&&d.removeEventListener("sourceopen",t._onMediaSourceOpen),t.checkPendingTracks()},this._onMediaSourceClose=function(){t.log("Media source closed")},this._onMediaSourceEnded=function(){t.log("Media source ended")},this._onMediaEmptied=function(){var s=t.mediaSrc,d=t._objectUrl;s!==d&&j.error("Media element src was set while attaching MediaSource ("+d+" > "+s+")")},this.hls=e;var i,a="[buffer-controller]";this.appendSource=(i=nr(e.config.preferManagedMediaSource),typeof self<"u"&&i===self.ManagedMediaSource),this.log=j.log.bind(j,a),this.warn=j.warn.bind(j,a),this.error=j.error.bind(j,a),this._initSourceBuffer(),this.registerListeners()}var o=l.prototype;return o.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},o.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null},o.registerListeners=function(){var e=this.hls;e.on(y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(y.BUFFER_RESET,this.onBufferReset,this),e.on(y.BUFFER_APPENDING,this.onBufferAppending,this),e.on(y.BUFFER_CODECS,this.onBufferCodecs,this),e.on(y.BUFFER_EOS,this.onBufferEos,this),e.on(y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(y.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(y.FRAG_PARSED,this.onFragParsed,this),e.on(y.FRAG_CHANGED,this.onFragChanged,this)},o.unregisterListeners=function(){var e=this.hls;e.off(y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(y.BUFFER_RESET,this.onBufferReset,this),e.off(y.BUFFER_APPENDING,this.onBufferAppending,this),e.off(y.BUFFER_CODECS,this.onBufferCodecs,this),e.off(y.BUFFER_EOS,this.onBufferEos,this),e.off(y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(y.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(y.FRAG_PARSED,this.onFragParsed,this),e.off(y.FRAG_CHANGED,this.onFragChanged,this)},o._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new zk(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null},o.onManifestLoading=function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null},o.onManifestParsed=function(e,t){var i=2;(t.audio&&!t.video||!t.altAudio)&&(i=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=i,this.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},o.onMediaAttaching=function(e,t){var i=this.media=t.media,a=nr(this.appendSource);if(i&&a){var s,d=this.mediaSource=new a;this.log("created media source: "+((s=d.constructor)==null?void 0:s.name)),d.addEventListener("sourceopen",this._onMediaSourceOpen),d.addEventListener("sourceended",this._onMediaSourceEnded),d.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(d.addEventListener("startstreaming",this._onStartStreaming),d.addEventListener("endstreaming",this._onEndStreaming));var u=this._objectUrl=self.URL.createObjectURL(d);if(this.appendSource)try{i.removeAttribute("src");var f=self.ManagedMediaSource;i.disableRemotePlayback=i.disableRemotePlayback||f&&d instanceof f,of(i),function(h,m){var w=self.document.createElement("source");w.type="video/mp4",w.src=m,h.appendChild(w)}(i,u),i.load()}catch{i.src=u}else i.src=u;i.addEventListener("emptied",this._onMediaEmptied)}},o.onMediaDetaching=function(){var e=this.media,t=this.mediaSource,i=this._objectUrl;if(t){if(this.log("media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(a){this.warn("onMediaDetaching: "+a.message+" while calling endOfStream")}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),i&&self.URL.revokeObjectURL(i),this.mediaSrc===i?(e.removeAttribute("src"),this.appendSource&&of(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(y.MEDIA_DETACHED,void 0)},o.onBufferReset=function(){var e=this;this.getSourceBufferTypes().forEach(function(t){e.resetBuffer(t)}),this._initSourceBuffer()},o.resetBuffer=function(e){var t=this.sourceBuffer[e];try{var i;t&&(this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(i=this.mediaSource)!=null&&i.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t))}catch(a){this.warn("onBufferReset "+e,a)}},o.onBufferCodecs=function(e,t){var i=this,a=this.getSourceBufferTypes().length,s=Object.keys(t);if(s.forEach(function(u){if(a){var f=i.tracks[u];if(f&&typeof f.buffer.changeType=="function"){var h,m=t[u],w=m.id,x=m.codec,_=m.levelCodec,E=m.container,A=m.metadata,T=Qp(f.codec,f.levelCodec),L=T==null?void 0:T.replace(af,"$1"),I=Qp(x,_),P=(h=I)==null?void 0:h.replace(af,"$1");if(I&&L!==P){u.slice(0,5)==="audio"&&(I=xs(I,i.appendSource));var G=E+";codecs="+I;i.appendChangeType(u,G),i.log("switching codec "+T+" to "+I),i.tracks[u]={buffer:f.buffer,codec:x,container:E,levelCodec:_,metadata:A,id:w}}}}else i.pendingTracks[u]=t[u]}),!a){var d=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==d&&(this.log(d+" bufferCodec event(s) expected "+s.join(",")),this.bufferCodecEventsExpected=d),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}},o.appendChangeType=function(e,t){var i=this,a=this.operationQueue,s={execute:function(){var d=i.sourceBuffer[e];d&&(i.log("changing "+e+" sourceBuffer type to "+t),d.changeType(t)),a.shiftAndExecuteNext(e)},onStart:function(){},onComplete:function(){},onError:function(d){i.warn("Failed to change "+e+" SourceBuffer type",d)}};a.append(s,e,!!this.pendingTracks[e])},o.onBufferAppending=function(e,t){var i=this,a=this.hls,s=this.operationQueue,d=this.tracks,u=t.data,f=t.type,h=t.frag,m=t.part,w=t.chunkMeta,x=w.buffering[f],_=self.performance.now();x.start=_;var E=h.stats.buffering,A=m?m.stats.buffering:null;E.start===0&&(E.start=_),A&&A.start===0&&(A.start=_);var T=d.audio,L=!1;f==="audio"&&(T==null?void 0:T.container)==="audio/mpeg"&&(L=!this.lastMpegAudioChunk||w.id===1||this.lastMpegAudioChunk.sn!==w.sn,this.lastMpegAudioChunk=w);var I=h.start,P={execute:function(){if(x.executeStart=self.performance.now(),L){var G=i.sourceBuffer[f];if(G){var $=I-G.timestampOffset;Math.abs($)>=.1&&(i.log("Updating audio SourceBuffer timestampOffset to "+I+" (delta: "+$+") sn: "+h.sn+")"),G.timestampOffset=I)}}i.appendExecutor(u,f)},onStart:function(){},onComplete:function(){var G=self.performance.now();x.executeEnd=x.end=G,E.first===0&&(E.first=G),A&&A.first===0&&(A.first=G);var $=i.sourceBuffer,B={};for(var J in $)B[J]=Yt.getBuffered($[J]);i.appendErrors[f]=0,f==="audio"||f==="video"?i.appendErrors.audiovideo=0:(i.appendErrors.audio=0,i.appendErrors.video=0),i.hls.trigger(y.BUFFER_APPENDED,{type:f,frag:h,part:m,chunkMeta:w,parent:h.type,timeRanges:B})},onError:function(G){var $={type:re.MEDIA_ERROR,parent:h.type,details:z.BUFFER_APPEND_ERROR,sourceBufferName:f,frag:h,part:m,chunkMeta:w,error:G,err:G,fatal:!1};if(G.code===DOMException.QUOTA_EXCEEDED_ERR)$.details=z.BUFFER_FULL_ERROR;else{var B=++i.appendErrors[f];$.details=z.BUFFER_APPEND_ERROR,i.warn("Failed "+B+"/"+a.config.appendErrorMaxRetry+' times to append segment in "'+f+'" sourceBuffer'),B>=a.config.appendErrorMaxRetry&&($.fatal=!0)}a.trigger(y.ERROR,$)}};s.append(P,f,!!this.pendingTracks[f])},o.onBufferFlushing=function(e,t){var i=this,a=this.operationQueue,s=function(d){return{execute:i.removeExecutor.bind(i,d,t.startOffset,t.endOffset),onStart:function(){},onComplete:function(){i.hls.trigger(y.BUFFER_FLUSHED,{type:d})},onError:function(u){i.warn("Failed to remove from "+d+" SourceBuffer",u)}}};t.type?a.append(s(t.type),t.type):this.getSourceBufferTypes().forEach(function(d){a.append(s(d),d)})},o.onFragParsed=function(e,t){var i=this,a=t.frag,s=t.part,d=[],u=s?s.elementaryStreams:a.elementaryStreams;u[Et]?d.push("audiovideo"):(u[_t]&&d.push("audio"),u[Ft]&&d.push("video")),d.length===0&&this.warn("Fragments must have at least one ElementaryStreamType set. type: "+a.type+" level: "+a.level+" sn: "+a.sn),this.blockBuffers(function(){var f=self.performance.now();a.stats.buffering.end=f,s&&(s.stats.buffering.end=f);var h=s?s.stats:a.stats;i.hls.trigger(y.FRAG_BUFFERED,{frag:a,part:s,stats:h,id:a.type})},d)},o.onFragChanged=function(e,t){this.trimBuffers()},o.onBufferEos=function(e,t){var i=this;this.getSourceBufferTypes().reduce(function(a,s){var d=i.sourceBuffer[s];return!d||t.type&&t.type!==s||(d.ending=!0,d.ended||(d.ended=!0,i.log(s+" sourceBuffer now EOS"))),a&&!(d&&!d.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(function(){i.getSourceBufferTypes().forEach(function(s){var d=i.sourceBuffer[s];d&&(d.ending=!1)});var a=i.mediaSource;a&&a.readyState==="open"?(i.log("Calling mediaSource.endOfStream()"),a.endOfStream()):a&&i.log("Could not call mediaSource.endOfStream(). mediaSource.readyState: "+a.readyState)}))},o.onLevelUpdated=function(e,t){var i=t.details;i.fragments.length&&(this.details=i,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},o.trimBuffers=function(){var e=this.hls,t=this.details,i=this.media;if(i&&t!==null&&this.getSourceBufferTypes().length){var a=e.config,s=i.currentTime,d=t.levelTargetDuration,u=t.live&&a.liveBackBufferLength!==null?a.liveBackBufferLength:a.backBufferLength;if(te(u)&&u>0){var f=Math.max(u,d),h=Math.floor(s/d)*d-f;this.flushBackBuffer(s,d,h)}if(te(a.frontBufferFlushThreshold)&&a.frontBufferFlushThreshold>0){var m=Math.max(a.maxBufferLength,a.frontBufferFlushThreshold),w=Math.max(m,d),x=Math.floor(s/d)*d+w;this.flushFrontBuffer(s,d,x)}}},o.flushBackBuffer=function(e,t,i){var a=this,s=this.details,d=this.sourceBuffer;this.getSourceBufferTypes().forEach(function(u){var f=d[u];if(f){var h=Yt.getBuffered(f);if(h.length>0&&i>h.start(0)){if(a.hls.trigger(y.BACK_BUFFER_REACHED,{bufferEnd:i}),s!=null&&s.live)a.hls.trigger(y.LIVE_BACK_BUFFER_REACHED,{bufferEnd:i});else if(f.ended&&h.end(h.length-1)-e<2*t)return void a.log("Cannot flush "+u+" back buffer while SourceBuffer is in ended state");a.hls.trigger(y.BUFFER_FLUSHING,{startOffset:0,endOffset:i,type:u})}}})},o.flushFrontBuffer=function(e,t,i){var a=this,s=this.sourceBuffer;this.getSourceBufferTypes().forEach(function(d){var u=s[d];if(u){var f=Yt.getBuffered(u),h=f.length;if(h<2)return;var m=f.start(h-1),w=f.end(h-1);if(i>m||e>=m&&e<=w)return;if(u.ended&&e-w<2*t)return void a.log("Cannot flush "+d+" front buffer while SourceBuffer is in ended state");a.hls.trigger(y.BUFFER_FLUSHING,{startOffset:m,endOffset:1/0,type:d})}})},o.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&this.mediaSource.readyState==="open"){var e=this.details,t=this.hls,i=this.media,a=this.mediaSource,s=e.fragments[0].start+e.totalduration,d=i.duration,u=te(a.duration)?a.duration:0;e.live&&t.config.liveDurationInfinity?(a.duration=1/0,this.updateSeekableRange(e)):(s>u&&s>d||!te(d))&&(this.log("Updating Media Source duration to "+s.toFixed(3)),a.duration=s)}},o.updateSeekableRange=function(e){var t=this.mediaSource,i=e.fragments;if(i.length&&e.live&&t!=null&&t.setLiveSeekableRange){var a=Math.max(0,i[0].start),s=Math.max(a,a+e.totalduration);this.log("Media Source duration is set to "+t.duration+". Setting seekable range to "+a+"-"+s+"."),t.setLiveSeekableRange(a,s)}},o.checkPendingTracks=function(){var e=this.bufferCodecEventsExpected,t=this.operationQueue,i=this.pendingTracks,a=Object.keys(i).length;if(a&&(!e||a===2||"audiovideo"in i)){this.createSourceBuffers(i),this.pendingTracks={};var s=this.getSourceBufferTypes();if(s.length)this.hls.trigger(y.BUFFER_CREATED,{tracks:this.tracks}),s.forEach(function(u){t.executeNext(u)});else{var d=new Error("could not create source buffer for media codec(s)");this.hls.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:d,reason:d.message})}}},o.createSourceBuffers=function(e){var t=this,i=this.sourceBuffer,a=this.mediaSource;if(!a)throw Error("createSourceBuffers called when mediaSource was null");var s=function(u){if(!i[u]){var f,h=e[u];if(!h)throw Error("source buffer exists for track "+u+", however track does not");var m=((f=h.levelCodec)==null?void 0:f.indexOf(","))===-1?h.levelCodec:h.codec;m&&u.slice(0,5)==="audio"&&(m=xs(m,t.appendSource));var w=h.container+";codecs="+m;t.log("creating sourceBuffer("+w+")");try{var x=i[u]=a.addSourceBuffer(w),_=u;t.addBufferListener(_,"updatestart",t._onSBUpdateStart),t.addBufferListener(_,"updateend",t._onSBUpdateEnd),t.addBufferListener(_,"error",t._onSBUpdateError),t.appendSource&&t.addBufferListener(_,"bufferedchange",function(E,A){var T=A.removedRanges;T!=null&&T.length&&t.hls.trigger(y.BUFFER_FLUSHED,{type:u})}),t.tracks[u]={buffer:x,codec:m,container:h.container,levelCodec:h.levelCodec,metadata:h.metadata,id:h.id}}catch(E){t.error("error while trying to add sourceBuffer: "+E.message),t.hls.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:E,sourceBufferName:u,mimeType:w})}}};for(var d in e)s(d)},o._onSBUpdateStart=function(e){this.operationQueue.current(e).onStart()},o._onSBUpdateEnd=function(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)!=="closed"){var i=this.operationQueue;i.current(e).onComplete(),i.shiftAndExecuteNext(e)}else this.resetBuffer(e)},o._onSBUpdateError=function(e,t){var i,a=new Error(e+" SourceBuffer error. MediaSource readyState: "+((i=this.mediaSource)==null?void 0:i.readyState));this.error(""+a,t),this.hls.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:a,fatal:!1});var s=this.operationQueue.current(e);s&&s.onError(a)},o.removeExecutor=function(e,t,i){var a=this.media,s=this.mediaSource,d=this.operationQueue,u=this.sourceBuffer[e];if(!a||!s||!u)return this.warn("Attempting to remove from the "+e+" SourceBuffer, but it does not exist"),void d.shiftAndExecuteNext(e);var f=te(a.duration)?a.duration:1/0,h=te(s.duration)?s.duration:1/0,m=Math.max(0,t),w=Math.min(i,f,h);w>m&&(!u.ending||u.ended)?(u.ended=!1,this.log("Removing ["+m+","+w+"] from the "+e+" SourceBuffer"),u.remove(m,w)):d.shiftAndExecuteNext(e)},o.appendExecutor=function(e,t){var i=this.sourceBuffer[t];if(i)i.ended=!1,i.appendBuffer(e);else if(!this.pendingTracks[t])throw new Error("Attempting to append to the "+t+" SourceBuffer, but it does not exist")},o.blockBuffers=function(e,t){var i=this;if(t===void 0&&(t=this.getSourceBufferTypes()),!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(e);var a=this.operationQueue,s=t.map(function(d){return a.appendBlocker(d)});Promise.all(s).then(function(){e(),t.forEach(function(d){var u=i.sourceBuffer[d];u!=null&&u.updating||a.shiftAndExecuteNext(d)})})},o.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},o.addBufferListener=function(e,t,i){var a=this.sourceBuffer[e];if(a){var s=i.bind(this,e);this.listeners[e].push({event:t,listener:s}),a.addEventListener(t,s)}},o.removeBufferListeners=function(e){var t=this.sourceBuffer[e];t&&this.listeners[e].forEach(function(i){t.removeEventListener(i.event,i.listener)})},C(l,[{key:"mediaSrc",get:function(){var e,t=((e=this.media)==null?void 0:e.firstChild)||this.media;return t==null?void 0:t.src}}]),l}();function of(l){var o=l.querySelectorAll("source");[].slice.call(o).forEach(function(e){l.removeChild(e)})}var nf={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},sf=function(l){var o=l;return nf.hasOwnProperty(l)&&(o=nf[l]),String.fromCharCode(o)},Oa=15,Hr=100,Uk={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Vk={17:2,18:4,21:6,22:8,23:10,19:13,20:15},jk={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Gk={25:2,26:4,29:6,30:8,31:10,27:13,28:15},$k=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],Hk=function(){function l(){this.time=null,this.verboseLevel=0}return l.prototype.log=function(o,e){if(this.verboseLevel>=o){var t=typeof e=="function"?e():e;j.log(this.time+" ["+o+"] "+t)}},l}(),Ma=function(l){for(var o=[],e=0;e<l.length;e++)o.push(l[e].toString(16));return o},lf=function(){function l(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}var o=l.prototype;return o.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},o.setStyles=function(e){for(var t=["foreground","underline","italics","background","flash"],i=0;i<t.length;i++){var a=t[i];e.hasOwnProperty(a)&&(this[a]=e[a])}},o.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},o.equals=function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},o.copy=function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},o.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},l}(),Kk=function(){function l(){this.uchar=" ",this.penState=new lf}var o=l.prototype;return o.reset=function(){this.uchar=" ",this.penState.reset()},o.setChar=function(e,t){this.uchar=e,this.penState.copy(t)},o.setPenState=function(e){this.penState.copy(e)},o.equals=function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},o.copy=function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},o.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},l}(),Yk=function(){function l(e){this.chars=[],this.pos=0,this.currPenState=new lf,this.cueStartTime=null,this.logger=void 0;for(var t=0;t<Hr;t++)this.chars.push(new Kk);this.logger=e}var o=l.prototype;return o.equals=function(e){for(var t=0;t<Hr;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0},o.copy=function(e){for(var t=0;t<Hr;t++)this.chars[t].copy(e.chars[t])},o.isEmpty=function(){for(var e=!0,t=0;t<Hr;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},o.setCursor=function(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Hr&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Hr)},o.moveCursor=function(e){var t=this.pos+e;if(e>1)for(var i=this.pos+1;i<t+1;i++)this.chars[i].setPenState(this.currPenState);this.setCursor(t)},o.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},o.insertChar=function(e){var t=this;e>=144&&this.backSpace();var i=sf(e);this.pos>=Hr?this.logger.log(0,function(){return"Cannot insert "+e.toString(16)+" ("+i+") at position "+t.pos+". Skipping it!"}):(this.chars[this.pos].setChar(i,this.currPenState),this.moveCursor(1))},o.clearFromPos=function(e){var t;for(t=e;t<Hr;t++)this.chars[t].reset()},o.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},o.clearToEndOfRow=function(){this.clearFromPos(this.pos)},o.getTextString=function(){for(var e=[],t=!0,i=0;i<Hr;i++){var a=this.chars[i].uchar;a!==" "&&(t=!1),e.push(a)}return t?"":e.join("")},o.setPenStyles=function(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)},l}(),Md=function(){function l(e){this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(var t=0;t<Oa;t++)this.rows.push(new Yk(e));this.logger=e}var o=l.prototype;return o.reset=function(){for(var e=0;e<Oa;e++)this.rows[e].clear();this.currRow=14},o.equals=function(e){for(var t=!0,i=0;i<Oa;i++)if(!this.rows[i].equals(e.rows[i])){t=!1;break}return t},o.copy=function(e){for(var t=0;t<Oa;t++)this.rows[t].copy(e.rows[t])},o.isEmpty=function(){for(var e=!0,t=0;t<Oa;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},o.backSpace=function(){this.rows[this.currRow].backSpace()},o.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},o.insertChar=function(e){this.rows[this.currRow].insertChar(e)},o.setPen=function(e){this.rows[this.currRow].setPenStyles(e)},o.moveCursor=function(e){this.rows[this.currRow].moveCursor(e)},o.setCursor=function(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)},o.setPAC=function(e){this.logger.log(2,function(){return"pacData = "+JSON.stringify(e)});var t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(var i=0;i<Oa;i++)this.rows[i].clear();var a=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){var d=s.rows[a].cueStartTime,u=this.logger.time;if(d!==null&&u!==null&&d<u)for(var f=0;f<this.nrRollUpRows;f++)this.rows[t-this.nrRollUpRows+f+1].copy(s.rows[a+f])}}this.currRow=t;var h=this.rows[this.currRow];if(e.indent!==null){var m=e.indent,w=Math.max(m-1,0);h.setCursor(e.indent),e.color=h.chars[w].penState.foreground}var x={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(x)},o.setBkgData=function(e){this.logger.log(2,function(){return"bkgData = "+JSON.stringify(e)}),this.backSpace(),this.setPen(e),this.insertChar(32)},o.setRollUpRows=function(e){this.nrRollUpRows=e},o.rollUp=function(){var e=this;if(this.nrRollUpRows!==null){this.logger.log(1,function(){return e.getDisplayText()});var t=this.currRow+1-this.nrRollUpRows,i=this.rows.splice(t,1)[0];i.clear(),this.rows.splice(this.currRow,0,i),this.logger.log(2,"Rolling up")}else this.logger.log(3,"roll_up but nrRollUpRows not set yet")},o.getDisplayText=function(e){e=e||!1;for(var t=[],i="",a=-1,s=0;s<Oa;s++){var d=this.rows[s].getTextString();d&&(a=s+1,e?t.push("Row "+a+": '"+d+"'"):t.push(d.trim()))}return t.length>0&&(i=e?"["+t.join(" | ")+"]":t.join(` `)),i},o.getTextAndFormat=function(){return this.rows},l}(),df=function(){function l(e,t,i){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new Md(i),this.nonDisplayedMemory=new Md(i),this.lastOutputScreen=new Md(i),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=i}var o=l.prototype;return o.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},o.getHandler=function(){return this.outputFilter},o.setHandler=function(e){this.outputFilter=e},o.setPAC=function(e){this.writeScreen.setPAC(e)},o.setBkgData=function(e){this.writeScreen.setBkgData(e)},o.setMode=function(e){e!==this.mode&&(this.mode=e,this.logger.log(2,function(){return"MODE="+e}),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},o.insertChars=function(e){for(var t=this,i=0;i<e.length;i++)this.writeScreen.insertChar(e[i]);var a=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,function(){return a+": "+t.writeScreen.getDisplayText(!0)}),this.mode!=="MODE_PAINT-ON"&&this.mode!=="MODE_ROLL-UP"||(this.logger.log(1,function(){return"DISPLAYED: "+t.displayedMemory.getDisplayText(!0)}),this.outputDataUpdate())},o.ccRCL=function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},o.ccBS=function(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},o.ccAOF=function(){},o.ccAON=function(){},o.ccDER=function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},o.ccRU=function(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},o.ccFON=function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},o.ccRDC=function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},o.ccTR=function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")},o.ccRTD=function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")},o.ccEDM=function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},o.ccCR=function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},o.ccENM=function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},o.ccEOC=function(){var e=this;if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,function(){return"DISP: "+e.displayedMemory.getDisplayText()})}this.outputDataUpdate(!0)},o.ccTO=function(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},o.ccMIDROW=function(e){var t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{var i=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][i]}this.logger.log(2,"MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},o.outputDataUpdate=function(e){e===void 0&&(e=!1);var t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime!==null||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))},o.cueSplitAtTime=function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))},l}(),cf=function(){function l(e,t,i){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;var a=this.logger=new Hk;this.channels=[null,new df(e,t,a),new df(e+1,i,a)]}var o=l.prototype;return o.getHandler=function(e){return this.channels[e].getHandler()},o.setHandler=function(e,t){this.channels[e].setHandler(t)},o.addData=function(e,t){var i,a,s,d=!1;this.logger.time=e;for(var u=0;u<t.length;u+=2)if(a=127&t[u],s=127&t[u+1],a!==0||s!==0){if(this.logger.log(3,"["+Ma([t[u],t[u+1]])+"] -> ("+Ma([a,s])+")"),(i=this.parseCmd(a,s))||(i=this.parseMidrow(a,s)),i||(i=this.parsePAC(a,s)),i||(i=this.parseBackgroundAttributes(a,s)),!i&&(d=this.parseChars(a,s))){var f=this.currentChannel;f&&f>0?this.channels[f].insertChars(d):this.logger.log(2,"No channel found yet. TEXT-MODE?")}i||d||this.logger.log(2,"Couldn't parse cleaned data "+Ma([a,s])+" orig: "+Ma([t[u],t[u+1]]))}},o.parseCmd=function(e,t){var i=this.cmdHistory;if(!((e===20||e===28||e===21||e===29)&&t>=32&&t<=47||(e===23||e===31)&&t>=33&&t<=35))return!1;if(uf(e,t,i))return ko(null,null,i),this.logger.log(3,"Repeated command ("+Ma([e,t])+") is dropped"),!0;var a=e===20||e===21||e===23?1:2,s=this.channels[a];return e===20||e===21||e===28||e===29?t===32?s.ccRCL():t===33?s.ccBS():t===34?s.ccAOF():t===35?s.ccAON():t===36?s.ccDER():t===37?s.ccRU(2):t===38?s.ccRU(3):t===39?s.ccRU(4):t===40?s.ccFON():t===41?s.ccRDC():t===42?s.ccTR():t===43?s.ccRTD():t===44?s.ccEDM():t===45?s.ccCR():t===46?s.ccENM():t===47&&s.ccEOC():s.ccTO(t-32),ko(e,t,i),this.currentChannel=a,!0},o.parseMidrow=function(e,t){var i=0;if((e===17||e===25)&&t>=32&&t<=47){if((i=e===17?1:2)!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var a=this.channels[i];return!!a&&(a.ccMIDROW(t),this.logger.log(3,"MIDROW ("+Ma([e,t])+")"),!0)}return!1},o.parsePAC=function(e,t){var i,a=this.cmdHistory;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127||(e===16||e===24)&&t>=64&&t<=95))return!1;if(uf(e,t,a))return ko(null,null,a),!0;var s=e<=23?1:2;i=t>=64&&t<=95?s===1?Uk[e]:jk[e]:s===1?Vk[e]:Gk[e];var d=this.channels[s];return!!d&&(d.setPAC(this.interpretPAC(i,t)),ko(e,t,a),this.currentChannel=s,!0)},o.interpretPAC=function(e,t){var i,a={color:null,italics:!1,indent:null,underline:!1,row:e};return i=t>95?t-96:t-64,a.underline=(1&i)==1,i<=13?a.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(i/2)]:i<=15?(a.italics=!0,a.color="white"):a.indent=4*Math.floor((i-16)/2),a},o.parseChars=function(e,t){var i,a,s=null,d=null;if(e>=25?(i=2,d=e-8):(i=1,d=e),d>=17&&d<=19?(a=d===17?t+80:d===18?t+112:t+144,this.logger.log(2,"Special char '"+sf(a)+"' in channel "+i),s=[a]):e>=32&&e<=127&&(s=t===0?[e]:[e,t]),s){var u=Ma(s);this.logger.log(3,"Char codes = "+u.join(",")),ko(e,t,this.cmdHistory)}return s},o.parseBackgroundAttributes=function(e,t){var i;if(!((e===16||e===24)&&t>=32&&t<=47||(e===23||e===31)&&t>=45&&t<=47))return!1;var a={};e===16||e===24?(i=Math.floor((t-32)/2),a.background=$k[i],t%2==1&&(a.background=a.background+"_semi")):t===45?a.background="transparent":(a.foreground="black",t===47&&(a.underline=!0));var s=e<=23?1:2;return this.channels[s].setBkgData(a),ko(e,t,this.cmdHistory),!0},o.reset=function(){for(var e=0;e<Object.keys(this.channels).length;e++){var t=this.channels[e];t&&t.reset()}this.cmdHistory={a:null,b:null}},o.cueSplitAtTime=function(e){for(var t=0;t<this.channels.length;t++){var i=this.channels[t];i&&i.cueSplitAtTime(e)}},l}();function ko(l,o,e){e.a=l,e.b=o}function uf(l,o,e){return e.a===l&&e.b===o}var Ns=function(){function l(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}var o=l.prototype;return o.dispatchCue=function(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},o.newCue=function(e,t,i){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=i,this.timelineController.createCaptionsTrack(this.trackName)},o.reset=function(){this.cueRanges=[],this.startTime=null},l}(),Fd=function(){if(O!=null&&O.VTTCue)return self.VTTCue;var l=["","lr","rl"],o=["start","middle","end","left","right"];function e(s,d){if(typeof d!="string"||!Array.isArray(s))return!1;var u=d.toLowerCase();return!!~s.indexOf(u)&&u}function t(s){return e(o,s)}function i(s){for(var d=arguments.length,u=new Array(d>1?d-1:0),f=1;f<d;f++)u[f-1]=arguments[f];for(var h=1;h<arguments.length;h++){var m=arguments[h];for(var w in m)s[w]=m[w]}return s}function a(s,d,u){var f=this,h={enumerable:!0};f.hasBeenReset=!1;var m="",w=!1,x=s,_=d,E=u,A=null,T="",L=!0,I="auto",P="start",G=50,$="middle",B=50,J="middle";Object.defineProperty(f,"id",i({},h,{get:function(){return m},set:function(X){m=""+X}})),Object.defineProperty(f,"pauseOnExit",i({},h,{get:function(){return w},set:function(X){w=!!X}})),Object.defineProperty(f,"startTime",i({},h,{get:function(){return x},set:function(X){if(typeof X!="number")throw new TypeError("Start time must be set to a number.");x=X,this.hasBeenReset=!0}})),Object.defineProperty(f,"endTime",i({},h,{get:function(){return _},set:function(X){if(typeof X!="number")throw new TypeError("End time must be set to a number.");_=X,this.hasBeenReset=!0}})),Object.defineProperty(f,"text",i({},h,{get:function(){return E},set:function(X){E=""+X,this.hasBeenReset=!0}})),Object.defineProperty(f,"region",i({},h,{get:function(){return A},set:function(X){A=X,this.hasBeenReset=!0}})),Object.defineProperty(f,"vertical",i({},h,{get:function(){return T},set:function(X){var ee=function(ae){return e(l,ae)}(X);if(ee===!1)throw new SyntaxError("An invalid or illegal string was specified.");T=ee,this.hasBeenReset=!0}})),Object.defineProperty(f,"snapToLines",i({},h,{get:function(){return L},set:function(X){L=!!X,this.hasBeenReset=!0}})),Object.defineProperty(f,"line",i({},h,{get:function(){return I},set:function(X){if(typeof X!="number"&&X!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");I=X,this.hasBeenReset=!0}})),Object.defineProperty(f,"lineAlign",i({},h,{get:function(){return P},set:function(X){var ee=t(X);if(!ee)throw new SyntaxError("An invalid or illegal string was specified.");P=ee,this.hasBeenReset=!0}})),Object.defineProperty(f,"position",i({},h,{get:function(){return G},set:function(X){if(X<0||X>100)throw new Error("Position must be between 0 and 100.");G=X,this.hasBeenReset=!0}})),Object.defineProperty(f,"positionAlign",i({},h,{get:function(){return $},set:function(X){var ee=t(X);if(!ee)throw new SyntaxError("An invalid or illegal string was specified.");$=ee,this.hasBeenReset=!0}})),Object.defineProperty(f,"size",i({},h,{get:function(){return B},set:function(X){if(X<0||X>100)throw new Error("Size must be between 0 and 100.");B=X,this.hasBeenReset=!0}})),Object.defineProperty(f,"align",i({},h,{get:function(){return J},set:function(X){var ee=t(X);if(!ee)throw new SyntaxError("An invalid or illegal string was specified.");J=ee,this.hasBeenReset=!0}})),f.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}(),Wk=function(){function l(){}return l.prototype.decode=function(o,e){if(!o)return"";if(typeof o!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(o))},l}();function pf(l){function o(t,i,a,s){return 3600*(0|t)+60*(0|i)+(0|a)+parseFloat(s||0)}var e=l.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return e?parseFloat(e[2])>59?o(e[2],e[3],0,e[4]):o(e[1],e[2],e[3],e[4]):null}var qk=function(){function l(){this.values=Object.create(null)}var o=l.prototype;return o.set=function(e,t){this.get(e)||t===""||(this.values[e]=t)},o.get=function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},o.has=function(e){return e in this.values},o.alt=function(e,t,i){for(var a=0;a<i.length;++a)if(t===i[a]){this.set(e,t);break}},o.integer=function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},o.percent=function(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){var i=parseFloat(t);if(i>=0&&i<=100)return this.set(e,i),!0}return!1},l}();function hf(l,o,e,t){var i=t?l.split(t):[l];for(var a in i)if(typeof i[a]=="string"){var s=i[a].split(e);s.length===2&&o(s[0],s[1])}}var Nd=new Fd(0,0,""),zs=Nd.align==="middle"?"middle":"center";function Xk(l,o,e){var t=l;function i(){var s=pf(l);if(s===null)throw new Error("Malformed timestamp: "+t);return l=l.replace(/^[^\sa-zA-Z-]+/,""),s}function a(){l=l.replace(/^\s+/,"")}if(a(),o.startTime=i(),a(),l.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+t);l=l.slice(3),a(),o.endTime=i(),a(),function(s,d){var u=new qk;hf(s,function(m,w){var x;switch(m){case"region":for(var _=e.length-1;_>=0;_--)if(e[_].id===w){u.set(m,e[_].region);break}break;case"vertical":u.alt(m,w,["rl","lr"]);break;case"line":x=w.split(","),u.integer(m,x[0]),u.percent(m,x[0])&&u.set("snapToLines",!1),u.alt(m,x[0],["auto"]),x.length===2&&u.alt("lineAlign",x[1],["start",zs,"end"]);break;case"position":x=w.split(","),u.percent(m,x[0]),x.length===2&&u.alt("positionAlign",x[1],["start",zs,"end","line-left","line-right","auto"]);break;case"size":u.percent(m,w);break;case"align":u.alt(m,w,["start",zs,"end","left","right"])}},/:/,/\s/),d.region=u.get("region",null),d.vertical=u.get("vertical","");var f=u.get("line","auto");f==="auto"&&Nd.line===-1&&(f=-1),d.line=f,d.lineAlign=u.get("lineAlign","start"),d.snapToLines=u.get("snapToLines",!0),d.size=u.get("size",100),d.align=u.get("align",zs);var h=u.get("position","auto");h==="auto"&&Nd.position===50&&(h=d.align==="start"||d.align==="left"?0:d.align==="end"||d.align==="right"?100:50),d.position=h}(l,o)}function ff(l){return l.replace(/<br(?: \/)?>/gi,` `)}var Qk=function(){function l(){this.state="INITIAL",this.buffer="",this.decoder=new Wk,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var o=l.prototype;return o.parse=function(e){var t=this;function i(){var f=t.buffer,h=0;for(f=ff(f);h<f.length&&f[h]!=="\r"&&f[h]!==` `;)++h;var m=f.slice(0,h);return f[h]==="\r"&&++h,f[h]===` `&&++h,t.buffer=f.slice(h),m}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var a="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;var s=(a=i()).match(/^()?WEBVTT([ \t].*)?$/);if(s==null||!s[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}for(var d=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(d?d=!1:a=i(),t.state){case"HEADER":/:/.test(a)?hf(a,function(f,h){},/:/):a||(t.state="ID");continue;case"NOTE":a||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){t.state="NOTE";break}if(!a)continue;if(t.cue=new Fd(0,0,""),t.state="CUE",a.indexOf("-->")===-1){t.cue.id=a;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{Xk(a,t.cue,t.regionList)}catch{t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var u=a.indexOf("-->")!==-1;if(!a||u&&(d=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=` `),t.cue.text+=a;continue;case"BADCUE":a||(t.state="ID")}}}catch{t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},o.flush=function(){var e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=` `,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this},l}(),Jk=/\r\n|\n\r|\n|\r/g,zd=function(l,o,e){return e===void 0&&(e=0),l.slice(e,e+o.length)===o},Bd=function(l){for(var o=5381,e=l.length;e;)o=33*o^l.charCodeAt(--e);return(o>>>0).toString()};function Ud(l,o,e){return Bd(l.toString())+Bd(o.toString())+Bd(e)}function Zk(l,o,e,t,i,a,s){var d,u,f,h=new Qk,m=Xe(new Uint8Array(l)).trim().replace(Jk,` `).split(` `),w=[],x=o?(d=o.baseTime,(u=o.timescale)===void 0&&(u=1),Cd(d,Yh,1/u)):0,_="00:00.000",E=0,A=0,T=!0;h.oncue=function(L){var I=e[t],P=e.ccOffset,G=(E-x)/9e4;if(I!=null&&I.new&&(A!==void 0?P=e.ccOffset=I.start:function(X,ee,ae){var be=X[ee],Te=X[be.prevCC];if(!Te||!Te.new&&be.new)return X.ccOffset=X.presentationOffset=be.start,void(be.new=!1);for(;(Ie=Te)!=null&&Ie.new;){var Ie;X.ccOffset+=be.start-Te.start,be.new=!1,Te=X[(be=Te).prevCC]}X.presentationOffset=ae}(e,t,G)),G){if(!o)return void(f=new Error("Missing initPTS for VTT MPEGTS"));P=G-e.presentationOffset}var $=L.endTime-L.startTime,B=Ji(9e4*(L.startTime+P-A),9e4*i)/9e4;L.startTime=Math.max(B,0),L.endTime=Math.max(B+$,0);var J=L.text.trim();L.text=decodeURIComponent(encodeURIComponent(J)),L.id||(L.id=Ud(L.startTime,L.endTime,J)),L.endTime>0&&w.push(L)},h.onparsingerror=function(L){f=L},h.onflush=function(){f?s(f):a(w)},m.forEach(function(L){if(T){if(zd(L,"X-TIMESTAMP-MAP=")){T=!1,L.slice(16).split(",").forEach(function(I){zd(I,"LOCAL:")?_=I.slice(6):zd(I,"MPEGTS:")&&(E=parseInt(I.slice(7)))});try{A=function(I){var P=parseInt(I.slice(-3)),G=parseInt(I.slice(-6,-4)),$=parseInt(I.slice(-9,-7)),B=I.length>9?parseInt(I.substring(0,I.indexOf(":"))):0;if(!(te(P)&&te(G)&&te($)&&te(B)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+I);return P+=1e3*G,(P+=6e4*$)+36e5*B}(_)/1e3}catch(I){f=I}return}L===""&&(T=!1)}h.parse(L+` `)}),h.flush()}var Vd="stpp.ttml.im1t",gf=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,mf=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,e_={left:"start",center:"center",right:"end",start:"start",end:"end"};function vf(l,o,e,t){var i=et(new Uint8Array(l),["mdat"]);if(i.length!==0){var a,s,d,u,f=i.map(function(m){return Xe(m)}),h=(a=o.baseTime,s=1,(d=o.timescale)===void 0&&(d=1),u===void 0&&(u=!1),Cd(a,s,1/d,u));try{f.forEach(function(m){return e(function(w,x){var _=new DOMParser().parseFromString(w,"text/xml"),E=_.getElementsByTagName("tt")[0];if(!E)throw new Error("Invalid ttml");var A={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},T=Object.keys(A).reduce(function($,B){return $[B]=E.getAttribute("ttp:"+B)||A[B],$},{}),L=E.getAttribute("xml:space")!=="preserve",I=bf(jd(E,"styling","style")),P=bf(jd(E,"layout","region")),G=jd(E,"body","[begin]");return[].map.call(G,function($){var B=wf($,L);if(!B||!$.hasAttribute("begin"))return null;var J=$d($.getAttribute("begin"),T),X=$d($.getAttribute("dur"),T),ee=$d($.getAttribute("end"),T);if(J===null)throw xf($);if(ee===null){if(X===null)throw xf($);ee=J+X}var ae=new Fd(J-x,ee-x,B);ae.id=Ud(ae.startTime,ae.endTime,ae.text);var be=function(De,Ue,Ae){var Ne="http://www.w3.org/ns/ttml#styling",Ke=null,je=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],We=De!=null&&De.hasAttribute("style")?De.getAttribute("style"):null;return We&&Ae.hasOwnProperty(We)&&(Ke=Ae[We]),je.reduce(function(vt,$t){var At=Gd(Ue,Ne,$t)||Gd(De,Ne,$t)||Gd(Ke,Ne,$t);return At&&(vt[$t]=At),vt},{})}(P[$.getAttribute("region")],I[$.getAttribute("style")],I),Te=be.textAlign;if(Te){var Ie=e_[Te];Ie&&(ae.lineAlign=Ie),ae.align=Te}return R(ae,be),ae}).filter(function($){return $!==null})}(m,h))})}catch(m){t(m)}}else t(new Error("Could not parse IMSC1 mdat"))}function jd(l,o,e){var t=l.getElementsByTagName(o)[0];return t?[].slice.call(t.querySelectorAll(e)):[]}function bf(l){return l.reduce(function(o,e){var t=e.getAttribute("xml:id");return t&&(o[t]=e),o},{})}function wf(l,o){return[].slice.call(l.childNodes).reduce(function(e,t,i){var a;return t.nodeName==="br"&&i?e+` `:(a=t.childNodes)!=null&&a.length?wf(t,o):o?e+t.textContent.trim().replace(/\s+/g," "):e+t.textContent},"")}function Gd(l,o,e){return l&&l.hasAttributeNS(o,e)?l.getAttributeNS(o,e):null}function xf(l){return new Error("Could not parse ttml timestamp "+l)}function $d(l,o){if(!l)return null;var e=pf(l);return e===null&&(gf.test(l)?e=function(t,i){var a=gf.exec(t),s=(0|a[4])+(0|a[5])/i.subFrameRate;return 3600*(0|a[1])+60*(0|a[2])+(0|a[3])+s/i.frameRate}(l,o):mf.test(l)&&(e=function(t,i){var a=mf.exec(t),s=Number(a[1]);switch(a[2]){case"h":return 3600*s;case"m":return 60*s;case"ms":return 1e3*s;case"f":return s/i.frameRate;case"t":return s/i.tickRate}return s}(l,o))),e}var t_=function(){function l(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(y.FRAG_LOADING,this.onFragLoading,this),e.on(y.FRAG_LOADED,this.onFragLoaded,this),e.on(y.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(y.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(y.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(y.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(y.BUFFER_FLUSHING,this.onBufferFlushing,this)}var o=l.prototype;return o.destroy=function(){var e=this.hls;e.off(y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(y.FRAG_LOADING,this.onFragLoading,this),e.off(y.FRAG_LOADED,this.onFragLoaded,this),e.off(y.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(y.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(y.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(y.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(y.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0},o.initCea608Parsers=function(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){var e=new Ns(this,"textTrack1"),t=new Ns(this,"textTrack2"),i=new Ns(this,"textTrack3"),a=new Ns(this,"textTrack4");this.cea608Parser1=new cf(1,e,t),this.cea608Parser2=new cf(3,i,a)}},o.addCues=function(e,t,i,a,s){for(var d,u,f,h,m=!1,w=s.length;w--;){var x=s[w],_=(d=x[0],u=x[1],f=t,h=i,Math.min(u,h)-Math.max(d,f));if(_>=0&&(x[0]=Math.min(x[0],t),x[1]=Math.max(x[1],i),m=!0,_/(i-t)>.5))return}if(m||s.push([t,i]),this.config.renderTextTracksNatively){var E=this.captionsTracks[e];this.Cues.newCue(E,t,i,a)}else{var A=this.Cues.newCue(null,t,i,a);this.hls.trigger(y.CUES_PARSED,{type:"captions",cues:A,track:e})}},o.onInitPtsFound=function(e,t){var i=this,a=t.frag,s=t.id,d=t.initPTS,u=t.timescale,f=this.unparsedVttFrags;s==="main"&&(this.initPTS[a.cc]={baseTime:d,timescale:u}),f.length&&(this.unparsedVttFrags=[],f.forEach(function(h){i.onFragLoaded(y.FRAG_LOADED,h)}))},o.getExistingTrack=function(e,t){var i=this.media;if(i)for(var a=0;a<i.textTracks.length;a++){var s=i.textTracks[a];if(kf(s,{name:e,lang:t,attrs:{}}))return s}return null},o.createCaptionsTrack=function(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)},o.createNativeTrack=function(e){if(!this.captionsTracks[e]){var t=this.captionsProperties,i=this.captionsTracks,a=this.media,s=t[e],d=s.label,u=s.languageCode,f=this.getExistingTrack(d,u);if(f)i[e]=f,so(i[e]),lh(i[e],a);else{var h=this.createTextTrack("captions",d,u);h&&(h[e]=!0,i[e]=h)}}},o.createNonNativeTrack=function(e){if(!this.nonNativeCaptionsTracks[e]){var t=this.captionsProperties[e];if(t){var i={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=i,this.hls.trigger(y.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[i]})}}},o.createTextTrack=function(e,t,i){var a=this.media;if(a)return a.addTextTrack(e,t,i)},o.onMediaAttaching=function(e,t){this.media=t.media,this._cleanTracks()},o.onMediaDetaching=function(){var e=this.captionsTracks;Object.keys(e).forEach(function(t){so(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}},o.onManifestLoading=function(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},o._cleanTracks=function(){var e=this.media;if(e){var t=e.textTracks;if(t)for(var i=0;i<t.length;i++)so(t[i])}},o.onSubtitleTracksUpdated=function(e,t){var i=this,a=t.subtitleTracks||[],s=a.some(function(m){return m.textCodec===Vd});if(this.config.enableWebVTT||s&&this.config.enableIMSC1){if(rf(this.tracks,a))return void(this.tracks=a);if(this.textTracks=[],this.tracks=a,this.config.renderTextTracksNatively){var d=this.media,u=d?ys(d.textTracks):null;if(this.tracks.forEach(function(m,w){var x;if(u){for(var _=null,E=0;E<u.length;E++)if(u[E]&&kf(u[E],m)){_=u[E],u[E]=null;break}_&&(x=_)}if(x)so(x);else{var A=yf(m);(x=i.createTextTrack(A,m.name,m.lang))&&(x.mode="disabled")}x&&i.textTracks.push(x)}),u!=null&&u.length){var f=u.filter(function(m){return m!==null}).map(function(m){return m.label});f.length&&j.warn("Media element contains unused subtitle tracks: "+f.join(", ")+". Replace media element for each source to clear TextTracks and captions menu.")}}else if(this.tracks.length){var h=this.tracks.map(function(m){return{label:m.name,kind:m.type.toLowerCase(),default:m.default,subtitleTrack:m}});this.hls.trigger(y.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:h})}}},o.onManifestLoaded=function(e,t){var i=this;this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(function(a){var s=/(?:CC|SERVICE)([1-4])/.exec(a.instreamId);if(s){var d="textTrack"+s[1],u=i.captionsProperties[d];u&&(u.label=a.name,a.lang&&(u.languageCode=a.lang),u.media=a)}})},o.closedCaptionsForLevel=function(e){var t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]},o.onFragLoading=function(e,t){this.initCea608Parsers();var i=this.cea608Parser1,a=this.cea608Parser2,s=this.lastCc,d=this.lastSn,u=this.lastPartIndex;if(this.enabled&&i&&a&&t.frag.type===Lt){var f,h,m=t.frag,w=m.cc,x=m.sn,_=(f=t==null||(h=t.part)==null?void 0:h.index)!=null?f:-1;x===d+1||x===d&&_===u+1||w===s||(i.reset(),a.reset()),this.lastCc=w,this.lastSn=x,this.lastPartIndex=_}},o.onFragLoaded=function(e,t){var i=t.frag,a=t.payload;if(i.type===Br)if(a.byteLength){var s=i.decryptdata,d="stats"in t;if(s==null||!s.encrypted||d){var u=this.tracks[i.level],f=this.vttCCs;f[i.cc]||(f[i.cc]={start:i.start,prevCC:this.prevCC,new:!0},this.prevCC=i.cc),u&&u.textCodec===Vd?this._parseIMSC1(i,a):this._parseVTTs(t)}}else this.hls.trigger(y.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i,error:new Error("Empty subtitle payload")})},o._parseIMSC1=function(e,t){var i=this,a=this.hls;vf(t,this.initPTS[e.cc],function(s){i._appendCues(s,e.level),a.trigger(y.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},function(s){j.log("Failed to parse IMSC1: "+s),a.trigger(y.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:s})})},o._parseVTTs=function(e){var t,i=this,a=e.frag,s=e.payload,d=this.initPTS,u=this.unparsedVttFrags,f=d.length-1;if(d[a.cc]||f!==-1){var h=this.hls;Zk((t=a.initSegment)!=null&&t.data?Ii(a.initSegment.data,new Uint8Array(s)):s,this.initPTS[a.cc],this.vttCCs,a.cc,a.start,function(m){i._appendCues(m,a.level),h.trigger(y.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:a})},function(m){var w=m.message==="Missing initPTS for VTT MPEGTS";w?u.push(e):i._fallbackToIMSC1(a,s),j.log("Failed to parse VTT cue: "+m),w&&f>a.cc||h.trigger(y.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:a,error:m})})}else u.push(e)},o._fallbackToIMSC1=function(e,t){var i=this,a=this.tracks[e.level];a.textCodec||vf(t,this.initPTS[e.cc],function(){a.textCodec=Vd,i._parseIMSC1(e,t)},function(){a.textCodec="wvtt"})},o._appendCues=function(e,t){var i=this.hls;if(this.config.renderTextTracksNatively){var a=this.textTracks[t];if(!a||a.mode==="disabled")return;e.forEach(function(u){return dh(a,u)})}else{var s=this.tracks[t];if(!s)return;var d=s.default?"default":"subtitles"+t;i.trigger(y.CUES_PARSED,{type:"subtitles",cues:e,track:d})}},o.onFragDecrypted=function(e,t){t.frag.type===Br&&this.onFragLoaded(y.FRAG_LOADED,t)},o.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},o.onFragParsingUserdata=function(e,t){this.initCea608Parsers();var i=this.cea608Parser1,a=this.cea608Parser2;if(this.enabled&&i&&a){var s=t.frag,d=t.samples;if(s.type!==Lt||this.closedCaptionsForLevel(s)!=="NONE")for(var u=0;u<d.length;u++){var f=d[u].bytes;if(f){var h=this.extractCea608Data(f);i.addData(d[u].pts,h[0]),a.addData(d[u].pts,h[1])}}}},o.onBufferFlushing=function(e,t){var i=t.startOffset,a=t.endOffset,s=t.endOffsetSubtitles,d=t.type,u=this.media;if(u&&!(u.currentTime<a)){if(!d||d==="video"){var f=this.captionsTracks;Object.keys(f).forEach(function(m){return dd(f[m],i,a)})}if(this.config.renderTextTracksNatively&&i===0&&s!==void 0){var h=this.textTracks;Object.keys(h).forEach(function(m){return dd(h[m],i,s)})}}},o.extractCea608Data=function(e){for(var t=[[],[]],i=31&e[0],a=2,s=0;s<i;s++){var d=e[a++],u=127&e[a++],f=127&e[a++];if((u!==0||f!==0)&&(4&d)!=0){var h=3&d;h!==0&&h!==1||(t[h].push(u),t[h].push(f))}}return t},l}();function yf(l){return l.characteristics&&/transcribes-spoken-dialog/gi.test(l.characteristics)&&/describes-music-and-sound/gi.test(l.characteristics)?"captions":"subtitles"}function kf(l,o){return!!l&&l.kind===yf(o)&&Od(o,l)}var i_=function(){function l(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var o=l.prototype;return o.setStreamController=function(e){this.streamController=e},o.destroy=function(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},o.registerListeners=function(){var e=this.hls;e.on(y.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(y.BUFFER_CODECS,this.onBufferCodecs,this),e.on(y.MEDIA_DETACHING,this.onMediaDetaching,this)},o.unregisterListener=function(){var e=this.hls;e.off(y.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(y.BUFFER_CODECS,this.onBufferCodecs,this),e.off(y.MEDIA_DETACHING,this.onMediaDetaching,this)},o.onFpsDropLevelCapping=function(e,t){var i=this.hls.levels[t.droppedLevel];this.isLevelAllowed(i)&&this.restrictedLevels.push({bitrate:i.bitrate,height:i.height,width:i.width})},o.onMediaAttaching=function(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()},o.onManifestParsed=function(e,t){var i=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,i.config.capLevelToPlayerSize&&t.video&&this.startCapping()},o.onLevelsUpdated=function(e,t){this.timer&&te(this.autoLevelCapping)&&this.detectPlayerSize()},o.onBufferCodecs=function(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()},o.onMediaDetaching=function(){this.stopCapping()},o.detectPlayerSize=function(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);var e=this.hls.levels;if(e.length){var t=this.hls,i=this.getMaxLevel(e.length-1);i!==this.autoLevelCapping&&j.log("Setting autoLevelCapping to "+i+": "+e[i].height+"p@"+e[i].bitrate+" for media "+this.mediaWidth+"x"+this.mediaHeight),t.autoLevelCapping=i,t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}},o.getMaxLevel=function(e){var t=this,i=this.hls.levels;if(!i.length)return-1;var a=i.filter(function(s,d){return t.isLevelAllowed(s)&&d<=e});return this.clientRect=null,l.getMaxLevelByMediaSize(a,this.mediaWidth,this.mediaHeight)},o.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},o.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},o.getDimensions=function(){if(this.clientRect)return this.clientRect;var e=this.media,t={width:0,height:0};if(e){var i=e.getBoundingClientRect();t.width=i.width,t.height=i.height,t.width||t.height||(t.width=i.right-i.left||e.width||0,t.height=i.bottom-i.top||e.height||0)}return this.clientRect=t,t},o.isLevelAllowed=function(e){return!this.restrictedLevels.some(function(t){return e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height})},l.getMaxLevelByMediaSize=function(e,t,i){if(e==null||!e.length)return-1;for(var a,s,d=e.length-1,u=Math.max(t,i),f=0;f<e.length;f+=1){var h=e[f];if((h.width>=u||h.height>=u)&&(a=h,!(s=e[f+1])||a.width!==s.width||a.height!==s.height)){d=f;break}}return d},C(l,[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch{}return e}}]),l}(),r_=function(){function l(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}var o=l.prototype;return o.setStreamController=function(e){this.streamController=e},o.registerListeners=function(){this.hls.on(y.MEDIA_ATTACHING,this.onMediaAttaching,this)},o.unregisterListeners=function(){this.hls.off(y.MEDIA_ATTACHING,this.onMediaAttaching,this)},o.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},o.onMediaAttaching=function(e,t){var i=this.hls.config;if(i.capLevelOnFPSDrop){var a=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=a,a&&typeof a.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),i.fpsDroppedMonitoringPeriod)}},o.checkFPS=function(e,t,i){var a=performance.now();if(t){if(this.lastTime){var s=a-this.lastTime,d=i-this.lastDroppedFrames,u=t-this.lastDecodedFrames,f=1e3*d/s,h=this.hls;if(h.trigger(y.FPS_DROP,{currentDropped:d,currentDecoded:u,totalDroppedFrames:i}),f>0&&d>h.config.fpsDroppedMonitoringThreshold*u){var m=h.currentLevel;j.warn("drop FPS ratio greater than max allowed value for currentLevel: "+m),m>0&&(h.autoLevelCapping===-1||h.autoLevelCapping>=m)&&(m-=1,h.trigger(y.FPS_DROP_LEVEL_CAPPING,{level:m,droppedLevel:h.currentLevel}),h.autoLevelCapping=m,this.streamController.nextLevelSwitch())}}this.lastTime=a,this.lastDroppedFrames=i,this.lastDecodedFrames=t}},o.checkFPSInterval=function(){var e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){var t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)},l}(),Bs="[eme]",_f=function(){function l(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=l.CDMCleanupPromise?[l.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=j.debug.bind(j,Bs),this.log=j.log.bind(j,Bs),this.warn=j.warn.bind(j,Bs),this.error=j.error.bind(j,Bs),this.hls=e,this.config=e.config,this.registerListeners()}var o=l.prototype;return o.destroy=function(){this.unregisterListeners(),this.onMediaDetached();var e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null},o.registerListeners=function(){this.hls.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(y.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(y.MANIFEST_LOADED,this.onManifestLoaded,this)},o.unregisterListeners=function(){this.hls.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(y.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(y.MANIFEST_LOADED,this.onManifestLoaded,this)},o.getLicenseServerUrl=function(e){var t=this.config,i=t.drmSystems,a=t.widevineLicenseUrl,s=i[e];if(s)return s.licenseUrl;if(e===N.WIDEVINE&&a)return a;throw new Error('no license server URL configured for key-system "'+e+'"')},o.getServerCertificateUrl=function(e){var t=this.config.drmSystems[e];if(t)return t.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'+e+'"]')},o.attemptKeySystemAccess=function(e){var t=this,i=this.hls.levels,a=function(u,f,h){return!!u&&h.indexOf(u)===f},s=i.map(function(u){return u.audioCodec}).filter(a),d=i.map(function(u){return u.videoCodec}).filter(a);return s.length+d.length===0&&d.push("avc1.42e01e"),new Promise(function(u,f){(function h(m){var w=m.shift();t.getMediaKeysPromise(w,s,d).then(function(x){return u({keySystem:w,mediaKeys:x})}).catch(function(x){m.length?h(m):f(x instanceof Zi?x:new Zi({type:re.KEY_SYSTEM_ERROR,details:z.KEY_SYSTEM_NO_ACCESS,error:x,fatal:!0},x.message))})})(e)})},o.requestMediaKeySystemAccess=function(e,t){var i=this.config.requestMediaKeySystemAccessFunc;if(typeof i!="function"){var a="Configured requestMediaKeySystemAccess is not a function "+i;return Be===null&&self.location.protocol==="http:"&&(a="navigator.requestMediaKeySystemAccess is not available over insecure protocol "+location.protocol),Promise.reject(new Error(a))}return i(e,t)},o.getMediaKeysPromise=function(e,t,i){var a=this,s=function(h,m,w,x){var _;switch(h){case N.FAIRPLAY:_=["cenc","sinf"];break;case N.WIDEVINE:case N.PLAYREADY:_=["cenc"];break;case N.CLEARKEY:_=["cenc","keyids"];break;default:throw new Error("Unknown key-system: "+h)}return function(E,A,T,L){return[{initDataTypes:E,persistentState:L.persistentState||"optional",distinctiveIdentifier:L.distinctiveIdentifier||"optional",sessionTypes:L.sessionTypes||[L.sessionType||"temporary"],audioCapabilities:A.map(function(I){return{contentType:'audio/mp4; codecs="'+I+'"',robustness:L.audioRobustness||"",encryptionScheme:L.audioEncryptionScheme||null}}),videoCapabilities:T.map(function(I){return{contentType:'video/mp4; codecs="'+I+'"',robustness:L.videoRobustness||"",encryptionScheme:L.videoEncryptionScheme||null}})}]}(_,m,w,x)}(e,t,i,this.config.drmSystemOptions),d=this.keySystemAccessPromises[e],u=d==null?void 0:d.keySystemAccess;if(!u){this.log('Requesting encrypted media "'+e+'" key-system access with config: '+JSON.stringify(s)),u=this.requestMediaKeySystemAccess(e,s);var f=this.keySystemAccessPromises[e]={keySystemAccess:u};return u.catch(function(h){a.log('Failed to obtain access to key-system "'+e+'": '+h)}),u.then(function(h){a.log('Access for key-system "'+h.keySystem+'" obtained');var m=a.fetchServerCertificate(e);return a.log('Create media-keys for "'+e+'"'),f.mediaKeys=h.createMediaKeys().then(function(w){return a.log('Media-keys created for "'+e+'"'),m.then(function(x){return x?a.setMediaKeysServerCertificate(w,e,x):w})}),f.mediaKeys.catch(function(w){a.error('Failed to create media-keys for "'+e+'"}: '+w)}),f.mediaKeys})}return u.then(function(){return d.mediaKeys})},o.createMediaKeySessionContext=function(e){var t=e.decryptdata,i=e.keySystem,a=e.mediaKeys;this.log('Creating key-system session "'+i+'" keyId: '+lt(t.keyId||[]));var s=a.createSession(),d={decryptdata:t,keySystem:i,mediaKeys:a,mediaKeysSession:s,keyStatus:"status-pending"};return this.mediaKeySessions.push(d),d},o.renewKeySession=function(e){var t=e.decryptdata;if(t.pssh){var i=this.createMediaKeySessionContext(e),a=this.getKeyIdString(t);this.keyIdToKeySessionPromise[a]=this.generateRequestWithPreferredKeySession(i,"cenc",t.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)},o.getKeyIdString=function(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return lt(e.keyId)},o.updateKeySession=function(e,t){var i,a=e.mediaKeysSession;return this.log('Updating key-session "'+a.sessionId+'" for keyID '+lt(((i=e.decryptdata)==null?void 0:i.keyId)||[])+` } (data length: `+(t&&t.byteLength)+")"),a.update(t)},o.selectKeySystemFormat=function(e){var t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: "+e.sn+" "+e.type+": "+e.level+") key formats "+t.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise},o.getKeyFormatPromise=function(e){var t=this;return new Promise(function(i,a){var s=me(t.config),d=e.map(Ee).filter(function(u){return!!u&&s.indexOf(u)!==-1});return t.getKeySystemSelectionPromise(d).then(function(u){var f=u.keySystem,h=ke(f);h?i(h):a(new Error('Unable to find format for key-system "'+f+'"'))}).catch(a)})},o.loadKey=function(e){var t=this,i=e.keyInfo.decryptdata,a=this.getKeyIdString(i),s="(keyId: "+a+' format: "'+i.keyFormat+'" method: '+i.method+" uri: "+i.uri+")";this.log("Starting session for key "+s);var d=this.keyIdToKeySessionPromise[a];return d||(d=this.keyIdToKeySessionPromise[a]=this.getKeySystemForKeyPromise(i).then(function(u){var f=u.keySystem,h=u.mediaKeys;return t.throwIfDestroyed(),t.log("Handle encrypted media sn: "+e.frag.sn+" "+e.frag.type+": "+e.frag.level+" using key "+s),t.attemptSetMediaKeys(f,h).then(function(){t.throwIfDestroyed();var m=t.createMediaKeySessionContext({keySystem:f,mediaKeys:h,decryptdata:i});return t.generateRequestWithPreferredKeySession(m,"cenc",i.pssh,"playlist-key")})})).catch(function(u){return t.handleError(u)}),d},o.throwIfDestroyed=function(e){if(!this.hls)throw new Error("invalid state")},o.handleError=function(e){this.hls&&(this.error(e.message),e instanceof Zi?this.hls.trigger(y.ERROR,e.data):this.hls.trigger(y.ERROR,{type:re.KEY_SYSTEM_ERROR,details:z.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))},o.getKeySystemForKeyPromise=function(e){var t=this.getKeyIdString(e),i=this.keyIdToKeySessionPromise[t];if(!i){var a=Ee(e.keyFormat),s=a?[a]:me(this.config);return this.attemptKeySystemAccess(s)}return i},o.getKeySystemSelectionPromise=function(e){if(e.length||(e=me(this.config)),e.length===0)throw new Zi({type:re.KEY_SYSTEM_ERROR,details:z.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options "+JSON.stringify({drmSystems:this.config.drmSystems}));return this.attemptKeySystemAccess(e)},o._onMediaEncrypted=function(e){var t=this,i=e.initDataType,a=e.initData;if(this.debug('"'+e.type+'" event: init data type: "'+i+'"'),a!==null){var s,d;if(i==="sinf"&&this.config.drmSystems[N.FAIRPLAY]){var u=Vt(new Uint8Array(a));try{var f=Ze(JSON.parse(u).sinf),h=sn(new Uint8Array(f));if(!h)return;s=h.subarray(8,24),d=N.FAIRPLAY}catch{return void this.warn('Failed to parse sinf "encrypted" event message initData')}}else{var m=function(I){if(!(I instanceof ArrayBuffer)||I.byteLength<32)return null;var P={version:0,systemId:"",kids:null,data:null},G=new DataView(I),$=G.getUint32(0);if(I.byteLength!==$&&$>44||G.getUint32(4)!==1886614376||(P.version=G.getUint32(8)>>>24,P.version>1))return null;P.systemId=lt(new Uint8Array(I,12,16));var B=G.getUint32(28);if(P.version===0){if($-32<B)return null;P.data=new Uint8Array(I,32,B)}else if(P.version===1){P.kids=[];for(var J=0;J<B;J++)P.kids.push(new Uint8Array(I,32+16*J,16))}return P}(a);if(m===null)return;m.version===0&&m.systemId===fe&&m.data&&(s=m.data.subarray(8,24)),d=function(I){if(I===fe)return N.WIDEVINE}(m.systemId)}if(d&&s){for(var w,x=lt(s),_=this.keyIdToKeySessionPromise,E=this.mediaKeySessions,A=_[x],T=function(){var I=E[L],P=I.decryptdata;if(P.pssh||!P.keyId)return 0;var G=lt(P.keyId);return x===G||P.uri.replace(/-/g,"").indexOf(x)!==-1?(A=_[G],delete _[G],P.pssh=new Uint8Array(a),P.keyId=s,A=_[x]=A.then(function(){return t.generateRequestWithPreferredKeySession(I,i,a,"encrypted-event-key-match")}),1):void 0},L=0;L<E.length&&((w=T())===0||w!==1);L++);A||(A=_[x]=this.getKeySystemSelectionPromise([d]).then(function(I){var P,G=I.keySystem,$=I.mediaKeys;t.throwIfDestroyed();var B=new zr("ISO-23001-7",x,(P=ke(G))!=null?P:"");return B.pssh=new Uint8Array(a),B.keyId=s,t.attemptSetMediaKeys(G,$).then(function(){t.throwIfDestroyed();var J=t.createMediaKeySessionContext({decryptdata:B,keySystem:G,mediaKeys:$});return t.generateRequestWithPreferredKeySession(J,i,a,"encrypted-event-no-match")})})),A.catch(function(I){return t.handleError(I)})}}},o._onWaitingForKey=function(e){this.log('"'+e.type+'" event')},o.attemptSetMediaKeys=function(e,t){var i=this,a=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'+e+'"');var s=Promise.all(a).then(function(){if(!i.media)throw new Error("Attempted to set mediaKeys without media element attached");return i.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(s),s.then(function(){i.log('Media-keys set for "'+e+'"'),a.push(s),i.setMediaKeysQueue=i.setMediaKeysQueue.filter(function(d){return a.indexOf(d)===-1})})},o.generateRequestWithPreferredKeySession=function(e,t,i,a){var s,d,u=this,f=(s=this.config.drmSystems)==null||(d=s[e.keySystem])==null?void 0:d.generateRequest;if(f)try{var h=f.call(this.hls,t,i,e);if(!h)throw new Error("Invalid response from configured generateRequest filter");t=h.initDataType,i=e.decryptdata.pssh=h.initData?new Uint8Array(h.initData):null}catch(T){var m;if(this.warn(T.message),(m=this.hls)!=null&&m.config.debug)throw T}if(i===null)return this.log('Skipping key-session request for "'+a+'" (no initData)'),Promise.resolve(e);var w=this.getKeyIdString(e.decryptdata);this.log('Generating key-session request for "'+a+'": '+w+" (init data type: "+t+" length: "+(i?i.byteLength:null)+")");var x=new Fs,_=e._onmessage=function(T){var L=e.mediaKeysSession;if(L){var I=T.messageType,P=T.message;u.log('"'+I+'" message event for session "'+L.sessionId+'" message size: '+P.byteLength),I==="license-request"||I==="license-renewal"?u.renewLicense(e,P).catch(function(G){u.handleError(G),x.emit("error",G)}):I==="license-release"?e.keySystem===N.FAIRPLAY&&(u.updateKeySession(e,It("acknowledged")),u.removeSession(e)):u.warn('unhandled media key message type "'+I+'"')}else x.emit("error",new Error("invalid state"))},E=e._onkeystatuseschange=function(T){if(e.mediaKeysSession){u.onKeyStatusChange(e);var L=e.keyStatus;x.emit("keyStatus",L),L==="expired"&&(u.warn(e.keySystem+" expired for key "+w),u.renewKeySession(e))}else x.emit("error",new Error("invalid state"))};e.mediaKeysSession.addEventListener("message",_),e.mediaKeysSession.addEventListener("keystatuseschange",E);var A=new Promise(function(T,L){x.on("error",L),x.on("keyStatus",function(I){I.startsWith("usable")?T():I==="output-restricted"?L(new Zi({type:re.KEY_SYSTEM_ERROR,details:z.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):I==="internal-error"?L(new Zi({type:re.KEY_SYSTEM_ERROR,details:z.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'+I+'"')):I==="expired"?L(new Error("key expired while generating request")):u.warn('unhandled key status change "'+I+'"')})});return e.mediaKeysSession.generateRequest(t,i).then(function(){var T;u.log('Request generated for key-session "'+((T=e.mediaKeysSession)==null?void 0:T.sessionId)+'" keyId: '+w)}).catch(function(T){throw new Zi({type:re.KEY_SYSTEM_ERROR,details:z.KEY_SYSTEM_NO_SESSION,error:T,fatal:!1},"Error generating key-session request: "+T)}).then(function(){return A}).catch(function(T){throw x.removeAllListeners(),u.removeSession(e),T}).then(function(){return x.removeAllListeners(),e})},o.onKeyStatusChange=function(e){var t=this;e.mediaKeysSession.keyStatuses.forEach(function(i,a){t.log('key status change "'+i+'" for keyStatuses keyId: '+lt("buffer"in a?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(a))+" session keyId: "+lt(new Uint8Array(e.decryptdata.keyId||[]))+" uri: "+e.decryptdata.uri),e.keyStatus=i})},o.fetchServerCertificate=function(e){var t=this.config,i=new t.loader(t),a=this.getServerCertificateUrl(e);return a?(this.log('Fetching server certificate for "'+e+'"'),new Promise(function(s,d){var u={responseType:"arraybuffer",url:a},f=t.certLoadPolicy.default,h={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},m={onSuccess:function(w,x,_,E){s(w.data)},onError:function(w,x,_,E){d(new Zi({type:re.KEY_SYSTEM_ERROR,details:z.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:_,response:b({url:u.url,data:void 0},w)},'"'+e+'" certificate request failed ('+a+"). Status: "+w.code+" ("+w.text+")"))},onTimeout:function(w,x,_){d(new Zi({type:re.KEY_SYSTEM_ERROR,details:z.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:_,response:{url:u.url,data:void 0}},'"'+e+'" certificate request timed out ('+a+")"))},onAbort:function(w,x,_){d(new Error("aborted"))}};i.load(u,h,m)})):Promise.resolve()},o.setMediaKeysServerCertificate=function(e,t,i){var a=this;return new Promise(function(s,d){e.setServerCertificate(i).then(function(u){a.log("setServerCertificate "+(u?"success":"not supported by CDM")+" ("+(i==null?void 0:i.byteLength)+') on "'+t+'"'),s(e)}).catch(function(u){d(new Zi({type:re.KEY_SYSTEM_ERROR,details:z.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:u,fatal:!0},u.message))})})},o.renewLicense=function(e,t){var i=this;return this.requestLicense(e,new Uint8Array(t)).then(function(a){return i.updateKeySession(e,new Uint8Array(a)).catch(function(s){throw new Zi({type:re.KEY_SYSTEM_ERROR,details:z.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:s,fatal:!0},s.message)})})},o.unpackPlayReadyKeyMessage=function(e,t){var i=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!i.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;var a=new DOMParser().parseFromString(i,"application/xml"),s=a.querySelectorAll("HttpHeader");if(s.length>0)for(var d,u=0,f=s.length;u<f;u++){var h,m,w=(h=(d=s[u]).querySelector("name"))==null?void 0:h.textContent,x=(m=d.querySelector("value"))==null?void 0:m.textContent;w&&x&&e.setRequestHeader(w,x)}var _=a.querySelector("Challenge"),E=_==null?void 0:_.textContent;if(!E)throw new Error("Cannot find <Challenge> in key message");return It(atob(E))},o.setupLicenseXHR=function(e,t,i,a){var s=this,d=this.config.licenseXhrSetup;return d?Promise.resolve().then(function(){if(!i.decryptdata)throw new Error("Key removed");return d.call(s.hls,e,t,i,a)}).catch(function(u){if(!i.decryptdata)throw u;return e.open("POST",t,!0),d.call(s.hls,e,t,i,a)}).then(function(u){return e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:u||a}}):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:a}))},o.requestLicense=function(e,t){var i=this,a=this.config.keyLoadPolicy.default;return new Promise(function(s,d){var u=i.getLicenseServerUrl(e.keySystem);i.log("Sending license request to URL: "+u);var f=new XMLHttpRequest;f.responseType="arraybuffer",f.onreadystatechange=function(){if(!i.hls||!e.mediaKeysSession)return d(new Error("invalid state"));if(f.readyState===4)if(f.status===200){i._requestLicenseFailureCount=0;var h=f.response;i.log("License received "+(h instanceof ArrayBuffer?h.byteLength:h));var m=i.config.licenseResponseCallback;if(m)try{h=m.call(i.hls,f,u,e)}catch(E){i.error(E)}s(h)}else{var w=a.errorRetry,x=w?w.maxNumRetry:0;if(i._requestLicenseFailureCount++,i._requestLicenseFailureCount>x||f.status>=400&&f.status<500)d(new Zi({type:re.KEY_SYSTEM_ERROR,details:z.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:f,response:{url:u,data:void 0,code:f.status,text:f.statusText}},"License Request XHR failed ("+u+"). Status: "+f.status+" ("+f.statusText+")"));else{var _=x-i._requestLicenseFailureCount+1;i.warn("Retrying license request, "+_+" attempts left"),i.requestLicense(e,t).then(s,d)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=f,i.setupLicenseXHR(f,u,e,t).then(function(h){var m=h.xhr,w=h.licenseChallenge;e.keySystem==N.PLAYREADY&&(w=i.unpackPlayReadyKeyMessage(m,w)),m.send(w)})})},o.onMediaAttached=function(e,t){if(this.config.emeEnabled){var i=t.media;this.media=i,i.addEventListener("encrypted",this.onMediaEncrypted),i.addEventListener("waitingforkey",this.onWaitingForKey)}},o.onMediaDetached=function(){var e=this,t=this.media,i=this.mediaKeySessions;t&&(t.removeEventListener("encrypted",this.onMediaEncrypted),t.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},zr.clearKeyUriToKeyIdMap();var a=i.length;l.CDMCleanupPromise=Promise.all(i.map(function(s){return e.removeSession(s)}).concat(t==null?void 0:t.setMediaKeys(null).catch(function(s){e.log("Could not clear media keys: "+s)}))).then(function(){a&&(e.log("finished closing key sessions and clearing media keys"),i.length=0)}).catch(function(s){e.log("Could not close sessions and clear media keys: "+s)})},o.onManifestLoading=function(){this.keyFormatPromise=null},o.onManifestLoaded=function(e,t){var i=t.sessionKeys;if(i&&this.config.emeEnabled&&!this.keyFormatPromise){var a=i.reduce(function(s,d){return s.indexOf(d.keyFormat)===-1&&s.push(d.keyFormat),s},[]);this.log("Selecting key-system from session-keys "+a.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(a)}},o.removeSession=function(e){var t=this,i=e.mediaKeysSession,a=e.licenseXhr;if(i){this.log("Remove licenses and keys and close session "+i.sessionId),e._onmessage&&(i.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(i.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),a&&a.readyState!==XMLHttpRequest.DONE&&a.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;var s=this.mediaKeySessions.indexOf(e);return s>-1&&this.mediaKeySessions.splice(s,1),i.remove().catch(function(d){t.log("Could not remove session: "+d)}).then(function(){return i.close()}).catch(function(d){t.log("Could not close session: "+d)})}},l}();_f.CDMCleanupPromise=void 0;var _i,Hd,Fa,xn,Zi=function(l){function o(e,t){var i;return(i=l.call(this,t)||this).data=void 0,e.error||(e.error=new Error(t)),i.data=e,e.err=e.error,i}return D(o,l),o}(Y(Error));(function(l){l.MANIFEST="m",l.AUDIO="a",l.VIDEO="v",l.MUXED="av",l.INIT="i",l.CAPTION="c",l.TIMED_TEXT="tt",l.KEY="k",l.OTHER="o"})(_i||(_i={})),function(l){l.DASH="d",l.HLS="h",l.SMOOTH="s",l.OTHER="o"}(Hd||(Hd={})),function(l){l.OBJECT="CMCD-Object",l.REQUEST="CMCD-Request",l.SESSION="CMCD-Session",l.STATUS="CMCD-Status"}(Fa||(Fa={}));var a_=((xn={})[Fa.OBJECT]=["br","d","ot","tb"],xn[Fa.REQUEST]=["bl","dl","mtp","nor","nrr","su"],xn[Fa.SESSION]=["cid","pr","sf","sid","st","v"],xn[Fa.STATUS]=["bs","rtp"],xn),Kd=function l(o,e){this.value=void 0,this.params=void 0,Array.isArray(o)&&(o=o.map(function(t){return t instanceof l?t:new l(t)})),this.value=o,this.params=e},Tf=function(l){this.description=void 0,this.description=l},o_="Dict";function n_(l,o,e,t){return new Error("failed to "+l+' "'+(i=o,(Array.isArray(i)?JSON.stringify(i):i instanceof Map?"Map{}":i instanceof Set?"Set{}":typeof i=="object"?JSON.stringify(i):String(i))+'" as ')+e,{cause:t});var i}var Ef="Bare Item",s_="Boolean",l_="Byte Sequence",d_="Decimal",c_="Integer",u_=/[\x00-\x1f\x7f]+/,p_="Token",h_="Key";function kr(l,o,e){return n_("serialize",l,o,e)}function f_(l){if(ArrayBuffer.isView(l)===!1)throw kr(l,l_);return":"+(o=l,btoa(String.fromCharCode.apply(String,o))+":");var o}function Sf(l){if(function(o){return o<-999999999999999||999999999999999<o}(l))throw kr(l,c_);return l.toString()}function Lf(l,o){if(l<0)return-Lf(-l,o);var e=Math.pow(10,o);if(Math.abs(l*e%1-.5)<Number.EPSILON){var t=Math.floor(l*e);return(t%2==0?t:t+1)/e}return Math.round(l*e)/e}function g_(l){var o=Lf(l,3);if(Math.floor(Math.abs(o)).toString().length>12)throw kr(l,d_);var e=o.toString();return e.includes(".")?e:e+".0"}var m_="String";function Af(l){var o,e=(o=l).description||o.toString().slice(7,-1);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw kr(e,p_);return e}function Yd(l){switch(typeof l){case"number":if(!te(l))throw kr(l,Ef);return Number.isInteger(l)?Sf(l):g_(l);case"string":return function(o){if(u_.test(o))throw kr(o,m_);return'"'+o.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}(l);case"symbol":return Af(l);case"boolean":return function(o){if(typeof o!="boolean")throw kr(o,s_);return o?"?1":"?0"}(l);case"object":if(l instanceof Date)return function(o){return"@"+Sf(o.getTime()/1e3)}(l);if(l instanceof Uint8Array)return f_(l);if(l instanceof Tf)return Af(l);default:throw kr(l,Ef)}}function Wd(l){if(/^[a-z*][a-z0-9\-_.*]*$/.test(l)===!1)throw kr(l,h_);return l}function qd(l){return l==null?"":Object.entries(l).map(function(o){var e=o[0],t=o[1];return t===!0?";"+Wd(e):";"+Wd(e)+"="+Yd(t)}).join("")}function Cf(l){return l instanceof Kd?""+Yd(l.value)+qd(l.params):Yd(l)}function v_(l,o){var e;if(o===void 0&&(o={whitespace:!0}),typeof l!="object")throw kr(l,o_);var t=l instanceof Map?l.entries():Object.entries(l),i=(e=o)!=null&&e.whitespace?" ":"";return Array.from(t).map(function(a){var s=a[0],d=a[1];d instanceof Kd==0&&(d=new Kd(d));var u,f=Wd(s);return d.value===!0?f+=qd(d.params):(f+="=",Array.isArray(d.value)?f+="("+(u=d).value.map(Cf).join(" ")+")"+qd(u.params):f+=Cf(d)),f}).join(","+i)}var b_=function(l){return l==="ot"||l==="sf"||l==="st"},w_=function(l){return typeof l=="number"?te(l):l!=null&&l!==""&&l!==!1},Us=function(l){return Math.round(l)},Vs=function(l){return 100*Us(l/100)},x_={br:Us,d:Us,bl:Vs,dl:Vs,mtp:Vs,nor:function(l,o){return o!=null&&o.baseUrl&&(l=function(e,t){var i=new URL(e),a=new URL(t);if(i.origin!==a.origin)return e;for(var s=i.pathname.split("/").slice(1),d=a.pathname.split("/").slice(1,-1);s[0]===d[0];)s.shift(),d.shift();for(;d.length;)d.shift(),s.unshift("..");return s.join("/")}(l,o.baseUrl)),encodeURIComponent(l)},rtp:Vs,tb:Us};function Rf(l,o){return o===void 0&&(o={}),l?function(e,t){return v_(e,t)}(function(e,t){var i={};if(e==null||typeof e!="object")return i;var a=Object.keys(e).sort(),s=R({},x_,t==null?void 0:t.formatters),d=t==null?void 0:t.filter;return a.forEach(function(u){if(d==null||!d(u)){var f=e[u],h=s[u];h&&(f=h(f,t)),u==="v"&&f===1||u=="pr"&&f===1||w_(f)&&(b_(u)&&typeof f=="string"&&(f=new Tf(f)),i[u]=f)}}),i}(l,o),R({whitespace:!1},o)):""}function y_(l,o,e){return R(l,function(t,i){var a;if(i===void 0&&(i={}),!t)return{};var s=Object.entries(t),d=Object.entries(a_).concat(Object.entries(((a=i)==null?void 0:a.customHeaderMap)||{})),u=s.reduce(function(f,h){var m,w=h[0],x=h[1],_=((m=d.find(function(E){return E[1].includes(w)}))==null?void 0:m[0])||Fa.REQUEST;return f[_]!=null||(f[_]={}),f[_][w]=x,f},{});return Object.entries(u).reduce(function(f,h){var m=h[0],w=h[1];return f[m]=Rf(w,i),f},{})}(o,e))}var k_="CMCD",Df=/CMCD=[^&#]+/;function __(l,o,e){var t=function(a,s){if(s===void 0&&(s={}),!a)return"";var d=Rf(a,s);return k_+"="+encodeURIComponent(d)}(o,e);if(!t)return l;if(Df.test(l))return l.replace(Df,t);var i=l.includes("?")?"&":"?";return""+l+i+t}var T_=function(){function l(e){var t=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){t.initialized&&(t.starved=!0),t.buffering=!0},this.onPlaying=function(){t.initialized||(t.initialized=!0),t.buffering=!1},this.applyPlaylistData=function(s){try{t.apply(s,{ot:_i.MANIFEST,su:!t.initialized})}catch(d){j.warn("Could not generate manifest CMCD data.",d)}},this.applyFragmentData=function(s){try{var d=s.frag,u=t.hls.levels[d.level],f=t.getObjectType(d),h={d:1e3*d.duration,ot:f};f!==_i.VIDEO&&f!==_i.AUDIO&&f!=_i.MUXED||(h.br=u.bitrate/1e3,h.tb=t.getTopBandwidth(f)/1e3,h.bl=t.getBufferLength(f)),t.apply(s,h)}catch(m){j.warn("Could not generate segment CMCD data.",m)}},this.hls=e;var i=this.config=e.config,a=i.cmcd;a!=null&&(i.pLoader=this.createPlaylistLoader(),i.fLoader=this.createFragmentLoader(),this.sid=a.sessionId||function(){try{return crypto.randomUUID()}catch{try{var s=URL.createObjectURL(new Blob),d=s.toString();return URL.revokeObjectURL(s),d.slice(d.lastIndexOf("/")+1)}catch{var u=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(m){var w=(u+16*Math.random())%16|0;return u=Math.floor(u/16),(m=="x"?w:3&w|8).toString(16)})}}}(),this.cid=a.contentId,this.useHeaders=a.useHeaders===!0,this.includeKeys=a.includeKeys,this.registerListeners())}var o=l.prototype;return o.registerListeners=function(){var e=this.hls;e.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(y.MEDIA_DETACHED,this.onMediaDetached,this),e.on(y.BUFFER_CREATED,this.onBufferCreated,this)},o.unregisterListeners=function(){var e=this.hls;e.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(y.MEDIA_DETACHED,this.onMediaDetached,this),e.off(y.BUFFER_CREATED,this.onBufferCreated,this)},o.destroy=function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null},o.onMediaAttached=function(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},o.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},o.onBufferCreated=function(e,t){var i,a;this.audioBuffer=(i=t.tracks.audio)==null?void 0:i.buffer,this.videoBuffer=(a=t.tracks.video)==null?void 0:a.buffer},o.createData=function(){var e;return{v:1,sf:Hd.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},o.apply=function(e,t){t===void 0&&(t={}),R(t,this.createData());var i=t.ot===_i.INIT||t.ot===_i.VIDEO||t.ot===_i.MUXED;this.starved&&i&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);var a=this.includeKeys;a&&(t=Object.keys(t).reduce(function(s,d){return a.includes(d)&&(s[d]=t[d]),s},{})),this.useHeaders?(e.headers||(e.headers={}),y_(e.headers,t)):e.url=__(e.url,t)},o.getObjectType=function(e){var t=e.type;return t==="subtitle"?_i.TIMED_TEXT:e.sn==="initSegment"?_i.INIT:t==="audio"?_i.AUDIO:t==="main"?this.hls.audioTracks.length?_i.VIDEO:_i.MUXED:void 0},o.getTopBandwidth=function(e){var t,i=0,a=this.hls;if(e===_i.AUDIO)t=a.audioTracks;else{var s=a.maxAutoLevel,d=s>-1?s+1:a.levels.length;t=a.levels.slice(0,d)}for(var u,f=se(t);!(u=f()).done;){var h=u.value;h.bitrate>i&&(i=h.bitrate)}return i>0?i:NaN},o.getBufferLength=function(e){var t=this.hls.media,i=e===_i.AUDIO?this.audioBuffer:this.videoBuffer;return i&&t?1e3*Yt.bufferInfo(i,t.currentTime,this.config.maxBufferHole).len:NaN},o.createPlaylistLoader=function(){var e=this.config.pLoader,t=this.applyPlaylistData,i=e||this.config.loader;return function(){function a(d){this.loader=void 0,this.loader=new i(d)}var s=a.prototype;return s.destroy=function(){this.loader.destroy()},s.abort=function(){this.loader.abort()},s.load=function(d,u,f){t(d),this.loader.load(d,u,f)},C(a,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),a}()},o.createFragmentLoader=function(){var e=this.config.fLoader,t=this.applyFragmentData,i=e||this.config.loader;return function(){function a(d){this.loader=void 0,this.loader=new i(d)}var s=a.prototype;return s.destroy=function(){this.loader.destroy()},s.abort=function(){this.loader.abort()},s.load=function(d,u,f){t(d),this.loader.load(d,u,f)},C(a,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),a}()},l}(),E_=function(){function l(e){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.log=j.log.bind(j,"[content-steering]:"),this.registerListeners()}var o=l.prototype;return o.registerListeners=function(){var e=this.hls;e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(y.ERROR,this.onError,this)},o.unregisterListeners=function(){var e=this.hls;e&&(e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(y.ERROR,this.onError,this))},o.startLoad=function(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){var e=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0)return void this.scheduleRefresh(this.uri,e)}this.loadSteeringManifest(this.uri)}},o.stopLoad=function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()},o.clearTimeout=function(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)},o.destroy=function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null},o.removeLevel=function(e){var t=this.levels;t&&(this.levels=t.filter(function(i){return i!==e}))},o.onManifestLoading=function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null},o.onManifestLoaded=function(e,t){var i=t.contentSteering;i!==null&&(this.pathwayId=i.pathwayId,this.uri=i.uri,this.started&&this.startLoad())},o.onManifestParsed=function(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks},o.onError=function(e,t){var i=t.errorAction;if((i==null?void 0:i.action)===Ur&&i.flags===bd){var a=this.levels,s=this.pathwayPriority,d=this.pathwayId;if(t.context){var u=t.context,f=u.groupId,h=u.pathwayId,m=u.type;f&&a?d=this.getPathwayForGroupId(f,m,d):h&&(d=h)}d in this.penalizedPathways||(this.penalizedPathways[d]=performance.now()),!s&&a&&(s=a.reduce(function(w,x){return w.indexOf(x.pathwayId)===-1&&w.push(x.pathwayId),w},[])),s&&s.length>1&&(this.updatePathwayPriority(s),i.resolved=this.pathwayId!==d),i.resolved||j.warn("Could not resolve "+t.details+' ("'+t.error.message+'") with content-steering for Pathway: '+d+" levels: "+(a&&a.length)+" priorities: "+JSON.stringify(s)+" penalized: "+JSON.stringify(this.penalizedPathways))}},o.filterParsedLevels=function(e){this.levels=e;var t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){var i=e[0].pathwayId;this.log("No levels found in Pathway "+this.pathwayId+'. Setting initial Pathway to "'+i+'"'),t=this.getLevelsForPathway(i),this.pathwayId=i}return t.length!==e.length?(this.log("Found "+t.length+"/"+e.length+' levels in Pathway "'+this.pathwayId+'"'),t):e},o.getLevelsForPathway=function(e){return this.levels===null?[]:this.levels.filter(function(t){return e===t.pathwayId})},o.updatePathwayPriority=function(e){var t;this.pathwayPriority=e;var i=this.penalizedPathways,a=performance.now();Object.keys(i).forEach(function(m){a-i[m]>3e5&&delete i[m]});for(var s=0;s<e.length;s++){var d=e[s];if(!(d in i)){if(d===this.pathwayId)return;var u=this.hls.nextLoadLevel,f=this.hls.levels[u];if((t=this.getLevelsForPathway(d)).length>0){this.log('Setting Pathway to "'+d+'"'),this.pathwayId=d,wh(t),this.hls.trigger(y.LEVELS_UPDATED,{levels:t});var h=this.hls.levels[u];f&&h&&this.levels&&(h.attrs["STABLE-VARIANT-ID"]!==f.attrs["STABLE-VARIANT-ID"]&&h.bitrate!==f.bitrate&&this.log("Unstable Pathways change from bitrate "+f.bitrate+" to "+h.bitrate),this.hls.nextLoadLevel=u);break}}}},o.getPathwayForGroupId=function(e,t,i){for(var a=this.getLevelsForPathway(i).concat(this.levels||[]),s=0;s<a.length;s++)if(t===sr&&a[s].hasAudioGroup(e)||t===wr&&a[s].hasSubtitleGroup(e))return a[s].pathwayId;return i},o.clonePathways=function(e){var t=this,i=this.levels;if(i){var a={},s={};e.forEach(function(d){var u=d.ID,f=d["BASE-ID"],h=d["URI-REPLACEMENT"];if(!i.some(function(w){return w.pathwayId===u})){var m=t.getLevelsForPathway(f).map(function(w){var x=new Pe(w.attrs);x["PATHWAY-ID"]=u;var _=x.AUDIO&&x.AUDIO+"_clone_"+u,E=x.SUBTITLES&&x.SUBTITLES+"_clone_"+u;_&&(a[x.AUDIO]=_,x.AUDIO=_),E&&(s[x.SUBTITLES]=E,x.SUBTITLES=E);var A=Pf(w.uri,x["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",h),T=new lo({attrs:x,audioCodec:w.audioCodec,bitrate:w.bitrate,height:w.height,name:w.name,url:A,videoCodec:w.videoCodec,width:w.width});if(w.audioGroups)for(var L=1;L<w.audioGroups.length;L++)T.addGroupId("audio",w.audioGroups[L]+"_clone_"+u);if(w.subtitleGroups)for(var I=1;I<w.subtitleGroups.length;I++)T.addGroupId("text",w.subtitleGroups[I]+"_clone_"+u);return T});i.push.apply(i,m),If(t.audioTracks,a,h,u),If(t.subtitleTracks,s,h,u)}})}},o.loadSteeringManifest=function(e){var t,i=this,a=this.hls.config,s=a.loader;this.loader&&this.loader.destroy(),this.loader=new s(a);try{t=new self.URL(e)}catch{return this.enabled=!1,void this.log("Failed to parse Steering Manifest URI: "+e)}if(t.protocol!=="data:"){var d=0|(this.hls.bandwidthEstimate||a.abrEwmaDefaultEstimate);t.searchParams.set("_HLS_pathway",this.pathwayId),t.searchParams.set("_HLS_throughput",""+d)}var u={responseType:"json",url:t.href},f=a.steeringManifestLoadPolicy.default,h=f.errorRetry||f.timeoutRetry||{},m={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:h.maxNumRetry||0,retryDelay:h.retryDelayMs||0,maxRetryDelay:h.maxRetryDelayMs||0},w={onSuccess:function(x,_,E,A){i.log('Loaded steering manifest: "'+t+'"');var T=x.data;if(T.VERSION===1){i.updated=performance.now(),i.timeToLoad=T.TTL;var L=T["RELOAD-URI"],I=T["PATHWAY-CLONES"],P=T["PATHWAY-PRIORITY"];if(L)try{i.uri=new self.URL(L,t).href}catch{return i.enabled=!1,void i.log("Failed to parse Steering Manifest RELOAD-URI: "+L)}i.scheduleRefresh(i.uri||E.url),I&&i.clonePathways(I);var G={steeringManifest:T,url:t.toString()};i.hls.trigger(y.STEERING_MANIFEST_LOADED,G),P&&i.updatePathwayPriority(P)}else i.log("Steering VERSION "+T.VERSION+" not supported!")},onError:function(x,_,E,A){if(i.log("Error loading steering manifest: "+x.code+" "+x.text+" ("+_.url+")"),i.stopLoad(),x.code===410)return i.enabled=!1,void i.log("Steering manifest "+_.url+" no longer available");var T=1e3*i.timeToLoad;if(x.code!==429)i.scheduleRefresh(i.uri||_.url,T);else{var L=i.loader;if(typeof(L==null?void 0:L.getResponseHeader)=="function"){var I=L.getResponseHeader("Retry-After");I&&(T=1e3*parseFloat(I))}i.log("Steering manifest "+_.url+" rate limited")}},onTimeout:function(x,_,E){i.log("Timeout loading steering manifest ("+_.url+")"),i.scheduleRefresh(i.uri||_.url)}};this.log("Requesting steering manifest: "+t),this.loader.load(u,m,w)},o.scheduleRefresh=function(e,t){var i=this;t===void 0&&(t=1e3*this.timeToLoad),this.clearTimeout(),this.reloadTimer=self.setTimeout(function(){var a,s=(a=i.hls)==null?void 0:a.media;!s||s.ended?i.scheduleRefresh(e,1e3*i.timeToLoad):i.loadSteeringManifest(e)},t)},l}();function If(l,o,e,t){l&&Object.keys(o).forEach(function(i){var a=l.filter(function(s){return s.groupId===i}).map(function(s){var d=R({},s);return d.details=void 0,d.attrs=new Pe(d.attrs),d.url=d.attrs.URI=Pf(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",e),d.groupId=d.attrs["GROUP-ID"]=o[i],d.attrs["PATHWAY-ID"]=t,d});l.push.apply(l,a)})}function Pf(l,o,e,t){var i,a=t.HOST,s=t.PARAMS,d=t[e];o&&(i=d==null?void 0:d[o])&&(l=i);var u=new self.URL(l);return a&&!i&&(u.host=a),s&&Object.keys(s).sort().forEach(function(f){f&&u.searchParams.set(f,s[f])}),u.href}var S_=/^age:\s*[\d.]+\s*$/im,Of=function(){function l(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new kt,this.retryDelay=0}var o=l.prototype;return o.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null,this.stats=null},o.abortInternal=function(){var e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))},o.abort=function(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},o.load=function(e,t,i){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=i,this.loadInternal()},o.loadInternal=function(){var e=this,t=this.config,i=this.context;if(t&&i){var a=this.loader=new self.XMLHttpRequest,s=this.stats;s.loading.first=0,s.loaded=0,s.aborted=!1;var d=this.xhrSetup;d?Promise.resolve().then(function(){if(!e.stats.aborted)return d(a,i.url)}).catch(function(u){return a.open("GET",i.url,!0),d(a,i.url)}).then(function(){e.stats.aborted||e.openAndSendXhr(a,i,t)}).catch(function(u){e.callbacks.onError({code:a.status,text:u.message},i,a,s)}):this.openAndSendXhr(a,i,t)}},o.openAndSendXhr=function(e,t,i){e.readyState||e.open("GET",t.url,!0);var a=t.headers,s=i.loadPolicy,d=s.maxTimeToFirstByteMs,u=s.maxLoadTimeMs;if(a)for(var f in a)e.setRequestHeader(f,a[f]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),i.timeout=d&&te(d)?d:u,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.timeout),e.send()},o.readystatechange=function(){var e=this.context,t=this.loader,i=this.stats;if(e&&t){var a=t.readyState,s=this.config;if(!i.aborted&&a>=2&&(i.loading.first===0&&(i.loading.first=Math.max(self.performance.now(),i.loading.start),s.timeout!==s.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),s.timeout=s.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),s.loadPolicy.maxLoadTimeMs-(i.loading.first-i.loading.start)))),a===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;var d=t.status,u=t.responseType!=="text";if(d>=200&&d<300&&(u&&t.response||t.responseText!==null)){i.loading.end=Math.max(self.performance.now(),i.loading.first);var f=u?t.response:t.responseText,h=t.responseType==="arraybuffer"?f.byteLength:f.length;if(i.loaded=i.total=h,i.bwEstimate=8e3*i.total/(i.loading.end-i.loading.first),!this.callbacks)return;var m=this.callbacks.onProgress;if(m&&m(i,e,f,t),!this.callbacks)return;var w={url:t.responseURL,data:f,code:d};this.callbacks.onSuccess(w,i,e,t)}else{var x=s.loadPolicy.errorRetry;Es(x,i.retry,!1,{url:e.url,data:void 0,code:d})?this.retry(x):(j.error(d+" while loading "+e.url),this.callbacks.onError({code:d,text:t.statusText},e,t,i))}}}},o.loadtimeout=function(){var e,t=(e=this.config)==null?void 0:e.loadPolicy.timeoutRetry;if(Es(t,this.stats.retry,!0))this.retry(t);else{var i;j.warn("timeout while loading "+((i=this.context)==null?void 0:i.url));var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))}},o.retry=function(e){var t=this.context,i=this.stats;this.retryDelay=gd(e,i.retry),i.retry++,j.warn((status?"HTTP Status "+status:"Timeout")+" while loading "+(t==null?void 0:t.url)+", retrying "+i.retry+"/"+e.maxNumRetry+" in "+this.retryDelay+"ms"),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)},o.loadprogress=function(e){var t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)},o.getCacheAge=function(){var e=null;if(this.loader&&S_.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e},o.getResponseHeader=function(e){return this.loader&&new RegExp("^"+e+":\\s*[\\d.]+\\s*$","im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null},l}(),L_=/(\d+)-(\d+)\/(\d+)/,Mf=function(){function l(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||A_,this.controller=new self.AbortController,this.stats=new kt}var o=l.prototype;return o.destroy=function(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null},o.abortInternal=function(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())},o.abort=function(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},o.load=function(e,t,i){var a=this,s=this.stats;if(s.loading.start)throw new Error("Loader can only be used once.");s.loading.start=self.performance.now();var d=function(_,E){var A={method:"GET",mode:"cors",credentials:"same-origin",signal:E,headers:new self.Headers(R({},_.headers))};return _.rangeEnd&&A.headers.set("Range","bytes="+_.rangeStart+"-"+String(_.rangeEnd-1)),A}(e,this.controller.signal),u=i.onProgress,f=e.responseType==="arraybuffer",h=f?"byteLength":"length",m=t.loadPolicy,w=m.maxTimeToFirstByteMs,x=m.maxLoadTimeMs;this.context=e,this.config=t,this.callbacks=i,this.request=this.fetchSetup(e,d),self.clearTimeout(this.requestTimeout),t.timeout=w&&te(w)?w:x,this.requestTimeout=self.setTimeout(function(){a.abortInternal(),i.onTimeout(s,e,a.response)},t.timeout),self.fetch(this.request).then(function(_){a.response=a.loader=_;var E=Math.max(self.performance.now(),s.loading.start);if(self.clearTimeout(a.requestTimeout),t.timeout=x,a.requestTimeout=self.setTimeout(function(){a.abortInternal(),i.onTimeout(s,e,a.response)},x-(E-s.loading.start)),!_.ok){var A=_.status,T=_.statusText;throw new C_(T||"fetch, bad network response",A,_)}return s.loading.first=E,s.total=function(L){var I=L.get("Content-Range");if(I){var P=function($){var B=L_.exec($);if(B)return parseInt(B[2])-parseInt(B[1])+1}(I);if(te(P))return P}var G=L.get("Content-Length");if(G)return parseInt(G)}(_.headers)||s.total,u&&te(t.highWaterMark)?a.loadProgressively(_,s,e,t.highWaterMark,u):f?_.arrayBuffer():e.responseType==="json"?_.json():_.text()}).then(function(_){var E=a.response;if(!E)throw new Error("loader destroyed");self.clearTimeout(a.requestTimeout),s.loading.end=Math.max(self.performance.now(),s.loading.first);var A=_[h];A&&(s.loaded=s.total=A);var T={url:E.url,data:_,code:E.status};u&&!te(t.highWaterMark)&&u(s,e,_,E),i.onSuccess(T,s,e,E)}).catch(function(_){if(self.clearTimeout(a.requestTimeout),!s.aborted){var E=_&&_.code||0,A=_?_.message:null;i.onError({code:E,text:A},e,_?_.details:null,s)}})},o.getCacheAge=function(){var e=null;if(this.response){var t=this.response.headers.get("age");e=t?parseFloat(t):null}return e},o.getResponseHeader=function(e){return this.response?this.response.headers.get(e):null},o.loadProgressively=function(e,t,i,a,s){a===void 0&&(a=0);var d=new Ph,u=e.body.getReader();return function f(){return u.read().then(function(h){if(h.done)return d.dataLength&&s(t,i,d.flush(),e),Promise.resolve(new ArrayBuffer(0));var m=h.value,w=m.length;return t.loaded+=w,w<a||d.dataLength?(d.push(m),d.dataLength>=a&&s(t,i,d.flush(),e)):s(t,i,m,e),f()}).catch(function(){return Promise.reject()})}()},l}();function A_(l,o){return new self.Request(l.url,o)}var Xd,C_=function(l){function o(e,t,i){var a;return(a=l.call(this,e)||this).code=void 0,a.details=void 0,a.code=t,a.details=i,a}return D(o,l),o}(Y(Error)),R_=/\s/,Ff=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Of,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:rk,bufferController:Bk,capLevelController:i_,errorController:Z1,fpsController:r_,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Be,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:{newCue:function(l,o,e,t){for(var i,a,s,d,u,f=[],h=self.VTTCue||self.TextTrackCue,m=0;m<t.rows.length;m++)if(s=!0,d=0,u="",!(i=t.rows[m]).isEmpty()){for(var w,x=0;x<i.chars.length;x++)R_.test(i.chars[x].uchar)&&s?d++:(u+=i.chars[x].uchar,s=!1);i.cueStartTime=o,o===e&&(e+=1e-4),d>=16?d--:d++;var _=ff(u.trim()),E=Ud(o,e,_);l!=null&&(w=l.cues)!=null&&w.getCueById(E)||((a=new h(o,e,_)).id=E,a.line=m+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*d/32)),f.push(a))}return l&&f.length&&(f.sort(function(A,T){return A.line==="auto"||T.line==="auto"?0:A.line>8&&T.line>8?T.line-A.line:A.line-T.line}),f.forEach(function(A){return dh(l,A)})),f}},enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:Mk,subtitleTrackController:Nk,timelineController:t_,audioStreamController:Pk,audioTrackController:Ok,emeController:_f,cmcdController:T_,contentSteeringController:E_});function Qd(l){return l&&typeof l=="object"?Array.isArray(l)?l.map(Qd):Object.keys(l).reduce(function(o,e){return o[e]=Qd(l[e]),o},{}):l}function D_(l){var o=l.loader;o!==Mf&&o!==Of?(j.log("[config]: Custom loader detected, cannot enable progressive streaming"),l.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}()&&(l.loader=Mf,l.progressive=!0,l.enableSoftwareAES=!0,j.log("[config]: Progressive streaming enabled, using FetchLoader"))}var I_=function(l){function o(t,i){var a;return(a=l.call(this,t,"[level-controller]")||this)._levels=[],a._firstLevel=-1,a._maxAutoLevel=-1,a._startLevel=void 0,a.currentLevel=null,a.currentLevelIndex=-1,a.manualLevelIndex=-1,a.steering=void 0,a.onParsedComplete=void 0,a.steering=i,a._registerListeners(),a}D(o,l);var e=o.prototype;return e._registerListeners=function(){var t=this.hls;t.on(y.MANIFEST_LOADING,this.onManifestLoading,this),t.on(y.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(y.LEVEL_LOADED,this.onLevelLoaded,this),t.on(y.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(y.FRAG_BUFFERED,this.onFragBuffered,this),t.on(y.ERROR,this.onError,this)},e._unregisterListeners=function(){var t=this.hls;t.off(y.MANIFEST_LOADING,this.onManifestLoading,this),t.off(y.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(y.LEVEL_LOADED,this.onLevelLoaded,this),t.off(y.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(y.FRAG_BUFFERED,this.onFragBuffered,this),t.off(y.ERROR,this.onError,this)},e.destroy=function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),l.prototype.destroy.call(this)},e.stopLoad=function(){this._levels.forEach(function(t){t.loadError=0,t.fragmentError=0}),l.prototype.stopLoad.call(this)},e.resetLevels=function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1},e.onManifestLoading=function(t,i){this.resetLevels()},e.onManifestLoaded=function(t,i){var a=this.hls.config.preferManagedMediaSource,s=[],d={},u={},f=!1,h=!1,m=!1;i.levels.forEach(function(w){var x,_,E=w.attrs,A=w.audioCodec,T=w.videoCodec;((x=A)==null?void 0:x.indexOf("mp4a.40.34"))!==-1&&(Xd||(Xd=/chrome|firefox/i.test(navigator.userAgent)),Xd&&(w.audioCodec=A=void 0)),A&&(w.audioCodec=A=xs(A,a)),((_=T)==null?void 0:_.indexOf("avc1"))===0&&(T=w.videoCodec=function(De){var Ue=De.split(".");if(Ue.length>2){var Ae=Ue.shift()+".";return(Ae+=parseInt(Ue.shift()).toString(16))+("000"+parseInt(Ue.shift()).toString(16)).slice(-4)}return De}(T));var L=w.width,I=w.height,P=w.unknownCodecs;if(f||(f=!(!L||!I)),h||(h=!!T),m||(m=!!A),!(P!=null&&P.length||A&&!dn(A,"audio",a)||T&&!dn(T,"video",a))){var G=E.CODECS,$=E["FRAME-RATE"],B=E["HDCP-LEVEL"],J=E["PATHWAY-ID"],X=E.RESOLUTION,ee=E["VIDEO-RANGE"],ae=(J||".")+"-"+w.bitrate+"-"+X+"-"+$+"-"+G+"-"+ee+"-"+B;if(d[ae])if(d[ae].uri===w.url||w.attrs["PATHWAY-ID"])d[ae].addGroupId("audio",E.AUDIO),d[ae].addGroupId("text",E.SUBTITLES);else{var be=u[ae]+=1;w.attrs["PATHWAY-ID"]=new Array(be+1).join(".");var Te=new lo(w);d[ae]=Te,s.push(Te)}else{var Ie=new lo(w);d[ae]=Ie,u[ae]=1,s.push(Ie)}}}),this.filterAndSortMediaOptions(s,i,f,h,m)},e.filterAndSortMediaOptions=function(t,i,a,s,d){var u=this,f=[],h=[],m=t;if((a||s)&&d&&(m=m.filter(function(B){var J,X=B.videoCodec,ee=B.videoRange,ae=B.width,be=B.height;return(!!X||!(!ae||!be))&&!!(J=ee)&&_s.indexOf(J)>-1})),m.length!==0){if(i.audioTracks){var w=this.hls.config.preferManagedMediaSource;Nf(f=i.audioTracks.filter(function(B){return!B.audioCodec||dn(B.audioCodec,"audio",w)}))}i.subtitles&&Nf(h=i.subtitles);var x=m.slice(0);m.sort(function(B,J){if(B.attrs["HDCP-LEVEL"]!==J.attrs["HDCP-LEVEL"])return(B.attrs["HDCP-LEVEL"]||"")>(J.attrs["HDCP-LEVEL"]||"")?1:-1;if(a&&B.height!==J.height)return B.height-J.height;if(B.frameRate!==J.frameRate)return B.frameRate-J.frameRate;if(B.videoRange!==J.videoRange)return _s.indexOf(B.videoRange)-_s.indexOf(J.videoRange);if(B.videoCodec!==J.videoCodec){var X=Xp(B.videoCodec),ee=Xp(J.videoCodec);if(X!==ee)return ee-X}if(B.uri===J.uri&&B.codecSet!==J.codecSet){var ae=ws(B.codecSet),be=ws(J.codecSet);if(ae!==be)return be-ae}return B.averageBitrate!==J.averageBitrate?B.averageBitrate-J.averageBitrate:0});var _=x[0];if(this.steering&&(m=this.steering.filterParsedLevels(m)).length!==x.length){for(var E=0;E<x.length;E++)if(x[E].pathwayId===m[0].pathwayId){_=x[E];break}}this._levels=m;for(var A=0;A<m.length;A++)if(m[A]===_){var T;this._firstLevel=A;var L=_.bitrate,I=this.hls.bandwidthEstimate;if(this.log("manifest loaded, "+m.length+" level(s) found, first bitrate: "+L),((T=this.hls.userConfig)==null?void 0:T.abrEwmaDefaultEstimate)===void 0){var P=Math.min(L,this.hls.config.abrEwmaDefaultEstimateMax);P>I&&I===Ff.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=P)}break}var G=d&&!s,$={levels:m,audioTracks:f,subtitleTracks:h,sessionData:i.sessionData,sessionKeys:i.sessionKeys,firstLevel:this._firstLevel,stats:i.stats,audio:d,video:s,altAudio:!G&&f.some(function(B){return!!B.url})};this.hls.trigger(y.MANIFEST_PARSED,$),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else Promise.resolve().then(function(){if(u.hls){i.levels.length&&u.warn("One or more CODECS in variant not supported: "+JSON.stringify(i.levels[0].attrs));var B=new Error("no level with compatible codecs found in manifest");u.hls.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:i.url,error:B,reason:B.message})}})},e.onError=function(t,i){!i.fatal&&i.context&&i.context.type===Da&&i.context.level===this.level&&this.checkRetry(i)},e.onFragBuffered=function(t,i){var a=i.frag;if(a!==void 0&&a.type===Lt){var s=a.elementaryStreams;if(!Object.keys(s).some(function(u){return!!s[u]}))return;var d=this._levels[a.level];d!=null&&d.loadError&&(this.log("Resetting level error count of "+d.loadError+" on frag buffered"),d.loadError=0)}},e.onLevelLoaded=function(t,i){var a,s,d=i.level,u=i.details,f=this._levels[d];if(!f)return this.warn("Invalid level index "+d),void((s=i.deliveryDirectives)!=null&&s.skip&&(u.deltaUpdateFailed=!0));d===this.currentLevelIndex?(f.fragmentError===0&&(f.loadError=0),this.playlistLoaded(d,i,f.details)):(a=i.deliveryDirectives)!=null&&a.skip&&(u.deltaUpdateFailed=!0)},e.loadPlaylist=function(t){l.prototype.loadPlaylist.call(this);var i=this.currentLevelIndex,a=this.currentLevel;if(a&&this.shouldLoadPlaylist(a)){var s=a.uri;if(t)try{s=t.addDirectives(s)}catch(u){this.warn("Could not construct new URL with HLS Delivery Directives: "+u)}var d=a.attrs["PATHWAY-ID"];this.log("Loading level index "+i+((t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:"")+" with"+(d?" Pathway "+d:"")+" "+s),this.clearTimer(),this.hls.trigger(y.LEVEL_LOADING,{url:s,level:i,pathwayId:a.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}},e.removeLevel=function(t){var i,a=this,s=this._levels.filter(function(d,u){return u!==t||(a.steering&&a.steering.removeLevel(d),d===a.currentLevel&&(a.currentLevel=null,a.currentLevelIndex=-1,d.details&&d.details.fragments.forEach(function(f){return f.level=-1})),!1)});wh(s),this._levels=s,this.currentLevelIndex>-1&&(i=this.currentLevel)!=null&&i.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(y.LEVELS_UPDATED,{levels:s})},e.onLevelsUpdated=function(t,i){var a=i.levels;this._levels=a},e.checkMaxAutoUpdated=function(){var t=this.hls,i=t.autoLevelCapping,a=t.maxAutoLevel,s=t.maxHdcpLevel;this._maxAutoLevel!==a&&(this._maxAutoLevel=a,this.hls.trigger(y.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:i,levels:this.levels,maxAutoLevel:a,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:s}))},C(o,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var i=this._levels;if(i.length!==0){if(t<0||t>=i.length){var a=new Error("invalid level idx"),s=t<0;if(this.hls.trigger(y.ERROR,{type:re.OTHER_ERROR,details:z.LEVEL_SWITCH_ERROR,level:t,fatal:s,error:a,reason:a.message}),s)return;t=Math.min(t,i.length-1)}var d=this.currentLevelIndex,u=this.currentLevel,f=u?u.attrs["PATHWAY-ID"]:void 0,h=i[t],m=h.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=h,d!==t||!h.details||!u||f!==m){this.log("Switching to level "+t+" ("+(h.height?h.height+"p ":"")+(h.videoRange?h.videoRange+" ":"")+(h.codecSet?h.codecSet+" ":"")+"@"+h.bitrate+")"+(m?" with Pathway "+m:"")+" from level "+d+(f?" with Pathway "+f:""));var w={level:t,attrs:h.attrs,details:h.details,bitrate:h.bitrate,averageBitrate:h.averageBitrate,maxBitrate:h.maxBitrate,realBitrate:h.realBitrate,width:h.width,height:h.height,codecSet:h.codecSet,audioCodec:h.audioCodec,videoCodec:h.videoCodec,audioGroups:h.audioGroups,subtitleGroups:h.subtitleGroups,loaded:h.loaded,loadError:h.loadError,fragmentError:h.fragmentError,name:h.name,id:h.id,uri:h.uri,url:h.url,urlId:0,audioGroupIds:h.audioGroupIds,textGroupIds:h.textGroupIds};this.hls.trigger(y.LEVEL_SWITCHING,w);var x=h.details;if(!x||x.live){var _=this.switchParams(h.uri,u==null?void 0:u.details,x);this.loadPlaylist(_)}}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,this._startLevel===void 0&&(this._startLevel=t),t!==-1&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var t=this.hls.config.startLevel;return t!==void 0?t:this.hls.firstAutoLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=t)}}]),o}(wd);function Nf(l){var o={};l.forEach(function(e){var t=e.groupId||"";e.id=o[t]=o[t]||0,o[t]++})}var P_=function(){function l(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}var o=l.prototype;return o.abort=function(e){for(var t in this.keyUriToKeyInfo){var i=this.keyUriToKeyInfo[t].loader;if(i){var a;if(e&&e!==((a=i.context)==null?void 0:a.frag.type))return;i.abort()}}},o.detach=function(){for(var e in this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}},o.destroy=function(){for(var e in this.detach(),this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}},o.createKeyLoadError=function(e,t,i,a,s){return t===void 0&&(t=z.KEY_LOAD_ERROR),new jr({type:re.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:s,error:i,networkDetails:a})},o.loadClear=function(e,t){var i=this;if(this.emeController&&this.config.emeEnabled)for(var a=e.sn,s=e.cc,d=function(){var f=t[u];if(s<=f.cc&&(a==="initSegment"||f.sn==="initSegment"||a<f.sn))return i.emeController.selectKeySystemFormat(f).then(function(h){f.setKeyFormat(h)}),1},u=0;u<t.length&&!d();u++);},o.load=function(e){var t=this;return!e.decryptdata&&e.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(e).then(function(i){return t.loadInternal(e,i)}):this.loadInternal(e)},o.loadInternal=function(e,t){var i,a;t&&e.setKeyFormat(t);var s=e.decryptdata;if(!s){var d=new Error(t?"Expected frag.decryptdata to be defined after setting format "+t:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,z.KEY_LOAD_ERROR,d))}var u=s.uri;if(!u)return Promise.reject(this.createKeyLoadError(e,z.KEY_LOAD_ERROR,new Error('Invalid key URI: "'+u+'"')));var f,h=this.keyUriToKeyInfo[u];if((i=h)!=null&&i.decryptdata.key)return s.key=h.decryptdata.key,Promise.resolve({frag:e,keyInfo:h});if((a=h)!=null&&a.keyLoadPromise)switch((f=h.mediaKeySessionContext)==null?void 0:f.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return h.keyLoadPromise.then(function(m){return s.key=m.keyInfo.decryptdata.key,{frag:e,keyInfo:h}})}switch(h=this.keyUriToKeyInfo[u]={decryptdata:s,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},s.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return s.keyFormat==="identity"?this.loadKeyHTTP(h,e):this.loadKeyEME(h,e);case"AES-128":return this.loadKeyHTTP(h,e);default:return Promise.reject(this.createKeyLoadError(e,z.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'+s.method+'"')))}},o.loadKeyEME=function(e,t){var i={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){var a=this.emeController.loadKey(i);if(a)return(e.keyLoadPromise=a.then(function(s){return e.mediaKeySessionContext=s,i})).catch(function(s){throw e.keyLoadPromise=null,s})}return Promise.resolve(i)},o.loadKeyHTTP=function(e,t){var i=this,a=this.config,s=new a.loader(a);return t.keyLoader=e.loader=s,e.keyLoadPromise=new Promise(function(d,u){var f={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},h=a.keyLoadPolicy.default,m={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},w={onSuccess:function(x,_,E,A){var T=E.frag,L=E.keyInfo,I=E.url;if(!T.decryptdata||L!==i.keyUriToKeyInfo[I])return u(i.createKeyLoadError(T,z.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),A));L.decryptdata.key=T.decryptdata.key=new Uint8Array(x.data),T.keyLoader=null,L.loader=null,d({frag:T,keyInfo:L})},onError:function(x,_,E,A){i.resetLoader(_),u(i.createKeyLoadError(t,z.KEY_LOAD_ERROR,new Error("HTTP Error "+x.code+" loading key "+x.text),E,b({url:f.url,data:void 0},x)))},onTimeout:function(x,_,E){i.resetLoader(_),u(i.createKeyLoadError(t,z.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),E))},onAbort:function(x,_,E){i.resetLoader(_),u(i.createKeyLoadError(t,z.INTERNAL_ABORTED,new Error("key loading aborted"),E))}};s.load(f,m,w)})},o.resetLoader=function(e){var t=e.frag,i=e.keyInfo,a=e.url,s=i.loader;t.keyLoader===s&&(t.keyLoader=null,i.loader=null),delete this.keyUriToKeyInfo[a],s&&s.destroy()},l}();function zf(){return self.SourceBuffer||self.WebKitSourceBuffer}function Bf(){if(!nr())return!1;var l=zf();return!l||l.prototype&&typeof l.prototype.appendBuffer=="function"&&typeof l.prototype.remove=="function"}var O_=function(){function l(e,t,i,a){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=i,this.hls=a}var o=l.prototype;return o.destroy=function(){this.media=null,this.hls=this.fragmentTracker=null},o.poll=function(e,t){var i=this.config,a=this.media,s=this.stalled;if(a!==null){var d=a.currentTime,u=a.seeking,f=this.seeking&&!u,h=!this.seeking&&u;if(this.seeking=u,d===e)if(h||f)this.stalled=null;else if(a.paused&&!u||a.ended||a.playbackRate===0||!Yt.getBuffered(a).length)this.nudgeRetry=0;else{var m=Yt.bufferInfo(a,d,0),w=m.nextStart||0;if(u){var x=m.len>2,_=!w||t&&t.start<=d||w-d>2&&!this.fragmentTracker.getPartialFragment(d);if(x||_)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var E;if(!(m.len>0||w))return;var A=Math.max(w,m.start||0)-d,T=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,L=!(T==null||(E=T.details)==null)&&E.live?2*T.details.targetduration:2,I=this.fragmentTracker.getPartialFragment(d);if(A>0&&(A<=L||I))return void(a.paused||this._trySkipBufferHole(I))}var P=self.performance.now();if(s!==null){var G=P-s;if(u||!(G>=250)||(this._reportStall(m),this.media)){var $=Yt.bufferInfo(a,d,i.maxBufferHole);this._tryFixBufferStall($,G)}}else this.stalled=P}else if(this.moved=!0,u||(this.nudgeRetry=0),s!==null){if(this.stallReported){var B=self.performance.now()-s;j.warn("playback not stuck anymore @"+d+", after "+Math.round(B)+"ms"),this.stallReported=!1}this.stalled=null}}},o._tryFixBufferStall=function(e,t){var i=this.config,a=this.fragmentTracker,s=this.media;if(s!==null){var d=s.currentTime,u=a.getPartialFragment(d);if(u&&(this._trySkipBufferHole(u)||!this.media))return;(e.len>i.maxBufferHole||e.nextStart&&e.nextStart-d<i.maxBufferHole)&&t>1e3*i.highBufferWatchdogPeriod&&(j.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},o._reportStall=function(e){var t=this.hls,i=this.media;if(!this.stallReported&&i){this.stallReported=!0;var a=new Error("Playback stalling at @"+i.currentTime+" due to low buffer ("+JSON.stringify(e)+")");j.warn(a.message),t.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.BUFFER_STALLED_ERROR,fatal:!1,error:a,buffer:e.len})}},o._trySkipBufferHole=function(e){var t=this.config,i=this.hls,a=this.media;if(a===null)return 0;var s=a.currentTime,d=Yt.bufferInfo(a,s,0),u=s<d.start?d.start:d.nextStart;if(u){var f=d.len<=t.maxBufferHole,h=d.len>0&&d.len<1&&a.readyState<3,m=u-s;if(m>0&&(f||h)){if(m>t.maxBufferHole){var w=this.fragmentTracker,x=!1;if(s===0){var _=w.getAppendedFrag(0,Lt);_&&u<_.end&&(x=!0)}if(!x){var E=e||w.getAppendedFrag(s,Lt);if(E){for(var A=!1,T=E.end;T<u;){var L=w.getPartialFragment(T);if(!L){A=!0;break}T+=L.duration}if(A)return 0}}}var I=Math.max(u+.05,s+.1);if(j.warn("skipping hole, adjusting currentTime from "+s+" to "+I),this.moved=!0,this.stalled=null,a.currentTime=I,e&&!e.gap){var P=new Error("fragment loaded with buffer holes, seeking from "+s+" to "+I);i.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:P,reason:P.message,frag:e})}return I}}return 0},o._tryNudgeBuffer=function(){var e=this.config,t=this.hls,i=this.media,a=this.nudgeRetry;if(i!==null){var s=i.currentTime;if(this.nudgeRetry++,a<e.nudgeMaxRetry){var d=s+(a+1)*e.nudgeOffset,u=new Error("Nudging 'currentTime' from "+s+" to "+d);j.warn(u.message),i.currentTime=d,t.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.BUFFER_NUDGE_ON_STALL,error:u,fatal:!1})}else{var f=new Error("Playhead still not moving while enough data buffered @"+s+" after "+e.nudgeMaxRetry+" nudges");j.error(f.message),t.trigger(y.ERROR,{type:re.MEDIA_ERROR,details:z.BUFFER_STALLED_ERROR,error:f,fatal:!0})}}},l}(),M_=function(l){function o(t,i,a){var s;return(s=l.call(this,t,i,a,"[stream-controller]",Lt)||this).audioCodecSwap=!1,s.gapController=null,s.level=-1,s._forceStartLoad=!1,s.altAudio=!1,s.audioOnly=!1,s.fragPlaying=null,s.onvplaying=null,s.onvseeked=null,s.fragLastKbps=0,s.couldBacktrack=!1,s.backtrackFragment=null,s.audioCodecSwitch=!1,s.videoBuffer=null,s._registerListeners(),s}D(o,l);var e=o.prototype;return e._registerListeners=function(){var t=this.hls;t.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(y.MANIFEST_LOADING,this.onManifestLoading,this),t.on(y.MANIFEST_PARSED,this.onManifestParsed,this),t.on(y.LEVEL_LOADING,this.onLevelLoading,this),t.on(y.LEVEL_LOADED,this.onLevelLoaded,this),t.on(y.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(y.ERROR,this.onError,this),t.on(y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(y.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(y.BUFFER_CREATED,this.onBufferCreated,this),t.on(y.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(y.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(y.FRAG_BUFFERED,this.onFragBuffered,this)},e._unregisterListeners=function(){var t=this.hls;t.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(y.MANIFEST_LOADING,this.onManifestLoading,this),t.off(y.MANIFEST_PARSED,this.onManifestParsed,this),t.off(y.LEVEL_LOADED,this.onLevelLoaded,this),t.off(y.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(y.ERROR,this.onError,this),t.off(y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(y.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(y.BUFFER_CREATED,this.onBufferCreated,this),t.off(y.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(y.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(y.FRAG_BUFFERED,this.onFragBuffered,this)},e.onHandlerDestroying=function(){this._unregisterListeners(),l.prototype.onHandlerDestroying.call(this)},e.startLoad=function(t){if(this.levels){var i=this.lastCurrentTime,a=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){var s=a.startLevel;s===-1&&(a.config.testBandwidth&&this.levels.length>1?(s=0,this.bitrateTest=!0):s=a.firstAutoLevel),a.nextLoadLevel=s,this.level=a.loadLevel,this.loadedmetadata=!1}i>0&&t===-1&&(this.log("Override startPosition with lastCurrentTime @"+i.toFixed(3)),t=i),this.state=ot,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this._forceStartLoad=!0,this.state=Qi},e.stopLoad=function(){this._forceStartLoad=!1,l.prototype.stopLoad.call(this)},e.doTick=function(){switch(this.state){case Ia:var t=this.levels,i=this.level,a=t==null?void 0:t[i],s=a==null?void 0:a.details;if(s&&(!s.live||this.levelLastLoaded===a)){if(this.waitForCdnTuneIn(s))break;this.state=ot;break}if(this.hls.nextLoadLevel!==this.level){this.state=ot;break}break;case vo:var d,u=self.performance.now(),f=this.retryDate;if(!f||u>=f||(d=this.media)!=null&&d.seeking){var h=this.levels,m=this.level,w=h==null?void 0:h[m];this.resetStartWhenNotLoaded(w||null),this.state=ot}}this.state===ot&&this.doTickIdle(),this.onTickEnd()},e.onTickEnd=function(){l.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},e.doTickIdle=function(){var t=this.hls,i=this.levelLastLoaded,a=this.levels,s=this.media;if(i!==null&&(s||!this.startFragRequested&&t.config.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)){var d=t.nextLoadLevel;if(a!=null&&a[d]){var u=a[d],f=this.getMainFwdBufferInfo();if(f!==null){var h=this.getLevelDetails();if(h&&this._streamEnded(f,h)){var m={};return this.altAudio&&(m.type="video"),this.hls.trigger(y.BUFFER_EOS,m),void(this.state=vn)}t.loadLevel!==d&&t.manualLevel===-1&&this.log("Adapting to level "+d+" from level "+this.level),this.level=t.nextLoadLevel=d;var w=u.details;if(!w||this.state===Ia||w.live&&this.levelLastLoaded!==u)return this.level=d,void(this.state=Ia);var x=f.len,_=this.getMaxBufferLength(u.maxBitrate);if(!(x>=_)){this.backtrackFragment&&this.backtrackFragment.start>f.end&&(this.backtrackFragment=null);var E=this.backtrackFragment?this.backtrackFragment.start:f.end,A=this.getNextFragment(E,w);if(this.couldBacktrack&&!this.fragPrevious&&A&&A.sn!=="initSegment"&&this.fragmentTracker.getState(A)!==gn){var T,L=((T=this.backtrackFragment)!=null?T:A).sn-w.startSN,I=w.fragments[L-1];I&&A.cc===I.cc&&(A=I,this.fragmentTracker.removeFragment(I))}else this.backtrackFragment&&f.len&&(this.backtrackFragment=null);if(A&&this.isLoopLoading(A,E)){if(!A.gap){var P=this.audioOnly&&!this.altAudio?_t:Ft,G=(P===Ft?this.videoBuffer:this.mediaBuffer)||this.media;G&&this.afterBufferFlushed(G,P,Lt)}A=this.getNextFragmentLoopLoading(A,w,f,Lt,_)}A&&(!A.initSegment||A.initSegment.data||this.bitrateTest||(A=A.initSegment),this.loadFragment(A,u,E))}}}}},e.loadFragment=function(t,i,a){var s=this.fragmentTracker.getState(t);this.fragCurrent=t,s===fn||s===fo?t.sn==="initSegment"?this._loadInitSegment(t,i):this.bitrateTest?(this.log("Fragment "+t.sn+" of level "+t.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(t,i)):(this.startFragRequested=!0,l.prototype.loadFragment.call(this,t,i,a)):this.clearTrackerIfNeeded(t)},e.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,Lt)},e.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.end+.5):null},e.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},e.nextLevelSwitch=function(){var t=this.levels,i=this.media;if(i!=null&&i.readyState){var a,s=this.getAppendedFrag(i.currentTime);s&&s.start>1&&this.flushMainBuffer(0,s.start-1);var d=this.getLevelDetails();if(d!=null&&d.live){var u=this.getMainFwdBufferInfo();if(!u||u.len<2*d.targetduration)return}if(!i.paused&&t){var f=t[this.hls.nextLoadLevel],h=this.fragLastKbps;a=h&&this.fragCurrent?this.fragCurrent.duration*f.maxBitrate/(1e3*h)+1:0}else a=0;var m=this.getBufferedFrag(i.currentTime+a);if(m){var w=this.followingBufferedFrag(m);if(w){this.abortCurrentFrag();var x=w.maxStartPTS?w.maxStartPTS:w.start,_=w.duration,E=Math.max(m.end,x+Math.min(Math.max(_-this.config.maxFragLookUpTolerance,_*(this.couldBacktrack?.5:.125)),_*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(E,Number.POSITIVE_INFINITY)}}}},e.abortCurrentFrag=function(){var t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case kd:case mo:case vo:case Gr:case Ds:this.state=ot}this.nextLoadPosition=this.getLoadPosition()},e.flushMainBuffer=function(t,i){l.prototype.flushMainBuffer.call(this,t,i,this.altAudio?"video":null)},e.onMediaAttached=function(t,i){l.prototype.onMediaAttached.call(this,t,i);var a=i.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),a.addEventListener("playing",this.onvplaying),a.addEventListener("seeked",this.onvseeked),this.gapController=new O_(this.config,a,this.fragmentTracker,this.hls)},e.onMediaDetaching=function(){var t=this.media;t&&this.onvplaying&&this.onvseeked&&(t.removeEventListener("playing",this.onvplaying),t.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),l.prototype.onMediaDetaching.call(this)},e.onMediaPlaying=function(){this.tick()},e.onMediaSeeked=function(){var t=this.media,i=t?t.currentTime:null;te(i)&&this.log("Media seeked to "+i.toFixed(3));var a=this.getMainFwdBufferInfo();a!==null&&a.len!==0?this.tick():this.warn('Main forward buffer length on "seeked" event '+(a?a.len:"empty")+")")},e.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(y.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1},e.onManifestParsed=function(t,i){var a,s,d=!1,u=!1;i.levels.forEach(function(f){var h=f.audioCodec;h&&(d=d||h.indexOf("mp4a.40.2")!==-1,u=u||h.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=d&&u&&typeof((s=zf())==null||(a=s.prototype)==null?void 0:a.changeType)!="function",this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=i.levels,this.startFragRequested=!1},e.onLevelLoading=function(t,i){var a=this.levels;if(a&&this.state===ot){var s=a[i.level];(!s.details||s.details.live&&this.levelLastLoaded!==s||this.waitForCdnTuneIn(s.details))&&(this.state=Ia)}},e.onLevelLoaded=function(t,i){var a,s=this.levels,d=i.level,u=i.details,f=u.totalduration;if(s){this.log("Level "+d+" loaded ["+u.startSN+","+u.endSN+"]"+(u.lastPartSn?"[part-"+u.lastPartSn+"-"+u.lastPartIndex+"]":"")+", cc ["+u.startCC+", "+u.endCC+"] duration:"+f);var h=s[d],m=this.fragCurrent;!m||this.state!==mo&&this.state!==vo||m.level!==i.level&&m.loader&&this.abortCurrentFrag();var w=0;if(u.live||(a=h.details)!=null&&a.live){var x;if(this.checkLiveUpdate(u),u.deltaUpdateFailed)return;w=this.alignPlaylists(u,h.details,(x=this.levelLastLoaded)==null?void 0:x.details)}if(h.details=u,this.levelLastLoaded=h,this.hls.trigger(y.LEVEL_UPDATED,{details:u,level:d}),this.state===Ia){if(this.waitForCdnTuneIn(u))return;this.state=ot}this.startFragRequested?u.live&&this.synchronizeToLiveEdge(u):this.setStartPosition(u,w),this.tick()}else this.warn("Levels were reset while loading level "+d)},e._handleFragmentLoadProgress=function(t){var i,a=t.frag,s=t.part,d=t.payload,u=this.levels;if(u){var f=u[a.level],h=f.details;if(!h)return this.warn("Dropping fragment "+a.sn+" of level "+a.level+" after level details were reset"),void this.fragmentTracker.removeFragment(a);var m=f.videoCodec,w=h.PTSKnown||!h.live,x=(i=a.initSegment)==null?void 0:i.data,_=this._getAudioCodec(f),E=this.transmuxer=this.transmuxer||new tf(this.hls,Lt,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),A=s?s.index:-1,T=A!==-1,L=new xd(a.level,a.sn,a.stats.chunkCount,d.byteLength,A,T),I=this.initPTS[a.cc];E.push(d,x,_,m,a,s,h.totalduration,w,L,I)}else this.warn("Levels were reset while fragment load was in progress. Fragment "+a.sn+" of level "+a.level+" will not be buffered")},e.onAudioTrackSwitching=function(t,i){var a=this.altAudio;if(!i.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var d=this.hls;a&&(d.trigger(y.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),d.trigger(y.AUDIO_TRACK_SWITCHED,i)}},e.onAudioTrackSwitched=function(t,i){var a=i.id,s=!!this.hls.audioTracks[a].url;if(s){var d=this.videoBuffer;d&&this.mediaBuffer!==d&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=d)}this.altAudio=s,this.tick()},e.onBufferCreated=function(t,i){var a,s,d=i.tracks,u=!1;for(var f in d){var h=d[f];if(h.id==="main"){if(s=f,a=h,f==="video"){var m=d[f];m&&(this.videoBuffer=m.buffer)}}else u=!0}u&&a?(this.log("Alternate track found, use "+s+".buffered to schedule main fragment loading"),this.mediaBuffer=a.buffer):this.mediaBuffer=this.media},e.onFragBuffered=function(t,i){var a=i.frag,s=i.part;if(!a||a.type===Lt){if(this.fragContextChanged(a))return this.warn("Fragment "+a.sn+(s?" p: "+s.index:"")+" of level "+a.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===Ds&&(this.state=ot));var d=s?s.stats:a.stats;this.fragLastKbps=Math.round(8*d.total/(d.buffering.end-d.loading.first)),a.sn!=="initSegment"&&(this.fragPrevious=a),this.fragBufferedComplete(a,s)}},e.onError=function(t,i){var a;if(i.fatal)this.state=bo;else switch(i.details){case z.FRAG_GAP:case z.FRAG_PARSING_ERROR:case z.FRAG_DECRYPT_ERROR:case z.FRAG_LOAD_ERROR:case z.FRAG_LOAD_TIMEOUT:case z.KEY_LOAD_ERROR:case z.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Lt,i);break;case z.LEVEL_LOAD_ERROR:case z.LEVEL_LOAD_TIMEOUT:case z.LEVEL_PARSING_ERROR:i.levelRetry||this.state!==Ia||((a=i.context)==null?void 0:a.type)!==Da||(this.state=ot);break;case z.BUFFER_APPEND_ERROR:case z.BUFFER_FULL_ERROR:if(!i.parent||i.parent!=="main")return;if(i.details===z.BUFFER_APPEND_ERROR)return void this.resetLoadingState();this.reduceLengthAndFlushBuffer(i)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case z.INTERNAL_EXCEPTION:this.recoverWorkerError(i)}},e.checkBuffer=function(){var t=this.media,i=this.gapController;if(t&&i&&t.readyState){if(this.loadedmetadata||!Yt.getBuffered(t).length){var a=this.state!==ot?this.fragCurrent:null;i.poll(this.lastCurrentTime,a)}this.lastCurrentTime=t.currentTime}},e.onFragLoadEmergencyAborted=function(){this.state=ot,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},e.onBufferFlushed=function(t,i){var a=i.type;if(a!==_t||this.audioOnly&&!this.altAudio){var s=(a===Ft?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(s,a,Lt),this.tick()}},e.onLevelsUpdated=function(t,i){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=i.levels},e.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},e.seekToStartPos=function(){var t=this.media;if(t){var i=t.currentTime,a=this.startPosition;if(a>=0&&i<a){if(t.seeking)return void this.log("could not seek to "+a+", already seeking at "+i);var s=Yt.getBuffered(t),d=(s.length?s.start(0):0)-a;d>0&&(d<this.config.maxBufferHole||d<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by "+d+" to match buffer start"),a+=d,this.startPosition=a),this.log("seek to target start position "+a+" from current time "+i),t.currentTime=a}}},e._getAudioCodec=function(t){var i=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&i&&(this.log("Swapping audio codec"),i=i.indexOf("mp4a.40.5")!==-1?"mp4a.40.2":"mp4a.40.5"),i},e._loadBitrateTestFrag=function(t,i){var a=this;t.bitrateTest=!0,this._doFragLoad(t,i).then(function(s){var d=a.hls;if(s&&!a.fragContextChanged(t)){i.fragmentError=0,a.state=ot,a.startFragRequested=!1,a.bitrateTest=!1;var u=t.stats;u.parsing.start=u.parsing.end=u.buffering.start=u.buffering.end=self.performance.now(),d.trigger(y.FRAG_LOADED,s),t.bitrateTest=!1}})},e._handleTransmuxComplete=function(t){var i,a="main",s=this.hls,d=t.remuxResult,u=t.chunkMeta,f=this.getCurrentContext(u);if(f){var h=f.frag,m=f.part,w=f.level,x=d.video,_=d.text,E=d.id3,A=d.initSegment,T=w.details,L=this.altAudio?void 0:d.audio;if(this.fragContextChanged(h))this.fragmentTracker.removeFragment(h);else{if(this.state=Gr,A){if(A!=null&&A.tracks){var I=h.initSegment||h;this._bufferInitSegment(w,A.tracks,I,u),s.trigger(y.FRAG_PARSING_INIT_SEGMENT,{frag:I,id:a,tracks:A.tracks})}var P=A.initPTS,G=A.timescale;te(P)&&(this.initPTS[h.cc]={baseTime:P,timescale:G},s.trigger(y.INIT_PTS_FOUND,{frag:h,id:a,initPTS:P,timescale:G}))}if(x&&T&&h.sn!=="initSegment"){var $=T.fragments[h.sn-1-T.startSN],B=h.sn===T.startSN,J=!$||h.cc>$.cc;if(d.independent!==!1){var X=x.startPTS,ee=x.endPTS,ae=x.startDTS,be=x.endDTS;if(m)m.elementaryStreams[x.type]={startPTS:X,endPTS:ee,startDTS:ae,endDTS:be};else if(x.firstKeyFrame&&x.independent&&u.id===1&&!J&&(this.couldBacktrack=!0),x.dropped&&x.independent){var Te=this.getMainFwdBufferInfo(),Ie=(Te?Te.end:this.getLoadPosition())+this.config.maxBufferHole,De=x.firstKeyFramePTS?x.firstKeyFramePTS:X;if(!B&&Ie<De-this.config.maxBufferHole&&!J)return void this.backtrack(h);J&&(h.gap=!0),h.setElementaryStreamInfo(x.type,h.start,ee,h.start,be,!0)}else B&&X>2&&(h.gap=!0);h.setElementaryStreamInfo(x.type,X,ee,ae,be),this.backtrackFragment&&(this.backtrackFragment=h),this.bufferFragmentData(x,h,m,u,B||J)}else{if(!B&&!J)return void this.backtrack(h);h.gap=!0}}if(L){var Ue=L.startPTS,Ae=L.endPTS,Ne=L.startDTS,Ke=L.endDTS;m&&(m.elementaryStreams[_t]={startPTS:Ue,endPTS:Ae,startDTS:Ne,endDTS:Ke}),h.setElementaryStreamInfo(_t,Ue,Ae,Ne,Ke),this.bufferFragmentData(L,h,m,u)}if(T&&E!=null&&(i=E.samples)!=null&&i.length){var je={id:a,frag:h,details:T,samples:E.samples};s.trigger(y.FRAG_PARSING_METADATA,je)}if(T&&_){var We={id:a,frag:h,details:T,samples:_.samples};s.trigger(y.FRAG_PARSING_USERDATA,We)}}}else this.resetWhenMissingContext(u)},e._bufferInitSegment=function(t,i,a,s){var d=this;if(this.state===Gr){this.audioOnly=!!i.audio&&!i.video,this.altAudio&&!this.audioOnly&&delete i.audio;var u=i.audio,f=i.video,h=i.audiovideo;if(u){var m=t.audioCodec,w=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(m&&(m=m.indexOf("mp4a.40.5")!==-1?"mp4a.40.2":"mp4a.40.5"),u.metadata.channelCount!==1&&w.indexOf("firefox")===-1&&(m="mp4a.40.5")),m&&m.indexOf("mp4a.40.5")!==-1&&w.indexOf("android")!==-1&&u.container!=="audio/mpeg"&&(m="mp4a.40.2",this.log("Android: force audio codec to "+m)),t.audioCodec&&t.audioCodec!==m&&this.log('Swapping manifest audio codec "'+t.audioCodec+'" for "'+m+'"'),u.levelCodec=m,u.id="main",this.log("Init audio buffer, container:"+u.container+", codecs[selected/level/parsed]=["+(m||"")+"/"+(t.audioCodec||"")+"/"+u.codec+"]")}f&&(f.levelCodec=t.videoCodec,f.id="main",this.log("Init video buffer, container:"+f.container+", codecs[level/parsed]=["+(t.videoCodec||"")+"/"+f.codec+"]")),h&&this.log("Init audiovideo buffer, container:"+h.container+", codecs[level/parsed]=["+t.codecs+"/"+h.codec+"]"),this.hls.trigger(y.BUFFER_CODECS,i),Object.keys(i).forEach(function(x){var _=i[x].initSegment;_!=null&&_.byteLength&&d.hls.trigger(y.BUFFER_APPENDING,{type:x,data:_,frag:a,part:null,chunkMeta:s,parent:a.type})}),this.tickImmediate()}},e.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Lt)},e.backtrack=function(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=ot},e.checkFragmentChanged=function(){var t=this.media,i=null;if(t&&t.readyState>1&&t.seeking===!1){var a=t.currentTime;if(Yt.isBuffered(t,a)?i=this.getAppendedFrag(a):Yt.isBuffered(t,a+.1)&&(i=this.getAppendedFrag(a+.1)),i){this.backtrackFragment=null;var s=this.fragPlaying,d=i.level;s&&i.sn===s.sn&&s.level===d||(this.fragPlaying=i,this.hls.trigger(y.FRAG_CHANGED,{frag:i}),s&&s.level===d||this.hls.trigger(y.LEVEL_SWITCHED,{level:d}))}}},C(o,[{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"currentFrag",get:function(){var t=this.media;return t?this.fragPlaying||this.getAppendedFrag(t.currentTime):null}},{key:"currentProgramDateTime",get:function(){var t=this.media;if(t){var i=t.currentTime,a=this.currentFrag;if(a&&te(i)&&te(a.programDateTime)){var s=a.programDateTime+1e3*(i-a.start);return new Date(s)}}return null}},{key:"currentLevel",get:function(){var t=this.currentFrag;return t?t.level:-1}},{key:"nextBufferedFrag",get:function(){var t=this.currentFrag;return t?this.followingBufferedFrag(t):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),o}(_d),Uf=function(){function l(e){e===void 0&&(e={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new Fs,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,st(e.debug||!1,"Hls instance");var t=this.config=function(ae,be){if((be.liveSyncDurationCount||be.liveMaxLatencyDurationCount)&&(be.liveSyncDuration||be.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(be.liveMaxLatencyDurationCount!==void 0&&(be.liveSyncDurationCount===void 0||be.liveMaxLatencyDurationCount<=be.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(be.liveMaxLatencyDuration!==void 0&&(be.liveSyncDuration===void 0||be.liveMaxLatencyDuration<=be.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var Te=Qd(ae),Ie=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach(function(De){var Ue=(De==="level"?"playlist":De)+"LoadPolicy",Ae=be[Ue]===void 0,Ne=[];Ie.forEach(function(Ke){var je=De+"Loading"+Ke,We=be[je];if(We!==void 0&&Ae){Ne.push(je);var vt=Te[Ue].default;switch(be[Ue]={default:vt},Ke){case"TimeOut":vt.maxLoadTimeMs=We,vt.maxTimeToFirstByteMs=We;break;case"MaxRetry":vt.errorRetry.maxNumRetry=We,vt.timeoutRetry.maxNumRetry=We;break;case"RetryDelay":vt.errorRetry.retryDelayMs=We,vt.timeoutRetry.retryDelayMs=We;break;case"MaxRetryTimeout":vt.errorRetry.maxRetryDelayMs=We,vt.timeoutRetry.maxRetryDelayMs=We}}}),Ne.length&&j.warn('hls.js config: "'+Ne.join('", "')+'" setting(s) are deprecated, use "'+Ue+'": '+JSON.stringify(be[Ue]))}),b(b({},Te),be)}(l.DefaultConfig,e);this.userConfig=e,t.progressive&&D_(t);var i=t.abrController,a=t.bufferController,s=t.capLevelController,d=t.errorController,u=t.fpsController,f=new d(this),h=this.abrController=new i(this),m=this.bufferController=new a(this),w=this.capLevelController=new s(this),x=new u(this),_=new $1(this),E=new K1(this),A=t.contentSteeringController,T=A?new A(this):null,L=this.levelController=new I_(this,T),I=new ok(this),P=new P_(this.config),G=this.streamController=new M_(this,I,P);w.setStreamController(G),x.setStreamController(G);var $=[_,L,G];T&&$.splice(1,0,T),this.networkControllers=$;var B=[h,m,w,x,E,I];this.audioTrackController=this.createController(t.audioTrackController,$);var J=t.audioStreamController;J&&$.push(new J(this,I,P)),this.subtitleTrackController=this.createController(t.subtitleTrackController,$);var X=t.subtitleStreamController;X&&$.push(new X(this,I,P)),this.createController(t.timelineController,B),P.emeController=this.emeController=this.createController(t.emeController,B),this.cmcdController=this.createController(t.cmcdController,B),this.latencyController=this.createController(Y1,B),this.coreComponents=B,$.push(f);var ee=f.onErrorOut;typeof ee=="function"&&this.on(y.ERROR,ee,f)}l.isMSESupported=function(){return Bf()},l.isSupported=function(){return function(){if(!Bf())return!1;var e=nr();return typeof(e==null?void 0:e.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(function(t){return e.isTypeSupported(cn(t,"video"))})||["mp4a.40.2","fLaC"].some(function(t){return e.isTypeSupported(cn(t,"audio"))}))}()},l.getMediaSource=function(){return nr()};var o=l.prototype;return o.createController=function(e,t){if(e){var i=new e(this);return t&&t.push(i),i}return null},o.on=function(e,t,i){i===void 0&&(i=this),this._emitter.on(e,t,i)},o.once=function(e,t,i){i===void 0&&(i=this),this._emitter.once(e,t,i)},o.removeAllListeners=function(e){this._emitter.removeAllListeners(e)},o.off=function(e,t,i,a){i===void 0&&(i=this),this._emitter.off(e,t,i,a)},o.listeners=function(e){return this._emitter.listeners(e)},o.emit=function(e,t,i){return this._emitter.emit(e,t,i)},o.trigger=function(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(a){if(j.error("An internal error happened while handling event "+e+'. Error message: "'+a.message+'". Here is a stacktrace:',a),!this.triggeringException){this.triggeringException=!0;var i=e===y.ERROR;this.trigger(y.ERROR,{type:re.OTHER_ERROR,details:z.INTERNAL_EXCEPTION,fatal:i,event:e,error:a}),this.triggeringException=!1}}return!1},o.listenerCount=function(e){return this._emitter.listenerCount(e)},o.destroy=function(){j.log("destroy"),this.trigger(y.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(t){return t.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(t){return t.destroy()}),this.coreComponents.length=0;var e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null},o.attachMedia=function(e){j.log("attachMedia"),this._media=e,this.trigger(y.MEDIA_ATTACHING,{media:e})},o.detachMedia=function(){j.log("detachMedia"),this.trigger(y.MEDIA_DETACHING,void 0),this._media=null},o.loadSource=function(e){this.stopLoad();var t=this.media,i=this.url,a=this.url=_e.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,j.log("loadSource:"+a),t&&i&&(i!==a||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(y.MANIFEST_LOADING,{url:e})},o.startLoad=function(e){e===void 0&&(e=-1),j.log("startLoad("+e+")"),this.started=!0,this.networkControllers.forEach(function(t){t.startLoad(e)})},o.stopLoad=function(){j.log("stopLoad"),this.started=!1,this.networkControllers.forEach(function(e){e.stopLoad()})},o.resumeBuffering=function(){this.started&&this.networkControllers.forEach(function(e){"fragmentLoader"in e&&e.startLoad(-1)})},o.pauseBuffering=function(){this.networkControllers.forEach(function(e){"fragmentLoader"in e&&e.stopLoad()})},o.swapAudioCodec=function(){j.log("swapAudioCodec"),this.streamController.swapAudioCodec()},o.recoverMediaError=function(){j.log("recoverMediaError");var e=this._media;this.detachMedia(),e&&this.attachMedia(e)},o.removeLevel=function(e){this.levelController.removeLevel(e)},o.setAudioOption=function(e){var t;return(t=this.audioTrackController)==null?void 0:t.setAudioOption(e)},o.setSubtitleOption=function(e){var t;return(t=this.subtitleTrackController)==null||t.setSubtitleOption(e),null},C(l,[{key:"levels",get:function(){var e=this.levelController.levels;return e||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(e){j.log("set currentLevel:"+e),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(e){j.log("set nextLevel:"+e),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(e){j.log("set loadLevel:"+e),this.levelController.manualLevel=e}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(e){this.levelController.nextLoadLevel=e}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(e){j.log("set firstLevel:"+e),this.levelController.firstLevel=e}},{key:"startLevel",get:function(){var e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e},set:function(e){j.log("set startLevel:"+e),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(e){var t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(e){this._autoLevelCapping!==e&&(j.log("set autoLevelCapping:"+e),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}},{key:"bandwidthEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimate():NaN},set:function(e){this.abrController.resetEstimator(e)}},{key:"ttfbEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(e){(function(t){return pd.indexOf(t)>-1})(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var e=this.levels,t=this.config.minAutoBitrate;if(!e)return 0;for(var i=e.length,a=0;a<i;a++)if(e[a].maxBitrate>=t)return a;return 0}},{key:"maxAutoLevel",get:function(){var e,t=this.levels,i=this.autoLevelCapping,a=this.maxHdcpLevel;if(e=i===-1&&t!=null&&t.length?t.length-1:i,a)for(var s=e;s--;){var d=t[s].attrs["HDCP-LEVEL"];if(d&&d<=a)return s}return e}},{key:"firstAutoLevel",get:function(){return this.abrController.firstAutoLevel}},{key:"nextAutoLevel",get:function(){return this.abrController.nextAutoLevel},set:function(e){this.abrController.nextAutoLevel=e}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"allAudioTracks",get:function(){var e=this.audioTrackController;return e?e.allAudioTracks:[]}},{key:"audioTracks",get:function(){var e=this.audioTrackController;return e?e.audioTracks:[]}},{key:"audioTrack",get:function(){var e=this.audioTrackController;return e?e.audioTrack:-1},set:function(e){var t=this.audioTrackController;t&&(t.audioTrack=e)}},{key:"allSubtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}},{key:"subtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTrack:-1},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var e=this.subtitleTrackController;return!!e&&e.subtitleDisplay},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(e){this.config.lowLatencyMode=e}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.5.8"}},{key:"Events",get:function(){return y}},{key:"ErrorTypes",get:function(){return re}},{key:"ErrorDetails",get:function(){return z}},{key:"DefaultConfig",get:function(){return l.defaultConfig?l.defaultConfig:Ff},set:function(e){l.defaultConfig=e}}]),l}();return Uf.defaultConfig=void 0,Uf},r.exports=g()})(!1)})(op);const $a=ap(op.exports);function Nl(r){return r==""||!r||r[0]==""||!r[0]?"-":r[0]}class W0{constructor(n,c,p){_r(this,"adsManager",null);_r(this,"displayContainer",null);_r(this,"loader",null);_r(this,"loaded",!1);_r(this,"cuePoints",null);_r(this,"countdownTimer");_r(this,"pollCountdown",(n=!1)=>{if(!n){clearInterval(this.countdownTimer);return}this.countdownTimer=setInterval(()=>{this.refs.adTime.value=Math.max(this.adsManager.getRemainingTime(),0)},100)});_r(this,"waitingForAds",!1);_r(this,"adsTimeout",0);this.container=n,this.videoElement=c,this.refs=p,setTimeout(()=>{this.refs.adsLoadedRes(!1)},5e3),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale("en"),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0),this.displayContainer=new google.ima.AdDisplayContainer(this.container.value,this.videoElement.value),this.loader=new google.ima.AdsLoader(this.displayContainer),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,g=>this.onAdError(g),!1),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,g=>{try{const v=new google.ima.AdsRenderingSettings;v.restoreCustomPlaybackStateOnAdBreakComplete=!0,v.enablePreloading=!0,this.adsManager=g.getAdsManager(this.videoElement.value,v),this.cuePoints=this.adsManager.getCuePoints(),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,b=>this.onAdError(b)),new ResizeObserver(b=>{this.adsManager&&this.adsManager.resize(b[0].contentRect.width,b[0].contentRect.height,google.ima.ViewMode.NORMAL)}).observe(this.videoElement.value),Object.keys(google.ima.AdEvent.Type).forEach(b=>{this.adsManager.addEventListener(google.ima.AdEvent.Type[b],k=>{var ce,se,ge,pe,_e,te,xe,de,y,re,z,Se,ye,Re,dt,st,j,he,qe,Pe,qt,Mt,kt,_t,Ft,Et,Nt,Xt,xt,Li,Ze,si,It,O,N,Z,le,ue;const S=k.getAd();if(!S)return;let C=S.getAdPodInfo(),R=S.getCreativeId();R||(R=Nl(S.getWrapperCreativeIds()));let D=S.getAdSystem();D||(D=Nl(S.getWrapperAdSystems()));let M=S.getAdId();M||Nl(S.getWrapperAdIds());let H=null;try{H=C==null?void 0:C.getAdPosition()}catch(we){console.warn(we)}let W=null;try{W=C==null?void 0:C.getPodIndex()}catch(we){console.warn(we)}const Y={c:R,l:M,p:H,i:W,a:D,d:S==null?void 0:S.getDuration()};switch(k.type){case google.ima.AdEvent.Type.VOLUME_CHANGED:ni(this.refs.playerReference,(ce=this.refs.currentContent.value)==null?void 0:ce.key,ne.ad_unmuted,Y,(se=this.refs.currentContent.value)==null?void 0:se.isLive);break;case google.ima.AdEvent.Type.VOLUME_MUTED:this.refs.muted.value=!0,ni(this.refs.playerReference,(ge=this.refs.currentContent.value)==null?void 0:ge.key,ne.ad_muted,Y,(pe=this.refs.currentContent.value)==null?void 0:pe.isLive);break;case google.ima.AdEvent.Type.LOADED:this.pollCountdown(!0),ni(this.refs.playerReference,(_e=this.refs.currentContent.value)==null?void 0:_e.key,ne.ad_loaded,Y,(te=this.refs.currentContent.value)==null?void 0:te.isLive);break;case google.ima.AdEvent.Type.STARTED:this.adsManager.setVolume(this.refs.muted.value?0:this.refs.volume.value),this.refs.inAd.value=!0,this.refs.adPlaying.value=!0,ni(this.refs.playerReference,(xe=this.refs.currentContent.value)==null?void 0:xe.key,ne.ad_start,Y,(de=this.refs.currentContent.value)==null?void 0:de.isLive),this.refs.configuration.autoplay&&!this.refs.currentContent.value.isLive&&ni(this.refs.playerReference,(y=this.refs.currentContent.value)==null?void 0:y.key,ne.ad_autoplayed,Y,(re=this.refs.currentContent.value)==null?void 0:re.isLive),ni(this.refs.playerReference,(z=this.refs.currentContent.value)==null?void 0:z.key,this.refs.muted.value?ne.ad_played_muted:ne.ad_played_unmuted,Y,(Se=this.refs.currentContent.value)==null?void 0:Se.isLive);break;case google.ima.AdEvent.Type.PAUSED:this.refs.adPlaying.value=!1,ni(this.refs.playerReference,(ye=this.refs.currentContent.value)==null?void 0:ye.key,ne.ad_pause,Y,(Re=this.refs.currentContent.value)==null?void 0:Re.isLive);break;case google.ima.AdEvent.Type.RESUMED:this.refs.adPlaying.value=!0,ni(this.refs.playerReference,(dt=this.refs.currentContent.value)==null?void 0:dt.key,ne.ad_resume,Y,(st=this.refs.currentContent.value)==null?void 0:st.isLive);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.loader.contentComplete(),this.requestAds(),ni(this.refs.playerReference,(j=this.refs.currentContent.value)==null?void 0:j.key,ne.ads_complete,Y,(he=this.refs.currentContent.value)==null?void 0:he.isLive),this.refs.adPlaying.value=!1,this.refs.inAd.value=!1;break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.refs.pause(!0),ni(this.refs.playerReference,(qe=this.refs.currentContent.value)==null?void 0:qe.key,ne.ad_cont_pause,Y,(Pe=this.refs.currentContent.value)==null?void 0:Pe.isLive);break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.refs.adPlaying.value=!1,this.refs.inAd.value=!1;const we=this.refs.videoWrapperVisible.value||!this.refs.configuration.pauseContentWhenInvisible;this.refs.started.value&&we&&this.refs.play(!0),ni(this.refs.playerReference,(qt=this.refs.currentContent.value)==null?void 0:qt.key,ne.ad_cont_resume,Y,(Mt=this.refs.currentContent.value)==null?void 0:Mt.isLive);break;case google.ima.AdEvent.Type.SKIPPED:this.refs.adPlaying.value=!1,this.refs.inAd.value=!1,ni(this.refs.playerReference,(kt=this.refs.currentContent.value)==null?void 0:kt.key,ne.ad_skip,Y,(_t=this.refs.currentContent.value)==null?void 0:_t.isLive);break;case google.ima.AdEvent.Type.THIRD_QUARTILE:ni(this.refs.playerReference,(Ft=this.refs.currentContent.value)==null?void 0:Ft.key,ne.ad_75,Y,(Et=this.refs.currentContent.value)==null?void 0:Et.isLive);break;case google.ima.AdEvent.Type.MIDPOINT:ni(this.refs.playerReference,(Nt=this.refs.currentContent.value)==null?void 0:Nt.key,ne.ad_50,Y,(Xt=this.refs.currentContent.value)==null?void 0:Xt.isLive);break;case google.ima.AdEvent.Type.FIRST_QUARTILE:ni(this.refs.playerReference,(xt=this.refs.currentContent.value)==null?void 0:xt.key,ne.ad_25,Y,(Li=this.refs.currentContent.value)==null?void 0:Li.isLive);break;case google.ima.AdEvent.Type.CLICK:ni(this.refs.playerReference,(Ze=this.refs.currentContent.value)==null?void 0:Ze.key,ne.ad_click,Y,(si=this.refs.currentContent.value)==null?void 0:si.isLive);break;case google.ima.AdEvent.Type.IMPRESSION:ni(this.refs.playerReference,(It=this.refs.currentContent.value)==null?void 0:It.key,ne.ad_impression,Y,(O=this.refs.currentContent.value)==null?void 0:O.isLive);break;case google.ima.AdEvent.Type.COMPLETE:this.refs.adPlaying.value=!1,this.refs.inAd.value=!1,ni(this.refs.playerReference,(N=this.refs.currentContent.value)==null?void 0:N.key,ne.ad_done,Y,(Z=this.refs.currentContent.value)==null?void 0:Z.isLive);break;case google.ima.AdEvent.Type.AD_CAN_PLAY:ni(this.refs.playerReference,(le=this.refs.currentContent.value)==null?void 0:le.key,ne.ad_can_play,Y,(ue=this.refs.currentContent.value)==null?void 0:ue.isLive);break;case google.ima.AdEvent.Type.LOG:break;case google.ima.AdEvent.Type.DURATION_CHANGE:break;case google.ima.AdEvent.Type.AD_BUFFERING:break;default:console.warn(`Unknown: ${k.type}`);break}})}),this.adsManager.setVolume(this.refs.muted.value?0:this.refs.volume.value),this.displayContainer.initialize(),this.adsManager.init(n.offsetWidth,n.offsetHeight,google.ima.ViewMode.NORMAL),console.log("ParOne Ads Loaded"),this.refs.adsLoadedRes(!0),this.loaded=!0}catch(v){this.refs.adsLoadedRes(!1),this.onAdError(v)}},!1),this.requestAds()}markEnded(){this.loader.contentComplete()}clearSeekedCuePoints(){this.cuePoints.length}async startAd(){var n;if(this.adsTimeout||(this.adsTimeout=Date.now()),!this.waitingForAds){if(Date.now()-this.adsTimeout>((n=this.refs.configuration)!=null&&n.usesHeaderBidding?2500:1500))return this.refs.adsLoadedRes(!1);this.adsManager&&this.loaded?(this.adsManager.setVolume(this.refs.muted.value?0:this.refs.volume.value),this.adsTimeout=0,this.waitingForAds=!1,this.adsManager.start()):(this.waitingForAds=!0,setTimeout(()=>this.startAd,10))}}stop(){this.adsManager.stop(),this.loader.contentComplete()}async requestAds(){var n,c,p,g,v;if(!!this.refs.useAds.value)try{const b=new google.ima.AdsRequest;if(b.adTagUrl=(n=this.refs.configuration)!=null&&n.usesHeaderBidding?await this.refs.getHeaderBiddingTag():this.refs.tagUrl.value,!b.adTagUrl)return console.warn("Could not find VAST tag."),this.refs.adsLoadedRes(!1);b.linearAdSlotWidth=(c=this.container.value)==null?void 0:c.offsetWidth,b.linearAdSlotHeight=(p=this.container.value)==null?void 0:p.offsetHeight,b.nonLinearAdSlotWidth=(g=this.container.value)==null?void 0:g.offsetWidth,b.nonLinearAdSlotHeight=(v=this.container.value)==null?void 0:v.offsetHeight,b.forceNonLinearFullSlot=!1,b.setAdWillPlayMuted(this.refs.configuration.autoplay&&this.refs.configuration.autoplayMuted),b.setAdWillAutoPlay(this.refs.configuration.autoplay),this.loader.requestAds(b,{})}catch(b){this.onAdError(b)}}startAdsFromID3Marker(){var n,c;this.adsManager.init((n=this.container.value)==null?void 0:n.offsetWidth,(c=this.container.value)==null?void 0:c.offsetHeight,google.ima.ViewMode.NORMAL),this.adsManager.start()}setAdVolume(n){var c;(c=this.adsManager)==null||c.setVolume(n)}discardAdBreak(){this.adsManager.discardAdBreak(),this.refs.inAd.value=!1}pause(){var n;(n=this.adsManager)==null||n.pause(),this.refs.adPlaying.value=!1}resume(){var n;(n=this.adsManager)==null||n.resume(),this.refs.adPlaying.value=!0}destroy(){this.adsManager&&this.adsManager.destroy(),this.displayContainer&&this.displayContainer.destroy(),this.loader&&this.loader.destroy(),this.refs.adPlaying.value=!1,this.refs.inAd.value=!1,this.countdownTimer&&clearInterval(this.countdownTimer)}onAdError(n){let c;try{c=n.getError()}catch{}console.error("There was an error with loading an ad.",c?{message:c==null?void 0:c.getMessage(),vastErrorCode:c==null?void 0:c.getVastErrorCode(),innerError:c==null?void 0:c.getInnerError(),type:c==null?void 0:c.getType(),errorCode:c==null?void 0:c.getErrorCode()}:n),this.refs.adPlaying.value=!1,this.refs.inAd.value=!1,this.refs.adsLoadedRes(!1),this.refs.started.value&&!this.refs.pausedByUser.value&&this.refs.play(!0)}}var zl={exports:{}};(function(r,n){(function(c,p){r.exports=p()})(Y0,function(){return function(c){function p(v){if(g[v])return g[v].exports;var b=g[v]={i:v,l:!1,exports:{}};return c[v].call(b.exports,b,b.exports,p),b.l=!0,b.exports}var g={};return p.m=c,p.c=g,p.d=function(v,b,k){p.o(v,b)||Object.defineProperty(v,b,{configurable:!1,enumerable:!0,get:k})},p.n=function(v){var b=v&&v.__esModule?function(){return v.default}:function(){return v};return p.d(b,"a",b),b},p.o=function(v,b){return Object.prototype.hasOwnProperty.call(v,b)},p.p="",p(p.s=1)}([function(c,p,g){function v(k){var S=k===void 0?{}:k,C=S.ESCAPE,R=C===void 0?/^\\/:C,D=S.VARIABLE_START,M=D===void 0?/^\${\s*/:D,H=S.VARIABLE_END,W=H===void 0?/^\s*}/:H,Y=S.PIPE_START,ce=Y===void 0?/^\s*\|\s*/:Y,se=S.PIPE_PARAMETER_START,ge=se===void 0?/^\s*:\s*/:se,pe=S.QUOTED_STRING,_e=pe===void 0?p.DEFAULT_QUOTED_STRING_REGEX:pe,te=S.QUOTED_STRING_TEST,xe=te===void 0?null:te,de=S.QUOTED_STRING_GET_AND_ADVANCE,y=de===void 0?null:de,re=S.QUOTED_STRING_IN_PARAMETER_TEST,z=re===void 0?null:re,Se=S.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,ye=Se===void 0?null:Se,Re=xe||function(he){return _e.test(he)},dt=y||b(_e),st=z||function(he){return _e.test(he)},j=ye||b(_e);return function(he){function qe(fe){fe===void 0&&(fe=1),Ze=Ze.substr(fe)}function Pe(fe){fe===void 0&&(fe=/^/),qe(Ze.match(fe)[0].length)}function qt(){var fe;return Pe(R),fe=Ze.length>0?Ze[0]:"",qe(),fe}function Mt(fe){var ke=(fe===void 0?{}:fe).isNull,me=ke!==void 0&&ke;N={name:"",pipes:[]},ue=!me}function kt(){si.variables.push(N),Mt({isNull:!0})}function _t(fe){var ke=(fe===void 0?{}:fe).isNull,me=ke!==void 0&&ke;Z={name:"",parameters:[]},we=!me}function Ft(){N.pipes.push(Z),_t({isNull:!0})}function Et(fe){var ke=(fe===void 0?{}:fe).isNull,me=ke!==void 0&&ke;le="",Ee=!me}function Nt(){Z.parameters.push(le),Et({isNull:!0})}function Xt(){return!!W.test(Ze)&&(Pe(W),It>=3&&Nt(),It>=2&&Ft(),It>=1&&kt(),It=0,!0)}function xt(){return!!ce.test(Ze)&&(Pe(ce),It>=3&&Nt(),It>=2&&Ft(),It>=1&&_t(),It=2,!0)}function Li(){return!!ge.test(Ze)&&(Pe(ge),It>=3&&Nt(),It>=2&&Et(),It=3,!0)}for(var Ze=he,si={literals:[],variables:[]},It=0,O="",N={name:"",pipes:[]},Z={name:"",parameters:[]},le="",ue=!1,we=!1,Ee=!1;Ze&&Ze.length>0;)switch(It){case 0:if(R.test(Ze)){O+=qt();continue}if(M.test(Ze)){It=1,Mt(),si.literals.push(O),O="",Pe(M);continue}O+=Ze[0],qe();break;case 1:if(R.test(Ze)){N.name+=qt();continue}if(Xt()||xt())continue;if(Re(Ze)){N.name+=dt(Ze,qe);continue}N.name+=Ze[0],qe();break;case 2:if(R.test(Ze)){Z.name+=qt();continue}if(Xt()||Li()||xt())continue;if(Re(Ze)){Z.name+=dt(Ze,qe);continue}Z.name+=Ze[0],qe();break;case 3:if(R.test(Ze)){le+=qt();continue}if(Xt()||Li()||xt())continue;if(st(Ze)){le+=j(Ze,qe);continue}le+=Ze[0],qe()}return Ee&&Z.parameters.push(le),we&&N.pipes.push(Z),ue&&si.variables.push(N),si.literals.push(O),si}}function b(k){return function(S,C){var R=S.match(k);return C(R[0].length),R.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(p,"__esModule",{value:!0}),p.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,p.parseStringTemplateGenerator=v,p.parseStringTemplate=v(),p.getQuotedStringAndAdvanceForRegex=b},function(c,p,g){c.exports=g(2)},function(c,p,g){function v(b){for(var k in b)p.hasOwnProperty(k)||(p[k]=b[k])}Object.defineProperty(p,"__esModule",{value:!0}),v(g(0)),v(g(3))},function(c,p,g){function v(R){return function(D){return R.hasOwnProperty(D)?R[D]:D.split(".").reduce(function(M,H){return M.hasOwnProperty(H)?M[H]:""},R)}}function b(R,D,M,H){H===void 0&&(H=v(D));var W=H(R.name);return R.pipes.reduce(function(Y,ce){return M.hasOwnProperty(ce.name)?M[ce.name](Y,ce.parameters):Y},W==null?"":W)}function k(R,D,M,H){return H===void 0&&(H=v(D)),R.literals.length===0?"":R.literals.slice(1).reduce(function(W,Y,ce){return""+W+b(R.variables[ce],D,M,H)+Y},R.literals[0])}function S(R,D,M){return k(C.parseStringTemplate(R),D,M)}Object.defineProperty(p,"__esModule",{value:!0});var C=g(0);p.evaluateParsedString=k,p.evaluateStringTemplate=S}])})})(zl);var Ha={},np={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=[["Serbian","\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A","sr","srp","srp"],["Romanian, Moldavian, Moldovan","Rom\xE2n\u0103","ro","ron","rum"],["Sichuan Yi, Nuosu","\uA188\uA320\uA4BF Nuosuhxop","ii","iii","iii"],["Tahitian","Reo Tahiti","ty","tah","tah"],["Tagalog","Wikang Tagalog","tl","tgl","tgl"],["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9","yi","yid","yid"],["Akan","Akan","ak","aka","aka"],["Malay","Bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648\u200E","ms","msa","may"],["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar","ara","ara"],["Norwegian","Norsk","no","nor","nor"],["Ojibwa","\u140A\u14C2\u1511\u14C8\u142F\u14A7\u140E\u14D0","oj","oji","oji"],["Fulah","Fulfulde, Pulaar, Pular","ff","ful","ful"],["Persian","\u0641\u0627\u0631\u0633\u06CC","fa","fas","per"],["Albanian","Shqip","sq","sqi","alb"],["Aymara","aymar aru","ay","aym","aym"],["Azerbaijani","az\u0259rbaycan dili","az","aze","aze"],["Chinese","\u4E2D\u6587 (Zh\u014Dngw\xE9n), \u6C49\u8BED, \u6F22\u8A9E","zh","zho","chi"],["Cree","\u14C0\u1426\u1403\u152D\u140D\u140F\u1423","cr","cre","cre"],["Estonian","eesti, eesti keel","et","est","est"],["Guaran\xED","Ava\xF1e'\u1EBD","gn","grn","grn"],["Inupiaq","I\xF1upiaq, I\xF1upiatun","ik","ipk","ipk"],["Inuktitut","\u1403\u14C4\u1483\u144E\u1450\u1466","iu","iku","iku"],["Kanuri","Kanuri","kr","kau","kau"],["Komi","\u043A\u043E\u043C\u0438 \u043A\u044B\u0432","kv","kom","kom"],["Kongo","Kikongo","kg","kon","kon"],["Kurdish","Kurd\xEE, \u06A9\u0648\u0631\u062F\u06CC\u200E","ku","kur","kur"],["Latvian","latvie\u0161u valoda","lv","lav","lav"],["Malagasy","fiteny malagasy","mg","mlg","mlg"],["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B","mn","mon","mon"],["Oromo","Afaan Oromoo","om","orm","orm"],["Pashto, Pushto","\u067E\u069A\u062A\u0648","ps","pus","pus"],["Quechua","Runa Simi, Kichwa","qu","que","que"],["Sardinian","sardu","sc","srd","srd"],["Swahili","Kiswahili","sw","swa","swa"],["Uzbek","O\u02BBzbek, \u040E\u0437\u0431\u0435\u043A, \u0623\u06C7\u0632\u0628\u06D0\u0643\u200E","uz","uzb","uzb"],["Zhuang, Chuang","Sa\u026F cue\u014B\u0185, Saw cuengh","za","zha","zha"],["Bislama","Bislama","bi","bis","bis"],["Norwegian Bokm\xE5l","Norsk Bokm\xE5l","nb","nob","nob"],["Norwegian Nynorsk","Norsk Nynorsk","nn","nno","nno"],["Indonesian","Bahasa Indonesia","id","ind","ind"],["Twi","Twi","tw","twi","twi"],["Esperanto","Esperanto","eo","epo","epo"],["Interlingua","Interlingua","ia","ina","ina"],["Interlingue","Originally called Occidental; then Interlingue after WWII","ie","ile","ile"],["Ido","Ido","io","ido","ido"],["Volap\xFCk","Volap\xFCk","vo","vol","vol"],["Bihari languages","\u092D\u094B\u091C\u092A\u0941\u0930\u0940","bh","bih","bih"],["Hebrew (modern)","\u05E2\u05D1\u05E8\u05D9\u05EA","he","heb","heb"],["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa","san","san"],["Church Slavic, Church Slavonic, Old Church Slavonic, Old Slavonic, Old Bulgarian","\u0469\u0437\u044B\u043A\u044A \u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A","cu","chu","chu"],["Pali","\u092A\u093E\u0934\u093F","pi","pli","pli"],["Avestan","avesta","ae","ave","ave"],["Latin","latine, lingua latina","la","lat","lat"],["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy","hye","arm"],["Swati","SiSwati","ss","ssw","ssw"],["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42","bo","bod","tib"],["South Ndebele","isiNdebele","nr","nbl","nbl"],["Slovene","Slovenski Jezik, Sloven\u0161\u010Dina","sl","slv","slv"],["Oriya","\u0B13\u0B21\u0B3C\u0B3F\u0B06","or","ori","ori"],["North Ndebele","isiNdebele","nd","nde","nde"],["Nauru","Dorerin Naoero","na","nau","nau"],["Maori","te reo M\u0101ori","mi","mri","mao"],["Marathi","\u092E\u0930\u093E\u0920\u0940","mr","mar","mar"],["Luba-Katanga","Kiluba","lu","lub","lub"],["Rundi","Ikirundi","rn","run","run"],["Central Khmer","\u1781\u17D2\u1798\u17C2\u179A, \u1781\u17C1\u1798\u179A\u1797\u17B6\u179F\u17B6, \u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A","km","khm","khm"],["Western Frisian","Frysk","fy","fry","fry"],["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn","ben","ben"],["Avaric","\u0430\u0432\u0430\u0440 \u043C\u0430\u0446\u04C0, \u043C\u0430\u0433\u04C0\u0430\u0440\u0443\u043B \u043C\u0430\u0446\u04C0","av","ava","ava"],["Abkhazian","\u0430\u04A7\u0441\u0443\u0430 \u0431\u044B\u0437\u0448\u04D9\u0430, \u0430\u04A7\u0441\u0448\u04D9\u0430","ab","abk","abk"],["Afar","Afaraf","aa","aar","aar"],["Afrikaans","Afrikaans","af","afr","afr"],["Amharic","\u12A0\u121B\u122D\u129B","am","amh","amh"],["Aragonese","aragon\xE9s","an","arg","arg"],["Assamese","\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE","as","asm","asm"],["Bambara","bamanankan","bm","bam","bam"],["Bashkir","\u0431\u0430\u0448\u04A1\u043E\u0440\u0442 \u0442\u0435\u043B\u0435","ba","bak","bak"],["Basque","euskara, euskera","eu","eus","baq"],["Belarusian","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u043C\u043E\u0432\u0430","be","bel","bel"],["Bosnian","bosanski jezik","bs","bos","bos"],["Breton","brezhoneg","br","bre","bre"],["Bulgarian","\u0431\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438 \u0435\u0437\u0438\u043A","bg","bul","bul"],["Burmese","\u1017\u1019\u102C\u1005\u102C","my","mya","bur"],["Catalan, Valencian","catal\xE0, valenci\xE0","ca","cat","cat"],["Chamorro","Chamoru","ch","cha","cha"],["Chechen","\u043D\u043E\u0445\u0447\u0438\u0439\u043D \u043C\u043E\u0442\u0442","ce","che","che"],["Chichewa, Chewa, Nyanja","chiChe\u0175a, chinyanja","ny","nya","nya"],["Chuvash","\u0447\u04D1\u0432\u0430\u0448 \u0447\u04D7\u043B\u0445\u0438","cv","chv","chv"],["Cornish","Kernewek","kw","cor","cor"],["Corsican","corsu, lingua corsa","co","cos","cos"],["Croatian","hrvatski jezik","hr","hrv","hrv"],["Czech","\u010De\u0161tina, \u010Desk\xFD jazyk","cs","ces","cze"],["Danish","dansk","da","dan","dan"],["Divehi, Dhivehi, Maldivian","\u078B\u07A8\u0788\u07AC\u0780\u07A8","dv","div","div"],["Dutch, Flemish","Nederlands, Vlaams","nl","nld","dut"],["Dzongkha","\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41","dz","dzo","dzo"],["English","English","en","eng","eng"],["Ewe","E\u028Begbe","ee","ewe","ewe"],["Faroese","f\xF8royskt","fo","fao","fao"],["Fijian","vosa Vakaviti","fj","fij","fij"],["Finnish","suomi, suomen kieli","fi","fin","fin"],["French","fran\xE7ais, langue fran\xE7aise","fr","fra","fre"],["Galician","Galego","gl","glg","glg"],["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka","kat","geo"],["German","Deutsch","de","deu","ger"],["Greek (modern)","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el","ell","gre"],["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu","guj","guj"],["Haitian, Haitian Creole","Krey\xF2l ayisyen","ht","hat","hat"],["Hausa","(Hausa) \u0647\u064E\u0648\u064F\u0633\u064E","ha","hau","hau"],["Herero","Otjiherero","hz","her","her"],["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940, \u0939\u093F\u0902\u0926\u0940","hi","hin","hin"],["Hiri Motu","Hiri Motu","ho","hmo","hmo"],["Hungarian","magyar","hu","hun","hun"],["Irish","Gaeilge","ga","gle","gle"],["Igbo","As\u1EE5s\u1EE5 Igbo","ig","ibo","ibo"],["Icelandic","\xCDslenska","is","isl","ice"],["Italian","Italiano","it","ita","ita"],["Japanese","\u65E5\u672C\u8A9E (\u306B\u307B\u3093\u3054)","ja","jpn","jpn"],["Javanese","\uA9A7\uA9B1\uA997\uA9AE, Basa Jawa","jv","jav","jav"],["Kalaallisut, Greenlandic","kalaallisut, kalaallit oqaasii","kl","kal","kal"],["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn","kan","kan"],["Kashmiri","\u0915\u0936\u094D\u092E\u0940\u0930\u0940, \u0643\u0634\u0645\u064A\u0631\u064A\u200E","ks","kas","kas"],["Kazakh","\u049B\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456","kk","kaz","kaz"],["Kikuyu, Gikuyu","G\u0129k\u0169y\u0169","ki","kik","kik"],["Kinyarwanda","Ikinyarwanda","rw","kin","kin"],["Kirghiz, Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430, \u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438","ky","kir","kir"],["Korean","\uD55C\uAD6D\uC5B4","ko","kor","kor"],["Kuanyama, Kwanyama","Kuanyama","kj","kua","kua"],["Luxembourgish, Letzeburgesch","L\xEBtzebuergesch","lb","ltz","ltz"],["Ganda","Luganda","lg","lug","lug"],["Limburgan, Limburger, Limburgish","Limburgs","li","lim","lim"],["Lingala","Ling\xE1la","ln","lin","lin"],["Lao","\u0E9E\u0EB2\u0EAA\u0EB2\u0EA5\u0EB2\u0EA7","lo","lao","lao"],["Lithuanian","lietuvi\u0173 kalba","lt","lit","lit"],["Manx","Gaelg, Gailck","gv","glv","glv"],["Macedonian","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A","mk","mkd","mac"],["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml","mal","mal"],["Maltese","Malti","mt","mlt","mlt"],["Marshallese","Kajin M\u0327aje\u013C","mh","mah","mah"],["Navajo, Navaho","Din\xE9 bizaad","nv","nav","nav"],["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne","nep","nep"],["Ndonga","Owambo","ng","ndo","ndo"],["Occitan","occitan, lenga d'\xF2c","oc","oci","oci"],["Ossetian, Ossetic","\u0438\u0440\u043E\u043D \xE6\u0432\u0437\u0430\u0433","os","oss","oss"],["Panjabi, Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa","pan","pan"],["Polish","j\u0119zyk polski, polszczyzna","pl","pol","pol"],["Portuguese","Portugu\xEAs","pt","por","por"],["Romansh","Rumantsch Grischun","rm","roh","roh"],["Russian","\u0440\u0443\u0441\u0441\u043A\u0438\u0439","ru","rus","rus"],["Sindhi","\u0938\u093F\u0928\u094D\u0927\u0940, \u0633\u0646\u068C\u064A\u060C \u0633\u0646\u062F\u06BE\u06CC\u200E","sd","snd","snd"],["Northern Sami","Davvis\xE1megiella","se","sme","sme"],["Samoan","gagana fa'a Samoa","sm","smo","smo"],["Sango","y\xE2ng\xE2 t\xEE s\xE4ng\xF6","sg","sag","sag"],["Gaelic, Scottish Gaelic","G\xE0idhlig","gd","gla","gla"],["Shona","chiShona","sn","sna","sna"],["Sinhala, Sinhalese","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si","sin","sin"],["Slovak","Sloven\u010Dina, Slovensk\xFD Jazyk","sk","slk","slo"],["Somali","Soomaaliga, af Soomaali","so","som","som"],["Southern Sotho","Sesotho","st","sot","sot"],["Spanish, Castilian","Espa\xF1ol","es","spa","spa"],["Sundanese","Basa Sunda","su","sun","sun"],["Swedish","Svenska","sv","swe","swe"],["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta","tam","tam"],["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te","tel","tel"],["Tajik","\u0442\u043E\u04B7\u0438\u043A\u04E3, to\xE7ik\u012B, \u062A\u0627\u062C\u06CC\u06A9\u06CC\u200E","tg","tgk","tgk"],["Thai","\u0E44\u0E17\u0E22","th","tha","tha"],["Tigrinya","\u1275\u130D\u122D\u129B","ti","tir","tir"],["Turkmen","T\xFCrkmen, \u0422\u04AF\u0440\u043A\u043C\u0435\u043D","tk","tuk","tuk"],["Tswana","Setswana","tn","tsn","tsn"],["Tongan (Tonga Islands)","Faka Tonga","to","ton","ton"],["Turkish","T\xFCrk\xE7e","tr","tur","tur"],["Tsonga","Xitsonga","ts","tso","tso"],["Tatar","\u0442\u0430\u0442\u0430\u0440 \u0442\u0435\u043B\u0435, tatar tele","tt","tat","tat"],["Uighur, Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5\u200E, Uyghurche","ug","uig","uig"],["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk","ukr","ukr"],["Urdu","\u0627\u0631\u062F\u0648","ur","urd","urd"],["Venda","Tshiven\u1E13a","ve","ven","ven"],["Vietnamese","Ti\u1EBFng Vi\u1EC7t","vi","vie","vie"],["Walloon","Walon","wa","wln","wln"],["Welsh","Cymraeg","cy","cym","wel"],["Wolof","Wollof","wo","wol","wol"],["Xhosa","isiXhosa","xh","xho","xho"],["Yoruba","Yor\xF9b\xE1","yo","yor","yor"],["Zulu","isiZulu","zu","zul","zul"]];r.default=n})(np),function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.by639_2B=r.by639_2T=r.by639_1=r.codes=void 0;var n=c(np);function c(S){return S&&S.__esModule?S:{default:S}}var p=[],g={},v={},b={};r.by639_2B=b,r.by639_2T=v,r.by639_1=g,r.codes=p,n.default.forEach(function(S){var C={name:S[0],nativeName:S[1],iso639_1:S[2],iso639_2T:S[3],iso639_2B:S[4]};g[S[2]]=v[S[3]]=b[S[4]]=C,p.push(C)});var k=p;r.default=k}(Ha);const q0=ap(Ha),Wo=navigator.platform.toLowerCase().includes("iphone");/^((?!chrome|android).)*safari/i.test(navigator.userAgent);const Bl=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)||/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.platform),ps=Boolean(window.WebKitPlaybackTargetAvailabilityEvent);let Ka=!1;document.createElement("video").webkitSetPresentationMode&&(Ka=!0),document.pictureInPictureEnabled&&!document.createElement("video").disablePictureInPicture&&(Ka=!0);const sp=$a.isSupported()&&!/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ul=Boolean(window.ampIntegration),X0="ontouchstart"in document.documentElement;async function Q0(r){const n=new TextEncoder().encode(r),c=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(c)).map(v=>v.toString(16).padStart(2,"0")).join("")}const ka=async(r,n)=>({emit:n,usesHeaderBidding:Object.keys(window).includes("paroneVastOverride"),env:r.env,feed:r.feed,playerId:r.playerId,hideEcom:r.hideEcom=="true",hideAll:r.hideAll=="true",hideOverlay:r.hideOverlay=="true",touchToPlay:r.touchToPlay=="true",key1:r.key1,key2:r.key2,key3:r.key3,key4:r.key4,windowUrl:r.windowUrl,position:r.position,vastOverride:r.vastOverride,sourceOverride:r.sourceOverride,dockedLogo:r.dockedLogo,vastOverrideDelay:r.vastOverrideDelay?parseInt(r.vastOverrideDelay):0,vastOverrideId:r.vastOverrideId,tput:r.tputHashed?r.tputHashed:r.tput?await Q0(r.tput):"",autoplay:r.autoplay=="true",dockable:r.dockable=="true",defaultRes:r.defaultRes?parseInt(r.defaultRes):0,dockableSticky:r.dockableSticky=="true",startDocked:r.startDocked=="true",startDockedPositionBottom:r.startDockedPositionBottom+"px",autoplayMuted:r.autoplaymuted=="true",pauseContentWhenInvisible:r.keepVideoPlayingOffscreen?r.keepVideoPlayingOffscreen=="false":!1,playThroughInvisibleAds:r.keepAdsPlayingOffscreen?r.keepAdsPlayingOffscreen=="true":!1,stylesheet:r.stylesheet,showTitle:!(r.hideTitle=="true"||r.styles||r.hideAll=="true"),showDescription:!(r.hideDescription=="true"||r.styles||r.hideAll=="true"),showLogo:!(r.hideLogo=="true"||r.styles||r.hideAll=="true"),defaultLangTwoLetter:oe(()=>{var p;if(Ha.by639_1[r.defaultlang])return r.defaultlang;const c=(p=r.defaultlang)==null?void 0:p.split("-");return Ha.by639_1[c[0]]?c[0]:(q0.find(g=>{var v;return g.name.toLowerCase()==((v=r.defaultlang)==null?void 0:v.toLowerCase())})||{iso639_1:"en"}).iso639_1})}),Vl=async(r,n,c)=>{var p,g,v;(p=window.Android)!=null&&p.hasOwnProperty(r)&&await window.Android[r](n),(v=(g=window.webkit)==null?void 0:g.messageHandlers)!=null&&v.hasOwnProperty(r)&&await window.webkit.messageHandlers[r].postMessage(n),c(r)},J0=async r=>await Vl("exitFullscreen","",r),Z0=async r=>await Vl("enterFullscreen","",r),ev=async r=>await Vl("videoEnded","",r),ht={},lp=r=>{var n,c;if(((n=r.target)==null?void 0:n.classList.contains("iphone-fs"))||!((c=r.target)!=null&&c.classList.length)){r.stopPropagation(),r.preventDefault();return}},Tt=(r,n)=>{if(!ht[r]&&n){const c=K(0),p=K(!1),g=K(!1),v=K(!1),b=K(!1),k=K(!1),S=K(!1),C=K(1),R=K(-1),D=K(-1),M=K(new Set),H=K(new Set),W=K(""),Y=K(""),ce=K([]),se=K(!1),ge=K(!1),pe=K(!1),_e=K(!1),te=K(!1),xe=K(!1),de=K(!1);K(!1);const y=K(!1),re=K(-1),z=K(!1),Se=K(!1),ye=K([]),Re=K(!1),dt=K(!1),st=K("en"),j=K(0),he=K(null),qe=K(null);let Pe=null,qt=null,Mt=null,kt=new Promise(ie=>qt=ie),_t=new Promise(ie=>Mt=ie);const Ft=oe(()=>{var ie,Fe;return(ie=ht[r].videoElement.value)!=null&&ie.webkitPresentationMode?ht[r].videoElement.value===document.pictureInPictureElement:((Fe=ht[r].videoElement.value)==null?void 0:Fe.webkitPresentationMode)==="picture-in-picture"}),Et=K(null),Nt=K(1),Xt=K(360),xt=K({}),Li=K({}),Ze=K([]),si=oe(()=>{var ie;return n.configuration.defaultRes||((ie=he.value)==null?void 0:ie.default_resolution)||""}),It=oe(()=>{var ie;return((ie=he.value)==null?void 0:ie.isLive)||he.value.livestream_key?Ml[Xt.value].name:Fl[Xt.value].name}),O=oe(()=>Ol.find(ie=>ie.speed==Nt.value).name),N=oe(()=>Object.values(xt.value||[]).map(ie=>ie.language).filter(ie=>ie)),Z=()=>{v.value=!1,y.value=!1,xe.value=!1,dt.value=!1,p.value=!1,D.value=0,R.value=0,c.value=0,ce.value=[],M.value=new Set,Ze.value=[]},le=async ie=>{var Fe,He;await _t,g.value=!1,v.value&&!p.value?Wi(r,ne.video_resume,he.value.key,D.value,he.value.isLive):(ra(r,M,he.value.key,ne.video_played,-1,he.value.isLive),n.configuration.autoplay&&ra(r,M,he.value.key,ne.video_autoplay,-1,he.value.isLive),ra(r,M,he.value.key,se.value?ne.video_played_muted:ne.video_played_unmuted,-1,he.value.isLive)),ar.value&&await kt;try{if(ar.value&&!ie&&Pe){if(xe.value&&!y.value)return Pe==null?void 0:Pe.resume();if(!v.value){await(Pe==null?void 0:Pe.startAd());return}}}catch(Gt){console.error(Gt)}finally{xe.value?y.value&&(v.value=!0):((Fe=ht[r].videoElement.value)==null||Fe.play(),(He=ht[r].videoElement.value)!=null&&He.paused||(p.value=!0,v.value=!0))}},ue=ie=>{var Fe;g.value=!0,!ie&&xe.value&&y.value?(Pe==null||Pe.pause(),_a(r,ne.ad_pause,he.value.key,{},he.value.isLive)):(p.value=!1,(Fe=ht[r].videoElement.value)==null||Fe.pause(),Wi(r,ne.video_pause,he.value.key,D.value,he.value.isLive))},we=async()=>{var ie;ht[r].videoElement.value.muted=!0,se.value=!0,Pe&&xe.value&&(Pe==null||Pe.setAdVolume(0),_a(r,ne.ad_muted,he.value.key,{},he.value.isLive)),(ie=he.value)!=null&&ie.key&&Wi(r,ne.video_muted,he.value.key,D.value,he.value.isLive)},Ee=async()=>{var ie;ht[r].videoElement.value.muted=!1,se.value=!1,Pe&&xe.value&&he.value.key&&(Pe==null||Pe.setAdVolume(C.value),_a(r,ne.ad_unmuted,he.value.key,{},he.value.isLive)),(ie=he.value)!=null&&ie.key&&Wi(r,ne.video_unmuted,he.value.key,D.value,he.value.isLive)},fe=(ie,Fe)=>{const He=+ie.toFixed(0),Gt=+Fe.toFixed(0);R.value=He,ce.value.findIndex(or=>or==He)<0&&v.value&&(D.value++,ce.value.push(He),av(r,M,ce.value.length,Gt,he.value.isLive,he.value.key))},ke=()=>{var ie;ps&&(Wi(r,ne.video_entered_airplay,he.value.key,D.value,he.value.isLive),(ie=ht[r].videoElement.value)==null||ie.webkitShowPlaybackTargetPicker())},me=ie=>{ie!=1/0&&(ht[r].videoElement.value.currentTime=ie)},Ce=()=>{k.value=!0,ue()},Be=(ie,Fe)=>{k.value=!0,me(ie),Fe&&le()},Oe=()=>{var ie;Et.value.loadSource((ie=he.value)==null?void 0:ie.url)},$e=()=>{var ie,Fe,He,Gt;ge.value=!0,te.value&&(pe.value=!0),li(),(ie=ht[r].videoOverlay.value)==null||ie.style.setProperty("--webkit-text-track-display","block"),Wo?Ul&&!((He=he.value)!=null&&He.useEcommerce)?ht[r].videoElement.value.webkitEnterFullscreen():(Gt=ht[r].videoOverlay.value)==null||Gt.addEventListener("touchmove",lp):(Fe=ht[r].videoOverlay.value)==null||Fe.requestFullscreen(),setTimeout(()=>{try{n.videoOverlay.value.hidden=!0,n.videoOverlay.value.offsetHeight,n.videoOverlay.value.hidden=!1}catch{}},1),Z0(n.configuration.emit),Wi(r,ne.video_enter_fullscreen,he.value.key,D.value,he.value.isLive)},it=()=>{var ie,Fe,He;(ie=ht[r].videoOverlay.value)==null||ie.style.setProperty("--webkit-text-track-display","none"),Wo?Ul&&!((Fe=he.value)!=null&&Fe.useEcommerce)?ht[r].videoElement.value.webkitExitFullscreen():(He=ht[r].videoOverlay.value)==null||He.removeEventListener("touchmove",lp):document.exitFullscreen(),pe.value&&St(),pe.value=!1,ge.value=!1,J0(n.configuration.emit),Wi(r,ne.video_exit_fullscreen,he.value.key,D.value,he.value.isLive)},ct=()=>{S.value=!0},ut=()=>{S.value=!1},St=()=>{!(p.value||v.value||!v.value&&n.configuration.startDocked)||(Y.value=`height: ${n.videoOverlay.value.clientHeight}px`,te.value=!0,setTimeout(()=>{try{n.videoOverlay.value.hidden=!0,n.videoOverlay.value.offsetHeight,n.videoOverlay.value.hidden=!1}catch{}},1),Wi(r,ne.video_docked,he.value.key,D.value,he.value.isLive))},li=()=>{Y.value="",te.value==!0&&Wi(r,ne.video_undocked,he.value.key,D.value,he.value.isLive),te.value=!1},Ai=ie=>{xt.value[ie.language]=ie,ie.addEventListener("cuechange",()=>{st.value==ie.language&&(Ze.value=[...ie.activeCues||[]].map(Fe=>Fe.text))})},Fr=ie=>{delete xt.value[ie.language]},rr=ie=>{Li.value[ie.language]=ie},Nr=ie=>{delete Li.value[ie.language]},di=()=>{xt.value[st.value]&&(xt.value[st.value].mode="hidden"),Re.value=!0,Wi(r,ne.video_caption_enabled,he.value.key,D.value,he.value.isLive)},ci=(ie,Fe=!1)=>{st.value=ie,Fe||(Re.value=!0)},na=()=>{xt.value[st.value]&&(xt.value[st.value].mode="disabled"),Re.value=!1,Wi(r,ne.video_caption_disabled,he.value.key,D.value,he.value.isLive)},tn=()=>{var ie,Fe,He,Gt;!Ka||((ie=ht[r].videoElement.value)!=null&&ie.webkitSetPresentationMode&&((Fe=ht[r].videoElement.value)==null||Fe.webkitSetPresentationMode("picture-in-picture")),(He=ht[r].videoElement.value)!=null&&He.requestPictureInPicture&&((Gt=ht[r].videoElement.value)==null||Gt.requestPictureInPicture()),le())},Je=()=>{var ie;if(!!Ka){if((ie=ht[r].videoElement.value)!=null&&ie.webkitSetPresentationMode)return ht[r].videoElement.value.webkitSetPresentationMode("inline");document.exitPictureInPicture(),p.value&&le()}},Xe=ie=>{ht[r].videoElement.value.volume=ie,C.value=ie,ie&&se.value&&Ee(),!ie&&!se.value&&we(),Pe&&xe.value&&Pe.setAdVolume(ie)},Qt=ie=>{Nt.value=ie,ht[r].videoElement.value.playbackRate=ie},lt=ie=>{if(ht[r].videoElement.value.quality=ie,Xt.value=ie,Et.value){const Fe=Et.value.levels.findIndex(He=>He.height===ie);Fe>-1&&Fe!=Et.value.currentLevel&&(Et.value.currentLevel=Fe)}else setTimeout(()=>lt(ie),100)},ar=oe(()=>{var ie,Fe,He;return n.configuration.useAdsOverride?!1:n.configuration.env=="prod"?((ie=he.value)==null?void 0:ie.ad_unit)&&((Fe=he.value)==null?void 0:Fe.network_code)||((He=he.value)==null?void 0:He.vast_override)||n.configuration.vastOverride:!0}),rn=async()=>{try{const ie=await ia(`https://captions.parone.io/${he.value.key}/captions.json`);ye.value=ie.map(Fe=>({file:`https://captions.parone.io/${he.value.key}/${Fe}.vtt`,label:Fe}))}catch{}},sa=async()=>{const ie=await fetch(he.value.url);de.value=ie.status==200,setTimeout(sa,5e3)},Vt=(ie,Fe)=>{qe.value=ie,!Wo&&sp?(Et.value&&Et.value.destroy(),Et.value=new $a({maxMaxBufferLength:10,maxBufferLength:10,enableWorker:!0,lowLatencyMode:!0,backBufferLength:90,debug:!1,initialLiveManifestSize:1,liveDurationInfinity:!0}),Et.value.attachMedia(n.videoElement.value),Et.value.loadSource(n.configuration.sourceOverride||ie.url),Et.value.on($a.Events.ERROR,(He,Gt)=>{}),Et.value.on($a.Events.MANIFEST_LOADED,()=>{if(si.value)return lt(si.value);ln({contentRect:{width:n.videoContainer.value.getBoundingClientRect().width}})})):ht[r].videoElement.value.src=ie.url,p.value&&(Fe&&(ht[r].videoElement.value.currentTime=Fe),le())},La=oe(()=>{var ie,Fe,He,Gt;return(((ie=he.value)==null?void 0:ie.key)=="COXUWLAf"||((Fe=he.value)==null?void 0:Fe.key)=="hJr9LKMG"||((He=he.value)==null?void 0:He.key)=="0ddbfcbd"||((Gt=he.value)==null?void 0:Gt.key)=="xlAdDsny")&&n.configuration.env=="stage"}),Ge=async ie=>{var or,Ui,zr;if((or=he.value)!=null&&or.key||(n.configuration.autoplay&&n.configuration.autoplayMuted?we():Xe(1)),Pe&&(Pe.destroy(),Pe=null,kt=new Promise(Jt=>qt=Jt)),!ie.key)return;ie.isLive&&we(),Mt&&(_t=new Promise(Jt=>Mt=Jt)),(Ui=ht[r].videoElement.value)==null||Ui.style.setProperty("--webkit-text-track-display","none");const Fe=oe(()=>ie.translations&&ie.translations.find(Jt=>Jt.language==n.configuration.defaultLangTwoLetter)||ie),He=ie.isLive?540:360;if(he.value={...ie,useEcommerce:(zr=ie.ecommerceSettings)==null?void 0:zr.length,usePylon:ie.key=="y1XMrgVENqAXrqy5d7vMs"&&n.configuration.env=="stage",defaultQuality:He,qualityLevels:sp?[1080,720,He]:[720,He],contentTitle:oe(()=>Fe.value.title),contentDescription:oe(()=>Fe.value.description)},Z(),n.configuration.startDocked&&St(),he.value.isLive?await sa():rn(),Pe)Pe.requestAds();else try{if(!window.google||!window.google.ima){const Jt=document.createElement("script");Jt.src="https://imasdk.googleapis.com/js/sdkloader/ima3.js",document.head.appendChild(Jt),await new Promise((Ca,hi)=>{Jt.onload=Ca,Jt.onerror=hi})}Pe=new W0(n.adContainer,n.videoElement,{tagUrl:la,getHeaderBiddingTag:on,currentContent:he,started:v,play:le,pause:ue,playing:p,pausedByUser:g,volume:C,muted:se,inAd:xe,useAds:ar,adPlaying:y,adTime:re,adsLoadedRes:qt,playerReference:r,videoWrapperVisible:z,videoElementVisible:Se,configuration:n.configuration})}catch(Jt){console.error(Jt),console.log("IMA SDK not loaded",Jt),qt(!1)}ci(st.value,!0),Vt(ie),Se.value&&ra(r,M,ie.key,ne.video_impression,-1,he.value.isLive);const Gt=()=>{var Jt;Mt(!0),(n.configuration.autoplay||((Jt=he.value)==null?void 0:Jt.isLive))&&Se.value&&le()};Et.value?Et.value.on($a.Events.MANIFEST_PARSED,Gt):Gt()},eo=ie=>{var Ui,zr,Jt,Ca;const Fe=zl.exports.parseStringTemplateGenerator({VARIABLE_START:/^\{\s*/,VARIABLE_END:/^\s*\}/})(ie);if(!Fe.variables.length)return ie;const He={pageVariable:{}},Gt=window.paroneAmpParamsTranslator?window.paroneAmpParamsTranslator(Fe.variables):{};for(const hi of Fe.variables){const ro=hi.name.split("."),ao=ro[0];if(ao=="pageVariable"){const Ra=ro[1]||"";if(Ra&&!He.pageVariable[Ra])try{He.pageVariable={...He.pageVariable,[Ra]:window.paroneAmpParamsTranslator?Gt[Ra]:Object.entries(window[Ra]||{}).reduce((nr,[oo,dn])=>({...nr,[oo]:encodeURIComponent(dn)}),{})}}catch(nr){console.error(`error parsing template: ${nr}`)}}else ao=="player"?He.player={playerId:n.configuration.playerId,position:n.configuration.position}:ao=="mediainfo"&&(He.mediainfo={tags:((Ui=he.value)==null?void 0:Ui.tags)||[],id:(zr=he.value)==null?void 0:zr.key,is_livestream:(Jt=he.value)==null?void 0:Jt.isLive,content_creator:(Ca=he.value)==null?void 0:Ca.creator_code,description_url:encodeURIComponent(n.configuration.windowUrl||window.location.href)})}return zl.exports.evaluateParsedString(Fe,He,{})},la=oe(()=>n.configuration.vastOverride?eo(n.configuration.vastOverride):eo(he.value.isLive?he.value.live_vast_override||he.value.vast_override:he.value.vast_override||""));let Aa=null;const et=n.configuration.vastOverrideDelay&&!isNaN(n.configuration.vastOverrideDelay)?n.configuration.vastOverrideDelay:1500,an=ie=>()=>{var Fe;if((Fe=n.configuration)!=null&&Fe.usesHeaderBidding){if(typeof window.paroneVastOverride=="string")return ie(window.paroneVastOverride);if(!n.configuration.vastOverrideId)return console.error("no vast override id specified for multiple overrides"),ie(la.value);try{if(window.paroneVastOverride&&window.paroneVastOverride[n.configuration.vastOverrideId])return ie(eo(window.paroneVastOverride[n.configuration.vastOverrideId]));if(Date.now()-Aa>et)return console.error("header bidding vast override timeout"),ie(la.value);setTimeout(an(ie),10)}catch(He){return console.error("invalid paroneVastOverride format",He),ie(la.value)}}else{if(Date.now()-Aa>2500)return console.error("header bidding vast override timeout"),ie(la.value);setTimeout(an(ie),10)}},on=()=>new Promise(ie=>{Aa=Date.now(),setTimeout(an(ie),10)}),to=()=>{ge.value&&!document.fullscreenElement&&!document.webkitIsFullScreen&&!document.mozFullScreen&&!document.msFullscreenElement&&(ge.value=!1,Wi(r,ne.video_exit_fullscreen,he.value.key,D.value,he.value.isLive))},nn=()=>{ev(n.configuration.emit)},io=()=>{const Fe=ht[r].videoElement.value.currentTime-10;me(Fe>0?Fe:0)},qi=()=>{var He;const Fe=ht[r].videoElement.value.currentTime+10;me(Fe<(((He=he.value)==null?void 0:He.duration)||1/0)-10?Fe:0)};document.addEventListener("fullscreenchange",to),document.addEventListener("webkitfullscreenchange",to),document.addEventListener("mozfullscreenchange",to),document.addEventListener("MSFullscreenChange",to);let sn=0;const ln=ie=>{var Gt,or,Ui;if(te.value||Date.now()-sn<500)return;const Fe=ie.contentRect.width;let He=360;Fe<=360?He=(Gt=he.value)!=null&&Gt.isLive?540:360:Fe<=720?He=(or=he.value)!=null&&or.isLive?718:720:He=(Ui=he.value)!=null&&Ui.isLive?1078:1080,lt(He),sn=Date.now()},Ii=new ResizeObserver(ie=>{ln(ie[0])});Bt(n.videoContainer,ie=>{ie&&(Ii.observe(ie),ln({contentRect:{width:ie.getBoundingClientRect().width}}))}),ht[r]={...n,videoEnded:nn,exitFullscreen:it,enterFullscreen:$e,enterDocked:St,exitDocked:li,enterCaptions:di,exitCaptions:na,enterPip:tn,exitPip:Je,rewind:io,fastForward:qi,play:le,pause:ue,unmute:Ee,mute:we,timeUpdate:fe,setTime:me,enterSeeking:Ce,exitSeeking:Be,setVolume:Xe,exitSettings:ut,setCaptionsLanguage:ci,enterSettings:ct,setSpeed:Qt,setQuality:lt,setCurrentContent:Ge,setCurrentSource:Vt,enterAirplay:ke,registerCaptionsTrack:Ai,registerMetadataTrack:rr,activeCaptionCues:Ze,captionTracks:xt,captions:ye,captionsLanguage:st,shouldShowStreams:La,currentSource:qe,timestamps:ce,hls:Et,flags:M,alive:de,wsFlags:H,ended:dt,unRegisterCaptionsTrack:Fr,unRegisterMetadataTrack:Nr,speed:Nt,showSettings:S,time:R,currentContent:he,currentLanguageLabel:W,currentQualityLabel:It,currentSpeedLabel:O,availableCaptionLanguages:N,playing:p,started:v,showControls:b,volume:C,muted:se,dockedHeight:Y,fullscreen:ge,fullscreenWasDocked:pe,dockedWasInFullscreen:_e,docked:te,inAd:xe,adPlaying:y,adTime:re,seconds:D,buffered:c,videoWrapperVisible:z,videoElementVisible:Se,quality:Xt,captionsOn:Re,inPip:Ft,currentMediaTime:j,getHeaderBiddingTag:on,resumeLive:Oe}}return ht[r]},tv={[ne.video_played]:[ne.video_impression],[ne.played_1s]:[ne.video_impression,ne.video_played],[ne.video_one_second]:[ne.video_impression,ne.video_played],[ne.played_3s]:[ne.video_impression,ne.video_played,ne.played_1s],[ne.played_25percent]:[ne.video_impression,ne.video_played,ne.played_1s],[ne.played_15s]:[ne.video_impression,ne.video_played,ne.played_3s],[ne.played_50percent]:[ne.video_impression,ne.video_played,ne.played_25percent],[ne.played_30s]:[ne.video_impression,ne.video_played,ne.played_1s,ne.played_3s,ne.played_15s],[ne.played_75percent]:[ne.video_impression,ne.video_played,ne.played_1s,ne.played_3s,ne.played_15s,ne.played_25percent,ne.played_50percent],[ne.video_ended]:[ne.video_impression,ne.video_played,ne.played_1s,ne.played_3s,ne.played_15s,ne.played_30s,ne.played_25percent,ne.played_50percent,ne.played_75percent]};function iv(r,n){return(tv[r]||[]).filter(c=>!n.value.has(c))}const rv=window.location.origin.includes(".parone.com"),Ya=(r,n,{feed:c,fingerprint:p,key:g,playerId:v,...b})=>{if(!g)return console.error("Missing content key for tracking"),null;if(!c&&!rv)return console.error("Missing feed for tracking"),null;if(!p)return console.error("No browser fingerprint for tracking"),null;const k=new URL(G0[r]);return k.search=new URLSearchParams({event:$0[n],green:g,course:c,vpid:v,teetime:p,...b}).toString(),k},Wa=Ir(),_a=(r,n,c,p,g,v=!1)=>{const{configuration:b}=r?Tt(r):{configuration:g},{position:k,playerId:S,feed:C,env:R,tput:D,key1:M,key2:H,key3:W,key4:Y,windowUrl:ce}=b;let se=ce||window.location.href;const ge={key:c,v:v?1:0,feed:C,key1:M,key2:H,key3:W,key4:Y,position:k,playerId:S,tput:D,fingerprint:Wa,url:encodeURIComponent(se)};let pe=Ya(R,n,{...ge,...p});!pe||fetch(pe.toString(),{mode:"no-cors"})},jl=(r,n,c,p,g=-1,v)=>{const{configuration:b}=r?Tt(r):{configuration:overrideConfiguration},{position:k,playerId:S,feed:C,env:R,tput:D,key1:M,key2:H,key3:W,key4:Y,windowUrl:ce}=b;let se=ce||window.location.href;const ge={key:c,v:v?1:0,feed:C,key1:M,key2:H,key3:W,key4:Y,position:k,playerId:S,tput:D,fingerprint:Wa,seconds:g,url:encodeURIComponent(se)};ge.seconds==-1&&(ge.seconds=0);let pe=Ya(R,n,{...ge,...p});!pe||fetch(pe.toString(),{mode:"no-cors"})},Gl=(r,n,c,p,g)=>{let v=window.location.href;const b={key:n,fingerprint:Wa,mediahub_key:c,feed:p,url:encodeURIComponent(v)};let k=Ya(g,r,{...b});!k||fetch(k.toString(),{mode:"no-cors"})},Wi=(r,n,c,p=0,g)=>{const{configuration:v}=r?Tt(r):{configuration:overrideConfiguration},{position:b,playerId:k,feed:S,env:C,tput:R,key1:D,key2:M,key3:H,key4:W,windowUrl:Y}=v;let ce=Y||window.location.href;const se={key:c,v:g?1:0,feed:S,key1:D,key2:M,key3:H,key4:W,position:b,playerId:k,tput:R,fingerprint:Wa,seconds:p,url:encodeURIComponent(ce)};se.seconds==-1&&(se.seconds=0);let ge=Ya(C,n,{...se});!ge||fetch(ge.toString(),{mode:"no-cors"})};async function ra(r,n,c,p,g=-1,v){n.value||(n.value=new Set);const{configuration:b}=Tt(r),{position:k,playerId:S,tput:C,key1:R,key2:D,key3:M,key4:H,feed:W,env:Y,windowUrl:ce}=b;if(!n.value.has(p)||[ne.livestream_minute,ne.video_muted,ne.video_unmuted,ne.video_pause,ne.video_resume,ne.video_resume,ne.video_one_second,ne.video_airplay_one_second,ne.video_airplay_live_one_minute].includes(p)){n.value.add(p);try{let se=ce||window.location.href;const ge={key:c,v:v?1:0,feed:W,fingerprint:Wa,position:k,playerId:S,tput:C,seconds:g,key1:R,key2:D,key3:M,key4:H,url:encodeURIComponent(se)};ge.seconds==-1&&(ge.seconds=0);let pe=Ya(Y,p,ge);if(!pe)return;await fetch(pe.toString(),{mode:"no-cors"}),iv(p,n).forEach(te=>ra(r,n,c,te,g,v))}catch(se){console.error(se.message)}}}async function ni(r,n,c,p,g){const{configuration:v}=Tt(r),{position:b,playerId:k,feed:S,env:C,tput:R,key1:D,key2:M,key3:H,key4:W,windowUrl:Y}=v;let ce=Y||window.location.href;try{const se={key:n,v:g?1:0,key1:D,key2:M,key3:H,key4:W,feed:S,fingerprint:Wa,url:encodeURIComponent(ce),position:b,playerId:k,...p};let ge=Ya(C,c,se);if(!ge)return;await fetch(ge.toString(),{mode:"no-cors"})}catch(se){console.error(se.message)}}const av=(r,n,c,p,g,v)=>{const b={[ne.played_1s]:()=>!g&&c===1,[ne.played_3s]:()=>!g&&c===3,[ne.played_15s]:()=>!g&&c===15,[ne.played_30s]:()=>!g&&c===30,[ne.played_25percent]:()=>!g&&c===Math.trunc(.25*p),[ne.played_50percent]:()=>!g&&c===Math.trunc(.5*p),[ne.played_75percent]:()=>!g&&c===Math.trunc(.75*p),[ne.video_one_second]:()=>!g&&c>=0,[ne.video_airplay_one_second]:()=>{var k,S;return!g&&c>=0&&((S=(k=Tt(r))==null?void 0:k.videoElement.value)==null?void 0:S.webkitCurrentPlaybackTargetIsWireless)},[ne.livestream_minute]:()=>g&&c%60===0,[ne.video_airplay_live_one_minute]:()=>{var k,S;return g&&c%60===0&&((S=(k=Tt(r))==null?void 0:k.videoElement.value)==null?void 0:S.webkitCurrentPlaybackTargetIsWireless)}};for(const[k,S]of Object.entries(b))S()&&ra(r,n,v,k,c,g)},ov={class:"carousel-publisher-info custom-carousel-publisher-info"},nv=["src"],sv={key:1,class:"carousel-playlist-name custom-carousel-playlist-name"},lv={class:"carousel-container custom-carousel-container"},dv={class:"carousel-nav custom-carousel-nav"},cv={class:"carousel-nav-pages custom-carousel-nav-pages"},uv={class:"carousel custom-carousel"},pv={class:"carousel-video-list custom-carousel-video-list"},hv=["onClick"],fv={class:"video-card-thumbnail custom-video-card-thumbnail",style:{position:"relative"}},gv=["src"],mv={key:0,class:"live custom-video-card-thumbnail-live"},vv={key:0,class:"video-card-title custom-video-card-title"},bv=Ye({__name:"PlaylistCarousel.ce",props:{hideFeedName:{type:String,default:"false"},hideDistributorLogo:{type:String,default:"false"},hideCardTitle:{type:String,default:"false"},campaigns:String,contentKeys:String,count:{type:[String,Number],default:6},...ya},emits:Ga,setup(r,{emit:n}){const c=K(!1),p=K([]),g=K(0),v=K(""),b=K(""),k=K(1),S=K(Ko);K(ne.thumbnail);const C=K(null),R=K(),D=r,M=K(null),H={},W=(re,z)=>{re&&!H[z]&&(H[z]=!0,_a("",ne.thumbnail,z,{},M))},Y=oe(()=>D.hideDistributorLogo!="true"),ce=oe(()=>D.hideCardTitle!="true"),se=oe(()=>D.hideFeedName!="true"),ge=oe(()=>Ir()),pe=oe(()=>Number(D.count)||6),_e=oe(()=>k.value-1),te=oe(()=>p.value.slice(_e.value*pe.value,(_e.value+1)*pe.value));oe(()=>D.styles);function xe(re){S.value=te.value[re],C.value.$el.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}async function de(){c.value=!0;const{feedUrl:re}=cs(D,ge,_e.value),z=[...p.value,...(await ia(re.value)).filter(Re=>!p.value.map(dt=>dt.key).includes(Re.key))],Se=z.filter(Re=>Re.livestream_id),ye=z.filter(Re=>!Re.livestream_id);p.value=[...Se,...ye],c.value=!1}const y=n;return Kt(async()=>{M.value=await ka(D,y),await de(),S.value=p.value[0],v.value=p.value.length>0?p.value[0].distributor_logo:"",b.value=p.value.length>0?p.value[0].feed_name:"",new Ho(re=>{g.value=re[0].contentRect.width}).observe(R.value)}),(re,z)=>S.value?(V(),Q("div",{key:0,class:"carousel-playlist custom-carousel-playlist",ref_key:"container",ref:R},[M.value?(V(),ze(F(Ta),{key:0,class:"carousel-player custom-carousel-player",content:S.value,configuration:M.value,ref_key:"playlistCarousel",ref:C},null,8,["content","configuration"])):ve("",!0),U("div",ov,[v.value&&Y.value?(V(),Q("div",{key:0,class:"carousel-publisher-logo custom-carousel-publisher-logo",src:v.value},null,8,nv)):ve("",!0),se.value?(V(),Q("div",sv,Me(b.value),1)):ve("",!0)]),U("div",lv,[U("div",dv,[U("div",{class:"carousel-nav-prev custom-carousel-nav-prev",onClick:z[0]||(z[0]=()=>{k.value!=1&&k.value--})},"Prev"),U("div",cv,Me(k.value)+" / "+Me((p.value.length/Number(r.count)).toFixed(0)),1),U("div",{class:"carousel-nav-next custom-carousel-nav-next",onClick:z[1]||(z[1]=()=>{k.value<p.value.length/Number(r.count)&&k.value++})},"Next")]),U("div",uv,[U("div",pv,[(V(!0),Q(nt,null,ri(te.value,(Se,ye)=>(V(),Q("div",{class:"video-card custom-video-card",onClick:Re=>xe(ye),key:Se.key,style:{position:"relative"}},[Le(F($o),{onVisible:Re=>W(Re,Se.key)},null,8,["onVisible"]),U("span",fv,[U("img",{class:"video-card-thumbnail-image custom-video-card-thumbnail-image",src:Se.thumbnail},null,8,gv),Se.isLive?(V(),Q("div",mv,"Live")):ve("",!0)]),ce.value?(V(),Q("div",vv,Me(F(us)(Se,re.defaultlang)),1)):ve("",!0)],8,hv))),128))])])])],512)):ve("",!0)}}),wv=`.live-badge{background-color:red;border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;padding:10px;position:absolute;top:15px;left:15px;z-index:1000000;font-weight:700}.live-circle{width:10px;height:10px;background-color:gray;display:block;border-radius:100%;margin:auto}.live-circle-online{background-color:red}.live-badge-offline{background-color:#36363640}.live{border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;z-index:1000000;font-weight:500;padding:5px;margin-left:5px;margin-right:10px;display:flex;gap:5px}.gearIcon{width:20px;height:20px;vertical-align:middle}.filter{filter:invert(95%) sepia(100%) saturate(2%) hue-rotate(54deg) brightness(105%) contrast(101%)}.overlay>img{filter:unset}.video{grid-area:video;position:relative}.player-logo{grid-area:logo;width:4rem;height:4rem;margin-top:1rem;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}.player-description{grid-area:description;word-break:normal;overflow-y:auto;margin-top:1rem;max-height:150px}.player-title{grid-area:title;word-break:normal;font-weight:800}.overlay{position:absolute;z-index:1}.info{position:absolute;opacity:.5;background-color:#000;width:100%;height:100%;z-index:2;bottom:0}.player{display:grid;grid-template-areas:"title title title" "video video video" "logo description description";position:relative}.docked{position:fixed;right:10px;width:360px;padding:clamp(5px,1vw,10px);max-width:60%!important;height:-moz-fit-content;height:fit-content;aspect-ratio:16/9;padding-top:0;background-color:#1b1b1b}.docked_logo{height:20px;margin-top:auto}.docked-close-container{color:#fff;text-align:right;padding-bottom:5px;cursor:pointer;font-size:small;display:flex;justify-content:space-between}.docked-close-icon{width:20px;height:20px;position:relative;top:5px}.fs{position:fixed;display:flex;top:0px;bottom:0px;right:0px;left:0px;background-color:#000;z-index:100;place-content:center}@media (orientation: landscape){.iphone-fs video{max-height:100vh}.iphone-fs .control svg{width:30px;height:30px}.iphone-fs .controls-bar-showing{height:80px}.iphone-fs .controls-bar{padding-bottom:20px!important}.iphone-fs .control{padding:12px}.iphone-fs .controls-clock{margin-left:-12px;font-size:17px}.iphone-fs .volume-control{margin-right:-12px}.iphone-fs input[type=range]::-moz-range-thumb{height:24px;width:24px}.iphone-fs input[type=range]::-webkit-slider-thumb{height:24px;width:24px;margin-top:-9px}}.fs .video-container{align-self:center}.video-container{position:relative;width:100%}.ads-hidden{display:none}.scoreboard-overlay-button{z-index:20;height:20px;width:20px;border-radius:50%;position:absolute;top:50px;background-color:#efefefde;left:10px;cursor:pointer;transition:all .5s}.scoreboard-overlay-button-open{left:220px}.scoreboard-overlay{z-index:20;height:80%;padding:5px;position:absolute;border-radius:.5rem;background-color:#efefefde;top:10%;left:-1000px;width:200px;opacity:0;transition:all .5s}.scoreboard-overlay-open{left:10px;opacity:1}.multi-feed-playlist-name{text-align:center}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px;width:200px;margin-left:10px;margin-right:10px;flex:0 0 auto}.multi-feed{width:100%;overflow-x:hidden}.multi-feed-video-list{margin:0;padding:0;display:flex;flex-direction:row;height:-moz-fit-content;height:fit-content;overflow-x:auto;width:100%}.multi-feed-player{grid-area:video}.multi-feed-nav-button{cursor:pointer;text-decoration:underline;position:absolute;background-color:#535252bf;height:50px;width:50px;z-index:1;color:#fff}.multi-feed-nav-next{text-align:right;right:2px}.multi-feed-nav-prev{text-align:left;left:2px}.multi-feed-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.multi-feed-player>.custom-player>.custom-player-title{height:50px}.multi-feed-player>.custom-player>.custom-player-description{height:75px}.multi-feed-player>.custom-player>.custom-video{max-height:unset}.carousel-publisher-info{width:200px;margin:auto;display:grid;grid-template-areas:"distributorLogo" "feedName";grid-area:distributorInfo}.carousel-publisher-logo{height:100px;width:100px;margin:auto}.carousel-playlist-name{text-align:center}.video-card-thumbnail{grid-area:videoThumbnail}.video-card-thumbnail-image{width:100%}.video-card-title{grid-area:videoName}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px}.carousel-playlist{display:grid;grid-template-areas:"video" "distributorInfo" "carouselContainer"}.carousel-container{display:grid;grid-area:carouselContainer;grid-template-areas:"nav nav nav" "carousel carousel carousel"}.carousel-player{grid-area:video}.carousel{grid-area:carousel}.carousel-nav{display:grid;grid-area:nav;grid-template-areas:"prev pages next";width:50%;margin:auto}.carousel-nav-next{grid-area:next;text-align:right;cursor:pointer;text-decoration:underline}.carousel-nav-prev{grid-area:prev;text-align:left;cursor:pointer;text-decoration:underline}.carousel-nav-pages{grid-area:pages;text-align:center}.carousel-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.carousel-player>.custom-player>.custom-player-title{height:50px}.carousel-player>.custom-player>.custom-player-description{height:75px}.carousel-player>.custom-player>.custom-video{max-height:unset}.carousel-video-list{height:100%;overflow-y:auto;overflow-x:hidden;display:grid;grid-column-gap:15px;grid-row-gap:15px;grid-template-columns:repeat(1,1fr);grid-template-rows:auto}@media screen and (min-width: 480px){.carousel-video-list{grid-template-columns:repeat(3,1fr)}}.thumbnail-carousel{display:flex;flex-direction:row;width:100%;gap:5px}.thumbnail-carousel-card{cursor:pointer;gap:5px}.vertical-carousel{flex-direction:column;width:-moz-fit-content;width:fit-content}.vertical-carousel-card .thumbnail-carousel-card-image{max-width:480px}.vertical-carousel-card{display:grid;grid-template-areas:"cardImage cardLogo cardTitle" "cardImage cardDescription cardDescription"}.thumbnail-carousel-card-image{max-width:100%;border-radius:10px;grid-area:cardImage;-o-object-fit:fill;object-fit:fill}.thumbnail-carousel-card-title{text-overflow:ellipsis;font-weight:500;font-size:2rem;margin:0;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardTitle}.vertical-carousel-card .thumbnail-carousel-card-title{max-width:unset}.thumbnail-carousel-card-description{text-overflow:ellipsis;white-space:wrap;overflow:hidden;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardDescription}.thumbnail-carousel-card-logo{height:3.5em;width:3.5em;-o-object-fit:contain;object-fit:contain;grid-area:cardLogo}.feed{height:"100%";overflow-y:"scroll";overflow-x:"hidden"}.publisher-info{display:grid;width:100%;grid-template-areas:"playlistDistributorLogo playlistFeedName";grid-area:playlistDistributorInfo}.playlist-name{grid-area:playlistFeedName}.playlist-publisher-logo{max-height:75px;grid-area:playlistDistributorLogo}.playlist-name{margin-top:35px}.playlist-player{grid-area:playlistVideo}.playlist-video-list{overflow-y:scroll;overflow-x:hidden;display:grid;grid-template-columns:1fr;grid-template-rows:auto;grid-area:playlistVideoList}.playlist-card{display:grid;grid-template-areas:"videoThumbnail videoName" "videoThumbnail videoDescription";height:100px;margin-top:5px;grid-column-gap:15px;overflow:hidden;grid-template-columns:2fr 3fr;align-items:start;cursor:pointer}.playlist-card-thumbnail{grid-area:videoThumbnail}.playlist-card-thumbnail-image{height:100px;width:100%}.playlist-card-name{grid-area:videoName}.playlist-card-description{font-size:.75rem;color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;grid-area:videoDescription}.playlist-player>.custom-player{grid-template-rows:3fr 1fr 3fr;grid-template-columns:4fr 1fr;grid-template-areas:"video video" "title logo" "description description";max-height:100%}.playlist-player>.custom-player>.custom-video{max-height:425px}.playlist-player>.custom-player>.custom-player-title{height:50px}.playlist-player>.custom-player>.custom-player-description{height:125px}.playlist{display:flex;flex-direction:column}@media screen and (min-width: 700px){.playlist{display:grid;grid-template-areas:"playlistVideo playlistDistributorInfo" "playlistVideo playlistVideoList" "playlistVideo playlistVideoList";grid-template-columns:3fr 2fr;grid-template-rows:1fr 4fr;grid-column-gap:10px;height:500px}.playlist-player>.custom-player{grid-template-rows:4fr 1fr 3fr}}.shop-overlay-bar{position:absolute;top:0px;padding:5px 0 0;gap:clamp(5px,100vw,12px);z-index:4;display:flex;flex-direction:row;left:0px;right:0px;overflow-x:auto;pointer-events:none;height:clamp(-moz-min-content,4vw,48px);height:clamp(min-content,4vw,48px);overflow-y:hidden}.overlay-bar-chevron{height:-moz-min-content;height:min-content;align-self:center;pointer-events:all;margin-right:-15px;padding:2px;border:unset!important}.overlay-bar-icon-visible{opacity:1;height:-moz-fit-content;height:fit-content;pointer-events:all}.overlay-bar-icon-hidden{opacity:0;height:0px;pointer-events:none}.overlay-bar-icon>img{border:2px solid black;border-radius:50%}.overlay-bar-icon{z-index:2;cursor:pointer;text-align:center;transition:opacity .75s linear;transition:height .2s linear;color:#fff;border-radius:10px;width:clamp(17px,100vw,48px);height:clamp(17px,100vw,48px);font-weight:800}.overlay-bar-icon>img{height:100%;min-width:15px;width:100%;transition:all .2s linear}@media (max-width: 500px){.overlay-bar-icon{width:32px;height:32px}}.ecom-wrapper{position:absolute;display:flex;left:15px;flex-shrink:0;border-radius:.5rem;border-width:0px;border-style:none;border-color:#ddd;background-color:transparent;padding:12px;width:50px;overflow-x:hidden;overflow-y:hidden;transition:all .25s;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);height:72px}.ecom-inner-wrapper{display:flex;align-items:center}.ecom-icon{border:solid;border-width:2px;border-radius:9999px;width:3rem;height:3rem;cursor:pointer}.ecom-name{font-size:1rem;line-height:1.5rem;font-weight:700;color:#444;pointer-events:none}.ecom-subtext{color:#999;font-size:.875rem;line-height:1.25rem;pointer-events:none}.ecom-button{border:none;cursor:pointer;height:1.2rem;width:-moz-max-content;width:max-content;margin-left:.5rem;border-radius:9999px;color:#fff;font-weight:600;font-size:.875rem;line-height:1.25rem;text-decoration:none;text-align:center;padding:.5rem 1rem}.ecom-text-wrapper{padding-left:.75rem}@keyframes ping{0%,60%{transform:scale(1);opacity:1;filter:brightness(1)}70%{transform:scale(1.3);opacity:.75;filter:brightness(2)}to{transform:scale(.75);opacity:.25;filter:brightness(.5)}}.animated-chevron{animation:ping 5s cubic-bezier(0,0,.1,1) infinite}.ecom-chevron{position:absolute;border-radius:100%;bottom:-5px;right:-5px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center}.ecom-img-wrapper{position:relative;display:flex;place-content:center}.ecom-close{position:absolute;border-radius:100%;top:-10px;right:-10px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center;background-color:#afafaf}.ecom-close svg{margin-top:2px}@media (max-width: 500px){.ecom-icon{width:2.5rem;height:2.5rem}.ecom-name,.ecom-subtext{font-size:.8rem}.ecom-button{font-size:.5rem;padding:.1rem .5rem}.ecom-wrapper{padding:5px;width:3rem}.ecom-img-wrapper{width:3rem}}.ecomExpanded{width:-moz-max-content;width:max-content;overflow-y:visible;border-width:2px;height:48px;background-color:#efefefde;overflow-x:visible;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ecom-wrapper-entering,.ecom-wrapper-leaving{transition:all .5s}.ecom-wrapper-enter-from{opacity:0}.ecom-wrapper-enter-to,.ecom-wrapper-leave-from{opacity:1}.ecom-wrapper-leave-to{opacity:0}.ecom-wrapper-top-expanded{top:15px}.ecom-wrapper-top-docked{top:-15px;left:0px}.ecom-wrapper-top-undocked{top:0px}.ecom-wrapper-bottom-expanded-undocked{top:15px}.ecom-wrapper-bottom-docked{bottom:-10px;left:0px}.ecom-wrapper-bottom-controls-docked{bottom:30px}.ecom-wrapper-bottom-controls-undocked{bottom:50px}.ecom-wrapper-bottom-undocked{bottom:30px}.ecom-wrapper-bottom-expanded{bottom:15px}@media (orientation: landscape){.iphone-fs .ecom-wrapper-top-expanded{top:30px}.iphone-fs .ecom-wrapper-top-undocked{top:0px}.iphone-fs .ecom-wrapper-bottom-expanded-undocked{top:15px}.iphone-fs .ecom-wrapper-bottom-controls-undocked{bottom:65px}.iphone-fs .ecom-wrapper-bottom-undocked{bottom:10px}.iphone-fs .ecom-wrapper-bottom-expanded{bottom:20px}}.inAmp.ecom-wrapper-bottom-undocked{bottom:-5px;left:5px}.inAmp.ecom-wrapper-top-undocked{top:-10px;left:0px}.inAmp.ecom-wrapper-bottom-controls-undocked{bottom:30px;left:10px}.pylon-img{height:500px;-o-object-fit:contain;object-fit:contain}.pylon-toggle{color:#fff;pointer-events:all}.pylon-overlay{position:absolute;top:0px;z-index:2;left:10px;right:0px;overflow-x:auto;pointer-events:none;overflow-y:hidden}.stream-ui{display:grid;grid-template-columns:repeat(4,1fr);grid-column-gap:20px;transition:all 1s;opacity:0;position:absolute;bottom:100px;left:10px;right:10px;z-index:3;justify-content:center;transition:opacity 1s}.hidden-stream-item{display:none}.stream-ui-gridded{display:grid;grid-column-gap:0px;bottom:0px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.stream-grid-button{z-index:20;height:20px;width:20px;border-radius:50%;top:50px;left:calc(50% - 10px);cursor:pointer;background-color:#efefefde;position:absolute;opacity:0;transition:opacity 1s}.stream-ui-visible{opacity:1}.special{all:initial}.special>*{all:initial}.special img{max-width:unset!important}.special .ecom-wrapper *,.special .ecom-wrapper,.special .ecom-wrapper img{box-sizing:initial}fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:before,.multiselect__spinner:after{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border-color:#41b883 transparent transparent;border-style:solid;border-width:2px;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:initial;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\\d7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #e8e8e8;cursor:pointer}.multiselect__select{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:5px 5px 0 5px;border-color:#999 transparent transparent transparent;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-radius:5px 5px 0 0;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::-webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}*[dir=rtl] .multiselect{text-align:right}*[dir=rtl] .multiselect__select{right:auto;left:1px}*[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}*[dir=rtl] .multiselect__content{text-align:right}*[dir=rtl] .multiselect__option:after{right:auto;left:0}*[dir=rtl] .multiselect__clear{right:auto;left:12px}*[dir=rtl] .multiselect__spinner{right:auto;left:1px}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}@media (min-width: 1792px){.\\!container{max-width:1792px!important}.container{max-width:1792px}}@media (min-width: 2048px){.\\!container{max-width:2048px!important}.container{max-width:2048px}}@media (min-width: 2304px){.\\!container{max-width:2304px!important}.container{max-width:2304px}}@media (min-width: 2560px){.\\!container{max-width:2560px!important}.container{max-width:2560px}}@media (min-width: 3072px){.\\!container{max-width:3072px!important}.container{max-width:3072px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0px}.inset-y-0{top:0px;bottom:0px}.inset-y-5{top:1.25rem;bottom:1.25rem}.bottom-4{bottom:1rem}.left-0{left:0px}.right-0{right:0px}.right-6{right:1.5rem}.top-0{top:0px}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2000\\]{z-index:2000}.m-0{margin:0!important}.m-1{margin:.25rem}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-40{margin-top:10rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-10{width:2.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.max-w-7xl{max-width:80rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.basis-1\\/3{flex-basis:33.333333%}.-translate-x-4{--tw-translate-x: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.gap-2{gap:.5rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-10{row-gap:2.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(221 221 221 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(187 187 187 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(239 239 239 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(102 102 102 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(85 85 85 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:hsl(120 50% 86% / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:hsl(120 30% 46% / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-0\\.5{padding-top:.125rem}.pt-12{padding-top:3rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-bottom{vertical-align:bottom}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(68 68 68 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:hsl(120 50% 66% / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:hsl(120 30% 46% / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.player{--parone-primary: rgb(7, 102, 82)}video::-webkit-media-text-track-container{display:var(--webkit-text-track-display)}*{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.controls-bar{width:100%;align-items:center;display:flex;justify-content:flex-end;text-align:center;bottom:0px;opacity:0;padding:10px;position:absolute;height:0px;box-sizing:border-box;transition:opacity .4s ease-in-out,height .4s ease-in-out;z-index:4}.controls-bar-showing{opacity:1;height:47px;background:linear-gradient(transparent,rgba(0,0,0,.75))}.controls-bar .control:first-child{margin-left:0;margin-right:auto}video{width:100%}.control svg{width:18px;height:18px;fill:currentColor}.tooltip{cursor:default;text-align:center;border-radius:3px;bottom:100%;line-height:1.3;margin-bottom:20px;opacity:0;padding:5px 7.5px;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2;box-shadow:0 1px 2px #00000026;font-size:13px;pointer-events:all;background-color:#fff;color:#000}.tooltip:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:20px;top:100%;width:0}.control{background:transparent;border:0;border-radius:3px;color:#fff;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;position:relative;transition:all .3s ease;z-index:4;margin-left:2.5px;touch-action:manipulation}input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-progress{background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-moz-range-thumb{background-color:#fff;height:16px;width:16px;border-radius:50%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;margin-top:-6px;background:white;height:16px;width:16px;border-radius:50%;color:#fff}input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-track{background-color:#ffffff40;height:5px;border-radius:.5rem}.volume-bar::-webkit-slider-runnable-track{background-color:#ffffff40;border-radius:.5rem;height:5px;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.volume-bar-container{align-items:center;display:flex;width:clamp(30px,15%,68px);position:relative;padding:7px 5px;margin-left:0}.volume-bar{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:15px;display:block;height:20px;margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;position:relative;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.progress{text-align:center;left:7px;margin-right:13px;position:relative;visibility:visible;pointer-events:all}.progress-container{text-align:center;flex-grow:1;width:-moz-min-content;width:min-content;min-width:20px;padding:0;margin-left:2.5px;cursor:default}progress{color:#ffffff40;margin-left:-7px;margin-right:-7px;width:calc(100% + 13px);min-width:0px;-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:5px;left:0;margin-top:-2.5px;padding:0;position:absolute;top:50%;border-radius:.5rem}progress::-moz-progress-bar{border-radius:100px;min-width:5px;-moz-transition:width .2s ease;transition:width .2s ease;background-color:#ffffff80;border-radius:.5rem}progress::-webkit-progress-bar{border-radius:100px;min-width:5px;-webkit-transition:width .2s ease;transition:width .2s ease;border-radius:.5rem}progress::-webkit-progress-value{background-color:#ffffff80;border-radius:.5rem}.progress>input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;background-image:linear-gradient(to right,#6a7b78 var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input[type=range]::-moz-range-progress{background-color:#6a7b78!important;height:5px}.seekbar-disabled input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:#6a7b78!important;height:5px}.progress input{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;display:block;height:20px;min-width:0;padding:0;transition:box-shadow .3s ease;margin:0 -7px;width:calc(100% + 13px);position:relative;z-index:2;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.controls-clock{font-size:13px;width:40px;padding:7px 10px 7px 5px}.mobile-controls .controls-clock{width:-moz-max-content;width:max-content;padding-bottom:0;padding-top:0}.mobile-controls .time,.mobile-controls .live{position:absolute;top:-10px;right:0px}.control-hovers:hover,.control:active:not(.progress-container,.volume-bar-container){background:var(--parone-primary)}.settings-menu-container button:hover{background:var(--parone-primary)}.settings-menu-container button:hover span{color:#fff}.big-play-button{cursor:pointer;flex-shrink:0;overflow:visible;background:var(--parone-primary);border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:4;width:auto;touch-action:manipulation;display:none;fill:currentColor}.mobile-play-pause{cursor:pointer;flex-shrink:0;overflow:visible;border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;top:50%;transition:.3s;z-index:4;touch-action:manipulation;display:block;fill:currentColor;height:40px;transform:translate(-50%,-50%);width:40px}.big-play-button svg,.mobile-play-pause svg{cursor:pointer;color:#fff;fill:currentColor;display:block;height:18px;pointer-events:none;width:18px;left:2px;position:relative}.ads-container{z-index:3;position:absolute;top:0px}.ads-timer{z-index:4;position:absolute;right:5px;bottom:5px;width:-moz-fit-content;width:fit-content;background:#23282f;border-radius:2px;color:#ffffffbf;font-size:11px;padding:4px 6px;pointer-events:none}.settings-menu-container{animation:plyr-popup .2s ease;background:hsla(0,0%,100%,.85);border-radius:4px;bottom:100%;overscroll-behavior:contain;box-shadow:0 1px 2px #00000026;color:#4a5464;font-size:15px;margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:5;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.settings-menu-container:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:15px;top:100%;width:0}.settings-menu-container-down{transform:translateY(calc(100% + 42px))}.settings-menu-container-down:after{transform:rotate(180deg);top:-8px}.settings-menu{max-height:200px;overflow-y:auto}.settings-menu-container button{white-space:nowrap;background:transparent;border:0;border-radius:3px;cursor:pointer;flex-shrink:0;overflow:visible;position:relative;transition:all .3s ease;z-index:4;touch-action:manipulation;align-items:center;color:#4a5464;display:flex;font-size:13px;padding:6px 28px 6px 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;margin-top:2px}.settings-menu-container button>span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-right:5px;width:100%}.settings-menu{color:#4a5464;font-size:15px;text-align:left;white-space:nowrap;padding:7px}.settings-home>.settings-menu>button:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-left-color:#728197;right:6.5px}.settings-back{padding:5px}.settings-back:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-right-color:#728197;left:6.5px}.settings-back span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-left:15px;width:100%}.badge{white-space:nowrap;font:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-sizing:inherit;background:#4a5464;border-radius:2px;color:#fff;font-size:9px;line-height:1;padding:3px 4px}.captions{position:absolute;height:50px;left:0px;right:0px;bottom:25px;text-align:center}.captions>p{padding:5px;color:#fff;width:-moz-fit-content;width:fit-content;font-size:normal;margin:auto;background-color:#000}.settings-menu-button-radio:before{background:rgba(0,0,0,.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;transition:all .3s ease;width:16px;border-radius:100%}.settings-menu-button-radio:after{background:#fff;border:0;height:6px;left:16px;content:"";position:absolute;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px;border-radius:100%}.settings-menu-button-radio-checked:before{background-color:var(#076652)}.settings-menu-button-radio-checked:after{opacity:1;transform:translateY(-50%) scale(1)}.settings-menu-value{text-align:end;display:inline!important;padding-left:24px}.controls-bar-top{display:none;position:absolute;top:10px;right:5px;height:0px;opacity:0;width:-moz-fit-content;width:fit-content}.mobile-controls-top{position:absolute;top:5px;right:5px;width:-moz-fit-content;width:fit-content;z-index:5}.controls-bar-top-showing{display:none;position:absolute;top:10px;right:5px;height:-moz-fit-content;height:fit-content;transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:1}.controls-bar-top-showing-inAd .control:last-child{margin-right:25%}.controls-bar-top-showing-inAd{pointer-events:none}.controls-bar-top-showing-inAd .control,.inAd .ads-container{pointer-events:all}.ads-container{pointer-events:none}.mobile-controls{display:block;pointer-events:none;position:absolute;top:0px;bottom:0px;right:0px;left:0px;background:linear-gradient(transparent,rgba(0,0,0,.75));transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:0}@media (orientation: landscape){.fs .mobile-controls{height:100dvh}.force-mobile .mobile-controls,.fs-mobile{display:block!important}}.mobile-controls-big-buttons .control svg{width:36px;height:36px}.control{pointer-events:all}.docked .mobile-controls-big-buttons .control svg{width:16px;height:16px}.mobile-controls .controls-bar-showing{height:30px}.docked .mobile-controls .control{padding:6px}.mobile-controls-showing{opacity:1}.mobile-controls-big-buttons{display:grid;grid-template-columns:20% auto 20%;gap:.25rem;height:100%;justify-content:center;align-content:center;justify-items:center}.controls,.big-play-button{display:none}@media (min-width: 540px){.mobile-controls{display:none}.controls{display:flex}.big-play-button{display:block}}.fs-mobile .controls{display:none!important}.fs-close-button{position:absolute;top:8px;left:.5rem;width:18px;height:18px;border-radius:100%;padding:.25rem;cursor:pointer;text-align:center;display:flex;color:#fff;align-content:center;opacity:0}.fs-close-button:hover{background-color:#aaaaaabf}.show-fs-close-button{opacity:1}.focus-within\\:text-gray-600:focus-within{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity))}.hover\\:rounded-md:hover{border-radius:.375rem}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(221 221 221 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:hsl(120 40% 56% / var(--tw-bg-opacity))}.hover\\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:hsl(120 30% 36% / var(--tw-bg-opacity))}.hover\\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:hsl(120 20% 26% / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.hover\\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-green-500:focus{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: hsl(120 40% 56% / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-75{opacity:.75}@media (min-width: 640px){.sm\\:mx-0{margin-left:0!important;margin-right:0!important}.sm\\:mt-0{margin-top:0!important}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:flex{display:flex}.sm\\:hidden{display:none}.sm\\:h-screen{height:100vh}.sm\\:w-5\\/6{width:83.333333%}.sm\\:w-64{width:16rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-1{flex:1 1 0%}.sm\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-start{align-items:flex-start}.sm\\:items-end{align-items:flex-end}.sm\\:items-center{align-items:center}.sm\\:justify-center{justify-content:center}.sm\\:justify-between{justify-content:space-between}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pb-24{padding-bottom:6rem}.sm\\:pb-4{padding-bottom:1rem}.sm\\:pl-0{padding-left:0}.sm\\:pt-16{padding-top:4rem}.sm\\:text-center{text-align:center}.sm\\:align-middle{vertical-align:middle}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\\:flex{display:flex}.md\\:max-w-xl{max-width:36rem}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\\:block{display:block}.lg\\:inline-flex{display:inline-flex}.lg\\:hidden{display:none}.lg\\:max-w-2xl{max-width:42rem}.lg\\:max-w-full{max-width:100%}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\\:max-w-3xl{max-width:48rem}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1536px){.\\32xl\\:block{display:block}.\\32xl\\:max-w-4xl{max-width:56rem}.\\32xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1792px){.\\33xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (min-width: 2304px){.\\35xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}}@media (orientation: landscape){.landscape\\:my-0{margin-top:0!important;margin-bottom:0!important}} `,Pr=(r,n)=>{const c=r.__vccOpts||r;for(const[p,g]of n)c[p]=g;return c},xv=Pr(bv,[["styles",[wv]]]),yv={class:"ecom-inner-wrapper"},kv={key:0,width:"12",height:"12",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},_v=[U("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"},null,-1)],Tv={key:1,width:"12",height:"12",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Ev=[U("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"},null,-1)],Sv=["src"],Lv={class:"ecom-text-wrapper"},Av={class:"ecom-name"},Cv={class:"ecom-subtext"},Rv=["href"],Dv=[U("svg",{fill:"currentColor",height:"10",width:"10",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 460.775 460.775","xml:space":"preserve"},[U("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),U("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),U("g",{id:"SVGRepo_iconCarrier"},[U("path",{d:"M285.08,230.397L456.218,59.27c6.076-6.077,6.076-15.911,0-21.986L423.511,4.565c-2.913-2.911-6.866-4.55-10.992-4.55 c-4.127,0-8.08,1.639-10.993,4.55l-171.138,171.14L59.25,4.565c-2.913-2.911-6.866-4.55-10.993-4.55 c-4.126,0-8.08,1.639-10.992,4.55L4.558,37.284c-6.077,6.075-6.077,15.909,0,21.986l171.138,171.128L4.575,401.505 c-6.074,6.077-6.074,15.911,0,21.986l32.709,32.719c2.911,2.911,6.865,4.55,10.992,4.55c4.127,0,8.08-1.639,10.994-4.55 l171.117-171.12l171.118,171.12c2.913,2.911,6.866,4.55,10.993,4.55c4.128,0,8.081-1.639,10.992-4.55l32.709-32.719 c6.074-6.075,6.074-15.909,0-21.986L285.08,230.397z"})])],-1)],Iv=Ye({__name:"ShopOverlayBar",setup(r){const n=Dt("playerReference"),{currentContent:c,docked:p,time:g,started:v,inAd:b,showControls:k,configuration:S}=Tt(n),C=K({});Cr(()=>{var de,y;(y=(de=c.value)==null?void 0:de.ecommerceSettings)==null||y.forEach(re=>C.value[re.key]={...re,showing:!1})});const R=K(!1),D=K(!1),M=K(new Set),H=()=>{Object.values(C.value).forEach(de=>{if(b.value||!v.value)return;M.value||(M.value=new Set);let y=de.start_time<=g.value&&(!de.end_time||de.end_time>=g.value);y&&(M.value.has(`${ne.ecom_viewed}${de.key}`)||(M.value.add(`${ne.ecom_viewed}${de.key}`),jl(n,ne.ecom_viewed,c.value.key,{ecom_key:de.key,tracking_id:de.tracking_id},g.value,c.value.isLive))),C.value[de.key].showing=y})};Bt(g,H),Kt(()=>H),oe(()=>Object.values(C.value).some(de=>de.showing));const W=oe(()=>Object.values(C.value).filter(de=>de.showing).sort((de,y)=>de.order-y.order)),Y=K(!1),ce=oe(()=>W.value[0]);let se=null;Bt(ce,de=>{se&&clearTimeout(se),de&&(R.value=(de==null?void 0:de.start_state)=="EXPANDED",de.timer&&(se=setTimeout(()=>{!p.value&&!Y.value&&(R.value=!R.value)},de.timer*1e3)))});const ge=oe(()=>{var de;return((de=ce.value)==null?void 0:de.position)=="TOP"?R.value?"ecom-wrapper-top-expanded":p.value?"ecom-wrapper-top-docked":"ecom-wrapper-top-undocked":k.value?p.value?"ecom-wrapper-bottom-controls-docked":"ecom-wrapper-bottom-controls-undocked":R.value?"ecom-wrapper-bottom-expanded":p.value?"ecom-wrapper-bottom-docked":"ecom-wrapper-bottom-undocked"}),pe=oe(()=>{var de;return`border-color: ${((de=ce.value)==null?void 0:de.color)||"rgb(82, 152, 82)"}`}),_e=oe(()=>{var de;return`background-color: ${((de=ce.value)==null?void 0:de.color)||"rgb(82, 152, 82)"}`});function te(){jl(n,ne.ecom_clicked,c.value.key,{ecom_key:ce.value.key,tracking_id:ce.value.tracking_id},g.value,c.value.isLive)}const xe=()=>{var de;Y.value=!0,p.value?(window.open((de=ce.value)==null?void 0:de.href,"_blank"),te()):(R.value=!R.value,jl(n,R.value?ne.ecom_bar_shown:ne.ecom_bar_hidden,c.value.key,{ecom_key:ce.value.key,tracking_id:ce.value.tracking_id},g.value,c.value.isLive))};return Bt(p,de=>{de&&R.value&&(R.value=!1,D.value=!0),!de&&D.value&&(R.value=!0,D.value=!1)}),(de,y)=>(V(),ze(Ua,{"enter-active-class":"ecom-wrapper-entering","enter-from-class":"ecom-wrapper-enter-from","enter-to-class":"ecom-wrapper-enter-to","leave-active-class":"ecom-wrapper-leaving","leave-from-class":"ecom-wrapper-exit-from","leave-to-class":"ecom-wrapper-exit-to"},{default:Fi(()=>{var re,z;return[((re=ce.value)==null?void 0:re.showing)&&!((z=F(S))!=null&&z.hideEcom)?(V(),Q("div",{key:0,class:wt(["ecom-wrapper",[R.value&&!F(p)?"ecomExpanded":"",ge.value,F(Ul)?"inAmp":""]])},[U("span",yv,[U("div",{class:"ecom-img-wrapper",onClick:xe},[!R.value&&!F(p)?(V(),Q("div",{key:0,class:"ecom-chevron animated-chevron",style:wi(_e.value)},null,4)):ve("",!0),!R.value&&!F(p)?(V(),Q("div",{key:1,class:"ecom-chevron",style:wi(_e.value)},[R.value?(V(),Q("svg",Tv,Ev)):(V(),Q("svg",kv,_v))],4)):ve("",!0),U("img",{class:"ecom-icon",src:ce.value.icon+"?width=52",style:wi(pe.value)},null,12,Sv)]),U("div",Lv,[U("div",Av,Me(ce.value.name||""),1),U("div",Cv,Me(ce.value.subtext||""),1)]),U("a",{class:"ecom-button",onClick:te,href:ce.value.href,target:"_blank",style:wi(_e.value)},Me(ce.value.button_text||"Buy Now"),13,Rv)]),R.value&&!F(p)?(V(),Q("div",{key:0,class:"ecom-close",onClick:xe},Dv)):ve("",!0)],2)):ve("",!0)]}),_:1}))}}),X_="",Pv=["onClick"],Ov=["src"],Mv=["src"],Fv={key:1,class:"thumbnail-carousel-card-title custom-thumbnail-carousel-card-title"},Nv={key:2,class:"thumbnail-carousel-card-description custom-thumbnail-carousel-card-description"},zv=Ye({__name:"ThumbnailCarousel.ce",props:{count:{type:[String,Number],default:3},campaigns:{type:Array,default:()=>[]},vertical:{type:String,default:"false"},...ya},setup(r){const n=K([]),c=K(0);K(ne.thumbnail);const p=K(),g={},v=r,b=K(null),k=(se,ge)=>{se&&!g[ge]&&(g[ge]=!0,_a("",ne.thumbnail,ge,{},b))},S=oe(()=>v.vertical=="true"?"vertical-carousel custom-vertical-carousel":""),C=oe(()=>v.vertical=="true"?"vertical-carousel-card custom-vertical-carousel-card":""),R=oe(()=>Ir()),D=oe(()=>!(v.hideLogo=="true"||v.hideAll=="true")),M=oe(()=>!(v.hideTitle=="true"||v.hideAll=="true")),H=oe(()=>!(v.hideDescription=="true"||v.hideAll=="true")),W=oe(()=>{let se=new URL(Pl[v.env]);const ge={feed:v.feed,fingerprint:R.value,page:0};return se.search=new URLSearchParams(ge).toString(),se}),Y=oe(()=>n.value.slice(0,Number(v.count)||3));Kt(async()=>{if(b.value=await ka(v),b.value.stylesheet){const se=document.createElement("link");se.href=b.value.stylesheet,se.rel="stylesheet",Do(()=>{var ge;return(ge=p.value)==null?void 0:ge.appendChild(se)})}n.value=await ia(W.value.toString()),new Ho(se=>{c.value=se[0].contentRect.width}).observe(p.value)});function ce(se){window&&(window.location.href=`/parone/?parone-content-key=${se.key}`)}return(se,ge)=>(V(),Q("div",{class:wt(["thumbnail-carousel custom-thumbnail-carousel",S.value]),ref_key:"container",ref:p},[(V(!0),Q(nt,null,ri(Y.value,(pe,_e)=>(V(),Q("div",{class:wt(["thumbnail-carousel-card custom-thumbnail-carousel-card",C.value]),onClick:te=>ce(pe),key:pe.key},[Le(F($o),{onVisible:te=>k(te,pe.key)},null,8,["onVisible"]),U("img",{class:"thumbnail-carousel-card-image custom-thumbnail-carousel-card-image",src:pe.thumbnail},null,8,Ov),D.value?(V(),Q("img",{key:0,class:"thumbnail-carousel-card-logo custom-thumbnail-carousel-card-logo",src:pe.org_logo},null,8,Mv)):ve("",!0),M.value?(V(),Q("h4",Fv,Me(F(us)(pe,se.defaultlang)),1)):ve("",!0),H.value?(V(),Q("p",Nv,Me(F(ip)(pe,se.defaultlang)),1)):ve("",!0)],10,Pv))),128))],2))}}),dp=Pr(zv,[["styles",[`.thumbnail-carousel{display:flex;flex-direction:row;width:100%;gap:5px}.thumbnail-carousel-card{cursor:pointer;gap:5px}.vertical-carousel{flex-direction:column;width:-moz-fit-content;width:fit-content}.vertical-carousel-card .thumbnail-carousel-card-image{max-width:480px}.vertical-carousel-card{display:grid;grid-template-areas:"cardImage cardLogo cardTitle" "cardImage cardDescription cardDescription"}.thumbnail-carousel-card-image{max-width:100%;border-radius:10px;grid-area:cardImage;-o-object-fit:fill;object-fit:fill}.thumbnail-carousel-card-title{text-overflow:ellipsis;font-weight:500;font-size:2rem;margin:0;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardTitle}.vertical-carousel-card .thumbnail-carousel-card-title{max-width:unset}.thumbnail-carousel-card-description{text-overflow:ellipsis;white-space:wrap;overflow:hidden;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardDescription}.thumbnail-carousel-card-logo{height:3.5em;width:3.5em;-o-object-fit:contain;object-fit:contain;grid-area:cardLogo} `]]]),Bv=Ye({__name:"VideoBlock.ce",props:{campaign:[String,Number],contentKey:String,loop:String,video:{type:[Object,String],default(){return{}}},...ya},emits:Ga,setup(r,{emit:n}){const c=K(null),p=K(Ko),g=K(!0),v=K(!1);K(!1);const b=K(""),k=r,S=K(null),C=oe(()=>Ir());oe(()=>k.styles);function R(){k.campaign||k.contentKey?D():k.video&&(typeof k.video=="string"?p.value=JSON.parse(k.video):p.value=k.video)}async function D(){try{let W=H0(k.env,"can-play",{c:k.campaign,ck:k.contentKey,feed:k.feed,fingerprint:C.value});const Y=await ia(W.toString());Y.status=="expired"?g.value=!1:Y.status=="blocked"?v.value=!0:p.value=Y}catch(W){console.error(W),g.value=!1}}const M=n;Kt(async()=>{S.value=await ka(k,M),R()}),Bt(c,()=>{var se,ge,pe;const W=(pe=(ge=(se=c.value)==null?void 0:se._)==null?void 0:ge.vnode.el.getRootNode())==null?void 0:pe.host;if(!W)return;const{play:Y,pause:ce}=Tt(b.value);W.play=Y,W.pause=ce}),Bt(()=>k.video,()=>{R()}),Bt(()=>k.campaign,()=>{R()}),Bt(()=>k.contentKey,()=>{console.log("detected",k.contentKey),R()});const H=()=>{c.value._.vnode.el.dispatchEvent(new Event("videoEnded",{composed:!0})),k.loop=="true"&&D()};return(W,Y)=>g.value&&p.value.key&&S.value?(V(),ze(F(Ta),{key:0,ref_key:"root",ref:c,content:p.value,configuration:S.value,onNext:H,modelValue:b.value,"onUpdate:modelValue":Y[0]||(Y[0]=ce=>b.value=ce),geoblocked:v.value},null,8,["content","configuration","modelValue","geoblocked"])):ve("",!0)}}),cp=Pr(Bv,[["styles",[`.live-badge{background-color:red;border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;padding:10px;position:absolute;top:15px;left:15px;z-index:1000000;font-weight:700}.live-circle{width:10px;height:10px;background-color:gray;display:block;border-radius:100%;margin:auto}.live-circle-online{background-color:red}.live-badge-offline{background-color:#36363640}.live{border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;z-index:1000000;font-weight:500;padding:5px;margin-left:5px;margin-right:10px;display:flex;gap:5px}.gearIcon{width:20px;height:20px;vertical-align:middle}.filter{filter:invert(95%) sepia(100%) saturate(2%) hue-rotate(54deg) brightness(105%) contrast(101%)}.overlay>img{filter:unset}.video{grid-area:video;position:relative}.player-logo{grid-area:logo;width:4rem;height:4rem;margin-top:1rem;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}.player-description{grid-area:description;word-break:normal;overflow-y:auto;margin-top:1rem;max-height:150px}.player-title{grid-area:title;word-break:normal;font-weight:800}.overlay{position:absolute;z-index:1}.info{position:absolute;opacity:.5;background-color:#000;width:100%;height:100%;z-index:2;bottom:0}.player{display:grid;grid-template-areas:"title title title" "video video video" "logo description description";position:relative}.docked{position:fixed;right:10px;width:360px;padding:clamp(5px,1vw,10px);max-width:60%!important;height:-moz-fit-content;height:fit-content;aspect-ratio:16/9;padding-top:0;background-color:#1b1b1b}.docked_logo{height:20px;margin-top:auto}.docked-close-container{color:#fff;text-align:right;padding-bottom:5px;cursor:pointer;font-size:small;display:flex;justify-content:space-between}.docked-close-icon{width:20px;height:20px;position:relative;top:5px}.fs{position:fixed;display:flex;top:0px;bottom:0px;right:0px;left:0px;background-color:#000;z-index:100;place-content:center}@media (orientation: landscape){.iphone-fs video{max-height:100vh}.iphone-fs .control svg{width:30px;height:30px}.iphone-fs .controls-bar-showing{height:80px}.iphone-fs .controls-bar{padding-bottom:20px!important}.iphone-fs .control{padding:12px}.iphone-fs .controls-clock{margin-left:-12px;font-size:17px}.iphone-fs .volume-control{margin-right:-12px}.iphone-fs input[type=range]::-moz-range-thumb{height:24px;width:24px}.iphone-fs input[type=range]::-webkit-slider-thumb{height:24px;width:24px;margin-top:-9px}}.fs .video-container{align-self:center}.video-container{position:relative;width:100%}.ads-hidden{display:none}.scoreboard-overlay-button{z-index:20;height:20px;width:20px;border-radius:50%;position:absolute;top:50px;background-color:#efefefde;left:10px;cursor:pointer;transition:all .5s}.scoreboard-overlay-button-open{left:220px}.scoreboard-overlay{z-index:20;height:80%;padding:5px;position:absolute;border-radius:.5rem;background-color:#efefefde;top:10%;left:-1000px;width:200px;opacity:0;transition:all .5s}.scoreboard-overlay-open{left:10px;opacity:1}.multi-feed-playlist-name{text-align:center}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px;width:200px;margin-left:10px;margin-right:10px;flex:0 0 auto}.multi-feed{width:100%;overflow-x:hidden}.multi-feed-video-list{margin:0;padding:0;display:flex;flex-direction:row;height:-moz-fit-content;height:fit-content;overflow-x:auto;width:100%}.multi-feed-player{grid-area:video}.multi-feed-nav-button{cursor:pointer;text-decoration:underline;position:absolute;background-color:#535252bf;height:50px;width:50px;z-index:1;color:#fff}.multi-feed-nav-next{text-align:right;right:2px}.multi-feed-nav-prev{text-align:left;left:2px}.multi-feed-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.multi-feed-player>.custom-player>.custom-player-title{height:50px}.multi-feed-player>.custom-player>.custom-player-description{height:75px}.multi-feed-player>.custom-player>.custom-video{max-height:unset}.carousel-publisher-info{width:200px;margin:auto;display:grid;grid-template-areas:"distributorLogo" "feedName";grid-area:distributorInfo}.carousel-publisher-logo{height:100px;width:100px;margin:auto}.carousel-playlist-name{text-align:center}.video-card-thumbnail{grid-area:videoThumbnail}.video-card-thumbnail-image{width:100%}.video-card-title{grid-area:videoName}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px}.carousel-playlist{display:grid;grid-template-areas:"video" "distributorInfo" "carouselContainer"}.carousel-container{display:grid;grid-area:carouselContainer;grid-template-areas:"nav nav nav" "carousel carousel carousel"}.carousel-player{grid-area:video}.carousel{grid-area:carousel}.carousel-nav{display:grid;grid-area:nav;grid-template-areas:"prev pages next";width:50%;margin:auto}.carousel-nav-next{grid-area:next;text-align:right;cursor:pointer;text-decoration:underline}.carousel-nav-prev{grid-area:prev;text-align:left;cursor:pointer;text-decoration:underline}.carousel-nav-pages{grid-area:pages;text-align:center}.carousel-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.carousel-player>.custom-player>.custom-player-title{height:50px}.carousel-player>.custom-player>.custom-player-description{height:75px}.carousel-player>.custom-player>.custom-video{max-height:unset}.carousel-video-list{height:100%;overflow-y:auto;overflow-x:hidden;display:grid;grid-column-gap:15px;grid-row-gap:15px;grid-template-columns:repeat(1,1fr);grid-template-rows:auto}@media screen and (min-width: 480px){.carousel-video-list{grid-template-columns:repeat(3,1fr)}}.thumbnail-carousel{display:flex;flex-direction:row;width:100%;gap:5px}.thumbnail-carousel-card{cursor:pointer;gap:5px}.vertical-carousel{flex-direction:column;width:-moz-fit-content;width:fit-content}.vertical-carousel-card .thumbnail-carousel-card-image{max-width:480px}.vertical-carousel-card{display:grid;grid-template-areas:"cardImage cardLogo cardTitle" "cardImage cardDescription cardDescription"}.thumbnail-carousel-card-image{max-width:100%;border-radius:10px;grid-area:cardImage;-o-object-fit:fill;object-fit:fill}.thumbnail-carousel-card-title{text-overflow:ellipsis;font-weight:500;font-size:2rem;margin:0;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardTitle}.vertical-carousel-card .thumbnail-carousel-card-title{max-width:unset}.thumbnail-carousel-card-description{text-overflow:ellipsis;white-space:wrap;overflow:hidden;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardDescription}.thumbnail-carousel-card-logo{height:3.5em;width:3.5em;-o-object-fit:contain;object-fit:contain;grid-area:cardLogo}.feed{height:"100%";overflow-y:"scroll";overflow-x:"hidden"}.publisher-info{display:grid;width:100%;grid-template-areas:"playlistDistributorLogo playlistFeedName";grid-area:playlistDistributorInfo}.playlist-name{grid-area:playlistFeedName}.playlist-publisher-logo{max-height:75px;grid-area:playlistDistributorLogo}.playlist-name{margin-top:35px}.playlist-player{grid-area:playlistVideo}.playlist-video-list{overflow-y:scroll;overflow-x:hidden;display:grid;grid-template-columns:1fr;grid-template-rows:auto;grid-area:playlistVideoList}.playlist-card{display:grid;grid-template-areas:"videoThumbnail videoName" "videoThumbnail videoDescription";height:100px;margin-top:5px;grid-column-gap:15px;overflow:hidden;grid-template-columns:2fr 3fr;align-items:start;cursor:pointer}.playlist-card-thumbnail{grid-area:videoThumbnail}.playlist-card-thumbnail-image{height:100px;width:100%}.playlist-card-name{grid-area:videoName}.playlist-card-description{font-size:.75rem;color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;grid-area:videoDescription}.playlist-player>.custom-player{grid-template-rows:3fr 1fr 3fr;grid-template-columns:4fr 1fr;grid-template-areas:"video video" "title logo" "description description";max-height:100%}.playlist-player>.custom-player>.custom-video{max-height:425px}.playlist-player>.custom-player>.custom-player-title{height:50px}.playlist-player>.custom-player>.custom-player-description{height:125px}.playlist{display:flex;flex-direction:column}@media screen and (min-width: 700px){.playlist{display:grid;grid-template-areas:"playlistVideo playlistDistributorInfo" "playlistVideo playlistVideoList" "playlistVideo playlistVideoList";grid-template-columns:3fr 2fr;grid-template-rows:1fr 4fr;grid-column-gap:10px;height:500px}.playlist-player>.custom-player{grid-template-rows:4fr 1fr 3fr}}.shop-overlay-bar{position:absolute;top:0px;padding:5px 0 0;gap:clamp(5px,100vw,12px);z-index:4;display:flex;flex-direction:row;left:0px;right:0px;overflow-x:auto;pointer-events:none;height:clamp(-moz-min-content,4vw,48px);height:clamp(min-content,4vw,48px);overflow-y:hidden}.overlay-bar-chevron{height:-moz-min-content;height:min-content;align-self:center;pointer-events:all;margin-right:-15px;padding:2px;border:unset!important}.overlay-bar-icon-visible{opacity:1;height:-moz-fit-content;height:fit-content;pointer-events:all}.overlay-bar-icon-hidden{opacity:0;height:0px;pointer-events:none}.overlay-bar-icon>img{border:2px solid black;border-radius:50%}.overlay-bar-icon{z-index:2;cursor:pointer;text-align:center;transition:opacity .75s linear;transition:height .2s linear;color:#fff;border-radius:10px;width:clamp(17px,100vw,48px);height:clamp(17px,100vw,48px);font-weight:800}.overlay-bar-icon>img{height:100%;min-width:15px;width:100%;transition:all .2s linear}@media (max-width: 500px){.overlay-bar-icon{width:32px;height:32px}}.ecom-wrapper{position:absolute;display:flex;left:15px;flex-shrink:0;border-radius:.5rem;border-width:0px;border-style:none;border-color:#ddd;background-color:transparent;padding:12px;width:50px;overflow-x:hidden;overflow-y:hidden;transition:all .25s;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);height:72px}.ecom-inner-wrapper{display:flex;align-items:center}.ecom-icon{border:solid;border-width:2px;border-radius:9999px;width:3rem;height:3rem;cursor:pointer}.ecom-name{font-size:1rem;line-height:1.5rem;font-weight:700;color:#444;pointer-events:none}.ecom-subtext{color:#999;font-size:.875rem;line-height:1.25rem;pointer-events:none}.ecom-button{border:none;cursor:pointer;height:1.2rem;width:-moz-max-content;width:max-content;margin-left:.5rem;border-radius:9999px;color:#fff;font-weight:600;font-size:.875rem;line-height:1.25rem;text-decoration:none;text-align:center;padding:.5rem 1rem}.ecom-text-wrapper{padding-left:.75rem}@keyframes ping{0%,60%{transform:scale(1);opacity:1;filter:brightness(1)}70%{transform:scale(1.3);opacity:.75;filter:brightness(2)}to{transform:scale(.75);opacity:.25;filter:brightness(.5)}}.animated-chevron{animation:ping 5s cubic-bezier(0,0,.1,1) infinite}.ecom-chevron{position:absolute;border-radius:100%;bottom:-5px;right:-5px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center}.ecom-img-wrapper{position:relative;display:flex;place-content:center}.ecom-close{position:absolute;border-radius:100%;top:-10px;right:-10px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center;background-color:#afafaf}.ecom-close svg{margin-top:2px}@media (max-width: 500px){.ecom-icon{width:2.5rem;height:2.5rem}.ecom-name,.ecom-subtext{font-size:.8rem}.ecom-button{font-size:.5rem;padding:.1rem .5rem}.ecom-wrapper{padding:5px;width:3rem}.ecom-img-wrapper{width:3rem}}.ecomExpanded{width:-moz-max-content;width:max-content;overflow-y:visible;border-width:2px;height:48px;background-color:#efefefde;overflow-x:visible;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ecom-wrapper-entering,.ecom-wrapper-leaving{transition:all .5s}.ecom-wrapper-enter-from{opacity:0}.ecom-wrapper-enter-to,.ecom-wrapper-leave-from{opacity:1}.ecom-wrapper-leave-to{opacity:0}.ecom-wrapper-top-expanded{top:15px}.ecom-wrapper-top-docked{top:-15px;left:0px}.ecom-wrapper-top-undocked{top:0px}.ecom-wrapper-bottom-expanded-undocked{top:15px}.ecom-wrapper-bottom-docked{bottom:-10px;left:0px}.ecom-wrapper-bottom-controls-docked{bottom:30px}.ecom-wrapper-bottom-controls-undocked{bottom:50px}.ecom-wrapper-bottom-undocked{bottom:30px}.ecom-wrapper-bottom-expanded{bottom:15px}@media (orientation: landscape){.iphone-fs .ecom-wrapper-top-expanded{top:30px}.iphone-fs .ecom-wrapper-top-undocked{top:0px}.iphone-fs .ecom-wrapper-bottom-expanded-undocked{top:15px}.iphone-fs .ecom-wrapper-bottom-controls-undocked{bottom:65px}.iphone-fs .ecom-wrapper-bottom-undocked{bottom:10px}.iphone-fs .ecom-wrapper-bottom-expanded{bottom:20px}}.inAmp.ecom-wrapper-bottom-undocked{bottom:-5px;left:5px}.inAmp.ecom-wrapper-top-undocked{top:-10px;left:0px}.inAmp.ecom-wrapper-bottom-controls-undocked{bottom:30px;left:10px}.pylon-img{height:500px;-o-object-fit:contain;object-fit:contain}.pylon-toggle{color:#fff;pointer-events:all}.pylon-overlay{position:absolute;top:0px;z-index:2;left:10px;right:0px;overflow-x:auto;pointer-events:none;overflow-y:hidden}.stream-ui{display:grid;grid-template-columns:repeat(4,1fr);grid-column-gap:20px;transition:all 1s;opacity:0;position:absolute;bottom:100px;left:10px;right:10px;z-index:3;justify-content:center;transition:opacity 1s}.hidden-stream-item{display:none}.stream-ui-gridded{display:grid;grid-column-gap:0px;bottom:0px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.stream-grid-button{z-index:20;height:20px;width:20px;border-radius:50%;top:50px;left:calc(50% - 10px);cursor:pointer;background-color:#efefefde;position:absolute;opacity:0;transition:opacity 1s}.stream-ui-visible{opacity:1}.special{all:initial}.special>*{all:initial}.special img{max-width:unset!important}.special .ecom-wrapper *,.special .ecom-wrapper,.special .ecom-wrapper img{box-sizing:initial}fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:before,.multiselect__spinner:after{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border-color:#41b883 transparent transparent;border-style:solid;border-width:2px;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:initial;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\\d7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #e8e8e8;cursor:pointer}.multiselect__select{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:5px 5px 0 5px;border-color:#999 transparent transparent transparent;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-radius:5px 5px 0 0;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::-webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}*[dir=rtl] .multiselect{text-align:right}*[dir=rtl] .multiselect__select{right:auto;left:1px}*[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}*[dir=rtl] .multiselect__content{text-align:right}*[dir=rtl] .multiselect__option:after{right:auto;left:0}*[dir=rtl] .multiselect__clear{right:auto;left:12px}*[dir=rtl] .multiselect__spinner{right:auto;left:1px}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}@media (min-width: 1792px){.\\!container{max-width:1792px!important}.container{max-width:1792px}}@media (min-width: 2048px){.\\!container{max-width:2048px!important}.container{max-width:2048px}}@media (min-width: 2304px){.\\!container{max-width:2304px!important}.container{max-width:2304px}}@media (min-width: 2560px){.\\!container{max-width:2560px!important}.container{max-width:2560px}}@media (min-width: 3072px){.\\!container{max-width:3072px!important}.container{max-width:3072px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0px}.inset-y-0{top:0px;bottom:0px}.inset-y-5{top:1.25rem;bottom:1.25rem}.bottom-4{bottom:1rem}.left-0{left:0px}.right-0{right:0px}.right-6{right:1.5rem}.top-0{top:0px}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2000\\]{z-index:2000}.m-0{margin:0!important}.m-1{margin:.25rem}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-40{margin-top:10rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-10{width:2.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.max-w-7xl{max-width:80rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.basis-1\\/3{flex-basis:33.333333%}.-translate-x-4{--tw-translate-x: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.gap-2{gap:.5rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-10{row-gap:2.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(221 221 221 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(187 187 187 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(239 239 239 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(102 102 102 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(85 85 85 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:hsl(120 50% 86% / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:hsl(120 30% 46% / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-0\\.5{padding-top:.125rem}.pt-12{padding-top:3rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-bottom{vertical-align:bottom}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(68 68 68 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:hsl(120 50% 66% / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:hsl(120 30% 46% / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.player{--parone-primary: rgb(7, 102, 82)}video::-webkit-media-text-track-container{display:var(--webkit-text-track-display)}*{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.controls-bar{width:100%;align-items:center;display:flex;justify-content:flex-end;text-align:center;bottom:0px;opacity:0;padding:10px;position:absolute;height:0px;box-sizing:border-box;transition:opacity .4s ease-in-out,height .4s ease-in-out;z-index:4}.controls-bar-showing{opacity:1;height:47px;background:linear-gradient(transparent,rgba(0,0,0,.75))}.controls-bar .control:first-child{margin-left:0;margin-right:auto}video{width:100%}.control svg{width:18px;height:18px;fill:currentColor}.tooltip{cursor:default;text-align:center;border-radius:3px;bottom:100%;line-height:1.3;margin-bottom:20px;opacity:0;padding:5px 7.5px;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2;box-shadow:0 1px 2px #00000026;font-size:13px;pointer-events:all;background-color:#fff;color:#000}.tooltip:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:20px;top:100%;width:0}.control{background:transparent;border:0;border-radius:3px;color:#fff;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;position:relative;transition:all .3s ease;z-index:4;margin-left:2.5px;touch-action:manipulation}input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-progress{background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-moz-range-thumb{background-color:#fff;height:16px;width:16px;border-radius:50%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;margin-top:-6px;background:white;height:16px;width:16px;border-radius:50%;color:#fff}input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-track{background-color:#ffffff40;height:5px;border-radius:.5rem}.volume-bar::-webkit-slider-runnable-track{background-color:#ffffff40;border-radius:.5rem;height:5px;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.volume-bar-container{align-items:center;display:flex;width:clamp(30px,15%,68px);position:relative;padding:7px 5px;margin-left:0}.volume-bar{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:15px;display:block;height:20px;margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;position:relative;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.progress{text-align:center;left:7px;margin-right:13px;position:relative;visibility:visible;pointer-events:all}.progress-container{text-align:center;flex-grow:1;width:-moz-min-content;width:min-content;min-width:20px;padding:0;margin-left:2.5px;cursor:default}progress{color:#ffffff40;margin-left:-7px;margin-right:-7px;width:calc(100% + 13px);min-width:0px;-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:5px;left:0;margin-top:-2.5px;padding:0;position:absolute;top:50%;border-radius:.5rem}progress::-moz-progress-bar{border-radius:100px;min-width:5px;-moz-transition:width .2s ease;transition:width .2s ease;background-color:#ffffff80;border-radius:.5rem}progress::-webkit-progress-bar{border-radius:100px;min-width:5px;-webkit-transition:width .2s ease;transition:width .2s ease;border-radius:.5rem}progress::-webkit-progress-value{background-color:#ffffff80;border-radius:.5rem}.progress>input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;background-image:linear-gradient(to right,#6a7b78 var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input[type=range]::-moz-range-progress{background-color:#6a7b78!important;height:5px}.seekbar-disabled input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:#6a7b78!important;height:5px}.progress input{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;display:block;height:20px;min-width:0;padding:0;transition:box-shadow .3s ease;margin:0 -7px;width:calc(100% + 13px);position:relative;z-index:2;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.controls-clock{font-size:13px;width:40px;padding:7px 10px 7px 5px}.mobile-controls .controls-clock{width:-moz-max-content;width:max-content;padding-bottom:0;padding-top:0}.mobile-controls .time,.mobile-controls .live{position:absolute;top:-10px;right:0px}.control-hovers:hover,.control:active:not(.progress-container,.volume-bar-container){background:var(--parone-primary)}.settings-menu-container button:hover{background:var(--parone-primary)}.settings-menu-container button:hover span{color:#fff}.big-play-button{cursor:pointer;flex-shrink:0;overflow:visible;background:var(--parone-primary);border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:4;width:auto;touch-action:manipulation;display:none;fill:currentColor}.mobile-play-pause{cursor:pointer;flex-shrink:0;overflow:visible;border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;top:50%;transition:.3s;z-index:4;touch-action:manipulation;display:block;fill:currentColor;height:40px;transform:translate(-50%,-50%);width:40px}.big-play-button svg,.mobile-play-pause svg{cursor:pointer;color:#fff;fill:currentColor;display:block;height:18px;pointer-events:none;width:18px;left:2px;position:relative}.ads-container{z-index:3;position:absolute;top:0px}.ads-timer{z-index:4;position:absolute;right:5px;bottom:5px;width:-moz-fit-content;width:fit-content;background:#23282f;border-radius:2px;color:#ffffffbf;font-size:11px;padding:4px 6px;pointer-events:none}.settings-menu-container{animation:plyr-popup .2s ease;background:hsla(0,0%,100%,.85);border-radius:4px;bottom:100%;overscroll-behavior:contain;box-shadow:0 1px 2px #00000026;color:#4a5464;font-size:15px;margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:5;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.settings-menu-container:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:15px;top:100%;width:0}.settings-menu-container-down{transform:translateY(calc(100% + 42px))}.settings-menu-container-down:after{transform:rotate(180deg);top:-8px}.settings-menu{max-height:200px;overflow-y:auto}.settings-menu-container button{white-space:nowrap;background:transparent;border:0;border-radius:3px;cursor:pointer;flex-shrink:0;overflow:visible;position:relative;transition:all .3s ease;z-index:4;touch-action:manipulation;align-items:center;color:#4a5464;display:flex;font-size:13px;padding:6px 28px 6px 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;margin-top:2px}.settings-menu-container button>span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-right:5px;width:100%}.settings-menu{color:#4a5464;font-size:15px;text-align:left;white-space:nowrap;padding:7px}.settings-home>.settings-menu>button:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-left-color:#728197;right:6.5px}.settings-back{padding:5px}.settings-back:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-right-color:#728197;left:6.5px}.settings-back span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-left:15px;width:100%}.badge{white-space:nowrap;font:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-sizing:inherit;background:#4a5464;border-radius:2px;color:#fff;font-size:9px;line-height:1;padding:3px 4px}.captions{position:absolute;height:50px;left:0px;right:0px;bottom:25px;text-align:center}.captions>p{padding:5px;color:#fff;width:-moz-fit-content;width:fit-content;font-size:normal;margin:auto;background-color:#000}.settings-menu-button-radio:before{background:rgba(0,0,0,.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;transition:all .3s ease;width:16px;border-radius:100%}.settings-menu-button-radio:after{background:#fff;border:0;height:6px;left:16px;content:"";position:absolute;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px;border-radius:100%}.settings-menu-button-radio-checked:before{background-color:var(#076652)}.settings-menu-button-radio-checked:after{opacity:1;transform:translateY(-50%) scale(1)}.settings-menu-value{text-align:end;display:inline!important;padding-left:24px}.controls-bar-top{display:none;position:absolute;top:10px;right:5px;height:0px;opacity:0;width:-moz-fit-content;width:fit-content}.mobile-controls-top{position:absolute;top:5px;right:5px;width:-moz-fit-content;width:fit-content;z-index:5}.controls-bar-top-showing{display:none;position:absolute;top:10px;right:5px;height:-moz-fit-content;height:fit-content;transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:1}.controls-bar-top-showing-inAd .control:last-child{margin-right:25%}.controls-bar-top-showing-inAd{pointer-events:none}.controls-bar-top-showing-inAd .control,.inAd .ads-container{pointer-events:all}.ads-container{pointer-events:none}.mobile-controls{display:block;pointer-events:none;position:absolute;top:0px;bottom:0px;right:0px;left:0px;background:linear-gradient(transparent,rgba(0,0,0,.75));transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:0}@media (orientation: landscape){.fs .mobile-controls{height:100dvh}.force-mobile .mobile-controls,.fs-mobile{display:block!important}}.mobile-controls-big-buttons .control svg{width:36px;height:36px}.control{pointer-events:all}.docked .mobile-controls-big-buttons .control svg{width:16px;height:16px}.mobile-controls .controls-bar-showing{height:30px}.docked .mobile-controls .control{padding:6px}.mobile-controls-showing{opacity:1}.mobile-controls-big-buttons{display:grid;grid-template-columns:20% auto 20%;gap:.25rem;height:100%;justify-content:center;align-content:center;justify-items:center}.controls,.big-play-button{display:none}@media (min-width: 540px){.mobile-controls{display:none}.controls{display:flex}.big-play-button{display:block}}.fs-mobile .controls{display:none!important}.fs-close-button{position:absolute;top:8px;left:.5rem;width:18px;height:18px;border-radius:100%;padding:.25rem;cursor:pointer;text-align:center;display:flex;color:#fff;align-content:center;opacity:0}.fs-close-button:hover{background-color:#aaaaaabf}.show-fs-close-button{opacity:1}.focus-within\\:text-gray-600:focus-within{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity))}.hover\\:rounded-md:hover{border-radius:.375rem}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(221 221 221 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:hsl(120 40% 56% / var(--tw-bg-opacity))}.hover\\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:hsl(120 30% 36% / var(--tw-bg-opacity))}.hover\\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:hsl(120 20% 26% / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.hover\\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-green-500:focus{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: hsl(120 40% 56% / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-75{opacity:.75}@media (min-width: 640px){.sm\\:mx-0{margin-left:0!important;margin-right:0!important}.sm\\:mt-0{margin-top:0!important}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:flex{display:flex}.sm\\:hidden{display:none}.sm\\:h-screen{height:100vh}.sm\\:w-5\\/6{width:83.333333%}.sm\\:w-64{width:16rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-1{flex:1 1 0%}.sm\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-start{align-items:flex-start}.sm\\:items-end{align-items:flex-end}.sm\\:items-center{align-items:center}.sm\\:justify-center{justify-content:center}.sm\\:justify-between{justify-content:space-between}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pb-24{padding-bottom:6rem}.sm\\:pb-4{padding-bottom:1rem}.sm\\:pl-0{padding-left:0}.sm\\:pt-16{padding-top:4rem}.sm\\:text-center{text-align:center}.sm\\:align-middle{vertical-align:middle}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\\:flex{display:flex}.md\\:max-w-xl{max-width:36rem}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\\:block{display:block}.lg\\:inline-flex{display:inline-flex}.lg\\:hidden{display:none}.lg\\:max-w-2xl{max-width:42rem}.lg\\:max-w-full{max-width:100%}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\\:max-w-3xl{max-width:48rem}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1536px){.\\32xl\\:block{display:block}.\\32xl\\:max-w-4xl{max-width:56rem}.\\32xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1792px){.\\33xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (min-width: 2304px){.\\35xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}}@media (orientation: landscape){.landscape\\:my-0{margin-top:0!important;margin-bottom:0!important}} `]]]);function up(r,n){if(!Array.isArray(r))throw new Error("shuffle expect an array as parameter.");n=n||{};var c=r,p=r.length,g=n.rng||Math.random,v,b;for(n.copy===!0&&(c=r.slice());p;)v=Math.floor(g()*p),p-=1,b=c[p],c[p]=c[v],c[v]=b;return c}up.pick=function(r,n){if(!Array.isArray(r))throw new Error("shuffle.pick() expect an array as parameter.");n=n||{};var c=n.rng||Math.random,p=n.picks||1;if(typeof p=="number"&&p!==1){for(var g=r.length,v=r.slice(),b=[],k;p&&g;)k=Math.floor(c()*g),b.push(v[k]),v.splice(k,1),g-=1,p-=1;return b}return r[Math.floor(c()*r.length)]};var pp=up;const Uv=Ye({__name:"VideoBlockPlaylist.ce",props:{video:{type:[Object,String],default(){return Ko}},campaigns:String,contentKeys:String,shuffle:{type:String,default:"false"},allowLive:{type:String,default:"false,"},...ya},emits:Ga,setup(r,{emit:n}){const c=K([]),p=K(0);K(!1);const g=K(null),v=K(""),b=r,k=K(null),S=oe(()=>Ir()),C=oe(()=>c.value[p.value]||Ko),R=oe(()=>c.value.length>0);oe(()=>b.styles);async function D(){k.autoplay=!0,p.value==c.value.length-2&&await H(),p.value==c.value.length-1?p.value=0:p.value++}const M=K(0);async function H(){const{feedUrl:Y}=cs(b,S,M.value),ce=(await ia(Y.value)).filter(se=>b.allowLive=="true"?!0:!se.isLive).slice(0,5);c.value=b.shuffle=="true"?pp(ce):ce,M.value++}const W=n;return Kt(async()=>{H(),k.value=await ka(b,W)}),Bt(v,()=>{var ge,pe,_e;if(!v.value)return;const Y=(_e=(pe=(ge=g.value)==null?void 0:ge._)==null?void 0:pe.vnode.el.getRootNode())==null?void 0:_e.host;if(!Y)return;const{play:ce,pause:se}=Tt(v.value);Y.play=ce,Y.pause=se}),(Y,ce)=>R.value?(V(),ze(F(Ta),{key:0,ref_key:"root",ref:g,content:C.value,isAutoPlaylist:!0,configuration:k.value,modelValue:v.value,"onUpdate:modelValue":ce[0]||(ce[0]=se=>v.value=se),onNext:D},null,8,["content","configuration","modelValue"])):ve("",!0)}}),Vv=Pr(Uv,[["styles",[`.live-badge{background-color:red;border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;padding:10px;position:absolute;top:15px;left:15px;z-index:1000000;font-weight:700}.live-circle{width:10px;height:10px;background-color:gray;display:block;border-radius:100%;margin:auto}.live-circle-online{background-color:red}.live-badge-offline{background-color:#36363640}.live{border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;z-index:1000000;font-weight:500;padding:5px;margin-left:5px;margin-right:10px;display:flex;gap:5px}.gearIcon{width:20px;height:20px;vertical-align:middle}.filter{filter:invert(95%) sepia(100%) saturate(2%) hue-rotate(54deg) brightness(105%) contrast(101%)}.overlay>img{filter:unset}.video{grid-area:video;position:relative}.player-logo{grid-area:logo;width:4rem;height:4rem;margin-top:1rem;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}.player-description{grid-area:description;word-break:normal;overflow-y:auto;margin-top:1rem;max-height:150px}.player-title{grid-area:title;word-break:normal;font-weight:800}.overlay{position:absolute;z-index:1}.info{position:absolute;opacity:.5;background-color:#000;width:100%;height:100%;z-index:2;bottom:0}.player{display:grid;grid-template-areas:"title title title" "video video video" "logo description description";position:relative}.docked{position:fixed;right:10px;width:360px;padding:clamp(5px,1vw,10px);max-width:60%!important;height:-moz-fit-content;height:fit-content;aspect-ratio:16/9;padding-top:0;background-color:#1b1b1b}.docked_logo{height:20px;margin-top:auto}.docked-close-container{color:#fff;text-align:right;padding-bottom:5px;cursor:pointer;font-size:small;display:flex;justify-content:space-between}.docked-close-icon{width:20px;height:20px;position:relative;top:5px}.fs{position:fixed;display:flex;top:0px;bottom:0px;right:0px;left:0px;background-color:#000;z-index:100;place-content:center}@media (orientation: landscape){.iphone-fs video{max-height:100vh}.iphone-fs .control svg{width:30px;height:30px}.iphone-fs .controls-bar-showing{height:80px}.iphone-fs .controls-bar{padding-bottom:20px!important}.iphone-fs .control{padding:12px}.iphone-fs .controls-clock{margin-left:-12px;font-size:17px}.iphone-fs .volume-control{margin-right:-12px}.iphone-fs input[type=range]::-moz-range-thumb{height:24px;width:24px}.iphone-fs input[type=range]::-webkit-slider-thumb{height:24px;width:24px;margin-top:-9px}}.fs .video-container{align-self:center}.video-container{position:relative;width:100%}.ads-hidden{display:none}.scoreboard-overlay-button{z-index:20;height:20px;width:20px;border-radius:50%;position:absolute;top:50px;background-color:#efefefde;left:10px;cursor:pointer;transition:all .5s}.scoreboard-overlay-button-open{left:220px}.scoreboard-overlay{z-index:20;height:80%;padding:5px;position:absolute;border-radius:.5rem;background-color:#efefefde;top:10%;left:-1000px;width:200px;opacity:0;transition:all .5s}.scoreboard-overlay-open{left:10px;opacity:1}.multi-feed-playlist-name{text-align:center}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px;width:200px;margin-left:10px;margin-right:10px;flex:0 0 auto}.multi-feed{width:100%;overflow-x:hidden}.multi-feed-video-list{margin:0;padding:0;display:flex;flex-direction:row;height:-moz-fit-content;height:fit-content;overflow-x:auto;width:100%}.multi-feed-player{grid-area:video}.multi-feed-nav-button{cursor:pointer;text-decoration:underline;position:absolute;background-color:#535252bf;height:50px;width:50px;z-index:1;color:#fff}.multi-feed-nav-next{text-align:right;right:2px}.multi-feed-nav-prev{text-align:left;left:2px}.multi-feed-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.multi-feed-player>.custom-player>.custom-player-title{height:50px}.multi-feed-player>.custom-player>.custom-player-description{height:75px}.multi-feed-player>.custom-player>.custom-video{max-height:unset}.carousel-publisher-info{width:200px;margin:auto;display:grid;grid-template-areas:"distributorLogo" "feedName";grid-area:distributorInfo}.carousel-publisher-logo{height:100px;width:100px;margin:auto}.carousel-playlist-name{text-align:center}.video-card-thumbnail{grid-area:videoThumbnail}.video-card-thumbnail-image{width:100%}.video-card-title{grid-area:videoName}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px}.carousel-playlist{display:grid;grid-template-areas:"video" "distributorInfo" "carouselContainer"}.carousel-container{display:grid;grid-area:carouselContainer;grid-template-areas:"nav nav nav" "carousel carousel carousel"}.carousel-player{grid-area:video}.carousel{grid-area:carousel}.carousel-nav{display:grid;grid-area:nav;grid-template-areas:"prev pages next";width:50%;margin:auto}.carousel-nav-next{grid-area:next;text-align:right;cursor:pointer;text-decoration:underline}.carousel-nav-prev{grid-area:prev;text-align:left;cursor:pointer;text-decoration:underline}.carousel-nav-pages{grid-area:pages;text-align:center}.carousel-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.carousel-player>.custom-player>.custom-player-title{height:50px}.carousel-player>.custom-player>.custom-player-description{height:75px}.carousel-player>.custom-player>.custom-video{max-height:unset}.carousel-video-list{height:100%;overflow-y:auto;overflow-x:hidden;display:grid;grid-column-gap:15px;grid-row-gap:15px;grid-template-columns:repeat(1,1fr);grid-template-rows:auto}@media screen and (min-width: 480px){.carousel-video-list{grid-template-columns:repeat(3,1fr)}}.thumbnail-carousel{display:flex;flex-direction:row;width:100%;gap:5px}.thumbnail-carousel-card{cursor:pointer;gap:5px}.vertical-carousel{flex-direction:column;width:-moz-fit-content;width:fit-content}.vertical-carousel-card .thumbnail-carousel-card-image{max-width:480px}.vertical-carousel-card{display:grid;grid-template-areas:"cardImage cardLogo cardTitle" "cardImage cardDescription cardDescription"}.thumbnail-carousel-card-image{max-width:100%;border-radius:10px;grid-area:cardImage;-o-object-fit:fill;object-fit:fill}.thumbnail-carousel-card-title{text-overflow:ellipsis;font-weight:500;font-size:2rem;margin:0;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardTitle}.vertical-carousel-card .thumbnail-carousel-card-title{max-width:unset}.thumbnail-carousel-card-description{text-overflow:ellipsis;white-space:wrap;overflow:hidden;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardDescription}.thumbnail-carousel-card-logo{height:3.5em;width:3.5em;-o-object-fit:contain;object-fit:contain;grid-area:cardLogo}.feed{height:"100%";overflow-y:"scroll";overflow-x:"hidden"}.publisher-info{display:grid;width:100%;grid-template-areas:"playlistDistributorLogo playlistFeedName";grid-area:playlistDistributorInfo}.playlist-name{grid-area:playlistFeedName}.playlist-publisher-logo{max-height:75px;grid-area:playlistDistributorLogo}.playlist-name{margin-top:35px}.playlist-player{grid-area:playlistVideo}.playlist-video-list{overflow-y:scroll;overflow-x:hidden;display:grid;grid-template-columns:1fr;grid-template-rows:auto;grid-area:playlistVideoList}.playlist-card{display:grid;grid-template-areas:"videoThumbnail videoName" "videoThumbnail videoDescription";height:100px;margin-top:5px;grid-column-gap:15px;overflow:hidden;grid-template-columns:2fr 3fr;align-items:start;cursor:pointer}.playlist-card-thumbnail{grid-area:videoThumbnail}.playlist-card-thumbnail-image{height:100px;width:100%}.playlist-card-name{grid-area:videoName}.playlist-card-description{font-size:.75rem;color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;grid-area:videoDescription}.playlist-player>.custom-player{grid-template-rows:3fr 1fr 3fr;grid-template-columns:4fr 1fr;grid-template-areas:"video video" "title logo" "description description";max-height:100%}.playlist-player>.custom-player>.custom-video{max-height:425px}.playlist-player>.custom-player>.custom-player-title{height:50px}.playlist-player>.custom-player>.custom-player-description{height:125px}.playlist{display:flex;flex-direction:column}@media screen and (min-width: 700px){.playlist{display:grid;grid-template-areas:"playlistVideo playlistDistributorInfo" "playlistVideo playlistVideoList" "playlistVideo playlistVideoList";grid-template-columns:3fr 2fr;grid-template-rows:1fr 4fr;grid-column-gap:10px;height:500px}.playlist-player>.custom-player{grid-template-rows:4fr 1fr 3fr}}.shop-overlay-bar{position:absolute;top:0px;padding:5px 0 0;gap:clamp(5px,100vw,12px);z-index:4;display:flex;flex-direction:row;left:0px;right:0px;overflow-x:auto;pointer-events:none;height:clamp(-moz-min-content,4vw,48px);height:clamp(min-content,4vw,48px);overflow-y:hidden}.overlay-bar-chevron{height:-moz-min-content;height:min-content;align-self:center;pointer-events:all;margin-right:-15px;padding:2px;border:unset!important}.overlay-bar-icon-visible{opacity:1;height:-moz-fit-content;height:fit-content;pointer-events:all}.overlay-bar-icon-hidden{opacity:0;height:0px;pointer-events:none}.overlay-bar-icon>img{border:2px solid black;border-radius:50%}.overlay-bar-icon{z-index:2;cursor:pointer;text-align:center;transition:opacity .75s linear;transition:height .2s linear;color:#fff;border-radius:10px;width:clamp(17px,100vw,48px);height:clamp(17px,100vw,48px);font-weight:800}.overlay-bar-icon>img{height:100%;min-width:15px;width:100%;transition:all .2s linear}@media (max-width: 500px){.overlay-bar-icon{width:32px;height:32px}}.ecom-wrapper{position:absolute;display:flex;left:15px;flex-shrink:0;border-radius:.5rem;border-width:0px;border-style:none;border-color:#ddd;background-color:transparent;padding:12px;width:50px;overflow-x:hidden;overflow-y:hidden;transition:all .25s;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);height:72px}.ecom-inner-wrapper{display:flex;align-items:center}.ecom-icon{border:solid;border-width:2px;border-radius:9999px;width:3rem;height:3rem;cursor:pointer}.ecom-name{font-size:1rem;line-height:1.5rem;font-weight:700;color:#444;pointer-events:none}.ecom-subtext{color:#999;font-size:.875rem;line-height:1.25rem;pointer-events:none}.ecom-button{border:none;cursor:pointer;height:1.2rem;width:-moz-max-content;width:max-content;margin-left:.5rem;border-radius:9999px;color:#fff;font-weight:600;font-size:.875rem;line-height:1.25rem;text-decoration:none;text-align:center;padding:.5rem 1rem}.ecom-text-wrapper{padding-left:.75rem}@keyframes ping{0%,60%{transform:scale(1);opacity:1;filter:brightness(1)}70%{transform:scale(1.3);opacity:.75;filter:brightness(2)}to{transform:scale(.75);opacity:.25;filter:brightness(.5)}}.animated-chevron{animation:ping 5s cubic-bezier(0,0,.1,1) infinite}.ecom-chevron{position:absolute;border-radius:100%;bottom:-5px;right:-5px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center}.ecom-img-wrapper{position:relative;display:flex;place-content:center}.ecom-close{position:absolute;border-radius:100%;top:-10px;right:-10px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center;background-color:#afafaf}.ecom-close svg{margin-top:2px}@media (max-width: 500px){.ecom-icon{width:2.5rem;height:2.5rem}.ecom-name,.ecom-subtext{font-size:.8rem}.ecom-button{font-size:.5rem;padding:.1rem .5rem}.ecom-wrapper{padding:5px;width:3rem}.ecom-img-wrapper{width:3rem}}.ecomExpanded{width:-moz-max-content;width:max-content;overflow-y:visible;border-width:2px;height:48px;background-color:#efefefde;overflow-x:visible;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ecom-wrapper-entering,.ecom-wrapper-leaving{transition:all .5s}.ecom-wrapper-enter-from{opacity:0}.ecom-wrapper-enter-to,.ecom-wrapper-leave-from{opacity:1}.ecom-wrapper-leave-to{opacity:0}.ecom-wrapper-top-expanded{top:15px}.ecom-wrapper-top-docked{top:-15px;left:0px}.ecom-wrapper-top-undocked{top:0px}.ecom-wrapper-bottom-expanded-undocked{top:15px}.ecom-wrapper-bottom-docked{bottom:-10px;left:0px}.ecom-wrapper-bottom-controls-docked{bottom:30px}.ecom-wrapper-bottom-controls-undocked{bottom:50px}.ecom-wrapper-bottom-undocked{bottom:30px}.ecom-wrapper-bottom-expanded{bottom:15px}@media (orientation: landscape){.iphone-fs .ecom-wrapper-top-expanded{top:30px}.iphone-fs .ecom-wrapper-top-undocked{top:0px}.iphone-fs .ecom-wrapper-bottom-expanded-undocked{top:15px}.iphone-fs .ecom-wrapper-bottom-controls-undocked{bottom:65px}.iphone-fs .ecom-wrapper-bottom-undocked{bottom:10px}.iphone-fs .ecom-wrapper-bottom-expanded{bottom:20px}}.inAmp.ecom-wrapper-bottom-undocked{bottom:-5px;left:5px}.inAmp.ecom-wrapper-top-undocked{top:-10px;left:0px}.inAmp.ecom-wrapper-bottom-controls-undocked{bottom:30px;left:10px}.pylon-img{height:500px;-o-object-fit:contain;object-fit:contain}.pylon-toggle{color:#fff;pointer-events:all}.pylon-overlay{position:absolute;top:0px;z-index:2;left:10px;right:0px;overflow-x:auto;pointer-events:none;overflow-y:hidden}.stream-ui{display:grid;grid-template-columns:repeat(4,1fr);grid-column-gap:20px;transition:all 1s;opacity:0;position:absolute;bottom:100px;left:10px;right:10px;z-index:3;justify-content:center;transition:opacity 1s}.hidden-stream-item{display:none}.stream-ui-gridded{display:grid;grid-column-gap:0px;bottom:0px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.stream-grid-button{z-index:20;height:20px;width:20px;border-radius:50%;top:50px;left:calc(50% - 10px);cursor:pointer;background-color:#efefefde;position:absolute;opacity:0;transition:opacity 1s}.stream-ui-visible{opacity:1}.special{all:initial}.special>*{all:initial}.special img{max-width:unset!important}.special .ecom-wrapper *,.special .ecom-wrapper,.special .ecom-wrapper img{box-sizing:initial}fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:before,.multiselect__spinner:after{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border-color:#41b883 transparent transparent;border-style:solid;border-width:2px;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:initial;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\\d7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #e8e8e8;cursor:pointer}.multiselect__select{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:5px 5px 0 5px;border-color:#999 transparent transparent transparent;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-radius:5px 5px 0 0;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::-webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}*[dir=rtl] .multiselect{text-align:right}*[dir=rtl] .multiselect__select{right:auto;left:1px}*[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}*[dir=rtl] .multiselect__content{text-align:right}*[dir=rtl] .multiselect__option:after{right:auto;left:0}*[dir=rtl] .multiselect__clear{right:auto;left:12px}*[dir=rtl] .multiselect__spinner{right:auto;left:1px}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}@media (min-width: 1792px){.\\!container{max-width:1792px!important}.container{max-width:1792px}}@media (min-width: 2048px){.\\!container{max-width:2048px!important}.container{max-width:2048px}}@media (min-width: 2304px){.\\!container{max-width:2304px!important}.container{max-width:2304px}}@media (min-width: 2560px){.\\!container{max-width:2560px!important}.container{max-width:2560px}}@media (min-width: 3072px){.\\!container{max-width:3072px!important}.container{max-width:3072px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0px}.inset-y-0{top:0px;bottom:0px}.inset-y-5{top:1.25rem;bottom:1.25rem}.bottom-4{bottom:1rem}.left-0{left:0px}.right-0{right:0px}.right-6{right:1.5rem}.top-0{top:0px}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2000\\]{z-index:2000}.m-0{margin:0!important}.m-1{margin:.25rem}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-40{margin-top:10rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-10{width:2.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.max-w-7xl{max-width:80rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.basis-1\\/3{flex-basis:33.333333%}.-translate-x-4{--tw-translate-x: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.gap-2{gap:.5rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-10{row-gap:2.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(221 221 221 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(187 187 187 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(239 239 239 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(102 102 102 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(85 85 85 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:hsl(120 50% 86% / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:hsl(120 30% 46% / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-0\\.5{padding-top:.125rem}.pt-12{padding-top:3rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-bottom{vertical-align:bottom}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(68 68 68 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:hsl(120 50% 66% / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:hsl(120 30% 46% / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.player{--parone-primary: rgb(7, 102, 82)}video::-webkit-media-text-track-container{display:var(--webkit-text-track-display)}*{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.controls-bar{width:100%;align-items:center;display:flex;justify-content:flex-end;text-align:center;bottom:0px;opacity:0;padding:10px;position:absolute;height:0px;box-sizing:border-box;transition:opacity .4s ease-in-out,height .4s ease-in-out;z-index:4}.controls-bar-showing{opacity:1;height:47px;background:linear-gradient(transparent,rgba(0,0,0,.75))}.controls-bar .control:first-child{margin-left:0;margin-right:auto}video{width:100%}.control svg{width:18px;height:18px;fill:currentColor}.tooltip{cursor:default;text-align:center;border-radius:3px;bottom:100%;line-height:1.3;margin-bottom:20px;opacity:0;padding:5px 7.5px;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2;box-shadow:0 1px 2px #00000026;font-size:13px;pointer-events:all;background-color:#fff;color:#000}.tooltip:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:20px;top:100%;width:0}.control{background:transparent;border:0;border-radius:3px;color:#fff;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;position:relative;transition:all .3s ease;z-index:4;margin-left:2.5px;touch-action:manipulation}input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-progress{background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-moz-range-thumb{background-color:#fff;height:16px;width:16px;border-radius:50%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;margin-top:-6px;background:white;height:16px;width:16px;border-radius:50%;color:#fff}input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-track{background-color:#ffffff40;height:5px;border-radius:.5rem}.volume-bar::-webkit-slider-runnable-track{background-color:#ffffff40;border-radius:.5rem;height:5px;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.volume-bar-container{align-items:center;display:flex;width:clamp(30px,15%,68px);position:relative;padding:7px 5px;margin-left:0}.volume-bar{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:15px;display:block;height:20px;margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;position:relative;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.progress{text-align:center;left:7px;margin-right:13px;position:relative;visibility:visible;pointer-events:all}.progress-container{text-align:center;flex-grow:1;width:-moz-min-content;width:min-content;min-width:20px;padding:0;margin-left:2.5px;cursor:default}progress{color:#ffffff40;margin-left:-7px;margin-right:-7px;width:calc(100% + 13px);min-width:0px;-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:5px;left:0;margin-top:-2.5px;padding:0;position:absolute;top:50%;border-radius:.5rem}progress::-moz-progress-bar{border-radius:100px;min-width:5px;-moz-transition:width .2s ease;transition:width .2s ease;background-color:#ffffff80;border-radius:.5rem}progress::-webkit-progress-bar{border-radius:100px;min-width:5px;-webkit-transition:width .2s ease;transition:width .2s ease;border-radius:.5rem}progress::-webkit-progress-value{background-color:#ffffff80;border-radius:.5rem}.progress>input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;background-image:linear-gradient(to right,#6a7b78 var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input[type=range]::-moz-range-progress{background-color:#6a7b78!important;height:5px}.seekbar-disabled input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:#6a7b78!important;height:5px}.progress input{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;display:block;height:20px;min-width:0;padding:0;transition:box-shadow .3s ease;margin:0 -7px;width:calc(100% + 13px);position:relative;z-index:2;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.controls-clock{font-size:13px;width:40px;padding:7px 10px 7px 5px}.mobile-controls .controls-clock{width:-moz-max-content;width:max-content;padding-bottom:0;padding-top:0}.mobile-controls .time,.mobile-controls .live{position:absolute;top:-10px;right:0px}.control-hovers:hover,.control:active:not(.progress-container,.volume-bar-container){background:var(--parone-primary)}.settings-menu-container button:hover{background:var(--parone-primary)}.settings-menu-container button:hover span{color:#fff}.big-play-button{cursor:pointer;flex-shrink:0;overflow:visible;background:var(--parone-primary);border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:4;width:auto;touch-action:manipulation;display:none;fill:currentColor}.mobile-play-pause{cursor:pointer;flex-shrink:0;overflow:visible;border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;top:50%;transition:.3s;z-index:4;touch-action:manipulation;display:block;fill:currentColor;height:40px;transform:translate(-50%,-50%);width:40px}.big-play-button svg,.mobile-play-pause svg{cursor:pointer;color:#fff;fill:currentColor;display:block;height:18px;pointer-events:none;width:18px;left:2px;position:relative}.ads-container{z-index:3;position:absolute;top:0px}.ads-timer{z-index:4;position:absolute;right:5px;bottom:5px;width:-moz-fit-content;width:fit-content;background:#23282f;border-radius:2px;color:#ffffffbf;font-size:11px;padding:4px 6px;pointer-events:none}.settings-menu-container{animation:plyr-popup .2s ease;background:hsla(0,0%,100%,.85);border-radius:4px;bottom:100%;overscroll-behavior:contain;box-shadow:0 1px 2px #00000026;color:#4a5464;font-size:15px;margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:5;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.settings-menu-container:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:15px;top:100%;width:0}.settings-menu-container-down{transform:translateY(calc(100% + 42px))}.settings-menu-container-down:after{transform:rotate(180deg);top:-8px}.settings-menu{max-height:200px;overflow-y:auto}.settings-menu-container button{white-space:nowrap;background:transparent;border:0;border-radius:3px;cursor:pointer;flex-shrink:0;overflow:visible;position:relative;transition:all .3s ease;z-index:4;touch-action:manipulation;align-items:center;color:#4a5464;display:flex;font-size:13px;padding:6px 28px 6px 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;margin-top:2px}.settings-menu-container button>span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-right:5px;width:100%}.settings-menu{color:#4a5464;font-size:15px;text-align:left;white-space:nowrap;padding:7px}.settings-home>.settings-menu>button:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-left-color:#728197;right:6.5px}.settings-back{padding:5px}.settings-back:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-right-color:#728197;left:6.5px}.settings-back span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-left:15px;width:100%}.badge{white-space:nowrap;font:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-sizing:inherit;background:#4a5464;border-radius:2px;color:#fff;font-size:9px;line-height:1;padding:3px 4px}.captions{position:absolute;height:50px;left:0px;right:0px;bottom:25px;text-align:center}.captions>p{padding:5px;color:#fff;width:-moz-fit-content;width:fit-content;font-size:normal;margin:auto;background-color:#000}.settings-menu-button-radio:before{background:rgba(0,0,0,.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;transition:all .3s ease;width:16px;border-radius:100%}.settings-menu-button-radio:after{background:#fff;border:0;height:6px;left:16px;content:"";position:absolute;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px;border-radius:100%}.settings-menu-button-radio-checked:before{background-color:var(#076652)}.settings-menu-button-radio-checked:after{opacity:1;transform:translateY(-50%) scale(1)}.settings-menu-value{text-align:end;display:inline!important;padding-left:24px}.controls-bar-top{display:none;position:absolute;top:10px;right:5px;height:0px;opacity:0;width:-moz-fit-content;width:fit-content}.mobile-controls-top{position:absolute;top:5px;right:5px;width:-moz-fit-content;width:fit-content;z-index:5}.controls-bar-top-showing{display:none;position:absolute;top:10px;right:5px;height:-moz-fit-content;height:fit-content;transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:1}.controls-bar-top-showing-inAd .control:last-child{margin-right:25%}.controls-bar-top-showing-inAd{pointer-events:none}.controls-bar-top-showing-inAd .control,.inAd .ads-container{pointer-events:all}.ads-container{pointer-events:none}.mobile-controls{display:block;pointer-events:none;position:absolute;top:0px;bottom:0px;right:0px;left:0px;background:linear-gradient(transparent,rgba(0,0,0,.75));transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:0}@media (orientation: landscape){.fs .mobile-controls{height:100dvh}.force-mobile .mobile-controls,.fs-mobile{display:block!important}}.mobile-controls-big-buttons .control svg{width:36px;height:36px}.control{pointer-events:all}.docked .mobile-controls-big-buttons .control svg{width:16px;height:16px}.mobile-controls .controls-bar-showing{height:30px}.docked .mobile-controls .control{padding:6px}.mobile-controls-showing{opacity:1}.mobile-controls-big-buttons{display:grid;grid-template-columns:20% auto 20%;gap:.25rem;height:100%;justify-content:center;align-content:center;justify-items:center}.controls,.big-play-button{display:none}@media (min-width: 540px){.mobile-controls{display:none}.controls{display:flex}.big-play-button{display:block}}.fs-mobile .controls{display:none!important}.fs-close-button{position:absolute;top:8px;left:.5rem;width:18px;height:18px;border-radius:100%;padding:.25rem;cursor:pointer;text-align:center;display:flex;color:#fff;align-content:center;opacity:0}.fs-close-button:hover{background-color:#aaaaaabf}.show-fs-close-button{opacity:1}.focus-within\\:text-gray-600:focus-within{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity))}.hover\\:rounded-md:hover{border-radius:.375rem}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(221 221 221 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:hsl(120 40% 56% / var(--tw-bg-opacity))}.hover\\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:hsl(120 30% 36% / var(--tw-bg-opacity))}.hover\\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:hsl(120 20% 26% / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.hover\\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-green-500:focus{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: hsl(120 40% 56% / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-75{opacity:.75}@media (min-width: 640px){.sm\\:mx-0{margin-left:0!important;margin-right:0!important}.sm\\:mt-0{margin-top:0!important}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:flex{display:flex}.sm\\:hidden{display:none}.sm\\:h-screen{height:100vh}.sm\\:w-5\\/6{width:83.333333%}.sm\\:w-64{width:16rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-1{flex:1 1 0%}.sm\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-start{align-items:flex-start}.sm\\:items-end{align-items:flex-end}.sm\\:items-center{align-items:center}.sm\\:justify-center{justify-content:center}.sm\\:justify-between{justify-content:space-between}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pb-24{padding-bottom:6rem}.sm\\:pb-4{padding-bottom:1rem}.sm\\:pl-0{padding-left:0}.sm\\:pt-16{padding-top:4rem}.sm\\:text-center{text-align:center}.sm\\:align-middle{vertical-align:middle}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\\:flex{display:flex}.md\\:max-w-xl{max-width:36rem}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\\:block{display:block}.lg\\:inline-flex{display:inline-flex}.lg\\:hidden{display:none}.lg\\:max-w-2xl{max-width:42rem}.lg\\:max-w-full{max-width:100%}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\\:max-w-3xl{max-width:48rem}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1536px){.\\32xl\\:block{display:block}.\\32xl\\:max-w-4xl{max-width:56rem}.\\32xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1792px){.\\33xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (min-width: 2304px){.\\35xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}}@media (orientation: landscape){.landscape\\:my-0{margin-top:0!important;margin-bottom:0!important}} `]]]),e2="",jv=Pr(Ye({__name:"VideoFeed.ce",props:ya,emits:Ga,setup(r,{emit:n}){const c=K(!1),p=K([]),g=K(),v=r,b=K(null),k=oe(()=>Ir());oe(()=>v.styles);function S(){var M,H,W;((M=g.value)==null?void 0:M.scrollTop)+((H=g.value)==null?void 0:H.clientHeight)>=((W=g.value)==null?void 0:W.scrollHeight)&&!c.value&&R()}const C=K(0);async function R(){c.value=!0;const{feedUrl:M}=cs(v,k,C.value);p.value=[...p.value,...(await ia(M.value.toString())).filter(H=>!p.value.map(W=>W.key).includes(H.key))],c.value=!1,C.value++}const D=n;return Kt(async()=>{var M;b.value=await ka(v,D),await R(),(M=g.value)==null||M.addEventListener("scroll",S),S()}),(M,H)=>(V(),Q("section",{class:"feed custom-feed",ref_key:"container",ref:g},[(V(!0),Q(nt,null,ri(p.value,(W,Y)=>(V(),ze(F(Ta),{key:Y,configuration:b.value,content:W},null,8,["configuration","content"]))),128))],512))}}),[["styles",[`.live-badge{background-color:red;border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;padding:10px;position:absolute;top:15px;left:15px;z-index:1000000;font-weight:700}.live-circle{width:10px;height:10px;background-color:gray;display:block;border-radius:100%;margin:auto}.live-circle-online{background-color:red}.live-badge-offline{background-color:#36363640}.live{border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;z-index:1000000;font-weight:500;padding:5px;margin-left:5px;margin-right:10px;display:flex;gap:5px}.gearIcon{width:20px;height:20px;vertical-align:middle}.filter{filter:invert(95%) sepia(100%) saturate(2%) hue-rotate(54deg) brightness(105%) contrast(101%)}.overlay>img{filter:unset}.video{grid-area:video;position:relative}.player-logo{grid-area:logo;width:4rem;height:4rem;margin-top:1rem;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}.player-description{grid-area:description;word-break:normal;overflow-y:auto;margin-top:1rem;max-height:150px}.player-title{grid-area:title;word-break:normal;font-weight:800}.overlay{position:absolute;z-index:1}.info{position:absolute;opacity:.5;background-color:#000;width:100%;height:100%;z-index:2;bottom:0}.player{display:grid;grid-template-areas:"title title title" "video video video" "logo description description";position:relative}.docked{position:fixed;right:10px;width:360px;padding:clamp(5px,1vw,10px);max-width:60%!important;height:-moz-fit-content;height:fit-content;aspect-ratio:16/9;padding-top:0;background-color:#1b1b1b}.docked_logo{height:20px;margin-top:auto}.docked-close-container{color:#fff;text-align:right;padding-bottom:5px;cursor:pointer;font-size:small;display:flex;justify-content:space-between}.docked-close-icon{width:20px;height:20px;position:relative;top:5px}.fs{position:fixed;display:flex;top:0px;bottom:0px;right:0px;left:0px;background-color:#000;z-index:100;place-content:center}@media (orientation: landscape){.iphone-fs video{max-height:100vh}.iphone-fs .control svg{width:30px;height:30px}.iphone-fs .controls-bar-showing{height:80px}.iphone-fs .controls-bar{padding-bottom:20px!important}.iphone-fs .control{padding:12px}.iphone-fs .controls-clock{margin-left:-12px;font-size:17px}.iphone-fs .volume-control{margin-right:-12px}.iphone-fs input[type=range]::-moz-range-thumb{height:24px;width:24px}.iphone-fs input[type=range]::-webkit-slider-thumb{height:24px;width:24px;margin-top:-9px}}.fs .video-container{align-self:center}.video-container{position:relative;width:100%}.ads-hidden{display:none}.scoreboard-overlay-button{z-index:20;height:20px;width:20px;border-radius:50%;position:absolute;top:50px;background-color:#efefefde;left:10px;cursor:pointer;transition:all .5s}.scoreboard-overlay-button-open{left:220px}.scoreboard-overlay{z-index:20;height:80%;padding:5px;position:absolute;border-radius:.5rem;background-color:#efefefde;top:10%;left:-1000px;width:200px;opacity:0;transition:all .5s}.scoreboard-overlay-open{left:10px;opacity:1}.multi-feed-playlist-name{text-align:center}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px;width:200px;margin-left:10px;margin-right:10px;flex:0 0 auto}.multi-feed{width:100%;overflow-x:hidden}.multi-feed-video-list{margin:0;padding:0;display:flex;flex-direction:row;height:-moz-fit-content;height:fit-content;overflow-x:auto;width:100%}.multi-feed-player{grid-area:video}.multi-feed-nav-button{cursor:pointer;text-decoration:underline;position:absolute;background-color:#535252bf;height:50px;width:50px;z-index:1;color:#fff}.multi-feed-nav-next{text-align:right;right:2px}.multi-feed-nav-prev{text-align:left;left:2px}.multi-feed-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.multi-feed-player>.custom-player>.custom-player-title{height:50px}.multi-feed-player>.custom-player>.custom-player-description{height:75px}.multi-feed-player>.custom-player>.custom-video{max-height:unset}.carousel-publisher-info{width:200px;margin:auto;display:grid;grid-template-areas:"distributorLogo" "feedName";grid-area:distributorInfo}.carousel-publisher-logo{height:100px;width:100px;margin:auto}.carousel-playlist-name{text-align:center}.video-card-thumbnail{grid-area:videoThumbnail}.video-card-thumbnail-image{width:100%}.video-card-title{grid-area:videoName}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px}.carousel-playlist{display:grid;grid-template-areas:"video" "distributorInfo" "carouselContainer"}.carousel-container{display:grid;grid-area:carouselContainer;grid-template-areas:"nav nav nav" "carousel carousel carousel"}.carousel-player{grid-area:video}.carousel{grid-area:carousel}.carousel-nav{display:grid;grid-area:nav;grid-template-areas:"prev pages next";width:50%;margin:auto}.carousel-nav-next{grid-area:next;text-align:right;cursor:pointer;text-decoration:underline}.carousel-nav-prev{grid-area:prev;text-align:left;cursor:pointer;text-decoration:underline}.carousel-nav-pages{grid-area:pages;text-align:center}.carousel-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.carousel-player>.custom-player>.custom-player-title{height:50px}.carousel-player>.custom-player>.custom-player-description{height:75px}.carousel-player>.custom-player>.custom-video{max-height:unset}.carousel-video-list{height:100%;overflow-y:auto;overflow-x:hidden;display:grid;grid-column-gap:15px;grid-row-gap:15px;grid-template-columns:repeat(1,1fr);grid-template-rows:auto}@media screen and (min-width: 480px){.carousel-video-list{grid-template-columns:repeat(3,1fr)}}.thumbnail-carousel{display:flex;flex-direction:row;width:100%;gap:5px}.thumbnail-carousel-card{cursor:pointer;gap:5px}.vertical-carousel{flex-direction:column;width:-moz-fit-content;width:fit-content}.vertical-carousel-card .thumbnail-carousel-card-image{max-width:480px}.vertical-carousel-card{display:grid;grid-template-areas:"cardImage cardLogo cardTitle" "cardImage cardDescription cardDescription"}.thumbnail-carousel-card-image{max-width:100%;border-radius:10px;grid-area:cardImage;-o-object-fit:fill;object-fit:fill}.thumbnail-carousel-card-title{text-overflow:ellipsis;font-weight:500;font-size:2rem;margin:0;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardTitle}.vertical-carousel-card .thumbnail-carousel-card-title{max-width:unset}.thumbnail-carousel-card-description{text-overflow:ellipsis;white-space:wrap;overflow:hidden;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardDescription}.thumbnail-carousel-card-logo{height:3.5em;width:3.5em;-o-object-fit:contain;object-fit:contain;grid-area:cardLogo}.feed{height:"100%";overflow-y:"scroll";overflow-x:"hidden"}.publisher-info{display:grid;width:100%;grid-template-areas:"playlistDistributorLogo playlistFeedName";grid-area:playlistDistributorInfo}.playlist-name{grid-area:playlistFeedName}.playlist-publisher-logo{max-height:75px;grid-area:playlistDistributorLogo}.playlist-name{margin-top:35px}.playlist-player{grid-area:playlistVideo}.playlist-video-list{overflow-y:scroll;overflow-x:hidden;display:grid;grid-template-columns:1fr;grid-template-rows:auto;grid-area:playlistVideoList}.playlist-card{display:grid;grid-template-areas:"videoThumbnail videoName" "videoThumbnail videoDescription";height:100px;margin-top:5px;grid-column-gap:15px;overflow:hidden;grid-template-columns:2fr 3fr;align-items:start;cursor:pointer}.playlist-card-thumbnail{grid-area:videoThumbnail}.playlist-card-thumbnail-image{height:100px;width:100%}.playlist-card-name{grid-area:videoName}.playlist-card-description{font-size:.75rem;color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;grid-area:videoDescription}.playlist-player>.custom-player{grid-template-rows:3fr 1fr 3fr;grid-template-columns:4fr 1fr;grid-template-areas:"video video" "title logo" "description description";max-height:100%}.playlist-player>.custom-player>.custom-video{max-height:425px}.playlist-player>.custom-player>.custom-player-title{height:50px}.playlist-player>.custom-player>.custom-player-description{height:125px}.playlist{display:flex;flex-direction:column}@media screen and (min-width: 700px){.playlist{display:grid;grid-template-areas:"playlistVideo playlistDistributorInfo" "playlistVideo playlistVideoList" "playlistVideo playlistVideoList";grid-template-columns:3fr 2fr;grid-template-rows:1fr 4fr;grid-column-gap:10px;height:500px}.playlist-player>.custom-player{grid-template-rows:4fr 1fr 3fr}}.shop-overlay-bar{position:absolute;top:0px;padding:5px 0 0;gap:clamp(5px,100vw,12px);z-index:4;display:flex;flex-direction:row;left:0px;right:0px;overflow-x:auto;pointer-events:none;height:clamp(-moz-min-content,4vw,48px);height:clamp(min-content,4vw,48px);overflow-y:hidden}.overlay-bar-chevron{height:-moz-min-content;height:min-content;align-self:center;pointer-events:all;margin-right:-15px;padding:2px;border:unset!important}.overlay-bar-icon-visible{opacity:1;height:-moz-fit-content;height:fit-content;pointer-events:all}.overlay-bar-icon-hidden{opacity:0;height:0px;pointer-events:none}.overlay-bar-icon>img{border:2px solid black;border-radius:50%}.overlay-bar-icon{z-index:2;cursor:pointer;text-align:center;transition:opacity .75s linear;transition:height .2s linear;color:#fff;border-radius:10px;width:clamp(17px,100vw,48px);height:clamp(17px,100vw,48px);font-weight:800}.overlay-bar-icon>img{height:100%;min-width:15px;width:100%;transition:all .2s linear}@media (max-width: 500px){.overlay-bar-icon{width:32px;height:32px}}.ecom-wrapper{position:absolute;display:flex;left:15px;flex-shrink:0;border-radius:.5rem;border-width:0px;border-style:none;border-color:#ddd;background-color:transparent;padding:12px;width:50px;overflow-x:hidden;overflow-y:hidden;transition:all .25s;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);height:72px}.ecom-inner-wrapper{display:flex;align-items:center}.ecom-icon{border:solid;border-width:2px;border-radius:9999px;width:3rem;height:3rem;cursor:pointer}.ecom-name{font-size:1rem;line-height:1.5rem;font-weight:700;color:#444;pointer-events:none}.ecom-subtext{color:#999;font-size:.875rem;line-height:1.25rem;pointer-events:none}.ecom-button{border:none;cursor:pointer;height:1.2rem;width:-moz-max-content;width:max-content;margin-left:.5rem;border-radius:9999px;color:#fff;font-weight:600;font-size:.875rem;line-height:1.25rem;text-decoration:none;text-align:center;padding:.5rem 1rem}.ecom-text-wrapper{padding-left:.75rem}@keyframes ping{0%,60%{transform:scale(1);opacity:1;filter:brightness(1)}70%{transform:scale(1.3);opacity:.75;filter:brightness(2)}to{transform:scale(.75);opacity:.25;filter:brightness(.5)}}.animated-chevron{animation:ping 5s cubic-bezier(0,0,.1,1) infinite}.ecom-chevron{position:absolute;border-radius:100%;bottom:-5px;right:-5px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center}.ecom-img-wrapper{position:relative;display:flex;place-content:center}.ecom-close{position:absolute;border-radius:100%;top:-10px;right:-10px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center;background-color:#afafaf}.ecom-close svg{margin-top:2px}@media (max-width: 500px){.ecom-icon{width:2.5rem;height:2.5rem}.ecom-name,.ecom-subtext{font-size:.8rem}.ecom-button{font-size:.5rem;padding:.1rem .5rem}.ecom-wrapper{padding:5px;width:3rem}.ecom-img-wrapper{width:3rem}}.ecomExpanded{width:-moz-max-content;width:max-content;overflow-y:visible;border-width:2px;height:48px;background-color:#efefefde;overflow-x:visible;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ecom-wrapper-entering,.ecom-wrapper-leaving{transition:all .5s}.ecom-wrapper-enter-from{opacity:0}.ecom-wrapper-enter-to,.ecom-wrapper-leave-from{opacity:1}.ecom-wrapper-leave-to{opacity:0}.ecom-wrapper-top-expanded{top:15px}.ecom-wrapper-top-docked{top:-15px;left:0px}.ecom-wrapper-top-undocked{top:0px}.ecom-wrapper-bottom-expanded-undocked{top:15px}.ecom-wrapper-bottom-docked{bottom:-10px;left:0px}.ecom-wrapper-bottom-controls-docked{bottom:30px}.ecom-wrapper-bottom-controls-undocked{bottom:50px}.ecom-wrapper-bottom-undocked{bottom:30px}.ecom-wrapper-bottom-expanded{bottom:15px}@media (orientation: landscape){.iphone-fs .ecom-wrapper-top-expanded{top:30px}.iphone-fs .ecom-wrapper-top-undocked{top:0px}.iphone-fs .ecom-wrapper-bottom-expanded-undocked{top:15px}.iphone-fs .ecom-wrapper-bottom-controls-undocked{bottom:65px}.iphone-fs .ecom-wrapper-bottom-undocked{bottom:10px}.iphone-fs .ecom-wrapper-bottom-expanded{bottom:20px}}.inAmp.ecom-wrapper-bottom-undocked{bottom:-5px;left:5px}.inAmp.ecom-wrapper-top-undocked{top:-10px;left:0px}.inAmp.ecom-wrapper-bottom-controls-undocked{bottom:30px;left:10px}.pylon-img{height:500px;-o-object-fit:contain;object-fit:contain}.pylon-toggle{color:#fff;pointer-events:all}.pylon-overlay{position:absolute;top:0px;z-index:2;left:10px;right:0px;overflow-x:auto;pointer-events:none;overflow-y:hidden}.stream-ui{display:grid;grid-template-columns:repeat(4,1fr);grid-column-gap:20px;transition:all 1s;opacity:0;position:absolute;bottom:100px;left:10px;right:10px;z-index:3;justify-content:center;transition:opacity 1s}.hidden-stream-item{display:none}.stream-ui-gridded{display:grid;grid-column-gap:0px;bottom:0px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.stream-grid-button{z-index:20;height:20px;width:20px;border-radius:50%;top:50px;left:calc(50% - 10px);cursor:pointer;background-color:#efefefde;position:absolute;opacity:0;transition:opacity 1s}.stream-ui-visible{opacity:1}.special{all:initial}.special>*{all:initial}.special img{max-width:unset!important}.special .ecom-wrapper *,.special .ecom-wrapper,.special .ecom-wrapper img{box-sizing:initial}fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:before,.multiselect__spinner:after{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border-color:#41b883 transparent transparent;border-style:solid;border-width:2px;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:initial;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\\d7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #e8e8e8;cursor:pointer}.multiselect__select{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:5px 5px 0 5px;border-color:#999 transparent transparent transparent;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-radius:5px 5px 0 0;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::-webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}*[dir=rtl] .multiselect{text-align:right}*[dir=rtl] .multiselect__select{right:auto;left:1px}*[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}*[dir=rtl] .multiselect__content{text-align:right}*[dir=rtl] .multiselect__option:after{right:auto;left:0}*[dir=rtl] .multiselect__clear{right:auto;left:12px}*[dir=rtl] .multiselect__spinner{right:auto;left:1px}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}@media (min-width: 1792px){.\\!container{max-width:1792px!important}.container{max-width:1792px}}@media (min-width: 2048px){.\\!container{max-width:2048px!important}.container{max-width:2048px}}@media (min-width: 2304px){.\\!container{max-width:2304px!important}.container{max-width:2304px}}@media (min-width: 2560px){.\\!container{max-width:2560px!important}.container{max-width:2560px}}@media (min-width: 3072px){.\\!container{max-width:3072px!important}.container{max-width:3072px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0px}.inset-y-0{top:0px;bottom:0px}.inset-y-5{top:1.25rem;bottom:1.25rem}.bottom-4{bottom:1rem}.left-0{left:0px}.right-0{right:0px}.right-6{right:1.5rem}.top-0{top:0px}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2000\\]{z-index:2000}.m-0{margin:0!important}.m-1{margin:.25rem}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-40{margin-top:10rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-10{width:2.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.max-w-7xl{max-width:80rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.basis-1\\/3{flex-basis:33.333333%}.-translate-x-4{--tw-translate-x: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.gap-2{gap:.5rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-10{row-gap:2.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(221 221 221 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(187 187 187 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(239 239 239 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(102 102 102 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(85 85 85 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:hsl(120 50% 86% / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:hsl(120 30% 46% / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-0\\.5{padding-top:.125rem}.pt-12{padding-top:3rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-bottom{vertical-align:bottom}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(68 68 68 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:hsl(120 50% 66% / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:hsl(120 30% 46% / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.player{--parone-primary: rgb(7, 102, 82)}video::-webkit-media-text-track-container{display:var(--webkit-text-track-display)}*{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.controls-bar{width:100%;align-items:center;display:flex;justify-content:flex-end;text-align:center;bottom:0px;opacity:0;padding:10px;position:absolute;height:0px;box-sizing:border-box;transition:opacity .4s ease-in-out,height .4s ease-in-out;z-index:4}.controls-bar-showing{opacity:1;height:47px;background:linear-gradient(transparent,rgba(0,0,0,.75))}.controls-bar .control:first-child{margin-left:0;margin-right:auto}video{width:100%}.control svg{width:18px;height:18px;fill:currentColor}.tooltip{cursor:default;text-align:center;border-radius:3px;bottom:100%;line-height:1.3;margin-bottom:20px;opacity:0;padding:5px 7.5px;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2;box-shadow:0 1px 2px #00000026;font-size:13px;pointer-events:all;background-color:#fff;color:#000}.tooltip:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:20px;top:100%;width:0}.control{background:transparent;border:0;border-radius:3px;color:#fff;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;position:relative;transition:all .3s ease;z-index:4;margin-left:2.5px;touch-action:manipulation}input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-progress{background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-moz-range-thumb{background-color:#fff;height:16px;width:16px;border-radius:50%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;margin-top:-6px;background:white;height:16px;width:16px;border-radius:50%;color:#fff}input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-track{background-color:#ffffff40;height:5px;border-radius:.5rem}.volume-bar::-webkit-slider-runnable-track{background-color:#ffffff40;border-radius:.5rem;height:5px;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.volume-bar-container{align-items:center;display:flex;width:clamp(30px,15%,68px);position:relative;padding:7px 5px;margin-left:0}.volume-bar{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:15px;display:block;height:20px;margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;position:relative;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.progress{text-align:center;left:7px;margin-right:13px;position:relative;visibility:visible;pointer-events:all}.progress-container{text-align:center;flex-grow:1;width:-moz-min-content;width:min-content;min-width:20px;padding:0;margin-left:2.5px;cursor:default}progress{color:#ffffff40;margin-left:-7px;margin-right:-7px;width:calc(100% + 13px);min-width:0px;-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:5px;left:0;margin-top:-2.5px;padding:0;position:absolute;top:50%;border-radius:.5rem}progress::-moz-progress-bar{border-radius:100px;min-width:5px;-moz-transition:width .2s ease;transition:width .2s ease;background-color:#ffffff80;border-radius:.5rem}progress::-webkit-progress-bar{border-radius:100px;min-width:5px;-webkit-transition:width .2s ease;transition:width .2s ease;border-radius:.5rem}progress::-webkit-progress-value{background-color:#ffffff80;border-radius:.5rem}.progress>input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;background-image:linear-gradient(to right,#6a7b78 var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input[type=range]::-moz-range-progress{background-color:#6a7b78!important;height:5px}.seekbar-disabled input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:#6a7b78!important;height:5px}.progress input{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;display:block;height:20px;min-width:0;padding:0;transition:box-shadow .3s ease;margin:0 -7px;width:calc(100% + 13px);position:relative;z-index:2;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.controls-clock{font-size:13px;width:40px;padding:7px 10px 7px 5px}.mobile-controls .controls-clock{width:-moz-max-content;width:max-content;padding-bottom:0;padding-top:0}.mobile-controls .time,.mobile-controls .live{position:absolute;top:-10px;right:0px}.control-hovers:hover,.control:active:not(.progress-container,.volume-bar-container){background:var(--parone-primary)}.settings-menu-container button:hover{background:var(--parone-primary)}.settings-menu-container button:hover span{color:#fff}.big-play-button{cursor:pointer;flex-shrink:0;overflow:visible;background:var(--parone-primary);border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:4;width:auto;touch-action:manipulation;display:none;fill:currentColor}.mobile-play-pause{cursor:pointer;flex-shrink:0;overflow:visible;border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;top:50%;transition:.3s;z-index:4;touch-action:manipulation;display:block;fill:currentColor;height:40px;transform:translate(-50%,-50%);width:40px}.big-play-button svg,.mobile-play-pause svg{cursor:pointer;color:#fff;fill:currentColor;display:block;height:18px;pointer-events:none;width:18px;left:2px;position:relative}.ads-container{z-index:3;position:absolute;top:0px}.ads-timer{z-index:4;position:absolute;right:5px;bottom:5px;width:-moz-fit-content;width:fit-content;background:#23282f;border-radius:2px;color:#ffffffbf;font-size:11px;padding:4px 6px;pointer-events:none}.settings-menu-container{animation:plyr-popup .2s ease;background:hsla(0,0%,100%,.85);border-radius:4px;bottom:100%;overscroll-behavior:contain;box-shadow:0 1px 2px #00000026;color:#4a5464;font-size:15px;margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:5;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.settings-menu-container:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:15px;top:100%;width:0}.settings-menu-container-down{transform:translateY(calc(100% + 42px))}.settings-menu-container-down:after{transform:rotate(180deg);top:-8px}.settings-menu{max-height:200px;overflow-y:auto}.settings-menu-container button{white-space:nowrap;background:transparent;border:0;border-radius:3px;cursor:pointer;flex-shrink:0;overflow:visible;position:relative;transition:all .3s ease;z-index:4;touch-action:manipulation;align-items:center;color:#4a5464;display:flex;font-size:13px;padding:6px 28px 6px 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;margin-top:2px}.settings-menu-container button>span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-right:5px;width:100%}.settings-menu{color:#4a5464;font-size:15px;text-align:left;white-space:nowrap;padding:7px}.settings-home>.settings-menu>button:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-left-color:#728197;right:6.5px}.settings-back{padding:5px}.settings-back:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-right-color:#728197;left:6.5px}.settings-back span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-left:15px;width:100%}.badge{white-space:nowrap;font:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-sizing:inherit;background:#4a5464;border-radius:2px;color:#fff;font-size:9px;line-height:1;padding:3px 4px}.captions{position:absolute;height:50px;left:0px;right:0px;bottom:25px;text-align:center}.captions>p{padding:5px;color:#fff;width:-moz-fit-content;width:fit-content;font-size:normal;margin:auto;background-color:#000}.settings-menu-button-radio:before{background:rgba(0,0,0,.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;transition:all .3s ease;width:16px;border-radius:100%}.settings-menu-button-radio:after{background:#fff;border:0;height:6px;left:16px;content:"";position:absolute;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px;border-radius:100%}.settings-menu-button-radio-checked:before{background-color:var(#076652)}.settings-menu-button-radio-checked:after{opacity:1;transform:translateY(-50%) scale(1)}.settings-menu-value{text-align:end;display:inline!important;padding-left:24px}.controls-bar-top{display:none;position:absolute;top:10px;right:5px;height:0px;opacity:0;width:-moz-fit-content;width:fit-content}.mobile-controls-top{position:absolute;top:5px;right:5px;width:-moz-fit-content;width:fit-content;z-index:5}.controls-bar-top-showing{display:none;position:absolute;top:10px;right:5px;height:-moz-fit-content;height:fit-content;transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:1}.controls-bar-top-showing-inAd .control:last-child{margin-right:25%}.controls-bar-top-showing-inAd{pointer-events:none}.controls-bar-top-showing-inAd .control,.inAd .ads-container{pointer-events:all}.ads-container{pointer-events:none}.mobile-controls{display:block;pointer-events:none;position:absolute;top:0px;bottom:0px;right:0px;left:0px;background:linear-gradient(transparent,rgba(0,0,0,.75));transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:0}@media (orientation: landscape){.fs .mobile-controls{height:100dvh}.force-mobile .mobile-controls,.fs-mobile{display:block!important}}.mobile-controls-big-buttons .control svg{width:36px;height:36px}.control{pointer-events:all}.docked .mobile-controls-big-buttons .control svg{width:16px;height:16px}.mobile-controls .controls-bar-showing{height:30px}.docked .mobile-controls .control{padding:6px}.mobile-controls-showing{opacity:1}.mobile-controls-big-buttons{display:grid;grid-template-columns:20% auto 20%;gap:.25rem;height:100%;justify-content:center;align-content:center;justify-items:center}.controls,.big-play-button{display:none}@media (min-width: 540px){.mobile-controls{display:none}.controls{display:flex}.big-play-button{display:block}}.fs-mobile .controls{display:none!important}.fs-close-button{position:absolute;top:8px;left:.5rem;width:18px;height:18px;border-radius:100%;padding:.25rem;cursor:pointer;text-align:center;display:flex;color:#fff;align-content:center;opacity:0}.fs-close-button:hover{background-color:#aaaaaabf}.show-fs-close-button{opacity:1}.focus-within\\:text-gray-600:focus-within{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity))}.hover\\:rounded-md:hover{border-radius:.375rem}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(221 221 221 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:hsl(120 40% 56% / var(--tw-bg-opacity))}.hover\\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:hsl(120 30% 36% / var(--tw-bg-opacity))}.hover\\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:hsl(120 20% 26% / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.hover\\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-green-500:focus{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: hsl(120 40% 56% / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-75{opacity:.75}@media (min-width: 640px){.sm\\:mx-0{margin-left:0!important;margin-right:0!important}.sm\\:mt-0{margin-top:0!important}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:flex{display:flex}.sm\\:hidden{display:none}.sm\\:h-screen{height:100vh}.sm\\:w-5\\/6{width:83.333333%}.sm\\:w-64{width:16rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-1{flex:1 1 0%}.sm\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-start{align-items:flex-start}.sm\\:items-end{align-items:flex-end}.sm\\:items-center{align-items:center}.sm\\:justify-center{justify-content:center}.sm\\:justify-between{justify-content:space-between}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pb-24{padding-bottom:6rem}.sm\\:pb-4{padding-bottom:1rem}.sm\\:pl-0{padding-left:0}.sm\\:pt-16{padding-top:4rem}.sm\\:text-center{text-align:center}.sm\\:align-middle{vertical-align:middle}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\\:flex{display:flex}.md\\:max-w-xl{max-width:36rem}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\\:block{display:block}.lg\\:inline-flex{display:inline-flex}.lg\\:hidden{display:none}.lg\\:max-w-2xl{max-width:42rem}.lg\\:max-w-full{max-width:100%}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\\:max-w-3xl{max-width:48rem}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1536px){.\\32xl\\:block{display:block}.\\32xl\\:max-w-4xl{max-width:56rem}.\\32xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1792px){.\\33xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (min-width: 2304px){.\\35xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}}@media (orientation: landscape){.landscape\\:my-0{margin-top:0!important;margin-bottom:0!important}} `]]]),r2="",Gv={key:0,class:"geoblock custom-geoblock"},$v=[U("div",{class:"geoblock-text custom-geoblock-text",style:{"text-align":"center"}},"This video content is not available in your region.",-1)],Hv={key:1,class:"player custom-player"},Kv={key:0,class:"player-title custom-player-title"},Yv=["src"],Wv=U("div",null,[U("span",{class:"docked-close-text"},"CLOSE "),U("svg",{class:"docked-close-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[U("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})])],-1),qv=["id","poster"],Xv=["id","src","srclang"],Qv={key:2,class:"ads-timer"},Jv=["src"],Zv={key:2,class:"player-description custom-player-description"},Ta=Pr(Ye({__name:"VideoPlayer.ce",props:{geoblocked:{type:Boolean},content:{},configuration:{},isAutoPlaylist:{type:Boolean},modelValue:{}},emits:["next","update:modelValue"],setup(r,{emit:n}){const c=r,p=n,g=K(null);K(null),K(null),K(null);const v=Zu(),b=K(0),k=K(0),S=K(),C=K(),R=K(),D=K(),M=oe(()=>{var Je;return(Je=xt.value)==null?void 0:Je.org_logo});K(!1);const H=K(!1),{docked:W,inAd:Y,adTime:ce,buffered:se,playing:ge,play:pe,pause:_e,videoWrapperVisible:te,fullscreen:xe,captions:de,inPip:y,inAirplay:re,captionTracks:z,time:Se,exitFullscreen:ye,showControls:Re,enterFullscreen:dt,exitDocked:st,enterDocked:j,flags:he,timeUpdate:qe,adPlaying:Pe,started:qt,alive:Mt,ended:kt,mute:_t,dockedHeight:Ft,videoElementVisible:Et,shouldShowStreams:Nt,videoEnded:Xt,currentContent:xt,registerMetadataTrack:Li,registerCaptionsTrack:Ze,unRegisterCaptionsTrack:si,unRegisterMetadataTrack:It,setCurrentContent:O,iphoneFullscreen:N,safariFullscreen:Z}=Tt(v,{videoElement:C,videoOverlay:R,adContainer:g,videoContainer:D,configuration:c.configuration}),le=()=>{ye(),ge.value&&_e()},ue=()=>{xe.value?dt():ye()},we=oe(()=>ge.value?"playing":Y.value?"inAd":"stopped"),Ee=Je=>{var Qt;const Xe=(Qt=C.value)==null?void 0:Qt.buffered;se.value=Xe!=null&&Xe.length?Xe.end(0):0},fe=Je=>{var Xe;((Xe=Je.track)==null?void 0:Xe.kind)=="metadata"?Li(Je.track):Ze(Je.track)},ke=async()=>{if(kt.value&&(await O(xt.value),pe()),!Y.value){if(X0){Re.value||(console.log("asd"),ci()),c.configuration.touchToPlay&&(ge.value?_e():pe());return}ge.value?_e():pe()}},me=Je=>{var Xe;((Xe=Je.track)==null?void 0:Xe.kind)=="metadata"?It(Je.track):si(Je.track)},{showTitle:Ce,showDescription:Be,showLogo:Oe,dockableSticky:$e}=nl(c.configuration),it=oe(()=>{var Je;return(Je=xt.value)==null?void 0:Je.contentTitle}),ct=oe(()=>{var Je;return(Je=xt.value)==null?void 0:Je.contentDescription});Ba("playerReference",v);const{content:ut}=nl(c);Bt(ut,async()=>{await O(c.content),kt.value&&c.isAutoPlaylist&&te&&pe(),kt.value=!1}),window.ampIntegration&&(window.ampIntegration.method("play",function(){}),window.ampIntegration.method("pause",function(){}),window.ampIntegration.method("mute",function(){console.warn("mute")}),window.ampIntegration.method("unmute",function(){console.warn("unmute")}),window.ampIntegration.postEvent("canplay"));const St=Yo(ce),li=K(!1),Ai=oe(()=>xe.value?"":`height: ${b.value}px;`),Fr=oe(()=>{var Je;return(Je=c.configuration)==null?void 0:Je.startDockedPositionBottom});Kt(()=>{var Je,Xe;if(p("update:modelValue",v),C.value.style.setProperty("--webkit-text-track-display","none"),c.configuration.autoplayMuted&&_t(),O(c.content),new Ho(Qt=>{b.value=Qt[0].contentRect.height,k.value=Qt[0].contentRect.width}).observe(C.value),c.configuration.stylesheet){const Qt=document.createElement("link");Qt.href=c.configuration.stylesheet,Qt.rel="stylesheet",Do(()=>{var lt;return(lt=S.value)==null?void 0:lt.appendChild(Qt)})}(Je=C.value)==null||Je.textTracks.addEventListener("addtrack",fe),(Xe=C.value)==null||Xe.textTracks.addEventListener("removetrack",me),document.addEventListener("visibilitychange",()=>{document.visibilityState!=="visible"?(ge.value&&c.configuration.pauseContentWhenInvisible||Y.value&&!c.configuration.playThroughInvisibleAds)&&!y.value&&(_e(),li.value=!0):li.value&&te.value&&pe()})});function rr(Je){var sa,Vt,La;Et.value=Je;const Xe=ge.value&&c.configuration.pauseContentWhenInvisible,Qt=Pe.value&&!c.configuration.playThroughInvisibleAds;!Je&&(Xe||Qt)&&!c.configuration.dockable&&(H.value=!0,_e());const lt=!ge.value&&c.configuration.pauseContentWhenInvisible&&H.value,ar=!Pe.value&&!c.configuration.playThroughInvisibleAds&&H.value,rn=!qt.value&&c.configuration.autoplay;Je&&(rn||lt||ar)&&!ge.value&&(H.value=!1,pe()),((sa=xt.value)==null?void 0:sa.key)&&te.value&&ra(v,he,(Vt=xt.value)==null?void 0:Vt.key,ne.video_impression,-1,(La=xt.value)==null?void 0:La.isLive)}function Nr(Je){if(te.value=Je,!y.value&&(ge.value||Pe.value,c.configuration.dockable)){if(!Je&&!xe.value){j();return}if(Je&&!c.configuration.dockableSticky){st();return}}}const di=()=>{st(),_e()},ci=Je=>{const Xe=Je.target,Qt=document.querySelector(".ecom-wrapper");(Qt==null?void 0:Qt.contains(Xe))||(Re.value=!0)},na=()=>{ra(v,he,xt.value.key,ne.video_ended,-1,xt.value.isLive),ge.value=!1,kt.value=!0,p("next"),Xt()},tn=oe(()=>{if(!k.value)return"";const Je=k.value;let Xe=360;return Je<=420?Xe=360:Je<=1079?Xe=720:Xe=1080,ut.value.thumbnail+"?width="+Xe});return(Je,Xe)=>{var Qt;return V(),Q("div",{ref_key:"container",ref:S,class:wt(we.value)},[Je.geoblocked?(V(),Q("div",Gv,$v)):(V(),Q("div",Hv,[Le(F($o),{onVisible:Nr,style:wi(F(Ft))},null,8,["style"]),F(Ce)?(V(),Q("p",Kv,Me(it.value),1)):ve("",!0),U("div",{class:"video custom-video",style:wi(F(Ft)),onClick:Xe[3]||(Xe[3]=Ut((...lt)=>F(ye)&&F(ye)(...lt),["self"])),onMousemove:ci,onWebkitendfullscreen:le,onExitfullscreen:Xe[4]||(Xe[4]=(...lt)=>F(ye)&&F(ye)(...lt)),onTouchstart:ci},[U("div",{ref_key:"videoOverlay",ref:R,class:wt({"docked custom-docked":F(W),fs:F(xe),"force-mobile":F(Bl),"fs-mobile":F(xe)&&F(Bl),"iphone-fs":F(xe)&&F(Wo)}),style:wi(F(W)?`bottom: ${Fr.value}`:"")},[F(W)?(V(),Q("div",{key:0,class:"docked-close-container custom-docked-close-container",onClick:di},[Je.configuration.dockedLogo?(V(),Q("img",{key:0,class:"docked_logo",src:Je.configuration.dockedLogo},null,8,Yv)):ve("",!0),Wv])):ve("",!0),U("div",{class:"video-container",ref_key:"videoContainer",ref:D,style:wi(Ai.value)},[Le(F($o),{onVisible:rr,style:wi(Ai.value)},null,8,["style"]),U("video",{id:F(v),onExitfullscreen:Xe[0]||(Xe[0]=(...lt)=>F(ye)&&F(ye)(...lt)),onWebkitendfullscreen:le,onMousedown:ke,onEnded:na,onProgress:Ee,onContextmenu:Xe[1]||(Xe[1]=lt=>lt.preventDefault()),onTimeupdate:Xe[2]||(Xe[2]=lt=>F(qe)(lt.target.currentTime,lt.target.duration)),onDblclick:ue,playsinline:"",crossorigin:"anonymous",ref_key:"videoElement",ref:C,poster:tn.value,"x-webkit-airplay":"allow",airplay:"allow"},[(V(!0),Q(nt,null,ri(F(de),(lt,ar)=>(V(),Q("track",{id:lt.label,src:lt.file,kind:"captions",srclang:lt.label},null,8,Xv))),256))],40,qv),F(Nt)&&!Je.configuration.hideOverlay?(V(),ze(F(pb),{key:0})):ve("",!0),Je.configuration.hideOverlay?ve("",!0):(V(),ze(F(Iv),{key:1})),U("div",{class:wt(["ads-container",!F(Y)&&"ads-hidden"]),ref_key:"adContainer",ref:g},null,2),F(Y)?(V(),Q("div",Qv,"Ad - "+Me(F(St)),1)):ve("",!0),Le(F(Dw)),((Qt=F(xt))==null?void 0:Qt.isLive)&&!F(Y)&&(F(Mt)&&F(Re)||!F(Mt))&&!F(ge)?(V(),Q("div",{key:3,class:wt(["live-badge",{"live-badge-offline":!F(Mt)}])},Me(F(Mt)?"Live":"Stream Offline"),3)):ve("",!0),Le(F(Tw)),F(Bl)?ve("",!0):(V(),ze(F(hw),{key:4})),F(Nt)&&F(Se)>=45&&F(Se)<=60?(V(),ze(F(Lw),{key:5})):ve("",!0),F(Nt)?(V(),ze(F(Cw),{key:6})):ve("",!0)],4)],6)],36),F(Oe)?(V(),Q("img",{key:1,class:"player-logo custom-player-logo",src:M.value},null,8,Jv)):ve("",!0),F(Be)?(V(),Q("p",Zv,Me(ct.value),1)):ve("",!0)]))],2)}}}),[["styles",[`.live-badge{background-color:red;border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;padding:10px;position:absolute;top:15px;left:15px;z-index:1000000;font-weight:700}.live-circle{width:10px;height:10px;background-color:gray;display:block;border-radius:100%;margin:auto}.live-circle-online{background-color:red}.live-badge-offline{background-color:#36363640}.live{border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;z-index:1000000;font-weight:500;padding:5px;margin-left:5px;margin-right:10px;display:flex;gap:5px}.gearIcon{width:20px;height:20px;vertical-align:middle}.filter{filter:invert(95%) sepia(100%) saturate(2%) hue-rotate(54deg) brightness(105%) contrast(101%)}.overlay>img{filter:unset}.video{grid-area:video;position:relative}.player-logo{grid-area:logo;width:4rem;height:4rem;margin-top:1rem;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}.player-description{grid-area:description;word-break:normal;overflow-y:auto;margin-top:1rem;max-height:150px}.player-title{grid-area:title;word-break:normal;font-weight:800}.overlay{position:absolute;z-index:1}.info{position:absolute;opacity:.5;background-color:#000;width:100%;height:100%;z-index:2;bottom:0}.player{display:grid;grid-template-areas:"title title title" "video video video" "logo description description";position:relative}.docked{position:fixed;right:10px;width:360px;padding:clamp(5px,1vw,10px);max-width:60%!important;height:-moz-fit-content;height:fit-content;aspect-ratio:16/9;padding-top:0;background-color:#1b1b1b}.docked_logo{height:20px;margin-top:auto}.docked-close-container{color:#fff;text-align:right;padding-bottom:5px;cursor:pointer;font-size:small;display:flex;justify-content:space-between}.docked-close-icon{width:20px;height:20px;position:relative;top:5px}.fs{position:fixed;display:flex;top:0px;bottom:0px;right:0px;left:0px;background-color:#000;z-index:100;place-content:center}@media (orientation: landscape){.iphone-fs video{max-height:100vh}.iphone-fs .control svg{width:30px;height:30px}.iphone-fs .controls-bar-showing{height:80px}.iphone-fs .controls-bar{padding-bottom:20px!important}.iphone-fs .control{padding:12px}.iphone-fs .controls-clock{margin-left:-12px;font-size:17px}.iphone-fs .volume-control{margin-right:-12px}.iphone-fs input[type=range]::-moz-range-thumb{height:24px;width:24px}.iphone-fs input[type=range]::-webkit-slider-thumb{height:24px;width:24px;margin-top:-9px}}.fs .video-container{align-self:center}.video-container{position:relative;width:100%}.ads-hidden{display:none}.scoreboard-overlay-button{z-index:20;height:20px;width:20px;border-radius:50%;position:absolute;top:50px;background-color:#efefefde;left:10px;cursor:pointer;transition:all .5s}.scoreboard-overlay-button-open{left:220px}.scoreboard-overlay{z-index:20;height:80%;padding:5px;position:absolute;border-radius:.5rem;background-color:#efefefde;top:10%;left:-1000px;width:200px;opacity:0;transition:all .5s}.scoreboard-overlay-open{left:10px;opacity:1}.multi-feed-playlist-name{text-align:center}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px;width:200px;margin-left:10px;margin-right:10px;flex:0 0 auto}.multi-feed{width:100%;overflow-x:hidden}.multi-feed-video-list{margin:0;padding:0;display:flex;flex-direction:row;height:-moz-fit-content;height:fit-content;overflow-x:auto;width:100%}.multi-feed-player{grid-area:video}.multi-feed-nav-button{cursor:pointer;text-decoration:underline;position:absolute;background-color:#535252bf;height:50px;width:50px;z-index:1;color:#fff}.multi-feed-nav-next{text-align:right;right:2px}.multi-feed-nav-prev{text-align:left;left:2px}.multi-feed-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.multi-feed-player>.custom-player>.custom-player-title{height:50px}.multi-feed-player>.custom-player>.custom-player-description{height:75px}.multi-feed-player>.custom-player>.custom-video{max-height:unset}.carousel-publisher-info{width:200px;margin:auto;display:grid;grid-template-areas:"distributorLogo" "feedName";grid-area:distributorInfo}.carousel-publisher-logo{height:100px;width:100px;margin:auto}.carousel-playlist-name{text-align:center}.video-card-thumbnail{grid-area:videoThumbnail}.video-card-thumbnail-image{width:100%}.video-card-title{grid-area:videoName}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px}.carousel-playlist{display:grid;grid-template-areas:"video" "distributorInfo" "carouselContainer"}.carousel-container{display:grid;grid-area:carouselContainer;grid-template-areas:"nav nav nav" "carousel carousel carousel"}.carousel-player{grid-area:video}.carousel{grid-area:carousel}.carousel-nav{display:grid;grid-area:nav;grid-template-areas:"prev pages next";width:50%;margin:auto}.carousel-nav-next{grid-area:next;text-align:right;cursor:pointer;text-decoration:underline}.carousel-nav-prev{grid-area:prev;text-align:left;cursor:pointer;text-decoration:underline}.carousel-nav-pages{grid-area:pages;text-align:center}.carousel-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.carousel-player>.custom-player>.custom-player-title{height:50px}.carousel-player>.custom-player>.custom-player-description{height:75px}.carousel-player>.custom-player>.custom-video{max-height:unset}.carousel-video-list{height:100%;overflow-y:auto;overflow-x:hidden;display:grid;grid-column-gap:15px;grid-row-gap:15px;grid-template-columns:repeat(1,1fr);grid-template-rows:auto}@media screen and (min-width: 480px){.carousel-video-list{grid-template-columns:repeat(3,1fr)}}.thumbnail-carousel{display:flex;flex-direction:row;width:100%;gap:5px}.thumbnail-carousel-card{cursor:pointer;gap:5px}.vertical-carousel{flex-direction:column;width:-moz-fit-content;width:fit-content}.vertical-carousel-card .thumbnail-carousel-card-image{max-width:480px}.vertical-carousel-card{display:grid;grid-template-areas:"cardImage cardLogo cardTitle" "cardImage cardDescription cardDescription"}.thumbnail-carousel-card-image{max-width:100%;border-radius:10px;grid-area:cardImage;-o-object-fit:fill;object-fit:fill}.thumbnail-carousel-card-title{text-overflow:ellipsis;font-weight:500;font-size:2rem;margin:0;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardTitle}.vertical-carousel-card .thumbnail-carousel-card-title{max-width:unset}.thumbnail-carousel-card-description{text-overflow:ellipsis;white-space:wrap;overflow:hidden;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardDescription}.thumbnail-carousel-card-logo{height:3.5em;width:3.5em;-o-object-fit:contain;object-fit:contain;grid-area:cardLogo}.feed{height:"100%";overflow-y:"scroll";overflow-x:"hidden"}.publisher-info{display:grid;width:100%;grid-template-areas:"playlistDistributorLogo playlistFeedName";grid-area:playlistDistributorInfo}.playlist-name{grid-area:playlistFeedName}.playlist-publisher-logo{max-height:75px;grid-area:playlistDistributorLogo}.playlist-name{margin-top:35px}.playlist-player{grid-area:playlistVideo}.playlist-video-list{overflow-y:scroll;overflow-x:hidden;display:grid;grid-template-columns:1fr;grid-template-rows:auto;grid-area:playlistVideoList}.playlist-card{display:grid;grid-template-areas:"videoThumbnail videoName" "videoThumbnail videoDescription";height:100px;margin-top:5px;grid-column-gap:15px;overflow:hidden;grid-template-columns:2fr 3fr;align-items:start;cursor:pointer}.playlist-card-thumbnail{grid-area:videoThumbnail}.playlist-card-thumbnail-image{height:100px;width:100%}.playlist-card-name{grid-area:videoName}.playlist-card-description{font-size:.75rem;color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;grid-area:videoDescription}.playlist-player>.custom-player{grid-template-rows:3fr 1fr 3fr;grid-template-columns:4fr 1fr;grid-template-areas:"video video" "title logo" "description description";max-height:100%}.playlist-player>.custom-player>.custom-video{max-height:425px}.playlist-player>.custom-player>.custom-player-title{height:50px}.playlist-player>.custom-player>.custom-player-description{height:125px}.playlist{display:flex;flex-direction:column}@media screen and (min-width: 700px){.playlist{display:grid;grid-template-areas:"playlistVideo playlistDistributorInfo" "playlistVideo playlistVideoList" "playlistVideo playlistVideoList";grid-template-columns:3fr 2fr;grid-template-rows:1fr 4fr;grid-column-gap:10px;height:500px}.playlist-player>.custom-player{grid-template-rows:4fr 1fr 3fr}}.shop-overlay-bar{position:absolute;top:0px;padding:5px 0 0;gap:clamp(5px,100vw,12px);z-index:4;display:flex;flex-direction:row;left:0px;right:0px;overflow-x:auto;pointer-events:none;height:clamp(-moz-min-content,4vw,48px);height:clamp(min-content,4vw,48px);overflow-y:hidden}.overlay-bar-chevron{height:-moz-min-content;height:min-content;align-self:center;pointer-events:all;margin-right:-15px;padding:2px;border:unset!important}.overlay-bar-icon-visible{opacity:1;height:-moz-fit-content;height:fit-content;pointer-events:all}.overlay-bar-icon-hidden{opacity:0;height:0px;pointer-events:none}.overlay-bar-icon>img{border:2px solid black;border-radius:50%}.overlay-bar-icon{z-index:2;cursor:pointer;text-align:center;transition:opacity .75s linear;transition:height .2s linear;color:#fff;border-radius:10px;width:clamp(17px,100vw,48px);height:clamp(17px,100vw,48px);font-weight:800}.overlay-bar-icon>img{height:100%;min-width:15px;width:100%;transition:all .2s linear}@media (max-width: 500px){.overlay-bar-icon{width:32px;height:32px}}.ecom-wrapper{position:absolute;display:flex;left:15px;flex-shrink:0;border-radius:.5rem;border-width:0px;border-style:none;border-color:#ddd;background-color:transparent;padding:12px;width:50px;overflow-x:hidden;overflow-y:hidden;transition:all .25s;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);height:72px}.ecom-inner-wrapper{display:flex;align-items:center}.ecom-icon{border:solid;border-width:2px;border-radius:9999px;width:3rem;height:3rem;cursor:pointer}.ecom-name{font-size:1rem;line-height:1.5rem;font-weight:700;color:#444;pointer-events:none}.ecom-subtext{color:#999;font-size:.875rem;line-height:1.25rem;pointer-events:none}.ecom-button{border:none;cursor:pointer;height:1.2rem;width:-moz-max-content;width:max-content;margin-left:.5rem;border-radius:9999px;color:#fff;font-weight:600;font-size:.875rem;line-height:1.25rem;text-decoration:none;text-align:center;padding:.5rem 1rem}.ecom-text-wrapper{padding-left:.75rem}@keyframes ping{0%,60%{transform:scale(1);opacity:1;filter:brightness(1)}70%{transform:scale(1.3);opacity:.75;filter:brightness(2)}to{transform:scale(.75);opacity:.25;filter:brightness(.5)}}.animated-chevron{animation:ping 5s cubic-bezier(0,0,.1,1) infinite}.ecom-chevron{position:absolute;border-radius:100%;bottom:-5px;right:-5px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center}.ecom-img-wrapper{position:relative;display:flex;place-content:center}.ecom-close{position:absolute;border-radius:100%;top:-10px;right:-10px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center;background-color:#afafaf}.ecom-close svg{margin-top:2px}@media (max-width: 500px){.ecom-icon{width:2.5rem;height:2.5rem}.ecom-name,.ecom-subtext{font-size:.8rem}.ecom-button{font-size:.5rem;padding:.1rem .5rem}.ecom-wrapper{padding:5px;width:3rem}.ecom-img-wrapper{width:3rem}}.ecomExpanded{width:-moz-max-content;width:max-content;overflow-y:visible;border-width:2px;height:48px;background-color:#efefefde;overflow-x:visible;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ecom-wrapper-entering,.ecom-wrapper-leaving{transition:all .5s}.ecom-wrapper-enter-from{opacity:0}.ecom-wrapper-enter-to,.ecom-wrapper-leave-from{opacity:1}.ecom-wrapper-leave-to{opacity:0}.ecom-wrapper-top-expanded{top:15px}.ecom-wrapper-top-docked{top:-15px;left:0px}.ecom-wrapper-top-undocked{top:0px}.ecom-wrapper-bottom-expanded-undocked{top:15px}.ecom-wrapper-bottom-docked{bottom:-10px;left:0px}.ecom-wrapper-bottom-controls-docked{bottom:30px}.ecom-wrapper-bottom-controls-undocked{bottom:50px}.ecom-wrapper-bottom-undocked{bottom:30px}.ecom-wrapper-bottom-expanded{bottom:15px}@media (orientation: landscape){.iphone-fs .ecom-wrapper-top-expanded{top:30px}.iphone-fs .ecom-wrapper-top-undocked{top:0px}.iphone-fs .ecom-wrapper-bottom-expanded-undocked{top:15px}.iphone-fs .ecom-wrapper-bottom-controls-undocked{bottom:65px}.iphone-fs .ecom-wrapper-bottom-undocked{bottom:10px}.iphone-fs .ecom-wrapper-bottom-expanded{bottom:20px}}.inAmp.ecom-wrapper-bottom-undocked{bottom:-5px;left:5px}.inAmp.ecom-wrapper-top-undocked{top:-10px;left:0px}.inAmp.ecom-wrapper-bottom-controls-undocked{bottom:30px;left:10px}.pylon-img{height:500px;-o-object-fit:contain;object-fit:contain}.pylon-toggle{color:#fff;pointer-events:all}.pylon-overlay{position:absolute;top:0px;z-index:2;left:10px;right:0px;overflow-x:auto;pointer-events:none;overflow-y:hidden}.stream-ui{display:grid;grid-template-columns:repeat(4,1fr);grid-column-gap:20px;transition:all 1s;opacity:0;position:absolute;bottom:100px;left:10px;right:10px;z-index:3;justify-content:center;transition:opacity 1s}.hidden-stream-item{display:none}.stream-ui-gridded{display:grid;grid-column-gap:0px;bottom:0px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.stream-grid-button{z-index:20;height:20px;width:20px;border-radius:50%;top:50px;left:calc(50% - 10px);cursor:pointer;background-color:#efefefde;position:absolute;opacity:0;transition:opacity 1s}.stream-ui-visible{opacity:1}.special{all:initial}.special>*{all:initial}.special img{max-width:unset!important}.special .ecom-wrapper *,.special .ecom-wrapper,.special .ecom-wrapper img{box-sizing:initial}fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:before,.multiselect__spinner:after{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border-color:#41b883 transparent transparent;border-style:solid;border-width:2px;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:initial;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\\d7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #e8e8e8;cursor:pointer}.multiselect__select{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:5px 5px 0 5px;border-color:#999 transparent transparent transparent;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-radius:5px 5px 0 0;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::-webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}*[dir=rtl] .multiselect{text-align:right}*[dir=rtl] .multiselect__select{right:auto;left:1px}*[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}*[dir=rtl] .multiselect__content{text-align:right}*[dir=rtl] .multiselect__option:after{right:auto;left:0}*[dir=rtl] .multiselect__clear{right:auto;left:12px}*[dir=rtl] .multiselect__spinner{right:auto;left:1px}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}@media (min-width: 1792px){.\\!container{max-width:1792px!important}.container{max-width:1792px}}@media (min-width: 2048px){.\\!container{max-width:2048px!important}.container{max-width:2048px}}@media (min-width: 2304px){.\\!container{max-width:2304px!important}.container{max-width:2304px}}@media (min-width: 2560px){.\\!container{max-width:2560px!important}.container{max-width:2560px}}@media (min-width: 3072px){.\\!container{max-width:3072px!important}.container{max-width:3072px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0px}.inset-y-0{top:0px;bottom:0px}.inset-y-5{top:1.25rem;bottom:1.25rem}.bottom-4{bottom:1rem}.left-0{left:0px}.right-0{right:0px}.right-6{right:1.5rem}.top-0{top:0px}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2000\\]{z-index:2000}.m-0{margin:0!important}.m-1{margin:.25rem}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-40{margin-top:10rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-10{width:2.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.max-w-7xl{max-width:80rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.basis-1\\/3{flex-basis:33.333333%}.-translate-x-4{--tw-translate-x: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.gap-2{gap:.5rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-10{row-gap:2.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(221 221 221 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(187 187 187 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(239 239 239 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(102 102 102 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(85 85 85 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:hsl(120 50% 86% / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:hsl(120 30% 46% / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-0\\.5{padding-top:.125rem}.pt-12{padding-top:3rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-bottom{vertical-align:bottom}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(68 68 68 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:hsl(120 50% 66% / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:hsl(120 30% 46% / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.player{--parone-primary: rgb(7, 102, 82)}video::-webkit-media-text-track-container{display:var(--webkit-text-track-display)}*{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.controls-bar{width:100%;align-items:center;display:flex;justify-content:flex-end;text-align:center;bottom:0px;opacity:0;padding:10px;position:absolute;height:0px;box-sizing:border-box;transition:opacity .4s ease-in-out,height .4s ease-in-out;z-index:4}.controls-bar-showing{opacity:1;height:47px;background:linear-gradient(transparent,rgba(0,0,0,.75))}.controls-bar .control:first-child{margin-left:0;margin-right:auto}video{width:100%}.control svg{width:18px;height:18px;fill:currentColor}.tooltip{cursor:default;text-align:center;border-radius:3px;bottom:100%;line-height:1.3;margin-bottom:20px;opacity:0;padding:5px 7.5px;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2;box-shadow:0 1px 2px #00000026;font-size:13px;pointer-events:all;background-color:#fff;color:#000}.tooltip:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:20px;top:100%;width:0}.control{background:transparent;border:0;border-radius:3px;color:#fff;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;position:relative;transition:all .3s ease;z-index:4;margin-left:2.5px;touch-action:manipulation}input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-progress{background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-moz-range-thumb{background-color:#fff;height:16px;width:16px;border-radius:50%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;margin-top:-6px;background:white;height:16px;width:16px;border-radius:50%;color:#fff}input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-track{background-color:#ffffff40;height:5px;border-radius:.5rem}.volume-bar::-webkit-slider-runnable-track{background-color:#ffffff40;border-radius:.5rem;height:5px;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.volume-bar-container{align-items:center;display:flex;width:clamp(30px,15%,68px);position:relative;padding:7px 5px;margin-left:0}.volume-bar{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:15px;display:block;height:20px;margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;position:relative;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.progress{text-align:center;left:7px;margin-right:13px;position:relative;visibility:visible;pointer-events:all}.progress-container{text-align:center;flex-grow:1;width:-moz-min-content;width:min-content;min-width:20px;padding:0;margin-left:2.5px;cursor:default}progress{color:#ffffff40;margin-left:-7px;margin-right:-7px;width:calc(100% + 13px);min-width:0px;-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:5px;left:0;margin-top:-2.5px;padding:0;position:absolute;top:50%;border-radius:.5rem}progress::-moz-progress-bar{border-radius:100px;min-width:5px;-moz-transition:width .2s ease;transition:width .2s ease;background-color:#ffffff80;border-radius:.5rem}progress::-webkit-progress-bar{border-radius:100px;min-width:5px;-webkit-transition:width .2s ease;transition:width .2s ease;border-radius:.5rem}progress::-webkit-progress-value{background-color:#ffffff80;border-radius:.5rem}.progress>input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;background-image:linear-gradient(to right,#6a7b78 var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input[type=range]::-moz-range-progress{background-color:#6a7b78!important;height:5px}.seekbar-disabled input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:#6a7b78!important;height:5px}.progress input{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;display:block;height:20px;min-width:0;padding:0;transition:box-shadow .3s ease;margin:0 -7px;width:calc(100% + 13px);position:relative;z-index:2;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.controls-clock{font-size:13px;width:40px;padding:7px 10px 7px 5px}.mobile-controls .controls-clock{width:-moz-max-content;width:max-content;padding-bottom:0;padding-top:0}.mobile-controls .time,.mobile-controls .live{position:absolute;top:-10px;right:0px}.control-hovers:hover,.control:active:not(.progress-container,.volume-bar-container){background:var(--parone-primary)}.settings-menu-container button:hover{background:var(--parone-primary)}.settings-menu-container button:hover span{color:#fff}.big-play-button{cursor:pointer;flex-shrink:0;overflow:visible;background:var(--parone-primary);border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:4;width:auto;touch-action:manipulation;display:none;fill:currentColor}.mobile-play-pause{cursor:pointer;flex-shrink:0;overflow:visible;border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;top:50%;transition:.3s;z-index:4;touch-action:manipulation;display:block;fill:currentColor;height:40px;transform:translate(-50%,-50%);width:40px}.big-play-button svg,.mobile-play-pause svg{cursor:pointer;color:#fff;fill:currentColor;display:block;height:18px;pointer-events:none;width:18px;left:2px;position:relative}.ads-container{z-index:3;position:absolute;top:0px}.ads-timer{z-index:4;position:absolute;right:5px;bottom:5px;width:-moz-fit-content;width:fit-content;background:#23282f;border-radius:2px;color:#ffffffbf;font-size:11px;padding:4px 6px;pointer-events:none}.settings-menu-container{animation:plyr-popup .2s ease;background:hsla(0,0%,100%,.85);border-radius:4px;bottom:100%;overscroll-behavior:contain;box-shadow:0 1px 2px #00000026;color:#4a5464;font-size:15px;margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:5;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.settings-menu-container:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:15px;top:100%;width:0}.settings-menu-container-down{transform:translateY(calc(100% + 42px))}.settings-menu-container-down:after{transform:rotate(180deg);top:-8px}.settings-menu{max-height:200px;overflow-y:auto}.settings-menu-container button{white-space:nowrap;background:transparent;border:0;border-radius:3px;cursor:pointer;flex-shrink:0;overflow:visible;position:relative;transition:all .3s ease;z-index:4;touch-action:manipulation;align-items:center;color:#4a5464;display:flex;font-size:13px;padding:6px 28px 6px 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;margin-top:2px}.settings-menu-container button>span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-right:5px;width:100%}.settings-menu{color:#4a5464;font-size:15px;text-align:left;white-space:nowrap;padding:7px}.settings-home>.settings-menu>button:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-left-color:#728197;right:6.5px}.settings-back{padding:5px}.settings-back:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-right-color:#728197;left:6.5px}.settings-back span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-left:15px;width:100%}.badge{white-space:nowrap;font:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-sizing:inherit;background:#4a5464;border-radius:2px;color:#fff;font-size:9px;line-height:1;padding:3px 4px}.captions{position:absolute;height:50px;left:0px;right:0px;bottom:25px;text-align:center}.captions>p{padding:5px;color:#fff;width:-moz-fit-content;width:fit-content;font-size:normal;margin:auto;background-color:#000}.settings-menu-button-radio:before{background:rgba(0,0,0,.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;transition:all .3s ease;width:16px;border-radius:100%}.settings-menu-button-radio:after{background:#fff;border:0;height:6px;left:16px;content:"";position:absolute;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px;border-radius:100%}.settings-menu-button-radio-checked:before{background-color:var(#076652)}.settings-menu-button-radio-checked:after{opacity:1;transform:translateY(-50%) scale(1)}.settings-menu-value{text-align:end;display:inline!important;padding-left:24px}.controls-bar-top{display:none;position:absolute;top:10px;right:5px;height:0px;opacity:0;width:-moz-fit-content;width:fit-content}.mobile-controls-top{position:absolute;top:5px;right:5px;width:-moz-fit-content;width:fit-content;z-index:5}.controls-bar-top-showing{display:none;position:absolute;top:10px;right:5px;height:-moz-fit-content;height:fit-content;transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:1}.controls-bar-top-showing-inAd .control:last-child{margin-right:25%}.controls-bar-top-showing-inAd{pointer-events:none}.controls-bar-top-showing-inAd .control,.inAd .ads-container{pointer-events:all}.ads-container{pointer-events:none}.mobile-controls{display:block;pointer-events:none;position:absolute;top:0px;bottom:0px;right:0px;left:0px;background:linear-gradient(transparent,rgba(0,0,0,.75));transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:0}@media (orientation: landscape){.fs .mobile-controls{height:100dvh}.force-mobile .mobile-controls,.fs-mobile{display:block!important}}.mobile-controls-big-buttons .control svg{width:36px;height:36px}.control{pointer-events:all}.docked .mobile-controls-big-buttons .control svg{width:16px;height:16px}.mobile-controls .controls-bar-showing{height:30px}.docked .mobile-controls .control{padding:6px}.mobile-controls-showing{opacity:1}.mobile-controls-big-buttons{display:grid;grid-template-columns:20% auto 20%;gap:.25rem;height:100%;justify-content:center;align-content:center;justify-items:center}.controls,.big-play-button{display:none}@media (min-width: 540px){.mobile-controls{display:none}.controls{display:flex}.big-play-button{display:block}}.fs-mobile .controls{display:none!important}.fs-close-button{position:absolute;top:8px;left:.5rem;width:18px;height:18px;border-radius:100%;padding:.25rem;cursor:pointer;text-align:center;display:flex;color:#fff;align-content:center;opacity:0}.fs-close-button:hover{background-color:#aaaaaabf}.show-fs-close-button{opacity:1}.focus-within\\:text-gray-600:focus-within{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity))}.hover\\:rounded-md:hover{border-radius:.375rem}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(221 221 221 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:hsl(120 40% 56% / var(--tw-bg-opacity))}.hover\\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:hsl(120 30% 36% / var(--tw-bg-opacity))}.hover\\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:hsl(120 20% 26% / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.hover\\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-green-500:focus{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: hsl(120 40% 56% / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-75{opacity:.75}@media (min-width: 640px){.sm\\:mx-0{margin-left:0!important;margin-right:0!important}.sm\\:mt-0{margin-top:0!important}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:flex{display:flex}.sm\\:hidden{display:none}.sm\\:h-screen{height:100vh}.sm\\:w-5\\/6{width:83.333333%}.sm\\:w-64{width:16rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-1{flex:1 1 0%}.sm\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-start{align-items:flex-start}.sm\\:items-end{align-items:flex-end}.sm\\:items-center{align-items:center}.sm\\:justify-center{justify-content:center}.sm\\:justify-between{justify-content:space-between}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pb-24{padding-bottom:6rem}.sm\\:pb-4{padding-bottom:1rem}.sm\\:pl-0{padding-left:0}.sm\\:pt-16{padding-top:4rem}.sm\\:text-center{text-align:center}.sm\\:align-middle{vertical-align:middle}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\\:flex{display:flex}.md\\:max-w-xl{max-width:36rem}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\\:block{display:block}.lg\\:inline-flex{display:inline-flex}.lg\\:hidden{display:none}.lg\\:max-w-2xl{max-width:42rem}.lg\\:max-w-full{max-width:100%}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\\:max-w-3xl{max-width:48rem}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1536px){.\\32xl\\:block{display:block}.\\32xl\\:max-w-4xl{max-width:56rem}.\\32xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1792px){.\\33xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (min-width: 2304px){.\\35xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}}@media (orientation: landscape){.landscape\\:my-0{margin-top:0!important;margin-bottom:0!important}} `]]]),s2="",l2="",eb={class:"publisher-info custom-publisher-info"},tb=["src"],ib={class:"playlist-name custom-playlist-name"},rb=["onClick"],ab={class:"playlist-card-thumbnail custom-playlist-card-thumbnail",style:{position:"relative"}},ob=["src"],nb={key:0,class:"live custom-playlist-card-thumbnail-live"},sb={key:0,class:"playlist-card-name custom-playlist-card-name"},lb={key:1,class:"playlist-card-description custom-playlist-card-description"},db=Ye({__name:"VideoPlaylist.ce",props:{campaigns:String,contentKeys:String,hideCardTitle:{type:String,default:"false"},hideCardDescription:{type:String,default:"false"},...ya},emits:Ga,setup(r,{emit:n}){const c={},p=K(!1),g=K([]),v=K(0),b=K(0),k=K(""),S=K("");K(ne.thumbnail);const C=K(null),R=K(null),D=r,M=K(null),H=(xe,de)=>{xe&&!c[de]&&(c[de]=!0,_a("",ne.thumbnail,de,{},M))},W=oe(()=>D.hideCardDescription!="true"),Y=oe(()=>D.hideCardTitle!="true"),ce=oe(()=>Ir()),se=oe(()=>g.value[v.value]);oe(()=>D.styles);function ge(){var xe,de,y,re;((xe=R.value)==null?void 0:xe.scrollTop)+((de=R.value)==null?void 0:de.clientHeight)>=((y=R.value)==null?void 0:y.scrollHeight)&&!((re=D.campaigns||D.contentKeys)!=null&&re.length)&&!p.value&&_e()}const pe=K(0);async function _e(){p.value=!0;const{feedUrl:xe}=cs(D,ce,pe.value),de=[...g.value,...(await ia(xe.value)).filter(z=>!g.value.map(Se=>Se.key).includes(z.key))],y=de.filter(z=>z.livestream_id),re=de.filter(z=>!z.livestream_id);g.value=[...y,...re],pe.value++,p.value=!1}Bt(R,()=>{!R.value||(R.value.addEventListener("scroll",ge),ge())}),Bt(C,()=>{!C.value||new Ho(xe=>{b.value=xe[0].contentRect.width}).observe(C.value)});const te=n;return Kt(async()=>{M.value=await ka(D,te),await _e(),k.value=g.value.length>0?g.value[0].distributor_logo:"",S.value=g.value.length>0?g.value[0].feed_name:""}),(xe,de)=>se.value?(V(),Q("div",{key:0,class:"playlist custom-playlist",ref_key:"container",ref:C},[se.value?(V(),ze(F(Ta),{key:0,class:"playlist-player custom-playlist-player",configuration:M.value,content:se.value},null,8,["configuration","content"])):ve("",!0),U("div",eb,[k.value?(V(),Q("img",{key:0,class:"playlist-publisher-logo custom-playlist-publisher-logo",src:k.value},null,8,tb)):ve("",!0),U("div",ib,Me(S.value),1)]),U("div",{class:"playlist-video-list custom-playlist-video-list",ref_key:"list",ref:R},[(V(!0),Q(nt,null,ri(g.value,(y,re)=>(V(),Q("div",{class:"playlist-card custom-playlist-card",onClick:()=>v.value=re,key:re},[Le(F($o),{onVisible:z=>H(z,y.key)},null,8,["onVisible"]),U("span",ab,[U("img",{class:"playlist-card-thumbnail-image custom-playlist-card-thumbnail-image",src:y.thumbnail},null,8,ob),y.isLive?(V(),Q("div",nb,"Live")):ve("",!0)]),Y.value?(V(),Q("div",sb,Me(F(us)(y,xe.defaultlang)),1)):ve("",!0),W.value?(V(),Q("div",lb,Me(F(ip)(y,xe.defaultlang)),1)):ve("",!0)],8,rb))),128))],512)],512)):ve("",!0)}}),cb=Pr(db,[["styles",[`.live-badge{background-color:red;border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;padding:10px;position:absolute;top:15px;left:15px;z-index:1000000;font-weight:700}.live-circle{width:10px;height:10px;background-color:gray;display:block;border-radius:100%;margin:auto}.live-circle-online{background-color:red}.live-badge-offline{background-color:#36363640}.live{border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;z-index:1000000;font-weight:500;padding:5px;margin-left:5px;margin-right:10px;display:flex;gap:5px}.gearIcon{width:20px;height:20px;vertical-align:middle}.filter{filter:invert(95%) sepia(100%) saturate(2%) hue-rotate(54deg) brightness(105%) contrast(101%)}.overlay>img{filter:unset}.video{grid-area:video;position:relative}.player-logo{grid-area:logo;width:4rem;height:4rem;margin-top:1rem;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}.player-description{grid-area:description;word-break:normal;overflow-y:auto;margin-top:1rem;max-height:150px}.player-title{grid-area:title;word-break:normal;font-weight:800}.overlay{position:absolute;z-index:1}.info{position:absolute;opacity:.5;background-color:#000;width:100%;height:100%;z-index:2;bottom:0}.player{display:grid;grid-template-areas:"title title title" "video video video" "logo description description";position:relative}.docked{position:fixed;right:10px;width:360px;padding:clamp(5px,1vw,10px);max-width:60%!important;height:-moz-fit-content;height:fit-content;aspect-ratio:16/9;padding-top:0;background-color:#1b1b1b}.docked_logo{height:20px;margin-top:auto}.docked-close-container{color:#fff;text-align:right;padding-bottom:5px;cursor:pointer;font-size:small;display:flex;justify-content:space-between}.docked-close-icon{width:20px;height:20px;position:relative;top:5px}.fs{position:fixed;display:flex;top:0px;bottom:0px;right:0px;left:0px;background-color:#000;z-index:100;place-content:center}@media (orientation: landscape){.iphone-fs video{max-height:100vh}.iphone-fs .control svg{width:30px;height:30px}.iphone-fs .controls-bar-showing{height:80px}.iphone-fs .controls-bar{padding-bottom:20px!important}.iphone-fs .control{padding:12px}.iphone-fs .controls-clock{margin-left:-12px;font-size:17px}.iphone-fs .volume-control{margin-right:-12px}.iphone-fs input[type=range]::-moz-range-thumb{height:24px;width:24px}.iphone-fs input[type=range]::-webkit-slider-thumb{height:24px;width:24px;margin-top:-9px}}.fs .video-container{align-self:center}.video-container{position:relative;width:100%}.ads-hidden{display:none}.scoreboard-overlay-button{z-index:20;height:20px;width:20px;border-radius:50%;position:absolute;top:50px;background-color:#efefefde;left:10px;cursor:pointer;transition:all .5s}.scoreboard-overlay-button-open{left:220px}.scoreboard-overlay{z-index:20;height:80%;padding:5px;position:absolute;border-radius:.5rem;background-color:#efefefde;top:10%;left:-1000px;width:200px;opacity:0;transition:all .5s}.scoreboard-overlay-open{left:10px;opacity:1}.multi-feed-playlist-name{text-align:center}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px;width:200px;margin-left:10px;margin-right:10px;flex:0 0 auto}.multi-feed{width:100%;overflow-x:hidden}.multi-feed-video-list{margin:0;padding:0;display:flex;flex-direction:row;height:-moz-fit-content;height:fit-content;overflow-x:auto;width:100%}.multi-feed-player{grid-area:video}.multi-feed-nav-button{cursor:pointer;text-decoration:underline;position:absolute;background-color:#535252bf;height:50px;width:50px;z-index:1;color:#fff}.multi-feed-nav-next{text-align:right;right:2px}.multi-feed-nav-prev{text-align:left;left:2px}.multi-feed-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.multi-feed-player>.custom-player>.custom-player-title{height:50px}.multi-feed-player>.custom-player>.custom-player-description{height:75px}.multi-feed-player>.custom-player>.custom-video{max-height:unset}.carousel-publisher-info{width:200px;margin:auto;display:grid;grid-template-areas:"distributorLogo" "feedName";grid-area:distributorInfo}.carousel-publisher-logo{height:100px;width:100px;margin:auto}.carousel-playlist-name{text-align:center}.video-card-thumbnail{grid-area:videoThumbnail}.video-card-thumbnail-image{width:100%}.video-card-title{grid-area:videoName}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px}.carousel-playlist{display:grid;grid-template-areas:"video" "distributorInfo" "carouselContainer"}.carousel-container{display:grid;grid-area:carouselContainer;grid-template-areas:"nav nav nav" "carousel carousel carousel"}.carousel-player{grid-area:video}.carousel{grid-area:carousel}.carousel-nav{display:grid;grid-area:nav;grid-template-areas:"prev pages next";width:50%;margin:auto}.carousel-nav-next{grid-area:next;text-align:right;cursor:pointer;text-decoration:underline}.carousel-nav-prev{grid-area:prev;text-align:left;cursor:pointer;text-decoration:underline}.carousel-nav-pages{grid-area:pages;text-align:center}.carousel-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.carousel-player>.custom-player>.custom-player-title{height:50px}.carousel-player>.custom-player>.custom-player-description{height:75px}.carousel-player>.custom-player>.custom-video{max-height:unset}.carousel-video-list{height:100%;overflow-y:auto;overflow-x:hidden;display:grid;grid-column-gap:15px;grid-row-gap:15px;grid-template-columns:repeat(1,1fr);grid-template-rows:auto}@media screen and (min-width: 480px){.carousel-video-list{grid-template-columns:repeat(3,1fr)}}.thumbnail-carousel{display:flex;flex-direction:row;width:100%;gap:5px}.thumbnail-carousel-card{cursor:pointer;gap:5px}.vertical-carousel{flex-direction:column;width:-moz-fit-content;width:fit-content}.vertical-carousel-card .thumbnail-carousel-card-image{max-width:480px}.vertical-carousel-card{display:grid;grid-template-areas:"cardImage cardLogo cardTitle" "cardImage cardDescription cardDescription"}.thumbnail-carousel-card-image{max-width:100%;border-radius:10px;grid-area:cardImage;-o-object-fit:fill;object-fit:fill}.thumbnail-carousel-card-title{text-overflow:ellipsis;font-weight:500;font-size:2rem;margin:0;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardTitle}.vertical-carousel-card .thumbnail-carousel-card-title{max-width:unset}.thumbnail-carousel-card-description{text-overflow:ellipsis;white-space:wrap;overflow:hidden;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardDescription}.thumbnail-carousel-card-logo{height:3.5em;width:3.5em;-o-object-fit:contain;object-fit:contain;grid-area:cardLogo}.feed{height:"100%";overflow-y:"scroll";overflow-x:"hidden"}.publisher-info{display:grid;width:100%;grid-template-areas:"playlistDistributorLogo playlistFeedName";grid-area:playlistDistributorInfo}.playlist-name{grid-area:playlistFeedName}.playlist-publisher-logo{max-height:75px;grid-area:playlistDistributorLogo}.playlist-name{margin-top:35px}.playlist-player{grid-area:playlistVideo}.playlist-video-list{overflow-y:scroll;overflow-x:hidden;display:grid;grid-template-columns:1fr;grid-template-rows:auto;grid-area:playlistVideoList}.playlist-card{display:grid;grid-template-areas:"videoThumbnail videoName" "videoThumbnail videoDescription";height:100px;margin-top:5px;grid-column-gap:15px;overflow:hidden;grid-template-columns:2fr 3fr;align-items:start;cursor:pointer}.playlist-card-thumbnail{grid-area:videoThumbnail}.playlist-card-thumbnail-image{height:100px;width:100%}.playlist-card-name{grid-area:videoName}.playlist-card-description{font-size:.75rem;color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;grid-area:videoDescription}.playlist-player>.custom-player{grid-template-rows:3fr 1fr 3fr;grid-template-columns:4fr 1fr;grid-template-areas:"video video" "title logo" "description description";max-height:100%}.playlist-player>.custom-player>.custom-video{max-height:425px}.playlist-player>.custom-player>.custom-player-title{height:50px}.playlist-player>.custom-player>.custom-player-description{height:125px}.playlist{display:flex;flex-direction:column}@media screen and (min-width: 700px){.playlist{display:grid;grid-template-areas:"playlistVideo playlistDistributorInfo" "playlistVideo playlistVideoList" "playlistVideo playlistVideoList";grid-template-columns:3fr 2fr;grid-template-rows:1fr 4fr;grid-column-gap:10px;height:500px}.playlist-player>.custom-player{grid-template-rows:4fr 1fr 3fr}}.shop-overlay-bar{position:absolute;top:0px;padding:5px 0 0;gap:clamp(5px,100vw,12px);z-index:4;display:flex;flex-direction:row;left:0px;right:0px;overflow-x:auto;pointer-events:none;height:clamp(-moz-min-content,4vw,48px);height:clamp(min-content,4vw,48px);overflow-y:hidden}.overlay-bar-chevron{height:-moz-min-content;height:min-content;align-self:center;pointer-events:all;margin-right:-15px;padding:2px;border:unset!important}.overlay-bar-icon-visible{opacity:1;height:-moz-fit-content;height:fit-content;pointer-events:all}.overlay-bar-icon-hidden{opacity:0;height:0px;pointer-events:none}.overlay-bar-icon>img{border:2px solid black;border-radius:50%}.overlay-bar-icon{z-index:2;cursor:pointer;text-align:center;transition:opacity .75s linear;transition:height .2s linear;color:#fff;border-radius:10px;width:clamp(17px,100vw,48px);height:clamp(17px,100vw,48px);font-weight:800}.overlay-bar-icon>img{height:100%;min-width:15px;width:100%;transition:all .2s linear}@media (max-width: 500px){.overlay-bar-icon{width:32px;height:32px}}.ecom-wrapper{position:absolute;display:flex;left:15px;flex-shrink:0;border-radius:.5rem;border-width:0px;border-style:none;border-color:#ddd;background-color:transparent;padding:12px;width:50px;overflow-x:hidden;overflow-y:hidden;transition:all .25s;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);height:72px}.ecom-inner-wrapper{display:flex;align-items:center}.ecom-icon{border:solid;border-width:2px;border-radius:9999px;width:3rem;height:3rem;cursor:pointer}.ecom-name{font-size:1rem;line-height:1.5rem;font-weight:700;color:#444;pointer-events:none}.ecom-subtext{color:#999;font-size:.875rem;line-height:1.25rem;pointer-events:none}.ecom-button{border:none;cursor:pointer;height:1.2rem;width:-moz-max-content;width:max-content;margin-left:.5rem;border-radius:9999px;color:#fff;font-weight:600;font-size:.875rem;line-height:1.25rem;text-decoration:none;text-align:center;padding:.5rem 1rem}.ecom-text-wrapper{padding-left:.75rem}@keyframes ping{0%,60%{transform:scale(1);opacity:1;filter:brightness(1)}70%{transform:scale(1.3);opacity:.75;filter:brightness(2)}to{transform:scale(.75);opacity:.25;filter:brightness(.5)}}.animated-chevron{animation:ping 5s cubic-bezier(0,0,.1,1) infinite}.ecom-chevron{position:absolute;border-radius:100%;bottom:-5px;right:-5px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center}.ecom-img-wrapper{position:relative;display:flex;place-content:center}.ecom-close{position:absolute;border-radius:100%;top:-10px;right:-10px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center;background-color:#afafaf}.ecom-close svg{margin-top:2px}@media (max-width: 500px){.ecom-icon{width:2.5rem;height:2.5rem}.ecom-name,.ecom-subtext{font-size:.8rem}.ecom-button{font-size:.5rem;padding:.1rem .5rem}.ecom-wrapper{padding:5px;width:3rem}.ecom-img-wrapper{width:3rem}}.ecomExpanded{width:-moz-max-content;width:max-content;overflow-y:visible;border-width:2px;height:48px;background-color:#efefefde;overflow-x:visible;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ecom-wrapper-entering,.ecom-wrapper-leaving{transition:all .5s}.ecom-wrapper-enter-from{opacity:0}.ecom-wrapper-enter-to,.ecom-wrapper-leave-from{opacity:1}.ecom-wrapper-leave-to{opacity:0}.ecom-wrapper-top-expanded{top:15px}.ecom-wrapper-top-docked{top:-15px;left:0px}.ecom-wrapper-top-undocked{top:0px}.ecom-wrapper-bottom-expanded-undocked{top:15px}.ecom-wrapper-bottom-docked{bottom:-10px;left:0px}.ecom-wrapper-bottom-controls-docked{bottom:30px}.ecom-wrapper-bottom-controls-undocked{bottom:50px}.ecom-wrapper-bottom-undocked{bottom:30px}.ecom-wrapper-bottom-expanded{bottom:15px}@media (orientation: landscape){.iphone-fs .ecom-wrapper-top-expanded{top:30px}.iphone-fs .ecom-wrapper-top-undocked{top:0px}.iphone-fs .ecom-wrapper-bottom-expanded-undocked{top:15px}.iphone-fs .ecom-wrapper-bottom-controls-undocked{bottom:65px}.iphone-fs .ecom-wrapper-bottom-undocked{bottom:10px}.iphone-fs .ecom-wrapper-bottom-expanded{bottom:20px}}.inAmp.ecom-wrapper-bottom-undocked{bottom:-5px;left:5px}.inAmp.ecom-wrapper-top-undocked{top:-10px;left:0px}.inAmp.ecom-wrapper-bottom-controls-undocked{bottom:30px;left:10px}.pylon-img{height:500px;-o-object-fit:contain;object-fit:contain}.pylon-toggle{color:#fff;pointer-events:all}.pylon-overlay{position:absolute;top:0px;z-index:2;left:10px;right:0px;overflow-x:auto;pointer-events:none;overflow-y:hidden}.stream-ui{display:grid;grid-template-columns:repeat(4,1fr);grid-column-gap:20px;transition:all 1s;opacity:0;position:absolute;bottom:100px;left:10px;right:10px;z-index:3;justify-content:center;transition:opacity 1s}.hidden-stream-item{display:none}.stream-ui-gridded{display:grid;grid-column-gap:0px;bottom:0px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.stream-grid-button{z-index:20;height:20px;width:20px;border-radius:50%;top:50px;left:calc(50% - 10px);cursor:pointer;background-color:#efefefde;position:absolute;opacity:0;transition:opacity 1s}.stream-ui-visible{opacity:1}.special{all:initial}.special>*{all:initial}.special img{max-width:unset!important}.special .ecom-wrapper *,.special .ecom-wrapper,.special .ecom-wrapper img{box-sizing:initial}fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:before,.multiselect__spinner:after{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border-color:#41b883 transparent transparent;border-style:solid;border-width:2px;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:initial;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\\d7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #e8e8e8;cursor:pointer}.multiselect__select{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:5px 5px 0 5px;border-color:#999 transparent transparent transparent;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-radius:5px 5px 0 0;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::-webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}*[dir=rtl] .multiselect{text-align:right}*[dir=rtl] .multiselect__select{right:auto;left:1px}*[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}*[dir=rtl] .multiselect__content{text-align:right}*[dir=rtl] .multiselect__option:after{right:auto;left:0}*[dir=rtl] .multiselect__clear{right:auto;left:12px}*[dir=rtl] .multiselect__spinner{right:auto;left:1px}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}@media (min-width: 1792px){.\\!container{max-width:1792px!important}.container{max-width:1792px}}@media (min-width: 2048px){.\\!container{max-width:2048px!important}.container{max-width:2048px}}@media (min-width: 2304px){.\\!container{max-width:2304px!important}.container{max-width:2304px}}@media (min-width: 2560px){.\\!container{max-width:2560px!important}.container{max-width:2560px}}@media (min-width: 3072px){.\\!container{max-width:3072px!important}.container{max-width:3072px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0px}.inset-y-0{top:0px;bottom:0px}.inset-y-5{top:1.25rem;bottom:1.25rem}.bottom-4{bottom:1rem}.left-0{left:0px}.right-0{right:0px}.right-6{right:1.5rem}.top-0{top:0px}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2000\\]{z-index:2000}.m-0{margin:0!important}.m-1{margin:.25rem}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-40{margin-top:10rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-10{width:2.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.max-w-7xl{max-width:80rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.basis-1\\/3{flex-basis:33.333333%}.-translate-x-4{--tw-translate-x: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.gap-2{gap:.5rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-10{row-gap:2.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(221 221 221 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(187 187 187 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(239 239 239 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(102 102 102 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(85 85 85 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:hsl(120 50% 86% / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:hsl(120 30% 46% / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-0\\.5{padding-top:.125rem}.pt-12{padding-top:3rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-bottom{vertical-align:bottom}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(68 68 68 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:hsl(120 50% 66% / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:hsl(120 30% 46% / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.player{--parone-primary: rgb(7, 102, 82)}video::-webkit-media-text-track-container{display:var(--webkit-text-track-display)}*{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.controls-bar{width:100%;align-items:center;display:flex;justify-content:flex-end;text-align:center;bottom:0px;opacity:0;padding:10px;position:absolute;height:0px;box-sizing:border-box;transition:opacity .4s ease-in-out,height .4s ease-in-out;z-index:4}.controls-bar-showing{opacity:1;height:47px;background:linear-gradient(transparent,rgba(0,0,0,.75))}.controls-bar .control:first-child{margin-left:0;margin-right:auto}video{width:100%}.control svg{width:18px;height:18px;fill:currentColor}.tooltip{cursor:default;text-align:center;border-radius:3px;bottom:100%;line-height:1.3;margin-bottom:20px;opacity:0;padding:5px 7.5px;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2;box-shadow:0 1px 2px #00000026;font-size:13px;pointer-events:all;background-color:#fff;color:#000}.tooltip:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:20px;top:100%;width:0}.control{background:transparent;border:0;border-radius:3px;color:#fff;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;position:relative;transition:all .3s ease;z-index:4;margin-left:2.5px;touch-action:manipulation}input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-progress{background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-moz-range-thumb{background-color:#fff;height:16px;width:16px;border-radius:50%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;margin-top:-6px;background:white;height:16px;width:16px;border-radius:50%;color:#fff}input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-track{background-color:#ffffff40;height:5px;border-radius:.5rem}.volume-bar::-webkit-slider-runnable-track{background-color:#ffffff40;border-radius:.5rem;height:5px;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.volume-bar-container{align-items:center;display:flex;width:clamp(30px,15%,68px);position:relative;padding:7px 5px;margin-left:0}.volume-bar{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:15px;display:block;height:20px;margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;position:relative;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.progress{text-align:center;left:7px;margin-right:13px;position:relative;visibility:visible;pointer-events:all}.progress-container{text-align:center;flex-grow:1;width:-moz-min-content;width:min-content;min-width:20px;padding:0;margin-left:2.5px;cursor:default}progress{color:#ffffff40;margin-left:-7px;margin-right:-7px;width:calc(100% + 13px);min-width:0px;-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:5px;left:0;margin-top:-2.5px;padding:0;position:absolute;top:50%;border-radius:.5rem}progress::-moz-progress-bar{border-radius:100px;min-width:5px;-moz-transition:width .2s ease;transition:width .2s ease;background-color:#ffffff80;border-radius:.5rem}progress::-webkit-progress-bar{border-radius:100px;min-width:5px;-webkit-transition:width .2s ease;transition:width .2s ease;border-radius:.5rem}progress::-webkit-progress-value{background-color:#ffffff80;border-radius:.5rem}.progress>input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;background-image:linear-gradient(to right,#6a7b78 var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input[type=range]::-moz-range-progress{background-color:#6a7b78!important;height:5px}.seekbar-disabled input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:#6a7b78!important;height:5px}.progress input{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;display:block;height:20px;min-width:0;padding:0;transition:box-shadow .3s ease;margin:0 -7px;width:calc(100% + 13px);position:relative;z-index:2;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.controls-clock{font-size:13px;width:40px;padding:7px 10px 7px 5px}.mobile-controls .controls-clock{width:-moz-max-content;width:max-content;padding-bottom:0;padding-top:0}.mobile-controls .time,.mobile-controls .live{position:absolute;top:-10px;right:0px}.control-hovers:hover,.control:active:not(.progress-container,.volume-bar-container){background:var(--parone-primary)}.settings-menu-container button:hover{background:var(--parone-primary)}.settings-menu-container button:hover span{color:#fff}.big-play-button{cursor:pointer;flex-shrink:0;overflow:visible;background:var(--parone-primary);border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:4;width:auto;touch-action:manipulation;display:none;fill:currentColor}.mobile-play-pause{cursor:pointer;flex-shrink:0;overflow:visible;border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;top:50%;transition:.3s;z-index:4;touch-action:manipulation;display:block;fill:currentColor;height:40px;transform:translate(-50%,-50%);width:40px}.big-play-button svg,.mobile-play-pause svg{cursor:pointer;color:#fff;fill:currentColor;display:block;height:18px;pointer-events:none;width:18px;left:2px;position:relative}.ads-container{z-index:3;position:absolute;top:0px}.ads-timer{z-index:4;position:absolute;right:5px;bottom:5px;width:-moz-fit-content;width:fit-content;background:#23282f;border-radius:2px;color:#ffffffbf;font-size:11px;padding:4px 6px;pointer-events:none}.settings-menu-container{animation:plyr-popup .2s ease;background:hsla(0,0%,100%,.85);border-radius:4px;bottom:100%;overscroll-behavior:contain;box-shadow:0 1px 2px #00000026;color:#4a5464;font-size:15px;margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:5;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.settings-menu-container:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:15px;top:100%;width:0}.settings-menu-container-down{transform:translateY(calc(100% + 42px))}.settings-menu-container-down:after{transform:rotate(180deg);top:-8px}.settings-menu{max-height:200px;overflow-y:auto}.settings-menu-container button{white-space:nowrap;background:transparent;border:0;border-radius:3px;cursor:pointer;flex-shrink:0;overflow:visible;position:relative;transition:all .3s ease;z-index:4;touch-action:manipulation;align-items:center;color:#4a5464;display:flex;font-size:13px;padding:6px 28px 6px 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;margin-top:2px}.settings-menu-container button>span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-right:5px;width:100%}.settings-menu{color:#4a5464;font-size:15px;text-align:left;white-space:nowrap;padding:7px}.settings-home>.settings-menu>button:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-left-color:#728197;right:6.5px}.settings-back{padding:5px}.settings-back:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-right-color:#728197;left:6.5px}.settings-back span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-left:15px;width:100%}.badge{white-space:nowrap;font:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-sizing:inherit;background:#4a5464;border-radius:2px;color:#fff;font-size:9px;line-height:1;padding:3px 4px}.captions{position:absolute;height:50px;left:0px;right:0px;bottom:25px;text-align:center}.captions>p{padding:5px;color:#fff;width:-moz-fit-content;width:fit-content;font-size:normal;margin:auto;background-color:#000}.settings-menu-button-radio:before{background:rgba(0,0,0,.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;transition:all .3s ease;width:16px;border-radius:100%}.settings-menu-button-radio:after{background:#fff;border:0;height:6px;left:16px;content:"";position:absolute;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px;border-radius:100%}.settings-menu-button-radio-checked:before{background-color:var(#076652)}.settings-menu-button-radio-checked:after{opacity:1;transform:translateY(-50%) scale(1)}.settings-menu-value{text-align:end;display:inline!important;padding-left:24px}.controls-bar-top{display:none;position:absolute;top:10px;right:5px;height:0px;opacity:0;width:-moz-fit-content;width:fit-content}.mobile-controls-top{position:absolute;top:5px;right:5px;width:-moz-fit-content;width:fit-content;z-index:5}.controls-bar-top-showing{display:none;position:absolute;top:10px;right:5px;height:-moz-fit-content;height:fit-content;transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:1}.controls-bar-top-showing-inAd .control:last-child{margin-right:25%}.controls-bar-top-showing-inAd{pointer-events:none}.controls-bar-top-showing-inAd .control,.inAd .ads-container{pointer-events:all}.ads-container{pointer-events:none}.mobile-controls{display:block;pointer-events:none;position:absolute;top:0px;bottom:0px;right:0px;left:0px;background:linear-gradient(transparent,rgba(0,0,0,.75));transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:0}@media (orientation: landscape){.fs .mobile-controls{height:100dvh}.force-mobile .mobile-controls,.fs-mobile{display:block!important}}.mobile-controls-big-buttons .control svg{width:36px;height:36px}.control{pointer-events:all}.docked .mobile-controls-big-buttons .control svg{width:16px;height:16px}.mobile-controls .controls-bar-showing{height:30px}.docked .mobile-controls .control{padding:6px}.mobile-controls-showing{opacity:1}.mobile-controls-big-buttons{display:grid;grid-template-columns:20% auto 20%;gap:.25rem;height:100%;justify-content:center;align-content:center;justify-items:center}.controls,.big-play-button{display:none}@media (min-width: 540px){.mobile-controls{display:none}.controls{display:flex}.big-play-button{display:block}}.fs-mobile .controls{display:none!important}.fs-close-button{position:absolute;top:8px;left:.5rem;width:18px;height:18px;border-radius:100%;padding:.25rem;cursor:pointer;text-align:center;display:flex;color:#fff;align-content:center;opacity:0}.fs-close-button:hover{background-color:#aaaaaabf}.show-fs-close-button{opacity:1}.focus-within\\:text-gray-600:focus-within{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity))}.hover\\:rounded-md:hover{border-radius:.375rem}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(221 221 221 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:hsl(120 40% 56% / var(--tw-bg-opacity))}.hover\\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:hsl(120 30% 36% / var(--tw-bg-opacity))}.hover\\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:hsl(120 20% 26% / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.hover\\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-green-500:focus{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: hsl(120 40% 56% / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-75{opacity:.75}@media (min-width: 640px){.sm\\:mx-0{margin-left:0!important;margin-right:0!important}.sm\\:mt-0{margin-top:0!important}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:flex{display:flex}.sm\\:hidden{display:none}.sm\\:h-screen{height:100vh}.sm\\:w-5\\/6{width:83.333333%}.sm\\:w-64{width:16rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-1{flex:1 1 0%}.sm\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-start{align-items:flex-start}.sm\\:items-end{align-items:flex-end}.sm\\:items-center{align-items:center}.sm\\:justify-center{justify-content:center}.sm\\:justify-between{justify-content:space-between}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pb-24{padding-bottom:6rem}.sm\\:pb-4{padding-bottom:1rem}.sm\\:pl-0{padding-left:0}.sm\\:pt-16{padding-top:4rem}.sm\\:text-center{text-align:center}.sm\\:align-middle{vertical-align:middle}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\\:flex{display:flex}.md\\:max-w-xl{max-width:36rem}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\\:block{display:block}.lg\\:inline-flex{display:inline-flex}.lg\\:hidden{display:none}.lg\\:max-w-2xl{max-width:42rem}.lg\\:max-w-full{max-width:100%}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\\:max-w-3xl{max-width:48rem}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1536px){.\\32xl\\:block{display:block}.\\32xl\\:max-w-4xl{max-width:56rem}.\\32xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1792px){.\\33xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (min-width: 2304px){.\\35xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}}@media (orientation: landscape){.landscape\\:my-0{margin-top:0!important;margin-bottom:0!important}} `]]]),ub=Ye({__name:"StreamBox",props:{stream:{},modelValue:{}},setup(r){const n=r,c=K(null),p=K(null),{playing:g,adPlaying:v,currentSource:b,setCurrentSource:k}=Tt(Dt("playerReference")),{stream:S}=nl(n),C=oe(()=>{var D,M;return((D=S.value)==null?void 0:D.key)==((M=b.value)==null?void 0:M.key)}),R=oe(()=>C.value?"display: none;":"display: block;");return Kt(()=>{var D;p.value=Wo?null:new $a({autoStartLoad:!1,maxMaxBufferLength:600,maxBufferLength:30,enableWorker:!0,lowLatencyMode:!0,backBufferLength:90,debug:!1,initialLiveManifestSize:1,liveDurationInfinity:!0}),p?(p.value.levels.forEach((M,H)=>{M.height===q&&(p.value.currentLevel=H,p.value.startLoad())}),(D=p.value)==null||D.attachMedia(c.value),p.value.loadSource(n.stream.url),p.value.startLoad()):c.value.src=n.stream.url}),Bt(g,D=>{D?c.value.play():c.value.pause()}),(D,M)=>(V(),Q("div",{class:"stream-item",style:wi(R.value),onClick:M[1]||(M[1]=H=>{var W;return F(k)(F(S),(W=c.value)==null?void 0:W.currentTime)})},[U("video",{class:"stream-item-video",ref_key:"videoPlayer",ref:c,muted:"",onTimeupdate:M[0]||(M[0]=(...H)=>D.onTimeUpdate&&D.onTimeUpdate(...H))},null,544)],4))}}),pb=Ye({__name:"StreamBoxes",setup(r){const n=K(!1),c={default:[{id:2250,name:"Round 1 Highlights | LIV Golf Invitational Bedminster",organization_id:1,is_live:null,key:"p8n8ZktI",distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:218,title:"Round 1 Highlights | LIV Golf Invitational Bedminster",description:`Catch all the highlights from the opening day of LIV Golf Invitational Bedminster. Watch LIV Golf Invitational Bedminster, July 29-31, streaming this week live on our YouTube channel. Learn more about LIV Golf: https://www.livgolf.com/ Facebook: https://www.facebook.com/LIVGolfInv/ Twitter: https://twitter.com/LIVGolfInv`,thumbnail:"https://thumbnails.parone.io/p8n8ZktI.jpg",url:"https://cdn.parone.io/p8n8ZktI/p8n8ZktI.m3u8"},{id:2249,name:"Round 2 Highlights | LIV Golf Invitational Bedminster",key:"hqyaSdBj",is_live:null,organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:217,title:"Round 2 Highlights | LIV Golf Invitational Bedminster",description:`Catch all the highlights from the second round of LIV Golf's Invitational from Bedminster, NJ. Learn more about LIV Golf: https://www.livgolf.com/ Facebook: https://www.facebook.com/LIVGolfInv/ Twitter: https://twitter.com/LIVGolfInv`,thumbnail:"https://thumbnails.parone.io/hqyaSdBj.jpg",url:"https://cdn.parone.io/hqyaSdBj/hqyaSdBj.m3u8"},{id:2218,name:"LIV3",key:"WKAAla7vJz2jQlJAe9wej",is_live:null,organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:178,title:"Round 2 Highlights | LIV Golf Invitational Portland",description:`Catch all the highlights from the second round of LIV Golf's Invitational from Portland, Oregon. Learn more about LIV Golf: https://www.livgolf.com/ Facebook: https://www.facebook.com/LIVGolfInv/ Twitter: https://twitter.com/LIVGolfInv`,thumbnail:"https://thumbnails.parone.io/WKAAla7vJz2jQlJAe9wej.jpg",url:"https://cdn.parone.io/WKAAla7vJz2jQlJAe9wej/WKAAla7vJz2jQlJAe9wej.m3u8"},{id:2217,name:"LIV2",is_live:null,key:"y1XMrgVENqAXrqy5d7vMs",organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:177,title:"Final Round Highlights | LIV Golf Invitational Portland",description:`Catch all the highlights from a thrilling final round of the LIV Golf Invitational Portland, from the Pumpkin Ridge Golf Club. Dustin Johnson and Carlos Ortiz are tied for the lead heading into the last 18. Learn more about LIV Golf: https://www.livgolf.com/ Facebook: https://www.facebook.com/LIVGolfInv/ Twitter: https://twitter.com/LIVGolfInv`,thumbnail:"https://thumbnails.parone.io/y1XMrgVENqAXrqy5d7vMs.jpg",url:"https://cdn.parone.io/y1XMrgVENqAXrqy5d7vMs/y1XMrgVENqAXrqy5d7vMs.m3u8"},{id:2247,name:"Final Round Highlights LIV Golf Invitational Bedminster",is_live:null,key:"COXUWLAf",organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:216,title:"Final Round Highlights LIV Golf Invitational Bedminster",description:`Catch all the highlights from the final day of LIV Golf Invitational Bedminster. Learn more about LIV Golf: https://www.livgolf.com/ Facebook: https://www.facebook.com/LIVGolfInv/ Twitter: https://twitter.com/LIVGolfInv`,thumbnail:"https://thumbnails.parone.io/COXUWLAf.jpg",url:"https://cdn.parone.io/COXUWLAf/COXUWLAf.m3u8"}],pga:[{id:2275,name:"Highlights | Round 4 | BMW Championship | 2022",organization_id:1,is_live:null,key:"4RlrBKGa",distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:232,title:"Highlights | Round 4 | BMW Championship | 2022",description:"Check out the best shots of the day from Round 4 at the 2022 BMW Championship, featuring Patrick Cantlay, Scott Stallings, Scottie Scheffler and Xander Schauffele among others.",thumbnail:"https://thumbnails.parone.io/4RlrBKGa.jpg",url:"https://cdn.parone.io/4RlrBKGa/4RlrBKGa.m3u8"},{id:2276,name:"Highlights | Round 3 | BMW Championship | 2022",is_live:null,key:"u91sx3le",organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:233,title:"Highlights | Round 3 | BMW Championship | 2022",description:"Check out the best shots of the day from Round 3 at the 2022 BMW Championship, featuring Xander Schauffele, Patrick Cantlay, Scottie Scheffler and Jordan Spieth among others.",thumbnail:"https://thumbnails.parone.io/u91sx3le.jpg",url:"https://cdn.parone.io/u91sx3le/u91sx3le.m3u8"},{id:2277,name:"Patrick Cantlay\u2019s winning highlights from BMW Championship | 2022",is_live:null,key:"R97Caz5a",organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:234,title:"Patrick Cantlay\u2019s winning highlights from BMW Championship | 2022",description:"At the 2022 BMW Championship, Patrick Cantlay defended his title and claimed his eighth victory on the PGA TOUR with rounds of 68-68-65-69 to finish at 14-under-par at Wilmington Country Club.",thumbnail:"https://thumbnails.parone.io/R97Caz5a.jpg",url:"https://cdn.parone.io/R97Caz5a/R97Caz5a.m3u8"},{id:2278,name:"Highlights | Round 2 | BMW Championship | 2022",is_live:null,key:"wd82gj9P",organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:235,title:"Highlights | Round 2 | BMW Championship | 2022",description:"Check out the best shots of the day from round 2 of the 2022 BMW Championship, featuring Adam Scott, Scottie Scheffler, Cameron Young, Corey Conners, Jordan Spieth, and others.",thumbnail:"https://thumbnails.parone.io/wd82gj9P.jpg",url:"https://cdn.parone.io/wd82gj9P/wd82gj9P.m3u8"},{id:2279,name:"Highlights | Round 1 | BMW Championship | 2022",is_live:null,organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",key:"xlAdDsny",video_id:236,title:"Highlights | Round 1 | BMW Championship | 2022",description:"Check out the best shots of the day from round 1 of the 2022 BMW Championship, featuring Keegan Bradley, Justin Thomas, Collin Morikawa, Jordan Spieth, Max Homa, Tony Finau, and others.",thumbnail:"https://thumbnails.parone.io/xlAdDsny.jpg",url:"https://cdn.parone.io/xlAdDsny/xlAdDsny.m3u8"}],dpwt:[{name:"Extended Tournament Highlights | 2023 Abu Dhabi HSBC Championship",organization_id:1,is_live:null,key:"0ddbfcbd",distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:232,title:"Extended Tournament Highlights | 2023 Abu Dhabi HSBC Championship",description:"Highlights of the 2023 Abu Dhabi HSBC Championship as Victor Perez won his first Rolex Series title in dramatic fashion at Yas Links Golf Club.",thumbnail:"https://thumbnails.parone.io/hJr9LKMG.jpg",url:"https://cdn.parone.io/hJr9LKMG/hJr9LKMG.m3u8"},{name:"Victor Perez Final Round Highlights | 2023 Abu Dhabi HSBC Championship",is_live:null,key:"tVZVVJr0",organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:233,title:"Victor Perez Final Round Highlights | 2023 Abu Dhabi HSBC Championship",description:"Highlights from Victor Perez' Final Round 66 as he wins the 2023 Abu Dhabi HSBC Championship.",thumbnail:"https://thumbnails.parone.io/tVZVVJr0.jpg",url:"https://cdn.parone.io/tVZVVJr0/tVZVVJr0.m3u8"},{name:"Shane Lowry Round 3 Highlights | 2023 Abu Dhabi HSBC Championship",is_live:null,key:"pUZHonwY",organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:234,title:"Shane Lowry Round 3 Highlights | 2023 Abu Dhabi HSBC Championship",description:"Highlights of Shane Lowry's third round 66 as he bids to become a two-time Abu Dhabi HSBC Championship winner.",thumbnail:"https://thumbnails.parone.io/pUZHonwY.jpg",url:"https://cdn.parone.io/pUZHonwY/pUZHonwY.m3u8"},{name:"Tyrrell Hatton Round 2 Highlights | 2023 Abu Dhabi HSBC Championship",is_live:null,key:"xrClhR6s",organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",video_id:235,title:"Tyrrell Hatton Round 2 Highlights | 2023 Abu Dhabi HSBC Championship",description:"After 18 pars in his opening round, Tyrrell Hatton bounced back with a five under par 67 to make the cut for the weekend at the 2023 Abu Dhabi HSBC Championship.",thumbnail:"https://thumbnails.parone.io/xrClhR6s.jpg",url:"https://cdn.parone.io/xrClhR6s/xrClhR6s.m3u8"},{name:"Tommy Fleetwood Round 1 Highlights | 2023 Abu Dhabi HSBC Championship",is_live:null,organization_id:1,distributor_logo:"https://thumbnails.parone.io/HBdj--mpmgIMdqMiywoFN.jpg",key:"1KQZA4Jl",video_id:236,title:"Tommy Fleetwood Round 1 Highlights | 2023 Abu Dhabi HSBC Championship",description:"The best of Tommy Fleetwood's opening round 68 at the Abu Dhabi HSBC Championship at Yas Links Abu Dhabi.",thumbnail:"https://thumbnails.parone.io/1KQZA4Jl.jpg",url:"https://cdn.parone.io/1KQZA4Jl/1KQZA4Jl.m3u8"}]},p=K([]),{currentContent:g,showControls:v,playing:b}=Tt(Dt("playerReference")),k=K(!1);return Kt(()=>{var C,R;let S="default";((C=g.value)==null?void 0:C.key)=="xlAdDsny"&&(S="pga"),((R=g.value)==null?void 0:R.key)=="0ddbfcbd"&&(S="dpwt"),p.value=c[S]}),(S,C)=>(V(),Q(nt,null,[U("div",{class:wt(["stream-ui",{"stream-ui-visible":F(v),"stream-ui-gridded":n.value}]),onMouseenter:C[0]||(C[0]=R=>k.value=!0),onMouseleave:C[1]||(C[1]=R=>k.value=!1)},[(V(!0),Q(nt,null,ri(p.value,(R,D)=>(V(),ze(ub,{stream:R,key:D},null,8,["stream"]))),128))],34),U("div",{class:wt(["stream-grid-button",{"stream-ui-visible":F(v)}]),onClick:C[2]||(C[2]=R=>n.value=!n.value)},null,2)],64))}}),hb={key:0,"aria-hidden":"true",focusable:"false",viewBox:"0 0 18 18"},fb=[U("path",{d:"M6 1H3c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1zm6 0c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1h-3z"},null,-1)],gb={key:1,"aria-hidden":"true",focusable:"false",viewBox:"0 0 18 18"},mb=[U("path",{d:"M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"},null,-1)],hp=Ye({__name:"BarPlayButton",setup(r){const{playing:n,adPlaying:c,play:p,pause:g}=Tt(Dt("playerReference")),v=()=>n.value||c.value?g():p();return(b,k)=>(V(),Q("button",{type:"button",onClick:v,"aria-label":"Play"},[F(n)||F(c)?(V(),Q("svg",hb,fb)):(V(),Q("svg",gb,mb))]))}}),vb=["disabled"],bb=["value"],fp=100,gp=Ye({__name:"SeekBar",setup(r){const{time:n,buffered:c,enterSeeking:p,currentContent:g,exitSeeking:v,play:b,videoElement:k,pause:S,playing:C}=Tt(Dt("playerReference")),R=K(!1),D=()=>{C.value&&(R.value=!0),p()},M=K(0),H=K(!1),W=K(0),Y=oe(()=>({opacity:H.value?"1":"0",left:W.value+"%"})),ce=oe(()=>{var y;return M.value/fp*(((y=k.value)==null?void 0:y.duration)||1)}),se=()=>{v(ce.value,R.value),R.value=!1};Cr(()=>{var y,re;M.value=(y=g.value)!=null&&y.isLive?100:n.value/(((re=k.value)==null?void 0:re.duration)||1)*fp});const ge=oe(()=>`--value: ${M.value}%`),pe=oe(()=>{var y;return c.value/(((y=k.value)==null?void 0:y.duration)||1)}),_e=K(null),te=oe(()=>{var y;return W.value/100*(((y=k.value)==null?void 0:y.duration)||0)}),xe=Yo(te),de=y=>{var z;const re=(z=_e.value)==null?void 0:z.getBoundingClientRect();W.value=100/re.width*(y.pageX-re.left)};return(y,re)=>{var z,Se,ye,Re,dt,st;return V(),Q("div",{class:"progress-container",onMouseover:re[1]||(re[1]=j=>H.value=!0),onMouseout:re[2]||(re[2]=j=>H.value=!1)},[U("div",{class:wt(["progress",((z=F(g))==null?void 0:z.isLive)||((Se=F(g))==null?void 0:Se.livestream_key)?"seekbar-disabled":""]),ref_key:"progressBar",ref:_e},[dr(U("input",{class:"ios-hack",type:"range",style:wi(ge.value),disabled:((ye=F(g))==null?void 0:ye.isLive)||((Re=F(g))==null?void 0:Re.livestream_key),"onUpdate:modelValue":re[0]||(re[0]=j=>M.value=j),min:"0",max:"100",step:"0.01",autocomplete:"off",role:"slider","aria-label":"Seek","aria-valuemin":"0","aria-valuemax":"0","aria-valuenow":"0",onMousedown:D,onMouseup:se,onKeydown:D,onKeyup:se,onTouchstart:D,onTouchend:se,onMousemove:de},null,44,vb),[[as,M.value]]),U("progress",{value:pe.value,min:"0",max:"1"},null,8,bb),!((dt=F(g))!=null&&dt.isLive)&&!((st=F(g))!=null&&st.livestream_key)?(V(),Q("span",{key:0,class:"tooltip",style:wi(Y.value)},Me(F(xe)),5)):ve("",!0)],2)],32)}}}),wb={key:0,"aria-hidden":"true",focusable:"false",viewBox:"0 0 18 18"},xb=[U("path",{d:"M12.4 12.5l2.1-2.1 2.1 2.1 1.4-1.4L15.9 9 18 6.9l-1.4-1.4-2.1 2.1-2.1-2.1L11 6.9 13.1 9 11 11.1zM3.786 6.008H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601L3.786 6.008z"},null,-1)],yb={key:1,"aria-hidden":"true",focusable:"false",viewBox:"0 0 18 18"},kb=[U("path",{d:"M15.6 3.3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4C15.4 5.9 16 7.4 16 9c0 1.6-.6 3.1-1.8 4.3-.4.4-.4 1 0 1.4.2.2.5.3.7.3.3 0 .5-.1.7-.3C17.1 13.2 18 11.2 18 9s-.9-4.2-2.4-5.7z"},null,-1),U("path",{d:"M11.282 5.282a.909.909 0 0 0 0 1.316c.735.735.995 1.458.995 2.402 0 .936-.425 1.917-.995 2.487a.909.909 0 0 0 0 1.316c.145.145.636.262 1.018.156a.725.725 0 0 0 .298-.156C13.773 11.733 14.13 10.16 14.13 9c0-.17-.002-.34-.011-.51-.053-.992-.319-2.005-1.522-3.208a.909.909 0 0 0-1.316 0zm-7.496.726H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601L3.786 6.008z"},null,-1)],mp=Ye({__name:"VolumeControl",setup(r){const{mute:n,muted:c,unmute:p}=Tt(Dt("playerReference")),g=()=>c.value?p():n();return(v,b)=>(V(),Q("button",{type:"button",onClick:g},[F(c)?(V(),Q("svg",wb,xb)):(V(),Q("svg",yb,kb))]))}}),_b={class:"volume-bar-container"},Tb=Ye({__name:"VolumeBar",setup(r){const{volume:n,muted:c,setVolume:p}=Tt(Dt("playerReference")),g=oe({get(){return c.value?0:n.value},set(b){(!c.value||c.value&&b)&&p(b)}}),v=oe(()=>`--value: ${g.value*100}%`);return(b,k)=>(V(),Q("div",_b,[dr(U("input",{class:"volume-bar",style:wi(v.value),type:"range",min:"0",max:"1",step:"0.05","onUpdate:modelValue":k[0]||(k[0]=S=>g.value=S),autocomplete:"off",role:"slider","aria-label":"Volume","aria-valuemin":"0","aria-valuemax":"1","aria-valuenow":"0","aria-valuetext":"0.0%"},null,4),[[as,g.value]])]))}}),Eb={key:0,viewBox:"0 0 18 18"},Sb=[U("path",{d:"M1 12h3.6l-4 4L2 17.4l4-4V17h2v-7H1zM16 .6l-4 4V1h-2v7h7V6h-3.6l4-4z"},null,-1)],Lb={key:1,viewBox:"0 0 18 18"},Ab=[U("path",{d:"M10 3h3.6l-4 4L11 8.4l4-4V8h2V1h-7zM7 9.6l-4 4V10H1v7h7v-2H4.4l4-4z"},null,-1)],vp=Ye({__name:"FullscreenControl",setup(r){const{fullscreen:n,enterFullscreen:c,exitFullscreen:p}=Tt(Dt("playerReference")),g=()=>{n.value?p():c()};return(v,b)=>(V(),Q("button",{type:"button",onClick:g,"aria-label":"Fullscreen"},[F(n)?(V(),Q("svg",Eb,Sb)):(V(),Q("svg",Lb,Ab))]))}}),Cb={key:0,viewBox:"0 0 18 18"},Rb=[U("path",{d:"M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1H1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69zm7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69z","fill-rule":"evenodd"},null,-1)],Db={key:1,viewBox:"0 0 18 18"},Ib=[U("path",{d:"M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1H1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69zm7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69z","fill-rule":"evenodd","fill-opacity":"0.5"},null,-1)],$l=Ye({__name:"CaptionsControl",setup(r){const{captionsOn:n,enterCaptions:c,exitCaptions:p}=Tt(Dt("playerReference")),g=()=>n.value?p():c();return(v,b)=>(V(),Q("button",{type:"button",onClick:g,"aria-label":"Captions"},[F(n)?(V(),Q("svg",Cb,Rb)):(V(),Q("svg",Db,Ib))]))}}),Pb={key:0,class:"settings-home"},Ob={class:"settings-menu",role:"menu"},Mb=U("span",null,"Captions",-1),Fb={class:"settings-menu-value"},Nb=U("span",null,"Quality",-1),zb={class:"settings-menu-value"},Bb=U("span",null,"Speed",-1),Ub={class:"settings-menu-value"},Vb={key:1,class:"settings-captions"},jb={class:"settings-menu",role:"menu"},Gb=[U("span",{"aria-hidden":"true"},"Captions",-1)],$b=[U("span",null,"Disabled",-1)],Hb=["onClick"],Kb={class:"settings-menu-value"},Yb={class:"badge"},Wb={key:2,class:"settings-quality"},qb={class:"settings-menu",role:"menu"},Xb=[U("span",{"aria-hidden":"true"},"Quality",-1)],Qb=["onClick"],Jb={key:0,class:"settings-menu-value"},Zb=[U("span",{class:"badge"},"HD",-1)],ew={key:3,class:"settings-speed"},tw={class:"settings-menu",role:"menu"},iw=[U("span",{"aria-hidden":"true"},"Speed",-1)],rw=["onClick"],aw=Ye({__name:"SettingsMenu",props:{direction:{}},setup(r){const n=K("home"),{showSettings:c,configuration:p,setCaptionsLanguage:g,availableCaptionLanguages:v,captionsLanguage:b,quality:k,setQuality:S,exitSettings:C,exitCaptions:R,enterCaptions:D,speed:M,setSpeed:H,currentContent:W}=Tt(Dt("playerReference")),Y=oe(()=>{var de,y;return((de=W.value)==null?void 0:de.isLive)||((y=W.value)==null?void 0:y.livestream_key)?Ml:Fl}),ce=oe(()=>{var de;return(de=Ol.find(y=>y.speed==M.value))==null?void 0:de.name}),se=oe(()=>{var de;return(de=Y.value.find(y=>y.quality==k.value))==null?void 0:de.name}),ge=oe(()=>Ha.by639_1[b.value].name),pe=de=>{g(de,!1),C(),D(),n.value="home"},_e=de=>{H(de),C(),n.value="home"},te=de=>{S(de),C(),n.value="home"},xe=de=>{R(),g(de,!0),C()};return(de,y)=>{var re,z;return F(c)?(V(),Q("div",{key:0,class:wt(["settings-menu-container",de.direction=="down"?"settings-menu-container-down":""])},[U("div",null,[n.value=="home"?(V(),Q("div",Pb,[U("div",Ob,[(re=F(v))!=null&&re.length?(V(),Q("button",{key:0,onClick:y[0]||(y[0]=Se=>n.value="captions"),role:"menuitem","aria-haspopup":"true"},[Mb,U("span",Fb,Me(ge.value),1)])):ve("",!0),F(p).isApple?ve("",!0):(V(),Q("button",{key:1,onClick:y[1]||(y[1]=Se=>n.value="quality"),role:"menuitem","aria-haspopup":"true"},[Nb,U("span",zb,Me(se.value),1)])),(z=F(W))!=null&&z.isLive?ve("",!0):(V(),Q("button",{key:2,onClick:y[2]||(y[2]=Se=>n.value="speed"),role:"menuitem","aria-haspopup":"true"},[Bb,U("span",Ub,Me(ce.value),1)]))])])):ve("",!0),n.value=="captions"?(V(),Q("div",Vb,[U("div",jb,[U("button",{class:"settings-back",onClick:y[3]||(y[3]=Se=>n.value="home")},Gb),U("button",{class:wt(["settings-menu-button-radio",{"settings-menu-button-radio-checked":F(b)=="disabled"}]),"aria-checked":"false",onClick:y[4]||(y[4]=Se=>xe("disabled"))},$b,2),(V(!0),Q(nt,null,ri(F(v),(Se,ye)=>(V(),Q("button",{class:wt(["settings-menu-button-radio",{"settings-menu-button-radio-checked":F(b)==Se}]),"aria-checked":"true",onClick:Re=>pe(Se)},[U("span",null,Me(F(Ha.by639_1)[Se.toLowerCase()].name.split(",")[0]),1),U("span",Kb,[U("span",Yb,Me(Se.toUpperCase()),1)])],10,Hb))),256))])])):ve("",!0),n.value=="quality"?(V(),Q("div",Wb,[U("div",qb,[U("button",{class:"settings-back",onClick:y[5]||(y[5]=Se=>n.value="home")},Xb),(V(!0),Q(nt,null,ri(Y.value,(Se,ye)=>(V(),Q("button",{class:wt(["settings-menu-button-radio",{"settings-menu-button-radio-checked":Se.quality==F(k)}]),role:"menuitemradio","aria-checked":"false",onClick:Re=>te(Se.quality)},[U("span",null,Me(Se.name),1),[1080,718].includes(Se.quality)?(V(),Q("span",Jb,Zb)):ve("",!0)],10,Qb))),256))])])):ve("",!0),n.value=="speed"?(V(),Q("div",ew,[U("div",tw,[U("button",{class:"settings-back",onClick:y[6]||(y[6]=Se=>n.value="home")},iw),(V(!0),Q(nt,null,ri(F(Ol),(Se,ye)=>(V(),Q("button",{class:wt(["settings-menu-button-radio",{"settings-menu-button-radio-checked":F(M)==Se.speed}]),role:"menuitemradio","aria-checked":"false",onClick:Re=>_e(Se.speed)},[U("span",null,Me(Se.name),1)],10,rw))),256))])])):ve("",!0)])],2)):ve("",!0)}}}),bp=Ye({__name:"SettingsControl",props:{direction:{}},setup(r){const{showSettings:n,enterSettings:c,exitSettings:p}=Tt(Dt("playerReference")),g=()=>n.value?p():c();return(v,b)=>(V(),Q("button",{type:"button",onClick:Ut(g,["self"]),"aria-label":"Settings"},[(V(),Q("svg",{onClick:Ut(g,["self"]),"aria-hidden":"true",focusable:"false",viewBox:"0 0 18 18"},[U("path",{onClick:Ut(g,["self"]),d:"M16.135 7.784a2 2 0 0 1-1.23-2.969c.322-.536.225-.998-.094-1.316l-.31-.31c-.318-.318-.78-.415-1.316-.094a2 2 0 0 1-2.969-1.23C10.065 1.258 9.669 1 9.219 1h-.438c-.45 0-.845.258-.997.865a2 2 0 0 1-2.969 1.23c-.536-.322-.999-.225-1.317.093l-.31.31c-.318.318-.415.781-.093 1.317a2 2 0 0 1-1.23 2.969C1.26 7.935 1 8.33 1 8.781v.438c0 .45.258.845.865.997a2 2 0 0 1 1.23 2.969c-.322.536-.225.998.094 1.316l.31.31c.319.319.782.415 1.316.094a2 2 0 0 1 2.969 1.23c.151.607.547.865.997.865h.438c.45 0 .845-.258.997-.865a2 2 0 0 1 2.969-1.23c.535.321.997.225 1.316-.094l.31-.31c.318-.318.415-.781.094-1.316a2 2 0 0 1 1.23-2.969c.607-.151.865-.547.865-.997v-.438c0-.451-.26-.846-.865-.997zM9 12a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})])),Le(aw,{direction:v.direction},null,8,["direction"])]))}}),ow=[U("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 18 18"},[U("path",{d:"M16 1H2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3v-2H3V3h12v8h-2v2h3a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z"}),U("path",{d:"M4 17h10l-5-6z"})],-1)],Hl=Ye({__name:"AirplayControl",setup(r){const{enterAirplay:n}=Tt(Dt("playerReference"));return(c,p)=>(V(),Q("button",{type:"button",onClick:p[0]||(p[0]=(...g)=>F(n)&&F(n)(...g))},ow))}}),nw=[U("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 18 18"},[U("path",{d:"M13.293 3.293L7.022 9.564l1.414 1.414 6.271-6.271L17 7V1h-6z"}),U("path",{d:"M13 15H3V5h5V3H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-6h-2v5z"})],-1)],wp=Ye({__name:"PIPControl",setup(r){const{inPip:n,enterPip:c,exitPip:p}=Tt(Dt("playerReference")),g=()=>n.value?p():c();return(v,b)=>(V(),Q("button",{type:"button",onClick:g,"aria-label":"Picture In Picture"},nw))}}),sw=[U("svg",{"aria-hidden":"true",focusable:"false"},[U("path",{d:"M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"})],-1)],lw=Ye({__name:"BigPlayButton",setup(r){const{playing:n,adPlaying:c,inAd:p,play:g,pause:v}=Tt(Dt("playerReference")),b=()=>n.value||c.value?v():g();return oe(()=>!p.value&&!n.value||p.value&&!c.value),(k,S)=>!F(p)&&!F(n)||F(p)&&!F(c)?(V(),Q("button",{key:0,class:"big-play-button",type:"button",onClick:b,"aria-label":"Play"},sw)):ve("",!0)}}),dw={class:"controls"},cw={key:1,class:"live"},uw={key:2,class:"control controls-clock"},pw=[U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[U("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})],-1)],hw=Ye({__name:"Controls",setup(r){const{playing:n,play:c,pause:p,muted:g,volume:v,time:b,inAd:k,currentContent:S,alive:C,showControls:R,showSettings:D,exitFullscreen:M,fullscreen:H,availableCaptionLanguages:W,docked:Y,configuration:ce,seeking:se}=Tt(Dt("playerReference")),ge=Yo(b),pe=K(!1);let _e=null;const te=()=>setTimeout(()=>{pe.value?_e=te():R.value=!1},2e3);return Bt(R,xe=>{xe&&(_e&&clearTimeout(_e),_e=te())}),Bt(pe,()=>{R.value=pe.value}),(xe,de)=>{var y,re,z,Se;return V(),Q("div",dw,[Le(lw),U("div",{class:wt(["controls-bar",{"controls-bar-showing":F(R)||F(D)||F(se),"controls-bar-top-showing-inAd":F(k)}]),onMouseenter:de[0]||(de[0]=ye=>pe.value=!0),onMouseleave:de[1]||(de[1]=ye=>pe.value=!1)},[Le(hp,{class:"control control-hovers done"}),F(k)?ve("",!0):(V(),ze(gp,{key:0,class:"control"})),!F(k)&&((y=F(S))==null?void 0:y.isLive)?(V(),Q("div",cw,[U("span",{class:wt(["live-circle",{"live-circle-online":F(C)}])},null,2),U("span",null,Me(F(C)?"Live":"Offline"),1)])):ve("",!0),!F(k)&&!((re=F(S))!=null&&re.isLive)?(V(),Q("div",uw,Me(F(ge)),1)):ve("",!0),Le(mp,{class:"control control-hovers done volume-control"}),Le(Tb,{class:"control"}),!F(k)&&!F(Y)&&((z=F(W))==null?void 0:z.length)?(V(),ze($l,{key:3,class:"control control-hovers control-bottom"})):ve("",!0),!F(k)&&!F(Y)?(V(),ze(bp,{key:4,class:"control control-hovers"})):ve("",!0),F(ps)?(V(),ze(Hl,{key:5,class:"control control-hovers control-bottom"})):ve("",!0),F(Ka)&&!F(k)?(V(),ze(wp,{key:6,class:"control control-hovers control-bottom"})):ve("",!0),Le(vp,{class:"control control-hovers done"})],34),U("div",{class:wt(["controls-bar-top",{"controls-bar-top-showing":F(R)}]),onMouseenter:de[2]||(de[2]=ye=>pe.value=!0),onMouseleave:de[3]||(de[3]=ye=>pe.value=!1)},[!F(k)&&!F(Y)&&((Se=F(W))==null?void 0:Se.length)?(V(),ze($l,{key:0,class:"control control-hovers"})):ve("",!0),F(ps)&&!F(Y)?(V(),ze(Hl,{key:1,class:"control control-hovers"})):ve("",!0)],34),U("div",{class:wt(["control fs-close-button",{"show-fs-close-button":F(R)&&F(H)}]),onClick:de[4]||(de[4]=(...ye)=>F(M)&&F(M)(...ye))},pw,2)])}}}),fw=[U("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 18 18"},[U("path",{d:"M10.125 1L0 9l10.125 8v-6.171L18 17V1l-7.875 6.171z"})],-1)],gw=Ye({__name:"RewindControl",setup(r){const{rewind:n}=Tt(Dt("playerReference"));return(c,p)=>(V(),Q("button",{type:"button","aria-label":"Rewind",onClick:p[0]||(p[0]=(...g)=>F(n)&&F(n)(...g))},fw))}}),mw=[U("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 18 18"},[U("path",{d:"M7.875 7.171L0 1v16l7.875-6.171V17L18 9 7.875 1z"})],-1)],vw=Ye({__name:"FastForwardControl",setup(r){const{fastForward:n}=Tt(Dt("playerReference"));return(c,p)=>(V(),Q("button",{type:"button","aria-label":"Fast Forward",onClick:p[0]||(p[0]=(...g)=>F(n)&&F(n)(...g))},mw))}}),bw={class:"mobile-controls-big-buttons"},ww={class:"mobile-controls-top"},xw={class:"controls-bar controls-bar-showing"},yw={class:"time"},kw={key:1,class:"control controls-clock"},_w=[U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[U("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})],-1)],Tw=Ye({__name:"MobileControls",props:{position:{}},setup(r){const{playing:n,play:c,pause:p,muted:g,volume:v,time:b,inAd:k,currentContent:S,alive:C,showControls:R,fullscreen:D,showSettings:M,exitFullscreen:H,availableCaptionLanguages:W,docked:Y,configuration:ce,seeking:se}=Tt(Dt("playerReference")),ge=Yo(b),pe=oe(()=>{var y;return((y=S.value)==null?void 0:y.duration)||0}),_e=Yo(pe),te=K(!1);let xe=null;const de=()=>setTimeout(()=>{R.value=!1},2e3);return Bt(R,y=>{y&&(xe&&clearTimeout(xe),xe=de())}),(y,re)=>{var z,Se,ye;return V(),Q("div",{class:wt(["mobile-controls",{"mobile-controls-showing":F(R)||F(M)||F(se),"mobile-controls-top-showing-inAd":F(k)}]),onMouseenter:re[1]||(re[1]=Re=>te.value=!0),onMouseleave:re[2]||(re[2]=Re=>te.value=!1)},[U("div",bw,[Le(gw,{class:"control"}),Le(hp,{class:"control"}),Le(vw,{class:"control"})]),U("div",ww,[Le(mp,{class:"control control-hovers volume-control"}),!F(k)&&!F(Y)&&((z=F(W))==null?void 0:z.length)?(V(),ze($l,{key:0,class:"control control-hovers"})):ve("",!0),!F(k)&&!F(Y)?(V(),ze(bp,{key:1,class:"control control-hovers",direction:"down"})):ve("",!0),F(ps)?(V(),ze(Hl,{key:2,class:"control control-hovers"})):ve("",!0),F(Ka)&&!F(k)?(V(),ze(wp,{key:3,class:"control control-hovers"})):ve("",!0),Le(vp,{class:"control control-hovers"})]),U("div",xw,[F(k)?ve("",!0):(V(),ze(gp,{key:0,class:"control"})),U("div",yw,[!F(k)&&((Se=F(S))==null?void 0:Se.isLive)?(V(),Q("div",{key:0,class:wt(["live",{"live-offline":!F(C)}])},Me(F(C)?"Live":"Offline"),3)):ve("",!0),!F(k)&&!((ye=F(S))!=null&&ye.isLive)?(V(),Q("div",kw,Me(F(ge))+" / "+Me(F(_e)),1)):ve("",!0)])]),U("div",{class:wt(["control fs-close-button",{"show-fs-close-button":F(R)&&F(D)}]),onClick:re[0]||(re[0]=(...Re)=>F(H)&&F(H)(...Re))},_w,2)],34)}}}),Ew={style:{height:"min-content",padding:"5px",position:"absolute","border-radius":".5rem","background-color":"rgb(239 239 239 / 0.87)",top:"10px",right:"10px"}},Sw=[U("p",null,"Birdie on hole 7!",-1)],Lw=Ye({__name:"NotificationOverlay",setup(r){return K(!1),(n,c)=>(V(),Q("div",Ew,Sw))}}),Aw=[U("p",null,"Scoreboard",-1)],Cw=Ye({__name:"ScoreboardOverlay",setup(r){const n=K(!1);return(c,p)=>(V(),Q(nt,null,[U("div",{class:wt(["scoreboard-overlay",n.value?"scoreboard-overlay-open":""])},Aw,2),U("div",{class:wt(["scoreboard-overlay-button",n.value?"scoreboard-overlay-button-open":""]),onClick:p[0]||(p[0]=g=>n.value=!n.value)},null,2)],64))}}),Rw={key:0,class:"captions"},Dw=Ye({__name:"Captions",setup(r){const{activeCaptionCues:n,time:c,captionsOn:p,captionsLanguage:g,docked:v}=Tt(Dt("playerReference"));return(b,k)=>F(p)&&F(n).length&&!F(v)?(V(),Q("div",Rw,[(V(!0),Q(nt,null,ri(F(n).filter(S=>S),(S,C)=>(V(),Q("p",null,Me(S),1))),256))])):ve("",!0)}}),P2="",Iw={class:"multi-feed custom-multi-feed"},Pw={class:"multi-feed-carousel-name custom-multi-feed-carousel-name"},Ow=[U("svg",{class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[U("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"})],-1)],Mw=[U("svg",{class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[U("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"})],-1)],Fw=["onClick"],Nw={class:"video-card-thumbnail custom-video-card-thumbnail",style:{position:"relative"}},zw=["src"],Bw={key:0,class:"live custom-video-card-thumbnail-live"},Uw={key:0,class:"video-card-title custom-video-card-title"},Vw=Ye({__name:"MultiPlaylistCarouselPlaylist",props:{feed:{},defaultlang:{},showCardTitle:{type:Boolean},playerReference:{},env:{},index:{},count:{},shuffle:{},configuration:{}},emits:["select"],setup(r,{emit:n}){const c=K(),p=n,g=r,v={},b=(se,ge)=>{se&&!v[ge]&&(v[ge]=!0,_a(g.playerReference,ne.thumbnail,ge,{}))},k=()=>{var se;(se=c.value)==null||se.scrollBy({left:1e3,behavior:"smooth"})},S=()=>{var se;(se=c.value)==null||se.scrollBy({left:-1e3,behavior:"smooth"})},C=K([]);function R(se){p("select",C.value[se],g.feed)}const D=oe(()=>{var se;return(se=C.value[0])==null?void 0:se.feed_name}),M=oe(()=>Number(g.count)||6),H=K(0);oe(()=>H.value-1);const W=oe(()=>Ir()),Y=oe(()=>M.value>C.value.length?C.value:C.value.slice(0,M.value));async function ce(){const se=new URL(Pl[g.env]);se.search=new URLSearchParams({feed:g.feed,page:H.value,fingerprint:W.value}).toString();const ge=await ia(se.toString()),pe=[...C.value,...ge.filter(xe=>!C.value.map(de=>de.key).includes(xe.key))],_e=pe.filter(xe=>xe.livestream_id),te=pe.filter(xe=>!xe.livestream_id);C.value=[...C.value,..._e,...g.shuffle=="true"?pp(te):te],H.value++,M.value&&C.value.length<M.value&&ge.length==12&&await ce()}return Kt(async()=>{await ce(),(g.configuration.feed&&g.feed==g.configuration.feed||g.index==0)&&p("select",C.value[0],g.feed,!1)}),(se,ge)=>{const pe=$g("intersection-monitor");return V(),Q("div",Iw,[U("div",Pw,Me(D.value),1),U("div",{class:"multi-feed-video-list custom-multi-feed-video-list",ref_key:"container",ref:c},[U("div",{class:"multi-feed-nav-button custom-multi-feed-nav-button multi-feed-nav-prev custom-multi-feed-nav-prev",onClick:S},Ow),U("div",{class:"multi-feed-nav-button custom-multi-feed-nav-button multi-feed-nav-next custom-multi-feed-nav-next",onClick:k},Mw),(V(!0),Q(nt,null,ri(Y.value,(_e,te)=>(V(),Q("div",{class:"video-card custom-video-card",onClick:xe=>R(te),key:_e.key,style:{position:"relative"}},[Le(pe,{onVisible:xe=>b(xe,_e.key)},null,8,["onVisible"]),U("span",Nw,[U("img",{class:"video-card-thumbnail-image custom-video-card-thumbnail-image",src:_e.thumbnail},null,8,zw),_e.isLive?(V(),Q("div",Bw,"Live")):ve("",!0)]),se.showCardTitle?(V(),Q("div",Uw,Me(F(us)(_e)),1)):ve("",!0)],8,Fw))),128))],512)])}}}),F2="",jw={key:1,class:"multi-feed-container custom-multi-feed-container"},Gw=Ye({__name:"MultiPlaylistCarousel.ce",props:{hideFeedName:{type:String,default:"false"},shuffle:{type:String,default:"false"},hideDistributorLogo:{type:String,default:"false"},hideCardTitle:{type:String,default:"false"},feeds:String,count:{type:[String,Number],default:12},...ya},emits:Ga,setup(r,{emit:n}){K(!1),K([]);const c=K(0);K(1),K(ne.thumbnail);const p=K(null),g=K(),v=r,b=K(null),k=K(Ko),S=oe(()=>{var M;return((M=v.feeds)==null?void 0:M.split(",").map(H=>H.trim()))||[]});oe(()=>v.hideDistributorLogo!="true");const C=oe(()=>v.hideCardTitle!="true");oe(()=>v.hideFeedName!="true"),oe(()=>Ir()),oe(()=>v.styles);function R(M,H,W=!0){b.feed=H,k.value=M,W&&p.value.$el.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}const D=n;return Kt(async()=>{b.value=await ka({...v,feed:S.value[0]},D),new Ho(M=>{c.value=M[0].contentRect.width}).observe(g.value)}),(M,H)=>(V(),Q("div",{class:"multi-feed-carousel custom-multi-feed-carousel",ref_key:"container",ref:g},[k.value&&b.value?(V(),ze(F(Ta),{key:0,class:"multi-feed-player custom-multi-feed-player",content:k.value,configuration:b.value,ref_key:"multiFeed",ref:p},null,8,["content","configuration"])):ve("",!0),b.value?(V(),Q("div",jw,[(V(!0),Q(nt,null,ri(S.value,(W,Y)=>(V(),ze(Vw,{defaultlang:M.defaultlang,onSelect:R,key:Y,index:Y,configuration:b.value,showCardTitle:C.value,count:r.count,shuffle:r.shuffle,env:M.env,feed:W},null,8,["defaultlang","index","configuration","showCardTitle","count","shuffle","env","feed"]))),128))])):ve("",!0)],512))}}),$w=Pr(Gw,[["styles",[`.multi-feed-playlist-name{text-align:center}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px;width:200px;margin-left:10px;margin-right:10px;flex:0 0 auto}.multi-feed{width:100%;overflow-x:hidden}.multi-feed-video-list{margin:0;padding:0;display:flex;flex-direction:row;height:-moz-fit-content;height:fit-content;overflow-x:auto;width:100%}.multi-feed-player{grid-area:video}.multi-feed-nav-button{cursor:pointer;text-decoration:underline;position:absolute;background-color:#535252bf;height:50px;width:50px;z-index:1;color:#fff}.multi-feed-nav-next{text-align:right;right:2px}.multi-feed-nav-prev{text-align:left;left:2px}.multi-feed-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.multi-feed-player>.custom-player>.custom-player-title{height:50px}.multi-feed-player>.custom-player>.custom-player-description{height:75px}.multi-feed-player>.custom-player>.custom-video{max-height:unset}.live-badge{background-color:red;border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;padding:10px;position:absolute;top:15px;left:15px;z-index:1000000;font-weight:700}.live-circle{width:10px;height:10px;background-color:gray;display:block;border-radius:100%;margin:auto}.live-circle-online{background-color:red}.live-badge-offline{background-color:#36363640}.live{border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;z-index:1000000;font-weight:500;padding:5px;margin-left:5px;margin-right:10px;display:flex;gap:5px}.gearIcon{width:20px;height:20px;vertical-align:middle}.filter{filter:invert(95%) sepia(100%) saturate(2%) hue-rotate(54deg) brightness(105%) contrast(101%)}.overlay>img{filter:unset}.video{grid-area:video;position:relative}.player-logo{grid-area:logo;width:4rem;height:4rem;margin-top:1rem;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}.player-description{grid-area:description;word-break:normal;overflow-y:auto;margin-top:1rem;max-height:150px}.player-title{grid-area:title;word-break:normal;font-weight:800}.overlay{position:absolute;z-index:1}.info{position:absolute;opacity:.5;background-color:#000;width:100%;height:100%;z-index:2;bottom:0}.player{display:grid;grid-template-areas:"title title title" "video video video" "logo description description";position:relative}.docked{position:fixed;right:10px;width:360px;padding:clamp(5px,1vw,10px);max-width:60%!important;height:-moz-fit-content;height:fit-content;aspect-ratio:16/9;padding-top:0;background-color:#1b1b1b}.docked_logo{height:20px;margin-top:auto}.docked-close-container{color:#fff;text-align:right;padding-bottom:5px;cursor:pointer;font-size:small;display:flex;justify-content:space-between}.docked-close-icon{width:20px;height:20px;position:relative;top:5px}.fs{position:fixed;display:flex;top:0px;bottom:0px;right:0px;left:0px;background-color:#000;z-index:100;place-content:center}@media (orientation: landscape){.iphone-fs video{max-height:100vh}.iphone-fs .control svg{width:30px;height:30px}.iphone-fs .controls-bar-showing{height:80px}.iphone-fs .controls-bar{padding-bottom:20px!important}.iphone-fs .control{padding:12px}.iphone-fs .controls-clock{margin-left:-12px;font-size:17px}.iphone-fs .volume-control{margin-right:-12px}.iphone-fs input[type=range]::-moz-range-thumb{height:24px;width:24px}.iphone-fs input[type=range]::-webkit-slider-thumb{height:24px;width:24px;margin-top:-9px}}.fs .video-container{align-self:center}.video-container{position:relative;width:100%}.ads-hidden{display:none}.scoreboard-overlay-button{z-index:20;height:20px;width:20px;border-radius:50%;position:absolute;top:50px;background-color:#efefefde;left:10px;cursor:pointer;transition:all .5s}.scoreboard-overlay-button-open{left:220px}.scoreboard-overlay{z-index:20;height:80%;padding:5px;position:absolute;border-radius:.5rem;background-color:#efefefde;top:10%;left:-1000px;width:200px;opacity:0;transition:all .5s}.scoreboard-overlay-open{left:10px;opacity:1}.carousel-publisher-info{width:200px;margin:auto;display:grid;grid-template-areas:"distributorLogo" "feedName";grid-area:distributorInfo}.carousel-publisher-logo{height:100px;width:100px;margin:auto}.carousel-playlist-name{text-align:center}.video-card-thumbnail{grid-area:videoThumbnail}.video-card-thumbnail-image{width:100%}.video-card-title{grid-area:videoName}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px}.carousel-playlist{display:grid;grid-template-areas:"video" "distributorInfo" "carouselContainer"}.carousel-container{display:grid;grid-area:carouselContainer;grid-template-areas:"nav nav nav" "carousel carousel carousel"}.carousel-player{grid-area:video}.carousel{grid-area:carousel}.carousel-nav{display:grid;grid-area:nav;grid-template-areas:"prev pages next";width:50%;margin:auto}.carousel-nav-next{grid-area:next;text-align:right;cursor:pointer;text-decoration:underline}.carousel-nav-prev{grid-area:prev;text-align:left;cursor:pointer;text-decoration:underline}.carousel-nav-pages{grid-area:pages;text-align:center}.carousel-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.carousel-player>.custom-player>.custom-player-title{height:50px}.carousel-player>.custom-player>.custom-player-description{height:75px}.carousel-player>.custom-player>.custom-video{max-height:unset}.carousel-video-list{height:100%;overflow-y:auto;overflow-x:hidden;display:grid;grid-column-gap:15px;grid-row-gap:15px;grid-template-columns:repeat(1,1fr);grid-template-rows:auto}@media screen and (min-width: 480px){.carousel-video-list{grid-template-columns:repeat(3,1fr)}}.thumbnail-carousel{display:flex;flex-direction:row;width:100%;gap:5px}.thumbnail-carousel-card{cursor:pointer;gap:5px}.vertical-carousel{flex-direction:column;width:-moz-fit-content;width:fit-content}.vertical-carousel-card .thumbnail-carousel-card-image{max-width:480px}.vertical-carousel-card{display:grid;grid-template-areas:"cardImage cardLogo cardTitle" "cardImage cardDescription cardDescription"}.thumbnail-carousel-card-image{max-width:100%;border-radius:10px;grid-area:cardImage;-o-object-fit:fill;object-fit:fill}.thumbnail-carousel-card-title{text-overflow:ellipsis;font-weight:500;font-size:2rem;margin:0;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardTitle}.vertical-carousel-card .thumbnail-carousel-card-title{max-width:unset}.thumbnail-carousel-card-description{text-overflow:ellipsis;white-space:wrap;overflow:hidden;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardDescription}.thumbnail-carousel-card-logo{height:3.5em;width:3.5em;-o-object-fit:contain;object-fit:contain;grid-area:cardLogo}.feed{height:"100%";overflow-y:"scroll";overflow-x:"hidden"}.publisher-info{display:grid;width:100%;grid-template-areas:"playlistDistributorLogo playlistFeedName";grid-area:playlistDistributorInfo}.playlist-name{grid-area:playlistFeedName}.playlist-publisher-logo{max-height:75px;grid-area:playlistDistributorLogo}.playlist-name{margin-top:35px}.playlist-player{grid-area:playlistVideo}.playlist-video-list{overflow-y:scroll;overflow-x:hidden;display:grid;grid-template-columns:1fr;grid-template-rows:auto;grid-area:playlistVideoList}.playlist-card{display:grid;grid-template-areas:"videoThumbnail videoName" "videoThumbnail videoDescription";height:100px;margin-top:5px;grid-column-gap:15px;overflow:hidden;grid-template-columns:2fr 3fr;align-items:start;cursor:pointer}.playlist-card-thumbnail{grid-area:videoThumbnail}.playlist-card-thumbnail-image{height:100px;width:100%}.playlist-card-name{grid-area:videoName}.playlist-card-description{font-size:.75rem;color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;grid-area:videoDescription}.playlist-player>.custom-player{grid-template-rows:3fr 1fr 3fr;grid-template-columns:4fr 1fr;grid-template-areas:"video video" "title logo" "description description";max-height:100%}.playlist-player>.custom-player>.custom-video{max-height:425px}.playlist-player>.custom-player>.custom-player-title{height:50px}.playlist-player>.custom-player>.custom-player-description{height:125px}.playlist{display:flex;flex-direction:column}@media screen and (min-width: 700px){.playlist{display:grid;grid-template-areas:"playlistVideo playlistDistributorInfo" "playlistVideo playlistVideoList" "playlistVideo playlistVideoList";grid-template-columns:3fr 2fr;grid-template-rows:1fr 4fr;grid-column-gap:10px;height:500px}.playlist-player>.custom-player{grid-template-rows:4fr 1fr 3fr}}.shop-overlay-bar{position:absolute;top:0px;padding:5px 0 0;gap:clamp(5px,100vw,12px);z-index:4;display:flex;flex-direction:row;left:0px;right:0px;overflow-x:auto;pointer-events:none;height:clamp(-moz-min-content,4vw,48px);height:clamp(min-content,4vw,48px);overflow-y:hidden}.overlay-bar-chevron{height:-moz-min-content;height:min-content;align-self:center;pointer-events:all;margin-right:-15px;padding:2px;border:unset!important}.overlay-bar-icon-visible{opacity:1;height:-moz-fit-content;height:fit-content;pointer-events:all}.overlay-bar-icon-hidden{opacity:0;height:0px;pointer-events:none}.overlay-bar-icon>img{border:2px solid black;border-radius:50%}.overlay-bar-icon{z-index:2;cursor:pointer;text-align:center;transition:opacity .75s linear;transition:height .2s linear;color:#fff;border-radius:10px;width:clamp(17px,100vw,48px);height:clamp(17px,100vw,48px);font-weight:800}.overlay-bar-icon>img{height:100%;min-width:15px;width:100%;transition:all .2s linear}@media (max-width: 500px){.overlay-bar-icon{width:32px;height:32px}}.ecom-wrapper{position:absolute;display:flex;left:15px;flex-shrink:0;border-radius:.5rem;border-width:0px;border-style:none;border-color:#ddd;background-color:transparent;padding:12px;width:50px;overflow-x:hidden;overflow-y:hidden;transition:all .25s;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);height:72px}.ecom-inner-wrapper{display:flex;align-items:center}.ecom-icon{border:solid;border-width:2px;border-radius:9999px;width:3rem;height:3rem;cursor:pointer}.ecom-name{font-size:1rem;line-height:1.5rem;font-weight:700;color:#444;pointer-events:none}.ecom-subtext{color:#999;font-size:.875rem;line-height:1.25rem;pointer-events:none}.ecom-button{border:none;cursor:pointer;height:1.2rem;width:-moz-max-content;width:max-content;margin-left:.5rem;border-radius:9999px;color:#fff;font-weight:600;font-size:.875rem;line-height:1.25rem;text-decoration:none;text-align:center;padding:.5rem 1rem}.ecom-text-wrapper{padding-left:.75rem}@keyframes ping{0%,60%{transform:scale(1);opacity:1;filter:brightness(1)}70%{transform:scale(1.3);opacity:.75;filter:brightness(2)}to{transform:scale(.75);opacity:.25;filter:brightness(.5)}}.animated-chevron{animation:ping 5s cubic-bezier(0,0,.1,1) infinite}.ecom-chevron{position:absolute;border-radius:100%;bottom:-5px;right:-5px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center}.ecom-img-wrapper{position:relative;display:flex;place-content:center}.ecom-close{position:absolute;border-radius:100%;top:-10px;right:-10px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center;background-color:#afafaf}.ecom-close svg{margin-top:2px}@media (max-width: 500px){.ecom-icon{width:2.5rem;height:2.5rem}.ecom-name,.ecom-subtext{font-size:.8rem}.ecom-button{font-size:.5rem;padding:.1rem .5rem}.ecom-wrapper{padding:5px;width:3rem}.ecom-img-wrapper{width:3rem}}.ecomExpanded{width:-moz-max-content;width:max-content;overflow-y:visible;border-width:2px;height:48px;background-color:#efefefde;overflow-x:visible;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ecom-wrapper-entering,.ecom-wrapper-leaving{transition:all .5s}.ecom-wrapper-enter-from{opacity:0}.ecom-wrapper-enter-to,.ecom-wrapper-leave-from{opacity:1}.ecom-wrapper-leave-to{opacity:0}.ecom-wrapper-top-expanded{top:15px}.ecom-wrapper-top-docked{top:-15px;left:0px}.ecom-wrapper-top-undocked{top:0px}.ecom-wrapper-bottom-expanded-undocked{top:15px}.ecom-wrapper-bottom-docked{bottom:-10px;left:0px}.ecom-wrapper-bottom-controls-docked{bottom:30px}.ecom-wrapper-bottom-controls-undocked{bottom:50px}.ecom-wrapper-bottom-undocked{bottom:30px}.ecom-wrapper-bottom-expanded{bottom:15px}@media (orientation: landscape){.iphone-fs .ecom-wrapper-top-expanded{top:30px}.iphone-fs .ecom-wrapper-top-undocked{top:0px}.iphone-fs .ecom-wrapper-bottom-expanded-undocked{top:15px}.iphone-fs .ecom-wrapper-bottom-controls-undocked{bottom:65px}.iphone-fs .ecom-wrapper-bottom-undocked{bottom:10px}.iphone-fs .ecom-wrapper-bottom-expanded{bottom:20px}}.inAmp.ecom-wrapper-bottom-undocked{bottom:-5px;left:5px}.inAmp.ecom-wrapper-top-undocked{top:-10px;left:0px}.inAmp.ecom-wrapper-bottom-controls-undocked{bottom:30px;left:10px}.pylon-img{height:500px;-o-object-fit:contain;object-fit:contain}.pylon-toggle{color:#fff;pointer-events:all}.pylon-overlay{position:absolute;top:0px;z-index:2;left:10px;right:0px;overflow-x:auto;pointer-events:none;overflow-y:hidden}.stream-ui{display:grid;grid-template-columns:repeat(4,1fr);grid-column-gap:20px;transition:all 1s;opacity:0;position:absolute;bottom:100px;left:10px;right:10px;z-index:3;justify-content:center;transition:opacity 1s}.hidden-stream-item{display:none}.stream-ui-gridded{display:grid;grid-column-gap:0px;bottom:0px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.stream-grid-button{z-index:20;height:20px;width:20px;border-radius:50%;top:50px;left:calc(50% - 10px);cursor:pointer;background-color:#efefefde;position:absolute;opacity:0;transition:opacity 1s}.stream-ui-visible{opacity:1}.special{all:initial}.special>*{all:initial}.special img{max-width:unset!important}.special .ecom-wrapper *,.special .ecom-wrapper,.special .ecom-wrapper img{box-sizing:initial}fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:before,.multiselect__spinner:after{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border-color:#41b883 transparent transparent;border-style:solid;border-width:2px;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:initial;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\\d7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #e8e8e8;cursor:pointer}.multiselect__select{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:5px 5px 0 5px;border-color:#999 transparent transparent transparent;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-radius:5px 5px 0 0;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::-webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}*[dir=rtl] .multiselect{text-align:right}*[dir=rtl] .multiselect__select{right:auto;left:1px}*[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}*[dir=rtl] .multiselect__content{text-align:right}*[dir=rtl] .multiselect__option:after{right:auto;left:0}*[dir=rtl] .multiselect__clear{right:auto;left:12px}*[dir=rtl] .multiselect__spinner{right:auto;left:1px}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}@media (min-width: 1792px){.\\!container{max-width:1792px!important}.container{max-width:1792px}}@media (min-width: 2048px){.\\!container{max-width:2048px!important}.container{max-width:2048px}}@media (min-width: 2304px){.\\!container{max-width:2304px!important}.container{max-width:2304px}}@media (min-width: 2560px){.\\!container{max-width:2560px!important}.container{max-width:2560px}}@media (min-width: 3072px){.\\!container{max-width:3072px!important}.container{max-width:3072px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0px}.inset-y-0{top:0px;bottom:0px}.inset-y-5{top:1.25rem;bottom:1.25rem}.bottom-4{bottom:1rem}.left-0{left:0px}.right-0{right:0px}.right-6{right:1.5rem}.top-0{top:0px}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2000\\]{z-index:2000}.m-0{margin:0!important}.m-1{margin:.25rem}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-40{margin-top:10rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-10{width:2.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.max-w-7xl{max-width:80rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.basis-1\\/3{flex-basis:33.333333%}.-translate-x-4{--tw-translate-x: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.gap-2{gap:.5rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-10{row-gap:2.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(221 221 221 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(187 187 187 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(239 239 239 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(102 102 102 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(85 85 85 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:hsl(120 50% 86% / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:hsl(120 30% 46% / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-0\\.5{padding-top:.125rem}.pt-12{padding-top:3rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-bottom{vertical-align:bottom}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(68 68 68 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:hsl(120 50% 66% / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:hsl(120 30% 46% / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.player{--parone-primary: rgb(7, 102, 82)}video::-webkit-media-text-track-container{display:var(--webkit-text-track-display)}*{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.controls-bar{width:100%;align-items:center;display:flex;justify-content:flex-end;text-align:center;bottom:0px;opacity:0;padding:10px;position:absolute;height:0px;box-sizing:border-box;transition:opacity .4s ease-in-out,height .4s ease-in-out;z-index:4}.controls-bar-showing{opacity:1;height:47px;background:linear-gradient(transparent,rgba(0,0,0,.75))}.controls-bar .control:first-child{margin-left:0;margin-right:auto}video{width:100%}.control svg{width:18px;height:18px;fill:currentColor}.tooltip{cursor:default;text-align:center;border-radius:3px;bottom:100%;line-height:1.3;margin-bottom:20px;opacity:0;padding:5px 7.5px;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2;box-shadow:0 1px 2px #00000026;font-size:13px;pointer-events:all;background-color:#fff;color:#000}.tooltip:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:20px;top:100%;width:0}.control{background:transparent;border:0;border-radius:3px;color:#fff;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;position:relative;transition:all .3s ease;z-index:4;margin-left:2.5px;touch-action:manipulation}input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-progress{background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-moz-range-thumb{background-color:#fff;height:16px;width:16px;border-radius:50%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;margin-top:-6px;background:white;height:16px;width:16px;border-radius:50%;color:#fff}input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-track{background-color:#ffffff40;height:5px;border-radius:.5rem}.volume-bar::-webkit-slider-runnable-track{background-color:#ffffff40;border-radius:.5rem;height:5px;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.volume-bar-container{align-items:center;display:flex;width:clamp(30px,15%,68px);position:relative;padding:7px 5px;margin-left:0}.volume-bar{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:15px;display:block;height:20px;margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;position:relative;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.progress{text-align:center;left:7px;margin-right:13px;position:relative;visibility:visible;pointer-events:all}.progress-container{text-align:center;flex-grow:1;width:-moz-min-content;width:min-content;min-width:20px;padding:0;margin-left:2.5px;cursor:default}progress{color:#ffffff40;margin-left:-7px;margin-right:-7px;width:calc(100% + 13px);min-width:0px;-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:5px;left:0;margin-top:-2.5px;padding:0;position:absolute;top:50%;border-radius:.5rem}progress::-moz-progress-bar{border-radius:100px;min-width:5px;-moz-transition:width .2s ease;transition:width .2s ease;background-color:#ffffff80;border-radius:.5rem}progress::-webkit-progress-bar{border-radius:100px;min-width:5px;-webkit-transition:width .2s ease;transition:width .2s ease;border-radius:.5rem}progress::-webkit-progress-value{background-color:#ffffff80;border-radius:.5rem}.progress>input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;background-image:linear-gradient(to right,#6a7b78 var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input[type=range]::-moz-range-progress{background-color:#6a7b78!important;height:5px}.seekbar-disabled input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:#6a7b78!important;height:5px}.progress input{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;display:block;height:20px;min-width:0;padding:0;transition:box-shadow .3s ease;margin:0 -7px;width:calc(100% + 13px);position:relative;z-index:2;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.controls-clock{font-size:13px;width:40px;padding:7px 10px 7px 5px}.mobile-controls .controls-clock{width:-moz-max-content;width:max-content;padding-bottom:0;padding-top:0}.mobile-controls .time,.mobile-controls .live{position:absolute;top:-10px;right:0px}.control-hovers:hover,.control:active:not(.progress-container,.volume-bar-container){background:var(--parone-primary)}.settings-menu-container button:hover{background:var(--parone-primary)}.settings-menu-container button:hover span{color:#fff}.big-play-button{cursor:pointer;flex-shrink:0;overflow:visible;background:var(--parone-primary);border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:4;width:auto;touch-action:manipulation;display:none;fill:currentColor}.mobile-play-pause{cursor:pointer;flex-shrink:0;overflow:visible;border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;top:50%;transition:.3s;z-index:4;touch-action:manipulation;display:block;fill:currentColor;height:40px;transform:translate(-50%,-50%);width:40px}.big-play-button svg,.mobile-play-pause svg{cursor:pointer;color:#fff;fill:currentColor;display:block;height:18px;pointer-events:none;width:18px;left:2px;position:relative}.ads-container{z-index:3;position:absolute;top:0px}.ads-timer{z-index:4;position:absolute;right:5px;bottom:5px;width:-moz-fit-content;width:fit-content;background:#23282f;border-radius:2px;color:#ffffffbf;font-size:11px;padding:4px 6px;pointer-events:none}.settings-menu-container{animation:plyr-popup .2s ease;background:hsla(0,0%,100%,.85);border-radius:4px;bottom:100%;overscroll-behavior:contain;box-shadow:0 1px 2px #00000026;color:#4a5464;font-size:15px;margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:5;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.settings-menu-container:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:15px;top:100%;width:0}.settings-menu-container-down{transform:translateY(calc(100% + 42px))}.settings-menu-container-down:after{transform:rotate(180deg);top:-8px}.settings-menu{max-height:200px;overflow-y:auto}.settings-menu-container button{white-space:nowrap;background:transparent;border:0;border-radius:3px;cursor:pointer;flex-shrink:0;overflow:visible;position:relative;transition:all .3s ease;z-index:4;touch-action:manipulation;align-items:center;color:#4a5464;display:flex;font-size:13px;padding:6px 28px 6px 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;margin-top:2px}.settings-menu-container button>span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-right:5px;width:100%}.settings-menu{color:#4a5464;font-size:15px;text-align:left;white-space:nowrap;padding:7px}.settings-home>.settings-menu>button:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-left-color:#728197;right:6.5px}.settings-back{padding:5px}.settings-back:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-right-color:#728197;left:6.5px}.settings-back span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-left:15px;width:100%}.badge{white-space:nowrap;font:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-sizing:inherit;background:#4a5464;border-radius:2px;color:#fff;font-size:9px;line-height:1;padding:3px 4px}.captions{position:absolute;height:50px;left:0px;right:0px;bottom:25px;text-align:center}.captions>p{padding:5px;color:#fff;width:-moz-fit-content;width:fit-content;font-size:normal;margin:auto;background-color:#000}.settings-menu-button-radio:before{background:rgba(0,0,0,.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;transition:all .3s ease;width:16px;border-radius:100%}.settings-menu-button-radio:after{background:#fff;border:0;height:6px;left:16px;content:"";position:absolute;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px;border-radius:100%}.settings-menu-button-radio-checked:before{background-color:var(#076652)}.settings-menu-button-radio-checked:after{opacity:1;transform:translateY(-50%) scale(1)}.settings-menu-value{text-align:end;display:inline!important;padding-left:24px}.controls-bar-top{display:none;position:absolute;top:10px;right:5px;height:0px;opacity:0;width:-moz-fit-content;width:fit-content}.mobile-controls-top{position:absolute;top:5px;right:5px;width:-moz-fit-content;width:fit-content;z-index:5}.controls-bar-top-showing{display:none;position:absolute;top:10px;right:5px;height:-moz-fit-content;height:fit-content;transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:1}.controls-bar-top-showing-inAd .control:last-child{margin-right:25%}.controls-bar-top-showing-inAd{pointer-events:none}.controls-bar-top-showing-inAd .control,.inAd .ads-container{pointer-events:all}.ads-container{pointer-events:none}.mobile-controls{display:block;pointer-events:none;position:absolute;top:0px;bottom:0px;right:0px;left:0px;background:linear-gradient(transparent,rgba(0,0,0,.75));transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:0}@media (orientation: landscape){.fs .mobile-controls{height:100dvh}.force-mobile .mobile-controls,.fs-mobile{display:block!important}}.mobile-controls-big-buttons .control svg{width:36px;height:36px}.control{pointer-events:all}.docked .mobile-controls-big-buttons .control svg{width:16px;height:16px}.mobile-controls .controls-bar-showing{height:30px}.docked .mobile-controls .control{padding:6px}.mobile-controls-showing{opacity:1}.mobile-controls-big-buttons{display:grid;grid-template-columns:20% auto 20%;gap:.25rem;height:100%;justify-content:center;align-content:center;justify-items:center}.controls,.big-play-button{display:none}@media (min-width: 540px){.mobile-controls{display:none}.controls{display:flex}.big-play-button{display:block}}.fs-mobile .controls{display:none!important}.fs-close-button{position:absolute;top:8px;left:.5rem;width:18px;height:18px;border-radius:100%;padding:.25rem;cursor:pointer;text-align:center;display:flex;color:#fff;align-content:center;opacity:0}.fs-close-button:hover{background-color:#aaaaaabf}.show-fs-close-button{opacity:1}.focus-within\\:text-gray-600:focus-within{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity))}.hover\\:rounded-md:hover{border-radius:.375rem}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(221 221 221 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:hsl(120 40% 56% / var(--tw-bg-opacity))}.hover\\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:hsl(120 30% 36% / var(--tw-bg-opacity))}.hover\\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:hsl(120 20% 26% / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.hover\\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-green-500:focus{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: hsl(120 40% 56% / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-75{opacity:.75}@media (min-width: 640px){.sm\\:mx-0{margin-left:0!important;margin-right:0!important}.sm\\:mt-0{margin-top:0!important}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:flex{display:flex}.sm\\:hidden{display:none}.sm\\:h-screen{height:100vh}.sm\\:w-5\\/6{width:83.333333%}.sm\\:w-64{width:16rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-1{flex:1 1 0%}.sm\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-start{align-items:flex-start}.sm\\:items-end{align-items:flex-end}.sm\\:items-center{align-items:center}.sm\\:justify-center{justify-content:center}.sm\\:justify-between{justify-content:space-between}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pb-24{padding-bottom:6rem}.sm\\:pb-4{padding-bottom:1rem}.sm\\:pl-0{padding-left:0}.sm\\:pt-16{padding-top:4rem}.sm\\:text-center{text-align:center}.sm\\:align-middle{vertical-align:middle}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\\:flex{display:flex}.md\\:max-w-xl{max-width:36rem}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\\:block{display:block}.lg\\:inline-flex{display:inline-flex}.lg\\:hidden{display:none}.lg\\:max-w-2xl{max-width:42rem}.lg\\:max-w-full{max-width:100%}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\\:max-w-3xl{max-width:48rem}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1536px){.\\32xl\\:block{display:block}.\\32xl\\:max-w-4xl{max-width:56rem}.\\32xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1792px){.\\33xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (min-width: 2304px){.\\35xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}}@media (orientation: landscape){.landscape\\:my-0{margin-top:0!important;margin-bottom:0!important}} `]]]),xp=async({method:r="GET",url:n="",headers:c={},body:p="",baseURL:g=""})=>{if(!n)return;const v={method:r,headers:{...c}};p&&(v.headers["Content-Type"]="application/json",v.body=p);try{return await(await fetch(g+n,v)).json()}catch(b){console.log(b);return}},Hw=async({feeds:r=[],baseURL:n,availablePrivateCategoryFilters:c,availablePrivateTagFilters:p,availableEventTagFilters:g})=>{const v=(await Promise.all(r.map(b=>xp({url:`${b}-metadata.json`,method:"GET",baseURL:n})))).reduce((b,k)=>({categories:[...b.categories,...k.categories],events:[...b.events,...k.events],tags:[...b.tags,...k.tags]}),{categories:[],events:[],tags:[]});c.value=v.categories,p.value=v.tags,g.value=v.events},yp=async({feeds:r=[],baseURL:n,count:c,campaigns:p})=>{const g=(await Promise.all(r.map(k=>xp({url:`${k}-feed.json`,method:"GET",baseURL:n})))).reduce((k,S)=>{const C=k.map(({content_key:R})=>R);return[...k,...S.videos.filter(R=>!C.includes(R.content_key))]},[]);c.value=g.length;const v=g.filter(k=>k.isLive),b=g.filter(k=>!k.isLive);p.value=[...v,...b]};class Kw{constructor(n,c,p){this.tag=n,this.checked=c,this.label=p}static defaultEmbedOptions(){return[{tag:"hide-title",label:"Hide Title",checked:!0},{tag:"hide-logo",label:"Hide Logo",checked:!0},{tag:"hide-description",label:"Hide Description",checked:!0},{tag:"autoplay",label:"Autoplay",checked:!0}]}}const Yw=r=>r.split("-").filter(Boolean).map((n,c)=>c?n.charAt(0).toUpperCase()+n.slice(1):n).join(""),Kl=r=>r.reduce((n,c)=>[...n,c.checked?`${c.tag}="true" `:""],[]).join(""),Ww=r=>r.reduce((n,c)=>[...n,c.checked?`&${Yw(c.tag)}=true`:""],[]).join(""),qw=(r,n)=>{var c;return((c=r==null?void 0:r.translations)==null?void 0:c.find(p=>p.language==n))||r};function Xw(r,n){return V(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[U("path",{"fill-rule":"evenodd",d:"M5.25 9a6.75 6.75 0 0 1 13.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 0 1-.297 1.206c-1.544.57-3.16.99-4.831 1.243a3.75 3.75 0 1 1-7.48 0 24.585 24.585 0 0 1-4.831-1.244.75.75 0 0 1-.298-1.205A8.217 8.217 0 0 0 5.25 9.75V9Zm4.502 8.9a2.25 2.25 0 1 0 4.496 0 25.057 25.057 0 0 1-4.496 0Z","clip-rule":"evenodd"})])}function Qw(r,n){return V(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[U("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function Jw(r,n){return V(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[U("path",{"fill-rule":"evenodd",d:"M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z","clip-rule":"evenodd"})])}function Zw(r,n){return V(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[U("path",{"fill-rule":"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z","clip-rule":"evenodd"})])}function ex(r,n){return V(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[U("path",{"fill-rule":"evenodd",d:"M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z","clip-rule":"evenodd"})])}function kp(r,n){return V(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[U("path",{"fill-rule":"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function tx(r,n){return V(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[U("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})])}function ix(r,n){return V(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[U("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function rx(r,n){return V(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[U("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function ax(r,n){return V(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[U("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"})])}const ox={class:"flex items-center"},nx=["id","name"],sx=["for"],lx=Ye({__name:"Checkbox",props:{id:{},label:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(r,{emit:n}){const c=r,p=n,g=oe({get(){return c.modelValue},set(v){p("update:modelValue",v)}});return(v,b)=>(V(),Q("div",ox,[dr(U("input",{class:"cursor-pointer h-4 w-4 border-gray-300 rounded text-green-600 focus:ring-green-500",id:v.id,name:v.id,type:"checkbox","onUpdate:modelValue":b[0]||(b[0]=k=>g.value=k)},null,8,nx),[[m0,g.value]]),U("label",{class:"cursor-pointer ml-3 pr-6 text-sm font-medium text-gray-900 whitespace-nowrap",for:v.id},Me(v.label),9,sx)]))}}),dx=Ye({__name:"TButton",props:{variant:{}},emits:["click"],setup(r,{emit:n}){const c=n;return(p,g)=>(V(),Q("button",{class:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white focus:outline-none focus:ring-2 focus:ring-offset-2 sm:w-auto disabled:opacity-50 bg-green-600 hover:bg-green-700 focus:ring-green-500",type:"button",onClick:g[0]||(g[0]=Ut(v=>c("click"),["stop"]))},[mi(p.$slots,"default")]))}}),cx=["placeholder"],ux=Ye({__name:"TInput",props:{modelValue:{},label:{},placeholder:{}},emits:["update:modelValue","blur"],setup(r,{emit:n}){const c=r,p=n,g=oe({get(){return c.modelValue},set(v){p("update:modelValue",v)}});return(v,b)=>dr((V(),Q("input",{class:"mt-1 block w-full rounded-md shadow-sm border-gray-300 focus:outline-none focus:ring-green-500 focus:border-green-500 sm:text-sm",ref:"input",placeholder:v.placeholder,required:"","onUpdate:modelValue":b[0]||(b[0]=k=>g.value=k),onBlur:b[1]||(b[1]=k=>p("blur")),type:"text"},null,40,cx)),[[as,g.value]])}});function Yl(r){return r===0?!1:Array.isArray(r)&&r.length===0?!0:!r}function px(r){return(...n)=>!r(...n)}function hx(r,n){return r===void 0&&(r="undefined"),r===null&&(r="null"),r===!1&&(r="false"),r.toString().toLowerCase().indexOf(n.trim())!==-1}function _p(r,n,c,p){return n?r.filter(g=>hx(p(g,c),n)).sort((g,v)=>p(g,c).length-p(v,c).length):r}function fx(r){return r.filter(n=>!n.$isLabel)}function Wl(r,n){return c=>c.reduce((p,g)=>g[r]&&g[r].length?(p.push({$groupLabel:g[n],$isLabel:!0}),p.concat(g[r])):p,[])}function gx(r,n,c,p,g){return v=>v.map(b=>{if(!b[c])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const k=_p(b[c],r,n,g);return k.length?{[p]:b[p],[c]:k}:[]})}const Tp=(...r)=>n=>r.reduce((c,p)=>p(c),n);var mx={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(r,n){return Yl(r)?"":n?r[n]:r}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const r=this.search||"",n=r.toLowerCase().trim();let c=this.options.concat();return this.internalSearch?c=this.groupValues?this.filterAndFlat(c,n,this.label):_p(c,n,this.label,this.customLabel):c=this.groupValues?Wl(this.groupValues,this.groupLabel)(c):c,c=this.hideSelected?c.filter(px(this.isSelected)):c,this.taggable&&n.length&&!this.isExistingOption(n)&&(this.tagPosition==="bottom"?c.push({isTag:!0,label:r}):c.unshift({isTag:!0,label:r})),c.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(r=>r[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(n=>this.customLabel(n,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(r,n,c){return Tp(gx(n,c,this.groupValues,this.groupLabel,this.customLabel),Wl(this.groupValues,this.groupLabel))(r)},flatAndStrip(r){return Tp(Wl(this.groupValues,this.groupLabel),fx)(r)},updateSearch(r){this.search=r},isExistingOption(r){return this.options?this.optionKeys.indexOf(r)>-1:!1},isSelected(r){const n=this.trackBy?r[this.trackBy]:r;return this.valueKeys.indexOf(n)>-1},isOptionDisabled(r){return!!r.$isDisabled},getOptionLabel(r){if(Yl(r))return"";if(r.isTag)return r.label;if(r.$isLabel)return r.$groupLabel;const n=this.customLabel(r,this.label);return Yl(n)?"":n},select(r,n){if(r.$isLabel&&this.groupSelect){this.selectGroup(r);return}if(!(this.blockKeys.indexOf(n)!==-1||this.disabled||r.$isDisabled||r.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(n==="Tab"&&!this.pointerDirty)){if(r.isTag)this.$emit("tag",r.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(r)){n!=="Tab"&&this.removeElement(r);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([r])):this.$emit("update:modelValue",r),this.$emit("select",r,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(r){const n=this.options.find(c=>c[this.groupLabel]===r.$groupLabel);if(!!n){if(this.wholeGroupSelected(n)){this.$emit("remove",n[this.groupValues],this.id);const c=this.trackBy?n[this.groupValues].map(g=>g[this.trackBy]):n[this.groupValues],p=this.internalValue.filter(g=>c.indexOf(this.trackBy?g[this.trackBy]:g)===-1);this.$emit("update:modelValue",p)}else{let c=n[this.groupValues].filter(p=>!(this.isOptionDisabled(p)||this.isSelected(p)));this.max&&c.splice(this.max-this.internalValue.length),this.$emit("select",c,this.id),this.$emit("update:modelValue",this.internalValue.concat(c))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(r){return r[this.groupValues].every(n=>this.isSelected(n)||this.isOptionDisabled(n))},wholeGroupDisabled(r){return r[this.groupValues].every(this.isOptionDisabled)},removeElement(r,n=!0){if(this.disabled||r.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const c=typeof r=="object"?this.valueKeys.indexOf(r[this.trackBy]):this.valueKeys.indexOf(r);if(this.multiple){const p=this.internalValue.slice(0,c).concat(this.internalValue.slice(c+1));this.$emit("update:modelValue",p)}else this.$emit("update:modelValue",null);this.$emit("remove",r,this.id),this.closeOnSelect&&n&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){!this.isOpen||(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const r=this.$el.getBoundingClientRect().top,n=window.innerHeight-this.$el.getBoundingClientRect().bottom;n>this.maxHeight||n>r||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(n-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(r-40,this.maxHeight))}}},vx={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(r,n){return{"multiselect__option--highlight":r===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(n)}},groupHighlight(r,n){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":n.$isLabel}];const c=this.options.find(p=>p[this.groupLabel]===n.$groupLabel);return c&&!this.wholeGroupDisabled(c)?["multiselect__option--group",{"multiselect__option--highlight":r===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(c)}]:"multiselect__option--disabled"},addPointerElement({key:r}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],r),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){!this.closeOnSelect||(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(r){this.pointer=r,this.pointerDirty=!0}}},hs={name:"vue-multiselect",mixins:[mx,vx],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:r=>`and ${r} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const bx={ref:"tags",class:"multiselect__tags"},wx={class:"multiselect__tags-wrap"},xx={class:"multiselect__spinner"},yx={key:0},kx={class:"multiselect__option"},_x={class:"multiselect__option"},Tx=cr("No elements found. Consider changing the search query."),Ex={class:"multiselect__option"},Sx=cr("List is empty.");function Lx(r,n,c,p,g,v){return V(),ze("div",{tabindex:r.searchable?-1:c.tabindex,class:[{"multiselect--active":r.isOpen,"multiselect--disabled":c.disabled,"multiselect--above":v.isAbove,"multiselect--has-options-group":v.hasOptionGroup},"multiselect"],onFocus:n[14]||(n[14]=b=>r.activate()),onBlur:n[15]||(n[15]=b=>r.searchable?!1:r.deactivate()),onKeydown:[n[16]||(n[16]=fr(Ut(b=>r.pointerForward(),["self","prevent"]),["down"])),n[17]||(n[17]=fr(Ut(b=>r.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:n[18]||(n[18]=fr(Ut(b=>r.addPointerElement(b),["stop","self"]),["enter","tab"])),onKeyup:n[19]||(n[19]=fr(b=>r.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+r.id},[mi(r.$slots,"caret",{toggle:r.toggle},()=>[Le("div",{onMousedown:n[1]||(n[1]=Ut(b=>r.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),mi(r.$slots,"clear",{search:r.search}),Le("div",bx,[mi(r.$slots,"selection",{search:r.search,remove:r.removeElement,values:v.visibleValues,isOpen:r.isOpen},()=>[dr(Le("div",wx,[(V(!0),ze(nt,null,ri(v.visibleValues,(b,k)=>mi(r.$slots,"tag",{option:b,search:r.search,remove:r.removeElement},()=>[(V(),ze("span",{class:"multiselect__tag",key:k},[Le("span",{textContent:Me(r.getOptionLabel(b))},null,8,["textContent"]),Le("i",{tabindex:"1",onKeypress:fr(Ut(S=>r.removeElement(b),["prevent"]),["enter"]),onMousedown:Ut(S=>r.removeElement(b),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[jo,v.visibleValues.length>0]]),r.internalValue&&r.internalValue.length>c.limit?mi(r.$slots,"limit",{key:0},()=>[Le("strong",{class:"multiselect__strong",textContent:Me(c.limitText(r.internalValue.length-c.limit))},null,8,["textContent"])]):ve("v-if",!0)]),Le(Ua,{name:"multiselect__loading"},{default:Fi(()=>[mi(r.$slots,"loading",{},()=>[dr(Le("div",xx,null,512),[[jo,c.loading]])])]),_:3}),r.searchable?(V(),ze("input",{key:0,ref:"search",name:c.name,id:r.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:r.placeholder,style:v.inputStyle,value:r.search,disabled:c.disabled,tabindex:c.tabindex,onInput:n[2]||(n[2]=b=>r.updateSearch(b.target.value)),onFocus:n[3]||(n[3]=Ut(b=>r.activate(),["prevent"])),onBlur:n[4]||(n[4]=Ut(b=>r.deactivate(),["prevent"])),onKeyup:n[5]||(n[5]=fr(b=>r.deactivate(),["esc"])),onKeydown:[n[6]||(n[6]=fr(Ut(b=>r.pointerForward(),["prevent"]),["down"])),n[7]||(n[7]=fr(Ut(b=>r.pointerBackward(),["prevent"]),["up"])),n[9]||(n[9]=fr(Ut(b=>r.removeLastElement(),["stop"]),["delete"]))],onKeypress:n[8]||(n[8]=fr(Ut(b=>r.addPointerElement(b),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+r.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):ve("v-if",!0),v.isSingleLabelVisible?(V(),ze("span",{key:1,class:"multiselect__single",onMousedown:n[10]||(n[10]=Ut((...b)=>r.toggle&&r.toggle(...b),["prevent"]))},[mi(r.$slots,"singleLabel",{option:v.singleValue},()=>[cr(Me(r.currentOptionLabel),1)])],32)):ve("v-if",!0),v.isPlaceholderVisible?(V(),ze("span",{key:2,class:"multiselect__placeholder",onMousedown:n[11]||(n[11]=Ut((...b)=>r.toggle&&r.toggle(...b),["prevent"]))},[mi(r.$slots,"placeholder",{},()=>[cr(Me(r.placeholder),1)])],32)):ve("v-if",!0)],512),Le(Ua,{name:"multiselect"},{default:Fi(()=>[dr(Le("div",{class:"multiselect__content-wrapper",onFocus:n[12]||(n[12]=(...b)=>r.activate&&r.activate(...b)),tabindex:"-1",onMousedown:n[13]||(n[13]=Ut(()=>{},["prevent"])),style:{maxHeight:r.optimizedHeight+"px"},ref:"list"},[Le("ul",{class:"multiselect__content",style:v.contentStyle,role:"listbox",id:"listbox-"+r.id},[mi(r.$slots,"beforeList"),r.multiple&&r.max===r.internalValue.length?(V(),ze("li",yx,[Le("span",kx,[mi(r.$slots,"maxElements",{},()=>[cr("Maximum of "+Me(r.max)+" options selected. First remove a selected option to select another.",1)])])])):ve("v-if",!0),!r.max||r.internalValue.length<r.max?(V(!0),ze(nt,{key:1},ri(r.filteredOptions,(b,k)=>(V(),ze("li",{class:"multiselect__element",key:k,id:r.id+"-"+k,role:b&&(b.$isLabel||b.$isDisabled)?null:"option"},[b&&(b.$isLabel||b.$isDisabled)?ve("v-if",!0):(V(),ze("span",{key:0,class:[r.optionHighlight(k,b),"multiselect__option"],onClick:Ut(S=>r.select(b),["stop"]),onMouseenter:Ut(S=>r.pointerSet(k),["self"]),"data-select":b&&b.isTag?r.tagPlaceholder:v.selectLabelText,"data-selected":v.selectedLabelText,"data-deselect":v.deselectLabelText},[mi(r.$slots,"option",{option:b,search:r.search,index:k},()=>[Le("span",null,Me(r.getOptionLabel(b)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),b&&(b.$isLabel||b.$isDisabled)?(V(),ze("span",{key:1,"data-select":r.groupSelect&&v.selectGroupLabelText,"data-deselect":r.groupSelect&&v.deselectGroupLabelText,class:[r.groupHighlight(k,b),"multiselect__option"],onMouseenter:Ut(S=>r.groupSelect&&r.pointerSet(k),["self"]),onMousedown:Ut(S=>r.selectGroup(b),["prevent"])},[mi(r.$slots,"option",{option:b,search:r.search,index:k},()=>[Le("span",null,Me(r.getOptionLabel(b)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):ve("v-if",!0)],8,["id","role"]))),128)):ve("v-if",!0),dr(Le("li",null,[Le("span",_x,[mi(r.$slots,"noResult",{search:r.search},()=>[Tx])])],512),[[jo,c.showNoResults&&r.filteredOptions.length===0&&r.search&&!c.loading]]),dr(Le("li",null,[Le("span",Ex,[mi(r.$slots,"noOptions",{},()=>[Sx])])],512),[[jo,c.showNoOptions&&(r.options.length===0||v.hasOptionGroup===!0&&r.filteredOptions.length===0)&&!r.search&&!c.loading]]),mi(r.$slots,"afterList")],12,["id"])],36),[[jo,r.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}hs.render=Lx;/*! js-cookie v3.0.5 | MIT */function fs(r){for(var n=1;n<arguments.length;n++){var c=arguments[n];for(var p in c)r[p]=c[p]}return r}var Ax={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ql(r,n){function c(g,v,b){if(!(typeof document>"u")){b=fs({},n,b),typeof b.expires=="number"&&(b.expires=new Date(Date.now()+b.expires*864e5)),b.expires&&(b.expires=b.expires.toUTCString()),g=encodeURIComponent(g).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var k="";for(var S in b)!b[S]||(k+="; "+S,b[S]!==!0&&(k+="="+b[S].split(";")[0]));return document.cookie=g+"="+r.write(v,g)+k}}function p(g){if(!(typeof document>"u"||arguments.length&&!g)){for(var v=document.cookie?document.cookie.split("; "):[],b={},k=0;k<v.length;k++){var S=v[k].split("="),C=S.slice(1).join("=");try{var R=decodeURIComponent(S[0]);if(b[R]=r.read(C,R),g===R)break}catch{}}return g?b[g]:b}}return Object.create({set:c,get:p,remove:function(g,v){c(g,"",fs({},v,{expires:-1}))},withAttributes:function(g){return ql(this.converter,fs({},this.attributes,g))},withConverter:function(g){return ql(fs({},this.converter,g),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(r)}})}var Ep=ql(Ax,{path:"/"});const zi=K(Kw.defaultEmbedOptions()),qa=K(""),Or=K(""),yi=K(""),Sp=K(""),gr=K(""),Xa=K(""),mr=K(0),Xl=K(0),Lp=K(!1),Ql=K([]),pi=K({}),Cx=K([]),qo=K(""),Rx=K([]),vr=K([]),Xo=K([]),br=K([]),ir=K([]),Qo=K([]),Jo=K([]),Ea=K(!1),Ap=K("false"),Cp=K("false"),Qa=oe(()=>{var r;return((r=pi.value)==null?void 0:r.feeds)||[]}),Jl=oe(()=>yi.value||gr.value?pi.value.allow_downloads:Ap.value!="false"),gs=oe(()=>yi.value||gr.value?pi.value.allow_embeds:Cp.value!="false"),Dx=oe(()=>yi.value||gr.value?pi.value.allow_subscribing:!0);oe(()=>yi.value||gr.value?pi.value.allow_livestreams:!0);const Rp=oe(()=>yi.value||gr.value?pi.value.allow_sharing:!0),Ix=oe(()=>yi.value||gr.value?pi.value.show_tags:!1),Px=oe(()=>yi.value||gr.value?pi.value.show_categories:!1),Ox=oe(()=>yi.value||gr.value?pi.value.show_publisher:!1),Mx=oe(()=>yi.value||gr.value?pi.value.show_publish_date:!1),Bi=oe(()=>pi.value.sidebar_filter=="none"?"":pi.value.sidebar_filter),Dp=oe(()=>pi.value.sidebar_order||[]),Ip=oe(()=>{var r;return(r=Qa.value)!=null&&r.length&&Qa.value[0].includes("54-")?54:""}),ms=K(!1),Pp=K(""),Ja=r=>{ms.value=!0,Pp.value=r,setTimeout(()=>ms.value=!1,2e3)},Fx=r=>{Xa.value="en",yi.value=r.mediahubKey,gr.value=r.configurationSource,Ap.value=r.useDownloads,Cp.value=r.useEmbeds,Or.value=r.env,Sp.value=r.tput},aa=oe(()=>`${pi.value.organization_id}-default-external-feed`),Nx={class:"media-hub-filters","aria-labelledby":"filter-heading"},zx=U("h2",{class:"sr-only",id:"filter-heading"},"Filters",-1),Bx={class:"relative bg-white border-b border-gray-200 pb-4"},Ux={class:"max-w-7xl mx-auto px-4 flex items-end justify-between sm:px-6 lg:px-8"},Vx={key:0,class:"flex items-center sidebar-menu sm:hidden"},jx={class:"flex-1 flex media-hub-search mt-2 sm:mt-0"},Gx=U("label",{class:"sr-only",for:"search-field"},"Search",-1),$x={class:"relative w-full text-gray-400 focus-within:text-gray-600"},Hx={class:"absolute inset-y-0 left-0 flex items-center pointer-events-none","aria-hidden":"true"},Kx={key:1,class:"flex hidden items-center media-hub-subscribe md:px-4 md:flex"},Yx={key:2,class:"flex hidden items-end 2xl:block media-hub-embed-options"},Wx=U("p",{class:"group pr-3 justify-center text-sm font-medium text-gray-700 hover:text-gray-900 lg:inline-flex"},"Embed Options",-1),qx={class:"grid grid-cols-2"},Xx={class:"bg-gray-100 py-4 h-fit mx-4 sm:flex sm:flex-row sm:mx-0 sm:justify-center media-hub-metadata"},Qx={key:0,class:"px-4 sm:items-center basis-1/3 media-hub-private-categories"},Jx=U("h3",{class:"mt-4 text-sm pl-3 font-semibold tracking-wide text-gray-500 sm:mt-0 sm:pl-0 sm:text-center sm:pb-4"},"Categories",-1),Zx={key:1,class:"px-4 sm:items-center basis-1/3 media-hub-private-tags"},ey=U("h3",{class:"mt-4 text-sm pl-3 font-semibold tracking-wide text-gray-500 sm:mt-0 sm:pl-0 sm:text-center sm:pb-4"},"Tags",-1),ty={key:2,class:"px-4 sm:items-center basis-1/3 media-hub-event-tags"},iy=U("h3",{class:"mt-4 text-sm pl-3 font-semibold tracking-wide text-gray-500 sm:mt-0 sm:pl-0 sm:text-center sm:pb-4"},"Events",-1),ry=Ye({__name:"VideoGridFilters",emits:["subscribe"],setup(r,{emit:n}){const c=n,p=K(""),g=oe(()=>!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p.value)),v=()=>{c("subscribe",p.value)};Bt(zi,()=>Ep.set("embedOptions",JSON.stringify(zi.value)),{deep:!0}),Kt(()=>{const M=Ep.get("embedOptions");M&&(zi.value=JSON.parse(M))}),oe(()=>"Select Category");const b=oe(()=>Ip.value==54&&!yi.value?"Select Event":"Select Category"),k=oe(()=>"Filter Tags"),S=oe(()=>"Filter Events"),C=oe(()=>{var M;return((M=Xo.value)==null?void 0:M.length)&&Bi.value!="category"}),R=oe(()=>{var M;return((M=Qo.value)==null?void 0:M.length)&&Bi.value!="tag"}),D=oe(()=>{var M;return((M=Jo.value)==null?void 0:M.length)&&Bi.value!="event"});return(M,H)=>(V(),Q("section",Nx,[zx,U("div",Bx,[U("div",Ux,[F(yi)?(V(),Q("div",Vx,[Le(F(rx),{class:"h-6 w-6 m-2 border cursor-pointer",onClick:H[0]||(H[0]=W=>Ea.value=!F(Ea))})])):ve("",!0),U("div",jx,[Gx,U("div",$x,[U("div",Hx,[Le(F(ex),{class:"h-5 w-5","aria-hidden":"true"})]),dr(U("input",{class:"block w-full h-full pl-8 pr-3 py-2 border-transparent text-gray-900 placeholder-gray-500 focus:outline-none focus:ring-0 focus:border-transparent sm:text-md",id:"search-field","onUpdate:modelValue":H[1]||(H[1]=W=>Wt(qa)?qa.value=W:null),name:"search-field",placeholder:"Search Videos",type:"search"},null,512),[[as,F(qa)]])])]),F(Dx)?(V(),Q("div",Kx,[Le(ux,{class:wt(["media-hub-search","focus:outline-none focus:ring-0 focus:border-transparent sm:text-md"]),modelValue:p.value,"onUpdate:modelValue":H[2]||(H[2]=W=>p.value=W),placeholder:"Email Notify",type:"search"},null,8,["modelValue"]),Le(dx,{class:"mt-1 ml-3",onClick:v,disabled:p.value&&g.value},{default:Fi(()=>[Le(F(Xw),{class:"h-5 w-5 cursor-pointer","aria-hidden":"true"})]),_:1},8,["disabled"])])):ve("",!0),F(gs)?(V(),Q("div",Yx,[Wx,U("form",qx,[(V(!0),Q(nt,null,ri(F(zi),(W,Y)=>(V(),ze(lx,{key:F(zi)[Y].tag,label:F(zi)[Y].label,id:`embed-option-${F(zi)[Y].tag}`,modelValue:F(zi)[Y].checked,"onUpdate:modelValue":ce=>F(zi)[Y].checked=ce},null,8,["label","id","modelValue","onUpdate:modelValue"]))),128))])])):ve("",!0)])]),U("div",Xx,[C.value?(V(),Q("div",Qx,[Jx,Le(F(hs),{limit:2,closeOnSelect:!1,placeholder:b.value,multiple:!0,searchable:!0,options:[...new Set(F(Xo).map(({name:W})=>W))],modelValue:F(vr),"onUpdate:modelValue":H[3]||(H[3]=W=>Wt(vr)?vr.value=W:null)},null,8,["placeholder","options","modelValue"])])):ve("",!0),R.value?(V(),Q("div",Zx,[ey,Le(F(hs),{limit:2,closeOnSelect:!1,placeholder:k.value,multiple:!0,searchable:!0,options:[...new Set(F(Qo).map(({name:W})=>W))],modelValue:F(br),"onUpdate:modelValue":H[4]||(H[4]=W=>Wt(br)?br.value=W:null)},null,8,["placeholder","options","modelValue"])])):ve("",!0),D.value?(V(),Q("div",ty,[iy,Le(F(hs),{limit:2,closeOnSelect:!1,placeholder:S.value,multiple:!0,searchable:!0,options:[...new Set(F(Jo).map(({name:W})=>W))],modelValue:F(ir),"onUpdate:modelValue":H[5]||(H[5]=W=>Wt(ir)?ir.value=W:null)},null,8,["placeholder","options","modelValue"])])):ve("",!0)])]))}});function ay(r){typeof queueMicrotask=="function"?queueMicrotask(r):Promise.resolve().then(r).catch(n=>setTimeout(()=>{throw n}))}function Zl(){let r=[],n={addEventListener(c,p,g,v){return c.addEventListener(p,g,v),n.add(()=>c.removeEventListener(p,g,v))},requestAnimationFrame(...c){let p=requestAnimationFrame(...c);n.add(()=>cancelAnimationFrame(p))},nextFrame(...c){n.requestAnimationFrame(()=>{n.requestAnimationFrame(...c)})},setTimeout(...c){let p=setTimeout(...c);n.add(()=>clearTimeout(p))},microTask(...c){let p={current:!0};return ay(()=>{p.current&&c[0]()}),n.add(()=>{p.current=!1})},style(c,p,g){let v=c.style.getPropertyValue(p);return Object.assign(c.style,{[p]:g}),this.add(()=>{Object.assign(c.style,{[p]:v})})},group(c){let p=Zl();return c(p),this.add(()=>p.dispose())},add(c){return r.push(c),()=>{let p=r.indexOf(c);if(p>=0)for(let g of r.splice(p,1))g()}},dispose(){for(let c of r.splice(0))c()}};return n}let oy=Symbol("headlessui.useid"),ny=0;function sy(){return Dt(oy,()=>`${++ny}`)()}function Op(r){var n;if(r==null||r.value==null)return null;let c=(n=r.value.$el)!=null?n:r.value;return c instanceof Node?c:null}function Zo(r,n,...c){if(r in n){let g=n[r];return typeof g=="function"?g(...c):g}let p=new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(g=>`"${g}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(p,Zo),p}var ly=Object.defineProperty,dy=(r,n,c)=>n in r?ly(r,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[n]=c,Mp=(r,n,c)=>(dy(r,typeof n!="symbol"?n+"":n,c),c);class cy{constructor(){Mp(this,"current",this.detect()),Mp(this,"currentId",0)}set(n){this.current!==n&&(this.currentId=0,this.current=n)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let uy=new cy;var Fp=(r=>(r[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r))(Fp||{}),oa=(r=>(r[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r))(oa||{});function Np({visible:r=!0,features:n=0,ourProps:c,theirProps:p,...g}){var v;let b=Bp(p,c),k=Object.assign(g,{props:b});if(r||n&2&&b.static)return ed(k);if(n&1){let S=(v=b.unmount)==null||v?0:1;return Zo(S,{[0](){return null},[1](){return ed({...g,props:{...b,hidden:!0,style:{display:"none"}}})}})}return ed(k)}function ed({props:r,attrs:n,slots:c,slot:p,name:g}){var v,b;let{as:k,...S}=Up(r,["unmount","static"]),C=(v=c.default)==null?void 0:v.call(c,p),R={};if(p){let D=!1,M=[];for(let[H,W]of Object.entries(p))typeof W=="boolean"&&(D=!0),W===!0&&M.push(H);D&&(R["data-headlessui-state"]=M.join(" "))}if(k==="template"){if(C=zp(C!=null?C:[]),Object.keys(S).length>0||Object.keys(n).length>0){let[D,...M]=C!=null?C:[];if(!py(D)||M.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${g} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(S).concat(Object.keys(n)).map(Y=>Y.trim()).filter((Y,ce,se)=>se.indexOf(Y)===ce).sort((Y,ce)=>Y.localeCompare(ce)).map(Y=>` - ${Y}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(Y=>` - ${Y}`).join(` `)].join(` `));let H=Bp((b=D.props)!=null?b:{},S,R),W=Dr(D,H,!0);for(let Y in H)Y.startsWith("on")&&(W.props||(W.props={}),W.props[Y]=H[Y]);return W}return Array.isArray(C)&&C.length===1?C[0]:C}return es(k,Object.assign({},S,R),{default:()=>C})}function zp(r){return r.flatMap(n=>n.type===nt?zp(n.children):[n])}function Bp(...r){if(r.length===0)return{};if(r.length===1)return r[0];let n={},c={};for(let p of r)for(let g in p)g.startsWith("on")&&typeof p[g]=="function"?(c[g]!=null||(c[g]=[]),c[g].push(p[g])):n[g]=p[g];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(c).map(p=>[p,void 0])));for(let p in c)Object.assign(n,{[p](g,...v){let b=c[p];for(let k of b){if(g instanceof Event&&g.defaultPrevented)return;k(g,...v)}}});return n}function Up(r,n=[]){let c=Object.assign({},r);for(let p of n)p in c&&delete c[p];return c}function py(r){return r==null?!1:typeof r.type=="string"||typeof r.type=="object"||typeof r.type=="function"}let Vp=Symbol("Context");var Mr=(r=>(r[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r))(Mr||{});function hy(){return jp()!==null}function jp(){return Dt(Vp,null)}function fy(r){Ba(Vp,r)}function gy(r){let n={called:!1};return(...c)=>{if(!n.called)return n.called=!0,r(...c)}}function td(r,...n){r&&n.length>0&&r.classList.add(...n)}function vs(r,...n){r&&n.length>0&&r.classList.remove(...n)}var id=(r=>(r.Finished="finished",r.Cancelled="cancelled",r))(id||{});function my(r,n){let c=Zl();if(!r)return c.dispose;let{transitionDuration:p,transitionDelay:g}=getComputedStyle(r),[v,b]=[p,g].map(k=>{let[S=0]=k.split(",").filter(Boolean).map(C=>C.includes("ms")?parseFloat(C):parseFloat(C)*1e3).sort((C,R)=>R-C);return S});return v!==0?c.setTimeout(()=>n("finished"),v+b):n("finished"),c.add(()=>n("cancelled")),c.dispose}function Gp(r,n,c,p,g,v){let b=Zl(),k=v!==void 0?gy(v):()=>{};return vs(r,...g),td(r,...n,...c),b.nextFrame(()=>{vs(r,...c),td(r,...p),b.add(my(r,S=>(vs(r,...p,...n),td(r,...g),k(S))))}),b.add(()=>vs(r,...n,...c,...p,...g)),b.add(()=>k("cancelled")),b.dispose}function Sa(r=""){return r.split(/\s+/).filter(n=>n.length>1)}let rd=Symbol("TransitionContext");var vy=(r=>(r.Visible="visible",r.Hidden="hidden",r))(vy||{});function by(){return Dt(rd,null)!==null}function wy(){let r=Dt(rd,null);if(r===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return r}function xy(){let r=Dt(ad,null);if(r===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return r}let ad=Symbol("NestingContext");function bs(r){return"children"in r?bs(r.children):r.value.filter(({state:n})=>n==="visible").length>0}function $p(r){let n=K([]),c=K(!1);Kt(()=>c.value=!0),Kn(()=>c.value=!1);function p(v,b=oa.Hidden){let k=n.value.findIndex(({id:S})=>S===v);k!==-1&&(Zo(b,{[oa.Unmount](){n.value.splice(k,1)},[oa.Hidden](){n.value[k].state="hidden"}}),!bs(n)&&c.value&&(r==null||r()))}function g(v){let b=n.value.find(({id:k})=>k===v);return b?b.state!=="visible"&&(b.state="visible"):n.value.push({id:v,state:"visible"}),()=>p(v,oa.Unmount)}return{children:n,register:g,unregister:p}}let Hp=Fp.RenderStrategy,en=Ye({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(r,{emit:n,attrs:c,slots:p,expose:g}){let v=K(0);function b(){v.value|=Mr.Opening,n("beforeEnter")}function k(){v.value&=~Mr.Opening,n("afterEnter")}function S(){v.value|=Mr.Closing,n("beforeLeave")}function C(){v.value&=~Mr.Closing,n("afterLeave")}if(!by()&&hy())return()=>es(od,{...r,onBeforeEnter:b,onAfterEnter:k,onBeforeLeave:S,onAfterLeave:C},p);let R=K(null),D=oe(()=>r.unmount?oa.Unmount:oa.Hidden);g({el:R,$el:R});let{show:M,appear:H}=wy(),{register:W,unregister:Y}=xy(),ce=K(M.value?"visible":"hidden"),se={value:!0},ge=sy(),pe={value:!1},_e=$p(()=>{!pe.value&&ce.value!=="hidden"&&(ce.value="hidden",Y(ge),C())});Kt(()=>{let Re=W(ge);Kn(Re)}),Cr(()=>{if(D.value===oa.Hidden&&ge){if(M.value&&ce.value!=="visible"){ce.value="visible";return}Zo(ce.value,{hidden:()=>Y(ge),visible:()=>W(ge)})}});let te=Sa(r.enter),xe=Sa(r.enterFrom),de=Sa(r.enterTo),y=Sa(r.entered),re=Sa(r.leave),z=Sa(r.leaveFrom),Se=Sa(r.leaveTo);Kt(()=>{Cr(()=>{if(ce.value==="visible"){let Re=Op(R);if(Re instanceof Comment&&Re.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function ye(Re){let dt=se.value&&!H.value,st=Op(R);!st||!(st instanceof HTMLElement)||dt||(pe.value=!0,M.value&&b(),M.value||S(),Re(M.value?Gp(st,te,xe,de,y,j=>{pe.value=!1,j===id.Finished&&k()}):Gp(st,re,z,Se,y,j=>{pe.value=!1,j===id.Finished&&(bs(_e)||(ce.value="hidden",Y(ge),C()))})))}return Kt(()=>{Bt([M],(Re,dt,st)=>{ye(st),se.value=!1},{immediate:!0})}),Ba(ad,_e),fy(oe(()=>Zo(ce.value,{visible:Mr.Open,hidden:Mr.Closed})|v.value)),()=>{let{appear:Re,show:dt,enter:st,enterFrom:j,enterTo:he,entered:qe,leave:Pe,leaveFrom:qt,leaveTo:Mt,...kt}=r,_t={ref:R},Ft={...kt,...H.value&&M.value&&uy.isServer?{class:wt([c.class,kt.class,...te,...xe])}:{}};return Np({theirProps:Ft,ourProps:_t,slot:{},slots:p,attrs:c,features:Hp,visible:ce.value==="visible",name:"TransitionChild"})}}}),yy=en,od=Ye({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(r,{emit:n,attrs:c,slots:p}){let g=jp(),v=oe(()=>r.show===null&&g!==null?(g.value&Mr.Open)===Mr.Open:r.show);Cr(()=>{if(![!0,!1].includes(v.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let b=K(v.value?"visible":"hidden"),k=$p(()=>{b.value="hidden"}),S=K(!0),C={show:v,appear:oe(()=>r.appear||!S.value)};return Kt(()=>{Cr(()=>{S.value=!1,v.value?b.value="visible":bs(k)||(b.value="hidden")})}),Ba(ad,k),Ba(rd,C),()=>{let R=Up(r,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),D={unmount:r.unmount};return Np({ourProps:{...D,as:"template"},theirProps:{},slot:{},slots:{...p,default:()=>[es(yy,{onBeforeEnter:()=>n("beforeEnter"),onAfterEnter:()=>n("afterEnter"),onBeforeLeave:()=>n("beforeLeave"),onAfterLeave:()=>n("afterLeave"),...c,...D,...R},p.default)]},attrs:{},features:Hp,visible:b.value==="visible",name:"Transition"})}}});const Kp=Ye({__name:"SidebarItem",props:{item:{},selected:{type:Boolean}},emits:["click"],setup(r,{emit:n}){const c=r,p=n,g=K(null);return Bt(g,v=>{v&&(v.oncontextmenu=b=>{b.preventDefault();const k=new URL(window.location.href);k.searchParams.set("target",c.item.id);const S=k.href;navigator.clipboard.writeText(S),Ja("Copied direct link!")})}),(v,b)=>(V(),Q("div",{class:wt(["rounded-lg p-4 cursor-pointer hover:bg-green-500 sidebar-item",v.selected?"bg-green-200 selected":""]),ref_key:"el",ref:g,onClick:b[0]||(b[0]=k=>p("click"))},Me(v.item.name),3))}}),ky=U("span",{class:"sr-only"},"Close",-1),_y=Ye({__name:"Close",emits:["close"],setup(r,{emit:n}){const c=n;return(p,g)=>(V(),Q("button",{class:"absolute ml-1 flex items-center justify-center h-10 w-10 rounded-full cursor-pointer hover:text-gray-500 focus:outline-none close",onClick:g[0]||(g[0]=v=>c("close"))},[ky,Le(F(kp),{class:"h-6 w-6 text-black","aria-hidden":"true"})]))}}),Ty=U("div",{class:"fixed inset-0 bg-gray-600 bg-opacity-75"},null,-1),Ey={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white sidebar"},Sy={class:"absolute top-0 right-0 pt-2 sidebar-close"},Ly={class:"text-xl sidebar-title"},Ay={class:"flex flex-col gap-2 px-4 overflow-y-auto sidebar-list",style:{height:"calc(100dvh - 4rem)"}},Cy={class:"hidden lg:block sm:w-64 sidebar"},Ry={class:"text-xl sidebar-title"},Dy={class:"flex flex-col gap-2 overflow-y-auto sidebar-list"},Iy=Ye({__name:"Sidebar",setup(r){const n=oe(()=>{if(Bi.value=="event")return Jo.value;if(Bi.value=="feed")return[];if(Bi.value=="category")return Xo.value;if(Bi.value=="tag")return Qo.value}),c=oe(()=>[...Dp.value.map(k=>{var S;return(S=n.value)==null?void 0:S.find(C=>C.name==k)}).filter(k=>k),...(n.value||[]).filter(k=>!Dp.value.includes(k.name))]),p=oe({get(){switch(Bi.value){case"none":return[];case"feed":return[];case"event":return ir.value;case"tag":return br.value;case"category":return vr.value}return[]},set(k){switch(Bi.value){case"none":break;case"feed":break;case"event":ir.value=k;break;case"tag":br.value=k;break;case"category":vr.value=k;break}}});Bt(c,()=>{var C;const S=new URL(window.location).searchParams.get("target");if(S){const R=(C=n.value)==null?void 0:C.find(D=>D.id==parseInt(S));R&&Do(()=>g(R.name))}});const g=k=>{p.value.includes(k)||k=="All"&&b.value?k=="All"?p.value=[]:p.value=[]:k=="All"?p.value=[]:p.value=[k],Ea.value=!1},v=oe(()=>{switch(Bi.value){case"none":return"";case"event":return"Event";case"tag":return"Tag";case"feed":return"Feed";case"category":return"Category"}}),b=oe(()=>{if(!p.value.length)return!0;switch(Bi.value){case"none":return!1;case"event":return Jo.value.every(k=>p.value.includes(k));case"tag":return Qo.value.every(k=>p.value.includes(k));case"feed":return!1;case"category":return Xo.value.every(k=>p.value.includes(k))}return!1});return(k,S)=>(V(),Q(nt,null,[Le(F(od),{as:"template",show:F(Ea)},{default:Fi(()=>[U("div",{class:"fixed inset-0 flex z-40 sm:hidden",as:"div",onClose:S[1]||(S[1]=C=>Ea.value=!1)},[Le(F(en),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:Fi(()=>[Ty]),_:1}),Le(F(en),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:Fi(()=>[U("div",Ey,[Le(F(en),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:Fi(()=>[U("div",null,[U("div",Sy,[F(Ea)?(V(),ze(_y,{key:0,class:"lg:hidden",onClick:S[0]||(S[0]=C=>Ea.value=!1)})):ve("",!0)]),U("p",Ly,"Select "+Me(v.value),1),U("div",Ay,[(V(!0),Q(nt,null,ri([{name:"All",id:0},...c.value],C=>(V(),ze(Kp,{item:C,selected:p.value.includes(C.name)||C.name=="All"&&b.value,onClick:R=>g(C.name)},null,8,["item","selected","onClick"]))),256))])])]),_:1})])]),_:1})],32)]),_:1},8,["show"]),U("div",Cy,[U("p",Ry,"Select "+Me(v.value),1),U("div",Dy,[(V(!0),Q(nt,null,ri([{name:"All",id:0},...c.value],C=>(V(),ze(Kp,{item:C,selected:p.value.includes(C.name)||C.name=="All"&&b.value,onClick:R=>g(C.name)},null,8,["item","selected","onClick"]))),256))])])],64))}}),Py=U("span",{class:"sr-only"},"Close",-1),Yp=Ye({__name:"CloseButton",emits:["close"],setup(r,{emit:n}){const c=n;return(p,g)=>(V(),Q("button",{class:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none notification-close-button",onClick:g[0]||(g[0]=v=>c("close"))},[Py,Le(F(kp),{class:"h-6 w-6","aria-hidden":"true"})]))}}),Oy={class:"fixed z-10 inset-0 overflow-y-auto",as:"div"},My={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Fy=U("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"\u200B",-1),Ny={class:"hidden absolute top-0 right-0 pt-4 pr-4 sm:block"},zy={class:"sm:flex sm:items-start media-hub-modal-content"},By=Ye({__name:"Modal",props:["show"],emits:["close"],setup(r,{emit:n}){const c=n,p=K(!1);return(g,v)=>(V(),ze(F(od),{as:"template",show:r.show},{default:Fi(()=>[U("div",Oy,[U("div",My,[U("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity",onClick:v[3]||(v[3]=Ut(()=>c("close"),["self"]))},[Fy,Le(F(en),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:Fi(()=>[U("div",{class:"relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all mt-40 my-8 landscape:my-0 sm:align-middle sm:w-full sm:p-6 sm:max-w-lg md:max-w-xl lg:max-w-2xl xl:max-w-3xl 2xl:max-w-4xl media-hub-modal-wrapper",onMouseenter:v[1]||(v[1]=()=>p.value=!0),onMouseleave:v[2]||(v[2]=()=>p.value=!1)},[U("div",Ny,[Le(Yp,{onClose:v[0]||(v[0]=b=>c("close"))})]),U("div",zy,[mi(g.$slots,"default")])],32)]),_:3})])])])]),_:3},8,["show"]))}}),Uy={class:"mt-2 special"},Vy={class:"mt-4 flex"},jy=["src"],Gy=Ye({__name:"VideoPreviewCard",props:{campaign:{}},setup(r){const n=r,c=(p,g)=>{navigator.clipboard.writeText(p),Ja(g)};return n.campaign,(p,g)=>{var v,b,k;return V(),Q(nt,null,[U("div",{class:"cursor-pointer text-lg leading-6 font-medium text-gray-900",as:"h3",onClick:g[0]||(g[0]=S=>{var C;return c((C=n.campaign)==null?void 0:C.title,"Title Copied!")})},Me((v=n.campaign)==null?void 0:v.title),1),U("div",Uy,[p.campaign.content_key?(V(),ze(F(cp),{key:0,autoplay:"true",tput:F(Sp),env:F(Or),feed:F(aa),contentKey:p.campaign.content_key,"hide-logo":"true","hide-title":"true","hide-description":"true"},null,8,["tput","env","feed","contentKey"])):ve("",!0)]),U("div",Vy,[U("img",{class:"aspect-square h-16 w-16",src:(b=p.campaign)==null?void 0:b.org_logo},null,8,jy),U("p",{class:"cursor-pointer ml-4 text-sm text-gray-500",onClick:g[1]||(g[1]=S=>{var C;return c((C=n.campaign)==null?void 0:C.description,"Description Copied!")})},Me((k=n.campaign)==null?void 0:k.description),1)])],64)}}}),$y=["title"],Hy={key:3,class:"ml-3"},Za=Ye({__name:"CopyVideoEmbedButton",props:{campaign:{},mode:{},showMode:{type:Boolean}},setup(r){const n=r,c=K(""),p={wordpress:["border-gray-300","text-gray-700","bg-white","hover:bg-gray-200 focus:outline-none"],drupal:["border-gray-300","text-gray-700","bg-white","hover:bg-gray-200 focus:outline-none"],html:["border-transparent","text-white","bg-green-600","hover:bg-green-800 focus:outline-none"],download:["border-transparent","text-white","bg-green-600","hover:bg-green-800 focus:outline-none"]},g={wordpress:"Successfully copied Wordpress shortcode!",drupal:"Successfully copied Drupal shortcode!",html:"Successfully copied HTML string!",embed:"Successfully copied embed string!"},v=oe(()=>{var S,C,R,D;return{wordpress:`[parone_video_player ${Kl(zi.value)} content-key="${(S=n.campaign)==null?void 0:S.content_key}" stylesheet="${c}" defaultlang="${Xa.value}" env="${Or.value||"prod"}" feed="${aa.value}"/]`,drupal:`<parone-video-block ${Kl(zi.value)} content-key="${(C=n.campaign)==null?void 0:C.content_key}" stylesheet="${c}" defaultlang="${Xa.value}" env="${Or.value||"prod"}" feed="${aa.value}"></parone-video-block>`,html:`<parone-video-block ${Kl(zi.value)} content-key="${(R=n.campaign)==null?void 0:R.content_key}" stylesheet="${c}" defaultlang="${Xa.value}" env="${Or.value||"prod"}" feed="${aa.value}"></parone-video-block>`,embed:` <iframe height="480px" width="720px" allow="fullscreen" allowfullscreen="true" style="min-height:100%;max-width:100%;border:unset;overflow:hidden;" src="https://sdk-iframe.parone.io/index.html?elementType=block&contentKey=${(D=n.campaign)==null?void 0:D.content_key}&defaultlang=${Xa.value}&env=${Or.value||"prod"}&feed=${aa.value}${Ww(zi.value)}"></iframe>`,share:""}}),b=async()=>{var S,C,R,D,M,H;if(n.mode.toLowerCase()=="download"){const W=document.createElement("a");W.href=`${V0[n.env||"prod"]}?key=${(S=n.campaign)==null?void 0:S.content_key}`,W.target="_blank",W.setAttribute("download",(C=n.campaign)==null?void 0:C.content_key),document.body.appendChild(W),W.click(),Ja("Video Downloading"),Gl(ne.mediahub_downloaded,(R=n.campaign)==null?void 0:R.content_key,yi.value,aa.value,Or.value||"prod");return}if(n.mode.toLowerCase()=="share"){const W=new URL(window.location.href);W.searchParams.set("targetCK",(D=n.campaign)==null?void 0:D.content_key);const Y=W.href;navigator.clipboard.writeText(Y),Ja("Copied direct link!"),Gl(ne.mediahub_shared,(M=n.campaign)==null?void 0:M.content_key,yi.value,aa.value,Or.value||"prod");return}Gl(ne.mediahub_embedded,(H=n.campaign)==null?void 0:H.content_key,yi.value,aa.value,Or.value||"prod"),navigator.clipboard.writeText(v.value[n.mode.toLowerCase()]),Ja(g[n.mode.toLowerCase()])},k=oe(()=>n.mode=="Embed"&&!gs||n.mode=="Download"&&!Jl);return(S,C)=>S.mode!="None"&&!k.value?(V(),Q("button",{key:0,class:wt(["cursor-pointer inline-flex items-center py-2 text-xs font-medium border-0 bg-white hover:bg-green-500 hover:rounded-md focus:z-10",[p[S.mode.toLowerCase()],`media-hub-button-${S.mode.toLowerCase()}`]]),type:"button",onClick:b,title:S.mode},[S.mode=="Embed"?(V(),ze(F(ax),{key:0,class:"h-5 w-5"})):ve("",!0),S.mode=="Download"?(V(),ze(F(tx),{key:1,class:"h-5 w-5"})):ve("",!0),S.mode=="Share"?(V(),ze(F(ix),{key:2,class:"h-5 w-5"})):ve("",!0),S.showMode?(V(),Q("span",Hy,Me(S.mode),1)):ve("",!0)],10,$y)):ve("",!0)}}),Ky={class:"overflow-visible flex flex-col relative w-full aspect-w-1 aspect-h-1 shadow-lg overflow-hidden rounded-lg overflow-hidden xl:aspect-w-7 xl:aspect-h-8 media-hub-video-card"},Yy=["src","alt"],Wy={key:0,class:"max-h-fit flex-shrink-0 inline-block px-3 py-1 text-white text-sm font-medium rounded-full absolute left-0 top-0 -translate-x-4 -translate-y-2 font-bold bg-red-500"},qy={class:"px-6 py-4 relative flex-1 sm:px-2 md:px-6 media-hub-video-info"},Xy={class:"mb-1 text-lg text-gray-700"},Qy={class:"pt-2 pb-12 text-sm text-gray-500 media-hub-video-info-content"},Jy={key:0,class:"m-0 categories"},Zy={class:"category-label"},e1=["onClick"],t1={key:1,class:"m-0 tags"},i1={class:"tag-label"},r1=["onClick"],a1={key:2,class:"m-0 publisher"},o1=U("span",{class:"publisher-label"},"Publisher: ",-1),n1={class:"publisher-value"},s1={key:3,class:"m-0 uploaded"},l1=U("span",{class:"date-label"},"Date: ",-1),d1={class:"date-value"},c1={class:"mt-5 flex h-10 right-6 bottom-4 absolute media-hub-video-info-buttons"},u1={class:"media-hub-video-preview-card"},p1={class:"mt-5 justify-right grid grid-cols-2 justify-items-center gap-2 sm:flex media-hub-video-info-preview-buttons"},h1=Ye({__name:"VideoCard",props:{campaign:{}},setup(r){const n=r,c=K(!1),p=oe(()=>{var R;return((R=n.campaign)==null?void 0:R.privateCategories)||[]}),g=oe(()=>{var R;return((R=n.campaign)==null?void 0:R.privateTags)||[]}),v=oe(()=>{var R;return(R=n.campaign)==null?void 0:R.isLive}),{title:b}=qw(n.campaign,Xa.value);Kt(()=>{qo.value==n.campaign.content_key&&(c.value=!0,qo.value="")});const k=R=>{br.value=[R],vr.value=[],ir.value=[]},S=R=>{vr.value=[R],br.value=[],ir.value=[]},C=oe(()=>{var R;return((R=n.campaign)==null?void 0:R.thumbnail)+"?width=360"});return(R,D)=>{var M,H;return V(),Q("div",Ky,[U("div",{class:"cursor-pointer group media-hub-video-thumbnail",onClick:D[0]||(D[0]=W=>c.value=!0)},[U("img",{class:"w-full aspect-video object-center object-cover rounded-t-lg group-hover:opacity-75",src:C.value,alt:F(b)},null,8,Yy),v.value?(V(),Q("span",Wy,"LIVE")):ve("",!0)]),U("div",qy,[U("h2",Xy,Me(F(b)),1),U("div",Qy,[F(Px)&&p.value.length?(V(),Q("p",Jy,[U("span",Zy,Me(p.value.length>1?"Categories":"Category")+": ",1),(V(!0),Q(nt,null,ri(p.value,(W,Y)=>(V(),Q("span",{class:"metadata-item",onClick:ce=>S(W)},Me(W)+Me(Y==p.value.length-1?"":", "),9,e1))),256))])):ve("",!0),F(Ix)&&g.value.length?(V(),Q("p",t1,[U("span",i1,Me(g.value.length>1?"Tags":"Tag")+": ",1),(V(!0),Q(nt,null,ri(g.value,(W,Y)=>(V(),Q("span",{class:"metadata-item",onClick:ce=>k(W)},Me(W)+Me(Y==g.value.length-1?"":", "),9,r1))),256))])):ve("",!0),F(Ox)?(V(),Q("p",a1,[o1,U("span",n1,Me((M=R.campaign)==null?void 0:M.org_name),1)])):ve("",!0),F(Mx)?(V(),Q("p",s1,[l1,U("span",d1,Me(new Date((H=R.campaign)==null?void 0:H.created_date).toLocaleDateString()),1)])):ve("",!0)]),U("div",c1,[F(Rp)?(V(),ze(Za,{key:0,class:"rounded-md px-2",mode:"Share",campaign:R.campaign},null,8,["campaign"])):ve("",!0),!v.value&&F(Jl)?(V(),ze(Za,{key:1,class:"rounded-md px-2",mode:"Download",campaign:R.campaign},null,8,["campaign"])):ve("",!0),F(gs)?(V(),ze(Za,{key:2,class:"rounded-md px-2",mode:"Embed",campaign:R.campaign},null,8,["campaign"])):ve("",!0)])]),Le(By,{onClose:D[1]||(D[1]=W=>c.value=!1),show:c.value},{default:Fi(()=>[U("div",u1,[Le(Gy,{campaign:R.campaign},null,8,["campaign"]),U("div",p1,[F(Rp)?(V(),ze(Za,{key:0,class:"justify-center items-center rounded-md shadow-sm px-4 w-min",showMode:!0,mode:"Share",campaign:R.campaign},null,8,["campaign"])):ve("",!0),!v.value&&F(Jl)?(V(),ze(Za,{key:1,class:"justify-center items-center rounded-md shadow-sm px-4 w-min",showMode:!0,mode:"Download",campaign:R.campaign},null,8,["campaign"])):ve("",!0),F(gs)?(V(),ze(Za,{key:2,class:"justify-center items-center rounded-md shadow-sm px-4 w-min",showMode:!0,mode:"Embed",campaign:R.campaign},null,8,["campaign"])):ve("",!0)])])]),_:1},8,["show"])])}}}),f1={class:"fixed inset-0 flex items-end px-4 py-6 pointer-events-none z-[2000] sm:p-6 sm:items-start","aria-live":"assertive"},g1={class:"w-full flex flex-col items-center space-y-4 sm:items-end"},m1={key:0,class:"max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden notification"},v1={class:"p-4"},b1={class:"flex items-start"},w1={class:"flex-shrink-0"},x1={class:"ml-3 w-0 flex-1 pt-0.5"},y1={class:"text-sm font-medium text-gray-900"},k1={class:"ml-4 flex-shrink-0 flex notification-close"},_1=Ye({__name:"Notification",props:{show:{},msg:{}},emits:["close"],setup(r,{emit:n}){const c=n;return(p,g)=>(V(),Q("div",f1,[U("div",g1,[Le(Ua,{"enter-active-class":"transform ease-out duration-300 transition","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:Fi(()=>[p.show?(V(),Q("div",m1,[U("div",v1,[U("div",b1,[U("div",w1,[Le(F(Qw),{class:"h-6 w-6 text-green-400","aria-hidden":"true"})]),U("div",x1,[U("p",y1,Me(p.msg),1)]),U("div",k1,[Le(Yp,{onClose:g[0]||(g[0]=v=>c("close"))})])])])])):ve("",!0)]),_:1})])]))}}),T1={class:"bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6"},E1={class:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"},S1={class:"text-sm text-gray-700"},L1={class:"font-medium"},A1={class:"font-medium"},C1={class:"font-medium"},R1={key:0,class:"text-md text-gray-700"},D1={key:1},I1={class:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination"},P1=U("span",{class:"sr-only"},"Previous",-1),O1=U("span",{class:"sr-only"},"Next",-1),Wp=Ye({__name:"Pagination",props:{modelValue:{},count:{},perPage:{},loading:{type:Boolean}},emits:["update:modelValue","input","prev","next"],setup(r,{emit:n}){const c=n,p=r,g=oe(()=>p.count<p.perPage?1:p.count/p.perPage),v=oe({get(){return p.modelValue},set(S){c("update:modelValue",S)}}),b=()=>{p.loading||(v.value=v.value>0?v.value-1:v.value)},k=()=>{p.loading||(v.value=v.value<g.value-1?v.value+1:v.value)};return(S,C)=>(V(),Q("div",T1,[U("div",{class:"flex-1 flex justify-between sm:hidden"},[U("span",{class:"relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50",onClick:b}," Previous "),U("span",{class:"ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50",onClick:k}," Next ")]),U("div",E1,[U("div",null,[U("p",S1,[cr("Showing "+Me(" ")),U("span",L1,Me(v.value*S.perPage+1),1),cr(Me(" ")+" to "+Me(" ")),U("span",A1,Me(Math.min((v.value+1)*S.perPage,S.count)),1),cr(Me(" ")+" of "+Me(" ")),U("span",C1,Me(S.count),1),cr(Me(" ")+" results")])]),S.count&&S.loading?(V(),Q("div",R1,"Loading...")):ve("",!0),S.count>S.perPage?(V(),Q("div",D1,[U("nav",I1,[U("span",{class:"cursor-pointer relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50",onClick:b},[P1,Le(F(Jw),{class:"h-5 w-5","aria-hidden":"true"})]),U("span",{class:"cursor-pointer relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50",onClick:k},[O1,Le(F(Zw),{class:"h-5 w-5","aria-hidden":"true"})])])])):ve("",!0)])]))}}),z2="",M1=["href"],F1={class:"bg-white mx-auto pt-12 pb-16 px-4 flex gap-2 video-grid-container sm:pt-16 sm:pb-24 sm:px-6 lg:max-w-full lg:px-8","aria-labelledby":"videos-heading"},N1={key:1},z1={key:2,class:"grid grid-cols-1 gap-y-10 gap-x-6 my-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 3xl:grid-cols-6 5xl:grid-cols-7 video-grid"},nd=24,B1=Pr(Ye({__name:"MediaHub.ce",props:{mediahubKey:{},useEmbeds:{},useDownloads:{},cms:{},env:{},tput:{},defaultStylesheet:{},stylesheet:{},defaultlang:{},configurationSource:{}},setup(r){const n=r,c=K(null),p=K(null),g=oe(()=>ir.value.map(D=>D.toLowerCase())),v=oe(()=>vr.value.map(D=>D.toLowerCase())),b=oe(()=>br.value.map(D=>D.toLowerCase())),k=oe(()=>{const D=ir.value.length,M=br.value.length,H=vr.value.length;return Ql.value.filter(W=>{const Y=W.events.some(pe=>g.value.includes(pe.toLowerCase()))||!D,ce=W.privateTags.some(pe=>b.value.includes(pe.toLowerCase()))||!M,se=W.privateCategories.some(pe=>v.value.includes(pe.toLowerCase()))||!H,ge=[W.title,W.description,W.content_key].some(pe=>pe.toLowerCase().includes(qa.value.toLowerCase()))||!qa.value;return Y&&ce&&se&&ge})});Bt(k,()=>mr.value=0);const S=oe(()=>k.value.slice(mr.value*24,(mr.value+1)*24)),C=async D=>{await Promise.all(Qa.value.map(M=>fetch(j0[n.env||"prod"],{method:"POST",body:JSON.stringify({email:D,slug:M})}))),Ja("Subscribed!")};let R=0;return Cr(async()=>{if(n.configurationSource)pi.value=JSON.parse(n.configurationSource);else if(n.mediahubKey){const M=await(await fetch(`${ds[n.env||"prod"]}mh-${n.mediahubKey}`)).json();pi.value=M}}),Cr(()=>{var D,M;((D=pi.value)==null?void 0:D.css)&&!n.stylesheet&&p.value&&(p.value.innerHTML=((M=pi.value)==null?void 0:M.css)||"")}),Bt(c,()=>{c.value&&(p.value=document.createElement("style"),c.value.appendChild(p.value))}),Kt(async()=>{Fx(n),R=setInterval(()=>{yp({baseURL:ds[n.env||"prod"],count:Xl,campaigns:Ql,feeds:Qa.value})},1e3*60*15)}),gl(()=>clearInterval(R)),Cr(async()=>{await Hw({availableCategoryFilters:Rx,availablePrivateCategoryFilters:Xo,availablePrivateTagFilters:Qo,availableEventTagFilters:Jo,feeds:Qa.value,baseURL:ds[n.env||"prod"]}),Cx.value=[],vr.value=[],br.value=[],ir.value=[],qa.value="",Ip.value==54&&new URL(window.location).searchParams.get("miami")&&ir.value.push("MIAMI 2024"),await yp({baseURL:ds[n.env||"prod"],count:Xl,campaigns:Ql,feeds:Qa.value});const D=new URL(window.location);if(qo.value=D.searchParams.get("targetCK")||"",qo.value){const M=k.value.findIndex(H=>H.content_key==qo.value);M>-1&&(mr.value=Math.floor(M/nd))}}),(D,M)=>(V(),Q("main",{class:"w-full relative media-hub",ref_key:"rootEl",ref:c},[D.stylesheet?(V(),Q("link",{key:0,rel:"stylesheet",ref:"stylesheetEl",href:D.stylesheet},null,8,M1)):ve("",!0),Le(ry,{onSubscribe:C}),U("div",F1,[F(yi)&&F(Bi)?(V(),ze(Iy,{key:0})):ve("",!0),U("div",{class:wt(["w-full",F(Bi)?"sm:w-5/6":""])},[k.value.length?(V(),ze(Wp,{key:0,class:"media-hub-pagination inset-y-5",loading:F(Lp),count:k.value.length,perPage:nd,modelValue:F(mr),"onUpdate:modelValue":M[0]||(M[0]=H=>Wt(mr)?mr.value=H:null)},null,8,["loading","count","modelValue"])):ve("",!0),F(Xl)?ve("",!0):(V(),Q("div",N1,"No videos found matching filters")),k.value.length?(V(),Q("div",z1,[(V(!0),Q(nt,null,ri(S.value,H=>(V(),ze(h1,{class:"group",campaign:H,key:H==null?void 0:H.content_key},null,8,["campaign"]))),128))])):ve("",!0),k.value.length?(V(),ze(Wp,{key:3,class:"media-hub-pagination inset-y-5",loading:F(Lp),count:k.value.length,perPage:nd,modelValue:F(mr),"onUpdate:modelValue":M[1]||(M[1]=H=>Wt(mr)?mr.value=H:null)},null,8,["loading","count","modelValue"])):ve("",!0)],2)]),Le(_1,{msg:F(Pp),show:F(ms),onClose:M[2]||(M[2]=H=>ms.value=!1)},null,8,["msg","show"])],512))}}),[["styles",[`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#ddd}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type="button"]),input:where([type="reset"]),input:where([type="submit"]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#999}input::placeholder,textarea::placeholder{opacity:1;color:#999}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#666;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: hsl(203, 59%, 38%);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#286e9a}input::-moz-placeholder,textarea::-moz-placeholder{color:#666;opacity:1}input::placeholder,textarea::placeholder{color:#666;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#286e9a;background-color:#fff;border-color:#666;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: hsl(203, 59%, 38%);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: hsl(203 59% 48% / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: hsl(203 59% 48% / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.live-badge{background-color:red;border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;padding:10px;position:absolute;top:15px;left:15px;z-index:1000000;font-weight:700}.live-circle{width:10px;height:10px;background-color:gray;display:block;border-radius:100%;margin:auto}.live-circle-online{background-color:red}.live-badge-offline{background-color:#36363640}.live{border-radius:10px;color:#ffffffbf;width:-moz-fit-content;width:fit-content;z-index:1000000;font-weight:500;padding:5px;margin-left:5px;margin-right:10px;display:flex;gap:5px}.gearIcon{width:20px;height:20px;vertical-align:middle}.filter{filter:invert(95%) sepia(100%) saturate(2%) hue-rotate(54deg) brightness(105%) contrast(101%)}.overlay>img{filter:unset}.video{grid-area:video;position:relative}.player-logo{grid-area:logo;width:4rem;height:4rem;margin-top:1rem;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}.player-description{grid-area:description;word-break:normal;overflow-y:auto;margin-top:1rem;max-height:150px}.player-title{grid-area:title;word-break:normal;font-weight:800}.overlay{position:absolute;z-index:1}.info{position:absolute;opacity:.5;background-color:#000;width:100%;height:100%;z-index:2;bottom:0}.player{display:grid;grid-template-areas:"title title title" "video video video" "logo description description";position:relative}.docked{position:fixed;right:10px;width:360px;padding:clamp(5px,1vw,10px);max-width:60%!important;height:-moz-fit-content;height:fit-content;aspect-ratio:16/9;padding-top:0;background-color:#1b1b1b}.docked_logo{height:20px;margin-top:auto}.docked-close-container{color:#fff;text-align:right;padding-bottom:5px;cursor:pointer;font-size:small;display:flex;justify-content:space-between}.docked-close-icon{width:20px;height:20px;position:relative;top:5px}.fs{position:fixed;display:flex;top:0px;bottom:0px;right:0px;left:0px;background-color:#000;z-index:100;place-content:center}@media (orientation: landscape){.iphone-fs video{max-height:100vh}.iphone-fs .control svg{width:30px;height:30px}.iphone-fs .controls-bar-showing{height:80px}.iphone-fs .controls-bar{padding-bottom:20px!important}.iphone-fs .control{padding:12px}.iphone-fs .controls-clock{margin-left:-12px;font-size:17px}.iphone-fs .volume-control{margin-right:-12px}.iphone-fs input[type=range]::-moz-range-thumb{height:24px;width:24px}.iphone-fs input[type=range]::-webkit-slider-thumb{height:24px;width:24px;margin-top:-9px}}.fs .video-container{align-self:center}.video-container{position:relative;width:100%}.ads-hidden{display:none}.scoreboard-overlay-button{z-index:20;height:20px;width:20px;border-radius:50%;position:absolute;top:50px;background-color:#efefefde;left:10px;cursor:pointer;transition:all .5s}.scoreboard-overlay-button-open{left:220px}.scoreboard-overlay{z-index:20;height:80%;padding:5px;position:absolute;border-radius:.5rem;background-color:#efefefde;top:10%;left:-1000px;width:200px;opacity:0;transition:all .5s}.scoreboard-overlay-open{left:10px;opacity:1}.multi-feed-playlist-name{text-align:center}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px;width:200px;margin-left:10px;margin-right:10px;flex:0 0 auto}.multi-feed{width:100%;overflow-x:hidden}.multi-feed-video-list{margin:0;padding:0;display:flex;flex-direction:row;height:-moz-fit-content;height:fit-content;overflow-x:auto;width:100%}.multi-feed-player{grid-area:video}.multi-feed-nav-button{cursor:pointer;text-decoration:underline;position:absolute;background-color:#535252bf;height:50px;width:50px;z-index:1;color:#fff}.multi-feed-nav-next{text-align:right;right:2px}.multi-feed-nav-prev{text-align:left;left:2px}.multi-feed-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.multi-feed-player>.custom-player>.custom-player-title{height:50px}.multi-feed-player>.custom-player>.custom-player-description{height:75px}.multi-feed-player>.custom-player>.custom-video{max-height:unset}.carousel-publisher-info{width:200px;margin:auto;display:grid;grid-template-areas:"distributorLogo" "feedName";grid-area:distributorInfo}.carousel-publisher-logo{height:100px;width:100px;margin:auto}.carousel-playlist-name{text-align:center}.video-card-thumbnail{grid-area:videoThumbnail}.video-card-thumbnail-image{width:100%}.video-card-title{grid-area:videoName}.video-card{display:grid;grid-template-areas:"videoThumbnail" "videoName";margin-top:5px;grid-column-gap:15px;overflow:hidden;align-items:start;cursor:pointer;border-radius:10px}.carousel-playlist{display:grid;grid-template-areas:"video" "distributorInfo" "carouselContainer"}.carousel-container{display:grid;grid-area:carouselContainer;grid-template-areas:"nav nav nav" "carousel carousel carousel"}.carousel-player{grid-area:video}.carousel{grid-area:carousel}.carousel-nav{display:grid;grid-area:nav;grid-template-areas:"prev pages next";width:50%;margin:auto}.carousel-nav-next{grid-area:next;text-align:right;cursor:pointer;text-decoration:underline}.carousel-nav-prev{grid-area:prev;text-align:left;cursor:pointer;text-decoration:underline}.carousel-nav-pages{grid-area:pages;text-align:center}.carousel-player>.custom-player{grid-template-areas:"video video video video" "title title . logo" "description description description description"}.carousel-player>.custom-player>.custom-player-title{height:50px}.carousel-player>.custom-player>.custom-player-description{height:75px}.carousel-player>.custom-player>.custom-video{max-height:unset}.carousel-video-list{height:100%;overflow-y:auto;overflow-x:hidden;display:grid;grid-column-gap:15px;grid-row-gap:15px;grid-template-columns:repeat(1,1fr);grid-template-rows:auto}@media screen and (min-width: 480px){.carousel-video-list{grid-template-columns:repeat(3,1fr)}}.thumbnail-carousel{display:flex;flex-direction:row;width:100%;gap:5px}.thumbnail-carousel-card{cursor:pointer;gap:5px}.vertical-carousel{flex-direction:column;width:-moz-fit-content;width:fit-content}.vertical-carousel-card .thumbnail-carousel-card-image{max-width:480px}.vertical-carousel-card{display:grid;grid-template-areas:"cardImage cardLogo cardTitle" "cardImage cardDescription cardDescription"}.thumbnail-carousel-card-image{max-width:100%;border-radius:10px;grid-area:cardImage;-o-object-fit:fill;object-fit:fill}.thumbnail-carousel-card-title{text-overflow:ellipsis;font-weight:500;font-size:2rem;margin:0;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardTitle}.vertical-carousel-card .thumbnail-carousel-card-title{max-width:unset}.thumbnail-carousel-card-description{text-overflow:ellipsis;white-space:wrap;overflow:hidden;max-width:-moz-fit-content;max-width:fit-content;grid-area:cardDescription}.thumbnail-carousel-card-logo{height:3.5em;width:3.5em;-o-object-fit:contain;object-fit:contain;grid-area:cardLogo}.feed{height:"100%";overflow-y:"scroll";overflow-x:"hidden"}.publisher-info{display:grid;width:100%;grid-template-areas:"playlistDistributorLogo playlistFeedName";grid-area:playlistDistributorInfo}.playlist-name{grid-area:playlistFeedName}.playlist-publisher-logo{max-height:75px;grid-area:playlistDistributorLogo}.playlist-name{margin-top:35px}.playlist-player{grid-area:playlistVideo}.playlist-video-list{overflow-y:scroll;overflow-x:hidden;display:grid;grid-template-columns:1fr;grid-template-rows:auto;grid-area:playlistVideoList}.playlist-card{display:grid;grid-template-areas:"videoThumbnail videoName" "videoThumbnail videoDescription";height:100px;margin-top:5px;grid-column-gap:15px;overflow:hidden;grid-template-columns:2fr 3fr;align-items:start;cursor:pointer}.playlist-card-thumbnail{grid-area:videoThumbnail}.playlist-card-thumbnail-image{height:100px;width:100%}.playlist-card-name{grid-area:videoName}.playlist-card-description{font-size:.75rem;color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;grid-area:videoDescription}.playlist-player>.custom-player{grid-template-rows:3fr 1fr 3fr;grid-template-columns:4fr 1fr;grid-template-areas:"video video" "title logo" "description description";max-height:100%}.playlist-player>.custom-player>.custom-video{max-height:425px}.playlist-player>.custom-player>.custom-player-title{height:50px}.playlist-player>.custom-player>.custom-player-description{height:125px}.playlist{display:flex;flex-direction:column}@media screen and (min-width: 700px){.playlist{display:grid;grid-template-areas:"playlistVideo playlistDistributorInfo" "playlistVideo playlistVideoList" "playlistVideo playlistVideoList";grid-template-columns:3fr 2fr;grid-template-rows:1fr 4fr;grid-column-gap:10px;height:500px}.playlist-player>.custom-player{grid-template-rows:4fr 1fr 3fr}}.shop-overlay-bar{position:absolute;top:0px;padding:5px 0 0;gap:clamp(5px,100vw,12px);z-index:4;display:flex;flex-direction:row;left:0px;right:0px;overflow-x:auto;pointer-events:none;height:clamp(-moz-min-content,4vw,48px);height:clamp(min-content,4vw,48px);overflow-y:hidden}.overlay-bar-chevron{height:-moz-min-content;height:min-content;align-self:center;pointer-events:all;margin-right:-15px;padding:2px;border:unset!important}.overlay-bar-icon-visible{opacity:1;height:-moz-fit-content;height:fit-content;pointer-events:all}.overlay-bar-icon-hidden{opacity:0;height:0px;pointer-events:none}.overlay-bar-icon>img{border:2px solid black;border-radius:50%}.overlay-bar-icon{z-index:2;cursor:pointer;text-align:center;transition:opacity .75s linear;transition:height .2s linear;color:#fff;border-radius:10px;width:clamp(17px,100vw,48px);height:clamp(17px,100vw,48px);font-weight:800}.overlay-bar-icon>img{height:100%;min-width:15px;width:100%;transition:all .2s linear}@media (max-width: 500px){.overlay-bar-icon{width:32px;height:32px}}.ecom-wrapper{position:absolute;display:flex;left:15px;flex-shrink:0;border-radius:.5rem;border-width:0px;border-style:none;border-color:#ddd;background-color:transparent;padding:12px;width:50px;overflow-x:hidden;overflow-y:hidden;transition:all .25s;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);height:72px}.ecom-inner-wrapper{display:flex;align-items:center}.ecom-icon{border:solid;border-width:2px;border-radius:9999px;width:3rem;height:3rem;cursor:pointer}.ecom-name{font-size:1rem;line-height:1.5rem;font-weight:700;color:#444;pointer-events:none}.ecom-subtext{color:#999;font-size:.875rem;line-height:1.25rem;pointer-events:none}.ecom-button{border:none;cursor:pointer;height:1.2rem;width:-moz-max-content;width:max-content;margin-left:.5rem;border-radius:9999px;color:#fff;font-weight:600;font-size:.875rem;line-height:1.25rem;text-decoration:none;text-align:center;padding:.5rem 1rem}.ecom-text-wrapper{padding-left:.75rem}@keyframes ping{0%,60%{transform:scale(1);opacity:1;filter:brightness(1)}70%{transform:scale(1.3);opacity:.75;filter:brightness(2)}to{transform:scale(.75);opacity:.25;filter:brightness(.5)}}.animated-chevron{animation:ping 5s cubic-bezier(0,0,.1,1) infinite}.ecom-chevron{position:absolute;border-radius:100%;bottom:-5px;right:-5px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center}.ecom-img-wrapper{position:relative;display:flex;place-content:center}.ecom-close{position:absolute;border-radius:100%;top:-10px;right:-10px;padding:5px;color:#fff;width:15px;height:15px;cursor:pointer;display:flex;place-content:center;background-color:#afafaf}.ecom-close svg{margin-top:2px}@media (max-width: 500px){.ecom-icon{width:2.5rem;height:2.5rem}.ecom-name,.ecom-subtext{font-size:.8rem}.ecom-button{font-size:.5rem;padding:.1rem .5rem}.ecom-wrapper{padding:5px;width:3rem}.ecom-img-wrapper{width:3rem}}.ecomExpanded{width:-moz-max-content;width:max-content;overflow-y:visible;border-width:2px;height:48px;background-color:#efefefde;overflow-x:visible;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ecom-wrapper-entering,.ecom-wrapper-leaving{transition:all .5s}.ecom-wrapper-enter-from{opacity:0}.ecom-wrapper-enter-to,.ecom-wrapper-leave-from{opacity:1}.ecom-wrapper-leave-to{opacity:0}.ecom-wrapper-top-expanded{top:15px}.ecom-wrapper-top-docked{top:-15px;left:0px}.ecom-wrapper-top-undocked{top:0px}.ecom-wrapper-bottom-expanded-undocked{top:15px}.ecom-wrapper-bottom-docked{bottom:-10px;left:0px}.ecom-wrapper-bottom-controls-docked{bottom:30px}.ecom-wrapper-bottom-controls-undocked{bottom:50px}.ecom-wrapper-bottom-undocked{bottom:30px}.ecom-wrapper-bottom-expanded{bottom:15px}@media (orientation: landscape){.iphone-fs .ecom-wrapper-top-expanded{top:30px}.iphone-fs .ecom-wrapper-top-undocked{top:0px}.iphone-fs .ecom-wrapper-bottom-expanded-undocked{top:15px}.iphone-fs .ecom-wrapper-bottom-controls-undocked{bottom:65px}.iphone-fs .ecom-wrapper-bottom-undocked{bottom:10px}.iphone-fs .ecom-wrapper-bottom-expanded{bottom:20px}}.inAmp.ecom-wrapper-bottom-undocked{bottom:-5px;left:5px}.inAmp.ecom-wrapper-top-undocked{top:-10px;left:0px}.inAmp.ecom-wrapper-bottom-controls-undocked{bottom:30px;left:10px}.pylon-img{height:500px;-o-object-fit:contain;object-fit:contain}.pylon-toggle{color:#fff;pointer-events:all}.pylon-overlay{position:absolute;top:0px;z-index:2;left:10px;right:0px;overflow-x:auto;pointer-events:none;overflow-y:hidden}.stream-ui{display:grid;grid-template-columns:repeat(4,1fr);grid-column-gap:20px;transition:all 1s;opacity:0;position:absolute;bottom:100px;left:10px;right:10px;z-index:3;justify-content:center;transition:opacity 1s}.hidden-stream-item{display:none}.stream-ui-gridded{display:grid;grid-column-gap:0px;bottom:0px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.stream-grid-button{z-index:20;height:20px;width:20px;border-radius:50%;top:50px;left:calc(50% - 10px);cursor:pointer;background-color:#efefefde;position:absolute;opacity:0;transition:opacity 1s}.stream-ui-visible{opacity:1}.special{all:initial}.special>*{all:initial}.special img{max-width:unset!important}.special .ecom-wrapper *,.special .ecom-wrapper,.special .ecom-wrapper img{box-sizing:initial}fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:before,.multiselect__spinner:after{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border-color:#41b883 transparent transparent;border-style:solid;border-width:2px;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:initial;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\\d7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #e8e8e8;cursor:pointer}.multiselect__select{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:5px 5px 0 5px;border-color:#999 transparent transparent transparent;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-radius:5px 5px 0 0;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::-webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}*[dir=rtl] .multiselect{text-align:right}*[dir=rtl] .multiselect__select{right:auto;left:1px}*[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}*[dir=rtl] .multiselect__content{text-align:right}*[dir=rtl] .multiselect__option:after{right:auto;left:0}*[dir=rtl] .multiselect__clear{right:auto;left:12px}*[dir=rtl] .multiselect__spinner{right:auto;left:1px}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}@media (min-width: 1792px){.\\!container{max-width:1792px!important}.container{max-width:1792px}}@media (min-width: 2048px){.\\!container{max-width:2048px!important}.container{max-width:2048px}}@media (min-width: 2304px){.\\!container{max-width:2304px!important}.container{max-width:2304px}}@media (min-width: 2560px){.\\!container{max-width:2560px!important}.container{max-width:2560px}}@media (min-width: 3072px){.\\!container{max-width:3072px!important}.container{max-width:3072px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0px}.inset-y-0{top:0px;bottom:0px}.inset-y-5{top:1.25rem;bottom:1.25rem}.bottom-4{bottom:1rem}.left-0{left:0px}.right-0{right:0px}.right-6{right:1.5rem}.top-0{top:0px}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2000\\]{z-index:2000}.m-0{margin:0!important}.m-1{margin:.25rem}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-40{margin-top:10rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-10{width:2.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.max-w-7xl{max-width:80rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.basis-1\\/3{flex-basis:33.333333%}.-translate-x-4{--tw-translate-x: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.gap-2{gap:.5rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-10{row-gap:2.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(221 221 221 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(187 187 187 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(239 239 239 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(102 102 102 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(85 85 85 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:hsl(120 50% 86% / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:hsl(120 30% 46% / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-0\\.5{padding-top:.125rem}.pt-12{padding-top:3rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-bottom{vertical-align:bottom}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(68 68 68 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:hsl(120 50% 66% / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:hsl(120 30% 46% / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.player{--parone-primary: rgb(7, 102, 82)}video::-webkit-media-text-track-container{display:var(--webkit-text-track-display)}*{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.controls-bar{width:100%;align-items:center;display:flex;justify-content:flex-end;text-align:center;bottom:0px;opacity:0;padding:10px;position:absolute;height:0px;box-sizing:border-box;transition:opacity .4s ease-in-out,height .4s ease-in-out;z-index:4}.controls-bar-showing{opacity:1;height:47px;background:linear-gradient(transparent,rgba(0,0,0,.75))}.controls-bar .control:first-child{margin-left:0;margin-right:auto}video{width:100%}.control svg{width:18px;height:18px;fill:currentColor}.tooltip{cursor:default;text-align:center;border-radius:3px;bottom:100%;line-height:1.3;margin-bottom:20px;opacity:0;padding:5px 7.5px;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2;box-shadow:0 1px 2px #00000026;font-size:13px;pointer-events:all;background-color:#fff;color:#000}.tooltip:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:20px;top:100%;width:0}.control{background:transparent;border:0;border-radius:3px;color:#fff;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;position:relative;transition:all .3s ease;z-index:4;margin-left:2.5px;touch-action:manipulation}input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-progress{background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:var(--parone-primary)!important;border-radius:.5rem;height:5px}input[type=range]::-moz-range-thumb{background-color:#fff;height:16px;width:16px;border-radius:50%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;margin-top:-6px;background:white;height:16px;width:16px;border-radius:50%;color:#fff}input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px 0 0 0 1px #23282f26 #23282f33,0 0 0 3px #ffffff80;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80}input[type=range]::-moz-range-track{background-color:#ffffff40;height:5px;border-radius:.5rem}.volume-bar::-webkit-slider-runnable-track{background-color:#ffffff40;border-radius:.5rem;height:5px;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.volume-bar-container{align-items:center;display:flex;width:clamp(30px,15%,68px);position:relative;padding:7px 5px;margin-left:0}.volume-bar{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:15px;display:block;height:20px;margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;position:relative;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.progress{text-align:center;left:7px;margin-right:13px;position:relative;visibility:visible;pointer-events:all}.progress-container{text-align:center;flex-grow:1;width:-moz-min-content;width:min-content;min-width:20px;padding:0;margin-left:2.5px;cursor:default}progress{color:#ffffff40;margin-left:-7px;margin-right:-7px;width:calc(100% + 13px);min-width:0px;-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:5px;left:0;margin-top:-2.5px;padding:0;position:absolute;top:50%;border-radius:.5rem}progress::-moz-progress-bar{border-radius:100px;min-width:5px;-moz-transition:width .2s ease;transition:width .2s ease;background-color:#ffffff80;border-radius:.5rem}progress::-webkit-progress-bar{border-radius:100px;min-width:5px;-webkit-transition:width .2s ease;transition:width .2s ease;border-radius:.5rem}progress::-webkit-progress-value{background-color:#ffffff80;border-radius:.5rem}.progress>input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem;background-image:linear-gradient(to right,var(--parone-primary) var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input::-webkit-slider-runnable-track{background-color:#ffffff40;height:5px;background-image:linear-gradient(to right,#6a7b78 var(--value, 0%),transparent var(--value, 0%))}.seekbar-disabled input[type=range]::-moz-range-progress{background-color:#6a7b78!important;height:5px}.seekbar-disabled input[type=range]::-webkit-range-progress{-webkit-appearance:none;background-color:#6a7b78!important;height:5px}.progress input{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;display:block;height:20px;min-width:0;padding:0;transition:box-shadow .3s ease;margin:0 -7px;width:calc(100% + 13px);position:relative;z-index:2;background-image:initial;background-color:transparent;border-color:initial;visibility:visible;pointer-events:all}.controls-clock{font-size:13px;width:40px;padding:7px 10px 7px 5px}.mobile-controls .controls-clock{width:-moz-max-content;width:max-content;padding-bottom:0;padding-top:0}.mobile-controls .time,.mobile-controls .live{position:absolute;top:-10px;right:0px}.control-hovers:hover,.control:active:not(.progress-container,.volume-bar-container){background:var(--parone-primary)}.settings-menu-container button:hover{background:var(--parone-primary)}.settings-menu-container button:hover span{color:#fff}.big-play-button{cursor:pointer;flex-shrink:0;overflow:visible;background:var(--parone-primary);border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:4;width:auto;touch-action:manipulation;display:none;fill:currentColor}.mobile-play-pause{cursor:pointer;flex-shrink:0;overflow:visible;border:0;border-radius:100%;color:#fff;left:50%;opacity:.9;padding:15px;top:50%;transition:.3s;z-index:4;touch-action:manipulation;display:block;fill:currentColor;height:40px;transform:translate(-50%,-50%);width:40px}.big-play-button svg,.mobile-play-pause svg{cursor:pointer;color:#fff;fill:currentColor;display:block;height:18px;pointer-events:none;width:18px;left:2px;position:relative}.ads-container{z-index:3;position:absolute;top:0px}.ads-timer{z-index:4;position:absolute;right:5px;bottom:5px;width:-moz-fit-content;width:fit-content;background:#23282f;border-radius:2px;color:#ffffffbf;font-size:11px;padding:4px 6px;pointer-events:none}.settings-menu-container{animation:plyr-popup .2s ease;background:hsla(0,0%,100%,.85);border-radius:4px;bottom:100%;overscroll-behavior:contain;box-shadow:0 1px 2px #00000026;color:#4a5464;font-size:15px;margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:5;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.settings-menu-container:after{border:4px solid transparent;border-top-color:#ffffffe6;content:"";height:0;position:absolute;right:15px;top:100%;width:0}.settings-menu-container-down{transform:translateY(calc(100% + 42px))}.settings-menu-container-down:after{transform:rotate(180deg);top:-8px}.settings-menu{max-height:200px;overflow-y:auto}.settings-menu-container button{white-space:nowrap;background:transparent;border:0;border-radius:3px;cursor:pointer;flex-shrink:0;overflow:visible;position:relative;transition:all .3s ease;z-index:4;touch-action:manipulation;align-items:center;color:#4a5464;display:flex;font-size:13px;padding:6px 28px 6px 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;margin-top:2px}.settings-menu-container button>span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-right:5px;width:100%}.settings-menu{color:#4a5464;font-size:15px;text-align:left;white-space:nowrap;padding:7px}.settings-home>.settings-menu>button:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-left-color:#728197;right:6.5px}.settings-back{padding:5px}.settings-back:after{border:4px solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%);border-right-color:#728197;left:6.5px}.settings-back span{white-space:nowrap;cursor:pointer;color:#4a5464;font-size:13px;display:flex;margin-left:15px;width:100%}.badge{white-space:nowrap;font:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-sizing:inherit;background:#4a5464;border-radius:2px;color:#fff;font-size:9px;line-height:1;padding:3px 4px}.captions{position:absolute;height:50px;left:0px;right:0px;bottom:25px;text-align:center}.captions>p{padding:5px;color:#fff;width:-moz-fit-content;width:fit-content;font-size:normal;margin:auto;background-color:#000}.settings-menu-button-radio:before{background:rgba(0,0,0,.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;transition:all .3s ease;width:16px;border-radius:100%}.settings-menu-button-radio:after{background:#fff;border:0;height:6px;left:16px;content:"";position:absolute;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px;border-radius:100%}.settings-menu-button-radio-checked:before{background-color:var(#076652)}.settings-menu-button-radio-checked:after{opacity:1;transform:translateY(-50%) scale(1)}.settings-menu-value{text-align:end;display:inline!important;padding-left:24px}.controls-bar-top{display:none;position:absolute;top:10px;right:5px;height:0px;opacity:0;width:-moz-fit-content;width:fit-content}.mobile-controls-top{position:absolute;top:5px;right:5px;width:-moz-fit-content;width:fit-content;z-index:5}.controls-bar-top-showing{display:none;position:absolute;top:10px;right:5px;height:-moz-fit-content;height:fit-content;transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:1}.controls-bar-top-showing-inAd .control:last-child{margin-right:25%}.controls-bar-top-showing-inAd{pointer-events:none}.controls-bar-top-showing-inAd .control,.inAd .ads-container{pointer-events:all}.ads-container{pointer-events:none}.mobile-controls{display:block;pointer-events:none;position:absolute;top:0px;bottom:0px;right:0px;left:0px;background:linear-gradient(transparent,rgba(0,0,0,.75));transition:opacity .4s ease-in-out,height .4s ease-in-out;opacity:0}@media (orientation: landscape){.fs .mobile-controls{height:100dvh}.force-mobile .mobile-controls,.fs-mobile{display:block!important}}.mobile-controls-big-buttons .control svg{width:36px;height:36px}.control{pointer-events:all}.docked .mobile-controls-big-buttons .control svg{width:16px;height:16px}.mobile-controls .controls-bar-showing{height:30px}.docked .mobile-controls .control{padding:6px}.mobile-controls-showing{opacity:1}.mobile-controls-big-buttons{display:grid;grid-template-columns:20% auto 20%;gap:.25rem;height:100%;justify-content:center;align-content:center;justify-items:center}.controls,.big-play-button{display:none}@media (min-width: 540px){.mobile-controls{display:none}.controls{display:flex}.big-play-button{display:block}}.fs-mobile .controls{display:none!important}.fs-close-button{position:absolute;top:8px;left:.5rem;width:18px;height:18px;border-radius:100%;padding:.25rem;cursor:pointer;text-align:center;display:flex;color:#fff;align-content:center;opacity:0}.fs-close-button:hover{background-color:#aaaaaabf}.show-fs-close-button{opacity:1}.focus-within\\:text-gray-600:focus-within{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity))}.hover\\:rounded-md:hover{border-radius:.375rem}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(221 221 221 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:hsl(120 40% 56% / var(--tw-bg-opacity))}.hover\\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:hsl(120 30% 36% / var(--tw-bg-opacity))}.hover\\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:hsl(120 20% 26% / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.hover\\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 17 17 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-green-500:focus{--tw-border-opacity: 1;border-color:hsl(120 40% 56% / var(--tw-border-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: hsl(120 40% 56% / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-75{opacity:.75}@media (min-width: 640px){.sm\\:mx-0{margin-left:0!important;margin-right:0!important}.sm\\:mt-0{margin-top:0!important}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:flex{display:flex}.sm\\:hidden{display:none}.sm\\:h-screen{height:100vh}.sm\\:w-5\\/6{width:83.333333%}.sm\\:w-64{width:16rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-1{flex:1 1 0%}.sm\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-start{align-items:flex-start}.sm\\:items-end{align-items:flex-end}.sm\\:items-center{align-items:center}.sm\\:justify-center{justify-content:center}.sm\\:justify-between{justify-content:space-between}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pb-24{padding-bottom:6rem}.sm\\:pb-4{padding-bottom:1rem}.sm\\:pl-0{padding-left:0}.sm\\:pt-16{padding-top:4rem}.sm\\:text-center{text-align:center}.sm\\:align-middle{vertical-align:middle}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\\:flex{display:flex}.md\\:max-w-xl{max-width:36rem}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\\:block{display:block}.lg\\:inline-flex{display:inline-flex}.lg\\:hidden{display:none}.lg\\:max-w-2xl{max-width:42rem}.lg\\:max-w-full{max-width:100%}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\\:max-w-3xl{max-width:48rem}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1536px){.\\32xl\\:block{display:block}.\\32xl\\:max-w-4xl{max-width:56rem}.\\32xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1792px){.\\33xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (min-width: 2304px){.\\35xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}}@media (orientation: landscape){.landscape\\:my-0{margin-top:0!important;margin-bottom:0!important}} `]]]);customElements.define("parone-multi-playlist-carousel",hr($w)),customElements.define("parone-media-hub",hr(B1)),customElements.define("parone-playlist-carousel",hr(xv)),customElements.define("parone-thumbnail-carousel",hr(dp)),customElements.define("parone-vertical-thumbnail-carousel",hr(dp)),customElements.define("parone-video-block",hr(cp)),customElements.define("parone-video-block-playlist",hr(Vv)),customElements.define("parone-video-feed",hr(jv)),customElements.define("parone-video-player",hr(Ta)),customElements.define("parone-video-playlist",hr(cb))});