@vouchfor/embeds 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,9 +10,9 @@ var playerEmbed=function(Ge){"use strict";var Jy=Object.defineProperty;var Wy=(G
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const Ns=globalThis,vr=Ns.trustedTypes,AA=vr?vr.createPolicy("lit-html",{createHTML:s=>s}):void 0,Yn="$lit$",hi=`lit$${(Math.random()+"").slice(9)}$`,Kn="?"+hi,ed=`<${Kn}>`,ki=document,Ms=()=>ki.createComment(""),Os=s=>s===null||typeof s!="object"&&typeof s!="function",lA=Array.isArray,cA=s=>lA(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Vn=`[
14
- \f\r]`,Ps=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hA=/-->/g,uA=/>/g,Fi=RegExp(`>|${Vn}(?:([^\\s"'>=/]+)(${Vn}*=${Vn}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),dA=/'/g,gA=/"/g,fA=/^(?:script|style|textarea|title)$/i,td=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),Ie=td(1),Ot=Symbol.for("lit-noChange"),Xe=Symbol.for("lit-nothing"),pA=new WeakMap,Ni=ki.createTreeWalker(ki,129);function EA(s,e){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return AA!==void 0?AA.createHTML(e):e}const IA=(s,e)=>{const t=s.length-1,i=[];let r,n=e===2?"<svg>":"",o=Ps;for(let a=0;a<t;a++){const A=s[a];let l,c,h=-1,u=0;for(;u<A.length&&(o.lastIndex=u,c=o.exec(A),c!==null);)u=o.lastIndex,o===Ps?c[1]==="!--"?o=hA:c[1]!==void 0?o=uA:c[2]!==void 0?(fA.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=Fi):c[3]!==void 0&&(o=Fi):o===Fi?c[0]===">"?(o=r??Ps,h=-1):c[1]===void 0?h=-2:(h=o.lastIndex-c[2].length,l=c[1],o=c[3]===void 0?Fi:c[3]==='"'?gA:dA):o===gA||o===dA?o=Fi:o===hA||o===uA?o=Ps:(o=Fi,r=void 0);const d=o===Fi&&s[a+1].startsWith("/>")?" ":"";n+=o===Ps?A+ed:h>=0?(i.push(l),A.slice(0,h)+Yn+A.slice(h)+hi+d):A+hi+(h===-2?a:d)}return[EA(s,n+(s[t]||"<?>")+(e===2?"</svg>":"")),i]};class Us{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let n=0,o=0;const a=e.length-1,A=this.parts,[l,c]=IA(e,t);if(this.el=Us.createElement(l,i),Ni.currentNode=this.el.content,t===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=Ni.nextNode())!==null&&A.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(Yn)){const u=c[o++],d=r.getAttribute(h).split(hi),g=/([.?@])?(.*)/.exec(u);A.push({type:1,index:n,name:g[2],strings:d,ctor:g[1]==="."?CA:g[1]==="?"?yA:g[1]==="@"?vA:Gs}),r.removeAttribute(h)}else h.startsWith(hi)&&(A.push({type:6,index:n}),r.removeAttribute(h));if(fA.test(r.tagName)){const h=r.textContent.split(hi),u=h.length-1;if(u>0){r.textContent=vr?vr.emptyScript:"";for(let d=0;d<u;d++)r.append(h[d],Ms()),Ni.nextNode(),A.push({type:2,index:++n});r.append(h[u],Ms())}}}else if(r.nodeType===8)if(r.data===Kn)A.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(hi,h+1))!==-1;)A.push({type:7,index:n}),h+=hi.length-1}n++}}static createElement(e,t){const i=ki.createElement("template");return i.innerHTML=e,i}}function Mi(s,e,t=s,i){var o,a;if(e===Ot)return e;let r=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl;const n=Os(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,t,i)),i!==void 0?(t._$Co??(t._$Co=[]))[i]=r:t._$Cl=r),r!==void 0&&(e=Mi(s,r._$AS(s,e.values),r,i)),e}class mA{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:i}=this._$AD,r=((e==null?void 0:e.creationScope)??ki).importNode(t,!0);Ni.currentNode=r;let n=Ni.nextNode(),o=0,a=0,A=i[0];for(;A!==void 0;){if(o===A.index){let l;A.type===2?l=new is(n,n.nextSibling,this,e):A.type===1?l=new A.ctor(n,A.name,A.strings,this,e):A.type===6&&(l=new BA(n,this,e)),this._$AV.push(l),A=i[++a]}o!==(A==null?void 0:A.index)&&(n=Ni.nextNode(),o++)}return Ni.currentNode=ki,r}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class is{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,i,r){this.type=2,this._$AH=Xe,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Mi(this,e,t),Os(e)?e===Xe||e==null||e===""?(this._$AH!==Xe&&this._$AR(),this._$AH=Xe):e!==this._$AH&&e!==Ot&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):cA(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==Xe&&Os(this._$AH)?this._$AA.nextSibling.data=e:this.T(ki.createTextNode(e)),this._$AH=e}$(e){var n;const{values:t,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Us.createElement(EA(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(t);else{const o=new mA(r,this),a=o.u(this.options);o.p(t),this.T(a),this._$AH=o}}_$AC(e){let t=pA.get(e.strings);return t===void 0&&pA.set(e.strings,t=new Us(e)),t}k(e){lA(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const n of e)r===t.length?t.push(i=new is(this.S(Ms()),this.S(Ms()),this,this.options)):i=t[r],i._$AI(n),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Gs{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,n){this.type=1,this._$AH=Xe,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Xe}_$AI(e,t=this,i,r){const n=this.strings;let o=!1;if(n===void 0)e=Mi(this,e,t,0),o=!Os(e)||e!==this._$AH&&e!==Ot,o&&(this._$AH=e);else{const a=e;let A,l;for(e=n[0],A=0;A<n.length-1;A++)l=Mi(this,a[i+A],t,A),l===Ot&&(l=this._$AH[A]),o||(o=!Os(l)||l!==this._$AH[A]),l===Xe?e=Xe:e!==Xe&&(e+=(l??"")+n[A+1]),this._$AH[A]=l}o&&!r&&this.j(e)}j(e){e===Xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class CA extends Gs{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Xe?void 0:e}}class yA extends Gs{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Xe)}}class vA extends Gs{constructor(e,t,i,r,n){super(e,t,i,r,n),this.type=5}_$AI(e,t=this){if((e=Mi(this,e,t,0)??Xe)===Ot)return;const i=this._$AH,r=e===Xe&&i!==Xe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==Xe&&(i===Xe||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class BA{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Mi(this,e)}}const id={P:Yn,A:hi,C:Kn,M:1,L:IA,R:mA,D:cA,V:Mi,I:is,H:Gs,N:yA,U:vA,B:CA,F:BA},Jn=Ns.litHtmlPolyfillSupport;Jn==null||Jn(Us,is),(Ns.litHtmlVersions??(Ns.litHtmlVersions=[])).push("3.1.2");const sd=(s,e,t)=>{const i=(t==null?void 0:t.renderBefore)??e;let r=i._$litPart$;if(r===void 0){const n=(t==null?void 0:t.renderBefore)??null;i._$litPart$=r=new is(e.insertBefore(Ms(),n),n,void 0,t??{})}return r._$AI(s),r};/**
13
+ */const Ns=globalThis,vr=Ns.trustedTypes,AA=vr?vr.createPolicy("lit-html",{createHTML:s=>s}):void 0,Yn="$lit$",hi=`lit$${(Math.random()+"").slice(9)}$`,Kn="?"+hi,ed=`<${Kn}>`,Fi=document,Ms=()=>Fi.createComment(""),Os=s=>s===null||typeof s!="object"&&typeof s!="function",lA=Array.isArray,cA=s=>lA(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Vn=`[
14
+ \f\r]`,Ps=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hA=/-->/g,uA=/>/g,Ni=RegExp(`>|${Vn}(?:([^\\s"'>=/]+)(${Vn}*=${Vn}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),dA=/'/g,gA=/"/g,fA=/^(?:script|style|textarea|title)$/i,td=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),Ie=td(1),Ot=Symbol.for("lit-noChange"),Xe=Symbol.for("lit-nothing"),pA=new WeakMap,Mi=Fi.createTreeWalker(Fi,129);function EA(s,e){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return AA!==void 0?AA.createHTML(e):e}const IA=(s,e)=>{const t=s.length-1,i=[];let r,n=e===2?"<svg>":"",o=Ps;for(let a=0;a<t;a++){const A=s[a];let l,c,h=-1,u=0;for(;u<A.length&&(o.lastIndex=u,c=o.exec(A),c!==null);)u=o.lastIndex,o===Ps?c[1]==="!--"?o=hA:c[1]!==void 0?o=uA:c[2]!==void 0?(fA.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=Ni):c[3]!==void 0&&(o=Ni):o===Ni?c[0]===">"?(o=r??Ps,h=-1):c[1]===void 0?h=-2:(h=o.lastIndex-c[2].length,l=c[1],o=c[3]===void 0?Ni:c[3]==='"'?gA:dA):o===gA||o===dA?o=Ni:o===hA||o===uA?o=Ps:(o=Ni,r=void 0);const d=o===Ni&&s[a+1].startsWith("/>")?" ":"";n+=o===Ps?A+ed:h>=0?(i.push(l),A.slice(0,h)+Yn+A.slice(h)+hi+d):A+hi+(h===-2?a:d)}return[EA(s,n+(s[t]||"<?>")+(e===2?"</svg>":"")),i]};class Us{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let n=0,o=0;const a=e.length-1,A=this.parts,[l,c]=IA(e,t);if(this.el=Us.createElement(l,i),Mi.currentNode=this.el.content,t===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=Mi.nextNode())!==null&&A.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(Yn)){const u=c[o++],d=r.getAttribute(h).split(hi),g=/([.?@])?(.*)/.exec(u);A.push({type:1,index:n,name:g[2],strings:d,ctor:g[1]==="."?CA:g[1]==="?"?yA:g[1]==="@"?vA:Gs}),r.removeAttribute(h)}else h.startsWith(hi)&&(A.push({type:6,index:n}),r.removeAttribute(h));if(fA.test(r.tagName)){const h=r.textContent.split(hi),u=h.length-1;if(u>0){r.textContent=vr?vr.emptyScript:"";for(let d=0;d<u;d++)r.append(h[d],Ms()),Mi.nextNode(),A.push({type:2,index:++n});r.append(h[u],Ms())}}}else if(r.nodeType===8)if(r.data===Kn)A.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(hi,h+1))!==-1;)A.push({type:7,index:n}),h+=hi.length-1}n++}}static createElement(e,t){const i=Fi.createElement("template");return i.innerHTML=e,i}}function Oi(s,e,t=s,i){var o,a;if(e===Ot)return e;let r=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl;const n=Os(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,t,i)),i!==void 0?(t._$Co??(t._$Co=[]))[i]=r:t._$Cl=r),r!==void 0&&(e=Oi(s,r._$AS(s,e.values),r,i)),e}class mA{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:i}=this._$AD,r=((e==null?void 0:e.creationScope)??Fi).importNode(t,!0);Mi.currentNode=r;let n=Mi.nextNode(),o=0,a=0,A=i[0];for(;A!==void 0;){if(o===A.index){let l;A.type===2?l=new is(n,n.nextSibling,this,e):A.type===1?l=new A.ctor(n,A.name,A.strings,this,e):A.type===6&&(l=new BA(n,this,e)),this._$AV.push(l),A=i[++a]}o!==(A==null?void 0:A.index)&&(n=Mi.nextNode(),o++)}return Mi.currentNode=Fi,r}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class is{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,i,r){this.type=2,this._$AH=Xe,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Oi(this,e,t),Os(e)?e===Xe||e==null||e===""?(this._$AH!==Xe&&this._$AR(),this._$AH=Xe):e!==this._$AH&&e!==Ot&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):cA(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==Xe&&Os(this._$AH)?this._$AA.nextSibling.data=e:this.T(Fi.createTextNode(e)),this._$AH=e}$(e){var n;const{values:t,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Us.createElement(EA(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(t);else{const o=new mA(r,this),a=o.u(this.options);o.p(t),this.T(a),this._$AH=o}}_$AC(e){let t=pA.get(e.strings);return t===void 0&&pA.set(e.strings,t=new Us(e)),t}k(e){lA(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const n of e)r===t.length?t.push(i=new is(this.S(Ms()),this.S(Ms()),this,this.options)):i=t[r],i._$AI(n),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Gs{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,n){this.type=1,this._$AH=Xe,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Xe}_$AI(e,t=this,i,r){const n=this.strings;let o=!1;if(n===void 0)e=Oi(this,e,t,0),o=!Os(e)||e!==this._$AH&&e!==Ot,o&&(this._$AH=e);else{const a=e;let A,l;for(e=n[0],A=0;A<n.length-1;A++)l=Oi(this,a[i+A],t,A),l===Ot&&(l=this._$AH[A]),o||(o=!Os(l)||l!==this._$AH[A]),l===Xe?e=Xe:e!==Xe&&(e+=(l??"")+n[A+1]),this._$AH[A]=l}o&&!r&&this.j(e)}j(e){e===Xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class CA extends Gs{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Xe?void 0:e}}class yA extends Gs{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Xe)}}class vA extends Gs{constructor(e,t,i,r,n){super(e,t,i,r,n),this.type=5}_$AI(e,t=this){if((e=Oi(this,e,t,0)??Xe)===Ot)return;const i=this._$AH,r=e===Xe&&i!==Xe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==Xe&&(i===Xe||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class BA{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Oi(this,e)}}const id={P:Yn,A:hi,C:Kn,M:1,L:IA,R:mA,D:cA,V:Oi,I:is,H:Gs,N:yA,U:vA,B:CA,F:BA},Jn=Ns.litHtmlPolyfillSupport;Jn==null||Jn(Us,is),(Ns.litHtmlVersions??(Ns.litHtmlVersions=[])).push("3.1.2");const sd=(s,e,t)=>{const i=(t==null?void 0:t.renderBefore)??e;let r=i._$litPart$;if(r===void 0){const n=(t==null?void 0:t.renderBefore)??null;i._$litPart$=r=new is(e.insertBefore(Ms(),n),n,void 0,t??{})}return r._$AI(s),r};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
@@ -32,7 +32,7 @@ var playerEmbed=function(Ge){"use strict";var Jy=Object.defineProperty;var Wy=(G
32
32
  * @license
33
33
  * Copyright 2018 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */const Oi=s=>s??Xe;/**
35
+ */const bi=s=>s??Xe;/**
36
36
  * @license
37
37
  * Copyright 2020 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
@@ -53,18 +53,18 @@ var playerEmbed=function(Ge){"use strict";var Jy=Object.defineProperty;var Wy=(G
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
55
  */const Id=Symbol();class Qr{get taskComplete(){return this.t||(this.status===1?this.t=new Promise((e,t)=>{this.i=e,this.o=t}):this.status===3?this.t=Promise.reject(this.h):this.t=Promise.resolve(this.l)),this.t}constructor(e,t,i){var n;this.u=0,this.status=0,(this.p=e).addController(this);const r=typeof t=="object"?t:{task:t,args:i};this._=r.task,this.v=r.args,this.j=r.argsEqual??md,this.m=r.onComplete,this.g=r.onError,this.autoRun=r.autoRun??!0,"initialValue"in r&&(this.l=r.initialValue,this.status=2,this.k=(n=this.A)==null?void 0:n.call(this))}hostUpdate(){this.autoRun===!0&&this.O()}hostUpdated(){this.autoRun==="afterUpdate"&&this.O()}A(){if(this.v===void 0)return;const e=this.v();if(!Array.isArray(e))throw Error("The args function must return an array");return e}async O(){const e=this.A(),t=this.k;this.k=e,e===t||e===void 0||t!==void 0&&this.j(t,e)||await this.run(e)}async run(e){var o,a,A,l,c;let t,i;e??(e=this.A()),this.k=e,this.status===1?(o=this.T)==null||o.abort():(this.t=void 0,this.i=void 0,this.o=void 0),this.status=1,this.autoRun==="afterUpdate"?queueMicrotask(()=>this.p.requestUpdate()):this.p.requestUpdate();const r=++this.u;this.T=new AbortController;let n=!1;try{t=await this._(e,{signal:this.T.signal})}catch(h){n=!0,i=h}if(this.u===r){if(t===Id)this.status=0;else{if(n===!1){try{(a=this.m)==null||a.call(this,t)}catch{}this.status=2,(A=this.i)==null||A.call(this,t)}else{try{(l=this.g)==null||l.call(this,i)}catch{}this.status=3,(c=this.o)==null||c.call(this,i)}this.l=t,this.h=i}this.p.requestUpdate()}}abort(e){var t;this.status===1&&((t=this.T)==null||t.abort(e))}get value(){return this.l}get error(){return this.h}render(e){var t,i,r,n;switch(this.status){case 0:return(t=e.initial)==null?void 0:t.call(e);case 1:return(i=e.pending)==null?void 0:i.call(e);case 2:return(r=e.complete)==null?void 0:r.call(e,this.value);case 3:return(n=e.error)==null?void 0:n.call(e,this.error);default:throw Error("Unexpected status: "+this.status)}}}const md=(s,e)=>s===e||s.length===e.length&&s.every((t,i)=>!yr(t,e[i]));let Sr;const Cd=new Uint8Array(16);function yd(){if(!Sr&&(Sr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sr(Cd)}const ut=[];for(let s=0;s<256;++s)ut.push((s+256).toString(16).slice(1));function vd(s,e=0){return ut[s[e+0]]+ut[s[e+1]]+ut[s[e+2]]+ut[s[e+3]]+"-"+ut[s[e+4]]+ut[s[e+5]]+"-"+ut[s[e+6]]+ut[s[e+7]]+"-"+ut[s[e+8]]+ut[s[e+9]]+"-"+ut[s[e+10]]+ut[s[e+11]]+ut[s[e+12]]+ut[s[e+13]]+ut[s[e+14]]+ut[s[e+15]]}const wA={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ui(s,e,t){if(wA.randomUUID&&!e&&!s)return wA.randomUUID();s=s||{};const i=s.random||(s.rng||yd)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let r=0;r<16;++r)e[t+r]=i[r];return e}return vd(i)}const RA="https://d2rxhdlm2q91uk.cloudfront.net",Bd="https://d1ix11aj5kfygl.cloudfront.net",Qd="https://d157jlwnudd93d.cloudfront.net",xA="https://bshyfw4h5a.execute-api.ap-southeast-2.amazonaws.com/dev",Sd="https://gyzw7rpbq3.execute-api.ap-southeast-2.amazonaws.com/staging",bd="https://vfcjuim1l3.execute-api.ap-southeast-2.amazonaws.com/prod",wd="http://localhost:6060/v2",Rd="https://embed-dev.vouchfor.com/v2",xd="https://embed-staging.vouchfor.com/v2",Dd="https://embed.vouchfor.com/v2";function br(s){if(!["local","dev","staging","prod"].includes(s))throw new Error(`Unknown environment: ${s}`);if(s==="local")return{videoUrl:RA,publicApiUrl:xA,embedApiUrl:wd};if(s==="dev")return{videoUrl:RA,publicApiUrl:xA,embedApiUrl:Rd};if(s==="staging")return{videoUrl:Bd,publicApiUrl:Sd,embedApiUrl:xd};if(s==="prod")return{videoUrl:Qd,publicApiUrl:bd,embedApiUrl:Dd}}class Td{constructor(e){this._fetching=!1,this.getVouch=async(t,i,r)=>{var c;const{embedApiUrl:n}=br(t),o=Ui(),a=await fetch(`${n}/vouches/${r}`,{method:"GET",headers:[["X-Api-Key",i],["X-Cache-Check",o]]}),A=await a.json();return this.host.dispatchEvent(new CustomEvent("vouch:loaded",{detail:A==null?void 0:A.id})),((c=a==null?void 0:a.headers)==null?void 0:c.get("X-Cache-Check"))!==o&&fetch(`${n}/vouches/${r}`,{method:"GET",headers:[["X-Api-Key",i],["Cache-Control","max-age=0"]]}),A},this.getTemplate=async(t,i,r)=>{var c;const{embedApiUrl:n}=br(t),o=Ui(),a=await fetch(`${n}/templates/${r}`,{method:"GET",headers:[["X-Api-Key",i],["X-Cache-Check",o]]}),A=await a.json();return((c=a==null?void 0:a.headers)==null?void 0:c.get("X-Cache-Check"))!==o&&fetch(`${n}/templates/${r}`,{method:"GET",headers:[["X-Api-Key",i],["Cache-Control","max-age=0"]]}),A},this.host=e,new Qr(this.host,async([t,i,r,n,o])=>{var a,A,l,c;try{if(e.vouch=void 0,e.template=void 0,r){let h;o&&(this.fetching=!0,h=await this.getTemplate(t,i,o)),this._vouch=r,e.template=h??((A=(a=r==null?void 0:r.settings)==null?void 0:a.template)==null?void 0:A.instance)}else if(n){this.fetching=!0;const[h,u]=await Promise.all([this.getVouch(t,i,n),o?this.getTemplate(t,i,o):null]);this._vouch=h,e.template=u??((c=(l=h==null?void 0:h.settings)==null?void 0:l.template)==null?void 0:c.instance)}}finally{this.fetching=!1}},()=>[e.env,e.apiKey,e.data,e.vouchId,e.templateId]),new Qr(this.host,([t,i])=>{e.vouch=t?{...t,questions:{items:t==null?void 0:t.questions.items.filter((r,n)=>!(i!=null&&i.length)||(i==null?void 0:i.includes(n+1)))}}:void 0},()=>[this._vouch,e.questions])}set fetching(e){this._fetching!==e&&(this._fetching=e,this.host.requestUpdate())}get fetching(){return this._fetching}}const Ld=(s,e,t,i)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const r=Object.getOwnPropertyDescriptor(s,t),n=Object.getOwnPropertyDescriptor(e,t);!_d(r,n)&&i||Object.defineProperty(s,t,n)},_d=function(s,e){return s===void 0||s.configurable||s.writable===e.writable&&s.enumerable===e.enumerable&&s.configurable===e.configurable&&(s.writable||s.value===e.value)},kd=(s,e)=>{const t=Object.getPrototypeOf(e);t!==Object.getPrototypeOf(s)&&Object.setPrototypeOf(s,t)},Fd=(s,e)=>`/* Wrapped ${s}*/
56
- ${e}`,Nd=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Md=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Od=(s,e,t)=>{const i=t===""?"":`with ${t.trim()}() `,r=Fd.bind(null,i,e.toString());Object.defineProperty(r,"name",Md);const{writable:n,enumerable:o,configurable:a}=Nd;Object.defineProperty(s,"toString",{value:r,writable:n,enumerable:o,configurable:a})};function Pd(s,e,{ignoreNonConfigurable:t=!1}={}){const{name:i}=s;for(const r of Reflect.ownKeys(e))Ld(s,e,r,t);return kd(s,e),Od(s,e,i),s}const Ud=new WeakMap,DA=new WeakMap;function Xn(s,{cacheKey:e,cache:t=new Map,maxAge:i}={}){if(i===0)return s;if(typeof i=="number"){if(i>2147483647)throw new TypeError("The `maxAge` option cannot exceed 2147483647.");if(i<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const r=function(...n){var l;const o=e?e(n):n[0],a=t.get(o);if(a)return a.data;const A=s.apply(this,n);if(t.set(o,{data:A,maxAge:i?Date.now()+i:Number.POSITIVE_INFINITY}),typeof i=="number"&&i!==Number.POSITIVE_INFINITY){const c=setTimeout(()=>{t.delete(o)},i);(l=c.unref)==null||l.call(c);const h=DA.get(s)??new Set;h.add(c),DA.set(s,h)}return A};return Pd(r,s,{ignoreNonConfigurable:!0}),Ud.set(r,t),r}var TA=function(){};const Gd=(s,e,t)=>Math.min(Math.max(t,s),e),LA=(s,e,t)=>{const i=e-s;return i===0?1:(t-s)/i},zn=(s,e,t)=>-t*s+t*e+s,_A=(s,e)=>t=>Math.max(Math.min(t,e),s),Ks=s=>s%1?Number(s.toFixed(5)):s,wr=/(-)?([\d]*\.?[\d])+/g,Zn=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Hd=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Vs(s){return typeof s=="string"}const Rr={test:s=>typeof s=="number",parse:parseFloat,transform:s=>s},kA=Object.assign(Object.assign({},Rr),{transform:_A(0,1)});Object.assign(Object.assign({},Rr),{default:1});const Js=(s=>({test:e=>Vs(e)&&e.endsWith(s)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${s}`}))("%");Object.assign(Object.assign({},Js),{parse:s=>Js.parse(s)/100,transform:s=>Js.transform(s*100)});const eo=(s,e)=>t=>!!(Vs(t)&&Hd.test(t)&&t.startsWith(s)||e&&Object.prototype.hasOwnProperty.call(t,e)),FA=(s,e,t)=>i=>{if(!Vs(i))return i;const[r,n,o,a]=i.match(wr);return{[s]:parseFloat(r),[e]:parseFloat(n),[t]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Gi={test:eo("hsl","hue"),parse:FA("hue","saturation","lightness"),transform:({hue:s,saturation:e,lightness:t,alpha:i=1})=>"hsla("+Math.round(s)+", "+Js.transform(Ks(e))+", "+Js.transform(Ks(t))+", "+Ks(kA.transform(i))+")"},$d=_A(0,255),to=Object.assign(Object.assign({},Rr),{transform:s=>Math.round($d(s))}),bi={test:eo("rgb","red"),parse:FA("red","green","blue"),transform:({red:s,green:e,blue:t,alpha:i=1})=>"rgba("+to.transform(s)+", "+to.transform(e)+", "+to.transform(t)+", "+Ks(kA.transform(i))+")"};function Yd(s){let e="",t="",i="",r="";return s.length>5?(e=s.substr(1,2),t=s.substr(3,2),i=s.substr(5,2),r=s.substr(7,2)):(e=s.substr(1,1),t=s.substr(2,1),i=s.substr(3,1),r=s.substr(4,1),e+=e,t+=t,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const io={test:eo("#"),parse:Yd,transform:bi.transform},xr={test:s=>bi.test(s)||io.test(s)||Gi.test(s),parse:s=>bi.test(s)?bi.parse(s):Gi.test(s)?Gi.parse(s):io.parse(s),transform:s=>Vs(s)?s:s.hasOwnProperty("red")?bi.transform(s):Gi.transform(s)},NA="${c}",MA="${n}";function Kd(s){var e,t,i,r;return isNaN(s)&&Vs(s)&&((t=(e=s.match(wr))===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0)+((r=(i=s.match(Zn))===null||i===void 0?void 0:i.length)!==null&&r!==void 0?r:0)>0}function OA(s){typeof s=="number"&&(s=`${s}`);const e=[];let t=0;const i=s.match(Zn);i&&(t=i.length,s=s.replace(Zn,NA),e.push(...i.map(xr.parse)));const r=s.match(wr);return r&&(s=s.replace(wr,MA),e.push(...r.map(Rr.parse))),{values:e,numColors:t,tokenised:s}}function PA(s){return OA(s).values}function UA(s){const{values:e,numColors:t,tokenised:i}=OA(s),r=e.length;return n=>{let o=i;for(let a=0;a<r;a++)o=o.replace(a<t?NA:MA,a<t?xr.transform(n[a]):Ks(n[a]));return o}}const Vd=s=>typeof s=="number"?0:s;function Jd(s){const e=PA(s);return UA(s)(e.map(Vd))}const GA={test:Kd,parse:PA,createTransformer:UA,getAnimatableNone:Jd};function so(s,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<.16666666666666666?s+(e-s)*6*t:t<.5?e:t<.6666666666666666?s+(e-s)*(.6666666666666666-t)*6:s}function HA({hue:s,saturation:e,lightness:t,alpha:i}){s/=360,e/=100,t/=100;let r=0,n=0,o=0;if(!e)r=n=o=t;else{const a=t<.5?t*(1+e):t+e-t*e,A=2*t-a;r=so(A,a,s+.3333333333333333),n=so(A,a,s),o=so(A,a,s-.3333333333333333)}return{red:Math.round(r*255),green:Math.round(n*255),blue:Math.round(o*255),alpha:i}}const Wd=(s,e,t)=>{const i=s*s,r=e*e;return Math.sqrt(Math.max(0,t*(r-i)+i))},qd=[io,bi,Gi],$A=s=>qd.find(e=>e.test(s)),YA=(s,e)=>{let t=$A(s),i=$A(e),r=t.parse(s),n=i.parse(e);t===Gi&&(r=HA(r),t=bi),i===Gi&&(n=HA(n),i=bi);const o=Object.assign({},r);return a=>{for(const A in o)A!=="alpha"&&(o[A]=Wd(r[A],n[A],a));return o.alpha=zn(r.alpha,n.alpha,a),t.transform(o)}},jd=s=>typeof s=="number",Xd=(s,e)=>t=>e(s(t)),KA=(...s)=>s.reduce(Xd);function VA(s,e){return jd(s)?t=>zn(s,e,t):xr.test(s)?YA(s,e):qA(s,e)}const JA=(s,e)=>{const t=[...s],i=t.length,r=s.map((n,o)=>VA(n,e[o]));return n=>{for(let o=0;o<i;o++)t[o]=r[o](n);return t}},zd=(s,e)=>{const t=Object.assign(Object.assign({},s),e),i={};for(const r in t)s[r]!==void 0&&e[r]!==void 0&&(i[r]=VA(s[r],e[r]));return r=>{for(const n in i)t[n]=i[n](r);return t}};function WA(s){const e=GA.parse(s),t=e.length;let i=0,r=0,n=0;for(let o=0;o<t;o++)i||typeof e[o]=="number"?i++:e[o].hue!==void 0?n++:r++;return{parsed:e,numNumbers:i,numRGB:r,numHSL:n}}const qA=(s,e)=>{const t=GA.createTransformer(e),i=WA(s),r=WA(e);return i.numHSL===r.numHSL&&i.numRGB===r.numRGB&&i.numNumbers>=r.numNumbers?KA(JA(i.parsed,r.parsed),t):o=>`${o>0?e:s}`},Zd=(s,e)=>t=>zn(s,e,t);function eg(s){if(typeof s=="number")return Zd;if(typeof s=="string")return xr.test(s)?YA:qA;if(Array.isArray(s))return JA;if(typeof s=="object")return zd}function tg(s,e,t){const i=[],r=t||eg(s[0]),n=s.length-1;for(let o=0;o<n;o++){let a=r(s[o],s[o+1]);if(e){const A=Array.isArray(e)?e[o]:e;a=KA(A,a)}i.push(a)}return i}function ig([s,e],[t]){return i=>t(LA(s,e,i))}function sg(s,e){const t=s.length,i=t-1;return r=>{let n=0,o=!1;if(r<=s[0]?o=!0:r>=s[i]&&(n=i-1,o=!0),!o){let A=1;for(;A<t&&!(s[A]>r||A===i);A++);n=A-1}const a=LA(s[n],s[n+1],r);return e[n](a)}}function rg(s,e,{clamp:t=!0,ease:i,mixer:r}={}){const n=s.length;TA(n===e.length),TA(!i||!Array.isArray(i)||i.length===n-1),s[0]>s[n-1]&&(s=[].concat(s),e=[].concat(e),s.reverse(),e.reverse());const o=tg(e,i,r),a=n===2?ig(s,o):sg(s,o);return t?A=>a(Gd(s[0],s[n-1],A)):a}const Dr=s=>e=>1-s(1-e),ro=s=>e=>e<=.5?s(2*e)/2:(2-s(2*(1-e)))/2,ng=s=>e=>Math.pow(e,s),jA=s=>e=>e*e*((s+1)*e-s),og=s=>{const e=jA(s);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))},XA=1.525,ag=4/11,Ag=8/11,lg=9/10,cg=s=>s,no=ng(2),hg=Dr(no),ug=ro(no),zA=s=>1-Math.sin(Math.acos(s)),ZA=Dr(zA),dg=ro(ZA),oo=jA(XA),gg=Dr(oo),fg=ro(oo),pg=og(XA),Eg=4356/361,Ig=35442/1805,mg=16061/1805,Tr=s=>{if(s===1||s===0)return s;const e=s*s;return s<ag?7.5625*e:s<Ag?9.075*e-9.9*s+3.4:s<lg?Eg*e-Ig*s+mg:10.8*s*s-20.52*s+10.72},Cg=Dr(Tr),yg=s=>s<.5?.5*(1-Tr(1-s*2)):.5*Tr(s*2-1)+.5;var Lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function el(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ao={exports:{}};(function(s,e){(function(t,i){i(e)})(Lr,function(t){function i(x){var w,T,K=new Error(x);return w=K,T=i.prototype,Object.setPrototypeOf?Object.setPrototypeOf(w,T):w.__proto__=T,K}function r(x,w,T){var K=w.slice(0,T).split(/\n/),M=K.length,q=K[M-1].length+1;throw i(x+=" at line "+M+" col "+q+`:
56
+ ${e}`,Nd=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Md=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Od=(s,e,t)=>{const i=t===""?"":`with ${t.trim()}() `,r=Fd.bind(null,i,e.toString());Object.defineProperty(r,"name",Md);const{writable:n,enumerable:o,configurable:a}=Nd;Object.defineProperty(s,"toString",{value:r,writable:n,enumerable:o,configurable:a})};function Pd(s,e,{ignoreNonConfigurable:t=!1}={}){const{name:i}=s;for(const r of Reflect.ownKeys(e))Ld(s,e,r,t);return kd(s,e),Od(s,e,i),s}const Ud=new WeakMap,DA=new WeakMap;function Xn(s,{cacheKey:e,cache:t=new Map,maxAge:i}={}){if(i===0)return s;if(typeof i=="number"){if(i>2147483647)throw new TypeError("The `maxAge` option cannot exceed 2147483647.");if(i<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const r=function(...n){var l;const o=e?e(n):n[0],a=t.get(o);if(a)return a.data;const A=s.apply(this,n);if(t.set(o,{data:A,maxAge:i?Date.now()+i:Number.POSITIVE_INFINITY}),typeof i=="number"&&i!==Number.POSITIVE_INFINITY){const c=setTimeout(()=>{t.delete(o)},i);(l=c.unref)==null||l.call(c);const h=DA.get(s)??new Set;h.add(c),DA.set(s,h)}return A};return Pd(r,s,{ignoreNonConfigurable:!0}),Ud.set(r,t),r}var TA=function(){};const Gd=(s,e,t)=>Math.min(Math.max(t,s),e),LA=(s,e,t)=>{const i=e-s;return i===0?1:(t-s)/i},zn=(s,e,t)=>-t*s+t*e+s,_A=(s,e)=>t=>Math.max(Math.min(t,e),s),Ks=s=>s%1?Number(s.toFixed(5)):s,wr=/(-)?([\d]*\.?[\d])+/g,Zn=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Hd=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Vs(s){return typeof s=="string"}const Rr={test:s=>typeof s=="number",parse:parseFloat,transform:s=>s},kA=Object.assign(Object.assign({},Rr),{transform:_A(0,1)});Object.assign(Object.assign({},Rr),{default:1});const Js=(s=>({test:e=>Vs(e)&&e.endsWith(s)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${s}`}))("%");Object.assign(Object.assign({},Js),{parse:s=>Js.parse(s)/100,transform:s=>Js.transform(s*100)});const eo=(s,e)=>t=>!!(Vs(t)&&Hd.test(t)&&t.startsWith(s)||e&&Object.prototype.hasOwnProperty.call(t,e)),FA=(s,e,t)=>i=>{if(!Vs(i))return i;const[r,n,o,a]=i.match(wr);return{[s]:parseFloat(r),[e]:parseFloat(n),[t]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Gi={test:eo("hsl","hue"),parse:FA("hue","saturation","lightness"),transform:({hue:s,saturation:e,lightness:t,alpha:i=1})=>"hsla("+Math.round(s)+", "+Js.transform(Ks(e))+", "+Js.transform(Ks(t))+", "+Ks(kA.transform(i))+")"},$d=_A(0,255),to=Object.assign(Object.assign({},Rr),{transform:s=>Math.round($d(s))}),wi={test:eo("rgb","red"),parse:FA("red","green","blue"),transform:({red:s,green:e,blue:t,alpha:i=1})=>"rgba("+to.transform(s)+", "+to.transform(e)+", "+to.transform(t)+", "+Ks(kA.transform(i))+")"};function Yd(s){let e="",t="",i="",r="";return s.length>5?(e=s.substr(1,2),t=s.substr(3,2),i=s.substr(5,2),r=s.substr(7,2)):(e=s.substr(1,1),t=s.substr(2,1),i=s.substr(3,1),r=s.substr(4,1),e+=e,t+=t,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const io={test:eo("#"),parse:Yd,transform:wi.transform},xr={test:s=>wi.test(s)||io.test(s)||Gi.test(s),parse:s=>wi.test(s)?wi.parse(s):Gi.test(s)?Gi.parse(s):io.parse(s),transform:s=>Vs(s)?s:s.hasOwnProperty("red")?wi.transform(s):Gi.transform(s)},NA="${c}",MA="${n}";function Kd(s){var e,t,i,r;return isNaN(s)&&Vs(s)&&((t=(e=s.match(wr))===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0)+((r=(i=s.match(Zn))===null||i===void 0?void 0:i.length)!==null&&r!==void 0?r:0)>0}function OA(s){typeof s=="number"&&(s=`${s}`);const e=[];let t=0;const i=s.match(Zn);i&&(t=i.length,s=s.replace(Zn,NA),e.push(...i.map(xr.parse)));const r=s.match(wr);return r&&(s=s.replace(wr,MA),e.push(...r.map(Rr.parse))),{values:e,numColors:t,tokenised:s}}function PA(s){return OA(s).values}function UA(s){const{values:e,numColors:t,tokenised:i}=OA(s),r=e.length;return n=>{let o=i;for(let a=0;a<r;a++)o=o.replace(a<t?NA:MA,a<t?xr.transform(n[a]):Ks(n[a]));return o}}const Vd=s=>typeof s=="number"?0:s;function Jd(s){const e=PA(s);return UA(s)(e.map(Vd))}const GA={test:Kd,parse:PA,createTransformer:UA,getAnimatableNone:Jd};function so(s,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<.16666666666666666?s+(e-s)*6*t:t<.5?e:t<.6666666666666666?s+(e-s)*(.6666666666666666-t)*6:s}function HA({hue:s,saturation:e,lightness:t,alpha:i}){s/=360,e/=100,t/=100;let r=0,n=0,o=0;if(!e)r=n=o=t;else{const a=t<.5?t*(1+e):t+e-t*e,A=2*t-a;r=so(A,a,s+.3333333333333333),n=so(A,a,s),o=so(A,a,s-.3333333333333333)}return{red:Math.round(r*255),green:Math.round(n*255),blue:Math.round(o*255),alpha:i}}const Wd=(s,e,t)=>{const i=s*s,r=e*e;return Math.sqrt(Math.max(0,t*(r-i)+i))},qd=[io,wi,Gi],$A=s=>qd.find(e=>e.test(s)),YA=(s,e)=>{let t=$A(s),i=$A(e),r=t.parse(s),n=i.parse(e);t===Gi&&(r=HA(r),t=wi),i===Gi&&(n=HA(n),i=wi);const o=Object.assign({},r);return a=>{for(const A in o)A!=="alpha"&&(o[A]=Wd(r[A],n[A],a));return o.alpha=zn(r.alpha,n.alpha,a),t.transform(o)}},jd=s=>typeof s=="number",Xd=(s,e)=>t=>e(s(t)),KA=(...s)=>s.reduce(Xd);function VA(s,e){return jd(s)?t=>zn(s,e,t):xr.test(s)?YA(s,e):qA(s,e)}const JA=(s,e)=>{const t=[...s],i=t.length,r=s.map((n,o)=>VA(n,e[o]));return n=>{for(let o=0;o<i;o++)t[o]=r[o](n);return t}},zd=(s,e)=>{const t=Object.assign(Object.assign({},s),e),i={};for(const r in t)s[r]!==void 0&&e[r]!==void 0&&(i[r]=VA(s[r],e[r]));return r=>{for(const n in i)t[n]=i[n](r);return t}};function WA(s){const e=GA.parse(s),t=e.length;let i=0,r=0,n=0;for(let o=0;o<t;o++)i||typeof e[o]=="number"?i++:e[o].hue!==void 0?n++:r++;return{parsed:e,numNumbers:i,numRGB:r,numHSL:n}}const qA=(s,e)=>{const t=GA.createTransformer(e),i=WA(s),r=WA(e);return i.numHSL===r.numHSL&&i.numRGB===r.numRGB&&i.numNumbers>=r.numNumbers?KA(JA(i.parsed,r.parsed),t):o=>`${o>0?e:s}`},Zd=(s,e)=>t=>zn(s,e,t);function eg(s){if(typeof s=="number")return Zd;if(typeof s=="string")return xr.test(s)?YA:qA;if(Array.isArray(s))return JA;if(typeof s=="object")return zd}function tg(s,e,t){const i=[],r=t||eg(s[0]),n=s.length-1;for(let o=0;o<n;o++){let a=r(s[o],s[o+1]);if(e){const A=Array.isArray(e)?e[o]:e;a=KA(A,a)}i.push(a)}return i}function ig([s,e],[t]){return i=>t(LA(s,e,i))}function sg(s,e){const t=s.length,i=t-1;return r=>{let n=0,o=!1;if(r<=s[0]?o=!0:r>=s[i]&&(n=i-1,o=!0),!o){let A=1;for(;A<t&&!(s[A]>r||A===i);A++);n=A-1}const a=LA(s[n],s[n+1],r);return e[n](a)}}function rg(s,e,{clamp:t=!0,ease:i,mixer:r}={}){const n=s.length;TA(n===e.length),TA(!i||!Array.isArray(i)||i.length===n-1),s[0]>s[n-1]&&(s=[].concat(s),e=[].concat(e),s.reverse(),e.reverse());const o=tg(e,i,r),a=n===2?ig(s,o):sg(s,o);return t?A=>a(Gd(s[0],s[n-1],A)):a}const Dr=s=>e=>1-s(1-e),ro=s=>e=>e<=.5?s(2*e)/2:(2-s(2*(1-e)))/2,ng=s=>e=>Math.pow(e,s),jA=s=>e=>e*e*((s+1)*e-s),og=s=>{const e=jA(s);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))},XA=1.525,ag=4/11,Ag=8/11,lg=9/10,cg=s=>s,no=ng(2),hg=Dr(no),ug=ro(no),zA=s=>1-Math.sin(Math.acos(s)),ZA=Dr(zA),dg=ro(ZA),oo=jA(XA),gg=Dr(oo),fg=ro(oo),pg=og(XA),Eg=4356/361,Ig=35442/1805,mg=16061/1805,Tr=s=>{if(s===1||s===0)return s;const e=s*s;return s<ag?7.5625*e:s<Ag?9.075*e-9.9*s+3.4:s<lg?Eg*e-Ig*s+mg:10.8*s*s-20.52*s+10.72},Cg=Dr(Tr),yg=s=>s<.5?.5*(1-Tr(1-s*2)):.5*Tr(s*2-1)+.5;var Lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function el(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ao={exports:{}};(function(s,e){(function(t,i){i(e)})(Lr,function(t){function i(x){var w,T,K=new Error(x);return w=K,T=i.prototype,Object.setPrototypeOf?Object.setPrototypeOf(w,T):w.__proto__=T,K}function r(x,w,T){var K=w.slice(0,T).split(/\n/),M=K.length,q=K[M-1].length+1;throw i(x+=" at line "+M+" col "+q+`:
57
57
 
58
58
  `+w.split(/\n/)[M-1]+`
59
59
  `+Array(q).join(" ")+"^")}i.prototype=Object.create(Error.prototype,{name:{value:"Squirrelly Error",enumerable:!1}});var n=new Function("return this")().Promise,o=!1;try{o=new Function("return (async function(){}).constructor")()}catch(x){if(!(x instanceof SyntaxError))throw x}function a(x,w){return Object.prototype.hasOwnProperty.call(x,w)}function A(x,w,T){for(var K in w)a(w,K)&&(w[K]==null||typeof w[K]!="object"||K!=="storage"&&K!=="prefixes"||T?x[K]=w[K]:x[K]=A({},w[K]));return x}var l=/^async +/,c=/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})*}|(?!\${)[^\\`])*`/g,h=/'(?:\\[\s\w"'\\`]|[^\n\r'\\])*?'/g,u=/"(?:\\[\s\w"'\\`]|[^\n\r"\\])*?"/g,d=/[.*+\-?^${}()|[\]\\]/g;function g(x){return d.test(x)?x.replace(d,"\\$&"):x}function f(x,w){w.rmWhitespace&&(x=x.replace(/[\r\n]+/g,`
60
- `).replace(/^\s+|\s+$/gm,"")),c.lastIndex=0,h.lastIndex=0,u.lastIndex=0;var T=w.prefixes,K=[T.h,T.b,T.i,T.r,T.c,T.e].reduce(function(re,Ce){return re&&Ce?re+"|"+g(Ce):Ce?g(Ce):re},""),M=new RegExp("([|()]|=>)|('|\"|`|\\/\\*)|\\s*((\\/)?(-|_)?"+g(w.tags[1])+")","g"),q=new RegExp("([^]*?)"+g(w.tags[0])+"(-|_)?\\s*("+K+")?\\s*","g"),ie=0,ce=!1;function Ae(re,Ce){var ye,ue={f:[]},he=0,ae="c";function we(je){var ct=x.slice(ie,je),st=ct.trim();if(ae==="f")st==="safe"?ue.raw=!0:w.async&&l.test(st)?(st=st.replace(l,""),ue.f.push([st,"",!0])):ue.f.push([st,""]);else if(ae==="fp")ue.f[ue.f.length-1][1]+=st;else if(ae==="err"){if(st){var It=ct.search(/\S/);r("invalid syntax",x,ie+It)}}else ue[ae]=st;ie=je+1}for(Ce==="h"||Ce==="b"||Ce==="c"?ae="n":Ce==="r"&&(ue.raw=!0,Ce="i"),M.lastIndex=ie;(ye=M.exec(x))!==null;){var Pe=ye[1],Te=ye[2],ke=ye[3],Ue=ye[4],Le=ye[5],Se=ye.index;if(Pe)Pe==="("?(he===0&&(ae==="n"?(we(Se),ae="p"):ae==="f"&&(we(Se),ae="fp")),he++):Pe===")"?--he===0&&ae!=="c"&&(we(Se),ae="err"):he===0&&Pe==="|"?(we(Se),ae="f"):Pe==="=>"&&(we(Se),ie+=1,ae="res");else if(Te)if(Te==="/*"){var Ve=x.indexOf("*/",M.lastIndex);Ve===-1&&r("unclosed comment",x,ye.index),M.lastIndex=Ve+2}else Te==="'"?(h.lastIndex=ye.index,h.exec(x)?M.lastIndex=h.lastIndex:r("unclosed string",x,ye.index)):Te==='"'?(u.lastIndex=ye.index,u.exec(x)?M.lastIndex=u.lastIndex:r("unclosed string",x,ye.index)):Te==="`"&&(c.lastIndex=ye.index,c.exec(x)?M.lastIndex=c.lastIndex:r("unclosed string",x,ye.index));else if(ke)return we(Se),ie=Se+ye[0].length,q.lastIndex=ie,ce=Le,Ue&&Ce==="h"&&(Ce="s"),ue.t=Ce,ue}return r("unclosed tag",x,re),ue}var me=function re(Ce,ye){Ce.b=[],Ce.d=[];var ue,he=!1,ae=[];function we(It,yi){It&&(It=function(mt,ai,Ai,li){var gt,Y;return typeof ai.autoTrim=="string"?gt=Y=ai.autoTrim:Array.isArray(ai.autoTrim)&&(gt=ai.autoTrim[1],Y=ai.autoTrim[0]),(Ai||Ai===!1)&&(gt=Ai),(li||li===!1)&&(Y=li),gt==="slurp"&&Y==="slurp"?mt.trim():(gt==="_"||gt==="slurp"?mt=String.prototype.trimLeft?mt.trimLeft():mt.replace(/^[\s\uFEFF\xA0]+/,""):gt!=="-"&&gt!=="nl"||(mt=mt.replace(/^(?:\n|\r|\r\n)/,"")),Y==="_"||Y==="slurp"?mt=String.prototype.trimRight?mt.trimRight():mt.replace(/[\s\uFEFF\xA0]+$/,""):Y!=="-"&&Y!=="nl"||(mt=mt.replace(/(?:\n|\r|\r\n)$/,"")),mt)}(It,w,ce,yi))&&(It=It.replace(/\\|'/g,"\\$&").replace(/\r\n|\n|\r/g,"\\n"),ae.push(It))}for(;(ue=q.exec(x))!==null;){var Pe,Te=ue[1],ke=ue[2],Ue=ue[3]||"";for(var Le in T)if(T[Le]===Ue){Pe=Le;break}we(Te,ke),ie=ue.index+ue[0].length,Pe||r("unrecognized tag type: "+Ue,x,ie);var Se=Ae(ue.index,Pe),Ve=Se.t;if(Ve==="h"){var je=Se.n||"";w.async&&l.test(je)&&(Se.a=!0,Se.n=je.replace(l,"")),Se=re(Se),ae.push(Se)}else if(Ve==="c"){if(Ce.n===Se.n)return he?(he.d=ae,Ce.b.push(he)):Ce.d=ae,Ce;r("Helper start and end don't match",x,ue.index+ue[0].length)}else if(Ve==="b"){he?(he.d=ae,Ce.b.push(he)):Ce.d=ae;var ct=Se.n||"";w.async&&l.test(ct)&&(Se.a=!0,Se.n=ct.replace(l,"")),he=Se,ae=[]}else if(Ve==="s"){var st=Se.n||"";w.async&&l.test(st)&&(Se.a=!0,Se.n=st.replace(l,"")),ae.push(Se)}else ae.push(Se)}if(!ye)throw i('unclosed helper "'+Ce.n+'"');return we(x.slice(ie,x.length),!1),Ce.d=ae,Ce}({f:[]},!0);if(w.plugins)for(var Be=0;Be<w.plugins.length;Be++){var xe=w.plugins[Be];xe.processAST&&(me.d=xe.processAST(me.d,w))}return me.d}function p(x,w){var T=f(x,w),K="var tR='';"+(w.useWith?"with("+w.varName+"||{}){":"")+Q(T,w)+"if(cb){cb(null,tR)} return tR"+(w.useWith?"}":"");if(w.plugins)for(var M=0;M<w.plugins.length;M++){var q=w.plugins[M];q.processFnString&&(K=q.processFnString(K,w))}return K}function y(x,w){for(var T=0;T<w.length;T++){var K=w[T][0],M=w[T][1];x=(w[T][2]?"await ":"")+"c.l('F','"+K+"')("+x,M&&(x+=","+M),x+=")"}return x}function v(x,w,T,K,M,q){var ie="{exec:"+(M?"async ":"")+C(T,w,x)+",params:["+K+"]";return q&&(ie+=",name:'"+q+"'"),M&&(ie+=",async:true"),ie+="}"}function S(x,w){for(var T="[",K=0;K<x.length;K++){var M=x[K];T+=v(w,M.res||"",M.d,M.p||"",M.a,M.n),K<x.length&&(T+=",")}return T+="]"}function C(x,w,T){return"function("+w+"){var tR='';"+Q(x,T)+"return tR}"}function Q(x,w){for(var T=0,K=x.length,M="";T<K;T++){var q=x[T];if(typeof q=="string")M+="tR+='"+q+"';";else{var ie=q.t,ce=q.c||"",Ae=q.f,me=q.n||"",Be=q.p||"",xe=q.res||"",re=q.b,Ce=!!q.a;if(ie==="i"){w.defaultFilter&&(ce="c.l('F','"+w.defaultFilter+"')("+ce+")");var ye=y(ce,Ae);!q.raw&&w.autoEscape&&(ye="c.l('F','e')("+ye+")"),M+="tR+="+ye+";"}else if(ie==="h")if(w.storage.nativeHelpers.get(me))M+=w.storage.nativeHelpers.get(me)(q,w);else{var ue=(Ce?"await ":"")+"c.l('H','"+me+"')("+v(w,xe,q.d,Be,Ce);ue+=re?","+S(re,w):",[]",M+="tR+="+y(ue+=",c)",Ae)+";"}else ie==="s"?M+="tR+="+y((Ce?"await ":"")+"c.l('H','"+me+"')({params:["+Be+"]},[],c)",Ae)+";":ie==="e"&&(M+=ce+`
60
+ `).replace(/^\s+|\s+$/gm,"")),c.lastIndex=0,h.lastIndex=0,u.lastIndex=0;var T=w.prefixes,K=[T.h,T.b,T.i,T.r,T.c,T.e].reduce(function(re,Ce){return re&&Ce?re+"|"+g(Ce):Ce?g(Ce):re},""),M=new RegExp("([|()]|=>)|('|\"|`|\\/\\*)|\\s*((\\/)?(-|_)?"+g(w.tags[1])+")","g"),q=new RegExp("([^]*?)"+g(w.tags[0])+"(-|_)?\\s*("+K+")?\\s*","g"),ie=0,ce=!1;function Ae(re,Ce){var ye,ue={f:[]},he=0,ae="c";function we(je){var ct=x.slice(ie,je),st=ct.trim();if(ae==="f")st==="safe"?ue.raw=!0:w.async&&l.test(st)?(st=st.replace(l,""),ue.f.push([st,"",!0])):ue.f.push([st,""]);else if(ae==="fp")ue.f[ue.f.length-1][1]+=st;else if(ae==="err"){if(st){var mt=ct.search(/\S/);r("invalid syntax",x,ie+mt)}}else ue[ae]=st;ie=je+1}for(Ce==="h"||Ce==="b"||Ce==="c"?ae="n":Ce==="r"&&(ue.raw=!0,Ce="i"),M.lastIndex=ie;(ye=M.exec(x))!==null;){var Pe=ye[1],Te=ye[2],ke=ye[3],Ue=ye[4],Le=ye[5],Se=ye.index;if(Pe)Pe==="("?(he===0&&(ae==="n"?(we(Se),ae="p"):ae==="f"&&(we(Se),ae="fp")),he++):Pe===")"?--he===0&&ae!=="c"&&(we(Se),ae="err"):he===0&&Pe==="|"?(we(Se),ae="f"):Pe==="=>"&&(we(Se),ie+=1,ae="res");else if(Te)if(Te==="/*"){var Ve=x.indexOf("*/",M.lastIndex);Ve===-1&&r("unclosed comment",x,ye.index),M.lastIndex=Ve+2}else Te==="'"?(h.lastIndex=ye.index,h.exec(x)?M.lastIndex=h.lastIndex:r("unclosed string",x,ye.index)):Te==='"'?(u.lastIndex=ye.index,u.exec(x)?M.lastIndex=u.lastIndex:r("unclosed string",x,ye.index)):Te==="`"&&(c.lastIndex=ye.index,c.exec(x)?M.lastIndex=c.lastIndex:r("unclosed string",x,ye.index));else if(ke)return we(Se),ie=Se+ye[0].length,q.lastIndex=ie,ce=Le,Ue&&Ce==="h"&&(Ce="s"),ue.t=Ce,ue}return r("unclosed tag",x,re),ue}var me=function re(Ce,ye){Ce.b=[],Ce.d=[];var ue,he=!1,ae=[];function we(mt,yi){mt&&(mt=function(Ct,ai,Ai,li){var gt,Y;return typeof ai.autoTrim=="string"?gt=Y=ai.autoTrim:Array.isArray(ai.autoTrim)&&(gt=ai.autoTrim[1],Y=ai.autoTrim[0]),(Ai||Ai===!1)&&(gt=Ai),(li||li===!1)&&(Y=li),gt==="slurp"&&Y==="slurp"?Ct.trim():(gt==="_"||gt==="slurp"?Ct=String.prototype.trimLeft?Ct.trimLeft():Ct.replace(/^[\s\uFEFF\xA0]+/,""):gt!=="-"&&gt!=="nl"||(Ct=Ct.replace(/^(?:\n|\r|\r\n)/,"")),Y==="_"||Y==="slurp"?Ct=String.prototype.trimRight?Ct.trimRight():Ct.replace(/[\s\uFEFF\xA0]+$/,""):Y!=="-"&&Y!=="nl"||(Ct=Ct.replace(/(?:\n|\r|\r\n)$/,"")),Ct)}(mt,w,ce,yi))&&(mt=mt.replace(/\\|'/g,"\\$&").replace(/\r\n|\n|\r/g,"\\n"),ae.push(mt))}for(;(ue=q.exec(x))!==null;){var Pe,Te=ue[1],ke=ue[2],Ue=ue[3]||"";for(var Le in T)if(T[Le]===Ue){Pe=Le;break}we(Te,ke),ie=ue.index+ue[0].length,Pe||r("unrecognized tag type: "+Ue,x,ie);var Se=Ae(ue.index,Pe),Ve=Se.t;if(Ve==="h"){var je=Se.n||"";w.async&&l.test(je)&&(Se.a=!0,Se.n=je.replace(l,"")),Se=re(Se),ae.push(Se)}else if(Ve==="c"){if(Ce.n===Se.n)return he?(he.d=ae,Ce.b.push(he)):Ce.d=ae,Ce;r("Helper start and end don't match",x,ue.index+ue[0].length)}else if(Ve==="b"){he?(he.d=ae,Ce.b.push(he)):Ce.d=ae;var ct=Se.n||"";w.async&&l.test(ct)&&(Se.a=!0,Se.n=ct.replace(l,"")),he=Se,ae=[]}else if(Ve==="s"){var st=Se.n||"";w.async&&l.test(st)&&(Se.a=!0,Se.n=st.replace(l,"")),ae.push(Se)}else ae.push(Se)}if(!ye)throw i('unclosed helper "'+Ce.n+'"');return we(x.slice(ie,x.length),!1),Ce.d=ae,Ce}({f:[]},!0);if(w.plugins)for(var Be=0;Be<w.plugins.length;Be++){var xe=w.plugins[Be];xe.processAST&&(me.d=xe.processAST(me.d,w))}return me.d}function p(x,w){var T=f(x,w),K="var tR='';"+(w.useWith?"with("+w.varName+"||{}){":"")+Q(T,w)+"if(cb){cb(null,tR)} return tR"+(w.useWith?"}":"");if(w.plugins)for(var M=0;M<w.plugins.length;M++){var q=w.plugins[M];q.processFnString&&(K=q.processFnString(K,w))}return K}function y(x,w){for(var T=0;T<w.length;T++){var K=w[T][0],M=w[T][1];x=(w[T][2]?"await ":"")+"c.l('F','"+K+"')("+x,M&&(x+=","+M),x+=")"}return x}function v(x,w,T,K,M,q){var ie="{exec:"+(M?"async ":"")+C(T,w,x)+",params:["+K+"]";return q&&(ie+=",name:'"+q+"'"),M&&(ie+=",async:true"),ie+="}"}function S(x,w){for(var T="[",K=0;K<x.length;K++){var M=x[K];T+=v(w,M.res||"",M.d,M.p||"",M.a,M.n),K<x.length&&(T+=",")}return T+="]"}function C(x,w,T){return"function("+w+"){var tR='';"+Q(x,T)+"return tR}"}function Q(x,w){for(var T=0,K=x.length,M="";T<K;T++){var q=x[T];if(typeof q=="string")M+="tR+='"+q+"';";else{var ie=q.t,ce=q.c||"",Ae=q.f,me=q.n||"",Be=q.p||"",xe=q.res||"",re=q.b,Ce=!!q.a;if(ie==="i"){w.defaultFilter&&(ce="c.l('F','"+w.defaultFilter+"')("+ce+")");var ye=y(ce,Ae);!q.raw&&w.autoEscape&&(ye="c.l('F','e')("+ye+")"),M+="tR+="+ye+";"}else if(ie==="h")if(w.storage.nativeHelpers.get(me))M+=w.storage.nativeHelpers.get(me)(q,w);else{var ue=(Ce?"await ":"")+"c.l('H','"+me+"')("+v(w,xe,q.d,Be,Ce);ue+=re?","+S(re,w):",[]",M+="tR+="+y(ue+=",c)",Ae)+";"}else ie==="s"?M+="tR+="+y((Ce?"await ":"")+"c.l('H','"+me+"')({params:["+Be+"]},[],c)",Ae)+";":ie==="e"&&(M+=ce+`
61
61
  `)}}return M}var B=function(){function x(w){this.cache=w}return x.prototype.define=function(w,T){this.cache[w]=T},x.prototype.get=function(w){return this.cache[w]},x.prototype.remove=function(w){delete this.cache[w]},x.prototype.reset=function(){this.cache={}},x.prototype.load=function(w){A(this.cache,w,!0)},x}();function _(x,w,T,K){if(w&&w.length>0)throw i((K?"Native":"")+"Helper '"+x+"' doesn't accept blocks");if(T&&T.length>0)throw i((K?"Native":"")+"Helper '"+x+"' doesn't accept filters")}var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function G(x){return D[x]}var F=new B({}),H=new B({each:function(x,w){var T="",K=x.params[0];if(_("each",w,!1),x.async)return new Promise(function(q){(function ie(ce,Ae,me,Be,xe){me(ce[Ae],Ae).then(function(re){Be+=re,Ae===ce.length-1?xe(Be):ie(ce,Ae+1,me,Be,xe)})})(K,0,x.exec,T,q)});for(var M=0;M<K.length;M++)T+=x.exec(K[M],M);return T},foreach:function(x,w){var T=x.params[0];if(_("foreach",w,!1),x.async)return new Promise(function(q){(function ie(ce,Ae,me,Be,xe,re){Be(Ae[me],ce[Ae[me]]).then(function(Ce){xe+=Ce,me===Ae.length-1?re(xe):ie(ce,Ae,me+1,Be,xe,re)})})(T,Object.keys(T),0,x.exec,"",q)});var K="";for(var M in T)a(T,M)&&(K+=x.exec(M,T[M]));return K},include:function(x,w,T){_("include",w,!1);var K=T.storage.templates.get(x.params[0]);if(!K)throw i('Could not fetch template "'+x.params[0]+'"');return K(x.params[1],T)},extends:function(x,w,T){var K=x.params[1]||{};K.content=x.exec();for(var M=0;M<w.length;M++){var q=w[M];K[q.name]=q.exec()}var ie=T.storage.templates.get(x.params[0]);if(!ie)throw i('Could not fetch template "'+x.params[0]+'"');return ie(K,T)},useScope:function(x,w){return _("useScope",w,!1),x.exec(x.params[0])}}),j=new B({if:function(x,w){_("if",!1,x.f,!0);var T="if("+x.p+"){"+Q(x.d,w)+"}";if(x.b)for(var K=0;K<x.b.length;K++){var M=x.b[K];M.n==="else"?T+="else{"+Q(M.d,w)+"}":M.n==="elif"&&(T+="else if("+M.p+"){"+Q(M.d,w)+"}")}return T},try:function(x,w){if(_("try",!1,x.f,!0),!x.b||x.b.length!==1||x.b[0].n!=="catch")throw i("native helper 'try' only accepts 1 block, 'catch'");var T="try{"+Q(x.d,w)+"}",K=x.b[0];return T+="catch"+(K.res?"("+K.res+")":"")+"{"+Q(K.d,w)+"}"},block:function(x,w){return _("block",x.b,x.f,!0),"if(!"+w.varName+"["+x.p+"]){tR+=("+C(x.d,"",w)+")()}else{tR+="+w.varName+"["+x.p+"]}"}}),V=new B({e:function(x){var w=String(x);return/[&<>"']/.test(w)?w.replace(/[&<>"']/g,G):w}}),J={varName:"it",autoTrim:[!1,"nl"],autoEscape:!0,defaultFilter:!1,tags:["{{","}}"],l:function(x,w){if(x==="H"){var T=this.storage.helpers.get(w);if(T)return T;throw i("Can't find helper '"+w+"'")}if(x==="F"){var K=this.storage.filters.get(w);if(K)return K;throw i("Can't find filter '"+w+"'")}},async:!1,storage:{helpers:H,nativeHelpers:j,filters:V,templates:F},prefixes:{h:"@",b:"#",i:"",r:"*",c:"/",e:"!"},cache:!1,plugins:[],useWith:!1};function b(x,w){var T={};return A(T,J),w&&A(T,w),x&&A(T,x),T.l.bind(T),T}function R(x,w){var T=b(w||{}),K=Function;if(T.async){if(!o)throw i("This environment doesn't support async/await");K=o}try{return new K(T.varName,"c","cb",p(x,T))}catch(M){throw M instanceof SyntaxError?i(`Bad template syntax
62
62
 
63
63
  `+M.message+`
64
64
  `+Array(M.message.length+1).join("=")+`
65
65
  `+p(x,T)):M}}function U(x,w){var T;return w.cache&&w.name&&w.storage.templates.get(w.name)?w.storage.templates.get(w.name):(T=typeof x=="function"?x:R(x,w),w.cache&&w.name&&w.storage.templates.define(w.name,T),T)}J.l.bind(J),t.compile=R,t.compileScope=Q,t.compileScopeIntoFunction=C,t.compileToString=p,t.defaultConfig=J,t.filters=V,t.getConfig=b,t.helpers=H,t.nativeHelpers=j,t.parse=f,t.render=function(x,w,T,K){var M=b(T||{});if(!M.async)return U(x,M)(w,M);if(!K){if(typeof n=="function")return new n(function(q,ie){try{q(U(x,M)(w,M))}catch(ce){ie(ce)}});throw i("Please provide a callback function, this env doesn't support Promises")}try{U(x,M)(w,M,K)}catch(q){return K(q)}},t.templates=F,Object.defineProperty(t,"__esModule",{value:!0})})})(ao,ao.exports);var Ao=ao.exports;const vg=(s,e,t,i)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const r=Object.getOwnPropertyDescriptor(s,t),n=Object.getOwnPropertyDescriptor(e,t);!Bg(r,n)&&i||Object.defineProperty(s,t,n)},Bg=function(s,e){return s===void 0||s.configurable||s.writable===e.writable&&s.enumerable===e.enumerable&&s.configurable===e.configurable&&(s.writable||s.value===e.value)},Qg=(s,e)=>{const t=Object.getPrototypeOf(e);t!==Object.getPrototypeOf(s)&&Object.setPrototypeOf(s,t)},Sg=(s,e)=>`/* Wrapped ${s}*/
66
- ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Rg=(s,e,t)=>{const i=t===""?"":`with ${t.trim()}() `,r=Sg.bind(null,i,e.toString());Object.defineProperty(r,"name",wg),Object.defineProperty(s,"toString",{...bg,value:r})};function xg(s,e,{ignoreNonConfigurable:t=!1}={}){const{name:i}=s;for(const r of Reflect.ownKeys(e))vg(s,e,r,t);return Qg(s,e),Rg(s,e,i),s}const Dg=new WeakMap;function ui(s,{cacheKey:e=([i])=>i,cache:t=new Map}={}){const i=new Map,r=function(...n){const o=e(n);if(i.has(o))return i.get(o);const a=(async()=>{try{if(t&&await t.has(o))return await t.get(o);const l=await s.apply(this,n);try{return l}finally{t&&await t.set(o,l)}}finally{i.delete(o)}})();return i.set(o,a),a};return xg(r,s,{ignoreNonConfigurable:!0}),Dg.set(r,t),r}var tl={},lo={},Qe={};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=Qe.Wrap=Qe.Unit=Qe.PrintOptions=Qe.PositionType=Qe.Overflow=Qe.NodeType=Qe.MeasureMode=Qe.LogLevel=Qe.Justify=Qe.Gutter=Qe.FlexDirection=Qe.ExperimentalFeature=Qe.Errata=Qe.Edge=Qe.Display=Qe.Direction=Qe.Dimension=Qe.Align=void 0;let di=function(s){return s[s.Auto=0]="Auto",s[s.FlexStart=1]="FlexStart",s[s.Center=2]="Center",s[s.FlexEnd=3]="FlexEnd",s[s.Stretch=4]="Stretch",s[s.Baseline=5]="Baseline",s[s.SpaceBetween=6]="SpaceBetween",s[s.SpaceAround=7]="SpaceAround",s}({});Qe.Align=di;let co=function(s){return s[s.Width=0]="Width",s[s.Height=1]="Height",s}({});Qe.Dimension=co;let _r=function(s){return s[s.Inherit=0]="Inherit",s[s.LTR=1]="LTR",s[s.RTL=2]="RTL",s}({});Qe.Direction=_r;let ho=function(s){return s[s.Flex=0]="Flex",s[s.None=1]="None",s}({});Qe.Display=ho;let Jt=function(s){return s[s.Left=0]="Left",s[s.Top=1]="Top",s[s.Right=2]="Right",s[s.Bottom=3]="Bottom",s[s.Start=4]="Start",s[s.End=5]="End",s[s.Horizontal=6]="Horizontal",s[s.Vertical=7]="Vertical",s[s.All=8]="All",s}({});Qe.Edge=Jt;let Ws=function(s){return s[s.None=0]="None",s[s.StretchFlexBasis=1]="StretchFlexBasis",s[s.All=2147483647]="All",s[s.Classic=2147483646]="Classic",s}({});Qe.Errata=Ws;let kr=function(s){return s[s.WebFlexBasis=0]="WebFlexBasis",s[s.AbsolutePercentageAgainstPaddingEdge=1]="AbsolutePercentageAgainstPaddingEdge",s[s.FixJNILocalRefOverflows=2]="FixJNILocalRefOverflows",s}({});Qe.ExperimentalFeature=kr;let qs=function(s){return s[s.Column=0]="Column",s[s.ColumnReverse=1]="ColumnReverse",s[s.Row=2]="Row",s[s.RowReverse=3]="RowReverse",s}({});Qe.FlexDirection=qs;let Fr=function(s){return s[s.Column=0]="Column",s[s.Row=1]="Row",s[s.All=2]="All",s}({});Qe.Gutter=Fr;let Hi=function(s){return s[s.FlexStart=0]="FlexStart",s[s.Center=1]="Center",s[s.FlexEnd=2]="FlexEnd",s[s.SpaceBetween=3]="SpaceBetween",s[s.SpaceAround=4]="SpaceAround",s[s.SpaceEvenly=5]="SpaceEvenly",s}({});Qe.Justify=Hi;let $i=function(s){return s[s.Error=0]="Error",s[s.Warn=1]="Warn",s[s.Info=2]="Info",s[s.Debug=3]="Debug",s[s.Verbose=4]="Verbose",s[s.Fatal=5]="Fatal",s}({});Qe.LogLevel=$i;let Nr=function(s){return s[s.Undefined=0]="Undefined",s[s.Exactly=1]="Exactly",s[s.AtMost=2]="AtMost",s}({});Qe.MeasureMode=Nr;let uo=function(s){return s[s.Default=0]="Default",s[s.Text=1]="Text",s}({});Qe.NodeType=uo;let Mr=function(s){return s[s.Visible=0]="Visible",s[s.Hidden=1]="Hidden",s[s.Scroll=2]="Scroll",s}({});Qe.Overflow=Mr;let Or=function(s){return s[s.Static=0]="Static",s[s.Relative=1]="Relative",s[s.Absolute=2]="Absolute",s}({});Qe.PositionType=Or;let Pr=function(s){return s[s.Layout=1]="Layout",s[s.Style=2]="Style",s[s.Children=4]="Children",s}({});Qe.PrintOptions=Pr;let js=function(s){return s[s.Undefined=0]="Undefined",s[s.Point=1]="Point",s[s.Percent=2]="Percent",s[s.Auto=3]="Auto",s}({});Qe.Unit=js;let Ur=function(s){return s[s.NoWrap=0]="NoWrap",s[s.Wrap=1]="Wrap",s[s.WrapReverse=2]="WrapReverse",s}({});Qe.Wrap=Ur;var Tg={ALIGN_AUTO:di.Auto,ALIGN_FLEX_START:di.FlexStart,ALIGN_CENTER:di.Center,ALIGN_FLEX_END:di.FlexEnd,ALIGN_STRETCH:di.Stretch,ALIGN_BASELINE:di.Baseline,ALIGN_SPACE_BETWEEN:di.SpaceBetween,ALIGN_SPACE_AROUND:di.SpaceAround,DIMENSION_WIDTH:co.Width,DIMENSION_HEIGHT:co.Height,DIRECTION_INHERIT:_r.Inherit,DIRECTION_LTR:_r.LTR,DIRECTION_RTL:_r.RTL,DISPLAY_FLEX:ho.Flex,DISPLAY_NONE:ho.None,EDGE_LEFT:Jt.Left,EDGE_TOP:Jt.Top,EDGE_RIGHT:Jt.Right,EDGE_BOTTOM:Jt.Bottom,EDGE_START:Jt.Start,EDGE_END:Jt.End,EDGE_HORIZONTAL:Jt.Horizontal,EDGE_VERTICAL:Jt.Vertical,EDGE_ALL:Jt.All,ERRATA_NONE:Ws.None,ERRATA_STRETCH_FLEX_BASIS:Ws.StretchFlexBasis,ERRATA_ALL:Ws.All,ERRATA_CLASSIC:Ws.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:kr.WebFlexBasis,EXPERIMENTAL_FEATURE_ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE:kr.AbsolutePercentageAgainstPaddingEdge,EXPERIMENTAL_FEATURE_FIX_JNILOCAL_REF_OVERFLOWS:kr.FixJNILocalRefOverflows,FLEX_DIRECTION_COLUMN:qs.Column,FLEX_DIRECTION_COLUMN_REVERSE:qs.ColumnReverse,FLEX_DIRECTION_ROW:qs.Row,FLEX_DIRECTION_ROW_REVERSE:qs.RowReverse,GUTTER_COLUMN:Fr.Column,GUTTER_ROW:Fr.Row,GUTTER_ALL:Fr.All,JUSTIFY_FLEX_START:Hi.FlexStart,JUSTIFY_CENTER:Hi.Center,JUSTIFY_FLEX_END:Hi.FlexEnd,JUSTIFY_SPACE_BETWEEN:Hi.SpaceBetween,JUSTIFY_SPACE_AROUND:Hi.SpaceAround,JUSTIFY_SPACE_EVENLY:Hi.SpaceEvenly,LOG_LEVEL_ERROR:$i.Error,LOG_LEVEL_WARN:$i.Warn,LOG_LEVEL_INFO:$i.Info,LOG_LEVEL_DEBUG:$i.Debug,LOG_LEVEL_VERBOSE:$i.Verbose,LOG_LEVEL_FATAL:$i.Fatal,MEASURE_MODE_UNDEFINED:Nr.Undefined,MEASURE_MODE_EXACTLY:Nr.Exactly,MEASURE_MODE_AT_MOST:Nr.AtMost,NODE_TYPE_DEFAULT:uo.Default,NODE_TYPE_TEXT:uo.Text,OVERFLOW_VISIBLE:Mr.Visible,OVERFLOW_HIDDEN:Mr.Hidden,OVERFLOW_SCROLL:Mr.Scroll,POSITION_TYPE_STATIC:Or.Static,POSITION_TYPE_RELATIVE:Or.Relative,POSITION_TYPE_ABSOLUTE:Or.Absolute,PRINT_OPTIONS_LAYOUT:Pr.Layout,PRINT_OPTIONS_STYLE:Pr.Style,PRINT_OPTIONS_CHILDREN:Pr.Children,UNIT_UNDEFINED:js.Undefined,UNIT_POINT:js.Point,UNIT_PERCENT:js.Percent,UNIT_AUTO:js.Auto,WRAP_NO_WRAP:Ur.NoWrap,WRAP_WRAP:Ur.Wrap,WRAP_WRAP_REVERSE:Ur.WrapReverse};Qe.default=Tg,Object.defineProperty(lo,"__esModule",{value:!0}),lo.default=_g;var wi=Lg(Qe);function il(s){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(il=function(i){return i?t:e})(s)}function Lg(s,e){if(!e&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var t=il(e);if(t&&t.has(s))return t.get(s);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in s)if(n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)){var o=r?Object.getOwnPropertyDescriptor(s,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=s[n]}return i.default=s,t&&t.set(s,i),i}function _g(s){function e(r,n,o){const a=r[n];r[n]=function(){for(var A=arguments.length,l=new Array(A),c=0;c<A;c++)l[c]=arguments[c];return o.call(this,a,...l)}}for(const r of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding"]){const n={[wi.Unit.Point]:s.Node.prototype[r],[wi.Unit.Percent]:s.Node.prototype[`${r}Percent`],[wi.Unit.Auto]:s.Node.prototype[`${r}Auto`]};e(s.Node.prototype,r,function(o){for(var a=arguments.length,A=new Array(a>1?a-1:0),l=1;l<a;l++)A[l-1]=arguments[l];const c=A.pop();let h,u;if(c==="auto")h=wi.Unit.Auto,u=void 0;else if(typeof c=="object")h=c.unit,u=c.valueOf();else if(h=typeof c=="string"&&c.endsWith("%")?wi.Unit.Percent:wi.Unit.Point,u=parseFloat(c),!Number.isNaN(c)&&Number.isNaN(u))throw new Error(`Invalid value ${c} for ${r}`);if(!n[h])throw new Error(`Failed to execute "${r}": Unsupported unit '${c}'`);return u!==void 0?n[h].call(this,...A,u):n[h].call(this,...A)})}function t(r){return s.MeasureCallback.implement({measure:function(){const{width:n,height:o}=r(...arguments);return{width:n??NaN,height:o??NaN}}})}e(s.Node.prototype,"setMeasureFunc",function(r,n){return n?r.call(this,t(n)):this.unsetMeasureFunc()});function i(r){return s.DirtiedCallback.implement({dirtied:r})}return e(s.Node.prototype,"setDirtiedFunc",function(r,n){r.call(this,i(n))}),e(s.Config.prototype,"free",function(){s.Config.destroy(this)}),e(s.Node,"create",(r,n)=>n?s.Node.createWithConfig(n):s.Node.createDefault()),e(s.Node.prototype,"free",function(){s.Node.destroy(this)}),e(s.Node.prototype,"freeRecursive",function(){for(let r=0,n=this.getChildCount();r<n;++r)this.getChild(0).freeRecursive();this.free()}),e(s.Node.prototype,"calculateLayout",function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:wi.Direction.LTR;return r.call(this,n,o,a)}),{Config:s.Config,Node:s.Node,...wi.default}}var sl={exports:{}};(function(s,e){var t=(()=>{var i=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(r){r=r||{};var n;n||(n=typeof r<"u"?r:{});var o,a;n.ready=new Promise(function(I,m){o=I,a=m});var A=Object.assign({},n),l="";typeof document<"u"&&document.currentScript&&(l=document.currentScript.src),i&&(l=i),l.indexOf("blob:")!==0?l=l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1):l="";var c=n.print||console.log.bind(console),h=n.printErr||console.warn.bind(console);Object.assign(n,A),A=null;var u;n.wasmBinary&&(u=n.wasmBinary),n.noExitRuntime,typeof WebAssembly!="object"&&U("no native wasm support detected");var d,g=!1;function f(I,m,L){L=m+L;for(var k="";!(m>=L);){var P=I[m++];if(!P)break;if(P&128){var W=I[m++]&63;if((P&224)==192)k+=String.fromCharCode((P&31)<<6|W);else{var Z=I[m++]&63;P=(P&240)==224?(P&15)<<12|W<<6|Z:(P&7)<<18|W<<12|Z<<6|I[m++]&63,65536>P?k+=String.fromCharCode(P):(P-=65536,k+=String.fromCharCode(55296|P>>10,56320|P&1023))}}else k+=String.fromCharCode(P)}return k}var p,y,v,S,C,Q,B,_,D;function G(){var I=d.buffer;p=I,n.HEAP8=y=new Int8Array(I),n.HEAP16=S=new Int16Array(I),n.HEAP32=Q=new Int32Array(I),n.HEAPU8=v=new Uint8Array(I),n.HEAPU16=C=new Uint16Array(I),n.HEAPU32=B=new Uint32Array(I),n.HEAPF32=_=new Float32Array(I),n.HEAPF64=D=new Float64Array(I)}var F,H=[],j=[],V=[];function J(){var I=n.preRun.shift();H.unshift(I)}var b=0,R=null;function U(I){throw n.onAbort&&n.onAbort(I),I="Aborted("+I+")",h(I),g=!0,I=new WebAssembly.RuntimeError(I+". Build with -sASSERTIONS for more info."),a(I),I}function x(I){return I.startsWith("data:application/octet-stream;base64,")}var w;if(w="data:application/octet-stream;base64,AGFzbQEAAAABvgM4YAF/AGACf38AYAF/AX9gA39/fwBgAn98AGACf38Bf2ADf39/AX9gAABgA39/fABgAX8BfGADf399AX1gBX9/f39/AX9gAn9/AXxgAAF/YAZ/f31/fX8AYAR/f39/AX9gAn9/AX1gBn9/f39/fwF/YAV/f39/fwBgBH9/f38AYAN/fn8BfmAHf39/f39/fwBgBn9/f39/fwBgAn19AX1gAX0Bf2ABfwF9YAZ/fH9/f38Bf2ACf30AYAR/fHx/AGAIf39/f39/f38AYA1/f39/f39/f39/f39/AGAKf39/f39/f39/fwBgBX9/f39/AXxgBH9/fX0BfWAEfHx/fwF9YA5/fX1/f399fX9/f39/fwF/YAZ/f319f38AYAJ+fwF/YAR/fX1/AX1gA399fQF9YAF8AXxgBH98fHwAYAV/f319fQF9YA5/fX1/f399fX9/f39/fwBgB39/fX99f38AYA1/fX99f31/fX19fX1/AX9gBX9/fX19AGAEf39+fgBgB39/f39/f38Bf2ACfH8BfGAFf398fH8AYAN/f38BfWADf39/AXxgBH9/f3wAYAN/f30AYAZ/f31/fX8BfwKvAR0BYQFhAB0BYQFiAAMBYQFjABUBYQFkABIBY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C0MAAAAAIQQCQCAAKALYASIAQfDhg/wHRg0AIABBj568/AdGDQRB8CEhAQJAIABBqtWq/QdHBEAgAL4iBCAEWw0BQfghIQELIAEqAgAhBCABKAIEQQFrDgIEAQYLIABB/////3txQYCAgIACar4hBCAAQYCAgIAEcUUNAwsgBCADlEMK1yM8lCEEDAILIAQhBQtDAAAAACEEAkAgACgC3AEiAEHw4YP8B0YNACAAQY+evPwHRg0CQfAhIQECQCAAQarVqv0HRwRAIAC+IgQgBFsNAUH4ISEBCyABKgIAIQQgASgCBEEBaw4CAgEECyAAQf////97cUGAgICAAmq+IQQgAEGAgICABHFFDQELIAQgA5RDCtcjPJQhBAsgBEMAAAAAYEUNAQsgAiAEXg0BCyAFQwAAAABgRQRAIAIPCyAFIAIgAiAFXRshBAsgBAsEACAAC74BAQN/IAAtAABBIHFFBEACQCABIQMCQCACIAAiASgCECIABH8gAAUgARB+DQEgASgCEAsgASgCFCIFa0sEQCABIAMgAiABKAIkEQYAGgwCCwJAIAEoAlBBAEgNACACIQADQCAAIgRFDQEgAyAEQQFrIgBqLQAAQQpHDQALIAEgAyAEIAEoAiQRBgAgBEkNASADIARqIQMgAiAEayECIAEoAhQhBQsgBSADIAIQKxogASABKAIUIAJqNgIUCwsLC20BAX8jAEGAAmsiBSQAIARBgMAEcSACIANMckUEQCAFIAFB/wFxIAIgA2siA0GAAiADQYACSSIBGxAqGiABRQRAA0AgACAFQYACECcgA0GAAmsiA0H/AUsNAAsLIAAgBSADECcLIAVBgAJqJAALzAIBBX8gAARAIABBBGsiASgCACIFIQMgASECIABBCGsoAgAiACAAQX5xIgRHBEAgASAEayICKAIEIgAgAigCCDYCCCACKAIIIAA2AgQgBCAFaiEDCyABIAVqIgQoAgAiASABIARqQQRrKAIARwRAIAQoAgQiACAEKAIINgIIIAQoAgggADYCBCABIANqIQMLIAIgAzYCACADQXxxIAJqQQRrIANBAXI2AgAgAgJ/IAIoAgBBCGsiAUH/AE0EQCABQQN2QQFrDAELIAFBHSAB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MAQRBrIgMkACADIAI2AgwCQCAADQBB6DYtAAAEQEHkNigCACEADAELQRwQHSIAQoCAgPwDNwIUIABCADcCDCAAQQA2AgAgAEEAOgAIIABBATYCBEHkNiAANgIAQeg2QQE6AABB4DZB4DYoAgBBAWo2AgALIAAoAgQhBAJAIAAtAAhBCHEEQCAAQQBBBUEAQbwhIAIgBBERABoMAQsgAEEAQQVBvCEgAiAEEQsAGgsgA0EQaiQAECwACyAAQwAAAAAgASABQwAAAABbGzgCFCACQRBqJAALPAAgAUEDSQRAQQEgAXQhASAAKAIAIgACfyACBEAgACgCDCABcgwBCyAAKAIMIAFBf3NxCzYCDA8LEAQAC00BAn9BBBAdIQFBHBAdIgBCgICA/AM3AhQgAEIANwIMIABBADYCACAAQQA6AAggAEEBNgIEQeA2QeA2KAIAQQFqNgIAIAEgADYCACABCxAAIABBDTYCBCAAIAE2AgALEAAgAEEKNgIEIAAgATYCAAsQACAAQQc2AgQgACABNgIACyMAIAJBBUdBACACG0UEQEGoLCADIAQQYw8LQbgtIAMgBBBjCyIBAX4gASACrSADrUIghoQgBCAAERQAIgVCIIinJAEgBacLqAEBBX8gACgCVCIDKAIAIQUgAygCBCIEIAAoAhQgACgCHCIHayIGIAQgBkkbIgYEQCAFIAcgBhArGiADIAMoAgAgBmoiBTYCACADIAMoAgQgBmsiBDYCBAsgBCACIAIgBEsbIgQEQCAFIAEgBBArGiADIAMoAgAgBGoiBTYCACADIAMoAgQgBGs2AgQLIAVBADoAACAAIAAoAiwiATYCHCAAIAE2AhQgAgsEAEIACwQAQQALigUCBn4CfyABIAEoAgBBB2pBeHEiAUEQajYCACAAIQkgASkDACEDIAEpAwghBiMAQSBrIggkAAJAIAZC////////////AIMiBEKAgICAgIDAgDx9IARCgICAgICAwP/DAH1UBEAgBkIEhiADQjyIhCEEIANC//////////8PgyIDQoGAgICAgICACFoEQCAEQoGAgICAgICAwAB8IQIMAgsgBEKAgICAgICAgEB9IQIgA0KAgICAgICAgAhSDQEgAiAEQg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ASAAKAIAIQAgAyABIAIgBEEBcQR/IAEoAgAgAGooAgAFIAALEQMAQRAQHSIAIAMpAwg3AwggACADKQMANwMAIANBEGokACAACzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRBAALOQEBfyABIAAoAgQiBEEBdWohASAAKAIAIQAgASACIAMgBEEBcQR/IAEoAgAgAGooAgAFIAALEQgACwkAIAEgABECAAsFAEGbNwsPACABIAAoAgBqIAI2AgALDQAgASAAKAIAaigCAAsYAQF/QRAQHSIAQgA3AwggAEEANgIAIAALGAEBf0EQEB0iAEIANwMAIABCADcDCCAACwwAQTAQHUEAQTAQKgs3AQF/IAEgACgCBCIDQQF1aiEBIAAoAgAhACABIAIgA0EBcQR/IAEoAgAgAGooAgAFIAALERsACwUAQZY3CyEAIAAgASgCACABIAEsAAtBAEgbQZM3IAIoAgAQDzYCAAsqAQF/QQwQHSIBQQA6AAQgASAAKAIANgIIIABBADYCACABQcgjNgIAIAELBQBBkzcLBQBBkDcLIQAgACABKAIAIAEgASwAC0EASBtB/DYgAigCABAPNgIAC9gBAQR/IwBBIGsiAyQAIAEoAgAiBEHw////B0kEQAJAAkAgBEELTwRAIARBD3JBAWoiBRAdIQYgAyAFQYCAgIB4cjYCECADIAY2AgggAyAENgIMIAQgBmohBQwBCyADIAQ6ABMgA0EIaiIGIARqIQUgBEUNAQsgBiABQQRqIAQQKxoLIAVBADoAACADIAI2AgAgA0EYaiADQQhqIAMgABEDACADKAIYEBAgAygCGCIAEAYgAygCABAGIAMsABNBAEgEQCADKAIIECkLIANBIGokACAADwsQBAALKgEBf0EMEB0iAUEAOgAEIAEgACgCADYCCCAAQQA2AgAgAUHQIjYCACABCwUAQfw2C2kBAn8jAEEQayIGJAAgASAAKAIEIgdBAXVqIQEgACgCACEAIAYgASACIAMgBCAFIAdBAXEEfyABKAIAIABqKAIABSAACxEOAEEQEB0iACAGKQMINwMIIAAgBikDADcDACAGQRBqJAAgAA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QAAAQAEGvKQsBEgBBuykLHhEAAAAAEQAAAAAJEgAAAAAAEgAAEgAAGgAAABoaGgBB8ikLDhoAAAAaGhoAAAAAAAAJAEGjKgsBFABBryoLFRcAAAAAFwAAAAAJFAAAAAAAFAAAFABB3SoLARYAQekqCycVAAAAABUAAAAACRYAAAAAABYAABYAADAxMjM0NTY3ODlBQkNERUYAQbQrCwHVAEHcKwsI//////////8AQaAsCwnwHwEAAAAAAAUAQbQsCwHQAEHMLAsK0QAAANIAAADUGwBB5CwLAQIAQfQsCwj//////////wBBuC0LAQUAQcQtCwHTAEHcLQsO0QAAANQAAADoGwAAAAQAQfQtCwEBAEGELgsF/////woAQcguCwHW",!x(w)){var T=w;w=n.locateFile?n.locateFile(T,l):l+T}function K(){var I=w;try{if(I==w&&u)return new Uint8Array(u);if(x(I))try{var m=Ky(I.slice(37)),L=new Uint8Array(m.length);for(I=0;I<m.length;++I)L[I]=m.charCodeAt(I);var k=L}catch{throw Error("Converting base64 string to bytes failed.")}else k=void 0;var P=k;if(P)return P;throw"both async and sync fetching of the wasm failed"}catch(W){U(W)}}function M(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return K()}):fetch(w,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+w+"'";return I.arrayBuffer()}).catch(function(){return K()})}function q(I){for(;0<I.length;)I.shift()(n)}function ie(I){if(I===void 0)return"_unknown";I=I.replace(/[^a-zA-Z0-9_]/g,"$");var m=I.charCodeAt(0);return 48<=m&&57>=m?"_"+I:I}function ce(I,m){return I=ie(I),function(){return m.apply(this,arguments)}}var Ae=[{},{value:void 0},{value:null},{value:!0},{value:!1}],me=[];function Be(I){var m=Error,L=ce(I,function(k){this.name=I,this.message=k,k=Error(k).stack,k!==void 0&&(this.stack=this.toString()+`
67
- `+k.replace(/^Error(:[^\n]*)?\n/,""))});return L.prototype=Object.create(m.prototype),L.prototype.constructor=L,L.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},L}var xe=void 0;function re(I){throw new xe(I)}var Ce=I=>(I||re("Cannot use deleted val. handle = "+I),Ae[I].value),ye=I=>{switch(I){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var m=me.length?me.pop():Ae.length;return Ae[m]={fa:1,value:I},m}},ue=void 0,he=void 0;function ae(I){for(var m="";v[I];)m+=he[v[I++]];return m}var we=[];function Pe(){for(;we.length;){var I=we.pop();I.L.Z=!1,I.delete()}}var Te=void 0,ke={};function Ue(I,m){for(m===void 0&&re("ptr should not be undefined");I.P;)m=I.aa(m),I=I.P;return m}var Le={};function Se(I){I=Gu(I);var m=ae(I);return Bi(I),m}function Ve(I,m){var L=Le[I];return L===void 0&&re(m+" has unknown type "+Se(I)),L}function je(){}var ct=!1;function st(I){--I.count.value,I.count.value===0&&(I.S?I.T.V(I.S):I.O.M.V(I.N))}function It(I,m,L){return m===L?I:L.P===void 0?null:(I=It(I,m,L.P),I===null?null:L.ma(I))}var yi={};function mt(I,m){return m=Ue(I,m),ke[m]}var ai=void 0;function Ai(I){throw new ai(I)}function li(I,m){return m.O&&m.N||Ai("makeClassHandle requires ptr and ptrType"),!!m.T!=!!m.S&&Ai("Both smartPtrType and smartPtr must be specified"),m.count={value:1},gt(Object.create(I,{L:{value:m}}))}function gt(I){return typeof FinalizationRegistry>"u"?(gt=m=>m,I):(ct=new FinalizationRegistry(m=>{st(m.L)}),gt=m=>{var L=m.L;return L.S&&ct.register(m,{L},m),m},je=m=>{ct.unregister(m)},gt(I))}var Y={};function le(I){for(;I.length;){var m=I.pop();I.pop()(m)}}function ge(I){return this.fromWireType(Q[I>>2])}var Re={},be={};function Je(I,m,L){function k(ee){ee=L(ee),ee.length!==I.length&&Ai("Mismatched type converter count");for(var se=0;se<I.length;++se)yt(I[se],ee[se])}I.forEach(function(ee){be[ee]=m});var P=Array(m.length),W=[],Z=0;m.forEach((ee,se)=>{Le.hasOwnProperty(ee)?P[se]=Le[ee]:(W.push(ee),Re.hasOwnProperty(ee)||(Re[ee]=[]),Re[ee].push(()=>{P[se]=Le[ee],++Z,Z===W.length&&k(P)}))}),W.length===0&&k(P)}function Ct(I){switch(I){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+I)}}function yt(I,m,L={}){if(!("argPackAdvance"in m))throw new TypeError("registerType registeredInstance requires argPackAdvance");var k=m.name;if(I||re('type "'+k+'" must have a positive integer typeid pointer'),Le.hasOwnProperty(I)){if(L.ta)return;re("Cannot register type '"+k+"' twice")}Le[I]=m,delete be[I],Re.hasOwnProperty(I)&&(m=Re[I],delete Re[I],m.forEach(P=>P()))}function Ts(I){re(I.L.O.M.name+" instance already deleted")}function vt(){}function es(I,m,L){if(I[m].R===void 0){var k=I[m];I[m]=function(){return I[m].R.hasOwnProperty(arguments.length)||re("Function '"+L+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+I[m].R+")!"),I[m].R[arguments.length].apply(this,arguments)},I[m].R=[],I[m].R[k.Y]=k}}function Ls(I,m){n.hasOwnProperty(I)?(re("Cannot register public name '"+I+"' twice"),es(n,I,I),n.hasOwnProperty(void 0)&&re("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),n[I].R[void 0]=m):n[I]=m}function _i(I,m,L,k,P,W,Z,ee){this.name=I,this.constructor=m,this.W=L,this.V=k,this.P=P,this.oa=W,this.aa=Z,this.ma=ee,this.ia=[]}function Er(I,m,L){for(;m!==L;)m.aa||re("Expected null or instance of "+L.name+", got an instance of "+m.name),I=m.aa(I),m=m.P;return I}function Ir(I,m){return m===null?(this.da&&re("null is not a valid "+this.name),0):(m.L||re('Cannot pass "'+tA(m)+'" as a '+this.name),m.L.N||re("Cannot pass deleted object as a pointer of type "+this.name),Er(m.L.N,m.L.O.M,this.M))}function _s(I,m){if(m===null){if(this.da&&re("null is not a valid "+this.name),this.ca){var L=this.ea();return I!==null&&I.push(this.V,L),L}return 0}if(m.L||re('Cannot pass "'+tA(m)+'" as a '+this.name),m.L.N||re("Cannot pass deleted object as a pointer of type "+this.name),!this.ba&&m.L.O.ba&&re("Cannot convert argument of type "+(m.L.T?m.L.T.name:m.L.O.name)+" to parameter type "+this.name),L=Er(m.L.N,m.L.O.M,this.M),this.ca)switch(m.L.S===void 0&&re("Passing raw pointer to smart pointer is illegal"),this.Aa){case 0:m.L.T===this?L=m.L.S:re("Cannot convert argument of type "+(m.L.T?m.L.T.name:m.L.O.name)+" to parameter type "+this.name);break;case 1:L=m.L.S;break;case 2:if(m.L.T===this)L=m.L.S;else{var k=m.clone();L=this.wa(L,ye(function(){k.delete()})),I!==null&&I.push(this.V,L)}break;default:re("Unsupporting sharing policy")}return L}function Dy(I,m){return m===null?(this.da&&re("null is not a valid "+this.name),0):(m.L||re('Cannot pass "'+tA(m)+'" as a '+this.name),m.L.N||re("Cannot pass deleted object as a pointer of type "+this.name),m.L.O.ba&&re("Cannot convert argument of type "+m.L.O.name+" to parameter type "+this.name),Er(m.L.N,m.L.O.M,this.M))}function vi(I,m,L,k){this.name=I,this.M=m,this.da=L,this.ba=k,this.ca=!1,this.V=this.wa=this.ea=this.ja=this.Aa=this.va=void 0,m.P!==void 0?this.toWireType=_s:(this.toWireType=k?Ir:Dy,this.U=null)}function Ty(I,m){n.hasOwnProperty(I)||Ai("Replacing nonexistant public symbol"),n[I]=m,n[I].Y=void 0}function Ly(I,m){var L=[];return function(){if(L.length=0,Object.assign(L,arguments),I.includes("j")){var k=n["dynCall_"+I];k=L&&L.length?k.apply(null,[m].concat(L)):k.call(null,m)}else k=F.get(m).apply(null,L);return k}}function Yt(I,m){I=ae(I);var L=I.includes("j")?Ly(I,m):F.get(m);return typeof L!="function"&&re("unknown function pointer with signature "+I+": "+m),L}var Mu=void 0;function Mn(I,m){function L(W){P[W]||Le[W]||(be[W]?be[W].forEach(L):(k.push(W),P[W]=!0))}var k=[],P={};throw m.forEach(L),new Mu(I+": "+k.map(Se).join([", "]))}function za(I,m,L,k,P){var W=m.length;2>W&&re("argTypes array size mismatch! Must at least get return value and 'this' types!");var Z=m[1]!==null&&L!==null,ee=!1;for(L=1;L<m.length;++L)if(m[L]!==null&&m[L].U===void 0){ee=!0;break}var se=m[0].name!=="void",te=W-2,ne=Array(te),Ee=[],_e=[];return function(){if(arguments.length!==te&&re("function "+I+" called with "+arguments.length+" arguments, expected "+te+" args!"),_e.length=0,Ee.length=Z?2:1,Ee[0]=P,Z){var rt=m[1].toWireType(_e,this);Ee[1]=rt}for(var Me=0;Me<te;++Me)ne[Me]=m[Me+2].toWireType(_e,arguments[Me]),Ee.push(ne[Me]);if(Me=k.apply(null,Ee),ee)le(_e);else for(var Dt=Z?1:2;Dt<m.length;Dt++){var Kt=Dt===1?rt:ne[Dt-2];m[Dt].U!==null&&m[Dt].U(Kt)}return rt=se?m[0].fromWireType(Me):void 0,rt}}function Za(I,m){for(var L=[],k=0;k<I;k++)L.push(B[m+4*k>>2]);return L}function eA(I){4<I&&--Ae[I].fa===0&&(Ae[I]=void 0,me.push(I))}function tA(I){if(I===null)return"null";var m=typeof I;return m==="object"||m==="array"||m==="function"?I.toString():""+I}function _y(I,m){switch(m){case 2:return function(L){return this.fromWireType(_[L>>2])};case 3:return function(L){return this.fromWireType(D[L>>3])};default:throw new TypeError("Unknown float type: "+I)}}function ky(I,m,L){switch(m){case 0:return L?function(k){return y[k]}:function(k){return v[k]};case 1:return L?function(k){return S[k>>1]}:function(k){return C[k>>1]};case 2:return L?function(k){return Q[k>>2]}:function(k){return B[k>>2]};default:throw new TypeError("Unknown integer type: "+I)}}function Fy(I,m){for(var L="",k=0;!(k>=m/2);++k){var P=S[I+2*k>>1];if(P==0)break;L+=String.fromCharCode(P)}return L}function Ny(I,m,L){if(L===void 0&&(L=2147483647),2>L)return 0;L-=2;var k=m;L=L<2*I.length?L/2:I.length;for(var P=0;P<L;++P)S[m>>1]=I.charCodeAt(P),m+=2;return S[m>>1]=0,m-k}function My(I){return 2*I.length}function Oy(I,m){for(var L=0,k="";!(L>=m/4);){var P=Q[I+4*L>>2];if(P==0)break;++L,65536<=P?(P-=65536,k+=String.fromCharCode(55296|P>>10,56320|P&1023)):k+=String.fromCharCode(P)}return k}function Py(I,m,L){if(L===void 0&&(L=2147483647),4>L)return 0;var k=m;L=k+L-4;for(var P=0;P<I.length;++P){var W=I.charCodeAt(P);if(55296<=W&&57343>=W){var Z=I.charCodeAt(++P);W=65536+((W&1023)<<10)|Z&1023}if(Q[m>>2]=W,m+=4,m+4>L)break}return Q[m>>2]=0,m-k}function Uy(I){for(var m=0,L=0;L<I.length;++L){var k=I.charCodeAt(L);55296<=k&&57343>=k&&++L,m+=4}return m}var Gy={};function Ou(I){var m=Gy[I];return m===void 0?ae(I):m}var On=[];function Hy(I){var m=On.length;return On.push(I),m}function $y(I,m){for(var L=Array(I),k=0;k<I;++k)L[k]=Ve(B[m+4*k>>2],"parameter "+k);return L}var Pu=[],Yy=[null,[],[]];xe=n.BindingError=Be("BindingError"),n.count_emval_handles=function(){for(var I=0,m=5;m<Ae.length;++m)Ae[m]!==void 0&&++I;return I},n.get_first_emval=function(){for(var I=5;I<Ae.length;++I)if(Ae[I]!==void 0)return Ae[I];return null},ue=n.PureVirtualError=Be("PureVirtualError");for(var Uu=Array(256),Pn=0;256>Pn;++Pn)Uu[Pn]=String.fromCharCode(Pn);he=Uu,n.getInheritedInstanceCount=function(){return Object.keys(ke).length},n.getLiveInheritedInstances=function(){var I=[],m;for(m in ke)ke.hasOwnProperty(m)&&I.push(ke[m]);return I},n.flushPendingDeletes=Pe,n.setDelayFunction=function(I){Te=I,we.length&&Te&&Te(Pe)},ai=n.InternalError=Be("InternalError"),vt.prototype.isAliasOf=function(I){if(!(this instanceof vt&&I instanceof vt))return!1;var m=this.L.O.M,L=this.L.N,k=I.L.O.M;for(I=I.L.N;m.P;)L=m.aa(L),m=m.P;for(;k.P;)I=k.aa(I),k=k.P;return m===k&&L===I},vt.prototype.clone=function(){if(this.L.N||Ts(this),this.L.$)return this.L.count.value+=1,this;var I=gt,m=Object,L=m.create,k=Object.getPrototypeOf(this),P=this.L;return I=I(L.call(m,k,{L:{value:{count:P.count,Z:P.Z,$:P.$,N:P.N,O:P.O,S:P.S,T:P.T}}})),I.L.count.value+=1,I.L.Z=!1,I},vt.prototype.delete=function(){this.L.N||Ts(this),this.L.Z&&!this.L.$&&re("Object already scheduled for deletion"),je(this),st(this.L),this.L.$||(this.L.S=void 0,this.L.N=void 0)},vt.prototype.isDeleted=function(){return!this.L.N},vt.prototype.deleteLater=function(){return this.L.N||Ts(this),this.L.Z&&!this.L.$&&re("Object already scheduled for deletion"),we.push(this),we.length===1&&Te&&Te(Pe),this.L.Z=!0,this},vi.prototype.pa=function(I){return this.ja&&(I=this.ja(I)),I},vi.prototype.ga=function(I){this.V&&this.V(I)},vi.prototype.argPackAdvance=8,vi.prototype.readValueFromPointer=ge,vi.prototype.deleteObject=function(I){I!==null&&I.delete()},vi.prototype.fromWireType=function(I){function m(){return this.ca?li(this.M.W,{O:this.va,N:L,T:this,S:I}):li(this.M.W,{O:this,N:I})}var L=this.pa(I);if(!L)return this.ga(I),null;var k=mt(this.M,L);if(k!==void 0)return k.L.count.value===0?(k.L.N=L,k.L.S=I,k.clone()):(k=k.clone(),this.ga(I),k);if(k=this.M.oa(L),k=yi[k],!k)return m.call(this);k=this.ba?k.ka:k.pointerType;var P=It(L,this.M,k.M);return P===null?m.call(this):this.ca?li(k.M.W,{O:k,N:P,T:this,S:I}):li(k.M.W,{O:k,N:P})},Mu=n.UnboundTypeError=Be("UnboundTypeError");var Ky=typeof atob=="function"?atob:function(I){var m="",L=0;I=I.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(L++)),P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(L++)),W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(L++)),Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(L++));k=k<<2|P>>4,P=(P&15)<<4|W>>2;var ee=(W&3)<<6|Z;m+=String.fromCharCode(k),W!==64&&(m+=String.fromCharCode(P)),Z!==64&&(m+=String.fromCharCode(ee))}while(L<I.length);return m},Vy={p:function(I,m,L){I=ae(I),m=Ve(m,"wrapper"),L=Ce(L);var k=[].slice,P=m.M,W=P.W,Z=P.P.W,ee=P.P.constructor;I=ce(I,function(){P.P.ia.forEach((function(te){if(this[te]===Z[te])throw new ue("Pure virtual function "+te+" must be implemented in JavaScript")}).bind(this)),Object.defineProperty(this,"__parent",{value:W}),this.__construct.apply(this,k.call(arguments))}),W.__construct=function(){this===W&&re("Pass correct 'this' to __construct");var te=ee.implement.apply(void 0,[this].concat(k.call(arguments)));je(te);var ne=te.L;te.notifyOnDestruction(),ne.$=!0,Object.defineProperties(this,{L:{value:ne}}),gt(this),te=ne.N,te=Ue(P,te),ke.hasOwnProperty(te)?re("Tried to register registered instance: "+te):ke[te]=this},W.__destruct=function(){this===W&&re("Pass correct 'this' to __destruct"),je(this);var te=this.L.N;te=Ue(P,te),ke.hasOwnProperty(te)?delete ke[te]:re("Tried to unregister unregistered instance: "+te)},I.prototype=Object.create(W);for(var se in L)I.prototype[se]=L[se];return ye(I)},j:function(I){var m=Y[I];delete Y[I];var L=m.ea,k=m.V,P=m.ha,W=P.map(Z=>Z.sa).concat(P.map(Z=>Z.ya));Je([I],W,Z=>{var ee={};return P.forEach((se,te)=>{var ne=Z[te],Ee=se.qa,_e=se.ra,rt=Z[te+P.length],Me=se.xa,Dt=se.za;ee[se.na]={read:Kt=>ne.fromWireType(Ee(_e,Kt)),write:(Kt,mr)=>{var Qi=[];Me(Dt,Kt,rt.toWireType(Qi,mr)),le(Qi)}}}),[{name:m.name,fromWireType:function(se){var te={},ne;for(ne in ee)te[ne]=ee[ne].read(se);return k(se),te},toWireType:function(se,te){for(var ne in ee)if(!(ne in te))throw new TypeError('Missing field: "'+ne+'"');var Ee=L();for(ne in ee)ee[ne].write(Ee,te[ne]);return se!==null&&se.push(k,Ee),Ee},argPackAdvance:8,readValueFromPointer:ge,U:k}]})},v:function(){},B:function(I,m,L,k,P){var W=Ct(L);m=ae(m),yt(I,{name:m,fromWireType:function(Z){return!!Z},toWireType:function(Z,ee){return ee?k:P},argPackAdvance:8,readValueFromPointer:function(Z){if(L===1)var ee=y;else if(L===2)ee=S;else if(L===4)ee=Q;else throw new TypeError("Unknown boolean type size: "+m);return this.fromWireType(ee[Z>>W])},U:null})},f:function(I,m,L,k,P,W,Z,ee,se,te,ne,Ee,_e){ne=ae(ne),W=Yt(P,W),ee&&(ee=Yt(Z,ee)),te&&(te=Yt(se,te)),_e=Yt(Ee,_e);var rt=ie(ne);Ls(rt,function(){Mn("Cannot construct "+ne+" due to unbound types",[k])}),Je([I,m,L],k?[k]:[],function(Me){if(Me=Me[0],k)var Dt=Me.M,Kt=Dt.W;else Kt=vt.prototype;Me=ce(rt,function(){if(Object.getPrototypeOf(this)!==mr)throw new xe("Use 'new' to construct "+ne);if(Qi.X===void 0)throw new xe(ne+" has no accessible constructor");var Yu=Qi.X[arguments.length];if(Yu===void 0)throw new xe("Tried to invoke ctor of "+ne+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Qi.X).toString()+") parameters instead!");return Yu.apply(this,arguments)});var mr=Object.create(Kt,{constructor:{value:Me}});Me.prototype=mr;var Qi=new _i(ne,Me,mr,_e,Dt,W,ee,te);Dt=new vi(ne,Qi,!0,!1),Kt=new vi(ne+"*",Qi,!1,!1);var $u=new vi(ne+" const*",Qi,!1,!0);return yi[I]={pointerType:Kt,ka:$u},Ty(rt,Me),[Dt,Kt,$u]})},c:function(I,m,L,k,P,W,Z){var ee=Za(L,k);m=ae(m),W=Yt(P,W),Je([],[I],function(se){function te(){Mn("Cannot call "+ne+" due to unbound types",ee)}se=se[0];var ne=se.name+"."+m;m.startsWith("@@")&&(m=Symbol[m.substring(2)]);var Ee=se.M.constructor;return Ee[m]===void 0?(te.Y=L-1,Ee[m]=te):(es(Ee,m,ne),Ee[m].R[L-1]=te),Je([],ee,function(_e){return _e=za(ne,[_e[0],null].concat(_e.slice(1)),null,W,Z),Ee[m].R===void 0?(_e.Y=L-1,Ee[m]=_e):Ee[m].R[L-1]=_e,[]}),[]})},o:function(I,m,L,k,P,W){0<m||U();var Z=Za(m,L);P=Yt(k,P),Je([],[I],function(ee){ee=ee[0];var se="constructor "+ee.name;if(ee.M.X===void 0&&(ee.M.X=[]),ee.M.X[m-1]!==void 0)throw new xe("Cannot register multiple constructors with identical number of parameters ("+(m-1)+") for class '"+ee.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return ee.M.X[m-1]=()=>{Mn("Cannot construct "+ee.name+" due to unbound types",Z)},Je([],Z,function(te){return te.splice(1,0,null),ee.M.X[m-1]=za(se,te,null,P,W),[]}),[]})},a:function(I,m,L,k,P,W,Z,ee){var se=Za(L,k);m=ae(m),W=Yt(P,W),Je([],[I],function(te){function ne(){Mn("Cannot call "+Ee+" due to unbound types",se)}te=te[0];var Ee=te.name+"."+m;m.startsWith("@@")&&(m=Symbol[m.substring(2)]),ee&&te.M.ia.push(m);var _e=te.M.W,rt=_e[m];return rt===void 0||rt.R===void 0&&rt.className!==te.name&&rt.Y===L-2?(ne.Y=L-2,ne.className=te.name,_e[m]=ne):(es(_e,m,Ee),_e[m].R[L-2]=ne),Je([],se,function(Me){return Me=za(Ee,Me,te,W,Z),_e[m].R===void 0?(Me.Y=L-2,_e[m]=Me):_e[m].R[L-2]=Me,[]}),[]})},A:function(I,m){m=ae(m),yt(I,{name:m,fromWireType:function(L){var k=Ce(L);return eA(L),k},toWireType:function(L,k){return ye(k)},argPackAdvance:8,readValueFromPointer:ge,U:null})},m:function(I,m,L){L=Ct(L),m=ae(m),yt(I,{name:m,fromWireType:function(k){return k},toWireType:function(k,P){return P},argPackAdvance:8,readValueFromPointer:_y(m,L),U:null})},d:function(I,m,L,k,P){m=ae(m),P===-1&&(P=4294967295),P=Ct(L);var W=ee=>ee;if(k===0){var Z=32-8*L;W=ee=>ee<<Z>>>Z}L=m.includes("unsigned")?function(ee,se){return se>>>0}:function(ee,se){return se},yt(I,{name:m,fromWireType:W,toWireType:L,argPackAdvance:8,readValueFromPointer:ky(m,P,k!==0),U:null})},b:function(I,m,L){function k(W){W>>=2;var Z=B;return new P(p,Z[W+1],Z[W])}var P=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][m];L=ae(L),yt(I,{name:L,fromWireType:k,argPackAdvance:8,readValueFromPointer:k},{ta:!0})},n:function(I,m){m=ae(m);var L=m==="std::string";yt(I,{name:m,fromWireType:function(k){var P=B[k>>2],W=k+4;if(L)for(var Z=W,ee=0;ee<=P;++ee){var se=W+ee;if(ee==P||v[se]==0){if(Z=Z?f(v,Z,se-Z):"",te===void 0)var te=Z;else te+="\0",te+=Z;Z=se+1}}else{for(te=Array(P),ee=0;ee<P;++ee)te[ee]=String.fromCharCode(v[W+ee]);te=te.join("")}return Bi(k),te},toWireType:function(k,P){P instanceof ArrayBuffer&&(P=new Uint8Array(P));var W,Z=typeof P=="string";if(Z||P instanceof Uint8Array||P instanceof Uint8ClampedArray||P instanceof Int8Array||re("Cannot pass non-string to std::string"),L&&Z){var ee=0;for(W=0;W<P.length;++W){var se=P.charCodeAt(W);127>=se?ee++:2047>=se?ee+=2:55296<=se&&57343>=se?(ee+=4,++W):ee+=3}W=ee}else W=P.length;if(ee=iA(4+W+1),se=ee+4,B[ee>>2]=W,L&&Z){if(Z=se,se=W+1,W=v,0<se){se=Z+se-1;for(var te=0;te<P.length;++te){var ne=P.charCodeAt(te);if(55296<=ne&&57343>=ne){var Ee=P.charCodeAt(++te);ne=65536+((ne&1023)<<10)|Ee&1023}if(127>=ne){if(Z>=se)break;W[Z++]=ne}else{if(2047>=ne){if(Z+1>=se)break;W[Z++]=192|ne>>6}else{if(65535>=ne){if(Z+2>=se)break;W[Z++]=224|ne>>12}else{if(Z+3>=se)break;W[Z++]=240|ne>>18,W[Z++]=128|ne>>12&63}W[Z++]=128|ne>>6&63}W[Z++]=128|ne&63}}W[Z]=0}}else if(Z)for(Z=0;Z<W;++Z)te=P.charCodeAt(Z),255<te&&(Bi(se),re("String has UTF-16 code units that do not fit in 8 bits")),v[se+Z]=te;else for(Z=0;Z<W;++Z)v[se+Z]=P[Z];return k!==null&&k.push(Bi,ee),ee},argPackAdvance:8,readValueFromPointer:ge,U:function(k){Bi(k)}})},i:function(I,m,L){if(L=ae(L),m===2)var k=Fy,P=Ny,W=My,Z=()=>C,ee=1;else m===4&&(k=Oy,P=Py,W=Uy,Z=()=>B,ee=2);yt(I,{name:L,fromWireType:function(se){for(var te=B[se>>2],ne=Z(),Ee,_e=se+4,rt=0;rt<=te;++rt){var Me=se+4+rt*m;(rt==te||ne[Me>>ee]==0)&&(_e=k(_e,Me-_e),Ee===void 0?Ee=_e:(Ee+="\0",Ee+=_e),_e=Me+m)}return Bi(se),Ee},toWireType:function(se,te){typeof te!="string"&&re("Cannot pass non-string to C++ string type "+L);var ne=W(te),Ee=iA(4+ne+m);return B[Ee>>2]=ne>>ee,P(te,Ee+4,ne+m),se!==null&&se.push(Bi,Ee),Ee},argPackAdvance:8,readValueFromPointer:ge,U:function(se){Bi(se)}})},k:function(I,m,L,k,P,W){Y[I]={name:ae(m),ea:Yt(L,k),V:Yt(P,W),ha:[]}},h:function(I,m,L,k,P,W,Z,ee,se,te){Y[I].ha.push({na:ae(m),sa:L,qa:Yt(k,P),ra:W,ya:Z,xa:Yt(ee,se),za:te})},C:function(I,m){m=ae(m),yt(I,{ua:!0,name:m,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(I,m,L,k,P){I=On[I],m=Ce(m),L=Ou(L);var W=[];return B[k>>2]=ye(W),I(m,L,W,P)},t:function(I,m,L,k){I=On[I],m=Ce(m),L=Ou(L),I(m,L,null,k)},g:eA,l:function(I,m){var L=$y(I,m),k=L[0];m=k.name+"_$"+L.slice(1).map(function(Z){return Z.name}).join("_")+"$";var P=Pu[m];if(P!==void 0)return P;var W=Array(I-1);return P=Hy((Z,ee,se,te)=>{for(var ne=0,Ee=0;Ee<I-1;++Ee)W[Ee]=L[Ee+1].readValueFromPointer(te+ne),ne+=L[Ee+1].argPackAdvance;for(Z=Z[ee].apply(Z,W),Ee=0;Ee<I-1;++Ee)L[Ee+1].la&&L[Ee+1].la(W[Ee]);if(!k.ua)return k.toWireType(se,Z)}),Pu[m]=P},q:function(I){4<I&&(Ae[I].fa+=1)},r:function(I){var m=Ce(I);le(m),eA(I)},e:function(){U("")},x:function(I,m,L){v.copyWithin(I,m,m+L)},w:function(I){var m=v.length;if(I>>>=0,2147483648<I)return!1;for(var L=1;4>=L;L*=2){var k=m*(1+.2/L);k=Math.min(k,I+100663296);var P=Math;k=Math.max(I,k),P=P.min.call(P,2147483648,k+(65536-k%65536)%65536);e:{try{d.grow(P-p.byteLength+65535>>>16),G();var W=1;break e}catch{}W=void 0}if(W)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(I,m,L,k){for(var P=0,W=0;W<L;W++){var Z=B[m>>2],ee=B[m+4>>2];m+=8;for(var se=0;se<ee;se++){var te=v[Z+se],ne=Yy[I];te===0||te===10?((I===1?c:h)(f(ne,0)),ne.length=0):ne.push(te)}P+=ee}return B[k>>2]=P,0}};(function(){function I(P){n.asm=P.exports,d=n.asm.D,G(),F=n.asm.I,j.unshift(n.asm.E),b--,n.monitorRunDependencies&&n.monitorRunDependencies(b),b==0&&R&&(P=R,R=null,P())}function m(P){I(P.instance)}function L(P){return M().then(function(W){return WebAssembly.instantiate(W,k)}).then(function(W){return W}).then(P,function(W){h("failed to asynchronously prepare wasm: "+W),U(W)})}var k={a:Vy};if(b++,n.monitorRunDependencies&&n.monitorRunDependencies(b),n.instantiateWasm)try{return n.instantiateWasm(k,I)}catch(P){h("Module.instantiateWasm callback failed with error: "+P),a(P)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||x(w)||typeof fetch!="function"?L(m):fetch(w,{credentials:"same-origin"}).then(function(P){return WebAssembly.instantiateStreaming(P,k).then(m,function(W){return h("wasm streaming compile failed: "+W),h("falling back to ArrayBuffer instantiation"),L(m)})})}().catch(a),{}})(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.E).apply(null,arguments)};var Gu=n.___getTypeName=function(){return(Gu=n.___getTypeName=n.asm.F).apply(null,arguments)};n.__embind_initialize_bindings=function(){return(n.__embind_initialize_bindings=n.asm.G).apply(null,arguments)};var iA=n._malloc=function(){return(iA=n._malloc=n.asm.H).apply(null,arguments)},Bi=n._free=function(){return(Bi=n._free=n.asm.J).apply(null,arguments)};n.dynCall_jiji=function(){return(n.dynCall_jiji=n.asm.K).apply(null,arguments)};var Un;R=function I(){Un||Hu(),Un||(R=I)};function Hu(){function I(){if(!Un&&(Un=!0,n.calledRun=!0,!g)){if(q(j),o(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),n.postRun)for(typeof n.postRun=="function"&&(n.postRun=[n.postRun]);n.postRun.length;){var m=n.postRun.shift();V.unshift(m)}q(V)}}if(!(0<b)){if(n.preRun)for(typeof n.preRun=="function"&&(n.preRun=[n.preRun]);n.preRun.length;)J();q(H),0<b||(n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),I()},1)):I())}}if(n.preInit)for(typeof n.preInit=="function"&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.pop()();return Hu(),r.ready}})();s.exports=t})(sl);var kg=sl.exports;(function(s){Object.defineProperty(s,"__esModule",{value:!0});var e={loadYoga:!0};s.loadYoga=o;var t=r(lo),i=Qe;Object.keys(i).forEach(function(a){a==="default"||a==="__esModule"||Object.prototype.hasOwnProperty.call(e,a)||a in s&&s[a]===i[a]||Object.defineProperty(s,a,{enumerable:!0,get:function(){return i[a]}})});function r(a){return a&&a.__esModule?a:{default:a}}const n=kg;async function o(){return(0,t.default)(await n())}})(tl);function go({canvas:s,scenes:e,currentTime:t}){if(e&&s){const i=e.scenes.filter(({start:n,duration:o})=>t>=n&&t<=n+o);if(i.length<=0)return;const r=s.getContext("2d");if(r){const n=e.transitionDuration,o=Math.max(...e.scenes.map(({start:a,duration:A})=>a+A));r.globalCompositeOperation="lighter",r.clearRect(0,0,s.width,s.height),i.forEach(({start:a,duration:A,draw:l,transitionCanvas:c})=>{if(r.globalAlpha=1,c.width=c.height=0,c.width=s.width,c.height=s.height,c.getContext("2d")){const u=a+A,d=a===0,g=u===o;l({currentTime:t,canvas:c}),!d&&t>=a&&t<=a+n?r.globalAlpha=Math.max(0,Math.min(1,(t-a)/n)):!g&&t>=u-n&&t<=u&&(r.globalAlpha=Math.max(0,Math.min(1,(u-t)/n))),r.drawImage(c,0,0,s.width,s.height)}})}}}function Fg(s){if(typeof s=="string"){const[e,t]=s.split(":");return Math.min(parseFloat(e),parseFloat(t))}return s}function Ng(s){if(typeof s=="string"){const[e,t]=s.split(":"),i=parseFloat(e),r=parseFloat(t);return i/r}return s}function fo({resolution:s,aspectRatio:e}){const t=Fg(s),i=Ng(e),r=i>=1,n=Math.min(r?t*i:t/i,t),o=Math.max(r?t*i:t/i,t);return{resolution:t,aspectRatio:i,height:r?n:o,width:r?o:n}}function Mg({format:s,resolution:e,aspectRatio:t,sourceWidth:i,sourceHeight:r}){const{width:n,height:o}=fo({resolution:e,aspectRatio:t}),a=i/r,A=t>a;let l=1;if(s==="letterbox"||s==="letterbox-video")l=A?o/r:n/i;else if(s==="squarebox"){const g=Math.min(o,n);l=i>=r?g/r:g/i}else s==="crop"&&(l=A?n/i:o/r);const c=n/l,h=o/l,u=(i-c)/2,d=(r-h)/2;return{sx:u,sy:d,sWidth:c,sHeight:h,scale:l}}function Xs({source:s,sx:e,sy:t,sw:i,sh:r,dx:n,dy:o,dw:a,dh:A}){const l=(s==null?void 0:s.naturalWidth)??(s==null?void 0:s.videoWidth)??(s==null?void 0:s.width),c=(s==null?void 0:s.naturalHeight)??(s==null?void 0:s.videoHeight)??(s==null?void 0:s.height);e=e??0,t=t??0,i=i??l,r=r??c,i<0&&(e+=i,i=Math.abs(i)),r<0&&(t+=r,r=Math.abs(r)),a<0&&(n+=a,a=Math.abs(a)),A<0&&(o+=A,A=Math.abs(A));const h=Math.max(e,0),u=Math.min(e+i,l),d=Math.max(t,0),g=Math.min(t+r,c),f=a/i,p=A/r;return[s,h,d,u-h,g-d,e<0?n-e*f:n,t<0?o-t*p:o,(u-h)*f,(g-d)*p]}function rl({context:s,source:e,crop:t,format:i="letterbox",posX:r,posY:n,drawAreaWidth:o,drawAreaHeight:a,sourceWidth:A,sourceHeight:l,cropCanvas:c,letterboxCanvas:h}){const{x:u,y:d,width:g,height:f}=t??{},p=A*(u??0),y=l*(d??0),v=A*Math.min(1-(u??0),g??1),S=l*Math.min(1-(d??0),f??1),C=c.getContext("2d");if(C){c.width=v,c.height=S;const R=Xs({source:e,sx:p,sy:y,sw:v,sh:S,dx:0,dy:0,dw:v,dh:S});C.drawImage(...R)}const Q=v/S,{sx:B,sy:_,sWidth:D,sHeight:G,scale:F}=Mg({resolution:Math.min(o,a),aspectRatio:o/a,format:i,sourceWidth:v,sourceHeight:S}),H=c&&typeof s.filter<"u";if(i==="letterbox"||i==="squarebox"||i==="letterbox-video"&&!H){if(B<0){const R=Math.abs(B)*F;s.fillStyle="black",s.beginPath(),s.rect(r,n,R,a),s.rect(r+o-R,n,R,a),s.fill(),s.closePath()}if(_<0){const R=Math.abs(_)*F;s.fillStyle="black",s.beginPath(),s.rect(r,n,o,R),s.rect(r,n+a-R,o,R),s.fill(),s.closePath()}}if(i==="letterbox-video"&&H){const R=h.getContext("2d");if(R){h.width=v,h.height=S,s.save(),s.globalCompositeOperation="destination-out",s.fillRect(r,n,o,a);const U=Xs({source:c,sx:B,sy:_,sw:D,sh:G,dx:r,dy:n,dw:o,dh:a});s.globalCompositeOperation="source-over",s.drawImage(...U),R.save();const x=1.2,w=-(v*x-v)/2,T=-(S*x-S)/2,K=Math.min(v/20,S/20);if(R.filter=`blur(${K}px) brightness(20%)`,R.translate(w,T),R.scale(x,x),R.drawImage(c,0,0,v,S),R.restore(),s.globalCompositeOperation="destination-over",B<0){const M=o/Q,q=a/M,ie=Xs({source:h,sy:(1-q)*S/2,sh:q*S,dx:r,dy:n,dw:o,dh:a});s.drawImage(...ie)}if(_<0){const M=a*Q,q=o/M,ie=Xs({source:h,sx:(1-q)*v/2,sw:q*v,dx:r,dy:n,dw:o,dh:a});s.drawImage(...ie)}s.restore()}}else{const R=Xs({source:c,sx:B,sy:_,sw:D,sh:G,dx:r,dy:n,dw:o,dh:a});s.drawImage(...R)}const j=B*-1*F,V=_*-1*F,J=o-j*2,b=a-V*2;return{dx:j,dy:V,dw:J,dh:b}}function nl({context:s,word:e,maxW:t=1/0}){const i=[],r=s.measureText(e);if(r.width<t)return[{text:e,metrics:r}];for(let n=0;n<e.length;n++){const o=i[i.length-1],a=((o==null?void 0:o.text)??"")+e[n],A=s.measureText(a);A.width<t?i[o?i.length-1:0]={text:a,metrics:A}:i.push({text:e[n],metrics:s.measureText(e[n])})}return i}const ol=Xn(({font:s,scale:e,context:t,maxW:i,maxH:r,text:n,minSize:o,maxSize:a})=>{var A,l;let c=0;if(a){c=(o??0)*e;let u=0;for(;a*e>c+1;){c+=1;const d=Yr({context:t,font:s,fontSize:c,text:n,maxW:i});if(u=d.reduce((g,f)=>(f.metrics.width>g&&(g=f.metrics.width),g),0),u>i||d.length*c>r){c-=1;break}}}else c=parseFloat(((l=(A=s.match($r))==null?void 0:A.groups)==null?void 0:l.value)??"0")*e;return c},{cacheKey:([{font:s,text:e,minSize:t,maxSize:i,scale:r,maxW:n,maxH:o}])=>`${s}_${e}_${t}_${i}_${r}_${n}_${o}`});function Og(s,e){return typeof s=="number"?{top:s*e,right:s*e,bottom:s*e,left:s*e}:{top:typeof s.top=="number"?s.top*e:s.top,right:typeof s.right=="number"?s.right*e:s.right,bottom:typeof s.bottom=="number"?s.bottom*e:s.bottom,left:typeof s.left=="number"?s.left*e:s.left}}function al(s,e){return typeof s=="number"?{top:s*e,right:s*e,bottom:s*e,left:s*e}:{top:(typeof s.top=="number"?s.top*e:s.top)??0,right:(typeof s.right=="number"?s.right*e:s.right)??0,bottom:(typeof s.bottom=="number"?s.bottom*e:s.bottom)??0,left:(typeof s.left=="number"?s.left*e:s.left)??0}}function Al(s,e,{layout:t,scale:i=1}){const{position:r="relative",inset:n,width:o,height:a,minWidth:A,minHeight:l,maxWidth:c,maxHeight:h,flex:u,gap:d,margin:g,padding:f,direction:p="column",align:y="start",alignSelf:v,justify:S="start"}=t,C={static:s.POSITION_TYPE_STATIC,relative:s.POSITION_TYPE_RELATIVE,absolute:s.POSITION_TYPE_ABSOLUTE};if(e.setPositionType(C[r]),n){const{top:D,right:G,bottom:F,left:H}=Og(n,i);D&&e.setPosition(s.EDGE_TOP,D),G&&e.setPosition(s.EDGE_RIGHT,G),F&&e.setPosition(s.EDGE_BOTTOM,F),H&&e.setPosition(s.EDGE_LEFT,H)}const Q={row:s.FLEX_DIRECTION_ROW,column:s.FLEX_DIRECTION_COLUMN,"row-reverse":s.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":s.FLEX_DIRECTION_COLUMN_REVERSE};e.setFlexDirection(Q[p]);const B={start:s.ALIGN_FLEX_START,end:s.ALIGN_FLEX_END,center:s.ALIGN_CENTER,stretch:s.ALIGN_STRETCH};e.setAlignItems(B[y]),v&&e.setAlignSelf(B[v]);const _={start:s.JUSTIFY_FLEX_START,end:s.JUSTIFY_FLEX_END,center:s.JUSTIFY_CENTER,"space-between":s.JUSTIFY_SPACE_BETWEEN,"space-around":s.JUSTIFY_SPACE_AROUND,"space-evenly":s.JUSTIFY_SPACE_EVENLY};if(e.setJustifyContent(_[S]),g){const{top:D,right:G,bottom:F,left:H}=al(g,i);e.setMargin(s.EDGE_TOP,D),e.setMargin(s.EDGE_RIGHT,G),e.setMargin(s.EDGE_BOTTOM,F),e.setMargin(s.EDGE_LEFT,H)}if(f){const{top:D,right:G,bottom:F,left:H}=al(f,i);e.setPadding(s.EDGE_TOP,D),e.setPadding(s.EDGE_RIGHT,G),e.setPadding(s.EDGE_BOTTOM,F),e.setPadding(s.EDGE_LEFT,H)}u&&e.setFlex(u),e.setGap(s.GUTTER_ALL,(d??0)*i),o&&e.setWidth(typeof o=="number"?o*i:o),a&&(typeof a=="function"?e.setHeight("100%"):e.setHeight(typeof a=="number"?a*i:a)),A&&e.setMinWidth(typeof A=="number"?A*i:A),l&&e.setMinHeight(typeof l=="number"?l*i:l),c&&e.setMaxWidth(typeof c=="number"?c*i:c),h&&e.setMaxHeight(typeof h=="number"?h*i:h)}function ll({canvas:s,debug:e=!1,scale:t=1,position:i=[]}){i.forEach(({x:r,y:n,width:o,height:a,childNodes:A,element:l})=>{const c=s.getContext("2d",{alpha:!1});if(c){const{draw:h}=l;h&&(c.save(),h({scale:t,dx:r,dy:n,dw:o,dh:a}),e&&(c.strokeStyle="red",c.strokeRect(r,n,o,a))),ll({canvas:s,debug:e,scale:t,position:A}),c.restore()}})}function cl(s,e,t,i){const r=t.map((n,o)=>{const a=s.Node.create(),{radius:A,elements:l=[],draw:c,...h}=n;return Al(s,a,{layout:h,scale:i}),e.insertChild(a,o),{node:a,element:n,childNodes:cl(s,a,l,i)}});return e.calculateLayout(),r}function hl(s,e,t=0,i=0){const{top:r,left:n}=s.getComputedLayout();return e.map(({node:o,element:a,childNodes:A})=>{const{top:l,left:c,width:h,height:u}=o.getComputedLayout(),d=t+c,g=i+l;return{x:n+d,y:r+g,width:h,height:u,element:a,childNodes:hl(s,A,d,g)}})}function ul(s,e){s.forEach(({node:t,element:i,childNodes:r})=>{const{height:n}=i;if(n&&typeof n=="function"){const o=t.getComputedWidth(),a=t.getComputedHeight(),A=n({width:o,maxHeight:a,scale:e});t.setHeight(A)}ul(r,e)})}function Pg({yoga:s,canvas:e,origin:t,elements:i,...r}){const n={inset:{top:0,left:0},width:e.width,height:e.height,...t},o=s.Node.create();Al(s,o,{layout:n}),o.calculateLayout();const{width:a,height:A}=o.getComputedLayout(),l=Math.min(a,A)/1080,c=cl(s,o,i,l);ul(c,l),o.calculateLayout();const h=hl(o,c);return ll({...r,scale:l,canvas:e,position:h})}const Ug={linear:cg,easeIn:no,easeInOut:ug,easeOut:hg,circIn:zA,circInOut:dg,circOut:ZA,backIn:oo,backInOut:fg,backOut:gg,anticipate:pg,bounceIn:Cg,bounceInOut:yg,bounceOut:Tr},Gr=Xn((s,e,{clamp:t=!0,ease:i="easeIn",...r}={})=>rg(s,e,{...r,clamp:t,ease:Ug[i]}),{cacheKey:([s,e,t])=>JSON.stringify({from:s,to:e,options:t})}),dl=[{family:"Noto Arabic",regex:new RegExp("\\p{Script=Arabic}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansArabic-VariableFont_wdth%2Cwght.woff2",style:"normal"},{family:"Noto Chinese",regex:new RegExp("\\p{Script=Han}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansSC-VariableFont_wght.woff2",style:"normal"},{family:"Noto Hebrew",regex:new RegExp("\\p{Script=Hebrew}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansHebrew-VariableFont_wdth%2Cwght.woff2",style:"normal"},{family:"Noto Hindi",regex:new RegExp("\\p{Script=Devanagari}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansDevanagari-VariableFont_wdth%2Cwght.woff2",style:"normal"},{family:"Noto Japanese",regex:new RegExp("\\p{Script=Han}|\\p{Script=Katakana}|\\p{Script=Hiragana}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansJP-VariableFont_wght.woff2",style:"normal"},{family:"Noto Korean",regex:new RegExp("\\p{Script=Hangul}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansKR-VariableFont_wght.woff2",style:"normal"},{family:"Noto Color Emoji",regex:new RegExp("\\p{Extended_Pictographic}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoColorEmoji-Regular.woff2",style:"normal"}];function Hr({text:s,font:e}){let t=e;return dl.forEach(({family:i,regex:r})=>{r.exec(s)&&(t+=`, ${i}`)}),t}const gi=1.8,$r=/(?<value>\d+\.?\d*)(?=px)/;function gl(s,e=1){return typeof s=="number"?{topLeft:s*e,topRight:s*e,bottomRight:s*e,bottomLeft:s*e}:{topLeft:((s==null?void 0:s.topLeft)??0)*e,topRight:((s==null?void 0:s.topRight)??0)*e,bottomRight:((s==null?void 0:s.bottomRight)??0)*e,bottomLeft:((s==null?void 0:s.bottomLeft)??0)*e}}function fl(s){const{visible:e,node:t}=s,i=[...(t==null?void 0:t.elements)??[],...(s==null?void 0:s.elements)??[]];return e??(t&&t.type!=="box"&&t.type!=="gradient"?!!t.value:i==null?void 0:i.some(r=>fl(r)))}function pl({yoga:s,debug:e=!1,canvas:t,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:o=[],currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u}){return o.map(d=>{var g,f,p,y,v,S,C,Q;const{node:B,transient:_=[{from:0,duration:1/0}]}=d,D=t.getContext("2d"),G={total:a,content:A,scene:l},F={total:c,content:h,scene:u},H=_.reduce((j,{type:V="scene",from:J,duration:b,animation:R})=>{const U=J<0?F[V]+J:J;return G[V]>=U&&G[V]<=U+b&&j.push({type:V,animation:R,duration:b,from:U}),j},[]);if(D&&H.length>0&&fl(d)){let j=d.width,V=d.height;if((B==null?void 0:B.type)==="text"&&B.value){const{align:J="left"}=B,b=Hr({text:B.value,font:B.font});D.save(),D.font=b,D.textBaseline="top",D.textAlign=J,B.wrap?V=({width:R,maxHeight:U,scale:x})=>{var w,T;const K=ol({font:b,scale:x,context:D,maxW:R,maxH:U,text:B.value??"",minSize:(w=B.fill)==null?void 0:w.minSize,maxSize:(T=B.fill)==null?void 0:T.maxSize});return Yr({context:D,font:b,fontSize:K,text:B.value??"",maxW:R}).length*K}:(j=D.measureText(B.value).width,V=parseFloat(((f=(g=b.match($r))==null?void 0:g.groups)==null?void 0:f.value)??"0")),D.restore()}if((B==null?void 0:B.type)==="image"&&B.image&&B.size){const J=((p=B.image)==null?void 0:p.naturalWidth)??((y=B.image)==null?void 0:y.width),b=((v=B.image)==null?void 0:v.naturalHeight)??((S=B.image)==null?void 0:S.height),R=J/b,U=(C=B.size)==null?void 0:C.width,x=(Q=B.size)==null?void 0:Q.height;j=U??(R>=1?(x??0)*R:(x??0)/R),V=x??(R<1?(U??0)*R:(U??0)/R)}return{...d,width:j,height:V,elements:pl({yoga:s,debug:e,canvas:t,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:d.elements,currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u}),draw:({dx:J,dy:b,dw:R,dh:U,scale:x})=>{var w,T,K,M,q,ie,ce,Ae,me,Be,xe,re,Ce;if(H.forEach(ye=>{const{type:ue="scene",from:he,duration:ae,animation:we={type:"fade",duration:.3333333333333333,easing:{in:"easeOut",out:"easeOut"}}}=ye;if(we){const{type:Pe,duration:Te,easing:{in:ke="easeOut",out:Ue="easeOut"}={}}=we;if(he>0&&G[ue]<=he+Te)switch(Pe){case"fade":{const Le=Gr([he,he+Te],[0,1],{ease:ke});D.globalAlpha=Le(G[ue]);break}case"slide":{const{options:Le}=we,Se={up:[{x:0,y:U},{x:0,y:0}],right:[{x:R,y:0},{x:0,y:0}],down:[{x:0,y:-U},{x:0,y:0}],left:[{x:-R,y:0},{x:0,y:0}]},Ve=Gr([he,he+Te],Se[Le.direction.in],{ease:ke}),{x:je,y:ct}=Ve(G[ue]);D.translate(je,ct);break}}if(he+ae<F[ue]&&he+ae-Te<=G[ue])switch(Pe){case"fade":{const Le=Gr([he+ae-Te,he+ae],[1,0],{ease:Ue});D.globalAlpha=Le(G[ue]);break}case"slide":{const{options:Le}=we,Se={up:[{x:0,y:0},{x:0,y:-U}],right:[{x:0,y:0},{x:R,y:0}],down:[{x:0,y:0},{x:0,y:U}],left:[{x:0,y:0},{x:-R,y:0}]},Ve=Gr([he+ae-Te,he+ae],Se[Le.direction.out],{ease:Ue}),{x:je,y:ct}=Ve(G[ue]);D.translate(je,ct);break}}}}),B){const{type:ye}=B;if(ye==="box"){const{shadow:{color:ue="rgba(0, 0, 0, 0.5)",blur:he=0,offset:{x:ae=0,y:we=0}={}}={}}=B;if(D.save(),D.fillStyle=ue,D.shadowColor=ue,D.shadowBlur=he,D.shadowOffsetX=ae+R+t.width,D.shadowOffsetY=we+U+t.height,D.beginPath(),!d.radius)D.rect(J-R-t.width,b-U-t.height,R,U);else{const{topLeft:Pe,topRight:Te,bottomRight:ke,bottomLeft:Ue}=gl(d.radius,x);D.roundRect(J-R-t.width,b-U-t.height,R,U,[Pe,Te,ke,Ue])}D.fill(),D.closePath(),D.restore()}if(d.radius){const{topLeft:ue,topRight:he,bottomRight:ae,bottomLeft:we}=gl(d.radius,x);D.beginPath(),D.moveTo(J+Math.min(U/gi,ue),b),D.lineTo(J+R-Math.min(U/gi,he),b),D.quadraticCurveTo(J+R,b,J+R,b+Math.min(U/gi,he)),D.lineTo(J+R,b+U-Math.min(U/gi,ae)),D.quadraticCurveTo(J+R,b+U,J+R-Math.min(U/gi,ae),b+U),D.lineTo(J+Math.min(U/gi,we),b+U),D.quadraticCurveTo(J,b+U,J,b+U-Math.min(U/gi,we)),D.lineTo(J,b+Math.min(U/gi,ue)),D.quadraticCurveTo(J,b,J+Math.min(U/gi,ue),b),D.closePath(),e&&(D.strokeStyle="blue",D.stroke()),D.clip()}if(ye==="box"&&(D.save(),D.fillStyle=B.background,D.fillRect(J,b,R,U),D.restore()),ye==="text"&&B.value){const{align:ue="left"}=B,he=Hr({text:B.value,font:B.font}),ae=ol({font:he,scale:x,context:D,maxW:R,maxH:U,text:B.value??"",minSize:(w=B.fill)==null?void 0:w.minSize,maxSize:(T=B.fill)==null?void 0:T.maxSize});D.font=he.replace($r,ae.toString()),D.textBaseline="top",D.fillStyle=B.color,D.textAlign=ue;const we={left:J,center:J+R/2,right:J+R};B.wrap?Yr({context:D,font:he,fontSize:ae,text:B.value,maxW:R}).forEach((Te,ke)=>{D.fillText(Te.text,we[ue],b+ae*ke)}):D.fillText(B.value,we[ue],b)}if(ye==="image"&&B.image&&D.drawImage(B.image,J,b,R,U),ye==="video"&&((K=B.video)!=null&&K.node||(M=B.video)!=null&&M.getSource)){const ue=B.format??"letterbox",he=((ie=(q=B.video)==null?void 0:q.getSource)==null?void 0:ie.call(q,l))??B.video.node,ae=(he==null?void 0:he.videoWidth)??(he==null?void 0:he.naturalWidth)??(he==null?void 0:he.width),we=(he==null?void 0:he.videoHeight)??(he==null?void 0:he.naturalHeight)??(he==null?void 0:he.height);if(ae&&we){const{dx:Te,dy:ke,dw:Ue,dh:Le}=rl({context:D,cropCanvas:i,letterboxCanvas:n,source:he,format:ue,crop:(ce=B==null?void 0:B.value)==null?void 0:ce.crop,sourceWidth:ae,sourceHeight:we,posX:J,posY:b,drawAreaWidth:R,drawAreaHeight:U});B.elements&&po({yoga:s,debug:e,canvas:t,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:B.elements,currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u,origin:{inset:{top:Math.max(b,b+ke),left:Math.max(J,J+Te)},width:Math.min(R,Ue),height:Math.min(U,Le)}})}const Pe=1/3;if(B.poster&&a>=0&&a<=Pe){D.save(),D.globalAlpha=1-a/Pe;const Te=((Ae=B.poster)==null?void 0:Ae.naturalWidth)??((me=B.poster)==null?void 0:me.width),ke=((Be=B.poster)==null?void 0:Be.naturalHeight)??((xe=B.poster)==null?void 0:xe.height);r.width=r.height=0,r.width=R,r.height=U;const Ue=r.getContext("2d");if(Ue&&Te&&ke){const{dx:Le,dy:Se,dw:Ve,dh:je}=rl({context:Ue,cropCanvas:i,letterboxCanvas:n,source:B.poster,format:ue,crop:(re=B==null?void 0:B.value)==null?void 0:re.crop,sourceWidth:Te,sourceHeight:ke,posX:0,posY:0,drawAreaWidth:R,drawAreaHeight:U});B.elements&&po({yoga:s,debug:e,canvas:r,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:B.elements,currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u,origin:{inset:{top:Math.max(0,Se),left:Math.max(0,Le)},width:Math.min(R,Ve),height:Math.min(U,je)}}),D.drawImage(r,J,b,R,U),D.restore()}}}if(ye==="gradient"&&B.value){const ue=D.createLinearGradient(J+R,b,J+R,b+U);(Ce=B.value)==null||Ce.forEach(he=>{ue.addColorStop(he.percent,he.color)}),D.fillStyle=ue,D.fillRect(J,b,R,U)}}}}}}).filter(Boolean)}function po({yoga:s,debug:e,canvas:t,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:o,currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u,...d}){return Pg({...d,yoga:s,debug:e,canvas:t,elements:pl({yoga:s,debug:e,canvas:t,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:o,currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u})})}const Yr=Xn(({context:s,font:e,fontSize:t,text:i,maxW:r=1/0})=>{try{return s.save(),s.font=e.replace($r,t.toString()),i.split(`
66
+ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Rg=(s,e,t)=>{const i=t===""?"":`with ${t.trim()}() `,r=Sg.bind(null,i,e.toString());Object.defineProperty(r,"name",wg),Object.defineProperty(s,"toString",{...bg,value:r})};function xg(s,e,{ignoreNonConfigurable:t=!1}={}){const{name:i}=s;for(const r of Reflect.ownKeys(e))vg(s,e,r,t);return Qg(s,e),Rg(s,e,i),s}const Dg=new WeakMap;function ui(s,{cacheKey:e=([i])=>i,cache:t=new Map}={}){const i=new Map,r=function(...n){const o=e(n);if(i.has(o))return i.get(o);const a=(async()=>{try{if(t&&await t.has(o))return await t.get(o);const l=await s.apply(this,n);try{return l}finally{t&&await t.set(o,l)}}finally{i.delete(o)}})();return i.set(o,a),a};return xg(r,s,{ignoreNonConfigurable:!0}),Dg.set(r,t),r}var tl={},lo={},Qe={};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=Qe.Wrap=Qe.Unit=Qe.PrintOptions=Qe.PositionType=Qe.Overflow=Qe.NodeType=Qe.MeasureMode=Qe.LogLevel=Qe.Justify=Qe.Gutter=Qe.FlexDirection=Qe.ExperimentalFeature=Qe.Errata=Qe.Edge=Qe.Display=Qe.Direction=Qe.Dimension=Qe.Align=void 0;let di=function(s){return s[s.Auto=0]="Auto",s[s.FlexStart=1]="FlexStart",s[s.Center=2]="Center",s[s.FlexEnd=3]="FlexEnd",s[s.Stretch=4]="Stretch",s[s.Baseline=5]="Baseline",s[s.SpaceBetween=6]="SpaceBetween",s[s.SpaceAround=7]="SpaceAround",s}({});Qe.Align=di;let co=function(s){return s[s.Width=0]="Width",s[s.Height=1]="Height",s}({});Qe.Dimension=co;let _r=function(s){return s[s.Inherit=0]="Inherit",s[s.LTR=1]="LTR",s[s.RTL=2]="RTL",s}({});Qe.Direction=_r;let ho=function(s){return s[s.Flex=0]="Flex",s[s.None=1]="None",s}({});Qe.Display=ho;let Jt=function(s){return s[s.Left=0]="Left",s[s.Top=1]="Top",s[s.Right=2]="Right",s[s.Bottom=3]="Bottom",s[s.Start=4]="Start",s[s.End=5]="End",s[s.Horizontal=6]="Horizontal",s[s.Vertical=7]="Vertical",s[s.All=8]="All",s}({});Qe.Edge=Jt;let Ws=function(s){return s[s.None=0]="None",s[s.StretchFlexBasis=1]="StretchFlexBasis",s[s.All=2147483647]="All",s[s.Classic=2147483646]="Classic",s}({});Qe.Errata=Ws;let kr=function(s){return s[s.WebFlexBasis=0]="WebFlexBasis",s[s.AbsolutePercentageAgainstPaddingEdge=1]="AbsolutePercentageAgainstPaddingEdge",s[s.FixJNILocalRefOverflows=2]="FixJNILocalRefOverflows",s}({});Qe.ExperimentalFeature=kr;let qs=function(s){return s[s.Column=0]="Column",s[s.ColumnReverse=1]="ColumnReverse",s[s.Row=2]="Row",s[s.RowReverse=3]="RowReverse",s}({});Qe.FlexDirection=qs;let Fr=function(s){return s[s.Column=0]="Column",s[s.Row=1]="Row",s[s.All=2]="All",s}({});Qe.Gutter=Fr;let Hi=function(s){return s[s.FlexStart=0]="FlexStart",s[s.Center=1]="Center",s[s.FlexEnd=2]="FlexEnd",s[s.SpaceBetween=3]="SpaceBetween",s[s.SpaceAround=4]="SpaceAround",s[s.SpaceEvenly=5]="SpaceEvenly",s}({});Qe.Justify=Hi;let $i=function(s){return s[s.Error=0]="Error",s[s.Warn=1]="Warn",s[s.Info=2]="Info",s[s.Debug=3]="Debug",s[s.Verbose=4]="Verbose",s[s.Fatal=5]="Fatal",s}({});Qe.LogLevel=$i;let Nr=function(s){return s[s.Undefined=0]="Undefined",s[s.Exactly=1]="Exactly",s[s.AtMost=2]="AtMost",s}({});Qe.MeasureMode=Nr;let uo=function(s){return s[s.Default=0]="Default",s[s.Text=1]="Text",s}({});Qe.NodeType=uo;let Mr=function(s){return s[s.Visible=0]="Visible",s[s.Hidden=1]="Hidden",s[s.Scroll=2]="Scroll",s}({});Qe.Overflow=Mr;let Or=function(s){return s[s.Static=0]="Static",s[s.Relative=1]="Relative",s[s.Absolute=2]="Absolute",s}({});Qe.PositionType=Or;let Pr=function(s){return s[s.Layout=1]="Layout",s[s.Style=2]="Style",s[s.Children=4]="Children",s}({});Qe.PrintOptions=Pr;let js=function(s){return s[s.Undefined=0]="Undefined",s[s.Point=1]="Point",s[s.Percent=2]="Percent",s[s.Auto=3]="Auto",s}({});Qe.Unit=js;let Ur=function(s){return s[s.NoWrap=0]="NoWrap",s[s.Wrap=1]="Wrap",s[s.WrapReverse=2]="WrapReverse",s}({});Qe.Wrap=Ur;var Tg={ALIGN_AUTO:di.Auto,ALIGN_FLEX_START:di.FlexStart,ALIGN_CENTER:di.Center,ALIGN_FLEX_END:di.FlexEnd,ALIGN_STRETCH:di.Stretch,ALIGN_BASELINE:di.Baseline,ALIGN_SPACE_BETWEEN:di.SpaceBetween,ALIGN_SPACE_AROUND:di.SpaceAround,DIMENSION_WIDTH:co.Width,DIMENSION_HEIGHT:co.Height,DIRECTION_INHERIT:_r.Inherit,DIRECTION_LTR:_r.LTR,DIRECTION_RTL:_r.RTL,DISPLAY_FLEX:ho.Flex,DISPLAY_NONE:ho.None,EDGE_LEFT:Jt.Left,EDGE_TOP:Jt.Top,EDGE_RIGHT:Jt.Right,EDGE_BOTTOM:Jt.Bottom,EDGE_START:Jt.Start,EDGE_END:Jt.End,EDGE_HORIZONTAL:Jt.Horizontal,EDGE_VERTICAL:Jt.Vertical,EDGE_ALL:Jt.All,ERRATA_NONE:Ws.None,ERRATA_STRETCH_FLEX_BASIS:Ws.StretchFlexBasis,ERRATA_ALL:Ws.All,ERRATA_CLASSIC:Ws.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:kr.WebFlexBasis,EXPERIMENTAL_FEATURE_ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE:kr.AbsolutePercentageAgainstPaddingEdge,EXPERIMENTAL_FEATURE_FIX_JNILOCAL_REF_OVERFLOWS:kr.FixJNILocalRefOverflows,FLEX_DIRECTION_COLUMN:qs.Column,FLEX_DIRECTION_COLUMN_REVERSE:qs.ColumnReverse,FLEX_DIRECTION_ROW:qs.Row,FLEX_DIRECTION_ROW_REVERSE:qs.RowReverse,GUTTER_COLUMN:Fr.Column,GUTTER_ROW:Fr.Row,GUTTER_ALL:Fr.All,JUSTIFY_FLEX_START:Hi.FlexStart,JUSTIFY_CENTER:Hi.Center,JUSTIFY_FLEX_END:Hi.FlexEnd,JUSTIFY_SPACE_BETWEEN:Hi.SpaceBetween,JUSTIFY_SPACE_AROUND:Hi.SpaceAround,JUSTIFY_SPACE_EVENLY:Hi.SpaceEvenly,LOG_LEVEL_ERROR:$i.Error,LOG_LEVEL_WARN:$i.Warn,LOG_LEVEL_INFO:$i.Info,LOG_LEVEL_DEBUG:$i.Debug,LOG_LEVEL_VERBOSE:$i.Verbose,LOG_LEVEL_FATAL:$i.Fatal,MEASURE_MODE_UNDEFINED:Nr.Undefined,MEASURE_MODE_EXACTLY:Nr.Exactly,MEASURE_MODE_AT_MOST:Nr.AtMost,NODE_TYPE_DEFAULT:uo.Default,NODE_TYPE_TEXT:uo.Text,OVERFLOW_VISIBLE:Mr.Visible,OVERFLOW_HIDDEN:Mr.Hidden,OVERFLOW_SCROLL:Mr.Scroll,POSITION_TYPE_STATIC:Or.Static,POSITION_TYPE_RELATIVE:Or.Relative,POSITION_TYPE_ABSOLUTE:Or.Absolute,PRINT_OPTIONS_LAYOUT:Pr.Layout,PRINT_OPTIONS_STYLE:Pr.Style,PRINT_OPTIONS_CHILDREN:Pr.Children,UNIT_UNDEFINED:js.Undefined,UNIT_POINT:js.Point,UNIT_PERCENT:js.Percent,UNIT_AUTO:js.Auto,WRAP_NO_WRAP:Ur.NoWrap,WRAP_WRAP:Ur.Wrap,WRAP_WRAP_REVERSE:Ur.WrapReverse};Qe.default=Tg,Object.defineProperty(lo,"__esModule",{value:!0}),lo.default=_g;var Ri=Lg(Qe);function il(s){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(il=function(i){return i?t:e})(s)}function Lg(s,e){if(!e&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var t=il(e);if(t&&t.has(s))return t.get(s);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in s)if(n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)){var o=r?Object.getOwnPropertyDescriptor(s,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=s[n]}return i.default=s,t&&t.set(s,i),i}function _g(s){function e(r,n,o){const a=r[n];r[n]=function(){for(var A=arguments.length,l=new Array(A),c=0;c<A;c++)l[c]=arguments[c];return o.call(this,a,...l)}}for(const r of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding"]){const n={[Ri.Unit.Point]:s.Node.prototype[r],[Ri.Unit.Percent]:s.Node.prototype[`${r}Percent`],[Ri.Unit.Auto]:s.Node.prototype[`${r}Auto`]};e(s.Node.prototype,r,function(o){for(var a=arguments.length,A=new Array(a>1?a-1:0),l=1;l<a;l++)A[l-1]=arguments[l];const c=A.pop();let h,u;if(c==="auto")h=Ri.Unit.Auto,u=void 0;else if(typeof c=="object")h=c.unit,u=c.valueOf();else if(h=typeof c=="string"&&c.endsWith("%")?Ri.Unit.Percent:Ri.Unit.Point,u=parseFloat(c),!Number.isNaN(c)&&Number.isNaN(u))throw new Error(`Invalid value ${c} for ${r}`);if(!n[h])throw new Error(`Failed to execute "${r}": Unsupported unit '${c}'`);return u!==void 0?n[h].call(this,...A,u):n[h].call(this,...A)})}function t(r){return s.MeasureCallback.implement({measure:function(){const{width:n,height:o}=r(...arguments);return{width:n??NaN,height:o??NaN}}})}e(s.Node.prototype,"setMeasureFunc",function(r,n){return n?r.call(this,t(n)):this.unsetMeasureFunc()});function i(r){return s.DirtiedCallback.implement({dirtied:r})}return e(s.Node.prototype,"setDirtiedFunc",function(r,n){r.call(this,i(n))}),e(s.Config.prototype,"free",function(){s.Config.destroy(this)}),e(s.Node,"create",(r,n)=>n?s.Node.createWithConfig(n):s.Node.createDefault()),e(s.Node.prototype,"free",function(){s.Node.destroy(this)}),e(s.Node.prototype,"freeRecursive",function(){for(let r=0,n=this.getChildCount();r<n;++r)this.getChild(0).freeRecursive();this.free()}),e(s.Node.prototype,"calculateLayout",function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ri.Direction.LTR;return r.call(this,n,o,a)}),{Config:s.Config,Node:s.Node,...Ri.default}}var sl={exports:{}};(function(s,e){var t=(()=>{var i=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(r){r=r||{};var n;n||(n=typeof r<"u"?r:{});var o,a;n.ready=new Promise(function(I,m){o=I,a=m});var A=Object.assign({},n),l="";typeof document<"u"&&document.currentScript&&(l=document.currentScript.src),i&&(l=i),l.indexOf("blob:")!==0?l=l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1):l="";var c=n.print||console.log.bind(console),h=n.printErr||console.warn.bind(console);Object.assign(n,A),A=null;var u;n.wasmBinary&&(u=n.wasmBinary),n.noExitRuntime,typeof WebAssembly!="object"&&U("no native wasm support detected");var d,g=!1;function f(I,m,L){L=m+L;for(var k="";!(m>=L);){var P=I[m++];if(!P)break;if(P&128){var W=I[m++]&63;if((P&224)==192)k+=String.fromCharCode((P&31)<<6|W);else{var Z=I[m++]&63;P=(P&240)==224?(P&15)<<12|W<<6|Z:(P&7)<<18|W<<12|Z<<6|I[m++]&63,65536>P?k+=String.fromCharCode(P):(P-=65536,k+=String.fromCharCode(55296|P>>10,56320|P&1023))}}else k+=String.fromCharCode(P)}return k}var p,y,v,S,C,Q,B,_,D;function G(){var I=d.buffer;p=I,n.HEAP8=y=new Int8Array(I),n.HEAP16=S=new Int16Array(I),n.HEAP32=Q=new Int32Array(I),n.HEAPU8=v=new Uint8Array(I),n.HEAPU16=C=new Uint16Array(I),n.HEAPU32=B=new Uint32Array(I),n.HEAPF32=_=new Float32Array(I),n.HEAPF64=D=new Float64Array(I)}var F,H=[],j=[],V=[];function J(){var I=n.preRun.shift();H.unshift(I)}var b=0,R=null;function U(I){throw n.onAbort&&n.onAbort(I),I="Aborted("+I+")",h(I),g=!0,I=new WebAssembly.RuntimeError(I+". Build with -sASSERTIONS for more info."),a(I),I}function x(I){return I.startsWith("data:application/octet-stream;base64,")}var w;if(w="data:application/octet-stream;base64,AGFzbQEAAAABvgM4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ECIABH8gAAUgARB+DQEgASgCEAsgASgCFCIFa0sEQCABIAMgAiABKAIkEQYAGgwCCwJAIAEoAlBBAEgNACACIQADQCAAIgRFDQEgAyAEQQFrIgBqLQAAQQpHDQALIAEgAyAEIAEoAiQRBgAgBEkNASADIARqIQMgAiAEayECIAEoAhQhBQsgBSADIAIQKxogASABKAIUIAJqNgIUCwsLC20BAX8jAEGAAmsiBSQAIARBgMAEcSACIANMckUEQCAFIAFB/wFxIAIgA2siA0GAAiADQYACSSIBGxAqGiABRQRAA0AgACAFQYACECcgA0GAAmsiA0H/AUsNAAsLIAAgBSADECcLIAVBgAJqJAALzAIBBX8gAARAIABBBGsiASgCACIFIQMgASECIABBCGsoAgAiACAAQX5xIgRHBEAgASAEayICKAIEIgAgAigCCDYCCCACKAIIIAA2AgQgBCAFaiEDCyABIAVqIgQoAgAiASABIARqQQRrKAIARwRAIAQoAgQiACAEKAIINgIIIAQoAgggADYCBCABIANqIQMLIAIgAzYCACADQXxxIAJqQQRrIANBAXI2AgAgAgJ/IAIoAgBBCGsiAUH/AE0EQCABQQN2QQFrDAELIAFBHSABZyIAa3ZBBHMgAEECdGtB7gBqIAFB/x9NDQAaQT8gAUEeIABrdkECcyAAQQF0a0HHAGoiACAAQT9PGwsiAUEEdCIAQdAuajYCBCACIABB2C5qIgAoAgA2AgggACACNgIAIAIoAgggAjYCBEHYNkHYNikDAEIBIAGthoQ3AwALC/ICAgJ/AX4CQCACRQ0AIAAgAToAACAAIAJqIgNBAWsgAToAACACQQNJDQAgACABOgACIAAgAToAASADQQNrIAE6AAAgA0ECayABOgAAIAJBB0kNACAAIAE6AAMgA0EEayABOgAAIAJBCUkNACAAQQAgAGtBA3EiBGoiAyABQf8BcUGBgoQIbCIBNgIAIAMgAiAEa0F8cSIEaiICQQRrIAE2AgAgBEEJSQ0AIAMgATYCCCADIAE2AgQgAkEIayABNgIAIAJBDGsgATYCACAEQRlJDQAgAyABNgIYIAMgATYCFCADIAE2AhAgAyABNgIMIAJ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UENdkEHcSIFBH8gBQUgACgCGEEKdkEHcQtBBUYEQCAALQAYQQhxDQULIAEtAARBAnENBCACIAEgAhshAgsgBEEBaiIEIAdHDQELCyACDQILIAAqAogEIQgMAgsgASECCyACEEIgAioC6AGSIQgLIANBEGokACAIC28BAX8CQCAAQRhqIgMQJiABQQJ0aigCwAEgAkYNACADECYgAUECdGogAjYCwAEDQCAALQAEIgFBBHENASAAIAFBBHI6AAQgACgCFCIBBEAgACABEQAACyAAQYCAgP4HNgK0AiAAKAKoBCIADQALCwtvAQF/AkAgAEEYaiIDECYgAUECdGooArgBIAJGDQAgAxAmIAFBAnRqIAI2ArgBA0AgAC0ABCIBQQRxDQEgACABQQRyOgAEIAAoAhQiAQRAIAAgAREAAAsgAEGAgID+BzYCtAIgACgCqAQiAA0ACwsL7wIBAn0CQAJAAkAgAUF+cUECRgRAIAAoArwBIgFB8OGD/AdGIAFBj568/AdGciABQarVqv0HRnINASABviIDIANbDQEgACgCxAEiAUHw4YP8B0YgAUGPnrz8B0ZyIAFBqtWq/QdGcg0BIAG+IgMgA1sNAQwCCyAAKALAASIBQfDhg/wHRiABQY+evPwHRnIgAUGq1ar9B0ZyDQAgAb4iAyADWw0AIAAoAsQBIgFB8OGD/AdGIAFBj568/AdGciABQarVqv0HRnINACABviIDIANcDQELQwAAAAAhAwJAAkAgAUHw4YP8B0YNACABQY+evPwHRg0DQfAhIQACQCABQarVqv0HRwRAIAG+IgMgA1sNAUH4ISEACyAAKgIAIQNDAADAfyEEIAAoAgRBAWsOAgQBAgsgAUH/////e3FBgICAgAJqviEDIAFBgICAgARxRQ0DCyADIAKUQwrXIzyUIQQLIAQPC0MAAAAAIQMLIAMLCgAgAEEwa0EKSQt3AgF/AX0gAEHQAGohACABQQJ0QdAhaigCACECAn8gAUF+cUECRgRAIABBBSACQYCAgP4HEDMMAQsgACACQYCAgP4HEDILIQFBASEAIAFB8OGD/AdGIAFBj568/AdGciABQarVqv0HRnIEfyAABSABviIDIANbCwsUACAABE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ioCICI6QwAAAABeRSA6QwAAgD9dRXJFBEAgDkGAgID8AzYCIEMAAIA/IToLIA4qAiQiP0MAAAAAXkUgP0MAAIA/XUVyRQRAIA5BgICA/AM2AiRDAACAPyE/CyAOIBA2AiggDioCHCEzIA4oAhghICAYBEAgGBApCyAOKgI4ITUgDigCMCEhIA4oAiwhGAJAAkACQAJAICdBAUYNAEMAAAAAIQICQAJAAkAgJCgCACIDQfDhg/wHRg0AIANBj568/AdGDQFB8CEhBQJAIANBqtWq/QdHBEAgA74iASABWw0BQfghIQULIAUqAgAhAkMAAMB/IQEgBSgCBEEBaw4CAgEDCyADQf////97cUGAgICAAmq+IQIgA0GAgICABHFFDQELIAIgBpRDCtcjPJQhAQwBCyACIQELQwAAAAAhAgJAAkACQCAAKALYASIDQfDhg/wHRg0AIANBj568/AdGDQFB8CEhBQJAIANBqtWq/QdHBEAgA74iAiACWw0BQfghIQULIAUqAgAhAkMAAMB/ITcgBSgCBEEBaw4CAgEDCyADQf////97cUGAgICAAmq+IQIgA0GAgICABHFFDQELIAIgBpRDCtcjPJQhNwwBCyACITcLQwAAAAAhAgJAAkACQCAAKALUASIDQfDhg/wHRg0AIANBj568/AdGDQFB8CEhBQJAIANBqtWq/QdHBEAgA74iAiACWw0BQfghIQULIAUqAgAhAkMAAMB/ITQgBSgCBEEBaw4CAgEDCyADQf////97cUGAgICAAmq+IQIgA0GAgICABHFFDQELIAIgB5RDCtcjPJQhNAwBCyACITQLQwAAAAAhAgJAAkACQCAAKALcASIDQfDhg/wHRg0AIANBj568/AdGDQFB8CEhBQJAIANBqtWq/QdHBEAgA74iAiACWw0BQfghIQULIAUqAgAhAkMAAMB/ITkgBSgCBEEBaw4CAgEDCyADQf////97cUGAgICAAmq+IQIgA0GAgICABHFFDQELIAIgB5RDCtcjPJQhOQwBCyACITkLIAEgNCATQQFLIgMbIEGTIgIgAlsgAiAzXnENASA3IDkgAxsgQZMiAiACWyACIDNdcQ0BIAAoArgELQAQQQFxDQAgMyECIDp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5gBNBH9BfyADQTBrIgMgAUEKbCIEaiADIARB/////wdzShsFIAQLIQEMAQsLIAELqBQCEn8BfiMAQdAAayIIJAAgCCABNgJMIAhBN2ohFyAIQThqIRQCQAJAAkACQANAIAEhDSAHIA5B/////wdzSg0BIAcgDmohDgJAAkACQCANIgctAAAiCQRAA0ACQAJAIAlB/wFxIgFFBEAgByEBDAELIAFBJUcNASAHIQkDQCAJLQABQSVHBEAgCSEBDAILIAdBAWohByAJLQACIQogCUECaiIBIQkgCkElRg0ACwsgByANayIHIA5B/////wdzIhhKDQcgAARAIAAgDSAHECcLIAcNBiAIIAE2AkwgAUEBaiEHQX8hEgJAIAEsAAEiChBGRQ0AIAEtAAJBJEcNACABQQNqIQcgCkEwayESQQEhFQsgCCAHNgJMQQAhDAJAIAcsAAAiCUEgayIBQR9LBEAgByEKDAELIAchCkEBIAF0IgFBidEEcUUNAANAIAggB0EBaiIKNgJMIAEgDHIhDCAHLAABIglBIGsiAUEgTw0BIAohB0EBIAF0IgFBidEEcQ0ACwsCQCAJQSpGBEACfwJAIAosAAEiARBGRQ0AIAotAAJBJEcNACABQQJ0IARqQcABa0EKNgIAIApBA2ohCUEBIRUgCiwAAUEDdCADakGAA2soAgAMAQsgFQ0GIApBAWohCSAARQRAIAggCTYCTEEAIRVBACETDAMLIAIgAigCACIBQQRqNgIAQQAhFSABKAIACyETIAggCTYCTCATQQBODQFBACATayETIAxBgMAAciEMDAELIAhBzABqEHEiE0EASA0IIAgoAkwhCQtBACEHQX8hCwJ/IAktAABBLkcEQCAJIQFBAAwBCyAJLQABQSpGBEACfwJAIAksAAIiARBGRQ0AIAktAANBJEcNACABQQJ0IARqQcABa0EKNgIAIAlBBGohASAJLAACQQN0IANqQYADaygCAAwBCyAVDQYgCUECaiEBQQAgAEUNABogAiACKAIAIgpBBGo2AgAgCigCAAshCyAIIAE2AkwgC0F/c0EfdgwBCyAIIAlBAWo2AkwgCEHMAGoQcSELIAgoAkwhAUEBCyEPA0AgByERQRwhC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KAIANgIAIABBBGohACAEQQRqIgQgA0cNAAsgASAANgKwBAsgASACKQK4BDcCuAQgASACKALIBDYCyAQgASACKQLABDcCwAQgAUEANgKoBAsgBQ8LEAQAC3EBAX8CQCAAKAIAIgAoAhgiAkECdkEDcSABRg0AIAAgAkFzcSABQQJ0QQxxcjYCGANAIAAtAAQiAUEEcQ0BIAAgAUEEcjoABCAAKAIUIgEEQCAAIAERAAALIABBgICA/gc2ArQCIAAoAqgEIgANAAsLCw0AIAAoAgBBByABEE0LDQAgACgCAEEGIAEQTQsNACAAKAIAQQUgARBNCxAAIAAoAgAgASACthAxEGILEAAgACgCACABIAK2EC8QYgt1AQF/AkAgACgCACIAKAIYIgJBEHZBA3EgAUYNACAAIAJB//9zcSABQRB0QYCADHFyNgIYA0AgAC0ABCIBQQRxDQEgACABQQRyOgAEIAAoAhQiAQRAIAAgAREAAAsgAEGAgID+BzYCtAIgACgCqAQiAA0ACwsLxwkCBn8DfQJAAkAgASgCACIFKAIYIAAoAgAiASgCGHNB////A3ENACAFKAIoIQACfwJAIAEoAigiAkHw4YP8B0cEQEMAAMB/IQhBAyACQarVqv0HRg0CGiACQY+evPwHRw0BQwAAAAAhCEEBDAILQQIMAQtBACACviIJIAlcDQAaIAJB/////3txQYCAgIACar4hCEECQQEgAkGAgICABHEbCyEDAn8CQCAAQfDhg/wHRwRAQwAAwH8hCUEDIABBqtWq/QdGDQIaIABBj568/AdHDQFDAAAAACEJQQEMAgtDAAAAACEJQQIMAQtBACAAviIKIApcDQAaIABB/////3txQYCAgIACar4hCUECQQEgAEGAgICABHEbCyADRyADRSAIIAhcIAkgCVxxciAIIAmTi0MXt9E4XXJFcg0AIAFBLGoiAygCACAFQSxqIgQoAgBHDQBBACEAAkADQCAAIgJBAWoiAEEJRg0BIAMgAEECdCIGaigCACAEIAZqKAIARg0ACyACQQhJDQELIAFB0ABqIgMoAgAgBUHQAGoiBCgCAEcNAEEAIQACQANAIAAiAkEBaiIAQQlGDQEgAyAAQQJ0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gALEAAgAEEKNgIEIAAgATYCAAsQACAAQQc2AgQgACABNgIACyMAIAJBBUdBACACG0UEQEGoLCADIAQQYw8LQbgtIAMgBBBjCyIBAX4gASACrSADrUIghoQgBCAAERQAIgVCIIinJAEgBacLqAEBBX8gACgCVCIDKAIAIQUgAygCBCIEIAAoAhQgACgCHCIHayIGIAQgBkkbIgYEQCAFIAcgBhArGiADIAMoAgAgBmoiBTYCACADIAMoAgQgBmsiBDYCBAsgBCACIAIgBEsbIgQEQCAFIAEgBBArGiADIAMoAgAgBGoiBTYCACADIAMoAgQgBGs2AgQLIAVBADoAACAAIAAoAiwiATYCHCAAIAE2AhQgAgsEAEIACwQAQQALigUCBn4CfyABIAEoAgBBB2pBeHEiAUEQajYCACAAIQkgASkDACEDIAEpAwghBiMAQSBrIggkAAJAIAZC////////////AIMiBEKAgICAgIDAgDx9IARCgICAgICAwP/DAH1UBEAgBkIEhiADQjyIhCEEIANC//////////8PgyIDQoGAgICAgICACFoEQCAEQoGAgICAgICAwAB8IQIMAgsgBEKAgICAgICAgEB9IQIgA0KAgICAgICAgAhSDQEgAiAEQgGDfCECDAELIANQIARCgICAgICAwP//AFQgBEKAgICAgIDA//8AURtFBEAgBkIEhiADQjyIhEL/////////A4NCgICAgICAgPz/AIQhAgwBC0KAgICAgICA+P8AIQIgBEL///////+//8MAVg0AQgAhAiAEQjCIpyIAQZH3AEkNACADIQIgBkL///////8/g0KAgICAgIDAAIQiBSEHAkAgAEGB9wBrIgFBwABxBEAgAiABQUBqrYYhB0IAIQIMAQsgAUUNACAHIAGtIgSGIAJBwAAgAWutiIQhByACIASGIQILIAggAjcDECAIIAc3AxgCQEGB+AAgAGsiAEHAAHEEQCAFIABBQGqtiCEDQgAhBQwBCyAARQ0AIAVBwAAgAGuthiADIACtIgKIhCEDIAUgAoghBQsgCCADNwMAIAggBTcDCCAIKQMIQgSGIAgpAwAiA0I8iIQhAiAIKQMQIAgpAxiEQgBSrSADQv//////////D4OEIgNCgYCAgICAgIA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AGQTBqJAALCAAgABB3ECkLDAAgACgCCEHdGRBRCwgAIAAQeRApC1UBAn8jAEEwayICJAAgASAAKAIEIgNBAXVqIQEgACgCACEAIAIgASADQQFxBH8gASgCACAAaigCAAUgAAsRAQBBMBAdIAJBMBArIQAgAkEwaiQAIAALOwEBfyABIAAoAgQiBUEBdWohASAAKAIAIQAgASACIAMgBCAFQQFxBH8gASgCACAAaigCAAUgAAsRHAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEQAAs3AQF/IAEgACgCBCIDQQF1aiEBIAAoAgAhACABIAIgA0EBcQR/IAEoAgAgAGooAgAFIAALEQwACzUBAX8gASAAKAIEIgJBAXVqIQEgACgCACEAIAEgAkEBcQR/IAEoAgAgAGooAgAFIAALEQkAC2EBAn8jAEEQayICJAAgASAAKAIEIgNBAXVqIQEgACgCACEAIAIgASADQQFxBH8gASgCACAAaigCAAUgAAsRAQBBEBAdIgAgAikDCDcDCCAAIAIpAwA3AwAgAkEQaiQAIAALYwECfyMAQRBrIgMkACABIAAoAgQiBEEBdWohASAAKAIAIQAgAyABIAIgBEEBcQR/IAEoAgAgAGooAgAFIAALEQMAQRAQHSIAIAMpAwg3AwggACADKQMANwMAIANBEGokACAACzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRBAALOQEBfyABIAAoAgQiBEEBdWohASAAKAIAIQAgASACIAMgBEEBcQR/IAEoAgAgAGooAgAFIAALEQgACwkAIAEgABECAAsFAEGbNwsPACABIAAoAgBqIAI2AgALDQAgASAAKAIAaigCAAsYAQF/QRAQHSIAQgA3AwggAEEANgIAIAALGAEBf0EQEB0iAEIANwMAIABCADcDCCAACwwAQTAQHUEAQTAQKgs3AQF/IAEgACgCBCIDQQF1aiEBIAAoAgAhACABIAIgA0EBcQR/IAEoAgAgAGooAgAFIAALERsACwUAQZY3CyEAIAAgASgCACABIAEsAAtBAEgbQZM3IAIoAgAQDzYCAAsqAQF/QQwQHSIBQQA6AAQgASAAKAIANgIIIABBADYCACABQcgjNgIAIAELBQBBkzcLBQBBkDcLIQAgACABKAIAIAEgASwAC0EASBtB/DYgAigCABAPNgIAC9gBAQR/IwBBIGsiAyQAIAEoAgAiBEHw////B0kEQAJAAkAgBEELTwRAIARBD3JBAWoiBRAdIQYgAyAFQYCAgIB4cjYCECADIAY2AgggAyAENgIMIAQgBmohBQwBCyADIAQ6ABMgA0EIaiIGIARqIQUgBEUNAQsgBiABQQRqIAQQKxoLIAVBADoAACADIAI2AgAgA0EYaiADQQhqIAMgABEDACADKAIYEBAgAygCGCIAEAYgAygCABAGIAMsABNBAEgEQCADKAIIECkLIANBIGokACAADwsQBAALKgEBf0EMEB0iAUEAOgAEIAEgACgCADYCCCAAQQA2AgAgAUHQIjYCACABCwUAQfw2C2kBAn8jAEEQayIGJAAgASAAKAIEIgdBAXVqIQEgACgCACEAIAYgASACIAMgBCAFIAdBAXEEfyABKAIAIABqKAIABSAACxEOAEEQEB0iACAGKQMINwMIIAAgBikDADcDACAGQRBqJAAgAAsFAEH4NgubAQIBfwF9IwBBEGsiAiQAIAAoAgAhACABQQZIBEACfwJAAkACQCABQQRrDgIAAQILIABBpAJqIAAtAKwCQQNxQQJGDQIaIABBnAJqDAILIABBnAJqIAAtAKwCQQNxQQJGDQEaIABBpAJqDAELIAAgAUECdGpBnAJqCyoCACEDIAJBEGokACADuw8LIAJB0A42AgAgACACEC0QLAALmwECAX8BfSMAQRBrIgIkACAAKAIAIQAgAUEGSARAAn8CQAJAAkAgAUEEaw4CAAECCyAAQZQCaiAALQCsAkEDcUECRg0CGiAAQYwCagwCCyAAQYwCaiAALQCsAkEDcUECRg0BGiAAQZQCagwBCyAAIAFBAnRqQYwCagsqAgAhAyACQRBqJAAgA7sPCyACQdAONgIAIAAgAhAtECwAC5sBAgF/AX0jAEEQayICJAAgACgCACEAIAFBBkgEQAJ/AkACQAJAIAFBBGsOAgABAgsg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nINAEMAAMB/IQIgAEGq1ar9B0YiASABcg0BIAC+IgMgA1wNASAAQfDhg/wHRg0AIABB/////3txQYCAgIACar4PC0MAAAAAIQILIAILqgEDAX8BfAF9QQIhAwJAAkAgASgCACACQQJ0aigCdCIBQfDhg/wHRwRARAAAAAAAAPh/IQQgAUGq1ar9B0YEQEEDIQMMAwsgAUGPnrz8B0cNAUQAAAAAAAAAACEEQQEhAwwCCwwBCyABviIFIAVcBEBBACEDDAELQQJBASABQYCAgIAEcRshAyABQf////97cUGAgICAAmq+uyEECyAAIAQ5AwggACADNgIAC4ABAgF8AX0CQAJAIAAoAgAgAUECdGooApgBIgBB8OGD/AdGIABBj568/AdGcg0ARAAAAAAAAPh/IQIgAEGq1ar9B0YiASABcg0BIAC+IgMgA1wNASAAQfDhg/wHRg0AIABB/////3txQYCAgIACar67DwtEAAAAAAAAAAAhAgsgAgsbAQF9QwAAwH8gACgCACoC4AEiASABIAFcG7sLlwECAXwBfQJ/AkAgASgCACgC3AEiAUHw4YP8B0cEQEQAAAAAAAD4fyECQQMgAUGq1ar9B0YNAhogAUGPnrz8B0cNAUQAAAAAAAAAACECQQEMAgtBAgwBC0EAIAG+IgMgA1wNABogAUH/////e3FBgICAgAJqvrshAkECQQEgAUGAgICABHEbCyEBIAAgAjkDCCAAIAE2AgALlwECAXwBfQJ/AkAgASgCACgC2AEiAUHw4YP8B0cEQEQAAAAAAAD4fyECQQMgAUGq1ar9B0YNAhogAUGPnrz8B0cNAUQAAAAAAAAAACECQQEMAgtBAgwBC0EAIAG+IgMgA1wNABogAUH/////e3FBgICAgAJqvrshAkECQQEgAUGAgICABHEbCyEBIAAgAjkDCCAAIAE2AgALlwECAXwBfQJ/AkAgASgCACgC1AEiAUHw4YP8B0cEQEQAAAAAAAD4fyECQQMgAUGq1ar9B0YNAhogAUGPnrz8B0cNAUQAAAAAAAAAACECQQEMAgtBAgwBC0EAIAG+IgMgA1wNABogAUH/////e3FBgICAgAJqvrshAkECQQEgAUGAgICABH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oAqgEIgANAAsLCxAAIAAoAgBBASABthAxEEMLEAAgACgCAEEBIAG2EC8QQwsQACAAKAIAQQAgAbYQMRBDCxAAIAAoAgBBACABthAvEEMLEAAgACgCAEEBIAG2EDEQRAsQACAAKAIAQQEgAbYQLxBECxAAIAAoAgBBACABthAxEEQLEAAgACgCAEEAIAG2EC8QRAsRACAAKAIAQQFBqtWq/QcQPAsQACAAKAIAQQEgAbYQMRA8CxAAIAAoAgBBASABthAvEDwLEQAgACgCAEEAQarVqv0HEDwLEAAgACgCAEEAIAG2EDEQPAsQACAAKAIAQQAgAbYQLxA8C3ACAn0BfwJAIAAoAgAiACoCJCIDIAG2IgJbIAIgAlwgAyADXHFyDQAgACACOAIkA0AgAC0ABCIEQQRxDQEgACAEQQRyOgAEIAAoAhQiBARAIAAgBBEAAAsgAEGAgID+BzYCtAIgACgCqAQiAA0ACwsLcAICfQF/AkAgACgCACIAKgIgIgMgAbYiAlsgAiACXCADIANccXINACAAIAI4AiADQCAALQAEIgRBBHENASAAIARBBHI6AAQgACgCFCIEBEAgACAEEQAACyAAQYCAgP4HNgK0AiAAKAKoBCIADQALCwsPACAAKAIAQarVqv0HEEwLDgAgACgCACABthAxEEwLDgAgACgCACABthAvEEwLcAICfQF/AkAgACgCACIAKgIcIgMgAbYiAlsgAiACXCADIANccXINACAAIAI4AhwDQCAALQAEIgRBBHENASAAIARBBHI6AAQgACgCFCIEBEAgACAEEQAACyAAQYCAgP4HNgK0AiAAKAKoBCIADQALCwt3AQF/AkAgACgCACIAKAIYIgJBFnZBAXEgAUYNACAAIAJB////fXEgAUEWdEGAgIACcXI2AhgDQCAALQAEIgFBBHENASAAIAFBBHI6AAQgACgCFCIBBEAgACABEQAACyAAQYCAgP4HNgK0AiAAKAKoBCIADQALCwt3AQF/AkAgACgCACIAKAIYIgJBFHZBA3EgAUYNACAAIAJB//+/fnEgAUEUdEGAgMABcXI2AhgDQCAALQAEIgFBBHENASAAIAFBBHI6AAQgACgCFCIBBEAgACABEQ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AAJwbAACsGwAAnBsAAJsbAACsGwAAnBsAALMbAACsGwAAnBsAALMbAAC6GwAAdmlpaWQAAACsGwAAnBsAALobAACzGwAAnRsAAJobAACdGwAAsxsAAJobAACdGwAAuhsAAJ0bAAC6GwAAnRsAALMbAABkaWlpAAAAALkbAACcGwAAsxsAAGZpaWkAAAAArBsAAJwbAACcGwAAtBsAAKwbAACcGwAAnBsAALQbAACdGwAAnBsAAJwbAACcGwAAnBsAALQbAACtGwAAnBsAAKwbAACcGwAArRsAAKwbAACcGwAAeRsAAKwbAACcGwAAkRsAAK0bAACdGwAAAAAAAKwbAACcGwAAuhsAALobAACzGwAAdmlpZGRpAACZGwAAnRsAQbAnC0EZAAoAGRkZAAAAAAUAAAAAAAAJAAAAAAsAAAAAAAAAABkAEQoZGRkDCgcAAQAJCxgAAAkGCwAACwAGGQAAABkZGQBBgSgLIQ4AAAAAAAAAABkACg0ZGRkADQAAAgAJDgAAAAkADgAADgBBuygLAQwAQccoCxUTAAAAABMAAAAACQwAAAAAAAwAAAwAQfUoCwEQAEGBKQsVDwAAAAQPAAAAAAkQAAAAAAAQAAAQAEGvKQsBEgBBuykLHhEAAAAAEQAAAAAJEgAAAAAAEgAAEgAAGgAAABoaGgBB8ikLDhoAAAAaGhoAAAAAAAAJAEGjKgsBFABBryoLFRcAAAAAFwAAAAAJFAAAAAAAFAAAFABB3SoLARYAQekqCycVAAAAABUAAAAACRYAAAAAABYAABYAADAxMjM0NTY3ODlBQkNERUYAQbQrCwHVAEHcKwsI//////////8AQaAsCwnwHwEAAAAAAAUAQbQsCwHQAEHMLAsK0QAAANIAAADUGwBB5CwLAQIAQfQsCwj//////////wBBuC0LAQUAQcQtCwHTAEHcLQsO0QAAANQAAADoGwAAAAQAQfQtCwEBAEGELgsF/////woAQcguCwHW",!x(w)){var T=w;w=n.locateFile?n.locateFile(T,l):l+T}function K(){var I=w;try{if(I==w&&u)return new Uint8Array(u);if(x(I))try{var m=Ky(I.slice(37)),L=new Uint8Array(m.length);for(I=0;I<m.length;++I)L[I]=m.charCodeAt(I);var k=L}catch{throw Error("Converting base64 string to bytes failed.")}else k=void 0;var P=k;if(P)return P;throw"both async and sync fetching of the wasm failed"}catch(W){U(W)}}function M(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return K()}):fetch(w,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+w+"'";return I.arrayBuffer()}).catch(function(){return K()})}function q(I){for(;0<I.length;)I.shift()(n)}function ie(I){if(I===void 0)return"_unknown";I=I.replace(/[^a-zA-Z0-9_]/g,"$");var m=I.charCodeAt(0);return 48<=m&&57>=m?"_"+I:I}function ce(I,m){return I=ie(I),function(){return m.apply(this,arguments)}}var Ae=[{},{value:void 0},{value:null},{value:!0},{value:!1}],me=[];function Be(I){var m=Error,L=ce(I,function(k){this.name=I,this.message=k,k=Error(k).stack,k!==void 0&&(this.stack=this.toString()+`
67
+ `+k.replace(/^Error(:[^\n]*)?\n/,""))});return L.prototype=Object.create(m.prototype),L.prototype.constructor=L,L.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},L}var xe=void 0;function re(I){throw new xe(I)}var Ce=I=>(I||re("Cannot use deleted val. handle = "+I),Ae[I].value),ye=I=>{switch(I){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var m=me.length?me.pop():Ae.length;return Ae[m]={fa:1,value:I},m}},ue=void 0,he=void 0;function ae(I){for(var m="";v[I];)m+=he[v[I++]];return m}var we=[];function Pe(){for(;we.length;){var I=we.pop();I.L.Z=!1,I.delete()}}var Te=void 0,ke={};function Ue(I,m){for(m===void 0&&re("ptr should not be undefined");I.P;)m=I.aa(m),I=I.P;return m}var Le={};function Se(I){I=Gu(I);var m=ae(I);return Bi(I),m}function Ve(I,m){var L=Le[I];return L===void 0&&re(m+" has unknown type "+Se(I)),L}function je(){}var ct=!1;function st(I){--I.count.value,I.count.value===0&&(I.S?I.T.V(I.S):I.O.M.V(I.N))}function mt(I,m,L){return m===L?I:L.P===void 0?null:(I=mt(I,m,L.P),I===null?null:L.ma(I))}var yi={};function Ct(I,m){return m=Ue(I,m),ke[m]}var ai=void 0;function Ai(I){throw new ai(I)}function li(I,m){return m.O&&m.N||Ai("makeClassHandle requires ptr and ptrType"),!!m.T!=!!m.S&&Ai("Both smartPtrType and smartPtr must be specified"),m.count={value:1},gt(Object.create(I,{L:{value:m}}))}function gt(I){return typeof FinalizationRegistry>"u"?(gt=m=>m,I):(ct=new FinalizationRegistry(m=>{st(m.L)}),gt=m=>{var L=m.L;return L.S&&ct.register(m,{L},m),m},je=m=>{ct.unregister(m)},gt(I))}var Y={};function le(I){for(;I.length;){var m=I.pop();I.pop()(m)}}function ge(I){return this.fromWireType(Q[I>>2])}var Re={},be={};function Je(I,m,L){function k(ee){ee=L(ee),ee.length!==I.length&&Ai("Mismatched type converter count");for(var se=0;se<I.length;++se)vt(I[se],ee[se])}I.forEach(function(ee){be[ee]=m});var P=Array(m.length),W=[],Z=0;m.forEach((ee,se)=>{Le.hasOwnProperty(ee)?P[se]=Le[ee]:(W.push(ee),Re.hasOwnProperty(ee)||(Re[ee]=[]),Re[ee].push(()=>{P[se]=Le[ee],++Z,Z===W.length&&k(P)}))}),W.length===0&&k(P)}function yt(I){switch(I){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+I)}}function vt(I,m,L={}){if(!("argPackAdvance"in m))throw new TypeError("registerType registeredInstance requires argPackAdvance");var k=m.name;if(I||re('type "'+k+'" must have a positive integer typeid pointer'),Le.hasOwnProperty(I)){if(L.ta)return;re("Cannot register type '"+k+"' twice")}Le[I]=m,delete be[I],Re.hasOwnProperty(I)&&(m=Re[I],delete Re[I],m.forEach(P=>P()))}function Ts(I){re(I.L.O.M.name+" instance already deleted")}function Bt(){}function es(I,m,L){if(I[m].R===void 0){var k=I[m];I[m]=function(){return I[m].R.hasOwnProperty(arguments.length)||re("Function '"+L+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+I[m].R+")!"),I[m].R[arguments.length].apply(this,arguments)},I[m].R=[],I[m].R[k.Y]=k}}function Ls(I,m){n.hasOwnProperty(I)?(re("Cannot register public name '"+I+"' twice"),es(n,I,I),n.hasOwnProperty(void 0)&&re("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),n[I].R[void 0]=m):n[I]=m}function ki(I,m,L,k,P,W,Z,ee){this.name=I,this.constructor=m,this.W=L,this.V=k,this.P=P,this.oa=W,this.aa=Z,this.ma=ee,this.ia=[]}function Er(I,m,L){for(;m!==L;)m.aa||re("Expected null or instance of "+L.name+", got an instance of "+m.name),I=m.aa(I),m=m.P;return I}function Ir(I,m){return m===null?(this.da&&re("null is not a valid "+this.name),0):(m.L||re('Cannot pass "'+tA(m)+'" as a '+this.name),m.L.N||re("Cannot pass deleted object as a pointer of type "+this.name),Er(m.L.N,m.L.O.M,this.M))}function _s(I,m){if(m===null){if(this.da&&re("null is not a valid "+this.name),this.ca){var L=this.ea();return I!==null&&I.push(this.V,L),L}return 0}if(m.L||re('Cannot pass "'+tA(m)+'" as a '+this.name),m.L.N||re("Cannot pass deleted object as a pointer of type "+this.name),!this.ba&&m.L.O.ba&&re("Cannot convert argument of type "+(m.L.T?m.L.T.name:m.L.O.name)+" to parameter type "+this.name),L=Er(m.L.N,m.L.O.M,this.M),this.ca)switch(m.L.S===void 0&&re("Passing raw pointer to smart pointer is illegal"),this.Aa){case 0:m.L.T===this?L=m.L.S:re("Cannot convert argument of type "+(m.L.T?m.L.T.name:m.L.O.name)+" to parameter type "+this.name);break;case 1:L=m.L.S;break;case 2:if(m.L.T===this)L=m.L.S;else{var k=m.clone();L=this.wa(L,ye(function(){k.delete()})),I!==null&&I.push(this.V,L)}break;default:re("Unsupporting sharing policy")}return L}function Dy(I,m){return m===null?(this.da&&re("null is not a valid "+this.name),0):(m.L||re('Cannot pass "'+tA(m)+'" as a '+this.name),m.L.N||re("Cannot pass deleted object as a pointer of type "+this.name),m.L.O.ba&&re("Cannot convert argument of type "+m.L.O.name+" to parameter type "+this.name),Er(m.L.N,m.L.O.M,this.M))}function vi(I,m,L,k){this.name=I,this.M=m,this.da=L,this.ba=k,this.ca=!1,this.V=this.wa=this.ea=this.ja=this.Aa=this.va=void 0,m.P!==void 0?this.toWireType=_s:(this.toWireType=k?Ir:Dy,this.U=null)}function Ty(I,m){n.hasOwnProperty(I)||Ai("Replacing nonexistant public symbol"),n[I]=m,n[I].Y=void 0}function Ly(I,m){var L=[];return function(){if(L.length=0,Object.assign(L,arguments),I.includes("j")){var k=n["dynCall_"+I];k=L&&L.length?k.apply(null,[m].concat(L)):k.call(null,m)}else k=F.get(m).apply(null,L);return k}}function Yt(I,m){I=ae(I);var L=I.includes("j")?Ly(I,m):F.get(m);return typeof L!="function"&&re("unknown function pointer with signature "+I+": "+m),L}var Mu=void 0;function Mn(I,m){function L(W){P[W]||Le[W]||(be[W]?be[W].forEach(L):(k.push(W),P[W]=!0))}var k=[],P={};throw m.forEach(L),new Mu(I+": "+k.map(Se).join([", "]))}function za(I,m,L,k,P){var W=m.length;2>W&&re("argTypes array size mismatch! Must at least get return value and 'this' types!");var Z=m[1]!==null&&L!==null,ee=!1;for(L=1;L<m.length;++L)if(m[L]!==null&&m[L].U===void 0){ee=!0;break}var se=m[0].name!=="void",te=W-2,ne=Array(te),Ee=[],_e=[];return function(){if(arguments.length!==te&&re("function "+I+" called with "+arguments.length+" arguments, expected "+te+" args!"),_e.length=0,Ee.length=Z?2:1,Ee[0]=P,Z){var rt=m[1].toWireType(_e,this);Ee[1]=rt}for(var Me=0;Me<te;++Me)ne[Me]=m[Me+2].toWireType(_e,arguments[Me]),Ee.push(ne[Me]);if(Me=k.apply(null,Ee),ee)le(_e);else for(var Dt=Z?1:2;Dt<m.length;Dt++){var Kt=Dt===1?rt:ne[Dt-2];m[Dt].U!==null&&m[Dt].U(Kt)}return rt=se?m[0].fromWireType(Me):void 0,rt}}function Za(I,m){for(var L=[],k=0;k<I;k++)L.push(B[m+4*k>>2]);return L}function eA(I){4<I&&--Ae[I].fa===0&&(Ae[I]=void 0,me.push(I))}function tA(I){if(I===null)return"null";var m=typeof I;return m==="object"||m==="array"||m==="function"?I.toString():""+I}function _y(I,m){switch(m){case 2:return function(L){return this.fromWireType(_[L>>2])};case 3:return function(L){return this.fromWireType(D[L>>3])};default:throw new TypeError("Unknown float type: "+I)}}function ky(I,m,L){switch(m){case 0:return L?function(k){return y[k]}:function(k){return v[k]};case 1:return L?function(k){return S[k>>1]}:function(k){return C[k>>1]};case 2:return L?function(k){return Q[k>>2]}:function(k){return B[k>>2]};default:throw new TypeError("Unknown integer type: "+I)}}function Fy(I,m){for(var L="",k=0;!(k>=m/2);++k){var P=S[I+2*k>>1];if(P==0)break;L+=String.fromCharCode(P)}return L}function Ny(I,m,L){if(L===void 0&&(L=2147483647),2>L)return 0;L-=2;var k=m;L=L<2*I.length?L/2:I.length;for(var P=0;P<L;++P)S[m>>1]=I.charCodeAt(P),m+=2;return S[m>>1]=0,m-k}function My(I){return 2*I.length}function Oy(I,m){for(var L=0,k="";!(L>=m/4);){var P=Q[I+4*L>>2];if(P==0)break;++L,65536<=P?(P-=65536,k+=String.fromCharCode(55296|P>>10,56320|P&1023)):k+=String.fromCharCode(P)}return k}function Py(I,m,L){if(L===void 0&&(L=2147483647),4>L)return 0;var k=m;L=k+L-4;for(var P=0;P<I.length;++P){var W=I.charCodeAt(P);if(55296<=W&&57343>=W){var Z=I.charCodeAt(++P);W=65536+((W&1023)<<10)|Z&1023}if(Q[m>>2]=W,m+=4,m+4>L)break}return Q[m>>2]=0,m-k}function Uy(I){for(var m=0,L=0;L<I.length;++L){var k=I.charCodeAt(L);55296<=k&&57343>=k&&++L,m+=4}return m}var Gy={};function Ou(I){var m=Gy[I];return m===void 0?ae(I):m}var On=[];function Hy(I){var m=On.length;return On.push(I),m}function $y(I,m){for(var L=Array(I),k=0;k<I;++k)L[k]=Ve(B[m+4*k>>2],"parameter "+k);return L}var Pu=[],Yy=[null,[],[]];xe=n.BindingError=Be("BindingError"),n.count_emval_handles=function(){for(var I=0,m=5;m<Ae.length;++m)Ae[m]!==void 0&&++I;return I},n.get_first_emval=function(){for(var I=5;I<Ae.length;++I)if(Ae[I]!==void 0)return Ae[I];return null},ue=n.PureVirtualError=Be("PureVirtualError");for(var Uu=Array(256),Pn=0;256>Pn;++Pn)Uu[Pn]=String.fromCharCode(Pn);he=Uu,n.getInheritedInstanceCount=function(){return Object.keys(ke).length},n.getLiveInheritedInstances=function(){var I=[],m;for(m in ke)ke.hasOwnProperty(m)&&I.push(ke[m]);return I},n.flushPendingDeletes=Pe,n.setDelayFunction=function(I){Te=I,we.length&&Te&&Te(Pe)},ai=n.InternalError=Be("InternalError"),Bt.prototype.isAliasOf=function(I){if(!(this instanceof Bt&&I instanceof Bt))return!1;var m=this.L.O.M,L=this.L.N,k=I.L.O.M;for(I=I.L.N;m.P;)L=m.aa(L),m=m.P;for(;k.P;)I=k.aa(I),k=k.P;return m===k&&L===I},Bt.prototype.clone=function(){if(this.L.N||Ts(this),this.L.$)return this.L.count.value+=1,this;var I=gt,m=Object,L=m.create,k=Object.getPrototypeOf(this),P=this.L;return I=I(L.call(m,k,{L:{value:{count:P.count,Z:P.Z,$:P.$,N:P.N,O:P.O,S:P.S,T:P.T}}})),I.L.count.value+=1,I.L.Z=!1,I},Bt.prototype.delete=function(){this.L.N||Ts(this),this.L.Z&&!this.L.$&&re("Object already scheduled for deletion"),je(this),st(this.L),this.L.$||(this.L.S=void 0,this.L.N=void 0)},Bt.prototype.isDeleted=function(){return!this.L.N},Bt.prototype.deleteLater=function(){return this.L.N||Ts(this),this.L.Z&&!this.L.$&&re("Object already scheduled for deletion"),we.push(this),we.length===1&&Te&&Te(Pe),this.L.Z=!0,this},vi.prototype.pa=function(I){return this.ja&&(I=this.ja(I)),I},vi.prototype.ga=function(I){this.V&&this.V(I)},vi.prototype.argPackAdvance=8,vi.prototype.readValueFromPointer=ge,vi.prototype.deleteObject=function(I){I!==null&&I.delete()},vi.prototype.fromWireType=function(I){function m(){return this.ca?li(this.M.W,{O:this.va,N:L,T:this,S:I}):li(this.M.W,{O:this,N:I})}var L=this.pa(I);if(!L)return this.ga(I),null;var k=Ct(this.M,L);if(k!==void 0)return k.L.count.value===0?(k.L.N=L,k.L.S=I,k.clone()):(k=k.clone(),this.ga(I),k);if(k=this.M.oa(L),k=yi[k],!k)return m.call(this);k=this.ba?k.ka:k.pointerType;var P=mt(L,this.M,k.M);return P===null?m.call(this):this.ca?li(k.M.W,{O:k,N:P,T:this,S:I}):li(k.M.W,{O:k,N:P})},Mu=n.UnboundTypeError=Be("UnboundTypeError");var Ky=typeof atob=="function"?atob:function(I){var m="",L=0;I=I.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(L++)),P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(L++)),W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(L++)),Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(L++));k=k<<2|P>>4,P=(P&15)<<4|W>>2;var ee=(W&3)<<6|Z;m+=String.fromCharCode(k),W!==64&&(m+=String.fromCharCode(P)),Z!==64&&(m+=String.fromCharCode(ee))}while(L<I.length);return m},Vy={p:function(I,m,L){I=ae(I),m=Ve(m,"wrapper"),L=Ce(L);var k=[].slice,P=m.M,W=P.W,Z=P.P.W,ee=P.P.constructor;I=ce(I,function(){P.P.ia.forEach((function(te){if(this[te]===Z[te])throw new ue("Pure virtual function "+te+" must be implemented in JavaScript")}).bind(this)),Object.defineProperty(this,"__parent",{value:W}),this.__construct.apply(this,k.call(arguments))}),W.__construct=function(){this===W&&re("Pass correct 'this' to __construct");var te=ee.implement.apply(void 0,[this].concat(k.call(arguments)));je(te);var ne=te.L;te.notifyOnDestruction(),ne.$=!0,Object.defineProperties(this,{L:{value:ne}}),gt(this),te=ne.N,te=Ue(P,te),ke.hasOwnProperty(te)?re("Tried to register registered instance: "+te):ke[te]=this},W.__destruct=function(){this===W&&re("Pass correct 'this' to __destruct"),je(this);var te=this.L.N;te=Ue(P,te),ke.hasOwnProperty(te)?delete ke[te]:re("Tried to unregister unregistered instance: "+te)},I.prototype=Object.create(W);for(var se in L)I.prototype[se]=L[se];return ye(I)},j:function(I){var m=Y[I];delete Y[I];var L=m.ea,k=m.V,P=m.ha,W=P.map(Z=>Z.sa).concat(P.map(Z=>Z.ya));Je([I],W,Z=>{var ee={};return P.forEach((se,te)=>{var ne=Z[te],Ee=se.qa,_e=se.ra,rt=Z[te+P.length],Me=se.xa,Dt=se.za;ee[se.na]={read:Kt=>ne.fromWireType(Ee(_e,Kt)),write:(Kt,mr)=>{var Qi=[];Me(Dt,Kt,rt.toWireType(Qi,mr)),le(Qi)}}}),[{name:m.name,fromWireType:function(se){var te={},ne;for(ne in ee)te[ne]=ee[ne].read(se);return k(se),te},toWireType:function(se,te){for(var ne in ee)if(!(ne in te))throw new TypeError('Missing field: "'+ne+'"');var Ee=L();for(ne in ee)ee[ne].write(Ee,te[ne]);return se!==null&&se.push(k,Ee),Ee},argPackAdvance:8,readValueFromPointer:ge,U:k}]})},v:function(){},B:function(I,m,L,k,P){var W=yt(L);m=ae(m),vt(I,{name:m,fromWireType:function(Z){return!!Z},toWireType:function(Z,ee){return ee?k:P},argPackAdvance:8,readValueFromPointer:function(Z){if(L===1)var ee=y;else if(L===2)ee=S;else if(L===4)ee=Q;else throw new TypeError("Unknown boolean type size: "+m);return this.fromWireType(ee[Z>>W])},U:null})},f:function(I,m,L,k,P,W,Z,ee,se,te,ne,Ee,_e){ne=ae(ne),W=Yt(P,W),ee&&(ee=Yt(Z,ee)),te&&(te=Yt(se,te)),_e=Yt(Ee,_e);var rt=ie(ne);Ls(rt,function(){Mn("Cannot construct "+ne+" due to unbound types",[k])}),Je([I,m,L],k?[k]:[],function(Me){if(Me=Me[0],k)var Dt=Me.M,Kt=Dt.W;else Kt=Bt.prototype;Me=ce(rt,function(){if(Object.getPrototypeOf(this)!==mr)throw new xe("Use 'new' to construct "+ne);if(Qi.X===void 0)throw new xe(ne+" has no accessible constructor");var Yu=Qi.X[arguments.length];if(Yu===void 0)throw new xe("Tried to invoke ctor of "+ne+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Qi.X).toString()+") parameters instead!");return Yu.apply(this,arguments)});var mr=Object.create(Kt,{constructor:{value:Me}});Me.prototype=mr;var Qi=new ki(ne,Me,mr,_e,Dt,W,ee,te);Dt=new vi(ne,Qi,!0,!1),Kt=new vi(ne+"*",Qi,!1,!1);var $u=new vi(ne+" const*",Qi,!1,!0);return yi[I]={pointerType:Kt,ka:$u},Ty(rt,Me),[Dt,Kt,$u]})},c:function(I,m,L,k,P,W,Z){var ee=Za(L,k);m=ae(m),W=Yt(P,W),Je([],[I],function(se){function te(){Mn("Cannot call "+ne+" due to unbound types",ee)}se=se[0];var ne=se.name+"."+m;m.startsWith("@@")&&(m=Symbol[m.substring(2)]);var Ee=se.M.constructor;return Ee[m]===void 0?(te.Y=L-1,Ee[m]=te):(es(Ee,m,ne),Ee[m].R[L-1]=te),Je([],ee,function(_e){return _e=za(ne,[_e[0],null].concat(_e.slice(1)),null,W,Z),Ee[m].R===void 0?(_e.Y=L-1,Ee[m]=_e):Ee[m].R[L-1]=_e,[]}),[]})},o:function(I,m,L,k,P,W){0<m||U();var Z=Za(m,L);P=Yt(k,P),Je([],[I],function(ee){ee=ee[0];var se="constructor "+ee.name;if(ee.M.X===void 0&&(ee.M.X=[]),ee.M.X[m-1]!==void 0)throw new xe("Cannot register multiple constructors with identical number of parameters ("+(m-1)+") for class '"+ee.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return ee.M.X[m-1]=()=>{Mn("Cannot construct "+ee.name+" due to unbound types",Z)},Je([],Z,function(te){return te.splice(1,0,null),ee.M.X[m-1]=za(se,te,null,P,W),[]}),[]})},a:function(I,m,L,k,P,W,Z,ee){var se=Za(L,k);m=ae(m),W=Yt(P,W),Je([],[I],function(te){function ne(){Mn("Cannot call "+Ee+" due to unbound types",se)}te=te[0];var Ee=te.name+"."+m;m.startsWith("@@")&&(m=Symbol[m.substring(2)]),ee&&te.M.ia.push(m);var _e=te.M.W,rt=_e[m];return rt===void 0||rt.R===void 0&&rt.className!==te.name&&rt.Y===L-2?(ne.Y=L-2,ne.className=te.name,_e[m]=ne):(es(_e,m,Ee),_e[m].R[L-2]=ne),Je([],se,function(Me){return Me=za(Ee,Me,te,W,Z),_e[m].R===void 0?(Me.Y=L-2,_e[m]=Me):_e[m].R[L-2]=Me,[]}),[]})},A:function(I,m){m=ae(m),vt(I,{name:m,fromWireType:function(L){var k=Ce(L);return eA(L),k},toWireType:function(L,k){return ye(k)},argPackAdvance:8,readValueFromPointer:ge,U:null})},m:function(I,m,L){L=yt(L),m=ae(m),vt(I,{name:m,fromWireType:function(k){return k},toWireType:function(k,P){return P},argPackAdvance:8,readValueFromPointer:_y(m,L),U:null})},d:function(I,m,L,k,P){m=ae(m),P===-1&&(P=4294967295),P=yt(L);var W=ee=>ee;if(k===0){var Z=32-8*L;W=ee=>ee<<Z>>>Z}L=m.includes("unsigned")?function(ee,se){return se>>>0}:function(ee,se){return se},vt(I,{name:m,fromWireType:W,toWireType:L,argPackAdvance:8,readValueFromPointer:ky(m,P,k!==0),U:null})},b:function(I,m,L){function k(W){W>>=2;var Z=B;return new P(p,Z[W+1],Z[W])}var P=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][m];L=ae(L),vt(I,{name:L,fromWireType:k,argPackAdvance:8,readValueFromPointer:k},{ta:!0})},n:function(I,m){m=ae(m);var L=m==="std::string";vt(I,{name:m,fromWireType:function(k){var P=B[k>>2],W=k+4;if(L)for(var Z=W,ee=0;ee<=P;++ee){var se=W+ee;if(ee==P||v[se]==0){if(Z=Z?f(v,Z,se-Z):"",te===void 0)var te=Z;else te+="\0",te+=Z;Z=se+1}}else{for(te=Array(P),ee=0;ee<P;++ee)te[ee]=String.fromCharCode(v[W+ee]);te=te.join("")}return Bi(k),te},toWireType:function(k,P){P instanceof ArrayBuffer&&(P=new Uint8Array(P));var W,Z=typeof P=="string";if(Z||P instanceof Uint8Array||P instanceof Uint8ClampedArray||P instanceof Int8Array||re("Cannot pass non-string to std::string"),L&&Z){var ee=0;for(W=0;W<P.length;++W){var se=P.charCodeAt(W);127>=se?ee++:2047>=se?ee+=2:55296<=se&&57343>=se?(ee+=4,++W):ee+=3}W=ee}else W=P.length;if(ee=iA(4+W+1),se=ee+4,B[ee>>2]=W,L&&Z){if(Z=se,se=W+1,W=v,0<se){se=Z+se-1;for(var te=0;te<P.length;++te){var ne=P.charCodeAt(te);if(55296<=ne&&57343>=ne){var Ee=P.charCodeAt(++te);ne=65536+((ne&1023)<<10)|Ee&1023}if(127>=ne){if(Z>=se)break;W[Z++]=ne}else{if(2047>=ne){if(Z+1>=se)break;W[Z++]=192|ne>>6}else{if(65535>=ne){if(Z+2>=se)break;W[Z++]=224|ne>>12}else{if(Z+3>=se)break;W[Z++]=240|ne>>18,W[Z++]=128|ne>>12&63}W[Z++]=128|ne>>6&63}W[Z++]=128|ne&63}}W[Z]=0}}else if(Z)for(Z=0;Z<W;++Z)te=P.charCodeAt(Z),255<te&&(Bi(se),re("String has UTF-16 code units that do not fit in 8 bits")),v[se+Z]=te;else for(Z=0;Z<W;++Z)v[se+Z]=P[Z];return k!==null&&k.push(Bi,ee),ee},argPackAdvance:8,readValueFromPointer:ge,U:function(k){Bi(k)}})},i:function(I,m,L){if(L=ae(L),m===2)var k=Fy,P=Ny,W=My,Z=()=>C,ee=1;else m===4&&(k=Oy,P=Py,W=Uy,Z=()=>B,ee=2);vt(I,{name:L,fromWireType:function(se){for(var te=B[se>>2],ne=Z(),Ee,_e=se+4,rt=0;rt<=te;++rt){var Me=se+4+rt*m;(rt==te||ne[Me>>ee]==0)&&(_e=k(_e,Me-_e),Ee===void 0?Ee=_e:(Ee+="\0",Ee+=_e),_e=Me+m)}return Bi(se),Ee},toWireType:function(se,te){typeof te!="string"&&re("Cannot pass non-string to C++ string type "+L);var ne=W(te),Ee=iA(4+ne+m);return B[Ee>>2]=ne>>ee,P(te,Ee+4,ne+m),se!==null&&se.push(Bi,Ee),Ee},argPackAdvance:8,readValueFromPointer:ge,U:function(se){Bi(se)}})},k:function(I,m,L,k,P,W){Y[I]={name:ae(m),ea:Yt(L,k),V:Yt(P,W),ha:[]}},h:function(I,m,L,k,P,W,Z,ee,se,te){Y[I].ha.push({na:ae(m),sa:L,qa:Yt(k,P),ra:W,ya:Z,xa:Yt(ee,se),za:te})},C:function(I,m){m=ae(m),vt(I,{ua:!0,name:m,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(I,m,L,k,P){I=On[I],m=Ce(m),L=Ou(L);var W=[];return B[k>>2]=ye(W),I(m,L,W,P)},t:function(I,m,L,k){I=On[I],m=Ce(m),L=Ou(L),I(m,L,null,k)},g:eA,l:function(I,m){var L=$y(I,m),k=L[0];m=k.name+"_$"+L.slice(1).map(function(Z){return Z.name}).join("_")+"$";var P=Pu[m];if(P!==void 0)return P;var W=Array(I-1);return P=Hy((Z,ee,se,te)=>{for(var ne=0,Ee=0;Ee<I-1;++Ee)W[Ee]=L[Ee+1].readValueFromPointer(te+ne),ne+=L[Ee+1].argPackAdvance;for(Z=Z[ee].apply(Z,W),Ee=0;Ee<I-1;++Ee)L[Ee+1].la&&L[Ee+1].la(W[Ee]);if(!k.ua)return k.toWireType(se,Z)}),Pu[m]=P},q:function(I){4<I&&(Ae[I].fa+=1)},r:function(I){var m=Ce(I);le(m),eA(I)},e:function(){U("")},x:function(I,m,L){v.copyWithin(I,m,m+L)},w:function(I){var m=v.length;if(I>>>=0,2147483648<I)return!1;for(var L=1;4>=L;L*=2){var k=m*(1+.2/L);k=Math.min(k,I+100663296);var P=Math;k=Math.max(I,k),P=P.min.call(P,2147483648,k+(65536-k%65536)%65536);e:{try{d.grow(P-p.byteLength+65535>>>16),G();var W=1;break e}catch{}W=void 0}if(W)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(I,m,L,k){for(var P=0,W=0;W<L;W++){var Z=B[m>>2],ee=B[m+4>>2];m+=8;for(var se=0;se<ee;se++){var te=v[Z+se],ne=Yy[I];te===0||te===10?((I===1?c:h)(f(ne,0)),ne.length=0):ne.push(te)}P+=ee}return B[k>>2]=P,0}};(function(){function I(P){n.asm=P.exports,d=n.asm.D,G(),F=n.asm.I,j.unshift(n.asm.E),b--,n.monitorRunDependencies&&n.monitorRunDependencies(b),b==0&&R&&(P=R,R=null,P())}function m(P){I(P.instance)}function L(P){return M().then(function(W){return WebAssembly.instantiate(W,k)}).then(function(W){return W}).then(P,function(W){h("failed to asynchronously prepare wasm: "+W),U(W)})}var k={a:Vy};if(b++,n.monitorRunDependencies&&n.monitorRunDependencies(b),n.instantiateWasm)try{return n.instantiateWasm(k,I)}catch(P){h("Module.instantiateWasm callback failed with error: "+P),a(P)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||x(w)||typeof fetch!="function"?L(m):fetch(w,{credentials:"same-origin"}).then(function(P){return WebAssembly.instantiateStreaming(P,k).then(m,function(W){return h("wasm streaming compile failed: "+W),h("falling back to ArrayBuffer instantiation"),L(m)})})}().catch(a),{}})(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.E).apply(null,arguments)};var Gu=n.___getTypeName=function(){return(Gu=n.___getTypeName=n.asm.F).apply(null,arguments)};n.__embind_initialize_bindings=function(){return(n.__embind_initialize_bindings=n.asm.G).apply(null,arguments)};var iA=n._malloc=function(){return(iA=n._malloc=n.asm.H).apply(null,arguments)},Bi=n._free=function(){return(Bi=n._free=n.asm.J).apply(null,arguments)};n.dynCall_jiji=function(){return(n.dynCall_jiji=n.asm.K).apply(null,arguments)};var Un;R=function I(){Un||Hu(),Un||(R=I)};function Hu(){function I(){if(!Un&&(Un=!0,n.calledRun=!0,!g)){if(q(j),o(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),n.postRun)for(typeof n.postRun=="function"&&(n.postRun=[n.postRun]);n.postRun.length;){var m=n.postRun.shift();V.unshift(m)}q(V)}}if(!(0<b)){if(n.preRun)for(typeof n.preRun=="function"&&(n.preRun=[n.preRun]);n.preRun.length;)J();q(H),0<b||(n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),I()},1)):I())}}if(n.preInit)for(typeof n.preInit=="function"&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.pop()();return Hu(),r.ready}})();s.exports=t})(sl);var kg=sl.exports;(function(s){Object.defineProperty(s,"__esModule",{value:!0});var e={loadYoga:!0};s.loadYoga=o;var t=r(lo),i=Qe;Object.keys(i).forEach(function(a){a==="default"||a==="__esModule"||Object.prototype.hasOwnProperty.call(e,a)||a in s&&s[a]===i[a]||Object.defineProperty(s,a,{enumerable:!0,get:function(){return i[a]}})});function r(a){return a&&a.__esModule?a:{default:a}}const n=kg;async function o(){return(0,t.default)(await n())}})(tl);function go({canvas:s,scenes:e,currentTime:t}){if(e&&s){const i=e.scenes.filter(({start:n,duration:o})=>t>=n&&t<=n+o);if(i.length<=0)return;const r=s.getContext("2d");if(r){const n=e.transitionDuration,o=Math.max(...e.scenes.map(({start:a,duration:A})=>a+A));r.globalCompositeOperation="lighter",r.clearRect(0,0,s.width,s.height),i.forEach(({start:a,duration:A,draw:l,transitionCanvas:c})=>{if(r.globalAlpha=1,c.width=c.height=0,c.width=s.width,c.height=s.height,c.getContext("2d")){const u=a+A,d=a===0,g=u===o;l({currentTime:t,canvas:c}),!d&&t>=a&&t<=a+n?r.globalAlpha=Math.max(0,Math.min(1,(t-a)/n)):!g&&t>=u-n&&t<=u&&(r.globalAlpha=Math.max(0,Math.min(1,(u-t)/n))),r.drawImage(c,0,0,s.width,s.height)}})}}}function Fg(s){if(typeof s=="string"){const[e,t]=s.split(":");return Math.min(parseFloat(e),parseFloat(t))}return s}function Ng(s){if(typeof s=="string"){const[e,t]=s.split(":"),i=parseFloat(e),r=parseFloat(t);return i/r}return s}function fo({resolution:s,aspectRatio:e}){const t=Fg(s),i=Ng(e),r=i>=1,n=Math.min(r?t*i:t/i,t),o=Math.max(r?t*i:t/i,t);return{resolution:t,aspectRatio:i,height:r?n:o,width:r?o:n}}function Mg({format:s,resolution:e,aspectRatio:t,sourceWidth:i,sourceHeight:r}){const{width:n,height:o}=fo({resolution:e,aspectRatio:t}),a=i/r,A=t>a;let l=1;if(s==="letterbox"||s==="letterbox-video")l=A?o/r:n/i;else if(s==="squarebox"){const g=Math.min(o,n);l=i>=r?g/r:g/i}else s==="crop"&&(l=A?n/i:o/r);const c=n/l,h=o/l,u=(i-c)/2,d=(r-h)/2;return{sx:u,sy:d,sWidth:c,sHeight:h,scale:l}}function Xs({source:s,sx:e,sy:t,sw:i,sh:r,dx:n,dy:o,dw:a,dh:A}){const l=(s==null?void 0:s.naturalWidth)??(s==null?void 0:s.videoWidth)??(s==null?void 0:s.width),c=(s==null?void 0:s.naturalHeight)??(s==null?void 0:s.videoHeight)??(s==null?void 0:s.height);e=e??0,t=t??0,i=i??l,r=r??c,i<0&&(e+=i,i=Math.abs(i)),r<0&&(t+=r,r=Math.abs(r)),a<0&&(n+=a,a=Math.abs(a)),A<0&&(o+=A,A=Math.abs(A));const h=Math.max(e,0),u=Math.min(e+i,l),d=Math.max(t,0),g=Math.min(t+r,c),f=a/i,p=A/r;return[s,h,d,u-h,g-d,e<0?n-e*f:n,t<0?o-t*p:o,(u-h)*f,(g-d)*p]}function rl({context:s,source:e,crop:t,format:i="letterbox",posX:r,posY:n,drawAreaWidth:o,drawAreaHeight:a,sourceWidth:A,sourceHeight:l,cropCanvas:c,letterboxCanvas:h}){const{x:u,y:d,width:g,height:f}=t??{},p=A*(u??0),y=l*(d??0),v=A*Math.min(1-(u??0),g??1),S=l*Math.min(1-(d??0),f??1),C=c.getContext("2d");if(C){c.width=v,c.height=S;const R=Xs({source:e,sx:p,sy:y,sw:v,sh:S,dx:0,dy:0,dw:v,dh:S});C.drawImage(...R)}const Q=v/S,{sx:B,sy:_,sWidth:D,sHeight:G,scale:F}=Mg({resolution:Math.min(o,a),aspectRatio:o/a,format:i,sourceWidth:v,sourceHeight:S}),H=c&&typeof s.filter<"u";if(i==="letterbox"||i==="squarebox"||i==="letterbox-video"&&!H){if(B<0){const R=Math.abs(B)*F;s.fillStyle="black",s.beginPath(),s.rect(r,n,R,a),s.rect(r+o-R,n,R,a),s.fill(),s.closePath()}if(_<0){const R=Math.abs(_)*F;s.fillStyle="black",s.beginPath(),s.rect(r,n,o,R),s.rect(r,n+a-R,o,R),s.fill(),s.closePath()}}if(i==="letterbox-video"&&H){const R=h.getContext("2d");if(R){h.width=v,h.height=S,s.save(),s.globalCompositeOperation="destination-out",s.fillRect(r,n,o,a);const U=Xs({source:c,sx:B,sy:_,sw:D,sh:G,dx:r,dy:n,dw:o,dh:a});s.globalCompositeOperation="source-over",s.drawImage(...U),R.save();const x=1.2,w=-(v*x-v)/2,T=-(S*x-S)/2,K=Math.min(v/20,S/20);if(R.filter=`blur(${K}px) brightness(20%)`,R.translate(w,T),R.scale(x,x),R.drawImage(c,0,0,v,S),R.restore(),s.globalCompositeOperation="destination-over",B<0){const M=o/Q,q=a/M,ie=Xs({source:h,sy:(1-q)*S/2,sh:q*S,dx:r,dy:n,dw:o,dh:a});s.drawImage(...ie)}if(_<0){const M=a*Q,q=o/M,ie=Xs({source:h,sx:(1-q)*v/2,sw:q*v,dx:r,dy:n,dw:o,dh:a});s.drawImage(...ie)}s.restore()}}else{const R=Xs({source:c,sx:B,sy:_,sw:D,sh:G,dx:r,dy:n,dw:o,dh:a});s.drawImage(...R)}const j=B*-1*F,V=_*-1*F,J=o-j*2,b=a-V*2;return{dx:j,dy:V,dw:J,dh:b}}function nl({context:s,word:e,maxW:t=1/0}){const i=[],r=s.measureText(e);if(r.width<t)return[{text:e,metrics:r}];for(let n=0;n<e.length;n++){const o=i[i.length-1],a=((o==null?void 0:o.text)??"")+e[n],A=s.measureText(a);A.width<t?i[o?i.length-1:0]={text:a,metrics:A}:i.push({text:e[n],metrics:s.measureText(e[n])})}return i}const ol=Xn(({font:s,scale:e,context:t,maxW:i,maxH:r,text:n,minSize:o,maxSize:a})=>{var A,l;let c=0;if(a){c=(o??0)*e;let u=0;for(;a*e>c+1;){c+=1;const d=Yr({context:t,font:s,fontSize:c,text:n,maxW:i});if(u=d.reduce((g,f)=>(f.metrics.width>g&&(g=f.metrics.width),g),0),u>i||d.length*c>r){c-=1;break}}}else c=parseFloat(((l=(A=s.match($r))==null?void 0:A.groups)==null?void 0:l.value)??"0")*e;return c},{cacheKey:([{font:s,text:e,minSize:t,maxSize:i,scale:r,maxW:n,maxH:o}])=>`${s}_${e}_${t}_${i}_${r}_${n}_${o}`});function Og(s,e){return typeof s=="number"?{top:s*e,right:s*e,bottom:s*e,left:s*e}:{top:typeof s.top=="number"?s.top*e:s.top,right:typeof s.right=="number"?s.right*e:s.right,bottom:typeof s.bottom=="number"?s.bottom*e:s.bottom,left:typeof s.left=="number"?s.left*e:s.left}}function al(s,e){return typeof s=="number"?{top:s*e,right:s*e,bottom:s*e,left:s*e}:{top:(typeof s.top=="number"?s.top*e:s.top)??0,right:(typeof s.right=="number"?s.right*e:s.right)??0,bottom:(typeof s.bottom=="number"?s.bottom*e:s.bottom)??0,left:(typeof s.left=="number"?s.left*e:s.left)??0}}function Al(s,e,{layout:t,scale:i=1}){const{position:r="relative",inset:n,width:o,height:a,minWidth:A,minHeight:l,maxWidth:c,maxHeight:h,flex:u,gap:d,margin:g,padding:f,direction:p="column",align:y="start",alignSelf:v,justify:S="start"}=t,C={static:s.POSITION_TYPE_STATIC,relative:s.POSITION_TYPE_RELATIVE,absolute:s.POSITION_TYPE_ABSOLUTE};if(e.setPositionType(C[r]),n){const{top:D,right:G,bottom:F,left:H}=Og(n,i);D&&e.setPosition(s.EDGE_TOP,D),G&&e.setPosition(s.EDGE_RIGHT,G),F&&e.setPosition(s.EDGE_BOTTOM,F),H&&e.setPosition(s.EDGE_LEFT,H)}const Q={row:s.FLEX_DIRECTION_ROW,column:s.FLEX_DIRECTION_COLUMN,"row-reverse":s.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":s.FLEX_DIRECTION_COLUMN_REVERSE};e.setFlexDirection(Q[p]);const B={start:s.ALIGN_FLEX_START,end:s.ALIGN_FLEX_END,center:s.ALIGN_CENTER,stretch:s.ALIGN_STRETCH};e.setAlignItems(B[y]),v&&e.setAlignSelf(B[v]);const _={start:s.JUSTIFY_FLEX_START,end:s.JUSTIFY_FLEX_END,center:s.JUSTIFY_CENTER,"space-between":s.JUSTIFY_SPACE_BETWEEN,"space-around":s.JUSTIFY_SPACE_AROUND,"space-evenly":s.JUSTIFY_SPACE_EVENLY};if(e.setJustifyContent(_[S]),g){const{top:D,right:G,bottom:F,left:H}=al(g,i);e.setMargin(s.EDGE_TOP,D),e.setMargin(s.EDGE_RIGHT,G),e.setMargin(s.EDGE_BOTTOM,F),e.setMargin(s.EDGE_LEFT,H)}if(f){const{top:D,right:G,bottom:F,left:H}=al(f,i);e.setPadding(s.EDGE_TOP,D),e.setPadding(s.EDGE_RIGHT,G),e.setPadding(s.EDGE_BOTTOM,F),e.setPadding(s.EDGE_LEFT,H)}u&&e.setFlex(u),e.setGap(s.GUTTER_ALL,(d??0)*i),o&&e.setWidth(typeof o=="number"?o*i:o),a&&(typeof a=="function"?e.setHeight("100%"):e.setHeight(typeof a=="number"?a*i:a)),A&&e.setMinWidth(typeof A=="number"?A*i:A),l&&e.setMinHeight(typeof l=="number"?l*i:l),c&&e.setMaxWidth(typeof c=="number"?c*i:c),h&&e.setMaxHeight(typeof h=="number"?h*i:h)}function ll({canvas:s,debug:e=!1,scale:t=1,position:i=[]}){i.forEach(({x:r,y:n,width:o,height:a,childNodes:A,element:l})=>{const c=s.getContext("2d",{alpha:!1});if(c){const{draw:h}=l;h&&(c.save(),h({scale:t,dx:r,dy:n,dw:o,dh:a}),e&&(c.strokeStyle="red",c.strokeRect(r,n,o,a))),ll({canvas:s,debug:e,scale:t,position:A}),c.restore()}})}function cl(s,e,t,i){const r=t.map((n,o)=>{const a=s.Node.create(),{radius:A,elements:l=[],draw:c,...h}=n;return Al(s,a,{layout:h,scale:i}),e.insertChild(a,o),{node:a,element:n,childNodes:cl(s,a,l,i)}});return e.calculateLayout(),r}function hl(s,e,t=0,i=0){const{top:r,left:n}=s.getComputedLayout();return e.map(({node:o,element:a,childNodes:A})=>{const{top:l,left:c,width:h,height:u}=o.getComputedLayout(),d=t+c,g=i+l;return{x:n+d,y:r+g,width:h,height:u,element:a,childNodes:hl(s,A,d,g)}})}function ul(s,e){s.forEach(({node:t,element:i,childNodes:r})=>{const{height:n}=i;if(n&&typeof n=="function"){const o=t.getComputedWidth(),a=t.getComputedHeight(),A=n({width:o,maxHeight:a,scale:e});t.setHeight(A)}ul(r,e)})}function Pg({yoga:s,canvas:e,origin:t,elements:i,...r}){const n={inset:{top:0,left:0},width:e.width,height:e.height,...t},o=s.Node.create();Al(s,o,{layout:n}),o.calculateLayout();const{width:a,height:A}=o.getComputedLayout(),l=Math.min(a,A)/1080,c=cl(s,o,i,l);ul(c,l),o.calculateLayout();const h=hl(o,c);return ll({...r,scale:l,canvas:e,position:h})}const Ug={linear:cg,easeIn:no,easeInOut:ug,easeOut:hg,circIn:zA,circInOut:dg,circOut:ZA,backIn:oo,backInOut:fg,backOut:gg,anticipate:pg,bounceIn:Cg,bounceInOut:yg,bounceOut:Tr},Gr=Xn((s,e,{clamp:t=!0,ease:i="easeIn",...r}={})=>rg(s,e,{...r,clamp:t,ease:Ug[i]}),{cacheKey:([s,e,t])=>JSON.stringify({from:s,to:e,options:t})}),dl=[{family:"Noto Arabic",regex:new RegExp("\\p{Script=Arabic}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansArabic-VariableFont_wdth%2Cwght.woff2",style:"normal"},{family:"Noto Chinese",regex:new RegExp("\\p{Script=Han}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansSC-VariableFont_wght.woff2",style:"normal"},{family:"Noto Hebrew",regex:new RegExp("\\p{Script=Hebrew}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansHebrew-VariableFont_wdth%2Cwght.woff2",style:"normal"},{family:"Noto Hindi",regex:new RegExp("\\p{Script=Devanagari}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansDevanagari-VariableFont_wdth%2Cwght.woff2",style:"normal"},{family:"Noto Japanese",regex:new RegExp("\\p{Script=Han}|\\p{Script=Katakana}|\\p{Script=Hiragana}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansJP-VariableFont_wght.woff2",style:"normal"},{family:"Noto Korean",regex:new RegExp("\\p{Script=Hangul}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoSansKR-VariableFont_wght.woff2",style:"normal"},{family:"Noto Color Emoji",regex:new RegExp("\\p{Extended_Pictographic}","u"),url:"https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/NotoColorEmoji-Regular.woff2",style:"normal"}];function Hr({text:s,font:e}){let t=e;return dl.forEach(({family:i,regex:r})=>{r.exec(s)&&(t+=`, ${i}`)}),t}const gi=1.8,$r=/(?<value>\d+\.?\d*)(?=px)/;function gl(s,e=1){return typeof s=="number"?{topLeft:s*e,topRight:s*e,bottomRight:s*e,bottomLeft:s*e}:{topLeft:((s==null?void 0:s.topLeft)??0)*e,topRight:((s==null?void 0:s.topRight)??0)*e,bottomRight:((s==null?void 0:s.bottomRight)??0)*e,bottomLeft:((s==null?void 0:s.bottomLeft)??0)*e}}function fl(s){const{visible:e,node:t}=s,i=[...(t==null?void 0:t.elements)??[],...(s==null?void 0:s.elements)??[]];return e??(t&&t.type!=="box"&&t.type!=="gradient"?!!t.value:i==null?void 0:i.some(r=>fl(r)))}function pl({yoga:s,debug:e=!1,canvas:t,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:o=[],currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u}){return o.map(d=>{var g,f,p,y,v,S,C,Q;const{node:B,transient:_=[{from:0,duration:1/0}]}=d,D=t.getContext("2d"),G={total:a,content:A,scene:l},F={total:c,content:h,scene:u},H=_.reduce((j,{type:V="scene",from:J,duration:b,animation:R})=>{const U=J<0?F[V]+J:J;return G[V]>=U&&G[V]<=U+b&&j.push({type:V,animation:R,duration:b,from:U}),j},[]);if(D&&H.length>0&&fl(d)){let j=d.width,V=d.height;if((B==null?void 0:B.type)==="text"&&B.value){const{align:J="left"}=B,b=Hr({text:B.value,font:B.font});D.save(),D.font=b,D.textBaseline="top",D.textAlign=J,B.wrap?V=({width:R,maxHeight:U,scale:x})=>{var w,T;const K=ol({font:b,scale:x,context:D,maxW:R,maxH:U,text:B.value??"",minSize:(w=B.fill)==null?void 0:w.minSize,maxSize:(T=B.fill)==null?void 0:T.maxSize});return Yr({context:D,font:b,fontSize:K,text:B.value??"",maxW:R}).length*K}:(j=D.measureText(B.value).width,V=parseFloat(((f=(g=b.match($r))==null?void 0:g.groups)==null?void 0:f.value)??"0")),D.restore()}if((B==null?void 0:B.type)==="image"&&B.image&&B.size){const J=((p=B.image)==null?void 0:p.naturalWidth)??((y=B.image)==null?void 0:y.width),b=((v=B.image)==null?void 0:v.naturalHeight)??((S=B.image)==null?void 0:S.height),R=J/b,U=(C=B.size)==null?void 0:C.width,x=(Q=B.size)==null?void 0:Q.height;j=U??(R>=1?(x??0)*R:(x??0)/R),V=x??(R<1?(U??0)*R:(U??0)/R)}return{...d,width:j,height:V,elements:pl({yoga:s,debug:e,canvas:t,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:d.elements,currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u}),draw:({dx:J,dy:b,dw:R,dh:U,scale:x})=>{var w,T,K,M,q,ie,ce,Ae,me,Be,xe,re,Ce;if(H.forEach(ye=>{const{type:ue="scene",from:he,duration:ae,animation:we={type:"fade",duration:.3333333333333333,easing:{in:"easeOut",out:"easeOut"}}}=ye;if(we){const{type:Pe,duration:Te,easing:{in:ke="easeOut",out:Ue="easeOut"}={}}=we;if(he>0&&G[ue]<=he+Te)switch(Pe){case"fade":{const Le=Gr([he,he+Te],[0,1],{ease:ke});D.globalAlpha=Le(G[ue]);break}case"slide":{const{options:Le}=we,Se={up:[{x:0,y:U},{x:0,y:0}],right:[{x:R,y:0},{x:0,y:0}],down:[{x:0,y:-U},{x:0,y:0}],left:[{x:-R,y:0},{x:0,y:0}]},Ve=Gr([he,he+Te],Se[Le.direction.in],{ease:ke}),{x:je,y:ct}=Ve(G[ue]);D.translate(je,ct);break}}if(he+ae<F[ue]&&he+ae-Te<=G[ue])switch(Pe){case"fade":{const Le=Gr([he+ae-Te,he+ae],[1,0],{ease:Ue});D.globalAlpha=Le(G[ue]);break}case"slide":{const{options:Le}=we,Se={up:[{x:0,y:0},{x:0,y:-U}],right:[{x:0,y:0},{x:R,y:0}],down:[{x:0,y:0},{x:0,y:U}],left:[{x:0,y:0},{x:-R,y:0}]},Ve=Gr([he+ae-Te,he+ae],Se[Le.direction.out],{ease:Ue}),{x:je,y:ct}=Ve(G[ue]);D.translate(je,ct);break}}}}),B){const{type:ye}=B;if(ye==="box"){const{shadow:{color:ue="rgba(0, 0, 0, 0.5)",blur:he=0,offset:{x:ae=0,y:we=0}={}}={}}=B;if(D.save(),D.fillStyle=ue,D.shadowColor=ue,D.shadowBlur=he,D.shadowOffsetX=ae+R+t.width,D.shadowOffsetY=we+U+t.height,D.beginPath(),!d.radius)D.rect(J-R-t.width,b-U-t.height,R,U);else{const{topLeft:Pe,topRight:Te,bottomRight:ke,bottomLeft:Ue}=gl(d.radius,x);D.roundRect(J-R-t.width,b-U-t.height,R,U,[Pe,Te,ke,Ue])}D.fill(),D.closePath(),D.restore()}if(d.radius){const{topLeft:ue,topRight:he,bottomRight:ae,bottomLeft:we}=gl(d.radius,x);D.beginPath(),D.moveTo(J+Math.min(U/gi,ue),b),D.lineTo(J+R-Math.min(U/gi,he),b),D.quadraticCurveTo(J+R,b,J+R,b+Math.min(U/gi,he)),D.lineTo(J+R,b+U-Math.min(U/gi,ae)),D.quadraticCurveTo(J+R,b+U,J+R-Math.min(U/gi,ae),b+U),D.lineTo(J+Math.min(U/gi,we),b+U),D.quadraticCurveTo(J,b+U,J,b+U-Math.min(U/gi,we)),D.lineTo(J,b+Math.min(U/gi,ue)),D.quadraticCurveTo(J,b,J+Math.min(U/gi,ue),b),D.closePath(),e&&(D.strokeStyle="blue",D.stroke()),D.clip()}if(ye==="box"&&(D.save(),D.fillStyle=B.background,D.fillRect(J,b,R,U),D.restore()),ye==="text"&&B.value){const{align:ue="left"}=B,he=Hr({text:B.value,font:B.font}),ae=ol({font:he,scale:x,context:D,maxW:R,maxH:U,text:B.value??"",minSize:(w=B.fill)==null?void 0:w.minSize,maxSize:(T=B.fill)==null?void 0:T.maxSize});D.font=he.replace($r,ae.toString()),D.textBaseline="top",D.fillStyle=B.color,D.textAlign=ue;const we={left:J,center:J+R/2,right:J+R};B.wrap?Yr({context:D,font:he,fontSize:ae,text:B.value,maxW:R}).forEach((Te,ke)=>{D.fillText(Te.text,we[ue],b+ae*ke)}):D.fillText(B.value,we[ue],b)}if(ye==="image"&&B.image&&D.drawImage(B.image,J,b,R,U),ye==="video"&&((K=B.video)!=null&&K.node||(M=B.video)!=null&&M.getSource)){const ue=B.format??"letterbox",he=((ie=(q=B.video)==null?void 0:q.getSource)==null?void 0:ie.call(q,l))??B.video.node,ae=(he==null?void 0:he.videoWidth)??(he==null?void 0:he.naturalWidth)??(he==null?void 0:he.width),we=(he==null?void 0:he.videoHeight)??(he==null?void 0:he.naturalHeight)??(he==null?void 0:he.height);if(ae&&we){const{dx:Te,dy:ke,dw:Ue,dh:Le}=rl({context:D,cropCanvas:i,letterboxCanvas:n,source:he,format:ue,crop:(ce=B==null?void 0:B.value)==null?void 0:ce.crop,sourceWidth:ae,sourceHeight:we,posX:J,posY:b,drawAreaWidth:R,drawAreaHeight:U});B.elements&&po({yoga:s,debug:e,canvas:t,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:B.elements,currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u,origin:{inset:{top:Math.max(b,b+ke),left:Math.max(J,J+Te)},width:Math.min(R,Ue),height:Math.min(U,Le)}})}const Pe=1/3;if(B.poster&&a>=0&&a<=Pe){D.save(),D.globalAlpha=1-a/Pe;const Te=((Ae=B.poster)==null?void 0:Ae.naturalWidth)??((me=B.poster)==null?void 0:me.width),ke=((Be=B.poster)==null?void 0:Be.naturalHeight)??((xe=B.poster)==null?void 0:xe.height);r.width=r.height=0,r.width=R,r.height=U;const Ue=r.getContext("2d");if(Ue&&Te&&ke){const{dx:Le,dy:Se,dw:Ve,dh:je}=rl({context:Ue,cropCanvas:i,letterboxCanvas:n,source:B.poster,format:ue,crop:(re=B==null?void 0:B.value)==null?void 0:re.crop,sourceWidth:Te,sourceHeight:ke,posX:0,posY:0,drawAreaWidth:R,drawAreaHeight:U});B.elements&&po({yoga:s,debug:e,canvas:r,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:B.elements,currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u,origin:{inset:{top:Math.max(0,Se),left:Math.max(0,Le)},width:Math.min(R,Ve),height:Math.min(U,je)}}),D.drawImage(r,J,b,R,U),D.restore()}}}if(ye==="gradient"&&B.value){const ue=D.createLinearGradient(J+R,b,J+R,b+U);(Ce=B.value)==null||Ce.forEach(he=>{ue.addColorStop(he.percent,he.color)}),D.fillStyle=ue,D.fillRect(J,b,R,U)}}}}}}).filter(Boolean)}function po({yoga:s,debug:e,canvas:t,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:o,currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u,...d}){return Pg({...d,yoga:s,debug:e,canvas:t,elements:pl({yoga:s,debug:e,canvas:t,cropCanvas:i,posterCanvas:r,letterboxCanvas:n,elements:o,currentTime:a,contentTime:A,sceneTime:l,totalDuration:c,contentDuration:h,sceneDuration:u})})}const Yr=Xn(({context:s,font:e,fontSize:t,text:i,maxW:r=1/0})=>{try{return s.save(),s.font=e.replace($r,t.toString()),i.split(`
68
68
  `).flatMap(o=>{const a=o.split(" ").filter(Boolean);return a.length?a.slice(1).reduce((A,l)=>{const h=`${A[A.length-1].text} ${l}`.trim(),u=s.measureText(h);return u.width>r?A=[...A,...nl({context:s,word:l,maxW:r})]:A[A.length-1]={text:h,metrics:u},A},nl({context:s,word:a[0],maxW:r})):{text:"",metrics:s.measureText("")}})}finally{s.restore()}},{cacheKey:([{font:s,fontSize:e,text:t,maxW:i}])=>`${s}_${e}_${t}_${i}`}),Gg=/\d{0,2}:?\d{2}:\d{2}\.\d{3}\s-->\s\d{0,2}:?\d{2}:\d{2}\.\d{3}\s{1,2}.*/g,Hg=/\d{0,2}:?\d{2}:\d{2}\.\d{3}/g;function El(s){if(!s)return[];const e=s.match(Gg);return e?e==null?void 0:e.map(t=>{const[i,r]=t.replace(`\r
69
69
  `,`
70
70
  `).split(`
@@ -145,8 +145,8 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
145
145
  "src": {{ it._derived?.src }},
146
146
  "playlist": {{ it._derived?.playlist }},
147
147
  "captions": {{ it._derived?.captions }}
148
- }`}],root:"{{ it.outro?.questions?.items }}"}],system:!0,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}],meta:{frameRate:30,resolution:720,transitionDuration:1/3},system:!0,default:0,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};async function Kg(){if(typeof window>"u"){const s=await Promise.resolve().then(()=>Fu);return new s.Image}return new Image}const Il=ui(async function(e){return e?new Promise((t,i)=>{Kg().then(r=>{r.onload=()=>{t(r)},r.onerror=n=>{i(n)},r.src=e})}):null});async function Eo({element:s,meta:e},t,i){var r,n,o;let a={...s};const{node:A}=s;if((A==null?void 0:A.type)==="video"&&((r=A==null?void 0:A.value)!=null&&r.src||(n=A==null?void 0:A.value)!=null&&n.playlist)){const l=await t(A.value,e);let c;try{c=await Il(A.value.poster)}catch{c=null}a={...a,node:{...A,video:l,poster:c,meta:await i(A.value,l.node,e)}}}if((A==null?void 0:A.type)==="image"&&A.value){let l;try{l=await Il(A.value)}catch{l=null}a={...a,node:{...A,image:l}}}return a.node&&((o=s.node)!=null&&o.elements)&&(a.node.elements=await Promise.all(s.node.elements.map(l=>Eo({element:l,meta:e},t,i)))),s.elements&&(a.elements=await Promise.all(s.elements.map(l=>Eo({element:l,meta:e},t,i)))),a}async function Vr(){if(typeof window>"u"){const s=await Promise.resolve().then(()=>Fu),e=new s.Canvas;return e.gpu=!1,e}return document.createElement("canvas")}function zs(s=[]){var e;for(const t of s){if(((e=t==null?void 0:t.node)==null?void 0:e.type)==="video")return t.node;const i=zs(t==null?void 0:t.elements);if(i)return i}}function Vg(s,e){return s.reduce((t,i,r)=>[...t,i.map(({duration:n},o)=>r===s.length-1&&o===i.length-1?n:n-e)],[])}function Jg(s){if(s===null||typeof s!="object")return!1;if(Object.getPrototypeOf(s)===null)return!0;let e=s;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(s)===e}function Wg(s){return s.replace(/\\/g,"\\\\").replace(/\//g,"\\/").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\f/g,"\\f").replace(/"/g,'\\"')}function Jr(s){return s.flatMap(e=>e).reduce((e,t)=>e+t,0)}const qg=ui(()=>tl.loadYoga());Ao.filters.define("parse",s=>typeof s>"u"?null:typeof s=="string"?`"${Wg(s)}"`:Jg(s)||Array.isArray(s)?JSON.stringify(s):s);const os=(s,e,t)=>Ao.render(s,e,Ao.getConfig({autoEscape:!1,defaultFilter:"parse",...t}));async function as({data:s,template:e,burnCaptions:t=!1,debug:i=!1},r,n,o){var a,A,l,c;const h=await qg(),u=e??Yg;if(!((a=u.templates)!=null&&a.length))throw new Error(`No templates found for template instance: ${u.id}`);let d=u.templates.find(({version:D})=>D===Io);if(!d){const D=u.templates.map(({version:G})=>`"${G}"`).join(", ");console.warn(`Template renderer expects template version "${Io}" but got ${D}`),d=u.templates[u.templates.length-1]}const g=await Promise.all(d.content.map(async({scenes:D,root:G})=>{const F={...u.options,...s,intro:u.intro,outro:u.outro};async function H(j,V){return Promise.all(D.map(async({layout:J,duration:b,data:R,derived:U,options:x})=>{var w,T,K;const M={...F,_index:V,_root:j,_derived:await r({data:s,rootData:j,index:V})},q=R?JSON.parse(await os(R,M)):{},ie=U?JSON.parse(await os(U,M)):{},ce=x?JSON.parse(await os(x,M)):{},Ae=b?parseFloat(await os(b,M)):NaN,me=(w=d.layouts.find(ye=>ye.name===J))==null?void 0:w.tree;if(!me)throw new Error(`Layout tree "${J}" not found in template "${d.id}" layouts.`);const Be=JSON.parse(await os(me,{...q,...ie,...ce})),xe=await Promise.all(Be.flatMap(ye=>Eo({element:ye,meta:u.meta},n,o))),re=zs(xe);return{duration:(isNaN(Ae)?null:Ae)??((T=re==null?void 0:re.meta)==null?void 0:T.duration)??0,captions:(K=re==null?void 0:re.meta)==null?void 0:K.captions,elements:xe}}))}if(G){const j=JSON.parse(await os(G,F));return Array.isArray(j)?(await Promise.all(j.map(async(V,J)=>H(V,J)))).flatMap(V=>V):H(j,null)}return H(s,null)}));if(g.every(D=>D.every(G=>{const F=zs(G.elements);return!(F!=null&&F.value.src)&&!(F!=null&&F.value.playlist)}))){const D=g.flatMap(G=>G.map(F=>{const H=zs(F.elements);return!(H!=null&&H.value.src)&&!(H!=null&&H.value.playlist)&&(H==null?void 0:H.value.id)}).filter(Boolean)).join(", ");throw new Error(`Video(s) with ID ${D} failed to load, video can not be processed`)}if(g.every(D=>D.every(G=>G.duration<=0)))throw new Error("No scenes have any duration, video can not be processed");const y=g.reduce((D,G)=>{const F=G.filter(H=>H.duration>0);return F.length>0&&(D=[...D,F]),D},[]),v=((A=u.meta)==null?void 0:A.frameRate)??30,S=((l=u.meta)==null?void 0:l.resolution)??720,C=((c=u.meta)==null?void 0:c.transitionDuration)??1/3,Q=Vg(y,C),B=Jr(Q);return{scenes:(await Promise.all(y.map((D,G)=>{const F=Jr(Q[G]),H=Jr(Q.slice(0,G));return Promise.all(D.map(async({duration:j,captions:V,elements:J},b)=>{var R,U;const x=await Vr(),w=await Vr(),T=await Vr(),K=await Vr(),M=zs(J),q=Jr([...Q.slice(0,G),...Q[G].slice(0,b)]);return{draw:({canvas:ce,currentTime:Ae})=>{const me=Math.max(0,Ae-H),Be=Math.max(0,Ae-q);po({yoga:h,debug:i,canvas:ce,cropCanvas:x,posterCanvas:K,letterboxCanvas:w,elements:J,currentTime:Ae,contentTime:me,sceneTime:Be,totalDuration:B,contentDuration:F,sceneDuration:j}),V&&t&&$g({canvas:ce,dx:0,dy:0,dw:ce.width,dh:ce.height,vttCaptions:V,sceneTime:Be+((M==null?void 0:M.meta.start)??0)})},duration:j,transitionCanvas:T,start:q,video:M==null?void 0:M.video,videoMeta:M==null?void 0:M.meta,audio:{duration:j,src:(R=M==null?void 0:M.value)==null?void 0:R.src,start:(U=M==null?void 0:M.meta)==null?void 0:U.start}}}))}))).flatMap(D=>D),frameRate:v,resolution:S,transitionDuration:C,fonts:d.fonts??[],duration:B}}const Io="3",jg={name:"@vouchfor/embeds",version:"2.0.2",license:"MIT",author:"Aaron Williams",main:"dist/es/embeds.js",module:"dist/es/embeds.js",type:"module",types:"dist/es/src/index.d.ts",exports:{".":"./dist/es/embeds.js"},files:["dist","src"],publishConfig:{tag:"latest",access:"public"},engines:{node:">=18.18.0"},scripts:{build:"rm -rf dist && tsc && yarn build:self","build:deps":"yarn --cwd ../media-player build","build:self":"vite build --mode iife && vite build --mode es && node scripts/build.cjs","build:package":"yarn build","build:storybook":"yarn prebuild && storybook build","generate:manifest":"wca src --outFile custom-elements.json",lint:"eslint . --quiet","lint:fix":"eslint . --fix","lint:staged":"lint-staged",prepublishOnly:"yarn build",size:"size-limit",storybook:"yarn prebuild && storybook dev -p 6007",prebuild:"yarn build:deps && yarn generate:manifest",test:"rm -rf test/lib && yarn prebuild && vite build --mode test && web-test-runner","test:ci":"yarn test --config web-test-runner.ci.config.js"},"lint-staged":{"**/*.{ts,tsx,js}":"eslint --fix --quiet","**/*.{md,json,yml}":"prettier --write"},dependencies:{"@a11y/focus-trap":"^1.0.5","@lit/task":"^1.0.0","@vouchfor/canvas-video":"^8.0.0","@vouchfor/media-player":"^3.0.2",uuid:"^9.0.1"},peerDependencies:{lit:"^3.1.2"},devDependencies:{"@esm-bundle/chai":"^4.3.4-fix.0","@open-wc/testing":"^4.0.0","@storybook/addon-essentials":"^8.0.4","@storybook/addon-links":"^8.0.4","@storybook/blocks":"^8.0.4","@storybook/web-components":"^8.0.4","@storybook/web-components-vite":"^8.0.4","@svgr/core":"^8.1.0","@types/flat":"^5.0.5","@types/mocha":"^10.0.6","@vouchfor/eslint-config":"^1.0.1","@vouchfor/prettier-config":"^1.0.1","@vouchfor/video-utils":"^1.0.2","@web/dev-server-esbuild":"^1.0.2","@web/test-runner":"^0.18.1","@web/test-runner-browserstack":"^0.7.1","@web/test-runner-mocha":"^0.9.0","@web/test-runner-playwright":"^0.11.0",glob:"^10.3.10","lint-staged":"^15.2.2",lit:"^3.1.2",lodash:"^4.17.21",react:"^18.2.0","react-dom":"^18.2.0","rollup-plugin-tla":"^0.0.2",sinon:"^17.0.1",storybook:"^8.0.4",svgson:"^5.3.1",typescript:"^5.4.3",vite:"^5.2.2","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.7.3","web-component-analyzer":"^2.0.0"}};function Xg(s){const{publicApiUrl:e}=br(s),t=Ui();return navigator.sendBeacon(`${e}/api/visitor`,JSON.stringify({visitorId:t})),t}function zg(s){var n,o,a,A,l,c,h,u,d,g,f,p;if(typeof window>"u")return{client:null,tab:null,request:Ui()};let e=(o=(n=window.localStorage)==null?void 0:n.getItem)==null?void 0:o.call(n,"vouch-uid-visitor"),t=(A=(a=window.localStorage)==null?void 0:a.getItem)==null?void 0:A.call(a,"vouch-uid-client"),i=(c=(l=window.sessionStorage)==null?void 0:l.getItem)==null?void 0:c.call(l,"vouch-uid-tab");const r=Ui();return e||(e=Xg(s),(u=(h=window.localStorage)==null?void 0:h.setItem)==null||u.call(h,"vouch-uid-visitor",e)),t||(t=Ui(),(g=(d=window.localStorage)==null?void 0:d.setItem)==null||g.call(d,"vouch-uid-client",t)),i||(i=Ui(),(p=(f=window.sessionStorage)==null?void 0:f.setItem)==null||p.call(f,"vouch-uid-tab",i)),{client:t,tab:i,request:r,visitor:e}}function Zg(s,e){return s&&"vouchId"in s?s.vouchId:(e==null?void 0:e.id)??null}function ef(s="embedded_player"){var r,n;const[e,t]=((n=(r=Intl.DateTimeFormat().resolvedOptions().timeZone)==null?void 0:r.split)==null?void 0:n.call(r,"/"))??[],i={};return[...new URLSearchParams(location.search).entries()].forEach(([o,a])=>{if(/utm/.test(o)){const A=o.toLowerCase().replace(/[-_][a-z0-9]/g,l=>l.slice(-1).toUpperCase());i[A]=a}}),{source:s,time:new Date,region:t,country:e,screenHeight:window.screen.height,screenWidth:window.screen.width,referrer:document.referrer,currentUrl:location.href,embedType:"media-player-embed",embedVersion:jg.version,templateVersion:Io,...i}}const ml=1;class tf{constructor(e){this._batchedEvents=[],this._hasPlayed=!1,this._hasLoaded={},this._answersViewed={},this._streamStartTime={},this._streamLatestTime={},this._currentlyPlayingVideo=null,this._createTrackingEvent=(t,i)=>{const r=Zg(i,this.host.vouch);!r||this.host.disableTracking||this._batchedEvents.push({event:t,payload:{...i,vouchId:r,time:new Date().toISOString()}})},this._sendTrackingEvent=()=>{if(this._batchedEvents.length<=0)return;const{publicApiUrl:t}=br(this.host.env),{client:i,tab:r,request:n,visitor:o}=zg(this.host.env);navigator.sendBeacon(`${t}/api/batchevents`,JSON.stringify({payload:{events:this._batchedEvents},context:{"x-uid-client":i,"x-uid-tab":r,"x-uid-request":n,"x-uid-visitor":o,"x-reporting-metadata":ef(this.host.trackingSource)}})),this._batchedEvents=[]},this._streamEnded=()=>{if(this._currentlyPlayingVideo){const{id:t,key:i}=this._currentlyPlayingVideo;this._streamLatestTime[i]>this._streamStartTime[i]+ml&&this._createTrackingEvent("VIDEO_STREAMED",{answerId:t,streamStart:this._streamStartTime[i],streamEnd:this._streamLatestTime[i]}),delete this._streamStartTime[i],delete this._streamLatestTime[i]}},this._handleVouchLoaded=({detail:t})=>{t&&(this._hasLoaded[t]||(this._createTrackingEvent("VOUCH_LOADED",{vouchId:t}),this._hasLoaded[t]=!0))},this._handlePlay=()=>{this._hasPlayed||(this._createTrackingEvent("VIDEO_PLAYED",{streamStart:this.host.currentTime}),this._hasPlayed=!0)},this._handleVideoPlay=({detail:{id:t,key:i}})=>{this._answersViewed[i]||(this._createTrackingEvent("VOUCH_RESPONSE_VIEWED",{answerId:t}),this._answersViewed[i]=!0)},this._handleVideoTimeUpdate=({detail:{id:t,key:i,node:r}})=>{var n,o;!this.host.paused&&t===((o=(n=this.host.scene)==null?void 0:n.video)==null?void 0:o.id)&&(this._currentlyPlayingVideo={id:t,key:i,node:r},this._streamLatestTime[i]=r.currentTime,this._streamStartTime[i]||(this._streamStartTime[i]=r.currentTime,this._streamLatestTime[i]=r.currentTime))},this._handleVideoPause=({detail:{id:t,key:i}})=>{this._streamLatestTime[i]>this._streamStartTime[i]+ml&&this._createTrackingEvent("VIDEO_STREAMED",{answerId:t,streamStart:this._streamStartTime[i],streamEnd:this._streamLatestTime[i]}),delete this._streamStartTime[i],delete this._streamLatestTime[i]},this._pageUnloading=()=>{this._streamEnded(),this._sendTrackingEvent()},this._handleVisibilityChange=()=>{document.visibilityState==="hidden"&&this._pageUnloading()},this._handlePageHide=()=>{this._pageUnloading()},this.host=e,e.addController(this)}hostConnected(){requestAnimationFrame(()=>{var e,t,i,r;"onvisibilitychange"in document?document.addEventListener("visibilitychange",this._handleVisibilityChange):window.addEventListener("pagehide",this._handlePageHide),this.host.addEventListener("vouch:loaded",this._handleVouchLoaded),(e=this.host.mediaPlayer)==null||e.addEventListener("play",this._handlePlay),(t=this.host.mediaPlayer)==null||t.addEventListener("video:play",this._handleVideoPlay),(i=this.host.mediaPlayer)==null||i.addEventListener("video:pause",this._handleVideoPause),(r=this.host.mediaPlayer)==null||r.addEventListener("video:timeupdate",this._handleVideoTimeUpdate)})}hostDisconnected(){var e,t,i,r;this._pageUnloading(),"onvisibilitychange"in document?document.removeEventListener("visibilitychange",this._handleVisibilityChange):window.removeEventListener("pagehide",this._handlePageHide),this.host.removeEventListener("vouch:loaded",this._handleVouchLoaded),(e=this.host.mediaPlayer)==null||e.removeEventListener("play",this._handlePlay),(t=this.host.mediaPlayer)==null||t.removeEventListener("video:play",this._handleVideoPlay),(i=this.host.mediaPlayer)==null||i.removeEventListener("video:pause",this._handleVideoPause),(r=this.host.mediaPlayer)==null||r.removeEventListener("video:timeupdate",this._handleVideoTimeUpdate)}}var mo={exports:{}};(function(s,e){var t=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Lr<"u"&&Lr,i=function(){function n(){this.fetch=!1,this.DOMException=t.DOMException}return n.prototype=t,new n}();(function(n){(function(o){var a=typeof n<"u"&&n||typeof self<"u"&&self||typeof a<"u"&&a,A={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function l(b){return b&&DataView.prototype.isPrototypeOf(b)}if(A.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(b){return b&&c.indexOf(Object.prototype.toString.call(b))>-1};function u(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(b)||b==="")throw new TypeError('Invalid character in header field name: "'+b+'"');return b.toLowerCase()}function d(b){return typeof b!="string"&&(b=String(b)),b}function g(b){var R={next:function(){var U=b.shift();return{done:U===void 0,value:U}}};return A.iterable&&(R[Symbol.iterator]=function(){return R}),R}function f(b){this.map={},b instanceof f?b.forEach(function(R,U){this.append(U,R)},this):Array.isArray(b)?b.forEach(function(R){this.append(R[0],R[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(R){this.append(R,b[R])},this)}f.prototype.append=function(b,R){b=u(b),R=d(R);var U=this.map[b];this.map[b]=U?U+", "+R:R},f.prototype.delete=function(b){delete this.map[u(b)]},f.prototype.get=function(b){return b=u(b),this.has(b)?this.map[b]:null},f.prototype.has=function(b){return this.map.hasOwnProperty(u(b))},f.prototype.set=function(b,R){this.map[u(b)]=d(R)},f.prototype.forEach=function(b,R){for(var U in this.map)this.map.hasOwnProperty(U)&&b.call(R,this.map[U],U,this)},f.prototype.keys=function(){var b=[];return this.forEach(function(R,U){b.push(U)}),g(b)},f.prototype.values=function(){var b=[];return this.forEach(function(R){b.push(R)}),g(b)},f.prototype.entries=function(){var b=[];return this.forEach(function(R,U){b.push([U,R])}),g(b)},A.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function p(b){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}function y(b){return new Promise(function(R,U){b.onload=function(){R(b.result)},b.onerror=function(){U(b.error)}})}function v(b){var R=new FileReader,U=y(R);return R.readAsArrayBuffer(b),U}function S(b){var R=new FileReader,U=y(R);return R.readAsText(b),U}function C(b){for(var R=new Uint8Array(b),U=new Array(R.length),x=0;x<R.length;x++)U[x]=String.fromCharCode(R[x]);return U.join("")}function Q(b){if(b.slice)return b.slice(0);var R=new Uint8Array(b.byteLength);return R.set(new Uint8Array(b)),R.buffer}function B(){return this.bodyUsed=!1,this._initBody=function(b){this.bodyUsed=this.bodyUsed,this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:A.blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:A.formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:A.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():A.arrayBuffer&&A.blob&&l(b)?(this._bodyArrayBuffer=Q(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||h(b))?this._bodyArrayBuffer=Q(b):this._bodyText=b=Object.prototype.toString.call(b):this._bodyText="",this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):A.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A.blob&&(this.blob=function(){var b=p(this);if(b)return b;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var b=p(this);return b||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(v)}),this.text=function(){var b=p(this);if(b)return b;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A.formData&&(this.formData=function(){return this.text().then(F)}),this.json=function(){return this.text().then(JSON.parse)},this}var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function D(b){var R=b.toUpperCase();return _.indexOf(R)>-1?R:b}function G(b,R){if(!(this instanceof G))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R=R||{};var U=R.body;if(b instanceof G){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,R.headers||(this.headers=new f(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,!U&&b._bodyInit!=null&&(U=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new f(R.headers)),this.method=D(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&U)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(U),(this.method==="GET"||this.method==="HEAD")&&(R.cache==="no-store"||R.cache==="no-cache")){var x=/([?&])_=[^&]*/;if(x.test(this.url))this.url=this.url.replace(x,"$1_="+new Date().getTime());else{var w=/\?/;this.url+=(w.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}G.prototype.clone=function(){return new G(this,{body:this._bodyInit})};function F(b){var R=new FormData;return b.trim().split("&").forEach(function(U){if(U){var x=U.split("="),w=x.shift().replace(/\+/g," "),T=x.join("=").replace(/\+/g," ");R.append(decodeURIComponent(w),decodeURIComponent(T))}}),R}function H(b){var R=new f,U=b.replace(/\r?\n[\t ]+/g," ");return U.split("\r").map(function(x){return x.indexOf(`
149
- `)===0?x.substr(1,x.length):x}).forEach(function(x){var w=x.split(":"),T=w.shift().trim();if(T){var K=w.join(":").trim();R.append(T,K)}}),R}B.call(G.prototype);function j(b,R){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R||(R={}),this.type="default",this.status=R.status===void 0?200:R.status,this.ok=this.status>=200&&this.status<300,this.statusText=R.statusText===void 0?"":""+R.statusText,this.headers=new f(R.headers),this.url=R.url||"",this._initBody(b)}B.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},j.error=function(){var b=new j(null,{status:0,statusText:""});return b.type="error",b};var V=[301,302,303,307,308];j.redirect=function(b,R){if(V.indexOf(R)===-1)throw new RangeError("Invalid status code");return new j(null,{status:R,headers:{location:b}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(R,U){this.message=R,this.name=U;var x=Error(R);this.stack=x.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function J(b,R){return new Promise(function(U,x){var w=new G(b,R);if(w.signal&&w.signal.aborted)return x(new o.DOMException("Aborted","AbortError"));var T=new XMLHttpRequest;function K(){T.abort()}T.onload=function(){var q={status:T.status,statusText:T.statusText,headers:H(T.getAllResponseHeaders()||"")};q.url="responseURL"in T?T.responseURL:q.headers.get("X-Request-URL");var ie="response"in T?T.response:T.responseText;setTimeout(function(){U(new j(ie,q))},0)},T.onerror=function(){setTimeout(function(){x(new TypeError("Network request failed"))},0)},T.ontimeout=function(){setTimeout(function(){x(new TypeError("Network request failed"))},0)},T.onabort=function(){setTimeout(function(){x(new o.DOMException("Aborted","AbortError"))},0)};function M(q){try{return q===""&&a.location.href?a.location.href:q}catch{return q}}T.open(w.method,M(w.url),!0),w.credentials==="include"?T.withCredentials=!0:w.credentials==="omit"&&(T.withCredentials=!1),"responseType"in T&&(A.blob?T.responseType="blob":A.arrayBuffer&&w.headers.get("Content-Type")&&w.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(T.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof f)?Object.getOwnPropertyNames(R.headers).forEach(function(q){T.setRequestHeader(q,d(R.headers[q]))}):w.headers.forEach(function(q,ie){T.setRequestHeader(ie,q)}),w.signal&&(w.signal.addEventListener("abort",K),T.onreadystatechange=function(){T.readyState===4&&w.signal.removeEventListener("abort",K)}),T.send(typeof w._bodyInit>"u"?null:w._bodyInit)})}return J.polyfill=!0,a.fetch||(a.fetch=J,a.Headers=f,a.Request=G,a.Response=j),o.Headers=f,o.Request=G,o.Response=j,o.fetch=J,o})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=t.fetch?t:i;e=r.fetch,e.default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,s.exports=e})(mo,mo.exports);var sf=mo.exports;const Cl=el(sf);async function rf(s){var e;try{if((e=await Cl(s,{method:"HEAD"}))!=null&&e.ok)return s}catch{return}}async function yl({sources:s}){let e=null;const t=s==null?void 0:s.filter(Boolean),i=t==null?void 0:t.find(n=>n.startsWith("blob:")),r=t==null?void 0:t.find(n=>!n.startsWith("http")&&!n.startsWith("blob:"));if(i||r)return i??r;if(t.length>0){const n=t.map(o=>rf(o));e=(await Promise.all(n)).find(Boolean)}return e}async function nf(s){try{return(await Cl(s)).text()}catch{return null}}async function of(s){return s=s.trim(),s.startsWith("http")||s.startsWith("blob:")?nf(s):s}const af=ui(async({original:s,translation:e,originalLanguage:t="",translationLanguage:i=""},{language:r})=>{const n={[t.split("-")[0]]:s,[i.split("-")[0]]:e},o=(r&&n[r])??s;return o?of(o):null},{cacheKey:([s,{language:e}])=>JSON.stringify({...s,language:e})});async function Af(s){var e,t,i,r,n,o;const a=(t=(e=s==null?void 0:s.answer)==null?void 0:e.media)==null?void 0:t.input,A=(r=(i=s==null?void 0:s.answer)==null?void 0:i.media)==null?void 0:r.video,l=(o=(n=s==null?void 0:s.answer)==null?void 0:n.media)==null?void 0:o.playlist;return{src:await yl({sources:[a,A]}),playlist:await yl({sources:[l]})}}function lf(s){var e,t,i,r,n,o,a,A,l,c;const h=((t=(e=s==null?void 0:s.answer)==null?void 0:e.contact)==null?void 0:t.name)==="Anonymous"?"":((r=(i=s==null?void 0:s.answer)==null?void 0:i.contact)==null?void 0:r.name)??"",u=((a=(o=(n=s==null?void 0:s.answer)==null?void 0:n.contact)==null?void 0:o.client)==null?void 0:a.name)==="Not Supplied"?"":((c=(l=(A=s==null?void 0:s.answer)==null?void 0:A.contact)==null?void 0:l.client)==null?void 0:c.name)??"",[d,g]=h.split(" ");return{name:h,firstName:d,lastName:g,companyName:u}}async function Co({rootData:s,index:e},t){var i,r,n,o,a,A,l,c,h,u,d,g,f,p;return{...lf(s),...await Af(s),key:`${s==null?void 0:s.id}-${e}`,captions:await af({original:((r=(i=s==null?void 0:s.answer)==null?void 0:i.media)==null?void 0:r.captions)??((o=(n=s==null?void 0:s.answer)==null?void 0:n.captions)==null?void 0:o.current),translation:((A=(a=s==null?void 0:s.answer)==null?void 0:a.media)==null?void 0:A.translation)??((c=(l=s==null?void 0:s.answer)==null?void 0:l.captions)==null?void 0:c.translation),originalLanguage:(u=(h=s==null?void 0:s.answer)==null?void 0:h.transcription)==null?void 0:u.language,translationLanguage:(f=(g=(d=s==null?void 0:s.answer)==null?void 0:d.transcription)==null?void 0:g.translation)==null?void 0:f.language},t),answerLabel:((p=s==null?void 0:s.answer)==null?void 0:p.label)??(s==null?void 0:s.title)}}const Wr={af:"Afrikaans",sq:"Albanian",am:"Amharic",ar:"Arabic",hy:"Armenian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese (Simplified)",zh_TW:"Chinese (Traditional)",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fi:"Finnish",fr:"French",fa:"Farsi",tl:"Filipino",ka:"Georgian",de:"German",el:"Greek",gu:"Gujarati",ht:"Haitian Creole",ha:"Hausa",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",kn:"Kannada",kk:"Kazakh",ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mr:"Marathi",mn:"Mongolian",no:"Norwegian",ps:"Pashto",pl:"Polish",pt:"Portuguese",pa:"Punjabi",ro:"Romanian",ru:"Russian",sr:"Serbian",si:"Sinhala",sk:"Slovak",sl:"Slovenian",so:"Somali",es:"Spanish",sw:"Swahili",sv:"Swedish",ta:"Tamil",te:"Telugu",th:"Thai",tr:"Turkish",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",cy:"Welsh"};function cf({data:s}){var e,t;return((t=(e=s==null?void 0:s.questions)==null?void 0:e.items)==null?void 0:t.reduce((i,r)=>{var n,o,a,A,l,c,h;const u=(a=(o=(n=r==null?void 0:r.answer)==null?void 0:n.transcription)==null?void 0:o.language)==null?void 0:a.split("-")[0],d=(h=(c=(l=(A=r==null?void 0:r.answer)==null?void 0:A.transcription)==null?void 0:l.translation)==null?void 0:c.language)==null?void 0:h.split("-")[0];return u&&Wr[u]&&!i.find(g=>g.value===u)&&i.push({value:u,label:Wr[u]}),d&&Wr[d]&&!i.find(g=>g.value===d)&&i.push({value:d,label:Wr[d]}),i},[]))??[]}/**
148
+ }`}],root:"{{ it.outro?.questions?.items }}"}],system:!0,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}],meta:{frameRate:30,resolution:720,transitionDuration:1/3},system:!0,default:0,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};async function Kg(){if(typeof window>"u"){const s=await Promise.resolve().then(()=>Fu);return new s.Image}return new Image}const Il=ui(async function(e){return e?new Promise((t,i)=>{Kg().then(r=>{r.onload=()=>{t(r)},r.onerror=n=>{i(n)},r.src=e})}):null});async function Eo({element:s,meta:e},t,i){var r,n,o;let a={...s};const{node:A}=s;if((A==null?void 0:A.type)==="video"&&((r=A==null?void 0:A.value)!=null&&r.src||(n=A==null?void 0:A.value)!=null&&n.playlist)){const l=await t(A.value,e);let c;try{c=await Il(A.value.poster)}catch{c=null}a={...a,node:{...A,video:l,poster:c,meta:await i(A.value,l.node,e)}}}if((A==null?void 0:A.type)==="image"&&A.value){let l;try{l=await Il(A.value)}catch{l=null}a={...a,node:{...A,image:l}}}return a.node&&((o=s.node)!=null&&o.elements)&&(a.node.elements=await Promise.all(s.node.elements.map(l=>Eo({element:l,meta:e},t,i)))),s.elements&&(a.elements=await Promise.all(s.elements.map(l=>Eo({element:l,meta:e},t,i)))),a}async function Vr(){if(typeof window>"u"){const s=await Promise.resolve().then(()=>Fu),e=new s.Canvas;return e.gpu=!1,e}return document.createElement("canvas")}function zs(s=[]){var e;for(const t of s){if(((e=t==null?void 0:t.node)==null?void 0:e.type)==="video")return t.node;const i=zs(t==null?void 0:t.elements);if(i)return i}}function Vg(s,e){return s.reduce((t,i,r)=>[...t,i.map(({duration:n},o)=>r===s.length-1&&o===i.length-1?n:n-e)],[])}function Jg(s){if(s===null||typeof s!="object")return!1;if(Object.getPrototypeOf(s)===null)return!0;let e=s;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(s)===e}function Wg(s){return s.replace(/\\/g,"\\\\").replace(/\//g,"\\/").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\f/g,"\\f").replace(/"/g,'\\"')}function Jr(s){return s.flatMap(e=>e).reduce((e,t)=>e+t,0)}const qg=ui(()=>tl.loadYoga());Ao.filters.define("parse",s=>typeof s>"u"?null:typeof s=="string"?`"${Wg(s)}"`:Jg(s)||Array.isArray(s)?JSON.stringify(s):s);const os=(s,e,t)=>Ao.render(s,e,Ao.getConfig({autoEscape:!1,defaultFilter:"parse",...t}));async function as({data:s,template:e,burnCaptions:t=!1,debug:i=!1},r,n,o){var a,A,l,c;const h=await qg(),u=e??Yg;if(!((a=u.templates)!=null&&a.length))throw new Error(`No templates found for template instance: ${u.id}`);let d=u.templates.find(({version:D})=>D===Io);if(!d){const D=u.templates.map(({version:G})=>`"${G}"`).join(", ");console.warn(`Template renderer expects template version "${Io}" but got ${D}`),d=u.templates[u.templates.length-1]}const g=await Promise.all(d.content.map(async({scenes:D,root:G})=>{const F={...u.options,...s,intro:u.intro,outro:u.outro};async function H(j,V){return Promise.all(D.map(async({layout:J,duration:b,data:R,derived:U,options:x})=>{var w,T,K;const M={...F,_index:V,_root:j,_derived:await r({data:s,rootData:j,index:V})},q=R?JSON.parse(await os(R,M)):{},ie=U?JSON.parse(await os(U,M)):{},ce=x?JSON.parse(await os(x,M)):{},Ae=b?parseFloat(await os(b,M)):NaN,me=(w=d.layouts.find(ye=>ye.name===J))==null?void 0:w.tree;if(!me)throw new Error(`Layout tree "${J}" not found in template "${d.id}" layouts.`);const Be=JSON.parse(await os(me,{...q,...ie,...ce})),xe=await Promise.all(Be.flatMap(ye=>Eo({element:ye,meta:u.meta},n,o))),re=zs(xe);return{duration:(isNaN(Ae)?null:Ae)??((T=re==null?void 0:re.meta)==null?void 0:T.duration)??0,captions:(K=re==null?void 0:re.meta)==null?void 0:K.captions,elements:xe}}))}if(G){const j=JSON.parse(await os(G,F));return Array.isArray(j)?(await Promise.all(j.map(async(V,J)=>H(V,J)))).flatMap(V=>V):H(j,null)}return H(s,null)}));if(g.every(D=>D.every(G=>{const F=zs(G.elements);return!(F!=null&&F.value.src)&&!(F!=null&&F.value.playlist)}))){const D=g.flatMap(G=>G.map(F=>{const H=zs(F.elements);return!(H!=null&&H.value.src)&&!(H!=null&&H.value.playlist)&&(H==null?void 0:H.value.id)}).filter(Boolean)).join(", ");throw new Error(`Video(s) with ID ${D} failed to load, video can not be processed`)}if(g.every(D=>D.every(G=>G.duration<=0)))throw new Error("No scenes have any duration, video can not be processed");const y=g.reduce((D,G)=>{const F=G.filter(H=>H.duration>0);return F.length>0&&(D=[...D,F]),D},[]),v=((A=u.meta)==null?void 0:A.frameRate)??30,S=((l=u.meta)==null?void 0:l.resolution)??720,C=((c=u.meta)==null?void 0:c.transitionDuration)??1/3,Q=Vg(y,C),B=Jr(Q);return{scenes:(await Promise.all(y.map((D,G)=>{const F=Jr(Q[G]),H=Jr(Q.slice(0,G));return Promise.all(D.map(async({duration:j,captions:V,elements:J},b)=>{var R,U;const x=await Vr(),w=await Vr(),T=await Vr(),K=await Vr(),M=zs(J),q=Jr([...Q.slice(0,G),...Q[G].slice(0,b)]);return{draw:({canvas:ce,currentTime:Ae})=>{const me=Math.max(0,Ae-H),Be=Math.max(0,Ae-q);po({yoga:h,debug:i,canvas:ce,cropCanvas:x,posterCanvas:K,letterboxCanvas:w,elements:J,currentTime:Ae,contentTime:me,sceneTime:Be,totalDuration:B,contentDuration:F,sceneDuration:j}),V&&t&&$g({canvas:ce,dx:0,dy:0,dw:ce.width,dh:ce.height,vttCaptions:V,sceneTime:Be+((M==null?void 0:M.meta.start)??0)})},duration:j,transitionCanvas:T,start:q,video:M==null?void 0:M.video,videoMeta:M==null?void 0:M.meta,audio:{duration:j,src:(R=M==null?void 0:M.value)==null?void 0:R.src,start:(U=M==null?void 0:M.meta)==null?void 0:U.start}}}))}))).flatMap(D=>D),frameRate:v,resolution:S,transitionDuration:C,fonts:d.fonts??[],duration:B}}const Io="3",jg={name:"@vouchfor/embeds",version:"2.0.3",license:"MIT",author:"Aaron Williams",main:"dist/es/embeds.js",module:"dist/es/embeds.js",type:"module",types:"dist/es/src/index.d.ts",exports:{".":"./dist/es/embeds.js"},files:["dist","src"],publishConfig:{tag:"latest",access:"public"},engines:{node:">=18.18.0"},scripts:{build:"rm -rf dist && tsc && yarn build:self","build:deps":"yarn --cwd ../media-player build","build:self":"vite build --mode iife && vite build --mode es && node scripts/build.cjs","build:package":"yarn build","build:storybook":"yarn prebuild && storybook build","generate:manifest":"wca src --outFile custom-elements.json",lint:"eslint . --quiet","lint:fix":"eslint . --fix","lint:staged":"lint-staged",prepublishOnly:"yarn build",size:"size-limit",storybook:"yarn prebuild && storybook dev -p 6007",prebuild:"yarn build:deps && yarn generate:manifest",test:"rm -rf test/lib && yarn prebuild && vite build --mode test && web-test-runner","test:ci":"yarn test --config web-test-runner.ci.config.js"},"lint-staged":{"**/*.{ts,tsx,js}":"eslint --fix --quiet","**/*.{md,json,yml}":"prettier --write"},dependencies:{"@a11y/focus-trap":"^1.0.5","@lit/task":"^1.0.0","@vouchfor/canvas-video":"^8.0.0","@vouchfor/media-player":"^3.0.3",uuid:"^9.0.1"},peerDependencies:{lit:"^3.1.2"},devDependencies:{"@esm-bundle/chai":"^4.3.4-fix.0","@open-wc/testing":"^4.0.0","@storybook/addon-essentials":"^8.0.4","@storybook/addon-links":"^8.0.4","@storybook/blocks":"^8.0.4","@storybook/web-components":"^8.0.4","@storybook/web-components-vite":"^8.0.4","@svgr/core":"^8.1.0","@types/flat":"^5.0.5","@types/mocha":"^10.0.6","@vouchfor/eslint-config":"^1.0.1","@vouchfor/prettier-config":"^1.0.1","@vouchfor/video-utils":"^1.0.3","@web/dev-server-esbuild":"^1.0.2","@web/test-runner":"^0.18.1","@web/test-runner-browserstack":"^0.7.1","@web/test-runner-mocha":"^0.9.0","@web/test-runner-playwright":"^0.11.0",glob:"^10.3.10","lint-staged":"^15.2.2",lit:"^3.1.2",lodash:"^4.17.21",react:"^18.2.0","react-dom":"^18.2.0","rollup-plugin-tla":"^0.0.2",sinon:"^17.0.1",storybook:"^8.0.4",svgson:"^5.3.1",typescript:"^5.4.3",vite:"^5.2.2","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.7.3","web-component-analyzer":"^2.0.0"}};function Xg(s){const{publicApiUrl:e}=br(s),t=Ui();return navigator.sendBeacon(`${e}/api/visitor`,JSON.stringify({visitorId:t})),t}function zg(s){var n,o,a,A,l,c,h,u,d,g,f,p;if(typeof window>"u")return{client:null,tab:null,request:Ui()};let e=(o=(n=window.localStorage)==null?void 0:n.getItem)==null?void 0:o.call(n,"vouch-uid-visitor"),t=(A=(a=window.localStorage)==null?void 0:a.getItem)==null?void 0:A.call(a,"vouch-uid-client"),i=(c=(l=window.sessionStorage)==null?void 0:l.getItem)==null?void 0:c.call(l,"vouch-uid-tab");const r=Ui();return e||(e=Xg(s),(u=(h=window.localStorage)==null?void 0:h.setItem)==null||u.call(h,"vouch-uid-visitor",e)),t||(t=Ui(),(g=(d=window.localStorage)==null?void 0:d.setItem)==null||g.call(d,"vouch-uid-client",t)),i||(i=Ui(),(p=(f=window.sessionStorage)==null?void 0:f.setItem)==null||p.call(f,"vouch-uid-tab",i)),{client:t,tab:i,request:r,visitor:e}}function Zg(s,e){return s&&"vouchId"in s?s.vouchId:(e==null?void 0:e.id)??null}function ef(s="embedded_player"){var r,n;const[e,t]=((n=(r=Intl.DateTimeFormat().resolvedOptions().timeZone)==null?void 0:r.split)==null?void 0:n.call(r,"/"))??[],i={};return[...new URLSearchParams(location.search).entries()].forEach(([o,a])=>{if(/utm/.test(o)){const A=o.toLowerCase().replace(/[-_][a-z0-9]/g,l=>l.slice(-1).toUpperCase());i[A]=a}}),{source:s,time:new Date,region:t,country:e,screenHeight:window.screen.height,screenWidth:window.screen.width,referrer:document.referrer,currentUrl:location.href,embedType:"media-player-embed",embedVersion:jg.version,templateVersion:Io,...i}}const ml=1;class tf{constructor(e){this._batchedEvents=[],this._hasPlayed=!1,this._hasLoaded={},this._answersViewed={},this._streamStartTime={},this._streamLatestTime={},this._currentlyPlayingVideo=null,this._createTrackingEvent=(t,i)=>{const r=Zg(i,this.host.vouch);!r||this.host.disableTracking||this._batchedEvents.push({event:t,payload:{...i,vouchId:r,time:new Date().toISOString()}})},this._sendTrackingEvent=()=>{if(this._batchedEvents.length<=0)return;const{publicApiUrl:t}=br(this.host.env),{client:i,tab:r,request:n,visitor:o}=zg(this.host.env);navigator.sendBeacon(`${t}/api/batchevents`,JSON.stringify({payload:{events:this._batchedEvents},context:{"x-uid-client":i,"x-uid-tab":r,"x-uid-request":n,"x-uid-visitor":o,"x-reporting-metadata":ef(this.host.trackingSource)}})),this._batchedEvents=[]},this._streamEnded=()=>{if(this._currentlyPlayingVideo){const{id:t,key:i}=this._currentlyPlayingVideo;this._streamLatestTime[i]>this._streamStartTime[i]+ml&&this._createTrackingEvent("VIDEO_STREAMED",{answerId:t,streamStart:this._streamStartTime[i],streamEnd:this._streamLatestTime[i]}),delete this._streamStartTime[i],delete this._streamLatestTime[i]}},this._handleVouchLoaded=({detail:t})=>{t&&(this._hasLoaded[t]||(this._createTrackingEvent("VOUCH_LOADED",{vouchId:t}),this._hasLoaded[t]=!0))},this._handlePlay=()=>{this._hasPlayed||(this._createTrackingEvent("VIDEO_PLAYED",{streamStart:this.host.currentTime}),this._hasPlayed=!0)},this._handleVideoPlay=({detail:{id:t,key:i}})=>{this._answersViewed[i]||(this._createTrackingEvent("VOUCH_RESPONSE_VIEWED",{answerId:t}),this._answersViewed[i]=!0)},this._handleVideoTimeUpdate=({detail:{id:t,key:i,node:r}})=>{var n,o;!this.host.paused&&t===((o=(n=this.host.scene)==null?void 0:n.video)==null?void 0:o.id)&&(this._currentlyPlayingVideo={id:t,key:i,node:r},this._streamLatestTime[i]=r.currentTime,this._streamStartTime[i]||(this._streamStartTime[i]=r.currentTime,this._streamLatestTime[i]=r.currentTime))},this._handleVideoPause=({detail:{id:t,key:i}})=>{this._streamLatestTime[i]>this._streamStartTime[i]+ml&&this._createTrackingEvent("VIDEO_STREAMED",{answerId:t,streamStart:this._streamStartTime[i],streamEnd:this._streamLatestTime[i]}),delete this._streamStartTime[i],delete this._streamLatestTime[i]},this._pageUnloading=()=>{this._streamEnded(),this._sendTrackingEvent()},this._handleVisibilityChange=()=>{document.visibilityState==="hidden"&&this._pageUnloading()},this._handlePageHide=()=>{this._pageUnloading()},this.host=e,e.addController(this)}hostConnected(){requestAnimationFrame(()=>{var e,t,i,r;"onvisibilitychange"in document?document.addEventListener("visibilitychange",this._handleVisibilityChange):window.addEventListener("pagehide",this._handlePageHide),this.host.addEventListener("vouch:loaded",this._handleVouchLoaded),(e=this.host.mediaPlayer)==null||e.addEventListener("play",this._handlePlay),(t=this.host.mediaPlayer)==null||t.addEventListener("video:play",this._handleVideoPlay),(i=this.host.mediaPlayer)==null||i.addEventListener("video:pause",this._handleVideoPause),(r=this.host.mediaPlayer)==null||r.addEventListener("video:timeupdate",this._handleVideoTimeUpdate)})}hostDisconnected(){var e,t,i,r;this._pageUnloading(),"onvisibilitychange"in document?document.removeEventListener("visibilitychange",this._handleVisibilityChange):window.removeEventListener("pagehide",this._handlePageHide),this.host.removeEventListener("vouch:loaded",this._handleVouchLoaded),(e=this.host.mediaPlayer)==null||e.removeEventListener("play",this._handlePlay),(t=this.host.mediaPlayer)==null||t.removeEventListener("video:play",this._handleVideoPlay),(i=this.host.mediaPlayer)==null||i.removeEventListener("video:pause",this._handleVideoPause),(r=this.host.mediaPlayer)==null||r.removeEventListener("video:timeupdate",this._handleVideoTimeUpdate)}}var mo={exports:{}};(function(s,e){var t=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Lr<"u"&&Lr,i=function(){function n(){this.fetch=!1,this.DOMException=t.DOMException}return n.prototype=t,new n}();(function(n){(function(o){var a=typeof n<"u"&&n||typeof self<"u"&&self||typeof a<"u"&&a,A={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function l(b){return b&&DataView.prototype.isPrototypeOf(b)}if(A.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(b){return b&&c.indexOf(Object.prototype.toString.call(b))>-1};function u(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(b)||b==="")throw new TypeError('Invalid character in header field name: "'+b+'"');return b.toLowerCase()}function d(b){return typeof b!="string"&&(b=String(b)),b}function g(b){var R={next:function(){var U=b.shift();return{done:U===void 0,value:U}}};return A.iterable&&(R[Symbol.iterator]=function(){return R}),R}function f(b){this.map={},b instanceof f?b.forEach(function(R,U){this.append(U,R)},this):Array.isArray(b)?b.forEach(function(R){this.append(R[0],R[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(R){this.append(R,b[R])},this)}f.prototype.append=function(b,R){b=u(b),R=d(R);var U=this.map[b];this.map[b]=U?U+", "+R:R},f.prototype.delete=function(b){delete this.map[u(b)]},f.prototype.get=function(b){return b=u(b),this.has(b)?this.map[b]:null},f.prototype.has=function(b){return this.map.hasOwnProperty(u(b))},f.prototype.set=function(b,R){this.map[u(b)]=d(R)},f.prototype.forEach=function(b,R){for(var U in this.map)this.map.hasOwnProperty(U)&&b.call(R,this.map[U],U,this)},f.prototype.keys=function(){var b=[];return this.forEach(function(R,U){b.push(U)}),g(b)},f.prototype.values=function(){var b=[];return this.forEach(function(R){b.push(R)}),g(b)},f.prototype.entries=function(){var b=[];return this.forEach(function(R,U){b.push([U,R])}),g(b)},A.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function p(b){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}function y(b){return new Promise(function(R,U){b.onload=function(){R(b.result)},b.onerror=function(){U(b.error)}})}function v(b){var R=new FileReader,U=y(R);return R.readAsArrayBuffer(b),U}function S(b){var R=new FileReader,U=y(R);return R.readAsText(b),U}function C(b){for(var R=new Uint8Array(b),U=new Array(R.length),x=0;x<R.length;x++)U[x]=String.fromCharCode(R[x]);return U.join("")}function Q(b){if(b.slice)return b.slice(0);var R=new Uint8Array(b.byteLength);return R.set(new Uint8Array(b)),R.buffer}function B(){return this.bodyUsed=!1,this._initBody=function(b){this.bodyUsed=this.bodyUsed,this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:A.blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:A.formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:A.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():A.arrayBuffer&&A.blob&&l(b)?(this._bodyArrayBuffer=Q(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||h(b))?this._bodyArrayBuffer=Q(b):this._bodyText=b=Object.prototype.toString.call(b):this._bodyText="",this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):A.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A.blob&&(this.blob=function(){var b=p(this);if(b)return b;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var b=p(this);return b||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(v)}),this.text=function(){var b=p(this);if(b)return b;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A.formData&&(this.formData=function(){return this.text().then(F)}),this.json=function(){return this.text().then(JSON.parse)},this}var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function D(b){var R=b.toUpperCase();return _.indexOf(R)>-1?R:b}function G(b,R){if(!(this instanceof G))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R=R||{};var U=R.body;if(b instanceof G){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,R.headers||(this.headers=new f(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,!U&&b._bodyInit!=null&&(U=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new f(R.headers)),this.method=D(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&U)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(U),(this.method==="GET"||this.method==="HEAD")&&(R.cache==="no-store"||R.cache==="no-cache")){var x=/([?&])_=[^&]*/;if(x.test(this.url))this.url=this.url.replace(x,"$1_="+new Date().getTime());else{var w=/\?/;this.url+=(w.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}G.prototype.clone=function(){return new G(this,{body:this._bodyInit})};function F(b){var R=new FormData;return b.trim().split("&").forEach(function(U){if(U){var x=U.split("="),w=x.shift().replace(/\+/g," "),T=x.join("=").replace(/\+/g," ");R.append(decodeURIComponent(w),decodeURIComponent(T))}}),R}function H(b){var R=new f,U=b.replace(/\r?\n[\t ]+/g," ");return U.split("\r").map(function(x){return x.indexOf(`
149
+ `)===0?x.substr(1,x.length):x}).forEach(function(x){var w=x.split(":"),T=w.shift().trim();if(T){var K=w.join(":").trim();R.append(T,K)}}),R}B.call(G.prototype);function j(b,R){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R||(R={}),this.type="default",this.status=R.status===void 0?200:R.status,this.ok=this.status>=200&&this.status<300,this.statusText=R.statusText===void 0?"":""+R.statusText,this.headers=new f(R.headers),this.url=R.url||"",this._initBody(b)}B.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},j.error=function(){var b=new j(null,{status:0,statusText:""});return b.type="error",b};var V=[301,302,303,307,308];j.redirect=function(b,R){if(V.indexOf(R)===-1)throw new RangeError("Invalid status code");return new j(null,{status:R,headers:{location:b}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(R,U){this.message=R,this.name=U;var x=Error(R);this.stack=x.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function J(b,R){return new Promise(function(U,x){var w=new G(b,R);if(w.signal&&w.signal.aborted)return x(new o.DOMException("Aborted","AbortError"));var T=new XMLHttpRequest;function K(){T.abort()}T.onload=function(){var q={status:T.status,statusText:T.statusText,headers:H(T.getAllResponseHeaders()||"")};q.url="responseURL"in T?T.responseURL:q.headers.get("X-Request-URL");var ie="response"in T?T.response:T.responseText;setTimeout(function(){U(new j(ie,q))},0)},T.onerror=function(){setTimeout(function(){x(new TypeError("Network request failed"))},0)},T.ontimeout=function(){setTimeout(function(){x(new TypeError("Network request failed"))},0)},T.onabort=function(){setTimeout(function(){x(new o.DOMException("Aborted","AbortError"))},0)};function M(q){try{return q===""&&a.location.href?a.location.href:q}catch{return q}}T.open(w.method,M(w.url),!0),w.credentials==="include"?T.withCredentials=!0:w.credentials==="omit"&&(T.withCredentials=!1),"responseType"in T&&(A.blob?T.responseType="blob":A.arrayBuffer&&w.headers.get("Content-Type")&&w.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(T.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof f)?Object.getOwnPropertyNames(R.headers).forEach(function(q){T.setRequestHeader(q,d(R.headers[q]))}):w.headers.forEach(function(q,ie){T.setRequestHeader(ie,q)}),w.signal&&(w.signal.addEventListener("abort",K),T.onreadystatechange=function(){T.readyState===4&&w.signal.removeEventListener("abort",K)}),T.send(typeof w._bodyInit>"u"?null:w._bodyInit)})}return J.polyfill=!0,a.fetch||(a.fetch=J,a.Headers=f,a.Request=G,a.Response=j),o.Headers=f,o.Request=G,o.Response=j,o.fetch=J,o})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=t.fetch?t:i;e=r.fetch,e.default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,s.exports=e})(mo,mo.exports);var sf=mo.exports;const Cl=el(sf);async function rf(s){var e;try{if((e=await Cl(s,{method:"HEAD"}))!=null&&e.ok)return s}catch{return}}async function yl({sources:s}){let e=null;const t=s==null?void 0:s.filter(Boolean),i=t==null?void 0:t.find(n=>n.startsWith("blob:")),r=t==null?void 0:t.find(n=>!n.startsWith("http")&&!n.startsWith("blob:"));if(i||r)return i??r;if(t.length>0){const n=t.map(o=>rf(o));e=(await Promise.all(n)).find(Boolean)}return e}async function nf(s){try{return(await Cl(s)).text()}catch{return null}}async function of(s){return s=s.trim(),s.startsWith("http")||s.startsWith("blob:")?nf(s):s}const af=ui(async({original:s,translation:e,originalLanguage:t="",translationLanguage:i=""},{language:r})=>{var n,o;const a={[(n=t==null?void 0:t.split("-"))==null?void 0:n[0]]:s,[(o=i==null?void 0:i.split("-"))==null?void 0:o[0]]:e},A=(r&&a[r])??s;return A?of(A):null},{cacheKey:([s,{language:e}])=>JSON.stringify({...s,language:e})});async function Af(s){var e,t,i,r,n,o;const a=(t=(e=s==null?void 0:s.answer)==null?void 0:e.media)==null?void 0:t.input,A=(r=(i=s==null?void 0:s.answer)==null?void 0:i.media)==null?void 0:r.video,l=(o=(n=s==null?void 0:s.answer)==null?void 0:n.media)==null?void 0:o.playlist;return{src:await yl({sources:[a,A]}),playlist:await yl({sources:[l]})}}function lf(s){var e,t,i,r,n,o,a,A,l,c;const h=((t=(e=s==null?void 0:s.answer)==null?void 0:e.contact)==null?void 0:t.name)==="Anonymous"?"":((r=(i=s==null?void 0:s.answer)==null?void 0:i.contact)==null?void 0:r.name)??"",u=((a=(o=(n=s==null?void 0:s.answer)==null?void 0:n.contact)==null?void 0:o.client)==null?void 0:a.name)==="Not Supplied"?"":((c=(l=(A=s==null?void 0:s.answer)==null?void 0:A.contact)==null?void 0:l.client)==null?void 0:c.name)??"",[d,g]=h.split(" ");return{name:h,firstName:d,lastName:g,companyName:u}}async function Co({rootData:s,index:e},t){var i,r,n,o,a,A,l,c,h,u,d,g,f,p;return{...lf(s),...await Af(s),key:`${s==null?void 0:s.id}-${e}`,captions:await af({original:((r=(i=s==null?void 0:s.answer)==null?void 0:i.media)==null?void 0:r.captions)??((o=(n=s==null?void 0:s.answer)==null?void 0:n.captions)==null?void 0:o.current),translation:((A=(a=s==null?void 0:s.answer)==null?void 0:a.media)==null?void 0:A.translation)??((c=(l=s==null?void 0:s.answer)==null?void 0:l.captions)==null?void 0:c.translation),originalLanguage:(u=(h=s==null?void 0:s.answer)==null?void 0:h.transcription)==null?void 0:u.language,translationLanguage:(f=(g=(d=s==null?void 0:s.answer)==null?void 0:d.transcription)==null?void 0:g.translation)==null?void 0:f.language},t),answerLabel:((p=s==null?void 0:s.answer)==null?void 0:p.label)??(s==null?void 0:s.title)}}const Wr={af:"Afrikaans",sq:"Albanian",am:"Amharic",ar:"Arabic",hy:"Armenian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese (Simplified)",zh_TW:"Chinese (Traditional)",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fi:"Finnish",fr:"French",fa:"Farsi",tl:"Filipino",ka:"Georgian",de:"German",el:"Greek",gu:"Gujarati",ht:"Haitian Creole",ha:"Hausa",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",kn:"Kannada",kk:"Kazakh",ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mr:"Marathi",mn:"Mongolian",no:"Norwegian",ps:"Pashto",pl:"Polish",pt:"Portuguese",pa:"Punjabi",ro:"Romanian",ru:"Russian",sr:"Serbian",si:"Sinhala",sk:"Slovak",sl:"Slovenian",so:"Somali",es:"Spanish",sw:"Swahili",sv:"Swedish",ta:"Tamil",te:"Telugu",th:"Thai",tr:"Turkish",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",cy:"Welsh"};function cf({data:s}){var e,t;return((t=(e=s==null?void 0:s.questions)==null?void 0:e.items)==null?void 0:t.reduce((i,r)=>{var n,o,a,A,l,c,h;const u=(a=(o=(n=r==null?void 0:r.answer)==null?void 0:n.transcription)==null?void 0:o.language)==null?void 0:a.split("-")[0],d=(h=(c=(l=(A=r==null?void 0:r.answer)==null?void 0:A.transcription)==null?void 0:l.translation)==null?void 0:c.language)==null?void 0:h.split("-")[0];return u&&Wr[u]&&!i.find(g=>g.value===u)&&i.push({value:u,label:Wr[u]}),d&&Wr[d]&&!i.find(g=>g.value===d)&&i.push({value:d,label:Wr[d]}),i},[]))??[]}/**
150
150
  * @license
151
151
  * Copyright 2018 Google LLC
152
152
  * SPDX-License-Identifier: BSD-3-Clause
@@ -161,7 +161,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
161
161
  TTFB estimate: ${p|0} ms
162
162
  Current BW estimate: ${oe(v)?v|0:"Unknown"} bps
163
163
  New BW estimate: ${this.getBwEstimate()|0} bps
164
- Switching to level ${H} @ ${j|0} bps`),r.trigger(E.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:i,stats:A})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(N.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new k0(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(E.MANIFEST_LOADING,this.onManifestLoading,this),e.on(E.FRAG_LOADING,this.onFragLoading,this),e.on(E.FRAG_LOADED,this.onFragLoaded,this),e.on(E.FRAG_BUFFERED,this.onFragBuffered,this),e.on(E.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(E.LEVEL_LOADED,this.onLevelLoaded,this),e.on(E.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(E.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(E.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(E.MANIFEST_LOADING,this.onManifestLoading,this),e.off(E.FRAG_LOADING,this.onFragLoading,this),e.off(E.FRAG_LOADED,this.onFragLoaded,this),e.off(E.FRAG_BUFFERED,this.onFragBuffered,this),e.off(E.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(E.LEVEL_LOADED,this.onLevelLoaded,this),e.off(E.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(E.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(E.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const i=t.frag;if(!this.ignoreFragment(i)){if(!i.bitrateTest){var r;this.fragCurrent=i,this.partCurrent=(r=t.part)!=null?r:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case $.BUFFER_ADD_CODEC_ERROR:case $.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case $.FRAG_LOAD_TIMEOUT:{const i=t.frag,{fragCurrent:r,partCurrent:n}=this;if(i&&r&&i.sn===r.sn&&i.level===r.level){const o=performance.now(),a=n?n.stats:i.stats,A=o-a.loading.start,l=a.loading.first?a.loading.first-a.loading.start:-1;if(a.loaded&&l>-1){const h=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(A-Math.min(h,l),a.loaded)}else this.bwEstimator.sampleTTFB(A)}break}}}getTimeToLoadFrag(e,t,i,r){const n=e+i/t,o=r?this.lastLevelLoadSec:0;return n+o}onLevelLoaded(e,t){const i=this.hls.config,{loading:r}=t.stats,n=r.end-r.start;oe(n)&&(this.lastLevelLoadSec=n/1e3),t.details.live?this.bwEstimator.update(i.abrEwmaSlowLive,i.abrEwmaFastLive):this.bwEstimator.update(i.abrEwmaSlowVoD,i.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:i}){const r=i?i.stats:t.stats;if(t.type===fe.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const n=i?i.duration:t.duration,o=this.hls.levels[t.level],a=(o.loaded?o.loaded.bytes:0)+r.loaded,A=(o.loaded?o.loaded.duration:0)+n;o.loaded={bytes:a,duration:A},o.realBitrate=Math.round(8*a/A)}if(t.bitrateTest){const n={stats:r,frag:t,part:i,id:t.type};this.onFragBuffered(E.FRAG_BUFFERED,n),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:i,part:r}=t,n=r!=null&&r.stats.loaded?r.stats:i.stats;if(n.aborted||this.ignoreFragment(i))return;const o=n.parsing.end-n.loading.start-Math.min(n.loading.first-n.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(o,n.loaded),n.bwEstimate=this.getBwEstimate(),i.bitrateTest?this.bitrateTestDelay=o/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==fe.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,i=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,n=this.findBestLevel(i,t,e,0,r,1,1);if(n>-1)return n;const o=this.hls.firstLevel,a=Math.min(Math.max(o,t),e);return N.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${o} clamped to ${a}`),a}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,i=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!i||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const n=i&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const o=this.hls.levels;if(o.length>Math.max(e,n)&&o[e].loadError<=o[n].loadError)return e}return this._nextAutoLevel=n,this.nextAutoLevelKey=this.getAutoLevelKey(),n}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:i}=this,{maxAutoLevel:r,config:n,minAutoLevel:o}=i,a=t?t.duration:e?e.duration:0,A=this.getBwEstimate(),l=this.getStarvationDelay();let c=n.abrBandWidthFactor,h=n.abrBandWidthUpFactor;if(l){const p=this.findBestLevel(A,o,r,l,0,c,h);if(p>=0)return p}let u=a?Math.min(a,n.maxStarvationDelay):n.maxStarvationDelay;if(!l){const p=this.bitrateTestDelay;p&&(u=(a?Math.min(a,n.maxLoadingDelay):n.maxLoadingDelay)-p,N.info(`[abr] bitrate test took ${Math.round(1e3*p)}ms, set first fragment max fetchDuration to ${Math.round(1e3*u)} ms`),c=h=1)}const d=this.findBestLevel(A,o,r,l,u,c,h);if(N.info(`[abr] ${l?"rebuffering expected":"buffer is empty"}, optimal quality level ${d}`),d>-1)return d;const g=i.levels[o],f=i.levels[i.loadLevel];return(g==null?void 0:g.bitrate)<(f==null?void 0:f.bitrate)?o:i.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const i=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/i}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,i,r,n,o,a){var A;const l=r+n,c=this.lastLoadedFragLevel,h=c===-1?this.hls.firstLevel:c,{fragCurrent:u,partCurrent:d}=this,{levels:g,allAudioTracks:f,loadLevel:p,config:y}=this.hls;if(g.length===1)return 0;const v=g[h],S=!!(v!=null&&(A=v.details)!=null&&A.live),C=p===-1||c===-1;let Q,B="SDR",_=(v==null?void 0:v.frameRate)||0;const{audioPreference:D,videoPreference:G}=y,F=this.audioTracksByGroup||(this.audioTracksByGroup=G0(f));if(C){if(this.firstSelection!==-1)return this.firstSelection;const b=this.codecTiers||(this.codecTiers=H0(g,F,t,i)),R=U0(b,B,e,D,G),{codecSet:U,videoRanges:x,minFramerate:w,minBitrate:T,preferHDR:K}=R;Q=U,B=K?x[x.length-1]:x[0],_=w,e=Math.max(e,T),N.log(`[abr] picked start tier ${JSON.stringify(R)}`)}else Q=v==null?void 0:v.codecSet,B=v==null?void 0:v.videoRange;const H=d?d.duration:u?u.duration:0,j=this.bwEstimator.getEstimateTTFB()/1e3,V=[];for(let b=i;b>=t;b--){var J;const R=g[b],U=b>h;if(!R)continue;if(y.useMediaCapabilities&&!R.supportedResult&&!R.supportedPromise){const ie=navigator.mediaCapabilities;typeof(ie==null?void 0:ie.decodingInfo)=="function"&&F0(R,F,B,_,e,D)?(R.supportedPromise=N0(R,F,ie),R.supportedPromise.then(ce=>{if(!this.hls)return;R.supportedResult=ce;const Ae=this.hls.levels,me=Ae.indexOf(R);ce.error?N.warn(`[abr] MediaCapabilities decodingInfo error: "${ce.error}" for level ${me} ${JSON.stringify(ce)}`):ce.supported||(N.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${me} ${JSON.stringify(ce)}`),me>-1&&Ae.length>1&&(N.log(`[abr] Removing unsupported level ${me}`),this.hls.removeLevel(me)))})):R.supportedResult=mc}if(Q&&R.codecSet!==Q||B&&R.videoRange!==B||U&&_>R.frameRate||!U&&_>0&&_<R.frameRate||R.supportedResult&&!((J=R.supportedResult.decodingInfoResults)!=null&&J[0].smooth)){V.push(b);continue}const x=R.details,w=(d?x==null?void 0:x.partTarget:x==null?void 0:x.averagetargetduration)||H;let T;U?T=a*e:T=o*e;const K=H&&r>=H*2&&n===0?g[b].averageBitrate:g[b].maxBitrate,M=this.getTimeToLoadFrag(j,T,K*w,x===void 0);if(T>=K&&(b===c||R.loadError===0&&R.fragmentError===0)&&(M<=j||!oe(M)||S&&!this.bitrateTestDelay||M<l)){const ie=this.forcedAutoLevel;return b!==p&&(ie===-1||ie!==p)&&(V.length&&N.trace(`[abr] Skipped level(s) ${V.join(",")} of ${i} max with CODECS and VIDEO-RANGE:"${g[V[0]].codecs}" ${g[V[0]].videoRange}; not compatible with "${v.codecs}" ${B}`),N.info(`[abr] switch candidate:${h}->${b} adjustedbw(${Math.round(T)})-bitrate=${Math.round(T-K)} ttfb:${j.toFixed(1)} avgDuration:${w.toFixed(1)} maxFetchDuration:${l.toFixed(1)} fetchDuration:${M.toFixed(1)} firstSelection:${C} codecSet:${Q} videoRange:${B} hls.loadLevel:${p}`)),C&&(this.firstSelection=b),b}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:i}=this.hls,r=Math.min(Math.max(e,i),t);this._nextAutoLevel!==r&&(this.nextAutoLevelKey="",this._nextAutoLevel=r)}}class V0{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}var at={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class J0{constructor(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()}_registerListeners(){const{hls:e}=this;e.on(E.BUFFER_APPENDED,this.onBufferAppended,this),e.on(E.FRAG_BUFFERED,this.onFragBuffered,this),e.on(E.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(E.BUFFER_APPENDED,this.onBufferAppended,this),e.off(E.FRAG_BUFFERED,this.onFragBuffered,this),e.off(E.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const i=this.activePartLists[t];if(i)for(let r=i.length;r--;){const n=i[r];if(!n)break;const o=n.end;if(n.start<=e&&o!==null&&e<=o)return n}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){const{fragments:i}=this,r=Object.keys(i);for(let n=r.length;n--;){const o=i[r[n]];if((o==null?void 0:o.body.type)===t&&o.buffered){const a=o.body;if(a.start<=e&&e<=a.end)return a}}return null}detectEvictedFragments(e,t,i,r){this.timeRanges&&(this.timeRanges[e]=t);const n=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(o=>{const a=this.fragments[o];if(!a||n>=a.body.sn)return;if(!a.buffered&&!a.loaded){a.body.type===i&&this.removeFragment(a.body);return}const A=a.range[e];A&&A.time.some(l=>{const c=!this.isTimeBuffered(l.startPTS,l.endPTS,t);return c&&this.removeFragment(a.body),c})})}detectPartialFragments(e){const t=this.timeRanges,{frag:i,part:r}=e;if(!t||i.sn==="initSegment")return;const n=fs(i),o=this.fragments[n];if(!o||o.buffered&&i.gap)return;const a=!i.relurl;Object.keys(t).forEach(A=>{const l=i.elementaryStreams[A];if(!l)return;const c=t[A],h=a||l.partial===!0;o.range[A]=this.getBufferedTimes(i,r,h,c)}),o.loaded=null,Object.keys(o.range).length?(o.buffered=!0,(o.body.endList=i.endList||o.body.endList)&&(this.endListFragments[o.body.type]=o),cn(o)||this.removeParts(i.sn-1,i.type)):this.removeFragment(o.body)}removeParts(e,t){const i=this.activePartLists[t];i&&(this.activePartLists[t]=i.filter(r=>r.fragment.sn>=e))}fragBuffered(e,t){const i=fs(e);let r=this.fragments[i];!r&&t&&(r=this.fragments[i]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,i,r){const n={time:[],partial:i},o=e.start,a=e.end,A=e.minEndPTS||a,l=e.maxStartPTS||o;for(let c=0;c<r.length;c++){const h=r.start(c)-this.bufferPadding,u=r.end(c)+this.bufferPadding;if(l>=h&&A<=u){n.time.push({startPTS:Math.max(o,r.start(c)),endPTS:Math.min(a,r.end(c))});break}else if(o<u&&a>h){const d=Math.max(o,r.start(c)),g=Math.min(a,r.end(c));g>d&&(n.partial=!0,n.time.push({startPTS:d,endPTS:g}))}else if(a<=h)break}return n}getPartialFragment(e){let t=null,i,r,n,o=0;const{bufferPadding:a,fragments:A}=this;return Object.keys(A).forEach(l=>{const c=A[l];c&&cn(c)&&(r=c.body.start-a,n=c.body.end+a,e>=r&&e<=n&&(i=Math.min(e-r,n-e),o<=i&&(t=c.body,o=i)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||cn(t))}getState(e){const t=fs(e),i=this.fragments[t];return i?i.buffered?cn(i)?at.PARTIAL:at.OK:at.APPENDING:at.NOT_LOADED}isTimeBuffered(e,t,i){let r,n;for(let o=0;o<i.length;o++){if(r=i.start(o)-this.bufferPadding,n=i.end(o)+this.bufferPadding,e>=r&&t<=n)return!0;if(t<=r)return!1}return!1}onFragLoaded(e,t){const{frag:i,part:r}=t;if(i.sn==="initSegment"||i.bitrateTest)return;const n=r?null:t,o=fs(i);this.fragments[o]={body:i,appendedPTS:null,loaded:n,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:i,part:r,timeRanges:n}=t;if(i.sn==="initSegment")return;const o=i.type;if(r){let a=this.activePartLists[o];a||(this.activePartLists[o]=a=[]),a.push(r)}this.timeRanges=n,Object.keys(n).forEach(a=>{const A=n[a];this.detectEvictedFragments(a,A,o,r)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=fs(e);return!!this.fragments[t]}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,i,r,n){r&&!this.hasGaps||Object.keys(this.fragments).forEach(o=>{const a=this.fragments[o];if(!a)return;const A=a.body;A.type!==i||r&&!A.gap||A.start<t&&A.end>e&&(a.buffered||n)&&this.removeFragment(A)})}removeFragment(e){const t=fs(e);e.stats.loaded=0,e.clearElementaryStreamInfo();const i=this.activePartLists[e.type];if(i){const r=e.sn;this.activePartLists[e.type]=i.filter(n=>n.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function cn(s){var e,t,i;return s.buffered&&(s.body.gap||((e=s.range.video)==null?void 0:e.partial)||((t=s.range.audio)==null?void 0:t.partial)||((i=s.range.audiovideo)==null?void 0:i.partial))}function fs(s){return`${s.type}_${s.level}_${s.sn}`}const W0={length:0,start:()=>0,end:()=>0};class He{static isBuffered(e,t){try{if(e){const i=He.getBuffered(e);for(let r=0;r<i.length;r++)if(t>=i.start(r)&&t<=i.end(r))return!0}}catch{}return!1}static bufferInfo(e,t,i){try{if(e){const r=He.getBuffered(e),n=[];let o;for(o=0;o<r.length;o++)n.push({start:r.start(o),end:r.end(o)});return this.bufferedInfo(n,t,i)}}catch{}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,i){t=Math.max(0,t),e.sort(function(l,c){const h=l.start-c.start;return h||c.end-l.end});let r=[];if(i)for(let l=0;l<e.length;l++){const c=r.length;if(c){const h=r[c-1].end;e[l].start-h<i?e[l].end>h&&(r[c-1].end=e[l].end):r.push(e[l])}else r.push(e[l])}else r=e;let n=0,o,a=t,A=t;for(let l=0;l<r.length;l++){const c=r[l].start,h=r[l].end;if(t+i>=c&&t<h)a=c,A=h,n=A-t;else if(t+i<c){o=c;break}}return{len:n,start:a||0,end:A||0,nextStart:o}}static getBuffered(e){try{return e.buffered}catch(t){return N.log("failed to get media.buffered",t),W0}}}class Vo{constructor(e,t,i,r=0,n=-1,o=!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=hn(),this.buffering={audio:hn(),video:hn(),audiovideo:hn()},this.level=e,this.sn=t,this.id=i,this.size=r,this.part=n,this.partial=o}}function hn(){return{start:0,executeStart:0,executeEnd:0,end:0}}function un(s,e){for(let i=0,r=s.length;i<r;i++){var t;if(((t=s[i])==null?void 0:t.cc)===e)return s[i]}return null}function q0(s,e,t){return!!(e&&(t.endCC>t.startCC||s&&s.cc<t.startCC))}function j0(s,e){const t=s.fragments,i=e.fragments;if(!i.length||!t.length){N.log("No fragments to align");return}const r=un(t,i[0].cc);if(!r||r&&!r.startPTS){N.log("No frag in previous level to align on");return}return r}function vc(s,e){if(s){const t=s.start+e;s.start=s.startPTS=t,s.endPTS=t+s.duration}}function Bc(s,e){const t=e.fragments;for(let i=0,r=t.length;i<r;i++)vc(t[i],s);e.fragmentHint&&vc(e.fragmentHint,s),e.alignedSliding=!0}function X0(s,e,t){e&&(z0(s,t,e),!t.alignedSliding&&e&&dn(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&uc(e,t))}function z0(s,e,t){if(q0(s,t,e)){const i=j0(t,e);i&&oe(i.start)&&(N.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),Bc(i.start,e))}}function dn(s,e){if(!s.hasProgramDateTime||!e.hasProgramDateTime)return;const t=s.fragments,i=e.fragments;if(!t.length||!i.length)return;let r,n;const o=Math.min(e.endCC,s.endCC);e.startCC<o&&s.startCC<o&&(r=un(i,o),n=un(t,o)),(!r||!n)&&(r=i[Math.floor(i.length/2)],n=un(t,r.cc)||t[Math.floor(t.length/2)]);const a=r.programDateTime,A=n.programDateTime;if(!a||!A)return;const l=(A-a)/1e3-(n.start-r.start);Bc(l,s)}const Qc=Math.pow(2,17);class Z0{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const i=e.url;if(!i)return Promise.reject(new pi({type:pe.NETWORK_ERROR,details:$.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${i?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,n=r.fLoader,o=r.loader;return new Promise((a,A)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(d=>d[0]==="GAP")){A(bc(e));return}else e.gap=!1;const l=this.loader=e.loader=n?new n(r):new o(r),c=Sc(e),h=Ec(r.fragLoadPolicy.default),u={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Qc};e.stats=l.stats,l.load(c,u,{onSuccess:(d,g,f,p)=>{this.resetLoader(e,l);let y=d.data;f.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(y.slice(0,16)),y=y.slice(16)),a({frag:e,part:null,payload:y,networkDetails:p})},onError:(d,g,f,p)=>{this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:ot({url:i,data:void 0},d),error:new Error(`HTTP Error ${d.code} ${d.text}`),networkDetails:f,stats:p}))},onAbort:(d,g,f)=>{this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:f,stats:d}))},onTimeout:(d,g,f)=>{this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${u.timeout}ms`),networkDetails:f,stats:d}))},onProgress:(d,g,f,p)=>{t&&t({frag:e,part:null,payload:f,networkDetails:p})}})})}loadPart(e,t,i){this.abort();const r=this.config,n=r.fLoader,o=r.loader;return new Promise((a,A)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){A(bc(e,t));return}const l=this.loader=e.loader=n?new n(r):new o(r),c=Sc(e,t),h=Ec(r.fragLoadPolicy.default),u={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Qc};t.stats=l.stats,l.load(c,u,{onSuccess:(d,g,f,p)=>{this.resetLoader(e,l),this.updateStatsFromPart(e,t);const y={frag:e,part:t,payload:d.data,networkDetails:p};i(y),a(y)},onError:(d,g,f,p)=>{this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:ot({url:c.url,data:void 0},d),error:new Error(`HTTP Error ${d.code} ${d.text}`),networkDetails:f,stats:p}))},onAbort:(d,g,f)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:f,stats:d}))},onTimeout:(d,g,f)=>{this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${u.timeout}ms`),networkDetails:f,stats:d}))}})})}updateStatsFromPart(e,t){const i=e.stats,r=t.stats,n=r.total;if(i.loaded+=r.loaded,n){const A=Math.round(e.duration/t.duration),l=Math.min(Math.round(i.loaded/n),A),h=(A-l)*Math.round(i.loaded/l);i.total=i.loaded+h}else i.total=Math.max(i.loaded,i.total);const o=i.loading,a=r.loading;o.start?o.first+=a.first-a.start:(o.start=a.start,o.first=a.first),o.end=a.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Sc(s,e=null){const t=e||s,i={frag:s,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,n=t.byteRangeEndOffset;if(oe(r)&&oe(n)){var o;let a=r,A=n;if(s.sn==="initSegment"&&((o=s.decryptdata)==null?void 0:o.method)==="AES-128"){const l=n-r;l%16&&(A=n+(16-l%16)),r!==0&&(i.resetIV=!0,a=r-16)}i.rangeStart=a,i.rangeEnd=A}return i}function bc(s,e){const t=new Error(`GAP ${s.gap?"tag":"attribute"} found`),i={type:pe.MEDIA_ERROR,details:$.FRAG_GAP,fatal:!1,frag:s,error:t,networkDetails:null};return e&&(i.part=e),(e||s).stats.aborted=!0,new pi(i)}class pi extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class ep{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class tp{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function ip(s){const e=s.byteLength,t=e&&new DataView(s.buffer).getUint8(e-1);return t?Ki(s,0,e-t):s}class sp{constructor(){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()}uint8ArrayToUint32Array_(e){const t=new DataView(e),i=new Uint32Array(4);for(let r=0;r<4;r++)i[r]=t.getUint32(r*4);return i}initTable(){const e=this.sBox,t=this.invSBox,i=this.subMix,r=i[0],n=i[1],o=i[2],a=i[3],A=this.invSubMix,l=A[0],c=A[1],h=A[2],u=A[3],d=new Uint32Array(256);let g=0,f=0,p=0;for(p=0;p<256;p++)p<128?d[p]=p<<1:d[p]=p<<1^283;for(p=0;p<256;p++){let y=f^f<<1^f<<2^f<<3^f<<4;y=y>>>8^y&255^99,e[g]=y,t[y]=g;const v=d[g],S=d[v],C=d[S];let Q=d[y]*257^y*16843008;r[g]=Q<<24|Q>>>8,n[g]=Q<<16|Q>>>16,o[g]=Q<<8|Q>>>24,a[g]=Q,Q=C*16843009^S*65537^v*257^g*16843008,l[y]=Q<<24|Q>>>8,c[y]=Q<<16|Q>>>16,h[y]=Q<<8|Q>>>24,u[y]=Q,g?(g=v^d[d[d[C^v]]],f^=d[d[f]]):g=f=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let i=!0,r=0;for(;r<t.length&&i;)i=t[r]===this.key[r],r++;if(i)return;this.key=t;const n=this.keySize=t.length;if(n!==4&&n!==6&&n!==8)throw new Error("Invalid aes key size="+n);const o=this.ksRows=(n+6+1)*4;let a,A;const l=this.keySchedule=new Uint32Array(o),c=this.invKeySchedule=new Uint32Array(o),h=this.sBox,u=this.rcon,d=this.invSubMix,g=d[0],f=d[1],p=d[2],y=d[3];let v,S;for(a=0;a<o;a++){if(a<n){v=l[a]=t[a];continue}S=v,a%n===0?(S=S<<8|S>>>24,S=h[S>>>24]<<24|h[S>>>16&255]<<16|h[S>>>8&255]<<8|h[S&255],S^=u[a/n|0]<<24):n>6&&a%n===4&&(S=h[S>>>24]<<24|h[S>>>16&255]<<16|h[S>>>8&255]<<8|h[S&255]),l[a]=v=(l[a-n]^S)>>>0}for(A=0;A<o;A++)a=o-A,A&3?S=l[a]:S=l[a-4],A<4||a<=4?c[A]=S:c[A]=g[h[S>>>24]]^f[h[S>>>16&255]]^p[h[S>>>8&255]]^y[h[S&255]],c[A]=c[A]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,i){const r=this.keySize+6,n=this.invKeySchedule,o=this.invSBox,a=this.invSubMix,A=a[0],l=a[1],c=a[2],h=a[3],u=this.uint8ArrayToUint32Array_(i);let d=u[0],g=u[1],f=u[2],p=u[3];const y=new Int32Array(e),v=new Int32Array(y.length);let S,C,Q,B,_,D,G,F,H,j,V,J,b,R;const U=this.networkToHostOrderSwap;for(;t<y.length;){for(H=U(y[t]),j=U(y[t+1]),V=U(y[t+2]),J=U(y[t+3]),_=H^n[0],D=J^n[1],G=V^n[2],F=j^n[3],b=4,R=1;R<r;R++)S=A[_>>>24]^l[D>>16&255]^c[G>>8&255]^h[F&255]^n[b],C=A[D>>>24]^l[G>>16&255]^c[F>>8&255]^h[_&255]^n[b+1],Q=A[G>>>24]^l[F>>16&255]^c[_>>8&255]^h[D&255]^n[b+2],B=A[F>>>24]^l[_>>16&255]^c[D>>8&255]^h[G&255]^n[b+3],_=S,D=C,G=Q,F=B,b=b+4;S=o[_>>>24]<<24^o[D>>16&255]<<16^o[G>>8&255]<<8^o[F&255]^n[b],C=o[D>>>24]<<24^o[G>>16&255]<<16^o[F>>8&255]<<8^o[_&255]^n[b+1],Q=o[G>>>24]<<24^o[F>>16&255]<<16^o[_>>8&255]<<8^o[D&255]^n[b+2],B=o[F>>>24]<<24^o[_>>16&255]<<16^o[D>>8&255]<<8^o[G&255]^n[b+3],v[t]=U(S^d),v[t+1]=U(B^g),v[t+2]=U(Q^f),v[t+3]=U(C^p),d=H,g=j,f=V,p=J,t=t+4}return v.buffer}}const rp=16;class Jo{constructor(e,{removePKCS7Padding:t=!0}={}){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=t,t)try{const i=self.crypto;i&&(this.subtle=i.subtle||i.webkitSubtle)}catch{}this.subtle===null&&(this.useSoftware=!0)}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const i=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?ip(i):i}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,i){return this.useSoftware?new Promise((r,n)=>{this.softwareDecrypt(new Uint8Array(e),t,i);const o=this.flush();o?r(o.buffer):n(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,i)}softwareDecrypt(e,t,i){const{currentIV:r,currentResult:n,remainderData:o}=this;this.logOnce("JS AES decrypt"),o&&(e=Tt(o,e),this.remainderData=null);const a=this.getValidChunk(e);if(!a.length)return null;r&&(i=r);let A=this.softwareDecrypter;A||(A=this.softwareDecrypter=new sp),A.expandKey(t);const l=n;return this.currentResult=A.decrypt(a.buffer,0,i),this.currentIV=Ki(a,-16).buffer,l||null}webCryptoDecrypt(e,t,i){const r=this.subtle;return(this.key!==t||!this.fastAesKey)&&(this.key=t,this.fastAesKey=new tp(r,t)),this.fastAesKey.expandKey().then(n=>r?(this.logOnce("WebCrypto AES decrypt"),new ep(r,new Uint8Array(i)).decrypt(e.buffer,n)):Promise.reject(new Error("web crypto not initialized"))).catch(n=>(N.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${n.name}: ${n.message}`),this.onWebCryptoError(e,t,i)))}onWebCryptoError(e,t,i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,i);const r=this.flush();if(r)return r.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const i=e.length-e.length%rp;return i!==e.length&&(t=Ki(e,0,i),this.remainderData=Ki(e,i)),t}logOnce(e){this.logEnabled&&(N.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const np={toString:function(s){let e="";const t=s.length;for(let i=0;i<t;i++)e+=`[${s.start(i).toFixed(3)}-${s.end(i).toFixed(3)}]`;return e}},X={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class Wo extends V0{constructor(e,t,i,r,n){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=X.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=n,this.logPrefix=r,this.log=N.log.bind(N,`${r}:`),this.warn=N.warn.bind(N,`${r}:`),this.hls=e,this.fragmentLoader=new Z0(e.config),this.keyLoader=i,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Jo(e.config),e.on(E.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=X.STOPPED}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const i=t.partList;if(i!=null&&i.length){const n=i[i.length-1];return He.isBuffered(this.media,n.start+n.duration/2)}const r=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(r)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const i=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),i.addEventListener("seeking",this.onvseeking),i.addEventListener("ended",this.onvended);const r=this.config;this.levels&&r.autoStartLoad&&this.state===X.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.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()}onMediaSeeking(){const{config:e,fragCurrent:t,media:i,mediaBuffer:r,state:n}=this,o=i?i.currentTime:0,a=He.bufferInfo(r||i,o,e.maxBufferHole);if(this.log(`media seeking to ${oe(o)?o.toFixed(3):o}, state: ${n}`),this.state===X.ENDED)this.resetLoadingState();else if(t){const A=e.maxFragLookUpTolerance,l=t.start-A,c=t.start+t.duration+A;if(!a.len||c<a.start||l>a.end){const h=o>c;(o<l||h)&&(h&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}i&&(this.fragmentTracker.removeFragmentsInRange(o,1/0,this.playlistType,!0),this.lastCurrentTime=o),!this.loadedmetadata&&!a.len&&(this.nextLoadPosition=this.startPosition=o),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(E.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=X.STOPPED,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,super.onHandlerDestroyed()}loadFragment(e,t,i){this._loadFragForPlayback(e,t,i)}_loadFragForPlayback(e,t,i){const r=n=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${n.part?" p: "+n.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(n)};this._doFragLoad(e,t,i,r).then(n=>{if(!n)return;const o=this.state;if(this.fragContextChanged(e)){(o===X.FRAG_LOADING||!this.fragCurrent&&o===X.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=X.IDLE);return}"payload"in n&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(E.FRAG_LOADED,n)),this._handleFragmentLoadComplete(n)}).catch(n=>{this.state===X.STOPPED||this.state===X.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:i}=this;if(i.getState(e)===at.APPENDING){const n=e.type,o=this.getFwdBufferInfo(this.mediaBuffer,n),a=Math.max(e.duration,o?o.len:this.config.maxBufferLength);this.reduceMaxBufferLength(a)&&i.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?i.removeAllFragments():i.hasParts(e.type)&&(i.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),i.getState(e)===at.PARTIAL&&i.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}flushMainBuffer(e,t,i=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:i};this.hls.trigger(E.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(i=>{if(!i||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return i}).then(i=>{const{hls:r}=this,{payload:n}=i,o=e.decryptdata;if(n&&n.byteLength>0&&o!=null&&o.key&&o.iv&&o.method==="AES-128"){const a=self.performance.now();return this.decrypter.decrypt(new Uint8Array(n),o.key.buffer,o.iv.buffer).catch(A=>{throw r.trigger(E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_DECRYPT_ERROR,fatal:!1,error:A,reason:A.message,frag:e}),A}).then(A=>{const l=self.performance.now();return r.trigger(E.FRAG_DECRYPTED,{frag:e,payload:A,stats:{tstart:a,tdecrypt:l}}),i.payload=A,this.completeInitSegmentLoad(i)})}return this.completeInitSegmentLoad(i)}).catch(i=>{this.state===X.STOPPED||this.state===X.ERROR||(this.warn(i),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const i=e.frag.stats;this.state=X.IDLE,e.frag.data=new Uint8Array(e.payload),i.parsing.start=i.buffering.start=self.performance.now(),i.parsing.end=i.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){var i,r,n,o;const a=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===fe.MAIN?"level":"track"} ${e.level} (frag:[${((i=e.startPTS)!=null?i:NaN).toFixed(3)}-${((r=e.endPTS)!=null?r:NaN).toFixed(3)}] > buffer:${a?np.toString(He.getBuffered(a)):"(detached)"})`),e.sn!=="initSegment"){var A;if(e.type!==fe.SUBTITLE){const c=e.elementaryStreams;if(!Object.keys(c).some(h=>!!c[h])){this.state=X.IDLE;return}}const l=(A=this.levels)==null?void 0:A[e.level];l!=null&&l.fragmentError&&(this.log(`Resetting level fragment error count of ${l.fragmentError} on frag buffered`),l.fragmentError=0)}this.state=X.IDLE,a&&(!this.loadedmetadata&&e.type==fe.MAIN&&a.buffered.length&&((n=this.fragCurrent)==null?void 0:n.sn)===((o=this.fragPrevious)==null?void 0:o.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:i,part:r,partsLoaded:n}=e,o=!n||n.length===0||n.some(A=>!A),a=new Vo(i.level,i.sn,i.stats.chunkCount+1,0,r?r.index:-1,!o);t.flush(a)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,i=null,r){var n;const o=t==null?void 0:t.details;if(!this.levels||!o)throw new Error(`frag load aborted, missing level${o?"":" detail"}s`);let a=null;if(e.encrypted&&!((n=e.decryptdata)!=null&&n.key)?(this.log(`Loading key for ${e.sn} of [${o.startSN}-${o.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=X.KEY_LOADING,this.fragCurrent=e,a=this.keyLoader.load(e).then(c=>{if(!this.fragContextChanged(c.frag))return this.hls.trigger(E.KEY_LOADED,c),this.state===X.KEY_LOADING&&(this.state=X.IDLE),c}),this.hls.trigger(E.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(a=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&o.encryptedFragments.length&&this.keyLoader.loadClear(e,o.encryptedFragments),i=Math.max(e.start,i||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const c=o.partList;if(c&&r){i>e.end&&o.fragmentHint&&(e=o.fragmentHint);const h=this.getNextPart(c,e,i);if(h>-1){const u=c[h];this.log(`Loading part sn: ${e.sn} p: ${u.index} cc: ${e.cc} of playlist [${o.startSN}-${o.endSN}] parts [0-${h}-${c.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(i.toFixed(3))}`),this.nextLoadPosition=u.start+u.duration,this.state=X.FRAG_LOADING;let d;return a?d=a.then(g=>!g||this.fragContextChanged(g.frag)?null:this.doFragPartsLoad(e,u,t,r)).catch(g=>this.handleFragLoadError(g)):d=this.doFragPartsLoad(e,u,t,r).catch(g=>this.handleFragLoadError(g)),this.hls.trigger(E.FRAG_LOADING,{frag:e,part:u,targetBufferTime:i}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):d}else if(!e.url||this.loadedEndOfParts(c,i))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${o?"of ["+o.startSN+"-"+o.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(i.toFixed(3))}`),oe(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=X.FRAG_LOADING;const A=this.config.progressive;let l;return A&&a?l=a.then(c=>!c||this.fragContextChanged(c==null?void 0:c.frag)?null:this.fragmentLoader.load(e,r)).catch(c=>this.handleFragLoadError(c)):l=Promise.all([this.fragmentLoader.load(e,A?r:void 0),a]).then(([c])=>(!A&&c&&r&&r(c),c)).catch(c=>this.handleFragLoadError(c)),this.hls.trigger(E.FRAG_LOADING,{frag:e,targetBufferTime:i}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):l}doFragPartsLoad(e,t,i,r){return new Promise((n,o)=>{var a;const A=[],l=(a=i.details)==null?void 0:a.partList,c=h=>{this.fragmentLoader.loadPart(e,h,r).then(u=>{A[h.index]=u;const d=u.part;this.hls.trigger(E.FRAG_LOADED,u);const g=dc(i,e.sn,h.index+1)||gc(l,e.sn,h.index+1);if(g)c(g);else return n({frag:e,part:d,partsLoaded:A})}).catch(o)};c(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===$.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(E.ERROR,t)}else this.hls.trigger(E.ERROR,{type:pe.OTHER_ERROR,details:$.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==X.PARSING){!this.fragCurrent&&this.state!==X.STOPPED&&this.state!==X.ERROR&&(this.state=X.IDLE);return}const{frag:i,part:r,level:n}=t,o=self.performance.now();i.stats.parsing.end=o,r&&(r.stats.parsing.end=o),this.updateLevelTiming(i,r,n,e.partial)}getCurrentContext(e){const{levels:t,fragCurrent:i}=this,{level:r,sn:n,part:o}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${n} of level ${r}. The current chunk will not be buffered.`),null;const a=t[r],A=o>-1?dc(a,n,o):null,l=A?A.fragment:R0(a,n,i);return l?(i&&i!==l&&(l.stats=i.stats),{frag:l,part:A,level:a}):null}bufferFragmentData(e,t,i,r,n){var o;if(!e||this.state!==X.PARSING)return;const{data1:a,data2:A}=e;let l=a;if(a&&A&&(l=Tt(a,A)),!((o=l)!=null&&o.length))return;const c={type:e.type,frag:t,part:i,chunkMeta:r,parent:t.type,data:l};if(this.hls.trigger(E.BUFFER_APPENDING,c),e.dropped&&e.independent&&!i){if(n)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!He.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const i=t.currentTime,r=He.bufferInfo(t,i,0),n=e.duration,o=Math.min(this.config.maxFragLookUpTolerance*2,n*.25),a=Math.max(Math.min(e.start-o,r.end-o),i+o);e.start-a>o&&this.flushMainBuffer(a,e.start)}getFwdBufferInfo(e,t){const i=this.getLoadPosition();return oe(i)?this.getFwdBufferInfoAtPos(e,i,t):null}getFwdBufferInfoAtPos(e,t,i){const{config:{maxBufferHole:r}}=this,n=He.bufferInfo(e,t,r);if(n.len===0&&n.nextStart!==void 0){const o=this.fragmentTracker.getBufferedFrag(t,i);if(o&&n.nextStart<o.end)return He.bufferInfo(e,t,Math.max(n.nextStart,r))}return n}getMaxBufferLength(e){const{config:t}=this;let i;return e?i=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):i=t.maxBufferLength,Math.min(i,t.maxMaxBufferLength)}reduceMaxBufferLength(e){const t=this.config,i=e||t.maxBufferLength;return t.maxMaxBufferLength>=i?(t.maxMaxBufferLength/=2,this.warn(`Reduce max buffer length to ${t.maxMaxBufferLength}s`),!0):!1}getAppendedFrag(e,t=fe.MAIN){const i=this.fragmentTracker.getAppendedFrag(e,fe.MAIN);return i&&"fragment"in i?i.fragment:i}getNextFragment(e,t){const i=t.fragments,r=i.length;if(!r)return null;const{config:n}=this,o=i[0].start;let a;if(t.live){const A=n.initialLiveManifestSize;if(r<A)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${A})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<o)&&(a=this.getInitialLiveFragment(t,i),this.startPosition=this.nextLoadPosition=a?this.hls.liveSyncPosition||a.start:e)}else e<=o&&(a=i[0]);if(!a){const A=n.lowLatencyMode?t.partEnd:t.fragmentEnd;a=this.getFragmentAtPosition(e,A,t)}return this.mapToInitFragWhenRequired(a)}isLoopLoading(e,t){const i=this.fragmentTracker.getState(e);return(i===at.OK||i===at.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,i,r,n){const o=e.gap,a=this.getNextFragment(this.nextLoadPosition,t);if(a===null)return a;if(e=a,o&&e&&!e.gap&&i.nextStart){const A=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,i.nextStart,r);if(A!==null&&i.len+A.len>=n)return this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${e.sn}`),null}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,i){let r=-1,n=!1,o=!0;for(let a=0,A=e.length;a<A;a++){const l=e[a];if(o=o&&!l.independent,r>-1&&i<l.start)break;const c=l.loaded;c?r=-1:(n||l.independent||o)&&l.fragment===t&&(r=a),n=c}return r}loadedEndOfParts(e,t){const i=e[e.length-1];return i&&t>i.start&&i.loaded}getInitialLiveFragment(e,t){const i=this.fragPrevious;let r=null;if(i){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${i.programDateTime}`),r=D0(t,i.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const n=i.sn+1;if(n>=e.startSN&&n<=e.endSN){const o=t[n-e.startSN];i.cc===o.cc&&(r=o,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=L0(t,i.cc),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const n=this.hls.liveSyncPosition;n!==null&&(r=this.getFragmentAtPosition(n,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,i){const{config:r}=this;let{fragPrevious:n}=this,{fragments:o,endSN:a}=i;const{fragmentHint:A}=i,l=r.maxFragLookUpTolerance,c=i.partList,h=!!(r.lowLatencyMode&&c!=null&&c.length&&A);h&&A&&!this.bitrateTest&&(o=o.concat(A),a=A.sn);let u;if(e<t){const d=e>t-l?0:l;u=ln(n,o,e,d)}else u=o[o.length-1];if(u){const d=u.sn-i.startSN,g=this.fragmentTracker.getState(u);if((g===at.OK||g===at.PARTIAL&&u.gap)&&(n=u),n&&u.sn===n.sn&&(!h||c[0].fragment.sn>u.sn)&&n&&u.level===n.level){const p=o[d+1];u.sn<a&&this.fragmentTracker.getState(p)!==at.OK?u=p:u=null}}return u}synchronizeToLiveEdge(e){const{config:t,media:i}=this;if(!i)return;const r=this.hls.liveSyncPosition,n=i.currentTime,o=e.fragments[0].start,a=e.edge,A=n>=o-t.maxFragLookUpTolerance&&n<=a;if(r!==null&&i.duration>r&&(n<r||!A)){const l=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!A&&i.readyState<4||n<a-l)&&(this.loadedmetadata||(this.nextLoadPosition=r),i.readyState&&(this.warn(`Playback: ${n.toFixed(3)} is located too far from the end of live sliding playlist: ${a}, reset currentTime to : ${r.toFixed(3)}`),i.currentTime=r))}}alignPlaylists(e,t,i){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const n=e.fragments[0].start,o=!t,a=e.alignedSliding&&oe(n);if(o||!a&&!n){const{fragPrevious:A}=this;X0(A,i,e);const l=e.fragments[0].start;return this.log(`Live playlist sliding: ${l.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${A?A.sn:"na"} fragments: ${r}`),l}return n}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let i=this.startPosition;if(i<t&&(i=-1),i===-1||this.lastCurrentTime===-1){const r=this.startTimeOffset!==null,n=r?this.startTimeOffset:e.startTimeOffset;n!==null&&oe(n)?(i=t+n,n<0&&(i+=e.totalduration),i=Math.min(Math.max(t,i),t+e.totalduration),this.log(`Start time offset ${n} found in ${r?"multivariant":"media"} playlist, adjust startPosition to ${i}`),this.startPosition=i):e.live?i=this.hls.liveSyncPosition||t:this.startPosition=i=0,this.lastCurrentTime=i}this.nextLoadPosition=i}getLoadPosition(){const{media:e}=this;let t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}handleFragLoadAborted(e,t){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==X.FRAG_LOADING_WAITING_RETRY)&&(this.state=X.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const c=this.getCurrentContext(t.chunkMeta);c&&(t.frag=c.frag)}const i=t.frag;if(!i||i.type!==e||!this.levels)return;if(this.fragContextChanged(i)){var r;this.warn(`Frag load error must match current frag to retry ${i.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const n=t.details===$.FRAG_GAP;n&&this.fragmentTracker.fragBuffered(i,!0);const o=t.errorAction,{action:a,retryCount:A=0,retryConfig:l}=o||{};if(o&&a===dt.RetryRequest&&l){this.resetStartWhenNotLoaded(this.levelLastLoaded);const c=$o(l,A);this.warn(`Fragment ${i.sn} of ${e} ${i.level} errored with ${t.details}, retrying loading ${A+1}/${l.maxNumRetry} in ${c}ms`),o.resolved=!0,this.retryDate=self.performance.now()+c,this.state=X.FRAG_LOADING_WAITING_RETRY}else if(l&&o)if(this.resetFragmentErrors(e),A<l.maxNumRetry)!n&&a!==dt.RemoveAlternatePermanently&&(o.resolved=!0);else{N.warn(`${t.details} reached or exceeded max retry (${A})`);return}else(o==null?void 0:o.action)===dt.SendAlternateToPenaltyBox?this.state=X.WAITING_LEVEL:this.state=X.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===X.PARSING||this.state===X.PARSED){const t=e.parent,i=this.getFwdBufferInfo(this.mediaBuffer,t),r=i&&i.len>.5;r&&this.reduceMaxBufferLength(i.len);const n=!r;return n&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${t} buffer`),e.frag&&(this.fragmentTracker.removeFragment(e.frag),this.nextLoadPosition=e.frag.start),this.resetLoadingState(),n}return!1}resetFragmentErrors(e){e===fe.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==X.STOPPED&&(this.state=X.IDLE)}afterBufferFlushed(e,t,i){if(!e)return;const r=He.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,i),this.state===X.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=X.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,i,r){var n;const o=i.details;if(!o){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((A,l)=>{const c=e.elementaryStreams[l];if(c){const h=c.endPTS-c.startPTS;if(h<=0)return this.warn(`Could not parse fragment ${e.sn} ${l} duration reliably (${h})`),A||!1;const u=r?0:hc(o,e,c.startPTS,c.endPTS,c.startDTS,c.endDTS);return this.hls.trigger(E.LEVEL_PTS_UPDATED,{details:o,level:i,drift:u,type:l,frag:e,start:c.startPTS,end:c.endPTS}),!0}return A},!1)&&((n=this.transmuxer)==null?void 0:n.error)===null){const A=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(i.fragmentError===0&&(i.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(A.message),this.hls.trigger(E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!1,error:A,frag:e,reason:`Found no media in msn ${e.sn} of level "${i.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=X.PARSED,this.hls.trigger(E.FRAG_PARSED,{frag:e,part:t})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}class wc{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let i;if(e.length)e.length===1?i=e[0]:i=op(e,t);else return new Uint8Array(0);return this.reset(),i}reset(){this.chunks.length=0,this.dataLength=0}}function op(s,e){const t=new Uint8Array(e);let i=0;for(let r=0;r<s.length;r++){const n=s[r];t.set(n,i),i+=n.length}return t}function ap(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Ap(){const s=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(s);return{worker:new self.Worker(e),objectURL:e}}function lp(s){const e=new self.URL(s,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Zt(s="",e=9e4){return{type:s,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class qo{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,i,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,i){}demux(e,t){this.cachedData&&(e=Tt(this.cachedData,e),this.cachedData=null);let i=er(e,0),r=i?i.length:0,n;const o=this._audioTrack,a=this._id3Track,A=i?xo(i):void 0,l=e.length;for((this.basePTS===null||this.frameIndex===0&&oe(A))&&(this.basePTS=cp(A,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),i&&i.length>0&&a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:Pt.audioId3,duration:Number.POSITIVE_INFINITY});r<l;){if(this.canParse(e,r)){const c=this.appendFrame(o,e,r);c?(this.frameIndex++,this.lastPTS=c.sample.pts,r+=c.length,n=r):r=l}else _f(e,r)?(i=er(e,r),a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:Pt.audioId3,duration:Number.POSITIVE_INFINITY}),r+=i.length,n=r):r++;if(r===l&&n!==l){const c=Ki(e,n);this.cachedData?this.cachedData=Tt(this.cachedData,c):this.cachedData=c}}return{audioTrack:o,videoTrack:Zt(),id3Track:a,textTrack:Zt()}}demuxSampleAes(e,t,i){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:Zt(),id3Track:this._id3Track,textTrack:Zt()}}destroy(){}}const cp=(s,e,t)=>{if(oe(s))return s*90;const i=t?t.baseTime*9e4/t.timescale:0;return e*9e4+i};function hp(s,e,t,i){let r,n,o,a;const A=navigator.userAgent.toLowerCase(),l=i,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=((e[t+2]&192)>>>6)+1;const h=(e[t+2]&60)>>>2;if(h>c.length-1){const u=new Error(`invalid ADTS sampling index:${h}`);s.emit(E.ERROR,E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!0,error:u,reason:u.message});return}return o=(e[t+2]&1)<<2,o|=(e[t+3]&192)>>>6,N.log(`manifest codec:${i}, ADTS type:${r}, samplingIndex:${h}`),/firefox/i.test(A)?h>=6?(r=5,a=new Array(4),n=h-3):(r=2,a=new Array(2),n=h):A.indexOf("android")!==-1?(r=2,a=new Array(2),n=h):(r=5,a=new Array(4),i&&(i.indexOf("mp4a.40.29")!==-1||i.indexOf("mp4a.40.5")!==-1)||!i&&h>=6?n=h-3:((i&&i.indexOf("mp4a.40.2")!==-1&&(h>=6&&o===1||/vivaldi/i.test(A))||!i&&o===1)&&(r=2,a=new Array(2)),n=h)),a[0]=r<<3,a[0]|=(h&14)>>1,a[1]|=(h&1)<<7,a[1]|=o<<3,r===5&&(a[1]|=(n&14)>>1,a[2]=(n&1)<<7,a[2]|=8,a[3]=0),{config:a,samplerate:c[h],channelCount:o,codec:"mp4a.40."+r,manifestCodec:l}}function Rc(s,e){return s[e]===255&&(s[e+1]&246)===240}function xc(s,e){return s[e+1]&1?7:9}function jo(s,e){return(s[e+3]&3)<<11|s[e+4]<<3|(s[e+5]&224)>>>5}function up(s,e){return e+5<s.length}function gn(s,e){return e+1<s.length&&Rc(s,e)}function dp(s,e){return up(s,e)&&Rc(s,e)&&jo(s,e)<=s.length-e}function gp(s,e){if(gn(s,e)){const t=xc(s,e);if(e+t>=s.length)return!1;const i=jo(s,e);if(i<=t)return!1;const r=e+i;return r===s.length||gn(s,r)}return!1}function Dc(s,e,t,i,r){if(!s.samplerate){const n=hp(e,t,i,r);if(!n)return;s.config=n.config,s.samplerate=n.samplerate,s.channelCount=n.channelCount,s.codec=n.codec,s.manifestCodec=n.manifestCodec,N.log(`parsed codec:${s.codec}, rate:${n.samplerate}, channels:${n.channelCount}`)}}function Tc(s){return 9216e4/s}function fp(s,e){const t=xc(s,e);if(e+t<=s.length){const i=jo(s,e)-t;if(i>0)return{headerLength:t,frameLength:i}}}function Lc(s,e,t,i,r){const n=Tc(s.samplerate),o=i+r*n,a=fp(e,t);let A;if(a){const{frameLength:h,headerLength:u}=a,d=u+h,g=Math.max(0,t+d-e.length);g?(A=new Uint8Array(d-u),A.set(e.subarray(t+u,e.length),0)):A=e.subarray(t+u,t+d);const f={unit:A,pts:o};return g||s.samples.push(f),{sample:f,length:d,missing:g}}const l=e.length-t;return A=new Uint8Array(l),A.set(e.subarray(t,e.length),0),{sample:{unit:A,pts:o},length:l,missing:-1}}let fn=null;const pp=[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],Ep=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Ip=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],mp=[0,1,1,4];function _c(s,e,t,i,r){if(t+24>e.length)return;const n=kc(e,t);if(n&&t+n.frameLength<=e.length){const o=n.samplesPerFrame*9e4/n.sampleRate,a=i+r*o,A={unit:e.subarray(t,t+n.frameLength),pts:a,dts:a};return s.config=[],s.channelCount=n.channelCount,s.samplerate=n.sampleRate,s.samples.push(A),{sample:A,length:n.frameLength,missing:0}}}function kc(s,e){const t=s[e+1]>>3&3,i=s[e+1]>>1&3,r=s[e+2]>>4&15,n=s[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&n!==3){const o=s[e+2]>>1&1,a=s[e+3]>>6,A=t===3?3-i:i===3?3:4,l=pp[A*14+r-1]*1e3,h=Ep[(t===3?0:t===2?1:2)*3+n],u=a===3?1:2,d=Ip[t][i],g=mp[i],f=d*8*g,p=Math.floor(d*l/h+o)*g;if(fn===null){const S=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);fn=S?parseInt(S[1]):0}return!!fn&&fn<=87&&i===2&&l>=224e3&&a===0&&(s[e+3]=s[e+3]|128),{sampleRate:h,channelCount:u,frameLength:p,samplesPerFrame:f}}}function Xo(s,e){return s[e]===255&&(s[e+1]&224)===224&&(s[e+1]&6)!==0}function Fc(s,e){return e+1<s.length&&Xo(s,e)}function Cp(s,e){return Xo(s,e)&&4<=s.length-e}function Nc(s,e){if(e+1<s.length&&Xo(s,e)){const i=kc(s,e);let r=4;i!=null&&i.frameLength&&(r=i.frameLength);const n=e+r;return n===s.length||Fc(s,n)}return!1}class yp extends qo{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,i,r){super.resetInitSegment(e,t,i,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=er(e,0);let i=(t==null?void 0:t.length)||0;if(Nc(e,i))return!1;for(let r=e.length;i<r;i++)if(gp(e,i))return N.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return dp(e,t)}appendFrame(e,t,i){Dc(e,this.observer,t,i,e.manifestCodec);const r=Lc(e,t,i,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const vp=/\/emsg[-/]ID3/i;class Bp{constructor(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}resetTimeStamp(){}resetInitSegment(e,t,i,r){const n=this.videoTrack=Zt("video",1),o=this.audioTrack=Zt("audio",1),a=this.txtTrack=Zt("text",1);if(this.id3Track=Zt("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const A=Pl(e);if(A.video){const{id:l,timescale:c,codec:h}=A.video;n.id=l,n.timescale=a.timescale=c,n.codec=h}if(A.audio){const{id:l,timescale:c,codec:h}=A.audio;o.id=l,o.timescale=c,o.codec=h}a.id=Fl.text,n.sampleDuration=0,n.duration=o.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return Hf(e)}demux(e,t){this.timeOffset=t;let i=e;const r=this.videoTrack,n=this.txtTrack;if(this.config.progressive){this.remainderData&&(i=Tt(this.remainderData,e));const a=jf(i);this.remainderData=a.remainder,r.samples=a.valid||new Uint8Array}else r.samples=i;const o=this.extractID3Track(r,t);return n.samples=Gl(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:o,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,i=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return i.samples=Gl(e,t),{videoTrack:t,audioTrack:Zt(),id3Track:r,textTrack:Zt()}}extractID3Track(e,t){const i=this.id3Track;if(e.samples.length){const r=ve(e.samples,["emsg"]);r&&r.forEach(n=>{const o=Zf(n);if(vp.test(o.schemeIdUri)){const a=oe(o.presentationTime)?o.presentationTime/o.timeScale:t+o.presentationTimeDelta/o.timeScale;let A=o.eventDuration===4294967295?Number.POSITIVE_INFINITY:o.eventDuration/o.timeScale;A<=.001&&(A=Number.POSITIVE_INFINITY);const l=o.payload;i.samples.push({data:l,len:l.byteLength,dts:a,pts:a,type:Pt.emsg,duration:A})}})}return i}demuxSampleAes(e,t,i){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const Mc=(s,e)=>{let t=0,i=5;e+=i;const r=new Uint32Array(1),n=new Uint32Array(1),o=new Uint8Array(1);for(;i>0;){o[0]=s[e];const a=Math.min(i,8),A=8-a;n[0]=4278190080>>>24+A<<A,r[0]=(o[0]&n[0])>>A,t=t?t<<a|r[0]:r[0],e+=1,i-=a}return t};class Qp extends qo{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,i,r){super.resetInitSegment(e,t,i,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,i){const r=Oc(e,t,i,this.basePTS,this.frameIndex);if(r!==-1)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}static probe(e){if(!e)return!1;const t=er(e,0);if(!t)return!1;const i=t.length;return e[i]===11&&e[i+1]===119&&xo(t)!==void 0&&Mc(e,i)<16}}function Oc(s,e,t,i,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const n=e[t+4]>>6;if(n>=3)return-1;const a=[48e3,44100,32e3][n],A=e[t+4]&63,c=[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][A*3+n]*2;if(t+c>e.length)return-1;const h=e[t+6]>>5;let u=0;h===2?u+=2:(h&1&&h!==1&&(u+=2),h&4&&(u+=2));const d=(e[t+6]<<8|e[t+7])>>12-u&1,f=[2,1,2,3,3,4,4,5][h]+d,p=e[t+5]>>3,y=e[t+5]&7,v=new Uint8Array([n<<6|p<<1|y>>2,(y&3)<<6|h<<3|d<<2|A>>4,A<<4&224]),S=1536/a*9e4,C=i+r*S,Q=e.subarray(t,t+c);return s.config=v,s.channelCount=f,s.samplerate=a,s.samples.push({unit:Q,pts:C}),c}class Sp{constructor(){this.VideoSample=null}createVideoSample(e,t,i,r){return{key:e,frame:!1,pts:t,dts:i,units:[],debug:r,length:0}}getLastNalUnit(e){var t;let i=this.VideoSample,r;if((!i||i.units.length===0)&&(i=e[e.length-1]),(t=i)!=null&&t.units){const n=i.units;r=n[n.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const i=t.samples,r=i.length;if(r){const n=i[r-1];e.pts=n.pts,e.dts=n.dts}else{t.dropped++;return}}t.samples.push(e)}e.debug.length&&N.log(e.pts+"/"+e.dts+":"+e.debug)}}class Pc{constructor(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}loadWord(){const e=this.data,t=this.bytesAvailable,i=e.byteLength-t,r=new Uint8Array(4),n=Math.min(4,t);if(n===0)throw new Error("no bytes available");r.set(e.subarray(i,i+n)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=n*8,this.bytesAvailable-=n}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const i=this.word>>>32-t;if(e>32&&N.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?i<<t|this.readBits(t):i}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(e){let t=8,i=8,r;for(let n=0;n<e;n++)i!==0&&(r=this.readEG(),i=(t+r+256)%256),t=i===0?t:i}readSPS(){let e=0,t=0,i=0,r=0,n,o,a;const A=this.readUByte.bind(this),l=this.readBits.bind(this),c=this.readUEG.bind(this),h=this.readBoolean.bind(this),u=this.skipBits.bind(this),d=this.skipEG.bind(this),g=this.skipUEG.bind(this),f=this.skipScalingList.bind(this);A();const p=A();if(l(5),u(3),A(),g(),p===100||p===110||p===122||p===244||p===44||p===83||p===86||p===118||p===128){const B=c();if(B===3&&u(1),g(),g(),u(1),h())for(o=B!==3?8:12,a=0;a<o;a++)h()&&(a<6?f(16):f(64))}g();const y=c();if(y===0)c();else if(y===1)for(u(1),d(),d(),n=c(),a=0;a<n;a++)d();g(),u(1);const v=c(),S=c(),C=l(1);C===0&&u(1),u(1),h()&&(e=c(),t=c(),i=c(),r=c());let Q=[1,1];if(h()&&h())switch(A()){case 1:Q=[1,1];break;case 2:Q=[12,11];break;case 3:Q=[10,11];break;case 4:Q=[16,11];break;case 5:Q=[40,33];break;case 6:Q=[24,11];break;case 7:Q=[20,11];break;case 8:Q=[32,11];break;case 9:Q=[80,33];break;case 10:Q=[18,11];break;case 11:Q=[15,11];break;case 12:Q=[64,33];break;case 13:Q=[160,99];break;case 14:Q=[4,3];break;case 15:Q=[3,2];break;case 16:Q=[2,1];break;case 255:{Q=[A()<<8|A(),A()<<8|A()];break}}return{width:Math.ceil((v+1)*16-e*2-t*2),height:(2-C)*(S+1)*16-(C?2:4)*(i+r),pixelRatio:Q}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class bp extends Sp{parseAVCPES(e,t,i,r,n){const o=this.parseAVCNALu(e,i.data);let a=this.VideoSample,A,l=!1;i.data=null,a&&o.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,i.pts,i.dts,"")),o.forEach(c=>{var h;switch(c.type){case 1:{let f=!1;A=!0;const p=c.data;if(l&&p.length>4){const y=new Pc(p).readSliceType();(y===2||y===4||y===7||y===9)&&(f=!0)}if(f){var u;(u=a)!=null&&u.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null)}a||(a=this.VideoSample=this.createVideoSample(!0,i.pts,i.dts,"")),a.frame=!0,a.key=f;break}case 5:A=!0,(h=a)!=null&&h.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,i.pts,i.dts,"")),a.key=!0,a.frame=!0;break;case 6:{A=!0,Hl(c.data,1,i.pts,t.samples);break}case 7:{var d,g;A=!0,l=!0;const f=c.data,y=new Pc(f).readSPS();if(!e.sps||e.width!==y.width||e.height!==y.height||((d=e.pixelRatio)==null?void 0:d[0])!==y.pixelRatio[0]||((g=e.pixelRatio)==null?void 0:g[1])!==y.pixelRatio[1]){e.width=y.width,e.height=y.height,e.pixelRatio=y.pixelRatio,e.sps=[f],e.duration=n;const v=f.subarray(1,4);let S="avc1.";for(let C=0;C<3;C++){let Q=v[C].toString(16);Q.length<2&&(Q="0"+Q),S+=Q}e.codec=S}break}case 8:A=!0,e.pps=[c.data];break;case 9:A=!0,e.audFound=!0,a&&this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,i.pts,i.dts,"");break;case 12:A=!0;break;default:A=!1,a&&(a.debug+="unknown NAL "+c.type+" ");break}a&&A&&a.units.push(c)}),r&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}parseAVCNALu(e,t){const i=t.byteLength;let r=e.naluState||0;const n=r,o=[];let a=0,A,l,c,h=-1,u=0;for(r===-1&&(h=0,u=t[0]&31,r=0,a=1);a<i;){if(A=t[a++],!r){r=A?0:1;continue}if(r===1){r=A?0:2;continue}if(!A)r=3;else if(A===1){if(l=a-r-1,h>=0){const d={data:t.subarray(h,l),type:u};o.push(d)}else{const d=this.getLastNalUnit(e.samples);d&&(n&&a<=4-n&&d.state&&(d.data=d.data.subarray(0,d.data.byteLength-n)),l>0&&(d.data=Tt(d.data,t.subarray(0,l)),d.state=0))}a<i?(c=t[a]&31,h=a,u=c,r=0):r=-1}else r=0}if(h>=0&&r>=0){const d={data:t.subarray(h,i),type:u,state:r};o.push(d)}if(o.length===0){const d=this.getLastNalUnit(e.samples);d&&(d.data=Tt(d.data,t))}return e.naluState=r,o}}class wp{constructor(e,t,i){this.keyData=void 0,this.decrypter=void 0,this.keyData=i,this.decrypter=new Jo(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(e,t,i){const r=e[t].unit;if(r.length<=16)return;const n=r.subarray(16,r.length-r.length%16),o=n.buffer.slice(n.byteOffset,n.byteOffset+n.length);this.decryptBuffer(o).then(a=>{const A=new Uint8Array(a);r.set(A,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,i)})}decryptAacSamples(e,t,i){for(;;t++){if(t>=e.length){i();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,i),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,i=new Int8Array(t);let r=0;for(let n=32;n<e.length-16;n+=160,r+=16)i.set(e.subarray(n,n+16),r);return i}getAvcDecryptedUnit(e,t){const i=new Uint8Array(t);let r=0;for(let n=32;n<e.length-16;n+=160,r+=16)e.set(i.subarray(r,r+16),n);return e}decryptAvcSample(e,t,i,r,n){const o=$l(n.data),a=this.getAvcEncryptedData(o);this.decryptBuffer(a.buffer).then(A=>{n.data=this.getAvcDecryptedUnit(o,A),this.decrypter.isSync()||this.decryptAvcSamples(e,t,i+1,r)})}decryptAvcSamples(e,t,i,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,i=0){if(t>=e.length){r();return}const n=e[t].units;for(;!(i>=n.length);i++){const o=n[i];if(!(o.data.length<=48||o.type!==1&&o.type!==5)&&(this.decryptAvcSample(e,t,i,r,o),!this.decrypter.isSync()))return}}}}const At=188;class Ri{constructor(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 bp}static probe(e){const t=Ri.syncOffset(e);return t>0&&N.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let i=Math.min(At*5,t-At)+1,r=0;for(;r<i;){let n=!1,o=-1,a=0;for(let A=r;A<t;A+=At)if(e[A]===71&&(t-A===At||e[A+At]===71)){if(a++,o===-1&&(o=A,o!==0&&(i=Math.min(o+At*99,e.length-At)+1)),n||(n=zo(e,A)===0),n&&a>1&&(o===0&&a>2||A+At>i))return o}else{if(a)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Fl[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,i,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Ri.createTrack("video"),this._audioTrack=Ri.createTrack("audio",r),this._id3Track=Ri.createTrack("id3"),this._txtTrack=Ri.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=i,this._duration=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:i}=this;e&&(e.pesData=null),t&&(t.pesData=null),i&&(i.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,i=!1,r=!1){i||(this.sampleAes=null);let n;const o=this._videoTrack,a=this._audioTrack,A=this._id3Track,l=this._txtTrack;let c=o.pid,h=o.pesData,u=a.pid,d=A.pid,g=a.pesData,f=A.pesData,p=null,y=this.pmtParsed,v=this._pmtId,S=e.length;if(this.remainderData&&(e=Tt(this.remainderData,e),S=e.length,this.remainderData=null),S<At&&!r)return this.remainderData=e,{audioTrack:a,videoTrack:o,id3Track:A,textTrack:l};const C=Math.max(0,Ri.syncOffset(e));S-=(S-C)%At,S<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,S,e.buffer.byteLength-S));let Q=0;for(let _=C;_<S;_+=At)if(e[_]===71){const D=!!(e[_+1]&64),G=zo(e,_),F=(e[_+3]&48)>>4;let H;if(F>1){if(H=_+5+e[_+4],H===_+At)continue}else H=_+4;switch(G){case c:D&&(h&&(n=ps(h))&&this.videoParser.parseAVCPES(o,l,n,!1,this._duration),h={data:[],size:0}),h&&(h.data.push(e.subarray(H,_+At)),h.size+=_+At-H);break;case u:if(D){if(g&&(n=ps(g)))switch(a.segmentCodec){case"aac":this.parseAACPES(a,n);break;case"mp3":this.parseMPEGPES(a,n);break;case"ac3":this.parseAC3PES(a,n);break}g={data:[],size:0}}g&&(g.data.push(e.subarray(H,_+At)),g.size+=_+At-H);break;case d:D&&(f&&(n=ps(f))&&this.parseID3PES(A,n),f={data:[],size:0}),f&&(f.data.push(e.subarray(H,_+At)),f.size+=_+At-H);break;case 0:D&&(H+=e[H]+1),v=this._pmtId=Rp(e,H);break;case v:{D&&(H+=e[H]+1);const j=xp(e,H,this.typeSupported,i);c=j.videoPid,c>0&&(o.pid=c,o.segmentCodec=j.segmentVideoCodec),u=j.audioPid,u>0&&(a.pid=u,a.segmentCodec=j.segmentAudioCodec),d=j.id3Pid,d>0&&(A.pid=d),p!==null&&!y&&(N.warn(`MPEG-TS PMT found at ${_} after unknown PID '${p}'. Backtracking to sync byte @${C} to parse all TS packets.`),p=null,_=C-188),y=this.pmtParsed=!0;break}case 17:case 8191:break;default:p=G;break}}else Q++;if(Q>0){const _=new Error(`Found ${Q} TS packet/s that do not start with 0x47`);this.observer.emit(E.ERROR,E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!1,error:_,reason:_.message})}o.pesData=h,a.pesData=g,A.pesData=f;const B={audioTrack:a,videoTrack:o,id3Track:A,textTrack:l};return r&&this.extractRemainingSamples(B),B}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:i,id3Track:r,textTrack:n}=e,o=i.pesData,a=t.pesData,A=r.pesData;let l;if(o&&(l=ps(o))?(this.videoParser.parseAVCPES(i,n,l,!0,this._duration),i.pesData=null):i.pesData=o,a&&(l=ps(a))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,l);break;case"mp3":this.parseMPEGPES(t,l);break;case"ac3":this.parseAC3PES(t,l);break}t.pesData=null}else a!=null&&a.size&&N.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=a;A&&(l=ps(A))?(this.parseID3PES(r,l),r.pesData=null):r.pesData=A}demuxSampleAes(e,t,i){const r=this.demux(e,i,!0,!this.config.progressive),n=this.sampleAes=new wp(this.observer,this.config,t);return this.decrypt(r,n)}decrypt(e,t){return new Promise(i=>{const{audioTrack:r,videoTrack:n}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{n.samples?t.decryptAvcSamples(n.samples,0,0,()=>{i(e)}):i(e)}):n.samples&&t.decryptAvcSamples(n.samples,0,0,()=>{i(e)})})}destroy(){this._duration=0}parseAACPES(e,t){let i=0;const r=this.aacOverFlow;let n=t.data;if(r){this.aacOverFlow=null;const h=r.missing,u=r.sample.unit.byteLength;if(h===-1)n=Tt(r.sample.unit,n);else{const d=u-h;r.sample.unit.set(n.subarray(0,h),d),e.samples.push(r.sample),i=r.missing}}let o,a;for(o=i,a=n.length;o<a-1&&!gn(n,o);o++);if(o!==i){let h;const u=o<a-1;u?h=`AAC PES did not start with ADTS header,offset:${o}`:h="No ADTS header found in AAC PES";const d=new Error(h);if(N.warn(`parsing error: ${h}`),this.observer.emit(E.ERROR,E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!1,levelRetry:u,error:d,reason:h}),!u)return}Dc(e,this.observer,n,o,this.audioCodec);let A;if(t.pts!==void 0)A=t.pts;else if(r){const h=Tc(e.samplerate);A=r.sample.pts+h}else{N.warn("[tsdemuxer]: AAC PES unknown PTS");return}let l=0,c;for(;o<a;)if(c=Lc(e,n,o,A,l),o+=c.length,c.missing){this.aacOverFlow=c;break}else for(l++;o<a-1&&!gn(n,o);o++);}parseMPEGPES(e,t){const i=t.data,r=i.length;let n=0,o=0;const a=t.pts;if(a===void 0){N.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;o<r;)if(Fc(i,o)){const A=_c(e,i,o,a,n);if(A)o+=A.length,n++;else break}else o++}parseAC3PES(e,t){{const i=t.data,r=t.pts;if(r===void 0){N.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const n=i.length;let o=0,a=0,A;for(;a<n&&(A=Oc(e,i,a,r,o++))>0;)a+=A}}parseID3PES(e,t){if(t.pts===void 0){N.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const i=Ze({},t,{type:this._videoTrack?Pt.emsg:Pt.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(i)}}function zo(s,e){return((s[e+1]&31)<<8)+s[e+2]}function Rp(s,e){return(s[e+10]&31)<<8|s[e+11]}function xp(s,e,t,i){const r={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},n=(s[e+1]&15)<<8|s[e+2],o=e+3+n-4,a=(s[e+10]&15)<<8|s[e+11];for(e+=12+a;e<o;){const A=zo(s,e),l=(s[e+3]&15)<<8|s[e+4];switch(s[e]){case 207:if(!i){Zo("ADTS AAC");break}case 15:r.audioPid===-1&&(r.audioPid=A);break;case 21:r.id3Pid===-1&&(r.id3Pid=A);break;case 219:if(!i){Zo("H.264");break}case 27:r.videoPid===-1&&(r.videoPid=A,r.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?N.log("MPEG audio found, not supported in this browser"):r.audioPid===-1&&(r.audioPid=A,r.segmentAudioCodec="mp3");break;case 193:if(!i){Zo("AC-3");break}case 129:t.ac3?r.audioPid===-1&&(r.audioPid=A,r.segmentAudioCodec="ac3"):N.log("AC-3 audio found, not supported in this browser");break;case 6:if(r.audioPid===-1&&l>0){let c=e+5,h=l;for(;h>2;){switch(s[c]){case 106:t.ac3!==!0?N.log("AC-3 audio found, not supported in this browser for now"):(r.audioPid=A,r.segmentAudioCodec="ac3");break}const d=s[c+1]+2;c+=d,h-=d}}break;case 194:case 135:N.warn("Unsupported EC-3 in M2TS found");break;case 36:N.warn("Unsupported HEVC in M2TS found");break}e+=l+5}return r}function Zo(s){N.log(`${s} with AES-128-CBC encryption found in unencrypted stream`)}function ps(s){let e=0,t,i,r,n,o;const a=s.data;if(!s||s.size===0)return null;for(;a[0].length<19&&a.length>1;)a[0]=Tt(a[0],a[1]),a.splice(1,1);if(t=a[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(i=(t[4]<<8)+t[5],i&&i>s.size-6)return null;const l=t[7];l&192&&(n=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,l&64?(o=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,n-o>54e5&&(N.warn(`${Math.round((n-o)/9e4)}s delta between PTS and DTS, align them`),n=o)):o=n),r=t[8];let c=r+9;if(s.size<=c)return null;s.size-=c;const h=new Uint8Array(s.size);for(let u=0,d=a.length;u<d;u++){t=a[u];let g=t.byteLength;if(c)if(c>g){c-=g;continue}else t=t.subarray(c),g-=c,c=0;h.set(t,e),e+=g}return i&&(i-=r+3),{data:h,pts:n,dts:o,len:i}}return null}class Dp extends qo{resetInitSegment(e,t,i,r){super.resetInitSegment(e,t,i,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=er(e,0);let i=(t==null?void 0:t.length)||0;if(t&&e[i]===11&&e[i+1]===119&&xo(t)!==void 0&&Mc(e,i)<=16)return!1;for(let r=e.length;i<r;i++)if(Nc(e,i))return N.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Cp(e,t)}appendFrame(e,t,i){if(this.basePTS!==null)return _c(e,t,i,this.basePTS,this.frameIndex)}}class Uc{static getSilentFrame(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===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(t===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]);break;default:if(t===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(t===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(t===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]);break}}}const xi=Math.pow(2,32)-1;class O{static init(){O.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:[]};let e;for(e in O.types)O.types.hasOwnProperty(e)&&(O.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=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]),i=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]);O.HDLR_TYPES={video:t,audio:i};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n=new Uint8Array([0,0,0,0,0,0,0,0]);O.STTS=O.STSC=O.STCO=n,O.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),O.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),O.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),O.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const o=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),A=new Uint8Array([0,0,0,1]);O.FTYP=O.box(O.types.ftyp,o,A,o,a),O.DINF=O.box(O.types.dinf,O.box(O.types.dref,r))}static box(e,...t){let i=8,r=t.length;const n=r;for(;r--;)i+=t[r].byteLength;const o=new Uint8Array(i);for(o[0]=i>>24&255,o[1]=i>>16&255,o[2]=i>>8&255,o[3]=i&255,o.set(e,4),r=0,i=8;r<n;r++)o.set(t[r],i),i+=t[r].byteLength;return o}static hdlr(e){return O.box(O.types.hdlr,O.HDLR_TYPES[e])}static mdat(e){return O.box(O.types.mdat,e)}static mdhd(e,t){t*=e;const i=Math.floor(t/(xi+1)),r=Math.floor(t%(xi+1));return O.box(O.types.mdhd,new Uint8Array([1,0,0,0,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,e&255,i>>24,i>>16&255,i>>8&255,i&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))}static mdia(e){return O.box(O.types.mdia,O.mdhd(e.timescale,e.duration),O.hdlr(e.type),O.minf(e))}static mfhd(e){return O.box(O.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?O.box(O.types.minf,O.box(O.types.smhd,O.SMHD),O.DINF,O.stbl(e)):O.box(O.types.minf,O.box(O.types.vmhd,O.VMHD),O.DINF,O.stbl(e))}static moof(e,t,i){return O.box(O.types.moof,O.mfhd(e),O.traf(i,t))}static moov(e){let t=e.length;const i=[];for(;t--;)i[t]=O.trak(e[t]);return O.box.apply(null,[O.types.moov,O.mvhd(e[0].timescale,e[0].duration)].concat(i).concat(O.mvex(e)))}static mvex(e){let t=e.length;const i=[];for(;t--;)i[t]=O.trex(e[t]);return O.box.apply(null,[O.types.mvex,...i])}static mvhd(e,t){t*=e;const i=Math.floor(t/(xi+1)),r=Math.floor(t%(xi+1)),n=new Uint8Array([1,0,0,0,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,e&255,i>>24,i>>16&255,i>>8&255,i&255,r>>24,r>>16&255,r>>8&255,r&255,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 O.box(O.types.mvhd,n)}static sdtp(e){const t=e.samples||[],i=new Uint8Array(4+t.length);let r,n;for(r=0;r<t.length;r++)n=t[r].flags,i[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return O.box(O.types.sdtp,i)}static stbl(e){return O.box(O.types.stbl,O.stsd(e),O.box(O.types.stts,O.STTS),O.box(O.types.stsc,O.STSC),O.box(O.types.stsz,O.STSZ),O.box(O.types.stco,O.STCO))}static avc1(e){let t=[],i=[],r,n,o;for(r=0;r<e.sps.length;r++)n=e.sps[r],o=n.byteLength,t.push(o>>>8&255),t.push(o&255),t=t.concat(Array.prototype.slice.call(n));for(r=0;r<e.pps.length;r++)n=e.pps[r],o=n.byteLength,i.push(o>>>8&255),i.push(o&255),i=i.concat(Array.prototype.slice.call(n));const a=O.box(O.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(i))),A=e.width,l=e.height,c=e.pixelRatio[0],h=e.pixelRatio[1];return O.box(O.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,A>>8&255,A&255,l>>8&255,l&255,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]),a,O.box(O.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),O.box(O.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,c&255,h>>24,h>>16&255,h>>8&255,h&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return O.box(O.types.mp4a,O.audioStsd(e),O.box(O.types.esds,O.esds(e)))}static mp3(e){return O.box(O.types[".mp3"],O.audioStsd(e))}static ac3(e){return O.box(O.types["ac-3"],O.audioStsd(e),O.box(O.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?O.box(O.types.stsd,O.STSD,O.mp3(e)):e.segmentCodec==="ac3"?O.box(O.types.stsd,O.STSD,O.ac3(e)):O.box(O.types.stsd,O.STSD,O.mp4a(e)):O.box(O.types.stsd,O.STSD,O.avc1(e))}static tkhd(e){const t=e.id,i=e.duration*e.timescale,r=e.width,n=e.height,o=Math.floor(i/(xi+1)),a=Math.floor(i%(xi+1));return O.box(O.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255,a>>24,a>>16&255,a>>8&255,a&255,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,r>>8&255,r&255,0,0,n>>8&255,n&255,0,0]))}static traf(e,t){const i=O.sdtp(e),r=e.id,n=Math.floor(t/(xi+1)),o=Math.floor(t%(xi+1));return O.box(O.types.traf,O.box(O.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),O.box(O.types.tfdt,new Uint8Array([1,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,o>>24,o>>16&255,o>>8&255,o&255])),O.trun(e,i.length+16+20+8+16+8+8),i)}static trak(e){return e.duration=e.duration||4294967295,O.box(O.types.trak,O.tkhd(e),O.mdia(e))}static trex(e){const t=e.id;return O.box(O.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const i=e.samples||[],r=i.length,n=12+16*r,o=new Uint8Array(n);let a,A,l,c,h,u;for(t+=8+n,o.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),a=0;a<r;a++)A=i[a],l=A.duration,c=A.size,h=A.flags,u=A.cts,o.set([l>>>24&255,l>>>16&255,l>>>8&255,l&255,c>>>24&255,c>>>16&255,c>>>8&255,c&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&61440,h.degradPrio&15,u>>>24&255,u>>>16&255,u>>>8&255,u&255],12+16*a);return O.box(O.types.trun,o)}static initSegment(e){O.types||O.init();const t=O.moov(e);return Tt(O.FTYP,t)}}O.types=void 0,O.HDLR_TYPES=void 0,O.STTS=void 0,O.STSC=void 0,O.STCO=void 0,O.STSZ=void 0,O.VMHD=void 0,O.SMHD=void 0,O.STSD=void 0,O.FTYP=void 0,O.DINF=void 0;const Gc=9e4;function ea(s,e,t=1,i=!1){const r=s*e*t;return i?Math.round(r):r}function Tp(s,e,t=1,i=!1){return ea(s,e,1/t,i)}function rr(s,e=!1){return ea(s,1e3,1/Gc,e)}function Lp(s,e=1){return ea(s,Gc,1/e)}const _p=10*1e3,Hc=1024,kp=1152,Fp=1536;let Es=null,ta=null;class pn{constructor(e,t,i,r=""){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,Es===null){const o=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Es=o?parseInt(o[1]):0}if(ta===null){const n=navigator.userAgent.match(/Safari\/(\d+)/i);ta=n?parseInt(n[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){N.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){N.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){N.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const i=e.reduce((r,n)=>{const o=n.pts-r;return o<-4294967296?(t=!0,Lt(r,n.pts)):o>0?r:n.pts},e[0].pts);return t&&N.debug("PTS rollover detected"),i}remux(e,t,i,r,n,o,a,A){let l,c,h,u,d,g,f=n,p=n;const y=e.pid>-1,v=t.pid>-1,S=t.samples.length,C=e.samples.length>0,Q=a&&S>0||S>1;if((!y||C)&&(!v||Q)||this.ISGenerated||a){if(this.ISGenerated){var _,D,G,F;const J=this.videoTrackConfig;J&&(t.width!==J.width||t.height!==J.height||((_=t.pixelRatio)==null?void 0:_[0])!==((D=J.pixelRatio)==null?void 0:D[0])||((G=t.pixelRatio)==null?void 0:G[1])!==((F=J.pixelRatio)==null?void 0:F[1]))&&this.resetInitSegment()}else h=this.generateIS(e,t,n,o);const H=this.isVideoContiguous;let j=-1,V;if(Q&&(j=Np(t.samples),!H&&this.config.forceKeyFrameOnDiscontinuity))if(g=!0,j>0){N.warn(`[mp4-remuxer]: Dropped ${j} out of ${S} video samples due to a missing keyframe`);const J=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(j),t.dropped+=j,p+=(t.samples[0].pts-J)/t.inputTimeScale,V=p}else j===-1&&(N.warn(`[mp4-remuxer]: No keyframe found out of ${S} video samples`),g=!1);if(this.ISGenerated){if(C&&Q){const J=this.getVideoStartPts(t.samples),R=(Lt(e.samples[0].pts,J)-J)/t.inputTimeScale;f+=Math.max(0,R),p+=Math.max(0,-R)}if(C){if(e.samplerate||(N.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(e,t,n,o)),c=this.remuxAudio(e,f,this.isAudioContiguous,o,v||Q||A===fe.AUDIO?p:void 0),Q){const J=c?c.endPTS-c.startPTS:0;t.inputTimeScale||(N.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(e,t,n,o)),l=this.remuxVideo(t,p,H,J)}}else Q&&(l=this.remuxVideo(t,p,H,0));l&&(l.firstKeyFrame=j,l.independent=j!==-1,l.firstKeyFramePTS=V)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(i.samples.length&&(d=$c(i,n,this._initPTS,this._initDTS)),r.samples.length&&(u=Yc(r,n,this._initPTS))),{audio:c,video:l,initSegment:h,independent:g,text:u,id3:d}}generateIS(e,t,i,r){const n=e.samples,o=t.samples,a=this.typeSupported,A={},l=this._initPTS;let c=!l||r,h="audio/mp4",u,d,g;if(c&&(u=d=1/0),e.config&&n.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":a.mpeg?(h="audio/mpeg",e.codec=""):a.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}A.audio={id:"audio",container:h,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&a.mpeg?new Uint8Array(0):O.initSegment([e]),metadata:{channelCount:e.channelCount}},c&&(g=e.inputTimeScale,!l||g!==l.timescale?u=d=n[0].pts-Math.round(g*i):c=!1)}if(t.sps&&t.pps&&o.length){if(t.timescale=t.inputTimeScale,A.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:O.initSegment([t]),metadata:{width:t.width,height:t.height}},c)if(g=t.inputTimeScale,!l||g!==l.timescale){const f=this.getVideoStartPts(o),p=Math.round(g*i);d=Math.min(d,Lt(o[0].dts,f)-p),u=Math.min(u,f-p)}else c=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(A).length)return this.ISGenerated=!0,c?(this._initPTS={baseTime:u,timescale:g},this._initDTS={baseTime:d,timescale:g}):u=g=void 0,{tracks:A,initPTS:u,timescale:g}}remuxVideo(e,t,i,r){const n=e.inputTimeScale,o=e.samples,a=[],A=o.length,l=this._initPTS;let c=this.nextAvcDts,h=8,u=this.videoSampleDuration,d,g,f=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY,y=!1;if(!i||c===null){const w=t*n,T=o[0].pts-Lt(o[0].dts,o[0].pts);Es&&c!==null&&Math.abs(w-T-c)<15e3?i=!0:c=w-T}const v=l.baseTime*n/l.timescale;for(let w=0;w<A;w++){const T=o[w];T.pts=Lt(T.pts-v,c),T.dts=Lt(T.dts-v,c),T.dts<o[w>0?w-1:w].dts&&(y=!0)}y&&o.sort(function(w,T){const K=w.dts-T.dts,M=w.pts-T.pts;return K||M}),d=o[0].dts,g=o[o.length-1].dts;const S=g-d,C=S?Math.round(S/(A-1)):u||e.inputTimeScale/30;if(i){const w=d-c,T=w>C,K=w<-1;if((T||K)&&(T?N.warn(`AVC: ${rr(w,!0)} ms (${w}dts) hole between fragments detected at ${t.toFixed(3)}`):N.warn(`AVC: ${rr(-w,!0)} ms (${w}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!K||c>=o[0].pts||Es)){d=c;const M=o[0].pts-w;if(T)o[0].dts=d,o[0].pts=M;else for(let q=0;q<o.length&&!(o[q].dts>M);q++)o[q].dts-=w,o[q].pts-=w;N.log(`Video: Initial PTS/DTS adjusted: ${rr(M,!0)}/${rr(d,!0)}, delta: ${rr(w,!0)} ms`)}}d=Math.max(0,d);let Q=0,B=0,_=d;for(let w=0;w<A;w++){const T=o[w],K=T.units,M=K.length;let q=0;for(let ie=0;ie<M;ie++)q+=K[ie].data.length;B+=q,Q+=M,T.length=q,T.dts<_?(T.dts=_,_+=C/4|0||1):_=T.dts,f=Math.min(T.pts,f),p=Math.max(T.pts,p)}g=o[A-1].dts;const D=B+4*Q+8;let G;try{G=new Uint8Array(D)}catch(w){this.observer.emit(E.ERROR,E.ERROR,{type:pe.MUX_ERROR,details:$.REMUX_ALLOC_ERROR,fatal:!1,error:w,bytes:D,reason:`fail allocating video mdat ${D}`});return}const F=new DataView(G.buffer);F.setUint32(0,D),G.set(O.types.mdat,4);let H=!1,j=Number.POSITIVE_INFINITY,V=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,b=Number.NEGATIVE_INFINITY;for(let w=0;w<A;w++){const T=o[w],K=T.units;let M=0;for(let ce=0,Ae=K.length;ce<Ae;ce++){const me=K[ce],Be=me.data,xe=me.data.byteLength;F.setUint32(h,xe),h+=4,G.set(Be,h),h+=xe,M+=4+xe}let q;if(w<A-1)u=o[w+1].dts-T.dts,q=o[w+1].pts-T.pts;else{const ce=this.config,Ae=w>0?T.dts-o[w-1].dts:C;if(q=w>0?T.pts-o[w-1].pts:C,ce.stretchShortVideoTrack&&this.nextAudioPts!==null){const me=Math.floor(ce.maxBufferHole*n),Be=(r?f+r*n:this.nextAudioPts)-T.pts;Be>me?(u=Be-Ae,u<0?u=Ae:H=!0,N.log(`[mp4-remuxer]: It is approximately ${Be/90} ms to the next segment; using duration ${u/90} ms for the last video frame.`)):u=Ae}else u=Ae}const ie=Math.round(T.pts-T.dts);j=Math.min(j,u),J=Math.max(J,u),V=Math.min(V,q),b=Math.max(b,q),a.push(new Kc(T.key,u,M,ie))}if(a.length){if(Es){if(Es<70){const w=a[0].flags;w.dependsOn=2,w.isNonSync=0}}else if(ta&&b-V<J-j&&C/J<.025&&a[0].cts===0){N.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let w=d;for(let T=0,K=a.length;T<K;T++){const M=w+a[T].duration,q=w+a[T].cts;if(T<K-1){const ie=M+a[T+1].cts;a[T].duration=ie-q}else a[T].duration=T?a[T-1].duration:C;a[T].cts=0,w=M}}}u=H||!u?C:u,this.nextAvcDts=c=g+u,this.videoSampleDuration=u,this.isVideoContiguous=!0;const x={data1:O.moof(e.sequenceNumber++,d,Ze({},e,{samples:a})),data2:G,startPTS:f/n,endPTS:(p+u)/n,startDTS:d/n,endDTS:c/n,type:"video",hasAudio:!1,hasVideo:!0,nb:a.length,dropped:e.dropped};return e.samples=[],e.dropped=0,x}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return kp;case"ac3":return Fp;default:return Hc}}remuxAudio(e,t,i,r,n){const o=e.inputTimeScale,a=e.samplerate?e.samplerate:o,A=o/a,l=this.getSamplesPerFrame(e),c=l*A,h=this._initPTS,u=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,d=[],g=n!==void 0;let f=e.samples,p=u?0:8,y=this.nextAudioPts||-1;const v=t*o,S=h.baseTime*o/h.timescale;if(this.isAudioContiguous=i=i||f.length&&y>0&&(r&&Math.abs(v-y)<9e3||Math.abs(Lt(f[0].pts-S,v)-y)<20*c),f.forEach(function(R){R.pts=Lt(R.pts-S,v)}),!i||y<0){if(f=f.filter(R=>R.pts>=0),!f.length)return;n===0?y=0:r&&!g?y=Math.max(0,v):y=f[0].pts}if(e.segmentCodec==="aac"){const R=this.config.maxAudioFramesDrift;for(let U=0,x=y;U<f.length;U++){const w=f[U],T=w.pts,K=T-x,M=Math.abs(1e3*K/o);if(K<=-R*c&&g)U===0&&(N.warn(`Audio frame @ ${(T/o).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*K/o)} ms.`),this.nextAudioPts=y=x=T);else if(K>=R*c&&M<_p&&g){let q=Math.round(K/c);x=T-q*c,x<0&&(q--,x+=c),U===0&&(this.nextAudioPts=y=x),N.warn(`[mp4-remuxer]: Injecting ${q} audio frame @ ${(x/o).toFixed(3)}s due to ${Math.round(1e3*K/o)} ms gap.`);for(let ie=0;ie<q;ie++){const ce=Math.max(x,0);let Ae=Uc.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);Ae||(N.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Ae=w.unit.subarray()),f.splice(U,0,{unit:Ae,pts:ce}),x+=c,U++}}w.pts=x,x+=c}}let C=null,Q=null,B,_=0,D=f.length;for(;D--;)_+=f[D].unit.byteLength;for(let R=0,U=f.length;R<U;R++){const x=f[R],w=x.unit;let T=x.pts;if(Q!==null){const M=d[R-1];M.duration=Math.round((T-Q)/A)}else if(i&&e.segmentCodec==="aac"&&(T=y),C=T,_>0){_+=p;try{B=new Uint8Array(_)}catch(M){this.observer.emit(E.ERROR,E.ERROR,{type:pe.MUX_ERROR,details:$.REMUX_ALLOC_ERROR,fatal:!1,error:M,bytes:_,reason:`fail allocating audio mdat ${_}`});return}u||(new DataView(B.buffer).setUint32(0,_),B.set(O.types.mdat,4))}else return;B.set(w,p);const K=w.byteLength;p+=K,d.push(new Kc(!0,l,K,0)),Q=T}const G=d.length;if(!G)return;const F=d[d.length-1];this.nextAudioPts=y=Q+A*F.duration;const H=u?new Uint8Array(0):O.moof(e.sequenceNumber++,C/A,Ze({},e,{samples:d}));e.samples=[];const j=C/o,V=y/o,b={data1:H,data2:B,startPTS:j,endPTS:V,startDTS:j,endDTS:V,type:"audio",hasAudio:!0,hasVideo:!1,nb:G};return this.isAudioContiguous=!0,b}remuxEmptyAudio(e,t,i,r){const n=e.inputTimeScale,o=e.samplerate?e.samplerate:n,a=n/o,A=this.nextAudioPts,l=this._initDTS,c=l.baseTime*9e4/l.timescale,h=(A!==null?A:r.startDTS*n)+c,u=r.endDTS*n+c,d=a*Hc,g=Math.ceil((u-h)/d),f=Uc.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(N.warn("[mp4-remuxer]: remux empty Audio"),!f){N.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const p=[];for(let y=0;y<g;y++){const v=h+y*d;p.push({unit:f,pts:v,dts:v})}return e.samples=p,this.remuxAudio(e,t,i,!1)}}function Lt(s,e){let t;if(e===null)return s;for(e<s?t=-8589934592:t=8589934592;Math.abs(s-e)>4294967296;)s+=t;return s}function Np(s){for(let e=0;e<s.length;e++)if(s[e].key)return e;return-1}function $c(s,e,t,i){const r=s.samples.length;if(!r)return;const n=s.inputTimeScale;for(let a=0;a<r;a++){const A=s.samples[a];A.pts=Lt(A.pts-t.baseTime*n/t.timescale,e*n)/n,A.dts=Lt(A.dts-i.baseTime*n/i.timescale,e*n)/n}const o=s.samples;return s.samples=[],{samples:o}}function Yc(s,e,t){const i=s.samples.length;if(!i)return;const r=s.inputTimeScale;for(let o=0;o<i;o++){const a=s.samples[o];a.pts=Lt(a.pts-t.baseTime*r/t.timescale,e*r)/r}s.samples.sort((o,a)=>o.pts-a.pts);const n=s.samples;return s.samples=[],{samples:n}}class Kc{constructor(e,t,i,r){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=i,this.cts=r,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class Mp{constructor(){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}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,i,r){this.audioCodec=t,this.videoCodec=i,this.generateInitSegment(Kf(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:i}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const r=this.initData=Pl(e);r.audio&&(t=Vc(r.audio,Fe.AUDIO)),r.video&&(i=Vc(r.video,Fe.VIDEO));const n={};r.audio&&r.video?n.audiovideo={container:"video/mp4",codec:t+","+i,initSegment:e,id:"main"}:r.audio?n.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?n.video={container:"video/mp4",codec:i,initSegment:e,id:"main"}:N.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=n}remux(e,t,i,r,n,o){var a,A;let{initPTS:l,lastEndTime:c}=this;const h={audio:void 0,video:void 0,text:r,id3:i,initSegment:void 0};oe(c)||(c=this.lastEndTime=n||0);const u=t.samples;if(!(u!=null&&u.length))return h;const d={initPTS:void 0,timescale:1};let g=this.initData;if((a=g)!=null&&a.length||(this.generateInitSegment(u),g=this.initData),!((A=g)!=null&&A.length))return N.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),h;this.emitInitSegment&&(d.tracks=this.initTracks,this.emitInitSegment=!1);const f=Jf(u,g),p=Vf(g,u),y=p===null?n:p;(Op(l,y,n,f)||d.timescale!==l.timescale&&o)&&(d.initPTS=y-n,l&&l.timescale===1&&N.warn(`Adjusting initPTS by ${d.initPTS-l.baseTime}`),this.initPTS=l={baseTime:d.initPTS,timescale:1});const v=e?y-l.baseTime/l.timescale:c,S=v+f;qf(g,u,l.baseTime/l.timescale),f>0?this.lastEndTime=S:(N.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const C=!!g.audio,Q=!!g.video;let B="";C&&(B+="audio"),Q&&(B+="video");const _={data1:u,startPTS:v,startDTS:v,endPTS:S,endDTS:S,type:B,hasAudio:C,hasVideo:Q,nb:1,dropped:0};return h.audio=_.type==="audio"?_:void 0,h.video=_.type!=="audio"?_:void 0,h.initSegment=d,h.id3=$c(i,n,l,l),r.samples.length&&(h.text=Yc(r,n,l)),h}}function Op(s,e,t,i){if(s===null)return!0;const r=Math.max(i,1),n=e-s.baseTime/s.timescale;return Math.abs(n-t)>r}function Vc(s,e){const t=s==null?void 0:s.codec;if(t&&t.length>4)return t;if(e===Fe.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return sn(t,!1);const i="mp4a.40.5";return N.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${i}"`),i}return N.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let Ei;try{Ei=self.performance.now.bind(self.performance)}catch{N.debug("Unable to use Performance API on this environment"),Ei=As==null?void 0:As.Date.now}const En=[{demux:Bp,remux:Mp},{demux:Ri,remux:pn},{demux:yp,remux:pn},{demux:Dp,remux:pn}];En.splice(2,0,{demux:Qp,remux:pn});class Jc{constructor(e,t,i,r,n){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=r,this.id=n}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,i,r){const n=i.transmuxing;n.executeStart=Ei();let o=new Uint8Array(e);const{currentTransmuxState:a,transmuxConfig:A}=this;r&&(this.currentTransmuxState=r);const{contiguous:l,discontinuity:c,trackSwitch:h,accurateTimeOffset:u,timeOffset:d,initSegmentChange:g}=r||a,{audioCodec:f,videoCodec:p,defaultInitPts:y,duration:v,initSegmentData:S}=A,C=Pp(o,t);if(C&&C.method==="AES-128"){const D=this.getDecrypter();if(D.isSync()){let G=D.softwareDecrypt(o,C.key.buffer,C.iv.buffer);if(i.part>-1&&(G=D.flush()),!G)return n.executeEnd=Ei(),ia(i);o=new Uint8Array(G)}else return this.decryptionPromise=D.webCryptoDecrypt(o,C.key.buffer,C.iv.buffer).then(G=>{const F=this.push(G,null,i);return this.decryptionPromise=null,F}),this.decryptionPromise}const Q=this.needsProbing(c,h);if(Q){const D=this.configureTransmuxer(o);if(D)return N.warn(`[transmuxer] ${D.message}`),this.observer.emit(E.ERROR,E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!1,error:D,reason:D.message}),n.executeEnd=Ei(),ia(i)}(c||h||g||Q)&&this.resetInitSegment(S,f,p,v,t),(c||g||Q)&&this.resetInitialTimestamp(y),l||this.resetContiguity();const B=this.transmux(o,C,d,u,i),_=this.currentTransmuxState;return _.contiguous=!0,_.discontinuity=!1,_.trackSwitch=!1,n.executeEnd=Ei(),B}flush(e){const t=e.transmuxing;t.executeStart=Ei();const{decrypter:i,currentTransmuxState:r,decryptionPromise:n}=this;if(n)return n.then(()=>this.flush(e));const o=[],{timeOffset:a}=r;if(i){const h=i.flush();h&&o.push(this.push(h,null,e))}const{demuxer:A,remuxer:l}=this;if(!A||!l)return t.executeEnd=Ei(),[ia(e)];const c=A.flush(a);return In(c)?c.then(h=>(this.flushRemux(o,h,e),o)):(this.flushRemux(o,c,e),o)}flushRemux(e,t,i){const{audioTrack:r,videoTrack:n,id3Track:o,textTrack:a}=t,{accurateTimeOffset:A,timeOffset:l}=this.currentTransmuxState;N.log(`[transmuxer.ts]: Flushed fragment ${i.sn}${i.part>-1?" p: "+i.part:""} of level ${i.level}`);const c=this.remuxer.remux(r,n,o,a,l,A,!0,this.id);e.push({remuxResult:c,chunkMeta:i}),i.transmuxing.executeEnd=Ei()}resetInitialTimestamp(e){const{demuxer:t,remuxer:i}=this;!t||!i||(t.resetTimeStamp(e),i.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,i,r,n){const{demuxer:o,remuxer:a}=this;!o||!a||(o.resetInitSegment(e,t,i,r),a.resetInitSegment(e,t,i,n))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,i,r,n){let o;return t&&t.method==="SAMPLE-AES"?o=this.transmuxSampleAes(e,t,i,r,n):o=this.transmuxUnencrypted(e,i,r,n),o}transmuxUnencrypted(e,t,i,r){const{audioTrack:n,videoTrack:o,id3Track:a,textTrack:A}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(n,o,a,A,t,i,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,i,r,n){return this.demuxer.demuxSampleAes(e,t,i).then(o=>({remuxResult:this.remuxer.remux(o.audioTrack,o.videoTrack,o.id3Track,o.textTrack,i,r,!1,this.id),chunkMeta:n}))}configureTransmuxer(e){const{config:t,observer:i,typeSupported:r,vendor:n}=this;let o;for(let u=0,d=En.length;u<d;u++){var a;if((a=En[u].demux)!=null&&a.probe(e)){o=En[u];break}}if(!o)return new Error("Failed to find demuxer by probing fragment data");const A=this.demuxer,l=this.remuxer,c=o.remux,h=o.demux;(!l||!(l instanceof c))&&(this.remuxer=new c(i,t,r,n)),(!A||!(A instanceof h))&&(this.demuxer=new h(i,t,r),this.probe=h.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Jo(this.config)),e}}function Pp(s,e){let t=null;return s.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const ia=s=>({remuxResult:{},chunkMeta:s});function In(s){return"then"in s&&s.then instanceof Function}class Up{constructor(e,t,i,r,n){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=i,this.duration=r,this.defaultInitPts=n||null}}class Gp{constructor(e,t,i,r,n,o){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=e,this.contiguous=t,this.accurateTimeOffset=i,this.trackSwitch=r,this.timeOffset=n,this.initSegmentChange=o}}var Wc={exports:{}};(function(s){var e=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function r(A,l,c){this.fn=A,this.context=l,this.once=c||!1}function n(A,l,c,h,u){if(typeof c!="function")throw new TypeError("The listener must be a function");var d=new r(c,h||A,u),g=t?t+l:l;return A._events[g]?A._events[g].fn?A._events[g]=[A._events[g],d]:A._events[g].push(d):(A._events[g]=d,A._eventsCount++),A}function o(A,l){--A._eventsCount===0?A._events=new i:delete A._events[l]}function a(){this._events=new i,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],c,h;if(this._eventsCount===0)return l;for(h in c=this._events)e.call(c,h)&&l.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},a.prototype.listeners=function(l){var c=t?t+l:l,h=this._events[c];if(!h)return[];if(h.fn)return[h.fn];for(var u=0,d=h.length,g=new Array(d);u<d;u++)g[u]=h[u].fn;return g},a.prototype.listenerCount=function(l){var c=t?t+l:l,h=this._events[c];return h?h.fn?1:h.length:0},a.prototype.emit=function(l,c,h,u,d,g){var f=t?t+l:l;if(!this._events[f])return!1;var p=this._events[f],y=arguments.length,v,S;if(p.fn){switch(p.once&&this.removeListener(l,p.fn,void 0,!0),y){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,c),!0;case 3:return p.fn.call(p.context,c,h),!0;case 4:return p.fn.call(p.context,c,h,u),!0;case 5:return p.fn.call(p.context,c,h,u,d),!0;case 6:return p.fn.call(p.context,c,h,u,d,g),!0}for(S=1,v=new Array(y-1);S<y;S++)v[S-1]=arguments[S];p.fn.apply(p.context,v)}else{var C=p.length,Q;for(S=0;S<C;S++)switch(p[S].once&&this.removeListener(l,p[S].fn,void 0,!0),y){case 1:p[S].fn.call(p[S].context);break;case 2:p[S].fn.call(p[S].context,c);break;case 3:p[S].fn.call(p[S].context,c,h);break;case 4:p[S].fn.call(p[S].context,c,h,u);break;default:if(!v)for(Q=1,v=new Array(y-1);Q<y;Q++)v[Q-1]=arguments[Q];p[S].fn.apply(p[S].context,v)}}return!0},a.prototype.on=function(l,c,h){return n(this,l,c,h,!1)},a.prototype.once=function(l,c,h){return n(this,l,c,h,!0)},a.prototype.removeListener=function(l,c,h,u){var d=t?t+l:l;if(!this._events[d])return this;if(!c)return o(this,d),this;var g=this._events[d];if(g.fn)g.fn===c&&(!u||g.once)&&(!h||g.context===h)&&o(this,d);else{for(var f=0,p=[],y=g.length;f<y;f++)(g[f].fn!==c||u&&!g[f].once||h&&g[f].context!==h)&&p.push(g[f]);p.length?this._events[d]=p.length===1?p[0]:p:o(this,d)}return this},a.prototype.removeAllListeners=function(l){var c;return l?(c=t?t+l:l,this._events[c]&&o(this,c)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=t,a.EventEmitter=a,s.exports=a})(Wc);var Hp=Wc.exports,sa=uf(Hp);class qc{constructor(e,t,i,r){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;const n=e.config;this.hls=e,this.id=t,this.useWorker=!!n.enableWorker,this.onTransmuxComplete=i,this.onFlush=r;const o=(c,h)=>{h=h||{},h.frag=this.frag,h.id=this.id,c===E.ERROR&&(this.error=h.error),this.hls.trigger(c,h)};this.observer=new sa,this.observer.on(E.FRAG_DECRYPTED,o),this.observer.on(E.ERROR,o);const a=ls(n.preferManagedMediaSource)||{isTypeSupported:()=>!1},A={mpeg:a.isTypeSupported("audio/mpeg"),mp3:a.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:a.isTypeSupported('audio/mp4; codecs="ac-3"')},l=navigator.vendor;if(this.useWorker&&typeof Worker<"u"&&(n.workerPath||ap())){try{n.workerPath?(N.log(`loading Web Worker ${n.workerPath} for "${t}"`),this.workerContext=lp(n.workerPath)):(N.log(`injecting Web Worker for "${t}"`),this.workerContext=Ap()),this.onwmsg=u=>this.onWorkerMessage(u);const{worker:h}=this.workerContext;h.addEventListener("message",this.onwmsg),h.onerror=u=>{const d=new Error(`${u.message} (${u.filename}:${u.lineno})`);n.enableWorker=!1,N.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(E.ERROR,{type:pe.OTHER_ERROR,details:$.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:d})},h.postMessage({cmd:"init",typeSupported:A,vendor:l,id:t,config:JSON.stringify(n)})}catch(h){N.warn(`Error setting up "${t}" Web Worker, fallback to inline`,h),this.resetWorker(),this.error=null,this.transmuxer=new Jc(this.observer,A,n,l,t)}return}this.transmuxer=new Jc(this.observer,A,n,l,t)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:t}=this.workerContext;t&&self.URL.revokeObjectURL(t),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,t,i,r,n,o,a,A,l,c){var h,u;l.transmuxing.start=self.performance.now();const{transmuxer:d}=this,g=o?o.start:n.start,f=n.decryptdata,p=this.frag,y=!(p&&n.cc===p.cc),v=!(p&&l.level===p.level),S=p?l.sn-p.sn:-1,C=this.part?l.part-this.part.index:-1,Q=S===0&&l.id>1&&l.id===(p==null?void 0:p.stats.chunkCount),B=!v&&(S===1||S===0&&(C===1||Q&&C<=0)),_=self.performance.now();(v||S||n.stats.parsing.start===0)&&(n.stats.parsing.start=_),o&&(C||!B)&&(o.stats.parsing.start=_);const D=!(p&&((h=n.initSegment)==null?void 0:h.url)===((u=p.initSegment)==null?void 0:u.url)),G=new Gp(y,B,A,v,g,D);if(!B||y||D){N.log(`[transmuxer-interface, ${n.type}]: Starting new transmux session for sn: ${l.sn} p: ${l.part} level: ${l.level} id: ${l.id}
164
+ Switching to level ${H} @ ${j|0} bps`),r.trigger(E.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:i,stats:A})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(N.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new k0(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(E.MANIFEST_LOADING,this.onManifestLoading,this),e.on(E.FRAG_LOADING,this.onFragLoading,this),e.on(E.FRAG_LOADED,this.onFragLoaded,this),e.on(E.FRAG_BUFFERED,this.onFragBuffered,this),e.on(E.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(E.LEVEL_LOADED,this.onLevelLoaded,this),e.on(E.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(E.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(E.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(E.MANIFEST_LOADING,this.onManifestLoading,this),e.off(E.FRAG_LOADING,this.onFragLoading,this),e.off(E.FRAG_LOADED,this.onFragLoaded,this),e.off(E.FRAG_BUFFERED,this.onFragBuffered,this),e.off(E.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(E.LEVEL_LOADED,this.onLevelLoaded,this),e.off(E.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(E.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(E.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const i=t.frag;if(!this.ignoreFragment(i)){if(!i.bitrateTest){var r;this.fragCurrent=i,this.partCurrent=(r=t.part)!=null?r:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case $.BUFFER_ADD_CODEC_ERROR:case $.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case $.FRAG_LOAD_TIMEOUT:{const i=t.frag,{fragCurrent:r,partCurrent:n}=this;if(i&&r&&i.sn===r.sn&&i.level===r.level){const o=performance.now(),a=n?n.stats:i.stats,A=o-a.loading.start,l=a.loading.first?a.loading.first-a.loading.start:-1;if(a.loaded&&l>-1){const h=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(A-Math.min(h,l),a.loaded)}else this.bwEstimator.sampleTTFB(A)}break}}}getTimeToLoadFrag(e,t,i,r){const n=e+i/t,o=r?this.lastLevelLoadSec:0;return n+o}onLevelLoaded(e,t){const i=this.hls.config,{loading:r}=t.stats,n=r.end-r.start;oe(n)&&(this.lastLevelLoadSec=n/1e3),t.details.live?this.bwEstimator.update(i.abrEwmaSlowLive,i.abrEwmaFastLive):this.bwEstimator.update(i.abrEwmaSlowVoD,i.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:i}){const r=i?i.stats:t.stats;if(t.type===fe.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const n=i?i.duration:t.duration,o=this.hls.levels[t.level],a=(o.loaded?o.loaded.bytes:0)+r.loaded,A=(o.loaded?o.loaded.duration:0)+n;o.loaded={bytes:a,duration:A},o.realBitrate=Math.round(8*a/A)}if(t.bitrateTest){const n={stats:r,frag:t,part:i,id:t.type};this.onFragBuffered(E.FRAG_BUFFERED,n),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:i,part:r}=t,n=r!=null&&r.stats.loaded?r.stats:i.stats;if(n.aborted||this.ignoreFragment(i))return;const o=n.parsing.end-n.loading.start-Math.min(n.loading.first-n.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(o,n.loaded),n.bwEstimate=this.getBwEstimate(),i.bitrateTest?this.bitrateTestDelay=o/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==fe.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,i=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,n=this.findBestLevel(i,t,e,0,r,1,1);if(n>-1)return n;const o=this.hls.firstLevel,a=Math.min(Math.max(o,t),e);return N.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${o} clamped to ${a}`),a}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,i=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!i||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const n=i&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const o=this.hls.levels;if(o.length>Math.max(e,n)&&o[e].loadError<=o[n].loadError)return e}return this._nextAutoLevel=n,this.nextAutoLevelKey=this.getAutoLevelKey(),n}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:i}=this,{maxAutoLevel:r,config:n,minAutoLevel:o}=i,a=t?t.duration:e?e.duration:0,A=this.getBwEstimate(),l=this.getStarvationDelay();let c=n.abrBandWidthFactor,h=n.abrBandWidthUpFactor;if(l){const p=this.findBestLevel(A,o,r,l,0,c,h);if(p>=0)return p}let u=a?Math.min(a,n.maxStarvationDelay):n.maxStarvationDelay;if(!l){const p=this.bitrateTestDelay;p&&(u=(a?Math.min(a,n.maxLoadingDelay):n.maxLoadingDelay)-p,N.info(`[abr] bitrate test took ${Math.round(1e3*p)}ms, set first fragment max fetchDuration to ${Math.round(1e3*u)} ms`),c=h=1)}const d=this.findBestLevel(A,o,r,l,u,c,h);if(N.info(`[abr] ${l?"rebuffering expected":"buffer is empty"}, optimal quality level ${d}`),d>-1)return d;const g=i.levels[o],f=i.levels[i.loadLevel];return(g==null?void 0:g.bitrate)<(f==null?void 0:f.bitrate)?o:i.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const i=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/i}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,i,r,n,o,a){var A;const l=r+n,c=this.lastLoadedFragLevel,h=c===-1?this.hls.firstLevel:c,{fragCurrent:u,partCurrent:d}=this,{levels:g,allAudioTracks:f,loadLevel:p,config:y}=this.hls;if(g.length===1)return 0;const v=g[h],S=!!(v!=null&&(A=v.details)!=null&&A.live),C=p===-1||c===-1;let Q,B="SDR",_=(v==null?void 0:v.frameRate)||0;const{audioPreference:D,videoPreference:G}=y,F=this.audioTracksByGroup||(this.audioTracksByGroup=G0(f));if(C){if(this.firstSelection!==-1)return this.firstSelection;const b=this.codecTiers||(this.codecTiers=H0(g,F,t,i)),R=U0(b,B,e,D,G),{codecSet:U,videoRanges:x,minFramerate:w,minBitrate:T,preferHDR:K}=R;Q=U,B=K?x[x.length-1]:x[0],_=w,e=Math.max(e,T),N.log(`[abr] picked start tier ${JSON.stringify(R)}`)}else Q=v==null?void 0:v.codecSet,B=v==null?void 0:v.videoRange;const H=d?d.duration:u?u.duration:0,j=this.bwEstimator.getEstimateTTFB()/1e3,V=[];for(let b=i;b>=t;b--){var J;const R=g[b],U=b>h;if(!R)continue;if(y.useMediaCapabilities&&!R.supportedResult&&!R.supportedPromise){const ie=navigator.mediaCapabilities;typeof(ie==null?void 0:ie.decodingInfo)=="function"&&F0(R,F,B,_,e,D)?(R.supportedPromise=N0(R,F,ie),R.supportedPromise.then(ce=>{if(!this.hls)return;R.supportedResult=ce;const Ae=this.hls.levels,me=Ae.indexOf(R);ce.error?N.warn(`[abr] MediaCapabilities decodingInfo error: "${ce.error}" for level ${me} ${JSON.stringify(ce)}`):ce.supported||(N.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${me} ${JSON.stringify(ce)}`),me>-1&&Ae.length>1&&(N.log(`[abr] Removing unsupported level ${me}`),this.hls.removeLevel(me)))})):R.supportedResult=mc}if(Q&&R.codecSet!==Q||B&&R.videoRange!==B||U&&_>R.frameRate||!U&&_>0&&_<R.frameRate||R.supportedResult&&!((J=R.supportedResult.decodingInfoResults)!=null&&J[0].smooth)){V.push(b);continue}const x=R.details,w=(d?x==null?void 0:x.partTarget:x==null?void 0:x.averagetargetduration)||H;let T;U?T=a*e:T=o*e;const K=H&&r>=H*2&&n===0?g[b].averageBitrate:g[b].maxBitrate,M=this.getTimeToLoadFrag(j,T,K*w,x===void 0);if(T>=K&&(b===c||R.loadError===0&&R.fragmentError===0)&&(M<=j||!oe(M)||S&&!this.bitrateTestDelay||M<l)){const ie=this.forcedAutoLevel;return b!==p&&(ie===-1||ie!==p)&&(V.length&&N.trace(`[abr] Skipped level(s) ${V.join(",")} of ${i} max with CODECS and VIDEO-RANGE:"${g[V[0]].codecs}" ${g[V[0]].videoRange}; not compatible with "${v.codecs}" ${B}`),N.info(`[abr] switch candidate:${h}->${b} adjustedbw(${Math.round(T)})-bitrate=${Math.round(T-K)} ttfb:${j.toFixed(1)} avgDuration:${w.toFixed(1)} maxFetchDuration:${l.toFixed(1)} fetchDuration:${M.toFixed(1)} firstSelection:${C} codecSet:${Q} videoRange:${B} hls.loadLevel:${p}`)),C&&(this.firstSelection=b),b}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:i}=this.hls,r=Math.min(Math.max(e,i),t);this._nextAutoLevel!==r&&(this.nextAutoLevelKey="",this._nextAutoLevel=r)}}class V0{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}var at={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class J0{constructor(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()}_registerListeners(){const{hls:e}=this;e.on(E.BUFFER_APPENDED,this.onBufferAppended,this),e.on(E.FRAG_BUFFERED,this.onFragBuffered,this),e.on(E.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(E.BUFFER_APPENDED,this.onBufferAppended,this),e.off(E.FRAG_BUFFERED,this.onFragBuffered,this),e.off(E.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const i=this.activePartLists[t];if(i)for(let r=i.length;r--;){const n=i[r];if(!n)break;const o=n.end;if(n.start<=e&&o!==null&&e<=o)return n}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){const{fragments:i}=this,r=Object.keys(i);for(let n=r.length;n--;){const o=i[r[n]];if((o==null?void 0:o.body.type)===t&&o.buffered){const a=o.body;if(a.start<=e&&e<=a.end)return a}}return null}detectEvictedFragments(e,t,i,r){this.timeRanges&&(this.timeRanges[e]=t);const n=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(o=>{const a=this.fragments[o];if(!a||n>=a.body.sn)return;if(!a.buffered&&!a.loaded){a.body.type===i&&this.removeFragment(a.body);return}const A=a.range[e];A&&A.time.some(l=>{const c=!this.isTimeBuffered(l.startPTS,l.endPTS,t);return c&&this.removeFragment(a.body),c})})}detectPartialFragments(e){const t=this.timeRanges,{frag:i,part:r}=e;if(!t||i.sn==="initSegment")return;const n=fs(i),o=this.fragments[n];if(!o||o.buffered&&i.gap)return;const a=!i.relurl;Object.keys(t).forEach(A=>{const l=i.elementaryStreams[A];if(!l)return;const c=t[A],h=a||l.partial===!0;o.range[A]=this.getBufferedTimes(i,r,h,c)}),o.loaded=null,Object.keys(o.range).length?(o.buffered=!0,(o.body.endList=i.endList||o.body.endList)&&(this.endListFragments[o.body.type]=o),cn(o)||this.removeParts(i.sn-1,i.type)):this.removeFragment(o.body)}removeParts(e,t){const i=this.activePartLists[t];i&&(this.activePartLists[t]=i.filter(r=>r.fragment.sn>=e))}fragBuffered(e,t){const i=fs(e);let r=this.fragments[i];!r&&t&&(r=this.fragments[i]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,i,r){const n={time:[],partial:i},o=e.start,a=e.end,A=e.minEndPTS||a,l=e.maxStartPTS||o;for(let c=0;c<r.length;c++){const h=r.start(c)-this.bufferPadding,u=r.end(c)+this.bufferPadding;if(l>=h&&A<=u){n.time.push({startPTS:Math.max(o,r.start(c)),endPTS:Math.min(a,r.end(c))});break}else if(o<u&&a>h){const d=Math.max(o,r.start(c)),g=Math.min(a,r.end(c));g>d&&(n.partial=!0,n.time.push({startPTS:d,endPTS:g}))}else if(a<=h)break}return n}getPartialFragment(e){let t=null,i,r,n,o=0;const{bufferPadding:a,fragments:A}=this;return Object.keys(A).forEach(l=>{const c=A[l];c&&cn(c)&&(r=c.body.start-a,n=c.body.end+a,e>=r&&e<=n&&(i=Math.min(e-r,n-e),o<=i&&(t=c.body,o=i)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||cn(t))}getState(e){const t=fs(e),i=this.fragments[t];return i?i.buffered?cn(i)?at.PARTIAL:at.OK:at.APPENDING:at.NOT_LOADED}isTimeBuffered(e,t,i){let r,n;for(let o=0;o<i.length;o++){if(r=i.start(o)-this.bufferPadding,n=i.end(o)+this.bufferPadding,e>=r&&t<=n)return!0;if(t<=r)return!1}return!1}onFragLoaded(e,t){const{frag:i,part:r}=t;if(i.sn==="initSegment"||i.bitrateTest)return;const n=r?null:t,o=fs(i);this.fragments[o]={body:i,appendedPTS:null,loaded:n,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:i,part:r,timeRanges:n}=t;if(i.sn==="initSegment")return;const o=i.type;if(r){let a=this.activePartLists[o];a||(this.activePartLists[o]=a=[]),a.push(r)}this.timeRanges=n,Object.keys(n).forEach(a=>{const A=n[a];this.detectEvictedFragments(a,A,o,r)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=fs(e);return!!this.fragments[t]}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,i,r,n){r&&!this.hasGaps||Object.keys(this.fragments).forEach(o=>{const a=this.fragments[o];if(!a)return;const A=a.body;A.type!==i||r&&!A.gap||A.start<t&&A.end>e&&(a.buffered||n)&&this.removeFragment(A)})}removeFragment(e){const t=fs(e);e.stats.loaded=0,e.clearElementaryStreamInfo();const i=this.activePartLists[e.type];if(i){const r=e.sn;this.activePartLists[e.type]=i.filter(n=>n.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function cn(s){var e,t,i;return s.buffered&&(s.body.gap||((e=s.range.video)==null?void 0:e.partial)||((t=s.range.audio)==null?void 0:t.partial)||((i=s.range.audiovideo)==null?void 0:i.partial))}function fs(s){return`${s.type}_${s.level}_${s.sn}`}const W0={length:0,start:()=>0,end:()=>0};class He{static isBuffered(e,t){try{if(e){const i=He.getBuffered(e);for(let r=0;r<i.length;r++)if(t>=i.start(r)&&t<=i.end(r))return!0}}catch{}return!1}static bufferInfo(e,t,i){try{if(e){const r=He.getBuffered(e),n=[];let o;for(o=0;o<r.length;o++)n.push({start:r.start(o),end:r.end(o)});return this.bufferedInfo(n,t,i)}}catch{}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,i){t=Math.max(0,t),e.sort(function(l,c){const h=l.start-c.start;return h||c.end-l.end});let r=[];if(i)for(let l=0;l<e.length;l++){const c=r.length;if(c){const h=r[c-1].end;e[l].start-h<i?e[l].end>h&&(r[c-1].end=e[l].end):r.push(e[l])}else r.push(e[l])}else r=e;let n=0,o,a=t,A=t;for(let l=0;l<r.length;l++){const c=r[l].start,h=r[l].end;if(t+i>=c&&t<h)a=c,A=h,n=A-t;else if(t+i<c){o=c;break}}return{len:n,start:a||0,end:A||0,nextStart:o}}static getBuffered(e){try{return e.buffered}catch(t){return N.log("failed to get media.buffered",t),W0}}}class Vo{constructor(e,t,i,r=0,n=-1,o=!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=hn(),this.buffering={audio:hn(),video:hn(),audiovideo:hn()},this.level=e,this.sn=t,this.id=i,this.size=r,this.part=n,this.partial=o}}function hn(){return{start:0,executeStart:0,executeEnd:0,end:0}}function un(s,e){for(let i=0,r=s.length;i<r;i++){var t;if(((t=s[i])==null?void 0:t.cc)===e)return s[i]}return null}function q0(s,e,t){return!!(e&&(t.endCC>t.startCC||s&&s.cc<t.startCC))}function j0(s,e){const t=s.fragments,i=e.fragments;if(!i.length||!t.length){N.log("No fragments to align");return}const r=un(t,i[0].cc);if(!r||r&&!r.startPTS){N.log("No frag in previous level to align on");return}return r}function vc(s,e){if(s){const t=s.start+e;s.start=s.startPTS=t,s.endPTS=t+s.duration}}function Bc(s,e){const t=e.fragments;for(let i=0,r=t.length;i<r;i++)vc(t[i],s);e.fragmentHint&&vc(e.fragmentHint,s),e.alignedSliding=!0}function X0(s,e,t){e&&(z0(s,t,e),!t.alignedSliding&&e&&dn(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&uc(e,t))}function z0(s,e,t){if(q0(s,t,e)){const i=j0(t,e);i&&oe(i.start)&&(N.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),Bc(i.start,e))}}function dn(s,e){if(!s.hasProgramDateTime||!e.hasProgramDateTime)return;const t=s.fragments,i=e.fragments;if(!t.length||!i.length)return;let r,n;const o=Math.min(e.endCC,s.endCC);e.startCC<o&&s.startCC<o&&(r=un(i,o),n=un(t,o)),(!r||!n)&&(r=i[Math.floor(i.length/2)],n=un(t,r.cc)||t[Math.floor(t.length/2)]);const a=r.programDateTime,A=n.programDateTime;if(!a||!A)return;const l=(A-a)/1e3-(n.start-r.start);Bc(l,s)}const Qc=Math.pow(2,17);class Z0{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const i=e.url;if(!i)return Promise.reject(new pi({type:pe.NETWORK_ERROR,details:$.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${i?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,n=r.fLoader,o=r.loader;return new Promise((a,A)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(d=>d[0]==="GAP")){A(bc(e));return}else e.gap=!1;const l=this.loader=e.loader=n?new n(r):new o(r),c=Sc(e),h=Ec(r.fragLoadPolicy.default),u={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Qc};e.stats=l.stats,l.load(c,u,{onSuccess:(d,g,f,p)=>{this.resetLoader(e,l);let y=d.data;f.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(y.slice(0,16)),y=y.slice(16)),a({frag:e,part:null,payload:y,networkDetails:p})},onError:(d,g,f,p)=>{this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:ot({url:i,data:void 0},d),error:new Error(`HTTP Error ${d.code} ${d.text}`),networkDetails:f,stats:p}))},onAbort:(d,g,f)=>{this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:f,stats:d}))},onTimeout:(d,g,f)=>{this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${u.timeout}ms`),networkDetails:f,stats:d}))},onProgress:(d,g,f,p)=>{t&&t({frag:e,part:null,payload:f,networkDetails:p})}})})}loadPart(e,t,i){this.abort();const r=this.config,n=r.fLoader,o=r.loader;return new Promise((a,A)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){A(bc(e,t));return}const l=this.loader=e.loader=n?new n(r):new o(r),c=Sc(e,t),h=Ec(r.fragLoadPolicy.default),u={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Qc};t.stats=l.stats,l.load(c,u,{onSuccess:(d,g,f,p)=>{this.resetLoader(e,l),this.updateStatsFromPart(e,t);const y={frag:e,part:t,payload:d.data,networkDetails:p};i(y),a(y)},onError:(d,g,f,p)=>{this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:ot({url:c.url,data:void 0},d),error:new Error(`HTTP Error ${d.code} ${d.text}`),networkDetails:f,stats:p}))},onAbort:(d,g,f)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:f,stats:d}))},onTimeout:(d,g,f)=>{this.resetLoader(e,l),A(new pi({type:pe.NETWORK_ERROR,details:$.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${u.timeout}ms`),networkDetails:f,stats:d}))}})})}updateStatsFromPart(e,t){const i=e.stats,r=t.stats,n=r.total;if(i.loaded+=r.loaded,n){const A=Math.round(e.duration/t.duration),l=Math.min(Math.round(i.loaded/n),A),h=(A-l)*Math.round(i.loaded/l);i.total=i.loaded+h}else i.total=Math.max(i.loaded,i.total);const o=i.loading,a=r.loading;o.start?o.first+=a.first-a.start:(o.start=a.start,o.first=a.first),o.end=a.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Sc(s,e=null){const t=e||s,i={frag:s,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,n=t.byteRangeEndOffset;if(oe(r)&&oe(n)){var o;let a=r,A=n;if(s.sn==="initSegment"&&((o=s.decryptdata)==null?void 0:o.method)==="AES-128"){const l=n-r;l%16&&(A=n+(16-l%16)),r!==0&&(i.resetIV=!0,a=r-16)}i.rangeStart=a,i.rangeEnd=A}return i}function bc(s,e){const t=new Error(`GAP ${s.gap?"tag":"attribute"} found`),i={type:pe.MEDIA_ERROR,details:$.FRAG_GAP,fatal:!1,frag:s,error:t,networkDetails:null};return e&&(i.part=e),(e||s).stats.aborted=!0,new pi(i)}class pi extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class ep{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class tp{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function ip(s){const e=s.byteLength,t=e&&new DataView(s.buffer).getUint8(e-1);return t?Ki(s,0,e-t):s}class sp{constructor(){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()}uint8ArrayToUint32Array_(e){const t=new DataView(e),i=new Uint32Array(4);for(let r=0;r<4;r++)i[r]=t.getUint32(r*4);return i}initTable(){const e=this.sBox,t=this.invSBox,i=this.subMix,r=i[0],n=i[1],o=i[2],a=i[3],A=this.invSubMix,l=A[0],c=A[1],h=A[2],u=A[3],d=new Uint32Array(256);let g=0,f=0,p=0;for(p=0;p<256;p++)p<128?d[p]=p<<1:d[p]=p<<1^283;for(p=0;p<256;p++){let y=f^f<<1^f<<2^f<<3^f<<4;y=y>>>8^y&255^99,e[g]=y,t[y]=g;const v=d[g],S=d[v],C=d[S];let Q=d[y]*257^y*16843008;r[g]=Q<<24|Q>>>8,n[g]=Q<<16|Q>>>16,o[g]=Q<<8|Q>>>24,a[g]=Q,Q=C*16843009^S*65537^v*257^g*16843008,l[y]=Q<<24|Q>>>8,c[y]=Q<<16|Q>>>16,h[y]=Q<<8|Q>>>24,u[y]=Q,g?(g=v^d[d[d[C^v]]],f^=d[d[f]]):g=f=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let i=!0,r=0;for(;r<t.length&&i;)i=t[r]===this.key[r],r++;if(i)return;this.key=t;const n=this.keySize=t.length;if(n!==4&&n!==6&&n!==8)throw new Error("Invalid aes key size="+n);const o=this.ksRows=(n+6+1)*4;let a,A;const l=this.keySchedule=new Uint32Array(o),c=this.invKeySchedule=new Uint32Array(o),h=this.sBox,u=this.rcon,d=this.invSubMix,g=d[0],f=d[1],p=d[2],y=d[3];let v,S;for(a=0;a<o;a++){if(a<n){v=l[a]=t[a];continue}S=v,a%n===0?(S=S<<8|S>>>24,S=h[S>>>24]<<24|h[S>>>16&255]<<16|h[S>>>8&255]<<8|h[S&255],S^=u[a/n|0]<<24):n>6&&a%n===4&&(S=h[S>>>24]<<24|h[S>>>16&255]<<16|h[S>>>8&255]<<8|h[S&255]),l[a]=v=(l[a-n]^S)>>>0}for(A=0;A<o;A++)a=o-A,A&3?S=l[a]:S=l[a-4],A<4||a<=4?c[A]=S:c[A]=g[h[S>>>24]]^f[h[S>>>16&255]]^p[h[S>>>8&255]]^y[h[S&255]],c[A]=c[A]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,i){const r=this.keySize+6,n=this.invKeySchedule,o=this.invSBox,a=this.invSubMix,A=a[0],l=a[1],c=a[2],h=a[3],u=this.uint8ArrayToUint32Array_(i);let d=u[0],g=u[1],f=u[2],p=u[3];const y=new Int32Array(e),v=new Int32Array(y.length);let S,C,Q,B,_,D,G,F,H,j,V,J,b,R;const U=this.networkToHostOrderSwap;for(;t<y.length;){for(H=U(y[t]),j=U(y[t+1]),V=U(y[t+2]),J=U(y[t+3]),_=H^n[0],D=J^n[1],G=V^n[2],F=j^n[3],b=4,R=1;R<r;R++)S=A[_>>>24]^l[D>>16&255]^c[G>>8&255]^h[F&255]^n[b],C=A[D>>>24]^l[G>>16&255]^c[F>>8&255]^h[_&255]^n[b+1],Q=A[G>>>24]^l[F>>16&255]^c[_>>8&255]^h[D&255]^n[b+2],B=A[F>>>24]^l[_>>16&255]^c[D>>8&255]^h[G&255]^n[b+3],_=S,D=C,G=Q,F=B,b=b+4;S=o[_>>>24]<<24^o[D>>16&255]<<16^o[G>>8&255]<<8^o[F&255]^n[b],C=o[D>>>24]<<24^o[G>>16&255]<<16^o[F>>8&255]<<8^o[_&255]^n[b+1],Q=o[G>>>24]<<24^o[F>>16&255]<<16^o[_>>8&255]<<8^o[D&255]^n[b+2],B=o[F>>>24]<<24^o[_>>16&255]<<16^o[D>>8&255]<<8^o[G&255]^n[b+3],v[t]=U(S^d),v[t+1]=U(B^g),v[t+2]=U(Q^f),v[t+3]=U(C^p),d=H,g=j,f=V,p=J,t=t+4}return v.buffer}}const rp=16;class Jo{constructor(e,{removePKCS7Padding:t=!0}={}){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=t,t)try{const i=self.crypto;i&&(this.subtle=i.subtle||i.webkitSubtle)}catch{}this.subtle===null&&(this.useSoftware=!0)}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const i=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?ip(i):i}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,i){return this.useSoftware?new Promise((r,n)=>{this.softwareDecrypt(new Uint8Array(e),t,i);const o=this.flush();o?r(o.buffer):n(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,i)}softwareDecrypt(e,t,i){const{currentIV:r,currentResult:n,remainderData:o}=this;this.logOnce("JS AES decrypt"),o&&(e=Tt(o,e),this.remainderData=null);const a=this.getValidChunk(e);if(!a.length)return null;r&&(i=r);let A=this.softwareDecrypter;A||(A=this.softwareDecrypter=new sp),A.expandKey(t);const l=n;return this.currentResult=A.decrypt(a.buffer,0,i),this.currentIV=Ki(a,-16).buffer,l||null}webCryptoDecrypt(e,t,i){const r=this.subtle;return(this.key!==t||!this.fastAesKey)&&(this.key=t,this.fastAesKey=new tp(r,t)),this.fastAesKey.expandKey().then(n=>r?(this.logOnce("WebCrypto AES decrypt"),new ep(r,new Uint8Array(i)).decrypt(e.buffer,n)):Promise.reject(new Error("web crypto not initialized"))).catch(n=>(N.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${n.name}: ${n.message}`),this.onWebCryptoError(e,t,i)))}onWebCryptoError(e,t,i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,i);const r=this.flush();if(r)return r.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const i=e.length-e.length%rp;return i!==e.length&&(t=Ki(e,0,i),this.remainderData=Ki(e,i)),t}logOnce(e){this.logEnabled&&(N.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const np={toString:function(s){let e="";const t=s.length;for(let i=0;i<t;i++)e+=`[${s.start(i).toFixed(3)}-${s.end(i).toFixed(3)}]`;return e}},X={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class Wo extends V0{constructor(e,t,i,r,n){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=X.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=n,this.logPrefix=r,this.log=N.log.bind(N,`${r}:`),this.warn=N.warn.bind(N,`${r}:`),this.hls=e,this.fragmentLoader=new Z0(e.config),this.keyLoader=i,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Jo(e.config),e.on(E.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=X.STOPPED}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const i=t.partList;if(i!=null&&i.length){const n=i[i.length-1];return He.isBuffered(this.media,n.start+n.duration/2)}const r=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(r)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const i=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),i.addEventListener("seeking",this.onvseeking),i.addEventListener("ended",this.onvended);const r=this.config;this.levels&&r.autoStartLoad&&this.state===X.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.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()}onMediaSeeking(){const{config:e,fragCurrent:t,media:i,mediaBuffer:r,state:n}=this,o=i?i.currentTime:0,a=He.bufferInfo(r||i,o,e.maxBufferHole);if(this.log(`media seeking to ${oe(o)?o.toFixed(3):o}, state: ${n}`),this.state===X.ENDED)this.resetLoadingState();else if(t){const A=e.maxFragLookUpTolerance,l=t.start-A,c=t.start+t.duration+A;if(!a.len||c<a.start||l>a.end){const h=o>c;(o<l||h)&&(h&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}i&&(this.fragmentTracker.removeFragmentsInRange(o,1/0,this.playlistType,!0),this.lastCurrentTime=o),!this.loadedmetadata&&!a.len&&(this.nextLoadPosition=this.startPosition=o),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(E.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=X.STOPPED,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,super.onHandlerDestroyed()}loadFragment(e,t,i){this._loadFragForPlayback(e,t,i)}_loadFragForPlayback(e,t,i){const r=n=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${n.part?" p: "+n.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(n)};this._doFragLoad(e,t,i,r).then(n=>{if(!n)return;const o=this.state;if(this.fragContextChanged(e)){(o===X.FRAG_LOADING||!this.fragCurrent&&o===X.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=X.IDLE);return}"payload"in n&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(E.FRAG_LOADED,n)),this._handleFragmentLoadComplete(n)}).catch(n=>{this.state===X.STOPPED||this.state===X.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:i}=this;if(i.getState(e)===at.APPENDING){const n=e.type,o=this.getFwdBufferInfo(this.mediaBuffer,n),a=Math.max(e.duration,o?o.len:this.config.maxBufferLength);this.reduceMaxBufferLength(a)&&i.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?i.removeAllFragments():i.hasParts(e.type)&&(i.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),i.getState(e)===at.PARTIAL&&i.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}flushMainBuffer(e,t,i=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:i};this.hls.trigger(E.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(i=>{if(!i||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return i}).then(i=>{const{hls:r}=this,{payload:n}=i,o=e.decryptdata;if(n&&n.byteLength>0&&o!=null&&o.key&&o.iv&&o.method==="AES-128"){const a=self.performance.now();return this.decrypter.decrypt(new Uint8Array(n),o.key.buffer,o.iv.buffer).catch(A=>{throw r.trigger(E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_DECRYPT_ERROR,fatal:!1,error:A,reason:A.message,frag:e}),A}).then(A=>{const l=self.performance.now();return r.trigger(E.FRAG_DECRYPTED,{frag:e,payload:A,stats:{tstart:a,tdecrypt:l}}),i.payload=A,this.completeInitSegmentLoad(i)})}return this.completeInitSegmentLoad(i)}).catch(i=>{this.state===X.STOPPED||this.state===X.ERROR||(this.warn(i),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const i=e.frag.stats;this.state=X.IDLE,e.frag.data=new Uint8Array(e.payload),i.parsing.start=i.buffering.start=self.performance.now(),i.parsing.end=i.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){var i,r,n,o;const a=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===fe.MAIN?"level":"track"} ${e.level} (frag:[${((i=e.startPTS)!=null?i:NaN).toFixed(3)}-${((r=e.endPTS)!=null?r:NaN).toFixed(3)}] > buffer:${a?np.toString(He.getBuffered(a)):"(detached)"})`),e.sn!=="initSegment"){var A;if(e.type!==fe.SUBTITLE){const c=e.elementaryStreams;if(!Object.keys(c).some(h=>!!c[h])){this.state=X.IDLE;return}}const l=(A=this.levels)==null?void 0:A[e.level];l!=null&&l.fragmentError&&(this.log(`Resetting level fragment error count of ${l.fragmentError} on frag buffered`),l.fragmentError=0)}this.state=X.IDLE,a&&(!this.loadedmetadata&&e.type==fe.MAIN&&a.buffered.length&&((n=this.fragCurrent)==null?void 0:n.sn)===((o=this.fragPrevious)==null?void 0:o.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:i,part:r,partsLoaded:n}=e,o=!n||n.length===0||n.some(A=>!A),a=new Vo(i.level,i.sn,i.stats.chunkCount+1,0,r?r.index:-1,!o);t.flush(a)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,i=null,r){var n;const o=t==null?void 0:t.details;if(!this.levels||!o)throw new Error(`frag load aborted, missing level${o?"":" detail"}s`);let a=null;if(e.encrypted&&!((n=e.decryptdata)!=null&&n.key)?(this.log(`Loading key for ${e.sn} of [${o.startSN}-${o.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=X.KEY_LOADING,this.fragCurrent=e,a=this.keyLoader.load(e).then(c=>{if(!this.fragContextChanged(c.frag))return this.hls.trigger(E.KEY_LOADED,c),this.state===X.KEY_LOADING&&(this.state=X.IDLE),c}),this.hls.trigger(E.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(a=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&o.encryptedFragments.length&&this.keyLoader.loadClear(e,o.encryptedFragments),i=Math.max(e.start,i||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const c=o.partList;if(c&&r){i>e.end&&o.fragmentHint&&(e=o.fragmentHint);const h=this.getNextPart(c,e,i);if(h>-1){const u=c[h];this.log(`Loading part sn: ${e.sn} p: ${u.index} cc: ${e.cc} of playlist [${o.startSN}-${o.endSN}] parts [0-${h}-${c.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(i.toFixed(3))}`),this.nextLoadPosition=u.start+u.duration,this.state=X.FRAG_LOADING;let d;return a?d=a.then(g=>!g||this.fragContextChanged(g.frag)?null:this.doFragPartsLoad(e,u,t,r)).catch(g=>this.handleFragLoadError(g)):d=this.doFragPartsLoad(e,u,t,r).catch(g=>this.handleFragLoadError(g)),this.hls.trigger(E.FRAG_LOADING,{frag:e,part:u,targetBufferTime:i}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):d}else if(!e.url||this.loadedEndOfParts(c,i))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${o?"of ["+o.startSN+"-"+o.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(i.toFixed(3))}`),oe(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=X.FRAG_LOADING;const A=this.config.progressive;let l;return A&&a?l=a.then(c=>!c||this.fragContextChanged(c==null?void 0:c.frag)?null:this.fragmentLoader.load(e,r)).catch(c=>this.handleFragLoadError(c)):l=Promise.all([this.fragmentLoader.load(e,A?r:void 0),a]).then(([c])=>(!A&&c&&r&&r(c),c)).catch(c=>this.handleFragLoadError(c)),this.hls.trigger(E.FRAG_LOADING,{frag:e,targetBufferTime:i}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):l}doFragPartsLoad(e,t,i,r){return new Promise((n,o)=>{var a;const A=[],l=(a=i.details)==null?void 0:a.partList,c=h=>{this.fragmentLoader.loadPart(e,h,r).then(u=>{A[h.index]=u;const d=u.part;this.hls.trigger(E.FRAG_LOADED,u);const g=dc(i,e.sn,h.index+1)||gc(l,e.sn,h.index+1);if(g)c(g);else return n({frag:e,part:d,partsLoaded:A})}).catch(o)};c(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===$.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(E.ERROR,t)}else this.hls.trigger(E.ERROR,{type:pe.OTHER_ERROR,details:$.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==X.PARSING){!this.fragCurrent&&this.state!==X.STOPPED&&this.state!==X.ERROR&&(this.state=X.IDLE);return}const{frag:i,part:r,level:n}=t,o=self.performance.now();i.stats.parsing.end=o,r&&(r.stats.parsing.end=o),this.updateLevelTiming(i,r,n,e.partial)}getCurrentContext(e){const{levels:t,fragCurrent:i}=this,{level:r,sn:n,part:o}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${n} of level ${r}. The current chunk will not be buffered.`),null;const a=t[r],A=o>-1?dc(a,n,o):null,l=A?A.fragment:R0(a,n,i);return l?(i&&i!==l&&(l.stats=i.stats),{frag:l,part:A,level:a}):null}bufferFragmentData(e,t,i,r,n){var o;if(!e||this.state!==X.PARSING)return;const{data1:a,data2:A}=e;let l=a;if(a&&A&&(l=Tt(a,A)),!((o=l)!=null&&o.length))return;const c={type:e.type,frag:t,part:i,chunkMeta:r,parent:t.type,data:l};if(this.hls.trigger(E.BUFFER_APPENDING,c),e.dropped&&e.independent&&!i){if(n)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!He.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const i=t.currentTime,r=He.bufferInfo(t,i,0),n=e.duration,o=Math.min(this.config.maxFragLookUpTolerance*2,n*.25),a=Math.max(Math.min(e.start-o,r.end-o),i+o);e.start-a>o&&this.flushMainBuffer(a,e.start)}getFwdBufferInfo(e,t){const i=this.getLoadPosition();return oe(i)?this.getFwdBufferInfoAtPos(e,i,t):null}getFwdBufferInfoAtPos(e,t,i){const{config:{maxBufferHole:r}}=this,n=He.bufferInfo(e,t,r);if(n.len===0&&n.nextStart!==void 0){const o=this.fragmentTracker.getBufferedFrag(t,i);if(o&&n.nextStart<o.end)return He.bufferInfo(e,t,Math.max(n.nextStart,r))}return n}getMaxBufferLength(e){const{config:t}=this;let i;return e?i=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):i=t.maxBufferLength,Math.min(i,t.maxMaxBufferLength)}reduceMaxBufferLength(e){const t=this.config,i=e||t.maxBufferLength;return t.maxMaxBufferLength>=i?(t.maxMaxBufferLength/=2,this.warn(`Reduce max buffer length to ${t.maxMaxBufferLength}s`),!0):!1}getAppendedFrag(e,t=fe.MAIN){const i=this.fragmentTracker.getAppendedFrag(e,fe.MAIN);return i&&"fragment"in i?i.fragment:i}getNextFragment(e,t){const i=t.fragments,r=i.length;if(!r)return null;const{config:n}=this,o=i[0].start;let a;if(t.live){const A=n.initialLiveManifestSize;if(r<A)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${A})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<o)&&(a=this.getInitialLiveFragment(t,i),this.startPosition=this.nextLoadPosition=a?this.hls.liveSyncPosition||a.start:e)}else e<=o&&(a=i[0]);if(!a){const A=n.lowLatencyMode?t.partEnd:t.fragmentEnd;a=this.getFragmentAtPosition(e,A,t)}return this.mapToInitFragWhenRequired(a)}isLoopLoading(e,t){const i=this.fragmentTracker.getState(e);return(i===at.OK||i===at.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,i,r,n){const o=e.gap,a=this.getNextFragment(this.nextLoadPosition,t);if(a===null)return a;if(e=a,o&&e&&!e.gap&&i.nextStart){const A=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,i.nextStart,r);if(A!==null&&i.len+A.len>=n)return this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${e.sn}`),null}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,i){let r=-1,n=!1,o=!0;for(let a=0,A=e.length;a<A;a++){const l=e[a];if(o=o&&!l.independent,r>-1&&i<l.start)break;const c=l.loaded;c?r=-1:(n||l.independent||o)&&l.fragment===t&&(r=a),n=c}return r}loadedEndOfParts(e,t){const i=e[e.length-1];return i&&t>i.start&&i.loaded}getInitialLiveFragment(e,t){const i=this.fragPrevious;let r=null;if(i){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${i.programDateTime}`),r=D0(t,i.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const n=i.sn+1;if(n>=e.startSN&&n<=e.endSN){const o=t[n-e.startSN];i.cc===o.cc&&(r=o,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=L0(t,i.cc),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const n=this.hls.liveSyncPosition;n!==null&&(r=this.getFragmentAtPosition(n,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,i){const{config:r}=this;let{fragPrevious:n}=this,{fragments:o,endSN:a}=i;const{fragmentHint:A}=i,l=r.maxFragLookUpTolerance,c=i.partList,h=!!(r.lowLatencyMode&&c!=null&&c.length&&A);h&&A&&!this.bitrateTest&&(o=o.concat(A),a=A.sn);let u;if(e<t){const d=e>t-l?0:l;u=ln(n,o,e,d)}else u=o[o.length-1];if(u){const d=u.sn-i.startSN,g=this.fragmentTracker.getState(u);if((g===at.OK||g===at.PARTIAL&&u.gap)&&(n=u),n&&u.sn===n.sn&&(!h||c[0].fragment.sn>u.sn)&&n&&u.level===n.level){const p=o[d+1];u.sn<a&&this.fragmentTracker.getState(p)!==at.OK?u=p:u=null}}return u}synchronizeToLiveEdge(e){const{config:t,media:i}=this;if(!i)return;const r=this.hls.liveSyncPosition,n=i.currentTime,o=e.fragments[0].start,a=e.edge,A=n>=o-t.maxFragLookUpTolerance&&n<=a;if(r!==null&&i.duration>r&&(n<r||!A)){const l=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!A&&i.readyState<4||n<a-l)&&(this.loadedmetadata||(this.nextLoadPosition=r),i.readyState&&(this.warn(`Playback: ${n.toFixed(3)} is located too far from the end of live sliding playlist: ${a}, reset currentTime to : ${r.toFixed(3)}`),i.currentTime=r))}}alignPlaylists(e,t,i){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const n=e.fragments[0].start,o=!t,a=e.alignedSliding&&oe(n);if(o||!a&&!n){const{fragPrevious:A}=this;X0(A,i,e);const l=e.fragments[0].start;return this.log(`Live playlist sliding: ${l.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${A?A.sn:"na"} fragments: ${r}`),l}return n}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let i=this.startPosition;if(i<t&&(i=-1),i===-1||this.lastCurrentTime===-1){const r=this.startTimeOffset!==null,n=r?this.startTimeOffset:e.startTimeOffset;n!==null&&oe(n)?(i=t+n,n<0&&(i+=e.totalduration),i=Math.min(Math.max(t,i),t+e.totalduration),this.log(`Start time offset ${n} found in ${r?"multivariant":"media"} playlist, adjust startPosition to ${i}`),this.startPosition=i):e.live?i=this.hls.liveSyncPosition||t:this.startPosition=i=0,this.lastCurrentTime=i}this.nextLoadPosition=i}getLoadPosition(){const{media:e}=this;let t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}handleFragLoadAborted(e,t){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==X.FRAG_LOADING_WAITING_RETRY)&&(this.state=X.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const c=this.getCurrentContext(t.chunkMeta);c&&(t.frag=c.frag)}const i=t.frag;if(!i||i.type!==e||!this.levels)return;if(this.fragContextChanged(i)){var r;this.warn(`Frag load error must match current frag to retry ${i.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const n=t.details===$.FRAG_GAP;n&&this.fragmentTracker.fragBuffered(i,!0);const o=t.errorAction,{action:a,retryCount:A=0,retryConfig:l}=o||{};if(o&&a===dt.RetryRequest&&l){this.resetStartWhenNotLoaded(this.levelLastLoaded);const c=$o(l,A);this.warn(`Fragment ${i.sn} of ${e} ${i.level} errored with ${t.details}, retrying loading ${A+1}/${l.maxNumRetry} in ${c}ms`),o.resolved=!0,this.retryDate=self.performance.now()+c,this.state=X.FRAG_LOADING_WAITING_RETRY}else if(l&&o)if(this.resetFragmentErrors(e),A<l.maxNumRetry)!n&&a!==dt.RemoveAlternatePermanently&&(o.resolved=!0);else{N.warn(`${t.details} reached or exceeded max retry (${A})`);return}else(o==null?void 0:o.action)===dt.SendAlternateToPenaltyBox?this.state=X.WAITING_LEVEL:this.state=X.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===X.PARSING||this.state===X.PARSED){const t=e.parent,i=this.getFwdBufferInfo(this.mediaBuffer,t),r=i&&i.len>.5;r&&this.reduceMaxBufferLength(i.len);const n=!r;return n&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${t} buffer`),e.frag&&(this.fragmentTracker.removeFragment(e.frag),this.nextLoadPosition=e.frag.start),this.resetLoadingState(),n}return!1}resetFragmentErrors(e){e===fe.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==X.STOPPED&&(this.state=X.IDLE)}afterBufferFlushed(e,t,i){if(!e)return;const r=He.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,i),this.state===X.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=X.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,i,r){var n;const o=i.details;if(!o){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((A,l)=>{const c=e.elementaryStreams[l];if(c){const h=c.endPTS-c.startPTS;if(h<=0)return this.warn(`Could not parse fragment ${e.sn} ${l} duration reliably (${h})`),A||!1;const u=r?0:hc(o,e,c.startPTS,c.endPTS,c.startDTS,c.endDTS);return this.hls.trigger(E.LEVEL_PTS_UPDATED,{details:o,level:i,drift:u,type:l,frag:e,start:c.startPTS,end:c.endPTS}),!0}return A},!1)&&((n=this.transmuxer)==null?void 0:n.error)===null){const A=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(i.fragmentError===0&&(i.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(A.message),this.hls.trigger(E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!1,error:A,frag:e,reason:`Found no media in msn ${e.sn} of level "${i.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=X.PARSED,this.hls.trigger(E.FRAG_PARSED,{frag:e,part:t})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}class wc{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let i;if(e.length)e.length===1?i=e[0]:i=op(e,t);else return new Uint8Array(0);return this.reset(),i}reset(){this.chunks.length=0,this.dataLength=0}}function op(s,e){const t=new Uint8Array(e);let i=0;for(let r=0;r<s.length;r++){const n=s[r];t.set(n,i),i+=n.length}return t}function ap(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Ap(){const s=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(s);return{worker:new self.Worker(e),objectURL:e}}function lp(s){const e=new self.URL(s,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Zt(s="",e=9e4){return{type:s,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class qo{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,i,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,i){}demux(e,t){this.cachedData&&(e=Tt(this.cachedData,e),this.cachedData=null);let i=er(e,0),r=i?i.length:0,n;const o=this._audioTrack,a=this._id3Track,A=i?xo(i):void 0,l=e.length;for((this.basePTS===null||this.frameIndex===0&&oe(A))&&(this.basePTS=cp(A,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),i&&i.length>0&&a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:Pt.audioId3,duration:Number.POSITIVE_INFINITY});r<l;){if(this.canParse(e,r)){const c=this.appendFrame(o,e,r);c?(this.frameIndex++,this.lastPTS=c.sample.pts,r+=c.length,n=r):r=l}else _f(e,r)?(i=er(e,r),a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:Pt.audioId3,duration:Number.POSITIVE_INFINITY}),r+=i.length,n=r):r++;if(r===l&&n!==l){const c=Ki(e,n);this.cachedData?this.cachedData=Tt(this.cachedData,c):this.cachedData=c}}return{audioTrack:o,videoTrack:Zt(),id3Track:a,textTrack:Zt()}}demuxSampleAes(e,t,i){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:Zt(),id3Track:this._id3Track,textTrack:Zt()}}destroy(){}}const cp=(s,e,t)=>{if(oe(s))return s*90;const i=t?t.baseTime*9e4/t.timescale:0;return e*9e4+i};function hp(s,e,t,i){let r,n,o,a;const A=navigator.userAgent.toLowerCase(),l=i,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=((e[t+2]&192)>>>6)+1;const h=(e[t+2]&60)>>>2;if(h>c.length-1){const u=new Error(`invalid ADTS sampling index:${h}`);s.emit(E.ERROR,E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!0,error:u,reason:u.message});return}return o=(e[t+2]&1)<<2,o|=(e[t+3]&192)>>>6,N.log(`manifest codec:${i}, ADTS type:${r}, samplingIndex:${h}`),/firefox/i.test(A)?h>=6?(r=5,a=new Array(4),n=h-3):(r=2,a=new Array(2),n=h):A.indexOf("android")!==-1?(r=2,a=new Array(2),n=h):(r=5,a=new Array(4),i&&(i.indexOf("mp4a.40.29")!==-1||i.indexOf("mp4a.40.5")!==-1)||!i&&h>=6?n=h-3:((i&&i.indexOf("mp4a.40.2")!==-1&&(h>=6&&o===1||/vivaldi/i.test(A))||!i&&o===1)&&(r=2,a=new Array(2)),n=h)),a[0]=r<<3,a[0]|=(h&14)>>1,a[1]|=(h&1)<<7,a[1]|=o<<3,r===5&&(a[1]|=(n&14)>>1,a[2]=(n&1)<<7,a[2]|=8,a[3]=0),{config:a,samplerate:c[h],channelCount:o,codec:"mp4a.40."+r,manifestCodec:l}}function Rc(s,e){return s[e]===255&&(s[e+1]&246)===240}function xc(s,e){return s[e+1]&1?7:9}function jo(s,e){return(s[e+3]&3)<<11|s[e+4]<<3|(s[e+5]&224)>>>5}function up(s,e){return e+5<s.length}function gn(s,e){return e+1<s.length&&Rc(s,e)}function dp(s,e){return up(s,e)&&Rc(s,e)&&jo(s,e)<=s.length-e}function gp(s,e){if(gn(s,e)){const t=xc(s,e);if(e+t>=s.length)return!1;const i=jo(s,e);if(i<=t)return!1;const r=e+i;return r===s.length||gn(s,r)}return!1}function Dc(s,e,t,i,r){if(!s.samplerate){const n=hp(e,t,i,r);if(!n)return;s.config=n.config,s.samplerate=n.samplerate,s.channelCount=n.channelCount,s.codec=n.codec,s.manifestCodec=n.manifestCodec,N.log(`parsed codec:${s.codec}, rate:${n.samplerate}, channels:${n.channelCount}`)}}function Tc(s){return 9216e4/s}function fp(s,e){const t=xc(s,e);if(e+t<=s.length){const i=jo(s,e)-t;if(i>0)return{headerLength:t,frameLength:i}}}function Lc(s,e,t,i,r){const n=Tc(s.samplerate),o=i+r*n,a=fp(e,t);let A;if(a){const{frameLength:h,headerLength:u}=a,d=u+h,g=Math.max(0,t+d-e.length);g?(A=new Uint8Array(d-u),A.set(e.subarray(t+u,e.length),0)):A=e.subarray(t+u,t+d);const f={unit:A,pts:o};return g||s.samples.push(f),{sample:f,length:d,missing:g}}const l=e.length-t;return A=new Uint8Array(l),A.set(e.subarray(t,e.length),0),{sample:{unit:A,pts:o},length:l,missing:-1}}let fn=null;const pp=[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],Ep=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Ip=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],mp=[0,1,1,4];function _c(s,e,t,i,r){if(t+24>e.length)return;const n=kc(e,t);if(n&&t+n.frameLength<=e.length){const o=n.samplesPerFrame*9e4/n.sampleRate,a=i+r*o,A={unit:e.subarray(t,t+n.frameLength),pts:a,dts:a};return s.config=[],s.channelCount=n.channelCount,s.samplerate=n.sampleRate,s.samples.push(A),{sample:A,length:n.frameLength,missing:0}}}function kc(s,e){const t=s[e+1]>>3&3,i=s[e+1]>>1&3,r=s[e+2]>>4&15,n=s[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&n!==3){const o=s[e+2]>>1&1,a=s[e+3]>>6,A=t===3?3-i:i===3?3:4,l=pp[A*14+r-1]*1e3,h=Ep[(t===3?0:t===2?1:2)*3+n],u=a===3?1:2,d=Ip[t][i],g=mp[i],f=d*8*g,p=Math.floor(d*l/h+o)*g;if(fn===null){const S=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);fn=S?parseInt(S[1]):0}return!!fn&&fn<=87&&i===2&&l>=224e3&&a===0&&(s[e+3]=s[e+3]|128),{sampleRate:h,channelCount:u,frameLength:p,samplesPerFrame:f}}}function Xo(s,e){return s[e]===255&&(s[e+1]&224)===224&&(s[e+1]&6)!==0}function Fc(s,e){return e+1<s.length&&Xo(s,e)}function Cp(s,e){return Xo(s,e)&&4<=s.length-e}function Nc(s,e){if(e+1<s.length&&Xo(s,e)){const i=kc(s,e);let r=4;i!=null&&i.frameLength&&(r=i.frameLength);const n=e+r;return n===s.length||Fc(s,n)}return!1}class yp extends qo{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,i,r){super.resetInitSegment(e,t,i,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=er(e,0);let i=(t==null?void 0:t.length)||0;if(Nc(e,i))return!1;for(let r=e.length;i<r;i++)if(gp(e,i))return N.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return dp(e,t)}appendFrame(e,t,i){Dc(e,this.observer,t,i,e.manifestCodec);const r=Lc(e,t,i,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const vp=/\/emsg[-/]ID3/i;class Bp{constructor(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}resetTimeStamp(){}resetInitSegment(e,t,i,r){const n=this.videoTrack=Zt("video",1),o=this.audioTrack=Zt("audio",1),a=this.txtTrack=Zt("text",1);if(this.id3Track=Zt("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const A=Pl(e);if(A.video){const{id:l,timescale:c,codec:h}=A.video;n.id=l,n.timescale=a.timescale=c,n.codec=h}if(A.audio){const{id:l,timescale:c,codec:h}=A.audio;o.id=l,o.timescale=c,o.codec=h}a.id=Fl.text,n.sampleDuration=0,n.duration=o.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return Hf(e)}demux(e,t){this.timeOffset=t;let i=e;const r=this.videoTrack,n=this.txtTrack;if(this.config.progressive){this.remainderData&&(i=Tt(this.remainderData,e));const a=jf(i);this.remainderData=a.remainder,r.samples=a.valid||new Uint8Array}else r.samples=i;const o=this.extractID3Track(r,t);return n.samples=Gl(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:o,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,i=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return i.samples=Gl(e,t),{videoTrack:t,audioTrack:Zt(),id3Track:r,textTrack:Zt()}}extractID3Track(e,t){const i=this.id3Track;if(e.samples.length){const r=ve(e.samples,["emsg"]);r&&r.forEach(n=>{const o=Zf(n);if(vp.test(o.schemeIdUri)){const a=oe(o.presentationTime)?o.presentationTime/o.timeScale:t+o.presentationTimeDelta/o.timeScale;let A=o.eventDuration===4294967295?Number.POSITIVE_INFINITY:o.eventDuration/o.timeScale;A<=.001&&(A=Number.POSITIVE_INFINITY);const l=o.payload;i.samples.push({data:l,len:l.byteLength,dts:a,pts:a,type:Pt.emsg,duration:A})}})}return i}demuxSampleAes(e,t,i){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const Mc=(s,e)=>{let t=0,i=5;e+=i;const r=new Uint32Array(1),n=new Uint32Array(1),o=new Uint8Array(1);for(;i>0;){o[0]=s[e];const a=Math.min(i,8),A=8-a;n[0]=4278190080>>>24+A<<A,r[0]=(o[0]&n[0])>>A,t=t?t<<a|r[0]:r[0],e+=1,i-=a}return t};class Qp extends qo{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,i,r){super.resetInitSegment(e,t,i,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,i){const r=Oc(e,t,i,this.basePTS,this.frameIndex);if(r!==-1)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}static probe(e){if(!e)return!1;const t=er(e,0);if(!t)return!1;const i=t.length;return e[i]===11&&e[i+1]===119&&xo(t)!==void 0&&Mc(e,i)<16}}function Oc(s,e,t,i,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const n=e[t+4]>>6;if(n>=3)return-1;const a=[48e3,44100,32e3][n],A=e[t+4]&63,c=[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][A*3+n]*2;if(t+c>e.length)return-1;const h=e[t+6]>>5;let u=0;h===2?u+=2:(h&1&&h!==1&&(u+=2),h&4&&(u+=2));const d=(e[t+6]<<8|e[t+7])>>12-u&1,f=[2,1,2,3,3,4,4,5][h]+d,p=e[t+5]>>3,y=e[t+5]&7,v=new Uint8Array([n<<6|p<<1|y>>2,(y&3)<<6|h<<3|d<<2|A>>4,A<<4&224]),S=1536/a*9e4,C=i+r*S,Q=e.subarray(t,t+c);return s.config=v,s.channelCount=f,s.samplerate=a,s.samples.push({unit:Q,pts:C}),c}class Sp{constructor(){this.VideoSample=null}createVideoSample(e,t,i,r){return{key:e,frame:!1,pts:t,dts:i,units:[],debug:r,length:0}}getLastNalUnit(e){var t;let i=this.VideoSample,r;if((!i||i.units.length===0)&&(i=e[e.length-1]),(t=i)!=null&&t.units){const n=i.units;r=n[n.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const i=t.samples,r=i.length;if(r){const n=i[r-1];e.pts=n.pts,e.dts=n.dts}else{t.dropped++;return}}t.samples.push(e)}e.debug.length&&N.log(e.pts+"/"+e.dts+":"+e.debug)}}class Pc{constructor(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}loadWord(){const e=this.data,t=this.bytesAvailable,i=e.byteLength-t,r=new Uint8Array(4),n=Math.min(4,t);if(n===0)throw new Error("no bytes available");r.set(e.subarray(i,i+n)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=n*8,this.bytesAvailable-=n}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const i=this.word>>>32-t;if(e>32&&N.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?i<<t|this.readBits(t):i}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(e){let t=8,i=8,r;for(let n=0;n<e;n++)i!==0&&(r=this.readEG(),i=(t+r+256)%256),t=i===0?t:i}readSPS(){let e=0,t=0,i=0,r=0,n,o,a;const A=this.readUByte.bind(this),l=this.readBits.bind(this),c=this.readUEG.bind(this),h=this.readBoolean.bind(this),u=this.skipBits.bind(this),d=this.skipEG.bind(this),g=this.skipUEG.bind(this),f=this.skipScalingList.bind(this);A();const p=A();if(l(5),u(3),A(),g(),p===100||p===110||p===122||p===244||p===44||p===83||p===86||p===118||p===128){const B=c();if(B===3&&u(1),g(),g(),u(1),h())for(o=B!==3?8:12,a=0;a<o;a++)h()&&(a<6?f(16):f(64))}g();const y=c();if(y===0)c();else if(y===1)for(u(1),d(),d(),n=c(),a=0;a<n;a++)d();g(),u(1);const v=c(),S=c(),C=l(1);C===0&&u(1),u(1),h()&&(e=c(),t=c(),i=c(),r=c());let Q=[1,1];if(h()&&h())switch(A()){case 1:Q=[1,1];break;case 2:Q=[12,11];break;case 3:Q=[10,11];break;case 4:Q=[16,11];break;case 5:Q=[40,33];break;case 6:Q=[24,11];break;case 7:Q=[20,11];break;case 8:Q=[32,11];break;case 9:Q=[80,33];break;case 10:Q=[18,11];break;case 11:Q=[15,11];break;case 12:Q=[64,33];break;case 13:Q=[160,99];break;case 14:Q=[4,3];break;case 15:Q=[3,2];break;case 16:Q=[2,1];break;case 255:{Q=[A()<<8|A(),A()<<8|A()];break}}return{width:Math.ceil((v+1)*16-e*2-t*2),height:(2-C)*(S+1)*16-(C?2:4)*(i+r),pixelRatio:Q}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class bp extends Sp{parseAVCPES(e,t,i,r,n){const o=this.parseAVCNALu(e,i.data);let a=this.VideoSample,A,l=!1;i.data=null,a&&o.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,i.pts,i.dts,"")),o.forEach(c=>{var h;switch(c.type){case 1:{let f=!1;A=!0;const p=c.data;if(l&&p.length>4){const y=new Pc(p).readSliceType();(y===2||y===4||y===7||y===9)&&(f=!0)}if(f){var u;(u=a)!=null&&u.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null)}a||(a=this.VideoSample=this.createVideoSample(!0,i.pts,i.dts,"")),a.frame=!0,a.key=f;break}case 5:A=!0,(h=a)!=null&&h.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,i.pts,i.dts,"")),a.key=!0,a.frame=!0;break;case 6:{A=!0,Hl(c.data,1,i.pts,t.samples);break}case 7:{var d,g;A=!0,l=!0;const f=c.data,y=new Pc(f).readSPS();if(!e.sps||e.width!==y.width||e.height!==y.height||((d=e.pixelRatio)==null?void 0:d[0])!==y.pixelRatio[0]||((g=e.pixelRatio)==null?void 0:g[1])!==y.pixelRatio[1]){e.width=y.width,e.height=y.height,e.pixelRatio=y.pixelRatio,e.sps=[f],e.duration=n;const v=f.subarray(1,4);let S="avc1.";for(let C=0;C<3;C++){let Q=v[C].toString(16);Q.length<2&&(Q="0"+Q),S+=Q}e.codec=S}break}case 8:A=!0,e.pps=[c.data];break;case 9:A=!0,e.audFound=!0,a&&this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,i.pts,i.dts,"");break;case 12:A=!0;break;default:A=!1,a&&(a.debug+="unknown NAL "+c.type+" ");break}a&&A&&a.units.push(c)}),r&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}parseAVCNALu(e,t){const i=t.byteLength;let r=e.naluState||0;const n=r,o=[];let a=0,A,l,c,h=-1,u=0;for(r===-1&&(h=0,u=t[0]&31,r=0,a=1);a<i;){if(A=t[a++],!r){r=A?0:1;continue}if(r===1){r=A?0:2;continue}if(!A)r=3;else if(A===1){if(l=a-r-1,h>=0){const d={data:t.subarray(h,l),type:u};o.push(d)}else{const d=this.getLastNalUnit(e.samples);d&&(n&&a<=4-n&&d.state&&(d.data=d.data.subarray(0,d.data.byteLength-n)),l>0&&(d.data=Tt(d.data,t.subarray(0,l)),d.state=0))}a<i?(c=t[a]&31,h=a,u=c,r=0):r=-1}else r=0}if(h>=0&&r>=0){const d={data:t.subarray(h,i),type:u,state:r};o.push(d)}if(o.length===0){const d=this.getLastNalUnit(e.samples);d&&(d.data=Tt(d.data,t))}return e.naluState=r,o}}class wp{constructor(e,t,i){this.keyData=void 0,this.decrypter=void 0,this.keyData=i,this.decrypter=new Jo(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(e,t,i){const r=e[t].unit;if(r.length<=16)return;const n=r.subarray(16,r.length-r.length%16),o=n.buffer.slice(n.byteOffset,n.byteOffset+n.length);this.decryptBuffer(o).then(a=>{const A=new Uint8Array(a);r.set(A,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,i)})}decryptAacSamples(e,t,i){for(;;t++){if(t>=e.length){i();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,i),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,i=new Int8Array(t);let r=0;for(let n=32;n<e.length-16;n+=160,r+=16)i.set(e.subarray(n,n+16),r);return i}getAvcDecryptedUnit(e,t){const i=new Uint8Array(t);let r=0;for(let n=32;n<e.length-16;n+=160,r+=16)e.set(i.subarray(r,r+16),n);return e}decryptAvcSample(e,t,i,r,n){const o=$l(n.data),a=this.getAvcEncryptedData(o);this.decryptBuffer(a.buffer).then(A=>{n.data=this.getAvcDecryptedUnit(o,A),this.decrypter.isSync()||this.decryptAvcSamples(e,t,i+1,r)})}decryptAvcSamples(e,t,i,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,i=0){if(t>=e.length){r();return}const n=e[t].units;for(;!(i>=n.length);i++){const o=n[i];if(!(o.data.length<=48||o.type!==1&&o.type!==5)&&(this.decryptAvcSample(e,t,i,r,o),!this.decrypter.isSync()))return}}}}const At=188;class xi{constructor(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 bp}static probe(e){const t=xi.syncOffset(e);return t>0&&N.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let i=Math.min(At*5,t-At)+1,r=0;for(;r<i;){let n=!1,o=-1,a=0;for(let A=r;A<t;A+=At)if(e[A]===71&&(t-A===At||e[A+At]===71)){if(a++,o===-1&&(o=A,o!==0&&(i=Math.min(o+At*99,e.length-At)+1)),n||(n=zo(e,A)===0),n&&a>1&&(o===0&&a>2||A+At>i))return o}else{if(a)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Fl[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,i,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=xi.createTrack("video"),this._audioTrack=xi.createTrack("audio",r),this._id3Track=xi.createTrack("id3"),this._txtTrack=xi.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=i,this._duration=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:i}=this;e&&(e.pesData=null),t&&(t.pesData=null),i&&(i.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,i=!1,r=!1){i||(this.sampleAes=null);let n;const o=this._videoTrack,a=this._audioTrack,A=this._id3Track,l=this._txtTrack;let c=o.pid,h=o.pesData,u=a.pid,d=A.pid,g=a.pesData,f=A.pesData,p=null,y=this.pmtParsed,v=this._pmtId,S=e.length;if(this.remainderData&&(e=Tt(this.remainderData,e),S=e.length,this.remainderData=null),S<At&&!r)return this.remainderData=e,{audioTrack:a,videoTrack:o,id3Track:A,textTrack:l};const C=Math.max(0,xi.syncOffset(e));S-=(S-C)%At,S<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,S,e.buffer.byteLength-S));let Q=0;for(let _=C;_<S;_+=At)if(e[_]===71){const D=!!(e[_+1]&64),G=zo(e,_),F=(e[_+3]&48)>>4;let H;if(F>1){if(H=_+5+e[_+4],H===_+At)continue}else H=_+4;switch(G){case c:D&&(h&&(n=ps(h))&&this.videoParser.parseAVCPES(o,l,n,!1,this._duration),h={data:[],size:0}),h&&(h.data.push(e.subarray(H,_+At)),h.size+=_+At-H);break;case u:if(D){if(g&&(n=ps(g)))switch(a.segmentCodec){case"aac":this.parseAACPES(a,n);break;case"mp3":this.parseMPEGPES(a,n);break;case"ac3":this.parseAC3PES(a,n);break}g={data:[],size:0}}g&&(g.data.push(e.subarray(H,_+At)),g.size+=_+At-H);break;case d:D&&(f&&(n=ps(f))&&this.parseID3PES(A,n),f={data:[],size:0}),f&&(f.data.push(e.subarray(H,_+At)),f.size+=_+At-H);break;case 0:D&&(H+=e[H]+1),v=this._pmtId=Rp(e,H);break;case v:{D&&(H+=e[H]+1);const j=xp(e,H,this.typeSupported,i);c=j.videoPid,c>0&&(o.pid=c,o.segmentCodec=j.segmentVideoCodec),u=j.audioPid,u>0&&(a.pid=u,a.segmentCodec=j.segmentAudioCodec),d=j.id3Pid,d>0&&(A.pid=d),p!==null&&!y&&(N.warn(`MPEG-TS PMT found at ${_} after unknown PID '${p}'. Backtracking to sync byte @${C} to parse all TS packets.`),p=null,_=C-188),y=this.pmtParsed=!0;break}case 17:case 8191:break;default:p=G;break}}else Q++;if(Q>0){const _=new Error(`Found ${Q} TS packet/s that do not start with 0x47`);this.observer.emit(E.ERROR,E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!1,error:_,reason:_.message})}o.pesData=h,a.pesData=g,A.pesData=f;const B={audioTrack:a,videoTrack:o,id3Track:A,textTrack:l};return r&&this.extractRemainingSamples(B),B}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:i,id3Track:r,textTrack:n}=e,o=i.pesData,a=t.pesData,A=r.pesData;let l;if(o&&(l=ps(o))?(this.videoParser.parseAVCPES(i,n,l,!0,this._duration),i.pesData=null):i.pesData=o,a&&(l=ps(a))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,l);break;case"mp3":this.parseMPEGPES(t,l);break;case"ac3":this.parseAC3PES(t,l);break}t.pesData=null}else a!=null&&a.size&&N.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=a;A&&(l=ps(A))?(this.parseID3PES(r,l),r.pesData=null):r.pesData=A}demuxSampleAes(e,t,i){const r=this.demux(e,i,!0,!this.config.progressive),n=this.sampleAes=new wp(this.observer,this.config,t);return this.decrypt(r,n)}decrypt(e,t){return new Promise(i=>{const{audioTrack:r,videoTrack:n}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{n.samples?t.decryptAvcSamples(n.samples,0,0,()=>{i(e)}):i(e)}):n.samples&&t.decryptAvcSamples(n.samples,0,0,()=>{i(e)})})}destroy(){this._duration=0}parseAACPES(e,t){let i=0;const r=this.aacOverFlow;let n=t.data;if(r){this.aacOverFlow=null;const h=r.missing,u=r.sample.unit.byteLength;if(h===-1)n=Tt(r.sample.unit,n);else{const d=u-h;r.sample.unit.set(n.subarray(0,h),d),e.samples.push(r.sample),i=r.missing}}let o,a;for(o=i,a=n.length;o<a-1&&!gn(n,o);o++);if(o!==i){let h;const u=o<a-1;u?h=`AAC PES did not start with ADTS header,offset:${o}`:h="No ADTS header found in AAC PES";const d=new Error(h);if(N.warn(`parsing error: ${h}`),this.observer.emit(E.ERROR,E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!1,levelRetry:u,error:d,reason:h}),!u)return}Dc(e,this.observer,n,o,this.audioCodec);let A;if(t.pts!==void 0)A=t.pts;else if(r){const h=Tc(e.samplerate);A=r.sample.pts+h}else{N.warn("[tsdemuxer]: AAC PES unknown PTS");return}let l=0,c;for(;o<a;)if(c=Lc(e,n,o,A,l),o+=c.length,c.missing){this.aacOverFlow=c;break}else for(l++;o<a-1&&!gn(n,o);o++);}parseMPEGPES(e,t){const i=t.data,r=i.length;let n=0,o=0;const a=t.pts;if(a===void 0){N.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;o<r;)if(Fc(i,o)){const A=_c(e,i,o,a,n);if(A)o+=A.length,n++;else break}else o++}parseAC3PES(e,t){{const i=t.data,r=t.pts;if(r===void 0){N.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const n=i.length;let o=0,a=0,A;for(;a<n&&(A=Oc(e,i,a,r,o++))>0;)a+=A}}parseID3PES(e,t){if(t.pts===void 0){N.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const i=Ze({},t,{type:this._videoTrack?Pt.emsg:Pt.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(i)}}function zo(s,e){return((s[e+1]&31)<<8)+s[e+2]}function Rp(s,e){return(s[e+10]&31)<<8|s[e+11]}function xp(s,e,t,i){const r={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},n=(s[e+1]&15)<<8|s[e+2],o=e+3+n-4,a=(s[e+10]&15)<<8|s[e+11];for(e+=12+a;e<o;){const A=zo(s,e),l=(s[e+3]&15)<<8|s[e+4];switch(s[e]){case 207:if(!i){Zo("ADTS AAC");break}case 15:r.audioPid===-1&&(r.audioPid=A);break;case 21:r.id3Pid===-1&&(r.id3Pid=A);break;case 219:if(!i){Zo("H.264");break}case 27:r.videoPid===-1&&(r.videoPid=A,r.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?N.log("MPEG audio found, not supported in this browser"):r.audioPid===-1&&(r.audioPid=A,r.segmentAudioCodec="mp3");break;case 193:if(!i){Zo("AC-3");break}case 129:t.ac3?r.audioPid===-1&&(r.audioPid=A,r.segmentAudioCodec="ac3"):N.log("AC-3 audio found, not supported in this browser");break;case 6:if(r.audioPid===-1&&l>0){let c=e+5,h=l;for(;h>2;){switch(s[c]){case 106:t.ac3!==!0?N.log("AC-3 audio found, not supported in this browser for now"):(r.audioPid=A,r.segmentAudioCodec="ac3");break}const d=s[c+1]+2;c+=d,h-=d}}break;case 194:case 135:N.warn("Unsupported EC-3 in M2TS found");break;case 36:N.warn("Unsupported HEVC in M2TS found");break}e+=l+5}return r}function Zo(s){N.log(`${s} with AES-128-CBC encryption found in unencrypted stream`)}function ps(s){let e=0,t,i,r,n,o;const a=s.data;if(!s||s.size===0)return null;for(;a[0].length<19&&a.length>1;)a[0]=Tt(a[0],a[1]),a.splice(1,1);if(t=a[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(i=(t[4]<<8)+t[5],i&&i>s.size-6)return null;const l=t[7];l&192&&(n=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,l&64?(o=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,n-o>54e5&&(N.warn(`${Math.round((n-o)/9e4)}s delta between PTS and DTS, align them`),n=o)):o=n),r=t[8];let c=r+9;if(s.size<=c)return null;s.size-=c;const h=new Uint8Array(s.size);for(let u=0,d=a.length;u<d;u++){t=a[u];let g=t.byteLength;if(c)if(c>g){c-=g;continue}else t=t.subarray(c),g-=c,c=0;h.set(t,e),e+=g}return i&&(i-=r+3),{data:h,pts:n,dts:o,len:i}}return null}class Dp extends qo{resetInitSegment(e,t,i,r){super.resetInitSegment(e,t,i,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=er(e,0);let i=(t==null?void 0:t.length)||0;if(t&&e[i]===11&&e[i+1]===119&&xo(t)!==void 0&&Mc(e,i)<=16)return!1;for(let r=e.length;i<r;i++)if(Nc(e,i))return N.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Cp(e,t)}appendFrame(e,t,i){if(this.basePTS!==null)return _c(e,t,i,this.basePTS,this.frameIndex)}}class Uc{static getSilentFrame(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===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(t===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]);break;default:if(t===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(t===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(t===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]);break}}}const Di=Math.pow(2,32)-1;class O{static init(){O.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:[]};let e;for(e in O.types)O.types.hasOwnProperty(e)&&(O.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=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]),i=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]);O.HDLR_TYPES={video:t,audio:i};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n=new Uint8Array([0,0,0,0,0,0,0,0]);O.STTS=O.STSC=O.STCO=n,O.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),O.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),O.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),O.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const o=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),A=new Uint8Array([0,0,0,1]);O.FTYP=O.box(O.types.ftyp,o,A,o,a),O.DINF=O.box(O.types.dinf,O.box(O.types.dref,r))}static box(e,...t){let i=8,r=t.length;const n=r;for(;r--;)i+=t[r].byteLength;const o=new Uint8Array(i);for(o[0]=i>>24&255,o[1]=i>>16&255,o[2]=i>>8&255,o[3]=i&255,o.set(e,4),r=0,i=8;r<n;r++)o.set(t[r],i),i+=t[r].byteLength;return o}static hdlr(e){return O.box(O.types.hdlr,O.HDLR_TYPES[e])}static mdat(e){return O.box(O.types.mdat,e)}static mdhd(e,t){t*=e;const i=Math.floor(t/(Di+1)),r=Math.floor(t%(Di+1));return O.box(O.types.mdhd,new Uint8Array([1,0,0,0,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,e&255,i>>24,i>>16&255,i>>8&255,i&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))}static mdia(e){return O.box(O.types.mdia,O.mdhd(e.timescale,e.duration),O.hdlr(e.type),O.minf(e))}static mfhd(e){return O.box(O.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?O.box(O.types.minf,O.box(O.types.smhd,O.SMHD),O.DINF,O.stbl(e)):O.box(O.types.minf,O.box(O.types.vmhd,O.VMHD),O.DINF,O.stbl(e))}static moof(e,t,i){return O.box(O.types.moof,O.mfhd(e),O.traf(i,t))}static moov(e){let t=e.length;const i=[];for(;t--;)i[t]=O.trak(e[t]);return O.box.apply(null,[O.types.moov,O.mvhd(e[0].timescale,e[0].duration)].concat(i).concat(O.mvex(e)))}static mvex(e){let t=e.length;const i=[];for(;t--;)i[t]=O.trex(e[t]);return O.box.apply(null,[O.types.mvex,...i])}static mvhd(e,t){t*=e;const i=Math.floor(t/(Di+1)),r=Math.floor(t%(Di+1)),n=new Uint8Array([1,0,0,0,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,e&255,i>>24,i>>16&255,i>>8&255,i&255,r>>24,r>>16&255,r>>8&255,r&255,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 O.box(O.types.mvhd,n)}static sdtp(e){const t=e.samples||[],i=new Uint8Array(4+t.length);let r,n;for(r=0;r<t.length;r++)n=t[r].flags,i[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return O.box(O.types.sdtp,i)}static stbl(e){return O.box(O.types.stbl,O.stsd(e),O.box(O.types.stts,O.STTS),O.box(O.types.stsc,O.STSC),O.box(O.types.stsz,O.STSZ),O.box(O.types.stco,O.STCO))}static avc1(e){let t=[],i=[],r,n,o;for(r=0;r<e.sps.length;r++)n=e.sps[r],o=n.byteLength,t.push(o>>>8&255),t.push(o&255),t=t.concat(Array.prototype.slice.call(n));for(r=0;r<e.pps.length;r++)n=e.pps[r],o=n.byteLength,i.push(o>>>8&255),i.push(o&255),i=i.concat(Array.prototype.slice.call(n));const a=O.box(O.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(i))),A=e.width,l=e.height,c=e.pixelRatio[0],h=e.pixelRatio[1];return O.box(O.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,A>>8&255,A&255,l>>8&255,l&255,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]),a,O.box(O.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),O.box(O.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,c&255,h>>24,h>>16&255,h>>8&255,h&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return O.box(O.types.mp4a,O.audioStsd(e),O.box(O.types.esds,O.esds(e)))}static mp3(e){return O.box(O.types[".mp3"],O.audioStsd(e))}static ac3(e){return O.box(O.types["ac-3"],O.audioStsd(e),O.box(O.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?O.box(O.types.stsd,O.STSD,O.mp3(e)):e.segmentCodec==="ac3"?O.box(O.types.stsd,O.STSD,O.ac3(e)):O.box(O.types.stsd,O.STSD,O.mp4a(e)):O.box(O.types.stsd,O.STSD,O.avc1(e))}static tkhd(e){const t=e.id,i=e.duration*e.timescale,r=e.width,n=e.height,o=Math.floor(i/(Di+1)),a=Math.floor(i%(Di+1));return O.box(O.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255,a>>24,a>>16&255,a>>8&255,a&255,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,r>>8&255,r&255,0,0,n>>8&255,n&255,0,0]))}static traf(e,t){const i=O.sdtp(e),r=e.id,n=Math.floor(t/(Di+1)),o=Math.floor(t%(Di+1));return O.box(O.types.traf,O.box(O.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),O.box(O.types.tfdt,new Uint8Array([1,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,o>>24,o>>16&255,o>>8&255,o&255])),O.trun(e,i.length+16+20+8+16+8+8),i)}static trak(e){return e.duration=e.duration||4294967295,O.box(O.types.trak,O.tkhd(e),O.mdia(e))}static trex(e){const t=e.id;return O.box(O.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const i=e.samples||[],r=i.length,n=12+16*r,o=new Uint8Array(n);let a,A,l,c,h,u;for(t+=8+n,o.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),a=0;a<r;a++)A=i[a],l=A.duration,c=A.size,h=A.flags,u=A.cts,o.set([l>>>24&255,l>>>16&255,l>>>8&255,l&255,c>>>24&255,c>>>16&255,c>>>8&255,c&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&61440,h.degradPrio&15,u>>>24&255,u>>>16&255,u>>>8&255,u&255],12+16*a);return O.box(O.types.trun,o)}static initSegment(e){O.types||O.init();const t=O.moov(e);return Tt(O.FTYP,t)}}O.types=void 0,O.HDLR_TYPES=void 0,O.STTS=void 0,O.STSC=void 0,O.STCO=void 0,O.STSZ=void 0,O.VMHD=void 0,O.SMHD=void 0,O.STSD=void 0,O.FTYP=void 0,O.DINF=void 0;const Gc=9e4;function ea(s,e,t=1,i=!1){const r=s*e*t;return i?Math.round(r):r}function Tp(s,e,t=1,i=!1){return ea(s,e,1/t,i)}function rr(s,e=!1){return ea(s,1e3,1/Gc,e)}function Lp(s,e=1){return ea(s,Gc,1/e)}const _p=10*1e3,Hc=1024,kp=1152,Fp=1536;let Es=null,ta=null;class pn{constructor(e,t,i,r=""){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,Es===null){const o=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Es=o?parseInt(o[1]):0}if(ta===null){const n=navigator.userAgent.match(/Safari\/(\d+)/i);ta=n?parseInt(n[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){N.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){N.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){N.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const i=e.reduce((r,n)=>{const o=n.pts-r;return o<-4294967296?(t=!0,Lt(r,n.pts)):o>0?r:n.pts},e[0].pts);return t&&N.debug("PTS rollover detected"),i}remux(e,t,i,r,n,o,a,A){let l,c,h,u,d,g,f=n,p=n;const y=e.pid>-1,v=t.pid>-1,S=t.samples.length,C=e.samples.length>0,Q=a&&S>0||S>1;if((!y||C)&&(!v||Q)||this.ISGenerated||a){if(this.ISGenerated){var _,D,G,F;const J=this.videoTrackConfig;J&&(t.width!==J.width||t.height!==J.height||((_=t.pixelRatio)==null?void 0:_[0])!==((D=J.pixelRatio)==null?void 0:D[0])||((G=t.pixelRatio)==null?void 0:G[1])!==((F=J.pixelRatio)==null?void 0:F[1]))&&this.resetInitSegment()}else h=this.generateIS(e,t,n,o);const H=this.isVideoContiguous;let j=-1,V;if(Q&&(j=Np(t.samples),!H&&this.config.forceKeyFrameOnDiscontinuity))if(g=!0,j>0){N.warn(`[mp4-remuxer]: Dropped ${j} out of ${S} video samples due to a missing keyframe`);const J=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(j),t.dropped+=j,p+=(t.samples[0].pts-J)/t.inputTimeScale,V=p}else j===-1&&(N.warn(`[mp4-remuxer]: No keyframe found out of ${S} video samples`),g=!1);if(this.ISGenerated){if(C&&Q){const J=this.getVideoStartPts(t.samples),R=(Lt(e.samples[0].pts,J)-J)/t.inputTimeScale;f+=Math.max(0,R),p+=Math.max(0,-R)}if(C){if(e.samplerate||(N.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(e,t,n,o)),c=this.remuxAudio(e,f,this.isAudioContiguous,o,v||Q||A===fe.AUDIO?p:void 0),Q){const J=c?c.endPTS-c.startPTS:0;t.inputTimeScale||(N.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(e,t,n,o)),l=this.remuxVideo(t,p,H,J)}}else Q&&(l=this.remuxVideo(t,p,H,0));l&&(l.firstKeyFrame=j,l.independent=j!==-1,l.firstKeyFramePTS=V)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(i.samples.length&&(d=$c(i,n,this._initPTS,this._initDTS)),r.samples.length&&(u=Yc(r,n,this._initPTS))),{audio:c,video:l,initSegment:h,independent:g,text:u,id3:d}}generateIS(e,t,i,r){const n=e.samples,o=t.samples,a=this.typeSupported,A={},l=this._initPTS;let c=!l||r,h="audio/mp4",u,d,g;if(c&&(u=d=1/0),e.config&&n.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":a.mpeg?(h="audio/mpeg",e.codec=""):a.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}A.audio={id:"audio",container:h,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&a.mpeg?new Uint8Array(0):O.initSegment([e]),metadata:{channelCount:e.channelCount}},c&&(g=e.inputTimeScale,!l||g!==l.timescale?u=d=n[0].pts-Math.round(g*i):c=!1)}if(t.sps&&t.pps&&o.length){if(t.timescale=t.inputTimeScale,A.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:O.initSegment([t]),metadata:{width:t.width,height:t.height}},c)if(g=t.inputTimeScale,!l||g!==l.timescale){const f=this.getVideoStartPts(o),p=Math.round(g*i);d=Math.min(d,Lt(o[0].dts,f)-p),u=Math.min(u,f-p)}else c=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(A).length)return this.ISGenerated=!0,c?(this._initPTS={baseTime:u,timescale:g},this._initDTS={baseTime:d,timescale:g}):u=g=void 0,{tracks:A,initPTS:u,timescale:g}}remuxVideo(e,t,i,r){const n=e.inputTimeScale,o=e.samples,a=[],A=o.length,l=this._initPTS;let c=this.nextAvcDts,h=8,u=this.videoSampleDuration,d,g,f=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY,y=!1;if(!i||c===null){const w=t*n,T=o[0].pts-Lt(o[0].dts,o[0].pts);Es&&c!==null&&Math.abs(w-T-c)<15e3?i=!0:c=w-T}const v=l.baseTime*n/l.timescale;for(let w=0;w<A;w++){const T=o[w];T.pts=Lt(T.pts-v,c),T.dts=Lt(T.dts-v,c),T.dts<o[w>0?w-1:w].dts&&(y=!0)}y&&o.sort(function(w,T){const K=w.dts-T.dts,M=w.pts-T.pts;return K||M}),d=o[0].dts,g=o[o.length-1].dts;const S=g-d,C=S?Math.round(S/(A-1)):u||e.inputTimeScale/30;if(i){const w=d-c,T=w>C,K=w<-1;if((T||K)&&(T?N.warn(`AVC: ${rr(w,!0)} ms (${w}dts) hole between fragments detected at ${t.toFixed(3)}`):N.warn(`AVC: ${rr(-w,!0)} ms (${w}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!K||c>=o[0].pts||Es)){d=c;const M=o[0].pts-w;if(T)o[0].dts=d,o[0].pts=M;else for(let q=0;q<o.length&&!(o[q].dts>M);q++)o[q].dts-=w,o[q].pts-=w;N.log(`Video: Initial PTS/DTS adjusted: ${rr(M,!0)}/${rr(d,!0)}, delta: ${rr(w,!0)} ms`)}}d=Math.max(0,d);let Q=0,B=0,_=d;for(let w=0;w<A;w++){const T=o[w],K=T.units,M=K.length;let q=0;for(let ie=0;ie<M;ie++)q+=K[ie].data.length;B+=q,Q+=M,T.length=q,T.dts<_?(T.dts=_,_+=C/4|0||1):_=T.dts,f=Math.min(T.pts,f),p=Math.max(T.pts,p)}g=o[A-1].dts;const D=B+4*Q+8;let G;try{G=new Uint8Array(D)}catch(w){this.observer.emit(E.ERROR,E.ERROR,{type:pe.MUX_ERROR,details:$.REMUX_ALLOC_ERROR,fatal:!1,error:w,bytes:D,reason:`fail allocating video mdat ${D}`});return}const F=new DataView(G.buffer);F.setUint32(0,D),G.set(O.types.mdat,4);let H=!1,j=Number.POSITIVE_INFINITY,V=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,b=Number.NEGATIVE_INFINITY;for(let w=0;w<A;w++){const T=o[w],K=T.units;let M=0;for(let ce=0,Ae=K.length;ce<Ae;ce++){const me=K[ce],Be=me.data,xe=me.data.byteLength;F.setUint32(h,xe),h+=4,G.set(Be,h),h+=xe,M+=4+xe}let q;if(w<A-1)u=o[w+1].dts-T.dts,q=o[w+1].pts-T.pts;else{const ce=this.config,Ae=w>0?T.dts-o[w-1].dts:C;if(q=w>0?T.pts-o[w-1].pts:C,ce.stretchShortVideoTrack&&this.nextAudioPts!==null){const me=Math.floor(ce.maxBufferHole*n),Be=(r?f+r*n:this.nextAudioPts)-T.pts;Be>me?(u=Be-Ae,u<0?u=Ae:H=!0,N.log(`[mp4-remuxer]: It is approximately ${Be/90} ms to the next segment; using duration ${u/90} ms for the last video frame.`)):u=Ae}else u=Ae}const ie=Math.round(T.pts-T.dts);j=Math.min(j,u),J=Math.max(J,u),V=Math.min(V,q),b=Math.max(b,q),a.push(new Kc(T.key,u,M,ie))}if(a.length){if(Es){if(Es<70){const w=a[0].flags;w.dependsOn=2,w.isNonSync=0}}else if(ta&&b-V<J-j&&C/J<.025&&a[0].cts===0){N.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let w=d;for(let T=0,K=a.length;T<K;T++){const M=w+a[T].duration,q=w+a[T].cts;if(T<K-1){const ie=M+a[T+1].cts;a[T].duration=ie-q}else a[T].duration=T?a[T-1].duration:C;a[T].cts=0,w=M}}}u=H||!u?C:u,this.nextAvcDts=c=g+u,this.videoSampleDuration=u,this.isVideoContiguous=!0;const x={data1:O.moof(e.sequenceNumber++,d,Ze({},e,{samples:a})),data2:G,startPTS:f/n,endPTS:(p+u)/n,startDTS:d/n,endDTS:c/n,type:"video",hasAudio:!1,hasVideo:!0,nb:a.length,dropped:e.dropped};return e.samples=[],e.dropped=0,x}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return kp;case"ac3":return Fp;default:return Hc}}remuxAudio(e,t,i,r,n){const o=e.inputTimeScale,a=e.samplerate?e.samplerate:o,A=o/a,l=this.getSamplesPerFrame(e),c=l*A,h=this._initPTS,u=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,d=[],g=n!==void 0;let f=e.samples,p=u?0:8,y=this.nextAudioPts||-1;const v=t*o,S=h.baseTime*o/h.timescale;if(this.isAudioContiguous=i=i||f.length&&y>0&&(r&&Math.abs(v-y)<9e3||Math.abs(Lt(f[0].pts-S,v)-y)<20*c),f.forEach(function(R){R.pts=Lt(R.pts-S,v)}),!i||y<0){if(f=f.filter(R=>R.pts>=0),!f.length)return;n===0?y=0:r&&!g?y=Math.max(0,v):y=f[0].pts}if(e.segmentCodec==="aac"){const R=this.config.maxAudioFramesDrift;for(let U=0,x=y;U<f.length;U++){const w=f[U],T=w.pts,K=T-x,M=Math.abs(1e3*K/o);if(K<=-R*c&&g)U===0&&(N.warn(`Audio frame @ ${(T/o).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*K/o)} ms.`),this.nextAudioPts=y=x=T);else if(K>=R*c&&M<_p&&g){let q=Math.round(K/c);x=T-q*c,x<0&&(q--,x+=c),U===0&&(this.nextAudioPts=y=x),N.warn(`[mp4-remuxer]: Injecting ${q} audio frame @ ${(x/o).toFixed(3)}s due to ${Math.round(1e3*K/o)} ms gap.`);for(let ie=0;ie<q;ie++){const ce=Math.max(x,0);let Ae=Uc.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);Ae||(N.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Ae=w.unit.subarray()),f.splice(U,0,{unit:Ae,pts:ce}),x+=c,U++}}w.pts=x,x+=c}}let C=null,Q=null,B,_=0,D=f.length;for(;D--;)_+=f[D].unit.byteLength;for(let R=0,U=f.length;R<U;R++){const x=f[R],w=x.unit;let T=x.pts;if(Q!==null){const M=d[R-1];M.duration=Math.round((T-Q)/A)}else if(i&&e.segmentCodec==="aac"&&(T=y),C=T,_>0){_+=p;try{B=new Uint8Array(_)}catch(M){this.observer.emit(E.ERROR,E.ERROR,{type:pe.MUX_ERROR,details:$.REMUX_ALLOC_ERROR,fatal:!1,error:M,bytes:_,reason:`fail allocating audio mdat ${_}`});return}u||(new DataView(B.buffer).setUint32(0,_),B.set(O.types.mdat,4))}else return;B.set(w,p);const K=w.byteLength;p+=K,d.push(new Kc(!0,l,K,0)),Q=T}const G=d.length;if(!G)return;const F=d[d.length-1];this.nextAudioPts=y=Q+A*F.duration;const H=u?new Uint8Array(0):O.moof(e.sequenceNumber++,C/A,Ze({},e,{samples:d}));e.samples=[];const j=C/o,V=y/o,b={data1:H,data2:B,startPTS:j,endPTS:V,startDTS:j,endDTS:V,type:"audio",hasAudio:!0,hasVideo:!1,nb:G};return this.isAudioContiguous=!0,b}remuxEmptyAudio(e,t,i,r){const n=e.inputTimeScale,o=e.samplerate?e.samplerate:n,a=n/o,A=this.nextAudioPts,l=this._initDTS,c=l.baseTime*9e4/l.timescale,h=(A!==null?A:r.startDTS*n)+c,u=r.endDTS*n+c,d=a*Hc,g=Math.ceil((u-h)/d),f=Uc.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(N.warn("[mp4-remuxer]: remux empty Audio"),!f){N.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const p=[];for(let y=0;y<g;y++){const v=h+y*d;p.push({unit:f,pts:v,dts:v})}return e.samples=p,this.remuxAudio(e,t,i,!1)}}function Lt(s,e){let t;if(e===null)return s;for(e<s?t=-8589934592:t=8589934592;Math.abs(s-e)>4294967296;)s+=t;return s}function Np(s){for(let e=0;e<s.length;e++)if(s[e].key)return e;return-1}function $c(s,e,t,i){const r=s.samples.length;if(!r)return;const n=s.inputTimeScale;for(let a=0;a<r;a++){const A=s.samples[a];A.pts=Lt(A.pts-t.baseTime*n/t.timescale,e*n)/n,A.dts=Lt(A.dts-i.baseTime*n/i.timescale,e*n)/n}const o=s.samples;return s.samples=[],{samples:o}}function Yc(s,e,t){const i=s.samples.length;if(!i)return;const r=s.inputTimeScale;for(let o=0;o<i;o++){const a=s.samples[o];a.pts=Lt(a.pts-t.baseTime*r/t.timescale,e*r)/r}s.samples.sort((o,a)=>o.pts-a.pts);const n=s.samples;return s.samples=[],{samples:n}}class Kc{constructor(e,t,i,r){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=i,this.cts=r,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class Mp{constructor(){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}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,i,r){this.audioCodec=t,this.videoCodec=i,this.generateInitSegment(Kf(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:i}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const r=this.initData=Pl(e);r.audio&&(t=Vc(r.audio,Fe.AUDIO)),r.video&&(i=Vc(r.video,Fe.VIDEO));const n={};r.audio&&r.video?n.audiovideo={container:"video/mp4",codec:t+","+i,initSegment:e,id:"main"}:r.audio?n.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?n.video={container:"video/mp4",codec:i,initSegment:e,id:"main"}:N.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=n}remux(e,t,i,r,n,o){var a,A;let{initPTS:l,lastEndTime:c}=this;const h={audio:void 0,video:void 0,text:r,id3:i,initSegment:void 0};oe(c)||(c=this.lastEndTime=n||0);const u=t.samples;if(!(u!=null&&u.length))return h;const d={initPTS:void 0,timescale:1};let g=this.initData;if((a=g)!=null&&a.length||(this.generateInitSegment(u),g=this.initData),!((A=g)!=null&&A.length))return N.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),h;this.emitInitSegment&&(d.tracks=this.initTracks,this.emitInitSegment=!1);const f=Jf(u,g),p=Vf(g,u),y=p===null?n:p;(Op(l,y,n,f)||d.timescale!==l.timescale&&o)&&(d.initPTS=y-n,l&&l.timescale===1&&N.warn(`Adjusting initPTS by ${d.initPTS-l.baseTime}`),this.initPTS=l={baseTime:d.initPTS,timescale:1});const v=e?y-l.baseTime/l.timescale:c,S=v+f;qf(g,u,l.baseTime/l.timescale),f>0?this.lastEndTime=S:(N.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const C=!!g.audio,Q=!!g.video;let B="";C&&(B+="audio"),Q&&(B+="video");const _={data1:u,startPTS:v,startDTS:v,endPTS:S,endDTS:S,type:B,hasAudio:C,hasVideo:Q,nb:1,dropped:0};return h.audio=_.type==="audio"?_:void 0,h.video=_.type!=="audio"?_:void 0,h.initSegment=d,h.id3=$c(i,n,l,l),r.samples.length&&(h.text=Yc(r,n,l)),h}}function Op(s,e,t,i){if(s===null)return!0;const r=Math.max(i,1),n=e-s.baseTime/s.timescale;return Math.abs(n-t)>r}function Vc(s,e){const t=s==null?void 0:s.codec;if(t&&t.length>4)return t;if(e===Fe.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return sn(t,!1);const i="mp4a.40.5";return N.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${i}"`),i}return N.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let Ei;try{Ei=self.performance.now.bind(self.performance)}catch{N.debug("Unable to use Performance API on this environment"),Ei=As==null?void 0:As.Date.now}const En=[{demux:Bp,remux:Mp},{demux:xi,remux:pn},{demux:yp,remux:pn},{demux:Dp,remux:pn}];En.splice(2,0,{demux:Qp,remux:pn});class Jc{constructor(e,t,i,r,n){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=r,this.id=n}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,i,r){const n=i.transmuxing;n.executeStart=Ei();let o=new Uint8Array(e);const{currentTransmuxState:a,transmuxConfig:A}=this;r&&(this.currentTransmuxState=r);const{contiguous:l,discontinuity:c,trackSwitch:h,accurateTimeOffset:u,timeOffset:d,initSegmentChange:g}=r||a,{audioCodec:f,videoCodec:p,defaultInitPts:y,duration:v,initSegmentData:S}=A,C=Pp(o,t);if(C&&C.method==="AES-128"){const D=this.getDecrypter();if(D.isSync()){let G=D.softwareDecrypt(o,C.key.buffer,C.iv.buffer);if(i.part>-1&&(G=D.flush()),!G)return n.executeEnd=Ei(),ia(i);o=new Uint8Array(G)}else return this.decryptionPromise=D.webCryptoDecrypt(o,C.key.buffer,C.iv.buffer).then(G=>{const F=this.push(G,null,i);return this.decryptionPromise=null,F}),this.decryptionPromise}const Q=this.needsProbing(c,h);if(Q){const D=this.configureTransmuxer(o);if(D)return N.warn(`[transmuxer] ${D.message}`),this.observer.emit(E.ERROR,E.ERROR,{type:pe.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!1,error:D,reason:D.message}),n.executeEnd=Ei(),ia(i)}(c||h||g||Q)&&this.resetInitSegment(S,f,p,v,t),(c||g||Q)&&this.resetInitialTimestamp(y),l||this.resetContiguity();const B=this.transmux(o,C,d,u,i),_=this.currentTransmuxState;return _.contiguous=!0,_.discontinuity=!1,_.trackSwitch=!1,n.executeEnd=Ei(),B}flush(e){const t=e.transmuxing;t.executeStart=Ei();const{decrypter:i,currentTransmuxState:r,decryptionPromise:n}=this;if(n)return n.then(()=>this.flush(e));const o=[],{timeOffset:a}=r;if(i){const h=i.flush();h&&o.push(this.push(h,null,e))}const{demuxer:A,remuxer:l}=this;if(!A||!l)return t.executeEnd=Ei(),[ia(e)];const c=A.flush(a);return In(c)?c.then(h=>(this.flushRemux(o,h,e),o)):(this.flushRemux(o,c,e),o)}flushRemux(e,t,i){const{audioTrack:r,videoTrack:n,id3Track:o,textTrack:a}=t,{accurateTimeOffset:A,timeOffset:l}=this.currentTransmuxState;N.log(`[transmuxer.ts]: Flushed fragment ${i.sn}${i.part>-1?" p: "+i.part:""} of level ${i.level}`);const c=this.remuxer.remux(r,n,o,a,l,A,!0,this.id);e.push({remuxResult:c,chunkMeta:i}),i.transmuxing.executeEnd=Ei()}resetInitialTimestamp(e){const{demuxer:t,remuxer:i}=this;!t||!i||(t.resetTimeStamp(e),i.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,i,r,n){const{demuxer:o,remuxer:a}=this;!o||!a||(o.resetInitSegment(e,t,i,r),a.resetInitSegment(e,t,i,n))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,i,r,n){let o;return t&&t.method==="SAMPLE-AES"?o=this.transmuxSampleAes(e,t,i,r,n):o=this.transmuxUnencrypted(e,i,r,n),o}transmuxUnencrypted(e,t,i,r){const{audioTrack:n,videoTrack:o,id3Track:a,textTrack:A}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(n,o,a,A,t,i,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,i,r,n){return this.demuxer.demuxSampleAes(e,t,i).then(o=>({remuxResult:this.remuxer.remux(o.audioTrack,o.videoTrack,o.id3Track,o.textTrack,i,r,!1,this.id),chunkMeta:n}))}configureTransmuxer(e){const{config:t,observer:i,typeSupported:r,vendor:n}=this;let o;for(let u=0,d=En.length;u<d;u++){var a;if((a=En[u].demux)!=null&&a.probe(e)){o=En[u];break}}if(!o)return new Error("Failed to find demuxer by probing fragment data");const A=this.demuxer,l=this.remuxer,c=o.remux,h=o.demux;(!l||!(l instanceof c))&&(this.remuxer=new c(i,t,r,n)),(!A||!(A instanceof h))&&(this.demuxer=new h(i,t,r),this.probe=h.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Jo(this.config)),e}}function Pp(s,e){let t=null;return s.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const ia=s=>({remuxResult:{},chunkMeta:s});function In(s){return"then"in s&&s.then instanceof Function}class Up{constructor(e,t,i,r,n){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=i,this.duration=r,this.defaultInitPts=n||null}}class Gp{constructor(e,t,i,r,n,o){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=e,this.contiguous=t,this.accurateTimeOffset=i,this.trackSwitch=r,this.timeOffset=n,this.initSegmentChange=o}}var Wc={exports:{}};(function(s){var e=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function r(A,l,c){this.fn=A,this.context=l,this.once=c||!1}function n(A,l,c,h,u){if(typeof c!="function")throw new TypeError("The listener must be a function");var d=new r(c,h||A,u),g=t?t+l:l;return A._events[g]?A._events[g].fn?A._events[g]=[A._events[g],d]:A._events[g].push(d):(A._events[g]=d,A._eventsCount++),A}function o(A,l){--A._eventsCount===0?A._events=new i:delete A._events[l]}function a(){this._events=new i,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],c,h;if(this._eventsCount===0)return l;for(h in c=this._events)e.call(c,h)&&l.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},a.prototype.listeners=function(l){var c=t?t+l:l,h=this._events[c];if(!h)return[];if(h.fn)return[h.fn];for(var u=0,d=h.length,g=new Array(d);u<d;u++)g[u]=h[u].fn;return g},a.prototype.listenerCount=function(l){var c=t?t+l:l,h=this._events[c];return h?h.fn?1:h.length:0},a.prototype.emit=function(l,c,h,u,d,g){var f=t?t+l:l;if(!this._events[f])return!1;var p=this._events[f],y=arguments.length,v,S;if(p.fn){switch(p.once&&this.removeListener(l,p.fn,void 0,!0),y){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,c),!0;case 3:return p.fn.call(p.context,c,h),!0;case 4:return p.fn.call(p.context,c,h,u),!0;case 5:return p.fn.call(p.context,c,h,u,d),!0;case 6:return p.fn.call(p.context,c,h,u,d,g),!0}for(S=1,v=new Array(y-1);S<y;S++)v[S-1]=arguments[S];p.fn.apply(p.context,v)}else{var C=p.length,Q;for(S=0;S<C;S++)switch(p[S].once&&this.removeListener(l,p[S].fn,void 0,!0),y){case 1:p[S].fn.call(p[S].context);break;case 2:p[S].fn.call(p[S].context,c);break;case 3:p[S].fn.call(p[S].context,c,h);break;case 4:p[S].fn.call(p[S].context,c,h,u);break;default:if(!v)for(Q=1,v=new Array(y-1);Q<y;Q++)v[Q-1]=arguments[Q];p[S].fn.apply(p[S].context,v)}}return!0},a.prototype.on=function(l,c,h){return n(this,l,c,h,!1)},a.prototype.once=function(l,c,h){return n(this,l,c,h,!0)},a.prototype.removeListener=function(l,c,h,u){var d=t?t+l:l;if(!this._events[d])return this;if(!c)return o(this,d),this;var g=this._events[d];if(g.fn)g.fn===c&&(!u||g.once)&&(!h||g.context===h)&&o(this,d);else{for(var f=0,p=[],y=g.length;f<y;f++)(g[f].fn!==c||u&&!g[f].once||h&&g[f].context!==h)&&p.push(g[f]);p.length?this._events[d]=p.length===1?p[0]:p:o(this,d)}return this},a.prototype.removeAllListeners=function(l){var c;return l?(c=t?t+l:l,this._events[c]&&o(this,c)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=t,a.EventEmitter=a,s.exports=a})(Wc);var Hp=Wc.exports,sa=uf(Hp);class qc{constructor(e,t,i,r){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;const n=e.config;this.hls=e,this.id=t,this.useWorker=!!n.enableWorker,this.onTransmuxComplete=i,this.onFlush=r;const o=(c,h)=>{h=h||{},h.frag=this.frag,h.id=this.id,c===E.ERROR&&(this.error=h.error),this.hls.trigger(c,h)};this.observer=new sa,this.observer.on(E.FRAG_DECRYPTED,o),this.observer.on(E.ERROR,o);const a=ls(n.preferManagedMediaSource)||{isTypeSupported:()=>!1},A={mpeg:a.isTypeSupported("audio/mpeg"),mp3:a.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:a.isTypeSupported('audio/mp4; codecs="ac-3"')},l=navigator.vendor;if(this.useWorker&&typeof Worker<"u"&&(n.workerPath||ap())){try{n.workerPath?(N.log(`loading Web Worker ${n.workerPath} for "${t}"`),this.workerContext=lp(n.workerPath)):(N.log(`injecting Web Worker for "${t}"`),this.workerContext=Ap()),this.onwmsg=u=>this.onWorkerMessage(u);const{worker:h}=this.workerContext;h.addEventListener("message",this.onwmsg),h.onerror=u=>{const d=new Error(`${u.message} (${u.filename}:${u.lineno})`);n.enableWorker=!1,N.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(E.ERROR,{type:pe.OTHER_ERROR,details:$.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:d})},h.postMessage({cmd:"init",typeSupported:A,vendor:l,id:t,config:JSON.stringify(n)})}catch(h){N.warn(`Error setting up "${t}" Web Worker, fallback to inline`,h),this.resetWorker(),this.error=null,this.transmuxer=new Jc(this.observer,A,n,l,t)}return}this.transmuxer=new Jc(this.observer,A,n,l,t)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:t}=this.workerContext;t&&self.URL.revokeObjectURL(t),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,t,i,r,n,o,a,A,l,c){var h,u;l.transmuxing.start=self.performance.now();const{transmuxer:d}=this,g=o?o.start:n.start,f=n.decryptdata,p=this.frag,y=!(p&&n.cc===p.cc),v=!(p&&l.level===p.level),S=p?l.sn-p.sn:-1,C=this.part?l.part-this.part.index:-1,Q=S===0&&l.id>1&&l.id===(p==null?void 0:p.stats.chunkCount),B=!v&&(S===1||S===0&&(C===1||Q&&C<=0)),_=self.performance.now();(v||S||n.stats.parsing.start===0)&&(n.stats.parsing.start=_),o&&(C||!B)&&(o.stats.parsing.start=_);const D=!(p&&((h=n.initSegment)==null?void 0:h.url)===((u=p.initSegment)==null?void 0:u.url)),G=new Gp(y,B,A,v,g,D);if(!B||y||D){N.log(`[transmuxer-interface, ${n.type}]: Starting new transmux session for sn: ${l.sn} p: ${l.part} level: ${l.level} id: ${l.id}
165
165
  discontinuity: ${y}
166
166
  trackSwitch: ${v}
167
167
  contiguous: ${B}
@@ -183,7 +183,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
183
183
  * @license
184
184
  * Copyright 2017 Google LLC
185
185
  * SPDX-License-Identifier: BSD-3-Clause
186
- */const Mh=(s,e,t)=>{const i=new Map;for(let r=e;r<=t;r++)i.set(s[r],r);return i},Oh=ns(class extends $s{constructor(s){if(super(s),s.type!==rs.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);const r=[],n=[];let o=0;for(const a of s)r[o]=i?i(a,o):o,n[o]=t(a,o),o++;return{values:n,keys:r}}render(s,e,t){return this.dt(s,e,t).values}update(s,[e,t,i]){const r=hd(s),{values:n,keys:o}=this.dt(e,t,i);if(!Array.isArray(r))return this.ut=o,n;const a=this.ut??(this.ut=[]),A=[];let l,c,h=0,u=r.length-1,d=0,g=n.length-1;for(;h<=u&&d<=g;)if(r[h]===null)h++;else if(r[u]===null)u--;else if(a[h]===o[d])A[d]=Pi(r[h],n[d]),h++,d++;else if(a[u]===o[g])A[g]=Pi(r[u],n[g]),u--,g--;else if(a[h]===o[g])A[g]=Pi(r[h],n[g]),Hs(s,A[g+1],r[h]),h++,g--;else if(a[u]===o[d])A[d]=Pi(r[u],n[d]),Hs(s,r[h],r[u]),u--,d++;else if(l===void 0&&(l=Mh(o,d,g),c=Mh(a,h,u)),l.has(a[h]))if(l.has(a[u])){const f=c.get(o[d]),p=f!==void 0?r[f]:null;if(p===null){const y=Hs(s,r[h]);Pi(y,n[d]),A[d]=y}else A[d]=Pi(p,n[d]),Hs(s,r[h],p),r[f]=null;d++}else qn(r[u]),u--;else qn(r[h]),h++;for(;d<=g;){const f=Hs(s,A[g+1]);Pi(f,n[d]),A[d++]=f}for(;h<=u;){const f=r[h++];f!==null&&qn(f)}return this.ut=o,cd(s,A),Ot}});var wt="top",kt="bottom",Ft="right",Rt="left",va="auto",nr=[wt,kt,Ft,Rt],vs="start",or="end",FI="clippingParents",Ph="viewport",ar="popper",NI="reference",Uh=nr.reduce(function(s,e){return s.concat([e+"-"+vs,e+"-"+or])},[]),Gh=[].concat(nr,[va]).reduce(function(s,e){return s.concat([e,e+"-"+vs,e+"-"+or])},[]),MI="beforeRead",OI="read",PI="afterRead",UI="beforeMain",GI="main",HI="afterMain",$I="beforeWrite",YI="write",KI="afterWrite",VI=[MI,OI,PI,UI,GI,HI,$I,YI,KI];function ti(s){return s?(s.nodeName||"").toLowerCase():null}function xt(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var e=s.ownerDocument;return e&&e.defaultView||window}return s}function Wi(s){var e=xt(s).Element;return s instanceof e||s instanceof Element}function Nt(s){var e=xt(s).HTMLElement;return s instanceof e||s instanceof HTMLElement}function Ba(s){if(typeof ShadowRoot>"u")return!1;var e=xt(s).ShadowRoot;return s instanceof e||s instanceof ShadowRoot}function JI(s){var e=s.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},n=e.elements[t];!Nt(n)||!ti(n)||(Object.assign(n.style,i),Object.keys(r).forEach(function(o){var a=r[o];a===!1?n.removeAttribute(o):n.setAttribute(o,a===!0?"":a)}))})}function WI(s){var e=s.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],n=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=o.reduce(function(A,l){return A[l]="",A},{});!Nt(r)||!ti(r)||(Object.assign(r.style,a),Object.keys(n).forEach(function(A){r.removeAttribute(A)}))})}}const Hh={name:"applyStyles",enabled:!0,phase:"write",fn:JI,effect:WI,requires:["computeStyles"]};function ii(s){return s.split("-")[0]}var qi=Math.max,Sn=Math.min,Bs=Math.round;function Qa(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $h(){return!/^((?!chrome|android).)*safari/i.test(Qa())}function Qs(s,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=s.getBoundingClientRect(),r=1,n=1;e&&Nt(s)&&(r=s.offsetWidth>0&&Bs(i.width)/s.offsetWidth||1,n=s.offsetHeight>0&&Bs(i.height)/s.offsetHeight||1);var o=Wi(s)?xt(s):window,a=o.visualViewport,A=!$h()&&t,l=(i.left+(A&&a?a.offsetLeft:0))/r,c=(i.top+(A&&a?a.offsetTop:0))/n,h=i.width/r,u=i.height/n;return{width:h,height:u,top:c,right:l+h,bottom:c+u,left:l,x:l,y:c}}function Sa(s){var e=Qs(s),t=s.offsetWidth,i=s.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:s.offsetLeft,y:s.offsetTop,width:t,height:i}}function Yh(s,e){var t=e.getRootNode&&e.getRootNode();if(s.contains(e))return!0;if(t&&Ba(t)){var i=e;do{if(i&&s.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ci(s){return xt(s).getComputedStyle(s)}function qI(s){return["table","td","th"].indexOf(ti(s))>=0}function Di(s){return((Wi(s)?s.ownerDocument:s.document)||window.document).documentElement}function bn(s){return ti(s)==="html"?s:s.assignedSlot||s.parentNode||(Ba(s)?s.host:null)||Di(s)}function Kh(s){return!Nt(s)||Ci(s).position==="fixed"?null:s.offsetParent}function jI(s){var e=/firefox/i.test(Qa()),t=/Trident/i.test(Qa());if(t&&Nt(s)){var i=Ci(s);if(i.position==="fixed")return null}var r=bn(s);for(Ba(r)&&(r=r.host);Nt(r)&&["html","body"].indexOf(ti(r))<0;){var n=Ci(r);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||e&&n.willChange==="filter"||e&&n.filter&&n.filter!=="none")return r;r=r.parentNode}return null}function Ar(s){for(var e=xt(s),t=Kh(s);t&&qI(t)&&Ci(t).position==="static";)t=Kh(t);return t&&(ti(t)==="html"||ti(t)==="body"&&Ci(t).position==="static")?e:t||jI(s)||e}function ba(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function lr(s,e,t){return qi(s,Sn(e,t))}function XI(s,e,t){var i=lr(s,e,t);return i>t?t:i}function Vh(){return{top:0,right:0,bottom:0,left:0}}function Jh(s){return Object.assign({},Vh(),s)}function Wh(s,e){return e.reduce(function(t,i){return t[i]=s,t},{})}var zI=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Jh(typeof e!="number"?e:Wh(e,nr))};function ZI(s){var e,t=s.state,i=s.name,r=s.options,n=t.elements.arrow,o=t.modifiersData.popperOffsets,a=ii(t.placement),A=ba(a),l=[Rt,Ft].indexOf(a)>=0,c=l?"height":"width";if(!(!n||!o)){var h=zI(r.padding,t),u=Sa(n),d=A==="y"?wt:Rt,g=A==="y"?kt:Ft,f=t.rects.reference[c]+t.rects.reference[A]-o[A]-t.rects.popper[c],p=o[A]-t.rects.reference[A],y=Ar(n),v=y?A==="y"?y.clientHeight||0:y.clientWidth||0:0,S=f/2-p/2,C=h[d],Q=v-u[c]-h[g],B=v/2-u[c]/2+S,_=lr(C,B,Q),D=A;t.modifiersData[i]=(e={},e[D]=_,e.centerOffset=_-B,e)}}function em(s){var e=s.state,t=s.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Yh(e.elements.popper,r)&&(e.elements.arrow=r))}const tm={name:"arrow",enabled:!0,phase:"main",fn:ZI,effect:em,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ss(s){return s.split("-")[1]}var im={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sm(s,e){var t=s.x,i=s.y,r=e.devicePixelRatio||1;return{x:Bs(t*r)/r||0,y:Bs(i*r)/r||0}}function qh(s){var e,t=s.popper,i=s.popperRect,r=s.placement,n=s.variation,o=s.offsets,a=s.position,A=s.gpuAcceleration,l=s.adaptive,c=s.roundOffsets,h=s.isFixed,u=o.x,d=u===void 0?0:u,g=o.y,f=g===void 0?0:g,p=typeof c=="function"?c({x:d,y:f}):{x:d,y:f};d=p.x,f=p.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),S=Rt,C=wt,Q=window;if(l){var B=Ar(t),_="clientHeight",D="clientWidth";if(B===xt(t)&&(B=Di(t),Ci(B).position!=="static"&&a==="absolute"&&(_="scrollHeight",D="scrollWidth")),B=B,r===wt||(r===Rt||r===Ft)&&n===or){C=kt;var G=h&&B===Q&&Q.visualViewport?Q.visualViewport.height:B[_];f-=G-i.height,f*=A?1:-1}if(r===Rt||(r===wt||r===kt)&&n===or){S=Ft;var F=h&&B===Q&&Q.visualViewport?Q.visualViewport.width:B[D];d-=F-i.width,d*=A?1:-1}}var H=Object.assign({position:a},l&&im),j=c===!0?sm({x:d,y:f},xt(t)):{x:d,y:f};if(d=j.x,f=j.y,A){var V;return Object.assign({},H,(V={},V[C]=v?"0":"",V[S]=y?"0":"",V.transform=(Q.devicePixelRatio||1)<=1?"translate("+d+"px, "+f+"px)":"translate3d("+d+"px, "+f+"px, 0)",V))}return Object.assign({},H,(e={},e[C]=v?f+"px":"",e[S]=y?d+"px":"",e.transform="",e))}function rm(s){var e=s.state,t=s.options,i=t.gpuAcceleration,r=i===void 0?!0:i,n=t.adaptive,o=n===void 0?!0:n,a=t.roundOffsets,A=a===void 0?!0:a,l={placement:ii(e.placement),variation:Ss(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,qh(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:A})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,qh(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:A})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const nm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rm,data:{}};var wn={passive:!0};function om(s){var e=s.state,t=s.instance,i=s.options,r=i.scroll,n=r===void 0?!0:r,o=i.resize,a=o===void 0?!0:o,A=xt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return n&&l.forEach(function(c){c.addEventListener("scroll",t.update,wn)}),a&&A.addEventListener("resize",t.update,wn),function(){n&&l.forEach(function(c){c.removeEventListener("scroll",t.update,wn)}),a&&A.removeEventListener("resize",t.update,wn)}}const am={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:om,data:{}};var Am={left:"right",right:"left",bottom:"top",top:"bottom"};function Rn(s){return s.replace(/left|right|bottom|top/g,function(e){return Am[e]})}var lm={start:"end",end:"start"};function jh(s){return s.replace(/start|end/g,function(e){return lm[e]})}function wa(s){var e=xt(s),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Ra(s){return Qs(Di(s)).left+wa(s).scrollLeft}function cm(s,e){var t=xt(s),i=Di(s),r=t.visualViewport,n=i.clientWidth,o=i.clientHeight,a=0,A=0;if(r){n=r.width,o=r.height;var l=$h();(l||!l&&e==="fixed")&&(a=r.offsetLeft,A=r.offsetTop)}return{width:n,height:o,x:a+Ra(s),y:A}}function hm(s){var e,t=Di(s),i=wa(s),r=(e=s.ownerDocument)==null?void 0:e.body,n=qi(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=qi(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+Ra(s),A=-i.scrollTop;return Ci(r||t).direction==="rtl"&&(a+=qi(t.clientWidth,r?r.clientWidth:0)-n),{width:n,height:o,x:a,y:A}}function xa(s){var e=Ci(s),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function Xh(s){return["html","body","#document"].indexOf(ti(s))>=0?s.ownerDocument.body:Nt(s)&&xa(s)?s:Xh(bn(s))}function cr(s,e){var t;e===void 0&&(e=[]);var i=Xh(s),r=i===((t=s.ownerDocument)==null?void 0:t.body),n=xt(i),o=r?[n].concat(n.visualViewport||[],xa(i)?i:[]):i,a=e.concat(o);return r?a:a.concat(cr(bn(o)))}function Da(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function um(s,e){var t=Qs(s,!1,e==="fixed");return t.top=t.top+s.clientTop,t.left=t.left+s.clientLeft,t.bottom=t.top+s.clientHeight,t.right=t.left+s.clientWidth,t.width=s.clientWidth,t.height=s.clientHeight,t.x=t.left,t.y=t.top,t}function zh(s,e,t){return e===Ph?Da(cm(s,t)):Wi(e)?um(e,t):Da(hm(Di(s)))}function dm(s){var e=cr(bn(s)),t=["absolute","fixed"].indexOf(Ci(s).position)>=0,i=t&&Nt(s)?Ar(s):s;return Wi(i)?e.filter(function(r){return Wi(r)&&Yh(r,i)&&ti(r)!=="body"}):[]}function gm(s,e,t,i){var r=e==="clippingParents"?dm(s):[].concat(e),n=[].concat(r,[t]),o=n[0],a=n.reduce(function(A,l){var c=zh(s,l,i);return A.top=qi(c.top,A.top),A.right=Sn(c.right,A.right),A.bottom=Sn(c.bottom,A.bottom),A.left=qi(c.left,A.left),A},zh(s,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Zh(s){var e=s.reference,t=s.element,i=s.placement,r=i?ii(i):null,n=i?Ss(i):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,A;switch(r){case wt:A={x:o,y:e.y-t.height};break;case kt:A={x:o,y:e.y+e.height};break;case Ft:A={x:e.x+e.width,y:a};break;case Rt:A={x:e.x-t.width,y:a};break;default:A={x:e.x,y:e.y}}var l=r?ba(r):null;if(l!=null){var c=l==="y"?"height":"width";switch(n){case vs:A[l]=A[l]-(e[c]/2-t[c]/2);break;case or:A[l]=A[l]+(e[c]/2-t[c]/2);break}}return A}function hr(s,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?s.placement:i,n=t.strategy,o=n===void 0?s.strategy:n,a=t.boundary,A=a===void 0?FI:a,l=t.rootBoundary,c=l===void 0?Ph:l,h=t.elementContext,u=h===void 0?ar:h,d=t.altBoundary,g=d===void 0?!1:d,f=t.padding,p=f===void 0?0:f,y=Jh(typeof p!="number"?p:Wh(p,nr)),v=u===ar?NI:ar,S=s.rects.popper,C=s.elements[g?v:u],Q=gm(Wi(C)?C:C.contextElement||Di(s.elements.popper),A,c,o),B=Qs(s.elements.reference),_=Zh({reference:B,element:S,strategy:"absolute",placement:r}),D=Da(Object.assign({},S,_)),G=u===ar?D:B,F={top:Q.top-G.top+y.top,bottom:G.bottom-Q.bottom+y.bottom,left:Q.left-G.left+y.left,right:G.right-Q.right+y.right},H=s.modifiersData.offset;if(u===ar&&H){var j=H[r];Object.keys(F).forEach(function(V){var J=[Ft,kt].indexOf(V)>=0?1:-1,b=[wt,kt].indexOf(V)>=0?"y":"x";F[V]+=j[b]*J})}return F}function fm(s,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,n=t.rootBoundary,o=t.padding,a=t.flipVariations,A=t.allowedAutoPlacements,l=A===void 0?Gh:A,c=Ss(i),h=c?a?Uh:Uh.filter(function(g){return Ss(g)===c}):nr,u=h.filter(function(g){return l.indexOf(g)>=0});u.length===0&&(u=h);var d=u.reduce(function(g,f){return g[f]=hr(s,{placement:f,boundary:r,rootBoundary:n,padding:o})[ii(f)],g},{});return Object.keys(d).sort(function(g,f){return d[g]-d[f]})}function pm(s){if(ii(s)===va)return[];var e=Rn(s);return[jh(s),e,jh(e)]}function Em(s){var e=s.state,t=s.options,i=s.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,n=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!0:o,A=t.fallbackPlacements,l=t.padding,c=t.boundary,h=t.rootBoundary,u=t.altBoundary,d=t.flipVariations,g=d===void 0?!0:d,f=t.allowedAutoPlacements,p=e.options.placement,y=ii(p),v=y===p,S=A||(v||!g?[Rn(p)]:pm(p)),C=[p].concat(S).reduce(function(ie,ce){return ie.concat(ii(ce)===va?fm(e,{placement:ce,boundary:c,rootBoundary:h,padding:l,flipVariations:g,allowedAutoPlacements:f}):ce)},[]),Q=e.rects.reference,B=e.rects.popper,_=new Map,D=!0,G=C[0],F=0;F<C.length;F++){var H=C[F],j=ii(H),V=Ss(H)===vs,J=[wt,kt].indexOf(j)>=0,b=J?"width":"height",R=hr(e,{placement:H,boundary:c,rootBoundary:h,altBoundary:u,padding:l}),U=J?V?Ft:Rt:V?kt:wt;Q[b]>B[b]&&(U=Rn(U));var x=Rn(U),w=[];if(n&&w.push(R[j]<=0),a&&w.push(R[U]<=0,R[x]<=0),w.every(function(ie){return ie})){G=H,D=!1;break}_.set(H,w)}if(D)for(var T=g?3:1,K=function(ce){var Ae=C.find(function(me){var Be=_.get(me);if(Be)return Be.slice(0,ce).every(function(xe){return xe})});if(Ae)return G=Ae,"break"},M=T;M>0;M--){var q=K(M);if(q==="break")break}e.placement!==G&&(e.modifiersData[i]._skip=!0,e.placement=G,e.reset=!0)}}const Im={name:"flip",enabled:!0,phase:"main",fn:Em,requiresIfExists:["offset"],data:{_skip:!1}};function eu(s,e,t){return t===void 0&&(t={x:0,y:0}),{top:s.top-e.height-t.y,right:s.right-e.width+t.x,bottom:s.bottom-e.height+t.y,left:s.left-e.width-t.x}}function tu(s){return[wt,Ft,kt,Rt].some(function(e){return s[e]>=0})}function mm(s){var e=s.state,t=s.name,i=e.rects.reference,r=e.rects.popper,n=e.modifiersData.preventOverflow,o=hr(e,{elementContext:"reference"}),a=hr(e,{altBoundary:!0}),A=eu(o,i),l=eu(a,r,n),c=tu(A),h=tu(l);e.modifiersData[t]={referenceClippingOffsets:A,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}const Cm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mm};function ym(s,e,t){var i=ii(s),r=[Rt,wt].indexOf(i)>=0?-1:1,n=typeof t=="function"?t(Object.assign({},e,{placement:s})):t,o=n[0],a=n[1];return o=o||0,a=(a||0)*r,[Rt,Ft].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function vm(s){var e=s.state,t=s.options,i=s.name,r=t.offset,n=r===void 0?[0,0]:r,o=Gh.reduce(function(c,h){return c[h]=ym(h,e.rects,n),c},{}),a=o[e.placement],A=a.x,l=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=A,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=o}const Bm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vm};function Qm(s){var e=s.state,t=s.name;e.modifiersData[t]=Zh({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Sm={name:"popperOffsets",enabled:!0,phase:"read",fn:Qm,data:{}};function bm(s){return s==="x"?"y":"x"}function wm(s){var e=s.state,t=s.options,i=s.name,r=t.mainAxis,n=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!1:o,A=t.boundary,l=t.rootBoundary,c=t.altBoundary,h=t.padding,u=t.tether,d=u===void 0?!0:u,g=t.tetherOffset,f=g===void 0?0:g,p=hr(e,{boundary:A,rootBoundary:l,padding:h,altBoundary:c}),y=ii(e.placement),v=Ss(e.placement),S=!v,C=ba(y),Q=bm(C),B=e.modifiersData.popperOffsets,_=e.rects.reference,D=e.rects.popper,G=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,F=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(B){if(n){var V,J=C==="y"?wt:Rt,b=C==="y"?kt:Ft,R=C==="y"?"height":"width",U=B[C],x=U+p[J],w=U-p[b],T=d?-D[R]/2:0,K=v===vs?_[R]:D[R],M=v===vs?-D[R]:-_[R],q=e.elements.arrow,ie=d&&q?Sa(q):{width:0,height:0},ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Vh(),Ae=ce[J],me=ce[b],Be=lr(0,_[R],ie[R]),xe=S?_[R]/2-T-Be-Ae-F.mainAxis:K-Be-Ae-F.mainAxis,re=S?-_[R]/2+T+Be+me+F.mainAxis:M+Be+me+F.mainAxis,Ce=e.elements.arrow&&Ar(e.elements.arrow),ye=Ce?C==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,ue=(V=H==null?void 0:H[C])!=null?V:0,he=U+xe-ue-ye,ae=U+re-ue,we=lr(d?Sn(x,he):x,U,d?qi(w,ae):w);B[C]=we,j[C]=we-U}if(a){var Pe,Te=C==="x"?wt:Rt,ke=C==="x"?kt:Ft,Ue=B[Q],Le=Q==="y"?"height":"width",Se=Ue+p[Te],Ve=Ue-p[ke],je=[wt,Rt].indexOf(y)!==-1,ct=(Pe=H==null?void 0:H[Q])!=null?Pe:0,st=je?Se:Ue-_[Le]-D[Le]-ct+F.altAxis,It=je?Ue+_[Le]+D[Le]-ct-F.altAxis:Ve,yi=d&&je?XI(st,Ue,It):lr(d?st:Se,Ue,d?It:Ve);B[Q]=yi,j[Q]=yi-Ue}e.modifiersData[i]=j}}const Rm={name:"preventOverflow",enabled:!0,phase:"main",fn:wm,requiresIfExists:["offset"]};function xm(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function Dm(s){return s===xt(s)||!Nt(s)?wa(s):xm(s)}function Tm(s){var e=s.getBoundingClientRect(),t=Bs(e.width)/s.offsetWidth||1,i=Bs(e.height)/s.offsetHeight||1;return t!==1||i!==1}function Lm(s,e,t){t===void 0&&(t=!1);var i=Nt(e),r=Nt(e)&&Tm(e),n=Di(e),o=Qs(s,r,t),a={scrollLeft:0,scrollTop:0},A={x:0,y:0};return(i||!i&&!t)&&((ti(e)!=="body"||xa(n))&&(a=Dm(e)),Nt(e)?(A=Qs(e,!0),A.x+=e.clientLeft,A.y+=e.clientTop):n&&(A.x=Ra(n))),{x:o.left+a.scrollLeft-A.x,y:o.top+a.scrollTop-A.y,width:o.width,height:o.height}}function _m(s){var e=new Map,t=new Set,i=[];s.forEach(function(n){e.set(n.name,n)});function r(n){t.add(n.name);var o=[].concat(n.requires||[],n.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var A=e.get(a);A&&r(A)}}),i.push(n)}return s.forEach(function(n){t.has(n.name)||r(n)}),i}function km(s){var e=_m(s);return VI.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function Fm(s){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(s())})})),e}}function Nm(s){var e=s.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var iu={placement:"bottom",modifiers:[],strategy:"absolute"};function su(){for(var s=arguments.length,e=new Array(s),t=0;t<s;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Mm(s){s===void 0&&(s={});var e=s,t=e.defaultModifiers,i=t===void 0?[]:t,r=e.defaultOptions,n=r===void 0?iu:r;return function(a,A,l){l===void 0&&(l=n);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},iu,n),modifiersData:{},elements:{reference:a,popper:A},attributes:{},styles:{}},h=[],u=!1,d={state:c,setOptions:function(y){var v=typeof y=="function"?y(c.options):y;f(),c.options=Object.assign({},n,c.options,v),c.scrollParents={reference:Wi(a)?cr(a):a.contextElement?cr(a.contextElement):[],popper:cr(A)};var S=km(Nm([].concat(i,c.options.modifiers)));return c.orderedModifiers=S.filter(function(C){return C.enabled}),g(),d.update()},forceUpdate:function(){if(!u){var y=c.elements,v=y.reference,S=y.popper;if(su(v,S)){c.rects={reference:Lm(v,Ar(S),c.options.strategy==="fixed"),popper:Sa(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(F){return c.modifiersData[F.name]=Object.assign({},F.data)});for(var C=0;C<c.orderedModifiers.length;C++){if(c.reset===!0){c.reset=!1,C=-1;continue}var Q=c.orderedModifiers[C],B=Q.fn,_=Q.options,D=_===void 0?{}:_,G=Q.name;typeof B=="function"&&(c=B({state:c,options:D,name:G,instance:d})||c)}}}},update:Fm(function(){return new Promise(function(p){d.forceUpdate(),p(c)})}),destroy:function(){f(),u=!0}};if(!su(a,A))return d;d.setOptions(l).then(function(p){!u&&l.onFirstUpdate&&l.onFirstUpdate(p)});function g(){c.orderedModifiers.forEach(function(p){var y=p.name,v=p.options,S=v===void 0?{}:v,C=p.effect;if(typeof C=="function"){var Q=C({state:c,name:y,instance:d,options:S}),B=function(){};h.push(Q||B)}})}function f(){h.forEach(function(p){return p()}),h=[]}return d}}var Om=[am,Sm,nm,Hh,Bm,Im,Rm,tm,Cm],Pm=Mm({defaultModifiers:Om}),Um="tippy-box",ru="tippy-content",Gm="tippy-backdrop",nu="tippy-arrow",ou="tippy-svg-arrow",ji={passive:!0,capture:!0},au=function(){return document.body};function Ta(s,e,t){if(Array.isArray(s)){var i=s[e];return i??(Array.isArray(t)?t[e]:t)}return s}function La(s,e){var t={}.toString.call(s);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function Au(s,e){return typeof s=="function"?s.apply(void 0,e):s}function lu(s,e){if(e===0)return s;var t;return function(i){clearTimeout(t),t=setTimeout(function(){s(i)},e)}}function Hm(s){return s.split(/\s+/).filter(Boolean)}function bs(s){return[].concat(s)}function cu(s,e){s.indexOf(e)===-1&&s.push(e)}function $m(s){return s.filter(function(e,t){return s.indexOf(e)===t})}function Ym(s){return s.split("-")[0]}function xn(s){return[].slice.call(s)}function hu(s){return Object.keys(s).reduce(function(e,t){return s[t]!==void 0&&(e[t]=s[t]),e},{})}function ur(){return document.createElement("div")}function Dn(s){return["Element","Fragment"].some(function(e){return La(s,e)})}function Km(s){return La(s,"NodeList")}function Vm(s){return La(s,"MouseEvent")}function Jm(s){return!!(s&&s._tippy&&s._tippy.reference===s)}function Wm(s){return Dn(s)?[s]:Km(s)?xn(s):Array.isArray(s)?s:xn(document.querySelectorAll(s))}function _a(s,e){s.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function uu(s,e){s.forEach(function(t){t&&t.setAttribute("data-state",e)})}function qm(s){var e,t=bs(s),i=t[0];return i!=null&&(e=i.ownerDocument)!=null&&e.body?i.ownerDocument:document}function jm(s,e){var t=e.clientX,i=e.clientY;return s.every(function(r){var n=r.popperRect,o=r.popperState,a=r.props,A=a.interactiveBorder,l=Ym(o.placement),c=o.modifiersData.offset;if(!c)return!0;var h=l==="bottom"?c.top.y:0,u=l==="top"?c.bottom.y:0,d=l==="right"?c.left.x:0,g=l==="left"?c.right.x:0,f=n.top-i+h>A,p=i-n.bottom-u>A,y=n.left-t+d>A,v=t-n.right-g>A;return f||p||y||v})}function ka(s,e,t){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){s[i](r,t)})}function du(s,e){for(var t=e;t;){var i;if(s.contains(t))return!0;t=t.getRootNode==null||(i=t.getRootNode())==null?void 0:i.host}return!1}var si={isTouch:!1},gu=0;function Xm(){si.isTouch||(si.isTouch=!0,window.performance&&document.addEventListener("mousemove",fu))}function fu(){var s=performance.now();s-gu<20&&(si.isTouch=!1,document.removeEventListener("mousemove",fu)),gu=s}function zm(){var s=document.activeElement;if(Jm(s)){var e=s._tippy;s.blur&&!e.state.isVisible&&s.blur()}}function Zm(){document.addEventListener("touchstart",Xm,ji),window.addEventListener("blur",zm)}var eC=typeof window<"u"&&typeof document<"u",tC=eC?!!window.msCrypto:!1,iC={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},sC={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ht=Object.assign({appendTo:au,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},iC,sC),rC=Object.keys(Ht),nC=function(e){var t=Object.keys(e);t.forEach(function(i){Ht[i]=e[i]})};function pu(s){var e=s.plugins||[],t=e.reduce(function(i,r){var n=r.name,o=r.defaultValue;if(n){var a;i[n]=s[n]!==void 0?s[n]:(a=Ht[n])!=null?a:o}return i},{});return Object.assign({},s,t)}function oC(s,e){var t=e?Object.keys(pu(Object.assign({},Ht,{plugins:e}))):rC,i=t.reduce(function(r,n){var o=(s.getAttribute("data-tippy-"+n)||"").trim();if(!o)return r;if(n==="content")r[n]=o;else try{r[n]=JSON.parse(o)}catch{r[n]=o}return r},{});return i}function Eu(s,e){var t=Object.assign({},e,{content:Au(e.content,[s])},e.ignoreAttributes?{}:oC(s,e.plugins));return t.aria=Object.assign({},Ht.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}var aC=function(){return"innerHTML"};function Fa(s,e){s[aC()]=e}function Iu(s){var e=ur();return s===!0?e.className=nu:(e.className=ou,Dn(s)?e.appendChild(s):Fa(e,s)),e}function mu(s,e){Dn(e.content)?(Fa(s,""),s.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Fa(s,e.content):s.textContent=e.content)}function Na(s){var e=s.firstElementChild,t=xn(e.children);return{box:e,content:t.find(function(i){return i.classList.contains(ru)}),arrow:t.find(function(i){return i.classList.contains(nu)||i.classList.contains(ou)}),backdrop:t.find(function(i){return i.classList.contains(Gm)})}}function Cu(s){var e=ur(),t=ur();t.className=Um,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var i=ur();i.className=ru,i.setAttribute("data-state","hidden"),mu(i,s.props),e.appendChild(t),t.appendChild(i),r(s.props,s.props);function r(n,o){var a=Na(e),A=a.box,l=a.content,c=a.arrow;o.theme?A.setAttribute("data-theme",o.theme):A.removeAttribute("data-theme"),typeof o.animation=="string"?A.setAttribute("data-animation",o.animation):A.removeAttribute("data-animation"),o.inertia?A.setAttribute("data-inertia",""):A.removeAttribute("data-inertia"),A.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?A.setAttribute("role",o.role):A.removeAttribute("role"),(n.content!==o.content||n.allowHTML!==o.allowHTML)&&mu(l,s.props),o.arrow?c?n.arrow!==o.arrow&&(A.removeChild(c),A.appendChild(Iu(o.arrow))):A.appendChild(Iu(o.arrow)):c&&A.removeChild(c)}return{popper:e,onUpdate:r}}Cu.$$tippy=!0;var AC=1,Tn=[],Ma=[];function lC(s,e){var t=Eu(s,Object.assign({},Ht,pu(hu(e)))),i,r,n,o=!1,a=!1,A=!1,l=!1,c,h,u,d=[],g=lu(he,t.interactiveDebounce),f,p=AC++,y=null,v=$m(t.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},C={id:p,reference:s,popper:ur(),popperInstance:y,props:t,state:S,plugins:v,clearDelayTimeouts:st,setProps:It,setContent:yi,show:mt,hide:ai,hideWithInteractivity:Ai,enable:je,disable:ct,unmount:li,destroy:gt};if(!t.render)return C;var Q=t.render(C),B=Q.popper,_=Q.onUpdate;B.setAttribute("data-tippy-root",""),B.id="tippy-"+C.id,C.popper=B,s._tippy=C,B._tippy=C;var D=v.map(function(Y){return Y.fn(C)}),G=s.hasAttribute("aria-expanded");return Ce(),T(),U(),x("onCreate",[C]),t.showOnCreate&&Se(),B.addEventListener("mouseenter",function(){C.props.interactive&&C.state.isVisible&&C.clearDelayTimeouts()}),B.addEventListener("mouseleave",function(){C.props.interactive&&C.props.trigger.indexOf("mouseenter")>=0&&J().addEventListener("mousemove",g)}),C;function F(){var Y=C.props.touch;return Array.isArray(Y)?Y:[Y,0]}function H(){return F()[0]==="hold"}function j(){var Y;return!!((Y=C.props.render)!=null&&Y.$$tippy)}function V(){return f||s}function J(){var Y=V().parentNode;return Y?qm(Y):document}function b(){return Na(B)}function R(Y){return C.state.isMounted&&!C.state.isVisible||si.isTouch||c&&c.type==="focus"?0:Ta(C.props.delay,Y?0:1,Ht.delay)}function U(Y){Y===void 0&&(Y=!1),B.style.pointerEvents=C.props.interactive&&!Y?"":"none",B.style.zIndex=""+C.props.zIndex}function x(Y,le,ge){if(ge===void 0&&(ge=!0),D.forEach(function(be){be[Y]&&be[Y].apply(be,le)}),ge){var Re;(Re=C.props)[Y].apply(Re,le)}}function w(){var Y=C.props.aria;if(Y.content){var le="aria-"+Y.content,ge=B.id,Re=bs(C.props.triggerTarget||s);Re.forEach(function(be){var Je=be.getAttribute(le);if(C.state.isVisible)be.setAttribute(le,Je?Je+" "+ge:ge);else{var Ct=Je&&Je.replace(ge,"").trim();Ct?be.setAttribute(le,Ct):be.removeAttribute(le)}})}}function T(){if(!(G||!C.props.aria.expanded)){var Y=bs(C.props.triggerTarget||s);Y.forEach(function(le){C.props.interactive?le.setAttribute("aria-expanded",C.state.isVisible&&le===V()?"true":"false"):le.removeAttribute("aria-expanded")})}}function K(){J().removeEventListener("mousemove",g),Tn=Tn.filter(function(Y){return Y!==g})}function M(Y){if(!(si.isTouch&&(A||Y.type==="mousedown"))){var le=Y.composedPath&&Y.composedPath()[0]||Y.target;if(!(C.props.interactive&&du(B,le))){if(bs(C.props.triggerTarget||s).some(function(ge){return du(ge,le)})){if(si.isTouch||C.state.isVisible&&C.props.trigger.indexOf("click")>=0)return}else x("onClickOutside",[C,Y]);C.props.hideOnClick===!0&&(C.clearDelayTimeouts(),C.hide(),a=!0,setTimeout(function(){a=!1}),C.state.isMounted||Ae())}}}function q(){A=!0}function ie(){A=!1}function ce(){var Y=J();Y.addEventListener("mousedown",M,!0),Y.addEventListener("touchend",M,ji),Y.addEventListener("touchstart",ie,ji),Y.addEventListener("touchmove",q,ji)}function Ae(){var Y=J();Y.removeEventListener("mousedown",M,!0),Y.removeEventListener("touchend",M,ji),Y.removeEventListener("touchstart",ie,ji),Y.removeEventListener("touchmove",q,ji)}function me(Y,le){xe(Y,function(){!C.state.isVisible&&B.parentNode&&B.parentNode.contains(B)&&le()})}function Be(Y,le){xe(Y,le)}function xe(Y,le){var ge=b().box;function Re(be){be.target===ge&&(ka(ge,"remove",Re),le())}if(Y===0)return le();ka(ge,"remove",h),ka(ge,"add",Re),h=Re}function re(Y,le,ge){ge===void 0&&(ge=!1);var Re=bs(C.props.triggerTarget||s);Re.forEach(function(be){be.addEventListener(Y,le,ge),d.push({node:be,eventType:Y,handler:le,options:ge})})}function Ce(){H()&&(re("touchstart",ue,{passive:!0}),re("touchend",ae,{passive:!0})),Hm(C.props.trigger).forEach(function(Y){if(Y!=="manual")switch(re(Y,ue),Y){case"mouseenter":re("mouseleave",ae);break;case"focus":re(tC?"focusout":"blur",we);break;case"focusin":re("focusout",we);break}})}function ye(){d.forEach(function(Y){var le=Y.node,ge=Y.eventType,Re=Y.handler,be=Y.options;le.removeEventListener(ge,Re,be)}),d=[]}function ue(Y){var le,ge=!1;if(!(!C.state.isEnabled||Pe(Y)||a)){var Re=((le=c)==null?void 0:le.type)==="focus";c=Y,f=Y.currentTarget,T(),!C.state.isVisible&&Vm(Y)&&Tn.forEach(function(be){return be(Y)}),Y.type==="click"&&(C.props.trigger.indexOf("mouseenter")<0||o)&&C.props.hideOnClick!==!1&&C.state.isVisible?ge=!0:Se(Y),Y.type==="click"&&(o=!ge),ge&&!Re&&Ve(Y)}}function he(Y){var le=Y.target,ge=V().contains(le)||B.contains(le);if(!(Y.type==="mousemove"&&ge)){var Re=Le().concat(B).map(function(be){var Je,Ct=be._tippy,yt=(Je=Ct.popperInstance)==null?void 0:Je.state;return yt?{popperRect:be.getBoundingClientRect(),popperState:yt,props:t}:null}).filter(Boolean);jm(Re,Y)&&(K(),Ve(Y))}}function ae(Y){var le=Pe(Y)||C.props.trigger.indexOf("click")>=0&&o;if(!le){if(C.props.interactive){C.hideWithInteractivity(Y);return}Ve(Y)}}function we(Y){C.props.trigger.indexOf("focusin")<0&&Y.target!==V()||C.props.interactive&&Y.relatedTarget&&B.contains(Y.relatedTarget)||Ve(Y)}function Pe(Y){return si.isTouch?H()!==Y.type.indexOf("touch")>=0:!1}function Te(){ke();var Y=C.props,le=Y.popperOptions,ge=Y.placement,Re=Y.offset,be=Y.getReferenceClientRect,Je=Y.moveTransition,Ct=j()?Na(B).arrow:null,yt=be?{getBoundingClientRect:be,contextElement:be.contextElement||V()}:s,Ts={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ls){var _i=Ls.state;if(j()){var Er=b(),Ir=Er.box;["placement","reference-hidden","escaped"].forEach(function(_s){_s==="placement"?Ir.setAttribute("data-placement",_i.placement):_i.attributes.popper["data-popper-"+_s]?Ir.setAttribute("data-"+_s,""):Ir.removeAttribute("data-"+_s)}),_i.attributes.popper={}}}},vt=[{name:"offset",options:{offset:Re}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Je}},Ts];j()&&Ct&&vt.push({name:"arrow",options:{element:Ct,padding:3}}),vt.push.apply(vt,(le==null?void 0:le.modifiers)||[]),C.popperInstance=Pm(yt,B,Object.assign({},le,{placement:ge,onFirstUpdate:u,modifiers:vt}))}function ke(){C.popperInstance&&(C.popperInstance.destroy(),C.popperInstance=null)}function Ue(){var Y=C.props.appendTo,le,ge=V();C.props.interactive&&Y===au||Y==="parent"?le=ge.parentNode:le=Au(Y,[ge]),le.contains(B)||le.appendChild(B),C.state.isMounted=!0,Te()}function Le(){return xn(B.querySelectorAll("[data-tippy-root]"))}function Se(Y){C.clearDelayTimeouts(),Y&&x("onTrigger",[C,Y]),ce();var le=R(!0),ge=F(),Re=ge[0],be=ge[1];si.isTouch&&Re==="hold"&&be&&(le=be),le?i=setTimeout(function(){C.show()},le):C.show()}function Ve(Y){if(C.clearDelayTimeouts(),x("onUntrigger",[C,Y]),!C.state.isVisible){Ae();return}if(!(C.props.trigger.indexOf("mouseenter")>=0&&C.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Y.type)>=0&&o)){var le=R(!1);le?r=setTimeout(function(){C.state.isVisible&&C.hide()},le):n=requestAnimationFrame(function(){C.hide()})}}function je(){C.state.isEnabled=!0}function ct(){C.hide(),C.state.isEnabled=!1}function st(){clearTimeout(i),clearTimeout(r),cancelAnimationFrame(n)}function It(Y){if(!C.state.isDestroyed){x("onBeforeUpdate",[C,Y]),ye();var le=C.props,ge=Eu(s,Object.assign({},le,hu(Y),{ignoreAttributes:!0}));C.props=ge,Ce(),le.interactiveDebounce!==ge.interactiveDebounce&&(K(),g=lu(he,ge.interactiveDebounce)),le.triggerTarget&&!ge.triggerTarget?bs(le.triggerTarget).forEach(function(Re){Re.removeAttribute("aria-expanded")}):ge.triggerTarget&&s.removeAttribute("aria-expanded"),T(),U(),_&&_(le,ge),C.popperInstance&&(Te(),Le().forEach(function(Re){requestAnimationFrame(Re._tippy.popperInstance.forceUpdate)})),x("onAfterUpdate",[C,Y])}}function yi(Y){C.setProps({content:Y})}function mt(){var Y=C.state.isVisible,le=C.state.isDestroyed,ge=!C.state.isEnabled,Re=si.isTouch&&!C.props.touch,be=Ta(C.props.duration,0,Ht.duration);if(!(Y||le||ge||Re)&&!V().hasAttribute("disabled")&&(x("onShow",[C],!1),C.props.onShow(C)!==!1)){if(C.state.isVisible=!0,j()&&(B.style.visibility="visible"),U(),ce(),C.state.isMounted||(B.style.transition="none"),j()){var Je=b(),Ct=Je.box,yt=Je.content;_a([Ct,yt],0)}u=function(){var vt;if(!(!C.state.isVisible||l)){if(l=!0,B.offsetHeight,B.style.transition=C.props.moveTransition,j()&&C.props.animation){var es=b(),Ls=es.box,_i=es.content;_a([Ls,_i],be),uu([Ls,_i],"visible")}w(),T(),cu(Ma,C),(vt=C.popperInstance)==null||vt.forceUpdate(),x("onMount",[C]),C.props.animation&&j()&&Be(be,function(){C.state.isShown=!0,x("onShown",[C])})}},Ue()}}function ai(){var Y=!C.state.isVisible,le=C.state.isDestroyed,ge=!C.state.isEnabled,Re=Ta(C.props.duration,1,Ht.duration);if(!(Y||le||ge)&&(x("onHide",[C],!1),C.props.onHide(C)!==!1)){if(C.state.isVisible=!1,C.state.isShown=!1,l=!1,o=!1,j()&&(B.style.visibility="hidden"),K(),Ae(),U(!0),j()){var be=b(),Je=be.box,Ct=be.content;C.props.animation&&(_a([Je,Ct],Re),uu([Je,Ct],"hidden"))}w(),T(),C.props.animation?j()&&me(Re,C.unmount):C.unmount()}}function Ai(Y){J().addEventListener("mousemove",g),cu(Tn,g),g(Y)}function li(){C.state.isVisible&&C.hide(),C.state.isMounted&&(ke(),Le().forEach(function(Y){Y._tippy.unmount()}),B.parentNode&&B.parentNode.removeChild(B),Ma=Ma.filter(function(Y){return Y!==C}),C.state.isMounted=!1,x("onHidden",[C]))}function gt(){C.state.isDestroyed||(C.clearDelayTimeouts(),C.unmount(),ye(),delete s._tippy,C.state.isDestroyed=!0,x("onDestroy",[C]))}}function Xi(s,e){e===void 0&&(e={});var t=Ht.plugins.concat(e.plugins||[]);Zm();var i=Object.assign({},e,{plugins:t}),r=Wm(s),n=r.reduce(function(o,a){var A=a&&lC(a,i);return A&&o.push(A),o},[]);return Dn(s)?n[0]:n}Xi.defaultProps=Ht,Xi.setDefaultProps=nC,Xi.currentInput=si,Object.assign({},Hh,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),Xi.setDefaultProps({render:Cu});class ri extends Error{constructor(e,t=new Error,i=!1){super(),this.fatal=!1,this.fatal=i,this.stack=t.stack,this.message=[e,t.message].filter(Boolean).join(" - ")}}const cC=5;class hC{constructor(e){this._caption="",this._currentTime=0,this._activeScenes=[],this._upcomingScenes=[],this._canvas=ft(),this._controls=ft(),this.host=e}set activeScenes(e){if(e!==this._activeScenes){const t=e[0],i=this._activeScenes[0];this._activeScenes=e,t!==i&&(this.host.dispatchEvent(new CustomEvent("scenechange",{detail:e[0]})),this.host.requestUpdate())}}get activeScenes(){return this._activeScenes}set currentTime(e){var t,i,r,n,o;const a=Math.min(this.host.duration,Math.max(0,e));this._currentTime=a,this.activeScenes=((t=this.host.scenes)==null?void 0:t.filter(({start:c,duration:h})=>a>=c&&a<c+h))??[],this._upcomingScenes=((i=this.host.scenes)==null?void 0:i.filter(({start:c})=>a>=c-cC&&a<c))??[],this.loadScenes(),this.syncVideoState(),(r=this._controls.value)==null||r.setAttribute("currentTime",a.toString());const A=this.activeScenes[0],l=El((n=A==null?void 0:A.videoMeta)==null?void 0:n.captions);this.caption=((o=l.find(({start:c,end:h})=>{var u;const d=a-A.start+(((u=A.videoMeta)==null?void 0:u.start)??0);return c&&h&&d>=Kr(c)&&d<=Kr(h)}))==null?void 0:o.text)??"",this.draw(a),!this.host.paused&&!this.host.loading&&!this.host.processing&&!this.host.waiting&&this.host.dispatchEvent(new CustomEvent("timeupdate",{detail:a}))}get currentTime(){return this._currentTime}set caption(e){e!==this._caption&&(this._caption=e,this.host.requestUpdate())}get caption(){return this._caption}canvas(){return pt(this._canvas)}controls(){return pt(this._controls)}loadScenes(){[...this.activeScenes,...this._upcomingScenes].forEach(e=>{var t,i,r;const{start:n,duration:o,video:a,videoMeta:A}=e,l=this.host.currentTime>0||this.host.preload==="auto"||!this.host.paused;if(a&&A){const{key:c,hls:h,node:u}=a,{start:d,duration:g}=A,f=this.host.videoState[c];u&&f&&(u.currentTime>=d+g||u.ended||l&&(h?(t=h.startLoadOnce)==null||t.call(h,u.currentTime):f.initialised||(i=u.startLoadOnce)==null||i.call(u)))}else if(l){const c=`${n}-${o}`,h=this.host._sceneController.videoState[c];this.host.duration&&!((r=h==null?void 0:h.buffered)!=null&&r.length)&&(this.host._sceneController.videoState={...this.host._sceneController.videoState,[c]:{...h,buffered:[{start:Math.max(0,n/this.host.duration*100),end:Math.min((n+o)/this.host.duration*100,100)}]}})}})}syncVideoState(){var e;(e=this.host.scenes)==null||e.forEach(t=>{if(t.video){const{key:i,node:r}=t.video,n=this.host.videoState[i],o=this.activeScenes.includes(t);if(r&&n)if(o&&!this.host.waiting&&!this.host.loading&&!this.host.paused){if(r.paused&&n.initialised)try{return r.play()}catch(a){throw new ri("Video play error",a,!0)}}else r.paused||r.pause()}})}draw(e=this.currentTime){var t,i;this.host.sceneConfig&&this._canvas.value&&((i=(t=this.host).compilation)==null||i.call(t,{currentTime:e,scenes:this.host.sceneConfig,canvas:this._canvas.value}))}clear(){var e;const t=this._canvas.value;(e=t==null?void 0:t.getContext("2d"))==null||e.clearRect(0,0,t.width,t.height)}}function uC(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function dC(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function Oa(s){const{id:e,key:t,src:i,playlist:r,duration:n}=s;return new Promise(o=>{let a=null;const A=document.createElement("video");if(A.playsInline=!0,A.muted=!0,A.loop=!1,r&&!uC()&&mi.isSupported()){let l=!1;a=new mi({autoStartLoad:!0,progressive:!0,fetchSetup:(c,h)=>{let u=c.url;const d=r.split("?")[1];return u.toString().includes("?")||(u+="?"+d),new Request(u,h)}}),a.loadSource(r),a.attachMedia(A),a.startLoadOnce=(c=-1,h)=>{if(a&&!l){const u=a==null?void 0:a.levels.findIndex(d=>Math.min(d.height,d.width)===h);a.startLevel=a.firstLevel,a.startLoad(c),l=!0,a.currentLevel=u!==-1?u:a.firstLevel}},a.on(mi.Events.LEVEL_LOADED,async()=>{l||a==null||a.stopLoad(),o({id:e,key:t,hls:a,config:s,node:A})})}else{A.src=i;let l=!1;if(A.startLoadOnce=()=>{l||(A.preload="auto",A.load(),l=!0)},n)A.preload="none",o({id:e,key:t,hls:a,config:s,node:A});else{A.preload="metadata";const c=async()=>{o({id:e,key:t,hls:a,config:s,node:A}),A.removeEventListener("loadedmetadata",c)};A.addEventListener("loadedmetadata",c)}}})}async function yu(s){return s.duration===1/0?new Promise(e=>{s.currentTime=Number.MAX_SAFE_INTEGER,s.ontimeupdate=()=>{s.ontimeupdate=null,e(s.duration),s.currentTime=0}}):s.duration}const gC=ui(async function(e){return new FontFace(e.name,`url(${e.woff2??e.url})`,{style:e.style,weight:e.weight}).load()},{cacheKey:([s])=>JSON.stringify(s)});let fC=class{constructor(e){this._hasPlayed=!1,this._memoKey=null,this._lastDeps=null,this._duration=0,this._scenes=null,this._videos={},this._videoMeta={},this._videoState={},this._delayProcessing=(t=100)=>{const i=new AbortController,r=setTimeout(()=>{i.signal.aborted||(this.host._processing=!0)},t);return i.signal.addEventListener("abort",()=>{clearTimeout(r)}),i},this._createDataResolver=t=>i=>this.host.dataResolver(i,{language:t}),this._resolveVideo=ui(async t=>{const{id:i,key:r}=t,n=await Oa(t);n.node.volume=this.host.volume,n.node.playbackRate=this.host.playbackRate;const o={loadeddata:this._handleLoadedData,waiting:this._handleWaiting,canplay:this._handleCanPlay,progress:this._handleProgress,seeking:this._handleSeeking,seeked:this._handleSeeked,play:this._handlePlay,playing:this._handlePlaying,pause:this._handlePause,stalled:this._handleStalled,timeupdate:this._handleTimeUpdate,ended:this._handleEnded,error:this._handleError},a=Object.keys(o).reduce((A,l)=>{const c=l,h=o[c]({id:i,key:r,node:n.node});return A[c]=h,n.node.addEventListener(l,h),A},{});return{...n,listeners:a}},{cacheKey:([{id:t,key:i,src:r,playlist:n}])=>JSON.stringify({id:t,key:i,src:r==null?void 0:r.split("?")[0],playlist:n==null?void 0:n.split("?")[0]})}),this._resolveVideoMeta=ui(async(t,i)=>{const{id:r,captions:n,duration:o,startOffset:a,endOffset:A}=t,l=o??await yu(i),c=(a??0)*l,h=(1-(A??0))*l;return{id:r,captions:n,start:c,duration:h-c}},{cacheKey:([{id:t,key:i,captions:r,duration:n,startOffset:o,endOffset:a}])=>JSON.stringify({id:t,key:i,captions:r,duration:n,startOffset:o,endOffset:a})}),this._handleLoadedData=({id:t,key:i,node:r})=>()=>{var n,o;const a=this.videoState[i];if(!(a!=null&&a.initialised)){this.videoState={...this.videoState,[i]:{...a,initialised:!0,waiting:!1,buffered:(a==null?void 0:a.buffered)??[]}};const A=(o=(n=this.scenes)==null?void 0:n.scenes)==null?void 0:o.find(({video:l})=>{l==null||l.key});A&&this._setVideoCurrentTime({scene:A,time:this.host.currentTime}),this.host.dispatchEvent(new CustomEvent("video:loadeddata",{detail:{id:t,key:i,node:r}}))}},this._handleWaiting=({key:t})=>()=>{const i=this.videoState[t];i!=null&&i.initialised&&!(i!=null&&i.waiting)&&(this.videoState={...this.videoState,[t]:{...i,waiting:!0}})},this._handleCanPlay=({key:t})=>()=>{const i=this.videoState[t];i!=null&&i.initialised&&(i!=null&&i.waiting)&&(this.videoState={...this.videoState,[t]:{...i,waiting:!1}}),this.host.paused&&this.host.draw()},this._handleProgress=({key:t,node:i})=>()=>{const r=this.videoState[t],n=this._getBufferSegments({key:t,node:i,duration:this.host.duration});this.videoState={...this.videoState,[t]:{...r,buffered:n}}},this._handleSeeking=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:seeking",{detail:{id:t,key:i,node:r}}))},this._handleSeeked=({id:t,key:i,node:r})=>()=>{const n=this.videoState[i];n!=null&&n.initialised&&(this.host.draw(),this.host.dispatchEvent(new CustomEvent("video:seeked",{detail:{id:t,key:i,node:r}})))},this._handlePlay=({id:t,key:i,node:r})=>()=>{this.hasPlayed=!0,this.host.dispatchEvent(new CustomEvent("video:play",{detail:{id:t,key:i,node:r}}))},this._handlePlaying=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:playing",{detail:{id:t,key:i,node:r}}))},this._handlePause=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:pause",{detail:{id:t,key:i,node:r}}))},this._handleStalled=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:stalled",{detail:{id:t,key:i,node:r}}))},this._handleTimeUpdate=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:timeupdate",{detail:{id:t,key:i,node:r}}))},this._handleEnded=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:ended",{detail:{id:t,key:i,node:r}}))},this._handleError=({id:t,key:i,node:r})=>()=>{const n=new ri(`Video error - answer ${t} failed to load`);this.host.dispatchEvent(new ErrorEvent("error",{bubbles:!0,composed:!0,error:n,message:n.message})),this.host.dispatchEvent(new CustomEvent("video:error",{detail:{id:t,key:i,node:r}}))},this._cleanupVideo=t=>{var i;const r=this.videos[t];r&&(r.node.pause(),r.node.src="",(i=r.hls)==null||i.destroy(),Object.keys(r.listeners??{}).forEach(n=>{var o,a;if((o=this.videos)!=null&&o[t]){const A=(a=r.listeners)==null?void 0:a[n];A&&r.node.removeEventListener(n,A)}}),delete this.videos[t])},this.host=e,this.host.addController(this)}set hasPlayed(e){e!==this._hasPlayed&&(this._hasPlayed=e,this.host.requestUpdate())}get hasPlayed(){return this._hasPlayed}set duration(e){!isNaN(e)&&e!==this._duration&&(this._duration=e,this.host.requestUpdate(),this.host.dispatchEvent(new CustomEvent("durationchange",{detail:this._duration})))}get duration(){return this._duration}set scenes(e){e!==this._scenes&&(this._scenes=e,this.host.requestUpdate())}get scenes(){return this._scenes}set videos(e){e!==this._videos&&(this._videos=e,this.host.requestUpdate())}get videos(){return this._videos}set videoMeta(e){e!==this._videoMeta&&(this._videoMeta=e,this.host.requestUpdate())}get videoMeta(){return this._videoMeta}set videoState(e){e!==this._videoState&&(this._videoState=e,this.host.requestUpdate())}get videoState(){return this._videoState}_getBufferSegments({key:e,node:t,duration:i}){var r;const n=t==null?void 0:t.buffered,o=[],{start:a,video:A,videoMeta:l}=((r=this.scenes)==null?void 0:r.scenes.find(({video:c})=>e===(c==null?void 0:c.key)))??{};if(t&&n&&A&&l&&typeof a<"u")for(let c=0;c<n.length;c++){const h=n.start(c),u=n.end(c);Math.max(h,l.start)<=Math.min(u,l.start+l.duration)&&o.push({start:Math.max(0,(Math.max(h-l.start,0)+a)/i*100),end:Math.min((Math.min(u-l.start,l.duration)+a)/i*100,100)})}return o}_setupTask(){new Qr(this.host,async([e,t,i,r,n,o,a])=>{var A;const l=this._delayProcessing();try{let c=null;if(this.host._errors=[],this.host._languages=this.host.languageResolver({data:e}),(!n||!this.host._languages.find(({value:h})=>n===h))&&(this.host._language=(A=this.host._languages[0])==null?void 0:A.value),i||e){if(i){let d=null;if(r)try{d=await(await fetch(r,{method:"GET"})).text()}catch(p){const y=new ri("Track failed to fetch",p);this.host.dispatchEvent(new ErrorEvent("error",{composed:!0,bubbles:!0,error:y,message:y.message}))}const f={questions:{items:[{answer:{id:"source",media:{[i.includes(".m3u8")?"playlist":"video"]:i},captions:{current:d}}}]}};try{this.scenes=await as({data:f,template:t,burnCaptions:o,debug:a},this._createDataResolver(this.host.language),this._resolveVideo,this._resolveVideoMeta)}catch(p){try{this.scenes=await as({data:f,burnCaptions:o,debug:a},this._createDataResolver(this.host.language),this._resolveVideo,this._resolveVideoMeta)}catch(y){throw new ri("Fatal source template error",y,!0)}c=new ri("Source template error",p)}}else try{this.scenes=await as({data:e,template:t,burnCaptions:o,debug:a},this._createDataResolver(this.host.language),this._resolveVideo,this._resolveVideoMeta)}catch(d){try{this.scenes=await as({data:e,burnCaptions:o,debug:a},this._createDataResolver(this.host.language),this._resolveVideo,this._resolveVideoMeta)}catch(g){throw new ri("Fatal data template error",g,!0)}c=new ri("Data template error",d)}Object.keys(this.videos).forEach(d=>{this.scenes.scenes.find(({video:g})=>d===(g==null?void 0:g.key))||this._videos[d].node.pause()});const h=this.scenes.scenes.reduce((d,{video:g})=>(g&&(d[g.key]=g),d),{});Object.keys(this.videos).join("|")!==Object.keys(h).join("|")&&this.host.reset(0,!1),this.videos=h,this.videoState={...this.videoState,...this.scenes.scenes.reduce((d,{video:g,start:f,duration:p})=>{var y;const v=(g==null?void 0:g.key)??`${f}-${p}`,S=this._getBufferSegments({key:v,node:g==null?void 0:g.node,duration:this.scenes.duration});return d[v]={initialised:!g,waiting:!!g,...this.videoState[v],buffered:g?S:(y=this.videoState[v])==null?void 0:y.buffered},d},{})},this.videoMeta=this.scenes.scenes.reduce((d,{video:g,videoMeta:f})=>(g&&f&&(d[g.key]=f),d),{}),(await Promise.all(this.scenes.fonts.map(d=>gC(d)))).forEach(d=>{document.fonts.add(d)}),this.duration=this.scenes.duration,this.host.paused&&this.host.reset(this.host.currentTime,!this.host.paused)}c&&this.host.dispatchEvent(new ErrorEvent("error",{composed:!0,bubbles:!0,error:c,message:c.message}))}catch(c){this.scenes=null,this.duration=0,this.host.dispatchEvent(new ErrorEvent("error",{composed:!0,bubbles:!0,error:c,message:c.message}))}finally{l.abort(),this.host._processing=!1}},()=>{const e=JSON.stringify({data:this.host.data,template:this.host.template,src:this.host.src,track:this.host.track,language:this.host.language,burnCaptions:this.host.burnCaptions,debug:this.host.debug});if(this._lastDeps&&this._memoKey===e)return this._lastDeps;const t=[this.host.data,this.host.template,this.host.src,this.host.track,this.host.language,this.host.burnCaptions,this.host.debug];return this._memoKey=e,this._lastDeps=t,t})}_setVideoCurrentTime({time:e,scene:t}){const{start:i,video:r,videoMeta:n}=t;if(r&&r.node&&n&&typeof i<"u"){const o=e-i;r.node.currentTime=Math.max(n.start,Math.min(n.start+n.duration,o+n.start))}}setVideosCurrentTime(e){var t;(t=this.scenes)==null||t.scenes.forEach(i=>{this._setVideoCurrentTime({time:e,scene:i})})}hostConnected(){this._setupTask()}hostDisconnected(){Object.keys(this.videos).forEach(e=>{this._cleanupVideo(e)}),this.videos={}}};function pC(s){s.requestFullscreen?s.requestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.webkitRequestFullscreen?s.webkitRequestFullscreen():s.msRequestFullscreen&&s.msRequestFullscreen()}function EC(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}const Pa=["progress","play-large","navigation","play","volume","current-time","duration","speed","captions","fullscreen","preview"],IC={id:"captions",event:"captions:click",label:"Closed Captions"},mC={id:"fullscreen",event:"fullscreen:click",label:"Full Screen"},vu={title:"Playback Speed",items:[{id:"playback-rate-0.5",event:"playbackRate:click",label:"0.5x",value:.5},{id:"playback-rate-1",event:"playbackRate:click",label:"1.0x",value:1},{id:"playback-rate-1.5",event:"playbackRate:click",label:"1.5x",value:1.5},{id:"playback-rate-2",event:"playbackRate:click",label:"2.0x",value:2}]},CC={id:"playbackRate",label:"Playback playbackRate",subItems:vu};class yC extends bA{constructor(e){if(super(e),this.element=null,this.observer=void 0,e.type!==rs.ELEMENT)throw new Error("Resize directive must be used in an Element expression")}disconnected(){var e;(e=this.observer)==null||e.disconnect(),this.observer=void 0}reconnected(){var e;this.element&&((e=this.observer)==null||e.observe(this.element))}update(e,[t]){return this.isConnected&&!this.observer&&(this.observer=new ResizeObserver(t),this.element=e.element,this.observer.observe(this.element)),Ot}}const Ua=ns(yC),vC=kI(()=>{const s=new FontFace("Roobert","url(https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/Roobert-Regular.woff2)",{style:"normal",weight:"400"}),e=new FontFace("Roobert","url(https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/Roobert-SemiBold.woff2)",{style:"normal",weight:"600"}),t=new FontFace("Roobert Captions","url(https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/Roobert-Regular.woff2)",{style:"normal",weight:"400"}),i=dl.map(r=>({load:!1,font:new FontFace(r.family,`url(${r.url})`,{style:r.style})}));return[{load:!0,font:s},{load:!0,font:e},{load:!0,font:t},...i]}),ni={"red-120":"#feeded","red-130":"#fcd5d0","red-400":"#e84a4a","red-500":"#c51c3a","red-700":"#a21c39","red-800":"#850231","red-900":"#580A2D","teal-80":"#f3fafa","teal-100":"#d6f1f1","teal-200":"#ace3e3","teal-300":"#7acace","teal-400":"#4faab2","teal-500":"#358f97","teal-600":"#287179","teal-700":"#22555c","teal-800":"#21484e","teal-900":"#1f3d42","teal-950":"#0d2126","purple-100":"#d7cfff","purple-700":"#5f2fe9","green-200":"#a4d7aa","green-500":"#38b319","green-800":"#2b3c2f","grey-100":"#f0f0f0","light-50":"rgba(255, 255, 255, .05)","light-100":"rgba(255, 255, 255, .1)","light-200":"rgba(255, 255, 255, .2)","light-400":"rgba(255, 255, 255, .4)","light-500":"rgba(255, 255, 255, .5)","light-640":"rgba(255, 255, 255, .64)","light-800":"rgba(255, 255, 255, .8)","light-1000":"#fff","dark-50":"rgba(0, 0, 0, .05)","dark-80":"rgba(0, 0, 0, .08)","dark-100":"rgba(0, 0, 0, .1)","dark-200":"rgba(0, 0, 0, .2)","dark-250":"rgba(0, 0, 0, .25)","dark-400":"rgba(0, 0, 0, .4)","dark-500":"rgba(0, 0, 0, .5)","dark-640":"rgba(0, 0, 0, .64)","dark-800":"rgba(0, 0, 0, .8)","dark-900":"rgba(0, 0, 0, .9)","dark-1000":"#000"},BC={colors:ni,space:{xxs:".25rem",xs:".5rem",small:".75rem",medium:"1rem",large:"1.5rem",xl:"2.5rem"},sizes:{xxs:"1rem",xs:"1.5rem",small:"2rem",medium:"2.5rem",large:"3rem"},fontWeights:{regular:400,semibold:600},lineHeights:{small:1.1,medium:1.25,large:1.4},letterSpacings:{xxs:"-.04rem",xs:"-.03rem",small:"-.02rem",medium:"-.01rem",large:0},fontSizes:{micro:".625rem",small:".75rem",medium:".875rem",large:"1rem",xl:"1.25rem",xxl:"1.5rem",xxxl:"2rem",huge:"2.75rem"},fontFamilies:{sans:'Roobert, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,"Noto Sans", "Noto Color Emoji", sans-serif, "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji"',mono:'"Maison Neue Mono", Menlo, Monaco, Consolas, Liberation Mono, "Courier New", monospace'},borderWidths:{thin:".0625rem"},radii:{small:".25rem",medium:".5rem",large:".75rem",xl:"1rem"},shadows:{small:`.25rem .25rem .25rem ${ni["dark-100"]}`,medium:`0 .125rem .625rem ${ni["dark-100"]}`,large:`0 .25rem 1rem ${ni["dark-50"]}`,xl:`.25rem .25rem 1rem ${ni["dark-250"]}`,xxl:`0 .25rem 2rem ${ni["dark-100"]}`,xxxl:`.25rem .25rem 3rem ${ni["dark-250"]}`,toolbar:`0 -.625rem .625rem ${ni["dark-50"]}`,text:`0 0 .25rem ${ni["dark-250"]}`},timings:{fast:".1s",normal:".2s",slow:".3s"},easings:{linear:"linear"},focusOutline:{width:".2rem",color:ni["dark-400"]},iconSizes:{small:"0.75rem",medium:"1rem",large:"1.5rem"}},Bu=TI(BC,{delimiter:"-"}),QC=Object.keys(Bu).map(s=>ks(`:host { --${s}: ${Bu[s]}; }`)),Ne=(s=>{const e=class extends s{firstUpdated(){vC().forEach(({load:n,font:o})=>{document.fonts.add(o),n&&o.load()})}};return e.styles=[(s==null?void 0:s.styles)??[],QC,ht`
186
+ */const Mh=(s,e,t)=>{const i=new Map;for(let r=e;r<=t;r++)i.set(s[r],r);return i},Oh=ns(class extends $s{constructor(s){if(super(s),s.type!==rs.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);const r=[],n=[];let o=0;for(const a of s)r[o]=i?i(a,o):o,n[o]=t(a,o),o++;return{values:n,keys:r}}render(s,e,t){return this.dt(s,e,t).values}update(s,[e,t,i]){const r=hd(s),{values:n,keys:o}=this.dt(e,t,i);if(!Array.isArray(r))return this.ut=o,n;const a=this.ut??(this.ut=[]),A=[];let l,c,h=0,u=r.length-1,d=0,g=n.length-1;for(;h<=u&&d<=g;)if(r[h]===null)h++;else if(r[u]===null)u--;else if(a[h]===o[d])A[d]=Pi(r[h],n[d]),h++,d++;else if(a[u]===o[g])A[g]=Pi(r[u],n[g]),u--,g--;else if(a[h]===o[g])A[g]=Pi(r[h],n[g]),Hs(s,A[g+1],r[h]),h++,g--;else if(a[u]===o[d])A[d]=Pi(r[u],n[d]),Hs(s,r[h],r[u]),u--,d++;else if(l===void 0&&(l=Mh(o,d,g),c=Mh(a,h,u)),l.has(a[h]))if(l.has(a[u])){const f=c.get(o[d]),p=f!==void 0?r[f]:null;if(p===null){const y=Hs(s,r[h]);Pi(y,n[d]),A[d]=y}else A[d]=Pi(p,n[d]),Hs(s,r[h],p),r[f]=null;d++}else qn(r[u]),u--;else qn(r[h]),h++;for(;d<=g;){const f=Hs(s,A[g+1]);Pi(f,n[d]),A[d++]=f}for(;h<=u;){const f=r[h++];f!==null&&qn(f)}return this.ut=o,cd(s,A),Ot}});var wt="top",kt="bottom",Ft="right",Rt="left",va="auto",nr=[wt,kt,Ft,Rt],vs="start",or="end",FI="clippingParents",Ph="viewport",ar="popper",NI="reference",Uh=nr.reduce(function(s,e){return s.concat([e+"-"+vs,e+"-"+or])},[]),Gh=[].concat(nr,[va]).reduce(function(s,e){return s.concat([e,e+"-"+vs,e+"-"+or])},[]),MI="beforeRead",OI="read",PI="afterRead",UI="beforeMain",GI="main",HI="afterMain",$I="beforeWrite",YI="write",KI="afterWrite",VI=[MI,OI,PI,UI,GI,HI,$I,YI,KI];function ti(s){return s?(s.nodeName||"").toLowerCase():null}function xt(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var e=s.ownerDocument;return e&&e.defaultView||window}return s}function Wi(s){var e=xt(s).Element;return s instanceof e||s instanceof Element}function Nt(s){var e=xt(s).HTMLElement;return s instanceof e||s instanceof HTMLElement}function Ba(s){if(typeof ShadowRoot>"u")return!1;var e=xt(s).ShadowRoot;return s instanceof e||s instanceof ShadowRoot}function JI(s){var e=s.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},n=e.elements[t];!Nt(n)||!ti(n)||(Object.assign(n.style,i),Object.keys(r).forEach(function(o){var a=r[o];a===!1?n.removeAttribute(o):n.setAttribute(o,a===!0?"":a)}))})}function WI(s){var e=s.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],n=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=o.reduce(function(A,l){return A[l]="",A},{});!Nt(r)||!ti(r)||(Object.assign(r.style,a),Object.keys(n).forEach(function(A){r.removeAttribute(A)}))})}}const Hh={name:"applyStyles",enabled:!0,phase:"write",fn:JI,effect:WI,requires:["computeStyles"]};function ii(s){return s.split("-")[0]}var qi=Math.max,Sn=Math.min,Bs=Math.round;function Qa(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $h(){return!/^((?!chrome|android).)*safari/i.test(Qa())}function Qs(s,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=s.getBoundingClientRect(),r=1,n=1;e&&Nt(s)&&(r=s.offsetWidth>0&&Bs(i.width)/s.offsetWidth||1,n=s.offsetHeight>0&&Bs(i.height)/s.offsetHeight||1);var o=Wi(s)?xt(s):window,a=o.visualViewport,A=!$h()&&t,l=(i.left+(A&&a?a.offsetLeft:0))/r,c=(i.top+(A&&a?a.offsetTop:0))/n,h=i.width/r,u=i.height/n;return{width:h,height:u,top:c,right:l+h,bottom:c+u,left:l,x:l,y:c}}function Sa(s){var e=Qs(s),t=s.offsetWidth,i=s.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:s.offsetLeft,y:s.offsetTop,width:t,height:i}}function Yh(s,e){var t=e.getRootNode&&e.getRootNode();if(s.contains(e))return!0;if(t&&Ba(t)){var i=e;do{if(i&&s.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ci(s){return xt(s).getComputedStyle(s)}function qI(s){return["table","td","th"].indexOf(ti(s))>=0}function Ti(s){return((Wi(s)?s.ownerDocument:s.document)||window.document).documentElement}function bn(s){return ti(s)==="html"?s:s.assignedSlot||s.parentNode||(Ba(s)?s.host:null)||Ti(s)}function Kh(s){return!Nt(s)||Ci(s).position==="fixed"?null:s.offsetParent}function jI(s){var e=/firefox/i.test(Qa()),t=/Trident/i.test(Qa());if(t&&Nt(s)){var i=Ci(s);if(i.position==="fixed")return null}var r=bn(s);for(Ba(r)&&(r=r.host);Nt(r)&&["html","body"].indexOf(ti(r))<0;){var n=Ci(r);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||e&&n.willChange==="filter"||e&&n.filter&&n.filter!=="none")return r;r=r.parentNode}return null}function Ar(s){for(var e=xt(s),t=Kh(s);t&&qI(t)&&Ci(t).position==="static";)t=Kh(t);return t&&(ti(t)==="html"||ti(t)==="body"&&Ci(t).position==="static")?e:t||jI(s)||e}function ba(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function lr(s,e,t){return qi(s,Sn(e,t))}function XI(s,e,t){var i=lr(s,e,t);return i>t?t:i}function Vh(){return{top:0,right:0,bottom:0,left:0}}function Jh(s){return Object.assign({},Vh(),s)}function Wh(s,e){return e.reduce(function(t,i){return t[i]=s,t},{})}var zI=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Jh(typeof e!="number"?e:Wh(e,nr))};function ZI(s){var e,t=s.state,i=s.name,r=s.options,n=t.elements.arrow,o=t.modifiersData.popperOffsets,a=ii(t.placement),A=ba(a),l=[Rt,Ft].indexOf(a)>=0,c=l?"height":"width";if(!(!n||!o)){var h=zI(r.padding,t),u=Sa(n),d=A==="y"?wt:Rt,g=A==="y"?kt:Ft,f=t.rects.reference[c]+t.rects.reference[A]-o[A]-t.rects.popper[c],p=o[A]-t.rects.reference[A],y=Ar(n),v=y?A==="y"?y.clientHeight||0:y.clientWidth||0:0,S=f/2-p/2,C=h[d],Q=v-u[c]-h[g],B=v/2-u[c]/2+S,_=lr(C,B,Q),D=A;t.modifiersData[i]=(e={},e[D]=_,e.centerOffset=_-B,e)}}function em(s){var e=s.state,t=s.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Yh(e.elements.popper,r)&&(e.elements.arrow=r))}const tm={name:"arrow",enabled:!0,phase:"main",fn:ZI,effect:em,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ss(s){return s.split("-")[1]}var im={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sm(s,e){var t=s.x,i=s.y,r=e.devicePixelRatio||1;return{x:Bs(t*r)/r||0,y:Bs(i*r)/r||0}}function qh(s){var e,t=s.popper,i=s.popperRect,r=s.placement,n=s.variation,o=s.offsets,a=s.position,A=s.gpuAcceleration,l=s.adaptive,c=s.roundOffsets,h=s.isFixed,u=o.x,d=u===void 0?0:u,g=o.y,f=g===void 0?0:g,p=typeof c=="function"?c({x:d,y:f}):{x:d,y:f};d=p.x,f=p.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),S=Rt,C=wt,Q=window;if(l){var B=Ar(t),_="clientHeight",D="clientWidth";if(B===xt(t)&&(B=Ti(t),Ci(B).position!=="static"&&a==="absolute"&&(_="scrollHeight",D="scrollWidth")),B=B,r===wt||(r===Rt||r===Ft)&&n===or){C=kt;var G=h&&B===Q&&Q.visualViewport?Q.visualViewport.height:B[_];f-=G-i.height,f*=A?1:-1}if(r===Rt||(r===wt||r===kt)&&n===or){S=Ft;var F=h&&B===Q&&Q.visualViewport?Q.visualViewport.width:B[D];d-=F-i.width,d*=A?1:-1}}var H=Object.assign({position:a},l&&im),j=c===!0?sm({x:d,y:f},xt(t)):{x:d,y:f};if(d=j.x,f=j.y,A){var V;return Object.assign({},H,(V={},V[C]=v?"0":"",V[S]=y?"0":"",V.transform=(Q.devicePixelRatio||1)<=1?"translate("+d+"px, "+f+"px)":"translate3d("+d+"px, "+f+"px, 0)",V))}return Object.assign({},H,(e={},e[C]=v?f+"px":"",e[S]=y?d+"px":"",e.transform="",e))}function rm(s){var e=s.state,t=s.options,i=t.gpuAcceleration,r=i===void 0?!0:i,n=t.adaptive,o=n===void 0?!0:n,a=t.roundOffsets,A=a===void 0?!0:a,l={placement:ii(e.placement),variation:Ss(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,qh(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:A})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,qh(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:A})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const nm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rm,data:{}};var wn={passive:!0};function om(s){var e=s.state,t=s.instance,i=s.options,r=i.scroll,n=r===void 0?!0:r,o=i.resize,a=o===void 0?!0:o,A=xt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return n&&l.forEach(function(c){c.addEventListener("scroll",t.update,wn)}),a&&A.addEventListener("resize",t.update,wn),function(){n&&l.forEach(function(c){c.removeEventListener("scroll",t.update,wn)}),a&&A.removeEventListener("resize",t.update,wn)}}const am={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:om,data:{}};var Am={left:"right",right:"left",bottom:"top",top:"bottom"};function Rn(s){return s.replace(/left|right|bottom|top/g,function(e){return Am[e]})}var lm={start:"end",end:"start"};function jh(s){return s.replace(/start|end/g,function(e){return lm[e]})}function wa(s){var e=xt(s),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Ra(s){return Qs(Ti(s)).left+wa(s).scrollLeft}function cm(s,e){var t=xt(s),i=Ti(s),r=t.visualViewport,n=i.clientWidth,o=i.clientHeight,a=0,A=0;if(r){n=r.width,o=r.height;var l=$h();(l||!l&&e==="fixed")&&(a=r.offsetLeft,A=r.offsetTop)}return{width:n,height:o,x:a+Ra(s),y:A}}function hm(s){var e,t=Ti(s),i=wa(s),r=(e=s.ownerDocument)==null?void 0:e.body,n=qi(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=qi(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+Ra(s),A=-i.scrollTop;return Ci(r||t).direction==="rtl"&&(a+=qi(t.clientWidth,r?r.clientWidth:0)-n),{width:n,height:o,x:a,y:A}}function xa(s){var e=Ci(s),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function Xh(s){return["html","body","#document"].indexOf(ti(s))>=0?s.ownerDocument.body:Nt(s)&&xa(s)?s:Xh(bn(s))}function cr(s,e){var t;e===void 0&&(e=[]);var i=Xh(s),r=i===((t=s.ownerDocument)==null?void 0:t.body),n=xt(i),o=r?[n].concat(n.visualViewport||[],xa(i)?i:[]):i,a=e.concat(o);return r?a:a.concat(cr(bn(o)))}function Da(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function um(s,e){var t=Qs(s,!1,e==="fixed");return t.top=t.top+s.clientTop,t.left=t.left+s.clientLeft,t.bottom=t.top+s.clientHeight,t.right=t.left+s.clientWidth,t.width=s.clientWidth,t.height=s.clientHeight,t.x=t.left,t.y=t.top,t}function zh(s,e,t){return e===Ph?Da(cm(s,t)):Wi(e)?um(e,t):Da(hm(Ti(s)))}function dm(s){var e=cr(bn(s)),t=["absolute","fixed"].indexOf(Ci(s).position)>=0,i=t&&Nt(s)?Ar(s):s;return Wi(i)?e.filter(function(r){return Wi(r)&&Yh(r,i)&&ti(r)!=="body"}):[]}function gm(s,e,t,i){var r=e==="clippingParents"?dm(s):[].concat(e),n=[].concat(r,[t]),o=n[0],a=n.reduce(function(A,l){var c=zh(s,l,i);return A.top=qi(c.top,A.top),A.right=Sn(c.right,A.right),A.bottom=Sn(c.bottom,A.bottom),A.left=qi(c.left,A.left),A},zh(s,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Zh(s){var e=s.reference,t=s.element,i=s.placement,r=i?ii(i):null,n=i?Ss(i):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,A;switch(r){case wt:A={x:o,y:e.y-t.height};break;case kt:A={x:o,y:e.y+e.height};break;case Ft:A={x:e.x+e.width,y:a};break;case Rt:A={x:e.x-t.width,y:a};break;default:A={x:e.x,y:e.y}}var l=r?ba(r):null;if(l!=null){var c=l==="y"?"height":"width";switch(n){case vs:A[l]=A[l]-(e[c]/2-t[c]/2);break;case or:A[l]=A[l]+(e[c]/2-t[c]/2);break}}return A}function hr(s,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?s.placement:i,n=t.strategy,o=n===void 0?s.strategy:n,a=t.boundary,A=a===void 0?FI:a,l=t.rootBoundary,c=l===void 0?Ph:l,h=t.elementContext,u=h===void 0?ar:h,d=t.altBoundary,g=d===void 0?!1:d,f=t.padding,p=f===void 0?0:f,y=Jh(typeof p!="number"?p:Wh(p,nr)),v=u===ar?NI:ar,S=s.rects.popper,C=s.elements[g?v:u],Q=gm(Wi(C)?C:C.contextElement||Ti(s.elements.popper),A,c,o),B=Qs(s.elements.reference),_=Zh({reference:B,element:S,strategy:"absolute",placement:r}),D=Da(Object.assign({},S,_)),G=u===ar?D:B,F={top:Q.top-G.top+y.top,bottom:G.bottom-Q.bottom+y.bottom,left:Q.left-G.left+y.left,right:G.right-Q.right+y.right},H=s.modifiersData.offset;if(u===ar&&H){var j=H[r];Object.keys(F).forEach(function(V){var J=[Ft,kt].indexOf(V)>=0?1:-1,b=[wt,kt].indexOf(V)>=0?"y":"x";F[V]+=j[b]*J})}return F}function fm(s,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,n=t.rootBoundary,o=t.padding,a=t.flipVariations,A=t.allowedAutoPlacements,l=A===void 0?Gh:A,c=Ss(i),h=c?a?Uh:Uh.filter(function(g){return Ss(g)===c}):nr,u=h.filter(function(g){return l.indexOf(g)>=0});u.length===0&&(u=h);var d=u.reduce(function(g,f){return g[f]=hr(s,{placement:f,boundary:r,rootBoundary:n,padding:o})[ii(f)],g},{});return Object.keys(d).sort(function(g,f){return d[g]-d[f]})}function pm(s){if(ii(s)===va)return[];var e=Rn(s);return[jh(s),e,jh(e)]}function Em(s){var e=s.state,t=s.options,i=s.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,n=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!0:o,A=t.fallbackPlacements,l=t.padding,c=t.boundary,h=t.rootBoundary,u=t.altBoundary,d=t.flipVariations,g=d===void 0?!0:d,f=t.allowedAutoPlacements,p=e.options.placement,y=ii(p),v=y===p,S=A||(v||!g?[Rn(p)]:pm(p)),C=[p].concat(S).reduce(function(ie,ce){return ie.concat(ii(ce)===va?fm(e,{placement:ce,boundary:c,rootBoundary:h,padding:l,flipVariations:g,allowedAutoPlacements:f}):ce)},[]),Q=e.rects.reference,B=e.rects.popper,_=new Map,D=!0,G=C[0],F=0;F<C.length;F++){var H=C[F],j=ii(H),V=Ss(H)===vs,J=[wt,kt].indexOf(j)>=0,b=J?"width":"height",R=hr(e,{placement:H,boundary:c,rootBoundary:h,altBoundary:u,padding:l}),U=J?V?Ft:Rt:V?kt:wt;Q[b]>B[b]&&(U=Rn(U));var x=Rn(U),w=[];if(n&&w.push(R[j]<=0),a&&w.push(R[U]<=0,R[x]<=0),w.every(function(ie){return ie})){G=H,D=!1;break}_.set(H,w)}if(D)for(var T=g?3:1,K=function(ce){var Ae=C.find(function(me){var Be=_.get(me);if(Be)return Be.slice(0,ce).every(function(xe){return xe})});if(Ae)return G=Ae,"break"},M=T;M>0;M--){var q=K(M);if(q==="break")break}e.placement!==G&&(e.modifiersData[i]._skip=!0,e.placement=G,e.reset=!0)}}const Im={name:"flip",enabled:!0,phase:"main",fn:Em,requiresIfExists:["offset"],data:{_skip:!1}};function eu(s,e,t){return t===void 0&&(t={x:0,y:0}),{top:s.top-e.height-t.y,right:s.right-e.width+t.x,bottom:s.bottom-e.height+t.y,left:s.left-e.width-t.x}}function tu(s){return[wt,Ft,kt,Rt].some(function(e){return s[e]>=0})}function mm(s){var e=s.state,t=s.name,i=e.rects.reference,r=e.rects.popper,n=e.modifiersData.preventOverflow,o=hr(e,{elementContext:"reference"}),a=hr(e,{altBoundary:!0}),A=eu(o,i),l=eu(a,r,n),c=tu(A),h=tu(l);e.modifiersData[t]={referenceClippingOffsets:A,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}const Cm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mm};function ym(s,e,t){var i=ii(s),r=[Rt,wt].indexOf(i)>=0?-1:1,n=typeof t=="function"?t(Object.assign({},e,{placement:s})):t,o=n[0],a=n[1];return o=o||0,a=(a||0)*r,[Rt,Ft].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function vm(s){var e=s.state,t=s.options,i=s.name,r=t.offset,n=r===void 0?[0,0]:r,o=Gh.reduce(function(c,h){return c[h]=ym(h,e.rects,n),c},{}),a=o[e.placement],A=a.x,l=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=A,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=o}const Bm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vm};function Qm(s){var e=s.state,t=s.name;e.modifiersData[t]=Zh({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Sm={name:"popperOffsets",enabled:!0,phase:"read",fn:Qm,data:{}};function bm(s){return s==="x"?"y":"x"}function wm(s){var e=s.state,t=s.options,i=s.name,r=t.mainAxis,n=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!1:o,A=t.boundary,l=t.rootBoundary,c=t.altBoundary,h=t.padding,u=t.tether,d=u===void 0?!0:u,g=t.tetherOffset,f=g===void 0?0:g,p=hr(e,{boundary:A,rootBoundary:l,padding:h,altBoundary:c}),y=ii(e.placement),v=Ss(e.placement),S=!v,C=ba(y),Q=bm(C),B=e.modifiersData.popperOffsets,_=e.rects.reference,D=e.rects.popper,G=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,F=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(B){if(n){var V,J=C==="y"?wt:Rt,b=C==="y"?kt:Ft,R=C==="y"?"height":"width",U=B[C],x=U+p[J],w=U-p[b],T=d?-D[R]/2:0,K=v===vs?_[R]:D[R],M=v===vs?-D[R]:-_[R],q=e.elements.arrow,ie=d&&q?Sa(q):{width:0,height:0},ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Vh(),Ae=ce[J],me=ce[b],Be=lr(0,_[R],ie[R]),xe=S?_[R]/2-T-Be-Ae-F.mainAxis:K-Be-Ae-F.mainAxis,re=S?-_[R]/2+T+Be+me+F.mainAxis:M+Be+me+F.mainAxis,Ce=e.elements.arrow&&Ar(e.elements.arrow),ye=Ce?C==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,ue=(V=H==null?void 0:H[C])!=null?V:0,he=U+xe-ue-ye,ae=U+re-ue,we=lr(d?Sn(x,he):x,U,d?qi(w,ae):w);B[C]=we,j[C]=we-U}if(a){var Pe,Te=C==="x"?wt:Rt,ke=C==="x"?kt:Ft,Ue=B[Q],Le=Q==="y"?"height":"width",Se=Ue+p[Te],Ve=Ue-p[ke],je=[wt,Rt].indexOf(y)!==-1,ct=(Pe=H==null?void 0:H[Q])!=null?Pe:0,st=je?Se:Ue-_[Le]-D[Le]-ct+F.altAxis,mt=je?Ue+_[Le]+D[Le]-ct-F.altAxis:Ve,yi=d&&je?XI(st,Ue,mt):lr(d?st:Se,Ue,d?mt:Ve);B[Q]=yi,j[Q]=yi-Ue}e.modifiersData[i]=j}}const Rm={name:"preventOverflow",enabled:!0,phase:"main",fn:wm,requiresIfExists:["offset"]};function xm(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function Dm(s){return s===xt(s)||!Nt(s)?wa(s):xm(s)}function Tm(s){var e=s.getBoundingClientRect(),t=Bs(e.width)/s.offsetWidth||1,i=Bs(e.height)/s.offsetHeight||1;return t!==1||i!==1}function Lm(s,e,t){t===void 0&&(t=!1);var i=Nt(e),r=Nt(e)&&Tm(e),n=Ti(e),o=Qs(s,r,t),a={scrollLeft:0,scrollTop:0},A={x:0,y:0};return(i||!i&&!t)&&((ti(e)!=="body"||xa(n))&&(a=Dm(e)),Nt(e)?(A=Qs(e,!0),A.x+=e.clientLeft,A.y+=e.clientTop):n&&(A.x=Ra(n))),{x:o.left+a.scrollLeft-A.x,y:o.top+a.scrollTop-A.y,width:o.width,height:o.height}}function _m(s){var e=new Map,t=new Set,i=[];s.forEach(function(n){e.set(n.name,n)});function r(n){t.add(n.name);var o=[].concat(n.requires||[],n.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var A=e.get(a);A&&r(A)}}),i.push(n)}return s.forEach(function(n){t.has(n.name)||r(n)}),i}function km(s){var e=_m(s);return VI.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function Fm(s){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(s())})})),e}}function Nm(s){var e=s.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var iu={placement:"bottom",modifiers:[],strategy:"absolute"};function su(){for(var s=arguments.length,e=new Array(s),t=0;t<s;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Mm(s){s===void 0&&(s={});var e=s,t=e.defaultModifiers,i=t===void 0?[]:t,r=e.defaultOptions,n=r===void 0?iu:r;return function(a,A,l){l===void 0&&(l=n);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},iu,n),modifiersData:{},elements:{reference:a,popper:A},attributes:{},styles:{}},h=[],u=!1,d={state:c,setOptions:function(y){var v=typeof y=="function"?y(c.options):y;f(),c.options=Object.assign({},n,c.options,v),c.scrollParents={reference:Wi(a)?cr(a):a.contextElement?cr(a.contextElement):[],popper:cr(A)};var S=km(Nm([].concat(i,c.options.modifiers)));return c.orderedModifiers=S.filter(function(C){return C.enabled}),g(),d.update()},forceUpdate:function(){if(!u){var y=c.elements,v=y.reference,S=y.popper;if(su(v,S)){c.rects={reference:Lm(v,Ar(S),c.options.strategy==="fixed"),popper:Sa(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(F){return c.modifiersData[F.name]=Object.assign({},F.data)});for(var C=0;C<c.orderedModifiers.length;C++){if(c.reset===!0){c.reset=!1,C=-1;continue}var Q=c.orderedModifiers[C],B=Q.fn,_=Q.options,D=_===void 0?{}:_,G=Q.name;typeof B=="function"&&(c=B({state:c,options:D,name:G,instance:d})||c)}}}},update:Fm(function(){return new Promise(function(p){d.forceUpdate(),p(c)})}),destroy:function(){f(),u=!0}};if(!su(a,A))return d;d.setOptions(l).then(function(p){!u&&l.onFirstUpdate&&l.onFirstUpdate(p)});function g(){c.orderedModifiers.forEach(function(p){var y=p.name,v=p.options,S=v===void 0?{}:v,C=p.effect;if(typeof C=="function"){var Q=C({state:c,name:y,instance:d,options:S}),B=function(){};h.push(Q||B)}})}function f(){h.forEach(function(p){return p()}),h=[]}return d}}var Om=[am,Sm,nm,Hh,Bm,Im,Rm,tm,Cm],Pm=Mm({defaultModifiers:Om}),Um="tippy-box",ru="tippy-content",Gm="tippy-backdrop",nu="tippy-arrow",ou="tippy-svg-arrow",ji={passive:!0,capture:!0},au=function(){return document.body};function Ta(s,e,t){if(Array.isArray(s)){var i=s[e];return i??(Array.isArray(t)?t[e]:t)}return s}function La(s,e){var t={}.toString.call(s);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function Au(s,e){return typeof s=="function"?s.apply(void 0,e):s}function lu(s,e){if(e===0)return s;var t;return function(i){clearTimeout(t),t=setTimeout(function(){s(i)},e)}}function Hm(s){return s.split(/\s+/).filter(Boolean)}function bs(s){return[].concat(s)}function cu(s,e){s.indexOf(e)===-1&&s.push(e)}function $m(s){return s.filter(function(e,t){return s.indexOf(e)===t})}function Ym(s){return s.split("-")[0]}function xn(s){return[].slice.call(s)}function hu(s){return Object.keys(s).reduce(function(e,t){return s[t]!==void 0&&(e[t]=s[t]),e},{})}function ur(){return document.createElement("div")}function Dn(s){return["Element","Fragment"].some(function(e){return La(s,e)})}function Km(s){return La(s,"NodeList")}function Vm(s){return La(s,"MouseEvent")}function Jm(s){return!!(s&&s._tippy&&s._tippy.reference===s)}function Wm(s){return Dn(s)?[s]:Km(s)?xn(s):Array.isArray(s)?s:xn(document.querySelectorAll(s))}function _a(s,e){s.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function uu(s,e){s.forEach(function(t){t&&t.setAttribute("data-state",e)})}function qm(s){var e,t=bs(s),i=t[0];return i!=null&&(e=i.ownerDocument)!=null&&e.body?i.ownerDocument:document}function jm(s,e){var t=e.clientX,i=e.clientY;return s.every(function(r){var n=r.popperRect,o=r.popperState,a=r.props,A=a.interactiveBorder,l=Ym(o.placement),c=o.modifiersData.offset;if(!c)return!0;var h=l==="bottom"?c.top.y:0,u=l==="top"?c.bottom.y:0,d=l==="right"?c.left.x:0,g=l==="left"?c.right.x:0,f=n.top-i+h>A,p=i-n.bottom-u>A,y=n.left-t+d>A,v=t-n.right-g>A;return f||p||y||v})}function ka(s,e,t){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){s[i](r,t)})}function du(s,e){for(var t=e;t;){var i;if(s.contains(t))return!0;t=t.getRootNode==null||(i=t.getRootNode())==null?void 0:i.host}return!1}var si={isTouch:!1},gu=0;function Xm(){si.isTouch||(si.isTouch=!0,window.performance&&document.addEventListener("mousemove",fu))}function fu(){var s=performance.now();s-gu<20&&(si.isTouch=!1,document.removeEventListener("mousemove",fu)),gu=s}function zm(){var s=document.activeElement;if(Jm(s)){var e=s._tippy;s.blur&&!e.state.isVisible&&s.blur()}}function Zm(){document.addEventListener("touchstart",Xm,ji),window.addEventListener("blur",zm)}var eC=typeof window<"u"&&typeof document<"u",tC=eC?!!window.msCrypto:!1,iC={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},sC={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ht=Object.assign({appendTo:au,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},iC,sC),rC=Object.keys(Ht),nC=function(e){var t=Object.keys(e);t.forEach(function(i){Ht[i]=e[i]})};function pu(s){var e=s.plugins||[],t=e.reduce(function(i,r){var n=r.name,o=r.defaultValue;if(n){var a;i[n]=s[n]!==void 0?s[n]:(a=Ht[n])!=null?a:o}return i},{});return Object.assign({},s,t)}function oC(s,e){var t=e?Object.keys(pu(Object.assign({},Ht,{plugins:e}))):rC,i=t.reduce(function(r,n){var o=(s.getAttribute("data-tippy-"+n)||"").trim();if(!o)return r;if(n==="content")r[n]=o;else try{r[n]=JSON.parse(o)}catch{r[n]=o}return r},{});return i}function Eu(s,e){var t=Object.assign({},e,{content:Au(e.content,[s])},e.ignoreAttributes?{}:oC(s,e.plugins));return t.aria=Object.assign({},Ht.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}var aC=function(){return"innerHTML"};function Fa(s,e){s[aC()]=e}function Iu(s){var e=ur();return s===!0?e.className=nu:(e.className=ou,Dn(s)?e.appendChild(s):Fa(e,s)),e}function mu(s,e){Dn(e.content)?(Fa(s,""),s.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Fa(s,e.content):s.textContent=e.content)}function Na(s){var e=s.firstElementChild,t=xn(e.children);return{box:e,content:t.find(function(i){return i.classList.contains(ru)}),arrow:t.find(function(i){return i.classList.contains(nu)||i.classList.contains(ou)}),backdrop:t.find(function(i){return i.classList.contains(Gm)})}}function Cu(s){var e=ur(),t=ur();t.className=Um,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var i=ur();i.className=ru,i.setAttribute("data-state","hidden"),mu(i,s.props),e.appendChild(t),t.appendChild(i),r(s.props,s.props);function r(n,o){var a=Na(e),A=a.box,l=a.content,c=a.arrow;o.theme?A.setAttribute("data-theme",o.theme):A.removeAttribute("data-theme"),typeof o.animation=="string"?A.setAttribute("data-animation",o.animation):A.removeAttribute("data-animation"),o.inertia?A.setAttribute("data-inertia",""):A.removeAttribute("data-inertia"),A.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?A.setAttribute("role",o.role):A.removeAttribute("role"),(n.content!==o.content||n.allowHTML!==o.allowHTML)&&mu(l,s.props),o.arrow?c?n.arrow!==o.arrow&&(A.removeChild(c),A.appendChild(Iu(o.arrow))):A.appendChild(Iu(o.arrow)):c&&A.removeChild(c)}return{popper:e,onUpdate:r}}Cu.$$tippy=!0;var AC=1,Tn=[],Ma=[];function lC(s,e){var t=Eu(s,Object.assign({},Ht,pu(hu(e)))),i,r,n,o=!1,a=!1,A=!1,l=!1,c,h,u,d=[],g=lu(he,t.interactiveDebounce),f,p=AC++,y=null,v=$m(t.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},C={id:p,reference:s,popper:ur(),popperInstance:y,props:t,state:S,plugins:v,clearDelayTimeouts:st,setProps:mt,setContent:yi,show:Ct,hide:ai,hideWithInteractivity:Ai,enable:je,disable:ct,unmount:li,destroy:gt};if(!t.render)return C;var Q=t.render(C),B=Q.popper,_=Q.onUpdate;B.setAttribute("data-tippy-root",""),B.id="tippy-"+C.id,C.popper=B,s._tippy=C,B._tippy=C;var D=v.map(function(Y){return Y.fn(C)}),G=s.hasAttribute("aria-expanded");return Ce(),T(),U(),x("onCreate",[C]),t.showOnCreate&&Se(),B.addEventListener("mouseenter",function(){C.props.interactive&&C.state.isVisible&&C.clearDelayTimeouts()}),B.addEventListener("mouseleave",function(){C.props.interactive&&C.props.trigger.indexOf("mouseenter")>=0&&J().addEventListener("mousemove",g)}),C;function F(){var Y=C.props.touch;return Array.isArray(Y)?Y:[Y,0]}function H(){return F()[0]==="hold"}function j(){var Y;return!!((Y=C.props.render)!=null&&Y.$$tippy)}function V(){return f||s}function J(){var Y=V().parentNode;return Y?qm(Y):document}function b(){return Na(B)}function R(Y){return C.state.isMounted&&!C.state.isVisible||si.isTouch||c&&c.type==="focus"?0:Ta(C.props.delay,Y?0:1,Ht.delay)}function U(Y){Y===void 0&&(Y=!1),B.style.pointerEvents=C.props.interactive&&!Y?"":"none",B.style.zIndex=""+C.props.zIndex}function x(Y,le,ge){if(ge===void 0&&(ge=!0),D.forEach(function(be){be[Y]&&be[Y].apply(be,le)}),ge){var Re;(Re=C.props)[Y].apply(Re,le)}}function w(){var Y=C.props.aria;if(Y.content){var le="aria-"+Y.content,ge=B.id,Re=bs(C.props.triggerTarget||s);Re.forEach(function(be){var Je=be.getAttribute(le);if(C.state.isVisible)be.setAttribute(le,Je?Je+" "+ge:ge);else{var yt=Je&&Je.replace(ge,"").trim();yt?be.setAttribute(le,yt):be.removeAttribute(le)}})}}function T(){if(!(G||!C.props.aria.expanded)){var Y=bs(C.props.triggerTarget||s);Y.forEach(function(le){C.props.interactive?le.setAttribute("aria-expanded",C.state.isVisible&&le===V()?"true":"false"):le.removeAttribute("aria-expanded")})}}function K(){J().removeEventListener("mousemove",g),Tn=Tn.filter(function(Y){return Y!==g})}function M(Y){if(!(si.isTouch&&(A||Y.type==="mousedown"))){var le=Y.composedPath&&Y.composedPath()[0]||Y.target;if(!(C.props.interactive&&du(B,le))){if(bs(C.props.triggerTarget||s).some(function(ge){return du(ge,le)})){if(si.isTouch||C.state.isVisible&&C.props.trigger.indexOf("click")>=0)return}else x("onClickOutside",[C,Y]);C.props.hideOnClick===!0&&(C.clearDelayTimeouts(),C.hide(),a=!0,setTimeout(function(){a=!1}),C.state.isMounted||Ae())}}}function q(){A=!0}function ie(){A=!1}function ce(){var Y=J();Y.addEventListener("mousedown",M,!0),Y.addEventListener("touchend",M,ji),Y.addEventListener("touchstart",ie,ji),Y.addEventListener("touchmove",q,ji)}function Ae(){var Y=J();Y.removeEventListener("mousedown",M,!0),Y.removeEventListener("touchend",M,ji),Y.removeEventListener("touchstart",ie,ji),Y.removeEventListener("touchmove",q,ji)}function me(Y,le){xe(Y,function(){!C.state.isVisible&&B.parentNode&&B.parentNode.contains(B)&&le()})}function Be(Y,le){xe(Y,le)}function xe(Y,le){var ge=b().box;function Re(be){be.target===ge&&(ka(ge,"remove",Re),le())}if(Y===0)return le();ka(ge,"remove",h),ka(ge,"add",Re),h=Re}function re(Y,le,ge){ge===void 0&&(ge=!1);var Re=bs(C.props.triggerTarget||s);Re.forEach(function(be){be.addEventListener(Y,le,ge),d.push({node:be,eventType:Y,handler:le,options:ge})})}function Ce(){H()&&(re("touchstart",ue,{passive:!0}),re("touchend",ae,{passive:!0})),Hm(C.props.trigger).forEach(function(Y){if(Y!=="manual")switch(re(Y,ue),Y){case"mouseenter":re("mouseleave",ae);break;case"focus":re(tC?"focusout":"blur",we);break;case"focusin":re("focusout",we);break}})}function ye(){d.forEach(function(Y){var le=Y.node,ge=Y.eventType,Re=Y.handler,be=Y.options;le.removeEventListener(ge,Re,be)}),d=[]}function ue(Y){var le,ge=!1;if(!(!C.state.isEnabled||Pe(Y)||a)){var Re=((le=c)==null?void 0:le.type)==="focus";c=Y,f=Y.currentTarget,T(),!C.state.isVisible&&Vm(Y)&&Tn.forEach(function(be){return be(Y)}),Y.type==="click"&&(C.props.trigger.indexOf("mouseenter")<0||o)&&C.props.hideOnClick!==!1&&C.state.isVisible?ge=!0:Se(Y),Y.type==="click"&&(o=!ge),ge&&!Re&&Ve(Y)}}function he(Y){var le=Y.target,ge=V().contains(le)||B.contains(le);if(!(Y.type==="mousemove"&&ge)){var Re=Le().concat(B).map(function(be){var Je,yt=be._tippy,vt=(Je=yt.popperInstance)==null?void 0:Je.state;return vt?{popperRect:be.getBoundingClientRect(),popperState:vt,props:t}:null}).filter(Boolean);jm(Re,Y)&&(K(),Ve(Y))}}function ae(Y){var le=Pe(Y)||C.props.trigger.indexOf("click")>=0&&o;if(!le){if(C.props.interactive){C.hideWithInteractivity(Y);return}Ve(Y)}}function we(Y){C.props.trigger.indexOf("focusin")<0&&Y.target!==V()||C.props.interactive&&Y.relatedTarget&&B.contains(Y.relatedTarget)||Ve(Y)}function Pe(Y){return si.isTouch?H()!==Y.type.indexOf("touch")>=0:!1}function Te(){ke();var Y=C.props,le=Y.popperOptions,ge=Y.placement,Re=Y.offset,be=Y.getReferenceClientRect,Je=Y.moveTransition,yt=j()?Na(B).arrow:null,vt=be?{getBoundingClientRect:be,contextElement:be.contextElement||V()}:s,Ts={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ls){var ki=Ls.state;if(j()){var Er=b(),Ir=Er.box;["placement","reference-hidden","escaped"].forEach(function(_s){_s==="placement"?Ir.setAttribute("data-placement",ki.placement):ki.attributes.popper["data-popper-"+_s]?Ir.setAttribute("data-"+_s,""):Ir.removeAttribute("data-"+_s)}),ki.attributes.popper={}}}},Bt=[{name:"offset",options:{offset:Re}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Je}},Ts];j()&&yt&&Bt.push({name:"arrow",options:{element:yt,padding:3}}),Bt.push.apply(Bt,(le==null?void 0:le.modifiers)||[]),C.popperInstance=Pm(vt,B,Object.assign({},le,{placement:ge,onFirstUpdate:u,modifiers:Bt}))}function ke(){C.popperInstance&&(C.popperInstance.destroy(),C.popperInstance=null)}function Ue(){var Y=C.props.appendTo,le,ge=V();C.props.interactive&&Y===au||Y==="parent"?le=ge.parentNode:le=Au(Y,[ge]),le.contains(B)||le.appendChild(B),C.state.isMounted=!0,Te()}function Le(){return xn(B.querySelectorAll("[data-tippy-root]"))}function Se(Y){C.clearDelayTimeouts(),Y&&x("onTrigger",[C,Y]),ce();var le=R(!0),ge=F(),Re=ge[0],be=ge[1];si.isTouch&&Re==="hold"&&be&&(le=be),le?i=setTimeout(function(){C.show()},le):C.show()}function Ve(Y){if(C.clearDelayTimeouts(),x("onUntrigger",[C,Y]),!C.state.isVisible){Ae();return}if(!(C.props.trigger.indexOf("mouseenter")>=0&&C.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Y.type)>=0&&o)){var le=R(!1);le?r=setTimeout(function(){C.state.isVisible&&C.hide()},le):n=requestAnimationFrame(function(){C.hide()})}}function je(){C.state.isEnabled=!0}function ct(){C.hide(),C.state.isEnabled=!1}function st(){clearTimeout(i),clearTimeout(r),cancelAnimationFrame(n)}function mt(Y){if(!C.state.isDestroyed){x("onBeforeUpdate",[C,Y]),ye();var le=C.props,ge=Eu(s,Object.assign({},le,hu(Y),{ignoreAttributes:!0}));C.props=ge,Ce(),le.interactiveDebounce!==ge.interactiveDebounce&&(K(),g=lu(he,ge.interactiveDebounce)),le.triggerTarget&&!ge.triggerTarget?bs(le.triggerTarget).forEach(function(Re){Re.removeAttribute("aria-expanded")}):ge.triggerTarget&&s.removeAttribute("aria-expanded"),T(),U(),_&&_(le,ge),C.popperInstance&&(Te(),Le().forEach(function(Re){requestAnimationFrame(Re._tippy.popperInstance.forceUpdate)})),x("onAfterUpdate",[C,Y])}}function yi(Y){C.setProps({content:Y})}function Ct(){var Y=C.state.isVisible,le=C.state.isDestroyed,ge=!C.state.isEnabled,Re=si.isTouch&&!C.props.touch,be=Ta(C.props.duration,0,Ht.duration);if(!(Y||le||ge||Re)&&!V().hasAttribute("disabled")&&(x("onShow",[C],!1),C.props.onShow(C)!==!1)){if(C.state.isVisible=!0,j()&&(B.style.visibility="visible"),U(),ce(),C.state.isMounted||(B.style.transition="none"),j()){var Je=b(),yt=Je.box,vt=Je.content;_a([yt,vt],0)}u=function(){var Bt;if(!(!C.state.isVisible||l)){if(l=!0,B.offsetHeight,B.style.transition=C.props.moveTransition,j()&&C.props.animation){var es=b(),Ls=es.box,ki=es.content;_a([Ls,ki],be),uu([Ls,ki],"visible")}w(),T(),cu(Ma,C),(Bt=C.popperInstance)==null||Bt.forceUpdate(),x("onMount",[C]),C.props.animation&&j()&&Be(be,function(){C.state.isShown=!0,x("onShown",[C])})}},Ue()}}function ai(){var Y=!C.state.isVisible,le=C.state.isDestroyed,ge=!C.state.isEnabled,Re=Ta(C.props.duration,1,Ht.duration);if(!(Y||le||ge)&&(x("onHide",[C],!1),C.props.onHide(C)!==!1)){if(C.state.isVisible=!1,C.state.isShown=!1,l=!1,o=!1,j()&&(B.style.visibility="hidden"),K(),Ae(),U(!0),j()){var be=b(),Je=be.box,yt=be.content;C.props.animation&&(_a([Je,yt],Re),uu([Je,yt],"hidden"))}w(),T(),C.props.animation?j()&&me(Re,C.unmount):C.unmount()}}function Ai(Y){J().addEventListener("mousemove",g),cu(Tn,g),g(Y)}function li(){C.state.isVisible&&C.hide(),C.state.isMounted&&(ke(),Le().forEach(function(Y){Y._tippy.unmount()}),B.parentNode&&B.parentNode.removeChild(B),Ma=Ma.filter(function(Y){return Y!==C}),C.state.isMounted=!1,x("onHidden",[C]))}function gt(){C.state.isDestroyed||(C.clearDelayTimeouts(),C.unmount(),ye(),delete s._tippy,C.state.isDestroyed=!0,x("onDestroy",[C]))}}function Xi(s,e){e===void 0&&(e={});var t=Ht.plugins.concat(e.plugins||[]);Zm();var i=Object.assign({},e,{plugins:t}),r=Wm(s),n=r.reduce(function(o,a){var A=a&&lC(a,i);return A&&o.push(A),o},[]);return Dn(s)?n[0]:n}Xi.defaultProps=Ht,Xi.setDefaultProps=nC,Xi.currentInput=si,Object.assign({},Hh,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),Xi.setDefaultProps({render:Cu});class ri extends Error{constructor(e,t=new Error,i=!1){super(),this.fatal=!1,this.fatal=i,this.stack=t.stack,this.message=[e,t.message].filter(Boolean).join(" - ")}}const cC=5;class hC{constructor(e){this._caption="",this._currentTime=0,this._activeScenes=[],this._upcomingScenes=[],this._canvas=ft(),this._controls=ft(),this.host=e}set activeScenes(e){if(e!==this._activeScenes){const t=e[0],i=this._activeScenes[0];this._activeScenes=e,t!==i&&(this.host.dispatchEvent(new CustomEvent("scenechange",{detail:e[0]})),this.host.requestUpdate())}}get activeScenes(){return this._activeScenes}set currentTime(e){var t,i,r,n,o;const a=Math.min(this.host.duration,Math.max(0,e));this._currentTime=a,this.activeScenes=((t=this.host.scenes)==null?void 0:t.filter(({start:c,duration:h})=>a>=c&&a<c+h))??[],this._upcomingScenes=((i=this.host.scenes)==null?void 0:i.filter(({start:c})=>a>=c-cC&&a<c))??[],this.loadScenes(),this.syncVideoState(),(r=this._controls.value)==null||r.setAttribute("currentTime",a.toString());const A=this.activeScenes[0],l=El((n=A==null?void 0:A.videoMeta)==null?void 0:n.captions);this.caption=((o=l.find(({start:c,end:h})=>{var u;const d=a-A.start+(((u=A.videoMeta)==null?void 0:u.start)??0);return c&&h&&d>=Kr(c)&&d<=Kr(h)}))==null?void 0:o.text)??"",this.draw(a),!this.host.paused&&!this.host.loading&&!this.host.processing&&!this.host.waiting&&this.host.dispatchEvent(new CustomEvent("timeupdate",{detail:a}))}get currentTime(){return this._currentTime}set caption(e){e!==this._caption&&(this._caption=e,this.host.requestUpdate())}get caption(){return this._caption}canvas(){return pt(this._canvas)}controls(){return pt(this._controls)}loadScenes(){[...this.activeScenes,...this._upcomingScenes].forEach(e=>{var t,i,r;const{start:n,duration:o,video:a,videoMeta:A}=e,l=this.host.currentTime>0||this.host.preload==="auto"||!this.host.paused;if(a&&A){const{key:c,hls:h,node:u}=a,{start:d,duration:g}=A,f=this.host.videoState[c];u&&f&&(u.currentTime>=d+g||u.ended||l&&(h?(t=h.startLoadOnce)==null||t.call(h,u.currentTime):f.initialised||(i=u.startLoadOnce)==null||i.call(u)))}else if(l){const c=`${n}-${o}`,h=this.host._sceneController.videoState[c];this.host.duration&&!((r=h==null?void 0:h.buffered)!=null&&r.length)&&(this.host._sceneController.videoState={...this.host._sceneController.videoState,[c]:{...h,buffered:[{start:Math.max(0,n/this.host.duration*100),end:Math.min((n+o)/this.host.duration*100,100)}]}})}})}syncVideoState(){var e;(e=this.host.scenes)==null||e.forEach(t=>{if(t.video){const{key:i,node:r}=t.video,n=this.host.videoState[i],o=this.activeScenes.includes(t);if(r&&n)if(o&&!this.host.waiting&&!this.host.loading&&!this.host.paused){if(r.paused&&n.initialised)try{return r.play()}catch(a){throw new ri("Video play error",a,!0)}}else r.paused||r.pause()}})}draw(e=this.currentTime){var t,i;this.host.sceneConfig&&this._canvas.value&&((i=(t=this.host).compilation)==null||i.call(t,{currentTime:e,scenes:this.host.sceneConfig,canvas:this._canvas.value}))}clear(){var e;const t=this._canvas.value;(e=t==null?void 0:t.getContext("2d"))==null||e.clearRect(0,0,t.width,t.height)}}function uC(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function dC(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function Oa(s){const{id:e,key:t,src:i,playlist:r,duration:n}=s;return new Promise(o=>{let a=null;const A=document.createElement("video");if(A.playsInline=!0,A.muted=!0,A.loop=!1,r&&!uC()&&mi.isSupported()){let l=!1;a=new mi({autoStartLoad:!0,progressive:!0,fetchSetup:(c,h)=>{let u=c.url;const d=r.split("?")[1];return u.toString().includes("?")||(u+="?"+d),new Request(u,h)}}),a.loadSource(r),a.attachMedia(A),a.startLoadOnce=(c=-1,h)=>{if(a&&!l){const u=a==null?void 0:a.levels.findIndex(d=>Math.min(d.height,d.width)===h);a.startLevel=a.firstLevel,a.startLoad(c),l=!0,a.currentLevel=u!==-1?u:a.firstLevel}},a.on(mi.Events.LEVEL_LOADED,async()=>{l||a==null||a.stopLoad(),o({id:e,key:t,hls:a,config:s,node:A})})}else{A.src=i;let l=!1;if(A.startLoadOnce=()=>{l||(A.preload="auto",A.load(),l=!0)},n)A.preload="none",o({id:e,key:t,hls:a,config:s,node:A});else{A.preload="metadata";const c=async()=>{o({id:e,key:t,hls:a,config:s,node:A}),A.removeEventListener("loadedmetadata",c)};A.addEventListener("loadedmetadata",c)}}})}async function yu(s){return s.duration===1/0?new Promise(e=>{s.currentTime=Number.MAX_SAFE_INTEGER,s.ontimeupdate=()=>{s.ontimeupdate=null,e(s.duration),s.currentTime=0}}):s.duration}const gC=ui(async function(e){return new FontFace(e.name,`url(${e.woff2??e.url})`,{style:e.style,weight:e.weight}).load()},{cacheKey:([s])=>JSON.stringify(s)});let fC=class{constructor(e){this._hasPlayed=!1,this._memoKey=null,this._lastDeps=null,this._duration=0,this._scenes=null,this._videos={},this._videoMeta={},this._videoState={},this._delayProcessing=(t=100)=>{const i=new AbortController,r=setTimeout(()=>{i.signal.aborted||(this.host._processing=!0)},t);return i.signal.addEventListener("abort",()=>{clearTimeout(r)}),i},this._createDataResolver=t=>i=>this.host.dataResolver(i,{language:t}),this._resolveVideo=ui(async t=>{const{id:i,key:r}=t,n=await Oa(t);n.node.volume=this.host.volume,n.node.playbackRate=this.host.playbackRate;const o={loadeddata:this._handleLoadedData,waiting:this._handleWaiting,canplay:this._handleCanPlay,progress:this._handleProgress,seeking:this._handleSeeking,seeked:this._handleSeeked,play:this._handlePlay,playing:this._handlePlaying,pause:this._handlePause,stalled:this._handleStalled,timeupdate:this._handleTimeUpdate,ended:this._handleEnded,error:this._handleError},a=Object.keys(o).reduce((A,l)=>{const c=l,h=o[c]({id:i,key:r,node:n.node});return A[c]=h,n.node.addEventListener(l,h),A},{});return{...n,listeners:a}},{cacheKey:([{id:t,key:i,src:r,playlist:n}])=>JSON.stringify({id:t,key:i,src:r==null?void 0:r.split("?")[0],playlist:n==null?void 0:n.split("?")[0]})}),this._resolveVideoMeta=ui(async(t,i)=>{const{id:r,captions:n,duration:o,startOffset:a,endOffset:A}=t,l=o??await yu(i),c=(a??0)*l,h=(1-(A??0))*l;return{id:r,captions:n,start:c,duration:h-c}},{cacheKey:([{id:t,key:i,captions:r,duration:n,startOffset:o,endOffset:a}])=>JSON.stringify({id:t,key:i,captions:r,duration:n,startOffset:o,endOffset:a})}),this._handleLoadedData=({id:t,key:i,node:r})=>()=>{var n,o;const a=this.videoState[i];if(!(a!=null&&a.initialised)){this.videoState={...this.videoState,[i]:{...a,initialised:!0,waiting:!1,buffered:(a==null?void 0:a.buffered)??[]}};const A=(o=(n=this.scenes)==null?void 0:n.scenes)==null?void 0:o.find(({video:l})=>{l==null||l.key});A&&this._setVideoCurrentTime({scene:A,time:this.host.currentTime}),this.host.dispatchEvent(new CustomEvent("video:loadeddata",{detail:{id:t,key:i,node:r}}))}},this._handleWaiting=({key:t})=>()=>{const i=this.videoState[t];i!=null&&i.initialised&&!(i!=null&&i.waiting)&&(this.videoState={...this.videoState,[t]:{...i,waiting:!0}})},this._handleCanPlay=({key:t})=>()=>{const i=this.videoState[t];i!=null&&i.initialised&&(i!=null&&i.waiting)&&(this.videoState={...this.videoState,[t]:{...i,waiting:!1}}),this.host.paused&&this.host.draw()},this._handleProgress=({key:t,node:i})=>()=>{const r=this.videoState[t],n=this._getBufferSegments({key:t,node:i,duration:this.host.duration});this.videoState={...this.videoState,[t]:{...r,buffered:n}}},this._handleSeeking=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:seeking",{detail:{id:t,key:i,node:r}}))},this._handleSeeked=({id:t,key:i,node:r})=>()=>{const n=this.videoState[i];n!=null&&n.initialised&&(this.host.draw(),this.host.dispatchEvent(new CustomEvent("video:seeked",{detail:{id:t,key:i,node:r}})))},this._handlePlay=({id:t,key:i,node:r})=>()=>{this.hasPlayed=!0,this.host.dispatchEvent(new CustomEvent("video:play",{detail:{id:t,key:i,node:r}}))},this._handlePlaying=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:playing",{detail:{id:t,key:i,node:r}}))},this._handlePause=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:pause",{detail:{id:t,key:i,node:r}}))},this._handleStalled=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:stalled",{detail:{id:t,key:i,node:r}}))},this._handleTimeUpdate=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:timeupdate",{detail:{id:t,key:i,node:r}}))},this._handleEnded=({id:t,key:i,node:r})=>()=>{this.host.dispatchEvent(new CustomEvent("video:ended",{detail:{id:t,key:i,node:r}}))},this._handleError=({id:t,key:i,node:r})=>()=>{const n=new ri(`Video error - answer ${t} failed to load`);this.host.dispatchEvent(new ErrorEvent("error",{bubbles:!0,composed:!0,error:n,message:n.message})),this.host.dispatchEvent(new CustomEvent("video:error",{detail:{id:t,key:i,node:r}}))},this._cleanupVideo=t=>{var i;const r=this.videos[t];r&&(r.node.pause(),r.node.src="",(i=r.hls)==null||i.destroy(),Object.keys(r.listeners??{}).forEach(n=>{var o,a;if((o=this.videos)!=null&&o[t]){const A=(a=r.listeners)==null?void 0:a[n];A&&r.node.removeEventListener(n,A)}}),delete this.videos[t])},this.host=e,this.host.addController(this)}set hasPlayed(e){e!==this._hasPlayed&&(this._hasPlayed=e,this.host.requestUpdate())}get hasPlayed(){return this._hasPlayed}set duration(e){!isNaN(e)&&e!==this._duration&&(this._duration=e,this.host.requestUpdate(),this.host.dispatchEvent(new CustomEvent("durationchange",{detail:this._duration})))}get duration(){return this._duration}set scenes(e){e!==this._scenes&&(this._scenes=e,this.host.requestUpdate())}get scenes(){return this._scenes}set videos(e){e!==this._videos&&(this._videos=e,this.host.requestUpdate())}get videos(){return this._videos}set videoMeta(e){e!==this._videoMeta&&(this._videoMeta=e,this.host.requestUpdate())}get videoMeta(){return this._videoMeta}set videoState(e){e!==this._videoState&&(this._videoState=e,this.host.requestUpdate())}get videoState(){return this._videoState}_getBufferSegments({key:e,node:t,duration:i}){var r;const n=t==null?void 0:t.buffered,o=[],{start:a,video:A,videoMeta:l}=((r=this.scenes)==null?void 0:r.scenes.find(({video:c})=>e===(c==null?void 0:c.key)))??{};if(t&&n&&A&&l&&typeof a<"u")for(let c=0;c<n.length;c++){const h=n.start(c),u=n.end(c);Math.max(h,l.start)<=Math.min(u,l.start+l.duration)&&o.push({start:Math.max(0,(Math.max(h-l.start,0)+a)/i*100),end:Math.min((Math.min(u-l.start,l.duration)+a)/i*100,100)})}return o}_setupTask(){new Qr(this.host,async([e,t,i,r,n,o,a])=>{var A;const l=this._delayProcessing();try{let c=null;if(this.host._errors=[],this.host._languages=this.host.languageResolver({data:e}),(!n||!this.host._languages.find(({value:h})=>n===h))&&(this.host._language=(A=this.host._languages[0])==null?void 0:A.value),i||e){if(i){let d=null;if(r)try{d=await(await fetch(r,{method:"GET"})).text()}catch(p){const y=new ri("Track failed to fetch",p);this.host.dispatchEvent(new ErrorEvent("error",{composed:!0,bubbles:!0,error:y,message:y.message}))}const f={questions:{items:[{answer:{id:"source",media:{[i.includes(".m3u8")?"playlist":"video"]:i},captions:{current:d}}}]}};try{this.scenes=await as({data:f,template:t,burnCaptions:o,debug:a},this._createDataResolver(this.host.language),this._resolveVideo,this._resolveVideoMeta)}catch(p){try{this.scenes=await as({data:f,burnCaptions:o,debug:a},this._createDataResolver(this.host.language),this._resolveVideo,this._resolveVideoMeta)}catch(y){throw new ri("Fatal source template error",y,!0)}c=new ri("Source template error",p)}}else try{this.scenes=await as({data:e,template:t,burnCaptions:o,debug:a},this._createDataResolver(this.host.language),this._resolveVideo,this._resolveVideoMeta)}catch(d){try{this.scenes=await as({data:e,burnCaptions:o,debug:a},this._createDataResolver(this.host.language),this._resolveVideo,this._resolveVideoMeta)}catch(g){throw new ri("Fatal data template error",g,!0)}c=new ri("Data template error",d)}Object.keys(this.videos).forEach(d=>{this.scenes.scenes.find(({video:g})=>d===(g==null?void 0:g.key))||this._videos[d].node.pause()});const h=this.scenes.scenes.reduce((d,{video:g})=>(g&&(d[g.key]=g),d),{});Object.keys(this.videos).join("|")!==Object.keys(h).join("|")&&this.host.reset(0,!1),this.videos=h,this.videoState={...this.videoState,...this.scenes.scenes.reduce((d,{video:g,start:f,duration:p})=>{var y;const v=(g==null?void 0:g.key)??`${f}-${p}`,S=this._getBufferSegments({key:v,node:g==null?void 0:g.node,duration:this.scenes.duration});return d[v]={initialised:!g,waiting:!!g,...this.videoState[v],buffered:g?S:(y=this.videoState[v])==null?void 0:y.buffered},d},{})},this.videoMeta=this.scenes.scenes.reduce((d,{video:g,videoMeta:f})=>(g&&f&&(d[g.key]=f),d),{}),(await Promise.all(this.scenes.fonts.map(d=>gC(d)))).forEach(d=>{document.fonts.add(d)}),this.duration=this.scenes.duration,this.host.paused&&this.host.reset(this.host.currentTime,!this.host.paused)}c&&this.host.dispatchEvent(new ErrorEvent("error",{composed:!0,bubbles:!0,error:c,message:c.message}))}catch(c){this.scenes=null,this.duration=0,this.host.dispatchEvent(new ErrorEvent("error",{composed:!0,bubbles:!0,error:c,message:c.message}))}finally{l.abort(),this.host._processing=!1}},()=>{const e=JSON.stringify({data:this.host.data,template:this.host.template,src:this.host.src,track:this.host.track,language:this.host.language,burnCaptions:this.host.burnCaptions,debug:this.host.debug});if(this._lastDeps&&this._memoKey===e)return this._lastDeps;const t=[this.host.data,this.host.template,this.host.src,this.host.track,this.host.language,this.host.burnCaptions,this.host.debug];return this._memoKey=e,this._lastDeps=t,t})}_setVideoCurrentTime({time:e,scene:t}){const{start:i,video:r,videoMeta:n}=t;if(r&&r.node&&n&&typeof i<"u"){const o=e-i;r.node.currentTime=Math.max(n.start,Math.min(n.start+n.duration,o+n.start))}}setVideosCurrentTime(e){var t;(t=this.scenes)==null||t.scenes.forEach(i=>{this._setVideoCurrentTime({time:e,scene:i})})}hostConnected(){this._setupTask()}hostDisconnected(){Object.keys(this.videos).forEach(e=>{this._cleanupVideo(e)}),this.videos={}}};function pC(s){s.requestFullscreen?s.requestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.webkitRequestFullscreen?s.webkitRequestFullscreen():s.msRequestFullscreen&&s.msRequestFullscreen()}function EC(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}const Pa=["progress","play-large","navigation","play","volume","current-time","duration","speed","captions","fullscreen","preview"],IC={id:"captions",event:"captions:click",label:"Closed Captions"},mC={id:"fullscreen",event:"fullscreen:click",label:"Full Screen"},vu={title:"Playback Speed",items:[{id:"playback-rate-0.5",event:"playbackRate:click",label:"0.5x",value:.5},{id:"playback-rate-1",event:"playbackRate:click",label:"1.0x",value:1},{id:"playback-rate-1.5",event:"playbackRate:click",label:"1.5x",value:1.5},{id:"playback-rate-2",event:"playbackRate:click",label:"2.0x",value:2}]},CC={id:"playbackRate",label:"Playback playbackRate",subItems:vu};class yC extends bA{constructor(e){if(super(e),this.element=null,this.observer=void 0,e.type!==rs.ELEMENT)throw new Error("Resize directive must be used in an Element expression")}disconnected(){var e;(e=this.observer)==null||e.disconnect(),this.observer=void 0}reconnected(){var e;this.element&&((e=this.observer)==null||e.observe(this.element))}update(e,[t]){return this.isConnected&&!this.observer&&(this.observer=new ResizeObserver(t),this.element=e.element,this.observer.observe(this.element)),Ot}}const Ua=ns(yC),vC=kI(()=>{const s=new FontFace("Roobert","url(https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/Roobert-Regular.woff2)",{style:"normal",weight:"400"}),e=new FontFace("Roobert","url(https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/Roobert-SemiBold.woff2)",{style:"normal",weight:"600"}),t=new FontFace("Roobert Captions","url(https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/Roobert-Regular.woff2)",{style:"normal",weight:"400"}),i=dl.map(r=>({load:!1,font:new FontFace(r.family,`url(${r.url})`,{style:r.style})}));return[{load:!0,font:s},{load:!0,font:e},{load:!0,font:t},...i]}),ni={"red-120":"#feeded","red-130":"#fcd5d0","red-400":"#e84a4a","red-500":"#c51c3a","red-700":"#a21c39","red-800":"#850231","red-900":"#580A2D","teal-80":"#f3fafa","teal-100":"#d6f1f1","teal-200":"#ace3e3","teal-300":"#7acace","teal-400":"#4faab2","teal-500":"#358f97","teal-600":"#287179","teal-700":"#22555c","teal-800":"#21484e","teal-900":"#1f3d42","teal-950":"#0d2126","purple-100":"#d7cfff","purple-700":"#5f2fe9","green-200":"#a4d7aa","green-500":"#38b319","green-800":"#2b3c2f","grey-100":"#f0f0f0","light-50":"rgba(255, 255, 255, .05)","light-100":"rgba(255, 255, 255, .1)","light-200":"rgba(255, 255, 255, .2)","light-400":"rgba(255, 255, 255, .4)","light-500":"rgba(255, 255, 255, .5)","light-640":"rgba(255, 255, 255, .64)","light-800":"rgba(255, 255, 255, .8)","light-1000":"#fff","dark-50":"rgba(0, 0, 0, .05)","dark-80":"rgba(0, 0, 0, .08)","dark-100":"rgba(0, 0, 0, .1)","dark-200":"rgba(0, 0, 0, .2)","dark-250":"rgba(0, 0, 0, .25)","dark-400":"rgba(0, 0, 0, .4)","dark-500":"rgba(0, 0, 0, .5)","dark-640":"rgba(0, 0, 0, .64)","dark-800":"rgba(0, 0, 0, .8)","dark-900":"rgba(0, 0, 0, .9)","dark-1000":"#000"},BC={colors:ni,space:{xxs:".25rem",xs:".5rem",small:".75rem",medium:"1rem",large:"1.5rem",xl:"2.5rem"},sizes:{xxs:"1rem",xs:"1.5rem",small:"2rem",medium:"2.5rem",large:"3rem"},fontWeights:{regular:400,semibold:600},lineHeights:{small:1.1,medium:1.25,large:1.4},letterSpacings:{xxs:"-.04rem",xs:"-.03rem",small:"-.02rem",medium:"-.01rem",large:0},fontSizes:{micro:".625rem",small:".75rem",medium:".875rem",large:"1rem",xl:"1.25rem",xxl:"1.5rem",xxxl:"2rem",huge:"2.75rem"},fontFamilies:{sans:'Roobert, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,"Noto Sans", "Noto Color Emoji", sans-serif, "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji"',mono:'"Maison Neue Mono", Menlo, Monaco, Consolas, Liberation Mono, "Courier New", monospace'},borderWidths:{thin:".0625rem"},radii:{small:".25rem",medium:".5rem",large:".75rem",xl:"1rem"},shadows:{small:`.25rem .25rem .25rem ${ni["dark-100"]}`,medium:`0 .125rem .625rem ${ni["dark-100"]}`,large:`0 .25rem 1rem ${ni["dark-50"]}`,xl:`.25rem .25rem 1rem ${ni["dark-250"]}`,xxl:`0 .25rem 2rem ${ni["dark-100"]}`,xxxl:`.25rem .25rem 3rem ${ni["dark-250"]}`,toolbar:`0 -.625rem .625rem ${ni["dark-50"]}`,text:`0 0 .25rem ${ni["dark-250"]}`},timings:{fast:".1s",normal:".2s",slow:".3s"},easings:{linear:"linear"},focusOutline:{width:".2rem",color:ni["dark-400"]},iconSizes:{small:"0.75rem",medium:"1rem",large:"1.5rem"}},Bu=TI(BC,{delimiter:"-"}),QC=Object.keys(Bu).map(s=>ks(`:host { --${s}: ${Bu[s]}; }`)),Ne=(s=>{const e=class extends s{firstUpdated(){vC().forEach(({load:n,font:o})=>{document.fonts.add(o),n&&o.load()})}};return e.styles=[(s==null?void 0:s.styles)??[],QC,ht`
187
187
  :host {
188
188
  font-family: var(--fontFamilies-sans);
189
189
  font-size: var(--fontSizes-medium);
@@ -264,12 +264,12 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
264
264
  scroll-behavior: auto !important;
265
265
  }
266
266
  }
267
- `],e})(ss),SC=(s,e)=>(typeof window<"u"&&(window.customElements.get(s)??window.customElements.define(s,e)),e),bC=(s,e)=>{const{kind:t,elements:i}=e;return{kind:t,elements:i,finisher(r){typeof window<"u"&&(window.customElements.get(s)??window.customElements.define(s,r))}}},Bt=s=>e=>typeof e=="function"?SC(s,e):bC(s,e);class wC{constructor(e){this._memoKey=null,this._lastDeps=null,this._scenes=null,this._video=null,this._handleSeeked=()=>{this.host._draw()},this._createDataResolver=t=>i=>this.host.dataResolver(i,{language:t}),this._resolveVideo=ui(async t=>{const i=await Oa(t);return i.node.play=async()=>{},i.node.addEventListener("seeked",this._handleSeeked),i},{cacheKey:([{id:t,src:i,playlist:r}])=>JSON.stringify({id:t,src:i==null?void 0:i.split("?")[0],playlist:r==null?void 0:r.split("?")[0]})}),this._resolveAnswer=ui(async t=>{const{id:i,key:r,poster:n}=t,{node:o}=await Oa(t),a=new Image;return{id:i,key:r,config:t,node:o,getSource:()=>(n&&a.src!==n&&(a.onload=()=>{this.host._draw()},a.src=n),a)}},{cacheKey:([{id:t,src:i,playlist:r,poster:n}])=>JSON.stringify({id:t,src:i==null?void 0:i.split("?")[0],playlist:r==null?void 0:r.split("?")[0],poster:n==null?void 0:n.split("?")[0]})}),this._resolveVideoMeta=ui(async(t,i)=>{const{id:r,captions:n,duration:o,startOffset:a,endOffset:A}=t,l=o??await yu(i),c=(a??0)*l,h=(1-(A??0))*l;return{id:r,captions:n,start:c,duration:h-c}},{cacheKey:([{id:t,duration:i,startOffset:r,endOffset:n}])=>JSON.stringify({id:t,duration:i,startOffset:r,endOffset:n})}),this.host=e,this.host.addController(this)}set scenes(e){e!==this._scenes&&(this._scenes=e,this.host.requestUpdate())}get scenes(){return this._scenes}_setupTask(){new Qr(this.host,async([e,t,i,r,n])=>{var o,a;try{if(e){const A=e.includes(".m3u8")?"playlist":"video";try{this.scenes=await as({data:{questions:{items:[{answer:{id:"source",media:{[A]:e}}}]}},template:i,burnCaptions:n},this._createDataResolver(r),this._resolveVideo,this._resolveVideoMeta)}catch(l){throw new ri("Video preview source template error",l)}this._video=((a=(o=this.scenes.scenes[0])==null?void 0:o.video)==null?void 0:a.node)??null}else if(t)try{this.scenes=await as({data:t,template:i,burnCaptions:n},this._createDataResolver(r),this._resolveAnswer,this._resolveVideoMeta)}catch(A){throw new ri("Video preview data template error",A)}}catch(A){this.scenes=null,this.host.dispatchEvent(new ErrorEvent("error",{composed:!0,bubbles:!0,error:A,message:A.message}))}},()=>{const e=JSON.stringify({data:this.host.data,template:this.host.template,language:this.host.language,burnCaptions:this.host.burnCaptions});if(this._lastDeps&&this._memoKey===e)return this._lastDeps;const t=[this.host.src,this.host.data,this.host.template,this.host.language,this.host.burnCaptions];return this._memoKey=e,this._lastDeps=t,t})}hostConnected(){this._setupTask()}hostDisconnected(){this._video&&(this._video.pause(),this._video.removeEventListener("seeked",this._handleSeeked),this._video.src="",this._video=null)}}function Qu(s,e,t){return Math.min(Math.max(e,s),t)}function Ga(s,e={}){const t=Math.max(0,s||0),i=Math.floor(t/3600),r=Math.floor(t%3600/60),n=Math.floor(t%3600%60),o=Math.floor(t%1*1e3);let a=i?`${i}:${`${r}`.padStart(2,"0")}:${`${n}`.padStart(2,"0")}`:`${r}:${`${n}`.padStart(2,"0")}`;return e.includeMs&&(a+=`:${`${o}`.padStart(3,"0")}`),a}var RC=Object.defineProperty,xC=Object.getOwnPropertyDescriptor,ws=(s,e,t,i)=>{for(var r=i>1?void 0:i?xC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&RC(e,t,r),r};let Ti=class extends Ne{constructor(){super(...arguments),this.active=!1,this.size="small",this.rounded="medium",this.weight="light"}render(){return Ie`<button
267
+ `],e})(ss),SC=(s,e)=>(typeof window<"u"&&(window.customElements.get(s)??window.customElements.define(s,e)),e),bC=(s,e)=>{const{kind:t,elements:i}=e;return{kind:t,elements:i,finisher(r){typeof window<"u"&&(window.customElements.get(s)??window.customElements.define(s,r))}}},Qt=s=>e=>typeof e=="function"?SC(s,e):bC(s,e);class wC{constructor(e){this._memoKey=null,this._lastDeps=null,this._scenes=null,this._video=null,this._handleSeeked=()=>{this.host._draw()},this._createDataResolver=t=>i=>this.host.dataResolver(i,{language:t}),this._resolveVideo=ui(async t=>{const i=await Oa(t);return i.node.play=async()=>{},i.node.addEventListener("seeked",this._handleSeeked),i},{cacheKey:([{id:t,src:i,playlist:r}])=>JSON.stringify({id:t,src:i==null?void 0:i.split("?")[0],playlist:r==null?void 0:r.split("?")[0]})}),this._resolveAnswer=ui(async t=>{const{id:i,key:r,poster:n}=t,{node:o}=await Oa(t),a=new Image;return{id:i,key:r,config:t,node:o,getSource:()=>(n&&a.src!==n&&(a.onload=()=>{this.host._draw()},a.src=n),a)}},{cacheKey:([{id:t,src:i,playlist:r,poster:n}])=>JSON.stringify({id:t,src:i==null?void 0:i.split("?")[0],playlist:r==null?void 0:r.split("?")[0],poster:n==null?void 0:n.split("?")[0]})}),this._resolveVideoMeta=ui(async(t,i)=>{const{id:r,captions:n,duration:o,startOffset:a,endOffset:A}=t,l=o??await yu(i),c=(a??0)*l,h=(1-(A??0))*l;return{id:r,captions:n,start:c,duration:h-c}},{cacheKey:([{id:t,duration:i,startOffset:r,endOffset:n}])=>JSON.stringify({id:t,duration:i,startOffset:r,endOffset:n})}),this.host=e,this.host.addController(this)}set scenes(e){e!==this._scenes&&(this._scenes=e,this.host.requestUpdate())}get scenes(){return this._scenes}_setupTask(){new Qr(this.host,async([e,t,i,r,n])=>{var o,a;try{if(e){const A=e.includes(".m3u8")?"playlist":"video";try{this.scenes=await as({data:{questions:{items:[{answer:{id:"source",media:{[A]:e}}}]}},template:i,burnCaptions:n},this._createDataResolver(r),this._resolveVideo,this._resolveVideoMeta)}catch(l){throw new ri("Video preview source template error",l)}this._video=((a=(o=this.scenes.scenes[0])==null?void 0:o.video)==null?void 0:a.node)??null}else if(t)try{this.scenes=await as({data:t,template:i,burnCaptions:n},this._createDataResolver(r),this._resolveAnswer,this._resolveVideoMeta)}catch(A){throw new ri("Video preview data template error",A)}}catch(A){this.scenes=null,this.host.dispatchEvent(new ErrorEvent("error",{composed:!0,bubbles:!0,error:A,message:A.message}))}},()=>{const e=JSON.stringify({data:this.host.data,template:this.host.template,language:this.host.language,burnCaptions:this.host.burnCaptions});if(this._lastDeps&&this._memoKey===e)return this._lastDeps;const t=[this.host.src,this.host.data,this.host.template,this.host.language,this.host.burnCaptions];return this._memoKey=e,this._lastDeps=t,t})}hostConnected(){this._setupTask()}hostDisconnected(){this._video&&(this._video.pause(),this._video.removeEventListener("seeked",this._handleSeeked),this._video.src="",this._video=null)}}function Qu(s,e,t){return Math.min(Math.max(e,s),t)}function Ga(s,e={}){const t=Math.max(0,s||0),i=Math.floor(t/3600),r=Math.floor(t%3600/60),n=Math.floor(t%3600%60),o=Math.floor(t%1*1e3);let a=i?`${i}:${`${r}`.padStart(2,"0")}:${`${n}`.padStart(2,"0")}`:`${r}:${`${n}`.padStart(2,"0")}`;return e.includeMs&&(a+=`:${`${o}`.padStart(3,"0")}`),a}var RC=Object.defineProperty,xC=Object.getOwnPropertyDescriptor,ws=(s,e,t,i)=>{for(var r=i>1?void 0:i?xC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&RC(e,t,r),r};let Li=class extends Ne{constructor(){super(...arguments),this.active=!1,this.size="small",this.rounded="medium",this.weight="light"}render(){return Ie`<button
268
268
  class=${Ye({active:this.active,"size-tiny":this.size==="tiny","size-small":this.size==="small","size-large":this.size==="large","radius-medium":this.rounded==="medium","radius-full":this.rounded==="full","weight-light":this.weight==="light","weight-heavy":this.weight==="heavy"})}
269
269
  >
270
270
  <slot></slot>
271
271
  ${this.icon&&Ie`<vmp-icon icon=${this.icon}></vmp-icon>`}
272
- </button>`}};Ti.styles=[Ne.styles??[],ht`
272
+ </button>`}};Li.styles=[Ne.styles??[],ht`
273
273
  :host {
274
274
  --button-padding: var(--vu-button-padding, var(--space-s));
275
275
  --button-color: var(--vu-button-color, var(--colors-dark-640));
@@ -345,7 +345,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
345
345
  .weight-light:focus {
346
346
  --button-background: var(--vu-button-background-hover, #9d9d9d);
347
347
  }
348
- `],ws([z({type:Boolean})],Ti.prototype,"active",2),ws([z({type:String})],Ti.prototype,"size",2),ws([z({type:String})],Ti.prototype,"rounded",2),ws([z({type:String})],Ti.prototype,"weight",2),ws([z({type:String})],Ti.prototype,"icon",2),Ti=ws([Bt("vmp-button")],Ti);const Su={"arrow-left":()=>Ie`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" part="svg">
348
+ `],ws([z({type:Boolean})],Li.prototype,"active",2),ws([z({type:String})],Li.prototype,"size",2),ws([z({type:String})],Li.prototype,"rounded",2),ws([z({type:String})],Li.prototype,"weight",2),ws([z({type:String})],Li.prototype,"icon",2),Li=ws([Qt("vmp-button")],Li);const Su={"arrow-left":()=>Ie`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" part="svg">
349
349
  <path
350
350
  d="M16.6666 9.21875H6.52492L11.1833 4.85156L9.99992 3.75L3.33325 10L9.99992 16.25L11.1749 15.1484L6.52492 10.7812H16.6666V9.21875Z"
351
351
  fill="currentColor"
@@ -513,19 +513,19 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
513
513
  justify-content: center;
514
514
  flex-shrink: 0;
515
515
  }
516
- `],bu([z({type:String})],Ln.prototype,"icon",2),Ln=bu([Bt("vmp-icon")],Ln);var LC=Object.defineProperty,_C=Object.getOwnPropertyDescriptor,Rs=(s,e,t,i)=>{for(var r=i>1?void 0:i?_C(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&LC(e,t,r),r};let Li=class extends Ne{constructor(){super(...arguments),this.active=!1,this.size="small",this.rounded="medium",this.weight="light"}render(){return Ie`
516
+ `],bu([z({type:String})],Ln.prototype,"icon",2),Ln=bu([Qt("vmp-icon")],Ln);var LC=Object.defineProperty,_C=Object.getOwnPropertyDescriptor,Rs=(s,e,t,i)=>{for(var r=i>1?void 0:i?_C(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&LC(e,t,r),r};let _i=class extends Ne{constructor(){super(...arguments),this.active=!1,this.size="small",this.rounded="medium",this.weight="light"}render(){return Ie`
517
517
  <vmp-button
518
518
  ?active=${this.active}
519
- size=${Oi(this.size)}
520
- rounded=${Oi(this.rounded)}
521
- weight=${Oi(this.weight)}
519
+ size=${bi(this.size)}
520
+ rounded=${bi(this.rounded)}
521
+ weight=${bi(this.weight)}
522
522
  >
523
523
  <vmp-icon
524
524
  class=${Ye({tiny:this.size==="tiny",small:this.size==="small",large:this.size==="large"})}
525
- icon=${Oi(this.icon)}
525
+ icon=${bi(this.icon)}
526
526
  ></vmp-icon>
527
527
  </vmp-button>
528
- `}};Li.styles=[Ne.styles??[],ht`
528
+ `}};_i.styles=[Ne.styles??[],ht`
529
529
  .tiny::part(svg) {
530
530
  height: 12px;
531
531
  width: 12px;
@@ -540,7 +540,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
540
540
  height: 32px;
541
541
  width: 32px;
542
542
  }
543
- `],Rs([z({type:Boolean})],Li.prototype,"active",2),Rs([z({type:String})],Li.prototype,"size",2),Rs([z({type:String})],Li.prototype,"rounded",2),Rs([z({type:String})],Li.prototype,"weight",2),Rs([z({type:String})],Li.prototype,"icon",2),Li=Rs([Bt("vmp-icon-button")],Li);var kC=Object.defineProperty,FC=Object.getOwnPropertyDescriptor,et=(s,e,t,i)=>{for(var r=i>1?void 0:i?FC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&kC(e,t,r),r};let Mt=class extends Ne{constructor(){super(...arguments),this.disabled=!1,this.aspectRatio=1,this.burnCaptions=!1,this.compilation=go,this.dataResolver=Co,this._currentTime=0,this._sceneController=new wC(this),this._canvasRef=ft(),this._previewRef=ft(),this._previewTimeRef=ft(),this._handleScrubberMouseEnter=({detail:{x:s,y:e,elementLeft:t,elementRight:i}})=>{var r,n;if((r=this._previewRef)!=null&&r.value){const o=this._previewRef.value.getBoundingClientRect(),a=(n=this._previewRef.value.getRootNode().host)==null?void 0:n.getBoundingClientRect();o&&a&&(this._previewRef.value.style.opacity="1",this._previewRef.value.style.transform=`translate3d(${Qu(t-a.left,s-a.left-o.width/2,i-a.left-o.width)}px, ${e-a.top-o.height-28}px, 0)`)}},this._handleScrubberMouseMove=({detail:{time:s,x:e,elementLeft:t,elementRight:i}})=>{var r,n,o,a,A,l,c,h;if(this._currentTime=s,(r=this._sceneController.scenes)!=null&&r.scenes.length){const u=(A=(a=(o=(n=this._sceneController.scenes)==null?void 0:n.scenes)==null?void 0:o.find(({start:d,duration:g,video:f})=>f&&s>=d&&s<=d+g))==null?void 0:a.video)==null?void 0:A.node;if(u&&(u.currentTime=s),this._draw(),(l=this._previewRef)!=null&&l.value){const d=this._previewRef.value.getBoundingClientRect(),g=(c=this._previewRef.value.getRootNode().host)==null?void 0:c.getBoundingClientRect();if(d&&g){const f=this._previewRef.value.style.transform||"translate3d(0px, 0px, 0px)",[,p]=Array.from(f.matchAll(/([+-]?([0-9]*[.])?[0-9]+)(?=px)\w+/g));this._previewRef.value.style.transform=`translate3d(${Qu(t-g.left,e-g.left-d.width/2,i-g.left-d.width)}px, ${p[1]}px, 0)`}}this._previewTimeRef.value&&this._previewTimeRef.value.setAttribute("content",Ga(Math.max(0,Math.min(this._currentTime,(h=this._sceneController.scenes)==null?void 0:h.duration))))}},this._handleScrubberMouseLeave=()=>{var s;(s=this._previewRef)!=null&&s.value&&(this._previewRef.value.style.opacity="0")},this._handleScrubberResize=({detail:{y:s}})=>{var e,t;if((e=this._previewRef)!=null&&e.value){const i=this._previewRef.value.getBoundingClientRect(),r=(t=this._previewRef.value.getRootNode().host)==null?void 0:t.getBoundingClientRect();if(i&&r){const n=this._previewRef.value.style.transform||"translate3d(0px, 0px, 0px)",[o]=Array.from(n.matchAll(/([+-]?([0-9]*[.])?[0-9]+)(?=px)\w+/g));this._previewRef.value.style.transform=`translate3d(${o[1]}px, ${s-r.top-i.height-28}px, 0)`}}}}_draw(s=this._currentTime){var e,t;this._sceneController.scenes&&this._canvasRef.value&&((t=this.compilation)==null||t.call(this,{currentTime:Math.max(0,Math.min(s,(e=this._sceneController.scenes)==null?void 0:e.duration)),scenes:this._sceneController.scenes,canvas:this._canvasRef.value}))}connectedCallback(){super.connectedCallback(),document.addEventListener("scrubber:resize",this._handleScrubberResize),document.addEventListener("scrubber:mouseenter",this._handleScrubberMouseEnter),document.addEventListener("scrubber:mousemove",this._handleScrubberMouseMove),document.addEventListener("scrubber:mouseleave",this._handleScrubberMouseLeave)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("scrubber:resize",this._handleScrubberResize),document.removeEventListener("scrubber:mouseenter",this._handleScrubberMouseEnter),document.removeEventListener("scrubber:mousemove",this._handleScrubberMouseMove),document.removeEventListener("scrubber:mouseleave",this._handleScrubberMouseLeave)}render(){var s;const{height:e,width:t}=fo({resolution:180,aspectRatio:this.aspectRatio}),i=((s=this._sceneController.scenes)==null?void 0:s.scenes.length)??0;return!this.disabled&&(this.src||i>1)?Ie`
543
+ `],Rs([z({type:Boolean})],_i.prototype,"active",2),Rs([z({type:String})],_i.prototype,"size",2),Rs([z({type:String})],_i.prototype,"rounded",2),Rs([z({type:String})],_i.prototype,"weight",2),Rs([z({type:String})],_i.prototype,"icon",2),_i=Rs([Qt("vmp-icon-button")],_i);var kC=Object.defineProperty,FC=Object.getOwnPropertyDescriptor,et=(s,e,t,i)=>{for(var r=i>1?void 0:i?FC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&kC(e,t,r),r};let Mt=class extends Ne{constructor(){super(...arguments),this.disabled=!1,this.aspectRatio=1,this.burnCaptions=!1,this.compilation=go,this.dataResolver=Co,this._currentTime=0,this._sceneController=new wC(this),this._canvasRef=ft(),this._previewRef=ft(),this._previewTimeRef=ft(),this._handleScrubberMouseEnter=({detail:{x:s,y:e,elementLeft:t,elementRight:i}})=>{var r,n;if((r=this._previewRef)!=null&&r.value){const o=this._previewRef.value.getBoundingClientRect(),a=(n=this._previewRef.value.getRootNode().host)==null?void 0:n.getBoundingClientRect();o&&a&&(this._previewRef.value.style.opacity="1",this._previewRef.value.style.transform=`translate3d(${Qu(t-a.left,s-a.left-o.width/2,i-a.left-o.width)}px, ${e-a.top-o.height-28}px, 0)`)}},this._handleScrubberMouseMove=({detail:{time:s,x:e,elementLeft:t,elementRight:i}})=>{var r,n,o,a,A,l,c,h;if(this._currentTime=s,(r=this._sceneController.scenes)!=null&&r.scenes.length){const u=(A=(a=(o=(n=this._sceneController.scenes)==null?void 0:n.scenes)==null?void 0:o.find(({start:d,duration:g,video:f})=>f&&s>=d&&s<=d+g))==null?void 0:a.video)==null?void 0:A.node;if(u&&(u.currentTime=s),this._draw(),(l=this._previewRef)!=null&&l.value){const d=this._previewRef.value.getBoundingClientRect(),g=(c=this._previewRef.value.getRootNode().host)==null?void 0:c.getBoundingClientRect();if(d&&g){const f=this._previewRef.value.style.transform||"translate3d(0px, 0px, 0px)",[,p]=Array.from(f.matchAll(/([+-]?([0-9]*[.])?[0-9]+)(?=px)\w+/g));this._previewRef.value.style.transform=`translate3d(${Qu(t-g.left,e-g.left-d.width/2,i-g.left-d.width)}px, ${p[1]}px, 0)`}}this._previewTimeRef.value&&this._previewTimeRef.value.setAttribute("content",Ga(Math.max(0,Math.min(this._currentTime,(h=this._sceneController.scenes)==null?void 0:h.duration))))}},this._handleScrubberMouseLeave=()=>{var s;(s=this._previewRef)!=null&&s.value&&(this._previewRef.value.style.opacity="0")},this._handleScrubberResize=({detail:{y:s}})=>{var e,t;if((e=this._previewRef)!=null&&e.value){const i=this._previewRef.value.getBoundingClientRect(),r=(t=this._previewRef.value.getRootNode().host)==null?void 0:t.getBoundingClientRect();if(i&&r){const n=this._previewRef.value.style.transform||"translate3d(0px, 0px, 0px)",[o]=Array.from(n.matchAll(/([+-]?([0-9]*[.])?[0-9]+)(?=px)\w+/g));this._previewRef.value.style.transform=`translate3d(${o[1]}px, ${s-r.top-i.height-28}px, 0)`}}}}_draw(s=this._currentTime){var e,t;this._sceneController.scenes&&this._canvasRef.value&&((t=this.compilation)==null||t.call(this,{currentTime:Math.max(0,Math.min(s,(e=this._sceneController.scenes)==null?void 0:e.duration)),scenes:this._sceneController.scenes,canvas:this._canvasRef.value}))}connectedCallback(){super.connectedCallback(),document.addEventListener("scrubber:resize",this._handleScrubberResize),document.addEventListener("scrubber:mouseenter",this._handleScrubberMouseEnter),document.addEventListener("scrubber:mousemove",this._handleScrubberMouseMove),document.addEventListener("scrubber:mouseleave",this._handleScrubberMouseLeave)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("scrubber:resize",this._handleScrubberResize),document.removeEventListener("scrubber:mouseenter",this._handleScrubberMouseEnter),document.removeEventListener("scrubber:mousemove",this._handleScrubberMouseMove),document.removeEventListener("scrubber:mouseleave",this._handleScrubberMouseLeave)}render(){var s;const{height:e,width:t}=fo({resolution:180,aspectRatio:this.aspectRatio}),i=((s=this._sceneController.scenes)==null?void 0:s.scenes.length)??0;return!this.disabled&&(this.src||i>1)?Ie`
544
544
  <div
545
545
  ${pt(this._previewRef)}
546
546
  class="preview"
@@ -580,7 +580,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
580
580
  color: var(--colors-light-1000);
581
581
  font-variant-numeric: tabular-nums;
582
582
  }
583
- `],et([z({type:String})],Mt.prototype,"src",2),et([z({type:Object})],Mt.prototype,"data",2),et([z({type:Object})],Mt.prototype,"template",2),et([z({type:String})],Mt.prototype,"language",2),et([z({type:Boolean})],Mt.prototype,"disabled",2),et([z({type:Number})],Mt.prototype,"aspectRatio",2),et([z({type:Boolean})],Mt.prototype,"burnCaptions",2),et([z({attribute:!1})],Mt.prototype,"compilation",2),et([z({attribute:!1})],Mt.prototype,"dataResolver",2),Mt=et([Bt("vmp-video-preview-content")],Mt);let $t=class extends Ne{constructor(){super(...arguments),this.disabled=!1,this.aspectRatio=1,this.burnCaptions=!1,this.compilation=go,this.dataResolver=Co}render(){return Ie`
583
+ `],et([z({type:String})],Mt.prototype,"src",2),et([z({type:Object})],Mt.prototype,"data",2),et([z({type:Object})],Mt.prototype,"template",2),et([z({type:String})],Mt.prototype,"language",2),et([z({type:Boolean})],Mt.prototype,"disabled",2),et([z({type:Number})],Mt.prototype,"aspectRatio",2),et([z({type:Boolean})],Mt.prototype,"burnCaptions",2),et([z({attribute:!1})],Mt.prototype,"compilation",2),et([z({attribute:!1})],Mt.prototype,"dataResolver",2),Mt=et([Qt("vmp-video-preview-content")],Mt);let $t=class extends Ne{constructor(){super(...arguments),this.disabled=!1,this.aspectRatio=1,this.burnCaptions=!1,this.compilation=go,this.dataResolver=Co}render(){return Ie`
584
584
  <vmp-video-preview-content
585
585
  ?disabled=${this.disabled}
586
586
  .src=${this.src}
@@ -592,7 +592,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
592
592
  .compilation=${this.compilation}
593
593
  .dataResolver=${this.dataResolver}
594
594
  ></vmp-video-preview-content>
595
- `}};et([z({type:String})],$t.prototype,"src",2),et([z({type:Object})],$t.prototype,"data",2),et([z({type:Object})],$t.prototype,"template",2),et([z({type:String})],$t.prototype,"language",2),et([z({type:Boolean})],$t.prototype,"disabled",2),et([z({type:Number})],$t.prototype,"aspectRatio",2),et([z({type:Boolean})],$t.prototype,"burnCaptions",2),et([z({attribute:!1})],$t.prototype,"compilation",2),et([z({attribute:!1})],$t.prototype,"dataResolver",2),$t=et([Bt("vmp-video-preview")],$t);class NC extends $s{constructor(e){if(super(e),e.type!==rs.ELEMENT)throw new Error("Resize directive must be used in an Element expression")}update(e,[t]){return t==null||t(e.element),Ot}}const wu=ns(NC);class MC{constructor(e){this.hiddenControls=[],this._measureRef=ft(),this._prevControlsWidth=0,this._hideables={},this._showables={},this._onResize=t=>{var i,r,n;const o=this._measureRef.value,a=(n=(r=(i=t==null?void 0:t[0])==null?void 0:i.borderBoxSize)==null?void 0:r[0])==null?void 0:n.inlineSize;if(o&&a&&a!==this._prevControlsWidth){Object.keys(this._hideables).forEach(l=>{this._hideables[l].element.style.display=""}),Object.keys(this._showables).forEach(l=>{this._showables[l].element.style.display="none"});const A=[];for(;o.scrollWidth>o.offsetWidth;){const l=Object.keys(this._hideables).find(h=>this._hideables[h].hideIndex===A.length);if(!l)break;const c=this._hideables[l].element;c&&(c.style.display="none"),A.push(l),Object.keys(this._showables).forEach(h=>{this._showables[h].showOn.some(u=>A.includes(u))&&(this._showables[h].element.style.display="flex")})}this.hiddenControls=A,this._prevControlsWidth=a,this.host.requestUpdate()}},this.host=e}measure(){return pt(this._measureRef)}contain(){return Ua(this._onResize)}hide(e,t){return wu(i=>{this._hideables[e]={element:i,hideIndex:t}})}show(e,t){return wu(i=>{this._showables[e]={element:i,showOn:t}})}}const Ha=".tippy-box[data-animation=shift-away-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=top]{transform:translateY(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=bottom]{transform:translateY(-5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=left]{transform:translateX(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=right]{transform:translateX(-5px)}";var OC=Object.defineProperty,PC=Object.getOwnPropertyDescriptor,dr=(s,e,t,i)=>{for(var r=i>1?void 0:i?PC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&OC(e,t,r),r};let zi=class extends Ne{constructor(){super(...arguments),this.semibold=!1,this.truncate=!1,this.size="medium",this.content=""}render(){return Ie`
595
+ `}};et([z({type:String})],$t.prototype,"src",2),et([z({type:Object})],$t.prototype,"data",2),et([z({type:Object})],$t.prototype,"template",2),et([z({type:String})],$t.prototype,"language",2),et([z({type:Boolean})],$t.prototype,"disabled",2),et([z({type:Number})],$t.prototype,"aspectRatio",2),et([z({type:Boolean})],$t.prototype,"burnCaptions",2),et([z({attribute:!1})],$t.prototype,"compilation",2),et([z({attribute:!1})],$t.prototype,"dataResolver",2),$t=et([Qt("vmp-video-preview")],$t);class NC extends $s{constructor(e){if(super(e),e.type!==rs.ELEMENT)throw new Error("Resize directive must be used in an Element expression")}update(e,[t]){return t==null||t(e.element),Ot}}const wu=ns(NC);class MC{constructor(e){this.hiddenControls=[],this._measureRef=ft(),this._prevControlsWidth=0,this._hideables={},this._showables={},this._onResize=t=>{var i,r,n;const o=this._measureRef.value,a=(n=(r=(i=t==null?void 0:t[0])==null?void 0:i.borderBoxSize)==null?void 0:r[0])==null?void 0:n.inlineSize;if(o&&a&&a!==this._prevControlsWidth){Object.keys(this._hideables).forEach(l=>{this._hideables[l].element.style.display=""}),Object.keys(this._showables).forEach(l=>{this._showables[l].element.style.display="none"});const A=[];for(;o.scrollWidth>o.offsetWidth;){const l=Object.keys(this._hideables).find(h=>this._hideables[h].hideIndex===A.length);if(!l)break;const c=this._hideables[l].element;c&&(c.style.display="none"),A.push(l),Object.keys(this._showables).forEach(h=>{this._showables[h].showOn.some(u=>A.includes(u))&&(this._showables[h].element.style.display="flex")})}this.hiddenControls=A,this._prevControlsWidth=a,this.host.requestUpdate()}},this.host=e}measure(){return pt(this._measureRef)}contain(){return Ua(this._onResize)}hide(e,t){return wu(i=>{this._hideables[e]={element:i,hideIndex:t}})}show(e,t){return wu(i=>{this._showables[e]={element:i,showOn:t}})}}const Ha=".tippy-box[data-animation=shift-away-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=top]{transform:translateY(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=bottom]{transform:translateY(-5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=left]{transform:translateX(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=right]{transform:translateX(-5px)}";var OC=Object.defineProperty,PC=Object.getOwnPropertyDescriptor,dr=(s,e,t,i)=>{for(var r=i>1?void 0:i?PC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&OC(e,t,r),r};let zi=class extends Ne{constructor(){super(...arguments),this.semibold=!1,this.truncate=!1,this.size="medium",this.content=""}render(){return Ie`
596
596
  <div
597
597
  part="content"
598
598
  class=${Ye({semibold:this.semibold,truncate:this.truncate,[this.size]:!0})}
@@ -637,7 +637,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
637
637
  text-overflow: ellipsis;
638
638
  overflow: hidden;
639
639
  }
640
- `],dr([z({type:Boolean})],zi.prototype,"semibold",2),dr([z({type:Boolean})],zi.prototype,"truncate",2),dr([z({type:String})],zi.prototype,"size",2),dr([z({type:String})],zi.prototype,"content",2),zi=dr([Bt("vmp-text")],zi);var UC=Object.defineProperty,GC=Object.getOwnPropertyDescriptor,gr=(s,e,t,i)=>{for(var r=i>1?void 0:i?GC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&UC(e,t,r),r};let Zi=class extends Ne{constructor(){super(...arguments),this.activeItems=[],this.visibleItems=null,this.subItemsActive=null,this.tippy=null,this._contentRef=ft()}_handleBackClick(){this.subItemsActive=null,this.visibleItems=this.items??null}willUpdate(){this.visibleItems=this.visibleItems??this.items??null}updated(){var s,e;const t=(e=(s=this.items)==null?void 0:s.items.find(({id:i})=>this.subItemsActive===i))==null?void 0:e.subItems;this.visibleItems=t??this.items??null,t||(this.subItemsActive=null)}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),t=e==null?void 0:e.assignedElements()[0];t&&this._contentRef.value&&(this.tippy=Xi(t,{content:this._contentRef.value,allowHTML:!0,arrow:!1,animation:"shift-away-subtle",interactive:!0,placement:"top",trigger:"click",onShow:()=>{this.dispatchEvent(new CustomEvent("menu:toggle",{detail:!0}))},onHide:()=>{this.dispatchEvent(new CustomEvent("menu:toggle",{detail:!1}))},appendTo:()=>this.shadowRoot}))})}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.tippy)==null||s.destroy()}render(){var s,e;return Ie`
640
+ `],dr([z({type:Boolean})],zi.prototype,"semibold",2),dr([z({type:Boolean})],zi.prototype,"truncate",2),dr([z({type:String})],zi.prototype,"size",2),dr([z({type:String})],zi.prototype,"content",2),zi=dr([Qt("vmp-text")],zi);var UC=Object.defineProperty,GC=Object.getOwnPropertyDescriptor,gr=(s,e,t,i)=>{for(var r=i>1?void 0:i?GC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&UC(e,t,r),r};let Zi=class extends Ne{constructor(){super(...arguments),this.activeItems=[],this.visibleItems=null,this.subItemsActive=null,this.tippy=null,this._contentRef=ft()}_handleBackClick(){this.subItemsActive=null,this.visibleItems=this.items??null}willUpdate(){this.visibleItems=this.visibleItems??this.items??null}updated(){var s,e;const t=(e=(s=this.items)==null?void 0:s.items.find(({id:i})=>this.subItemsActive===i))==null?void 0:e.subItems;this.visibleItems=t??this.items??null,t||(this.subItemsActive=null)}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),t=e==null?void 0:e.assignedElements()[0];t&&this._contentRef.value&&(this.tippy=Xi(t,{content:this._contentRef.value,allowHTML:!0,arrow:!1,animation:"shift-away-subtle",interactive:!0,placement:"top",trigger:"click",onShow:()=>{this.dispatchEvent(new CustomEvent("menu:toggle",{detail:!0}))},onHide:()=>{this.dispatchEvent(new CustomEvent("menu:toggle",{detail:!1}))},appendTo:()=>this.shadowRoot}))})}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.tippy)==null||s.destroy()}render(){var s,e;return Ie`
641
641
  <slot></slot>
642
642
  <div ${pt(this._contentRef)} class="content">
643
643
  <div class="title">
@@ -725,7 +725,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
725
725
  height: 20px;
726
726
  width: 20px;
727
727
  }
728
- `],gr([z({type:Object})],Zi.prototype,"items",2),gr([z({type:Array})],Zi.prototype,"activeItems",2),gr([ze()],Zi.prototype,"visibleItems",2),gr([ze()],Zi.prototype,"subItemsActive",2),Zi=gr([Bt("vmp-menu")],Zi);var HC=Object.defineProperty,$C=Object.getOwnPropertyDescriptor,$a=(s,e,t,i)=>{for(var r=i>1?void 0:i?$C(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&HC(e,t,r),r};let fr=class extends Ne{constructor(){super(...arguments),this.content="",this.disabled=!1,this.tippy=null,this._contentRef=ft()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),t=e==null?void 0:e.assignedElements()[0];t&&this._contentRef.value&&(this.tippy=Xi(t,{content:this._contentRef.value,allowHTML:!0,arrow:!1,animation:"shift-away-subtle",interactive:!1,placement:"top",zIndex:1e4,appendTo:()=>this.shadowRoot}))})}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.tippy)==null||s.destroy()}updated(){var s,e;this.disabled?(s=this.tippy)==null||s.disable():(e=this.tippy)==null||e.enable()}render(){return Ie`
728
+ `],gr([z({type:Object})],Zi.prototype,"items",2),gr([z({type:Array})],Zi.prototype,"activeItems",2),gr([ze()],Zi.prototype,"visibleItems",2),gr([ze()],Zi.prototype,"subItemsActive",2),Zi=gr([Qt("vmp-menu")],Zi);var HC=Object.defineProperty,$C=Object.getOwnPropertyDescriptor,$a=(s,e,t,i)=>{for(var r=i>1?void 0:i?$C(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&HC(e,t,r),r};let fr=class extends Ne{constructor(){super(...arguments),this.content="",this.disabled=!1,this.tippy=null,this._contentRef=ft()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),t=e==null?void 0:e.assignedElements()[0];t&&this._contentRef.value&&(this.tippy=Xi(t,{content:this._contentRef.value,allowHTML:!0,arrow:!1,animation:"shift-away-subtle",interactive:!1,placement:"top",zIndex:1e4,appendTo:()=>this.shadowRoot}))})}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.tippy)==null||s.destroy()}updated(){var s,e;this.disabled?(s=this.tippy)==null||s.disable():(e=this.tippy)==null||e.enable()}render(){return Ie`
729
729
  <slot></slot>
730
730
  <div ${pt(this._contentRef)} class="content">
731
731
  <vmp-text content=${this.content}></vmp-text>
@@ -744,7 +744,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
744
744
  background: var(--colors-dark-800);
745
745
  border-radius: var(--radii-medium);
746
746
  }
747
- `],$a([z({type:String})],fr.prototype,"content",2),$a([z({type:Boolean})],fr.prototype,"disabled",2),fr=$a([Bt("vmp-tooltip")],fr);var YC=Object.defineProperty,KC=Object.getOwnPropertyDescriptor,Ya=(s,e,t,i)=>{for(var r=i>1?void 0:i?KC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&YC(e,t,r),r};let pr=class extends Ne{constructor(){super(...arguments),this.volume=1,this.muted=!1,this.tippy=null,this._contentRef=ft(),this._anchorRef=ft(),this._menuOpen=!1}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this._anchorRef.value&&this._contentRef.value&&(this.tippy=Xi(this._anchorRef.value,{content:this._contentRef.value,allowHTML:!0,arrow:!1,animation:"shift-away-subtle",interactive:!0,placement:"top",interactiveBorder:20,onShow:()=>{this._menuOpen=!0,this.dispatchEvent(new CustomEvent("menu:toggle",{detail:!0}))},onHide:()=>{this._menuOpen=!1,this.dispatchEvent(new CustomEvent("menu:toggle",{detail:!1}))},appendTo:()=>this.shadowRoot}))})}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.tippy)==null||s.destroy()}render(){return Ie`
747
+ `],$a([z({type:String})],fr.prototype,"content",2),$a([z({type:Boolean})],fr.prototype,"disabled",2),fr=$a([Qt("vmp-tooltip")],fr);var YC=Object.defineProperty,KC=Object.getOwnPropertyDescriptor,Ya=(s,e,t,i)=>{for(var r=i>1?void 0:i?KC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&YC(e,t,r),r};let pr=class extends Ne{constructor(){super(...arguments),this.volume=1,this.muted=!1,this.tippy=null,this._contentRef=ft(),this._anchorRef=ft(),this._menuOpen=!1}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this._anchorRef.value&&this._contentRef.value&&(this.tippy=Xi(this._anchorRef.value,{content:this._contentRef.value,allowHTML:!0,arrow:!1,animation:"shift-away-subtle",interactive:!0,placement:"top",interactiveBorder:20,onShow:()=>{this._menuOpen=!0,this.dispatchEvent(new CustomEvent("menu:toggle",{detail:!0}))},onHide:()=>{this._menuOpen=!1,this.dispatchEvent(new CustomEvent("menu:toggle",{detail:!1}))},appendTo:()=>this.shadowRoot}))})}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.tippy)==null||s.destroy()}render(){return Ie`
748
748
  <vmp-icon-button
749
749
  ${pt(this._anchorRef)}
750
750
  icon=${this.muted||this.volume===0?"muted":this.volume<1/3?"volume-low":this.volume<2/3?"volume-medium":"volume-high"}
@@ -906,7 +906,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
906
906
  --volume-slider-height: 8px;
907
907
  color: var(--colors-light-800);
908
908
  }
909
- `],Ya([z({type:Number})],pr.prototype,"volume",2),Ya([z({type:Boolean})],pr.prototype,"muted",2),pr=Ya([Bt("vmp-volume-button")],pr);var VC=Object.defineProperty,JC=Object.getOwnPropertyDescriptor,_n=(s,e,t,i)=>{for(var r=i>1?void 0:i?JC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&VC(e,t,r),r};let xs=class extends Ne{constructor(){super(...arguments),this.duration=0,this.currentTime=0,this.buffer=[],this._containerRef=ft(),this._handleContainerResize=()=>{var s;const e=(s=this._containerRef.value)==null?void 0:s.getBoundingClientRect();this.dispatchEvent(new CustomEvent("scrubber:resize",{detail:e,bubbles:!0,composed:!0}))},this._handleMouseEnter=s=>{var e;const t=(e=this._containerRef.value)==null?void 0:e.getBoundingClientRect();this.dispatchEvent(new CustomEvent("scrubber:mouseenter",{detail:{x:s.clientX,y:s.clientY,elementLeft:(t==null?void 0:t.left)??0,elementRight:(t==null?void 0:t.right)??document.body.offsetWidth},bubbles:!0,composed:!0}))},this._handleMouseMove=s=>{var e;const t=(e=this._containerRef.value)==null?void 0:e.getBoundingClientRect(),r=(s.clientX-((t==null?void 0:t.left)??0))/((t==null?void 0:t.width)??1);this.dispatchEvent(new CustomEvent("scrubber:mousemove",{detail:{x:s.clientX,y:s.clientY,time:r*this.duration,elementLeft:(t==null?void 0:t.left)??0,elementRight:(t==null?void 0:t.right)??document.body.offsetWidth},bubbles:!0,composed:!0}))},this._handleMouseLeave=s=>{this.dispatchEvent(new CustomEvent("scrubber:mouseleave",{detail:{x:s.clientX,y:s.clientY},bubbles:!0,composed:!0}))}}render(){var s;const e=((s=this.buffer)==null?void 0:s.sort((t,i)=>t.start<i.start?-1:i.start<t.start?1:0).reduce((t,{start:i,end:r},n)=>{const o=t[n-1],a=Math.floor(i),A=Math.ceil(r);return t.push({id:i,start:Math.max(0,a),end:Math.min(A,100)}),o&&o.end>=i-1&&(t[n].start=o.end),t},[]))??[];return Ie`
909
+ `],Ya([z({type:Number})],pr.prototype,"volume",2),Ya([z({type:Boolean})],pr.prototype,"muted",2),pr=Ya([Qt("vmp-volume-button")],pr);var VC=Object.defineProperty,JC=Object.getOwnPropertyDescriptor,_n=(s,e,t,i)=>{for(var r=i>1?void 0:i?JC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&VC(e,t,r),r};let xs=class extends Ne{constructor(){super(...arguments),this.duration=0,this.currentTime=0,this.buffer=[],this._containerRef=ft(),this._handleContainerResize=()=>{var s;const e=(s=this._containerRef.value)==null?void 0:s.getBoundingClientRect();this.dispatchEvent(new CustomEvent("scrubber:resize",{detail:e,bubbles:!0,composed:!0}))},this._handleMouseEnter=s=>{var e;const t=(e=this._containerRef.value)==null?void 0:e.getBoundingClientRect();this.dispatchEvent(new CustomEvent("scrubber:mouseenter",{detail:{x:s.clientX,y:s.clientY,elementLeft:(t==null?void 0:t.left)??0,elementRight:(t==null?void 0:t.right)??document.body.offsetWidth},bubbles:!0,composed:!0}))},this._handleMouseMove=s=>{var e;const t=(e=this._containerRef.value)==null?void 0:e.getBoundingClientRect(),r=(s.clientX-((t==null?void 0:t.left)??0))/((t==null?void 0:t.width)??1);this.dispatchEvent(new CustomEvent("scrubber:mousemove",{detail:{x:s.clientX,y:s.clientY,time:r*this.duration,elementLeft:(t==null?void 0:t.left)??0,elementRight:(t==null?void 0:t.right)??document.body.offsetWidth},bubbles:!0,composed:!0}))},this._handleMouseLeave=s=>{this.dispatchEvent(new CustomEvent("scrubber:mouseleave",{detail:{x:s.clientX,y:s.clientY},bubbles:!0,composed:!0}))}}render(){var s;const e=((s=this.buffer)==null?void 0:s.sort((t,i)=>t.start<i.start?-1:i.start<t.start?1:0).reduce((t,{start:i,end:r},n)=>{const o=t[n-1],a=Math.floor(i),A=Math.ceil(r);return t.push({id:i,start:Math.max(0,a),end:Math.min(A,100)}),o&&o.end>=i-1&&(t[n].start=o.end),t},[]))??[];return Ie`
910
910
  <div
911
911
  class="container"
912
912
  ${pt(this._containerRef)}
@@ -1079,7 +1079,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
1079
1079
  --player-scrubber-height: 16px;
1080
1080
  color: var(--colors-light-800);
1081
1081
  }
1082
- `],_n([z({type:Number})],xs.prototype,"duration",2),_n([z({type:Number})],xs.prototype,"currentTime",2),_n([z({type:Array})],xs.prototype,"buffer",2),xs=_n([Bt("vmp-progress-scrubber")],xs);var WC=Object.defineProperty,qC=Object.getOwnPropertyDescriptor,tt=(s,e,t,i)=>{for(var r=i>1?void 0:i?qC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&WC(e,t,r),r};let qe=class extends Ne{constructor(){super(...arguments),this.resizeHider=new MC(this),this.playing=!1,this.volume=1,this.muted=!1,this.currentTime=0,this.duration=0,this.languages=[],this.language="en",this.levels=[],this.level=-1,this.playbackRate=1,this.buffer=[],this.captions=!1,this.fullscreen=!1,this.controls=Pa,this.volumeMenuOpen=!1,this.languageMenuOpen=!1,this.levelsMenuOpen=!1,this.playbackRateMenuOpen=!1,this.settingsMenuOpen=!1}_handleNavigateBackClick(){this.dispatchEvent(new CustomEvent("navigate:back",{bubbles:!0,composed:!0}))}_handleNavigateForwardClick(){this.dispatchEvent(new CustomEvent("navigate:forward",{bubbles:!0,composed:!0}))}_handlePlayClick(){this.dispatchEvent(new CustomEvent("play:click",{bubbles:!0,composed:!0,detail:this.playing}))}_handleCaptionsClick(){this.dispatchEvent(new CustomEvent("captions:click",{bubbles:!0,composed:!0,detail:this.captions}))}_handleFullscreenClick(){this.dispatchEvent(new CustomEvent("fullscreen:click",{bubbles:!0,composed:!0,detail:this.fullscreen}))}_handleVolumeMenuToggle({detail:s}){this.volumeMenuOpen=s}_handleLanguageMenuOpen({detail:s}){this.languageMenuOpen=s}_handleLevelsMenuOpen({detail:s}){this.levelsMenuOpen=s}_handlePlaybackMenuToggle({detail:s}){this.playbackRateMenuOpen=s}_handleSettingsMenuToggle({detail:s}){this.settingsMenuOpen=s}hideMenus(){var s,e;(e=Array.from((s=this.shadowRoot)==null?void 0:s.querySelectorAll("vmp-menu, vmp-tooltip, vmp-volume-button")))==null||e.forEach(t=>{var i;(i=t.tippy)==null||i.hide()})}render(){var s,e,t,i,r,n,o,a,A,l,c,h,u,d,g;const f=((s=this.languages)==null?void 0:s.map(M=>({id:`language-${M.value}`,event:"language:click",label:M.label,value:M.value})))??[],p={title:"Languages",items:f},y={id:"languages",label:"Languages",subItems:p},v=p.items.find(({value:M})=>M===this.language),S=((e=this.levels)==null?void 0:e.map((M,q)=>{const ie=Math.min(M.width,M.height);return{id:`level-${q.toString()}`,event:"level:click",label:`${ie}p`,value:{resolution:ie,level:q}}}))??[],C={title:"Quality",items:[...S.reverse(),{id:"level--1",event:"level:click",label:"Auto",value:{level:-1,resolution:"auto"}}]},Q={id:"levels",label:"Quality",subItems:C},B=(t=C.items)==null?void 0:t.find(({value:M})=>M.level===this.level),_=[(f==null?void 0:f.length)&&"languages","levels","playback-rate","captions","fullscreen"].filter(Boolean).filter(M=>{var q;return(q=this.controls)==null?void 0:q.includes(M)}),D={title:"Settings",items:[(f==null?void 0:f.length)&&y,IC,mC,Q,CC].filter(Boolean).filter(({id:M})=>_.includes(M)&&this.resizeHider.hiddenControls.includes(M))},G=(i=this.controls)==null?void 0:i.includes("progress"),F=(r=this.controls)==null?void 0:r.includes("navigation"),H=(n=this.controls)==null?void 0:n.includes("play"),j=(o=this.controls)==null?void 0:o.includes("volume"),V=(a=this.controls)==null?void 0:a.includes("current-time"),J=(A=this.controls)==null?void 0:A.includes("duration"),b=(l=this.controls)==null?void 0:l.includes("languages"),R=(c=this.controls)==null?void 0:c.includes("levels"),U=(h=this.controls)==null?void 0:h.includes("speed"),x=(u=this.controls)==null?void 0:u.includes("captions"),w=(d=this.controls)==null?void 0:d.includes("fullscreen"),T=H||j||V||J||b||R||U||x||w,K=[this.captions&&"captions",this.fullscreen&&"fullscreen",`language-${this.language}`,`level-${(g=this.level)==null?void 0:g.toString()}`,`playback-rate-${this.playbackRate.toString()}`].filter(Boolean);return Ie`
1082
+ `],_n([z({type:Number})],xs.prototype,"duration",2),_n([z({type:Number})],xs.prototype,"currentTime",2),_n([z({type:Array})],xs.prototype,"buffer",2),xs=_n([Qt("vmp-progress-scrubber")],xs);var WC=Object.defineProperty,qC=Object.getOwnPropertyDescriptor,tt=(s,e,t,i)=>{for(var r=i>1?void 0:i?qC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&WC(e,t,r),r};let qe=class extends Ne{constructor(){super(...arguments),this.resizeHider=new MC(this),this.playing=!1,this.volume=1,this.muted=!1,this.currentTime=0,this.duration=0,this.languages=[],this.language="en",this.levels=[],this.level=-1,this.playbackRate=1,this.buffer=[],this.captions=!1,this.fullscreen=!1,this.controls=Pa,this.volumeMenuOpen=!1,this.languageMenuOpen=!1,this.levelsMenuOpen=!1,this.playbackRateMenuOpen=!1,this.settingsMenuOpen=!1}_handleNavigateBackClick(){this.dispatchEvent(new CustomEvent("navigate:back",{bubbles:!0,composed:!0}))}_handleNavigateForwardClick(){this.dispatchEvent(new CustomEvent("navigate:forward",{bubbles:!0,composed:!0}))}_handlePlayClick(){this.dispatchEvent(new CustomEvent("play:click",{bubbles:!0,composed:!0,detail:this.playing}))}_handleCaptionsClick(){this.dispatchEvent(new CustomEvent("captions:click",{bubbles:!0,composed:!0,detail:this.captions}))}_handleFullscreenClick(){this.dispatchEvent(new CustomEvent("fullscreen:click",{bubbles:!0,composed:!0,detail:this.fullscreen}))}_handleVolumeMenuToggle({detail:s}){this.volumeMenuOpen=s}_handleLanguageMenuOpen({detail:s}){this.languageMenuOpen=s}_handleLevelsMenuOpen({detail:s}){this.levelsMenuOpen=s}_handlePlaybackMenuToggle({detail:s}){this.playbackRateMenuOpen=s}_handleSettingsMenuToggle({detail:s}){this.settingsMenuOpen=s}hideMenus(){var s,e;(e=Array.from((s=this.shadowRoot)==null?void 0:s.querySelectorAll("vmp-menu, vmp-tooltip, vmp-volume-button")))==null||e.forEach(t=>{var i;(i=t.tippy)==null||i.hide()})}render(){var s,e,t,i,r,n,o,a,A,l,c,h,u,d,g;const f=((s=this.languages)==null?void 0:s.map(M=>({id:`language-${M.value}`,event:"language:click",label:M.label,value:M.value})))??[],p={title:"Languages",items:f},y={id:"languages",label:"Languages",subItems:p},v=p.items.find(({value:M})=>M===this.language),S=((e=this.levels)==null?void 0:e.map((M,q)=>{const ie=Math.min(M.width,M.height);return{id:`level-${q.toString()}`,event:"level:click",label:`${ie}p`,value:{resolution:ie,level:q}}}))??[],C={title:"Quality",items:[...S.reverse(),{id:"level--1",event:"level:click",label:"Auto",value:{level:-1,resolution:"auto"}}]},Q={id:"levels",label:"Quality",subItems:C},B=(t=C.items)==null?void 0:t.find(({value:M})=>M.level===this.level),_=[(f==null?void 0:f.length)&&"languages","levels","playback-rate","captions","fullscreen"].filter(Boolean).filter(M=>{var q;return(q=this.controls)==null?void 0:q.includes(M)}),D={title:"Settings",items:[(f==null?void 0:f.length)&&y,IC,mC,Q,CC].filter(Boolean).filter(({id:M})=>_.includes(M)&&this.resizeHider.hiddenControls.includes(M))},G=(i=this.controls)==null?void 0:i.includes("progress"),F=(r=this.controls)==null?void 0:r.includes("navigation"),H=(n=this.controls)==null?void 0:n.includes("play"),j=(o=this.controls)==null?void 0:o.includes("volume"),V=(a=this.controls)==null?void 0:a.includes("current-time"),J=(A=this.controls)==null?void 0:A.includes("duration"),b=(l=this.controls)==null?void 0:l.includes("languages"),R=(c=this.controls)==null?void 0:c.includes("levels"),U=(h=this.controls)==null?void 0:h.includes("speed"),x=(u=this.controls)==null?void 0:u.includes("captions"),w=(d=this.controls)==null?void 0:d.includes("fullscreen"),T=H||j||V||J||b||R||U||x||w,K=[this.captions&&"captions",this.fullscreen&&"fullscreen",`language-${this.language}`,`level-${(g=this.level)==null?void 0:g.toString()}`,`playback-rate-${this.playbackRate.toString()}`].filter(Boolean);return Ie`
1083
1083
  <div
1084
1084
  ${this.resizeHider.measure()}
1085
1085
  ${this.resizeHider.contain()}
@@ -1291,13 +1291,13 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
1291
1291
  .hidden {
1292
1292
  display: none;
1293
1293
  }
1294
- `],tt([z({type:Boolean})],qe.prototype,"playing",2),tt([z({type:Number})],qe.prototype,"volume",2),tt([z({type:Boolean})],qe.prototype,"muted",2),tt([z({type:Number})],qe.prototype,"currentTime",2),tt([z({type:Number})],qe.prototype,"duration",2),tt([z({type:Array})],qe.prototype,"languages",2),tt([z({type:String})],qe.prototype,"language",2),tt([z({type:Array,attribute:!1})],qe.prototype,"levels",2),tt([z({type:Number})],qe.prototype,"level",2),tt([z({type:Number})],qe.prototype,"playbackRate",2),tt([z({type:Array})],qe.prototype,"buffer",2),tt([z({type:Boolean})],qe.prototype,"captions",2),tt([z({type:Boolean})],qe.prototype,"fullscreen",2),tt([z({type:Array})],qe.prototype,"controls",2),tt([ze()],qe.prototype,"volumeMenuOpen",2),tt([ze()],qe.prototype,"languageMenuOpen",2),tt([ze()],qe.prototype,"levelsMenuOpen",2),tt([ze()],qe.prototype,"playbackRateMenuOpen",2),tt([ze()],qe.prototype,"settingsMenuOpen",2),qe=tt([Bt("vmp-player-controls")],qe);var jC=Object.defineProperty,XC=Object.getOwnPropertyDescriptor,zC=(s,e,t,i)=>{for(var r=i>1?void 0:i?XC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&jC(e,t,r),r};let Ka=class extends Ne{render(){return Ie`<vmp-icon icon="loading"></vmp-icon>`}};Ka.styles=[Ne.styles??[],ht`
1294
+ `],tt([z({type:Boolean})],qe.prototype,"playing",2),tt([z({type:Number})],qe.prototype,"volume",2),tt([z({type:Boolean})],qe.prototype,"muted",2),tt([z({type:Number})],qe.prototype,"currentTime",2),tt([z({type:Number})],qe.prototype,"duration",2),tt([z({type:Array})],qe.prototype,"languages",2),tt([z({type:String})],qe.prototype,"language",2),tt([z({type:Array,attribute:!1})],qe.prototype,"levels",2),tt([z({type:Number})],qe.prototype,"level",2),tt([z({type:Number})],qe.prototype,"playbackRate",2),tt([z({type:Array})],qe.prototype,"buffer",2),tt([z({type:Boolean})],qe.prototype,"captions",2),tt([z({type:Boolean})],qe.prototype,"fullscreen",2),tt([z({type:Array})],qe.prototype,"controls",2),tt([ze()],qe.prototype,"volumeMenuOpen",2),tt([ze()],qe.prototype,"languageMenuOpen",2),tt([ze()],qe.prototype,"levelsMenuOpen",2),tt([ze()],qe.prototype,"playbackRateMenuOpen",2),tt([ze()],qe.prototype,"settingsMenuOpen",2),qe=tt([Qt("vmp-player-controls")],qe);var jC=Object.defineProperty,XC=Object.getOwnPropertyDescriptor,zC=(s,e,t,i)=>{for(var r=i>1?void 0:i?XC(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&jC(e,t,r),r};let Ka=class extends Ne{render(){return Ie`<vmp-icon icon="loading"></vmp-icon>`}};Ka.styles=[Ne.styles??[],ht`
1295
1295
  :host {
1296
1296
  display: flex;
1297
1297
  align-items: center;
1298
1298
  justify-content: center;
1299
1299
  }
1300
- `],Ka=zC([Bt("vmp-loading-spinner")],Ka);var ZC=Object.defineProperty,ey=Object.getOwnPropertyDescriptor,Ru=(s,e,t,i)=>{for(var r=i>1?void 0:i?ey(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&ZC(e,t,r),r};let kn=class extends Ne{constructor(){super(...arguments),this.caption=""}render(){return Ie`
1300
+ `],Ka=zC([Qt("vmp-loading-spinner")],Ka);var ZC=Object.defineProperty,ey=Object.getOwnPropertyDescriptor,Ru=(s,e,t,i)=>{for(var r=i>1?void 0:i?ey(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&ZC(e,t,r),r};let kn=class extends Ne{constructor(){super(...arguments),this.caption=""}render(){return Ie`
1301
1301
  <div class="container">
1302
1302
  <vmp-text content=${this.caption} size="large"></vmp-text>
1303
1303
  </div>
@@ -1320,7 +1320,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
1320
1320
  /* Line height controls the spacing between the cloned boxes so has to override the default */
1321
1321
  line-height: 2.2;
1322
1322
  }
1323
- `],Ru([z({type:String})],kn.prototype,"caption",2),kn=Ru([Bt("vmp-captions")],kn);var ty=Object.defineProperty,iy=Object.getOwnPropertyDescriptor,lt=(s,e,t,i)=>{for(var r=i>1?void 0:i?iy(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&ty(e,t,r),r};const sy=3e3;let it=class extends Ne{constructor(){super(...arguments),this.loading=!1,this.playing=!1,this.volume=1,this.muted=!1,this.currentTime=0,this.duration=0,this.languages=[],this.language="en",this.levels=[],this.level=-1,this.playbackRate=1,this.caption="",this.buffer=[],this.captions=!1,this.fullscreen=!1,this.controls=Pa,this.showControls=!0,this._hasTouched=!1,this._playerControlsRef=ft()}_startHideControls(){clearTimeout(this._controlHideTimeout),this._controlHideTimeout=setTimeout(()=>{this.showControls=!1,this._hasTouched=!1},sy)}_immediateShowControls(){this.showControls=!0,clearTimeout(this._controlHideTimeout)}_immediateHideControls(){this.showControls=!1,this._hasTouched=!1,clearTimeout(this._controlHideTimeout)}willUpdate(s){var e;s.has("playing")&&this.playing&&this._startHideControls(),s.has("showControls")&&this.playing&&!this.showControls&&((e=this._playerControlsRef.value)==null||e.hideMenus())}render(){var s;const e=(s=this.controls)==null?void 0:s.includes("play-large"),t=this.playing&&!this.showControls,i=!!(e&&!this.playing);return Ie`
1323
+ `],Ru([z({type:String})],kn.prototype,"caption",2),kn=Ru([Qt("vmp-captions")],kn);var ty=Object.defineProperty,iy=Object.getOwnPropertyDescriptor,lt=(s,e,t,i)=>{for(var r=i>1?void 0:i?iy(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&ty(e,t,r),r};const sy=3e3;let it=class extends Ne{constructor(){super(...arguments),this.loading=!1,this.playing=!1,this.volume=1,this.muted=!1,this.currentTime=0,this.duration=0,this.languages=[],this.language="en",this.levels=[],this.level=-1,this.playbackRate=1,this.caption="",this.buffer=[],this.captions=!1,this.fullscreen=!1,this.controls=Pa,this.showControls=!0,this._hasTouched=!1,this._playerControlsRef=ft()}_startHideControls(){clearTimeout(this._controlHideTimeout),this._controlHideTimeout=setTimeout(()=>{this.showControls=!1,this._hasTouched=!1},sy)}_immediateShowControls(){this.showControls=!0,clearTimeout(this._controlHideTimeout)}_immediateHideControls(){this.showControls=!1,this._hasTouched=!1,clearTimeout(this._controlHideTimeout)}willUpdate(s){var e;s.has("playing")&&this.playing&&this._startHideControls(),s.has("showControls")&&this.playing&&!this.showControls&&((e=this._playerControlsRef.value)==null||e.hideMenus())}render(){var s;const e=(s=this.controls)==null?void 0:s.includes("play-large"),t=this.playing&&!this.showControls,i=!!(e&&!this.playing);return Ie`
1324
1324
  <div
1325
1325
  class=${Ye({container:!0,hide:t})}
1326
1326
  @mousemove=${()=>{this._immediateShowControls(),this._startHideControls()}}
@@ -1440,7 +1440,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
1440
1440
  vmp-captions.hiddenControls {
1441
1441
  transform: translateY(calc(var(--space-small) * -1));
1442
1442
  }
1443
- `],lt([z({type:Boolean})],it.prototype,"loading",2),lt([z({type:Boolean})],it.prototype,"playing",2),lt([z({type:Number})],it.prototype,"volume",2),lt([z({type:Boolean})],it.prototype,"muted",2),lt([z({type:Number})],it.prototype,"currentTime",2),lt([z({type:Number})],it.prototype,"duration",2),lt([z({type:Array})],it.prototype,"languages",2),lt([z({type:String})],it.prototype,"language",2),lt([z({type:Array,attribute:!1})],it.prototype,"levels",2),lt([z({type:Number})],it.prototype,"level",2),lt([z({type:Number})],it.prototype,"playbackRate",2),lt([z({type:String})],it.prototype,"caption",2),lt([z({type:Array})],it.prototype,"buffer",2),lt([z({type:Boolean})],it.prototype,"captions",2),lt([z({type:Boolean})],it.prototype,"fullscreen",2),lt([z({type:Array})],it.prototype,"controls",2),lt([ze()],it.prototype,"showControls",2),it=lt([Bt("vmp-player-overlay")],it);var ry=Object.defineProperty,ny=Object.getOwnPropertyDescriptor,$e=(s,e,t,i)=>{for(var r=i>1?void 0:i?ny(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&ry(e,t,r),r};const oy=1e3/60;let Oe=class extends Ne{constructor(){super(...arguments),this.burnCaptions=!1,this.debug=!1,this.propAspectRatio=0,this.preload="auto",this.autoplay=!1,this.loading=!1,this.compilation=go,this.dataResolver=Co,this.languageResolver=cf,this._sceneController=new fC(this),this._drawController=new hC(this),this._observer=null,this._wasPlaying=!1,this._manualMute=this.muted,this._seekerRAF=null,this._seekerTimeout=null,this._lastWaiting=!1,this._lastTimestamp=null,this._playerRef=ft(),this._canvasRef=ft(),this._pageHidden=document.visibilityState==="hidden",this._aspectRatio=this.propAspectRatio,this._processing=!1,this._waiting=!1,this._errors=[],this._seeking=!1,this._language=this.propLanguage,this._languages=[],this._captions=!1,this._fullscreen=!1,this._initialised=null,this._paused=!0,this._playbackRate=1,this._volume=null,this._muted=null,this._videoResolution=-1,this._handleContainerResize=()=>{var s;(s=this.shadowRoot)!=null&&s.host&&!this.propAspectRatio&&(this._aspectRatio=this.shadowRoot.host.clientWidth/this.shadowRoot.host.clientHeight)},this._handleCanvasResize=()=>{this.draw()},this._loop=()=>{this._endLoop(),this._pageHidden?this._seekerTimeout=setTimeout(this._seeker,oy):this._seekerRAF=requestAnimationFrame(this._seeker)},this._endLoop=()=>{this._seekerRAF&&cancelAnimationFrame(this._seekerRAF),this._seekerTimeout&&clearTimeout(this._seekerTimeout),this._seekerRAF=null,this._seekerTimeout=null},this._seeker=(s=performance.now())=>{this.sceneConfig&&this.scenes.length>0&&(this._waiting=this._drawController.activeScenes.some(({video:e})=>{if(e){const{key:t}=e,i=this.videoState[t];return!i||!i.initialised||i.waiting||e.node.readyState<3}}),this.waiting?(this._lastTimestamp=null,this._lastWaiting||this.dispatchEvent(new CustomEvent("waiting"))):this._lastWaiting&&this.dispatchEvent(new CustomEvent("playing")),s-(this._lastTimestamp??0)>1e3/this.sceneConfig.frameRate&&(this._drawController.currentTime=this._drawController.currentTime+(s-(this._lastTimestamp??s))/1e3*this.playbackRate,this._lastTimestamp=s),this._lastWaiting=this._waiting,this._drawController.currentTime>=this.duration&&(this.pause(),this.dispatchEvent(new CustomEvent("ended")))),this.paused||this._loop()},this._handleError=s=>{this._errors=[...this.errors,s.error],s.error.fatal&&this.pause()},this._handleFullscreenChange=()=>{document.fullscreenElement?this._fullscreen=!0:this._fullscreen=!1},this._handleVisibilityChange=()=>{this._pageHidden=document.visibilityState==="hidden",this.paused||this._loop()}}get aspectRatio(){return this._aspectRatio}get processing(){return this._processing}get waiting(){return!this.paused&&this._waiting}get errors(){return this._errors}get seeking(){return this._seeking}get language(){return this._language}get languages(){return this._languages}get captions(){return this._captions}get fullscreen(){return this._fullscreen}get initialised(){return this._initialised=this._initialised??new Promise(s=>{const e=setInterval(()=>{!!this.errors.find(i=>i.fatal)&&s(!1),!this.loading&&!this.processing&&this.scenes.length>0&&s(!0)},500);setTimeout(()=>{clearInterval(e),s(!1)},60*1e3)}),this._initialised}get duration(){return this._sceneController.duration}get scene(){return this._drawController.activeScenes[this._drawController.activeScenes.length-1]}get scenes(){var s;return((s=this._sceneController.scenes)==null?void 0:s.scenes)??[]}get sceneConfig(){return this._sceneController.scenes}get videos(){return this._sceneController.videos??{}}get videoState(){return this._sceneController.videoState}get sceneVideoState(){return this.scenes.reduce((s,{video:e,start:t,duration:i})=>{const r=(e==null?void 0:e.key)??`${t}-${i}`;return s[r]=this.videoState[r],s},{})}set paused(s){s!==this._paused&&(this._paused=s,this.requestUpdate(),this.dispatchEvent(new CustomEvent(s?"pause":"play")))}get paused(){return this._paused}set playbackRate(s){s!==this._playbackRate&&(this._playbackRate=s,this.scenes.forEach(({video:e})=>{e&&(e.node.playbackRate=s)}),this.requestUpdate(),this.dispatchEvent(new CustomEvent("ratechange",{detail:s})))}get playbackRate(){return this._playbackRate}set volume(s){const e=Math.min(1,Math.max(0,s));e!==this._volume&&(this.scenes.forEach(({video:t})=>{t&&(t.node.volume=e)}),localStorage.setItem("vmp-player-volume",e.toString()),this._volume=e,e>0&&(this.muted=!1),this.requestUpdate(),this.dispatchEvent(new CustomEvent("volumechange",{detail:s})))}get volume(){return this._volume??(this._volume=parseFloat(localStorage.getItem("vmp-player-volume")??"1"))}set muted(s){this.scenes.forEach(({video:e})=>{e&&(e.node.muted=s)}),s!==this._muted&&(this._muted=s,localStorage.setItem("vmp-player-muted",s.toString()),this.requestUpdate(),this.dispatchEvent(new CustomEvent("volumechange",{detail:s?0:this.volume})))}get muted(){return this._muted??(this._muted=this.autoplay||localStorage.getItem("vmp-player-muted")==="true")}set videoResolution(s){s!==this._videoResolution&&(this._videoResolution=s,this.scenes.forEach(({video:e})=>{if(e!=null&&e.hls){const t=e.hls.levels.findIndex(i=>Math.min(i.height,i.width)===s);e.hls.currentLevel=t??-1}}),this.requestUpdate())}get videoResolution(){return this._videoResolution}set currentTime(s){s!==this._drawController.currentTime&&(this._drawController.currentTime=s,this._sceneController.setVideosCurrentTime(s))}get currentTime(){return this._drawController.currentTime}reset(s=0,e=!1){this._lastTimestamp=null,this._drawController.currentTime=s,this._sceneController.setVideosCurrentTime(s),e?this.play():this.pause()}clear(){this._drawController.clear()}play(){this.paused=!1,this._lastTimestamp=null,this.duration>0&&this._drawController.currentTime>=this.duration&&this.reset(0,!0),this._loop()}pause(){this._endLoop(),this.paused=!0,this.scenes.forEach(({video:s})=>{s&&s.node.pause()})}draw(s){return this._drawController.draw(s)}setScene(s){var e,t;if((e=this._sceneController)!=null&&e.scenes){const i=(t=this.scenes)==null?void 0:t[s];if(!i){const r=new ri(`No scene at index: ${s}`);return this.dispatchEvent(new ErrorEvent("error",{composed:!0,bubbles:!0,error:r,message:r.message}))}this.reset(i.start+this._sceneController.scenes.transitionDuration,!this.paused)}}toggleFullscreen(s){s??this.fullscreen?EC():this._playerRef.value&&pC(this._playerRef.value)}connectedCallback(){var s;super.connectedCallback(),this.addEventListener("error",this._handleError),document.addEventListener("fullscreenchange",this._handleFullscreenChange),document.addEventListener("visibilitychange",this._handleVisibilityChange),(s=this.shadowRoot)!=null&&s.host&&(this._observer=new ResizeObserver(this._handleContainerResize),this._observer.observe(this.shadowRoot.host))}willUpdate(s){s.has("propAspectRatio")&&(this._aspectRatio=this.propAspectRatio),s.has("propLanguage")&&(this._language=this.propLanguage)}updated(s){s.has("propAspectRatio")&&!this.propAspectRatio&&this._handleContainerResize(),this.autoplay&&!this.processing&&!this._sceneController.hasPlayed&&s.has("_processing")&&this.play()}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this._observer)==null||s.disconnect(),document.removeEventListener("fullscreenchange",this._handleFullscreenChange),document.removeEventListener("visibilitychange",this._handleVisibilityChange)}_renderStyles(){return this.propAspectRatio?typeof this.propAspectRatio=="number"?Ie`
1443
+ `],lt([z({type:Boolean})],it.prototype,"loading",2),lt([z({type:Boolean})],it.prototype,"playing",2),lt([z({type:Number})],it.prototype,"volume",2),lt([z({type:Boolean})],it.prototype,"muted",2),lt([z({type:Number})],it.prototype,"currentTime",2),lt([z({type:Number})],it.prototype,"duration",2),lt([z({type:Array})],it.prototype,"languages",2),lt([z({type:String})],it.prototype,"language",2),lt([z({type:Array,attribute:!1})],it.prototype,"levels",2),lt([z({type:Number})],it.prototype,"level",2),lt([z({type:Number})],it.prototype,"playbackRate",2),lt([z({type:String})],it.prototype,"caption",2),lt([z({type:Array})],it.prototype,"buffer",2),lt([z({type:Boolean})],it.prototype,"captions",2),lt([z({type:Boolean})],it.prototype,"fullscreen",2),lt([z({type:Array})],it.prototype,"controls",2),lt([ze()],it.prototype,"showControls",2),it=lt([Qt("vmp-player-overlay")],it);var ry=Object.defineProperty,ny=Object.getOwnPropertyDescriptor,$e=(s,e,t,i)=>{for(var r=i>1?void 0:i?ny(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&ry(e,t,r),r};const oy=1e3/60;let Oe=class extends Ne{constructor(){super(...arguments),this.burnCaptions=!1,this.debug=!1,this.propAspectRatio=0,this.preload="auto",this.autoplay=!1,this.loading=!1,this.compilation=go,this.dataResolver=Co,this.languageResolver=cf,this._sceneController=new fC(this),this._drawController=new hC(this),this._observer=null,this._wasPlaying=!1,this._manualMute=this.muted,this._seekerRAF=null,this._seekerTimeout=null,this._lastWaiting=!1,this._lastTimestamp=null,this._playerRef=ft(),this._canvasRef=ft(),this._pageHidden=document.visibilityState==="hidden",this._aspectRatio=this.propAspectRatio,this._processing=!1,this._waiting=!1,this._errors=[],this._seeking=!1,this._language=this.propLanguage,this._languages=[],this._captions=!1,this._fullscreen=!1,this._initialised=null,this._paused=!0,this._playbackRate=1,this._volume=null,this._muted=null,this._videoResolution=-1,this._handleContainerResize=()=>{var s;(s=this.shadowRoot)!=null&&s.host&&!this.propAspectRatio&&(this._aspectRatio=this.shadowRoot.host.clientWidth/this.shadowRoot.host.clientHeight)},this._handleCanvasResize=()=>{this.draw()},this._loop=()=>{this._endLoop(),this._pageHidden?this._seekerTimeout=setTimeout(this._seeker,oy):this._seekerRAF=requestAnimationFrame(this._seeker)},this._endLoop=()=>{this._seekerRAF&&cancelAnimationFrame(this._seekerRAF),this._seekerTimeout&&clearTimeout(this._seekerTimeout),this._seekerRAF=null,this._seekerTimeout=null},this._seeker=(s=performance.now())=>{this.sceneConfig&&this.scenes.length>0&&(this._waiting=this._drawController.activeScenes.some(({video:e})=>{if(e){const{key:t}=e,i=this.videoState[t];return!i||!i.initialised||i.waiting||e.node.readyState<3}}),this.waiting?(this._lastTimestamp=null,this._lastWaiting||this.dispatchEvent(new CustomEvent("waiting"))):this._lastWaiting&&this.dispatchEvent(new CustomEvent("playing")),s-(this._lastTimestamp??0)>1e3/this.sceneConfig.frameRate&&(this._drawController.currentTime=this._drawController.currentTime+(s-(this._lastTimestamp??s))/1e3*this.playbackRate,this._lastTimestamp=s),this._lastWaiting=this._waiting,this._drawController.currentTime>=this.duration&&(this.pause(),this.dispatchEvent(new CustomEvent("ended")))),this.paused||this._loop()},this._handleError=s=>{this._errors=[...this.errors,s.error],s.error.fatal&&this.pause()},this._handleFullscreenChange=()=>{document.fullscreenElement?this._fullscreen=!0:this._fullscreen=!1},this._handleVisibilityChange=()=>{this._pageHidden=document.visibilityState==="hidden",this.paused||this._loop()}}get aspectRatio(){return this._aspectRatio}get processing(){return this._processing}get waiting(){return!this.paused&&this._waiting}get errors(){return this._errors}get seeking(){return this._seeking}get language(){return this._language}get languages(){return this._languages}get captions(){return this._captions}get fullscreen(){return this._fullscreen}get initialised(){return this._initialised=this._initialised??new Promise(s=>{const e=setInterval(()=>{!!this.errors.find(i=>i.fatal)&&s(!1),!this.loading&&!this.processing&&this.scenes.length>0&&s(!0)},500);setTimeout(()=>{clearInterval(e),s(!1)},60*1e3)}),this._initialised}get duration(){return this._sceneController.duration}get scene(){return this._drawController.activeScenes[this._drawController.activeScenes.length-1]}get scenes(){var s;return((s=this._sceneController.scenes)==null?void 0:s.scenes)??[]}get sceneConfig(){return this._sceneController.scenes}get videos(){return this._sceneController.videos??{}}get videoState(){return this._sceneController.videoState}get sceneVideoState(){return this.scenes.reduce((s,{video:e,start:t,duration:i})=>{const r=(e==null?void 0:e.key)??`${t}-${i}`;return s[r]=this.videoState[r],s},{})}set paused(s){s!==this._paused&&(this._paused=s,this.requestUpdate(),this.dispatchEvent(new CustomEvent(s?"pause":"play")))}get paused(){return this._paused}set playbackRate(s){s!==this._playbackRate&&(this._playbackRate=s,this.scenes.forEach(({video:e})=>{e&&(e.node.playbackRate=s)}),this.requestUpdate(),this.dispatchEvent(new CustomEvent("ratechange",{detail:s})))}get playbackRate(){return this._playbackRate}set volume(s){const e=Math.min(1,Math.max(0,s));e!==this._volume&&(this.scenes.forEach(({video:t})=>{t&&(t.node.volume=e)}),localStorage.setItem("vmp-player-volume",e.toString()),this._volume=e,e>0&&(this.muted=!1),this.requestUpdate(),this.dispatchEvent(new CustomEvent("volumechange",{detail:s})))}get volume(){return this._volume??(this._volume=parseFloat(localStorage.getItem("vmp-player-volume")??"1"))}set muted(s){this.scenes.forEach(({video:e})=>{e&&(e.node.muted=s)}),s!==this._muted&&(this._muted=s,localStorage.setItem("vmp-player-muted",s.toString()),this.requestUpdate(),this.dispatchEvent(new CustomEvent("volumechange",{detail:s?0:this.volume})))}get muted(){return this._muted??(this._muted=this.autoplay||localStorage.getItem("vmp-player-muted")==="true")}set videoResolution(s){s!==this._videoResolution&&(this._videoResolution=s,this.scenes.forEach(({video:e})=>{if(e!=null&&e.hls){const t=e.hls.levels.findIndex(i=>Math.min(i.height,i.width)===s);e.hls.currentLevel=t??-1}}),this.requestUpdate())}get videoResolution(){return this._videoResolution}set currentTime(s){s!==this._drawController.currentTime&&(this._drawController.currentTime=s,this._sceneController.setVideosCurrentTime(s))}get currentTime(){return this._drawController.currentTime}reset(s=0,e=!1){this._lastTimestamp=null,this._drawController.currentTime=s,this._sceneController.setVideosCurrentTime(s),e?this.play():this.pause()}clear(){this._drawController.clear()}play(){this.paused=!1,this._lastTimestamp=null,this.duration>0&&this._drawController.currentTime>=this.duration&&this.reset(0,!0),this._loop()}pause(){this._endLoop(),this.paused=!0,this.scenes.forEach(({video:s})=>{s&&s.node.pause()})}draw(s){return this._drawController.draw(s)}setScene(s){var e,t;if((e=this._sceneController)!=null&&e.scenes){const i=(t=this.scenes)==null?void 0:t[s];if(!i){const r=new ri(`No scene at index: ${s}`);return this.dispatchEvent(new ErrorEvent("error",{composed:!0,bubbles:!0,error:r,message:r.message}))}this.reset(i.start+this._sceneController.scenes.transitionDuration,!this.paused)}}toggleFullscreen(s){s??this.fullscreen?EC():this._playerRef.value&&pC(this._playerRef.value)}connectedCallback(){var s;super.connectedCallback(),this.addEventListener("error",this._handleError),document.addEventListener("fullscreenchange",this._handleFullscreenChange),document.addEventListener("visibilitychange",this._handleVisibilityChange),(s=this.shadowRoot)!=null&&s.host&&(this._observer=new ResizeObserver(this._handleContainerResize),this._observer.observe(this.shadowRoot.host))}willUpdate(s){s.has("propAspectRatio")&&(this._aspectRatio=this.propAspectRatio),s.has("propLanguage")&&(this._language=this.propLanguage)}updated(s){s.has("propAspectRatio")&&!this.propAspectRatio&&this._handleContainerResize(),this.autoplay&&!this.processing&&!this._sceneController.hasPlayed&&s.has("_processing")&&this.play()}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this._observer)==null||s.disconnect(),document.removeEventListener("fullscreenchange",this._handleFullscreenChange),document.removeEventListener("visibilitychange",this._handleVisibilityChange)}_renderStyles(){return this.propAspectRatio?typeof this.propAspectRatio=="number"?Ie`
1444
1444
  <style>
1445
1445
  :host {
1446
1446
  aspect-ratio: ${this.propAspectRatio};
@@ -1488,7 +1488,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
1488
1488
  .languages=${this.languages}
1489
1489
  .language=${this.language}
1490
1490
  .levels=${(g==null?void 0:g.levels)??[]}
1491
- level=${Oi(g!=null&&g.autoLevelEnabled?-1:g==null?void 0:g.currentLevel)}
1491
+ level=${bi(g!=null&&g.autoLevelEnabled?-1:g==null?void 0:g.currentLevel)}
1492
1492
  playbackRate=${this.playbackRate}
1493
1493
  caption=${this._drawController.caption}
1494
1494
  .buffer=${l}
@@ -1582,7 +1582,7 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
1582
1582
  top: 0;
1583
1583
  left: 0;
1584
1584
  }
1585
- `],$e([z({type:Object})],Oe.prototype,"data",2),$e([z({type:Object})],Oe.prototype,"template",2),$e([z({type:Boolean})],Oe.prototype,"burnCaptions",2),$e([z({type:Boolean})],Oe.prototype,"debug",2),$e([z({type:String})],Oe.prototype,"src",2),$e([z({type:String})],Oe.prototype,"track",2),$e([z({type:String,attribute:"language"})],Oe.prototype,"propLanguage",2),$e([z({type:Number,attribute:"aspectratio"})],Oe.prototype,"propAspectRatio",2),$e([z({type:String})],Oe.prototype,"preload",2),$e([z({type:Boolean})],Oe.prototype,"autoplay",2),$e([z({type:Boolean})],Oe.prototype,"loading",2),$e([z({type:Array})],Oe.prototype,"controls",2),$e([z({attribute:!1})],Oe.prototype,"compilation",2),$e([z({attribute:!1})],Oe.prototype,"dataResolver",2),$e([z({attribute:!1})],Oe.prototype,"languageResolver",2),$e([ze()],Oe.prototype,"_pageHidden",2),$e([ze()],Oe.prototype,"_aspectRatio",2),$e([ze()],Oe.prototype,"_processing",2),$e([ze()],Oe.prototype,"_waiting",2),$e([ze()],Oe.prototype,"_errors",2),$e([ze()],Oe.prototype,"_seeking",2),$e([ze()],Oe.prototype,"_language",2),$e([ze()],Oe.prototype,"_languages",2),$e([ze()],Oe.prototype,"_captions",2),$e([ze()],Oe.prototype,"_fullscreen",2),Oe=$e([Bt("vmp-media-player")],Oe);var ay=Object.defineProperty,Ay=Object.getOwnPropertyDescriptor,Qt=(s,e,t,i)=>{for(var r=i>1?void 0:i?Ay(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&ay(e,t,r),r};Ge.PlayerEmbed=class extends ss{constructor(){super(...arguments),this.env="prod",this.apiKey="",this.disableTracking=!1,this.trackingSource="embedded_player",this.preload="auto",this.autoplay=!1,this.aspectRatio=0,this.eventController=new Ed(this,["durationchange","ended","error","loadeddata","pause","stalled","play","playing","ratechange","scenechange","seeking","seeked","timeupdate","volumechange","waiting","video:loadeddata","video:seeking","video:seeked","video:play","video:playing","video:pause","video:stalled","video:timeupdate","video:ended","video:error"]),this._fetcherController=new Td(this),this._trackingController=new tf(this),this._mediaPlayerRef=ft()}get fetching(){return this._fetcherController.fetching}get waiting(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.waiting}get initialised(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.initialised}get seeking(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.seeking}get paused(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.paused}get captions(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.captions}get fullscreen(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.fullscreen}get duration(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.duration}set currentTime(e){this._mediaPlayerRef.value&&(this._mediaPlayerRef.value.currentTime=e)}get currentTime(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.currentTime)??0}set playbackRate(e){this._mediaPlayerRef.value&&(this._mediaPlayerRef.value.playbackRate=e)}get playbackRate(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.playbackRate)??1}set volume(e){this._mediaPlayerRef.value&&(this._mediaPlayerRef.value.volume=e)}get volume(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.volume)??1}set muted(e){this._mediaPlayerRef.value&&(this._mediaPlayerRef.value.muted=e)}get muted(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.muted)??!1}get scene(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.scene)??null}get scenes(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.scenes)??[]}get sceneConfig(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.sceneConfig)??null}get videoState(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.videoState}get mediaPlayer(){return this._mediaPlayerRef.value}play(){var e;(e=this._mediaPlayerRef.value)==null||e.play()}pause(){var e;(e=this._mediaPlayerRef.value)==null||e.pause()}reset(e=0,t=!1){var i;(i=this._mediaPlayerRef.value)==null||i.reset(e,t)}setScene(e){var t;(t=this._mediaPlayerRef.value)==null||t.setScene(e)}_renderStyles(){return this.aspectRatio?typeof this.aspectRatio=="number"?Ie`
1585
+ `],$e([z({type:Object})],Oe.prototype,"data",2),$e([z({type:Object})],Oe.prototype,"template",2),$e([z({type:Boolean})],Oe.prototype,"burnCaptions",2),$e([z({type:Boolean})],Oe.prototype,"debug",2),$e([z({type:String})],Oe.prototype,"src",2),$e([z({type:String})],Oe.prototype,"track",2),$e([z({type:String,attribute:"language"})],Oe.prototype,"propLanguage",2),$e([z({type:Number,attribute:"aspectratio"})],Oe.prototype,"propAspectRatio",2),$e([z({type:String})],Oe.prototype,"preload",2),$e([z({type:Boolean})],Oe.prototype,"autoplay",2),$e([z({type:Boolean})],Oe.prototype,"loading",2),$e([z({type:Array})],Oe.prototype,"controls",2),$e([z({attribute:!1})],Oe.prototype,"compilation",2),$e([z({attribute:!1})],Oe.prototype,"dataResolver",2),$e([z({attribute:!1})],Oe.prototype,"languageResolver",2),$e([ze()],Oe.prototype,"_pageHidden",2),$e([ze()],Oe.prototype,"_aspectRatio",2),$e([ze()],Oe.prototype,"_processing",2),$e([ze()],Oe.prototype,"_waiting",2),$e([ze()],Oe.prototype,"_errors",2),$e([ze()],Oe.prototype,"_seeking",2),$e([ze()],Oe.prototype,"_language",2),$e([ze()],Oe.prototype,"_languages",2),$e([ze()],Oe.prototype,"_captions",2),$e([ze()],Oe.prototype,"_fullscreen",2),Oe=$e([Qt("vmp-media-player")],Oe);var ay=Object.defineProperty,Ay=Object.getOwnPropertyDescriptor,It=(s,e,t,i)=>{for(var r=i>1?void 0:i?Ay(e,t):e,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&ay(e,t,r),r};Ge.PlayerEmbed=class extends ss{constructor(){super(...arguments),this.env="prod",this.apiKey="",this.disableTracking=!1,this.trackingSource="embedded_player",this.preload="auto",this.autoplay=!1,this.aspectRatio=0,this.eventController=new Ed(this,["durationchange","ended","error","loadeddata","pause","stalled","play","playing","ratechange","scenechange","seeking","seeked","timeupdate","volumechange","waiting","video:loadeddata","video:seeking","video:seeked","video:play","video:playing","video:pause","video:stalled","video:timeupdate","video:ended","video:error"]),this._fetcherController=new Td(this),this._trackingController=new tf(this),this._mediaPlayerRef=ft()}get fetching(){return this._fetcherController.fetching}get waiting(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.waiting}get initialised(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.initialised}get seeking(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.seeking}get paused(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.paused}get captions(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.captions}get fullscreen(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.fullscreen}get duration(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.duration}set currentTime(e){this._mediaPlayerRef.value&&(this._mediaPlayerRef.value.currentTime=e)}get currentTime(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.currentTime)??0}set playbackRate(e){this._mediaPlayerRef.value&&(this._mediaPlayerRef.value.playbackRate=e)}get playbackRate(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.playbackRate)??1}set volume(e){this._mediaPlayerRef.value&&(this._mediaPlayerRef.value.volume=e)}get volume(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.volume)??1}set muted(e){this._mediaPlayerRef.value&&(this._mediaPlayerRef.value.muted=e)}get muted(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.muted)??!1}get scene(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.scene)??null}get scenes(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.scenes)??[]}get sceneConfig(){var e;return((e=this._mediaPlayerRef.value)==null?void 0:e.sceneConfig)??null}get videoState(){var e;return(e=this._mediaPlayerRef.value)==null?void 0:e.videoState}get mediaPlayer(){return this._mediaPlayerRef.value}play(){var e;(e=this._mediaPlayerRef.value)==null||e.play()}pause(){var e;(e=this._mediaPlayerRef.value)==null||e.pause()}reset(e=0,t=!1){var i;(i=this._mediaPlayerRef.value)==null||i.reset(e,t)}setScene(e){var t;(t=this._mediaPlayerRef.value)==null||t.setScene(e)}_renderStyles(){return this.aspectRatio?typeof this.aspectRatio=="number"?Ie`
1586
1586
  <style>
1587
1587
  :host {
1588
1588
  aspect-ratio: ${this.aspectRatio};
@@ -1604,13 +1604,14 @@ ${e}`,bg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wg=Objec
1604
1604
  ?loading=${this.fetching}
1605
1605
  .data=${this.vouch}
1606
1606
  .template=${this.template}
1607
- aspectRatio=${Oi(this.aspectRatio)}
1608
- preload=${Oi(this.preload)}
1607
+ aspectRatio=${bi(this.aspectRatio)}
1608
+ preload=${bi(this.preload)}
1609
+ language=${bi(this.language)}
1609
1610
  .controls=${this.controls}
1610
1611
  ></vmp-media-player>
1611
1612
  `}},Ge.PlayerEmbed.styles=[ht`
1612
1613
  :host {
1613
1614
  display: flex;
1614
1615
  }
1615
- `],Qt([z({type:Object})],Ge.PlayerEmbed.prototype,"data",2),Qt([z({type:String})],Ge.PlayerEmbed.prototype,"vouchId",2),Qt([z({type:String})],Ge.PlayerEmbed.prototype,"templateId",2),Qt([z({type:Array})],Ge.PlayerEmbed.prototype,"questions",2),Qt([z({type:String})],Ge.PlayerEmbed.prototype,"env",2),Qt([z({type:String})],Ge.PlayerEmbed.prototype,"apiKey",2),Qt([z({type:Boolean})],Ge.PlayerEmbed.prototype,"disableTracking",2),Qt([z({type:String})],Ge.PlayerEmbed.prototype,"trackingSource",2),Qt([z({type:Array})],Ge.PlayerEmbed.prototype,"controls",2),Qt([z({type:String})],Ge.PlayerEmbed.prototype,"preload",2),Qt([z({type:Boolean})],Ge.PlayerEmbed.prototype,"autoplay",2),Qt([z({type:Number})],Ge.PlayerEmbed.prototype,"aspectRatio",2),Qt([ze()],Ge.PlayerEmbed.prototype,"vouch",2),Qt([ze()],Ge.PlayerEmbed.prototype,"template",2),Ge.PlayerEmbed=Qt([rd("vouch-embed-player")],Ge.PlayerEmbed);function oi(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function xu(s,e){for(var t="",i=0,r=-1,n=0,o,a=0;a<=s.length;++a){if(a<s.length)o=s.charCodeAt(a);else{if(o===47)break;o=47}if(o===47){if(!(r===a-1||n===1))if(r!==a-1&&n===2){if(t.length<2||i!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var A=t.lastIndexOf("/");if(A!==t.length-1){A===-1?(t="",i=0):(t=t.slice(0,A),i=t.length-1-t.lastIndexOf("/")),r=a,n=0;continue}}else if(t.length===2||t.length===1){t="",i=0,r=a,n=0;continue}}e&&(t.length>0?t+="/..":t="..",i=2)}else t.length>0?t+="/"+s.slice(r+1,a):t=s.slice(r+1,a),i=a-r-1;r=a,n=0}else o===46&&n!==-1?++n:n=-1}return t}function ly(s,e){var t=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+i:t+s+i:i}var Ds={resolve:function(){for(var e="",t=!1,i,r=arguments.length-1;r>=-1&&!t;r--){var n;r>=0?n=arguments[r]:(i===void 0&&(i=process.cwd()),n=i),oi(n),n.length!==0&&(e=n+"/"+e,t=n.charCodeAt(0)===47)}return e=xu(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(oi(e),e.length===0)return".";var t=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=xu(e,!t),e.length===0&&!t&&(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return oi(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var i=arguments[t];oi(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":Ds.normalize(e)},relative:function(e,t){if(oi(e),oi(t),e===t||(e=Ds.resolve(e),t=Ds.resolve(t),e===t))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var r=e.length,n=r-i,o=1;o<t.length&&t.charCodeAt(o)===47;++o);for(var a=t.length,A=a-o,l=n<A?n:A,c=-1,h=0;h<=l;++h){if(h===l){if(A>l){if(t.charCodeAt(o+h)===47)return t.slice(o+h+1);if(h===0)return t.slice(o+h)}else n>l&&(e.charCodeAt(i+h)===47?c=h:h===0&&(c=0));break}var u=e.charCodeAt(i+h),d=t.charCodeAt(o+h);if(u!==d)break;u===47&&(c=h)}var g="";for(h=i+c+1;h<=r;++h)(h===r||e.charCodeAt(h)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+t.slice(o+c):(o+=c,t.charCodeAt(o)===47&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(oi(e),e.length===0)return".";for(var t=e.charCodeAt(0),i=t===47,r=-1,n=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),t===47){if(!n){r=o;break}}else n=!1;return r===-1?i?"/":".":i&&r===1?"//":e.slice(0,r)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');oi(e);var i=0,r=-1,n=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,A=-1;for(o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(l===47){if(!n){i=o+1;break}}else A===-1&&(n=!1,A=o+1),a>=0&&(l===t.charCodeAt(a)?--a===-1&&(r=o):(a=-1,r=A))}return i===r?r=A:r===-1&&(r=e.length),e.slice(i,r)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!n){i=o+1;break}}else r===-1&&(n=!1,r=o+1);return r===-1?"":e.slice(i,r)}},extname:function(e){oi(e);for(var t=-1,i=0,r=-1,n=!0,o=0,a=e.length-1;a>=0;--a){var A=e.charCodeAt(a);if(A===47){if(!n){i=a+1;break}continue}r===-1&&(n=!1,r=a+1),A===46?t===-1?t=a:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||r===-1||o===0||o===1&&t===r-1&&t===i+1?"":e.slice(t,r)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return ly("/",e)},parse:function(e){oi(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var i=e.charCodeAt(0),r=i===47,n;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,A=-1,l=!0,c=e.length-1,h=0;c>=n;--c){if(i=e.charCodeAt(c),i===47){if(!l){a=c+1;break}continue}A===-1&&(l=!1,A=c+1),i===46?o===-1?o=c:h!==1&&(h=1):o!==-1&&(h=-1)}return o===-1||A===-1||h===0||h===1&&o===A-1&&o===a+1?A!==-1&&(a===0&&r?t.base=t.name=e.slice(1,A):t.base=t.name=e.slice(a,A)):(a===0&&r?(t.name=e.slice(1,o),t.base=e.slice(1,A)):(t.name=e.slice(a,o),t.base=e.slice(a,A)),t.ext=e.slice(o,A)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ds.posix=Ds;var cy=Ds;const{basename:Du,extname:hy}=cy;class uy{constructor(){let e=typeof Lr>"u",t="image/png",i="image/jpeg",r="image/jpeg",n="image/webp",o="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:e?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:e?{png:t,jpg:i,jpeg:r,webp:n}:{png:t,jpg:i,jpeg:r,pdf:o,svg:a},mimes:e?{[t]:"png",[i]:"jpg",[n]:"webp"}:{[t]:"png",[i]:"jpg",[o]:"pdf",[a]:"svg"}})}toMime(e){return this.formats[(e||"").replace(/^\./,"").toLowerCase()]}fromMime(e){return this.mimes[e]}}function dy(s,{filename:e="",extension:t="",format:f,page:r,quality:n,matte:o,density:a,outline:A,archive:d}={}){var{fromMime:c,toMime:h,expected:u}=new uy,d=d||"canvas",g=f||t.replace(/@\d+x$/i,"")||hy(e),f=c(h(g)||g),p=h(f),y=s.length;if(!g)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!f)throw new Error(`Unsupported file format "${g}" (expected ${u})`);if(!y)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let v,S,C=e.replace(/{(\d*)}/g,(B,_)=>(S=!0,_=parseInt(_,10),v=isFinite(_)?_:isFinite(v)?v:-1,"{}")),Q=r>0?r-1:r<0?y+r:void 0;if(isFinite(Q)&&Q<0||Q>=y)throw new RangeError(y==1?`Canvas only has a ‘page 1’ (${Q} is out of bounds)`:`Canvas has pages 1–${y} (${Q} is out of bounds)`);if(s=isFinite(Q)?[s[Q]]:S||f=="pdf"?s:s.slice(-1),n===void 0)n=.92;else if(typeof n!="number"||!isFinite(n)||n<0||n>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(a===void 0){let B=(t||Du(e,g)).match(/@(\d+)x$/i);a=B?parseInt(B[1],10):1}else if(typeof a!="number"||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return A===void 0?A=!0:f=="svg"&&(A=!!A),{filename:e,pattern:C,format:f,mime:p,pages:s,padding:v,quality:n,matte:o,density:a,outline:A,archive:d}}class Fn{static for(e){return new Fn().append(e).get()}constructor(){this.crc=-1}get(){return~this.crc}append(e){for(var t=this.crc|0,i=this.table,r=0,n=e.length|0;r<n;r++)t=t>>>8^i[(t^e[r])&255];return this.crc=t,this}}Fn.prototype.table=(()=>{var s,e,t,i=[];for(s=0;s<256;s++){for(t=s,e=0;e<8;e++)t=t&1?t>>>1^3988292384:t>>>1;i[s]=t}return i})();function Va(s){let e=new Uint8Array(s),t=new DataView(e.buffer),i={array:e,view:t,size:s,set8(r,n){return t.setUint8(r,n),i},set16(r,n){return t.setUint16(r,n,!0),i},set32(r,n){return t.setUint32(r,n,!0),i},bytes(r,n){return e.set(n,r),i}};return i}const Nn=class Nn{constructor(e){let t=new Date;Object.assign(this,{directory:e,offset:0,files:[],time:(t.getHours()<<6|t.getMinutes())<<5|t.getSeconds()/2,date:(t.getFullYear()-1980<<4|t.getMonth()+1)<<5|t.getDate()}),this.add(e)}async add(e,t){let i=!t,r=Nn.encoder.encode(`${this.directory}/${i?"":e}`),n=new Uint8Array(i?0:await t.arrayBuffer()),o=30+r.length,a=o+n.length,A=16,{offset:l}=this,c=Va(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,Fn.for(n)).set32(14,n.length).set32(18,n.length).set16(22,r.length);l+=o;let h=Va(o+n.length+A).set32(0,67324752).bytes(4,c.array).bytes(30,r).bytes(o,n);l+=n.length,h.set32(a,134695760).bytes(a+4,c.array.slice(10,22)),l+=A,this.files.push({offset:l,folder:i,name:r,header:c,payload:h}),this.offset=l}toBuffer(){let e=this.files.reduce((h,{name:u})=>46+u.length+h,0),t=Va(e+22),i=0;for(var{offset:r,name:n,header:o,folder:a}of this.files)t.set32(i,33639248).set16(i+4,20).bytes(i+6,o.array).set8(i+38,a?16:0).set32(i+42,r).bytes(i+46,n),i+=46+n.length;t.set32(i,101010256).set16(i+8,this.files.length).set16(i+10,this.files.length).set32(i+12,e).set32(i+16,this.offset);let A=new Uint8Array(this.offset+t.size),l=0;for(var{payload:c}of this.files)A.set(c.array,l),l+=c.size;return A.set(t.array,l),A}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}};Ku(Nn,"encoder",new TextEncoder);let Ja=Nn;const Wa=(s,e,t,i)=>{if(i){let{width:r,height:n}=s,o=Object.assign(document.createElement("canvas"),{width:r,height:n}),a=o.getContext("2d");a.fillStyle=i,a.fillRect(0,0,r,n),a.drawImage(s,0,0),s=o}return new Promise((r,n)=>s.toBlob(r,e,t))},gy=(...s)=>Wa(...s).then(e=>e.arrayBuffer()),fy=async(s,e,t,i,r)=>{Tu(r,await Wa(s,e,t,i))},py=async(s,e,t,i,r,n,o)=>{let a=c=>n.replace("{}",String(c+1).padStart(o,"0")),A=Du(r,".zip")||"archive",l=new Ja(A);await Promise.all(s.map(async(c,h)=>{let u=a(h);await l.add(u,await Wa(c,e,t,i))})),Tu(`${A}.zip`,l.blob)},Tu=(s,e)=>{const t=window.URL.createObjectURL(e),i=document.createElement("a");i.style.display="none",i.href=t,i.setAttribute("download",s),typeof i.download>"u"&&i.setAttribute("target","_blank"),document.body.appendChild(i),i.click(),document.body.removeChild(i),setTimeout(()=>window.URL.revokeObjectURL(t),100)};var Ey={asBuffer:gy,asDownload:fy,asZipDownload:py,atScale:(s,e,t)=>s.map(i=>{if(e==1&&!t)return i.canvas;let r=document.createElement("canvas"),n=r.getContext("2d"),o=i.canvas?i.canvas:i;return r.width=o.width*e,r.height=o.height*e,t&&(n.fillStyle=t,n.fillRect(0,0,r.width,r.height)),n.scale(e,e),n.drawImage(o,0,0),r}),options:dy};const{asBuffer:qa,asDownload:Iy,asZipDownload:my,atScale:ja,options:Xa}=Ey,Lu=Symbol.for("toDataURL"),Cy=s=>{let e=Object.assign(new _u,{crossOrigin:"Anonymous",src:s});return e.decode().then(()=>e)};class yy{constructor(e,t){let i=document.createElement("canvas"),r=[];Object.defineProperty(i,"async",{value:!0,writable:!1,enumerable:!0});for(var[n,o]of Object.entries({png:()=>qa(i,"image/png"),jpg:()=>qa(i,"image/jpeg"),pages:()=>r.concat(i).map(a=>a.getContext("2d"))}))Object.defineProperty(i,n,{get:o});return Object.assign(i,{width:e,height:t,newPage(...a){var{width:l,height:c}=i,A=Object.assign(document.createElement("canvas"),{width:l,height:c});A.getContext("2d").drawImage(i,0,0),r.push(A);var[l,c]=a.length?a:[l,c];return Object.assign(i,{width:l,height:c}).getContext("2d")},saveAs(a,A){A=typeof A=="number"?{quality:A}:A;let l=Xa(this.pages,{filename:a,...A}),{pattern:c,padding:h,mime:u,quality:d,matte:g,density:f,archive:p}=l,y=ja(l.pages,f);return h==null?Iy(y[0],u,d,g,a):my(y,u,d,g,p,c,h)},toBuffer(a="png",A={}){A=typeof A=="number"?{quality:A}:A;let l=Xa(this.pages,{extension:a,...A}),{mime:c,quality:h,matte:u,pages:d,density:g}=l,f=ja(d,g,u)[0];return qa(f,c,h,u)},[Lu]:i.toDataURL.bind(i),toDataURL(a="png",A={}){A=typeof A=="number"?{quality:A}:A;let l=Xa(this.pages,{extension:a,...A}),{mime:c,quality:h,matte:u,pages:d,density:g}=l,f=ja(d,g,u)[0],p=f[f===i?Lu:"toDataURL"](c,h);return Promise.resolve(p)}})}}const{CanvasRenderingContext2D:vy,CanvasGradient:By,CanvasPattern:Qy,Image:_u,ImageData:Sy,Path2D:by,DOMMatrix:wy,DOMRect:Ry,DOMPoint:xy}=window;var ku={Canvas:yy,loadImage:Cy,CanvasRenderingContext2D:vy,CanvasGradient:By,CanvasPattern:Qy,Image:_u,ImageData:Sy,Path2D:by,DOMMatrix:wy,DOMRect:Ry,DOMPoint:xy};const Fu=ci({__proto__:null,default:el(ku)},[ku]);return Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"}),Ge}({});
1616
+ `],It([z({type:Object})],Ge.PlayerEmbed.prototype,"data",2),It([z({type:String})],Ge.PlayerEmbed.prototype,"vouchId",2),It([z({type:String})],Ge.PlayerEmbed.prototype,"templateId",2),It([z({type:Array})],Ge.PlayerEmbed.prototype,"questions",2),It([z({type:String})],Ge.PlayerEmbed.prototype,"env",2),It([z({type:String})],Ge.PlayerEmbed.prototype,"apiKey",2),It([z({type:Boolean})],Ge.PlayerEmbed.prototype,"disableTracking",2),It([z({type:String})],Ge.PlayerEmbed.prototype,"trackingSource",2),It([z({type:Array})],Ge.PlayerEmbed.prototype,"controls",2),It([z({type:String})],Ge.PlayerEmbed.prototype,"preload",2),It([z({type:Boolean})],Ge.PlayerEmbed.prototype,"autoplay",2),It([z({type:Number})],Ge.PlayerEmbed.prototype,"aspectRatio",2),It([z({type:String})],Ge.PlayerEmbed.prototype,"language",2),It([ze()],Ge.PlayerEmbed.prototype,"vouch",2),It([ze()],Ge.PlayerEmbed.prototype,"template",2),Ge.PlayerEmbed=It([rd("vouch-embed-player")],Ge.PlayerEmbed);function oi(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function xu(s,e){for(var t="",i=0,r=-1,n=0,o,a=0;a<=s.length;++a){if(a<s.length)o=s.charCodeAt(a);else{if(o===47)break;o=47}if(o===47){if(!(r===a-1||n===1))if(r!==a-1&&n===2){if(t.length<2||i!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var A=t.lastIndexOf("/");if(A!==t.length-1){A===-1?(t="",i=0):(t=t.slice(0,A),i=t.length-1-t.lastIndexOf("/")),r=a,n=0;continue}}else if(t.length===2||t.length===1){t="",i=0,r=a,n=0;continue}}e&&(t.length>0?t+="/..":t="..",i=2)}else t.length>0?t+="/"+s.slice(r+1,a):t=s.slice(r+1,a),i=a-r-1;r=a,n=0}else o===46&&n!==-1?++n:n=-1}return t}function ly(s,e){var t=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+i:t+s+i:i}var Ds={resolve:function(){for(var e="",t=!1,i,r=arguments.length-1;r>=-1&&!t;r--){var n;r>=0?n=arguments[r]:(i===void 0&&(i=process.cwd()),n=i),oi(n),n.length!==0&&(e=n+"/"+e,t=n.charCodeAt(0)===47)}return e=xu(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(oi(e),e.length===0)return".";var t=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=xu(e,!t),e.length===0&&!t&&(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return oi(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var i=arguments[t];oi(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":Ds.normalize(e)},relative:function(e,t){if(oi(e),oi(t),e===t||(e=Ds.resolve(e),t=Ds.resolve(t),e===t))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var r=e.length,n=r-i,o=1;o<t.length&&t.charCodeAt(o)===47;++o);for(var a=t.length,A=a-o,l=n<A?n:A,c=-1,h=0;h<=l;++h){if(h===l){if(A>l){if(t.charCodeAt(o+h)===47)return t.slice(o+h+1);if(h===0)return t.slice(o+h)}else n>l&&(e.charCodeAt(i+h)===47?c=h:h===0&&(c=0));break}var u=e.charCodeAt(i+h),d=t.charCodeAt(o+h);if(u!==d)break;u===47&&(c=h)}var g="";for(h=i+c+1;h<=r;++h)(h===r||e.charCodeAt(h)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+t.slice(o+c):(o+=c,t.charCodeAt(o)===47&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(oi(e),e.length===0)return".";for(var t=e.charCodeAt(0),i=t===47,r=-1,n=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),t===47){if(!n){r=o;break}}else n=!1;return r===-1?i?"/":".":i&&r===1?"//":e.slice(0,r)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');oi(e);var i=0,r=-1,n=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,A=-1;for(o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(l===47){if(!n){i=o+1;break}}else A===-1&&(n=!1,A=o+1),a>=0&&(l===t.charCodeAt(a)?--a===-1&&(r=o):(a=-1,r=A))}return i===r?r=A:r===-1&&(r=e.length),e.slice(i,r)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!n){i=o+1;break}}else r===-1&&(n=!1,r=o+1);return r===-1?"":e.slice(i,r)}},extname:function(e){oi(e);for(var t=-1,i=0,r=-1,n=!0,o=0,a=e.length-1;a>=0;--a){var A=e.charCodeAt(a);if(A===47){if(!n){i=a+1;break}continue}r===-1&&(n=!1,r=a+1),A===46?t===-1?t=a:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||r===-1||o===0||o===1&&t===r-1&&t===i+1?"":e.slice(t,r)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return ly("/",e)},parse:function(e){oi(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var i=e.charCodeAt(0),r=i===47,n;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,A=-1,l=!0,c=e.length-1,h=0;c>=n;--c){if(i=e.charCodeAt(c),i===47){if(!l){a=c+1;break}continue}A===-1&&(l=!1,A=c+1),i===46?o===-1?o=c:h!==1&&(h=1):o!==-1&&(h=-1)}return o===-1||A===-1||h===0||h===1&&o===A-1&&o===a+1?A!==-1&&(a===0&&r?t.base=t.name=e.slice(1,A):t.base=t.name=e.slice(a,A)):(a===0&&r?(t.name=e.slice(1,o),t.base=e.slice(1,A)):(t.name=e.slice(a,o),t.base=e.slice(a,A)),t.ext=e.slice(o,A)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ds.posix=Ds;var cy=Ds;const{basename:Du,extname:hy}=cy;class uy{constructor(){let e=typeof Lr>"u",t="image/png",i="image/jpeg",r="image/jpeg",n="image/webp",o="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:e?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:e?{png:t,jpg:i,jpeg:r,webp:n}:{png:t,jpg:i,jpeg:r,pdf:o,svg:a},mimes:e?{[t]:"png",[i]:"jpg",[n]:"webp"}:{[t]:"png",[i]:"jpg",[o]:"pdf",[a]:"svg"}})}toMime(e){return this.formats[(e||"").replace(/^\./,"").toLowerCase()]}fromMime(e){return this.mimes[e]}}function dy(s,{filename:e="",extension:t="",format:f,page:r,quality:n,matte:o,density:a,outline:A,archive:d}={}){var{fromMime:c,toMime:h,expected:u}=new uy,d=d||"canvas",g=f||t.replace(/@\d+x$/i,"")||hy(e),f=c(h(g)||g),p=h(f),y=s.length;if(!g)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!f)throw new Error(`Unsupported file format "${g}" (expected ${u})`);if(!y)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let v,S,C=e.replace(/{(\d*)}/g,(B,_)=>(S=!0,_=parseInt(_,10),v=isFinite(_)?_:isFinite(v)?v:-1,"{}")),Q=r>0?r-1:r<0?y+r:void 0;if(isFinite(Q)&&Q<0||Q>=y)throw new RangeError(y==1?`Canvas only has a ‘page 1’ (${Q} is out of bounds)`:`Canvas has pages 1–${y} (${Q} is out of bounds)`);if(s=isFinite(Q)?[s[Q]]:S||f=="pdf"?s:s.slice(-1),n===void 0)n=.92;else if(typeof n!="number"||!isFinite(n)||n<0||n>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(a===void 0){let B=(t||Du(e,g)).match(/@(\d+)x$/i);a=B?parseInt(B[1],10):1}else if(typeof a!="number"||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return A===void 0?A=!0:f=="svg"&&(A=!!A),{filename:e,pattern:C,format:f,mime:p,pages:s,padding:v,quality:n,matte:o,density:a,outline:A,archive:d}}class Fn{static for(e){return new Fn().append(e).get()}constructor(){this.crc=-1}get(){return~this.crc}append(e){for(var t=this.crc|0,i=this.table,r=0,n=e.length|0;r<n;r++)t=t>>>8^i[(t^e[r])&255];return this.crc=t,this}}Fn.prototype.table=(()=>{var s,e,t,i=[];for(s=0;s<256;s++){for(t=s,e=0;e<8;e++)t=t&1?t>>>1^3988292384:t>>>1;i[s]=t}return i})();function Va(s){let e=new Uint8Array(s),t=new DataView(e.buffer),i={array:e,view:t,size:s,set8(r,n){return t.setUint8(r,n),i},set16(r,n){return t.setUint16(r,n,!0),i},set32(r,n){return t.setUint32(r,n,!0),i},bytes(r,n){return e.set(n,r),i}};return i}const Nn=class Nn{constructor(e){let t=new Date;Object.assign(this,{directory:e,offset:0,files:[],time:(t.getHours()<<6|t.getMinutes())<<5|t.getSeconds()/2,date:(t.getFullYear()-1980<<4|t.getMonth()+1)<<5|t.getDate()}),this.add(e)}async add(e,t){let i=!t,r=Nn.encoder.encode(`${this.directory}/${i?"":e}`),n=new Uint8Array(i?0:await t.arrayBuffer()),o=30+r.length,a=o+n.length,A=16,{offset:l}=this,c=Va(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,Fn.for(n)).set32(14,n.length).set32(18,n.length).set16(22,r.length);l+=o;let h=Va(o+n.length+A).set32(0,67324752).bytes(4,c.array).bytes(30,r).bytes(o,n);l+=n.length,h.set32(a,134695760).bytes(a+4,c.array.slice(10,22)),l+=A,this.files.push({offset:l,folder:i,name:r,header:c,payload:h}),this.offset=l}toBuffer(){let e=this.files.reduce((h,{name:u})=>46+u.length+h,0),t=Va(e+22),i=0;for(var{offset:r,name:n,header:o,folder:a}of this.files)t.set32(i,33639248).set16(i+4,20).bytes(i+6,o.array).set8(i+38,a?16:0).set32(i+42,r).bytes(i+46,n),i+=46+n.length;t.set32(i,101010256).set16(i+8,this.files.length).set16(i+10,this.files.length).set32(i+12,e).set32(i+16,this.offset);let A=new Uint8Array(this.offset+t.size),l=0;for(var{payload:c}of this.files)A.set(c.array,l),l+=c.size;return A.set(t.array,l),A}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}};Ku(Nn,"encoder",new TextEncoder);let Ja=Nn;const Wa=(s,e,t,i)=>{if(i){let{width:r,height:n}=s,o=Object.assign(document.createElement("canvas"),{width:r,height:n}),a=o.getContext("2d");a.fillStyle=i,a.fillRect(0,0,r,n),a.drawImage(s,0,0),s=o}return new Promise((r,n)=>s.toBlob(r,e,t))},gy=(...s)=>Wa(...s).then(e=>e.arrayBuffer()),fy=async(s,e,t,i,r)=>{Tu(r,await Wa(s,e,t,i))},py=async(s,e,t,i,r,n,o)=>{let a=c=>n.replace("{}",String(c+1).padStart(o,"0")),A=Du(r,".zip")||"archive",l=new Ja(A);await Promise.all(s.map(async(c,h)=>{let u=a(h);await l.add(u,await Wa(c,e,t,i))})),Tu(`${A}.zip`,l.blob)},Tu=(s,e)=>{const t=window.URL.createObjectURL(e),i=document.createElement("a");i.style.display="none",i.href=t,i.setAttribute("download",s),typeof i.download>"u"&&i.setAttribute("target","_blank"),document.body.appendChild(i),i.click(),document.body.removeChild(i),setTimeout(()=>window.URL.revokeObjectURL(t),100)};var Ey={asBuffer:gy,asDownload:fy,asZipDownload:py,atScale:(s,e,t)=>s.map(i=>{if(e==1&&!t)return i.canvas;let r=document.createElement("canvas"),n=r.getContext("2d"),o=i.canvas?i.canvas:i;return r.width=o.width*e,r.height=o.height*e,t&&(n.fillStyle=t,n.fillRect(0,0,r.width,r.height)),n.scale(e,e),n.drawImage(o,0,0),r}),options:dy};const{asBuffer:qa,asDownload:Iy,asZipDownload:my,atScale:ja,options:Xa}=Ey,Lu=Symbol.for("toDataURL"),Cy=s=>{let e=Object.assign(new _u,{crossOrigin:"Anonymous",src:s});return e.decode().then(()=>e)};class yy{constructor(e,t){let i=document.createElement("canvas"),r=[];Object.defineProperty(i,"async",{value:!0,writable:!1,enumerable:!0});for(var[n,o]of Object.entries({png:()=>qa(i,"image/png"),jpg:()=>qa(i,"image/jpeg"),pages:()=>r.concat(i).map(a=>a.getContext("2d"))}))Object.defineProperty(i,n,{get:o});return Object.assign(i,{width:e,height:t,newPage(...a){var{width:l,height:c}=i,A=Object.assign(document.createElement("canvas"),{width:l,height:c});A.getContext("2d").drawImage(i,0,0),r.push(A);var[l,c]=a.length?a:[l,c];return Object.assign(i,{width:l,height:c}).getContext("2d")},saveAs(a,A){A=typeof A=="number"?{quality:A}:A;let l=Xa(this.pages,{filename:a,...A}),{pattern:c,padding:h,mime:u,quality:d,matte:g,density:f,archive:p}=l,y=ja(l.pages,f);return h==null?Iy(y[0],u,d,g,a):my(y,u,d,g,p,c,h)},toBuffer(a="png",A={}){A=typeof A=="number"?{quality:A}:A;let l=Xa(this.pages,{extension:a,...A}),{mime:c,quality:h,matte:u,pages:d,density:g}=l,f=ja(d,g,u)[0];return qa(f,c,h,u)},[Lu]:i.toDataURL.bind(i),toDataURL(a="png",A={}){A=typeof A=="number"?{quality:A}:A;let l=Xa(this.pages,{extension:a,...A}),{mime:c,quality:h,matte:u,pages:d,density:g}=l,f=ja(d,g,u)[0],p=f[f===i?Lu:"toDataURL"](c,h);return Promise.resolve(p)}})}}const{CanvasRenderingContext2D:vy,CanvasGradient:By,CanvasPattern:Qy,Image:_u,ImageData:Sy,Path2D:by,DOMMatrix:wy,DOMRect:Ry,DOMPoint:xy}=window;var ku={Canvas:yy,loadImage:Cy,CanvasRenderingContext2D:vy,CanvasGradient:By,CanvasPattern:Qy,Image:_u,ImageData:Sy,Path2D:by,DOMMatrix:wy,DOMRect:Ry,DOMPoint:xy};const Fu=ci({__proto__:null,default:el(ku)},[ku]);return Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"}),Ge}({});
1616
1617
  //# sourceMappingURL=embed.iife.js.map