@streamlayer/web-os 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1,288 +1 @@
1
- "use strict";var U6=Object.defineProperty;var k6=(t,e,n)=>e in t?U6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var et=(t,e,n)=>k6(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),x6=require("pino");require("nanostores");const da=require("uuid"),li=require("@connectrpc/connect");require("@connectrpc/connect-web");require("@nanostores/query");const Ga=require("@streamlayer/react"),M=require("react"),L6=require("@streamlayer/react-ui"),hc=require("@noriginmedia/norigin-spatial-navigation"),F6=require("lodash.throttle"),B6=require("@nanostores/react"),Dg=require("react-countdown-circle-timer"),W6=require("react-countup");function Og(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const N=Og(M),Z6=Og(B6);function D6(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xg={exports:{}},rt=Xg.exports={},Zn,Dn;function hd(){throw new Error("setTimeout has not been defined")}function pd(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Zn=setTimeout:Zn=hd}catch{Zn=hd}try{typeof clearTimeout=="function"?Dn=clearTimeout:Dn=pd}catch{Dn=pd}})();function Gg(t){if(Zn===setTimeout)return setTimeout(t,0);if((Zn===hd||!Zn)&&setTimeout)return Zn=setTimeout,setTimeout(t,0);try{return Zn(t,0)}catch{try{return Zn.call(null,t,0)}catch{return Zn.call(this,t,0)}}}function O6(t){if(Dn===clearTimeout)return clearTimeout(t);if((Dn===pd||!Dn)&&clearTimeout)return Dn=clearTimeout,clearTimeout(t);try{return Dn(t)}catch{try{return Dn.call(null,t)}catch{return Dn.call(this,t)}}}var fi=[],as=!1,vr,pl=-1;function X6(){!as||!vr||(as=!1,vr.length?fi=vr.concat(fi):pl=-1,fi.length&&Mg())}function Mg(){if(!as){var t=Gg(X6);as=!0;for(var e=fi.length;e;){for(vr=fi,fi=[];++pl<e;)vr&&vr[pl].run();pl=-1,e=fi.length}vr=null,as=!1,O6(t)}}rt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];fi.push(new Pg(t,e)),fi.length===1&&!as&&Gg(Mg)};function Pg(t,e){this.fun=t,this.array=e}Pg.prototype.run=function(){this.fun.apply(null,this.array)};rt.title="browser";rt.browser=!0;rt.env={};rt.argv=[];rt.version="";rt.versions={};function Vi(){}rt.on=Vi;rt.addListener=Vi;rt.once=Vi;rt.off=Vi;rt.removeListener=Vi;rt.removeAllListeners=Vi;rt.emit=Vi;rt.prependListener=Vi;rt.prependOnceListener=Vi;rt.listeners=function(t){return[]};rt.binding=function(t){throw new Error("process.binding is not supported")};rt.cwd=function(){return"/"};rt.chdir=function(t){throw new Error("process.chdir is not supported")};rt.umask=function(){return 0};var G6=Xg.exports;const jp=D6(G6),M6=x6.pino({level:"trace",enabled:typeof window<"u"&&!!window.localStorage.getItem("SL_DEBUG"),browser:{write:t=>{console.log(t)}}}),Os=(t,e)=>M6.child({name:t},e);class P6 extends Event{constructor(n,i){super(n);et(this,"slEventBus");this.slEventBus=i}}const Y6=Os("event-bus");class H6{constructor(e="sl-event-bus"){et(this,"name");et(this,"listeners");et(this,"emit",(e,n)=>{const i=new P6(this.name,{...n,type:e});Y6.debug(i,"Emitting event"),window.dispatchEvent(i)});et(this,"destroy",()=>{this.listeners.forEach(e=>{window.removeEventListener(this.name,e),this.listeners.delete(e)}),this.listeners.clear()});this.name=e,this.listeners=new Set}listen(e){return window.addEventListener(this.name,e),this.listeners.add(e),()=>{this.off(e)}}off(e){window.removeEventListener(this.name,e),this.listeners.delete(e)}}function _l(t){let e=!1;const n=[];for(let i=0;i<t.length;i++){let r=t.charAt(i);switch(r){case"_":e=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(r),e=!1;break;default:e&&(e=!1,r=r.toUpperCase()),n.push(r);break}}return n.join("")}const j6=new Set(["constructor","toString","toJSON","valueOf"]);function Ma(t){return j6.has(t)?t+"$":t}function J6(){let t=0,e=0;for(let i=0;i<28;i+=7){let r=this.buf[this.pos++];if(t|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}let n=this.buf[this.pos++];if(t|=(n&15)<<28,e=(n&112)>>4,!(n&128))return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}const ml=4294967296;function Jp(t){const e=t[0]==="-";e&&(t=t.slice(1));const n=1e6;let i=0,r=0;function s(a,o){const c=Number(t.slice(a,o));r*=n,i=i*n+c,i>=ml&&(r=r+(i/ml|0),i=i%ml)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),e?Hg(i,r):d1(i,r)}function Q6(t,e){let n=d1(t,e);const i=n.hi&2147483648;i&&(n=Hg(n.lo,n.hi));const r=Yg(n.lo,n.hi);return i?"-"+r:r}function Yg(t,e){if({lo:t,hi:e}=K6(t,e),e<=2097151)return String(ml*e+t);const n=t&16777215,i=(t>>>24|e<<8)&16777215,r=e>>16&65535;let s=n+i*6777216+r*6710656,a=i+r*8147497,o=r*2;const c=1e7;return s>=c&&(a+=Math.floor(s/c),s%=c),a>=c&&(o+=Math.floor(a/c),a%=c),o.toString()+Qp(a)+Qp(s)}function K6(t,e){return{lo:t>>>0,hi:e>>>0}}function d1(t,e){return{lo:t|0,hi:e|0}}function Hg(t,e){return e=~e,t?t=~t+1:e+=1,d1(t,e)}const Qp=t=>{const e=String(t);return"0000000".slice(e.length)+e};function $6(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let n=5;t&128&&n<10;n++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}const Tt=z6();function z6(){const t=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"&&(typeof jp!="object"||typeof jp.env!="object"||!1)){const n=BigInt("-9223372036854775808"),i=BigInt("9223372036854775807"),r=BigInt("0"),s=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(a){const o=typeof a=="bigint"?a:BigInt(a);if(o>i||o<n)throw new Error(`invalid int64: ${a}`);return o},uParse(a){const o=typeof a=="bigint"?a:BigInt(a);if(o>s||o<r)throw new Error(`invalid uint64: ${a}`);return o},enc(a){return t.setBigInt64(0,this.parse(a),!0),{lo:t.getInt32(0,!0),hi:t.getInt32(4,!0)}},uEnc(a){return t.setBigInt64(0,this.uParse(a),!0),{lo:t.getInt32(0,!0),hi:t.getInt32(4,!0)}},dec(a,o){return t.setInt32(0,a,!0),t.setInt32(4,o,!0),t.getBigInt64(0,!0)},uDec(a,o){return t.setInt32(0,a,!0),t.setInt32(4,o,!0),t.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(n){return typeof n!="string"&&(n=n.toString()),Kp(n),n},uParse(n){return typeof n!="string"&&(n=n.toString()),$p(n),n},enc(n){return typeof n!="string"&&(n=n.toString()),Kp(n),Jp(n)},uEnc(n){return typeof n!="string"&&(n=n.toString()),$p(n),Jp(n)},dec(n,i){return Q6(n,i)},uDec(n,i){return Yg(n,i)}}}function Kp(t){if(!/^-?[0-9]+$/.test(t))throw new Error("invalid int64: "+t)}function $p(t){if(!/^[0-9]+$/.test(t))throw new Error("invalid uint64: "+t)}var z;(function(t){t[t.DOUBLE=1]="DOUBLE",t[t.FLOAT=2]="FLOAT",t[t.INT64=3]="INT64",t[t.UINT64=4]="UINT64",t[t.INT32=5]="INT32",t[t.FIXED64=6]="FIXED64",t[t.FIXED32=7]="FIXED32",t[t.BOOL=8]="BOOL",t[t.STRING=9]="STRING",t[t.BYTES=12]="BYTES",t[t.UINT32=13]="UINT32",t[t.SFIXED32=15]="SFIXED32",t[t.SFIXED64=16]="SFIXED64",t[t.SINT32=17]="SINT32",t[t.SINT64=18]="SINT64"})(z||(z={}));function Pa(t,e){switch(t){case z.STRING:return"";case z.BOOL:return!1;default:return 0;case z.DOUBLE:case z.FLOAT:return 0;case z.INT64:case z.UINT64:case z.SFIXED64:case z.FIXED64:case z.SINT64:return e?"0":Tt.zero;case z.BYTES:return new Uint8Array(0)}}function q6(t,e){switch(t){case z.BOOL:return e===!1;case z.STRING:return e==="";case z.BYTES:return e instanceof Uint8Array&&!e.byteLength;default:return e==0}}const jg=2,yi=Symbol.for("reflect unsafe local");function eb(t,e){const n=t[e.localName].case;return n===void 0?n:e.fields.find(i=>i.localName===n)}function tb(t,e){const n=e.localName;if(e.oneof)return t[e.oneof.localName].case===n;if(e.presence!=jg)return t[n]!==void 0&&Object.prototype.hasOwnProperty.call(t,n);switch(e.fieldKind){case"list":return t[n].length>0;case"map":return Object.keys(t[n]).length>0;case"scalar":return!q6(e.scalar,t[n]);case"enum":return t[n]!==e.enum.values[0].number}throw new Error("message field with implicit presence")}function Ya(t,e){return Object.prototype.hasOwnProperty.call(t,e)&&t[e]!==void 0}function nb(t,e){if(e.oneof){const n=t[e.oneof.localName];return n.case===e.localName?n.value:void 0}return t[e.localName]}function ib(t,e,n){e.oneof?t[e.oneof.localName]={case:e.localName,value:n}:t[e.localName]=n}function rb(t,e){const n=e.localName;if(e.oneof){const i=e.oneof.localName;t[i].case===n&&(t[i]={case:void 0})}else if(e.presence!=jg)delete t[n];else switch(e.fieldKind){case"map":t[n]={};break;case"list":t[n]=[];break;case"enum":t[n]=e.enum.values[0].number;break;case"scalar":t[n]=Pa(e.scalar,e.longAsString);break}}function h1(t){for(const e of t.field)Ya(e,"jsonName")||(e.jsonName=_l(e.name));t.nestedType.forEach(h1)}function sb(t,e){const n=t.values.find(i=>i.name===e);if(!n)throw new Error(`cannot parse ${t} default value: ${e}`);return n.number}function ab(t,e){switch(t){case z.STRING:return e;case z.BYTES:{const n=ob(e);if(n===!1)throw new Error(`cannot parse ${z[t]} default value: ${e}`);return n}case z.INT64:case z.SFIXED64:case z.SINT64:return Tt.parse(e);case z.UINT64:case z.FIXED64:return Tt.uParse(e);case z.DOUBLE:case z.FLOAT:switch(e){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(e)}case z.BOOL:return e==="true";case z.INT32:case z.UINT32:case z.SINT32:case z.FIXED32:case z.SFIXED32:return parseInt(e,10)}}function ob(t){const e=[],n={tail:t,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(i){if(this.tail.length>=i){const r=this.tail.substring(0,i);return this.tail=this.tail.substring(i),r}return!1}};for(;n.next();)switch(n.c){case"\\":if(n.next())switch(n.c){case"\\":e.push(n.c.charCodeAt(0));break;case"b":e.push(8);break;case"f":e.push(12);break;case"n":e.push(10);break;case"r":e.push(13);break;case"t":e.push(9);break;case"v":e.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const i=n.c,r=n.take(2);if(r===!1)return!1;const s=parseInt(i+r,8);if(isNaN(s))return!1;e.push(s);break}case"x":{const i=n.c,r=n.take(2);if(r===!1)return!1;const s=parseInt(i+r,16);if(isNaN(s))return!1;e.push(s);break}case"u":{const i=n.c,r=n.take(4);if(r===!1)return!1;const s=parseInt(i+r,16);if(isNaN(s))return!1;const a=new Uint8Array(4);new DataView(a.buffer).setInt32(0,s,!0),e.push(a[0],a[1],a[2],a[3]);break}case"U":{const i=n.c,r=n.take(8);if(r===!1)return!1;const s=Tt.uEnc(i+r),a=new Uint8Array(8),o=new DataView(a.buffer);o.setInt32(0,s.lo,!0),o.setInt32(4,s.hi,!0),e.push(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]);break}}break;default:e.push(n.c.charCodeAt(0))}return new Uint8Array(e)}function*md(t){switch(t.kind){case"file":for(const e of t.messages)yield e,yield*md(e);yield*t.enums,yield*t.services,yield*t.extensions;break;case"message":for(const e of t.nestedMessages)yield e,yield*md(e);yield*t.nestedEnums,yield*t.nestedExtensions;break}}function Jg(...t){const e=lb();if(!t.length)return e;if("$typeName"in t[0]&&t[0].$typeName=="google.protobuf.FileDescriptorSet"){for(const n of t[0].file)e0(n,e);return e}if("$typeName"in t[0]){let s=function(a){const o=[];for(const c of a.dependency){if(e.getFile(c)!=null||r.has(c))continue;const u=i(c);if(!u)throw new Error(`Unable to resolve ${c}, imported by ${a.name}`);"kind"in u?e.addFile(u,!1,!0):(r.add(u.name),o.push(u))}return o.concat(...o.map(s))};const n=t[0],i=t[1],r=new Set;for(const a of[n,...s(n)].reverse())e0(a,e)}else for(const n of t)for(const i of n.files)e.addFile(i);return e}function lb(){const t=new Map,e=new Map,n=new Map;return{kind:"registry",types:t,extendees:e,[Symbol.iterator](){return t.values()},get files(){return n.values()},addFile(i,r,s){if(n.set(i.proto.name,i),!r)for(const a of md(i))this.add(a);if(s)for(const a of i.dependencies)this.addFile(a,r,s)},add(i){if(i.kind=="extension"){let r=e.get(i.extendee.typeName);r||e.set(i.extendee.typeName,r=new Map),r.set(i.number,i)}t.set(i.typeName,i)},get(i){return t.get(i)},getFile(i){return n.get(i)},getMessage(i){const r=t.get(i);return(r==null?void 0:r.kind)=="message"?r:void 0},getEnum(i){const r=t.get(i);return(r==null?void 0:r.kind)=="enum"?r:void 0},getExtension(i){const r=t.get(i);return(r==null?void 0:r.kind)=="extension"?r:void 0},getExtensionFor(i,r){var s;return(s=e.get(i.typeName))===null||s===void 0?void 0:s.get(r)},getService(i){const r=t.get(i);return(r==null?void 0:r.kind)=="service"?r:void 0}}}const cb=998,ub=999,db=9,Rl=10,ka=11,hb=12,zp=14,p1=3,pb=2,qp=1,mb=0,gu=1,gb=2,fb=3,yb=1,bb=2,Eb=1,Qg={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2,enforceNamingStyle:2},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2}};function e0(t,e){var n,i;const r={kind:"file",proto:t,deprecated:(i=(n=t.options)===null||n===void 0?void 0:n.deprecated)!==null&&i!==void 0?i:!1,edition:Ab(t),name:t.name.replace(/\.proto$/,""),dependencies:Sb(t,e),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${t.name}`}},s=new Map,a={get(o){return s.get(o)},add(o){var c;Sn(((c=o.proto.options)===null||c===void 0?void 0:c.mapEntry)===!0),s.set(o.typeName,o)}};for(const o of t.enumType)Kg(o,r,void 0,e);for(const o of t.messageType)$g(o,r,void 0,e,a);for(const o of t.service)Tb(o,r,e);gd(r,e);for(const o of s.values())fd(o,e,a);for(const o of r.messages)fd(o,e,a),gd(o,e);e.addFile(r,!0)}function gd(t,e){switch(t.kind){case"file":for(const n of t.proto.extension){const i=yd(n,t,e);t.extensions.push(i),e.add(i)}break;case"message":for(const n of t.proto.extension){const i=yd(n,t,e);t.nestedExtensions.push(i),e.add(i)}for(const n of t.nestedMessages)gd(n,e);break}}function fd(t,e,n){const i=t.proto.oneofDecl.map(s=>Cb(s,t)),r=new Set;for(const s of t.proto.field){const a=Ib(s,i),o=yd(s,t,e,a,n);t.fields.push(o),t.field[o.localName]=o,a===void 0?t.members.push(o):(a.fields.push(o),r.has(a)||(r.add(a),t.members.push(a)))}for(const s of i.filter(a=>r.has(a)))t.oneofs.push(s);for(const s of t.nestedMessages)fd(s,e,n)}function Kg(t,e,n,i){var r,s,a;const o=_b(t.name,t.value),c={kind:"enum",proto:t,deprecated:(s=(r=t.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,file:e,parent:n,open:!0,name:t.name,typeName:pc(t,n,e),value:{},values:[],sharedPrefix:o,toString(){return`enum ${this.typeName}`}};c.open=Ub(c),i.add(c),t.value.forEach(u=>{var d,y;const A=u.name;c.values.push(c.value[u.number]={kind:"enum_value",proto:u,deprecated:(y=(d=u.options)===null||d===void 0?void 0:d.deprecated)!==null&&y!==void 0?y:!1,parent:c,name:A,localName:Ma(o==null?A:A.substring(o.length)),number:u.number,toString(){return`enum value ${c.typeName}.${A}`}})}),((a=n==null?void 0:n.nestedEnums)!==null&&a!==void 0?a:e.enums).push(c)}function $g(t,e,n,i,r){var s,a,o,c;const u={kind:"message",proto:t,deprecated:(a=(s=t.options)===null||s===void 0?void 0:s.deprecated)!==null&&a!==void 0?a:!1,file:e,parent:n,name:t.name,typeName:pc(t,n,e),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};((o=t.options)===null||o===void 0?void 0:o.mapEntry)===!0?r.add(u):(((c=n==null?void 0:n.nestedMessages)!==null&&c!==void 0?c:e.messages).push(u),i.add(u));for(const d of t.enumType)Kg(d,e,u,i);for(const d of t.nestedType)$g(d,e,u,i,r)}function Tb(t,e,n){var i,r;const s={kind:"service",proto:t,deprecated:(r=(i=t.options)===null||i===void 0?void 0:i.deprecated)!==null&&r!==void 0?r:!1,file:e,name:t.name,typeName:pc(t,void 0,e),methods:[],method:{},toString(){return`service ${this.typeName}`}};e.services.push(s),n.add(s);for(const a of t.method){const o=vb(a,s,n);s.methods.push(o),s.method[o.localName]=o}}function vb(t,e,n){var i,r,s,a;let o;t.clientStreaming&&t.serverStreaming?o="bidi_streaming":t.clientStreaming?o="client_streaming":t.serverStreaming?o="server_streaming":o="unary";const c=n.getMessage(ci(t.inputType)),u=n.getMessage(ci(t.outputType));Sn(c,`invalid MethodDescriptorProto: input_type ${t.inputType} not found`),Sn(u,`invalid MethodDescriptorProto: output_type ${t.inputType} not found`);const d=t.name;return{kind:"rpc",proto:t,deprecated:(r=(i=t.options)===null||i===void 0?void 0:i.deprecated)!==null&&r!==void 0?r:!1,parent:e,name:d,localName:Ma(d.length?Ma(d[0].toLowerCase()+d.substring(1)):d),methodKind:o,input:c,output:u,idempotency:(a=(s=t.options)===null||s===void 0?void 0:s.idempotencyLevel)!==null&&a!==void 0?a:mb,toString(){return`rpc ${e.typeName}.${d}`}}}function Cb(t,e){return{kind:"oneof",proto:t,deprecated:!1,parent:e,fields:[],name:t.name,localName:Ma(_l(t.name)),toString(){return`oneof ${e.typeName}.${this.name}`}}}function yd(t,e,n,i,r){var s,a,o;const c=r===void 0,u={kind:"field",proto:t,deprecated:(a=(s=t.options)===null||s===void 0?void 0:s.deprecated)!==null&&a!==void 0?a:!1,name:t.name,number:t.number,scalar:void 0,message:void 0,enum:void 0,presence:Vb(t,i,c,e),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(c){const T=e.kind=="file"?e:e.file,_=e.kind=="file"?void 0:e,b=pc(t,_,T);u.kind="extension",u.file=T,u.parent=_,u.oneof=void 0,u.typeName=b,u.jsonName=`[${b}]`,u.toString=()=>`extension ${b}`;const V=n.getMessage(ci(t.extendee));Sn(V,`invalid FieldDescriptorProto: extendee ${t.extendee} not found`),u.extendee=V}else{const T=e;Sn(T.kind=="message"),u.parent=T,u.oneof=i,u.localName=i?_l(t.name):Ma(_l(t.name)),u.jsonName=t.jsonName,u.toString=()=>`field ${T.typeName}.${t.name}`}const d=t.label,y=t.type,A=(o=t.options)===null||o===void 0?void 0:o.jstype;if(d===p1){const T=y==ka?r==null?void 0:r.get(ci(t.typeName)):void 0;if(T){u.fieldKind="map";const{key:_,value:b}=Nb(T);return u.mapKey=_.scalar,u.mapKind=b.fieldKind,u.message=b.message,u.delimitedEncoding=!1,u.enum=b.enum,u.scalar=b.scalar,u}switch(u.fieldKind="list",y){case ka:case Rl:u.listKind="message",u.message=n.getMessage(ci(t.typeName)),Sn(u.message),u.delimitedEncoding=t0(t,e);break;case zp:u.listKind="enum",u.enum=n.getEnum(ci(t.typeName)),Sn(u.enum);break;default:u.listKind="scalar",u.scalar=y,u.longAsString=A==qp;break}return u.packed=wb(t,e),u}switch(y){case ka:case Rl:u.fieldKind="message",u.message=n.getMessage(ci(t.typeName)),Sn(u.message,`invalid FieldDescriptorProto: type_name ${t.typeName} not found`),u.delimitedEncoding=t0(t,e),u.getDefaultValue=()=>{};break;case zp:{const T=n.getEnum(ci(t.typeName));Sn(T!==void 0,`invalid FieldDescriptorProto: type_name ${t.typeName} not found`),u.fieldKind="enum",u.enum=n.getEnum(ci(t.typeName)),u.getDefaultValue=()=>Ya(t,"defaultValue")?sb(T,t.defaultValue):void 0;break}default:{u.fieldKind="scalar",u.scalar=y,u.longAsString=A==qp,u.getDefaultValue=()=>Ya(t,"defaultValue")?ab(y,t.defaultValue):void 0;break}}return u}function Ab(t){switch(t.syntax){case"":case"proto2":return cb;case"proto3":return ub;case"editions":if(t.edition in Qg)return t.edition;throw new Error(`${t.name}: unsupported edition`);default:throw new Error(`${t.name}: unsupported syntax "${t.syntax}"`)}}function Sb(t,e){return t.dependency.map(n=>{const i=e.getFile(n);if(!i)throw new Error(`Cannot find ${n}, imported by ${t.name}`);return i})}function _b(t,e){const n=Rb(t)+"_";for(const i of e){if(!i.name.toLowerCase().startsWith(n))return;const r=i.name.substring(n.length);if(r.length==0||/^\d/.test(r))return}return n}function Rb(t){return(t.substring(0,1)+t.substring(1).replace(/[A-Z]/g,e=>"_"+e)).toLowerCase()}function pc(t,e,n){let i;return e?i=`${e.typeName}.${t.name}`:n.proto.package.length>0?i=`${n.proto.package}.${t.name}`:i=`${t.name}`,i}function ci(t){return t.startsWith(".")?t.substring(1):t}function Ib(t,e){if(!Ya(t,"oneofIndex")||t.proto3Optional)return;const n=e[t.oneofIndex];return Sn(n,`invalid FieldDescriptorProto: oneof #${t.oneofIndex} for field #${t.number} not found`),n}function Vb(t,e,n,i){return t.label==pb?fb:t.label==p1?gb:e||t.proto3Optional||t.type==ka||n?gu:ys("fieldPresence",{proto:t,parent:i})}function wb(t,e){if(t.label!=p1)return!1;switch(t.type){case db:case hb:case Rl:case ka:return!1}const n=t.options;return n&&Ya(n,"packed")?n.packed:yb==ys("repeatedFieldEncoding",{proto:t,parent:e})}function Nb(t){const e=t.fields.find(i=>i.number===1),n=t.fields.find(i=>i.number===2);return Sn(e&&e.fieldKind=="scalar"&&e.scalar!=z.BYTES&&e.scalar!=z.FLOAT&&e.scalar!=z.DOUBLE&&n&&n.fieldKind!="list"&&n.fieldKind!="map"),{key:e,value:n}}function Ub(t){var e;return Eb==ys("enumType",{proto:t.proto,parent:(e=t.parent)!==null&&e!==void 0?e:t.file})}function t0(t,e){return t.type==Rl?!0:bb==ys("messageEncoding",{proto:t,parent:e})}function ys(t,e){var n,i;const r=(n=e.proto.options)===null||n===void 0?void 0:n.features;if(r){const s=r[t];if(s!=0)return s}if("kind"in e){if(e.kind=="message")return ys(t,(i=e.parent)!==null&&i!==void 0?i:e.file);const s=Qg[e.edition];if(!s)throw new Error(`feature default for edition ${e.edition} not found`);return s[t]}return ys(t,e.parent)}function Sn(t,e){if(!t)throw new Error(e)}function kb(t){const e=xb(t);return e.messageType.forEach(h1),Jg(e,()=>{}).getFile(e.name)}function xb(t){return Object.assign(Object.create({syntax:"",edition:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],service:[],extension:[]},t),{messageType:t.messageType.map(zg),enumType:t.enumType.map(qg)}))}function zg(t){var e,n,i,r,s,a,o,c;return{$typeName:"google.protobuf.DescriptorProto",name:t.name,field:(n=(e=t.field)===null||e===void 0?void 0:e.map(Lb))!==null&&n!==void 0?n:[],extension:[],nestedType:(r=(i=t.nestedType)===null||i===void 0?void 0:i.map(zg))!==null&&r!==void 0?r:[],enumType:(a=(s=t.enumType)===null||s===void 0?void 0:s.map(qg))!==null&&a!==void 0?a:[],extensionRange:(c=(o=t.extensionRange)===null||o===void 0?void 0:o.map(u=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},u)))!==null&&c!==void 0?c:[],oneofDecl:[],reservedRange:[],reservedName:[]}}function Lb(t){return Object.assign(Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},t),{options:t.options?Fb(t.options):void 0}))}function Fb(t){var e,n,i;return Object.assign(Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},t),{targets:(e=t.targets)!==null&&e!==void 0?e:[],editionDefaults:(i=(n=t.editionDefaults)===null||n===void 0?void 0:n.map(s=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},s)))!==null&&i!==void 0?i:[],uninterpretedOption:[]}))}function qg(t){return{$typeName:"google.protobuf.EnumDescriptorProto",name:t.name,reservedName:[],reservedRange:[],value:t.value.map(e=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},e))}}function Bb(t){const e=Zb();let n=t.length*3/4;t[t.length-2]=="="?n-=2:t[t.length-1]=="="&&(n-=1);let i=new Uint8Array(n),r=0,s=0,a,o=0;for(let c=0;c<t.length;c++){if(a=e[t.charCodeAt(c)],a===void 0)switch(t[c]){case"=":s=0;case`
2
- `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string")}switch(s){case 0:o=a,s=1;break;case 1:i[r++]=o<<2|(a&48)>>4,o=a,s=2;break;case 2:i[r++]=(o&15)<<4|(a&60)>>2,o=a,s=3;break;case 3:i[r++]=(o&3)<<6|a,s=0;break}}if(s==1)throw Error("invalid base64 string");return i.subarray(0,r)}let Jo,Mr;function Wb(t){return Jo||(Jo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Jo.slice(0,-2).concat("-","_")),Jo}function Zb(){if(!Mr){Mr=[];const t=Wb();for(let e=0;e<t.length;e++)Mr[t[e].charCodeAt(0)]=e;Mr[45]=t.indexOf("+"),Mr[95]=t.indexOf("/")}return Mr}function ef(t,e){return t!==null&&typeof t=="object"&&"$typeName"in t&&typeof t.$typeName=="string"?e===void 0?!0:e.typeName===t.$typeName:!1}let bs=class extends Error{constructor(e,n,i="FieldValueInvalidError"){super(n),this.name=i,this.field=()=>e}};function Es(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function m1(t,e){var n,i,r,s;if(Es(t)&&yi in t&&"add"in t&&"field"in t&&typeof t.field=="function"){if(e!==void 0){const a=e,o=t.field();return a.listKind==o.listKind&&a.scalar===o.scalar&&((n=a.message)===null||n===void 0?void 0:n.typeName)===((i=o.message)===null||i===void 0?void 0:i.typeName)&&((r=a.enum)===null||r===void 0?void 0:r.typeName)===((s=o.enum)===null||s===void 0?void 0:s.typeName)}return!0}return!1}function g1(t,e){var n,i,r,s;if(Es(t)&&yi in t&&"has"in t&&"field"in t&&typeof t.field=="function"){if(e!==void 0){const a=e,o=t.field();return a.mapKey===o.mapKey&&a.mapKind==o.mapKind&&a.scalar===o.scalar&&((n=a.message)===null||n===void 0?void 0:n.typeName)===((i=o.message)===null||i===void 0?void 0:i.typeName)&&((r=a.enum)===null||r===void 0?void 0:r.typeName)===((s=o.enum)===null||s===void 0?void 0:s.typeName)}return!0}return!1}function f1(t,e){return Es(t)&&yi in t&&"desc"in t&&Es(t.desc)&&t.desc.kind==="message"&&(e===void 0||t.desc.typeName==e.typeName)}const fu=Symbol.for("@bufbuild/protobuf/text-encoding");function tf(){if(globalThis[fu]==null){const t=new globalThis.TextEncoder,e=new globalThis.TextDecoder;globalThis[fu]={encodeUtf8(n){return t.encode(n)},decodeUtf8(n){return e.decode(n)},checkUtf8(n){try{return encodeURIComponent(n),!0}catch{return!1}}}}return globalThis[fu]}var _n;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(_n||(_n={}));const Db=34028234663852886e22,Ob=-34028234663852886e22,Xb=4294967295,Gb=2147483647,Mb=-2147483648;let Pb=class{constructor(e,n=tf().decodeUtf8){this.decodeUtf8=n,this.varint64=J6,this.uint32=$6,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.uint32(),n=e>>>3,i=e&7;if(n<=0||i<0||i>5)throw new Error("illegal tag: field no "+n+" wire type "+i);return[n,i]}skip(e,n){let i=this.pos;switch(e){case _n.Varint:for(;this.buf[this.pos++]&128;);break;case _n.Bit64:this.pos+=4;case _n.Bit32:this.pos+=4;break;case _n.LengthDelimited:let r=this.uint32();this.pos+=r;break;case _n.StartGroup:for(;;){const[s,a]=this.tag();if(a===_n.EndGroup){if(n!==void 0&&s!==n)throw new Error("invalid end group tag");break}this.skip(a,s)}break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(i,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return Tt.dec(...this.varint64())}uint64(){return Tt.uDec(...this.varint64())}sint64(){let[e,n]=this.varint64(),i=-(e&1);return e=(e>>>1|(n&1)<<31)^i,n=n>>>1^i,Tt.dec(e,n)}bool(){let[e,n]=this.varint64();return e!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Tt.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Tt.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),n=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(n,n+e)}string(){return this.decodeUtf8(this.bytes())}};function Yb(t,e){const n=t.fieldKind=="list"?m1(e,t):t.fieldKind=="map"?g1(e,t):y1(t,e);if(n===!0)return;let i;switch(t.fieldKind){case"list":i=`expected ${sf(t)}, got ${Vl(e)}`;break;case"map":i=`expected ${af(t)}, got ${Vl(e)}`;break;default:i=Il(t,e,n)}return new bs(t,i)}function n0(t,e,n){const i=y1(t,n);if(i!==!0)return new bs(t,`list item #${e+1}: ${Il(t,n,i)}`)}function Hb(t,e,n){const i=nf(e,t.mapKey);if(i!==!0)return new bs(t,`invalid map key: ${Il({scalar:t.mapKey},e,i)}`);const r=y1(t,n);if(r!==!0)return new bs(t,`map entry ${Vl(e)}: ${Il(t,n,r)}`)}function y1(t,e){return t.scalar!==void 0?nf(e,t.scalar):t.enum!==void 0?t.enum.open?Number.isInteger(e):t.enum.values.some(n=>n.number===e):f1(e,t.message)}function nf(t,e){switch(e){case z.DOUBLE:return typeof t=="number";case z.FLOAT:return typeof t!="number"?!1:Number.isNaN(t)||!Number.isFinite(t)?!0:t>Db||t<Ob?`${t.toFixed()} out of range`:!0;case z.INT32:case z.SFIXED32:case z.SINT32:return typeof t!="number"||!Number.isInteger(t)?!1:t>Gb||t<Mb?`${t.toFixed()} out of range`:!0;case z.FIXED32:case z.UINT32:return typeof t!="number"||!Number.isInteger(t)?!1:t>Xb||t<0?`${t.toFixed()} out of range`:!0;case z.BOOL:return typeof t=="boolean";case z.STRING:return typeof t!="string"?!1:tf().checkUtf8(t)||"invalid UTF8";case z.BYTES:return t instanceof Uint8Array;case z.INT64:case z.SFIXED64:case z.SINT64:if(typeof t=="bigint"||typeof t=="number"||typeof t=="string"&&t.length>0)try{return Tt.parse(t),!0}catch{return`${t} out of range`}return!1;case z.FIXED64:case z.UINT64:if(typeof t=="bigint"||typeof t=="number"||typeof t=="string"&&t.length>0)try{return Tt.uParse(t),!0}catch{return`${t} out of range`}return!1}}function Il(t,e,n){return n=typeof n=="string"?`: ${n}`:`, got ${Vl(e)}`,t.scalar!==void 0?`expected ${jb(t.scalar)}`+n:t.enum!==void 0?`expected ${t.enum.toString()}`+n:`expected ${rf(t.message)}`+n}function Vl(t){switch(typeof t){case"object":return t===null?"null":t instanceof Uint8Array?`Uint8Array(${t.length})`:Array.isArray(t)?`Array(${t.length})`:m1(t)?sf(t.field()):g1(t)?af(t.field()):f1(t)?rf(t.desc):ef(t)?`message ${t.$typeName}`:"object";case"string":return t.length>30?"string":`"${t.split('"').join('\\"')}"`;case"boolean":return String(t);case"number":return String(t);case"bigint":return String(t)+"n";default:return typeof t}}function rf(t){return`ReflectMessage (${t.typeName})`}function sf(t){switch(t.listKind){case"message":return`ReflectList (${t.message.toString()})`;case"enum":return`ReflectList (${t.enum.toString()})`;case"scalar":return`ReflectList (${z[t.scalar]})`}}function af(t){switch(t.mapKind){case"message":return`ReflectMap (${z[t.mapKey]}, ${t.message.toString()})`;case"enum":return`ReflectMap (${z[t.mapKey]}, ${t.enum.toString()})`;case"scalar":return`ReflectMap (${z[t.mapKey]}, ${z[t.scalar]})`}}function jb(t){switch(t){case z.STRING:return"string";case z.BOOL:return"boolean";case z.INT64:case z.SINT64:case z.SFIXED64:return"bigint (int64)";case z.UINT64:case z.FIXED64:return"bigint (uint64)";case z.BYTES:return"Uint8Array";case z.DOUBLE:return"number (float64)";case z.FLOAT:return"number (float32)";case z.FIXED32:case z.UINT32:return"number (uint32)";case z.INT32:case z.SFIXED32:case z.SINT32:return"number (int32)"}}function Jb(t){return of(t.$typeName)}function Qb(t){const e=t.fields[0];return of(t.typeName)&&e!==void 0&&e.fieldKind=="scalar"&&e.name=="value"&&e.number==1}function of(t){return t.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(t.substring(16))}const Kb=999,$b=998,gl=2;function zb(t,e){return ef(e,t)?e:e7(t)}const qb=Symbol(),i0=new WeakMap;function e7(t){let e;if(t7(t)){const n=i0.get(t);let i,r;if(n)({prototype:i,members:r}=n);else{i={},r=new Set;for(const s of t.members)s.kind!="oneof"&&(s.fieldKind!="scalar"&&s.fieldKind!="enum"||s.presence!=gl&&(r.add(s),i[s.localName]=yu(s)));i0.set(t,{prototype:i,members:r})}e=Object.create(i),e.$typeName=t.typeName;for(const s of t.members)r.has(s)||s.kind=="field"&&(s.fieldKind=="message"||(s.fieldKind=="scalar"||s.fieldKind=="enum")&&s.presence!=gl)||(e[s.localName]=yu(s))}else{e={$typeName:t.typeName};for(const n of t.members)(n.kind=="oneof"||n.presence==gl)&&(e[n.localName]=yu(n))}return e}function t7(t){switch(t.file.edition){case Kb:return!1;case $b:return!0;default:return t.fields.some(e=>e.presence!=gl&&e.fieldKind!="message"&&!e.oneof)}}function yu(t){if(t.kind=="oneof")return{case:void 0};if(t.fieldKind=="list")return[];if(t.fieldKind=="map")return{};if(t.fieldKind=="message")return qb;const e=t.getDefaultValue();return e!==void 0?t.fieldKind=="scalar"&&t.longAsString?e.toString():e:t.fieldKind=="scalar"?Pa(t.scalar,t.longAsString):t.enum.values[0].number}function b1(t,e,n=!0){return new lf(t,e,n)}let lf=class{get sortedFields(){var e;return(e=this._sortedFields)!==null&&e!==void 0?e:this._sortedFields=this.desc.fields.concat().sort((n,i)=>n.number-i.number)}constructor(e,n,i=!0){this.lists=new Map,this.maps=new Map,this.check=i,this.desc=e,this.message=this[yi]=n??zb(e),this.fields=e.fields,this.oneofs=e.oneofs,this.members=e.members}findNumber(e){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map(n=>[n.number,n]))),this._fieldsByNumber.get(e)}oneofCase(e){return ha(this.message,e),eb(this.message,e)}isSet(e){return ha(this.message,e),tb(this.message,e)}clear(e){ha(this.message,e),rb(this.message,e)}get(e){ha(this.message,e);const n=nb(this.message,e);switch(e.fieldKind){case"list":let i=this.lists.get(e);return(!i||i[yi]!==n)&&this.lists.set(e,i=new n7(e,n,this.check)),i;case"map":let r=this.maps.get(e);return(!r||r[yi]!==n)&&this.maps.set(e,r=new i7(e,n,this.check)),r;case"message":return T1(e,n,this.check);case"scalar":return n===void 0?Pa(e.scalar,!1):v1(e,n);case"enum":return n??e.enum.values[0].number}}set(e,n){if(ha(this.message,e),this.check){const r=Yb(e,n);if(r)throw r}let i;e.fieldKind=="message"?i=E1(e,n):g1(n)||m1(n)?i=n[yi]:i=C1(e,n),ib(this.message,e,i)}getUnknown(){return this.message.$unknown}setUnknown(e){this.message.$unknown=e}};function ha(t,e){if(e.parent.typeName!==t.$typeName)throw new bs(e,`cannot use ${e.toString()} with message ${t.$typeName}`,"ForeignFieldError")}let n7=class{field(){return this._field}get size(){return this._arr.length}constructor(e,n,i){this._field=e,this._arr=this[yi]=n,this.check=i}get(e){const n=this._arr[e];return n===void 0?void 0:bu(this._field,n,this.check)}set(e,n){if(e<0||e>=this._arr.length)throw new bs(this._field,`list item #${e+1}: out of range`);if(this.check){const i=n0(this._field,e,n);if(i)throw i}this._arr[e]=r0(this._field,n)}add(e){if(this.check){const n=n0(this._field,this._arr.length,e);if(n)throw n}this._arr.push(r0(this._field,e))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const e of this._arr)yield bu(this._field,e,this.check)}*entries(){for(let e=0;e<this._arr.length;e++)yield[e,bu(this._field,this._arr[e],this.check)]}},i7=class{constructor(e,n,i=!0){this.obj=this[yi]=n??{},this.check=i,this._field=e}field(){return this._field}set(e,n){if(this.check){const i=Hb(this._field,e,n);if(i)throw i}return this.obj[Qo(e)]=r7(this._field,n),this}delete(e){const n=Qo(e),i=Object.prototype.hasOwnProperty.call(this.obj,n);return i&&delete this.obj[n],i}clear(){for(const e of Object.keys(this.obj))delete this.obj[e]}get(e){let n=this.obj[Qo(e)];return n!==void 0&&(n=Eu(this._field,n,this.check)),n}has(e){return Object.prototype.hasOwnProperty.call(this.obj,Qo(e))}*keys(){for(const e of Object.keys(this.obj))yield s0(e,this._field.mapKey)}*entries(){for(const e of Object.entries(this.obj))yield[s0(e[0],this._field.mapKey),Eu(this._field,e[1],this.check)]}[Symbol.iterator](){return this.entries()}get size(){return Object.keys(this.obj).length}*values(){for(const e of Object.values(this.obj))yield Eu(this._field,e,this.check)}forEach(e,n){for(const i of this.entries())e.call(n,i[1],i[0],this)}};function E1(t,e){return f1(e)?Jb(e.message)&&!t.oneof&&t.fieldKind=="message"?e.message.value:e.desc.typeName=="google.protobuf.Struct"&&t.parent.typeName!="google.protobuf.Value"?uf(e.message):e.message:e}function T1(t,e,n){return e!==void 0&&(Qb(t.message)&&!t.oneof&&t.fieldKind=="message"?e={$typeName:t.message.typeName,value:v1(t.message.fields[0],e)}:t.message.typeName=="google.protobuf.Struct"&&t.parent.typeName!="google.protobuf.Value"&&Es(e)&&(e=cf(e))),new lf(t.message,e,n)}function r0(t,e){return t.listKind=="message"?E1(t,e):C1(t,e)}function bu(t,e,n){return t.listKind=="message"?T1(t,e,n):v1(t,e)}function r7(t,e){return t.mapKind=="message"?E1(t,e):C1(t,e)}function Eu(t,e,n){return t.mapKind=="message"?T1(t,e,n):e}function Qo(t){return typeof t=="string"||typeof t=="number"?t:String(t)}function s0(t,e){switch(e){case z.STRING:return t;case z.INT32:case z.FIXED32:case z.UINT32:case z.SFIXED32:case z.SINT32:{const n=Number.parseInt(t);if(Number.isFinite(n))return n;break}case z.BOOL:switch(t){case"true":return!0;case"false":return!1}break;case z.UINT64:case z.FIXED64:try{return Tt.uParse(t)}catch{}break;default:try{return Tt.parse(t)}catch{}break}return t}function v1(t,e){switch(t.scalar){case z.INT64:case z.SFIXED64:case z.SINT64:"longAsString"in t&&t.longAsString&&typeof e=="string"&&(e=Tt.parse(e));break;case z.FIXED64:case z.UINT64:"longAsString"in t&&t.longAsString&&typeof e=="string"&&(e=Tt.uParse(e));break}return e}function C1(t,e){switch(t.scalar){case z.INT64:case z.SFIXED64:case z.SINT64:"longAsString"in t&&t.longAsString?e=String(e):(typeof e=="string"||typeof e=="number")&&(e=Tt.parse(e));break;case z.FIXED64:case z.UINT64:"longAsString"in t&&t.longAsString?e=String(e):(typeof e=="string"||typeof e=="number")&&(e=Tt.uParse(e));break}return e}function cf(t){const e={$typeName:"google.protobuf.Struct",fields:{}};if(Es(t))for(const[n,i]of Object.entries(t))e.fields[n]=hf(i);return e}function uf(t){const e={};for(const[n,i]of Object.entries(t.fields))e[n]=df(i);return e}function df(t){switch(t.kind.case){case"structValue":return uf(t.kind.value);case"listValue":return t.kind.value.values.map(df);case"nullValue":case void 0:return null;default:return t.kind.value}}function hf(t){const e={$typeName:"google.protobuf.Value",kind:{case:void 0}};switch(typeof t){case"number":e.kind={case:"numberValue",value:t};break;case"string":e.kind={case:"stringValue",value:t};break;case"boolean":e.kind={case:"boolValue",value:t};break;case"object":if(t===null)e.kind={case:"nullValue",value:0};else if(Array.isArray(t)){const n={$typeName:"google.protobuf.ListValue",values:[]};if(Array.isArray(t))for(const i of t)n.values.push(hf(i));e.kind={case:"listValue",value:n}}else e.kind={case:"structValue",value:cf(t)};break}return e}function s7(t,e,...n){return n.reduce((i,r)=>i.nestedMessages[r],t.messages[e])}function Ct(t,e,...n){if(n.length==0)return t.enums[e];const i=n.pop();return n.reduce((r,s)=>r.nestedMessages[s],t.messages[e]).nestedEnums[i]}function At(t){const e={};for(const n of t.values)e[n.localName]=n.number,e[n.number]=n.localName;return e}const pf=kb({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}],extensionRange:[{start:536e6,end:536000001}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false"},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false"},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}},{name:"enforce_naming_style",number:7,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnforceNamingStyle",options:{retention:2,targets:[1,2,3,4,5,6,7,8,9],editionDefaults:[{value:"STYLE_LEGACY",edition:900},{value:"STYLE2024",edition:1001}]}}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]},{name:"EnforceNamingStyle",value:[{name:"ENFORCE_NAMING_STYLE_UNKNOWN",number:0},{name:"STYLE2024",number:1},{name:"STYLE_LEGACY",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}],extensionRange:[{start:536e6,end:536000001}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]}]}),a7=s7(pf,1);var a0;(function(t){t[t.DECLARATION=0]="DECLARATION",t[t.UNVERIFIED=1]="UNVERIFIED"})(a0||(a0={}));var o0;(function(t){t[t.DOUBLE=1]="DOUBLE",t[t.FLOAT=2]="FLOAT",t[t.INT64=3]="INT64",t[t.UINT64=4]="UINT64",t[t.INT32=5]="INT32",t[t.FIXED64=6]="FIXED64",t[t.FIXED32=7]="FIXED32",t[t.BOOL=8]="BOOL",t[t.STRING=9]="STRING",t[t.GROUP=10]="GROUP",t[t.MESSAGE=11]="MESSAGE",t[t.BYTES=12]="BYTES",t[t.UINT32=13]="UINT32",t[t.ENUM=14]="ENUM",t[t.SFIXED32=15]="SFIXED32",t[t.SFIXED64=16]="SFIXED64",t[t.SINT32=17]="SINT32",t[t.SINT64=18]="SINT64"})(o0||(o0={}));var l0;(function(t){t[t.OPTIONAL=1]="OPTIONAL",t[t.REPEATED=3]="REPEATED",t[t.REQUIRED=2]="REQUIRED"})(l0||(l0={}));var c0;(function(t){t[t.SPEED=1]="SPEED",t[t.CODE_SIZE=2]="CODE_SIZE",t[t.LITE_RUNTIME=3]="LITE_RUNTIME"})(c0||(c0={}));var u0;(function(t){t[t.STRING=0]="STRING",t[t.CORD=1]="CORD",t[t.STRING_PIECE=2]="STRING_PIECE"})(u0||(u0={}));var d0;(function(t){t[t.JS_NORMAL=0]="JS_NORMAL",t[t.JS_STRING=1]="JS_STRING",t[t.JS_NUMBER=2]="JS_NUMBER"})(d0||(d0={}));var h0;(function(t){t[t.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",t[t.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",t[t.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(h0||(h0={}));var p0;(function(t){t[t.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",t[t.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",t[t.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",t[t.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",t[t.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",t[t.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",t[t.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",t[t.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",t[t.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",t[t.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(p0||(p0={}));var m0;(function(t){t[t.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",t[t.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",t[t.IDEMPOTENT=2]="IDEMPOTENT"})(m0||(m0={}));var g0;(function(t){t[t.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",t[t.EXPLICIT=1]="EXPLICIT",t[t.IMPLICIT=2]="IMPLICIT",t[t.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(g0||(g0={}));var f0;(function(t){t[t.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",t[t.OPEN=1]="OPEN",t[t.CLOSED=2]="CLOSED"})(f0||(f0={}));var y0;(function(t){t[t.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",t[t.PACKED=1]="PACKED",t[t.EXPANDED=2]="EXPANDED"})(y0||(y0={}));var b0;(function(t){t[t.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",t[t.VERIFY=2]="VERIFY",t[t.NONE=3]="NONE"})(b0||(b0={}));var E0;(function(t){t[t.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",t[t.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",t[t.DELIMITED=2]="DELIMITED"})(E0||(E0={}));var T0;(function(t){t[t.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",t[t.ALLOW=1]="ALLOW",t[t.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(T0||(T0={}));var v0;(function(t){t[t.ENFORCE_NAMING_STYLE_UNKNOWN=0]="ENFORCE_NAMING_STYLE_UNKNOWN",t[t.STYLE2024=1]="STYLE2024",t[t.STYLE_LEGACY=2]="STYLE_LEGACY"})(v0||(v0={}));var C0;(function(t){t[t.NONE=0]="NONE",t[t.SET=1]="SET",t[t.ALIAS=2]="ALIAS"})(C0||(C0={}));var A0;(function(t){t[t.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",t[t.EDITION_LEGACY=900]="EDITION_LEGACY",t[t.EDITION_PROTO2=998]="EDITION_PROTO2",t[t.EDITION_PROTO3=999]="EDITION_PROTO3",t[t.EDITION_2023=1e3]="EDITION_2023",t[t.EDITION_2024=1001]="EDITION_2024",t[t.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",t[t.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",t[t.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",t[t.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",t[t.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",t[t.EDITION_MAX=2147483647]="EDITION_MAX"})(A0||(A0={}));const S0={readUnknownFields:!0};function o7(t){return t?Object.assign(Object.assign({},S0),t):S0}function l7(t,e,n){const i=b1(t,void 0,!1);return mf(i,new Pb(e),o7(n),!1,e.byteLength),i.message}function mf(t,e,n,i,r){var s;const a=i?e.len:e.pos+r;let o,c;const u=(s=t.getUnknown())!==null&&s!==void 0?s:[];for(;e.pos<a&&([o,c]=e.tag(),!(i&&c==_n.EndGroup));){const d=t.findNumber(o);if(!d){const y=e.skip(c,o);n.readUnknownFields&&u.push({no:o,wireType:c,data:y});continue}c7(t,e,d,c,n)}if(i&&(c!=_n.EndGroup||o!==r))throw new Error("invalid end group tag");u.length>0&&t.setUnknown(u)}function c7(t,e,n,i,r){switch(n.fieldKind){case"scalar":t.set(n,Ts(e,n.scalar));break;case"enum":t.set(n,Ts(e,z.INT32));break;case"message":t.set(n,A1(e,r,n,t.get(n)));break;case"list":d7(e,i,t.get(n),r);break;case"map":u7(e,t.get(n),r);break}}function u7(t,e,n){const i=e.field();let r,s;const a=t.pos+t.uint32();for(;t.pos<a;){const[o]=t.tag();switch(o){case 1:r=Ts(t,i.mapKey);break;case 2:switch(i.mapKind){case"scalar":s=Ts(t,i.scalar);break;case"enum":s=t.int32();break;case"message":s=A1(t,n,i);break}break}}if(r===void 0&&(r=Pa(i.mapKey,!1)),s===void 0)switch(i.mapKind){case"scalar":s=Pa(i.scalar,!1);break;case"enum":s=i.enum.values[0].number;break;case"message":s=b1(i.message,void 0,!1);break}e.set(r,s)}function d7(t,e,n,i){var r;const s=n.field();if(s.listKind==="message"){n.add(A1(t,i,s));return}const a=(r=s.scalar)!==null&&r!==void 0?r:z.INT32;if(!(e==_n.LengthDelimited&&a!=z.STRING&&a!=z.BYTES)){n.add(Ts(t,a));return}const c=t.uint32()+t.pos;for(;t.pos<c;)n.add(Ts(t,a))}function A1(t,e,n,i){const r=n.delimitedEncoding,s=i??b1(n.message,void 0,!1);return mf(s,t,e,r,r?n.number:t.uint32()),s}function Ts(t,e){switch(e){case z.STRING:return t.string();case z.BOOL:return t.bool();case z.DOUBLE:return t.double();case z.FLOAT:return t.float();case z.INT32:return t.int32();case z.INT64:return t.int64();case z.UINT64:return t.uint64();case z.FIXED64:return t.fixed64();case z.BYTES:return t.bytes();case z.FIXED32:return t.fixed32();case z.SFIXED32:return t.sfixed32();case z.SFIXED64:return t.sfixed64();case z.SINT64:return t.sint64();case z.UINT32:return t.uint32();case z.SINT32:return t.sint32()}}function wi(t,e){var n;const i=l7(a7,Bb(t));return i.messageType.forEach(h1),i.dependency=(n=e==null?void 0:e.map(s=>s.proto.name))!==null&&n!==void 0?n:[],Jg(i,s=>e==null?void 0:e.find(a=>a.proto.name===s)).getFile(i.name)}const gf=wi("Ch9nb29nbGUvcHJvd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Object.create(null);var R0;(function(t){t.ORGANIZATION="ORGANIZATION",t.STREAM="STREAM"})(R0||(R0={}));Cr.BETTING+"",Cr.GAMES+"",Cr.PUBLIC_CHAT+"",Cr.TWITTER+"";var I0;(function(t){t.Ready="ready",t.Suspended="suspended"})(I0||(I0={}));const Yt=new H6;window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));function B7(t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")}let W7=class{constructor(e="main",n=window.localStorage){et(this,"delimiter",":");et(this,"prefix");et(this,"storage");et(this,"clear",()=>{for(const e in window.localStorage)e.startsWith(this.prefix)&&this.storage.removeItem(e)});et(this,"generateKey",e=>`${this.prefix}${this.delimiter}${e.join(this.delimiter)}`);et(this,"write",(...e)=>{const n=e.pop()||"",i=this.generateKey(e);try{this.storage.setItem(i,n)}catch(r){B7(r)&&this.storage===window.sessionStorage&&(window.sessionStorage.removeItem("slstreamlogs"),this.storage.setItem(i,n))}});et(this,"read",(...e)=>{const n=this.storage.getItem(this.generateKey(e));return n===null?void 0:n});et(this,"remove",(...e)=>{this.storage.removeItem(this.generateKey(e))});this.prefix=`sl-sdk${this.delimiter}${e}`,this.storage=n}};var V0;(function(t){t.Init="init",t.Ready="ready",t.Connecting="connecting",t.Connected="connected",t.Disconnected="disconnected",t.Failed="failed",t.Reconnect="reconnect",t.Reconnecting="reconnecting"})(V0||(V0={}));Os("grpc:stream");li.Code.Unknown,li.Code.Internal,li.Code.DeadlineExceeded,li.Code.ResourceExhausted,li.Code.FailedPrecondition,li.Code.Unavailable,li.Code.DataLoss;Os("grpc:retry");li.createContextKey(10,{description:"Number of attempts to retry"}),li.createContextKey(3e4,{description:"Max delay between retries in milliseconds"});var ui;(function(t){t.SCHEMA="schema",t.EXTERNAL_TOKEN="eToken",t.TOKEN="token"})(ui||(ui={}));let Z7=class extends W7{constructor(){super("user");et(this,"setSchema",n=>{this.write(ui.SCHEMA,n)});et(this,"getSchema",()=>this.read(ui.SCHEMA));et(this,"setToken",n=>{this.write(ui.TOKEN,n)});et(this,"getToken",()=>this.read(ui.TOKEN));et(this,"setExternalToken",n=>{this.write(ui.EXTERNAL_TOKEN,n)});et(this,"getExternalToken",()=>this.read(ui.EXTERNAL_TOKEN));et(this,"removeToken",()=>{this.remove(ui.TOKEN)})}};var w0;(function(t){t.DISABLED="disabled",t.INITIALIZATION="initialization",t.READY="ready",t.FAILED="failed",t.SUSPENDED="suspended"})(w0||(w0={}));Os("deep_link");Os("bypass");new Z7;Os("video_player");ie.FACTOID+"",ie.POLL+"",ie.TRIVIA+"",ie.PREDICTION+"",ie.TWEET+"";var N0;(function(t){t.SHOWED="showed",t.EVENT="ev"})(N0||(N0={}));var U0;(function(t){t.ONBOARDING="onboarding",t.ONBOARDING_IO="onboarding_io",t.QUESTION_RECEIVED="q-received",t.QUESTION_OPENED="q-opened"})(U0||(U0={}));var k0;(function(t){t.ALLOWED="allowed",t.DISALLOWED="disallowed"})(k0||(k0={}));var x0;(function(t){t.OPENED="opened"})(x0||(x0={}));var L0;(function(t){t.UNKNOWN="unknown",t.ALREADY_VOTED="already_voted"})(L0||(L0={}));var F0;(function(t){t.Unset="unset",t.Required="required",t.Optional="optional",t.Completed="completed",t.Disabled="disabled",t.Unavailable="unavailable"})(F0||(F0={}));ie.POLL,ie.PREDICTION,ie.TRIVIA;Cr.GAMES+"";const Qe=crypto,qn=t=>t instanceof CryptoKey,D7=async(t,e)=>{const n=`SHA-${t.slice(-3)}`;return new Uint8Array(await Qe.subtle.digest(n,e))},Ji=new TextEncoder,Tf=new TextDecoder,wl=2**32;function ro(...t){const e=t.reduce((r,{length:s})=>r+s,0),n=new Uint8Array(e);let i=0;for(const r of t)n.set(r,i),i+=r.length;return n}function O7(t,e){return ro(Ji.encode(t),new Uint8Array([0]),e)}function Td(t,e,n){if(e<0||e>=wl)throw new RangeError(`value must be >= 0 and <= ${wl-1}. Received ${e}`);t.set([e>>>24,e>>>16,e>>>8,e&255],n)}function X7(t){const e=Math.floor(t/wl),n=t%wl,i=new Uint8Array(8);return Td(i,e,0),Td(i,n,4),i}function _1(t){const e=new Uint8Array(4);return Td(e,t),e}function Tu(t){return ro(_1(t.length),t)}async function G7(t,e,n){const i=Math.ceil((e>>3)/32),r=new Uint8Array(i*32);for(let s=0;s<i;s++){const a=new Uint8Array(4+t.length+n.length);a.set(_1(s+1)),a.set(t,4),a.set(n,4+t.length),r.set(await D7("sha256",a),s*32)}return r.slice(0,e>>3)}const M7=t=>{let e=t;typeof e=="string"&&(e=Ji.encode(e));const n=32768,i=[];for(let r=0;r<e.length;r+=n)i.push(String.fromCharCode.apply(null,e.subarray(r,r+n)));return btoa(i.join(""))},hn=t=>M7(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),P7=t=>{const e=atob(t),n=new Uint8Array(e.length);for(let i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n},gc=t=>{let e=t;e instanceof Uint8Array&&(e=Tf.decode(e)),e=e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return P7(e)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class vf extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var n;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(n=Error.captureStackTrace)==null||n.call(Error,this,this.constructor)}}class Qt extends vf{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class ji extends vf{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}const R1=Qe.getRandomValues.bind(Qe);function Cf(t){switch(t){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new Qt(`Unsupported JWE Algorithm: ${t}`)}}const Y7=t=>R1(new Uint8Array(Cf(t)>>3)),H7=(t,e)=>{if(e.length<<3!==Cf(t))throw new ji("Invalid Initialization Vector length")},B0=(t,e)=>{const n=t.byteLength<<3;if(n!==e)throw new ji(`Invalid Content Encryption Key length. Expected ${e} bits, got ${n} bits`)};function Fi(t,e="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${e} must be ${t}`)}function $o(t,e){return t.name===e}function j7(t){return parseInt(t.name.slice(4),10)}function J7(t,e){if(e.length&&!e.some(n=>t.usages.includes(n))){let n="CryptoKey does not support this operation, its usages must include ";if(e.length>2){const i=e.pop();n+=`one of ${e.join(", ")}, or ${i}.`}else e.length===2?n+=`one of ${e[0]} or ${e[1]}.`:n+=`${e[0]}.`;throw new TypeError(n)}}function vs(t,e,...n){switch(e){case"A128GCM":case"A192GCM":case"A256GCM":{if(!$o(t.algorithm,"AES-GCM"))throw Fi("AES-GCM");const i=parseInt(e.slice(1,4),10);if(t.algorithm.length!==i)throw Fi(i,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!$o(t.algorithm,"AES-KW"))throw Fi("AES-KW");const i=parseInt(e.slice(1,4),10);if(t.algorithm.length!==i)throw Fi(i,"algorithm.length");break}case"ECDH":{switch(t.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw Fi("ECDH, X25519, or X448")}break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!$o(t.algorithm,"PBKDF2"))throw Fi("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!$o(t.algorithm,"RSA-OAEP"))throw Fi("RSA-OAEP");const i=parseInt(e.slice(9),10)||1;if(j7(t.algorithm.hash)!==i)throw Fi(`SHA-${i}`,"algorithm.hash");break}default:throw new TypeError("CryptoKey does not support this operation")}J7(t,n)}function Af(t,e,...n){var i;if(n=n.filter(Boolean),n.length>2){const r=n.pop();t+=`one of type ${n.join(", ")}, or ${r}.`}else n.length===2?t+=`one of type ${n[0]} or ${n[1]}.`:t+=`of type ${n[0]}.`;return e==null?t+=` Received ${e}`:typeof e=="function"&&e.name?t+=` Received function ${e.name}`:typeof e=="object"&&e!=null&&(i=e.constructor)!=null&&i.name&&(t+=` Received an instance of ${e.constructor.name}`),t}const ei=(t,...e)=>Af("Key must be ",t,...e);function Sf(t,e,...n){return Af(`Key for the ${t} algorithm must be `,e,...n)}const _f=t=>qn(t)?!0:(t==null?void 0:t[Symbol.toStringTag])==="KeyObject",Un=["CryptoKey"],Q7=(...t)=>{const e=t.filter(Boolean);if(e.length===0||e.length===1)return!0;let n;for(const i of e){const r=Object.keys(i);if(!n||n.size===0){n=new Set(r);continue}for(const s of r){if(n.has(s))return!1;n.add(s)}}return!0};function K7(t){return typeof t=="object"&&t!==null}function I1(t){if(!K7(t)||Object.prototype.toString.call(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}const Rf=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function $7(t,e){if(t.algorithm.length!==parseInt(e.slice(1,4),10))throw new TypeError(`Invalid key size for alg: ${e}`)}function z7(t,e,n){if(qn(t))return vs(t,e,n),t;if(t instanceof Uint8Array)return Qe.subtle.importKey("raw",t,"AES-KW",!0,[n]);throw new TypeError(ei(t,...Un,"Uint8Array"))}const vd=async(t,e,n)=>{const i=await z7(e,t,"wrapKey");$7(i,t);const r=await Qe.subtle.importKey("raw",n,...Rf);return new Uint8Array(await Qe.subtle.wrapKey("raw",r,i,"AES-KW"))};async function q7(t,e,n,i,r=new Uint8Array(0),s=new Uint8Array(0)){if(!qn(t))throw new TypeError(ei(t,...Un));if(vs(t,"ECDH"),!qn(e))throw new TypeError(ei(e,...Un));vs(e,"ECDH","deriveBits");const a=ro(Tu(Ji.encode(n)),Tu(r),Tu(s),_1(i));let o;t.algorithm.name==="X25519"?o=256:t.algorithm.name==="X448"?o=448:o=Math.ceil(parseInt(t.algorithm.namedCurve.substr(-3),10)/8)<<3;const c=new Uint8Array(await Qe.subtle.deriveBits({name:t.algorithm.name,public:t},e,o));return G7(c,i,a)}async function eE(t){if(!qn(t))throw new TypeError(ei(t,...Un));return Qe.subtle.generateKey(t.algorithm,!0,["deriveBits"])}function tE(t){if(!qn(t))throw new TypeError(ei(t,...Un));return["P-256","P-384","P-521"].includes(t.algorithm.namedCurve)||t.algorithm.name==="X25519"||t.algorithm.name==="X448"}function nE(t){if(!(t instanceof Uint8Array)||t.length<8)throw new ji("PBES2 Salt Input must be 8 or more octets")}function iE(t,e){if(t instanceof Uint8Array)return Qe.subtle.importKey("raw",t,"PBKDF2",!1,["deriveBits"]);if(qn(t))return vs(t,e,"deriveBits","deriveKey"),t;throw new TypeError(ei(t,...Un,"Uint8Array"))}async function rE(t,e,n,i){nE(t);const r=O7(e,t),s=parseInt(e.slice(13,16),10),a={hash:`SHA-${e.slice(8,11)}`,iterations:n,name:"PBKDF2",salt:r},o={length:s,name:"AES-KW"},c=await iE(i,e);if(c.usages.includes("deriveBits"))return new Uint8Array(await Qe.subtle.deriveBits(a,c,s));if(c.usages.includes("deriveKey"))return Qe.subtle.deriveKey(a,c,o,!1,["wrapKey","unwrapKey"]);throw new TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}const sE=async(t,e,n,i=2048,r=R1(new Uint8Array(16)))=>{const s=await rE(r,t,i,e);return{encryptedKey:await vd(t.slice(-6),s,n),p2c:i,p2s:hn(r)}};function W0(t){switch(t){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new Qt(`alg ${t} is not supported either by JOSE or your javascript runtime`)}}const aE=(t,e)=>{if(t.startsWith("RS")||t.startsWith("PS")){const{modulusLength:n}=e.algorithm;if(typeof n!="number"||n<2048)throw new TypeError(`${t} requires key modulusLength to be 2048 bits or larger`)}},oE=async(t,e,n)=>{if(!qn(e))throw new TypeError(ei(e,...Un));if(vs(e,t,"encrypt","wrapKey"),aE(t,e),e.usages.includes("encrypt"))return new Uint8Array(await Qe.subtle.encrypt(W0(t),e,n));if(e.usages.includes("wrapKey")){const i=await Qe.subtle.importKey("raw",n,...Rf);return new Uint8Array(await Qe.subtle.wrapKey("raw",i,e,W0(t)))}throw new TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')};function so(t){return I1(t)&&typeof t.kty=="string"}function lE(t){return t.kty!=="oct"&&typeof t.d=="string"}function cE(t){return t.kty!=="oct"&&typeof t.d>"u"}function uE(t){return so(t)&&t.kty==="oct"&&typeof t.k=="string"}function dE(t){let e,n;switch(t.kty){case"RSA":{switch(t.alg){case"PS256":case"PS384":case"PS512":e={name:"RSA-PSS",hash:`SHA-${t.alg.slice(-3)}`},n=t.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":e={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${t.alg.slice(-3)}`},n=t.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":e={name:"RSA-OAEP",hash:`SHA-${parseInt(t.alg.slice(-3),10)||1}`},n=t.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new Qt('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(t.alg){case"ES256":e={name:"ECDSA",namedCurve:"P-256"},n=t.d?["sign"]:["verify"];break;case"ES384":e={name:"ECDSA",namedCurve:"P-384"},n=t.d?["sign"]:["verify"];break;case"ES512":e={name:"ECDSA",namedCurve:"P-521"},n=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":e={name:"ECDH",namedCurve:t.crv},n=t.d?["deriveBits"]:[];break;default:throw new Qt('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(t.alg){case"EdDSA":e={name:t.crv},n=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":e={name:t.crv},n=t.d?["deriveBits"]:[];break;default:throw new Qt('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new Qt('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:e,keyUsages:n}}const If=async t=>{if(!t.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:e,keyUsages:n}=dE(t),i=[e,t.ext??!1,t.key_ops??n],r={...t};return delete r.alg,delete r.use,Qe.subtle.importKey("jwk",r,...i)},Vf=t=>gc(t);let Pr,Yr;const wf=t=>(t==null?void 0:t[Symbol.toStringTag])==="KeyObject",Nl=async(t,e,n,i,r=!1)=>{let s=t.get(e);if(s!=null&&s[i])return s[i];const a=await If({...n,alg:i});return r&&Object.freeze(e),s?s[i]=a:t.set(e,{[i]:a}),a},hE=(t,e)=>{if(wf(t)){let n=t.export({format:"jwk"});return delete n.d,delete n.dp,delete n.dq,delete n.p,delete n.q,delete n.qi,n.k?Vf(n.k):(Yr||(Yr=new WeakMap),Nl(Yr,t,n,e))}return so(t)?t.k?gc(t.k):(Yr||(Yr=new WeakMap),Nl(Yr,t,t,e,!0)):t},pE=(t,e)=>{if(wf(t)){let n=t.export({format:"jwk"});return n.k?Vf(n.k):(Pr||(Pr=new WeakMap),Nl(Pr,t,n,e))}return so(t)?t.k?gc(t.k):(Pr||(Pr=new WeakMap),Nl(Pr,t,t,e,!0)):t},vu={normalizePublicKey:hE,normalizePrivateKey:pE};function Nf(t){switch(t){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new Qt(`Unsupported JWE Algorithm: ${t}`)}}const ma=t=>R1(new Uint8Array(Nf(t)>>3));async function mE(t,e){if(!I1(t))throw new TypeError("JWK must be an object");switch(e||(e=t.alg),t.kty){case"oct":if(typeof t.k!="string"||!t.k)throw new TypeError('missing "k" (Key Value) Parameter value');return gc(t.k);case"RSA":if(t.oth!==void 0)throw new Qt('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return If({...t,alg:e});default:throw new Qt('Unsupported "kty" (Key Type) Parameter value')}}const ts=t=>t==null?void 0:t[Symbol.toStringTag],Cd=(t,e,n)=>{var i,r;if(e.use!==void 0&&e.use!=="sig")throw new TypeError("Invalid key for this operation, when present its use must be sig");if(e.key_ops!==void 0&&((r=(i=e.key_ops).includes)==null?void 0:r.call(i,n))!==!0)throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${n}`);if(e.alg!==void 0&&e.alg!==t)throw new TypeError(`Invalid key for this operation, when present its alg must be ${t}`);return!0},gE=(t,e,n,i)=>{if(!(e instanceof Uint8Array)){if(i&&so(e)){if(uE(e)&&Cd(t,e,n))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!_f(e))throw new TypeError(Sf(t,e,...Un,"Uint8Array",i?"JSON Web Key":null));if(e.type!=="secret")throw new TypeError(`${ts(e)} instances for symmetric algorithms must be of type "secret"`)}},fE=(t,e,n,i)=>{if(i&&so(e))switch(n){case"sign":if(lE(e)&&Cd(t,e,n))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(cE(e)&&Cd(t,e,n))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!_f(e))throw new TypeError(Sf(t,e,...Un,i?"JSON Web Key":null));if(e.type==="secret")throw new TypeError(`${ts(e)} instances for asymmetric algorithms must not be of type "secret"`);if(n==="sign"&&e.type==="public")throw new TypeError(`${ts(e)} instances for asymmetric algorithm signing must be of type "private"`);if(n==="decrypt"&&e.type==="public")throw new TypeError(`${ts(e)} instances for asymmetric algorithm decryption must be of type "private"`);if(e.algorithm&&n==="verify"&&e.type==="private")throw new TypeError(`${ts(e)} instances for asymmetric algorithm verifying must be of type "public"`);if(e.algorithm&&n==="encrypt"&&e.type==="private")throw new TypeError(`${ts(e)} instances for asymmetric algorithm encryption must be of type "public"`)};function Uf(t,e,n,i){e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?gE(e,n,i,t):fE(e,n,i,t)}const yE=Uf.bind(void 0,!1);Uf.bind(void 0,!0);async function bE(t,e,n,i,r){if(!(n instanceof Uint8Array))throw new TypeError(ei(n,"Uint8Array"));const s=parseInt(t.slice(1,4),10),a=await Qe.subtle.importKey("raw",n.subarray(s>>3),"AES-CBC",!1,["encrypt"]),o=await Qe.subtle.importKey("raw",n.subarray(0,s>>3),{hash:`SHA-${s<<1}`,name:"HMAC"},!1,["sign"]),c=new Uint8Array(await Qe.subtle.encrypt({iv:i,name:"AES-CBC"},a,e)),u=ro(r,i,c,X7(r.length<<3)),d=new Uint8Array((await Qe.subtle.sign("HMAC",o,u)).slice(0,s>>3));return{ciphertext:c,tag:d,iv:i}}async function EE(t,e,n,i,r){let s;n instanceof Uint8Array?s=await Qe.subtle.importKey("raw",n,"AES-GCM",!1,["encrypt"]):(vs(n,t,"encrypt"),s=n);const a=new Uint8Array(await Qe.subtle.encrypt({additionalData:r,iv:i,name:"AES-GCM",tagLength:128},s,e)),o=a.slice(-16);return{ciphertext:a.slice(0,-16),tag:o,iv:i}}const kf=async(t,e,n,i,r)=>{if(!qn(n)&&!(n instanceof Uint8Array))throw new TypeError(ei(n,...Un,"Uint8Array"));switch(i?H7(t,i):i=Y7(t),t){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return n instanceof Uint8Array&&B0(n,parseInt(t.slice(-3),10)),bE(t,e,n,i,r);case"A128GCM":case"A192GCM":case"A256GCM":return n instanceof Uint8Array&&B0(n,parseInt(t.slice(1,4),10)),EE(t,e,n,i,r);default:throw new Qt("Unsupported JWE Content Encryption Algorithm")}};async function TE(t,e,n,i){const r=t.slice(0,7),s=await kf(r,n,e,i,new Uint8Array(0));return{encryptedKey:s.ciphertext,iv:hn(s.iv),tag:hn(s.tag)}}function vE(t,e,n,i,r){if(r.crit!==void 0&&(i==null?void 0:i.crit)===void 0)throw new t('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||i.crit===void 0)return new Set;if(!Array.isArray(i.crit)||i.crit.length===0||i.crit.some(a=>typeof a!="string"||a.length===0))throw new t('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let s;n!==void 0?s=new Map([...Object.entries(n),...e.entries()]):s=e;for(const a of i.crit){if(!s.has(a))throw new Qt(`Extension Header Parameter "${a}" is not recognized`);if(r[a]===void 0)throw new t(`Extension Header Parameter "${a}" is missing`);if(s.get(a)&&i[a]===void 0)throw new t(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(i.crit)}const CE=Symbol(),AE=async t=>{if(t instanceof Uint8Array)return{kty:"oct",k:hn(t)};if(!qn(t))throw new TypeError(ei(t,...Un,"Uint8Array"));if(!t.extractable)throw new TypeError("non-extractable CryptoKey cannot be exported as a JWK");const{ext:e,key_ops:n,alg:i,use:r,...s}=await Qe.subtle.exportKey("jwk",t);return s};async function SE(t){return AE(t)}async function _E(t,e,n,i,r={}){var c;let s,a,o;switch(yE(t,n,"encrypt"),n=await((c=vu.normalizePublicKey)==null?void 0:c.call(vu,n,t))||n,t){case"dir":{o=n;break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!tE(n))throw new Qt("ECDH with the provided key is not allowed or not supported by your javascript runtime");const{apu:u,apv:d}=r;let{epk:y}=r;y||(y=(await eE(n)).privateKey);const{x:A,y:T,crv:_,kty:b}=await SE(y),V=await q7(n,y,t==="ECDH-ES"?e:t,t==="ECDH-ES"?Nf(e):parseInt(t.slice(-5,-2),10),u,d);if(a={epk:{x:A,crv:_,kty:b}},b==="EC"&&(a.epk.y=T),u&&(a.apu=hn(u)),d&&(a.apv=hn(d)),t==="ECDH-ES"){o=V;break}o=i||ma(e);const w=t.slice(-6);s=await vd(w,V,o);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{o=i||ma(e),s=await oE(t,n,o);break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{o=i||ma(e);const{p2c:u,p2s:d}=r;({encryptedKey:s,...a}=await sE(t,n,o,u,d));break}case"A128KW":case"A192KW":case"A256KW":{o=i||ma(e),s=await vd(t,n,o);break}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{o=i||ma(e);const{iv:u}=r;({encryptedKey:s,...a}=await TE(t,n,o,u));break}default:throw new Qt('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:o,encryptedKey:s,parameters:a}}class RE{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw new TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw new TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw new TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw new TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,n){if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new ji("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!Q7(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new ji("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");const i={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(vE(ji,new Map,n==null?void 0:n.crit,this._protectedHeader,i),i.zip!==void 0)throw new Qt('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');const{alg:r,enc:s}=i;if(typeof r!="string"||!r)throw new ji('JWE "alg" (Algorithm) Header Parameter missing or invalid');if(typeof s!="string"||!s)throw new ji('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');let a;if(this._cek&&(r==="dir"||r==="ECDH-ES"))throw new TypeError(`setContentEncryptionKey cannot be called with JWE "alg" (Algorithm) Header ${r}`);let o;{let b;({cek:o,encryptedKey:a,parameters:b}=await _E(r,s,e,this._cek,this._keyManagementParameters)),b&&(n&&CE in n?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...b}:this.setUnprotectedHeader(b):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...b}:this.setProtectedHeader(b))}let c,u,d;this._protectedHeader?u=Ji.encode(hn(JSON.stringify(this._protectedHeader))):u=Ji.encode(""),this._aad?(d=hn(this._aad),c=ro(u,Ji.encode("."),Ji.encode(d))):c=u;const{ciphertext:y,tag:A,iv:T}=await kf(s,this._plaintext,o,this._iv,c),_={ciphertext:hn(y)};return T&&(_.iv=hn(T)),A&&(_.tag=hn(A)),a&&(_.encrypted_key=hn(a)),d&&(_.aad=d),this._protectedHeader&&(_.protected=Tf.decode(u)),this._sharedUnprotectedHeader&&(_.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(_.header=this._unprotectedHeader),_}}const dr=t=>Math.floor(t.getTime()/1e3),xf=60,Lf=xf*60,V1=Lf*24,IE=V1*7,VE=V1*365.25,wE=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,Cu=t=>{const e=wE.exec(t);if(!e||e[4]&&e[1])throw new TypeError("Invalid time period format");const n=parseFloat(e[2]),i=e[3].toLowerCase();let r;switch(i){case"sec":case"secs":case"second":case"seconds":case"s":r=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":r=Math.round(n*xf);break;case"hour":case"hours":case"hr":case"hrs":case"h":r=Math.round(n*Lf);break;case"day":case"days":case"d":r=Math.round(n*V1);break;case"week":case"weeks":case"w":r=Math.round(n*IE);break;default:r=Math.round(n*VE);break}return e[1]==="-"||e[4]==="ago"?-r:r};class NE{constructor(e){this._flattened=new RE(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}async encrypt(e,n){const i=await this._flattened.encrypt(e,n);return[i.protected,i.encrypted_key,i.iv,i.ciphertext,i.tag].join(".")}}function hr(t,e){if(!Number.isFinite(e))throw new TypeError(`Invalid ${t} input`);return e}class UE{constructor(e={}){if(!I1(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return typeof e=="number"?this._payload={...this._payload,nbf:hr("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:hr("setNotBefore",dr(e))}:this._payload={...this._payload,nbf:dr(new Date)+Cu(e)},this}setExpirationTime(e){return typeof e=="number"?this._payload={...this._payload,exp:hr("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:hr("setExpirationTime",dr(e))}:this._payload={...this._payload,exp:dr(new Date)+Cu(e)},this}setIssuedAt(e){return typeof e>"u"?this._payload={...this._payload,iat:dr(new Date)}:e instanceof Date?this._payload={...this._payload,iat:hr("setIssuedAt",dr(e))}:typeof e=="string"?this._payload={...this._payload,iat:hr("setIssuedAt",dr(new Date)+Cu(e))}:this._payload={...this._payload,iat:hr("setIssuedAt",e)},this}}class kE extends UE{setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setKeyManagementParameters(e){if(this._keyManagementParameters)throw new TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setContentEncryptionKey(e){if(this._cek)throw new TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw new TypeError("setInitializationVector can only be called once");return this._iv=e,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(e,n){const i=new NE(Ji.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),i.setProtectedHeader(this._protectedHeader),this._iv&&i.setInitializationVector(this._iv),this._cek&&i.setContentEncryptionKey(this._cek),this._keyManagementParameters&&i.setKeyManagementParameters(this._keyManagementParameters),i.encrypt(e,n)}}var xE=Object.defineProperty,LE=(t,e,n)=>e in t?xE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Wt=(t,e,n)=>LE(t,typeof e!="symbol"?e+"":e,n);function FE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ff={exports:{}},st=Ff.exports={},On,Xn;function Ad(){throw new Error("setTimeout has not been defined")}function Sd(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?On=setTimeout:On=Ad}catch{On=Ad}try{typeof clearTimeout=="function"?Xn=clearTimeout:Xn=Sd}catch{Xn=Sd}})();function Bf(t){if(On===setTimeout)return setTimeout(t,0);if((On===Ad||!On)&&setTimeout)return On=setTimeout,setTimeout(t,0);try{return On(t,0)}catch{try{return On.call(null,t,0)}catch{return On.call(this,t,0)}}}function BE(t){if(Xn===clearTimeout)return clearTimeout(t);if((Xn===Sd||!Xn)&&clearTimeout)return Xn=clearTimeout,clearTimeout(t);try{return Xn(t)}catch{try{return Xn.call(null,t)}catch{return Xn.call(this,t)}}}var bi=[],os=!1,Ar,fl=-1;function WE(){!os||!Ar||(os=!1,Ar.length?bi=Ar.concat(bi):fl=-1,bi.length&&Wf())}function Wf(){if(!os){var t=Bf(WE);os=!0;for(var e=bi.length;e;){for(Ar=bi,bi=[];++fl<e;)Ar&&Ar[fl].run();fl=-1,e=bi.length}Ar=null,os=!1,BE(t)}}st.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];bi.push(new Zf(t,e)),bi.length===1&&!os&&Bf(Wf)};function Zf(t,e){this.fun=t,this.array=e}Zf.prototype.run=function(){this.fun.apply(null,this.array)};st.title="browser";st.browser=!0;st.env={};st.argv=[];st.version="";st.versions={};function Ni(){}st.on=Ni;st.addListener=Ni;st.once=Ni;st.off=Ni;st.removeListener=Ni;st.removeAllListeners=Ni;st.emit=Ni;st.prependListener=Ni;st.prependOnceListener=Ni;st.listeners=function(t){return[]};st.binding=function(t){throw new Error("process.binding is not supported")};st.cwd=function(){return"/"};st.chdir=function(t){throw new Error("process.chdir is not supported")};st.umask=function(){return 0};var ZE=Ff.exports;const Au=FE(ZE);var w1={exports:{}};function DE(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}var OE=XE;function XE(t,e,n){var i=n&&n.stringify||DE,r=1;if(typeof t=="object"&&t!==null){var s=e.length+r;if(s===1)return t;var a=new Array(s);a[0]=i(t);for(var o=1;o<s;o++)a[o]=i(e[o]);return a.join(" ")}if(typeof t!="string")return t;var c=e.length;if(c===0)return t;for(var u="",d=1-r,y=-1,A=t&&t.length||0,T=0;T<A;){if(t.charCodeAt(T)===37&&T+1<A){switch(y=y>-1?y:0,t.charCodeAt(T+1)){case 100:case 102:if(d>=c||e[d]==null)break;y<T&&(u+=t.slice(y,T)),u+=Number(e[d]),y=T+2,T++;break;case 105:if(d>=c||e[d]==null)break;y<T&&(u+=t.slice(y,T)),u+=Math.floor(Number(e[d])),y=T+2,T++;break;case 79:case 111:case 106:if(d>=c||e[d]===void 0)break;y<T&&(u+=t.slice(y,T));var _=typeof e[d];if(_==="string"){u+="'"+e[d]+"'",y=T+2,T++;break}if(_==="function"){u+=e[d].name||"<anonymous>",y=T+2,T++;break}u+=i(e[d]),y=T+2,T++;break;case 115:if(d>=c)break;y<T&&(u+=t.slice(y,T)),u+=String(e[d]),y=T+2,T++;break;case 37:y<T&&(u+=t.slice(y,T)),u+="%",y=T+2,T++,d--;break}++d}++T}return y===-1?t:(y<A&&(u+=t.slice(y)),u)}const Z0=OE;w1.exports=Ai;const Ha=nT().console||{},GE={mapHttpRequest:zo,mapHttpResponse:zo,wrapRequestSerializer:Su,wrapResponseSerializer:Su,wrapErrorSerializer:Su,req:zo,res:zo,err:O0,errWithCause:O0};function Ul(t,e){return t==="silent"?1/0:e.levels.values[t]}const N1=Symbol("pino.logFuncs"),_d=Symbol("pino.hierarchy"),ME={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function D0(t,e){const n={logger:e,parent:t[_d]};e[_d]=n}function PE(t,e,n){const i={};e.forEach(r=>{i[r]=n[r]?n[r]:Ha[r]||Ha[ME[r]||"log"]||ls}),t[N1]=i}function YE(t,e){return Array.isArray(t)?t.filter(function(i){return i!=="!stdSerializers.err"}):t===!0?Object.keys(e):!1}function Ai(t){t=t||{},t.browser=t.browser||{};const e=t.browser.transmit;if(e&&typeof e.send!="function")throw Error("pino: transmit option must have a send function");const n=t.browser.write||Ha;t.browser.write&&(t.browser.asObject=!0);const i=t.serializers||{},r=YE(t.browser.serialize,i);let s=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(s=!1);const a=Object.keys(t.customLevels||{}),o=["error","fatal","warn","info","debug","trace"].concat(a);typeof n=="function"&&o.forEach(function(b){n[b]=n}),(t.enabled===!1||t.browser.disabled)&&(t.level="silent");const c=t.level||"info",u=Object.create(n);u.log||(u.log=ls),PE(u,o,n),D0({},u),Object.defineProperty(u,"levelVal",{get:y}),Object.defineProperty(u,"level",{get:A,set:T});const d={transmit:e,serialize:r,asObject:t.browser.asObject,formatters:t.browser.formatters,levels:o,timestamp:qE(t),messageKey:t.messageKey||"msg",onChild:t.onChild||ls};u.levels=HE(t),u.level=c,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=ls,u.serializers=i,u._serialize=r,u._stdErrSerialize=s,u.child=function(...b){return _.call(this,d,...b)},e&&(u._logEvent=Rd());function y(){return Ul(this.level,this)}function A(){return this._level}function T(b){if(b!=="silent"&&!this.levels.values[b])throw Error("unknown level "+b);this._level=b,pr(this,d,u,"error"),pr(this,d,u,"fatal"),pr(this,d,u,"warn"),pr(this,d,u,"info"),pr(this,d,u,"debug"),pr(this,d,u,"trace"),a.forEach(V=>{pr(this,d,u,V)})}function _(b,V,w){if(!V)throw new Error("missing bindings for child Pino");w=w||{},r&&V.serializers&&(w.serializers=V.serializers);const W=w.serializers;if(r&&W){var B=Object.assign({},i,W),Z=t.browser.serialize===!0?Object.keys(B):r;delete V.serializers,U1([V],Z,B,this._stdErrSerialize)}function L(J){this._childLevel=(J._childLevel|0)+1,this.bindings=V,B&&(this.serializers=B,this._serialize=Z),e&&(this._logEvent=Rd([].concat(J._logEvent.bindings,V)))}L.prototype=this;const X=new L(this);return D0(this,X),X.child=function(...J){return _.call(this,b,...J)},X.level=w.level||this.level,b.onChild(X),X}return u}function HE(t){const e=t.customLevels||{},n=Object.assign({},Ai.levels.values,e),i=Object.assign({},Ai.levels.labels,jE(e));return{values:n,labels:i}}function jE(t){const e={};return Object.keys(t).forEach(function(n){e[t[n]]=n}),e}Ai.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Ai.stdSerializers=GE;Ai.stdTimeFunctions=Object.assign({},{nullTime:Df,epochTime:Of,unixTime:eT,isoTime:tT});function JE(t){const e=[];t.bindings&&e.push(t.bindings);let n=t[_d];for(;n.parent;)n=n.parent,n.logger.bindings&&e.push(n.logger.bindings);return e.reverse()}function pr(t,e,n,i){if(Object.defineProperty(t,i,{value:Ul(t.level,n)>Ul(i,n)?ls:n[N1][i],writable:!0,enumerable:!0,configurable:!0}),t[i]===ls){if(!e.transmit)return;const s=e.transmit.level||t.level,a=n.levels.values[s];if(n.levels.values[i]<a)return}t[i]=KE(t,e,n,i);const r=JE(t);r.length!==0&&(t[i]=QE(r,t[i]))}function QE(t,e){return function(){return e.apply(this,[...t,...arguments])}}function KE(t,e,n,i){return function(r){return function(){const a=e.timestamp(),o=new Array(arguments.length),c=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Ha?Ha:this;for(var u=0;u<o.length;u++)o[u]=arguments[u];var d=!1;if(e.serialize&&(U1(o,this._serialize,this.serializers,this._stdErrSerialize),d=!0),e.asObject||e.formatters?r.call(c,$E(this,i,o,a,e)):r.apply(c,o),e.transmit){const y=e.transmit.level||t._level,A=n.levels.values[y],T=n.levels.values[i];if(T<A)return;zE(this,{ts:a,methodLevel:i,methodValue:T,transmitLevel:y,transmitValue:n.levels.values[e.transmit.level||t._level],send:e.transmit.send,val:Ul(t._level,n)},o,d)}}}(t[N1][i])}function $E(t,e,n,i,r){const{level:s,log:a=A=>A}=r.formatters||{},o=n.slice();let c=o[0];const u={};if(i&&(u.time=i),s){const A=s(e,t.levels.values[e]);Object.assign(u,A)}else u.level=t.levels.values[e];let d=(t._childLevel|0)+1;if(d<1&&(d=1),c!==null&&typeof c=="object"){for(;d--&&typeof o[0]=="object";)Object.assign(u,o.shift());c=o.length?Z0(o.shift(),o):void 0}else typeof c=="string"&&(c=Z0(o.shift(),o));return c!==void 0&&(u[r.messageKey]=c),a(u)}function U1(t,e,n,i){for(const r in t)if(i&&t[r]instanceof Error)t[r]=Ai.stdSerializers.err(t[r]);else if(typeof t[r]=="object"&&!Array.isArray(t[r])&&e)for(const s in t[r])e.indexOf(s)>-1&&s in n&&(t[r][s]=n[s](t[r][s]))}function zE(t,e,n,i=!1){const r=e.send,s=e.ts,a=e.methodLevel,o=e.methodValue,c=e.val,u=t._logEvent.bindings;i||U1(n,t._serialize||Object.keys(t.serializers),t.serializers,t._stdErrSerialize===void 0?!0:t._stdErrSerialize),t._logEvent.ts=s,t._logEvent.messages=n.filter(function(d){return u.indexOf(d)===-1}),t._logEvent.level.label=a,t._logEvent.level.value=o,r(a,t._logEvent,c),t._logEvent=Rd(u)}function Rd(t){return{ts:0,messages:[],bindings:t||[],level:{label:"",value:0}}}function O0(t){const e={type:t.constructor.name,msg:t.message,stack:t.stack};for(const n in t)e[n]===void 0&&(e[n]=t[n]);return e}function qE(t){return typeof t.timestamp=="function"?t.timestamp:t.timestamp===!1?Df:Of}function zo(){return{}}function Su(t){return t}function ls(){}function Df(){return!1}function Of(){return Date.now()}function eT(){return Math.round(Date.now()/1e3)}function tT(){return new Date(Date.now()).toISOString()}function nT(){function t(e){return typeof e<"u"&&e}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return t(self)||t(window)||t(this)||{}}}w1.exports.default=Ai;var iT=w1.exports.pino=Ai;const rT=iT({level:"trace",enabled:typeof window<"u"&&!!window.localStorage.getItem("SL_DEBUG"),browser:{write:t=>{console.log(t)}}}),ao=(t,e)=>rT.child({name:t},e);ao("event-bus");function kl(t){let e=!1;const n=[];for(let i=0;i<t.length;i++){let r=t.charAt(i);switch(r){case"_":e=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(r),e=!1;break;default:e&&(e=!1,r=r.toUpperCase()),n.push(r);break}}return n.join("")}const sT=new Set(["constructor","toString","toJSON","valueOf"]);function ja(t){return sT.has(t)?t+"$":t}function aT(){let t=0,e=0;for(let i=0;i<28;i+=7){let r=this.buf[this.pos++];if(t|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}let n=this.buf[this.pos++];if(t|=(n&15)<<28,e=(n&112)>>4,!(n&128))return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}const yl=4294967296;function X0(t){const e=t[0]==="-";e&&(t=t.slice(1));const n=1e6;let i=0,r=0;function s(a,o){const c=Number(t.slice(a,o));r*=n,i=i*n+c,i>=yl&&(r=r+(i/yl|0),i=i%yl)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),e?Gf(i,r):k1(i,r)}function oT(t,e){let n=k1(t,e);const i=n.hi&2147483648;i&&(n=Gf(n.lo,n.hi));const r=Xf(n.lo,n.hi);return i?"-"+r:r}function Xf(t,e){if({lo:t,hi:e}=lT(t,e),e<=2097151)return String(yl*e+t);const n=t&16777215,i=(t>>>24|e<<8)&16777215,r=e>>16&65535;let s=n+i*6777216+r*6710656,a=i+r*8147497,o=r*2;const c=1e7;return s>=c&&(a+=Math.floor(s/c),s%=c),a>=c&&(o+=Math.floor(a/c),a%=c),o.toString()+G0(a)+G0(s)}function lT(t,e){return{lo:t>>>0,hi:e>>>0}}function k1(t,e){return{lo:t|0,hi:e|0}}function Gf(t,e){return e=~e,t?t=~t+1:e+=1,k1(t,e)}const G0=t=>{const e=String(t);return"0000000".slice(e.length)+e};function cT(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let n=5;t&128&&n<10;n++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}const vt=uT();function uT(){const t=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"&&(typeof Au!="object"||typeof Au.env!="object"||Au.env.BUF_BIGINT_DISABLE!=="1")){const n=BigInt("-9223372036854775808"),i=BigInt("9223372036854775807"),r=BigInt("0"),s=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(a){const o=typeof a=="bigint"?a:BigInt(a);if(o>i||o<n)throw new Error(`invalid int64: ${a}`);return o},uParse(a){const o=typeof a=="bigint"?a:BigInt(a);if(o>s||o<r)throw new Error(`invalid uint64: ${a}`);return o},enc(a){return t.setBigInt64(0,this.parse(a),!0),{lo:t.getInt32(0,!0),hi:t.getInt32(4,!0)}},uEnc(a){return t.setBigInt64(0,this.uParse(a),!0),{lo:t.getInt32(0,!0),hi:t.getInt32(4,!0)}},dec(a,o){return t.setInt32(0,a,!0),t.setInt32(4,o,!0),t.getBigInt64(0,!0)},uDec(a,o){return t.setInt32(0,a,!0),t.setInt32(4,o,!0),t.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(n){return typeof n!="string"&&(n=n.toString()),M0(n),n},uParse(n){return typeof n!="string"&&(n=n.toString()),P0(n),n},enc(n){return typeof n!="string"&&(n=n.toString()),M0(n),X0(n)},uEnc(n){return typeof n!="string"&&(n=n.toString()),P0(n),X0(n)},dec(n,i){return oT(n,i)},uDec(n,i){return Xf(n,i)}}}function M0(t){if(!/^-?[0-9]+$/.test(t))throw new Error("invalid int64: "+t)}function P0(t){if(!/^[0-9]+$/.test(t))throw new Error("invalid uint64: "+t)}var q;(function(t){t[t.DOUBLE=1]="DOUBLE",t[t.FLOAT=2]="FLOAT",t[t.INT64=3]="INT64",t[t.UINT64=4]="UINT64",t[t.INT32=5]="INT32",t[t.FIXED64=6]="FIXED64",t[t.FIXED32=7]="FIXED32",t[t.BOOL=8]="BOOL",t[t.STRING=9]="STRING",t[t.BYTES=12]="BYTES",t[t.UINT32=13]="UINT32",t[t.SFIXED32=15]="SFIXED32",t[t.SFIXED64=16]="SFIXED64",t[t.SINT32=17]="SINT32",t[t.SINT64=18]="SINT64"})(q||(q={}));function Ja(t,e){switch(t){case q.STRING:return"";case q.BOOL:return!1;default:return 0;case q.DOUBLE:case q.FLOAT:return 0;case q.INT64:case q.UINT64:case q.SFIXED64:case q.FIXED64:case q.SINT64:return e?"0":vt.zero;case q.BYTES:return new Uint8Array(0)}}function dT(t,e){switch(t){case q.BOOL:return e===!1;case q.STRING:return e==="";case q.BYTES:return e instanceof Uint8Array&&!e.byteLength;default:return e==0}}const Mf=2,Ei=Symbol.for("reflect unsafe local");function hT(t,e){const n=t[e.localName].case;return n===void 0?n:e.fields.find(i=>i.localName===n)}function pT(t,e){const n=e.localName;if(e.oneof)return t[e.oneof.localName].case===n;if(e.presence!=Mf)return t[n]!==void 0&&Object.prototype.hasOwnProperty.call(t,n);switch(e.fieldKind){case"list":return t[n].length>0;case"map":return Object.keys(t[n]).length>0;case"scalar":return!dT(e.scalar,t[n]);case"enum":return t[n]!==e.enum.values[0].number}throw new Error("message field with implicit presence")}function Qa(t,e){return Object.prototype.hasOwnProperty.call(t,e)&&t[e]!==void 0}function mT(t,e){if(e.oneof){const n=t[e.oneof.localName];return n.case===e.localName?n.value:void 0}return t[e.localName]}function gT(t,e,n){e.oneof?t[e.oneof.localName]={case:e.localName,value:n}:t[e.localName]=n}function fT(t,e){const n=e.localName;if(e.oneof){const i=e.oneof.localName;t[i].case===n&&(t[i]={case:void 0})}else if(e.presence!=Mf)delete t[n];else switch(e.fieldKind){case"map":t[n]={};break;case"list":t[n]=[];break;case"enum":t[n]=e.enum.values[0].number;break;case"scalar":t[n]=Ja(e.scalar,e.longAsString);break}}function x1(t){for(const e of t.field)Qa(e,"jsonName")||(e.jsonName=kl(e.name));t.nestedType.forEach(x1)}function yT(t,e){const n=t.values.find(i=>i.name===e);if(!n)throw new Error(`cannot parse ${t} default value: ${e}`);return n.number}function bT(t,e){switch(t){case q.STRING:return e;case q.BYTES:{const n=ET(e);if(n===!1)throw new Error(`cannot parse ${q[t]} default value: ${e}`);return n}case q.INT64:case q.SFIXED64:case q.SINT64:return vt.parse(e);case q.UINT64:case q.FIXED64:return vt.uParse(e);case q.DOUBLE:case q.FLOAT:switch(e){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(e)}case q.BOOL:return e==="true";case q.INT32:case q.UINT32:case q.SINT32:case q.FIXED32:case q.SFIXED32:return parseInt(e,10)}}function ET(t){const e=[],n={tail:t,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(i){if(this.tail.length>=i){const r=this.tail.substring(0,i);return this.tail=this.tail.substring(i),r}return!1}};for(;n.next();)switch(n.c){case"\\":if(n.next())switch(n.c){case"\\":e.push(n.c.charCodeAt(0));break;case"b":e.push(8);break;case"f":e.push(12);break;case"n":e.push(10);break;case"r":e.push(13);break;case"t":e.push(9);break;case"v":e.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const i=n.c,r=n.take(2);if(r===!1)return!1;const s=parseInt(i+r,8);if(isNaN(s))return!1;e.push(s);break}case"x":{const i=n.c,r=n.take(2);if(r===!1)return!1;const s=parseInt(i+r,16);if(isNaN(s))return!1;e.push(s);break}case"u":{const i=n.c,r=n.take(4);if(r===!1)return!1;const s=parseInt(i+r,16);if(isNaN(s))return!1;const a=new Uint8Array(4);new DataView(a.buffer).setInt32(0,s,!0),e.push(a[0],a[1],a[2],a[3]);break}case"U":{const i=n.c,r=n.take(8);if(r===!1)return!1;const s=vt.uEnc(i+r),a=new Uint8Array(8),o=new DataView(a.buffer);o.setInt32(0,s.lo,!0),o.setInt32(4,s.hi,!0),e.push(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]);break}}break;default:e.push(n.c.charCodeAt(0))}return new Uint8Array(e)}function*Id(t){switch(t.kind){case"file":for(const e of t.messages)yield e,yield*Id(e);yield*t.enums,yield*t.services,yield*t.extensions;break;case"message":for(const e of t.nestedMessages)yield e,yield*Id(e);yield*t.nestedEnums,yield*t.nestedExtensions;break}}function Pf(...t){const e=TT();if(!t.length)return e;if("$typeName"in t[0]&&t[0].$typeName=="google.protobuf.FileDescriptorSet"){for(const n of t[0].file)j0(n,e);return e}if("$typeName"in t[0]){let n=function(a){const o=[];for(const c of a.dependency){if(e.getFile(c)!=null||s.has(c))continue;const u=r(c);if(!u)throw new Error(`Unable to resolve ${c}, imported by ${a.name}`);"kind"in u?e.addFile(u,!1,!0):(s.add(u.name),o.push(u))}return o.concat(...o.map(n))};const i=t[0],r=t[1],s=new Set;for(const a of[i,...n(i)].reverse())j0(a,e)}else for(const n of t)for(const i of n.files)e.addFile(i);return e}function TT(){const t=new Map,e=new Map,n=new Map;return{kind:"registry",types:t,extendees:e,[Symbol.iterator](){return t.values()},get files(){return n.values()},addFile(i,r,s){if(n.set(i.proto.name,i),!r)for(const a of Id(i))this.add(a);if(s)for(const a of i.dependencies)this.addFile(a,r,s)},add(i){if(i.kind=="extension"){let r=e.get(i.extendee.typeName);r||e.set(i.extendee.typeName,r=new Map),r.set(i.number,i)}t.set(i.typeName,i)},get(i){return t.get(i)},getFile(i){return n.get(i)},getMessage(i){const r=t.get(i);return(r==null?void 0:r.kind)=="message"?r:void 0},getEnum(i){const r=t.get(i);return(r==null?void 0:r.kind)=="enum"?r:void 0},getExtension(i){const r=t.get(i);return(r==null?void 0:r.kind)=="extension"?r:void 0},getExtensionFor(i,r){var s;return(s=e.get(i.typeName))===null||s===void 0?void 0:s.get(r)},getService(i){const r=t.get(i);return(r==null?void 0:r.kind)=="service"?r:void 0}}}const vT=998,CT=999,AT=9,xl=10,La=11,ST=12,Y0=14,L1=3,_T=2,H0=1,RT=0,_u=1,IT=2,VT=3,wT=1,NT=2,UT=1,Yf={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2,enforceNamingStyle:2},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2}};function j0(t,e){var n,i;const r={kind:"file",proto:t,deprecated:(i=(n=t.options)===null||n===void 0?void 0:n.deprecated)!==null&&i!==void 0?i:!1,edition:FT(t),name:t.name.replace(/\.proto$/,""),dependencies:BT(t,e),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${t.name}`}},s=new Map,a={get(o){return s.get(o)},add(o){var c;Rn(((c=o.proto.options)===null||c===void 0?void 0:c.mapEntry)===!0),s.set(o.typeName,o)}};for(const o of t.enumType)Hf(o,r,void 0,e);for(const o of t.messageType)jf(o,r,void 0,e,a);for(const o of t.service)kT(o,r,e);Vd(r,e);for(const o of s.values())wd(o,e,a);for(const o of r.messages)wd(o,e,a),Vd(o,e);e.addFile(r,!0)}function Vd(t,e){switch(t.kind){case"file":for(const n of t.proto.extension){const i=Nd(n,t,e);t.extensions.push(i),e.add(i)}break;case"message":for(const n of t.proto.extension){const i=Nd(n,t,e);t.nestedExtensions.push(i),e.add(i)}for(const n of t.nestedMessages)Vd(n,e);break}}function wd(t,e,n){const i=t.proto.oneofDecl.map(s=>LT(s,t)),r=new Set;for(const s of t.proto.field){const a=DT(s,i),o=Nd(s,t,e,a,n);t.fields.push(o),t.field[o.localName]=o,a===void 0?t.members.push(o):(a.fields.push(o),r.has(a)||(r.add(a),t.members.push(a)))}for(const s of i.filter(a=>r.has(a)))t.oneofs.push(s);for(const s of t.nestedMessages)wd(s,e,n)}function Hf(t,e,n,i){var r,s,a;const o=WT(t.name,t.value),c={kind:"enum",proto:t,deprecated:(s=(r=t.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,file:e,parent:n,open:!0,name:t.name,typeName:fc(t,n,e),value:{},values:[],sharedPrefix:o,toString(){return`enum ${this.typeName}`}};c.open=MT(c),i.add(c),t.value.forEach(u=>{var d,y;const A=u.name;c.values.push(c.value[u.number]={kind:"enum_value",proto:u,deprecated:(y=(d=u.options)===null||d===void 0?void 0:d.deprecated)!==null&&y!==void 0?y:!1,parent:c,name:A,localName:ja(o==null?A:A.substring(o.length)),number:u.number,toString(){return`enum value ${c.typeName}.${A}`}})}),((a=n==null?void 0:n.nestedEnums)!==null&&a!==void 0?a:e.enums).push(c)}function jf(t,e,n,i,r){var s,a,o,c;const u={kind:"message",proto:t,deprecated:(a=(s=t.options)===null||s===void 0?void 0:s.deprecated)!==null&&a!==void 0?a:!1,file:e,parent:n,name:t.name,typeName:fc(t,n,e),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};((o=t.options)===null||o===void 0?void 0:o.mapEntry)===!0?r.add(u):(((c=n==null?void 0:n.nestedMessages)!==null&&c!==void 0?c:e.messages).push(u),i.add(u));for(const d of t.enumType)Hf(d,e,u,i);for(const d of t.nestedType)jf(d,e,u,i,r)}function kT(t,e,n){var i,r;const s={kind:"service",proto:t,deprecated:(r=(i=t.options)===null||i===void 0?void 0:i.deprecated)!==null&&r!==void 0?r:!1,file:e,name:t.name,typeName:fc(t,void 0,e),methods:[],method:{},toString(){return`service ${this.typeName}`}};e.services.push(s),n.add(s);for(const a of t.method){const o=xT(a,s,n);s.methods.push(o),s.method[o.localName]=o}}function xT(t,e,n){var i,r,s,a;let o;t.clientStreaming&&t.serverStreaming?o="bidi_streaming":t.clientStreaming?o="client_streaming":t.serverStreaming?o="server_streaming":o="unary";const c=n.getMessage(di(t.inputType)),u=n.getMessage(di(t.outputType));Rn(c,`invalid MethodDescriptorProto: input_type ${t.inputType} not found`),Rn(u,`invalid MethodDescriptorProto: output_type ${t.inputType} not found`);const d=t.name;return{kind:"rpc",proto:t,deprecated:(r=(i=t.options)===null||i===void 0?void 0:i.deprecated)!==null&&r!==void 0?r:!1,parent:e,name:d,localName:ja(d.length?ja(d[0].toLowerCase()+d.substring(1)):d),methodKind:o,input:c,output:u,idempotency:(a=(s=t.options)===null||s===void 0?void 0:s.idempotencyLevel)!==null&&a!==void 0?a:RT,toString(){return`rpc ${e.typeName}.${d}`}}}function LT(t,e){return{kind:"oneof",proto:t,deprecated:!1,parent:e,fields:[],name:t.name,localName:ja(kl(t.name)),toString(){return`oneof ${e.typeName}.${this.name}`}}}function Nd(t,e,n,i,r){var s,a,o;const c=r===void 0,u={kind:"field",proto:t,deprecated:(a=(s=t.options)===null||s===void 0?void 0:s.deprecated)!==null&&a!==void 0?a:!1,name:t.name,number:t.number,scalar:void 0,message:void 0,enum:void 0,presence:OT(t,i,c,e),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(c){const T=e.kind=="file"?e:e.file,_=e.kind=="file"?void 0:e,b=fc(t,_,T);u.kind="extension",u.file=T,u.parent=_,u.oneof=void 0,u.typeName=b,u.jsonName=`[${b}]`,u.toString=()=>`extension ${b}`;const V=n.getMessage(di(t.extendee));Rn(V,`invalid FieldDescriptorProto: extendee ${t.extendee} not found`),u.extendee=V}else{const T=e;Rn(T.kind=="message"),u.parent=T,u.oneof=i,u.localName=i?kl(t.name):ja(kl(t.name)),u.jsonName=t.jsonName,u.toString=()=>`field ${T.typeName}.${t.name}`}const d=t.label,y=t.type,A=(o=t.options)===null||o===void 0?void 0:o.jstype;if(d===L1){const T=y==La?r==null?void 0:r.get(di(t.typeName)):void 0;if(T){u.fieldKind="map";const{key:_,value:b}=GT(T);return u.mapKey=_.scalar,u.mapKind=b.fieldKind,u.message=b.message,u.delimitedEncoding=!1,u.enum=b.enum,u.scalar=b.scalar,u}switch(u.fieldKind="list",y){case La:case xl:u.listKind="message",u.message=n.getMessage(di(t.typeName)),Rn(u.message),u.delimitedEncoding=J0(t,e);break;case Y0:u.listKind="enum",u.enum=n.getEnum(di(t.typeName)),Rn(u.enum);break;default:u.listKind="scalar",u.scalar=y,u.longAsString=A==H0;break}return u.packed=XT(t,e),u}switch(y){case La:case xl:u.fieldKind="message",u.message=n.getMessage(di(t.typeName)),Rn(u.message,`invalid FieldDescriptorProto: type_name ${t.typeName} not found`),u.delimitedEncoding=J0(t,e),u.getDefaultValue=()=>{};break;case Y0:{const T=n.getEnum(di(t.typeName));Rn(T!==void 0,`invalid FieldDescriptorProto: type_name ${t.typeName} not found`),u.fieldKind="enum",u.enum=n.getEnum(di(t.typeName)),u.getDefaultValue=()=>Qa(t,"defaultValue")?yT(T,t.defaultValue):void 0;break}default:{u.fieldKind="scalar",u.scalar=y,u.longAsString=A==H0,u.getDefaultValue=()=>Qa(t,"defaultValue")?bT(y,t.defaultValue):void 0;break}}return u}function FT(t){switch(t.syntax){case"":case"proto2":return vT;case"proto3":return CT;case"editions":if(t.edition in Yf)return t.edition;throw new Error(`${t.name}: unsupported edition`);default:throw new Error(`${t.name}: unsupported syntax "${t.syntax}"`)}}function BT(t,e){return t.dependency.map(n=>{const i=e.getFile(n);if(!i)throw new Error(`Cannot find ${n}, imported by ${t.name}`);return i})}function WT(t,e){const n=ZT(t)+"_";for(const i of e){if(!i.name.toLowerCase().startsWith(n))return;const r=i.name.substring(n.length);if(r.length==0||/^\d/.test(r))return}return n}function ZT(t){return(t.substring(0,1)+t.substring(1).replace(/[A-Z]/g,e=>"_"+e)).toLowerCase()}function fc(t,e,n){let i;return e?i=`${e.typeName}.${t.name}`:n.proto.package.length>0?i=`${n.proto.package}.${t.name}`:i=`${t.name}`,i}function di(t){return t.startsWith(".")?t.substring(1):t}function DT(t,e){if(!Qa(t,"oneofIndex")||t.proto3Optional)return;const n=e[t.oneofIndex];return Rn(n,`invalid FieldDescriptorProto: oneof #${t.oneofIndex} for field #${t.number} not found`),n}function OT(t,e,n,i){return t.label==_T?VT:t.label==L1?IT:e||t.proto3Optional||t.type==La||n?_u:Cs("fieldPresence",{proto:t,parent:i})}function XT(t,e){if(t.label!=L1)return!1;switch(t.type){case AT:case ST:case xl:case La:return!1}const n=t.options;return n&&Qa(n,"packed")?n.packed:wT==Cs("repeatedFieldEncoding",{proto:t,parent:e})}function GT(t){const e=t.fields.find(i=>i.number===1),n=t.fields.find(i=>i.number===2);return Rn(e&&e.fieldKind=="scalar"&&e.scalar!=q.BYTES&&e.scalar!=q.FLOAT&&e.scalar!=q.DOUBLE&&n&&n.fieldKind!="list"&&n.fieldKind!="map"),{key:e,value:n}}function MT(t){var e;return UT==Cs("enumType",{proto:t.proto,parent:(e=t.parent)!==null&&e!==void 0?e:t.file})}function J0(t,e){return t.type==xl?!0:NT==Cs("messageEncoding",{proto:t,parent:e})}function Cs(t,e){var n,i;const r=(n=e.proto.options)===null||n===void 0?void 0:n.features;if(r){const s=r[t];if(s!=0)return s}if("kind"in e){if(e.kind=="message")return Cs(t,(i=e.parent)!==null&&i!==void 0?i:e.file);const s=Yf[e.edition];if(!s)throw new Error(`feature default for edition ${e.edition} not found`);return s[t]}return Cs(t,e.parent)}function Rn(t,e){if(!t)throw new Error(e)}function PT(t){const e=YT(t);return e.messageType.forEach(x1),Pf(e,()=>{}).getFile(e.name)}function YT(t){return Object.assign(Object.create({syntax:"",edition:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],service:[],extension:[]},t),{messageType:t.messageType.map(Jf),enumType:t.enumType.map(Qf)}))}function Jf(t){var e,n,i,r,s,a,o,c;return{$typeName:"google.protobuf.DescriptorProto",name:t.name,field:(n=(e=t.field)===null||e===void 0?void 0:e.map(HT))!==null&&n!==void 0?n:[],extension:[],nestedType:(r=(i=t.nestedType)===null||i===void 0?void 0:i.map(Jf))!==null&&r!==void 0?r:[],enumType:(a=(s=t.enumType)===null||s===void 0?void 0:s.map(Qf))!==null&&a!==void 0?a:[],extensionRange:(c=(o=t.extensionRange)===null||o===void 0?void 0:o.map(u=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},u)))!==null&&c!==void 0?c:[],oneofDecl:[],reservedRange:[],reservedName:[]}}function HT(t){return Object.assign(Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},t),{options:t.options?jT(t.options):void 0}))}function jT(t){var e,n,i;return Object.assign(Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},t),{targets:(e=t.targets)!==null&&e!==void 0?e:[],editionDefaults:(i=(n=t.editionDefaults)===null||n===void 0?void 0:n.map(s=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},s)))!==null&&i!==void 0?i:[],uninterpretedOption:[]}))}function Qf(t){return{$typeName:"google.protobuf.EnumDescriptorProto",name:t.name,reservedName:[],reservedRange:[],value:t.value.map(e=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},e))}}function JT(t){const e=KT();let n=t.length*3/4;t[t.length-2]=="="?n-=2:t[t.length-1]=="="&&(n-=1);let i=new Uint8Array(n),r=0,s=0,a,o=0;for(let c=0;c<t.length;c++){if(a=e[t.charCodeAt(c)],a===void 0)switch(t[c]){case"=":s=0;case`
3
- `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string")}switch(s){case 0:o=a,s=1;break;case 1:i[r++]=o<<2|(a&48)>>4,o=a,s=2;break;case 2:i[r++]=(o&15)<<4|(a&60)>>2,o=a,s=3;break;case 3:i[r++]=(o&3)<<6|a,s=0;break}}if(s==1)throw Error("invalid base64 string");return i.subarray(0,r)}let qo,Hr;function QT(t){return qo||(qo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),qo.slice(0,-2).concat("-","_")),qo}function KT(){if(!Hr){Hr=[];const t=QT();for(let e=0;e<t.length;e++)Hr[t[e].charCodeAt(0)]=e;Hr[45]=t.indexOf("+"),Hr[95]=t.indexOf("/")}return Hr}function Kf(t,e){return t!==null&&typeof t=="object"&&"$typeName"in t&&typeof t.$typeName=="string"?e===void 0?!0:e.typeName===t.$typeName:!1}class As extends Error{constructor(e,n,i="FieldValueInvalidError"){super(n),this.name=i,this.field=()=>e}}function Ss(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function F1(t,e){var n,i,r,s;if(Ss(t)&&Ei in t&&"add"in t&&"field"in t&&typeof t.field=="function"){if(e!==void 0){const a=e,o=t.field();return a.listKind==o.listKind&&a.scalar===o.scalar&&((n=a.message)===null||n===void 0?void 0:n.typeName)===((i=o.message)===null||i===void 0?void 0:i.typeName)&&((r=a.enum)===null||r===void 0?void 0:r.typeName)===((s=o.enum)===null||s===void 0?void 0:s.typeName)}return!0}return!1}function B1(t,e){var n,i,r,s;if(Ss(t)&&Ei in t&&"has"in t&&"field"in t&&typeof t.field=="function"){if(e!==void 0){const a=e,o=t.field();return a.mapKey===o.mapKey&&a.mapKind==o.mapKind&&a.scalar===o.scalar&&((n=a.message)===null||n===void 0?void 0:n.typeName)===((i=o.message)===null||i===void 0?void 0:i.typeName)&&((r=a.enum)===null||r===void 0?void 0:r.typeName)===((s=o.enum)===null||s===void 0?void 0:s.typeName)}return!0}return!1}function W1(t,e){return Ss(t)&&Ei in t&&"desc"in t&&Ss(t.desc)&&t.desc.kind==="message"&&(e===void 0||t.desc.typeName==e.typeName)}const Ru=Symbol.for("@bufbuild/protobuf/text-encoding");function $f(){if(globalThis[Ru]==null){const t=new globalThis.TextEncoder,e=new globalThis.TextDecoder;globalThis[Ru]={encodeUtf8(n){return t.encode(n)},decodeUtf8(n){return e.decode(n)},checkUtf8(n){try{return encodeURIComponent(n),!0}catch{return!1}}}}return globalThis[Ru]}var In;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(In||(In={}));const $T=34028234663852886e22,zT=-34028234663852886e22,qT=4294967295,ev=2147483647,tv=-2147483648;class nv{constructor(e,n=$f().decodeUtf8){this.decodeUtf8=n,this.varint64=aT,this.uint32=cT,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.uint32(),n=e>>>3,i=e&7;if(n<=0||i<0||i>5)throw new Error("illegal tag: field no "+n+" wire type "+i);return[n,i]}skip(e,n){let i=this.pos;switch(e){case In.Varint:for(;this.buf[this.pos++]&128;);break;case In.Bit64:this.pos+=4;case In.Bit32:this.pos+=4;break;case In.LengthDelimited:let r=this.uint32();this.pos+=r;break;case In.StartGroup:for(;;){const[s,a]=this.tag();if(a===In.EndGroup){if(n!==void 0&&s!==n)throw new Error("invalid end group tag");break}this.skip(a,s)}break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(i,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return vt.dec(...this.varint64())}uint64(){return vt.uDec(...this.varint64())}sint64(){let[e,n]=this.varint64(),i=-(e&1);return e=(e>>>1|(n&1)<<31)^i,n=n>>>1^i,vt.dec(e,n)}bool(){let[e,n]=this.varint64();return e!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return vt.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return vt.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),n=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(n,n+e)}string(){return this.decodeUtf8(this.bytes())}}function iv(t,e){const n=t.fieldKind=="list"?F1(e,t):t.fieldKind=="map"?B1(e,t):Z1(t,e);if(n===!0)return;let i;switch(t.fieldKind){case"list":i=`expected ${e3(t)}, got ${Fl(e)}`;break;case"map":i=`expected ${t3(t)}, got ${Fl(e)}`;break;default:i=Ll(t,e,n)}return new As(t,i)}function Q0(t,e,n){const i=Z1(t,n);if(i!==!0)return new As(t,`list item #${e+1}: ${Ll(t,n,i)}`)}function rv(t,e,n){const i=zf(e,t.mapKey);if(i!==!0)return new As(t,`invalid map key: ${Ll({scalar:t.mapKey},e,i)}`);const r=Z1(t,n);if(r!==!0)return new As(t,`map entry ${Fl(e)}: ${Ll(t,n,r)}`)}function Z1(t,e){return t.scalar!==void 0?zf(e,t.scalar):t.enum!==void 0?t.enum.open?Number.isInteger(e):t.enum.values.some(n=>n.number===e):W1(e,t.message)}function zf(t,e){switch(e){case q.DOUBLE:return typeof t=="number";case q.FLOAT:return typeof t!="number"?!1:Number.isNaN(t)||!Number.isFinite(t)?!0:t>$T||t<zT?`${t.toFixed()} out of range`:!0;case q.INT32:case q.SFIXED32:case q.SINT32:return typeof t!="number"||!Number.isInteger(t)?!1:t>ev||t<tv?`${t.toFixed()} out of range`:!0;case q.FIXED32:case q.UINT32:return typeof t!="number"||!Number.isInteger(t)?!1:t>qT||t<0?`${t.toFixed()} out of range`:!0;case q.BOOL:return typeof t=="boolean";case q.STRING:return typeof t!="string"?!1:$f().checkUtf8(t)||"invalid UTF8";case q.BYTES:return t instanceof Uint8Array;case q.INT64:case q.SFIXED64:case q.SINT64:if(typeof t=="bigint"||typeof t=="number"||typeof t=="string"&&t.length>0)try{return vt.parse(t),!0}catch{return`${t} out of range`}return!1;case q.FIXED64:case q.UINT64:if(typeof t=="bigint"||typeof t=="number"||typeof t=="string"&&t.length>0)try{return vt.uParse(t),!0}catch{return`${t} out of range`}return!1}}function Ll(t,e,n){return n=typeof n=="string"?`: ${n}`:`, got ${Fl(e)}`,t.scalar!==void 0?`expected ${sv(t.scalar)}`+n:t.enum!==void 0?`expected ${t.enum.toString()}`+n:`expected ${qf(t.message)}`+n}function Fl(t){switch(typeof t){case"object":return t===null?"null":t instanceof Uint8Array?`Uint8Array(${t.length})`:Array.isArray(t)?`Array(${t.length})`:F1(t)?e3(t.field()):B1(t)?t3(t.field()):W1(t)?qf(t.desc):Kf(t)?`message ${t.$typeName}`:"object";case"string":return t.length>30?"string":`"${t.split('"').join('\\"')}"`;case"boolean":return String(t);case"number":return String(t);case"bigint":return String(t)+"n";default:return typeof t}}function qf(t){return`ReflectMessage (${t.typeName})`}function e3(t){switch(t.listKind){case"message":return`ReflectList (${t.message.toString()})`;case"enum":return`ReflectList (${t.enum.toString()})`;case"scalar":return`ReflectList (${q[t.scalar]})`}}function t3(t){switch(t.mapKind){case"message":return`ReflectMap (${q[t.mapKey]}, ${t.message.toString()})`;case"enum":return`ReflectMap (${q[t.mapKey]}, ${t.enum.toString()})`;case"scalar":return`ReflectMap (${q[t.mapKey]}, ${q[t.scalar]})`}}function sv(t){switch(t){case q.STRING:return"string";case q.BOOL:return"boolean";case q.INT64:case q.SINT64:case q.SFIXED64:return"bigint (int64)";case q.UINT64:case q.FIXED64:return"bigint (uint64)";case q.BYTES:return"Uint8Array";case q.DOUBLE:return"number (float64)";case q.FLOAT:return"number (float32)";case q.FIXED32:case q.UINT32:return"number (uint32)";case q.INT32:case q.SFIXED32:case q.SINT32:return"number (int32)"}}function av(t){return n3(t.$typeName)}function ov(t){const e=t.fields[0];return n3(t.typeName)&&e!==void 0&&e.fieldKind=="scalar"&&e.name=="value"&&e.number==1}function n3(t){return t.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(t.substring(16))}const lv=999,cv=998,bl=2;function uv(t,e){return Kf(e,t)?e:hv(t)}const dv=Symbol(),K0=new WeakMap;function hv(t){let e;if(pv(t)){const n=K0.get(t);let i,r;if(n)({prototype:i,members:r}=n);else{i={},r=new Set;for(const s of t.members)s.kind!="oneof"&&(s.fieldKind!="scalar"&&s.fieldKind!="enum"||s.presence!=bl&&(r.add(s),i[s.localName]=Iu(s)));K0.set(t,{prototype:i,members:r})}e=Object.create(i),e.$typeName=t.typeName;for(const s of t.members)r.has(s)||s.kind=="field"&&(s.fieldKind=="message"||(s.fieldKind=="scalar"||s.fieldKind=="enum")&&s.presence!=bl)||(e[s.localName]=Iu(s))}else{e={$typeName:t.typeName};for(const n of t.members)(n.kind=="oneof"||n.presence==bl)&&(e[n.localName]=Iu(n))}return e}function pv(t){switch(t.file.edition){case lv:return!1;case cv:return!0;default:return t.fields.some(e=>e.presence!=bl&&e.fieldKind!="message"&&!e.oneof)}}function Iu(t){if(t.kind=="oneof")return{case:void 0};if(t.fieldKind=="list")return[];if(t.fieldKind=="map")return{};if(t.fieldKind=="message")return dv;const e=t.getDefaultValue();return e!==void 0?t.fieldKind=="scalar"&&t.longAsString?e.toString():e:t.fieldKind=="scalar"?Ja(t.scalar,t.longAsString):t.enum.values[0].number}function D1(t,e,n=!0){return new i3(t,e,n)}class i3{get sortedFields(){var e;return(e=this._sortedFields)!==null&&e!==void 0?e:this._sortedFields=this.desc.fields.concat().sort((n,i)=>n.number-i.number)}constructor(e,n,i=!0){this.lists=new Map,this.maps=new Map,this.check=i,this.desc=e,this.message=this[Ei]=n??uv(e),this.fields=e.fields,this.oneofs=e.oneofs,this.members=e.members}findNumber(e){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map(n=>[n.number,n]))),this._fieldsByNumber.get(e)}oneofCase(e){return ga(this.message,e),hT(this.message,e)}isSet(e){return ga(this.message,e),pT(this.message,e)}clear(e){ga(this.message,e),fT(this.message,e)}get(e){ga(this.message,e);const n=mT(this.message,e);switch(e.fieldKind){case"list":let i=this.lists.get(e);return(!i||i[Ei]!==n)&&this.lists.set(e,i=new mv(e,n,this.check)),i;case"map":let r=this.maps.get(e);return(!r||r[Ei]!==n)&&this.maps.set(e,r=new gv(e,n,this.check)),r;case"message":return X1(e,n,this.check);case"scalar":return n===void 0?Ja(e.scalar,!1):G1(e,n);case"enum":return n??e.enum.values[0].number}}set(e,n){if(ga(this.message,e),this.check){const r=iv(e,n);if(r)throw r}let i;e.fieldKind=="message"?i=O1(e,n):B1(n)||F1(n)?i=n[Ei]:i=M1(e,n),gT(this.message,e,i)}getUnknown(){return this.message.$unknown}setUnknown(e){this.message.$unknown=e}}function ga(t,e){if(e.parent.typeName!==t.$typeName)throw new As(e,`cannot use ${e.toString()} with message ${t.$typeName}`,"ForeignFieldError")}class mv{field(){return this._field}get size(){return this._arr.length}constructor(e,n,i){this._field=e,this._arr=this[Ei]=n,this.check=i}get(e){const n=this._arr[e];return n===void 0?void 0:Vu(this._field,n,this.check)}set(e,n){if(e<0||e>=this._arr.length)throw new As(this._field,`list item #${e+1}: out of range`);if(this.check){const i=Q0(this._field,e,n);if(i)throw i}this._arr[e]=$0(this._field,n)}add(e){if(this.check){const n=Q0(this._field,this._arr.length,e);if(n)throw n}this._arr.push($0(this._field,e))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const e of this._arr)yield Vu(this._field,e,this.check)}*entries(){for(let e=0;e<this._arr.length;e++)yield[e,Vu(this._field,this._arr[e],this.check)]}}class gv{constructor(e,n,i=!0){this.obj=this[Ei]=n??{},this.check=i,this._field=e}field(){return this._field}set(e,n){if(this.check){const i=rv(this._field,e,n);if(i)throw i}return this.obj[el(e)]=fv(this._field,n),this}delete(e){const n=el(e),i=Object.prototype.hasOwnProperty.call(this.obj,n);return i&&delete this.obj[n],i}clear(){for(const e of Object.keys(this.obj))delete this.obj[e]}get(e){let n=this.obj[el(e)];return n!==void 0&&(n=wu(this._field,n,this.check)),n}has(e){return Object.prototype.hasOwnProperty.call(this.obj,el(e))}*keys(){for(const e of Object.keys(this.obj))yield z0(e,this._field.mapKey)}*entries(){for(const e of Object.entries(this.obj))yield[z0(e[0],this._field.mapKey),wu(this._field,e[1],this.check)]}[Symbol.iterator](){return this.entries()}get size(){return Object.keys(this.obj).length}*values(){for(const e of Object.values(this.obj))yield wu(this._field,e,this.check)}forEach(e,n){for(const i of this.entries())e.call(n,i[1],i[0],this)}}function O1(t,e){return W1(e)?av(e.message)&&!t.oneof&&t.fieldKind=="message"?e.message.value:e.desc.typeName=="google.protobuf.Struct"&&t.parent.typeName!="google.protobuf.Value"?s3(e.message):e.message:e}function X1(t,e,n){return e!==void 0&&(ov(t.message)&&!t.oneof&&t.fieldKind=="message"?e={$typeName:t.message.typeName,value:G1(t.message.fields[0],e)}:t.message.typeName=="google.protobuf.Struct"&&t.parent.typeName!="google.protobuf.Value"&&Ss(e)&&(e=r3(e))),new i3(t.message,e,n)}function $0(t,e){return t.listKind=="message"?O1(t,e):M1(t,e)}function Vu(t,e,n){return t.listKind=="message"?X1(t,e,n):G1(t,e)}function fv(t,e){return t.mapKind=="message"?O1(t,e):M1(t,e)}function wu(t,e,n){return t.mapKind=="message"?X1(t,e,n):e}function el(t){return typeof t=="string"||typeof t=="number"?t:String(t)}function z0(t,e){switch(e){case q.STRING:return t;case q.INT32:case q.FIXED32:case q.UINT32:case q.SFIXED32:case q.SINT32:{const n=Number.parseInt(t);if(Number.isFinite(n))return n;break}case q.BOOL:switch(t){case"true":return!0;case"false":return!1}break;case q.UINT64:case q.FIXED64:try{return vt.uParse(t)}catch{}break;default:try{return vt.parse(t)}catch{}break}return t}function G1(t,e){switch(t.scalar){case q.INT64:case q.SFIXED64:case q.SINT64:"longAsString"in t&&t.longAsString&&typeof e=="string"&&(e=vt.parse(e));break;case q.FIXED64:case q.UINT64:"longAsString"in t&&t.longAsString&&typeof e=="string"&&(e=vt.uParse(e));break}return e}function M1(t,e){switch(t.scalar){case q.INT64:case q.SFIXED64:case q.SINT64:"longAsString"in t&&t.longAsString?e=String(e):(typeof e=="string"||typeof e=="number")&&(e=vt.parse(e));break;case q.FIXED64:case q.UINT64:"longAsString"in t&&t.longAsString?e=String(e):(typeof e=="string"||typeof e=="number")&&(e=vt.uParse(e));break}return e}function r3(t){const e={$typeName:"google.protobuf.Struct",fields:{}};if(Ss(t))for(const[n,i]of Object.entries(t))e.fields[n]=o3(i);return e}function s3(t){const e={};for(const[n,i]of Object.entries(t.fields))e[n]=a3(i);return e}function a3(t){switch(t.kind.case){case"structValue":return s3(t.kind.value);case"listValue":return t.kind.value.values.map(a3);case"nullValue":case void 0:return null;default:return t.kind.value}}function o3(t){const e={$typeName:"google.protobuf.Value",kind:{case:void 0}};switch(typeof t){case"number":e.kind={case:"numberValue",value:t};break;case"string":e.kind={case:"stringValue",value:t};break;case"boolean":e.kind={case:"boolValue",value:t};break;case"object":if(t===null)e.kind={case:"nullValue",value:0};else if(Array.isArray(t)){const n={$typeName:"google.protobuf.ListValue",values:[]};if(Array.isArray(t))for(const i of t)n.values.push(o3(i));e.kind={case:"listValue",value:n}}else e.kind={case:"structValue",value:r3(t)};break}return e}function yv(t,e,...n){return n.reduce((i,r)=>i.nestedMessages[r],t.messages[e])}const l3=PT({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}],extensionRange:[{start:536e6,end:536000001}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false"},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false"},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}},{name:"enforce_naming_style",number:7,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnforceNamingStyle",options:{retention:2,targets:[1,2,3,4,5,6,7,8,9],editionDefaults:[{value:"STYLE_LEGACY",edition:900},{value:"STYLE2024",edition:1001}]}}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]},{name:"EnforceNamingStyle",value:[{name:"ENFORCE_NAMING_STYLE_UNKNOWN",number:0},{name:"STYLE2024",number:1},{name:"STYLE_LEGACY",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}],extensionRange:[{start:536e6,end:536000001}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]}]}),bv=yv(l3,1);var q0;(function(t){t[t.DECLARATION=0]="DECLARATION",t[t.UNVERIFIED=1]="UNVERIFIED"})(q0||(q0={}));var em;(function(t){t[t.DOUBLE=1]="DOUBLE",t[t.FLOAT=2]="FLOAT",t[t.INT64=3]="INT64",t[t.UINT64=4]="UINT64",t[t.INT32=5]="INT32",t[t.FIXED64=6]="FIXED64",t[t.FIXED32=7]="FIXED32",t[t.BOOL=8]="BOOL",t[t.STRING=9]="STRING",t[t.GROUP=10]="GROUP",t[t.MESSAGE=11]="MESSAGE",t[t.BYTES=12]="BYTES",t[t.UINT32=13]="UINT32",t[t.ENUM=14]="ENUM",t[t.SFIXED32=15]="SFIXED32",t[t.SFIXED64=16]="SFIXED64",t[t.SINT32=17]="SINT32",t[t.SINT64=18]="SINT64"})(em||(em={}));var tm;(function(t){t[t.OPTIONAL=1]="OPTIONAL",t[t.REPEATED=3]="REPEATED",t[t.REQUIRED=2]="REQUIRED"})(tm||(tm={}));var nm;(function(t){t[t.SPEED=1]="SPEED",t[t.CODE_SIZE=2]="CODE_SIZE",t[t.LITE_RUNTIME=3]="LITE_RUNTIME"})(nm||(nm={}));var im;(function(t){t[t.STRING=0]="STRING",t[t.CORD=1]="CORD",t[t.STRING_PIECE=2]="STRING_PIECE"})(im||(im={}));var rm;(function(t){t[t.JS_NORMAL=0]="JS_NORMAL",t[t.JS_STRING=1]="JS_STRING",t[t.JS_NUMBER=2]="JS_NUMBER"})(rm||(rm={}));var sm;(function(t){t[t.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",t[t.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",t[t.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(sm||(sm={}));var am;(function(t){t[t.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",t[t.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",t[t.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",t[t.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",t[t.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",t[t.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",t[t.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",t[t.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",t[t.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",t[t.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(am||(am={}));var om;(function(t){t[t.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",t[t.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",t[t.IDEMPOTENT=2]="IDEMPOTENT"})(om||(om={}));var lm;(function(t){t[t.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",t[t.EXPLICIT=1]="EXPLICIT",t[t.IMPLICIT=2]="IMPLICIT",t[t.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(lm||(lm={}));var cm;(function(t){t[t.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",t[t.OPEN=1]="OPEN",t[t.CLOSED=2]="CLOSED"})(cm||(cm={}));var um;(function(t){t[t.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",t[t.PACKED=1]="PACKED",t[t.EXPANDED=2]="EXPANDED"})(um||(um={}));var dm;(function(t){t[t.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",t[t.VERIFY=2]="VERIFY",t[t.NONE=3]="NONE"})(dm||(dm={}));var hm;(function(t){t[t.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",t[t.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",t[t.DELIMITED=2]="DELIMITED"})(hm||(hm={}));var pm;(function(t){t[t.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",t[t.ALLOW=1]="ALLOW",t[t.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(pm||(pm={}));var mm;(function(t){t[t.ENFORCE_NAMING_STYLE_UNKNOWN=0]="ENFORCE_NAMING_STYLE_UNKNOWN",t[t.STYLE2024=1]="STYLE2024",t[t.STYLE_LEGACY=2]="STYLE_LEGACY"})(mm||(mm={}));var gm;(function(t){t[t.NONE=0]="NONE",t[t.SET=1]="SET",t[t.ALIAS=2]="ALIAS"})(gm||(gm={}));var fm;(function(t){t[t.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",t[t.EDITION_LEGACY=900]="EDITION_LEGACY",t[t.EDITION_PROTO2=998]="EDITION_PROTO2",t[t.EDITION_PROTO3=999]="EDITION_PROTO3",t[t.EDITION_2023=1e3]="EDITION_2023",t[t.EDITION_2024=1001]="EDITION_2024",t[t.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",t[t.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",t[t.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",t[t.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",t[t.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",t[t.EDITION_MAX=2147483647]="EDITION_MAX"})(fm||(fm={}));const ym={readUnknownFields:!0};function Ev(t){return t?Object.assign(Object.assign({},ym),t):ym}function Tv(t,e,n){const i=D1(t,void 0,!1);return c3(i,new nv(e),Ev(n),!1,e.byteLength),i.message}function c3(t,e,n,i,r){var s;const a=i?e.len:e.pos+r;let o,c;const u=(s=t.getUnknown())!==null&&s!==void 0?s:[];for(;e.pos<a&&([o,c]=e.tag(),!(i&&c==In.EndGroup));){const d=t.findNumber(o);if(!d){const y=e.skip(c,o);n.readUnknownFields&&u.push({no:o,wireType:c,data:y});continue}vv(t,e,d,c,n)}if(i&&(c!=In.EndGroup||o!==r))throw new Error("invalid end group tag");u.length>0&&t.setUnknown(u)}function vv(t,e,n,i,r){switch(n.fieldKind){case"scalar":t.set(n,_s(e,n.scalar));break;case"enum":t.set(n,_s(e,q.INT32));break;case"message":t.set(n,P1(e,r,n,t.get(n)));break;case"list":Av(e,i,t.get(n),r);break;case"map":Cv(e,t.get(n),r);break}}function Cv(t,e,n){const i=e.field();let r,s;const a=t.pos+t.uint32();for(;t.pos<a;){const[o]=t.tag();switch(o){case 1:r=_s(t,i.mapKey);break;case 2:switch(i.mapKind){case"scalar":s=_s(t,i.scalar);break;case"enum":s=t.int32();break;case"message":s=P1(t,n,i);break}break}}if(r===void 0&&(r=Ja(i.mapKey,!1)),s===void 0)switch(i.mapKind){case"scalar":s=Ja(i.scalar,!1);break;case"enum":s=i.enum.values[0].number;break;case"message":s=D1(i.message,void 0,!1);break}e.set(r,s)}function Av(t,e,n,i){var r;const s=n.field();if(s.listKind==="message"){n.add(P1(t,i,s));return}const a=(r=s.scalar)!==null&&r!==void 0?r:q.INT32;if(!(e==In.LengthDelimited&&a!=q.STRING&&a!=q.BYTES)){n.add(_s(t,a));return}const c=t.uint32()+t.pos;for(;t.pos<c;)n.add(_s(t,a))}function P1(t,e,n,i){const r=n.delimitedEncoding,s=i??D1(n.message,void 0,!1);return c3(s,t,e,r,r?n.number:t.uint32()),s}function _s(t,e){switch(e){case q.STRING:return t.string();case q.BOOL:return t.bool();case q.DOUBLE:return t.double();case q.FLOAT:return t.float();case q.INT32:return t.int32();case q.INT64:return t.int64();case q.UINT64:return t.uint64();case q.FIXED64:return t.fixed64();case q.BYTES:return t.bytes();case q.FIXED32:return t.fixed32();case q.SFIXED32:return t.sfixed32();case q.SFIXED64:return t.sfixed64();case q.SINT64:return t.sint64();case q.UINT32:return t.uint32();case q.SINT32:return t.sint32()}}function Y1(t,e){var n;const i=Tv(bv,JT(t));return i.messageType.forEach(x1),i.dependency=(n=e==null?void 0:e.map(s=>s.proto.name))!==null&&n!==void 0?n:[],Pf(i,s=>e==null?void 0:e.find(a=>a.proto.name===s)).getFile(i.name)}function Sv(t,e,...n){if(n.length>0)throw new Error;return t.services[e]}const _v=Y1("CitzdHJlYW1sYXllci9jb21tb24vc3RyZWFtbGF5ZXJfY29tbW9uLnByb3RvEhJzdHJlYW1sYXllci5jb21tb24iJgoIS2V5VmFsdWUSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJKroBChNQcm9wYWdhdGlvblN0cmF0ZWd5EiAKHFBST1BBR0FUSU9OX1NUUkFURUdZX0lOVkFMSUQQABIeChpQUk9QQUdBVElPTl9TVFJBVEVHWV9VTlNFVBABEh8KG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1vbqICBlNMX0FQSWIGcHJvdG8z",[l3]);var bm;(function(t){t[t.ONBOARDING=1]="ONBOARDING",t[t.QUESTION=2]="QUESTION",t[t.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(bm||(bm={}));window.slStore=Object.create(null);var Em;(function(t){t.ORGANIZATION="ORGANIZATION",t.STREAM="STREAM"})(Em||(Em={}));var Tm;(function(t){t.Ready="ready",t.Suspended="suspended"})(Tm||(Tm={}));var hi;(function(t){t[t.Canceled=1]="Canceled",t[t.Unknown=2]="Unknown",t[t.InvalidArgument=3]="InvalidArgument",t[t.DeadlineExceeded=4]="DeadlineExceeded",t[t.NotFound=5]="NotFound",t[t.AlreadyExists=6]="AlreadyExists",t[t.PermissionDenied=7]="PermissionDenied",t[t.ResourceExhausted=8]="ResourceExhausted",t[t.FailedPrecondition=9]="FailedPrecondition",t[t.Aborted=10]="Aborted",t[t.OutOfRange=11]="OutOfRange",t[t.Unimplemented=12]="Unimplemented",t[t.Internal=13]="Internal",t[t.Unavailable=14]="Unavailable",t[t.DataLoss=15]="DataLoss",t[t.Unauthenticated=16]="Unauthenticated"})(hi||(hi={}));function vm(t,e){return{id:Symbol(e==null?void 0:e.description),defaultValue:t}}window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));function Rv(t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")}class Iv{constructor(e="main",n=window.localStorage){Wt(this,"delimiter",":"),Wt(this,"prefix"),Wt(this,"storage"),Wt(this,"clear",()=>{for(const i in window.localStorage)i.startsWith(this.prefix)&&this.storage.removeItem(i)}),Wt(this,"generateKey",i=>`${this.prefix}${this.delimiter}${i.join(this.delimiter)}`),Wt(this,"write",(...i)=>{const r=i.pop()||"",s=this.generateKey(i);try{this.storage.setItem(s,r)}catch(a){Rv(a)&&this.storage===window.sessionStorage&&(window.sessionStorage.removeItem("slstreamlogs"),this.storage.setItem(s,r))}}),Wt(this,"read",(...i)=>{const r=this.storage.getItem(this.generateKey(i));return r===null?void 0:r}),Wt(this,"remove",(...i)=>{this.storage.removeItem(this.generateKey(i))}),this.prefix=`sl-sdk${this.delimiter}${e}`,this.storage=n}}var Cm;(function(t){t.Init="init",t.Ready="ready",t.Connecting="connecting",t.Connected="connected",t.Disconnected="disconnected",t.Failed="failed",t.Reconnect="reconnect",t.Reconnecting="reconnecting"})(Cm||(Cm={}));ao("grpc:stream");hi.Unknown,hi.Internal,hi.DeadlineExceeded,hi.ResourceExhausted,hi.FailedPrecondition,hi.Unavailable,hi.DataLoss;ao("grpc:retry");vm(10,{description:"Number of attempts to retry"}),vm(3e4,{description:"Max delay between retries in milliseconds"});const Vv=Y1("CiRzdHJlYW1sYXllci91c2Vycy91c2Vyc19jb21tb24ucHJvdG8SEXN0cmVhbWxheWVyLnVzZXJzIh4KDlB1YmxpY0NoYXRVc2VyEgwKBG5hbWUYASABKAkioAEKDlVzZXJBdHRyaWJ1dGVzEhAKCHVzZXJuYW1lGAEgASgJEgwKBG5hbWUYAiABKAkSDQoFYWxpYXMYAyABKAkSDgoGYXZhdGFyGAUgASgJEjoKC3B1YmxpY19jaGF0GAYgASgLMiEuc3RyZWFtbGF5ZXIudXNlcnMuUHVibGljQ2hhdFVzZXJCAhgBEhMKC3B1YmxpY19uYW1lGAcgASgJIjMKEFVzZXJPcmdhbml6YXRpb24SCgoCaWQYASABKAkSEwoLcGVybWlzc2lvbnMYAiADKAki/wEKDFVzZXJNZXRhZGF0YRIOCgZhdmF0YXIYAiABKAkSIAoYYXZhdGFyX2JhY2tncm91bmRfY29sb3VyGAMgASgJEhAKCHRpbWV6b25lGAQgASgJEk4KF25vdGlmaWNhdGlvbl9wcmVmZXJlbmNlGAUgASgOMi0uc3RyZWFtbGF5ZXIudXNlcnMuVXNlck5vdGlmaWNhdGlvblByZWZlcmVuY2USDgoGYWN0aXZlGAYgASgIEhIKCmZpcnN0X25hbWUYByABKAkSEQoJbGFzdF9uYW1lGAggASgJE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WZhUmVzcG9uc2UiEYqmHQl2ZXJpZnlNZmGgph0CGgmKtRgFdXNlcnNChAEKFWNvbS5zdHJlYW1sYXllci51c2Vyc0IVU3RyZWFtTGF5ZXJVc2Vyc1Byb3RvUAFaSWdpdGh1Yi5jb20vc3RyZWFtbGF5ZXIvc2wtcHJvdG9maWxlcy8uYnVpbGQvZ28vc3RyZWFtbGF5ZXIvdXNlcnM7c2xfdXNlcnOiAgZTTF9BUEliBnByb3RvMw",[_v,Vv]),Nv=Sv(wv,0),Uv=(t,e)=>{const{client:n,createRequestOptions:i}=t.createPromiseClient(Nv,{method:"bypassAuth"}),r=i({retryAttempts:0});return n.bypassAuth(e,{contextValues:r})};var pi;(function(t){t.SCHEMA="schema",t.EXTERNAL_TOKEN="eToken",t.TOKEN="token"})(pi||(pi={}));class kv extends Iv{constructor(){super("user"),Wt(this,"setSchema",e=>{this.write(pi.SCHEMA,e)}),Wt(this,"getSchema",()=>this.read(pi.SCHEMA)),Wt(this,"setToken",e=>{this.write(pi.TOKEN,e)}),Wt(this,"getToken",()=>this.read(pi.TOKEN)),Wt(this,"setExternalToken",e=>{this.write(pi.EXTERNAL_TOKEN,e)}),Wt(this,"getExternalToken",()=>this.read(pi.EXTERNAL_TOKEN)),Wt(this,"removeToken",()=>{this.remove(pi.TOKEN)})}}var Am;(function(t){t.DISABLED="disabled",t.INITIALIZATION="initialization",t.READY="ready",t.FAILED="failed",t.SUSPENDED="suspended"})(Am||(Am={}));ao("deep_link");ao("bypass");const Sm=new kv,_m=async(t,e={})=>{var n,i;const{schemaName:r,issuer:s}={schemaName:"slra",issuer:"sdk-web",...e};t.sdk.withAuth=!0;const a=await t.stores.organizationSettings.getValue();if(!a)throw new Error("unknown organization");const o=`${(n=a.pub)==null?void 0:n.kid}`,c=`${r}:${a.id}`,d=(i=(await Uv(t.transport,{userKey:o,schema:c,init:!0})).meta)==null?void 0:i.token,y=a.pub,A=await mE({...y}),T=window.crypto.randomUUID(),_=await new kE({"device-id":T,totp:d}).setProtectedHeader({alg:y.alg||"",enc:"A256CBC-HS512",kid:y.kid}).setIssuedAt().setIssuer(s).setAudience(a.id).setExpirationTime("2m").encrypt(A);await t.auth.login(c,_),Sm.setSchema("streamlayer:streamlayer"),Sm.setExternalToken(_)},xv=async(t,e={})=>{try{await t.auth.reLogin({skipLogin:!0})||await _m(t,e).catch(i=>{console.error(i,"fail anon login")})}catch(n){console.log(n,"fail anon re-login"),await _m(t,e)}},Lv=(t,e={})=>new Promise((n,i)=>{const r=setTimeout(()=>{i(new Error("timeout"))},3e4);t.stores.status.subscribe(async s=>{if(s==="ready")try{await xv(t,e),n(!0)}catch(a){i(a)}finally{clearTimeout(r)}})}),Fv=(t,e,n)=>{t.sdk.anonymousAuthorization=async()=>{await Lv(t,e)},n()};var Bv=function(){const e=Array.prototype.slice.call(arguments).filter(Boolean),n={},i=[];e.forEach(s=>{(s?s.split(" "):[]).forEach(o=>{if(o.startsWith("atm_")){const[,c]=o.split("_");n[c]=o}else i.push(o)})});const r=[];for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.push(n[s]);return r.push(...i),r.join(" ")},mn=Bv;function Wv(t,e,n){let i=new Set(e).add(void 0);return t.listen((r,s,a)=>{i.has(a)&&n(r,s,a)})}function Rm(t,e={}){let n=M.useCallback(r=>e.keys?Wv(t,e.keys,r):t.listen(r),[e.keys,t]),i=t.get.bind(t);return M.useSyncExternalStore(n,i,i)}function Zv(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Dv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Nu=Zv(function(t){return Dv.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),Ov=t=>t.toUpperCase()===t,Xv=t=>e=>t.indexOf(e)===-1,u3=(t,e)=>{const n={};return Object.keys(t).filter(Xv(e)).forEach(i=>{n[i]=t[i]}),n};function Gv(t,e,n){const i=u3(e,n);if(!t){const r=typeof Nu=="function"?{default:Nu}:Nu;Object.keys(i).forEach(s=>{r.default(s)||delete i[s]})}return i}var Mv=(t,e)=>{};function Pv(t){let e="";return n=>{const i=(s,a)=>{const{as:o=t,class:c=e}=s,u=n.propsAsIs===void 0?!(typeof o=="string"&&o.indexOf("-")===-1&&!Ov(o[0])):n.propsAsIs,d=Gv(u,s,["as","class"]);d.ref=a,d.className=n.atomic?mn(n.class,d.className||c):mn(d.className||c,n.class);const{vars:y}=n;if(y){const A={};for(const b in y){const V=y[b],w=V[0],W=V[1]||"",B=typeof w=="function"?w(s):w;Mv(B,n.name),A[`--${b}`]=`${B}${W}`}const T=d.style||{},_=Object.keys(T);_.length>0&&_.forEach(b=>{A[b]=T[b]}),d.style=A}return t.__wyw_meta&&t!==o?(d.as=o,M.createElement(t,d)):M.createElement(o,d)},r=M.forwardRef?M.forwardRef(i):s=>{const a=u3(s,["innerRef"]);return i(a,s.innerRef)};return r.displayName=n.name,r.__wyw_meta={className:n.class||e,extends:t},r}}var F=Pv;const Yv=F("div")({name:"Container",class:"c6rz41d",propsAsIs:!1}),Hv=F("div")({name:"ContentContainer",class:"clv6awu",propsAsIs:!1}),jv=F("div")({name:"Sidebar",class:"ssfv9z7",propsAsIs:!1}),Jv=F("div")({name:"SideBarOverlay",class:"sweyrp8",propsAsIs:!1}),Qv=F("div")({name:"Banner",class:"b5w8mb1",propsAsIs:!1}),Kv=F("div")({name:"VideoContainer",class:"v1uhtlpt",propsAsIs:!1}),$v=F("div")({name:"VideoBox",class:"v7viet2",propsAsIs:!1}),zv=F("div")({name:"VideoPlayer",class:"v9y7cje",propsAsIs:!1}),qv=F("div")({name:"Overlay",class:"opmmtyi",propsAsIs:!1}),eC=F("div")({name:"Notification",class:"nk5geky",propsAsIs:!1}),tC=()=>{const[t,e]=M.useState("desktop");return M.useEffect(()=>{const n=F6(()=>{const i=window.innerWidth,r=window.innerHeight,s=i>r?"landscape":"portrait";e(i<1024&&s==="portrait"?"mobile":"desktop")},200);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),t},Im=({delay:t,children:e})=>{const n=M.useRef(null),[i,r]=M.useState(!1);return M.useEffect(()=>(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>r(!0),t),()=>{n.current&&clearTimeout(n.current)}),[t]),i?e:null},nC=M.forwardRef(function({sdk:t,sidebar:e,overlay:n,notification:i,banner:r,children:s,webos:a},o){const c=Rm(t.uiState),{containerId:u}=Rm(t.options),d=M.useRef(null),y=M.useRef(null),A=M.useCallback(()=>{if(!y.current||!d.current)return;const{width:B,height:Z}=y.current.getBoundingClientRect(),{width:L,height:X}=d.current.getBoundingClientRect();(B>L||Z>X)&&(y.current.style.width==="100%"?(y.current.style.height="100%",y.current.style.width="auto"):(y.current.style.width="100%",y.current.style.height="auto"))},[]);M.useEffect(()=>{const B=d.current;if(B){const Z=new ResizeObserver(L=>{for(const X of L)X.contentBoxSize&&A()});return Z.observe(B),()=>{Z.disconnect()}}return()=>{}},[A]),M.useEffect(A);const T=tC(),_=c.exposedPauseAd,b=!_&&(c.promotionSidebar||c.app||c.appSidebar),V=!_&&c.promotionOverlay,w=!_&&(c.promotionBanner||c.appBanner),W=!_&&(c.promotionNotification||c.onboardingNotification||c.appNotification);return C.jsxs(Yv,{id:u||"SlLayoutContainer",className:mn("Container",a&&"SL-ContainerWebOs"),ref:o,children:[C.jsxs(Hv,{className:"ContentContainer",style:{width:b?`calc(100% - var(${a?"--sidebar-width-webos":"--sidebar-width"}))`:"100%"},children:[C.jsx(Kv,{className:mn("VideoContainer",b&&"WithSidebar",w&&"WithBanner"),ref:d,style:{height:w?`calc(100% - var(${a?"--banner-height-webos":"--banner-height"}))`:"100%"},children:C.jsx($v,{ref:y,className:"VideoBox",children:C.jsx(zv,{className:"VideoPlayer",children:s})})}),C.jsx(Qv,{className:"Banner",style:{height:w?`var(${a?"--banner-height-webos":"--banner-height"})`:"0px",padding:w?`var(${a?"--banner-padding-webos":"--banner-padding"})`:"0px"},children:w&&r}),W&&C.jsx(Im,{delay:a?1e3:0,children:C.jsx(eC,{children:typeof i=="function"?i({promo:!!c.promotionNotification,app:!!c.appNotification}):i})}),V&&T==="desktop"&&C.jsx(qv,{className:"Overlay",children:n})]}),T==="desktop"&&C.jsx(Im,{delay:a?1e3:0,children:C.jsx(jv,{style:{width:b?`var(${a?"--sidebar-width-webos":"--sidebar-width"})`:"0px",...a?{height:"100%"}:{}},className:"Sidebar",children:b&&(typeof e=="function"?e({promo:!!c.promotionSidebar,app:!!c.appSidebar}):e)})}),(b||V)&&T==="mobile"&&C.jsx(Jv,{className:"Demo-SideBarOverlay",children:n})]})});var iC={};/**
4
- * @license React
5
- * use-sync-external-store-shim.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */var Rs=M;function rC(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var sC=typeof Object.is=="function"?Object.is:rC,aC=Rs.useState,oC=Rs.useEffect,lC=Rs.useLayoutEffect,cC=Rs.useDebugValue;function uC(t,e){var n=e(),i=aC({inst:{value:n,getSnapshot:e}}),r=i[0].inst,s=i[1];return lC(function(){r.value=n,r.getSnapshot=e,Uu(r)&&s({inst:r})},[t,n,e]),oC(function(){return Uu(r)&&s({inst:r}),t(function(){Uu(r)&&s({inst:r})})},[t]),cC(n),n}function Uu(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!sC(t,n)}catch{return!0}}function dC(t,e){return e()}var hC=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?dC:uC;iC.useSyncExternalStore=Rs.useSyncExternalStore!==void 0?Rs.useSyncExternalStore:hC;const Ti=Z6.useStore,pC={BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",BLUE:"#2d6ffd",GREY_PRIMARY:"#909395",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",PRIMARY_1:"#1D7BFF",PRIMARY_2:"#095CD1",PRIMARY_TEXT:"#090E13",SECONDARY_TEXT:"rgba(10, 14, 19, 0.70)",QUESTION_TYPE_ICON:"#1D7BFF",QUESTION_BODY_TEXT:"#090E13",PRESENTED_BY_TEXT:"#090E13",SUCCESS:"#107D57",UNSUCCESS:"#DF2F3B",SECONDARY_RED1:"#DF2F3B",NEUTRALS_WHITE:"#FFFFFF",NEUTRALS_WHITE1:"#FFFFFF",NEUTRALS_GRAY1:"#F7F7F7",NEUTRALS_GRAY2:"#F2F2F1",NEUTRALS_GRAY3:"#E8E8E8",NEUTRALS_GRAY4:"#D9D9D6",NEUTRALS_GRAY5:"#B1B3B3",NEUTRALS_GRAY6:"#888B8D",NEUTRALS_GRAY7:"#6B6F73",NEUTRALS_GRAY9:"#25282A",SDK_CONTAINER_BG:"#F7F7F7",SDK_WHITE_CONTAINER_BG:"#fff",SDK_DARK_CONTAINER_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_BG:"#fff",SDK_PREDICTION_RESULT_INCORRECT_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_TEXT:"#107D57",SDK_PREDICTION_RESULT_ERROR_TITLE:"#090E13",SDK_PREDICTION_RESULT_ERROR_SUBTITLE:"#DF2F3B",SDK_PREDICTION_RESULT_CLOSE_ICON:"#6B6F73",SDK_PREDICTION_FEEDBACK_SUCCESS_ICON:"#107D57",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1:"#CD2525",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2:"#fff",PREDICTION_BG_LINES_CORRECT:"#01AB58",PREDICTION_BG_LINES_INCORRECT:"#888B8D",SKELETON_COLOR_1:"#f1efef",SKELETON_COLOR_2:"#f9f8f8",TABS_CONTAINER_BG:"#F2F2F1",TABS_ACTIVE_BG:"#FFFFFF",TABS_COLOR:"#6B6F73",TABS_ACTIVE_COLOR:"#1D7BFF",CARD_BG:"#FFFFFF",CARD_BORDER:"#fff",BORDER:"#E8E8E8",VOTE_BTN_BG:"#F7F7F7",VOTE_BTN_BORDER:"rgb(232, 232, 232)",VOTE_BTN_DISABLED_BORDER:"#B1B3B3",VOTE_BTN_SELECTED_BORDER:"#25282A",VOTE_BTN_NOT_SELECTED_BORDER:"#E8E8E8",VOTE_BTN_SELECTED_BG:"#FFFFFF",VOTE_BTN_SELECTED_BG_AD_UNIT:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG_UNSET:"rgb(196, 196, 196)",VOTED_ANSWER_BG:"#FFFFFF",VOTED_BTN_RCT_BG:"#2d5694",IN_APP_BG:"rgba(255, 255, 255, 0.90)",IN_APP_QUESTION_TYPE_ICON:"#1D7BFF",IN_APP_QUESTION_TYPE_LABEL:"#82899E",IN_APP_QUESTION_QUOTE:"rgba(10, 14, 19, 0.70)",IN_APP_QUESTION_RESULT_SUBTITLE_BG:"#1D7BFF",IN_APP_QUESTION_RESULT_LINE:"#babfc5",QUOTE_BORDER:"#E8E8E8",QUOTE_TEXT:"rgba(10, 14, 19, 0.70)"},mC={BG_PRIMARY:"#13212b",BG_SECONDARY:"#152430",BG_SECONDARY1:"#435059",BORDER_PRIMARY:"rgba(255, 255, 255, 0.1)",TEXT_PRIMARY:"#f9f9f9",TEXT_PRIMARY1:"#f9f9f9",TEXT_SECONDARY:"rgba(255, 255, 255, 0.8)",TEXT_SECONDARY1:"#878787",WHITE:"#fff"},gC=["#107D57","#DF2F3B","#DF2F3B","#E8E8E8"],fC="#cee5de",yC="#f9d6d8",bC="#E8E8E8",EC={xs:324,sm:576,md:768,lg:992,xl:1200,xxl:1440};Object.entries(pC).reduce((t,[e,n])=>`
12
- ${t}
13
- --color-${e.toLowerCase().replaceAll("_","-")}: ${n};
14
- `,"");Object.entries(mC).reduce((t,[e,n])=>`
15
- ${t}
16
- --color-adv-${e.toLowerCase().replaceAll("_","-")}: ${n};
17
- `,"");const TC=(t,e)=>{const n=window.innerWidth<EC.xl;M.useEffect(()=>{const i=n&&e.useDomNode?document:t.current,r=s=>{e.listener(s,t)};return e.enabled&&(i==null||i.addEventListener(e.event,r)),()=>{i==null||i.removeEventListener(e.event,r)}},[n,e.enabled,e.listener])};var vC=Object.defineProperty,CC=(t,e,n)=>e in t?vC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,AC=(t,e,n)=>CC(t,e+"",n);let SC=class{constructor(){AC(this,"observers",new Set)}subscribe(e){this.observers.add(e)}unsubscribe(e){this.observers.delete(e)}notify(e){this.observers.forEach(n=>n(e))}};const fa=new SC,_C={hiding:!1,finished:!1},H1=()=>{const[t,e]=M.useState(_C),n=M.useRef(null);M.useEffect(()=>{const s=a=>{e(a)};return fa.subscribe(s),()=>{fa.unsubscribe(s)}},[]);const i=M.useCallback(s=>{const a={hiding:!0,finished:!1};n.current&&clearTimeout(n.current),s!=null&&s.delay?n.current=setTimeout(()=>{fa.notify(a)},s==null?void 0:s.delay):fa.notify(a)},[]),r=M.useCallback(()=>{t.hiding&&(n.current=null,fa.notify({hiding:!1,finished:!0}))},[t.hiding]);return{...t,runAnimation:i,onAnimationEnd:r}},RC=`
18
- .sl-hide-on-modal {
19
- height: 0 !important;
20
- opacity: 0 !important;
21
- overflow: hidden !important;
22
- transition: none;
23
- }
24
- `,IC=({containerId:t="SlLayoutContainer",url:e})=>`
25
- #${t||"SlLayoutContainer"},
26
- #${t||"SlLayoutContainer"} .StreamLayerSDK>.StreamLayerSDKTheme > * {
27
- --color-sdk-container-bg: transparent !important;
28
- }
29
-
30
- #${t||"SlLayoutContainer"}::before {
31
- content: '';
32
- display: block;
33
- position: absolute;
34
- inset: 0;
35
- width: 100%;
36
- height: 100%;
37
- background-color: #1a1a1a;
38
- background-size: cover !important;
39
- background-position: center !important;
40
- background-repeat: no-repeat !important;
41
- background-image: ${e} !important;
42
- z-index: 0;
43
-
44
- opacity: 0;
45
- animation: fade-sl-bg-in 0.3s linear forwards;
46
- }
47
-
48
- #${t||"SlLayoutContainer"} > div {
49
- position: relative;
50
- z-index: 1;
51
- }
52
-
53
- @keyframes fade-sl-bg-in {
54
- from {
55
- opacity: 0;
56
- }
57
- to {
58
- opacity: 1;
59
- }
60
- }
61
-
62
- ${RC}
63
- `,d3=({containerId:t,landscapeUrl:e,portraitUrl:n})=>{const[i,r]=M.useState(!1),s=M.useMemo(()=>{const a=window.innerWidth,o=window.innerHeight;return r(!1),a>o?e:n},[e,n]);return M.useEffect(()=>{if(s){const a=new Image;a.src=s,a.onload=function(){r(!0)}}},[s]),M.useMemo(()=>{const a=s?`url("${s}")`:void 0;return a&&i?C.jsx("style",{children:IC({containerId:t,url:a})}):null},[t,s,i])},VC=t=>{const{Component:e,options:n,customOptions:i,autoFocus:r,...s}=t,a=hc.useFocusable({...n,...i,onEnterPress:()=>{var o;return(o=t.onClick)==null?void 0:o.call(t,{currentTarget:a.ref.current,stopPropagation:()=>{}})}});return M.useEffect(()=>{r&&a.focusSelf()},[]),C.jsx(e,{...s,...a,"data-is-with-focus":"true"})};function yn(t,e){return({webos:n,options:i,...r})=>n?C.jsx(VC,{Component:t,options:e,customOptions:i,...r}):C.jsx(t,{...r})}const wC=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M8 4L16 12L8 20",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),NC=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"check"},N.createElement("path",{id:"Vector",d:"M4 13L9 18L20 6",stroke:"#107D57",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),UC=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M10 6L16 12L10 18",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),kC=t=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("rect",{width:16,height:16,rx:8,fill:"#CD2525"}),N.createElement("rect",{x:5.5,y:4.66669,width:8.24958,height:1.17851,rx:.589256,transform:"rotate(45 5.5 4.66669)",fill:"white"}),N.createElement("rect",{x:4.66669,y:10.5,width:8.24958,height:1.17851,rx:.589256,transform:"rotate(-45 4.66669 10.5)",fill:"white"})),xC=t=>N.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("rect",{width:48,height:48,rx:24,fill:"#00BD60"}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.3147 13.052C37.8383 13.5019 37.898 14.2912 37.448 14.8147L20.2605 34.8147C20.0292 35.0839 19.6944 35.2421 19.3395 35.2497C18.9847 35.2574 18.6433 35.1139 18.4006 34.8549L10.5881 26.5216C10.1159 26.018 10.1414 25.2269 10.6451 24.7548C11.1487 24.2826 11.9398 24.3081 12.4119 24.8118L19.2721 32.1292L35.552 13.1853C36.0019 12.6617 36.7911 12.602 37.3147 13.052Z",fill:"white"})),LC=t=>N.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Frame 3469478"},N.createElement("path",{id:"Vector 4",d:"M1.62695 1.62598L10.3742 10.3745",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"}),N.createElement("path",{id:"Vector 5",d:"M1.62695 10.376L10.3742 1.62746",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"}))),FC=t=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("rect",{x:.56009,y:2.8074,width:16.55,height:16.55,rx:2.14375,transform:"rotate(-7.80777 0.56009 2.8074)",stroke:"#006747",style:{stroke:"#006747",stroke:"color(display-p3 0.0000 0.4039 0.2784)",strokeOpacity:1},strokeWidth:1.4}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.62237 4.17188C10.5053 4.17188 11.2837 4.37793 11.8733 4.76716L11.8732 4.76718C12.5572 5.21938 12.9636 5.89049 13.0796 6.75908C13.2656 8.14856 12.2625 9.08727 11.5284 9.77271C11.2207 10.0589 10.956 10.3079 10.8501 10.5183C10.7752 10.6652 10.7366 10.8269 10.6992 10.9839C10.698 10.989 10.6967 10.994 10.6955 10.9991L10.6952 11.0004C10.5952 11.4278 10.4915 11.8706 9.72822 11.9721C9.67385 11.9793 9.6209 11.9821 9.56938 11.9821C9.28746 11.9821 9.03705 11.8777 8.84673 11.6788C8.67931 11.5056 8.56912 11.2738 8.53621 11.0234C8.40767 10.0551 9.08301 9.37328 9.68028 8.77031L9.68384 8.76671C10.2176 8.23011 10.7199 7.72213 10.6354 7.08534C10.5496 6.43425 10.1275 6.07652 9.44917 6.07652C9.35902 6.07652 9.26601 6.08367 9.1687 6.09655C8.22588 6.22243 8.06263 6.74456 7.88952 7.29821L7.88941 7.29854C7.73775 7.78506 7.58034 8.28732 6.85055 8.38463C6.79188 8.39178 6.73178 8.39608 6.6731 8.39608C6.1279 8.39608 5.72868 8.05407 5.65856 7.52462C5.56127 6.80772 5.86319 6.0307 6.48137 5.39534C7.0924 4.77002 7.94814 4.34216 8.8296 4.22482C9.09577 4.19048 9.36193 4.17188 9.62237 4.17188ZM9.88998 12.7224C9.94722 12.7152 10.0059 12.7109 10.0631 12.7109C10.7228 12.7109 11.2866 13.2032 11.3753 13.8586C11.4697 14.5812 10.9618 15.2466 10.2391 15.3439C10.1804 15.3511 10.1218 15.3554 10.0645 15.3554C9.40485 15.3554 8.84107 14.8617 8.75378 14.2077C8.65791 13.4851 9.16732 12.8197 9.88998 12.7224Z",fill:"#006747",style:{fill:"#006747",fill:"color(display-p3 0.0000 0.4039 0.2784)",fillOpacity:1}})),BC=t=>N.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("rect",{x:1,y:.5,width:23,height:23,rx:11.5,stroke:"#B1B3B3"}),N.createElement("path",{d:"M13.833 8L9.83301 12L13.833 16",stroke:"#B1B3B3",strokeLinecap:"round",strokeLinejoin:"round"})),WC=t=>N.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Icon"},N.createElement("path",{id:"Icon_2",d:"M10.5 6.39844L16.5 12.3984L10.5 18.3984",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),ZC=t=>N.createElement("svg",{width:64,height:65,viewBox:"0 0 64 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M43.852 8.90765C40.2818 7.13339 36.2575 6.13574 32.0002 6.13574C17.2726 6.13574 5.3335 18.0748 5.3335 32.8024C5.3335 47.53 17.2726 59.4691 32.0002 59.4691C46.7278 59.4691 58.6668 47.53 58.6668 32.8024C58.6668 31.8009 58.6116 30.8123 58.5041 29.8394M24.0002 30.1357L32.0002 38.1357L58.6668 11.4691",stroke:"#107D57",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})),DC=t=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{id:"Selected",fillRule:"evenodd",clipRule:"evenodd",d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.6057 5.43441C11.2933 5.12199 10.7868 5.12199 10.4744 5.43441L6.93812 9.97066L5.08382 8.73446C4.7162 8.48938 4.2195 8.58871 3.97442 8.95634C3.72934 9.32396 3.82868 9.82065 4.1963 10.0657L6.5963 11.6657C6.9136 11.8773 7.33609 11.8354 7.60574 11.5658L11.6057 6.56578C11.9182 6.25336 11.9182 5.74683 11.6057 5.43441Z",fill:"#107D57"})),OC=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Checkmark"},N.createElement("path",{id:"Selected",fillRule:"evenodd",clipRule:"evenodd",d:"M24 12.002C24 18.6294 18.6274 24.002 12 24.002C5.37258 24.002 0 18.6294 0 12.002C0 5.37454 5.37258 0.00195312 12 0.00195312C18.6274 0.00195312 24 5.37454 24 12.002ZM17.4086 8.15357C16.94 7.68494 16.1802 7.68494 15.7116 8.15357L10.4072 14.9579L7.62573 13.1036C7.07429 12.736 6.32925 12.885 5.96163 13.4365C5.59401 13.9879 5.74301 14.7329 6.29445 15.1006L9.89445 17.5006C10.3704 17.8179 11.0041 17.7551 11.4086 17.3506L17.4086 9.85063C17.8772 9.382 17.8772 8.6222 17.4086 8.15357Z",fill:"#FFFFFF"}))),XC=t=>N.createElement("svg",{width:12,height:20,viewBox:"0 0 12 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{id:"Icon / chevron.left",d:"M0 10C0 10.3818 0.145996 10.7075 0.449219 10.9995L9.20898 19.5684C9.44482 19.8154 9.75928 19.939 10.1187 19.939C10.8486 19.939 11.4214 19.3774 11.4214 18.6362C11.4214 18.2769 11.2754 17.9512 11.0283 17.7041L3.1333 10L11.0283 2.2959C11.2754 2.0376 11.4214 1.71191 11.4214 1.35254C11.4214 0.622559 10.8486 0.0610352 10.1187 0.0610352C9.75928 0.0610352 9.44482 0.18457 9.20898 0.431641L0.449219 9.00049C0.145996 9.29248 0.0112305 9.61816 0 10Z",fill:"white",fillOpacity:.6})),GC=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Chevron"},N.createElement("path",{id:"Chevron_2",d:"M6 11.999C6 12.1725 6.03134 12.334 6.09401 12.4837C6.15669 12.6334 6.25428 12.7756 6.3868 12.9103L14.0436 20.6565C14.2648 20.8855 14.5323 21 14.8459 21C15.0607 21 15.2544 20.9475 15.4271 20.8426C15.5998 20.7377 15.7384 20.5965 15.8431 20.4191C15.9477 20.2416 16 20.0425 16 19.8217C16 19.4989 15.8816 19.2134 15.6448 18.9654L8.74183 11.9971L15.6448 5.03271C15.8816 4.78709 16 4.5023 16 4.17834C16 3.95749 15.9477 3.75835 15.8431 3.58091C15.7384 3.40347 15.5998 3.26229 15.4271 3.15738C15.2544 3.05246 15.0607 3 14.8459 3C14.5323 3 14.2648 3.11169 14.0436 3.33508L6.3868 11.0878C6.25551 11.2225 6.15853 11.3644 6.09586 11.5134C6.03318 11.6625 6.00123 11.8244 6 11.999Z",fill:"white"}))),MC=t=>N.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Chevron"},N.createElement("path",{id:"Chevron_2",d:"M12 8.17222C12 8.28783 11.9781 8.39553 11.9342 8.49533C11.8903 8.59513 11.822 8.68992 11.7292 8.7797L6.36949 13.9439C6.21462 14.0965 6.02742 14.1729 5.80787 14.1729C5.65752 14.1729 5.52191 14.1379 5.40104 14.0679C5.28016 13.998 5.1831 13.9039 5.10986 13.7856C5.03662 13.6673 5 13.5345 5 13.3873C5 13.1721 5.08288 12.9818 5.24863 12.8164L10.0807 8.17095L5.24863 3.52799C5.08288 3.36425 5 3.17439 5 2.95841C5 2.81118 5.03662 2.67842 5.10986 2.56013C5.1831 2.44183 5.28016 2.34771 5.40104 2.27777C5.52191 2.20782 5.65752 2.17285 5.80787 2.17285C6.02742 2.17285 6.21462 2.24731 6.36949 2.39624L11.7292 7.56473C11.8211 7.65451 11.889 7.74909 11.9329 7.84846C11.9768 7.94784 11.9991 8.05576 12 8.17222Z",fill:"#FFFFFF"}))),PC=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 -2.43189e-06C18.6274 -2.72158e-06 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 8.1423e-07 18.6274 5.24537e-07 12C2.34843e-07 5.37258 5.37258 -2.14219e-06 12 -2.43189e-06ZM11.9999 22.5883C17.8476 22.5883 22.5881 17.8478 22.5881 12.0001C22.5881 6.15238 17.8476 1.41187 11.9999 1.41187C6.15217 1.41187 1.41166 6.15239 1.41166 12.0001C1.41166 17.8478 6.15217 22.5883 11.9999 22.5883Z",fill:"white"}),N.createElement("path",{d:"M10.8547 7.5429C10.524 7.23657 10.0131 7.23657 9.68243 7.5429C9.31416 7.88401 9.31384 8.46633 9.68174 8.80784L13.1206 12L9.68175 15.1922C9.31384 15.5337 9.31416 16.116 9.68243 16.4571C10.0131 16.7634 10.524 16.7634 10.8547 16.4571L14.9802 12.6358C15.3505 12.2928 15.3505 11.7072 14.9802 11.3642L10.8547 7.5429Z",fill:"white"})),YC=t=>N.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M1.62695 1.62598L10.3742 10.3745",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"}),N.createElement("path",{d:"M1.62695 10.376L10.3742 1.62746",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"})),HC=t=>N.createElement("svg",{width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Group 465"},N.createElement("rect",{id:"Rectangle 368",x:1.25,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(45 1.25 0)",fill:"white"}),N.createElement("rect",{id:"Rectangle 369",y:8.75,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(-45 0 8.75)",fill:"white"}))),jC=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("rect",{y:.00195312,width:24,height:24,rx:12,fill:"#F80022"}),N.createElement("rect",{x:8.25,y:7.00195,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(45 8.25 7.00195)",fill:"white"}),N.createElement("rect",{x:7,y:15.752,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(-45 7 15.752)",fill:"white"})),JC=t=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Frame"},N.createElement("path",{id:"Vector",d:"M5.79479 6.80154C5.5243 6.53492 5.11861 6.53492 4.84812 6.80154C4.57768 7.06812 4.57768 7.46803 4.84812 7.73465L7.62043 10.6673C7.75567 10.8006 7.95852 10.8672 8.09376 10.8672C8.29661 10.8672 8.49945 10.8006 8.5671 10.6007L15.1936 2.40258C15.3964 2.13598 15.3964 1.66942 15.0583 1.46947C14.8555 1.26951 14.4498 1.26951 14.1793 1.60277L12.827 3.26904C11.6099 2.06932 9.85181 1.33616 8.09376 1.33616C4.37481 1.33616 1.33203 4.33546 1.33203 8.00128C1.33203 11.6671 4.37481 14.6663 8.09376 14.6663C11.8127 14.6663 14.8555 11.6671 14.8555 8.00128C14.8555 7.40141 14.7879 6.80154 14.5851 6.20168C14.4498 5.86843 14.1117 5.66848 13.7736 5.73514C13.4355 5.80176 13.2327 6.20168 13.3003 6.53492C13.4355 7.0015 13.5031 7.5347 13.5031 8.00128C13.5031 10.9339 11.0689 13.3333 8.09376 13.3333C5.11861 13.3333 2.68438 10.9339 2.68438 8.00128C2.68438 5.06861 5.11861 2.66918 8.09376 2.66918C9.58136 2.66918 10.9337 3.26904 12.0156 4.33546L8.09376 9.20096L5.79479 6.80154Z",fill:"white"}))),QC=t=>N.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M15.8 22.0002H6C4 22.0002 2.5 20.5002 2.5 18.5002V8.7002C2.5 6.8002 4 5.2002 6 5.2002H15.8C17.7 5.2002 19.3 6.7002 19.3 8.7002V18.5002C19.2 20.5002 17.7 22.0002 15.8 22.0002ZM6 7.3002C5.2 7.3002 4.5 7.9002 4.5 8.7002V18.5002C4.5 19.3002 5.2 20.0002 6 20.0002H15.8C16.6 20.0002 17.3 19.3002 17.3 18.5002V8.7002C17.3 7.9002 16.6 7.2002 15.8 7.2002H6V7.3002Z",fill:"#107D57"}),N.createElement("path",{d:"M21.5016 17.9C20.9016 17.9 20.5016 17.5 20.5016 16.9V6.3C20.5016 5 19.5016 4 18.2016 4H7.60157C7.00156 4 6.60156 3.6 6.60156 3C6.60156 2.4 7.00156 2 7.60157 2H18.2016C20.6016 2 22.5016 3.9 22.5016 6.3V16.9C22.5016 17.5 22.1016 17.9 21.5016 17.9Z",fill:"#107D57"})),KC=t=>N.createElement("svg",{width:35,height:35,viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Features"},N.createElement("path",{id:"Icon",d:"M29.481 9.15331H24.5286V8.57275C24.5286 8.25228 24.282 7.99219 23.9783 7.99219H10.7717C10.468 7.99219 10.2215 8.25228 10.2215 8.57275V9.15331H5.26902C4.96527 9.15331 4.71875 9.4134 4.71875 9.73388V12.5945C4.71875 16.4366 7.68032 19.5612 11.322 19.5612C11.344 19.5612 11.3627 19.5508 11.3837 19.5484C12.3752 21.1508 13.9204 22.3491 15.7088 22.8205C15.6395 24.2719 15.2884 24.8688 14.2297 26.0183L13.9303 26.3411C12.416 27.9806 11.322 27.9511 11.322 29.2725C11.322 29.5929 11.5685 29.853 11.8723 29.853H22.8777C23.1815 29.853 23.428 29.5929 23.428 29.2725C23.428 27.9511 22.3341 27.9806 20.8197 26.3411L20.5215 26.0172C19.4628 24.8677 19.1117 24.2707 19.0423 22.8193C20.8307 22.3491 22.3759 21.1496 23.3675 19.5473C23.3873 19.5508 23.406 19.5612 23.428 19.5612C27.0697 19.5612 30.0313 16.4366 30.0313 12.5945V9.73388C30.0313 9.4134 29.7848 9.15331 29.481 9.15331ZM5.81929 12.5945V10.3144H10.2215V15.4973C10.2215 16.497 10.4196 17.4584 10.7717 18.342C7.99947 18.0459 5.81929 15.5971 5.81929 12.5945ZM28.9307 12.5945C28.9307 15.5971 26.7506 18.0459 23.9783 18.342C24.3305 17.4596 24.5286 16.4982 24.5286 15.4973V10.3144H28.9307V12.5945Z",fill:"white"}))),$C=t=>N.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"CarbonUserAvatar 1"},N.createElement("g",{id:"Group 232"},N.createElement("path",{id:"Vector",d:"M19.9992 14.2861C19.2928 14.2861 18.6023 14.4956 18.015 14.888C17.4277 15.2805 16.9699 15.8382 16.6996 16.4908C16.4293 17.1434 16.3586 17.8615 16.4964 18.5543C16.6342 19.2471 16.9743 19.8835 17.4738 20.3829C17.9733 20.8824 18.6096 21.2226 19.3024 21.3604C19.9952 21.4982 20.7133 21.4274 21.3659 21.1571C22.0185 20.8868 22.5763 20.4291 22.9687 19.8417C23.3611 19.2544 23.5706 18.5639 23.5706 17.8576C23.5706 16.9104 23.1943 16.002 22.5245 15.3322C21.8548 14.6624 20.9464 14.2861 19.9992 14.2861ZM19.9992 20.0004C19.5753 20.0004 19.161 19.8747 18.8087 19.6393C18.4563 19.4038 18.1816 19.0692 18.0194 18.6776C17.8572 18.286 17.8148 17.8552 17.8975 17.4395C17.9802 17.0238 18.1843 16.642 18.4839 16.3423C18.7836 16.0426 19.1654 15.8386 19.5811 15.7559C19.9968 15.6732 20.4276 15.7156 20.8192 15.8778C21.2108 16.04 21.5454 16.3147 21.7809 16.6671C22.0163 17.0194 22.142 17.4337 22.142 17.8576C22.1415 18.4257 21.9155 18.9704 21.5138 19.3722C21.112 19.7739 20.5673 19.9999 19.9992 20.0004Z",fill:"white"}),N.createElement("path",{id:"Vector_2",d:"M20 10C18.0222 10 16.0888 10.5865 14.4443 11.6853C12.7998 12.7841 11.5181 14.3459 10.7612 16.1732C10.0043 18.0004 9.8063 20.0111 10.1922 21.9509C10.578 23.8907 11.5304 25.6725 12.9289 27.0711C14.3275 28.4696 16.1093 29.422 18.0491 29.8078C19.9889 30.1937 21.9996 29.9957 23.8268 29.2388C25.6541 28.4819 27.2159 27.2002 28.3147 25.5557C29.4135 23.9112 30 21.9778 30 20C29.997 17.3488 28.9424 14.807 27.0677 12.9323C25.193 11.0576 22.6512 10.003 20 10ZM15.7143 27.4121V26.4286C15.7149 25.8604 15.9408 25.3157 16.3425 24.914C16.7443 24.5122 17.289 24.2863 17.8571 24.2857H22.1429C22.711 24.2863 23.2557 24.5122 23.6575 24.914C24.0592 25.3157 24.2851 25.8604 24.2857 26.4286V27.4121C22.9851 28.1716 21.5061 28.5718 20 28.5718C18.4939 28.5718 17.0149 28.1716 15.7143 27.4121ZM25.7086 26.3757C25.6943 25.4388 25.3126 24.545 24.6457 23.8868C23.9787 23.2287 23.0799 22.8589 22.1429 22.8571H17.8571C16.9201 22.8589 16.0213 23.2287 15.3544 23.8868C14.6874 24.545 14.3057 25.4388 14.2914 26.3757C12.9961 25.2191 12.0827 23.6963 11.672 22.009C11.2614 20.3218 11.3729 18.5495 11.9919 16.927C12.6108 15.3046 13.708 13.9083 15.1381 12.9233C16.5682 11.9382 18.2638 11.4107 20.0004 11.4107C21.7369 11.4107 23.4325 11.9382 24.8626 12.9233C26.2927 13.9083 27.3899 15.3046 28.0088 16.927C28.6278 18.5495 28.7393 20.3218 28.3287 22.009C27.9181 23.6963 27.0039 25.2191 25.7086 26.3757Z",fill:"white"})))),zC=t=>N.createElement("svg",{width:12,height:13,viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Features"},N.createElement("g",{id:"Icon"},N.createElement("path",{d:"M6.2368 7.85018C6.38779 7.85018 6.49435 7.75233 6.50322 7.59222C6.76084 5.50185 6.85854 5.44848 8.99025 5.09267C9.15897 5.07488 9.25666 4.98592 9.25666 4.8347C9.25666 4.69238 9.15896 4.60343 9.0258 4.57675L8.93118 4.55875C6.87281 4.16737 6.75701 4.14535 6.50322 2.08609C6.49435 1.92597 6.38779 1.82812 6.2368 1.82812C6.10356 1.82812 5.99699 1.92597 5.98805 2.07719C5.71277 4.20315 5.64167 4.26541 3.46555 4.57675C3.3323 4.59454 3.23461 4.69238 3.23461 4.8347C3.23461 4.97703 3.3323 5.07488 3.46555 5.09267L3.53156 5.10562C5.64296 5.51968 5.70672 5.53218 5.98805 7.61001C5.99699 7.75233 6.10356 7.85018 6.2368 7.85018Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{d:"M7.8622 11.3244C7.9435 11.3244 8.00088 11.2718 8.00566 11.1855C8.14438 10.06 8.19699 10.0312 9.34483 9.83963C9.43568 9.83005 9.48828 9.78216 9.48828 9.70073C9.48828 9.62409 9.43568 9.57619 9.36397 9.56183L9.31302 9.55214C8.20467 9.34139 8.14231 9.32954 8.00566 8.2207C8.00088 8.13449 7.9435 8.0818 7.8622 8.0818C7.79046 8.0818 7.73307 8.13449 7.72826 8.21591C7.58003 9.36066 7.54175 9.39419 6.36999 9.56183C6.29824 9.57141 6.24564 9.62409 6.24564 9.70073C6.24564 9.77736 6.29824 9.83005 6.36999 9.83963L6.40553 9.84661C7.54244 10.0696 7.57678 10.0763 7.72826 11.1951C7.73307 11.2718 7.79046 11.3244 7.8622 11.3244Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{d:"M2.61901 7.53919C2.61628 7.58846 2.58349 7.61857 2.53703 7.61857C2.49604 7.61857 2.46325 7.58846 2.46049 7.54467C2.37393 6.90533 2.35431 6.90149 1.70465 6.77408L1.68434 6.7701C1.64334 6.76462 1.61328 6.73452 1.61328 6.69073C1.61328 6.64693 1.64334 6.61683 1.68434 6.61135C2.35392 6.51556 2.37579 6.4964 2.46049 5.84226C2.46325 5.79573 2.49604 5.76562 2.53703 5.76562C2.58349 5.76562 2.61628 5.79573 2.61901 5.845C2.6971 6.47862 2.73273 6.48539 3.36607 6.60582L3.39519 6.61135C3.43616 6.61956 3.46622 6.64693 3.46622 6.69073C3.46622 6.73725 3.43616 6.76462 3.38425 6.7701C2.72834 6.87958 2.69828 6.896 2.61901 7.53919Z",fill:"white",style:{fill:"white",fillOpacity:1}})))),qC=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("rect",{width:24,height:24,rx:12,fill:"white",fillOpacity:.1}),N.createElement("rect",{x:8.25,y:7,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(45 8.25 7)",fill:"white"}),N.createElement("rect",{x:7,y:15.75,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(-45 7 15.75)",fill:"white"})),eA=t=>N.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M9.16683 2.66671H7.16683C5.29999 2.66671 4.36657 2.66671 3.65353 3.03002C3.02632 3.3496 2.51639 3.85953 2.19681 4.48674C1.8335 5.19978 1.8335 6.1332 1.8335 8.00004V9.33337C1.8335 11.2002 1.8335 12.1336 2.19681 12.8467C2.51639 13.4739 3.02632 13.9838 3.65353 14.3034C4.36657 14.6667 5.29999 14.6667 7.16683 14.6667H8.50016C10.367 14.6667 11.3004 14.6667 12.0135 14.3034C12.6407 13.9838 13.1506 13.4739 13.4702 12.8467C13.8335 12.1336 13.8335 11.2002 13.8335 9.33337V7.33337M8.50016 8.00004L15.1668 1.33337M15.1668 1.33337H11.8335M15.1668 1.33337V4.66671",stroke:"#107D57",strokeLinecap:"round",strokeLinejoin:"round"})),tA=t=>N.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("rect",{width:32,height:32,rx:16,fill:"white"}),N.createElement("path",{d:"M10.4615 12.6875C9.44231 12.6875 8.61538 13.4665 8.61538 14.4266C8.61538 15.3868 9.44231 16.1658 10.4615 16.1658C11.4808 16.1658 12.3077 15.3868 12.3077 14.4266C12.3077 13.4665 11.4808 12.6875 10.4615 12.6875ZM10.4615 16.1658C9.10817 16.1658 8 17.2097 8 18.4846V19.7527C8 19.7527 8.61538 20.2237 10.4615 20.2237C12.3077 20.2237 12.9231 19.7527 12.9231 19.7527V18.4846C12.9231 17.2097 11.8149 16.1658 10.4615 16.1658ZM21.5385 12.6875C20.5192 12.6875 19.6923 13.4665 19.6923 14.4266C19.6923 15.3868 20.5192 16.1658 21.5385 16.1658C22.5577 16.1658 23.3846 15.3868 23.3846 14.4266C23.3846 13.4665 22.5577 12.6875 21.5385 12.6875ZM21.5385 16.1658C20.1851 16.1658 19.0769 17.2097 19.0769 18.4846V19.7527C19.0769 19.7527 19.6923 20.2237 21.5385 20.2237C23.3846 20.2237 24 19.7527 24 19.7527V18.4846C24 17.2097 22.8918 16.1658 21.5385 16.1658ZM16 15.0063C14.9808 15.0063 14.1538 15.7853 14.1538 16.7455C14.1538 17.7056 14.9808 18.4846 16 18.4846C17.0192 18.4846 17.8462 17.7056 17.8462 16.7455C17.8462 15.7853 17.0192 15.0063 16 15.0063ZM16 18.4846C14.6466 18.4846 13.5385 19.5285 13.5385 20.8034V22.0715C13.5385 22.0715 14.1538 22.5425 16 22.5425C17.8462 22.5425 18.4615 22.0715 18.4615 22.0715V20.8034C18.4615 19.5285 17.3534 18.4846 16 18.4846Z",fill:"#107D57"}),N.createElement("path",{opacity:.5,d:"M13.3908 9C12.3103 9 11.4336 9.82584 11.4336 10.8437C11.4336 11.8616 12.3103 12.6875 13.3908 12.6875C14.4713 12.6875 15.348 11.8616 15.348 10.8437C15.348 9.82584 14.4713 9 13.3908 9ZM13.3908 12.6875C13.1946 12.6875 12.9958 12.6827 12.7996 12.7451C13.192 13.2372 13.3908 13.8542 13.3908 14.5312C13.3908 14.7761 13.3296 15.0161 13.3296 15.261C13.8521 14.524 14.6956 14.0391 15.6742 13.9166C15.218 13.1796 14.3694 12.6875 13.3908 12.6875ZM18.61 9C17.5295 9 16.6528 9.82584 16.6528 10.8437C16.6528 11.8616 17.5295 12.6875 18.61 12.6875C19.6905 12.6875 20.5672 11.8616 20.5672 10.8437C20.5672 9.82584 19.6905 9 18.61 9ZM18.61 12.6875C17.6314 12.6875 16.7828 13.1796 16.3266 13.9166C17.3052 14.0391 18.1487 14.524 18.6712 15.261C18.6712 15.0161 18.61 14.7761 18.61 14.5312C18.61 13.8542 18.8088 13.2372 19.2012 12.7451C19.005 12.6827 18.8062 12.6875 18.61 12.6875Z",fill:"#107D57"})),nA=t=>N.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Share"},N.createElement("path",{id:"Vector",d:"M11 4.965V1.125L18 7.845L11 14.565V10.629C6 10.629 2.5 12.165 0 15.525C1 10.725 4 5.925 11 4.965Z",fill:"white"}))),iA=t=>N.createElement("svg",{width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"sc-ANdsN kTVWJE",...t},N.createElement("path",{d:"M6.6665 3.16669H4.99984C4.26346 3.16669 3.6665 3.76364 3.6665 4.50002V11.5C3.6665 12.2364 4.26346 12.8334 4.99984 12.8334H11.9998C12.7362 12.8334 13.3332 12.2364 13.3332 11.5V9.83335",stroke:"#ffffff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),N.createElement("path",{d:"M13.3335 6.16669V3.16669H10.3335",stroke:"#ffffff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),N.createElement("path",{d:"M13.1668 3.33331L8.3335 8.16665",stroke:"#ffffff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),rA=t=>N.createElement("svg",{width:17,height:18,viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Group"},N.createElement("path",{id:"Vector",d:"M12.5396 12.431L15.8603 9.00169L12.5396 5.57239",stroke:"#EB5757",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),N.createElement("path",{id:"Vector_2",d:"M15.8602 9.00159H5.57227",stroke:"#EB5757",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),N.createElement("path",{id:"Vector_3",d:"M12.431 1L3.2862 1.00229C2.02422 1.00343 1 2.02651 1 3.28849V14.7138C1 15.3201 1.24087 15.9016 1.66961 16.3304C2.09836 16.7591 2.67987 17 3.2862 17H12.5396",stroke:"#EB5757",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),sA=t=>N.createElement("svg",{width:99,height:96,viewBox:"0 0 99 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Masters Logo Big"},N.createElement("path",{id:"Vector",d:"M67.4732 4.82378C66.1754 4.41151 64.8776 5.1433 63.5798 5.88539C63.117 6.15337 62.7951 6.60687 62.6844 7.13253L60.6421 16.9035C60.5616 17.2642 60.8836 17.594 61.2357 17.5116C63.3786 17.0065 65.4208 15.0894 67.5738 15.7594C69.9783 16.5118 72.3928 13.3888 74.7972 13.43V2.1543C72.3626 2.1646 69.8776 5.57618 67.4732 4.82378Z",fill:"white"}),N.createElement("path",{id:"Vector_2",d:"M98.1678 34.7754C97.6547 34.4147 97.3429 33.8272 97.3429 33.1882V31.4051C97.3429 29.8075 96.0752 28.5089 94.5159 28.5089H93.3891C92.041 28.5089 90.8035 29.1994 90.0691 30.3538L86.4272 36.1153C86.065 36.6822 85.4514 37.0223 84.7974 37.0223H82.3427C81.1253 37.0223 80.0086 37.7026 79.4251 38.8054C78.8215 39.9392 77.7752 40.7225 76.5679 40.9905V0.917313C76.5679 0.412276 76.1756 0 75.6726 0C75.1796 0 74.7772 0.412276 74.7772 0.917313V2.15414V13.4196V41.0111C73.5699 40.7431 72.5236 39.9598 71.92 38.8261C71.3465 37.7232 70.2298 37.043 69.0125 37.043H67.3626C66.0547 37.043 64.8676 37.8366 64.3344 39.0528L62.9661 42.2067C62.7448 42.7014 62.2619 43.0313 61.7287 43.0313C61.1955 43.0313 60.7126 42.7118 60.4913 42.2067L59.123 39.0528C58.5898 37.8263 57.4027 37.0327 56.0948 37.0327H9.52479C9.14249 37.0327 8.84068 37.3419 8.84068 37.7335C8.84068 38.5478 8.18674 39.2177 7.39196 39.2177H5.37986C4.99757 39.2177 4.69575 39.5269 4.69575 39.9186V42.3098C4.69575 44.5567 4.26315 46.7624 3.42813 48.834L2.20075 51.8643C1.05385 54.6884 0.510584 57.5846 0.520645 60.4396V67.4071C0.520645 69.2932 0.782218 71.1897 1.31542 73.0449C2.81444 78.2396 6.20483 82.4963 10.893 85.0215L18.3378 89.0412C18.4384 89.0928 18.539 89.1237 18.6497 89.1237L24.1528 89.1649C25.4405 89.1752 26.7081 89.5153 27.8248 90.1544L30.7826 91.8447C30.8832 91.9065 30.9939 91.9375 31.1146 91.9375H35.0684C36.4567 91.9375 37.825 92.3291 39.0121 93.0609C39.0121 93.0609 40.9437 94.2668 41.5977 94.6585C42.6439 95.2872 43.9116 95.885 46.1148 95.9984C46.6178 96.019 47.1108 95.8438 47.483 95.483C47.8553 95.1223 48.0666 94.6172 48.0666 94.0916V91.3809C48.0666 89.4123 49.2034 87.6292 50.964 86.8355L57.0003 84.1145C57.8252 83.7435 58.7508 83.6816 59.6059 83.9496L61.8595 84.6402C62.8152 84.9288 63.8313 84.9391 64.7972 84.6402L70.1493 83.0117C70.8636 82.7952 71.6081 82.7952 72.3325 83.022L74.5055 83.6507C75.5216 83.9496 76.2259 84.8979 76.2259 85.9801V91.4118C76.2259 93.937 78.238 95.9984 80.7028 95.9984C82.5439 95.9984 84.1636 94.7822 84.7169 92.9888C85.723 89.7421 86.2361 86.3614 86.2361 82.9499V80.6411C86.2361 79.0023 86.9001 77.415 88.0671 76.2916L90.2905 74.1375C91.7895 72.6739 92.6547 70.6228 92.6547 68.4996V55.616C92.6547 53.6164 93.2382 51.6994 94.3549 50.0606C94.4354 49.9472 94.4756 49.8029 94.4756 49.6586V46.6284C94.4756 44.6494 95.0591 42.7324 96.1557 41.1039L98.359 37.8263C98.4395 37.7129 98.4797 37.5686 98.4797 37.4346V35.3732C98.4797 34.9713 98.2584 34.8373 98.1678 34.7754ZM74.7872 69.2211C73.2882 68.9943 72.1816 68.2007 72.1816 67.2628C72.1816 66.3248 73.2882 65.5312 74.7872 65.3045V69.2211ZM76.5679 65.2941C78.0669 65.5209 79.1736 66.3145 79.1736 67.2525C79.1736 68.1904 78.0669 68.984 76.5679 69.2108V65.2941ZM12.6637 84.3928L11.5268 83.7847C8.45838 82.1356 6.00362 79.6619 4.32351 76.673V72.9109C6.24507 75.7556 8.85074 78.1881 12.05 79.9093L12.6637 80.2391V84.3928ZM18.3478 87.4643L15.3398 85.8461V81.6924L18.3378 83.3106H18.3478V87.4643ZM30.8832 90.2987L28.4989 88.9382C27.2011 88.1961 25.7322 87.7941 24.2534 87.7735V83.4343C25.5009 83.4652 26.7383 83.795 27.8349 84.4237L30.7927 86.1141C30.8229 86.1347 30.853 86.1244 30.8832 86.1347V90.2987ZM46.6983 91.3706V93.4835V94.0813C46.6983 94.2256 46.638 94.3596 46.5474 94.4523C46.4468 94.5451 46.3261 94.5966 46.1953 94.5863C44.2939 94.4833 43.1973 93.9782 42.3019 93.432C41.658 93.0403 39.7365 91.8447 39.7264 91.8447C38.5191 91.1026 37.161 90.68 35.7626 90.577V86.2377C36.9095 86.3408 38.0262 86.7016 39.0222 87.3097L40.6821 88.33C42.5031 89.4535 44.5756 90.0925 46.6983 90.2059V91.3706ZM63.1372 83.4446C62.8354 83.424 62.5436 83.3827 62.2519 83.3003L59.9983 82.6097C59.5154 82.4654 59.0124 82.4036 58.5194 82.4036V78.0644C58.8816 78.0644 59.2538 78.1056 59.6059 78.2087L61.8595 78.8992C62.272 79.0229 62.7046 79.0848 63.1372 79.1054V83.4446ZM77.2923 84.4959C76.8597 83.4549 75.9945 82.62 74.8878 82.3005L72.7248 81.6718C72.2117 81.5069 71.6785 81.445 71.1453 81.4554V77.1265C71.5578 77.1161 71.9703 77.1677 72.3727 77.3017L74.1534 77.8789C76.0347 78.487 77.3024 80.2494 77.3024 82.2696V84.4959H77.2923ZM83.5197 92.1848C83.4795 92.3085 83.4594 92.4322 83.4191 92.5559C83.0368 93.7721 81.9503 94.5863 80.7028 94.5863C80.5921 94.5863 80.4815 94.5657 80.3708 94.5554V90.2265C80.4513 90.2368 80.5318 90.2471 80.6223 90.2471C81.8396 90.2471 82.9362 89.5463 83.5197 88.495V92.1848ZM95.1799 38.0118C93.8217 40.032 93.1074 42.4025 93.1074 44.8556V46.9994L92.051 48.5661C90.6828 50.5965 89.9484 52.9774 89.9484 55.4408V66.2218C89.9484 67.9739 89.2442 69.6643 88.0067 70.8702L85.7834 73.0346C84.2944 74.4879 83.4694 76.539 83.5298 78.6519L83.5399 79.1363C83.6203 81.9398 83.2682 84.7226 82.5137 87.4127C82.2722 88.2682 81.4976 88.866 80.6223 88.866C79.5358 88.866 78.6605 87.959 78.6605 86.8562V82.2696C78.6605 79.631 77.0106 77.3326 74.5558 76.539L72.7751 75.9618C71.7892 75.6423 70.753 75.6423 69.767 75.9412L64.4149 77.5697C63.7106 77.7861 62.9661 77.7861 62.2519 77.5697L59.9983 76.8791C58.8313 76.5183 57.5637 76.6008 56.4469 77.1058L51.6883 79.2497C48.6501 80.6102 46.6883 83.6919 46.6883 87.0932V88.8454C44.817 88.732 42.986 88.1548 41.3763 87.1654L39.7163 86.145C38.3079 85.2792 36.7083 84.8257 35.0684 84.8257H31.3058L28.5089 83.2281C27.191 82.4757 25.692 82.0635 24.1729 82.0532L18.8307 82.0119L12.6938 78.7034C3.38789 73.653 -0.58601 62.367 3.45831 52.4208L4.68569 49.3906C5.6012 47.1437 6.06398 44.7628 6.06398 42.3304V40.6401H7.39196C8.70989 40.6401 9.81654 39.7021 10.1284 38.455H56.0948C56.8594 38.455 57.5637 38.9188 57.8755 39.6403L59.2438 42.7942C59.6764 43.8043 60.6522 44.4536 61.7287 44.4536C62.8052 44.4536 63.781 43.8043 64.2136 42.8045L65.5819 39.6506C65.8938 38.9291 66.5879 38.4653 67.3626 38.4653H69.0125C69.7268 38.4653 70.3807 38.8673 70.7228 39.5063C71.5679 41.1039 73.0769 42.1758 74.7872 42.4541V62.2639C72.0307 62.5731 69.918 64.2532 69.918 66.3042C69.918 68.5614 72.4934 70.3961 75.6726 70.3961C78.8517 70.3961 81.4272 68.5614 81.4272 66.3042C81.4272 64.2635 79.3145 62.5731 76.5579 62.2639V42.4438C78.2682 42.1655 79.7772 41.0936 80.6223 39.496C80.9644 38.857 81.6183 38.455 82.3326 38.455H84.7874C85.9141 38.455 86.9504 37.8778 87.5641 36.909L91.206 31.1371C91.6889 30.3847 92.4937 29.9312 93.379 29.9312H94.5058C95.3106 29.9312 95.9646 30.6012 95.9646 31.4257V33.2088C95.9646 34.0746 96.2865 34.8888 96.86 35.4969L95.1799 38.0118Z",fill:"white"}))),aA=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M2.25 10.0514C2.25 8.97447 3.12304 8.10142 4.2 8.10142H6.91992C7.2891 8.10142 7.64086 7.94446 7.88744 7.66971L10.4825 4.77808C11.2789 3.8907 12.75 4.45403 12.75 5.64636V18.3565C12.75 19.5488 11.2789 20.1121 10.4825 19.2248L7.88744 16.3331C7.64086 16.0584 7.2891 15.9014 6.91992 15.9014H4.2C3.12304 15.9014 2.25 15.0284 2.25 13.9514V10.0514Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{d:"M18.0226 12.5545L19.8749 14.4067C20.1678 14.6996 20.6427 14.6996 20.9356 14.4067C21.2284 14.1138 21.2284 13.6389 20.9355 13.346L19.0833 11.4939L20.9355 9.64182C21.2284 9.34894 21.2284 8.87406 20.9356 8.58116C20.6427 8.28825 20.1678 8.28824 19.8749 8.58112L18.0226 10.4333L16.1703 8.58112C15.8774 8.28824 15.4025 8.28825 15.1096 8.58116C14.8167 8.87406 14.8167 9.34894 15.1096 9.64182L16.9619 11.4939L15.1096 13.346C14.8167 13.6389 14.8167 14.1138 15.1096 14.4067C15.4025 14.6996 15.8774 14.6996 16.1703 14.4067L18.0226 12.5545Z",fill:"white",style:{fill:"white",fillOpacity:1}})),oA=t=>N.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("circle",{opacity:.5,cx:24,cy:24,r:24,fill:"black",style:{fill:"black",fillOpacity:1}}),N.createElement("rect",{x:18,y:13.999,width:4,height:20,rx:1,fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("rect",{x:26,y:13.999,width:4,height:20,rx:1,fill:"white",style:{fill:"white",fillOpacity:1}})),lA=t=>N.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("circle",{opacity:.5,cx:24,cy:24.001,r:24,fill:"black"}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5432 24.7938C33.215 24.3331 33.2822 23.5173 32.5432 23.0567C23.7807 17.6245 19.6442 14.918 19.1356 14.5917C18.3486 14.083 17.6 14.6973 17.6 15.2059V32.7501C17.6 33.3259 18.5309 33.8442 19.1356 33.4795C20.2201 32.8172 31.8714 25.2641 32.5336 24.8034L32.5432 24.7938Z",fill:"white"})),cA=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M18.5625 5.0625V18.9375M15.6454 11.3897L7.18592 5.3471C6.68953 4.99253 6 5.34737 6 5.95739L6 18.0426C6 18.6526 6.68953 19.0075 7.18592 18.6529L15.6454 12.6103C16.0642 12.3112 16.0642 11.6888 15.6454 11.3897Z",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),uA=t=>N.createElement("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{id:"Start - You",d:"M8 0L9.79611 5.52786H15.6085L10.9062 8.94427L12.7023 14.4721L8 11.0557L3.29772 14.4721L5.09383 8.94427L0.391548 5.52786H6.20389L8 0Z",fill:"#F4D22A"})),dA=t=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:22,viewBox:"0 0 22 22",fill:"none",...t},N.createElement("path",{d:"M5.5 2.78867V12.4137C5.5 13.1729 4.88426 13.75 4.125 13.75H1.375C0.615742 13.75 0 13.1343 0 12.4137V2.82734C0 2.06808 0.615742 1.49102 1.375 1.49102H4.125C4.88555 1.41367 5.5 1.99375 5.5 2.78867ZM22 12.3707C22 13.5094 21.077 14.4323 19.9375 14.4323H13.6426C14.621 16.0613 15.1259 17.9077 15.1259 18.5582C15.125 19.5714 14.3301 20.625 12.998 20.625C10.2854 20.625 11.8654 17.3529 8.34883 14.5406L7.64844 13.982C7.14141 13.5738 6.88359 12.9766 6.8793 12.375C6.87829 12.374 6.8793 12.375 6.8793 12.375L6.875 5.5C6.875 4.85117 7.18064 4.23973 7.7 3.85043L9.16695 2.75086C10.3555 1.85625 11.8035 1.375 13.2902 1.375H15.8125C16.952 1.375 17.875 2.29754 17.875 3.43664C17.875 3.59283 17.8544 3.74357 17.8215 3.88996C18.6484 4.15937 19.25 4.92422 19.25 5.84375C19.25 6.23683 19.1341 6.60043 18.9432 6.91281C19.8988 7.08984 20.625 7.92773 20.625 8.9332C20.625 9.47031 20.4148 9.955 20.0784 10.322C21.1492 10.3941 22 11.2793 22 12.3707Z",fill:"white"})),hA=t=>N.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M17.4777 8.95762C17.4777 8.70612 17.4177 8.47012 17.3172 8.25562C16.6467 6.09262 13.5077 6.25062 9.04275 6.14512C8.29625 6.12762 8.72325 5.24612 8.98525 3.31112C9.15575 2.05262 8.34425 0.120117 6.98025 0.120117C4.73125 0.120117 6.89475 1.89412 4.90625 6.28112C3.84375 8.62512 1.46875 7.31212 1.46875 9.66662V15.0261C1.46875 15.9426 1.55875 16.8236 2.84775 16.9686C4.09725 17.1091 3.81625 17.9996 5.61875 17.9996H14.6407C15.5597 17.9996 16.3072 17.2516 16.3072 16.3326C16.3072 15.9516 16.1737 15.6046 15.9582 15.3236C16.4682 15.0381 16.8182 14.4991 16.8182 13.8741C16.8182 13.4941 16.6852 13.1471 16.4702 12.8666C16.9817 12.5816 17.3327 12.0421 17.3327 11.4161C17.3327 10.9616 17.1487 10.5496 16.8522 10.2481C17.2307 9.94262 17.4777 9.48062 17.4777 8.95762Z",fill:"white"}),N.createElement("path",{d:"M11.5088 10.625H15.8108C16.3958 10.625 16.9448 10.312 17.2438 9.80849C17.3668 9.60099 17.2983 9.33249 17.0903 9.20899C16.8828 9.08549 16.6143 9.15499 16.4908 9.36249C16.3493 9.60199 16.0878 9.74999 15.8103 9.74999H11.4053C10.9688 9.74999 10.6138 9.39499 10.6138 8.95849C10.6138 8.52199 10.9688 8.16699 11.4053 8.16699H14.3488C14.5903 8.16699 14.7863 7.97099 14.7863 7.72949C14.7863 7.48799 14.5903 7.29199 14.3488 7.29199H11.4048C10.4858 7.29199 9.73828 8.03949 9.73828 8.95849C9.73828 9.47099 9.97578 9.92449 10.3408 10.2305C10.0333 10.533 9.84178 10.953 9.84178 11.417C9.84178 11.931 10.0808 12.386 10.4478 12.6915C10.1423 12.9935 9.95278 13.412 9.95278 13.875C9.95278 14.435 10.2323 14.929 10.6573 15.2315C10.3953 15.526 10.2313 15.9095 10.2313 16.3335C10.2313 17.2525 10.9788 18 11.8978 18H14.6398C15.2248 18 15.7743 17.6875 16.0733 17.184C16.1968 16.9765 16.1283 16.708 15.9208 16.5845C15.7128 16.462 15.4443 16.5295 15.3213 16.737C15.1788 16.9765 14.9173 17.125 14.6398 17.125H11.8978C11.4613 17.125 11.1063 16.77 11.1063 16.3335C11.1063 15.897 11.4613 15.542 11.8978 15.542H15.1508C15.7358 15.542 16.2858 15.229 16.5843 14.7255C16.7078 14.5175 16.6393 14.249 16.4318 14.126C16.2223 14.0005 15.9548 14.071 15.8323 14.2785C15.6878 14.522 15.4328 14.667 15.1508 14.667H11.6193C11.1828 14.667 10.8278 14.3115 10.8278 13.875C10.8278 13.4385 11.1828 13.0835 11.6193 13.0835H15.6648C16.2498 13.0835 16.7993 12.771 17.0983 12.2675C17.2218 12.06 17.1533 11.7915 16.9458 11.668C16.7373 11.545 16.4693 11.613 16.3463 11.8205C16.2018 12.0635 15.9468 12.2085 15.6648 12.2085H11.5088C11.0723 12.2085 10.7173 11.8535 10.7173 11.417C10.7173 10.9805 11.0718 10.625 11.5088 10.625Z",fill:"#107D57"})),pA=t=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Trivia"},N.createElement("rect",{id:"Rectangle 328",x:.56009,y:2.8074,width:16.55,height:16.55,rx:2.14375,transform:"rotate(-7.80777 0.56009 2.8074)",stroke:"#006747",style:{stroke:"#006747",stroke:"color(display-p3 0.0000 0.4039 0.2784)",strokeOpacity:1},strokeWidth:1.4}),N.createElement("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M9.62237 4.17188C10.5053 4.17188 11.2837 4.37793 11.8733 4.76716L11.8732 4.76718C12.5572 5.21938 12.9636 5.89049 13.0796 6.75908C13.2656 8.14856 12.2625 9.08727 11.5284 9.77271C11.2207 10.0589 10.956 10.3079 10.8501 10.5183C10.7752 10.6652 10.7366 10.8269 10.6992 10.9839C10.698 10.989 10.6967 10.994 10.6955 10.9991L10.6952 11.0004C10.5952 11.4278 10.4915 11.8706 9.72822 11.9721C9.67385 11.9793 9.6209 11.9821 9.56938 11.9821C9.28746 11.9821 9.03705 11.8777 8.84673 11.6788C8.67931 11.5056 8.56912 11.2738 8.53621 11.0234C8.40767 10.0551 9.08301 9.37328 9.68028 8.77031L9.68384 8.76671C10.2176 8.23011 10.7199 7.72213 10.6354 7.08534C10.5496 6.43425 10.1275 6.07652 9.44917 6.07652C9.35902 6.07652 9.26601 6.08367 9.1687 6.09655C8.22588 6.22243 8.06263 6.74456 7.88952 7.29821L7.88941 7.29854C7.73775 7.78506 7.58034 8.28732 6.85055 8.38463C6.79188 8.39178 6.73178 8.39608 6.6731 8.39608C6.1279 8.39608 5.72868 8.05407 5.65856 7.52462C5.56127 6.80772 5.86319 6.0307 6.48137 5.39534C7.0924 4.77002 7.94814 4.34216 8.8296 4.22482C9.09577 4.19048 9.36193 4.17188 9.62237 4.17188ZM9.88998 12.7224C9.94722 12.7152 10.0059 12.7109 10.0631 12.7109C10.7228 12.7109 11.2866 13.2032 11.3753 13.8586C11.4697 14.5812 10.9618 15.2466 10.2391 15.3439C10.1804 15.3511 10.1218 15.3554 10.0645 15.3554C9.40485 15.3554 8.84107 14.8617 8.75378 14.2077C8.65791 13.4851 9.16732 12.8197 9.88998 12.7224Z",fill:"#006747",style:{fill:"#006747",fill:"color(display-p3 0.0000 0.4039 0.2784)",fillOpacity:1}}))),mA=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M20.6087 5.32569H17.087V4.91284C17.087 4.68495 16.9117 4.5 16.6957 4.5H7.30435C7.08835 4.5 6.91305 4.68495 6.91305 4.91284V5.32569H3.3913C3.1753 5.32569 3 5.51064 3 5.73853V7.77273C3 10.5049 5.106 12.7269 7.69566 12.7269C7.71131 12.7269 7.72462 12.7194 7.73948 12.7178C8.44462 13.8572 9.5434 14.7093 10.8151 15.0446C10.7658 16.0767 10.5162 16.5012 9.76331 17.3186L9.55044 17.5481C8.47357 18.714 7.69566 18.693 7.69566 19.6326C7.69566 19.8605 7.87096 20.0455 8.08696 20.0455H15.9131C16.1291 20.0455 16.3044 19.8605 16.3044 19.6326C16.3044 18.693 15.5265 18.714 14.4496 17.5481L14.2375 17.3178C13.4846 16.5003 13.235 16.0759 13.1857 15.0437C14.4574 14.7093 15.5562 13.8564 16.2613 12.717C16.2754 12.7194 16.2887 12.7269 16.3044 12.7269C18.894 12.7269 21 10.5049 21 7.77273V5.73853C21 5.51064 20.8247 5.32569 20.6087 5.32569ZM3.78261 7.77273V6.15138H6.91305V9.83695C6.91305 10.5479 7.05392 11.2315 7.30435 11.8599C5.33296 11.6493 3.78261 9.90796 3.78261 7.77273ZM20.2174 7.77273C20.2174 9.90796 18.6671 11.6493 16.6957 11.8599C16.9461 11.2324 17.087 10.5487 17.087 9.83695V6.15138H20.2174V7.77273Z",fill:"#107D57",style:{fill:"#107D57",fill:"color(display-p3 0.0627 0.4902 0.3412)",fillOpacity:1}})),gA=t=>N.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Trophy"},N.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M2.76916 3.50002C2.76916 4.49786 2.94705 5.38348 3.30282 6.15692C2.62493 6.01847 2.05883 5.74872 1.6045 5.34768C1.15017 4.94663 0.923008 4.55992 0.923008 4.18752V3.50002H2.76916ZM11.0768 3.50002V4.18752C11.0768 4.55992 10.8497 4.94663 10.3953 5.34768C9.941 5.74872 9.3749 6.01847 8.69701 6.15692C9.05278 5.38348 9.23066 4.49786 9.23066 3.50002H11.0768ZM12 4.1875V3.27083C12 3.07986 11.9327 2.91754 11.7981 2.78385C11.6635 2.65017 11.5 2.58333 11.3077 2.58333H9.23077V1.89583C9.23077 1.58073 9.11779 1.31098 8.89183 1.08659C8.66586 0.862195 8.39423 0.75 8.07692 0.75H3.92308C3.60577 0.75 3.33414 0.862195 3.10817 1.08659C2.88221 1.31098 2.76923 1.58073 2.76923 1.89583V2.58333H0.692308C0.499999 2.58333 0.336539 2.65017 0.201923 2.78385C0.067307 2.91754 0 3.07986 0 3.27083V4.1875C0 4.52648 0.0997586 4.86784 0.299279 5.21159C0.498799 5.55534 0.768027 5.86567 1.10697 6.14258C1.44592 6.41949 1.86178 6.65223 2.35457 6.84082C2.84736 7.02941 3.36538 7.13563 3.90865 7.15951C4.11058 7.41732 4.33894 7.6441 4.59375 7.83984C4.77644 8.00217 4.90264 8.17524 4.97236 8.35905C5.04207 8.54286 5.07692 8.75651 5.07692 9C5.07692 9.25781 5.00361 9.47504 4.85697 9.65169C4.71034 9.82834 4.47596 9.91667 4.15385 9.91667C3.79327 9.91667 3.47236 10.0253 3.19111 10.2425C2.90985 10.4597 2.76923 10.7331 2.76923 11.0625V11.5208C2.76923 11.5877 2.79087 11.6426 2.83413 11.6855C2.8774 11.7285 2.93269 11.75 3 11.75H9C9.06731 11.75 9.1226 11.7285 9.16586 11.6855C9.20913 11.6426 9.23077 11.5877 9.23077 11.5208V11.0625C9.23077 10.7331 9.09015 10.4597 8.80889 10.2425C8.52764 10.0253 8.20673 9.91667 7.84615 9.91667C7.52404 9.91667 7.28966 9.82834 7.14303 9.65169C6.99639 9.47504 6.92308 9.25781 6.92308 9C6.92308 8.75651 6.95793 8.54286 7.02764 8.35905C7.09736 8.17524 7.22356 8.00217 7.40625 7.83984C7.66106 7.6441 7.88942 7.41732 8.09135 7.15951C8.63462 7.13563 9.15264 7.02941 9.64543 6.84082C10.1382 6.65223 10.5541 6.41949 10.893 6.14258C11.232 5.86567 11.5012 5.55534 11.7007 5.21159C11.9002 4.86784 12 4.52648 12 4.1875ZM5.07033 5.38491L6.0383 4.87503L7.00627 5.38491L6.8214 4.30497L7.60451 3.54016L6.52228 3.3826L6.0383 2.40003L5.55431 3.3826L4.47209 3.54016L5.25519 4.30497L5.07033 5.38491Z",fill:"white"}))),fA=t=>N.createElement("svg",{width:40,height:39,viewBox:"0 0 40 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("rect",{x:.796875,width:38.4,height:38.4,rx:19.2,fill:"#FFB600"}),N.createElement("path",{d:"M31.2752 10.8509H26.5795V10.3005C26.5795 9.99661 26.3458 9.75 26.0578 9.75H13.536C13.248 9.75 13.0143 9.99661 13.0143 10.3005V10.8509H8.31861C8.03061 10.8509 7.79688 11.0975 7.79688 11.4014V14.1136C7.79688 17.7566 10.6049 20.7192 14.0578 20.7192C14.0786 20.7192 14.0964 20.7092 14.1162 20.707C15.0564 22.2263 16.5214 23.3625 18.2171 23.8094C18.1513 25.1856 17.8185 25.7516 16.8146 26.8415L16.5308 27.1475C15.095 28.702 14.0578 28.674 14.0578 29.9268C14.0578 30.2307 14.2915 30.4773 14.5795 30.4773H25.0143C25.3023 30.4773 25.536 30.2307 25.536 29.9268C25.536 28.674 24.4988 28.702 23.063 27.1475L22.7802 26.8404C21.7764 25.7505 21.4435 25.1845 21.3778 23.8083C23.0734 23.3625 24.5385 22.2252 25.4786 20.7059C25.4974 20.7092 25.5152 20.7192 25.536 20.7192C28.9889 20.7192 31.7969 17.7566 31.7969 14.1136V11.4014C31.7969 11.0975 31.5632 10.8509 31.2752 10.8509ZM8.84035 14.1136V11.9518H13.0143V16.8659C13.0143 17.8138 13.2021 18.7254 13.536 19.5632C10.9075 19.2825 8.84035 16.9606 8.84035 14.1136ZM30.7534 14.1136C30.7534 16.9606 28.6863 19.2825 26.0578 19.5632C26.3917 18.7265 26.5795 17.8149 26.5795 16.8659V11.9518H30.7534V14.1136Z",fill:"white"})),yA=t=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Trophy"},N.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M3.69197 4.66662C3.69197 5.99705 3.92914 7.17787 4.4035 8.20912C3.49966 8.02451 2.74487 7.66486 2.1391 7.13014C1.53333 6.59542 1.23046 6.0798 1.23046 5.58328V4.66662H3.69197ZM14.7686 4.66662V5.58328C14.7686 6.0798 14.4658 6.59542 13.86 7.13014C13.2542 7.66486 12.4994 8.02451 11.5956 8.20912C12.0699 7.17787 12.3071 5.99705 12.3071 4.66662H14.7686ZM15.9998 5.58329V4.36108C15.9998 4.10645 15.9101 3.89002 15.7306 3.71178C15.5511 3.53354 15.3332 3.44442 15.0768 3.44442H12.3076V2.52776C12.3076 2.10763 12.1569 1.74797 11.8556 1.44878C11.5544 1.14959 11.1922 1 10.7691 1H5.23072C4.80764 1 4.44547 1.14959 4.14419 1.44878C3.84291 1.74797 3.69227 2.10763 3.69227 2.52776V3.44442H0.923068C0.666659 3.44442 0.448714 3.53354 0.269228 3.71178C0.0897418 3.89002 0 4.10645 0 4.36108V5.58329C0 6.03525 0.13301 6.49039 0.399034 6.94872C0.665059 7.40705 1.02403 7.82082 1.47595 8.19003C1.92787 8.55924 2.48234 8.86957 3.13939 9.12101C3.79644 9.37246 4.48713 9.51409 5.21149 9.54592C5.48071 9.88967 5.7852 10.192 6.12494 10.453C6.36853 10.6695 6.53679 10.9002 6.62974 11.1453C6.72269 11.3904 6.76916 11.6752 6.76916 11.9999C6.76916 12.3436 6.67141 12.6333 6.4759 12.8688C6.28038 13.1043 5.96789 13.2221 5.53841 13.2221C5.05764 13.2221 4.62976 13.3669 4.25476 13.6566C3.87977 13.9462 3.69227 14.3106 3.69227 14.7499V15.361C3.69227 15.4501 3.72112 15.5233 3.77881 15.5806C3.8365 15.6379 3.91022 15.6665 3.99996 15.6665H11.9999C12.0896 15.6665 12.1633 15.6379 12.221 15.5806C12.2787 15.5233 12.3076 15.4501 12.3076 15.361V14.7499C12.3076 14.3106 12.1201 13.9462 11.7451 13.6566C11.3701 13.3669 10.9422 13.2221 10.4614 13.2221C10.0319 13.2221 9.71945 13.1043 9.52394 12.8688C9.32843 12.6333 9.23068 12.3436 9.23068 11.9999C9.23068 11.6752 9.27715 11.3904 9.3701 11.1453C9.46305 10.9002 9.63131 10.6695 9.8749 10.453C10.2146 10.192 10.5191 9.88967 10.7884 9.54592C11.5127 9.51409 12.2034 9.37246 12.8604 9.12101C13.5175 8.86957 14.072 8.55924 14.5239 8.19003C14.9758 7.82082 15.3348 7.40705 15.6008 6.94872C15.8668 6.49039 15.9998 6.03525 15.9998 5.58329ZM6.76047 7.1798L8.05109 6.49997L9.3417 7.1798L9.09521 5.73989L10.1393 4.72015L8.69639 4.51007L8.05109 3.2L7.40578 4.51007L5.96283 4.72015L7.00696 5.73989L6.76047 7.1798Z",fill:"#F2C94C"}))),bA=t=>N.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9234 2.06117C12.6527 2.79041 12.797 3.88306 12.3564 4.75616L12.3698 4.78833C13.2984 5.09432 13.9688 5.96888 13.9688 7C13.9688 8.03112 13.2984 8.90568 12.3698 9.21167L12.3565 9.24364C12.7971 10.1167 12.6527 11.2094 11.9235 11.9386C11.1944 12.6678 10.1019 12.8122 9.22883 12.3718L9.19604 12.3854C8.89006 13.314 8.0155 13.9844 6.98438 13.9844C5.95325 13.9844 5.07869 13.314 4.77271 12.3854L4.74027 12.3719C3.8673 12.8121 2.77506 12.6676 2.04603 11.9386C1.31703 11.2096 1.17255 10.1174 1.61259 9.24445L1.59899 9.21167C0.670333 8.90568 0 8.03112 0 7C0 5.96888 0.670334 5.09432 1.59899 4.78833L1.61267 4.75535C1.17263 3.8824 1.31711 2.79023 2.04611 2.06123C2.77519 1.33215 3.86754 1.18772 4.74054 1.62795L4.77271 1.61461C5.07869 0.685958 5.95325 0.015625 6.98438 0.015625C8.0155 0.015625 8.89006 0.685958 9.19604 1.61461L9.22857 1.6281C10.1016 1.18761 11.1942 1.33196 11.9234 2.06117ZM9.80606 4.98029C9.97643 4.7077 9.89356 4.34862 9.62098 4.17825C9.34839 4.00788 8.98931 4.09075 8.81894 4.36333L6.29655 8.39915L5.06781 7.17041C4.84051 6.94311 4.47199 6.94311 4.24469 7.17041C4.01739 7.39771 4.01739 7.76623 4.24469 7.99353L5.99079 9.73962C6.11621 9.86504 6.29197 9.92642 6.4682 9.90635C6.64444 9.88628 6.8019 9.78695 6.89591 9.63654L9.80606 4.98029Z",fill:"#0092E9"})),EA=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3616 7.95688C15.7313 7.77023 16.1824 7.91869 16.3691 8.28847C16.9328 9.40532 17.25 10.6674 17.25 12.0014C17.25 13.3354 16.9328 14.5975 16.3691 15.7144C16.1824 16.0841 15.7313 16.2326 15.3616 16.0459C14.9918 15.8593 14.8433 15.4082 15.03 15.0385C15.4903 14.1264 15.75 13.0953 15.75 12.0014C15.75 10.9075 15.4903 9.87641 15.03 8.96438C14.8433 8.5946 14.9918 8.14353 15.3616 7.95688Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.507 5.93713C18.87 5.73776 19.326 5.87048 19.5254 6.23356C20.4656 7.94589 21 9.91236 21 12.0014C21 14.0905 20.4656 16.057 19.5254 17.7693C19.326 18.1324 18.87 18.2651 18.507 18.0657C18.1439 17.8663 18.0112 17.4104 18.2105 17.0473C19.0323 15.5506 19.5 13.8318 19.5 12.0014C19.5 10.1711 19.0323 8.45221 18.2105 6.95552C18.0112 6.59244 18.1439 6.13649 18.507 5.93713Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{d:"M2.25 10.0514C2.25 8.97447 3.12304 8.10142 4.2 8.10142H6.91992C7.2891 8.10142 7.64086 7.94446 7.88744 7.66971L10.4825 4.77808C11.2789 3.8907 12.75 4.45403 12.75 5.64636V18.3565C12.75 19.5488 11.2789 20.1122 10.4825 19.2248L7.88744 16.3331C7.64086 16.0584 7.2891 15.9014 6.91992 15.9014H4.2C3.12304 15.9014 2.25 15.0284 2.25 13.9514V10.0514Z",fill:"white",style:{fill:"white",fillOpacity:1}})),TA=t=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Chevron Up"},N.createElement("path",{id:"Vector",d:"M4 9.6001L8 5.6001L12 9.6001",stroke:"#107D57",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}))),vA=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"cross"},N.createElement("path",{id:"Vector",d:"M6 18L18 6M6 6L18 18",stroke:"#BA0C2F",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),CA=t=>N.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Friends"},N.createElement("path",{id:"Vector",d:"M4.19231 7.03125C2.66346 7.03125 1.42308 8.19973 1.42308 9.63994C1.42308 11.0802 2.66346 12.2486 4.19231 12.2486C5.72115 12.2486 6.96154 11.0802 6.96154 9.63994C6.96154 8.19973 5.72115 7.03125 4.19231 7.03125ZM4.19231 12.2486C2.16226 12.2486 0.5 13.8145 0.5 15.7269V17.629C0.5 17.629 1.42308 18.3356 4.19231 18.3356C6.96154 18.3356 7.88461 17.629 7.88461 17.629V15.7269C7.88461 13.8145 6.22236 12.2486 4.19231 12.2486ZM20.8077 7.03125C19.2788 7.03125 18.0385 8.19973 18.0385 9.63994C18.0385 11.0802 19.2788 12.2486 20.8077 12.2486C22.3365 12.2486 23.5769 11.0802 23.5769 9.63994C23.5769 8.19973 22.3365 7.03125 20.8077 7.03125ZM20.8077 12.2486C18.7776 12.2486 17.1154 13.8145 17.1154 15.7269V17.629C17.1154 17.629 18.0385 18.3356 20.8077 18.3356C23.5769 18.3356 24.5 17.629 24.5 17.629V15.7269C24.5 13.8145 22.8377 12.2486 20.8077 12.2486ZM12.5 10.5095C10.9712 10.5095 9.73077 11.678 9.73077 13.1182C9.73077 14.5584 10.9712 15.7269 12.5 15.7269C14.0288 15.7269 15.2692 14.5584 15.2692 13.1182C15.2692 11.678 14.0288 10.5095 12.5 10.5095ZM12.5 15.7269C10.47 15.7269 8.80769 17.2928 8.80769 19.2051V21.1073C8.80769 21.1073 9.73077 21.8138 12.5 21.8138C15.2692 21.8138 16.1923 21.1073 16.1923 21.1073V19.2051C16.1923 17.2928 14.53 15.7269 12.5 15.7269Z",fill:"white"}),N.createElement("path",{id:"Vector_2",d:"M8.58473 1.5C6.96392 1.5 5.64893 2.73876 5.64893 4.2656C5.64893 5.79245 6.96392 7.03121 8.58473 7.03121C10.2055 7.03121 11.5205 5.79245 11.5205 4.2656C11.5205 2.73876 10.2055 1.5 8.58473 1.5ZM8.58473 7.03121C8.29038 7.03121 7.99221 7.024 7.69787 7.11763C8.28656 7.85584 8.58473 8.78131 8.58473 9.79681C8.58473 10.1641 8.49298 10.5242 8.49298 10.8915C9.27663 9.78601 10.5419 9.05859 12.0098 8.87494C11.3256 7.76942 10.0526 7.03121 8.58473 7.03121ZM16.4135 1.5C14.7927 1.5 13.4777 2.73876 13.4777 4.2656C13.4777 5.79245 14.7927 7.03121 16.4135 7.03121C18.0343 7.03121 19.3493 5.79245 19.3493 4.2656C19.3493 2.73876 18.0343 1.5 16.4135 1.5ZM16.4135 7.03121C14.9456 7.03121 13.6727 7.76942 12.9884 8.87494C14.4563 9.05859 15.7216 9.78601 16.5053 10.8915C16.5053 10.5242 16.4135 10.1641 16.4135 9.79681C16.4135 8.78131 16.7117 7.85584 17.3004 7.11763C17.006 7.024 16.7079 7.03121 16.4135 7.03121Z",fill:"white",fillOpacity:.4}))),AA=t=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",...t},N.createElement("radialGradient",{id:"a9",cx:.66,fx:.66,cy:.3125,fy:.3125,gradientTransform:"scale(1.5)"},N.createElement("stop",{offset:0,stopColor:"#006944"}),N.createElement("stop",{offset:.3,stopColor:"#006944",stopOpacity:.9}),N.createElement("stop",{offset:.6,stopColor:"#006944",stopOpacity:.6}),N.createElement("stop",{offset:.8,stopColor:"#006944",stopOpacity:.3}),N.createElement("stop",{offset:1,stopColor:"#006944",stopOpacity:0})),N.createElement("circle",{"transform-origin":"center",fill:"none",stroke:"url(#a9)",strokeWidth:17,strokeLinecap:"round",strokeDasharray:"200 1000",strokeDashoffset:0,cx:100,cy:100,r:70},N.createElement("animateTransform",{type:"rotate",attributeName:"transform",calcMode:"spline",dur:1.8,values:"360;0",keyTimes:"0;1",keySplines:"0 0 1 1",repeatCount:"indefinite"})),N.createElement("circle",{"transform-origin":"center",fill:"none",opacity:.2,stroke:"#006944",strokeWidth:17,strokeLinecap:"round",cx:100,cy:100,r:70})),SA=t=>N.createElement("svg",{width:86,height:21,viewBox:"0 0 86 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M39.7699 17.519L41.7975 10.3564C42.019 9.57525 42.5964 8.94819 43.3515 8.66775L43.4069 8.43457H40.5888L35.8028 14.1928L33.9712 8.43457H31.393L31.3309 8.66775C31.7723 8.88885 32.0156 9.54952 32.0156 10.087V10.1204C32.0156 13.1879 29.7696 18.4607 26.6104 18.4607C25.3827 18.4607 24.7463 17.5842 24.7463 16.8536C24.7463 15.9687 25.4791 15.3393 26.2522 15.3393C26.6778 15.3393 26.8988 15.4303 27.0895 15.5088C27.2342 15.5684 27.3615 15.6208 27.5475 15.6208C27.8106 15.6208 28.0628 15.4845 28.1888 15.2511C28.3867 14.8845 28.2367 14.4368 27.8748 14.2614L27.6773 14.1661C25.8352 13.2706 23.6992 14.6266 23.6992 16.6919V16.7205C23.6992 18.2238 24.8674 19.4811 26.3546 19.5336C30.1873 19.6694 32.751 14.4452 33.1588 10.6214L33.4534 11.656L34.9632 16.2284H35.5351L40.2511 10.5434L38.2726 17.5264C38.0457 18.3275 37.4171 18.948 36.6191 19.1592L36.5637 19.3923H40.3559L40.4177 19.1592C39.8575 18.8252 39.5911 18.1508 39.7699 17.519Z",fill:"#006747",style:{fill:"#006747",fill:"color(display-p3 0.0000 0.4039 0.2784)",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.2539 12.3311C47.4839 12.3332 45.5808 12.5062 44.568 15.4136C44.443 15.7724 44.3314 16.1004 44.2299 16.3988C43.6403 18.1314 43.3898 18.8676 42.8227 18.8676C42.6317 18.8676 42.5473 18.6987 42.4545 18.5128C42.3409 18.2851 42.2145 18.0318 41.8638 18.0318C41.5768 18.0318 41.2768 18.2645 41.2552 18.6014C41.2175 19.1835 41.9922 19.5357 42.576 19.5357C44.3546 19.5357 45.0362 18.2246 45.2587 17.6138C45.2876 17.534 45.4446 17.1017 45.6299 16.5923H47.499L47.1824 17.7708C47.0152 18.3926 46.6713 18.9015 46.0895 19.1617L46.0394 19.3947H49.0969L49.1536 19.1617C48.7397 18.8167 48.5601 18.2634 48.6943 17.7482L49.8448 13.3292C49.9332 12.9901 50.1656 12.7105 50.4806 12.5642L50.5306 12.3311H49.2539ZM47.6519 16.0223H45.8369C46.043 15.4562 46.2403 14.9158 46.3069 14.7388C46.766 13.5136 47.6389 13.0178 48.4845 12.9485L48.4757 12.9558L47.6519 16.0223Z",fill:"#006747",style:{fill:"#006747",fill:"color(display-p3 0.0000 0.4039 0.2784)",fillOpacity:1}}),N.createElement("path",{d:"M64.9086 12.2791C64.9086 12.4194 64.8148 12.6704 64.7165 12.8348C64.487 13.2187 64.077 13.5109 63.6767 13.6265L63.4976 13.678C63 13.8213 62.489 13.794 61.9847 13.6879L60.8352 17.7483C60.6891 18.2633 60.8565 18.8168 61.2623 19.1616L61.2001 19.395H58.0542L58.1098 19.1616C58.6973 18.9016 59.1413 18.3925 59.3228 17.7712L60.6376 13.2639C59.4267 12.8561 59.1564 12.8823 58.8962 13.2526C58.7642 13.4721 58.7796 13.7795 58.7931 14.0483C58.7962 14.1086 58.7991 14.1673 58.8003 14.2223C58.8062 14.5193 58.6037 14.7795 58.316 14.842C57.9611 14.9189 57.6305 14.6359 57.6492 14.2698V14.2688C57.6508 14.2386 57.6651 14.1553 57.6846 14.0529C57.8161 13.356 58.2541 12.7534 58.8816 12.4351L58.892 12.4299L58.8972 12.4272C59.5396 12.1051 60.5191 12.3038 61.3075 12.5205C61.3166 12.5234 61.3246 12.5252 61.3335 12.5276C61.5009 12.574 61.6597 12.6208 61.8043 12.6636V12.6662C63.3842 13.1244 63.7271 13.1473 63.9416 12.8802C64.0349 12.7644 64.0788 12.527 64.0755 12.3059C64.0716 12.0932 64.2202 11.9086 64.4259 11.8637C64.6827 11.8078 64.9221 12.0139 64.9086 12.2791Z",fill:"#006747",style:{fill:"#006747",fill:"color(display-p3 0.0000 0.4039 0.2784)",fillOpacity:1}}),N.createElement("path",{d:"M65.9742 12.3311L65.9123 12.5645C66.302 12.8363 66.4774 13.327 66.3516 13.7863L65.1826 17.7661C65.0012 18.3879 64.5572 18.8968 63.9697 19.1568L63.9141 19.3899H69.5602L70.0661 17.524H69.8285L69.7432 17.7028C69.4261 18.3695 68.758 18.7939 68.0255 18.7939H66.4015L67.2661 15.6704L67.956 15.6696C68.4214 15.6693 68.7712 16.0981 68.6821 16.5592H68.9197L69.4872 14.448H69.2496C69.112 14.8385 68.7468 15.0995 68.3361 15.0998L67.4239 15.1008L68.0239 12.9329L69.745 12.9316C70.3068 12.9311 70.7274 13.4515 70.6151 14.0077H70.8527L71.3034 12.3311H65.9742Z",fill:"#006747",style:{fill:"#006747",fill:"color(display-p3 0.0000 0.4039 0.2784)",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.9481 12.334H76.7502C77.7432 12.334 78.4622 13.2914 78.195 14.2577C77.9634 15.0938 77.2093 15.6717 76.3501 15.6723L75.871 15.6725C76.1731 15.6725 76.4653 15.8923 76.5235 16.1297C76.6323 16.575 76.8508 17.403 76.9765 17.8796L76.9891 17.9274C77.1191 18.4223 77.4099 18.7968 77.8116 19.0376L78.0151 19.1594L77.9597 19.3929H76.5378C75.969 19.3929 75.7192 19.0153 75.5289 18.3677C75.3836 17.8722 75.2017 16.4314 75.1884 16.3138C75.1484 15.9493 74.8437 15.6736 74.4808 15.6733H74.2406L73.6643 17.7456C73.5187 18.2606 73.6859 18.8141 74.0917 19.1589L74.0295 19.3926H70.8867L70.9421 19.1589C71.5298 18.8989 71.9736 18.39 72.155 17.7682L73.3456 13.7013C73.4277 13.2683 73.251 12.8216 72.886 12.5672L72.9481 12.334ZM75.395 15.1028C76.0496 15.1028 76.6259 14.6685 76.8136 14.0354C76.9763 13.4866 76.5692 12.9344 76.0015 12.9346L75.0017 12.9352L74.3984 15.1036L75.395 15.1028Z",fill:"#006747",style:{fill:"#006747",fill:"color(display-p3 0.0000 0.4039 0.2784)",fillOpacity:1}}),N.createElement("path",{d:"M55.8673 12.6932C55.7651 12.6932 55.5452 12.6228 55.2078 12.481C54.8701 12.3392 54.529 12.2686 54.1851 12.2686C53.4713 12.2686 52.8755 12.502 52.3883 13.0009C51.9828 13.4161 51.8027 13.8769 51.8027 14.2758C51.8027 14.7004 52.0486 15.1996 52.5412 15.6032C52.9175 15.9119 53.3062 16.2101 53.6975 16.5103C53.7898 16.5812 53.8823 16.6521 53.9748 16.7233C54.4843 17.1353 54.7393 17.5153 54.7393 17.8244C54.7393 18.5029 54.3023 18.8679 53.3977 18.8679C52.4785 18.8679 51.8429 18.1875 51.6391 16.9132H51.3906L50.668 19.3933H50.897C51.1957 19.182 51.4081 19.0459 51.8411 19.0459C52.0058 19.0459 52.1751 19.1238 52.3786 19.2175C52.6859 19.3588 53.0713 19.5362 53.6377 19.5362C54.3894 19.5362 54.9845 19.3786 55.4942 18.8634C55.9276 18.4134 56.1441 17.7832 56.1441 17.268C56.1441 16.7916 55.8485 16.2362 55.332 15.8361C55.0681 15.6317 54.793 15.4404 54.5168 15.2482C54.3292 15.1177 54.1411 14.9869 53.9556 14.8514C53.4585 14.478 53.21 14.161 53.21 13.8134C53.21 13.6198 53.3057 13.4271 53.497 13.2341C53.7388 12.9896 54.0627 12.9355 54.496 12.9355C55.3655 12.9355 55.9741 13.425 56.0253 14.4546H56.2546L56.861 12.2686H56.6318C56.3895 12.5519 56.1347 12.6932 55.8673 12.6932Z",fill:"#006747",style:{fill:"#006747",fill:"color(display-p3 0.0000 0.4039 0.2784)",fillOpacity:1}}),N.createElement("path",{d:"M84.2951 14.4543C84.2441 13.4247 83.6353 12.9353 82.7658 12.9353C82.3325 12.9353 82.0086 12.9894 81.7665 13.2338C81.5755 13.4268 81.4798 13.6201 81.4798 13.8128C81.4798 14.1605 81.7283 14.478 82.2256 14.8511C82.4108 14.9864 82.5985 15.117 82.7858 15.2473C83.0623 15.4397 83.3377 15.6313 83.6021 15.8361C84.1183 16.2363 84.4139 16.7916 84.4139 17.268C84.4139 17.7829 84.1974 18.4128 83.764 18.8634C83.2542 19.3781 82.6592 19.5362 81.9074 19.5362C81.341 19.5362 80.9556 19.3588 80.6483 19.2175C80.4448 19.1238 80.2755 19.0459 80.1107 19.0459C79.6778 19.0459 79.4655 19.182 79.167 19.3933H78.9375L79.6602 16.9132H79.9087C80.1127 18.1873 80.7483 18.8676 81.6675 18.8676C82.5721 18.8676 83.0091 18.5026 83.0091 17.8241C83.0091 17.5153 82.7538 17.1354 82.2446 16.7231C82.15 16.6502 82.0554 16.5777 81.961 16.5052C81.5718 16.2067 81.1852 15.9102 80.811 15.6032C80.3184 15.199 80.0724 14.7006 80.0724 14.2755C80.0724 13.8769 80.2526 13.4158 80.6581 13.0006C81.1453 12.502 81.7411 12.2686 82.4546 12.2686C82.7988 12.2686 83.1396 12.3392 83.4773 12.4807C83.815 12.6223 84.0349 12.6929 84.1368 12.6929C84.4048 12.6929 84.6593 12.5514 84.9013 12.2686H85.1308L84.5246 14.4543H84.2951Z",fill:"#006747",style:{fill:"#006747",fill:"color(display-p3 0.0000 0.4039 0.2784)",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.4366 7.2801C21.4366 7.10548 21.2957 6.96289 21.1226 6.96289H20.88C20.6903 6.96289 20.5153 7.059 20.4126 7.21996L19.6278 8.4452C19.4953 8.65133 19.2714 8.77422 19.0281 8.77422H18.4981C18.3442 8.77422 18.203 8.8593 18.1295 8.99611C17.9478 9.33563 17.6228 9.56329 17.2542 9.62264V13.8311C17.848 13.896 18.3023 14.2547 18.3023 14.6885C18.3023 15.1685 17.7471 15.5576 17.0616 15.5576C16.3766 15.5576 15.8209 15.1685 15.8209 14.6885C15.8209 14.2547 16.2755 13.896 16.8687 13.8311V9.62264C16.5001 9.56277 16.1754 9.33511 15.9942 8.99637C15.9209 8.85956 15.78 8.77474 15.6261 8.77474H15.2708C15.1052 8.77474 14.9552 8.87295 14.8876 9.02578L14.5923 9.69643C14.4982 9.90965 14.2877 10.0478 14.0563 10.0478C13.8249 10.0478 13.6144 9.90965 13.5208 9.69564L13.225 9.02604C13.1579 8.87348 13.0074 8.77474 12.8423 8.77474H2.93715C2.87113 9.04127 2.63171 9.23926 2.34784 9.23926H2.06112V9.59927C2.06112 10.1174 1.96104 10.622 1.76425 11.0994L1.49962 11.7425C0.628527 13.8561 1.48429 16.2538 3.48955 17.3207L4.81218 18.0241L5.96298 18.0325C6.28922 18.0349 6.61208 18.1213 6.89673 18.282L7.49982 18.6223H8.31372C8.66648 18.6223 9.01273 18.7195 9.31506 18.9027L9.67301 19.121C10.0208 19.3318 10.4136 19.4542 10.8178 19.4781V19.1055C10.8178 18.3833 11.2405 17.7292 11.8948 17.4393L12.919 16.9845C13.1597 16.8777 13.4309 16.8609 13.6833 16.9368L14.1694 17.0833C14.3222 17.1295 14.4829 17.1295 14.6347 17.0841L15.7876 16.7388C16.0007 16.6747 16.2251 16.6768 16.4364 16.7437L16.8198 16.8656C17.3486 17.0334 17.7037 17.5223 17.7037 18.0827V19.0566C17.7037 19.2922 17.8934 19.4841 18.1271 19.4841C18.3143 19.4841 18.4815 19.357 18.5337 19.1756C18.6977 18.6039 18.7726 18.0126 18.7554 17.4175L18.7539 17.3144C18.7411 16.8656 18.9187 16.431 19.24 16.1214L19.7191 15.6614C19.9853 15.4048 20.1381 15.0451 20.1381 14.6732V12.3819C20.1381 11.8575 20.2946 11.3526 20.5907 10.9214L20.8179 10.5897V10.1342C20.8179 9.61266 20.9726 9.11033 21.265 8.68126L21.63 8.14506C21.507 8.01534 21.4366 7.84203 21.4366 7.65848V7.2801Z",fill:"#FCE300",style:{fill:"#FCE300",fill:"color(display-p3 0.9882 0.8902 0.0000)",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.16479 19.1581C8.95111 19.0284 8.71091 18.953 8.46344 18.9305V19.8514C8.7642 19.8745 9.05691 19.9643 9.3166 20.1218C9.31738 20.1221 9.73122 20.3763 9.87082 20.4587C10.064 20.573 10.2987 20.6817 10.7094 20.7029C10.7383 20.7042 10.7648 20.694 10.7856 20.6743C10.8072 20.6533 10.8191 20.6255 10.8191 20.5953V19.7736C10.3619 19.7492 9.91605 19.6148 9.523 19.3758L9.16479 19.1581Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.7527 18.5415C6.51744 18.4083 6.25099 18.3369 5.98116 18.3314V19.2523C6.30116 19.2578 6.61752 19.3429 6.89645 19.5002L7.40934 19.7898V18.9065C7.40284 18.9036 7.39582 18.9044 7.38932 18.9009L6.7527 18.5415Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5993 17.2219C13.5226 17.1988 13.4436 17.1904 13.3651 17.1904V18.1123C13.4722 18.1123 13.5796 18.1239 13.6838 18.1551L14.1699 18.3022C14.2323 18.3205 14.2962 18.33 14.3602 18.3334V17.4125C14.2676 17.4086 14.1754 17.3954 14.0854 17.3687L13.5993 17.2219Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.731 17.1493L16.3481 17.0275C16.2623 17.0002 16.1729 16.9891 16.0843 16.9915V17.9121C16.1987 17.9098 16.313 17.9245 16.424 17.9589L16.8896 18.0912C17.1282 18.1598 17.3151 18.3362 17.409 18.5576V18.0823C17.409 17.6532 17.1366 17.2782 16.731 17.1493Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.1277 19.7819C18.1092 19.7819 18.0923 19.7777 18.0739 19.7764V20.6957C18.0978 20.6983 18.1209 20.7028 18.1454 20.7028C18.4139 20.7028 18.6491 20.5292 18.7305 20.2708C18.7388 20.2448 18.7443 20.2175 18.7521 20.1915V19.409C18.627 19.6338 18.3902 19.7819 18.1277 19.7819Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6875 16.096V16.8948C2.04935 17.5315 2.57913 18.0549 3.23993 18.4062L3.48402 18.5359V17.6534L3.35275 17.5838C2.66232 17.2167 2.10186 16.7005 1.6875 16.096Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.06076 17.9608V18.8434L4.70907 19.1879V18.3048C4.70829 18.3048 4.70725 18.3048 4.70647 18.3043L4.06076 17.9608Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8159 14.8958C17.8159 14.6949 17.577 14.5274 17.2541 14.4785V15.313C17.577 15.2637 17.8159 15.0966 17.8159 14.8958Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3086 14.8958C16.3086 15.0966 16.5475 15.2637 16.8704 15.313V14.4785C16.5475 14.5274 16.3086 14.6949 16.3086 14.8958Z",fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2923 1.62988C15.0123 1.54322 14.7326 1.69736 14.4526 1.85623C14.3536 1.91268 14.2831 2.00879 14.259 2.12092L13.8189 4.19615C13.8025 4.27282 13.8708 4.34214 13.9468 4.32481C14.4095 4.2182 14.8496 3.80962 15.3123 3.95246C15.8309 4.11317 16.3492 3.44987 16.8678 3.45775V1.06348C16.3464 1.06584 15.8111 1.79006 15.2923 1.62988",fill:"#BA0C2F",style:{fill:"#BA0C2F",fill:"color(display-p3 0.7294 0.0471 0.1843)",fillOpacity:1}}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.2656 8.68074C20.9732 9.11033 20.8185 9.6124 20.8185 10.1336V10.5895L20.5913 10.9211C20.2949 11.352 20.1384 11.857 20.1384 12.3816V14.6727C20.1384 15.0445 19.9859 15.4046 19.7197 15.6608L19.2406 16.1214C18.919 16.4305 18.742 16.8651 18.7545 17.3141L18.7563 17.417C18.7732 18.012 18.6983 18.6037 18.5343 19.1756C18.482 19.3568 18.3149 19.4836 18.1277 19.4836C17.894 19.4836 17.7043 19.2916 17.7043 19.0561V18.0822C17.7043 17.5221 17.3492 17.0334 16.8204 16.8651L16.437 16.7435C16.2257 16.6763 16.0013 16.6747 15.7882 16.7382L14.6353 17.0835C14.4835 17.129 14.3226 17.129 14.17 17.0833L13.6839 16.9365C13.4317 16.8603 13.1603 16.8771 12.9196 16.9843L11.8954 17.4388C11.2411 17.729 10.8184 18.3828 10.8184 19.1049V19.4778C10.4142 19.4542 10.0214 19.3315 9.67385 19.1204L9.31564 18.9027C9.01332 18.7192 8.66706 18.622 8.31431 18.622H7.5004L6.89731 18.2817C6.61241 18.1208 6.28981 18.0344 5.96357 18.032L4.81276 18.0239L3.49013 17.3204C1.48461 16.2538 0.62911 13.8558 1.50021 11.7422L1.76484 11.0994C1.96162 10.6218 2.0617 10.1168 2.0617 9.59901V9.239H2.34843C2.63229 9.239 2.87171 9.04075 2.93774 8.77422H12.8429C13.008 8.77422 13.1585 8.87295 13.2256 9.02578L13.5211 9.69564C13.615 9.90912 13.8255 10.0475 14.0569 10.0475C14.2882 10.0475 14.4988 9.90939 14.5929 9.6959L14.8885 9.02525C14.9558 8.87269 15.1058 8.77422 15.2714 8.77422H15.6267C15.7806 8.77422 15.9215 8.85956 15.9948 8.99611C16.176 9.33484 16.5007 9.56251 16.8693 9.62238V13.8309C16.2761 13.896 15.8214 14.2544 15.8214 14.6882C15.8214 15.1685 16.3772 15.5574 17.0622 15.5574C17.7477 15.5574 18.3029 15.1685 18.3029 14.6882C18.3029 14.2544 17.8485 13.896 17.2548 13.8309V9.62264C17.6234 9.56277 17.9484 9.33511 18.1301 8.99611C18.2036 8.8593 18.3445 8.77396 18.4987 8.77396H19.029C19.272 8.77396 19.4958 8.65107 19.6282 8.44494L20.4132 7.21944C20.5159 7.05847 20.6908 6.96263 20.8806 6.96263H21.1234C21.2963 6.96263 21.4372 7.10495 21.4372 7.27957V7.65796C21.4372 7.84151 21.5076 8.01508 21.6306 8.14454L21.2656 8.68074ZM18.7515 20.1908C18.7437 20.2171 18.7382 20.2441 18.7299 20.2704C18.6486 20.5291 18.4133 20.7026 18.1448 20.7026C18.1203 20.7026 18.0972 20.6979 18.0733 20.6953V19.7757C18.0912 19.7775 18.1086 19.7812 18.1271 19.7812C18.3891 19.7812 18.6265 19.6331 18.7515 19.4086V20.1908ZM17.4081 18.5572C17.3143 18.3358 17.1279 18.1591 16.8893 18.0908L16.4235 17.9585C16.3125 17.9241 16.1981 17.9094 16.0837 17.9117V16.9911C16.1726 16.9887 16.2615 16.9998 16.3473 17.0273L16.7305 17.1489C17.136 17.2778 17.4081 17.6528 17.4081 18.0819V18.5572ZM14.3601 18.3327C14.2957 18.3296 14.2317 18.3204 14.1693 18.3015L13.6832 18.155C13.5795 18.1232 13.4719 18.1119 13.3645 18.1119V17.19C13.4435 17.19 13.5226 17.1986 13.5987 17.2212L14.0848 17.3683C14.1748 17.3953 14.2673 17.4084 14.3601 17.4121V18.3327ZM10.8185 20.5951C10.8185 20.6251 10.8061 20.6529 10.7847 20.6739C10.764 20.6939 10.7374 20.7038 10.7086 20.7028C10.2979 20.6815 10.0631 20.5726 9.86998 20.4583C9.73039 20.3756 9.31628 20.122 9.31576 20.1217C9.05607 19.9636 8.76311 19.8743 8.46286 19.851V18.9301C8.71008 18.9526 8.95001 19.028 9.16395 19.1577L9.5219 19.3754C9.91521 19.6144 10.3608 19.7488 10.8185 19.7732V20.5951ZM7.40902 19.7897L6.89588 19.4998C6.61669 19.3422 6.30059 19.2574 5.98059 19.2519V18.331C6.25016 18.3362 6.51661 18.4082 6.75238 18.5411L7.38901 18.9008C7.39498 18.9042 7.40252 18.9034 7.40902 18.9058V19.7897ZM4.70824 19.1875L4.06018 18.8427V17.9604L4.7059 18.3039C4.70668 18.3042 4.70772 18.3039 4.70824 18.3042V19.1875ZM3.48345 18.5355L3.23935 18.4058C2.57856 18.0545 2.04904 17.5309 1.68693 16.8944V16.0956C2.10129 16.7001 2.66174 17.2163 3.35191 17.5831L3.48345 17.653V18.5355ZM17.2536 14.4781C17.5762 14.527 17.8153 14.6945 17.8153 14.8954C17.8153 15.0962 17.5762 15.2638 17.2536 15.3129V14.4781ZM16.8698 15.3129C16.5474 15.2638 16.308 15.0962 16.308 14.8954C16.308 14.6945 16.5474 14.527 16.8698 14.4781V15.3129ZM21.9089 7.99494C21.7979 7.91906 21.7314 7.79328 21.7314 7.65778V7.27939C21.7314 6.94065 21.4582 6.66494 21.1229 6.66494H20.8801C20.59 6.66494 20.3227 6.81172 20.1649 7.05777L19.3804 8.28274C19.3027 8.40405 19.1709 8.47627 19.0284 8.47627H18.4981C18.2361 8.47627 17.9954 8.62095 17.8698 8.8557C17.7401 9.09702 17.5137 9.26271 17.2543 9.31891V0.800046C17.2543 0.692385 17.1682 0.605469 17.0616 0.605469C16.9553 0.605469 16.8688 0.692385 16.8688 0.800046V9.31891C16.6093 9.26245 16.3832 9.09676 16.2537 8.85465C16.1292 8.62148 15.8887 8.47627 15.6262 8.47627H15.2708C14.9893 8.47627 14.733 8.64432 14.6189 8.90402L14.323 9.57467C14.2763 9.68049 14.1715 9.74929 14.0563 9.74929C13.9409 9.74929 13.8364 9.68049 13.7899 9.57441L13.4943 8.90455C13.3799 8.64432 13.1239 8.47627 12.8424 8.47627H2.80773C2.72611 8.47627 2.66034 8.54296 2.66034 8.62515C2.66034 8.79951 2.51996 8.94078 2.34788 8.94078H1.91376C1.83239 8.94078 1.76637 9.00748 1.76637 9.08967V9.59883C1.76637 10.077 1.67434 10.5434 1.49186 10.9848L1.22775 11.6273C0.981833 12.2234 0.866155 12.8405 0.867194 13.4463V14.9262C0.867194 15.3261 0.924384 15.7287 1.03954 16.1247C1.36162 17.2291 2.0939 18.1329 3.10251 18.6694L4.70667 19.5223C4.72747 19.5336 4.75113 19.5396 4.77452 19.5399L5.96094 19.5488C6.23779 19.5506 6.51178 19.6239 6.75327 19.7599L7.38989 20.1194C7.41199 20.1317 7.43642 20.1383 7.46164 20.1383H8.31376C8.61296 20.1383 8.90697 20.2208 9.16276 20.3762C9.16276 20.3762 9.57998 20.6314 9.72009 20.7149C9.94521 20.8481 10.2189 20.9749 10.6926 20.9996C10.8002 21.0046 10.9065 20.9662 10.9871 20.8896C11.0666 20.8129 11.1127 20.7058 11.1127 20.5949V20.0178C11.1127 19.5997 11.357 19.2208 11.7365 19.0525L13.0376 18.4751C13.2146 18.3971 13.4137 18.384 13.5988 18.4401L14.0849 18.5869C14.2921 18.6489 14.5113 18.6494 14.719 18.5877L15.8716 18.2419C16.0242 18.1962 16.1864 18.1965 16.3416 18.244L16.81 18.3774C17.0278 18.4396 17.1804 18.6434 17.1804 18.8724V20.0259C17.1804 20.5634 17.613 21.0004 18.1449 21.0004C18.5426 21.0004 18.8904 20.7428 19.0105 20.3605C19.2281 19.6698 19.338 18.9517 19.338 18.2264V17.7359C19.338 17.3874 19.4818 17.0503 19.7326 16.8111L20.212 16.3534C20.5351 16.0425 20.7207 15.6058 20.7207 15.1549V12.4203C20.7207 11.9965 20.847 11.5879 21.0862 11.2392C21.1034 11.2145 21.113 11.1849 21.113 11.1547V10.51C21.113 10.0891 21.2375 9.68338 21.4738 9.33624L21.9479 8.6396C21.9651 8.61517 21.9742 8.58576 21.9742 8.5553V8.11836C21.9742 8.03538 21.9266 8.00676 21.9089 7.99494Z",fill:"#006747",style:{fill:"#006747",fill:"color(display-p3 0.0000 0.4039 0.2784)",fillOpacity:1}})),_A=t=>N.createElement("svg",{width:154,height:37,viewBox:"0 0 154 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M70.9776 30.8796L74.668 18.1381C75.0696 16.7473 76.1186 15.6318 77.4936 15.1371L77.5928 14.7217H72.466L63.7623 24.9662L60.431 14.7217H55.7389L55.6255 15.1371C56.4288 15.5291 56.8683 16.7052 56.8683 17.662V17.7227C56.8683 23.1787 52.781 32.5598 47.0352 32.5598C44.8002 32.5598 43.6425 31.0009 43.6425 29.7035C43.6425 28.1306 44.975 27.0105 46.3831 27.0105C47.744 27.0105 47.9519 27.5099 48.741 27.5099C49.2182 27.5099 49.6766 27.2672 49.9081 26.8518C50.2672 26.1984 49.9931 25.4049 49.3363 25.0922L48.9772 24.9242C45.6271 23.3327 41.7383 25.7457 41.7383 29.4188V29.4701C41.7383 32.1444 43.8646 34.38 46.5674 34.4733C53.5417 34.716 58.2055 25.4236 58.9473 18.6188L59.486 20.4577L62.2313 28.5927H63.2709L71.8518 18.4741L68.2512 30.8936C67.8401 32.3171 66.6966 33.4232 65.2412 33.7966L65.142 34.212H72.0408L72.1542 33.7966C71.1383 33.2039 70.6516 32.0044 70.9776 30.8796Z",fill:"white"}),N.createElement("path",{d:"M88.2952 21.6521H88.2385C85.016 21.6568 81.5571 21.9648 79.7143 27.1361C78.1692 31.4813 77.7487 33.2828 76.539 33.2828C75.7641 33.2828 75.9531 31.794 74.7954 31.794C74.2709 31.794 73.7275 32.2094 73.6897 32.8068C73.6236 33.8429 75.0317 34.4683 76.0949 34.4683C79.3316 34.4683 80.5696 32.1347 80.9759 31.0472C81.0279 30.9072 81.3162 30.1371 81.6517 29.2317H85.0538L84.4773 31.3273C84.1749 32.4334 83.5464 33.3388 82.488 33.8009L82.3982 34.2163H87.9597L88.0637 33.8009C87.3124 33.1848 86.9816 32.2 87.2273 31.2853L89.3206 23.4257C89.4812 22.8236 89.9018 22.3242 90.4783 22.0628L90.568 21.6475H88.7536H88.2952V21.6521ZM85.3231 28.2189H82.0202C82.3935 27.2108 82.7526 26.2493 82.8755 25.9366C83.7118 23.757 85.2995 22.8749 86.8399 22.7536L86.8257 22.7676L85.3231 28.2189Z",fill:"white"}),N.createElement("path",{d:"M116.358 22.5486C116.538 22.2545 116.708 21.8112 116.708 21.5591C116.732 21.0877 116.297 20.7237 115.829 20.8217C115.456 20.9011 115.187 21.2324 115.191 21.6058C115.196 21.9978 115.12 22.4226 114.95 22.6279C114.558 23.104 113.934 23.062 111.062 22.2452V22.2405C110.797 22.1659 110.509 22.0819 110.206 21.9978C110.187 21.9932 110.173 21.9885 110.159 21.9838C108.723 21.6011 106.941 21.2464 105.774 21.8205C105.765 21.8252 105.755 21.8298 105.746 21.8345C104.602 22.3992 103.808 23.4727 103.567 24.7142C103.53 24.8962 103.506 25.0455 103.501 25.0969C103.468 25.7456 104.068 26.2544 104.711 26.1143C105.235 26.0023 105.604 25.5403 105.59 25.0129C105.58 24.4808 105.472 23.7667 105.765 23.286C106.237 22.6279 106.729 22.5812 108.935 23.3047L106.544 31.323C106.214 32.4291 105.406 33.3345 104.338 33.7966L104.238 34.212H109.961L110.074 33.7966C109.337 33.1852 109.03 32.1957 109.299 31.2809L111.392 24.0561C112.309 24.2428 113.24 24.2941 114.147 24.0374L114.473 23.9441C115.196 23.7527 115.943 23.2347 116.358 22.5486Z",fill:"white"}),N.createElement("path",{d:"M118.649 21.6523L118.536 22.0677C119.245 22.5531 119.561 23.4259 119.335 24.2427L117.208 31.3228C116.877 32.429 116.069 33.3344 115.002 33.7964L114.902 34.2118H117.931H118.21H125.18L126.101 30.8934H125.666L125.51 31.2108C124.934 32.3963 123.72 33.1524 122.382 33.1524H119.429L121.003 27.5937H122.259C123.105 27.5937 123.743 28.3545 123.582 29.1759H124.012L125.043 25.4188H124.613C124.362 26.1142 123.696 26.5763 122.949 26.5809H121.291L122.382 22.7258L125.515 22.7211C126.536 22.7211 127.301 23.6452 127.098 24.6347H127.528L128.35 21.6523H118.649Z",fill:"white"}),N.createElement("path",{d:"M138.251 21.6582H131.333L131.22 22.0736C131.881 22.5263 132.207 23.3197 132.056 24.0898L129.892 31.324C129.561 32.4301 128.753 33.3356 127.685 33.7976L127.586 34.213H133.303L133.417 33.7976C132.68 33.1862 132.373 32.2014 132.637 31.282L133.686 27.5949H134.126C134.787 27.5949 135.34 28.085 135.416 28.7337C135.439 28.9437 135.77 31.506 136.035 32.3881C136.379 33.5409 136.833 34.213 137.868 34.213H140.453L140.552 33.7976L140.183 33.5829C139.451 33.1536 138.922 32.4908 138.685 31.6087C138.463 30.7779 138.043 29.2284 137.84 28.4117C137.736 27.9916 137.202 27.5996 136.654 27.5996H137.523C139.087 27.5996 140.457 26.5681 140.878 25.0839C141.365 23.3617 140.056 21.6582 138.251 21.6582ZM138.369 24.6872C138.029 25.812 136.98 26.5868 135.789 26.5868H133.974L135.071 22.7317H136.89C137.925 22.727 138.662 23.7118 138.369 24.6872Z",fill:"white"}),N.createElement("path",{d:"M100.265 22.2961C100.081 22.2961 99.6794 22.1701 99.0651 21.9181C98.4508 21.6661 97.8318 21.54 97.2034 21.54C95.904 21.54 94.8219 21.9554 93.9336 22.8422C93.1964 23.5796 92.8704 24.401 92.8704 25.1105C92.8704 25.8665 93.3193 26.7533 94.2124 27.4721C95.0582 28.1488 95.937 28.8022 96.8206 29.465C97.7468 30.1977 98.2098 30.8745 98.2098 31.4252C98.2098 32.634 97.416 33.2828 95.7669 33.2828C94.0942 33.2828 92.9366 32.074 92.568 29.8057H92.1144L90.8008 34.2162H91.226C91.7694 33.8382 92.1569 33.6001 92.946 33.6001C93.6973 33.6001 94.5006 34.4729 96.2158 34.4729C97.5814 34.4729 98.6682 34.1929 99.5943 33.2781C100.383 32.4753 100.776 31.3552 100.776 30.4404C100.776 29.591 100.237 28.6062 99.2966 27.8921C98.4886 27.2807 97.6286 26.7347 96.7923 26.1419C95.8898 25.4792 95.4362 24.9144 95.4362 24.2937C95.4362 23.9483 95.611 23.6076 95.9559 23.2622C96.3954 22.8282 96.986 22.7302 97.7751 22.7302C99.3581 22.7302 100.464 23.5983 100.558 25.4325H100.974L102.08 21.5447H101.664C101.215 22.0441 100.752 22.2961 100.265 22.2961Z",fill:"white"}),N.createElement("path",{d:"M149.201 22.7304C150.784 22.7304 151.89 23.6032 151.984 25.4327H152.4L153.501 21.5449H153.085C152.646 22.049 152.182 22.301 151.696 22.301C151.512 22.301 151.11 22.175 150.496 21.923C149.881 21.6709 149.262 21.5449 148.634 21.5449C147.334 21.5449 146.252 21.9603 145.364 22.8471C144.627 23.5845 144.296 24.4059 144.296 25.1153C144.296 25.8714 144.745 26.7582 145.638 27.477C146.484 28.1537 147.363 28.8071 148.246 29.4699C149.173 30.2026 149.636 30.8794 149.636 31.4301C149.636 32.6389 148.842 33.2876 147.193 33.2876C145.52 33.2876 144.362 32.0788 143.994 29.8106H143.54L142.227 34.2211H142.642C143.186 33.843 143.573 33.605 144.358 33.605C145.109 33.605 145.912 34.4778 147.627 34.4778C148.993 34.4778 150.075 34.1978 151.006 33.283C151.795 32.4802 152.187 31.3601 152.187 30.4453C152.187 29.6005 151.649 28.6111 150.708 27.897C149.9 27.2856 149.04 26.7395 148.204 26.1468C147.301 25.4841 146.848 24.9193 146.848 24.2986C146.848 23.9532 147.023 23.6125 147.368 23.2671C147.826 22.8237 148.412 22.7304 149.201 22.7304Z",fill:"white"}),N.createElement("path",{d:"M26.5433 2.60035C26.0377 2.44633 25.5321 2.72169 25.0265 3.00173C24.8469 3.09974 24.7194 3.27243 24.6768 3.46845L23.883 7.13222C23.8547 7.26757 23.9775 7.38891 24.1145 7.36091C24.9509 7.17422 25.7447 6.4508 26.5811 6.70283C27.5167 6.98753 28.4522 5.81606 29.3878 5.83006V1.60156C28.4475 1.60623 27.4789 2.88505 26.5433 2.60035Z",fill:"white"}),N.createElement("path",{d:"M38.4856 13.8398C38.2871 13.7044 38.1643 13.4851 38.1643 13.2471V12.5796C38.1643 11.9822 37.6729 11.4922 37.0633 11.4922H36.6239C36.0994 11.4922 35.6174 11.7536 35.3339 12.1876L33.9164 14.3485C33.7746 14.5632 33.5383 14.6892 33.2832 14.6892H32.3287C31.8562 14.6892 31.4215 14.9459 31.1947 15.3566C30.9631 15.7814 30.552 16.0754 30.0843 16.1734V1.1403C30.0843 0.94894 29.9283 0.794922 29.7346 0.794922C29.5409 0.794922 29.3849 0.94894 29.3849 1.1403V1.60702V5.83552V16.1827C28.9171 16.0847 28.506 15.7907 28.2745 15.3613C28.0524 14.9506 27.6177 14.6939 27.1405 14.6939H26.4979C25.9875 14.6939 25.5292 14.9879 25.3213 15.45L24.7873 16.6308C24.7023 16.8175 24.5133 16.9388 24.3054 16.9388C24.0975 16.9388 23.9085 16.8175 23.8234 16.6308L23.2895 15.45C23.0816 14.9926 22.6232 14.6939 22.1129 14.6939H4.00135C3.85487 14.6939 3.73674 14.8106 3.73674 14.9553C3.73674 15.2633 3.48158 15.5107 3.17444 15.5107H2.39007C2.24359 15.5107 2.12546 15.6273 2.12546 15.772V16.6728C2.12546 17.5176 1.96008 18.339 1.62931 19.1184L1.15207 20.2526C0.707907 21.3027 0.5 22.3901 0.5 23.4589V26.0726C0.5 26.7773 0.603954 27.4914 0.811861 28.1868C1.39306 30.1377 2.7161 31.7339 4.53529 32.6767L7.43182 34.1842C7.46962 34.2029 7.51214 34.2122 7.55467 34.2122L9.69517 34.2309C10.196 34.2355 10.6875 34.3616 11.1269 34.6043L12.2751 35.239C12.3129 35.2623 12.3602 35.2717 12.4074 35.2717H13.9431C14.4818 35.2717 15.0157 35.4163 15.474 35.6917C15.474 35.6917 16.2253 36.1444 16.4805 36.2891C16.8869 36.5225 17.3783 36.7465 18.2335 36.7932C18.4273 36.8025 18.621 36.7325 18.7675 36.5972C18.9092 36.4618 18.9943 36.2704 18.9943 36.0791V35.0616C18.9943 34.3242 19.4337 33.6521 20.1189 33.3581L22.4673 32.3406C22.7886 32.2006 23.1477 32.1773 23.4832 32.28L24.3621 32.5367C24.7354 32.644 25.1323 32.6487 25.5056 32.5367L27.5846 31.9253C27.8587 31.8459 28.1517 31.8459 28.4304 31.9299L29.2763 32.1633C29.6684 32.2706 29.9472 32.6347 29.9472 33.0361V35.071C29.9472 36.0184 30.7269 36.7932 31.6861 36.7932C32.4043 36.7932 33.0328 36.3405 33.2501 35.6637C33.6423 34.4456 33.8408 33.1761 33.8408 31.8973V31.0292C33.8408 30.4131 34.1006 29.8204 34.5543 29.3956L35.419 28.5882C36.0002 28.0421 36.3356 27.2674 36.3356 26.474V21.6481C36.3356 20.9013 36.5625 20.1779 36.9972 19.5618C37.0302 19.5198 37.0444 19.4638 37.0444 19.4125V18.2737C37.0444 17.5316 37.2712 16.8128 37.6965 16.2014L38.5517 14.9739C38.5848 14.9319 38.599 14.8806 38.599 14.8246V14.0545C38.6037 13.9098 38.5139 13.8585 38.4856 13.8398ZM30.0843 25.2838C30.6654 25.3725 31.1002 25.6665 31.1002 26.0212C31.1002 26.3759 30.6702 26.67 30.0843 26.7587V25.2838ZM5.22516 32.4433L4.78572 32.2146C3.59026 31.5939 2.63577 30.6698 1.9837 29.545V28.1355C2.73028 29.2043 3.74619 30.1144 4.98891 30.7631L5.22516 30.8845V32.4433ZM7.43654 33.5961L6.2647 32.9894V31.4305L7.43182 32.0373H7.43654V33.5961ZM12.3129 34.6556L11.3868 34.1422C10.8812 33.8622 10.3142 33.7128 9.73297 33.7035V32.0793C10.2197 32.0886 10.7016 32.2146 11.1269 32.448L12.2751 33.0827C12.2846 33.0874 12.2987 33.0874 12.3129 33.0921V34.6556ZM18.4603 35.0616V35.8551V36.0791C18.4603 36.1304 18.4367 36.1818 18.3989 36.2191C18.3611 36.2564 18.3139 36.2705 18.2619 36.2705C17.52 36.2331 17.0948 36.0418 16.7498 35.8411C16.4994 35.6964 15.7528 35.2483 15.7481 35.2483C15.2803 34.9683 14.7511 34.8143 14.2077 34.7723V33.1387C14.6519 33.1808 15.0866 33.3114 15.474 33.5401L16.1214 33.9228C16.8302 34.3429 17.6382 34.5809 18.4603 34.6276V35.0616ZM24.8582 32.0886C24.7448 32.084 24.6267 32.0653 24.5133 32.0326L23.6344 31.7713C23.4454 31.7152 23.2517 31.6966 23.0579 31.6966V30.0677C23.1997 30.0677 23.3414 30.0817 23.4832 30.1237L24.3621 30.3804C24.5227 30.4271 24.6928 30.4504 24.8582 30.4598V32.0886ZM30.363 32.4807C30.1929 32.0886 29.8574 31.7759 29.4275 31.6592L28.5864 31.4259C28.3879 31.3652 28.18 31.3419 27.9721 31.3419V29.7177C28.1328 29.713 28.2934 29.7317 28.4493 29.783L29.1392 29.9977C29.8716 30.2264 30.363 30.8891 30.363 31.6452V32.4807ZM32.787 35.365C32.7729 35.4117 32.7634 35.4584 32.7492 35.505C32.6028 35.9624 32.1775 36.2658 31.6955 36.2658C31.653 36.2658 31.6105 36.2564 31.568 36.2518V34.6323C31.601 34.6369 31.6294 34.6416 31.6625 34.6416C32.135 34.6416 32.565 34.3802 32.7918 33.9835V35.365H32.787ZM37.3232 15.0486C36.794 15.8047 36.5152 16.6915 36.5152 17.6109V18.4137L36.1041 19.0017C35.5702 19.7625 35.2867 20.6539 35.2867 21.578V25.6245C35.2867 26.2779 35.0126 26.9173 34.5306 27.3654L33.6659 28.1775C33.0847 28.7236 32.7634 29.489 32.787 30.2824L32.7918 30.4644C32.8248 31.5146 32.6878 32.56 32.3901 33.5681C32.2956 33.8902 31.9932 34.1142 31.6577 34.1142C31.2372 34.1142 30.8923 33.7782 30.8923 33.3581V31.6452C30.8923 30.6558 30.2496 29.7923 29.2952 29.4983L28.6053 29.2836C28.2225 29.1669 27.8209 29.1623 27.4334 29.2743L25.3544 29.881C25.0803 29.9604 24.7873 29.9604 24.5133 29.881L23.6344 29.6243C23.1808 29.489 22.6894 29.5217 22.2547 29.7083L20.4071 30.5111C19.2258 31.0245 18.4651 32.1773 18.4651 33.4515V34.1095C17.7374 34.0675 17.0286 33.8528 16.4002 33.4795L15.7528 33.0967C15.2047 32.7747 14.581 32.602 13.9431 32.602H12.4736L11.3868 31.9999C10.8717 31.7152 10.2905 31.5659 9.69989 31.5612L7.62082 31.5472L5.23461 30.3057C1.61514 28.4249 0.0700101 24.1917 1.64349 20.4579L2.12073 19.3238C2.47512 18.4837 2.6594 17.5922 2.6594 16.6775V16.0427H3.17444C3.68476 16.0427 4.11948 15.6927 4.2376 15.2213H22.1176C22.4153 15.2213 22.6894 15.394 22.8075 15.6647L23.3414 16.8455C23.5115 17.2235 23.8896 17.4662 24.3101 17.4662C24.7259 17.4662 25.1087 17.2235 25.2788 16.8455L25.8127 15.66C25.9356 15.3893 26.2049 15.2166 26.5026 15.2166H27.1452C27.424 15.2166 27.6791 15.366 27.8114 15.6087C28.1375 16.2061 28.7234 16.6075 29.3897 16.7148V24.145C28.317 24.2617 27.4949 24.8918 27.4949 25.6572C27.4949 26.5066 28.4966 27.1927 29.7346 27.1927C30.9726 27.1927 31.9743 26.5066 31.9743 25.6572C31.9743 24.8918 31.1521 24.257 30.0795 24.145V16.7101C30.7458 16.6028 31.3317 16.2014 31.6577 15.604C31.79 15.3613 32.0452 15.212 32.324 15.212H33.2785C33.7179 15.212 34.1195 14.9926 34.3605 14.6286L35.7781 12.4676C35.9624 12.1829 36.2789 12.0149 36.6239 12.0149H37.0633C37.3752 12.0149 37.6303 12.2669 37.6303 12.575V13.2424C37.6303 13.5644 37.7579 13.8725 37.98 14.1012L37.3232 15.0486ZM29.3849 25.2838V26.7587C28.8037 26.67 28.3737 26.3759 28.3737 26.0212C28.3737 25.6665 28.8037 25.3678 29.3849 25.2838Z",fill:"white"})),RA=t=>N.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Group 483737"},N.createElement("g",{id:"Icon / Live"},N.createElement("path",{id:"circle-path",fillRule:"evenodd",clipRule:"evenodd",d:"M9 17C4.58172 17 1 13.4183 1 9C1 4.58172 4.58172 1 9 1C13.4183 1 17 4.58172 17 9C17 13.4183 13.4183 17 9 17Z",stroke:"#107D57"}),N.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M10.6432 6.12891C10.9551 6.12891 11.2103 6.37162 11.2302 6.67846L11.2315 6.71714V7.55879L13.3334 6.46776C13.6362 6.31058 13.9959 6.51777 14.0195 6.85057L14.0207 6.88543V11.1406C14.0207 11.4763 13.6813 11.7002 13.3764 11.578L13.345 11.5641L11.2315 10.54V11.2818C11.2315 11.5937 10.9887 11.8489 10.6819 11.8688L10.6432 11.8701H5.11851C4.80663 11.8701 4.55144 11.6274 4.53152 11.3205L4.53027 11.2818V6.71714C4.53027 6.40526 4.77299 6.15007 5.07983 6.13016L5.11851 6.12891H10.6432ZM10.2897 7.07007H5.4709V10.9289H10.2897V7.07007ZM13.0792 7.65972L11.2396 8.61454V9.49831L13.0792 10.3896V7.65972Z",fill:"#107D57"})))),IA=t=>N.createElement("svg",{width:14,height:17,viewBox:"0 0 14 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Icon / Games"},N.createElement("path",{id:"Icon / Games_2",d:"M6.27412 2.68557L6.27411 2.68557C5.62309 2.63368 5.0525 3.12172 5.00064 3.7713L5.00064 3.77134L4.14164 14.5465C4.14163 14.5465 4.14163 14.5465 4.14163 14.5465C4.08978 15.1963 4.57588 15.7681 5.22739 15.82C5.22741 15.82 5.22742 15.82 5.22744 15.82L11.3107 16.3052L11.3108 16.3052C11.9618 16.3571 12.5324 15.869 12.5842 15.2194L12.5842 15.2194L13.4432 4.4443C13.4951 3.79528 13.0091 3.22266 12.3575 3.17076C12.3575 3.17076 12.3574 3.17076 12.3574 3.17076L6.27412 2.68557ZM8.15378 7.95339C8.06822 8.08171 8.00584 8.22011 7.96597 8.36701L7.39679 8.32084C7.47153 7.93067 7.63452 7.64794 7.86868 7.44845C8.15963 7.20058 8.54037 7.08303 9.04377 7.12388C9.36277 7.14976 9.62596 7.23281 9.84206 7.36455L9.84205 7.36458L9.84603 7.36693C10.0639 7.49535 10.2189 7.65832 10.3213 7.85605C10.4234 8.05317 10.4683 8.27793 10.4483 8.53948C10.4345 8.71901 10.392 8.86521 10.3278 8.98465L10.3277 8.98461L10.3242 8.99151C10.2546 9.12905 10.1759 9.23612 10.0908 9.31799L10.0907 9.31793L10.0855 9.32326C9.98974 9.41994 9.85909 9.53313 9.69013 9.66317C9.48159 9.8217 9.31317 9.96772 9.19518 10.0999L9.19509 10.0998L9.18961 10.1063C9.10272 10.2092 9.04052 10.3244 9.00219 10.449L8.46556 10.4054C8.49427 10.3132 8.5356 10.2357 8.58714 10.17C8.70826 10.0178 8.8862 9.84033 9.1277 9.63726C9.33755 9.46764 9.50811 9.30895 9.63088 9.16198L9.39343 8.96362L9.63088 9.16198C9.77451 8.99005 9.86011 8.79 9.87715 8.56784C9.89609 8.32086 9.82923 8.08941 9.6571 7.90614C9.48861 7.71582 9.25493 7.62752 9.00193 7.60699L8.97691 7.91539L9.00193 7.60699C8.67115 7.58016 8.35479 7.66584 8.15766 7.94771L8.1576 7.94766L8.15378 7.95339ZM8.84046 11.5393L8.84024 11.5394L8.84882 11.5493C8.9033 11.6122 8.9274 11.681 8.92009 11.7763C8.91337 11.8639 8.88049 11.9307 8.81121 11.9916L8.81117 11.9915L8.8063 11.996C8.74838 12.0491 8.68489 12.0727 8.59225 12.0652C8.49804 12.0575 8.43752 12.0248 8.38914 11.9687C8.34013 11.9019 8.31721 11.826 8.32494 11.7253L8.01644 11.7016L8.32494 11.7253C8.33288 11.6218 8.36807 11.5555 8.42399 11.5042L8.2147 11.2763L8.42377 11.5044C8.48168 11.4513 8.54518 11.4277 8.63782 11.4352C8.73051 11.4427 8.79051 11.4764 8.84046 11.5393Z",stroke:"#107D57",strokeWidth:.618817}),N.createElement("path",{id:"Icon / Games_3",d:"M7.74941 0.00278796L1.66605 0.487981C1.18503 0.526267 0.82584 0.949506 0.864126 1.42843L1.72313 12.2036C1.76142 12.6832 2.18327 13.0438 2.66359 13.0055L3.18754 12.9637L3.97219 3.12062C4.0418 2.24421 4.81101 1.58916 5.68742 1.65878L8.7776 1.90524L8.68986 0.804714C8.65157 0.32509 8.22973 -0.0354984 7.74941 0.00278796Z",fill:"#107D57"}))),VA=t=>N.createElement("svg",{width:19,height:14,viewBox:"0 0 19 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Icon / LeaderBoard"},N.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M16.8236 2.46643C16.436 2.23624 16.1759 1.81093 16.1759 1.32432C16.1759 0.59292 16.7636 0 17.4885 0C18.2134 0 18.8011 0.59292 18.8011 1.32432C18.8011 1.81093 18.541 2.23624 18.1534 2.46643C18.5192 2.51678 18.8011 2.83327 18.8011 3.2162V10.7838C18.8011 11.2017 18.4653 11.5405 18.051 11.5405H16.926L16.9147 11.5404H10.9255V11.5406V13.2433C10.9255 13.6612 10.5897 14 10.1755 14H8.67539C8.26115 14 7.92534 13.6612 7.92534 13.2433V11.5406V11.5404H1.93622L1.92493 11.5405H0.799856C0.385614 11.5405 0.0498047 11.2017 0.0498047 10.7838V3.2162C0.0498047 2.83328 0.331692 2.51678 0.697521 2.46643C0.309923 2.23624 0.0498047 1.81093 0.0498047 1.32432C0.0498047 0.59292 0.637471 0 1.36239 0C2.08732 0 2.67498 0.59292 2.67498 1.32432C2.67498 1.81093 2.41487 2.23624 2.02727 2.46643C2.16328 2.48515 2.28769 2.54066 2.39032 2.62269C4.78264 1.62379 7.12768 1.12793 9.42545 1.13511C11.7225 1.14228 14.0669 1.63872 16.4584 2.62442C16.5615 2.54144 16.6867 2.48528 16.8236 2.46643ZM1.92494 10.7837L1.92493 3.21617H0.799862V10.7837H1.92494ZM16.1759 3.32547C13.8707 2.37522 11.6209 1.89875 9.42314 1.89189C7.2272 1.88503 4.97905 2.36051 2.675 3.32285V10.7837H16.1759V3.32547ZM17.4885 1.89189C17.7992 1.89189 18.0511 1.63779 18.0511 1.32433C18.0511 1.01087 17.7992 0.75676 17.4885 0.75676C17.1778 0.75676 16.926 1.01087 16.926 1.32433C16.926 1.63779 17.1778 1.89189 17.4885 1.89189ZM16.926 3.21617V10.7837H18.0511V3.21617H16.926ZM8.67538 13.2432V11.5405H10.1755V13.2432H8.67538ZM1.3624 1.89189C1.67308 1.89189 1.92494 1.63779 1.92494 1.32433C1.92494 1.01087 1.67308 0.75676 1.3624 0.75676C1.05172 0.75676 0.799862 1.01087 0.799862 1.32433C0.799862 1.63779 1.05172 1.89189 1.3624 1.89189Z",fill:"#107D57"}))),wA=t=>N.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{clipPath:"url(#clip0_1664_3009)"},N.createElement("path",{d:"M21 19V5C21 3.9 20.1 3 19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19ZM8.5 13.5L11 16.51L14.5 12L19 18H5L8.5 13.5Z",fill:"#B6B9C6"})),N.createElement("defs",null,N.createElement("clipPath",{id:"clip0_1664_3009"},N.createElement("rect",{width:24,height:24,fill:"white"})))),NA=t=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"check"},N.createElement("path",{id:"Vector",d:"M3.59985 10.8L7.59985 14.8L16.3999 5.20001",stroke:"white",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}))),UA=t=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"cross"},N.createElement("path",{id:"Vector",d:"M5.19995 14.8L14.8 5.20001M5.19995 5.20001L14.8 14.8",stroke:"white",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}))),kA=t=>N.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 2.46154C8.52291 2.46154 2.46154 8.52291 2.46154 16C2.46154 23.4771 8.52291 29.5385 16 29.5385C23.4771 29.5385 29.5385 23.4771 29.5385 16C29.5385 8.52291 23.4771 2.46154 16 2.46154ZM0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z",fill:"#FFB600"}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 8.20513C16.6797 8.20513 17.2308 8.75616 17.2308 9.4359V17.641C17.2308 18.3208 16.6797 18.8718 16 18.8718C15.3203 18.8718 14.7692 18.3208 14.7692 17.641V9.4359C14.7692 8.75616 15.3203 8.20513 16 8.20513Z",fill:"#FFB600"}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7692 22.5641C14.7692 21.8844 15.3203 21.3333 16 21.3333H16.0164C16.6961 21.3333 17.2472 21.8844 17.2472 22.5641C17.2472 23.2438 16.6961 23.7949 16.0164 23.7949H16C15.3203 23.7949 14.7692 23.2438 14.7692 22.5641Z",fill:"#FFB600"})),xA=t=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Icon/Insight"},N.createElement("path",{id:"Fill-1",fillRule:"evenodd",clipRule:"evenodd",d:"M9.3336 9.33644C8.59749 10.0725 7.40264 10.0725 6.66652 9.33644C5.93041 8.60039 5.93041 7.40565 6.66652 6.6696C7.40264 5.93355 8.59749 5.93355 9.3336 6.6696C10.0697 7.40565 10.0697 8.60039 9.3336 9.33644Z",fill:"#107D57"}),N.createElement("path",{id:"Fill-3",fillRule:"evenodd",clipRule:"evenodd",d:"M12.3345 12.3306C11.7818 12.8833 10.8863 12.8827 10.3342 12.3306C9.78211 11.7786 9.78145 10.8832 10.3342 10.3305C10.8869 9.77781 11.7824 9.77847 12.3345 10.3305C12.8866 10.8825 12.8873 11.7779 12.3345 12.3306Z",fill:"#107D57"}),N.createElement("path",{id:"Fill-5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.66586 5.66365C5.11311 6.21635 4.21831 6.21635 3.66556 5.66365C3.11281 5.11094 3.11281 4.21622 3.66556 3.66352C4.21831 3.11081 5.11311 3.11081 5.66586 3.66352C6.21861 4.21622 6.21861 5.11094 5.66586 5.66365Z",fill:"#107D57"}),N.createElement("path",{id:"Fill-7",fillRule:"evenodd",clipRule:"evenodd",d:"M12.3345 5.66365C11.7818 6.21635 10.8869 6.21635 10.3342 5.66365C9.78145 5.11094 9.78145 4.21622 10.3342 3.66352C10.8869 3.11081 11.7818 3.11081 12.3345 3.66352C12.8873 4.21622 12.8873 5.11094 12.3345 5.66365Z",fill:"#107D57"}),N.createElement("path",{id:"Fill-9",fillRule:"evenodd",clipRule:"evenodd",d:"M5.66586 12.3306C5.11378 12.8827 4.21831 12.8833 3.66556 12.3306C3.11281 11.7779 3.11347 10.8825 3.66556 10.3305C4.21764 9.77847 5.11311 9.77781 5.66586 10.3305C6.21861 10.8832 6.21795 11.7786 5.66586 12.3306Z",fill:"#107D57"}),N.createElement("path",{id:"Fill-11",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M8.66683 1.99964C8.29877 2.36766 7.70135 2.36766 7.33329 1.99964C6.96524 1.63162 6.96524 1.03425 7.33329 0.666221C7.70135 0.298198 8.29877 0.298198 8.66683 0.666221C9.03489 1.03425 9.03489 1.63162 8.66683 1.99964Z",fill:"#107D57"}),N.createElement("path",{id:"Fill-13",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.66676C14.9652 9.03478 14.3684 9.03545 13.9997 8.66675C13.631 8.29806 13.6316 7.70136 13.9997 7.33334C14.3677 6.96531 14.9645 6.96464 15.3332 7.33334C15.7019 7.70203 15.7013 8.29873 15.3332 8.66676Z",fill:"#107D57"}),N.createElement("path",{id:"Fill-15",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M8.66683 15.3339C8.29811 15.7026 7.70202 15.7026 7.33329 15.3339C6.96457 14.9652 6.96457 14.3691 7.33329 14.0004C7.70202 13.6318 8.29811 13.6318 8.66683 14.0005C9.03555 14.3691 9.03555 14.9652 8.66683 15.3339Z",fill:"#107D57"}),N.createElement("path",{id:"Fill-17",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M2.00033 8.66676C1.6316 9.03545 1.03484 9.03478 0.666788 8.66676C0.298732 8.29873 0.298065 7.70203 0.666788 7.33334C1.03551 6.96465 1.63227 6.96531 2.00033 7.33334C2.36838 7.70136 2.36905 8.29806 2.00033 8.66676Z",fill:"#107D57"}))),LA=t=>N.createElement("svg",{width:23,height:19,viewBox:"0 0 23 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.406282 4.85302C0.406282 2.58132 2.24786 0.739746 4.51956 0.739746H18.2305C20.5022 0.739746 22.3437 2.58132 22.3437 4.85302C22.3437 7.12472 20.5022 8.96629 18.2305 8.96629H4.51955C2.24785 8.96629 0.406282 7.12472 0.406282 4.85302ZM1.97322 4.85306C1.97322 3.44677 3.11324 2.30675 4.51953 2.30675H16.0759V7.39937H4.51953C3.11324 7.39937 1.97322 6.25935 1.97322 4.85306Z",fill:"white"}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.40625 14.6465C0.40625 12.3748 2.24783 10.5332 4.51952 10.5332H18.2304C20.5021 10.5332 22.3437 12.3748 22.3437 14.6465C22.3437 16.9182 20.5021 18.7597 18.2304 18.7597H4.51952C2.24782 18.7597 0.40625 16.9182 0.40625 14.6465ZM1.97322 14.6465C1.97322 13.2402 3.11324 12.1002 4.51953 12.1002H12.1585V17.1928H4.51953C3.11324 17.1928 1.97322 16.0528 1.97322 14.6465Z",fill:"white"})),FA=t=>N.createElement("svg",{width:35,height:35,viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{d:"M18.0391 21.544C18.4637 21.544 18.7634 21.2688 18.7884 20.8184C19.5129 14.9393 19.7877 14.7892 25.7831 13.7885C26.2576 13.7384 26.5324 13.4882 26.5324 13.0629C26.5324 12.6627 26.2576 12.4125 25.8831 12.3374L25.617 12.2868C19.8278 11.1861 19.5021 11.1241 18.7884 5.33245C18.7634 4.88213 18.4637 4.60693 18.0391 4.60693C17.6643 4.60693 17.3646 4.88213 17.3394 5.30743C16.5652 11.2867 16.3652 11.4618 10.2449 12.3374C9.87015 12.3875 9.59537 12.6627 9.59537 13.0629C9.59537 13.4632 9.87015 13.7384 10.2449 13.7885L10.4306 13.8249C16.3689 14.9894 16.5482 15.0246 17.3394 20.8685C17.3646 21.2688 17.6643 21.544 18.0391 21.544Z",fill:"white"}),N.createElement("path",{d:"M22.6105 31.3153C22.8391 31.3153 23.0005 31.1672 23.014 30.9247C23.4041 27.759 23.5521 27.6781 26.7804 27.1393C27.0359 27.1124 27.1838 26.9776 27.1838 26.7486C27.1838 26.5331 27.0359 26.3984 26.8342 26.358L26.6909 26.3307C23.5737 25.738 23.3983 25.7047 23.014 22.5861C23.0005 22.3436 22.8391 22.1954 22.6105 22.1954C22.4087 22.1954 22.2473 22.3436 22.2338 22.5726C21.8169 25.7922 21.7092 25.8865 18.4136 26.358C18.2119 26.3849 18.0639 26.5331 18.0639 26.7486C18.0639 26.9642 18.2119 27.1124 18.4136 27.1393L18.5136 27.1589C21.7112 27.786 21.8077 27.8049 22.2338 30.9516C22.2473 31.1672 22.4087 31.3153 22.6105 31.3153Z",fill:"white"}),N.createElement("path",{d:"M7.86401 20.6693C7.85634 20.8079 7.76411 20.8925 7.63346 20.8925C7.51815 20.8925 7.42593 20.8079 7.41819 20.6847C7.17473 18.8866 7.11956 18.8758 5.29238 18.5174L5.23526 18.5062C5.11995 18.4908 5.0354 18.4062 5.0354 18.283C5.0354 18.1598 5.11995 18.0752 5.23526 18.0598C7.11844 17.7903 7.17996 17.7365 7.41819 15.8967C7.42593 15.7658 7.51815 15.6811 7.63346 15.6811C7.76411 15.6811 7.85634 15.7658 7.86401 15.9044C8.08364 17.6864 8.18385 17.7055 9.96513 18.0442L10.047 18.0598C10.1623 18.0829 10.2468 18.1598 10.2468 18.283C10.2468 18.4139 10.1623 18.4908 10.0162 18.5062C8.1715 18.8141 8.08695 18.8603 7.86401 20.6693Z",fill:"white"})),BA=t=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Icon/Notification/Trivia"},N.createElement("path",{id:"Notification/Icon/Trivia",fillRule:"evenodd",clipRule:"evenodd",d:"M2.01663 1.3808C0.739913 1.55586 -0.153153 2.73276 0.021912 4.00948L1.3808 13.9196C1.55586 15.1963 2.73276 16.0894 4.00948 15.9143L13.9196 14.5554C15.1963 14.3803 16.0894 13.2034 15.9143 11.9267L14.5554 2.01663C14.3803 0.739913 13.2034 -0.153153 11.9267 0.021912L2.01663 1.3808ZM9.59613 3.788C9.11431 3.46991 8.47813 3.30151 7.7566 3.30151C7.54377 3.30151 7.32625 3.31671 7.10872 3.34478C6.38836 3.44067 5.68901 3.79034 5.18965 4.30138C4.68445 4.82062 4.4377 5.45563 4.51722 6.04151C4.57452 6.4742 4.90078 6.7537 5.34635 6.7537C5.39429 6.7537 5.44341 6.7502 5.49136 6.74435C6.08778 6.66483 6.21642 6.25436 6.34036 5.85675L6.34045 5.85648C6.48192 5.40401 6.61534 4.97731 7.38585 4.87444C7.46537 4.86391 7.54138 4.85806 7.61506 4.85806C8.16939 4.85806 8.51436 5.15042 8.58454 5.68252C8.65353 6.20293 8.24307 6.61807 7.80684 7.0566L7.80393 7.05954C7.31582 7.55231 6.7639 8.1095 6.86895 8.90083C6.89585 9.10548 6.9859 9.29493 7.12272 9.43644C7.27826 9.599 7.4829 9.68436 7.71331 9.68436C7.75541 9.68436 7.79868 9.68203 7.84311 9.67618C8.46691 9.59324 8.55162 9.23139 8.63338 8.8821L8.63365 8.88097L8.63661 8.86859C8.66723 8.7403 8.69877 8.60813 8.75995 8.48804C8.84649 8.31613 9.06283 8.11265 9.31428 7.87875C9.9142 7.31858 10.734 6.55143 10.582 5.41589C10.4872 4.70603 10.1551 4.15757 9.59611 3.78802L9.59613 3.788ZM8.11605 10.28C8.06927 10.28 8.02132 10.2836 7.97454 10.2894C7.38396 10.3689 6.96765 10.9127 7.04599 11.5033C7.11733 12.0377 7.57808 12.4412 8.1172 12.4412C8.16397 12.4412 8.21192 12.4377 8.25987 12.4318C8.85045 12.3523 9.2656 11.8085 9.18842 11.2179C9.11591 10.6823 8.65517 10.28 8.11605 10.28Z",fill:"white",fillOpacity:.5}))),WA=t=>N.createElement("svg",{width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("rect",{x:.5,width:16,height:16,rx:8,fill:"white",style:{fill:"white",fillOpacity:1}}),N.createElement("path",{d:"M4.75 8.5L7.09375 11L12.25 5",stroke:"#107D57",style:{stroke:"#107D57",stroke:"color(display-p3 0.0627 0.4902 0.3412)",strokeOpacity:1},strokeLinecap:"round",strokeLinejoin:"round"})),ZA=t=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("path",{id:"Selected",fillRule:"evenodd",clipRule:"evenodd",d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.6057 5.43441C11.2933 5.12199 10.7868 5.12199 10.4744 5.43441L6.93812 9.97066L5.08382 8.73446C4.7162 8.48938 4.2195 8.58871 3.97442 8.95634C3.72934 9.32396 3.82868 9.82065 4.1963 10.0657L6.5963 11.6657C6.9136 11.8773 7.33609 11.8354 7.60574 11.5658L11.6057 6.56578C11.9182 6.25336 11.9182 5.74683 11.6057 5.43441Z",fill:"#107D57"})),DA=t=>N.createElement("svg",{width:103,height:18,viewBox:"0 0 103 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{clipPath:"url(#clip0_6919_104497)"},N.createElement("path",{d:"M9.89618 3.45801C9.91951 3.45801 9.94451 3.46134 9.96784 3.46134C9.97618 3.46134 9.98284 3.46134 9.99118 3.46467H9.99784C10.0095 3.46467 10.0212 3.46801 10.0312 3.46801C10.0412 3.46801 10.0462 3.46801 10.0545 3.47134C10.0762 3.47467 10.0962 3.47467 10.1178 3.47634C10.1412 3.47967 10.1662 3.48134 10.1895 3.48467H10.2012C10.2462 3.48967 10.2945 3.49634 10.3395 3.50467C10.4512 3.52467 10.5595 3.54801 10.6662 3.57801C10.6928 3.58301 10.7178 3.59301 10.7445 3.60134H10.7478C10.7745 3.60967 10.7995 3.61801 10.8262 3.62467C10.8528 3.63301 10.8778 3.64134 10.9045 3.65134C10.9312 3.65967 10.9562 3.66801 10.9795 3.67967C11.0012 3.68801 11.0212 3.69634 11.0428 3.70634C11.0495 3.70967 11.0578 3.71134 11.0645 3.71467C11.0828 3.72301 11.1012 3.72967 11.1195 3.73801C11.1262 3.74134 11.1312 3.74301 11.1378 3.74634C11.1562 3.75467 11.1712 3.76134 11.1895 3.76967C11.1962 3.77301 11.2045 3.77467 11.2128 3.78134C11.2345 3.78967 11.2528 3.79801 11.2728 3.80967C11.2762 3.80967 11.2795 3.81301 11.2812 3.81301C11.3045 3.82467 11.3295 3.83634 11.3512 3.84801C11.3695 3.85634 11.3878 3.86801 11.4062 3.87634C11.4212 3.88134 11.4328 3.89134 11.4462 3.89967C11.4645 3.91134 11.4828 3.91967 11.5012 3.93134C11.5045 3.93467 11.5078 3.93467 11.5095 3.93634L11.5728 3.97467H11.5762L15.2178 6.18801L15.4412 6.32467C16.3228 6.90801 16.9028 7.88467 16.9028 8.99301C16.9028 10.1013 16.3262 11.0763 15.4445 11.6613L15.2095 11.803L11.5745 14.0113H11.5712L11.5078 14.0497C11.5078 14.0497 11.5012 14.053 11.4995 14.0547C11.4812 14.0663 11.4628 14.0747 11.4445 14.0863C11.4595 14.078 11.4745 14.0697 11.4895 14.0597L5.94951 17.433C5.94951 17.433 5.94618 17.433 5.94618 17.4363L5.74451 17.558H5.74118C5.19784 17.863 4.55784 18.0247 3.87784 17.993C2.73618 17.938 1.75784 17.3463 1.19284 16.4847C0.837844 15.9413 0.64451 15.2913 0.681177 14.6013C0.71451 13.983 0.922844 13.4147 1.26118 12.9397L1.26951 12.9247L4.04451 8.99634L6.77784 5.12634C6.81118 5.07967 6.84784 5.03301 6.87784 4.98467C6.87451 4.98967 6.86951 4.99967 6.86284 5.00467C6.87118 4.98967 6.88118 4.97634 6.88951 4.96134C6.88951 4.95801 6.89284 4.95801 6.89284 4.95634C6.89618 4.95301 6.89951 4.94801 6.90118 4.94467C6.90118 4.94467 6.90118 4.94134 6.90451 4.94134C6.91951 4.92134 6.93451 4.90134 6.94618 4.87801C6.96118 4.85801 6.97618 4.83801 6.99118 4.81634C7.00618 4.79634 7.02118 4.77634 7.03618 4.75467C7.03951 4.75134 7.03951 4.74967 7.04284 4.74634C7.04618 4.74301 7.04618 4.74134 7.04951 4.74134C7.06451 4.72134 7.07951 4.70134 7.09784 4.67967C7.10951 4.66467 7.12118 4.65134 7.13451 4.63634C7.16784 4.59801 7.20118 4.56134 7.23784 4.52301C7.25284 4.50801 7.26451 4.49467 7.27951 4.47967C7.30118 4.45634 7.32118 4.43634 7.34618 4.41634C7.36451 4.39967 7.38284 4.38134 7.40118 4.36467C7.41951 4.34801 7.43451 4.33301 7.45284 4.31801C7.45618 4.31467 7.45951 4.31301 7.45951 4.31301C7.47118 4.30134 7.48118 4.29301 7.49284 4.28467C7.50451 4.27301 7.51951 4.26134 7.53284 4.25301C7.53618 4.24967 7.53951 4.24801 7.54118 4.24801C7.55951 4.23301 7.57451 4.21967 7.59284 4.20467C7.60784 4.18967 7.62618 4.17801 7.64118 4.16634C7.65618 4.15467 7.66784 4.14634 7.68284 4.13467C7.70118 4.11967 7.71951 4.10801 7.73784 4.09467C7.75284 4.08634 7.76451 4.07467 7.77951 4.06634C7.78618 4.06134 7.79451 4.05467 7.80284 4.05134C7.81784 4.03967 7.83284 4.03134 7.84784 4.02301C7.85118 4.01967 7.85618 4.01801 7.85951 4.01467C7.87784 4.00301 7.89618 3.99134 7.91118 3.98301C7.91784 3.97801 7.92618 3.97467 7.93284 3.96801C7.94784 3.95967 7.95951 3.95134 7.97451 3.94134C7.98284 3.93634 7.99284 3.92967 8.00118 3.92467C8.01618 3.91634 8.03451 3.90801 8.04951 3.89634C8.05284 3.89301 8.05784 3.89134 8.06451 3.88801C8.08618 3.87634 8.10451 3.86467 8.12451 3.85634C8.12784 3.85301 8.13118 3.85301 8.13618 3.85134C8.15784 3.83967 8.17784 3.82801 8.19951 3.81967C8.19951 3.81967 8.20284 3.81967 8.20284 3.81634C8.22618 3.80467 8.24784 3.79301 8.27284 3.78134C8.27284 3.78134 8.27618 3.78134 8.27618 3.77801C8.29451 3.76967 8.31284 3.76134 8.33284 3.75134C8.34118 3.74801 8.35118 3.74301 8.35951 3.73967C8.37118 3.73467 8.38284 3.72801 8.39618 3.72467C8.41118 3.71967 8.42284 3.71301 8.43784 3.70801C8.46118 3.69967 8.48284 3.69134 8.50784 3.68134C8.52284 3.67634 8.53451 3.66967 8.54951 3.66634C8.57118 3.65801 8.59118 3.65134 8.61284 3.64301C8.63118 3.63801 8.65284 3.63134 8.66951 3.62301C8.75451 3.59634 8.83784 3.57134 8.92284 3.54967C8.94118 3.54467 8.96284 3.54134 8.97951 3.53801C9.08451 3.51467 9.19451 3.49467 9.30284 3.48301C9.32951 3.47967 9.35784 3.47801 9.38451 3.47467C9.42118 3.47134 9.45951 3.46967 9.49618 3.46634C9.51118 3.46634 9.52284 3.46301 9.53784 3.46301H9.55951C9.58951 3.46301 9.61618 3.45967 9.64784 3.45967H9.73784C9.79451 3.45967 9.84284 3.45967 9.89451 3.46301L9.89618 3.45801ZM10.6662 14.413C10.5612 14.4413 10.4512 14.4647 10.3395 14.4863C10.4512 14.4663 10.5595 14.443 10.6662 14.413ZM9.56118 14.5313H9.56951C9.56118 14.5313 9.54784 14.5313 9.53951 14.528C9.54618 14.528 9.55451 14.5313 9.56118 14.5313ZM7.08784 13.293C7.05451 13.253 7.02451 13.2147 6.99451 13.1747C7.02451 13.2147 7.05784 13.253 7.08784 13.293ZM6.90284 13.043C6.90284 13.043 6.90618 13.0463 6.90618 13.048C6.90284 13.0447 6.90284 13.043 6.89951 13.0363C6.89618 13.033 6.89618 13.0297 6.89284 13.0247C6.86951 12.9897 6.84784 12.953 6.82284 12.918C6.84451 12.953 6.86784 12.9913 6.88951 13.0247C6.89618 13.0297 6.89784 13.0363 6.90118 13.0413L6.90284 13.043ZM6.89451 13.0263C6.85784 12.968 6.81951 12.913 6.77618 12.858L6.89451 13.0263Z",fill:"#1652A8",style:{fill:"#1652A8",fill:"color(display-p3 0.0863 0.3216 0.6588)",fillOpacity:1}}),N.createElement("g",{opacity:.85},N.createElement("path",{d:"M5.77088 0.453306L5.97588 0.578306L5.97921 0.581639L11.5225 3.94997C11.5075 3.94164 11.4925 3.93331 11.4775 3.92331C11.4959 3.93497 11.5142 3.94331 11.5325 3.95497C11.5359 3.95831 11.5392 3.95831 11.5409 3.95997L11.6042 3.99831H11.6075L15.2492 6.21164L15.4725 6.34831C16.3542 6.93164 16.9342 7.9083 16.9342 9.01664C16.9342 10.125 16.3575 11.1 15.4759 11.685L15.2409 11.8266L11.6059 14.035H11.6025L11.5392 14.0733C11.5392 14.0733 11.5325 14.0766 11.5309 14.0783C11.5125 14.09 11.4942 14.0983 11.4759 14.11C11.4642 14.1183 11.4492 14.125 11.4359 14.1333C11.4175 14.145 11.3992 14.1533 11.3809 14.1616C11.3575 14.1733 11.3359 14.185 11.3109 14.1966C11.3075 14.2 11.3042 14.2 11.3025 14.2C11.2842 14.2116 11.2625 14.22 11.2425 14.2283C11.2359 14.2316 11.2275 14.2333 11.2192 14.24C11.2009 14.2483 11.1859 14.255 11.1675 14.2633C11.1609 14.2666 11.1592 14.2683 11.1525 14.2683C11.1309 14.2766 11.1109 14.285 11.0859 14.2966C11.0625 14.3083 11.0342 14.3166 11.0109 14.325C10.9875 14.3333 10.9592 14.345 10.9359 14.3533C10.9092 14.3616 10.8842 14.37 10.8575 14.38C10.8309 14.3883 10.8059 14.3966 10.7792 14.4033H10.7759C10.7492 14.4116 10.7242 14.4183 10.6975 14.4266C10.5925 14.455 10.4825 14.4783 10.3709 14.4983C10.3259 14.5066 10.2775 14.5133 10.2325 14.5183C10.2259 14.5183 10.2242 14.5183 10.2209 14.5216C10.1975 14.525 10.1725 14.5283 10.1492 14.53C10.1009 14.5366 10.0525 14.5383 10.0042 14.5416C9.92921 14.5483 9.85254 14.5483 9.77754 14.5483H9.68088C9.65421 14.5483 9.62921 14.545 9.60254 14.545C9.59421 14.545 9.58088 14.545 9.57254 14.5416C9.53254 14.5383 9.49088 14.5366 9.45254 14.5333C9.27421 14.5166 9.09588 14.4866 8.92754 14.4466C8.90421 14.44 8.87921 14.435 8.85254 14.4266C8.81921 14.4183 8.78588 14.41 8.74921 14.3983C8.73088 14.3933 8.70921 14.3866 8.69254 14.3816C8.66588 14.3733 8.64088 14.365 8.61421 14.355C8.58754 14.3466 8.56254 14.3383 8.53921 14.3266C8.51588 14.3183 8.48754 14.3066 8.46421 14.2983C8.44088 14.29 8.41921 14.2816 8.39754 14.27C8.38921 14.2666 8.38254 14.265 8.37421 14.2583C8.35588 14.25 8.33754 14.2416 8.31754 14.2316C8.31754 14.2316 8.31421 14.2316 8.31421 14.2283C8.29088 14.2166 8.26588 14.205 8.24254 14.1933C8.21921 14.1816 8.19421 14.17 8.17088 14.155C8.14754 14.1433 8.12254 14.1283 8.10088 14.1166C8.07754 14.105 8.05254 14.09 8.03088 14.0766C8.00754 14.0616 7.98588 14.0483 7.96088 14.0366C7.93754 14.0216 7.91588 14.0083 7.89421 13.9933C7.87254 13.9783 7.85254 13.965 7.83088 13.95C7.82754 13.95 7.82754 13.9466 7.82421 13.945C7.80588 13.9333 7.78754 13.9183 7.76754 13.905C7.76421 13.9016 7.76088 13.9016 7.75921 13.9C7.74088 13.885 7.72254 13.8733 7.70421 13.86C7.70088 13.8566 7.69588 13.855 7.69254 13.8483C7.67421 13.8333 7.65588 13.82 7.63754 13.805C7.63754 13.805 7.63421 13.805 7.63421 13.8016C7.61588 13.7866 7.59754 13.7733 7.57754 13.755C7.57421 13.7516 7.57088 13.7516 7.56921 13.7483C7.55421 13.7366 7.53921 13.7216 7.52421 13.71C7.51754 13.705 7.51254 13.6983 7.50588 13.695C7.49421 13.6833 7.47921 13.6716 7.46588 13.66C7.43921 13.6366 7.41421 13.6133 7.39088 13.5866C7.37254 13.57 7.35754 13.5516 7.33921 13.535C7.32754 13.5233 7.31754 13.5116 7.30588 13.5C7.29421 13.4883 7.28421 13.48 7.27588 13.4683C7.25754 13.4516 7.24254 13.43 7.22421 13.4133C7.19088 13.375 7.15754 13.3383 7.12421 13.2966C7.09088 13.2566 7.06088 13.2183 7.03088 13.1783C7.01588 13.1583 7.00088 13.1383 6.98588 13.1166C6.97088 13.0966 6.95588 13.0766 6.94421 13.0533C6.94088 13.05 6.94088 13.0483 6.93754 13.0416C6.93421 13.0383 6.93421 13.0366 6.93088 13.03C6.90754 12.995 6.88588 12.9583 6.86088 12.9233C6.88254 12.9583 6.90588 12.995 6.92754 13.03C6.89088 12.9716 6.85254 12.9166 6.80921 12.8616L4.07921 8.99664L1.34088 5.12997L1.23254 4.97664L1.22921 4.97164C0.92421 4.51164 0.737543 3.97497 0.707543 3.39497C0.670877 2.70497 0.86421 2.05164 1.22088 1.50997C1.78588 0.648306 2.76588 0.0566391 3.90421 -2.75556e-05C4.58421 -0.0150276 5.22421 0.148306 5.77088 0.453306Z",fill:"url(#paint0_linear_6919_104497)",style:{}})),N.createElement("path",{d:"M32.4132 12.862C31.2015 12.862 30.4482 12.0503 30.4482 10.7203V8.4453H32.6632V7.02697H30.4482V4.72363L28.8548 5.9053V7.0253H27.9648V8.44363H28.8548V10.7053C28.8548 12.9953 30.1982 14.412 32.4282 14.412H32.7682V12.862H32.4132Z",fill:"#687C8B",style:{fill:"#687C8B",fill:"color(display-p3 0.4078 0.4863 0.5451)",fillOpacity:1}}),N.createElement("path",{d:"M19.9812 12.5767L21.4028 11.4651C22.0395 12.4867 22.8995 13.0351 23.9962 13.0351C25.1962 13.0351 25.9512 12.2651 25.9512 11.3017C25.9512 10.1901 24.7662 9.83506 23.5212 9.43506C22.0545 8.96172 20.4695 8.36839 20.4695 6.38339C20.4695 4.73839 21.9362 3.43506 23.9362 3.43506C25.5812 3.43506 26.6028 4.07172 27.4328 5.03506L26.1145 6.01339C25.6262 5.25839 24.8995 4.85839 23.9362 4.85839C22.8395 4.85839 22.1278 5.51006 22.1278 6.35506C22.1278 7.39172 23.2695 7.73339 24.5128 8.14839C25.9945 8.65172 27.6095 9.29006 27.6095 11.3051C27.6095 12.9651 26.2462 14.5501 24.0095 14.5501C22.1578 14.5501 20.8978 13.7651 19.9795 12.5801L19.9812 12.5767Z",fill:"#687C8B",style:{fill:"#687C8B",fill:"color(display-p3 0.4078 0.4863 0.5451)",fillOpacity:1}}),N.createElement("path",{d:"M38.2695 10.7367C38.2695 8.56503 39.9379 6.8667 42.1095 6.8667C44.2812 6.8667 45.9062 8.4467 45.9062 10.6334V11.2534H39.7912C39.9979 12.39 40.8845 13.1434 42.1695 13.1434C43.1745 13.1434 43.9429 12.6117 44.3262 11.8134L45.6262 12.5367C44.9762 13.7484 43.8095 14.545 42.1695 14.545C39.8362 14.545 38.2695 12.8767 38.2695 10.735V10.7367ZM39.8645 9.91003H44.2962C44.0595 8.8467 43.2479 8.25503 42.1095 8.25503C40.9712 8.25503 40.1595 8.93503 39.8645 9.91003Z",fill:"#687C8B",style:{fill:"#687C8B",fill:"color(display-p3 0.4078 0.4863 0.5451)",fillOpacity:1}}),N.createElement("path",{d:"M33.7549 10.72C33.7549 8.42999 35.0982 7.02832 37.3282 7.02832H38.0366V8.56499H37.3132C36.1016 8.56499 35.3199 9.40665 35.3349 10.7367V14.415H33.7549V10.7233V10.72Z",fill:"#687C8B",style:{fill:"#687C8B",fill:"color(display-p3 0.4078 0.4863 0.5451)",fillOpacity:1}}),N.createElement("path",{d:"M46.6882 10.7218C46.6882 8.56517 48.3865 6.88184 50.5132 6.88184C52.6399 6.88184 54.3082 8.56517 54.3082 10.7218V14.4135H52.7582V13.4535C52.2415 14.1468 51.4432 14.5468 50.4682 14.5468C48.3565 14.5468 46.6865 12.8935 46.6865 10.7218H46.6882ZM52.7882 10.7218C52.7882 9.40684 51.7832 8.3585 50.5132 8.3585C49.2432 8.3585 48.2382 9.40684 48.2382 10.7218C48.2382 12.0368 49.2282 13.0852 50.5132 13.0852C51.7982 13.0852 52.7882 12.0218 52.7882 10.7218Z",fill:"#687C8B",style:{fill:"#687C8B",fill:"color(display-p3 0.4078 0.4863 0.5451)",fillOpacity:1}}),N.createElement("path",{d:"M55.3027 10.2717C55.3027 8.30667 56.6461 6.875 58.6411 6.875C59.7777 6.875 60.6944 7.33333 61.2694 8.10167C61.8161 7.33333 62.7027 6.875 63.8394 6.875C65.8477 6.875 67.2511 8.27833 67.2511 10.2717V14.4067H65.6711V10.2867C65.6711 9.165 64.9177 8.38167 63.8394 8.38167C62.7611 8.38167 62.0527 9.18 62.0677 10.2433V14.4083H60.4877V10.2883C60.4877 9.16667 59.7194 8.38333 58.6411 8.38333C57.5627 8.38333 56.8694 9.18167 56.8827 10.245V14.41H55.3027V10.275V10.2717Z",fill:"#687C8B",style:{fill:"#687C8B",fill:"color(display-p3 0.4078 0.4863 0.5451)",fillOpacity:1}}),N.createElement("path",{d:"M68.2646 3.62695H69.8746V12.872H74.2313V14.4086H68.2646V3.62695Z",fill:"#687C8B",style:{fill:"#687C8B",fill:"color(display-p3 0.4078 0.4863 0.5451)",fillOpacity:1}}),N.createElement("path",{d:"M89.418 10.7367C89.418 8.56503 91.0863 6.8667 93.258 6.8667C95.4296 6.8667 97.0546 8.4467 97.0546 10.6334V11.2534H90.9396C91.1463 12.39 92.033 13.1434 93.318 13.1434C94.323 13.1434 95.0913 12.6117 95.4746 11.8134L96.7746 12.5367C96.1246 13.7484 94.958 14.545 93.318 14.545C90.9846 14.545 89.418 12.8767 89.418 10.735V10.7367ZM91.013 9.91003H95.4446C95.208 8.8467 94.3963 8.25503 93.258 8.25503C92.1196 8.25503 91.308 8.93503 91.013 9.91003Z",fill:"#687C8B",style:{fill:"#687C8B",fill:"color(display-p3 0.4078 0.4863 0.5451)",fillOpacity:1}}),N.createElement("path",{d:"M74.4948 10.7218C74.4948 8.56517 76.1932 6.88184 78.3198 6.88184C80.4465 6.88184 82.1148 8.56517 82.1148 10.7218V14.4135H80.5648V13.4535C80.0482 14.1468 79.2498 14.5468 78.2748 14.5468C76.1632 14.5468 74.4932 12.8935 74.4932 10.7218H74.4948ZM80.5948 10.7218C80.5948 9.40684 79.5898 8.3585 78.3198 8.3585C77.0498 8.3585 76.0448 9.40684 76.0448 10.7218C76.0448 12.0368 77.0348 13.0852 78.3198 13.0852C79.6048 13.0852 80.5948 12.0218 80.5948 10.7218Z",fill:"#687C8B",style:{fill:"#687C8B",fill:"color(display-p3 0.4078 0.4863 0.5451)",fillOpacity:1}}),N.createElement("path",{d:"M85.0381 14.0498L81.9814 7.0498H83.6798L85.8364 12.1748L87.8748 7.0498H89.5431L85.0831 17.8465H83.4581L85.0381 14.0515V14.0498Z",fill:"#687C8B",style:{fill:"#687C8B",fill:"color(display-p3 0.4078 0.4863 0.5451)",fillOpacity:1}}),N.createElement("path",{d:"M98.041 10.7151C98.041 8.4251 99.3843 7.02344 101.614 7.02344H102.323V8.5601H101.599C100.388 8.5601 99.606 9.40177 99.621 10.7318V14.4101H98.041V10.7184V10.7151Z",fill:"#687C8B",style:{fill:"#687C8B",fill:"color(display-p3 0.4078 0.4863 0.5451)",fillOpacity:1}})),N.createElement("defs",null,N.createElement("linearGradient",{id:"paint0_linear_6919_104497",x1:4.31754,y1:8.70664,x2:13.6359,y2:3.59497,gradientUnits:"userSpaceOnUse"},N.createElement("stop",{offset:.2,stopColor:"#1589EE",style:{stopColor:"#1589EE",stopColor:"color(display-p3 0.0824 0.5373 0.9333)",stopOpacity:1}}),N.createElement("stop",{offset:1,stopColor:"#5EB4FF",style:{stopColor:"#5EB4FF",stopColor:"color(display-p3 0.3686 0.7059 1.0000)",stopOpacity:1}})),N.createElement("clipPath",{id:"clip0_6919_104497"},N.createElement("rect",{width:101.648,height:18,fill:"white",style:{fill:"white",fillOpacity:1},transform:"translate(0.675781)"})))),OA=t=>N.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},N.createElement("g",{id:"Frame 3469523"},N.createElement("rect",{x:.5,y:.5,width:17,height:17,rx:8.5,fill:"black"}),N.createElement("rect",{x:.5,y:.5,width:17,height:17,rx:8.5,stroke:"#F2F2F1"}),N.createElement("g",{id:"layer1"},N.createElement("path",{id:"path1009",d:"M5.10046 5L8.32856 9.3097L5.08008 12.8137H5.81118L8.65522 9.74589L10.9531 12.8137H13.4411L10.0314 8.26155L13.055 5H12.3239L9.70471 7.82536L7.58843 5H5.10046ZM6.1756 5.53771H7.31858L12.3658 12.2759H11.2228L6.1756 5.53771Z",fill:"white"})))),Vm={"invite-game-icon":CA,"icon-trophy":yA,"icon-trophy-green":gA,"icon-trophy-solid":fA,"icon-trivia":BA,"icon-thumb-down":dA,"icon-thumb-up":hA,"icon-star":uA,"icon-prediction":FA,"icon-insight":xA,"icon-poll":LA,"icon-play":lA,"icon-pause":oA,"icon-masters-logo":sA,"icon-logout":rA,"icon-link":iA,"icon-external-link":eA,"icon-invite-arrow":nA,"icon-friends":tA,"icon-exit":qC,"icon-default-user-avatar":$C,"icon-copy":QC,"icon-cross":LC,"icon-close":jC,"icon-close-btn-white":HC,"icon-close-btn-gray":YC,"icon-circle-arrow-right":PC,"icon-chevron":MC,"icon-chevron-white-left":GC,"icon-chevron-left":XC,"icon-check":NC,"icon-check-white":OC,"icon-check-green":DC,"icon-check-circle":ZC,"icon-correct":xC,"icon-btn-channels":RA,"icon-btn-feature-groups":IA,"icon-btn-leaderboard":VA,"icon-arrow":wC,"icon-twitter-verified":bA,"icon-trophy-bet-pack":mA,"icon-trivia-transparent":pA,dashboard:KC,iconMute:aA,iconUnMute:EA,correct:NA,iconSkip:cA,incorrect:UA,questionExpired:kA,selected:ZA,selectedBetPack:WA,circleClose:kC,incorrectVoted:vA,mastersLogo:SA,streamLayerLogo:DA,twitter:OA,iconUp:TA,iconCopySuccess:JC,chevronRight:UC,noImageIcon:wA,iconArrowRight:WC,iconEarlyPrediction:zC,iconArrowPrev:BC,mastersLogoWhite:_A,loader:AA,fgIcon:FC},Ce=({name:t,style:e,className:n,...i})=>{if(!Vm[t])return C.jsx("span",{children:t});const r=Vm[t];return C.jsx(r,{"data-testid":"svg-icon",style:e,className:n,...i})},XA=({height:t="37px",width:e="37px"})=>C.jsx("div",{style:{height:t,width:e},children:C.jsx(Ce,{name:"loader"})}),GA=F("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),MA=F("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),PA=F("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),Bl=F("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),YA="t1xke4ml",HA="h1yzxv57",jA=F("div")({name:"VideoControls",class:"vxo8xch",propsAsIs:!1}),j1=F("button")({name:"ControlBtn",class:"coyuzu0",propsAsIs:!1}),JA=()=>j1,QA=F(JA())({name:"MuteIcon",class:"musmi9a",propsAsIs:!0}),KA=()=>j1,$A=F(KA())({name:"PauseIcon",class:"p1qe7rum",propsAsIs:!0}),zA=()=>j1,qA=F(zA())({name:"PlayIcon",class:"psevery",propsAsIs:!0}),yc=F("button")({name:"WebOSIconButton",class:"w1q3u7py",propsAsIs:!1}),eS=()=>yc,wm=F(eS())({name:"WebOSIconButtonPlay",class:"wdlqvum",propsAsIs:!0}),tS=()=>yc,nS=F(tS())({name:"WebOSIconButtonPause",class:"w1ylz9ea",propsAsIs:!0}),iS=()=>yc,rS=F(iS())({name:"WebOSIconButtonMute",class:"w1iylt55",propsAsIs:!0}),sS=()=>yc,aS=F(sS())({name:"WebOSIconButtonUnmute",class:"w8h4h7",propsAsIs:!0}),oS=t=>{for(const e of t)e.isIntersecting?e.target instanceof HTMLVideoElement&&e.target.autoplay&&e.target.play():e.target instanceof HTMLVideoElement&&!e.target.paused&&e.target.pause()},h3=new IntersectionObserver(oS,{threshold:.5}),J1=new Set,lS=t=>{h3.observe(t),J1.add(t)},cS=t=>{h3.unobserve(t),J1.delete(t)},uS=()=>{for(const t of J1)t instanceof HTMLVideoElement&&!t.paused&&t.pause()};function dS(...t){return M.useCallback(e=>{for(const n of t)n!==null&&(typeof n=="function"?n(e):n&&(n.current=e))},[...t])}const hS=yn(GA),pS=({loading:t,autoPlay:e,played:n,playing:i,isMuted:r,unmute:s,mute:a,togglePlaying:o})=>!t&&!e&&!n?C.jsx(Bl,{children:i?C.jsx(Ce,{name:"icon-pause"}):C.jsx(Ce,{name:"icon-play"})}):n?C.jsxs(jA,{children:[i?C.jsx($A,{onClick:o}):C.jsx(qA,{onClick:o}),C.jsx(QA,{className:mn(!r&&"muted"),onClick:r?s:a})]}):null,mS=({loading:t,autoPlay:e,playMuted:n,playing:i,played:r,isMutedMediaVideo:s,unmute:a,mute:o,isMuted:c})=>C.jsxs(C.Fragment,{children:[!t&&!(e&&n)&&C.jsx(Bl,{"data-control-btn":"true",children:i?C.jsx(wm,{children:C.jsx(Ce,{name:"icon-play"})}):r?C.jsx(nS,{children:C.jsx(Ce,{name:"icon-pause"})}):C.jsx(wm,{name:"icon-play","data-control-icon":"true"})}),!t&&e&&n&&s!==void 0&&C.jsx(Bl,{children:s?C.jsx(rS,{onClick:c?a:o,children:C.jsx(Ce,{name:"iconMute"})}):C.jsx(aS,{onClick:c?a:o,children:C.jsx(Ce,{name:"iconUnMute"})})})]}),oo=M.forwardRef(({poster:t,source:e,aspectRatio:n,controlVideo:i,onReplay:r,onPlay:s,onPause:a,onEnd:o,onRender:c,onMute:u,onQuartile:d,autoPlay:y,playMuted:A,className:T,muted:_,webos:b},V)=>{const w=M.useRef(null),W=dS(w,V),B=M.useRef(!1),Z=M.useRef(!1),L=M.useRef(new Set),[X,J]=M.useState(!1),[j,re]=M.useState(!1),[de,oe]=M.useState(!1),[ce,se]=M.useState(!0),[me,we]=M.useState(A);M.useEffect(()=>{e&&(we(A),J(!1))},[e]);const he=M.useCallback(()=>{i==null||i({muted:!1})},[i]),be=M.useCallback(()=>{i==null||i({muted:!0})},[i]),Ne=M.useCallback(le=>{le==null||le.stopPropagation(),w.current&&(w.current.muted=!0),we(!0)},[]),at=M.useCallback(le=>{le==null||le.stopPropagation(),w.current&&(w.current.muted=!1),we(!1)},[]);M.useEffect(()=>{_!==void 0&&(_?Ne():at())},[Ne,_,at]);const ct=le=>{var Se;(Se=le.stopPropagation)==null||Se.call(le);const Ae=w==null?void 0:w.current;if(Ae)if(j)Ae.pause();else{const Ue=w==null?void 0:w.current;if(!Ue)return;uS(),Ue.play().catch(En=>console.log(En)),se(!1)}},Ke=()=>{var le;(le=w==null?void 0:w.current)==null||le.load(),se(!0)};return M.useEffect(()=>()=>{he()},[he]),M.useEffect(()=>{const le=w.current;return le?(Z.current=le.muted,we(le.muted),lS(le),()=>{cS(le)}):()=>{}},[]),M.useEffect(()=>{c==null||c()},[c]),M.useEffect(()=>{L.current.clear(),B.current=!1},[e]),C.jsxs(hS,{webos:b,onClick:y?void 0:ct,"data-a":"intr",autoFocus:!0,options:{focusKey:"video-play-btn"},className:mn(j&&YA,y&&HA,T),style:n?{aspectRatio:n}:{},children:[C.jsx(MA,{ref:W,src:e,autoPlay:y,onPlay:()=>{J(!0),B.current&&(r==null||r(),L.current.clear()),re(!0),se(!1),s==null||s(),A?Ne():be()},onTimeUpdate:le=>{const Se=le.target.duration,Ae=le.target.currentTime;if(Se&&Ae){const Ue=Math.floor(Ae/Se*100);Ue>=25&&Ue<50&&!L.current.has(25)?(d==null||d(25),L.current.add(25)):Ue>=50&&Ue<75&&!L.current.has(50)?(d==null||d(50),L.current.add(50)):Ue>=75&&!L.current.has(75)&&(d==null||d(75),L.current.add(75))}},onVolumeChange:le=>{const Se=le.target.muted;Z.current!==Se&&(u==null||u(Se),Z.current=Se,(Se!==_||_===void 0)&&(Se?he():be()))},onError:async le=>{try{if(le.target instanceof HTMLVideoElement){oe(!0);const Se=await(await fetch(le.target.src)).blob(),Ae=URL.createObjectURL(Se);le.target.src=Ae}}catch(Se){console.error("video fallback fetch failed",Se),re(!0),se(!0)}finally{oe(!1),he()}},onPause:()=>{re(!1),a==null||a(),he()},onEnded:()=>{re(!1),B.current=!0,Ke(),o==null||o(),he()},style:{visibility:ce?"hidden":"visible"},controls:!1,playsInline:!0}),C.jsx(PA,{src:t,style:{visibility:ce?"visible":"hidden"}}),!b&&C.jsx(pS,{loading:de,autoPlay:y,played:X,playing:j,isMuted:me,unmute:at,mute:Ne,togglePlaying:ct}),b&&C.jsx(mS,{loading:de,autoPlay:y,playMuted:A,playing:j,played:X,isMutedMediaVideo:me,unmute:at,mute:Ne,isMuted:me}),de&&C.jsx(Bl,{children:C.jsx(XA,{})})]})});var bc={},p3={exports:{}},gS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fS=gS,yS=fS;function m3(){}function g3(){}g3.resetWarningCache=m3;var bS=function(){function t(i,r,s,a,o,c){if(c!==yS){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:g3,resetWarningCache:m3};return n.PropTypes=n,n};p3.exports=bS();var f3=p3.exports,y3={L:1,M:0,Q:3,H:2},b3={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},ES=b3;function E3(t){this.mode=ES.MODE_8BIT_BYTE,this.data=t}E3.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}};var TS=E3,tl=y3;function Pn(t,e){this.totalCount=t,this.dataCount=e}Pn.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];Pn.getRSBlocks=function(t,e){var n=Pn.getRsBlockTable(t,e);if(n==null)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var i=n.length/3,r=new Array,s=0;s<i;s++)for(var a=n[s*3+0],o=n[s*3+1],c=n[s*3+2],u=0;u<a;u++)r.push(new Pn(o,c));return r};Pn.getRsBlockTable=function(t,e){switch(e){case tl.L:return Pn.RS_BLOCK_TABLE[(t-1)*4+0];case tl.M:return Pn.RS_BLOCK_TABLE[(t-1)*4+1];case tl.Q:return Pn.RS_BLOCK_TABLE[(t-1)*4+2];case tl.H:return Pn.RS_BLOCK_TABLE[(t-1)*4+3];default:return}};var vS=Pn;function T3(){this.buffer=new Array,this.length=0}T3.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)==1},put:function(t,e){for(var n=0;n<e;n++)this.putBit((t>>>e-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var CS=T3,Vn={glog:function(t){if(t<1)throw new Error("glog("+t+")");return Vn.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return Vn.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var Et=0;Et<8;Et++)Vn.EXP_TABLE[Et]=1<<Et;for(var Et=8;Et<256;Et++)Vn.EXP_TABLE[Et]=Vn.EXP_TABLE[Et-4]^Vn.EXP_TABLE[Et-5]^Vn.EXP_TABLE[Et-6]^Vn.EXP_TABLE[Et-8];for(var Et=0;Et<255;Et++)Vn.LOG_TABLE[Vn.EXP_TABLE[Et]]=Et;var v3=Vn,mr=v3;function El(t,e){if(t.length==null)throw new Error(t.length+"/"+e);for(var n=0;n<t.length&&t[n]==0;)n++;this.num=new Array(t.length-n+e);for(var i=0;i<t.length-n;i++)this.num[i]=t[i+n]}El.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<t.getLength();i++)e[n+i]^=mr.gexp(mr.glog(this.get(n))+mr.glog(t.get(i)));return new El(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=mr.glog(this.get(0))-mr.glog(t.get(0)),n=new Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(var i=0;i<t.getLength();i++)n[i]^=mr.gexp(mr.glog(t.get(i))+e);return new El(n,0).mod(t)}};var C3=El,on=b3,Nm=C3,AS=v3,Bi={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},yt={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;yt.getBCHDigit(e)-yt.getBCHDigit(yt.G15)>=0;)e^=yt.G15<<yt.getBCHDigit(e)-yt.getBCHDigit(yt.G15);return(t<<10|e)^yt.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;yt.getBCHDigit(e)-yt.getBCHDigit(yt.G18)>=0;)e^=yt.G18<<yt.getBCHDigit(e)-yt.getBCHDigit(yt.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;t!=0;)e++,t>>>=1;return e},getPatternPosition:function(t){return yt.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case Bi.PATTERN000:return(e+n)%2==0;case Bi.PATTERN001:return e%2==0;case Bi.PATTERN010:return n%3==0;case Bi.PATTERN011:return(e+n)%3==0;case Bi.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case Bi.PATTERN101:return e*n%2+e*n%3==0;case Bi.PATTERN110:return(e*n%2+e*n%3)%2==0;case Bi.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new Nm([1],0),n=0;n<t;n++)e=e.multiply(new Nm([1,AS.gexp(n)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case on.MODE_NUMBER:return 10;case on.MODE_ALPHA_NUM:return 9;case on.MODE_8BIT_BYTE:return 8;case on.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case on.MODE_NUMBER:return 12;case on.MODE_ALPHA_NUM:return 11;case on.MODE_8BIT_BYTE:return 16;case on.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else if(e<41)switch(t){case on.MODE_NUMBER:return 14;case on.MODE_ALPHA_NUM:return 13;case on.MODE_8BIT_BYTE:return 16;case on.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}else throw new Error("type:"+e)},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,i=0;i<e;i++)for(var r=0;r<e;r++){for(var s=0,a=t.isDark(i,r),o=-1;o<=1;o++)if(!(i+o<0||e<=i+o))for(var c=-1;c<=1;c++)r+c<0||e<=r+c||o==0&&c==0||a==t.isDark(i+o,r+c)&&s++;s>5&&(n+=3+s-5)}for(var i=0;i<e-1;i++)for(var r=0;r<e-1;r++){var u=0;t.isDark(i,r)&&u++,t.isDark(i+1,r)&&u++,t.isDark(i,r+1)&&u++,t.isDark(i+1,r+1)&&u++,(u==0||u==4)&&(n+=3)}for(var i=0;i<e;i++)for(var r=0;r<e-6;r++)t.isDark(i,r)&&!t.isDark(i,r+1)&&t.isDark(i,r+2)&&t.isDark(i,r+3)&&t.isDark(i,r+4)&&!t.isDark(i,r+5)&&t.isDark(i,r+6)&&(n+=40);for(var r=0;r<e;r++)for(var i=0;i<e-6;i++)t.isDark(i,r)&&!t.isDark(i+1,r)&&t.isDark(i+2,r)&&t.isDark(i+3,r)&&t.isDark(i+4,r)&&!t.isDark(i+5,r)&&t.isDark(i+6,r)&&(n+=40);for(var d=0,r=0;r<e;r++)for(var i=0;i<e;i++)t.isDark(i,r)&&d++;var y=Math.abs(100*d/e/e-50)/5;return n+=y*10,n}},SS=yt,_S=TS,A3=vS,S3=CS,$i=SS,RS=C3;function Hn(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var sn=Hn.prototype;sn.addData=function(t){var e=new _S(t);this.dataList.push(e),this.dataCache=null};sn.isDark=function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]};sn.getModuleCount=function(){return this.moduleCount};sn.make=function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=A3.getRSBlocks(t,this.errorCorrectLevel),n=new S3,i=0,r=0;r<e.length;r++)i+=e[r].dataCount;for(var r=0;r<this.dataList.length;r++){var s=this.dataList[r];n.put(s.mode,4),n.put(s.getLength(),$i.getLengthInBits(s.mode,t)),s.write(n)}if(n.getLengthInBits()<=i*8)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())};sn.makeImpl=function(t,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=Hn.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)};sn.setupPositionProbePattern=function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(0<=n&&n<=6&&(i==0||i==6)||0<=i&&i<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=i&&i<=4?this.modules[t+n][e+i]=!0:this.modules[t+n][e+i]=!1)};sn.getBestMaskPattern=function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=$i.getLostPoint(this);(n==0||t>i)&&(t=i,e=n)}return e};sn.createMovieClip=function(t,e,n){var i=t.createEmptyMovieClip(e,n),r=1;this.make();for(var s=0;s<this.modules.length;s++)for(var a=s*r,o=0;o<this.modules[s].length;o++){var c=o*r,u=this.modules[s][o];u&&(i.beginFill(0,100),i.moveTo(c,a),i.lineTo(c+r,a),i.lineTo(c+r,a+r),i.lineTo(c,a+r),i.endFill())}return i};sn.setupTimingPattern=function(){for(var t=8;t<this.moduleCount-8;t++)this.modules[t][6]==null&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)this.modules[6][e]==null&&(this.modules[6][e]=e%2==0)};sn.setupPositionAdjustPattern=function(){for(var t=$i.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var i=t[e],r=t[n];if(this.modules[i][r]==null)for(var s=-2;s<=2;s++)for(var a=-2;a<=2;a++)s==-2||s==2||a==-2||a==2||s==0&&a==0?this.modules[i+s][r+a]=!0:this.modules[i+s][r+a]=!1}};sn.setupTypeNumber=function(t){for(var e=$i.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!t&&(e>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(var n=0;n<18;n++){var i=!t&&(e>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}};sn.setupTypeInfo=function(t,e){for(var n=this.errorCorrectLevel<<3|e,i=$i.getBCHTypeInfo(n),r=0;r<15;r++){var s=!t&&(i>>r&1)==1;r<6?this.modules[r][8]=s:r<8?this.modules[r+1][8]=s:this.modules[this.moduleCount-15+r][8]=s}for(var r=0;r<15;r++){var s=!t&&(i>>r&1)==1;r<8?this.modules[8][this.moduleCount-r-1]=s:r<9?this.modules[8][15-r-1+1]=s:this.modules[8][15-r-1]=s}this.modules[this.moduleCount-8][8]=!t};sn.mapData=function(t,e){for(var n=-1,i=this.moduleCount-1,r=7,s=0,a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(var o=0;o<2;o++)if(this.modules[i][a-o]==null){var c=!1;s<t.length&&(c=(t[s]>>>r&1)==1);var u=$i.getMask(e,i,a-o);u&&(c=!c),this.modules[i][a-o]=c,r--,r==-1&&(s++,r=7)}if(i+=n,i<0||this.moduleCount<=i){i-=n,n=-n;break}}};Hn.PAD0=236;Hn.PAD1=17;Hn.createData=function(t,e,n){for(var i=A3.getRSBlocks(t,e),r=new S3,s=0;s<n.length;s++){var a=n[s];r.put(a.mode,4),r.put(a.getLength(),$i.getLengthInBits(a.mode,t)),a.write(r)}for(var o=0,s=0;s<i.length;s++)o+=i[s].dataCount;if(r.getLengthInBits()>o*8)throw new Error("code length overflow. ("+r.getLengthInBits()+">"+o*8+")");for(r.getLengthInBits()+4<=o*8&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=o*8||(r.put(Hn.PAD0,8),r.getLengthInBits()>=o*8));)r.put(Hn.PAD1,8);return Hn.createBytes(r,i)};Hn.createBytes=function(t,e){for(var n=0,i=0,r=0,s=new Array(e.length),a=new Array(e.length),o=0;o<e.length;o++){var c=e[o].dataCount,u=e[o].totalCount-c;i=Math.max(i,c),r=Math.max(r,u),s[o]=new Array(c);for(var d=0;d<s[o].length;d++)s[o][d]=255&t.buffer[d+n];n+=c;var y=$i.getErrorCorrectPolynomial(u),A=new RS(s[o],y.getLength()-1),T=A.mod(y);a[o]=new Array(y.getLength()-1);for(var d=0;d<a[o].length;d++){var _=d+T.getLength()-a[o].length;a[o][d]=_>=0?T.get(_):0}}for(var b=0,d=0;d<e.length;d++)b+=e[d].totalCount;for(var V=new Array(b),w=0,d=0;d<i;d++)for(var o=0;o<e.length;o++)d<s[o].length&&(V[w++]=s[o][d]);for(var d=0;d<r;d++)for(var o=0;o<e.length;o++)d<a[o].length&&(V[w++]=a[o][d]);return V};var IS=Hn,Q1={};Object.defineProperty(Q1,"__esModule",{value:!0});var VS=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},wS=f3,ln=R3(wS),_3=M,nl=R3(_3);function R3(t){return t&&t.__esModule?t:{default:t}}function NS(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}var US={bgColor:ln.default.oneOfType([ln.default.object,ln.default.string]).isRequired,bgD:ln.default.string.isRequired,fgColor:ln.default.oneOfType([ln.default.object,ln.default.string]).isRequired,fgD:ln.default.string.isRequired,size:ln.default.number.isRequired,title:ln.default.string,viewBoxSize:ln.default.number.isRequired,xmlns:ln.default.string},K1=(0,_3.forwardRef)(function(t,e){var n=t.bgColor,i=t.bgD,r=t.fgD,s=t.fgColor,a=t.size,o=t.title,c=t.viewBoxSize,u=t.xmlns,d=u===void 0?"http://www.w3.org/2000/svg":u,y=NS(t,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return nl.default.createElement("svg",VS({},y,{height:a,ref:e,viewBox:"0 0 "+c+" "+c,width:a,xmlns:d}),o?nl.default.createElement("title",null,o):null,nl.default.createElement("path",{d:i,fill:n}),nl.default.createElement("path",{d:r,fill:s}))});K1.displayName="QRCodeSvg";K1.propTypes=US;Q1.default=K1;Object.defineProperty(bc,"__esModule",{value:!0});bc.QRCode=void 0;var kS=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},xS=f3,ai=lo(xS),LS=y3,FS=lo(LS),BS=IS,WS=lo(BS),I3=M,ZS=lo(I3),DS=Q1,OS=lo(DS);function lo(t){return t&&t.__esModule?t:{default:t}}function XS(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}var GS={bgColor:ai.default.oneOfType([ai.default.object,ai.default.string]),fgColor:ai.default.oneOfType([ai.default.object,ai.default.string]),level:ai.default.string,size:ai.default.number,value:ai.default.string.isRequired},Ec=(0,I3.forwardRef)(function(t,e){var n=t.bgColor,i=n===void 0?"#FFFFFF":n,r=t.fgColor,s=r===void 0?"#000000":r,a=t.level,o=a===void 0?"L":a,c=t.size,u=c===void 0?256:c,d=t.value,y=XS(t,["bgColor","fgColor","level","size","value"]),A=new WS.default(-1,FS.default[o]);A.addData(d),A.make();var T=A.modules;return ZS.default.createElement(OS.default,kS({},y,{bgColor:i,bgD:T.map(function(_,b){return _.map(function(V,w){return V?"":"M "+w+" "+b+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:s,fgD:T.map(function(_,b){return _.map(function(V,w){return V?"M "+w+" "+b+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:e,size:u,viewBoxSize:T.length}))});bc.QRCode=Ec;Ec.displayName="QRCode";Ec.propTypes=GS;var MS=bc.default=Ec;const PS=F("div")({name:"Container",class:"clxplqv",propsAsIs:!1}),YS=F("div")({name:"Header",class:"h18fzrta",propsAsIs:!1}),HS=F("div")({name:"BrandBlock",class:"bxfcca1",propsAsIs:!1}),jS=F("img")({name:"LogoIcon",class:"lz4xk2s",propsAsIs:!1}),JS=F("div")({name:"BrandText",class:"b1udizru",propsAsIs:!1}),QS=F("div")({name:"BrandNameContainer",class:"b1keaj5j",propsAsIs:!1}),KS=F("span")({name:"BrandName",class:"b17io0yd",propsAsIs:!1}),$S=F("span")({name:"Sponsored",class:"s4ldrvh",propsAsIs:!1}),zS=t=>C.jsx("svg",{viewBox:"0 0 24 24",fill:"white",xmlns:"http://www.w3.org/2000/svg",...t,children:C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.225 4.811a.75.75 0 0 1 1.06 0L12 9.525l4.715-4.714a.75.75 0 1 1 1.06 1.06L13.06 10.5l4.715 4.715a.75.75 0 0 1-1.06 1.06L12 11.56l-4.715 4.715a.75.75 0 0 1-1.06-1.06L10.94 10.5 6.225 5.785a.75.75 0 0 1 0-1.06z"})}),qS=F("button")({name:"CloseButton",class:"cxfmzcm",propsAsIs:!1}),e_=()=>oo,t_=F(e_())({name:"FocusableVideo",class:"faubznb",propsAsIs:!0}),n_=F("div")({name:"VideoWrapper",class:"v1n8ue7o",propsAsIs:!1}),i_=F("div")({name:"VideoBlock",class:"v1x04fia",propsAsIs:!1}),r_=()=>({backgroundColor:t})=>t||"#0f6cd4",s_=()=>({textColor:t})=>t||"#fff",Ud=F("div")({name:"SendToUserButton",class:"s15di30w",propsAsIs:!1,vars:{"s15di30w-0":[r_()],"s15di30w-1":[s_()]}}),Um=()=>C.jsx("svg",{fill:"white",style:{fill:"white",width:"30px",height:"30px",verticalAlign:"middle",marginRight:"8px"},viewBox:"0 0 40 28",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M5.57502 27.5H34.9099C37.803 27.5 39.5 25.8713 39.5 22.645V5.355C39.5 2.12878 37.7869 0.5 34.4251 0.5H5.09014C2.19706 0.5 0.5 2.12878 0.5 5.355V22.645C0.5 25.8713 2.21323 27.5 5.57502 27.5ZM5.47805 25.1039C3.87796 25.1039 2.97286 24.2425 2.97286 22.6294V5.33933C2.97286 3.74189 3.87796 2.89618 5.47805 2.89618H34.5058C36.1059 2.89618 37.0272 3.74189 37.0272 5.355V22.645C37.0272 24.2425 36.1059 25.1039 34.5058 25.1039H5.47805ZM19.9919 18.1189C21.0263 18.1189 22.0285 17.7431 22.9496 16.9287L38.1586 3.66359L36.4776 2.01915L21.5435 15.0651C21.0425 15.5035 20.5253 15.7071 19.9919 15.7071C19.4586 15.7071 18.9414 15.5035 18.4403 15.0651L3.50622 2.01915L1.82532 3.66359L17.0342 16.9287C17.9554 17.7431 18.9575 18.1189 19.9919 18.1189ZM3.74866 25.4954L15.224 14.3602L13.5431 12.7315L2.06776 23.851L3.74866 25.4954ZM36.2676 25.5111L37.9484 23.8666L26.4569 12.7315L24.7598 14.3602L36.2676 25.5111Z",fill:"white"})}),a_=F("div")({name:"SendToUserText",class:"sui9wi2",propsAsIs:!1}),km=F("div")({name:"VideoStatus",class:"vddh3kx",propsAsIs:!1}),o_=F("h2")({name:"Title",class:"t13i81d3",propsAsIs:!1}),l_=F("p")({name:"Description",class:"d1vr1bii",propsAsIs:!1}),ku=F("div")({name:"QRBlock",class:"q1st3522",propsAsIs:!1}),xu=F("div")({name:"QRDescBlock",class:"qjnj4vf",propsAsIs:!1}),Lu=F("div")({name:"LearnMore",class:"l1bj8s6q",propsAsIs:!1}),Fu=F("div")({name:"QRHint",class:"q1nyi744",propsAsIs:!1}),c_=F("div")({name:"QRWrapper",class:"q1ri138g",propsAsIs:!1}),u_=()=>MS,d_=F(u_())({name:"StyledQRCode",class:"s1asn3je",propsAsIs:!0}),Bu=M.forwardRef(({value:t,size:e=200,fgColor:n="#0f172a",bgColor:i="#ffffff",level:r="M",tabIndex:s=0},a)=>C.jsx("a",{ref:a,href:t,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",borderRadius:10},tabIndex:s,children:C.jsx(c_,{children:C.jsx(d_,{value:t,size:e,fgColor:n,bgColor:i,level:r,viewBox:`0 0 ${e} ${e}`})})})),h_=yn(Ud),p_=({promotion:t,onClose:e})=>{var n,i,r,s,a,o,c,u,d,y,A,T,_;const b=t.buttonType,V=t.coupon,w=(n=t.banner)==null?void 0:n.url,W=t.type;return b===pa.BASIC?C.jsxs(ku,{children:[w&&C.jsx(Bu,{value:w}),C.jsxs(xu,{children:[C.jsx(Lu,{children:"LEARN MORE"}),C.jsx(Fu,{children:"SCAN QR CODE WITH YOUR PHONE CAMERA"})]})]}):b===pa.ADD_TO_WALLET?C.jsxs(ku,{children:[C.jsx(Bu,{value:V}),C.jsxs(xu,{children:[C.jsx(Lu,{style:{fontSize:18,fontWeight:400},children:"ADD TO APPLE WALLET"}),C.jsx(Fu,{style:{fontSize:17},children:"SCAN QR CODE WITH YOUR PHONE CAMERA"})]})]}):b===pa.SEND_TO_USER&&W!==un.INGAME_IAB11_LBAR?C.jsxs(C.Fragment,{children:[C.jsxs(Ud,{backgroundColor:(r=(i=t==null?void 0:t.banner)==null?void 0:i.ctaButton)==null?void 0:r.color,textColor:(a=(s=t==null?void 0:t.banner)==null?void 0:s.ctaButton)==null?void 0:a.textColor,children:[C.jsx(Um,{}),"SEND INFO TO ACCOUNT EMAIL"]}),C.jsxs(ku,{children:[w&&C.jsx(Bu,{value:w}),C.jsxs(xu,{children:[C.jsx(Lu,{children:"LEARN MORE"}),C.jsx(Fu,{children:"SCAN QR CODE WITH YOUR PHONE CAMERA"})]})]})]}):b===pa.SEND_TO_USER&&W===un.INGAME_IAB11_LBAR?C.jsxs(Ud,{backgroundColor:(c=(o=t==null?void 0:t.banner)==null?void 0:o.ctaButton)==null?void 0:c.color,textColor:(d=(u=t==null?void 0:t.banner)==null?void 0:u.ctaButton)==null?void 0:d.textColor,children:[C.jsx(Um,{}),C.jsx(a_,{children:"SEND INFO TO ACCOUNT EMAIL"})]}):b===pa.RETURN_TO_VIDEO?C.jsx(h_,{webos:!0,autoFocus:!0,backgroundColor:(A=(y=t==null?void 0:t.banner)==null?void 0:y.ctaButton)==null?void 0:A.color,textColor:(_=(T=t==null?void 0:t.banner)==null?void 0:T.ctaButton)==null?void 0:_.textColor,onClick:e,children:"BACK TO VIDEO"}):null},m_=yn(qS,{isFocusBoundary:!0}),g_=t=>{var e,n,i,r,s,a,o,c,u,d,y,A,T,_;const{promotion:b,open:V,togglePause:w,controlVideo:W,promotionId:B,onClose:Z,markAsViewed:L,advertisementPaused:X,isEventFired:J,fireEvent:j,muted:re,isMuted:de}=t,oe=M.useRef(null),ce=M.useRef(null),[se,me]=M.useState(0),we=b.type===un.INGAME_IAB11_LBAR?se:se/2,he=!!((n=(e=b.banner)==null?void 0:e.video)!=null&&n.url),be=b.autoPlayVideo===xa.ENABLED,Ne=b.playVideoMuted===Ef.ENABLED,at=Ne&&be,ct=b.type===un.INGAME_IAB11_LBAR||b.type===un.INGAME_IAB11||b.type===un.INGAME_IAB11_SIDEBAR;let Ke=(i=b.banner)==null?void 0:i.url;return Ke&&!Ke.startsWith("http")&&(Ke=`https://${Ke}`),M.useEffect(()=>{if(!ce.current)return;const le=new ResizeObserver(([Se])=>{const Ae=Se.contentRect.width;me(Ae)});return le.observe(ce.current),hc.updateAllLayouts(),()=>{le.disconnect()}},[]),M.useEffect(()=>{w==null||w(he||be),V==null||V()},[he,be,V,w]),M.useEffect(()=>{B&&b.type&&L&&L()},[B,b.type,L]),M.useEffect(()=>()=>{W==null||W({muted:!1})},[W]),C.jsx("div",{children:C.jsxs(PS,{ref:ce,children:[C.jsxs(YS,{children:[b.logoMode===1&&C.jsxs(HS,{children:[C.jsx(jS,{src:(r=b.sponsor)==null?void 0:r.logo,alt:"Logo"}),C.jsxs(JS,{children:[C.jsx(QS,{children:C.jsx(KS,{children:(s=b.sponsor)==null?void 0:s.name})}),C.jsx($S,{children:"SPONSORED"})]})]}),b.logoMode===2&&b.type===un.INGAME_IAB11_LBAR&&C.jsx("img",{src:(a=b.sponsor)==null?void 0:a.logo,alt:"Video paused preview",style:{height:"56px"}}),C.jsx(m_,{options:{focusKey:"close-ad-button"},webos:!0,onClick:Z,"data-close-btn":"true",children:C.jsx(zS,{})})]}),b.logoMode===2&&b.type!==un.INGAME_IAB11_LBAR&&C.jsx("img",{src:(o=b.sponsor)==null?void 0:o.logo,alt:"Video paused preview",style:{display:"block",alignSelf:"center",maxHeight:"72px",width:"auto"}}),((c=b.banner)==null?void 0:c.imageUrl)&&C.jsx(i_,{style:{height:we},children:C.jsx("img",{src:(u=b.banner)==null?void 0:u.imageUrl,alt:"Video paused preview",style:{width:"100%",height:"100%",objectFit:"cover"}})}),((d=b.banner)==null?void 0:d.video)&&C.jsxs(n_,{children:[C.jsx(t_,{source:b.banner.video.url,poster:(A=(y=b.banner)==null?void 0:y.video)==null?void 0:A.thumbnailUrl,webos:!0,aspectRatio:ct?"1/1":"2/1",ref:oe,onRender:()=>{J!=null&&J("video-rendered")||(Yt.emit("advertisement",{action:"videoRendered",payload:{id:B,type:b.type}}),j==null||j("video-rendered"))},onQuartile:le=>{J!=null&&J(`video-quartile-${le}`)||(Yt.emit("advertisement",{action:"quartileCompleted",payload:{id:B,type:b.type,quartile:le}}),j==null||j(`video-quartile-${le}`))},onMute:le=>{const Se=le?"muted":"unmuted";J!=null&&J(Se)||(Yt.emit("advertisement",{action:le?"videoMuted":"videoUnmuted",payload:{id:B,type:b.type}}),j==null||j(Se))},onPause:()=>{be&&(w==null||w(!0))},onReplay:()=>{J!=null&&J("replayed")||(Yt.emit("advertisement",{action:"videoReplayed",payload:{id:B,type:b.type}}),j==null||j("replayed"))},onPlay:()=>{J!=null&&J("played")||(Yt.emit("advertisement",{action:"videoPlay",payload:{id:B,type:b.type}}),j==null||j("played")),w==null||w(!1),J!=null&&J("played")&&J!=null&&J("ended")&&!(J!=null&&J("replayed"))&&(Yt.emit("advertisement",{action:"videoReplayed",payload:{id:B,type:b.type}}),j==null||j("replayed"))},onEnd:()=>{J!=null&&J("ended")||(Yt.emit("advertisement",{action:"videoEnd",payload:{id:B,type:b.type}}),j==null||j("ended"))},muted:re,autoPlay:be,playMuted:Ne,controlVideo:W}),X&&C.jsxs(km,{children:[C.jsx(Ce,{name:"icon-pause"}),"PAUSED"]}),(de||at&&de===void 0)&&C.jsxs(km,{children:[C.jsx(Ce,{name:"iconMute"}),"MUTED"]})," "]}),b.type!==un.INGAME_IAB11&&b.type!==un.INGAME_IAB11_LBAR&&b.type!==un.INGAME_IAB11_SIDEBAR&&C.jsxs(C.Fragment,{children:[C.jsx(o_,{children:(T=b.banner)==null?void 0:T.title}),C.jsx(l_,{children:(_=b.banner)==null?void 0:_.body})]}),C.jsx(p_,{promotion:b,onClose:Z})]})})},f_=F("div")({name:"Container",class:"c5b6wdg",propsAsIs:!1}),y_="a1rlj479",b_="s35f1di",E_="sj4471g",T_="b12050d8",v_="b1d5ybek",C_=t=>t==="left"||t==="right"?b_:T_,A_=t=>t==="left"||t==="right"?E_:v_,S_=t=>t==="left"?"avdxyl3":t==="right"?"a1bisd08":t==="top"?"a1u9y2aj":"a1qqaks",$1=({children:t,style:e,className:n,enabled:i=!0,hiding:r,direction:s="left",onAnimationEnd:a})=>C.jsx(f_,{style:e,className:mn(n,y_,S_(s),i&&!r&&C_(s),i&&r&&A_(s)),onAnimationEnd:a,children:t}),__=F("a")({name:"Link",class:"l1sgte8c",propsAsIs:!1}),R_=F("div")({name:"BannerContainer",class:"b7yfc72",propsAsIs:!1}),I_=()=>__,V_=F(I_())({name:"BannerLink",class:"bejjq94",propsAsIs:!0}),w_=({promotion:t,promotionId:e,hiding:n,isEventFired:i,fireEvent:r,direction:s="bottom"})=>{const a=(t==null?void 0:t.adUnit)===mc.STANDART,o=a?t.banner:t.additionalBanner;if(M.useEffect(()=>{o!=null&&o.imageUrl&&t.type&&e&&(i!=null&&i("banner-showed")||(Yt.emit("advertisement",{action:"bannerShown",payload:{id:e,type:t.type}}),r==null||r("banner-showed")))},[o==null?void 0:o.imageUrl,r,i,t.type,e]),!(o!=null&&o.imageUrl))return null;let c=o==null?void 0:o.url;return c&&c.indexOf("http")!==0&&(c=`https://${c}`),C.jsx($1,{direction:s,hiding:n,children:C.jsx(R_,{className:"BannerContainer","data-is-ad":a,children:C.jsx(V_,{as:c?"a":"span",className:"BannerLink",href:c,style:{backgroundImage:`url(${o.imageUrl})`,cursor:c?"pointer":"default"},"data-promo-id":e,"data-promo-type":t.type,"data-a":"banner",target:"_blank","data-is-ad":a})})})},N_=F("div")({name:"NotificationContent",class:"n18wsqoo",propsAsIs:!1}),U_=F("div")({name:"Body",class:"b1ia90c2",propsAsIs:!1}),k_=F("div")({name:"Title",class:"tg2z08v",propsAsIs:!1}),x_=F("div")({name:"Text",class:"t59zdk1",propsAsIs:!1}),z1=F("div")({name:"MediaImgBottom",class:"m1ab9fq",propsAsIs:!1}),L_=()=>z1,F_=F(L_())({name:"MediaImgMiddle",class:"m9fsr0y",propsAsIs:!0}),xm=F("img")({name:"CtaIcon",class:"cvi9y5q",propsAsIs:!1}),B_=F("div")({name:"Logo",class:"l5mq0z",propsAsIs:!1}),W_=F("div")({name:"Footer",class:"f1mse0ft",propsAsIs:!1}),Z_=F("div")({name:"Vector",class:"v1hcloah",propsAsIs:!1}),D_=F("div")({name:"NotificationContainer",class:"n3n65jf",propsAsIs:!1}),V3=F("button")({name:"TVButton",class:"tkkfuqy",propsAsIs:!1}),O_=()=>V3,X_=F(O_())({name:"DismissButton",class:"dh9vato",propsAsIs:!0}),G_=()=>V3,w3=F(G_())({name:"OpenButton",class:"oeah8gv",propsAsIs:!0}),M_={[Pi.BOTTOM]:z1,[Pi.MIDDLE]:F_},P_=({src:t,imagePosition:e})=>{const n=M_[e]||z1;return C.jsx(n,{children:C.jsx("img",{src:t,alt:""})})},Y_=yn(X_),H_=yn(w3),j_=({notification:t,open:e,close:n,webos:i})=>{if(!t||!t.promotion||t.enabled!==bf.NOTIFICATION_ENABLED)return null;const{title:r,body:s,image:a,promotion:o}=t,{sponsorLogo:c,sponsorLogoMode:u,imagePosition:d,ctaButton:y}=o;return C.jsxs(D_,{className:"SL_Lower_Third_Notification",onClick:i?void 0:e,children:[C.jsxs(N_,{children:[C.jsx(P_,{src:a,imagePosition:d}),C.jsxs(U_,{children:[r&&C.jsx(k_,{children:r}),s&&C.jsx(x_,{children:s})]})]}),C.jsxs(W_,{children:[u!==yf.NOTIFICATION_SPONSOR_LOGO_NONE&&C.jsxs(C.Fragment,{children:[C.jsx(B_,{children:C.jsx("img",{src:c,alt:r})}),C.jsx(Z_,{})]}),i?C.jsxs(C.Fragment,{children:[C.jsx(Y_,{webos:!0,onClick:n,children:"Dismiss"}),C.jsxs(H_,{webos:!0,autoFocus:!0,style:{color:y==null?void 0:y.textColor,backgroundColor:y==null?void 0:y.color},onClick:e,children:[(y==null?void 0:y.ctaIcon)&&(y==null?void 0:y.ctaIconMode)===bd.CTA_ICON_TRANSPARENT&&C.jsx(xm,{src:y==null?void 0:y.ctaIcon,alt:"cta-icon"}),(y==null?void 0:y.label)||"Open"]})]}):C.jsxs(w3,{name:"promo-button",style:{color:y==null?void 0:y.textColor,backgroundColor:y==null?void 0:y.color},children:[(y==null?void 0:y.ctaIcon)&&(y==null?void 0:y.ctaIconMode)===bd.CTA_ICON_TRANSPARENT&&C.jsx(xm,{src:y==null?void 0:y.ctaIcon,alt:"cta-icon"}),(y==null?void 0:y.label)||"Open"]})]})]})},J_=F("div")({name:"NotificationContent",class:"n1ku6hz",propsAsIs:!1}),Q_=F("div")({name:"NotificationContainer",class:"nbxqmol",propsAsIs:!1}),K_=F("div")({name:"Body",class:"b1gu3eml",propsAsIs:!1}),$_=F("div")({name:"Title",class:"t1u17zva",propsAsIs:!1}),z_=F("div")({name:"Text",class:"t10ko1g",propsAsIs:!1}),Tc=F("div")({name:"Media",class:"mntc42e",propsAsIs:!1}),q_=()=>Tc,Lm=F(q_())({name:"MediaImgFit",class:"ml060eo",propsAsIs:!0}),eR=()=>Tc,N3=F(eR())({name:"MediaImgCentered",class:"m1vqlvig",propsAsIs:!0}),tR=()=>N3,nR=F(tR())({name:"MediaImgBottom",class:"m1e7tvi5",propsAsIs:!0}),iR=()=>Tc,rR=F(iR())({name:"MediaImgSolid",class:"mqvntt2",propsAsIs:!0}),sR=()=>Tc,aR=F(sR())({name:"MediaImgMiddle",class:"m12jtj3u",propsAsIs:!0}),oR=F("img")({name:"CtaIcon",class:"ckq1frv",propsAsIs:!1}),lR=()=>Ce,cR=F(lR())({name:"StyledChevronRight",class:"s9mjmz3",propsAsIs:!0}),uR=F("div")({name:"Logo",class:"l1cf50a7",propsAsIs:!1}),U3=F("button")({name:"TVButton",class:"thdqfl0",propsAsIs:!1}),dR=()=>U3,hR=F(dR())({name:"DismissButton",class:"d11pe8bx",propsAsIs:!0}),pR=()=>U3,mR=F(pR())({name:"OpenButton",class:"oy9k0kp",propsAsIs:!0}),gR={[Pi.UNSET]:Lm,[Pi.FIT]:Lm,[Pi.CENTERED]:N3,[Pi.BOTTOM]:nR,[Pi.SOLID]:rR,[Pi.MIDDLE]:aR},fR=({src:t,imagePosition:e})=>{const n=gR[e];return C.jsx(n,{children:C.jsx("img",{src:t,alt:""})})},yR=yn(hR),bR=yn(mR),ER=({notification:t,open:e,promotionId:n,hiding:i,direction:r="left",close:s,webos:a})=>{if(!t||!t.promotion||t.enabled!==bf.NOTIFICATION_ENABLED)return null;if(t.promotion.mode===y7.LOWER_THIRD)return C.jsx(j_,{notification:t,open:e,close:s,webos:a});const{title:o,body:c,image:u,promotion:d}=t,{sponsorLogo:y,sponsorLogoMode:A,imagePosition:T,ctaButton:_}=d,b=V=>{V.stopPropagation(),s==null||s()};return C.jsx($1,{className:"SL_Rich_Notification",direction:r,hiding:i,children:C.jsxs(Q_,{onClick:a?()=>{}:e,children:[A!==yf.NOTIFICATION_SPONSOR_LOGO_NONE&&y&&C.jsx(uR,{children:C.jsx("img",{src:y,alt:o})}),C.jsxs(J_,{children:[C.jsx(fR,{src:u,imagePosition:T}),C.jsxs(K_,{children:[o&&C.jsx($_,{children:o}),c&&C.jsx(z_,{children:c})]}),a&&C.jsx(yR,{webos:!0,onClick:b,children:"Dismiss"}),C.jsxs(bR,{webos:a,autoFocus:!0,onClick:a?e:()=>{},name:"promo-button",style:{color:_==null?void 0:_.textColor,backgroundColor:_==null?void 0:_.color},children:[(_==null?void 0:_.ctaIcon)&&(_==null?void 0:_.ctaIconMode)===bd.CTA_ICON_TRANSPARENT&&C.jsx(oR,{src:_==null?void 0:_.ctaIcon,alt:"cta-icon"}),(_==null?void 0:_.label)||"Open"]}),C.jsx(cR,{name:"chevronRight"})]})]})})},TR=F("div")({name:"SidebarContainer",class:"s1abskp8",propsAsIs:!1}),vR=({children:t,direction:e,style:n,className:i,hiding:r})=>C.jsx($1,{direction:e,style:n,hiding:r,className:i,children:C.jsx(TR,{children:t})}),CR=({advertisement:t,close:e,skipAutoClose:n,sidebar:i,banner:r,markAsViewed:s,open:a,controlVideo:o,advertisementPaused:c,togglePause:u,isEventFired:d,fireEvent:y,muted:A,toggleMute:T,isMuted:_,isNotification:b})=>t.promotion?b&&t.notification?C.jsx(ER,{open:()=>a==null?void 0:a({fromNotification:!0}),notification:t.notification,promotionId:t.question.id,close:e,webos:!0}):i?C.jsx(vR,{className:"PromoSidebarContainer",direction:i,hiding:!1,children:C.jsx(g_,{markAsViewed:s,promotionId:t.question.id,promotion:t.promotion,onClose:e,open:a,controlVideo:o,skipAutoClose:n,advertisementPaused:c,togglePause:u,isEventFired:d,fireEvent:y,muted:A,toggleMute:T,isMuted:_})}):r?C.jsx(w_,{promotionId:t.question.id,hiding:!1,promotion:t.promotion,direction:r,isEventFired:d,fireEvent:y}):null:null,AR=F("div")({name:"AdvertisementUIWrap",class:"a17b2u9w",propsAsIs:!1}),SR=t=>{const e=t.target;if(e instanceof HTMLAnchorElement&&e.target==="_blank"){const n=e.getAttribute("data-promo-id")||"",i=e.getAttribute("data-promo-type")||un.UNSET;e.getAttribute("data-a")==="button"&&Yt.emit("advertisement",{action:"buttonSelect",payload:{id:n,type:i}}),e.getAttribute("data-a")==="banner"&&Yt.emit("advertisement",{action:"bannerSelect",payload:{id:n,type:i}})}},_R=M.forwardRef(({gamification:t,skipAutoClose:e,containerId:n,muted:i,notification:r,sidebar:s,banner:a,persistent:o,controlVideo:c},u)=>{var d,y,A,T,_,b,V,w,W,B;const Z=Ti(t.advertisement.$store),{finished:L}=H1();TC(u,{enabled:!!Z.data,event:"click",listener:SR}),M.useEffect(()=>{var de;L&&((de=Z.close)==null||de.call(Z))},[L]);const X=!a&&!s,J=((A=(y=(d=Z.data)==null?void 0:d.question)==null?void 0:y.backgroundImage)==null?void 0:A.landscapeUrl)||((_=(T=Z.data)==null?void 0:T.promotion)==null?void 0:_.backgroundImageLandscapeUrl),j=((w=(V=(b=Z.data)==null?void 0:b.question)==null?void 0:V.backgroundImage)==null?void 0:w.portraitUrl)||((B=(W=Z.data)==null?void 0:W.promotion)==null?void 0:B.backgroundImagePortraitUrl),re=d3({containerId:n,landscapeUrl:J,portraitUrl:j});return Z.data===void 0||!o&&Z.isViewed?null:C.jsxs(AR,{ref:u,style:{height:X?"auto":"100%"},className:mn("SL-AdvertisementUIWrap","SL-AdvertisementWebOs","SL-AdvertisementUIWrap--lower-third"),children:[!r&&re,C.jsx(CR,{sidebar:s,banner:a,advertisement:Z.data,advertisementPaused:!!Z.isPaused,togglePause:Z.togglePause||(()=>{}),toggleMute:Z.toggleMute||(()=>{}),isMuted:Z.isMuted,close:Z.close,isEventFired:Z.isEventFired,fireEvent:Z.fireEvent,markAsViewed:t.advertisement.markAsViewed,open:t.advertisement.open,isNotification:r,skipAutoClose:e,controlVideo:c,muted:i})]})}),Wu=({sdk:t,sidebar:e,muted:n,banner:i,skipAutoClose:r,persistent:s,notification:a})=>{const{containerId:o}=Ti(t.options),c=Ti(t.featuresList.getStore()),u=M.useRef(null);if(!c)return null;const d=t.getFeature(Cr.GAMES);return d!=null&&d.advertisement?C.jsx(_R,{ref:u,gamification:d,sidebar:e,banner:i,persistent:s,skipAutoClose:r,muted:n,notification:a,containerId:o,controlVideo:t.controlVideoPlayer}):null},Fm=globalThis||void 0||self;let An=[],Wi=0;const il=4;let k3=t=>{let e=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(i){return n.lc=e.push(i),()=>{for(let s=Wi+il;s<An.length;)An[s]===i?An.splice(s,il):s+=il;let r=e.indexOf(i);~r&&(e.splice(r,1),--n.lc||n.off())}},notify(i,r){let s=!An.length;for(let a of e)An.push(a,n.value,i,r);if(s){for(Wi=0;Wi<An.length;Wi+=il)An[Wi](An[Wi+1],An[Wi+2],An[Wi+3]);An.length=0}},off(){},set(i){let r=n.value;r!==i&&(n.value=i,n.notify(r))},subscribe(i){let r=n.listen(i);return i(n.value),r},value:t};return n};function q1(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{id:t.id||null,adId:t.adId||null,sequence:t.sequence||null,apiFramework:t.apiFramework||null,universalAdIds:[],creativeExtensions:[]}}const RR=["ADCATEGORIES","ADCOUNT","ADPLAYHEAD","ADSERVINGID","ADTYPE","APIFRAMEWORKS","APPBUNDLE","ASSETURI","BLOCKEDADCATEGORIES","BREAKMAXADLENGTH","BREAKMAXADS","BREAKMAXDURATION","BREAKMINADLENGTH","BREAKMINDURATION","BREAKPOSITION","CLICKPOS","CLICKTYPE","CLIENTUA","CONTENTID","CONTENTPLAYHEAD","CONTENTURI","DEVICEIP","DEVICEUA","DOMAIN","EXTENSIONS","GDPRCONSENT","IFA","IFATYPE","INVENTORYSTATE","LATLONG","LIMITADTRACKING","MEDIAMIME","MEDIAPLAYHEAD","OMIDPARTNER","PAGEURL","PLACEMENTTYPE","PLAYERCAPABILITIES","PLAYERSIZE","PLAYERSTATE","PODSEQUENCE","REGULATIONS","SERVERSIDE","SERVERUA","TRANSACTIONID","UNIVERSALADID","VASTVERSIONS","VERIFICATIONVENDORS"];function Bm(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=[],r=L3(t);!e.ERRORCODE||n.isCustomCode||/^[0-9]{3}$/.test(e.ERRORCODE)||(e.ERRORCODE=900),e.CACHEBUSTING=W3(Math.round(1e8*Math.random())),e.TIMESTAMP=new Date().toISOString(),e.RANDOM=e.random=e.CACHEBUSTING;for(const s in e)e[s]=B3(e[s]);for(const s in r){const a=r[s];typeof a=="string"&&i.push(x3(a,e))}return i}function x3(t,e){const n=(t=Wm(t,e)).match(/[^[\]]+(?=])/g);if(!n)return t;let i=n.filter(r=>RR.indexOf(r)>-1);return i.length===0?t:(i=i.reduce((r,s)=>(r[s]=-1,r),{}),Wm(t,i))}function Wm(t,e){let n=t;for(const i in e){const r=e[i];n=n.replace(new RegExp("(?:\\[|%%)(".concat(i,")(?:\\]|%%)"),"g"),r)}return n}function L3(t){return Array.isArray(t)?t.map(e=>e&&e.hasOwnProperty("url")?e.url:e):t}function Zm(t){return/^(https?:\/\/|\/\/)/.test(t)}function Dm(t,e){for(let n=0;n<e.length;n++)if(F3(e[n],t))return!0;return!1}function F3(t,e){if(t&&e){const n=Object.getOwnPropertyNames(t),i=Object.getOwnPropertyNames(e);return n.length===i.length&&t.id===e.id&&t.url===e.url}return!1}function B3(t){return encodeURIComponent(t).replace(/[!'()*]/g,e=>"%".concat(e.charCodeAt(0).toString(16)))}function W3(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8;return t.toString().padStart(e,"0")}const Be={track:function(t,e,n){Bm(t,e,n).forEach(i=>{typeof window<"u"&&window!==null&&(new Image().src=i)})},resolveURLTemplates:Bm,extractURLsFromTemplates:L3,filterUrlTemplates:function(t){return t.reduce((e,n)=>{const i=n.url||n;return Zm(i)?e.validUrls.push(i):e.invalidUrls.push(i),e},{validUrls:[],invalidUrls:[]})},containsTemplateObject:Dm,isTemplateObjectEqual:F3,encodeURIComponentRFC3986:B3,replaceUrlMacros:x3,isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},flatten:function t(e){return e.reduce((n,i)=>n.concat(Array.isArray(i)?t(i):i),[])},joinArrayOfUniqueTemplateObjs:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=Array.isArray(t)?t:[],i=Array.isArray(e)?e:[];return n.concat(i).reduce((r,s)=>(Dm(s,r)||r.push(s),r),[])},isValidTimeValue:function(t){return Number.isFinite(t)&&t>=-2},addLeadingZeros:W3,isValidUrl:Zm,isBrowserEnvironment:function(){return typeof window<"u"},formatMacrosValues:function(t){return typeof t!="object"?t:JSON.stringify(t)}};function Om(t){return["true","TRUE","True","1"].includes(t)}function IR(t){if(t==null)return-1;if(Be.isNumeric(t))return parseInt(t);const e=t.split(":");if(e.length!==3)return-1;const n=e[2].split(".");let i=parseInt(n[0]);n.length===2&&(i+=parseFloat("0.".concat(n[1])));const r=parseInt(60*e[1]),s=parseInt(60*e[0]*60);return isNaN(s)||isNaN(r)||isNaN(i)||r>3600||i>60?-1:s+r+i}const Y={childByName:function(t,e){return Array.from(t.childNodes).find(n=>n.nodeName===e)},childrenByName:function(t,e){return Array.from(t.childNodes).filter(n=>n.nodeName===e)},resolveVastAdTagURI:function(t,e){if(!e)return t;if(t.startsWith("//")){const{protocol:n}=location;return"".concat(n).concat(t)}if(!t.includes("://")){const n=e.slice(0,e.lastIndexOf("/"));return"".concat(n,"/").concat(t)}return t},parseBoolean:Om,parseNodeText:function(t){return t&&(t.textContent||t.text||"").trim()},copyNodeAttribute:function(t,e,n){const i=e.getAttribute(t);i&&n.setAttribute(t,i)},parseAttributes:function(t){return Array.from(t.attributes).reduce((e,n)=>(e[n.nodeName]=n.nodeValue,e),{})},parseDuration:IR,getStandAloneAds:function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).filter(t=>!parseInt(t.sequence,10))},getSortedAdPods:function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).filter(t=>parseInt(t.sequence,10)).sort((t,e)=>t.sequence-e.sequence)},assignAttributes:function(t,e){t&&Array.from(t).forEach(n=>{let{nodeName:i,nodeValue:r}=n;if(i&&r&&e.hasOwnProperty(i)){let s=r;typeof e[i]=="boolean"&&(s=Om(s)),e[i]=s}})},mergeWrapperAdData:function(t,e){var n;t.errorURLTemplates=e.errorURLTemplates.concat(t.errorURLTemplates),t.impressionURLTemplates=e.impressionURLTemplates.concat(t.impressionURLTemplates),t.extensions=e.extensions.concat(t.extensions),e.viewableImpression.length>0&&(t.viewableImpression=[...t.viewableImpression,...e.viewableImpression]),t.followAdditionalWrappers=e.followAdditionalWrappers,t.allowMultipleAds=e.allowMultipleAds,t.fallbackOnNoAd=e.fallbackOnNoAd;const i=(e.creatives||[]).filter(o=>o&&o.type==="companion"),r=i.reduce((o,c)=>((c.variations||[]).forEach(u=>{(u.companionClickTrackingURLTemplates||[]).forEach(d=>{Be.containsTemplateObject(d,o)||o.push(d)})}),o),[]);t.creatives=i.concat(t.creatives);const s=e.videoClickTrackingURLTemplates&&e.videoClickTrackingURLTemplates.length,a=e.videoCustomClickURLTemplates&&e.videoCustomClickURLTemplates.length;if(t.creatives.forEach(o=>{if(e.trackingEvents&&e.trackingEvents[o.type])for(const c in e.trackingEvents[o.type]){const u=e.trackingEvents[o.type][c];Array.isArray(o.trackingEvents[c])||(o.trackingEvents[c]=[]),o.trackingEvents[c]=o.trackingEvents[c].concat(u)}o.type==="linear"&&(s&&(o.videoClickTrackingURLTemplates=o.videoClickTrackingURLTemplates.concat(e.videoClickTrackingURLTemplates)),a&&(o.videoCustomClickURLTemplates=o.videoCustomClickURLTemplates.concat(e.videoCustomClickURLTemplates)),!e.videoClickThroughURLTemplate||o.videoClickThroughURLTemplate!==null&&o.videoClickThroughURLTemplate!==void 0||(o.videoClickThroughURLTemplate=e.videoClickThroughURLTemplate)),o.type==="companion"&&r.length&&(o.variations||[]).forEach(c=>{c.companionClickTrackingURLTemplates=Be.joinArrayOfUniqueTemplateObjs(c.companionClickTrackingURLTemplates,r)})}),e.adVerifications&&(t.adVerifications=t.adVerifications.concat(e.adVerifications)),e.blockedAdCategories&&(t.blockedAdCategories=t.blockedAdCategories.concat(e.blockedAdCategories)),(n=e.creatives)!==null&&n!==void 0&&n.length){const o=e.creatives.filter(c=>{var u;return((u=c.icons)===null||u===void 0?void 0:u.length)&&!c.mediaFiles.length});o.length&&(t.creatives=t.creatives.concat(o))}}};function VR(t,e){const n=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{id:r,adId:s,sequence:a,apiFramework:o}=q1(i);return{id:r,adId:s,sequence:a,apiFramework:o,type:"companion",required:null,variations:[]}}(e);return n.required=t.getAttribute("required")||null,n.variations=Y.childrenByName(t,"Companion").map(i=>{const r=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{id:o.id||null,adType:"companionAd",width:o.width||0,height:o.height||0,assetWidth:o.assetWidth||null,assetHeight:o.assetHeight||null,expandedWidth:o.expandedWidth||null,expandedHeight:o.expandedHeight||null,apiFramework:o.apiFramework||null,adSlotId:o.adSlotId||null,pxratio:o.pxratio||"1",renderingMode:o.renderingMode||"default",staticResources:[],htmlResources:[],iframeResources:[],adParameters:null,altText:null,companionClickThroughURLTemplate:null,companionClickTrackingURLTemplates:[],trackingEvents:{}}}(Y.parseAttributes(i));r.htmlResources=Y.childrenByName(i,"HTMLResource").reduce((o,c)=>{const u=Y.parseNodeText(c);return u?o.concat(u):o},[]),r.iframeResources=Y.childrenByName(i,"IFrameResource").reduce((o,c)=>{const u=Y.parseNodeText(c);return u?o.concat(u):o},[]),r.staticResources=Y.childrenByName(i,"StaticResource").reduce((o,c)=>{const u=Y.parseNodeText(c);return u?o.concat({url:u,creativeType:c.getAttribute("creativeType")||null}):o},[]),r.altText=Y.parseNodeText(Y.childByName(i,"AltText"))||null;const s=Y.childByName(i,"TrackingEvents");s&&Y.childrenByName(s,"Tracking").forEach(o=>{const c=o.getAttribute("event"),u=Y.parseNodeText(o);c&&u&&(Array.isArray(r.trackingEvents[c])||(r.trackingEvents[c]=[]),r.trackingEvents[c].push(u))}),r.companionClickTrackingURLTemplates=Y.childrenByName(i,"CompanionClickTracking").map(o=>({id:o.getAttribute("id")||null,url:Y.parseNodeText(o)})),r.companionClickThroughURLTemplate=Y.parseNodeText(Y.childByName(i,"CompanionClickThrough"))||null;const a=Y.childByName(i,"AdParameters");return a&&(r.adParameters={value:Y.parseNodeText(a),xmlEncoded:a.getAttribute("xmlEncoded")||null}),r}),n}function wR(t,e){let n;const i=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{id:u,adId:d,sequence:y,apiFramework:A}=q1(c);return{id:u,adId:d,sequence:y,apiFramework:A,type:"linear",duration:0,skipDelay:null,mediaFiles:[],mezzanine:null,interactiveCreativeFile:null,closedCaptionFiles:[],videoClickThroughURLTemplate:null,videoClickTrackingURLTemplates:[],videoCustomClickURLTemplates:[],adParameters:null,icons:[],trackingEvents:{}}}(e);i.duration=Y.parseDuration(Y.parseNodeText(Y.childByName(t,"Duration")));const r=t.getAttribute("skipoffset");if(r==null)i.skipDelay=null;else if(r.charAt(r.length-1)==="%"&&i.duration!==-1){const c=parseInt(r,10);i.skipDelay=i.duration*(c/100)}else i.skipDelay=Y.parseDuration(r);const s=Y.childByName(t,"VideoClicks");if(s){const c=Y.childByName(s,"ClickThrough");i.videoClickThroughURLTemplate=c?{id:c.getAttribute("id")||null,url:Y.parseNodeText(c)}:null,Y.childrenByName(s,"ClickTracking").forEach(u=>{i.videoClickTrackingURLTemplates.push({id:u.getAttribute("id")||null,url:Y.parseNodeText(u)})}),Y.childrenByName(s,"CustomClick").forEach(u=>{i.videoCustomClickURLTemplates.push({id:u.getAttribute("id")||null,url:Y.parseNodeText(u)})})}const a=Y.childByName(t,"AdParameters");a&&(i.adParameters={value:Y.parseNodeText(a),xmlEncoded:a.getAttribute("xmlEncoded")||null}),Y.childrenByName(t,"TrackingEvents").forEach(c=>{Y.childrenByName(c,"Tracking").forEach(u=>{let d=u.getAttribute("event");const y=Y.parseNodeText(u);if(d&&y){if(d==="progress"){if(n=u.getAttribute("offset"),!n)return;d=n.charAt(n.length-1)==="%"?"progress-".concat(n):"progress-".concat(Y.parseDuration(n))}Array.isArray(i.trackingEvents[d])||(i.trackingEvents[d]=[]),i.trackingEvents[d].push(y)}})}),Y.childrenByName(t,"MediaFiles").forEach(c=>{Y.childrenByName(c,"MediaFile").forEach(T=>{i.mediaFiles.push(function(_){const b={id:null,fileURL:null,fileSize:0,deliveryType:"progressive",mimeType:null,mediaType:null,codec:null,bitrate:0,minBitrate:0,maxBitrate:0,width:0,height:0,apiFramework:null,scalable:null,maintainAspectRatio:null};b.id=_.getAttribute("id"),b.fileURL=Y.parseNodeText(_),b.deliveryType=_.getAttribute("delivery"),b.codec=_.getAttribute("codec"),b.mimeType=_.getAttribute("type"),b.mediaType=_.getAttribute("mediaType")||"2D",b.apiFramework=_.getAttribute("apiFramework"),b.fileSize=parseInt(_.getAttribute("fileSize")||0),b.bitrate=parseInt(_.getAttribute("bitrate")||0),b.minBitrate=parseInt(_.getAttribute("minBitrate")||0),b.maxBitrate=parseInt(_.getAttribute("maxBitrate")||0),b.width=parseInt(_.getAttribute("width")||0),b.height=parseInt(_.getAttribute("height")||0);const V=_.getAttribute("scalable");V&&typeof V=="string"&&(b.scalable=Y.parseBoolean(V));const w=_.getAttribute("maintainAspectRatio");return w&&typeof w=="string"&&(b.maintainAspectRatio=Y.parseBoolean(w)),b}(T))});const u=Y.childByName(c,"InteractiveCreativeFile");u&&(i.interactiveCreativeFile=function(T){const _=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{type:b.type||null,apiFramework:b.apiFramework||null,variableDuration:Y.parseBoolean(b.variableDuration),fileURL:null}}(Y.parseAttributes(T));return _.fileURL=Y.parseNodeText(T),_}(u));const d=Y.childByName(c,"ClosedCaptionFiles");d&&Y.childrenByName(d,"ClosedCaptionFile").forEach(T=>{const _=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{type:b.type||null,language:b.language||null,fileURL:null}}(Y.parseAttributes(T));_.fileURL=Y.parseNodeText(T),i.closedCaptionFiles.push(_)});const y=Y.childByName(c,"Mezzanine"),A=function(T,_){const b={};let V=!1;return _.forEach(w=>{T&&T.getAttribute(w)?b[w]=T.getAttribute(w):V=!0}),V?null:b}(y,["delivery","type","width","height"]);if(A){const T={id:null,fileURL:null,delivery:null,codec:null,type:null,width:0,height:0,fileSize:0,mediaType:"2D"};T.id=y.getAttribute("id"),T.fileURL=Y.parseNodeText(y),T.delivery=A.delivery,T.codec=y.getAttribute("codec"),T.type=A.type,T.width=parseInt(A.width,10),T.height=parseInt(A.height,10),T.fileSize=parseInt(y.getAttribute("fileSize"),10),T.mediaType=y.getAttribute("mediaType")||"2D",i.mezzanine=T}});const o=Y.childByName(t,"Icons");return o&&Y.childrenByName(o,"Icon").forEach(c=>{i.icons.push(function(u){const d={program:null,height:0,width:0,xPosition:0,yPosition:0,apiFramework:null,offset:null,duration:0,type:null,staticResource:null,htmlResource:null,iframeResource:null,pxratio:"1",iconClickThroughURLTemplate:null,iconClickTrackingURLTemplates:[],iconViewTrackingURLTemplate:null,iconClickFallbackImages:[]};d.program=u.getAttribute("program"),d.height=parseInt(u.getAttribute("height")||0),d.width=parseInt(u.getAttribute("width")||0),d.xPosition=function(A){return["left","right"].indexOf(A)!==-1?A:parseInt(A||0)}(u.getAttribute("xPosition")),d.yPosition=function(A){return["top","bottom"].indexOf(A)!==-1?A:parseInt(A||0)}(u.getAttribute("yPosition")),d.apiFramework=u.getAttribute("apiFramework"),d.pxratio=u.getAttribute("pxratio")||"1",d.offset=Y.parseDuration(u.getAttribute("offset")),d.duration=Y.parseDuration(u.getAttribute("duration")),Y.childrenByName(u,"HTMLResource").forEach(A=>{d.type=A.getAttribute("creativeType")||"text/html",d.htmlResource=Y.parseNodeText(A)}),Y.childrenByName(u,"IFrameResource").forEach(A=>{d.type=A.getAttribute("creativeType")||0,d.iframeResource=Y.parseNodeText(A)}),Y.childrenByName(u,"StaticResource").forEach(A=>{d.type=A.getAttribute("creativeType")||0,d.staticResource=Y.parseNodeText(A)});const y=Y.childByName(u,"IconClicks");if(y){d.iconClickThroughURLTemplate=Y.parseNodeText(Y.childByName(y,"IconClickThrough")),Y.childrenByName(y,"IconClickTracking").forEach(T=>{d.iconClickTrackingURLTemplates.push({id:T.getAttribute("id")||null,url:Y.parseNodeText(T)})});const A=Y.childByName(y,"IconClickFallbackImages");A&&Y.childrenByName(A,"IconClickFallbackImage").forEach(T=>{d.iconClickFallbackImages.push({url:Y.parseNodeText(T)||null,width:T.getAttribute("width")||null,height:T.getAttribute("height")||null})})}return d.iconViewTrackingURLTemplate=Y.parseNodeText(Y.childByName(u,"IconViewTracking")),d}(c))}),i}function NR(t,e){const n=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{id:r,adId:s,sequence:a,apiFramework:o}=q1(i);return{id:r,adId:s,sequence:a,apiFramework:o,type:"nonlinear",variations:[],trackingEvents:{}}}(e);return Y.childrenByName(t,"TrackingEvents").forEach(i=>{let r,s;Y.childrenByName(i,"Tracking").forEach(a=>{r=a.getAttribute("event"),s=Y.parseNodeText(a),r&&s&&(Array.isArray(n.trackingEvents[r])||(n.trackingEvents[r]=[]),n.trackingEvents[r].push(s))})}),Y.childrenByName(t,"NonLinear").forEach(i=>{const r={id:null,width:0,height:0,expandedWidth:0,expandedHeight:0,scalable:!0,maintainAspectRatio:!0,minSuggestedDuration:0,apiFramework:"static",adType:"nonLinearAd",type:null,staticResource:null,htmlResource:null,iframeResource:null,nonlinearClickThroughURLTemplate:null,nonlinearClickTrackingURLTemplates:[],adParameters:null};r.id=i.getAttribute("id")||null,r.width=i.getAttribute("width"),r.height=i.getAttribute("height"),r.expandedWidth=i.getAttribute("expandedWidth"),r.expandedHeight=i.getAttribute("expandedHeight"),r.scalable=Y.parseBoolean(i.getAttribute("scalable")),r.maintainAspectRatio=Y.parseBoolean(i.getAttribute("maintainAspectRatio")),r.minSuggestedDuration=Y.parseDuration(i.getAttribute("minSuggestedDuration")),r.apiFramework=i.getAttribute("apiFramework"),Y.childrenByName(i,"HTMLResource").forEach(a=>{r.type=a.getAttribute("creativeType")||"text/html",r.htmlResource=Y.parseNodeText(a)}),Y.childrenByName(i,"IFrameResource").forEach(a=>{r.type=a.getAttribute("creativeType")||0,r.iframeResource=Y.parseNodeText(a)}),Y.childrenByName(i,"StaticResource").forEach(a=>{r.type=a.getAttribute("creativeType")||0,r.staticResource=Y.parseNodeText(a)});const s=Y.childByName(i,"AdParameters");s&&(r.adParameters={value:Y.parseNodeText(s),xmlEncoded:s.getAttribute("xmlEncoded")||null}),r.nonlinearClickThroughURLTemplate=Y.parseNodeText(Y.childByName(i,"NonLinearClickThrough")),Y.childrenByName(i,"NonLinearClickTracking").forEach(a=>{r.nonlinearClickTrackingURLTemplates.push({id:a.getAttribute("id")||null,url:Y.parseNodeText(a)})}),n.variations.push(r)}),n}function Xm(t){const e=[];return t.forEach(n=>{const i=Z3(n);i&&e.push(i)}),e}function Z3(t){if(t.nodeName==="#comment")return null;const e={name:null,value:null,attributes:{},children:[]},n=t.attributes,i=t.childNodes;if(e.name=t.nodeName,t.attributes){for(const s in n)if(n.hasOwnProperty(s)){const a=n[s];a.nodeName&&a.nodeValue&&(e.attributes[a.nodeName]=a.nodeValue)}}for(const s in i)if(i.hasOwnProperty(s)){const a=Z3(i[s]);a&&e.children.push(a)}if(e.children.length===0||e.children.length===1&&["#cdata-section","#text"].indexOf(e.children[0].name)>=0){const s=Y.parseNodeText(t);s!==""&&(e.value=s),e.children=[]}return(r=e).value===null&&Object.keys(r.attributes).length===0&&r.children.length===0?null:e;var r}function UR(t){return t.getAttribute("AdID")||t.getAttribute("adID")||t.getAttribute("adId")||null}const Tl={Wrapper:{subElements:["VASTAdTagURI","Impression"]},BlockedAdCategories:{attributes:["authority"]},InLine:{subElements:["AdSystem","AdTitle","Impression","AdServingId","Creatives"]},Category:{attributes:["authority"]},Pricing:{attributes:["model","currency"]},Verification:{oneOfinLineResources:["JavaScriptResource","ExecutableResource"],attributes:["vendor"]},UniversalAdId:{attributes:["idRegistry"]},JavaScriptResource:{attributes:["apiFramework","browserOptional"]},ExecutableResource:{attributes:["apiFramework","type"]},Tracking:{attributes:["event"]},Creatives:{subElements:["Creative"]},Creative:{subElements:["UniversalAdId"]},Linear:{subElements:["MediaFiles","Duration"]},MediaFiles:{subElements:["MediaFile"]},MediaFile:{attributes:["delivery","type","width","height"]},Mezzanine:{attributes:["delivery","type","width","height"]},NonLinear:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},Companion:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},StaticResource:{attributes:["creativeType"]},Icons:{subElements:["Icon"]},Icon:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"]}};function Gm(t,e){if(!Tl[t.nodeName]||!Tl[t.nodeName].attributes)return;const n=Tl[t.nodeName].attributes.filter(i=>!t.getAttribute(i));n.length>0&&Ka({name:t.nodeName,parentName:t.parentNode.nodeName,attributes:n},e)}function Mm(t,e,n){const i=Tl[t.nodeName],r=!n&&t.nodeName!=="Wrapper";if(!(!i||r)){if(i.subElements){const s=i.subElements.filter(a=>!Y.childByName(t,a));s.length>0&&Ka({name:t.nodeName,parentName:t.parentNode.nodeName,subElements:s},e)}!n||!i.oneOfinLineResources||i.oneOfinLineResources.some(s=>Y.childByName(t,s))||Ka({name:t.nodeName,parentName:t.parentNode.nodeName,oneOfResources:i.oneOfinLineResources},e)}}function Pm(t){return t.children&&t.children.length!==0}function Ka(t,e){let{name:n,parentName:i,attributes:r,subElements:s,oneOfResources:a}=t,o="Element '".concat(n,"'");o+=r?" missing required attribute(s) '".concat(r.join(", "),"' "):s?" missing required sub element(s) '".concat(s.join(", "),"' "):a?" must provide one of the following '".concat(a.join(", "),"' "):" is empty",e("VAST-warning",{message:o,parentElement:i,specVersion:4.1})}const kR={verifyRequiredValues:function t(e,n,i){if(e&&e.nodeName)if(e.nodeName==="InLine"&&(i=!0),Gm(e,n),Pm(e)){Mm(e,n,i);for(let r=0;r<e.children.length;r++)t(e.children[r],n,i)}else Y.parseNodeText(e).length===0&&Ka({name:e.nodeName,parentName:e.parentNode.nodeName},n)},hasSubElements:Pm,emitMissingValueWarning:Ka,verifyRequiredAttributes:Gm,verifyRequiredSubElements:Mm};function xR(t,e){let{allowMultipleAds:n,followAdditionalWrappers:i}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=Array.from(t.childNodes).filter(s=>{const a=s.nodeName.toLowerCase();return a==="inline"||i!==!1&&a==="wrapper"});for(const s of r){if(Y.copyNodeAttribute("id",t,s),Y.copyNodeAttribute("sequence",t,s),Y.copyNodeAttribute("adType",t,s),s.nodeName==="Wrapper")return{ad:FR(s,e),type:"WRAPPER"};if(s.nodeName==="InLine")return{ad:LR(s,e,{allowMultipleAds:n}),type:"INLINE"};const a=s.nodeName.toLowerCase();e("VAST-warning",{message:"<".concat(s.nodeName,a==="inline"?"> must be written <InLine>":"> must be written <Wrapper>"),wrongNode:s})}}function LR(t,e){let{allowMultipleAds:n}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n===!1&&t.getAttribute("sequence")?null:D3(t,e)}function D3(t,e){let n=[];e&&kR.verifyRequiredValues(t,e);const i=Array.from(t.childNodes),r=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{id:s.id||null,sequence:s.sequence||null,adType:s.adType||null,adServingId:null,categories:[],expires:null,viewableImpression:[],system:null,title:null,description:null,advertiser:null,pricing:null,survey:null,errorURLTemplates:[],impressionURLTemplates:[],creatives:[],extensions:[],adVerifications:[],blockedAdCategories:[],followAdditionalWrappers:!0,allowMultipleAds:!1,fallbackOnNoAd:null}}(Y.parseAttributes(t));return i.forEach(s=>{switch(s.nodeName){case"Error":r.errorURLTemplates.push(Y.parseNodeText(s));break;case"Impression":r.impressionURLTemplates.push({id:s.getAttribute("id")||null,url:Y.parseNodeText(s)});break;case"Creatives":r.creatives=function(a){const o=[];return a.forEach(c=>{const u={id:c.getAttribute("id")||null,adId:UR(c),sequence:c.getAttribute("sequence")||null,apiFramework:c.getAttribute("apiFramework")||null},d=[];let y;Y.childrenByName(c,"UniversalAdId").forEach(T=>{const _={idRegistry:T.getAttribute("idRegistry")||"unknown",value:Y.parseNodeText(T)};d.push(_)});const A=Y.childByName(c,"CreativeExtensions");A&&(y=Xm(Y.childrenByName(A,"CreativeExtension")));for(const T in c.childNodes){const _=c.childNodes[T];let b;switch(_.nodeName){case"Linear":b=wR(_,u);break;case"NonLinearAds":b=NR(_,u);break;case"CompanionAds":b=VR(_,u)}b&&(d&&(b.universalAdIds=d),y&&(b.creativeExtensions=y),o.push(b))}}),o}(Y.childrenByName(s,"Creative"));break;case"Extensions":{const a=Y.childrenByName(s,"Extension");r.extensions=Xm(a),r.adVerifications.length||(n=function(o){let c=null,u=[];return o.some(d=>c=Y.childByName(d,"AdVerifications")),c&&(u=Ym(Y.childrenByName(c,"Verification"))),u}(a));break}case"AdVerifications":r.adVerifications=Ym(Y.childrenByName(s,"Verification"));break;case"AdSystem":r.system={value:Y.parseNodeText(s),version:s.getAttribute("version")||null};break;case"AdTitle":r.title=Y.parseNodeText(s);break;case"AdServingId":r.adServingId=Y.parseNodeText(s);break;case"Category":r.categories.push({authority:s.getAttribute("authority")||null,value:Y.parseNodeText(s)});break;case"Expires":r.expires=parseInt(Y.parseNodeText(s),10);break;case"ViewableImpression":r.viewableImpression.push(function(a){const o=(c,u)=>{const d=Y.parseNodeText(u);return d&&c.push(d),c};return{id:a.getAttribute("id")||null,viewable:Y.childrenByName(a,"Viewable").reduce(o,[]),notViewable:Y.childrenByName(a,"NotViewable").reduce(o,[]),viewUndetermined:Y.childrenByName(a,"ViewUndetermined").reduce(o,[])}}(s));break;case"Description":r.description=Y.parseNodeText(s);break;case"Advertiser":r.advertiser={id:s.getAttribute("id")||null,value:Y.parseNodeText(s)};break;case"Pricing":r.pricing={value:Y.parseNodeText(s),model:s.getAttribute("model")||null,currency:s.getAttribute("currency")||null};break;case"Survey":r.survey={value:Y.parseNodeText(s),type:s.getAttribute("type")||null};break;case"BlockedAdCategories":r.blockedAdCategories.push({authority:s.getAttribute("authority")||null,value:Y.parseNodeText(s)})}}),n.length&&(r.adVerifications=r.adVerifications.concat(n)),r}function FR(t,e){const n=D3(t,e),i=t.getAttribute("followAdditionalWrappers"),r=t.getAttribute("allowMultipleAds"),s=t.getAttribute("fallbackOnNoAd");n.followAdditionalWrappers=!i||Y.parseBoolean(i),n.allowMultipleAds=!!r&&Y.parseBoolean(r),n.fallbackOnNoAd=s?Y.parseBoolean(s):null;let a=Y.childByName(t,"VASTAdTagURI");if(a?n.nextWrapperURL=Y.parseNodeText(a):(a=Y.childByName(t,"VASTAdTagURL"),a&&(n.nextWrapperURL=Y.parseNodeText(Y.childByName(a,"URL")))),n.creatives.forEach(o=>{if(["linear","nonlinear"].includes(o.type)){if(o.trackingEvents){n.trackingEvents||(n.trackingEvents={}),n.trackingEvents[o.type]||(n.trackingEvents[o.type]={});for(const c in o.trackingEvents){const u=o.trackingEvents[c];Array.isArray(n.trackingEvents[o.type][c])||(n.trackingEvents[o.type][c]=[]),u.forEach(d=>{n.trackingEvents[o.type][c].push(d)})}}o.videoClickTrackingURLTemplates&&(Array.isArray(n.videoClickTrackingURLTemplates)||(n.videoClickTrackingURLTemplates=[]),o.videoClickTrackingURLTemplates.forEach(c=>{n.videoClickTrackingURLTemplates.push(c)})),o.videoClickThroughURLTemplate&&(n.videoClickThroughURLTemplate=o.videoClickThroughURLTemplate),o.videoCustomClickURLTemplates&&(Array.isArray(n.videoCustomClickURLTemplates)||(n.videoCustomClickURLTemplates=[]),o.videoCustomClickURLTemplates.forEach(c=>{n.videoCustomClickURLTemplates.push(c)}))}}),n.nextWrapperURL)return n}function Ym(t){const e=[];return t.forEach(n=>{const i={resource:null,vendor:null,browserOptional:!1,apiFramework:null,type:null,parameters:null,trackingEvents:{}},r=Array.from(n.childNodes);Y.assignAttributes(n.attributes,i),r.forEach(a=>{let{nodeName:o,textContent:c,attributes:u}=a;switch(o){case"JavaScriptResource":case"ExecutableResource":i.resource=c.trim(),Y.assignAttributes(u,i);break;case"VerificationParameters":i.parameters=c.trim()}});const s=Y.childByName(n,"TrackingEvents");s&&Y.childrenByName(s,"Tracking").forEach(a=>{const o=a.getAttribute("event"),c=Y.parseNodeText(a);o&&c&&(Array.isArray(i.trackingEvents[o])||(i.trackingEvents[o]=[]),i.trackingEvents[o].push(c))}),e.push(i)}),e}let O3=class{constructor(){this._handlers=[]}on(e,n){if(typeof n!="function")throw new TypeError("The handler argument must be of type Function. Received type ".concat(typeof n));if(!e)throw new TypeError("The event argument must be of type String. Received type ".concat(typeof e));return this._handlers.push({event:e,handler:n}),this}once(e,n){return this.on(e,function(i,r,s){const a={fired:!1,wrapFn:void 0};function o(){a.fired||(i.off(r,a.wrapFn),a.fired=!0,s.bind(i)(...arguments))}return a.wrapFn=o,o}(this,e,n))}off(e,n){return this._handlers=this._handlers.filter(i=>i.event!==e||i.handler!==n),this}emit(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];let s=!1;return this._handlers.forEach(a=>{a.event==="*"&&(s=!0,a.handler(e,...i)),a.event===e&&(s=!0,a.handler(...i))}),s}removeAllListeners(e){return e?(this._handlers=this._handlers.filter(n=>n.event!==e),this):(this._handlers=[],this)}listenerCount(e){return this._handlers.filter(n=>n.event===e).length}listeners(e){return this._handlers.reduce((n,i)=>(i.event===e&&n.push(i.handler),n),[])}eventNames(){return this._handlers.map(e=>e.event)}},Hm=0,kd=0;const X3=(t,e)=>{!t||!e||t<=0||e<=0||(kd=(kd*Hm+8*t/e)/++Hm)},BR={ERRORCODE:900,extensions:[]},jm="VAST response version not supported";let WR=class extends O3{constructor(){let{fetcher:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),this.maxWrapperDepth=null,this.rootErrorURLTemplates=[],this.errorURLTemplates=[],this.remainingAds=[],this.parsingOptions={},this.fetcher=e||null}trackVastError(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),s=2;s<i;s++)r[s-2]=arguments[s];this.emit("VAST-error",Object.assign({},BR,n,...r)),Be.track(e,n)}getErrorURLTemplates(){return this.rootErrorURLTemplates.concat(this.errorURLTemplates)}getEstimatedBitrate(){return kd}initParsingStatus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.maxWrapperDepth=e.wrapperLimit||10,this.parsingOptions={allowMultipleAds:e.allowMultipleAds},this.rootURL="",this.resetParsingStatus(),X3(e.byteLength,e.requestDuration)}resetParsingStatus(){this.errorURLTemplates=[],this.rootErrorURLTemplates=[],this.vastVersion=null}getRemainingAds(e){if(this.remainingAds.length===0)return Promise.reject(new Error("No more ads are available for the given VAST"));const n=e?this.remainingAds:[this.remainingAds.shift()];return this.errorURLTemplates=[],this.resolveAds(n,{wrapperDepth:0,url:this.rootURL}).then(i=>this.buildVASTResponse(i))}parseVAST(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.initParsingStatus(n),n.isRootVAST=!0,this.parse(e,n).then(i=>this.buildVASTResponse(i))}buildVASTResponse(e){const n=function(i){let{ads:r,errorURLTemplates:s,version:a}=i;return{ads:r||[],errorURLTemplates:s||[],version:a||null}}({ads:e,errorURLTemplates:this.getErrorURLTemplates(),version:this.vastVersion});return this.completeWrapperResolving(n),n}parseVastXml(e,n){let{isRootVAST:i=!1,url:r=null,wrapperDepth:s=0,allowMultipleAds:a,followAdditionalWrappers:o}=n;if(!e||!e.documentElement||e.documentElement.nodeName!=="VAST"){var c;this.emit("VAST-ad-parsed",{type:"ERROR",url:r,wrapperDepth:s});const A=(e==null||(c=e.documentElement)===null||c===void 0?void 0:c.nodeName)==="VideoAdServingTemplate";throw new Error(A?jm:"Invalid VAST XMLDocument")}const u=[],d=e.documentElement.childNodes,y=e.documentElement.getAttribute("version");i&&y&&(this.vastVersion=y);for(const A in d){const T=d[A];if(T.nodeName==="Error"){const _=Y.parseNodeText(T);i?this.rootErrorURLTemplates.push(_):this.errorURLTemplates.push(_)}else if(T.nodeName==="Ad"){if(this.vastVersion&&parseFloat(this.vastVersion)<3)a=!0;else if(a===!1&&u.length>1)break;const _=xR(T,this.emit.bind(this),{allowMultipleAds:a,followAdditionalWrappers:o});_.ad?(u.push(_.ad),this.emit("VAST-ad-parsed",{type:_.type,url:r,wrapperDepth:s,adIndex:u.length-1,vastVersion:y})):this.trackVastError(this.getErrorURLTemplates(),{ERRORCODE:101})}}return u}parse(e){let{url:n=null,resolveAll:i=!0,wrapperSequence:r=null,previousUrl:s=null,wrapperDepth:a=0,isRootVAST:o=!1,followAdditionalWrappers:c,allowMultipleAds:u}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=[];this.vastVersion&&parseFloat(this.vastVersion)<3&&o&&(u=!0);try{d=this.parseVastXml(e,{isRootVAST:o,url:n,wrapperDepth:a,allowMultipleAds:u,followAdditionalWrappers:c})}catch(y){return Promise.reject(y)}if(d.length===1&&r!=null&&(d[0].sequence=r),i===!1){const y=Y.getSortedAdPods(d),A=Y.getStandAloneAds(d);y.length?d=y:A.length&&(d=[A.shift()]),this.remainingAds=A}return this.resolveAds(d,{wrapperDepth:a,previousUrl:s,url:n})}resolveAds(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],{wrapperDepth:n,previousUrl:i,url:r}=arguments.length>1?arguments[1]:void 0;const s=[];return i=r,e.forEach(a=>{const o=this.resolveWrappers(a,n,i);s.push(o)}),Promise.all(s).then(a=>Be.flatten(a))}resolveWrappers(e,n,i){const r={...e};return new Promise(s=>{var a;if(n++,!r.nextWrapperURL)return delete r.nextWrapperURL,s(r);if(!this.fetcher)return r.VASTAdTagURI=r.nextWrapperURL,delete r.nextWrapperURL,s(r);if(n>=this.maxWrapperDepth)return r.errorCode=302,delete r.nextWrapperURL,s(r);r.nextWrapperURL=Y.resolveVastAdTagURI(r.nextWrapperURL,i);const o=(a=this.parsingOptions.allowMultipleAds)!==null&&a!==void 0?a:r.allowMultipleAds,c=r.sequence;this.fetcher.fetchVAST({url:r.nextWrapperURL,emitter:this.emit.bind(this),maxWrapperDepth:this.maxWrapperDepth}).then(u=>this.parse(u,{url:r.nextWrapperURL,previousUrl:i,wrapperSequence:c,wrapperDepth:n,followAdditionalWrappers:r.followAdditionalWrappers,allowMultipleAds:o}).then(d=>{if(delete r.nextWrapperURL,d.length===0)return r.creatives=[],s(r);d.forEach(y=>{y&&Y.mergeWrapperAdData(y,r)}),s(d)})).catch(u=>{r.errorCode=u.message===jm?102:301,r.errorMessage=u.message,s(r)})})}completeWrapperResolving(e){if(e.ads.length===0)this.trackVastError(e.errorURLTemplates,{ERRORCODE:303});else for(let n=e.ads.length-1;n>=0;n--){const i=e.ads[n],r=!i.creatives.some(s=>{var a;return((a=s.mediaFiles)===null||a===void 0?void 0:a.length)>0});!i.errorCode&&!r||i.VASTAdTagURI||(this.trackVastError(i.errorURLTemplates.concat(e.errorURLTemplates),{ERRORCODE:i.errorCode||303},{ERRORMESSAGE:i.errorMessage||""},{extensions:i.extensions},{system:i.system}),e.ads.splice(n,1))}}},oi=null;const ZR={data:{},length:0,getItem(t){return this.data[t]},setItem(t,e){this.data[t]=e,this.length=Object.keys(this.data).length},removeItem(t){delete this.data[t],this.length=Object.keys(this.data).length},clear(){this.data={},this.length=0}};let DR=class{constructor(){this.storage=this.initStorage()}initStorage(){if(oi)return oi;try{oi=typeof window<"u"&&window!==null?window.localStorage||window.sessionStorage:null}catch{oi=null}return oi&&!this.isStorageDisabled(oi)||(oi=ZR,oi.clear()),oi}isStorageDisabled(e){const n="__VASTStorage__";try{if(e.setItem(n,n),e.getItem(n)!==n)return e.removeItem(n),!0}catch{return!0}return e.removeItem(n),!1}getItem(e){return this.storage.getItem(e)}setItem(e,n){return this.storage.setItem(e,n)}removeItem(e){return this.storage.removeItem(e)}clear(){return this.storage.clear()}};const xd=12e4,OR={get:async function(t,e){try{const n=new AbortController,i=setTimeout(()=>{throw n.abort(),new Error("URLHandler: Request timed out after ".concat(e.timeout||xd," ms (408)"))},e.timeout||xd),r=await fetch(t,{...e,signal:n.signal,credentials:e.withCredentials?"include":"omit"}).finally(()=>{clearTimeout(i)}),s=function(a){return Be.isBrowserEnvironment()&&window.location.protocol==="https:"&&a.url.includes("http://")?"URLHandler: Cannot go from HTTPS to HTTP.":a.status===200&&a.ok?null:"URLHandler: ".concat(a.statusText," (").concat(a.status,")")}(r);return s?{error:new Error(s),statusCode:r.status}:async function(a){const o=await a.text();let c;return c=Be.isBrowserEnvironment()?new DOMParser:new(await Promise.resolve().then(()=>II).then(u=>u.i)).DOMParser,{xml:c.parseFromString(o,"text/xml"),details:{byteLength:o.length,statusCode:a.status,rawXml:o}}}(r)}catch(n){return{error:n,statusCode:n.name==="AbortError"?408:null}}}};let XR=class{constructor(){this.URLTemplateFilters=[]}setOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.urlHandler=e.urlHandler||e.urlhandler||OR,this.fetchingOptions={timeout:e.timeout||xd,withCredentials:!!e.withCredentials}}addURLTemplateFilter(e){typeof e=="function"&&this.URLTemplateFilters.push(e)}removeLastURLTemplateFilter(){this.URLTemplateFilters.pop()}countURLTemplateFilters(){return this.URLTemplateFilters.length}clearURLTemplateFilters(){this.URLTemplateFilters=[]}async fetchVAST(e){var n;let{url:i,maxWrapperDepth:r,emitter:s,wrapperDepth:a=0,previousUrl:o=null,wrapperAd:c=null}=e;const u=Date.now();this.URLTemplateFilters.forEach(A=>{i=A(i)}),s("VAST-resolving",{url:i,previousUrl:o,wrapperDepth:a,maxWrapperDepth:r,timeout:this.fetchingOptions.timeout,wrapperAd:c});const d=await this.urlHandler.get(i,this.fetchingOptions),y=Math.round(Date.now()-u);if(s("VAST-resolved",{url:i,previousUrl:o,wrapperDepth:a,error:(d==null?void 0:d.error)||null,duration:y,statusCode:(d==null?void 0:d.statusCode)||null,...d==null?void 0:d.details}),X3(d==null||(n=d.details)===null||n===void 0?void 0:n.byteLength,y),d.error)throw new Error(d.error);return d.xml}},GR=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new DR;this.cappingFreeLunch=e,this.cappingMinimumTimeInterval=n,this.fetcher=new XR,this.vastParser=new WR({fetcher:this.fetcher}),this.storage=i,this.lastSuccessfulAd===void 0&&(this.lastSuccessfulAd=0),this.totalCalls===void 0&&(this.totalCalls=0),this.totalCallsTimeout===void 0&&(this.totalCallsTimeout=0)}addURLTemplateFilter(e){this.fetcher.addURLTemplateFilter(e)}removeLastURLTemplateFilter(){this.fetcher.removeLastURLTemplateFilter()}countURLTemplateFilters(){return this.fetcher.countURLTemplateFilters()}clearURLTemplateFilters(){this.fetcher.clearURLTemplateFilters()}getParser(){return this.vastParser}get lastSuccessfulAd(){return this.storage.getItem("vast-client-last-successful-ad")}set lastSuccessfulAd(e){this.storage.setItem("vast-client-last-successful-ad",e)}get totalCalls(){return this.storage.getItem("vast-client-total-calls")}set totalCalls(e){this.storage.setItem("vast-client-total-calls",e)}get totalCallsTimeout(){return this.storage.getItem("vast-client-total-calls-timeout")}set totalCallsTimeout(e){this.storage.setItem("vast-client-total-calls-timeout",e)}hasRemainingAds(){return this.vastParser.remainingAds.length>0}getNextAds(e){return this.vastParser.getRemainingAds(e)}parseVAST(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.fetcher.setOptions(n),this.vastParser.parseVAST(e,n)}get(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=Date.now();return n.hasOwnProperty("resolveAll")||(n.resolveAll=!1),this.totalCallsTimeout<i?(this.totalCalls=1,this.totalCallsTimeout=i+36e5):this.totalCalls++,new Promise((r,s)=>{if(this.cappingFreeLunch>=this.totalCalls)return s(new Error("VAST call canceled – FreeLunch capping not reached yet ".concat(this.totalCalls,"/").concat(this.cappingFreeLunch)));const a=i-this.lastSuccessfulAd;if(a<0)this.lastSuccessfulAd=0;else if(a<this.cappingMinimumTimeInterval)return s(new Error("VAST call canceled – (".concat(this.cappingMinimumTimeInterval,")ms minimum interval reached")));this.vastParser.initParsingStatus(n),this.fetcher.setOptions(n),this.vastParser.rootURL=e,this.fetcher.fetchVAST({url:e,emitter:this.vastParser.emit.bind(this.vastParser),maxWrapperDepth:this.vastParser.maxWrapperDepth}).then(o=>(n.previousUrl=e,n.isRootVAST=!0,n.url=e,this.vastParser.parse(o,n).then(c=>{const u=this.vastParser.buildVASTResponse(c);r(u)}))).catch(o=>s(o))})}},MR=class extends O3{constructor(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=arguments.length>4&&arguments[4]!==void 0&&arguments[4];super(),this.ad=n,this.creative=i,this.variation=r,this.muted=s,this.impressed=!1,this.skippable=!1,this.trackingEvents={},this.trackedProgressEvents=[],this.lastPercentage=0,this._alreadyTriggeredQuartiles={},this.emitAlwaysEvents=["creativeView","start","firstQuartile","midpoint","thirdQuartile","complete","resume","pause","rewind","skip","closeLinear","close"];for(const a in this.creative.trackingEvents){const o=this.creative.trackingEvents[a];this.trackingEvents[a]=o.slice(0)}(function(a){return a.type==="linear"})(this.creative)?this._initLinearTracking():this._initVariationTracking(),e&&this.on("start",()=>{e.lastSuccessfulAd=Date.now()})}_initLinearTracking(){this.linear=!0,this.skipDelay=this.creative.skipDelay,this.setDuration(this.creative.duration),this.clickThroughURLTemplate=this.creative.videoClickThroughURLTemplate,this.clickTrackingURLTemplates=this.creative.videoClickTrackingURLTemplates}_initVariationTracking(){if(this.linear=!1,this.skipDelay=-1,this.variation){for(const e in this.variation.trackingEvents){const n=this.variation.trackingEvents[e];this.trackingEvents[e]?this.trackingEvents[e]=this.trackingEvents[e].concat(n.slice(0)):this.trackingEvents[e]=n.slice(0)}this.variation.adType==="nonLinearAd"?(this.clickThroughURLTemplate=this.variation.nonlinearClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.nonlinearClickTrackingURLTemplates,this.setDuration(this.variation.minSuggestedDuration)):function(e){return e.adType==="companionAd"}(this.variation)&&(this.clickThroughURLTemplate=this.variation.companionClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.companionClickTrackingURLTemplates)}}setDuration(e){Be.isValidTimeValue(e)?(this.assetDuration=e,this.quartiles={firstQuartile:Math.round(25*this.assetDuration)/100,midpoint:Math.round(50*this.assetDuration)/100,thirdQuartile:Math.round(75*this.assetDuration)/100}):this.emit("TRACKER-error",{message:"the duration provided is not valid. duration: ".concat(e)})}setProgress(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(!Be.isValidTimeValue(e)||typeof n!="object")return void this.emit("TRACKER-error",{message:"One given setProgress parameter has the wrong type. progress: ".concat(e,", macros: ").concat(Be.formatMacrosValues(n))});const r=this.skipDelay||-1;if(r===-1||this.skippable||(r>e?this.emit("skip-countdown",r-e):(this.skippable=!0,this.emit("skip-countdown",0))),this.assetDuration>0){const s=Math.round(e/this.assetDuration*100),a=[];if(e>0){a.push("start");for(let o=this.lastPercentage;o<s;o++)a.push("progress-".concat(o+1,"%"));a.push("progress-".concat(e));for(const o in this.quartiles)this.isQuartileReached(o,this.quartiles[o],e)&&(a.push(o),this._alreadyTriggeredQuartiles[o]=!0);this.lastPercentage=s}a.forEach(o=>{this.track(o,{macros:n,once:i})}),e<this.progress&&(this.track("rewind",{macros:n}),this.trackedProgressEvents&&this.trackedProgressEvents.splice(0))}this.progress=e}isQuartileReached(e,n,i){let r=!1;return n<=i&&!this._alreadyTriggeredQuartiles[e]&&(r=!0),r}setMuted(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof e=="boolean"&&typeof n=="object"?(this.muted!==e&&this.track(e?"mute":"unmute",{macros:n}),this.muted=e):this.emit("TRACKER-error",{message:"One given setMuted parameter has the wrong type. muted: ".concat(e,", macros: ").concat(Be.formatMacrosValues(n))})}setPaused(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof e=="boolean"&&typeof n=="object"?(this.paused!==e&&this.track(e?"pause":"resume",{macros:n}),this.paused=e):this.emit("TRACKER-error",{message:"One given setPaused parameter has the wrong type. paused: ".concat(e,", macros: ").concat(Be.formatMacrosValues(n))})}setFullscreen(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof e=="boolean"&&typeof n=="object"?(this.fullscreen!==e&&this.track(e?"fullscreen":"exitFullscreen",{macros:n}),this.fullscreen=e):this.emit("TRACKER-error",{message:"One given setFullScreen parameter has the wrong type. fullscreen: ".concat(e,", macros: ").concat(Be.formatMacrosValues(n))})}setExpand(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof e=="boolean"&&typeof n=="object"?(this.expanded!==e&&(this.track(e?"expand":"collapse",{macros:n}),this.track(e?"playerExpand":"playerCollapse",{macros:n})),this.expanded=e):this.emit("TRACKER-error",{message:"One given setExpand parameter has the wrong type. expanded: ".concat(e,", macros: ").concat(Be.formatMacrosValues(n))})}setSkipDelay(e){Be.isValidTimeValue(e)?this.skipDelay=e:this.emit("TRACKER-error",{message:"setSkipDelay parameter does not have a valid value. duration: ".concat(e)})}trackImpression(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.impressed||(this.impressed=!0,this.trackURLs(this.ad.impressionURLTemplates,e),this.track("creativeView",{macros:e})):this.emit("TRACKER-error",{message:"trackImpression parameter has the wrong type. macros: ".concat(e)})}trackViewableImpression(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.ad.viewableImpression.forEach(n=>{this.trackURLs(n.viewable,e)}):this.emit("TRACKER-error",{message:"trackViewableImpression given macros has the wrong type. macros: ".concat(e)})}trackNotViewableImpression(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.ad.viewableImpression.forEach(n=>{this.trackURLs(n.notViewable,e)}):this.emit("TRACKER-error",{message:"trackNotViewableImpression given macros has the wrong type. macros: ".concat(e)})}trackUndeterminedImpression(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.ad.viewableImpression.forEach(n=>{this.trackURLs(n.viewUndetermined,e)}):this.emit("TRACKER-error",{message:"trackUndeterminedImpression given macros has the wrong type. macros: ".concat(e)})}error(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];typeof e=="object"&&typeof n=="boolean"?this.trackURLs(this.ad.errorURLTemplates,e,{isCustomCode:n}):this.emit("TRACKER-error",{message:"One given error parameter has the wrong type. macros: ".concat(Be.formatMacrosValues(e),", isCustomCode: ").concat(n)})}errorWithCode(e){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];typeof e=="string"&&typeof n=="boolean"?(this.error({ERRORCODE:e},n),console.log("The method errorWithCode is deprecated, please use vast tracker error method instead")):this.emit("TRACKER-error",{message:"One given errorWithCode parameter has the wrong type. errorCode: ".concat(e,", isCustomCode: ").concat(n)})}complete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.track("complete",{macros:e}):this.emit("TRACKER-error",{message:"complete given macros has the wrong type. macros: ".concat(e)})}notUsed(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?(this.track("notUsed",{macros:e}),this.trackingEvents=[]):this.emit("TRACKER-error",{message:"notUsed given macros has the wrong type. macros: ".concat(e)})}otherAdInteraction(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.track("otherAdInteraction",{macros:e}):this.emit("TRACKER-error",{message:"otherAdInteraction given macros has the wrong type. macros: ".concat(e)})}acceptInvitation(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.track("acceptInvitation",{macros:e}):this.emit("TRACKER-error",{message:"acceptInvitation given macros has the wrong type. macros: ".concat(e)})}adExpand(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.track("adExpand",{macros:e}):this.emit("TRACKER-error",{message:"adExpand given macros has the wrong type. macros: ".concat(e)})}adCollapse(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.track("adCollapse",{macros:e}):this.emit("TRACKER-error",{message:"adCollapse given macros has the wrong type. macros: ".concat(e)})}minimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.track("minimize",{macros:e}):this.emit("TRACKER-error",{message:"minimize given macros has the wrong type. macros: ".concat(e)})}verificationNotExecuted(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e!="string"||typeof n!="object")return void this.emit("TRACKER-error",{message:"One given verificationNotExecuted parameter has to wrong type. vendor: ".concat(e,", macros: ").concat(Be.formatMacrosValues(n))});if(!this.ad||!this.ad.adVerifications||!this.ad.adVerifications.length)throw new Error("No adVerifications provided");if(!e)throw new Error("No vendor provided, unable to find associated verificationNotExecuted");const i=this.ad.adVerifications.find(s=>s.vendor===e);if(!i)throw new Error("No associated verification element found for vendor: ".concat(e));const r=i.trackingEvents;if(r&&r.verificationNotExecuted){const s=r.verificationNotExecuted;this.trackURLs(s,n),this.emit("verificationNotExecuted",{trackingURLTemplates:s})}}overlayViewDuration(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof e=="string"&&typeof n=="object"?(n.ADPLAYHEAD=e,this.track("overlayViewDuration",{macros:n})):this.emit("TRACKER-error",{message:"One given overlayViewDuration parameters has the wrong type. formattedDuration: ".concat(e,", macros: ").concat(Be.formatMacrosValues(n))})}close(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.track(this.linear?"closeLinear":"close",{macros:e}):this.emit("TRACKER-error",{message:"close given macros has the wrong type. macros: ".concat(e)})}skip(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.track("skip",{macros:e}):this.emit("TRACKER-error",{message:"skip given macros has the wrong type. macros: ".concat(e)})}load(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};typeof e=="object"?this.track("loaded",{macros:e}):this.emit("TRACKER-error",{message:"load given macros has the wrong type. macros: ".concat(e)})}click(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e!==null&&typeof e!="string"||typeof n!="object")return void this.emit("TRACKER-error",{message:"One given click parameter has the wrong type. fallbackClickThroughURL: ".concat(e,", macros: ").concat(Be.formatMacrosValues(n))});this.clickTrackingURLTemplates&&this.clickTrackingURLTemplates.length&&this.trackURLs(this.clickTrackingURLTemplates,n);const i=this.clickThroughURLTemplate||e,r={...n};if(i){this.progress&&(r.ADPLAYHEAD=this.progressFormatted());const s=Be.resolveURLTemplates([i],r)[0];this.emit("clickthrough",s)}}trackProgressEvents(e,n,i){const r=parseFloat(e.split("-")[1]);Object.entries(this.trackingEvents).filter(s=>{let[a]=s;return a.startsWith("progress-")}).map(s=>{let[a,o]=s;return{name:a,time:parseFloat(a.split("-")[1]),urls:o}}).filter(s=>{let{time:a}=s;return a<=r&&a>this.progress}).forEach(s=>{let{name:a,urls:o}=s;!i&&this.trackedProgressEvents.includes(a)||(this.emit(a,{trackingURLTemplates:o}),this.trackURLs(o,n),i?delete this.trackingEvents[a]:this.trackedProgressEvents.push(a))})}track(e){let{macros:n={},once:i=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof n!="object")return void this.emit("TRACKER-error",{message:"track given macros has the wrong type. macros: ".concat(n)});e==="closeLinear"&&!this.trackingEvents[e]&&this.trackingEvents.close&&(e="close"),e.startsWith("progress-")&&!e.endsWith("%")&&this.trackProgressEvents(e,n,i);const r=this.trackingEvents[e],s=this.emitAlwaysEvents.indexOf(e)>-1;r?(this.emit(e,{trackingURLTemplates:r}),this.trackURLs(r,n)):s&&this.emit(e,null),i&&(delete this.trackingEvents[e],s&&this.emitAlwaysEvents.splice(this.emitAlwaysEvents.indexOf(e),1))}trackURLs(e){var n;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{validUrls:s,invalidUrls:a}=Be.filterUrlTemplates(e);a.length&&this.emit("TRACKER-error",{message:"Provided urls are malformed. url: ".concat(a)});const o={...i};this.linear&&(this.creative&&this.creative.mediaFiles&&this.creative.mediaFiles[0]&&this.creative.mediaFiles[0].fileURL&&(o.ASSETURI=this.creative.mediaFiles[0].fileURL),this.progress&&(o.ADPLAYHEAD=this.progressFormatted())),(n=this.creative)!==null&&n!==void 0&&(n=n.universalAdIds)!==null&&n!==void 0&&n.length&&(o.UNIVERSALADID=this.creative.universalAdIds.map(c=>c.idRegistry.concat(" ",c.value)).join(",")),this.ad&&(this.ad.sequence&&(o.PODSEQUENCE=this.ad.sequence),this.ad.adType&&(o.ADTYPE=this.ad.adType),this.ad.adServingId&&(o.ADSERVINGID=this.ad.adServingId),this.ad.categories&&this.ad.categories.length&&(o.ADCATEGORIES=this.ad.categories.map(c=>c.value).join(",")),this.ad.blockedAdCategories&&this.ad.blockedAdCategories.length&&(o.BLOCKEDADCATEGORIES=this.ad.blockedAdCategories.map(c=>c.value).join(","))),Be.track(s,o,r)}convertToTimecode(e){if(!Be.isValidTimeValue(e))return"";const n=1e3*e,i=Math.floor(n/36e5),r=Math.floor(n/6e4%60),s=Math.floor(n/1e3%60),a=Math.floor(n%1e3);return"".concat(Be.addLeadingZeros(i,2),":").concat(Be.addLeadingZeros(r,2),":").concat(Be.addLeadingZeros(s,2),".").concat(Be.addLeadingZeros(a,3))}progressFormatted(){return this.convertToTimecode(this.progress)}},PR=class{constructor(e){this.id=e.getAttribute("id"),this.allowMultipleAds=e.getAttribute("allowMultipleAds"),this.followRedirects=e.getAttribute("followRedirects"),this.vastAdData=null,this.adTagURI=null,this.customData=null;for(const n in e.childNodes){const i=e.childNodes[n];switch(i.localName){case"AdTagURI":this.adTagURI={templateType:i.getAttribute("templateType"),uri:(i.textContent||i.text||"").trim()};break;case"VASTAdData":for(this.vastAdData=i.firstChild;this.vastAdData&&this.vastAdData.nodeType!==1;)this.vastAdData=this.vastAdData.nextSibling;break;case"CustomAdData":this.customData=i;break}}}};function G3(t,e){const n=[];for(const i in t.childNodes){const r=t.childNodes[i];(r.nodeName===e||e===`vmap:${r.nodeName}`||r.nodeName===`vmap:${e}`)&&n.push(r)}return n}function YR(t){if(!t||!t.childNodes)return{};const e=t.childNodes,n=[];for(const r in e){const s=e[r];s.nodeName==="#cdata-section"&&n.push(s)}if(n&&n.length>0)try{return JSON.parse(n[0].data)}catch{}let i="";for(const r in e){const s=e[r];switch(s.nodeName){case"#text":i+=s.textContent.trim();break;case"#cdata-section":i+=s.data;break}}return i}function eh(t){const e={attributes:{},children:{},value:{}};e.value=YR(t);const n=t.attributes;if(n)for(const r in n){const s=n[r];s.nodeName&&s.nodeValue!==void 0&&s.nodeValue!==null&&(e.attributes[s.nodeName]=s.nodeValue)}const i=t.childNodes;if(i)for(const r in i){const s=i[r];s.nodeName&&s.nodeName.substring(0,1)!=="#"&&(e.children[s.nodeName]=eh(s))}return e}let HR=class{constructor(e){this.timeOffset=e.getAttribute("timeOffset"),this.breakType=e.getAttribute("breakType"),this.breakId=e.getAttribute("breakId"),this.repeatAfter=e.getAttribute("repeatAfter"),this.adSource=null,this.trackingEvents=[],this.extensions=[];for(const n in e.childNodes){const i=e.childNodes[n];switch(i.localName){case"AdSource":this.adSource=new PR(i);break;case"TrackingEvents":for(const r in i.childNodes){const s=i.childNodes[r];s.localName==="Tracking"&&this.trackingEvents.push({event:s.getAttribute("event"),uri:(s.textContent||s.text||"").trim()})}break;case"Extensions":this.extensions=G3(i,"Extension").map(r=>eh(r));break}}}track(e,n){for(const i in this.trackingEvents){const r=this.trackingEvents[i];if(r.event===e){let{uri:s}=r;r.event==="error"&&(s=s.replace("[ERRORCODE]",n)),this.tracker(s)}}}tracker(e){if(typeof window<"u"&&window!==null){const n=new Image;n.src=e}}};class jR{constructor(e){if(!e||!e.documentElement||e.documentElement.localName!=="VMAP")throw new Error("Not a VMAP document");this.version=e.documentElement.getAttribute("version"),this.adBreaks=[],this.extensions=[];for(const n in e.documentElement.childNodes){const i=e.documentElement.childNodes[n];switch(i.localName){case"AdBreak":this.adBreaks.push(new HR(i));break;case"Extensions":this.extensions=G3(i,"Extension").map(r=>eh(r));break}}}}const JR=(t,e)=>{const n=goog.pal,i=new n.ConsentSettings;i.allowStorage=!1;const r=new n.NonceLoader(i);return async()=>{try{const s=new URL(e),a=new n.NonceRequest;let o=localStorage.getItem("sl-device-id")||da.v4(),c=sessionStorage.getItem("sl-ad-session-id");c||(c=da.v4(),sessionStorage.setItem("sl-ad-session-id",c)),da.validate(o)||(o=da.v5(`https://${o}`,da.v5.URL)),s.searchParams.get("url")||s.searchParams.set("url","https://streamlayer.io"),s.searchParams.get("description_url")||s.searchParams.set("description_url","https://streamlayer.io"),a.adWillAutoPlay=s.searchParams.get("vpa")==="auto",a.adWillPlayMuted=s.searchParams.get("vpmute")==="1",a.continuousPlayback=!0,a.descriptionUrl=s.searchParams.get("description_url"),a.iconsSupported=!0,a.sessionId=o,a.supportedApiFrameworks="2,7,9",a.videoHeight=t.clientHeight,a.videoWidth=t.clientWidth;const u=await r.loadNonceManager(a);return s.searchParams.get("is_lat")==="[placeholder]"&&s.searchParams.set("is_lat","1"),s.searchParams.get("rdid")==="[placeholder]"&&s.searchParams.set("rdid",o),s.searchParams.get("correlator")==="[placeholder]"&&s.searchParams.set("correlator",c),s.searchParams.set("wta","1"),s.searchParams.set("givn",u.getNonce()),{url:s,manager:u}}catch(s){console.log("AdsManager could not be started",s);return}}},QR=new GR,KR=t=>t.creatives.find(e=>e.mediaFiles),$R=t=>{var e;const n=t==null?void 0:t.mediaFiles;return n!=null&&n.length&&((e=n.find(i=>i.fileURL))==null?void 0:e.fileURL)||""},gr=k3({ads:[],autoplay:!0,muted:!1,nonceManager:void 0}),zR=(t,e)=>{const[n,i]=M.useState(),r=M.useRef(Date.now()),s=M.useRef(Date.now());return M.useEffect(()=>{if(!e||!(t!=null&&t.current))return;const a=JR(t.current,e),o=Date.now();r.current=o,gr.set({...gr.get(),nonceManager:void 0}),a().then(c=>{r.current===o&&c&&(i(c.url),gr.set({...gr.get(),nonceManager:c.manager}))}).catch(c=>{console.error(c)})},[t,e]),M.useEffect(()=>{const a=async(o,c)=>{let u=[];if(o.searchParams.get("output")==="vmap"){const T=await fetch(o.toString()),_=new DOMParser,b=await T.text(),V=_.parseFromString(b,"text/xml");u=new jR(V).adBreaks.map(w=>w.adSource.adTagURI.uri)}else u=[o.toString()];const d=await Promise.all(u.map((T,_)=>QR.get(T).then(b=>{if(s.current===c){const V=b.ads.find(B=>B.creatives.length>0);if(!V)return;const w=KR(V),W=$R(w);return{creative:w,order:_,mediaFileUrl:W,ad:V,raw:b}}}))),y=o.searchParams.get("vpa")!=="click",A=o.searchParams.get("vpmute")==="1";gr.set({...gr.get(),ads:d.filter(T=>!!T),autoplay:y,muted:A})};if(n){const o=Date.now();s.current=o,a(n,o)}return()=>{s.current=0}},[n]),gr};var zi={},Ui={};function qR(t,e,n){if(n===void 0&&(n=Array.prototype),t&&typeof n.find=="function")return n.find.call(t,e);for(var i=0;i<t.length;i++)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];if(e.call(void 0,r,i,t))return r}}function th(t,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(t):t}function eI(t,e){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var M3=th({HTML:"text/html",isHTML:function(t){return t===M3.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),P3=th({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===P3.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});Ui.assign=eI;Ui.find=qR;Ui.freeze=th;Ui.MIME_TYPE=M3;Ui.NAMESPACE=P3;var Y3=Ui,$n=Y3.find,$a=Y3.NAMESPACE;function tI(t){return t!==""}function nI(t){return t?t.split(/[\t\n\f\r ]+/).filter(tI):[]}function iI(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function Jm(t){if(!t)return[];var e=nI(t);return Object.keys(e.reduce(iI,{}))}function rI(t){return function(e){return t&&t.indexOf(e)!==-1}}function co(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function $t(t,e){var n=t.prototype;if(!(n instanceof e)){let i=function(){};i.prototype=e.prototype,i=new i,co(n,i),t.prototype=n=i}n.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),n.constructor=t)}var zt={},wn=zt.ELEMENT_NODE=1,Is=zt.ATTRIBUTE_NODE=2,Wl=zt.TEXT_NODE=3,H3=zt.CDATA_SECTION_NODE=4,j3=zt.ENTITY_REFERENCE_NODE=5,sI=zt.ENTITY_NODE=6,J3=zt.PROCESSING_INSTRUCTION_NODE=7,Q3=zt.COMMENT_NODE=8,K3=zt.DOCUMENT_NODE=9,$3=zt.DOCUMENT_TYPE_NODE=10,Si=zt.DOCUMENT_FRAGMENT_NODE=11,aI=zt.NOTATION_NODE=12,kt={},ft={};kt.INDEX_SIZE_ERR=(ft[1]="Index size error",1);kt.DOMSTRING_SIZE_ERR=(ft[2]="DOMString size error",2);var Ht=kt.HIERARCHY_REQUEST_ERR=(ft[3]="Hierarchy request error",3);kt.WRONG_DOCUMENT_ERR=(ft[4]="Wrong document",4);kt.INVALID_CHARACTER_ERR=(ft[5]="Invalid character",5);kt.NO_DATA_ALLOWED_ERR=(ft[6]="No data allowed",6);kt.NO_MODIFICATION_ALLOWED_ERR=(ft[7]="No modification allowed",7);var z3=kt.NOT_FOUND_ERR=(ft[8]="Not found",8);kt.NOT_SUPPORTED_ERR=(ft[9]="Not supported",9);var Qm=kt.INUSE_ATTRIBUTE_ERR=(ft[10]="Attribute in use",10);kt.INVALID_STATE_ERR=(ft[11]="Invalid state",11);kt.SYNTAX_ERR=(ft[12]="Syntax error",12);kt.INVALID_MODIFICATION_ERR=(ft[13]="Invalid modification",13);kt.NAMESPACE_ERR=(ft[14]="Invalid namespace",14);kt.INVALID_ACCESS_ERR=(ft[15]="Invalid access",15);function nt(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,ft[t]),this.message=ft[t],Error.captureStackTrace&&Error.captureStackTrace(this,nt);return n.code=t,e&&(this.message=this.message+": "+e),n}nt.prototype=Error.prototype;co(kt,nt);function vi(){}vi.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e){for(var n=[],i=0;i<this.length;i++)ns(this[i],n,t,e);return n.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function Vs(t,e){this._node=t,this._refresh=e,nh(this)}function nh(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var n=t._refresh(t._node);if(u5(t,"length",n.length),!t.$$length||n.length<t.$$length)for(var i=n.length;i in t;i++)Object.prototype.hasOwnProperty.call(t,i)&&delete t[i];co(n,t),t._inc=e}}Vs.prototype.item=function(t){return nh(this),this[t]||null};$t(Vs,vi);function Zl(){}function q3(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function Km(t,e,n,i){if(i?e[q3(e,i)]=n:e[e.length++]=n,t){n.ownerElement=t;var r=t.ownerDocument;r&&(i&&n5(r,t,i),oI(r,t,n))}}function $m(t,e,n){var i=q3(e,n);if(i>=0){for(var r=e.length-1;i<r;)e[i]=e[++i];if(e.length=r,t){var s=t.ownerDocument;s&&(n5(s,t,n),n.ownerElement=null)}}else throw new nt(z3,new Error(t.tagName+"@"+n))}Zl.prototype={length:0,item:vi.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new nt(Qm);var n=this.getNamedItem(t.nodeName);return Km(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e=t.ownerElement,n;if(e&&e!=this._ownerElement)throw new nt(Qm);return n=this.getNamedItemNS(t.namespaceURI,t.localName),Km(this._ownerElement,this,t,n),n},removeNamedItem:function(t){var e=this.getNamedItem(t);return $m(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return $m(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var i=this[n];if(i.localName==e&&i.namespaceURI==t)return i}return null}};function e5(){}e5.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,n){var i=new uo;if(i.implementation=this,i.childNodes=new vi,i.doctype=n||null,n&&i.appendChild(n),e){var r=i.createElementNS(t,e);i.appendChild(r)}return i},createDocumentType:function(t,e,n){var i=new vc;return i.name=t,i.nodeName=t,i.publicId=e||"",i.systemId=n||"",i}};function Ve(){}Ve.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return Dl(this,t,e)},replaceChild:function(t,e){Dl(this,t,e,r5),e&&this.removeChild(e)},removeChild:function(t){return i5(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return Ld(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==Wl&&t.nodeType==Wl?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===t)return i}e=e.nodeType==Is?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,t))return n[t];e=e.nodeType==Is?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function t5(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}co(zt,Ve);co(zt,Ve.prototype);function za(t,e){if(e(t))return!0;if(t=t.firstChild)do if(za(t,e))return!0;while(t=t.nextSibling)}function uo(){this.ownerDocument=this}function oI(t,e,n){t&&t._inc++;var i=n.namespaceURI;i===$a.XMLNS&&(e._nsMap[n.prefix?n.localName:""]=n.value)}function n5(t,e,n,i){t&&t._inc++;var r=n.namespaceURI;r===$a.XMLNS&&delete e._nsMap[n.prefix?n.localName:""]}function ih(t,e,n){if(t&&t._inc){t._inc++;var i=e.childNodes;if(n)i[i.length++]=n;else{for(var r=e.firstChild,s=0;r;)i[s++]=r,r=r.nextSibling;i.length=s,delete i[i.length]}}}function i5(t,e){var n=e.previousSibling,i=e.nextSibling;return n?n.nextSibling=i:t.firstChild=i,i?i.previousSibling=n:t.lastChild=n,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,ih(t.ownerDocument,t),e}function lI(t){return t&&(t.nodeType===Ve.DOCUMENT_NODE||t.nodeType===Ve.DOCUMENT_FRAGMENT_NODE||t.nodeType===Ve.ELEMENT_NODE)}function cI(t){return t&&(zn(t)||rh(t)||_i(t)||t.nodeType===Ve.DOCUMENT_FRAGMENT_NODE||t.nodeType===Ve.COMMENT_NODE||t.nodeType===Ve.PROCESSING_INSTRUCTION_NODE)}function _i(t){return t&&t.nodeType===Ve.DOCUMENT_TYPE_NODE}function zn(t){return t&&t.nodeType===Ve.ELEMENT_NODE}function rh(t){return t&&t.nodeType===Ve.TEXT_NODE}function zm(t,e){var n=t.childNodes||[];if($n(n,zn)||_i(e))return!1;var i=$n(n,_i);return!(e&&i&&n.indexOf(i)>n.indexOf(e))}function qm(t,e){var n=t.childNodes||[];function i(s){return zn(s)&&s!==e}if($n(n,i))return!1;var r=$n(n,_i);return!(e&&r&&n.indexOf(r)>n.indexOf(e))}function uI(t,e,n){if(!lI(t))throw new nt(Ht,"Unexpected parent node type "+t.nodeType);if(n&&n.parentNode!==t)throw new nt(z3,"child not in parent");if(!cI(e)||_i(e)&&t.nodeType!==Ve.DOCUMENT_NODE)throw new nt(Ht,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function dI(t,e,n){var i=t.childNodes||[],r=e.childNodes||[];if(e.nodeType===Ve.DOCUMENT_FRAGMENT_NODE){var s=r.filter(zn);if(s.length>1||$n(r,rh))throw new nt(Ht,"More than one element or text in fragment");if(s.length===1&&!zm(t,n))throw new nt(Ht,"Element in fragment can not be inserted before doctype")}if(zn(e)&&!zm(t,n))throw new nt(Ht,"Only one element can be added and only after doctype");if(_i(e)){if($n(i,_i))throw new nt(Ht,"Only one doctype is allowed");var a=$n(i,zn);if(n&&i.indexOf(a)<i.indexOf(n))throw new nt(Ht,"Doctype can only be inserted before an element");if(!n&&a)throw new nt(Ht,"Doctype can not be appended since element is present")}}function r5(t,e,n){var i=t.childNodes||[],r=e.childNodes||[];if(e.nodeType===Ve.DOCUMENT_FRAGMENT_NODE){var s=r.filter(zn);if(s.length>1||$n(r,rh))throw new nt(Ht,"More than one element or text in fragment");if(s.length===1&&!qm(t,n))throw new nt(Ht,"Element in fragment can not be inserted before doctype")}if(zn(e)&&!qm(t,n))throw new nt(Ht,"Only one element can be added and only after doctype");if(_i(e)){if($n(i,function(o){return _i(o)&&o!==n}))throw new nt(Ht,"Only one doctype is allowed");var a=$n(i,zn);if(n&&i.indexOf(a)<i.indexOf(n))throw new nt(Ht,"Doctype can only be inserted before an element")}}function Dl(t,e,n,i){uI(t,e,n),t.nodeType===Ve.DOCUMENT_NODE&&(i||dI)(t,e,n);var r=e.parentNode;if(r&&r.removeChild(e),e.nodeType===Si){var s=e.firstChild;if(s==null)return e;var a=e.lastChild}else s=a=e;var o=n?n.previousSibling:t.lastChild;s.previousSibling=o,a.nextSibling=n,o?o.nextSibling=s:t.firstChild=s,n==null?t.lastChild=a:n.previousSibling=a;do s.parentNode=t;while(s!==a&&(s=s.nextSibling));return ih(t.ownerDocument||t,t),e.nodeType==Si&&(e.firstChild=e.lastChild=null),e}function hI(t,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,ih(t.ownerDocument,t,e),e}uo.prototype={nodeName:"#document",nodeType:K3,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==Si){for(var n=t.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,e),n=i}return t}return Dl(this,t,e),t.ownerDocument=this,this.documentElement===null&&t.nodeType===wn&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),i5(this,t)},replaceChild:function(t,e){Dl(this,t,e,r5),t.ownerDocument=this,e&&this.removeChild(e),zn(t)&&(this.documentElement=t)},importNode:function(t,e){return c5(this,t,e)},getElementById:function(t){var e=null;return za(this.documentElement,function(n){if(n.nodeType==wn&&n.getAttribute("id")==t)return e=n,!0}),e},getElementsByClassName:function(t){var e=Jm(t);return new Vs(this,function(n){var i=[];return e.length>0&&za(n.documentElement,function(r){if(r!==n&&r.nodeType===wn){var s=r.getAttribute("class");if(s){var a=t===s;if(!a){var o=Jm(s);a=e.every(rI(o))}a&&i.push(r)}}}),i})},createElement:function(t){var e=new kr;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new vi;var n=e.attributes=new Zl;return n._ownerElement=e,e},createDocumentFragment:function(){var t=new Cc;return t.ownerDocument=this,t.childNodes=new vi,t},createTextNode:function(t){var e=new sh;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new ah;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new oh;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new ch;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new Ol;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new lh;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new kr,i=e.split(":"),r=n.attributes=new Zl;return n.childNodes=new vi,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,i.length==2?(n.prefix=i[0],n.localName=i[1]):n.localName=e,r._ownerElement=n,n},createAttributeNS:function(t,e){var n=new Ol,i=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,i.length==2?(n.prefix=i[0],n.localName=i[1]):n.localName=e,n}};$t(uo,Ve);function kr(){this._nsMap={}}kr.prototype={nodeType:wn,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===Si?this.insertBefore(t,null):hI(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var i=this.ownerDocument.createAttributeNS(t,e);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new Vs(this,function(e){var n=[];return za(e,function(i){i!==e&&i.nodeType==wn&&(t==="*"||i.tagName==t)&&n.push(i)}),n})},getElementsByTagNameNS:function(t,e){return new Vs(this,function(n){var i=[];return za(n,function(r){r!==n&&r.nodeType===wn&&(t==="*"||r.namespaceURI===t)&&(e==="*"||r.localName==e)&&i.push(r)}),i})}};uo.prototype.getElementsByTagName=kr.prototype.getElementsByTagName;uo.prototype.getElementsByTagNameNS=kr.prototype.getElementsByTagNameNS;$t(kr,Ve);function Ol(){}Ol.prototype.nodeType=Is;$t(Ol,Ve);function ho(){}ho.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(ft[Ht])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){var i=this.data.substring(0,t),r=this.data.substring(t+e);n=i+n+r,this.nodeValue=this.data=n,this.length=n.length}};$t(ho,Ve);function sh(){}sh.prototype={nodeName:"#text",nodeType:Wl,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}};$t(sh,ho);function ah(){}ah.prototype={nodeName:"#comment",nodeType:Q3};$t(ah,ho);function oh(){}oh.prototype={nodeName:"#cdata-section",nodeType:H3};$t(oh,ho);function vc(){}vc.prototype.nodeType=$3;$t(vc,Ve);function s5(){}s5.prototype.nodeType=aI;$t(s5,Ve);function a5(){}a5.prototype.nodeType=sI;$t(a5,Ve);function lh(){}lh.prototype.nodeType=j3;$t(lh,Ve);function Cc(){}Cc.prototype.nodeName="#document-fragment";Cc.prototype.nodeType=Si;$t(Cc,Ve);function ch(){}ch.prototype.nodeType=J3;$t(ch,Ve);function o5(){}o5.prototype.serializeToString=function(t,e,n){return l5.call(t,e,n)};Ve.prototype.toString=l5;function l5(t,e){var n=[],i=this.nodeType==9&&this.documentElement||this,r=i.prefix,s=i.namespaceURI;if(s&&r==null){var r=i.lookupPrefix(s);if(r==null)var a=[{namespace:s,prefix:null}]}return ns(this,n,t,e,a),n.join("")}function e2(t,e,n){var i=t.prefix||"",r=t.namespaceURI;if(!r||i==="xml"&&r===$a.XML||r===$a.XMLNS)return!1;for(var s=n.length;s--;){var a=n[s];if(a.prefix===i)return a.namespace!==r}return!0}function Zu(t,e,n){t.push(" ",e,'="',n.replace(/[<>&"\t\n\r]/g,t5),'"')}function ns(t,e,n,i,r){if(r||(r=[]),i)if(t=i(t),t){if(typeof t=="string"){e.push(t);return}}else return;switch(t.nodeType){case wn:var s=t.attributes,a=s.length,o=t.firstChild,c=t.tagName;n=$a.isHTML(t.namespaceURI)||n;var u=c;if(!n&&!t.prefix&&t.namespaceURI){for(var d,y=0;y<s.length;y++)if(s.item(y).name==="xmlns"){d=s.item(y).value;break}if(!d)for(var A=r.length-1;A>=0;A--){var T=r[A];if(T.prefix===""&&T.namespace===t.namespaceURI){d=T.namespace;break}}if(d!==t.namespaceURI)for(var A=r.length-1;A>=0;A--){var T=r[A];if(T.namespace===t.namespaceURI){T.prefix&&(u=T.prefix+":"+c);break}}}e.push("<",u);for(var _=0;_<a;_++){var b=s.item(_);b.prefix=="xmlns"?r.push({prefix:b.localName,namespace:b.value}):b.nodeName=="xmlns"&&r.push({prefix:"",namespace:b.value})}for(var _=0;_<a;_++){var b=s.item(_);if(e2(b,n,r)){var V=b.prefix||"",w=b.namespaceURI;Zu(e,V?"xmlns:"+V:"xmlns",w),r.push({prefix:V,namespace:w})}ns(b,e,n,i,r)}if(c===u&&e2(t,n,r)){var V=t.prefix||"",w=t.namespaceURI;Zu(e,V?"xmlns:"+V:"xmlns",w),r.push({prefix:V,namespace:w})}if(o||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(e.push(">"),n&&/^script$/i.test(c))for(;o;)o.data?e.push(o.data):ns(o,e,n,i,r.slice()),o=o.nextSibling;else for(;o;)ns(o,e,n,i,r.slice()),o=o.nextSibling;e.push("</",u,">")}else e.push("/>");return;case K3:case Si:for(var o=t.firstChild;o;)ns(o,e,n,i,r.slice()),o=o.nextSibling;return;case Is:return Zu(e,t.name,t.value);case Wl:return e.push(t.data.replace(/[<&>]/g,t5));case H3:return e.push("<![CDATA[",t.data,"]]>");case Q3:return e.push("<!--",t.data,"-->");case $3:var W=t.publicId,B=t.systemId;if(e.push("<!DOCTYPE ",t.name),W)e.push(" PUBLIC ",W),B&&B!="."&&e.push(" ",B),e.push(">");else if(B&&B!=".")e.push(" SYSTEM ",B,">");else{var Z=t.internalSubset;Z&&e.push(" [",Z,"]"),e.push(">")}return;case J3:return e.push("<?",t.target," ",t.data,"?>");case j3:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function c5(t,e,n){var i;switch(e.nodeType){case wn:i=e.cloneNode(!1),i.ownerDocument=t;case Si:break;case Is:n=!0;break}if(i||(i=e.cloneNode(!1)),i.ownerDocument=t,i.parentNode=null,n)for(var r=e.firstChild;r;)i.appendChild(c5(t,r,n)),r=r.nextSibling;return i}function Ld(t,e,n){var i=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=e[r];typeof s!="object"&&s!=i[r]&&(i[r]=s)}switch(e.childNodes&&(i.childNodes=new vi),i.ownerDocument=t,i.nodeType){case wn:var a=e.attributes,o=i.attributes=new Zl,c=a.length;o._ownerElement=i;for(var u=0;u<c;u++)i.setAttributeNode(Ld(t,a.item(u),!0));break;case Is:n=!0}if(n)for(var d=e.firstChild;d;)i.appendChild(Ld(t,d,n)),d=d.nextSibling;return i}function u5(t,e,n){t[e]=n}try{if(Object.defineProperty){let t=function(e){switch(e.nodeType){case wn:case Si:var n=[];for(e=e.firstChild;e;)e.nodeType!==7&&e.nodeType!==8&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}};Object.defineProperty(Vs.prototype,"length",{get:function(){return nh(this),this.$$length}}),Object.defineProperty(Ve.prototype,"textContent",{get:function(){return t(this)},set:function(e){switch(this.nodeType){case wn:case Si:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),u5=function(e,n,i){e["$$"+n]=i}}}catch{}zi.DocumentType=vc;zi.DOMException=nt;zi.DOMImplementation=e5;zi.Element=kr;zi.Node=Ve;zi.NodeList=vi;zi.XMLSerializer=o5;var Ac={},d5={};(function(t){var e=Ui.freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
64
- `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES})(d5);var uh={},qa=Ui.NAMESPACE,Fd=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,t2=new RegExp("[\\-\\.0-9"+Fd.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),n2=new RegExp("^"+Fd.source+t2.source+"*(?::"+Fd.source+t2.source+"*)?$"),ya=0,Zi=1,jr=2,ba=3,Jr=4,Qr=5,Ea=6,rl=7;function ws(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,ws)}ws.prototype=new Error;ws.prototype.name=ws.name;function h5(){}h5.prototype={parse:function(t,e,n){var i=this.domBuilder;i.startDocument(),p5(e,e={}),pI(t,e,n,i,this.errorHandler),i.endDocument()}};function pI(t,e,n,i,r){function s(he){if(he>65535){he-=65536;var be=55296+(he>>10),Ne=56320+(he&1023);return String.fromCharCode(be,Ne)}else return String.fromCharCode(he)}function a(he){var be=he.slice(1,-1);return Object.hasOwnProperty.call(n,be)?n[be]:be.charAt(0)==="#"?s(parseInt(be.substr(1).replace("x","0x"))):(r.error("entity not found:"+he),he)}function o(he){if(he>b){var be=t.substring(b,he).replace(/&#?\w+;/g,a);A&&c(b),i.characters(be,0,he-b),b=he}}function c(he,be){for(;he>=d&&(be=y.exec(t));)u=be.index,d=u+be[0].length,A.lineNumber++;A.columnNumber=he-u+1}for(var u=0,d=0,y=/.*(?:\r\n?|\n)|.*$/g,A=i.locator,T=[{currentNSMap:e}],_={},b=0;;){try{var V=t.indexOf("<",b);if(V<0){if(!t.substr(b).match(/^\s*$/)){var w=i.doc,W=w.createTextNode(t.substr(b));w.appendChild(W),i.currentElement=W}return}switch(V>b&&o(V),t.charAt(V+1)){case"/":var oe=t.indexOf(">",V+3),B=t.substring(V+2,oe).replace(/[ \t\n\r]+$/g,""),Z=T.pop();oe<0?(B=t.substring(V+2).replace(/[\s<].*/,""),r.error("end tag name: "+B+" is not complete:"+Z.tagName),oe=V+1+B.length):B.match(/\s</)&&(B=B.replace(/[\s<].*/,""),r.error("end tag name: "+B+" maybe not complete"),oe=V+1+B.length);var L=Z.localNSMap,X=Z.tagName==B,J=X||Z.tagName&&Z.tagName.toLowerCase()==B.toLowerCase();if(J){if(i.endElement(Z.uri,Z.localName,B),L)for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&i.endPrefixMapping(j);X||r.fatalError("end tag name: "+B+" is not match the current start tagName:"+Z.tagName)}else T.push(Z);oe++;break;case"?":A&&c(V),oe=bI(t,V,i);break;case"!":A&&c(V),oe=yI(t,V,i,r);break;default:A&&c(V);var re=new m5,de=T[T.length-1].currentNSMap,oe=mI(t,V,re,de,a,r),ce=re.length;if(!re.closed&&fI(t,oe,re.tagName,_)&&(re.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),A&&ce){for(var se=i2(A,{}),me=0;me<ce;me++){var we=re[me];c(we.offset),we.locator=i2(A,{})}i.locator=se,r2(re,i,de)&&T.push(re),i.locator=A}else r2(re,i,de)&&T.push(re);qa.isHTML(re.uri)&&!re.closed?oe=gI(t,oe,re.tagName,a,i):oe++}}catch(he){if(he instanceof ws)throw he;r.error("element parse error: "+he),oe=-1}oe>b?b=oe:o(Math.max(V,b)+1)}}function i2(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function mI(t,e,n,i,r,s){function a(A,T,_){n.attributeNames.hasOwnProperty(A)&&s.fatalError("Attribute "+A+" redefined"),n.addValue(A,T.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),_)}for(var o,c,u=++e,d=ya;;){var y=t.charAt(u);switch(y){case"=":if(d===Zi)o=t.slice(e,u),d=ba;else if(d===jr)d=ba;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(d===ba||d===Zi)if(d===Zi&&(s.warning('attribute value must after "="'),o=t.slice(e,u)),e=u+1,u=t.indexOf(y,e),u>0)c=t.slice(e,u),a(o,c,e-1),d=Qr;else throw new Error("attribute value no end '"+y+"' match");else if(d==Jr)c=t.slice(e,u),a(o,c,e),s.warning('attribute "'+o+'" missed start quot('+y+")!!"),e=u+1,d=Qr;else throw new Error('attribute value must after "="');break;case"/":switch(d){case ya:n.setTagName(t.slice(e,u));case Qr:case Ea:case rl:d=rl,n.closed=!0;case Jr:case Zi:break;case jr:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),d==ya&&n.setTagName(t.slice(e,u)),u;case">":switch(d){case ya:n.setTagName(t.slice(e,u));case Qr:case Ea:case rl:break;case Jr:case Zi:c=t.slice(e,u),c.slice(-1)==="/"&&(n.closed=!0,c=c.slice(0,-1));case jr:d===jr&&(c=o),d==Jr?(s.warning('attribute "'+c+'" missed quot(")!'),a(o,c,e)):((!qa.isHTML(i[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&s.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),a(c,c,e));break;case ba:throw new Error("attribute value missed!!")}return u;case"€":y=" ";default:if(y<=" ")switch(d){case ya:n.setTagName(t.slice(e,u)),d=Ea;break;case Zi:o=t.slice(e,u),d=jr;break;case Jr:var c=t.slice(e,u);s.warning('attribute "'+c+'" missed quot(")!!'),a(o,c,e);case Qr:d=Ea;break}else switch(d){case jr:n.tagName,(!qa.isHTML(i[""])||!o.match(/^(?:disabled|checked|selected)$/i))&&s.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),a(o,o,e),e=u,d=Zi;break;case Qr:s.warning('attribute space is required"'+o+'"!!');case Ea:d=Zi,e=u;break;case ba:d=Jr,e=u;break;case rl:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function r2(t,e,n){for(var i=t.tagName,r=null,s=t.length;s--;){var a=t[s],o=a.qName,c=a.value,A=o.indexOf(":");if(A>0)var u=a.prefix=o.slice(0,A),d=o.slice(A+1),y=u==="xmlns"&&d;else d=o,u=null,y=o==="xmlns"&&"";a.localName=d,y!==!1&&(r==null&&(r={},p5(n,n={})),n[y]=r[y]=c,a.uri=qa.XMLNS,e.startPrefixMapping(y,c))}for(var s=t.length;s--;){a=t[s];var u=a.prefix;u&&(u==="xml"&&(a.uri=qa.XML),u!=="xmlns"&&(a.uri=n[u||""]))}var A=i.indexOf(":");A>0?(u=t.prefix=i.slice(0,A),d=t.localName=i.slice(A+1)):(u=null,d=t.localName=i);var T=t.uri=n[u||""];if(e.startElement(T,d,i,t),t.closed){if(e.endElement(T,d,i),r)for(u in r)Object.prototype.hasOwnProperty.call(r,u)&&e.endPrefixMapping(u)}else return t.currentNSMap=n,t.localNSMap=r,!0}function gI(t,e,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var s=t.indexOf("</"+n+">",e),a=t.substring(e+1,s);if(/[&<]/.test(a))return/^script$/i.test(n)?(r.characters(a,0,a.length),s):(a=a.replace(/&#?\w+;/g,i),r.characters(a,0,a.length),s)}return e+1}function fI(t,e,n,i){var r=i[n];return r==null&&(r=t.lastIndexOf("</"+n+">"),r<e&&(r=t.lastIndexOf("</"+n)),i[n]=r),r<e}function p5(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function yI(t,e,n,i){var r=t.charAt(e+2);switch(r){case"-":if(t.charAt(e+3)==="-"){var s=t.indexOf("-->",e+4);return s>e?(n.comment(t,e+4,s-e-4),s+3):(i.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var s=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,s-e-9),n.endCDATA(),s+3}var a=EI(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var c=a[1][0],u=!1,d=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],d=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(d=a[3][0]));var y=a[o-1];return n.startDTD(c,u,d),n.endDTD(),y.index+y[0].length}}return-1}function bI(t,e,n){var i=t.indexOf("?>",e);if(i){var r=t.substring(e,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),i+2):-1}return-1}function m5(){this.attributeNames={}}m5.prototype={setTagName:function(t){if(!n2.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,n){if(!n2.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function EI(t,e){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=e,r.exec(t);n=r.exec(t);)if(i.push(n),n[1])return i}uh.XMLReader=h5;uh.ParseError=ws;var TI=Ui,vI=zi,s2=d5,g5=uh,CI=vI.DOMImplementation,a2=TI.NAMESPACE,AI=g5.ParseError,SI=g5.XMLReader;function f5(t){return t.replace(/\r[\n\u0085]/g,`
65
- `).replace(/[\r\u0085\u2028]/g,`
66
- `)}function y5(t){this.options=t||{locator:{}}}y5.prototype.parseFromString=function(t,e){var n=this.options,i=new SI,r=n.domBuilder||new po,s=n.errorHandler,a=n.locator,o=n.xmlns||{},c=/\/x?html?$/.test(e),u=c?s2.HTML_ENTITIES:s2.XML_ENTITIES;a&&r.setDocumentLocator(a),i.errorHandler=_I(s,r,a),i.domBuilder=n.domBuilder||r,c&&(o[""]=a2.HTML),o.xml=o.xml||a2.XML;var d=n.normalizeLineEndings||f5;return t&&typeof t=="string"?i.parse(d(t),o,u):i.errorHandler.error("invalid doc source"),r.doc};function _I(t,e,n){if(!t){if(e instanceof po)return e;t=e}var i={},r=t instanceof Function;n=n||{};function s(a){var o=t[a];!o&&r&&(o=t.length==2?function(c){t(a,c)}:t),i[a]=o&&function(c){o("[xmldom "+a+"] "+c+Bd(n))}||function(){}}return s("warning"),s("error"),s("fatalError"),i}function po(){this.cdata=!1}function Kr(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}po.prototype={startDocument:function(){this.doc=new CI().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,i){var r=this.doc,s=r.createElementNS(t,n||e),a=i.length;sl(this,s),this.currentElement=s,this.locator&&Kr(this.locator,s);for(var o=0;o<a;o++){var t=i.getURI(o),c=i.getValue(o),n=i.getQName(o),u=r.createAttributeNS(t,n);this.locator&&Kr(i.getLocator(o),u),u.value=u.nodeValue=c,s.setAttributeNode(u)}},endElement:function(t,e,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.doc.createProcessingInstruction(t,e);this.locator&&Kr(this.locator,n),sl(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=o2.apply(this,arguments),t){if(this.cdata)var i=this.doc.createCDATASection(t);else var i=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(t)&&this.doc.appendChild(i),this.locator&&Kr(this.locator,i)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=o2.apply(this,arguments);var i=this.doc.createComment(t);this.locator&&Kr(this.locator,i),sl(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(t,e,n);this.locator&&Kr(this.locator,r),sl(this,r),this.doc.doctype=r}},warning:function(t){console.warn("[xmldom warning] "+t,Bd(this.locator))},error:function(t){console.error("[xmldom error] "+t,Bd(this.locator))},fatalError:function(t){throw new AI(t,this.locator)}};function Bd(t){if(t)return`
67
- @`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function o2(t,e,n){return typeof t=="string"?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){po.prototype[t]=function(){return null}});function sl(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}Ac.__DOMHandler=po;Ac.normalizeLineEndings=f5;Ac.DOMParser=y5;var dh=Ac.DOMParser;const RI=Object.freeze(Object.defineProperty({__proto__:null,DOMParser:dh},Symbol.toStringTag,{value:"Module"})),II=Object.freeze(Object.defineProperty({__proto__:null,D:dh,i:RI},Symbol.toStringTag,{value:"Module"}));let VI=(t={})=>{let e=k3(t);return e.setKey=function(n,i){let r=e.value;typeof i>"u"&&n in e.value?(e.value={...e.value},delete e.value[n],e.notify(r,n)):e.value[n]!==i&&(e.value={...e.value,[n]:i},e.notify(r,n))},e};var Xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Fm<"u"?Fm:typeof self<"u"?self:{};function mo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wI(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}const Gl=globalThis||void 0||self;var Ra;typeof window<"u"?Ra=window:typeof Xl<"u"?Ra=Xl:typeof self<"u"?Ra=self:Ra={};var Sc=Ra;const x=mo(Sc),NI={},UI=Object.freeze(Object.defineProperty({__proto__:null,default:NI},Symbol.toStringTag,{value:"Module"})),kI=wI(UI);var l2=typeof Xl<"u"?Xl:typeof window<"u"?window:{},xI=kI,Ia;typeof document<"u"?Ia=document:(Ia=l2["__GLOBAL_DOCUMENT_CACHE@4"],Ia||(Ia=l2["__GLOBAL_DOCUMENT_CACHE@4"]=xI));var b5=Ia;const ee=mo(b5);var hh={exports:{}},E5={exports:{}};(function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)({}).hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(E5);var LI=E5.exports,FI=WI,BI=Object.prototype.toString;function WI(t){if(!t)return!1;var e=BI.call(t);return e==="[object Function]"||typeof t=="function"&&e!=="[object RegExp]"||typeof window<"u"&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}function ZI(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=DI(t))||e){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
68
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DI(t,e){if(t){if(typeof t=="string")return c2(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c2(t,e)}}function c2(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var OI=function(){function t(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var e=t.prototype;return e.getIsEnabled=function(){return this.enabled_},e.enable=function(){this.enabled_=!0},e.disable=function(){this.enabled_=!1},e.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},e.addInterceptor=function(n,i){this.typeToInterceptorsMap_.has(n)||this.typeToInterceptorsMap_.set(n,new Set);var r=this.typeToInterceptorsMap_.get(n);return r.has(i)?!1:(r.add(i),!0)},e.removeInterceptor=function(n,i){var r=this.typeToInterceptorsMap_.get(n);return r&&r.has(i)?(r.delete(i),!0):!1},e.clearInterceptorsByType=function(n){var i=this.typeToInterceptorsMap_.get(n);return i?(this.typeToInterceptorsMap_.delete(n),this.typeToInterceptorsMap_.set(n,new Set),!0):!1},e.clear=function(){return this.typeToInterceptorsMap_.size?(this.typeToInterceptorsMap_=new Map,!0):!1},e.getForType=function(n){return this.typeToInterceptorsMap_.get(n)||new Set},e.execute=function(n,i){for(var r=this.getForType(n),s=ZI(r),a;!(a=s()).done;){var o=a.value;try{i=o(i)}catch{}}return i},t}(),XI=OI,GI=function(){function t(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var e=t.prototype;return e.getIsEnabled=function(){return this.enabled_},e.enable=function(){this.enabled_=!0},e.disable=function(){this.enabled_=!1},e.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},e.getMaxAttempts=function(){return this.maxAttempts_},e.setMaxAttempts=function(n){this.maxAttempts_=n},e.getDelayFactor=function(){return this.delayFactor_},e.setDelayFactor=function(n){this.delayFactor_=n},e.getFuzzFactor=function(){return this.fuzzFactor_},e.setFuzzFactor=function(n){this.fuzzFactor_=n},e.getInitialDelay=function(){return this.initialDelay_},e.setInitialDelay=function(n){this.initialDelay_=n},e.createRetry=function(n){var i=n===void 0?{}:n,r=i.maxAttempts,s=i.delayFactor,a=i.fuzzFactor,o=i.initialDelay;return new MI({maxAttempts:r||this.maxAttempts_,delayFactor:s||this.delayFactor_,fuzzFactor:a||this.fuzzFactor_,initialDelay:o||this.initialDelay_})},t}(),MI=function(){function t(n){this.maxAttempts_=n.maxAttempts,this.delayFactor_=n.delayFactor,this.fuzzFactor_=n.fuzzFactor,this.currentDelay_=n.initialDelay,this.currentAttempt_=1}var e=t.prototype;return e.moveToNextAttempt=function(){this.currentAttempt_++;var n=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+n},e.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},e.getCurrentDelay=function(){return this.currentDelay_},e.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},e.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},e.getCurrentFuzzedDelay=function(){var n=this.getCurrentMinPossibleDelay(),i=this.getCurrentMaxPossibleDelay();return n+Math.random()*(i-n)},t}(),PI=GI,YI=Sc,HI=function(t,e){return e===void 0&&(e=!1),function(n,i,r){if(n){t(n);return}if(i.statusCode>=400&&i.statusCode<=599){var s=r;if(e)if(YI.TextDecoder){var a=jI(i.headers&&i.headers["content-type"]);try{s=new TextDecoder(a).decode(r)}catch{}}else s=String.fromCharCode.apply(null,new Uint8Array(r));t({cause:s});return}t(null,r)}};function jI(t){return t===void 0&&(t=""),t.toLowerCase().split(";").reduce(function(e,n){var i=n.split("="),r=i[0],s=i[1];return r.trim()==="charset"?s.trim():e},"utf-8")}var JI=HI,T5=Sc,QI=LI,KI=FI,v5=XI,$I=PI;tt.httpHandler=JI;tt.requestInterceptorsStorage=new v5;tt.responseInterceptorsStorage=new v5;tt.retryManager=new $I;/**
69
- * @license
70
- * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
71
- * Copyright (c) 2014 David Björklund
72
- * Available under the MIT license
73
- * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
74
- */var zI=function(t){var e={};return t&&t.trim().split(`
75
- `).forEach(function(n){var i=n.indexOf(":"),r=n.slice(0,i).trim().toLowerCase(),s=n.slice(i+1).trim();typeof e[r]>"u"?e[r]=s:Array.isArray(e[r])?e[r].push(s):e[r]=[e[r],s]}),e};hh.exports=tt;hh.exports.default=tt;tt.XMLHttpRequest=T5.XMLHttpRequest||nV;tt.XDomainRequest="withCredentials"in new tt.XMLHttpRequest?tt.XMLHttpRequest:T5.XDomainRequest;qI(["get","put","post","patch","head","delete"],function(t){tt[t==="delete"?"del":t]=function(e,n,i){return n=C5(e,n,i),n.method=t.toUpperCase(),ph(n)}});function qI(t,e){for(var n=0;n<t.length;n++)e(t[n])}function eV(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function C5(t,e,n){var i=t;return KI(e)?(n=e,typeof t=="string"&&(i={uri:t})):i=QI({},e,{uri:t}),i.callback=n,i}function tt(t,e,n){return e=C5(t,e,n),ph(e)}function ph(t){if(typeof t.callback>"u")throw new Error("callback argument missing");if(t.requestType&&tt.requestInterceptorsStorage.getIsEnabled()){var e={uri:t.uri||t.url,headers:t.headers||{},body:t.body,metadata:t.metadata||{},retry:t.retry,timeout:t.timeout},n=tt.requestInterceptorsStorage.execute(t.requestType,e);t.uri=n.uri,t.headers=n.headers,t.body=n.body,t.metadata=n.metadata,t.retry=n.retry,t.timeout=n.timeout}var i=!1,r=function(Z,L,X){i||(i=!0,t.callback(Z,L,X))};function s(){u.readyState===4&&!tt.responseInterceptorsStorage.getIsEnabled()&&setTimeout(c,0)}function a(){var Z=void 0;if(u.response?Z=u.response:Z=u.responseText||tV(u),w)try{Z=JSON.parse(Z)}catch{}return Z}function o(Z){if(clearTimeout(W),clearTimeout(t.retryTimeout),Z instanceof Error||(Z=new Error(""+(Z||"Unknown XMLHttpRequest Error"))),Z.statusCode=0,!y&&tt.retryManager.getIsEnabled()&&t.retry&&t.retry.shouldRetry()){t.retryTimeout=setTimeout(function(){t.retry.moveToNextAttempt(),t.xhr=u,ph(t)},t.retry.getCurrentFuzzedDelay());return}if(t.requestType&&tt.responseInterceptorsStorage.getIsEnabled()){var L={headers:B.headers||{},body:B.body,responseUrl:u.responseURL,responseType:u.responseType},X=tt.responseInterceptorsStorage.execute(t.requestType,L);B.body=X.body,B.headers=X.headers}return r(Z,B)}function c(){if(!y){var Z;clearTimeout(W),clearTimeout(t.retryTimeout),t.useXDR&&u.status===void 0?Z=200:Z=u.status===1223?204:u.status;var L=B,X=null;if(Z!==0?(L={body:a(),statusCode:Z,method:T,headers:{},url:A,rawRequest:u},u.getAllResponseHeaders&&(L.headers=zI(u.getAllResponseHeaders()))):X=new Error("Internal XMLHttpRequest Error"),t.requestType&&tt.responseInterceptorsStorage.getIsEnabled()){var J={headers:L.headers||{},body:L.body,responseUrl:u.responseURL,responseType:u.responseType},j=tt.responseInterceptorsStorage.execute(t.requestType,J);L.body=j.body,L.headers=j.headers}return r(X,L,L.body)}}var u=t.xhr||null;u||(t.cors||t.useXDR?u=new tt.XDomainRequest:u=new tt.XMLHttpRequest);var d,y,A=u.url=t.uri||t.url,T=u.method=t.method||"GET",_=t.body||t.data,b=u.headers=t.headers||{},V=!!t.sync,w=!1,W,B={body:void 0,headers:{},statusCode:0,method:T,url:A,rawRequest:u};if("json"in t&&t.json!==!1&&(w=!0,b.accept||b.Accept||(b.Accept="application/json"),T!=="GET"&&T!=="HEAD"&&(b["content-type"]||b["Content-Type"]||(b["Content-Type"]="application/json"),_=JSON.stringify(t.json===!0?_:t.json))),u.onreadystatechange=s,u.onload=c,u.onerror=o,u.onprogress=function(){},u.onabort=function(){y=!0,clearTimeout(t.retryTimeout)},u.ontimeout=o,u.open(T,A,!V,t.username,t.password),V||(u.withCredentials=!!t.withCredentials),!V&&t.timeout>0&&(W=setTimeout(function(){if(!y){y=!0,u.abort("timeout");var Z=new Error("XMLHttpRequest timeout");Z.code="ETIMEDOUT",o(Z)}},t.timeout)),u.setRequestHeader)for(d in b)b.hasOwnProperty(d)&&u.setRequestHeader(d,b[d]);else if(t.headers&&!eV(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(u.responseType=t.responseType),"beforeSend"in t&&typeof t.beforeSend=="function"&&t.beforeSend(u),u.send(_||null),u}function tV(t){try{if(t.responseType==="document")return t.responseXML;var e=t.responseXML&&t.responseXML.documentElement.nodeName==="parsererror";if(t.responseType===""&&!e)return t.responseXML}catch{}return null}function nV(){}var iV=hh.exports;const A5=mo(iV);var S5={exports:{}},u2=b5,mh=Object.create||function(){function t(){}return function(e){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function tn(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}tn.prototype=mh(Error.prototype);tn.prototype.constructor=tn;tn.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function gh(t){function e(i,r,s,a){return(i|0)*3600+(r|0)*60+(s|0)+(a|0)/1e3}var n=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function Fa(){this.values=mh(null)}Fa.prototype={set:function(t,e){!this.get(t)&&e!==""&&(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var i=0;i<n.length;++i)if(e===n[i]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e),e>=0&&e<=100)?(this.set(t,e),!0):!1}};function Va(t,e,n,i){var r=i?t.split(i):[t];for(var s in r)if(typeof r[s]=="string"){var a=r[s].split(n);if(a.length===2){var o=a[0].trim(),c=a[1].trim();e(o,c)}}}function rV(t,e,n){var i=t;function r(){var o=gh(t);if(o===null)throw new tn(tn.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),o}function s(o,c){var u=new Fa;Va(o,function(d,y){switch(d){case"region":for(var A=n.length-1;A>=0;A--)if(n[A].id===y){u.set(d,n[A].region);break}break;case"vertical":u.alt(d,y,["rl","lr"]);break;case"line":var T=y.split(","),_=T[0];u.integer(d,_),u.percent(d,_)&&u.set("snapToLines",!1),u.alt(d,_,["auto"]),T.length===2&&u.alt("lineAlign",T[1],["start","center","end"]);break;case"position":T=y.split(","),u.percent(d,T[0]),T.length===2&&u.alt("positionAlign",T[1],["start","center","end"]);break;case"size":u.percent(d,y);break;case"align":u.alt(d,y,["start","center","end","left","right"]);break}},/:/,/\s/),c.region=u.get("region",null),c.vertical=u.get("vertical","");try{c.line=u.get("line","auto")}catch{}c.lineAlign=u.get("lineAlign","start"),c.snapToLines=u.get("snapToLines",!0),c.size=u.get("size",100);try{c.align=u.get("align","center")}catch{c.align=u.get("align","middle")}try{c.position=u.get("position","auto")}catch{c.position=u.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},c.align)}c.positionAlign=u.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},c.align)}function a(){t=t.replace(/^\s+/,"")}if(a(),e.startTime=r(),a(),t.substr(0,3)!=="-->")throw new tn(tn.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+i);t=t.substr(3),a(),e.endTime=r(),a(),s(t,e)}var Du=u2.createElement&&u2.createElement("textarea"),sV={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d2={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},aV={v:"title",lang:"lang"},h2={rt:"ruby"};function _5(t,e){function n(){if(!e)return null;function _(V){return e=e.substr(V.length),V}var b=e.match(/^([^<]*)(<[^>]*>?)?/);return _(b[1]?b[1]:b[2])}function i(_){return Du.innerHTML=_,_=Du.textContent,Du.textContent="",_}function r(_,b){return!h2[b.localName]||h2[b.localName]===_.localName}function s(_,b){var V=sV[_];if(!V)return null;var w=t.document.createElement(V),W=aV[_];return W&&b&&(w[W]=b.trim()),w}for(var a=t.document.createElement("div"),o=a,c,u=[];(c=n())!==null;){if(c[0]==="<"){if(c[1]==="/"){u.length&&u[u.length-1]===c.substr(2).replace(">","")&&(u.pop(),o=o.parentNode);continue}var d=gh(c.substr(1,c.length-2)),y;if(d){y=t.document.createProcessingInstruction("timestamp",d),o.appendChild(y);continue}var A=c.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!A||(y=s(A[1],A[3]),!y)||!r(o,y))continue;if(A[2]){var T=A[2].split(".");T.forEach(function(_){var b=/^bg_/.test(_),V=b?_.slice(3):_;if(d2.hasOwnProperty(V)){var w=b?"background-color":"color",W=d2[V];y.style[w]=W}}),y.className=T.join(" ")}u.push(A[1]),o.appendChild(y),o=y;continue}o.appendChild(t.document.createTextNode(i(c)))}return a}var p2=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function oV(t){for(var e=0;e<p2.length;e++){var n=p2[e];if(t>=n[0]&&t<=n[1])return!0}return!1}function lV(t){var e=[],n="",i;if(!t||!t.childNodes)return"ltr";function r(o,c){for(var u=c.childNodes.length-1;u>=0;u--)o.push(c.childNodes[u])}function s(o){if(!o||!o.length)return null;var c=o.pop(),u=c.textContent||c.innerText;if(u){var d=u.match(/^.*(\n|\r)/);return d?(o.length=0,d[0]):u}if(c.tagName==="ruby")return s(o);if(c.childNodes)return r(o,c),s(o)}for(r(e,t);n=s(e);)for(var a=0;a<n.length;a++)if(i=n.charCodeAt(a),oV(i))return"rtl";return"ltr"}function cV(t){if(typeof t.line=="number"&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,i=0,r=0;r<n.length&&n[r]!==e;r++)n[r].mode==="showing"&&i++;return++i*-1}function _c(){}_c.prototype.applyStyles=function(t,e){e=e||this.div;for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n])};_c.prototype.formatStyle=function(t,e){return t===0?0:t+e};function Ml(t,e,n){_c.call(this),this.cue=e,this.cueDiv=_5(t,e.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:e.vertical===""?"horizontal-tb":e.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=t.document.createElement("div"),i={direction:lV(this.cueDiv),writingMode:e.vertical===""?"horizontal-tb":e.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:e.align==="middle"?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(e.positionAlign){case"start":case"line-left":r=e.position;break;case"center":r=e.position-e.size/2;break;case"end":case"line-right":r=e.position-e.size;break}e.vertical===""?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(s){this.applyStyles({top:this.formatStyle(s.top,"px"),bottom:this.formatStyle(s.bottom,"px"),left:this.formatStyle(s.left,"px"),right:this.formatStyle(s.right,"px"),height:this.formatStyle(s.height,"px"),width:this.formatStyle(s.width,"px")})}}Ml.prototype=mh(_c.prototype);Ml.prototype.constructor=Ml;function Dt(t){var e,n,i,r;if(t.div){n=t.div.offsetHeight,i=t.div.offsetWidth,r=t.div.offsetTop;var s=(s=t.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();t=t.div.getBoundingClientRect(),e=s?Math.max(s[0]&&s[0].height||0,t.height/s.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||n,this.bottom=t.bottom||r+(t.height||n),this.width=t.width||i,this.lineHeight=e!==void 0?e:t.lineHeight}Dt.prototype.move=function(t,e){switch(e=e!==void 0?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e;break}};Dt.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top};Dt.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1};Dt.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right};Dt.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}};Dt.prototype.intersectPercentage=function(t){var e=Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left)),n=Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top)),i=e*n;return i/(this.height*this.width)};Dt.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}};Dt.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,i=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t;var r={left:t.left,right:t.right,top:t.top||i,height:t.height||e,bottom:t.bottom||i+(t.height||e),width:t.width||n};return r};function uV(t,e,n,i){function r(V,w){for(var W,B=new Dt(V),Z=1,L=0;L<w.length;L++){for(;V.overlapsOppositeAxis(n,w[L])||V.within(n)&&V.overlapsAny(i);)V.move(w[L]);if(V.within(n))return V;var X=V.intersectPercentage(n);Z>X&&(W=new Dt(V),Z=X),V=new Dt(B)}return W||B}var s=new Dt(e),a=e.cue,o=cV(a),c=[];if(a.snapToLines){var u;switch(a.vertical){case"":c=["+y","-y"],u="height";break;case"rl":c=["+x","-x"],u="width";break;case"lr":c=["-x","+x"],u="width";break}var d=s.lineHeight,y=d*Math.round(o),A=n[u]+d,T=c[0];Math.abs(y)>A&&(y=y<0?-1:1,y*=Math.ceil(A/d)*d),o<0&&(y+=a.vertical===""?n.height:n.width,c=c.reverse()),s.move(T,y)}else{var _=s.lineHeight/n.height*100;switch(a.lineAlign){case"center":o-=_/2;break;case"end":o-=_;break}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")});break}c=["+y","-x","+x","-y"],s=new Dt(e)}var b=r(s,c);e.move(b.toCSSCompatValues(n))}function Xs(){}Xs.StringDecoder=function(){return{decode:function(t){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}};Xs.convertCueToDOMTree=function(t,e){return!t||!e?null:_5(t,e)};var dV=.05,hV="sans-serif",pV="1.5%";Xs.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=t.document.createElement("div");i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=pV,n.appendChild(i);function r(d){for(var y=0;y<d.length;y++)if(d[y].hasBeenReset||!d[y].displayState)return!0;return!1}if(!r(e)){for(var s=0;s<e.length;s++)i.appendChild(e[s].displayState);return}var a=[],o=Dt.getSimpleBoxPosition(i),c=Math.round(o.height*dV*100)/100,u={font:c+"px "+hV};(function(){for(var d,y,A=0;A<e.length;A++)y=e[A],d=new Ml(t,y,u),i.appendChild(d.div),uV(t,d,o,a),y.displayState=d.div,a.push(Dt.getSimpleBoxPosition(d))})()};Xs.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]};Xs.Parser.prototype={reportOrThrowError:function(t){if(t instanceof tn)this.onparsingerror&&this.onparsingerror(t);else throw t},parse:function(t){var e=this;t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));function n(){for(var d=e.buffer,y=0;y<d.length&&d[y]!=="\r"&&d[y]!==`
76
- `;)++y;var A=d.substr(0,y);return d[y]==="\r"&&++y,d[y]===`
77
- `&&++y,e.buffer=d.substr(y),A}function i(d){var y=new Fa;if(Va(d,function(T,_){switch(T){case"id":y.set(T,_);break;case"width":y.percent(T,_);break;case"lines":y.integer(T,_);break;case"regionanchor":case"viewportanchor":var b=_.split(",");if(b.length!==2)break;var V=new Fa;if(V.percent("x",b[0]),V.percent("y",b[1]),!V.has("x")||!V.has("y"))break;y.set(T+"X",V.get("x")),y.set(T+"Y",V.get("y"));break;case"scroll":y.alt(T,_,["up"]);break}},/=/,/\s/),y.has("id")){var A=new(e.vttjs.VTTRegion||e.window.VTTRegion);A.width=y.get("width",100),A.lines=y.get("lines",3),A.regionAnchorX=y.get("regionanchorX",0),A.regionAnchorY=y.get("regionanchorY",100),A.viewportAnchorX=y.get("viewportanchorX",0),A.viewportAnchorY=y.get("viewportanchorY",100),A.scroll=y.get("scroll",""),e.onregion&&e.onregion(A),e.regionList.push({id:y.get("id"),region:A})}}function r(d){var y=new Fa;Va(d,function(A,T){switch(A){case"MPEGT":y.integer(A+"S",T);break;case"LOCA":y.set(A+"L",gh(T));break}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:y.get("MPEGTS"),LOCAL:y.get("LOCAL")})}function s(d){d.match(/X-TIMESTAMP-MAP/)?Va(d,function(y,A){switch(y){case"X-TIMESTAMP-MAP":r(A);break}},/=/):Va(d,function(y,A){switch(y){case"Region":i(A);break}},/:/)}try{var a;if(e.state==="INITIAL"){if(!/\r\n|\n/.test(e.buffer))return this;a=n();var o=a.match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new tn(tn.Errors.BadSignature);e.state="HEADER"}for(var c=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(c?c=!1:a=n(),e.state){case"HEADER":/:/.test(a)?s(a):a||(e.state="ID");continue;case"NOTE":a||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){e.state="NOTE";break}if(!a)continue;e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,"");try{e.cue.align="center"}catch{e.cue.align="middle"}if(e.state="CUE",a.indexOf("-->")===-1){e.cue.id=a;continue}case"CUE":try{rV(a,e.cue,e.regionList)}catch(d){e.reportOrThrowError(d),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var u=a.indexOf("-->")!==-1;if(!a||u&&(c=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+=`
78
- `),e.cue.text+=a.replace(/\u2028/g,`
79
- `).replace(/u2029/g,`
80
- `);continue;case"BADCUE":a||(e.state="ID");continue}}}catch(d){e.reportOrThrowError(d),e.state==="CUETEXT"&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state=e.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||t.state==="HEADER")&&(t.buffer+=`
81
-
82
- `,t.parse()),t.state==="INITIAL")throw new tn(tn.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}};var mV=Xs,gV="auto",fV={"":1,lr:1,rl:1},yV={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function bV(t){if(typeof t!="string")return!1;var e=fV[t.toLowerCase()];return e?t.toLowerCase():!1}function Ou(t){if(typeof t!="string")return!1;var e=yV[t.toLowerCase()];return e?t.toLowerCase():!1}function R5(t,e,n){this.hasBeenReset=!1;var i="",r=!1,s=t,a=e,o=n,c=null,u="",d=!0,y="auto",A="start",T="auto",_="auto",b=100,V="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return i},set:function(w){i=""+w}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(w){r=!!w}},startTime:{enumerable:!0,get:function(){return s},set:function(w){if(typeof w!="number")throw new TypeError("Start time must be set to a number.");s=w,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return a},set:function(w){if(typeof w!="number")throw new TypeError("End time must be set to a number.");a=w,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(w){o=""+w,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(w){c=w,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(w){var W=bV(w);if(W===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=W,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(w){d=!!w,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return y},set:function(w){if(typeof w!="number"&&w!==gV)throw new SyntaxError("Line: an invalid number or illegal string was specified.");y=w,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return A},set:function(w){var W=Ou(w);W?(A=W,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return T},set:function(w){if(w<0||w>100)throw new Error("Position must be between 0 and 100.");T=w,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return _},set:function(w){var W=Ou(w);W?(_=W,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return b},set:function(w){if(w<0||w>100)throw new Error("Size must be between 0 and 100.");b=w,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return V},set:function(w){var W=Ou(w);if(!W)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");V=W,this.hasBeenReset=!0}}}),this.displayState=void 0}R5.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var EV=R5,TV={"":!0,up:!0};function vV(t){if(typeof t!="string")return!1;var e=TV[t.toLowerCase()];return e?t.toLowerCase():!1}function Ta(t){return typeof t=="number"&&t>=0&&t<=100}function CV(){var t=100,e=3,n=0,i=100,r=0,s=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(o){if(!Ta(o))throw new Error("Width must be between 0 and 100.");t=o}},lines:{enumerable:!0,get:function(){return e},set:function(o){if(typeof o!="number")throw new TypeError("Lines must be set to a number.");e=o}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(o){if(!Ta(o))throw new Error("RegionAnchorX must be between 0 and 100.");i=o}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(o){if(!Ta(o))throw new Error("RegionAnchorY must be between 0 and 100.");n=o}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(o){if(!Ta(o))throw new Error("ViewportAnchorY must be between 0 and 100.");s=o}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(o){if(!Ta(o))throw new Error("ViewportAnchorX must be between 0 and 100.");r=o}},scroll:{enumerable:!0,get:function(){return a},set:function(o){var c=vV(o);c===!1?console.warn("Scroll: an invalid or illegal string was specified."):a=c}}})}var AV=CV,Ri=Sc,Lr=S5.exports={WebVTT:mV,VTTCue:EV,VTTRegion:AV};Ri.vttjs=Lr;Ri.WebVTT=Lr.WebVTT;var SV=Lr.VTTCue,_V=Lr.VTTRegion,RV=Ri.VTTCue,IV=Ri.VTTRegion;Lr.shim=function(){Ri.VTTCue=SV,Ri.VTTRegion=_V};Lr.restore=function(){Ri.VTTCue=RV,Ri.VTTRegion=IV};Ri.VTTCue||Lr.shim();var VV=S5.exports;const m2=mo(VV);function it(){return it=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},it.apply(null,arguments)}var g2="https://example.com",Rc=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=x.location&&x.location.href||"");var n=/^\/\//.test(t),i=!x.location&&!/\/\//i.test(t);t=new x.URL(t,x.location||g2);var r=new URL(e,t);return i?r.href.slice(g2.length):n?r.href.slice(r.protocol.length):r.href},fh=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(n,i){this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push(i)},e.off=function(n,i){if(!this.listeners[n])return!1;var r=this.listeners[n].indexOf(i);return this.listeners[n]=this.listeners[n].slice(0),this.listeners[n].splice(r,1),r>-1},e.trigger=function(n){var i=this.listeners[n];if(i)if(arguments.length===2)for(var r=i.length,s=0;s<r;++s)i[s].call(this,arguments[1]);else for(var a=Array.prototype.slice.call(arguments,1),o=i.length,c=0;c<o;++c)i[c].apply(this,a)},e.dispose=function(){this.listeners={}},e.pipe=function(n){this.on("data",function(i){n.push(i)})},t}(),I5={},Ic={};Ic.byteLength=UV;Ic.toByteArray=xV;Ic.fromByteArray=BV;var Yn=[],dn=[],wV=typeof Uint8Array<"u"?Uint8Array:Array,Xu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var $r=0,NV=Xu.length;$r<NV;++$r)Yn[$r]=Xu[$r],dn[Xu.charCodeAt($r)]=$r;dn[45]=62;dn[95]=63;function V5(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var i=n===e?0:4-n%4;return[n,i]}function UV(t){var e=V5(t),n=e[0],i=e[1];return(n+i)*3/4-i}function kV(t,e,n){return(e+n)*3/4-n}function xV(t){var e,n=V5(t),i=n[0],r=n[1],s=new wV(kV(t,i,r)),a=0,o=r>0?i-4:i,c;for(c=0;c<o;c+=4)e=dn[t.charCodeAt(c)]<<18|dn[t.charCodeAt(c+1)]<<12|dn[t.charCodeAt(c+2)]<<6|dn[t.charCodeAt(c+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=e&255;return r===2&&(e=dn[t.charCodeAt(c)]<<2|dn[t.charCodeAt(c+1)]>>4,s[a++]=e&255),r===1&&(e=dn[t.charCodeAt(c)]<<10|dn[t.charCodeAt(c+1)]<<4|dn[t.charCodeAt(c+2)]>>2,s[a++]=e>>8&255,s[a++]=e&255),s}function LV(t){return Yn[t>>18&63]+Yn[t>>12&63]+Yn[t>>6&63]+Yn[t&63]}function FV(t,e,n){for(var i,r=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),r.push(LV(i));return r.join("")}function BV(t){for(var e,n=t.length,i=n%3,r=[],s=16383,a=0,o=n-i;a<o;a+=s)r.push(FV(t,a,a+s>o?o:a+s));return i===1?(e=t[n-1],r.push(Yn[e>>2]+Yn[e<<4&63]+"==")):i===2&&(e=(t[n-2]<<8)+t[n-1],r.push(Yn[e>>10]+Yn[e>>4&63]+Yn[e<<2&63]+"=")),r.join("")}var yh={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */yh.read=function(t,e,n,i,r){var s,a,o=r*8-i-1,c=(1<<o)-1,u=c>>1,d=-7,y=n?r-1:0,A=n?-1:1,T=t[e+y];for(y+=A,s=T&(1<<-d)-1,T>>=-d,d+=o;d>0;s=s*256+t[e+y],y+=A,d-=8);for(a=s&(1<<-d)-1,s>>=-d,d+=i;d>0;a=a*256+t[e+y],y+=A,d-=8);if(s===0)s=1-u;else{if(s===c)return a?NaN:(T?-1:1)*(1/0);a=a+Math.pow(2,i),s=s-u}return(T?-1:1)*a*Math.pow(2,s-i)};yh.write=function(t,e,n,i,r,s){var a,o,c,u=s*8-r-1,d=(1<<u)-1,y=d>>1,A=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=i?0:s-1,_=i?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=d):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+y>=1?e+=A/c:e+=A*Math.pow(2,1-y),e*c>=2&&(a++,c/=2),a+y>=d?(o=0,a=d):a+y>=1?(o=(e*c-1)*Math.pow(2,r),a=a+y):(o=e*Math.pow(2,y-1)*Math.pow(2,r),a=0));r>=8;t[n+T]=o&255,T+=_,o/=256,r-=8);for(a=a<<r|o,u+=r;u>0;t[n+T]=a&255,T+=_,a/=256,u-=8);t[n+T-_]|=b*128};/*!
83
- * The buffer module from node.js, for the browser.
84
- *
85
- * @author Feross Aboukhadijeh <https://feross.org>
86
- * @license MIT
87
- */(function(t){const e=Ic,n=yh,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=d,t.SlowBuffer=L,t.INSPECT_MAX_BYTES=50;const r=2147483647;t.kMaxLength=r;const{Uint8Array:s,ArrayBuffer:a,SharedArrayBuffer:o}=globalThis;d.TYPED_ARRAY_SUPPORT=c(),!d.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const g=new s(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,s.prototype),Object.setPrototypeOf(g,v),g.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function u(g){if(g>r)throw new RangeError('The value "'+g+'" is invalid for option "size"');const v=new s(g);return Object.setPrototypeOf(v,d.prototype),v}function d(g,v,S){if(typeof g=="number"){if(typeof v=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(g)}return y(g,v,S)}d.poolSize=8192;function y(g,v,S){if(typeof g=="string")return b(g,v);if(a.isView(g))return w(g);if(g==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g);if(Rt(g,a)||g&&Rt(g.buffer,a)||typeof o<"u"&&(Rt(g,o)||g&&Rt(g.buffer,o)))return W(g,v,S);if(typeof g=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=g.valueOf&&g.valueOf();if(D!=null&&D!==g)return d.from(D,v,S);const G=B(g);if(G)return G;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof g[Symbol.toPrimitive]=="function")return d.from(g[Symbol.toPrimitive]("string"),v,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g)}d.from=function(g,v,S){return y(g,v,S)},Object.setPrototypeOf(d.prototype,s.prototype),Object.setPrototypeOf(d,s);function A(g){if(typeof g!="number")throw new TypeError('"size" argument must be of type number');if(g<0)throw new RangeError('The value "'+g+'" is invalid for option "size"')}function T(g,v,S){return A(g),g<=0?u(g):v!==void 0?typeof S=="string"?u(g).fill(v,S):u(g).fill(v):u(g)}d.alloc=function(g,v,S){return T(g,v,S)};function _(g){return A(g),u(g<0?0:Z(g)|0)}d.allocUnsafe=function(g){return _(g)},d.allocUnsafeSlow=function(g){return _(g)};function b(g,v){if((typeof v!="string"||v==="")&&(v="utf8"),!d.isEncoding(v))throw new TypeError("Unknown encoding: "+v);const S=X(g,v)|0;let D=u(S);const G=D.write(g,v);return G!==S&&(D=D.slice(0,G)),D}function V(g){const v=g.length<0?0:Z(g.length)|0,S=u(v);for(let D=0;D<v;D+=1)S[D]=g[D]&255;return S}function w(g){if(Rt(g,s)){const v=new s(g);return W(v.buffer,v.byteOffset,v.byteLength)}return V(g)}function W(g,v,S){if(v<0||g.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(g.byteLength<v+(S||0))throw new RangeError('"length" is outside of buffer bounds');let D;return v===void 0&&S===void 0?D=new s(g):S===void 0?D=new s(g,v):D=new s(g,v,S),Object.setPrototypeOf(D,d.prototype),D}function B(g){if(d.isBuffer(g)){const v=Z(g.length)|0,S=u(v);return S.length===0||g.copy(S,0,0,v),S}if(g.length!==void 0)return typeof g.length!="number"||Re(g.length)?u(0):V(g);if(g.type==="Buffer"&&Array.isArray(g.data))return V(g.data)}function Z(g){if(g>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return g|0}function L(g){return+g!=g&&(g=0),d.alloc(+g)}d.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==d.prototype},d.compare=function(g,v){if(Rt(g,s)&&(g=d.from(g,g.offset,g.byteLength)),Rt(v,s)&&(v=d.from(v,v.offset,v.byteLength)),!d.isBuffer(g)||!d.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let S=g.length,D=v.length;for(let G=0,Q=Math.min(S,D);G<Q;++G)if(g[G]!==v[G]){S=g[G],D=v[G];break}return S<D?-1:D<S?1:0},d.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(g,v){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return d.alloc(0);let S;if(v===void 0)for(v=0,S=0;S<g.length;++S)v+=g[S].length;const D=d.allocUnsafe(v);let G=0;for(S=0;S<g.length;++S){let Q=g[S];if(Rt(Q,s))G+Q.length>D.length?(d.isBuffer(Q)||(Q=d.from(Q)),Q.copy(D,G)):s.prototype.set.call(D,Q,G);else if(d.isBuffer(Q))Q.copy(D,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=Q.length}return D};function X(g,v){if(d.isBuffer(g))return g.length;if(a.isView(g)||Rt(g,a))return g.byteLength;if(typeof g!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof g);const S=g.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&S===0)return 0;let G=!1;for(;;)switch(v){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return ve(g).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Zr(g).length;default:if(G)return D?-1:ve(g).length;v=(""+v).toLowerCase(),G=!0}}d.byteLength=X;function J(g,v,S){let D=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,v>>>=0,S<=v))return"";for(g||(g="utf8");;)switch(g){case"hex":return le(this,v,S);case"utf8":case"utf-8":return be(this,v,S);case"ascii":return ct(this,v,S);case"latin1":case"binary":return Ke(this,v,S);case"base64":return he(this,v,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Se(this,v,S);default:if(D)throw new TypeError("Unknown encoding: "+g);g=(g+"").toLowerCase(),D=!0}}d.prototype._isBuffer=!0;function j(g,v,S){const D=g[v];g[v]=g[S],g[S]=D}d.prototype.swap16=function(){const g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let v=0;v<g;v+=2)j(this,v,v+1);return this},d.prototype.swap32=function(){const g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let v=0;v<g;v+=4)j(this,v,v+3),j(this,v+1,v+2);return this},d.prototype.swap64=function(){const g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let v=0;v<g;v+=8)j(this,v,v+7),j(this,v+1,v+6),j(this,v+2,v+5),j(this,v+3,v+4);return this},d.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?be(this,0,g):J.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(g){if(!d.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:d.compare(this,g)===0},d.prototype.inspect=function(){let g="";const v=t.INSPECT_MAX_BYTES;return g=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(g+=" ... "),"<Buffer "+g+">"},i&&(d.prototype[i]=d.prototype.inspect),d.prototype.compare=function(g,v,S,D,G){if(Rt(g,s)&&(g=d.from(g,g.offset,g.byteLength)),!d.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),S===void 0&&(S=g?g.length:0),D===void 0&&(D=0),G===void 0&&(G=this.length),v<0||S>g.length||D<0||G>this.length)throw new RangeError("out of range index");if(D>=G&&v>=S)return 0;if(D>=G)return-1;if(v>=S)return 1;if(v>>>=0,S>>>=0,D>>>=0,G>>>=0,this===g)return 0;let Q=G-D,te=S-v;const Le=Math.min(Q,te),dt=this.slice(D,G),We=g.slice(v,S);for(let ke=0;ke<Le;++ke)if(dt[ke]!==We[ke]){Q=dt[ke],te=We[ke];break}return Q<te?-1:te<Q?1:0};function re(g,v,S,D,G){if(g.length===0)return-1;if(typeof S=="string"?(D=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,Re(S)&&(S=G?0:g.length-1),S<0&&(S=g.length+S),S>=g.length){if(G)return-1;S=g.length-1}else if(S<0)if(G)S=0;else return-1;if(typeof v=="string"&&(v=d.from(v,D)),d.isBuffer(v))return v.length===0?-1:de(g,v,S,D,G);if(typeof v=="number")return v=v&255,typeof s.prototype.indexOf=="function"?G?s.prototype.indexOf.call(g,v,S):s.prototype.lastIndexOf.call(g,v,S):de(g,[v],S,D,G);throw new TypeError("val must be string, number or Buffer")}function de(g,v,S,D,G){let Q=1,te=g.length,Le=v.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(g.length<2||v.length<2)return-1;Q=2,te/=2,Le/=2,S/=2}function dt(ke,je){return Q===1?ke[je]:ke.readUInt16BE(je*Q)}let We;if(G){let ke=-1;for(We=S;We<te;We++)if(dt(g,We)===dt(v,ke===-1?0:We-ke)){if(ke===-1&&(ke=We),We-ke+1===Le)return ke*Q}else ke!==-1&&(We-=We-ke),ke=-1}else for(S+Le>te&&(S=te-Le),We=S;We>=0;We--){let ke=!0;for(let je=0;je<Le;je++)if(dt(g,We+je)!==dt(v,je)){ke=!1;break}if(ke)return We}return-1}d.prototype.includes=function(g,v,S){return this.indexOf(g,v,S)!==-1},d.prototype.indexOf=function(g,v,S){return re(this,g,v,S,!0)},d.prototype.lastIndexOf=function(g,v,S){return re(this,g,v,S,!1)};function oe(g,v,S,D){S=Number(S)||0;const G=g.length-S;D?(D=Number(D),D>G&&(D=G)):D=G;const Q=v.length;D>Q/2&&(D=Q/2);let te;for(te=0;te<D;++te){const Le=parseInt(v.substr(te*2,2),16);if(Re(Le))return te;g[S+te]=Le}return te}function ce(g,v,S,D){return Ln(ve(v,g.length-S),g,S,D)}function se(g,v,S,D){return Ln(Qs(v),g,S,D)}function me(g,v,S,D){return Ln(Zr(v),g,S,D)}function we(g,v,S,D){return Ln(sr(v,g.length-S),g,S,D)}d.prototype.write=function(g,v,S,D){if(v===void 0)D="utf8",S=this.length,v=0;else if(S===void 0&&typeof v=="string")D=v,S=this.length,v=0;else if(isFinite(v))v=v>>>0,isFinite(S)?(S=S>>>0,D===void 0&&(D="utf8")):(D=S,S=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-v;if((S===void 0||S>G)&&(S=G),g.length>0&&(S<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let Q=!1;for(;;)switch(D){case"hex":return oe(this,g,v,S);case"utf8":case"utf-8":return ce(this,g,v,S);case"ascii":case"latin1":case"binary":return se(this,g,v,S);case"base64":return me(this,g,v,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return we(this,g,v,S);default:if(Q)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),Q=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function he(g,v,S){return v===0&&S===g.length?e.fromByteArray(g):e.fromByteArray(g.slice(v,S))}function be(g,v,S){S=Math.min(g.length,S);const D=[];let G=v;for(;G<S;){const Q=g[G];let te=null,Le=Q>239?4:Q>223?3:Q>191?2:1;if(G+Le<=S){let dt,We,ke,je;switch(Le){case 1:Q<128&&(te=Q);break;case 2:dt=g[G+1],(dt&192)===128&&(je=(Q&31)<<6|dt&63,je>127&&(te=je));break;case 3:dt=g[G+1],We=g[G+2],(dt&192)===128&&(We&192)===128&&(je=(Q&15)<<12|(dt&63)<<6|We&63,je>2047&&(je<55296||je>57343)&&(te=je));break;case 4:dt=g[G+1],We=g[G+2],ke=g[G+3],(dt&192)===128&&(We&192)===128&&(ke&192)===128&&(je=(Q&15)<<18|(dt&63)<<12|(We&63)<<6|ke&63,je>65535&&je<1114112&&(te=je))}}te===null?(te=65533,Le=1):te>65535&&(te-=65536,D.push(te>>>10&1023|55296),te=56320|te&1023),D.push(te),G+=Le}return at(D)}const Ne=4096;function at(g){const v=g.length;if(v<=Ne)return String.fromCharCode.apply(String,g);let S="",D=0;for(;D<v;)S+=String.fromCharCode.apply(String,g.slice(D,D+=Ne));return S}function ct(g,v,S){let D="";S=Math.min(g.length,S);for(let G=v;G<S;++G)D+=String.fromCharCode(g[G]&127);return D}function Ke(g,v,S){let D="";S=Math.min(g.length,S);for(let G=v;G<S;++G)D+=String.fromCharCode(g[G]);return D}function le(g,v,S){const D=g.length;(!v||v<0)&&(v=0),(!S||S<0||S>D)&&(S=D);let G="";for(let Q=v;Q<S;++Q)G+=ot[g[Q]];return G}function Se(g,v,S){const D=g.slice(v,S);let G="";for(let Q=0;Q<D.length-1;Q+=2)G+=String.fromCharCode(D[Q]+D[Q+1]*256);return G}d.prototype.slice=function(g,v){const S=this.length;g=~~g,v=v===void 0?S:~~v,g<0?(g+=S,g<0&&(g=0)):g>S&&(g=S),v<0?(v+=S,v<0&&(v=0)):v>S&&(v=S),v<g&&(v=g);const D=this.subarray(g,v);return Object.setPrototypeOf(D,d.prototype),D};function Ae(g,v,S){if(g%1!==0||g<0)throw new RangeError("offset is not uint");if(g+v>S)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(g,v,S){g=g>>>0,v=v>>>0,S||Ae(g,v,this.length);let D=this[g],G=1,Q=0;for(;++Q<v&&(G*=256);)D+=this[g+Q]*G;return D},d.prototype.readUintBE=d.prototype.readUIntBE=function(g,v,S){g=g>>>0,v=v>>>0,S||Ae(g,v,this.length);let D=this[g+--v],G=1;for(;v>0&&(G*=256);)D+=this[g+--v]*G;return D},d.prototype.readUint8=d.prototype.readUInt8=function(g,v){return g=g>>>0,v||Ae(g,1,this.length),this[g]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||Ae(g,2,this.length),this[g]|this[g+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||Ae(g,2,this.length),this[g]<<8|this[g+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||Ae(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||Ae(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},d.prototype.readBigUInt64LE=ut(function(g){g=g>>>0,_t(g,"offset");const v=this[g],S=this[g+7];(v===void 0||S===void 0)&&Tn(g,this.length-8);const D=v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,G=this[++g]+this[++g]*2**8+this[++g]*2**16+S*2**24;return BigInt(D)+(BigInt(G)<<BigInt(32))}),d.prototype.readBigUInt64BE=ut(function(g){g=g>>>0,_t(g,"offset");const v=this[g],S=this[g+7];(v===void 0||S===void 0)&&Tn(g,this.length-8);const D=v*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],G=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+S;return(BigInt(D)<<BigInt(32))+BigInt(G)}),d.prototype.readIntLE=function(g,v,S){g=g>>>0,v=v>>>0,S||Ae(g,v,this.length);let D=this[g],G=1,Q=0;for(;++Q<v&&(G*=256);)D+=this[g+Q]*G;return G*=128,D>=G&&(D-=Math.pow(2,8*v)),D},d.prototype.readIntBE=function(g,v,S){g=g>>>0,v=v>>>0,S||Ae(g,v,this.length);let D=v,G=1,Q=this[g+--D];for(;D>0&&(G*=256);)Q+=this[g+--D]*G;return G*=128,Q>=G&&(Q-=Math.pow(2,8*v)),Q},d.prototype.readInt8=function(g,v){return g=g>>>0,v||Ae(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},d.prototype.readInt16LE=function(g,v){g=g>>>0,v||Ae(g,2,this.length);const S=this[g]|this[g+1]<<8;return S&32768?S|4294901760:S},d.prototype.readInt16BE=function(g,v){g=g>>>0,v||Ae(g,2,this.length);const S=this[g+1]|this[g]<<8;return S&32768?S|4294901760:S},d.prototype.readInt32LE=function(g,v){return g=g>>>0,v||Ae(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},d.prototype.readInt32BE=function(g,v){return g=g>>>0,v||Ae(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},d.prototype.readBigInt64LE=ut(function(g){g=g>>>0,_t(g,"offset");const v=this[g],S=this[g+7];(v===void 0||S===void 0)&&Tn(g,this.length-8);const D=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(S<<24);return(BigInt(D)<<BigInt(32))+BigInt(v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),d.prototype.readBigInt64BE=ut(function(g){g=g>>>0,_t(g,"offset");const v=this[g],S=this[g+7];(v===void 0||S===void 0)&&Tn(g,this.length-8);const D=(v<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(D)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+S)}),d.prototype.readFloatLE=function(g,v){return g=g>>>0,v||Ae(g,4,this.length),n.read(this,g,!0,23,4)},d.prototype.readFloatBE=function(g,v){return g=g>>>0,v||Ae(g,4,this.length),n.read(this,g,!1,23,4)},d.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||Ae(g,8,this.length),n.read(this,g,!0,52,8)},d.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||Ae(g,8,this.length),n.read(this,g,!1,52,8)};function Ue(g,v,S,D,G,Q){if(!d.isBuffer(g))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>G||v<Q)throw new RangeError('"value" argument is out of bounds');if(S+D>g.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(g,v,S,D){if(g=+g,v=v>>>0,S=S>>>0,!D){const te=Math.pow(2,8*S)-1;Ue(this,g,v,S,te,0)}let G=1,Q=0;for(this[v]=g&255;++Q<S&&(G*=256);)this[v+Q]=g/G&255;return v+S},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(g,v,S,D){if(g=+g,v=v>>>0,S=S>>>0,!D){const te=Math.pow(2,8*S)-1;Ue(this,g,v,S,te,0)}let G=S-1,Q=1;for(this[v+G]=g&255;--G>=0&&(Q*=256);)this[v+G]=g/Q&255;return v+S},d.prototype.writeUint8=d.prototype.writeUInt8=function(g,v,S){return g=+g,v=v>>>0,S||Ue(this,g,v,1,255,0),this[v]=g&255,v+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(g,v,S){return g=+g,v=v>>>0,S||Ue(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(g,v,S){return g=+g,v=v>>>0,S||Ue(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(g,v,S){return g=+g,v=v>>>0,S||Ue(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(g,v,S){return g=+g,v=v>>>0,S||Ue(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function En(g,v,S,D,G){ir(v,D,G,g,S,7);let Q=Number(v&BigInt(4294967295));g[S++]=Q,Q=Q>>8,g[S++]=Q,Q=Q>>8,g[S++]=Q,Q=Q>>8,g[S++]=Q;let te=Number(v>>BigInt(32)&BigInt(4294967295));return g[S++]=te,te=te>>8,g[S++]=te,te=te>>8,g[S++]=te,te=te>>8,g[S++]=te,S}function er(g,v,S,D,G){ir(v,D,G,g,S,7);let Q=Number(v&BigInt(4294967295));g[S+7]=Q,Q=Q>>8,g[S+6]=Q,Q=Q>>8,g[S+5]=Q,Q=Q>>8,g[S+4]=Q;let te=Number(v>>BigInt(32)&BigInt(4294967295));return g[S+3]=te,te=te>>8,g[S+2]=te,te=te>>8,g[S+1]=te,te=te>>8,g[S]=te,S+8}d.prototype.writeBigUInt64LE=ut(function(g,v=0){return En(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=ut(function(g,v=0){return er(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(g,v,S,D){if(g=+g,v=v>>>0,!D){const Le=Math.pow(2,8*S-1);Ue(this,g,v,S,Le-1,-Le)}let G=0,Q=1,te=0;for(this[v]=g&255;++G<S&&(Q*=256);)g<0&&te===0&&this[v+G-1]!==0&&(te=1),this[v+G]=(g/Q>>0)-te&255;return v+S},d.prototype.writeIntBE=function(g,v,S,D){if(g=+g,v=v>>>0,!D){const Le=Math.pow(2,8*S-1);Ue(this,g,v,S,Le-1,-Le)}let G=S-1,Q=1,te=0;for(this[v+G]=g&255;--G>=0&&(Q*=256);)g<0&&te===0&&this[v+G+1]!==0&&(te=1),this[v+G]=(g/Q>>0)-te&255;return v+S},d.prototype.writeInt8=function(g,v,S){return g=+g,v=v>>>0,S||Ue(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},d.prototype.writeInt16LE=function(g,v,S){return g=+g,v=v>>>0,S||Ue(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},d.prototype.writeInt16BE=function(g,v,S){return g=+g,v=v>>>0,S||Ue(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},d.prototype.writeInt32LE=function(g,v,S){return g=+g,v=v>>>0,S||Ue(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},d.prototype.writeInt32BE=function(g,v,S){return g=+g,v=v>>>0,S||Ue(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},d.prototype.writeBigInt64LE=ut(function(g,v=0){return En(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=ut(function(g,v=0){return er(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function tr(g,v,S,D,G,Q){if(S+D>g.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function Br(g,v,S,D,G){return v=+v,S=S>>>0,G||tr(g,v,S,4),n.write(g,v,S,D,23,4),S+4}d.prototype.writeFloatLE=function(g,v,S){return Br(this,g,v,!0,S)},d.prototype.writeFloatBE=function(g,v,S){return Br(this,g,v,!1,S)};function Wr(g,v,S,D,G){return v=+v,S=S>>>0,G||tr(g,v,S,8),n.write(g,v,S,D,52,8),S+8}d.prototype.writeDoubleLE=function(g,v,S){return Wr(this,g,v,!0,S)},d.prototype.writeDoubleBE=function(g,v,S){return Wr(this,g,v,!1,S)},d.prototype.copy=function(g,v,S,D){if(!d.isBuffer(g))throw new TypeError("argument should be a Buffer");if(S||(S=0),!D&&D!==0&&(D=this.length),v>=g.length&&(v=g.length),v||(v=0),D>0&&D<S&&(D=S),D===S||g.length===0||this.length===0)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(S<0||S>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),g.length-v<D-S&&(D=g.length-v+S);const G=D-S;return this===g&&typeof s.prototype.copyWithin=="function"?this.copyWithin(v,S,D):s.prototype.set.call(g,this.subarray(S,D),v),G},d.prototype.fill=function(g,v,S,D){if(typeof g=="string"){if(typeof v=="string"?(D=v,v=0,S=this.length):typeof S=="string"&&(D=S,S=this.length),D!==void 0&&typeof D!="string")throw new TypeError("encoding must be a string");if(typeof D=="string"&&!d.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(g.length===1){const Q=g.charCodeAt(0);(D==="utf8"&&Q<128||D==="latin1")&&(g=Q)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(v<0||this.length<v||this.length<S)throw new RangeError("Out of range index");if(S<=v)return this;v=v>>>0,S=S===void 0?this.length:S>>>0,g||(g=0);let G;if(typeof g=="number")for(G=v;G<S;++G)this[G]=g;else{const Q=d.isBuffer(g)?g:d.from(g,D),te=Q.length;if(te===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(G=0;G<S-v;++G)this[G+v]=Q[G%te]}return this};const ye={};function $e(g,v,S){ye[g]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:v.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${g}]`,this.stack,delete this.name}get code(){return g}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${g}]: ${this.message}`}}}$e("ERR_BUFFER_OUT_OF_BOUNDS",function(g){return g?`${g} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),$e("ERR_INVALID_ARG_TYPE",function(g,v){return`The "${g}" argument must be of type number. Received type ${typeof v}`},TypeError),$e("ERR_OUT_OF_RANGE",function(g,v,S){let D=`The value of "${g}" is out of range.`,G=S;return Number.isInteger(S)&&Math.abs(S)>2**32?G=ze(String(S)):typeof S=="bigint"&&(G=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(G=ze(G)),G+="n"),D+=` It must be ${v}. Received ${G}`,D},RangeError);function ze(g){let v="",S=g.length;const D=g[0]==="-"?1:0;for(;S>=D+4;S-=3)v=`_${g.slice(S-3,S)}${v}`;return`${g.slice(0,S)}${v}`}function nr(g,v,S){_t(v,"offset"),(g[v]===void 0||g[v+S]===void 0)&&Tn(v,g.length-(S+1))}function ir(g,v,S,D,G,Q){if(g>S||g<v){const te=typeof v=="bigint"?"n":"";let Le;throw v===0||v===BigInt(0)?Le=`>= 0${te} and < 2${te} ** ${(Q+1)*8}${te}`:Le=`>= -(2${te} ** ${(Q+1)*8-1}${te}) and < 2 ** ${(Q+1)*8-1}${te}`,new ye.ERR_OUT_OF_RANGE("value",Le,g)}nr(D,G,Q)}function _t(g,v){if(typeof g!="number")throw new ye.ERR_INVALID_ARG_TYPE(v,"number",g)}function Tn(g,v,S){throw Math.floor(g)!==g?(_t(g,S),new ye.ERR_OUT_OF_RANGE("offset","an integer",g)):v<0?new ye.ERR_BUFFER_OUT_OF_BOUNDS:new ye.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${v}`,g)}const Xt=/[^+/0-9A-Za-z-_]/g;function rr(g){if(g=g.split("=")[0],g=g.trim().replace(Xt,""),g.length<2)return"";for(;g.length%4!==0;)g=g+"=";return g}function ve(g,v){v=v||1/0;let S;const D=g.length;let G=null;const Q=[];for(let te=0;te<D;++te){if(S=g.charCodeAt(te),S>55295&&S<57344){if(!G){if(S>56319){(v-=3)>-1&&Q.push(239,191,189);continue}else if(te+1===D){(v-=3)>-1&&Q.push(239,191,189);continue}G=S;continue}if(S<56320){(v-=3)>-1&&Q.push(239,191,189),G=S;continue}S=(G-55296<<10|S-56320)+65536}else G&&(v-=3)>-1&&Q.push(239,191,189);if(G=null,S<128){if((v-=1)<0)break;Q.push(S)}else if(S<2048){if((v-=2)<0)break;Q.push(S>>6|192,S&63|128)}else if(S<65536){if((v-=3)<0)break;Q.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((v-=4)<0)break;Q.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return Q}function Qs(g){const v=[];for(let S=0;S<g.length;++S)v.push(g.charCodeAt(S)&255);return v}function sr(g,v){let S,D,G;const Q=[];for(let te=0;te<g.length&&!((v-=2)<0);++te)S=g.charCodeAt(te),D=S>>8,G=S%256,Q.push(G),Q.push(D);return Q}function Zr(g){return e.toByteArray(rr(g))}function Ln(g,v,S,D){let G;for(G=0;G<D&&!(G+S>=v.length||G>=g.length);++G)v[G+S]=g[G];return G}function Rt(g,v){return g instanceof v||g!=null&&g.constructor!=null&&g.constructor.name!=null&&g.constructor.name===v.name}function Re(g){return g!==g}const ot=function(){const g="0123456789abcdef",v=new Array(256);for(let S=0;S<16;++S){const D=S*16;for(let G=0;G<16;++G)v[D+G]=g[S]+g[G]}return v}();function ut(g){return typeof BigInt>"u"?vo:g}function vo(){throw new Error("BigInt not supported")}})(I5);const WV=I5.Buffer;var ZV=function(t){return x.atob?x.atob(t):WV.from(t,"base64").toString("binary")};function w5(t){for(var e=ZV(t),n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n}/*! @name m3u8-parser @version 7.2.0 @license Apache-2.0 */class DV extends fh{constructor(){super(),this.buffer=""}push(e){let n;for(this.buffer+=e,n=this.buffer.indexOf(`
88
- `);n>-1;n=this.buffer.indexOf(`
89
- `))this.trigger("data",this.buffer.substring(0,n)),this.buffer=this.buffer.substring(n+1)}}const OV=" ",Gu=function(t){const e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),n={};return e[1]&&(n.length=parseInt(e[1],10)),e[2]&&(n.offset=parseInt(e[2],10)),n},XV=function(){const t='(?:[^=]*)=(?:"[^"]*"|[^,]*)';return new RegExp("(?:^|,)("+t+")")},Ft=function(t){const e={};if(!t)return e;const n=t.split(XV());let i=n.length,r;for(;i--;)n[i]!==""&&(r=/([^=]*)=(.*)/.exec(n[i]).slice(1),r[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),e[r[0]]=r[1]);return e},f2=t=>{const e=t.split("x"),n={};return e[0]&&(n.width=parseInt(e[0],10)),e[1]&&(n.height=parseInt(e[1],10)),n};class GV extends fh{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let n,i;if(e=e.trim(),e.length!==0){if(e[0]!=="#"){this.trigger("data",{type:"uri",uri:e});return}this.tagMappers.reduce((r,s)=>{const a=s(e);return a===e?r:r.concat([a])},[e]).forEach(r=>{for(let s=0;s<this.customParsers.length;s++)if(this.customParsers[s].call(this,r))return;if(r.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:r.slice(1)});return}if(r=r.replace("\r",""),n=/^#EXTM3U/.exec(r),n){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(n=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(r),n){i={type:"tag",tagType:"inf"},n[1]&&(i.duration=parseFloat(n[1])),n[2]&&(i.title=n[2]),this.trigger("data",i);return}if(n=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(r),n){i={type:"tag",tagType:"targetduration"},n[1]&&(i.duration=parseInt(n[1],10)),this.trigger("data",i);return}if(n=/^#EXT-X-VERSION:([0-9.]*)?/.exec(r),n){i={type:"tag",tagType:"version"},n[1]&&(i.version=parseInt(n[1],10)),this.trigger("data",i);return}if(n=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(r),n){i={type:"tag",tagType:"media-sequence"},n[1]&&(i.number=parseInt(n[1],10)),this.trigger("data",i);return}if(n=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(r),n){i={type:"tag",tagType:"discontinuity-sequence"},n[1]&&(i.number=parseInt(n[1],10)),this.trigger("data",i);return}if(n=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(r),n){i={type:"tag",tagType:"playlist-type"},n[1]&&(i.playlistType=n[1]),this.trigger("data",i);return}if(n=/^#EXT-X-BYTERANGE:(.*)?$/.exec(r),n){i=it(Gu(n[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",i);return}if(n=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(r),n){i={type:"tag",tagType:"allow-cache"},n[1]&&(i.allowed=!/NO/.test(n[1])),this.trigger("data",i);return}if(n=/^#EXT-X-MAP:(.*)$/.exec(r),n){if(i={type:"tag",tagType:"map"},n[1]){const s=Ft(n[1]);s.URI&&(i.uri=s.URI),s.BYTERANGE&&(i.byterange=Gu(s.BYTERANGE))}this.trigger("data",i);return}if(n=/^#EXT-X-STREAM-INF:(.*)$/.exec(r),n){i={type:"tag",tagType:"stream-inf"},n[1]&&(i.attributes=Ft(n[1]),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=f2(i.attributes.RESOLUTION)),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))),this.trigger("data",i);return}if(n=/^#EXT-X-MEDIA:(.*)$/.exec(r),n){i={type:"tag",tagType:"media"},n[1]&&(i.attributes=Ft(n[1])),this.trigger("data",i);return}if(n=/^#EXT-X-ENDLIST/.exec(r),n){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(n=/^#EXT-X-DISCONTINUITY/.exec(r),n){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(n=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(r),n){i={type:"tag",tagType:"program-date-time"},n[1]&&(i.dateTimeString=n[1],i.dateTimeObject=new Date(n[1])),this.trigger("data",i);return}if(n=/^#EXT-X-KEY:(.*)$/.exec(r),n){i={type:"tag",tagType:"key"},n[1]&&(i.attributes=Ft(n[1]),i.attributes.IV&&(i.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),this.trigger("data",i);return}if(n=/^#EXT-X-START:(.*)$/.exec(r),n){i={type:"tag",tagType:"start"},n[1]&&(i.attributes=Ft(n[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),this.trigger("data",i);return}if(n=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(r),n){i={type:"tag",tagType:"cue-out-cont"},n[1]?i.data=n[1]:i.data="",this.trigger("data",i);return}if(n=/^#EXT-X-CUE-OUT:(.*)?$/.exec(r),n){i={type:"tag",tagType:"cue-out"},n[1]?i.data=n[1]:i.data="",this.trigger("data",i);return}if(n=/^#EXT-X-CUE-IN:?(.*)?$/.exec(r),n){i={type:"tag",tagType:"cue-in"},n[1]?i.data=n[1]:i.data="",this.trigger("data",i);return}if(n=/^#EXT-X-SKIP:(.*)$/.exec(r),n&&n[1]){i={type:"tag",tagType:"skip"},i.attributes=Ft(n[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(OV)),this.trigger("data",i);return}if(n=/^#EXT-X-PART:(.*)$/.exec(r),n&&n[1]){i={type:"tag",tagType:"part"},i.attributes=Ft(n[1]),["DURATION"].forEach(function(s){i.attributes.hasOwnProperty(s)&&(i.attributes[s]=parseFloat(i.attributes[s]))}),["INDEPENDENT","GAP"].forEach(function(s){i.attributes.hasOwnProperty(s)&&(i.attributes[s]=/YES/.test(i.attributes[s]))}),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=Gu(i.attributes.BYTERANGE)),this.trigger("data",i);return}if(n=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(r),n&&n[1]){i={type:"tag",tagType:"server-control"},i.attributes=Ft(n[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(s){i.attributes.hasOwnProperty(s)&&(i.attributes[s]=parseFloat(i.attributes[s]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(s){i.attributes.hasOwnProperty(s)&&(i.attributes[s]=/YES/.test(i.attributes[s]))}),this.trigger("data",i);return}if(n=/^#EXT-X-PART-INF:(.*)$/.exec(r),n&&n[1]){i={type:"tag",tagType:"part-inf"},i.attributes=Ft(n[1]),["PART-TARGET"].forEach(function(s){i.attributes.hasOwnProperty(s)&&(i.attributes[s]=parseFloat(i.attributes[s]))}),this.trigger("data",i);return}if(n=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(r),n&&n[1]){i={type:"tag",tagType:"preload-hint"},i.attributes=Ft(n[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(s){if(i.attributes.hasOwnProperty(s)){i.attributes[s]=parseInt(i.attributes[s],10);const a=s==="BYTERANGE-LENGTH"?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[a]=i.attributes[s],delete i.attributes[s]}}),this.trigger("data",i);return}if(n=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(r),n&&n[1]){i={type:"tag",tagType:"rendition-report"},i.attributes=Ft(n[1]),["LAST-MSN","LAST-PART"].forEach(function(s){i.attributes.hasOwnProperty(s)&&(i.attributes[s]=parseInt(i.attributes[s],10))}),this.trigger("data",i);return}if(n=/^#EXT-X-DATERANGE:(.*)$/.exec(r),n&&n[1]){i={type:"tag",tagType:"daterange"},i.attributes=Ft(n[1]),["ID","CLASS"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=String(i.attributes[a]))}),["START-DATE","END-DATE"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=new Date(i.attributes[a]))}),["DURATION","PLANNED-DURATION"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["END-ON-NEXT"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/i.test(i.attributes[a]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=i.attributes[a].toString(16))});const s=/^X-([A-Z]+-)+[A-Z]+$/;for(const a in i.attributes){if(!s.test(a))continue;const o=/[0-9A-Fa-f]{6}/g.test(i.attributes[a]),c=/^\d+(\.\d+)?$/.test(i.attributes[a]);i.attributes[a]=o?i.attributes[a].toString(16):c?parseFloat(i.attributes[a]):String(i.attributes[a])}this.trigger("data",i);return}if(n=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(r),n){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(n=/^#EXT-X-I-FRAMES-ONLY/.exec(r),n){this.trigger("data",{type:"tag",tagType:"i-frames-only"});return}if(n=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(r),n){i={type:"tag",tagType:"content-steering"},i.attributes=Ft(n[1]),this.trigger("data",i);return}if(n=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(r),n){i={type:"tag",tagType:"i-frame-playlist"},i.attributes=Ft(n[1]),i.attributes.URI&&(i.uri=i.attributes.URI),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=f2(i.attributes.RESOLUTION)),i.attributes["AVERAGE-BANDWIDTH"]&&(i.attributes["AVERAGE-BANDWIDTH"]=parseInt(i.attributes["AVERAGE-BANDWIDTH"],10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),this.trigger("data",i);return}if(n=/^#EXT-X-DEFINE:(.*)$/.exec(r),n){i={type:"tag",tagType:"define"},i.attributes=Ft(n[1]),this.trigger("data",i);return}this.trigger("data",{type:"tag",data:r.slice(4)})})}}addParser({expression:e,customType:n,dataParser:i,segment:r}){typeof i!="function"&&(i=s=>s),this.customParsers.push(s=>{if(e.exec(s))return this.trigger("data",{type:"custom",data:i(s),customType:n,segment:r}),!0})}addTagMapper({expression:e,map:n}){const i=r=>e.test(r)?n(r):r;this.tagMappers.push(i)}}const MV=t=>t.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()),Di=function(t){const e={};return Object.keys(t).forEach(function(n){e[MV(n)]=t[n]}),e},Mu=function(t){const{serverControl:e,targetDuration:n,partTargetDuration:i}=t;if(!e)return;const r="#EXT-X-SERVER-CONTROL",s="holdBack",a="partHoldBack",o=n&&n*3,c=i&&i*2;n&&!e.hasOwnProperty(s)&&(e[s]=o,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&e[s]<o&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${e[s]}) to targetDuration * 3 (${o})`}),e[s]=o),i&&!e.hasOwnProperty(a)&&(e[a]=i*3,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${e[a]}).`})),i&&e[a]<c&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${e[a]}) to partTargetDuration * 2 (${c}).`}),e[a]=c)};class PV extends fh{constructor(e={}){super(),this.lineStream=new DV,this.parseStream=new GV,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const n=this,i=[];let r={},s,a,o=!1;const c=function(){},u={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},d="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";let y=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let A=0,T=0;const _={};this.on("end",()=>{r.uri||!r.parts&&!r.preloadHints||(!r.map&&s&&(r.map=s),!r.key&&a&&(r.key=a),!r.timeline&&typeof y=="number"&&(r.timeline=y),this.manifest.preloadSegment=r)}),this.parseStream.on("data",function(b){let V,w;if(n.manifest.definitions){for(const W in n.manifest.definitions)if(b.uri&&(b.uri=b.uri.replace(`{$${W}}`,n.manifest.definitions[W])),b.attributes)for(const B in b.attributes)typeof b.attributes[B]=="string"&&(b.attributes[B]=b.attributes[B].replace(`{$${W}}`,n.manifest.definitions[W]))}({tag(){({version(){b.version&&(this.manifest.version=b.version)},"allow-cache"(){this.manifest.allowCache=b.allowed,"allowed"in b||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const W={};"length"in b&&(r.byterange=W,W.length=b.length,"offset"in b||(b.offset=A)),"offset"in b&&(r.byterange=W,W.offset=b.offset),A=W.offset+W.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),b.title&&(r.title=b.title),b.duration>0&&(r.duration=b.duration),b.duration===0&&(r.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=i},key(){if(!b.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(b.attributes.METHOD==="NONE"){a=null;return}if(!b.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(b.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:b.attributes};return}if(b.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:b.attributes.URI};return}if(b.attributes.KEYFORMAT===d){if(["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(b.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(b.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),b.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(b.attributes.KEYID&&b.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:b.attributes.KEYFORMAT,keyId:b.attributes.KEYID.substring(2)},pssh:w5(b.attributes.URI.split(",")[1])};return}b.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),a={method:b.attributes.METHOD||"AES-128",uri:b.attributes.URI},typeof b.attributes.IV<"u"&&(a.iv=b.attributes.IV)},"media-sequence"(){if(!isFinite(b.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+b.number});return}this.manifest.mediaSequence=b.number},"discontinuity-sequence"(){if(!isFinite(b.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+b.number});return}this.manifest.discontinuitySequence=b.number,y=b.number},"playlist-type"(){if(!/VOD|EVENT/.test(b.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+b.playlist});return}this.manifest.playlistType=b.playlistType},map(){s={},b.uri&&(s.uri=b.uri),b.byterange&&(s.byterange=b.byterange),a&&(s.key=a)},"stream-inf"(){if(this.manifest.playlists=i,this.manifest.mediaGroups=this.manifest.mediaGroups||u,!b.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}r.attributes||(r.attributes={}),it(r.attributes,b.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||u,!(b.attributes&&b.attributes.TYPE&&b.attributes["GROUP-ID"]&&b.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}const W=this.manifest.mediaGroups[b.attributes.TYPE];W[b.attributes["GROUP-ID"]]=W[b.attributes["GROUP-ID"]]||{},V=W[b.attributes["GROUP-ID"]],w={default:/yes/i.test(b.attributes.DEFAULT)},w.default?w.autoselect=!0:w.autoselect=/yes/i.test(b.attributes.AUTOSELECT),b.attributes.LANGUAGE&&(w.language=b.attributes.LANGUAGE),b.attributes.URI&&(w.uri=b.attributes.URI),b.attributes["INSTREAM-ID"]&&(w.instreamId=b.attributes["INSTREAM-ID"]),b.attributes.CHARACTERISTICS&&(w.characteristics=b.attributes.CHARACTERISTICS),b.attributes.FORCED&&(w.forced=/yes/i.test(b.attributes.FORCED)),V[b.attributes.NAME]=w},discontinuity(){y+=1,r.discontinuity=!0,this.manifest.discontinuityStarts.push(i.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=b.dateTimeString,this.manifest.dateTimeObject=b.dateTimeObject),r.dateTimeString=b.dateTimeString,r.dateTimeObject=b.dateTimeObject;const{lastProgramDateTime:W}=this;this.lastProgramDateTime=new Date(b.dateTimeString).getTime(),W===null&&this.manifest.segments.reduceRight((B,Z)=>(Z.programDateTime=B-Z.duration*1e3,Z.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(b.duration)||b.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+b.duration});return}this.manifest.targetDuration=b.duration,Mu.call(this,this.manifest)},start(){if(!b.attributes||isNaN(b.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:b.attributes["TIME-OFFSET"],precise:b.attributes.PRECISE}},"cue-out"(){r.cueOut=b.data},"cue-out-cont"(){r.cueOutCont=b.data},"cue-in"(){r.cueIn=b.data},skip(){this.manifest.skip=Di(b.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",b.attributes,["SKIPPED-SEGMENTS"])},part(){o=!0;const W=this.manifest.segments.length,B=Di(b.attributes);r.parts=r.parts||[],r.parts.push(B),B.byterange&&(B.byterange.hasOwnProperty("offset")||(B.byterange.offset=T),T=B.byterange.offset+B.byterange.length);const Z=r.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${Z} for segment #${W}`,b.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((L,X)=>{L.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${X} lacks required attribute(s): LAST-PART`})})},"server-control"(){const W=this.manifest.serverControl=Di(b.attributes);W.hasOwnProperty("canBlockReload")||(W.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),Mu.call(this,this.manifest),W.canSkipDateranges&&!W.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const W=this.manifest.segments.length,B=Di(b.attributes),Z=B.type&&B.type==="PART";r.preloadHints=r.preloadHints||[],r.preloadHints.push(B),B.byterange&&(B.byterange.hasOwnProperty("offset")||(B.byterange.offset=Z?T:0,Z&&(T=B.byterange.offset+B.byterange.length)));const L=r.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${L} for segment #${W}`,b.attributes,["TYPE","URI"]),!!B.type)for(let X=0;X<r.preloadHints.length-1;X++){const J=r.preloadHints[X];J.type&&J.type===B.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${L} for segment #${W} has the same TYPE ${B.type} as preload hint #${X}`})}},"rendition-report"(){const W=Di(b.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(W);const B=this.manifest.renditionReports.length-1,Z=["LAST-MSN","URI"];o&&Z.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${B}`,b.attributes,Z)},"part-inf"(){this.manifest.partInf=Di(b.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",b.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),Mu.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(Di(b.attributes));const W=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${W}`,b.attributes,["ID","START-DATE"]);const B=this.manifest.dateRanges[W];B.endDate&&B.startDate&&new Date(B.endDate)<new Date(B.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),B.duration&&B.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),B.plannedDuration&&B.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const Z=!!B.endOnNext;if(Z&&!B.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),Z&&(B.duration||B.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),B.duration&&B.endDate){const L=B.startDate.getTime()+B.duration*1e3;this.manifest.dateRanges[W].endDate=new Date(L)}if(!_[B.id])_[B.id]=B;else{for(const X in _[B.id])if(B[X]&&JSON.stringify(_[B.id][X])!==JSON.stringify(B[X])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const L=this.manifest.dateRanges.findIndex(X=>X.id===B.id);this.manifest.dateRanges[L]=it(this.manifest.dateRanges[L],B),_[B.id]=it(_[B.id],B),this.manifest.dateRanges.pop()}},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=Di(b.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",b.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};const W=(B,Z)=>{if(B in this.manifest.definitions){this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${B}`});return}this.manifest.definitions[B]=Z};if("QUERYPARAM"in b.attributes){if("NAME"in b.attributes||"IMPORT"in b.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}const B=this.params.get(b.attributes.QUERYPARAM);if(!B){this.trigger("error",{message:`EXT-X-DEFINE: No query param ${b.attributes.QUERYPARAM}`});return}W(b.attributes.QUERYPARAM,decodeURIComponent(B));return}if("NAME"in b.attributes){if("IMPORT"in b.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}if(!("VALUE"in b.attributes)||typeof b.attributes.VALUE!="string"){this.trigger("error",{message:`EXT-X-DEFINE: No value for ${b.attributes.NAME}`});return}W(b.attributes.NAME,b.attributes.VALUE);return}if("IMPORT"in b.attributes){if(!this.mainDefinitions[b.attributes.IMPORT]){this.trigger("error",{message:`EXT-X-DEFINE: No value ${b.attributes.IMPORT} to import, or IMPORT used on main playlist`});return}W(b.attributes.IMPORT,this.mainDefinitions[b.attributes.IMPORT]);return}this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:b.attributes,uri:b.uri,timeline:y}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",b.attributes,["BANDWIDTH","URI"])}}[b.tagType]||c).call(n)},uri(){r.uri=b.uri,i.push(r),this.manifest.targetDuration&&!("duration"in r)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),r.duration=this.manifest.targetDuration),a&&(r.key=a),r.timeline=y,s&&(r.map=s),T=0,this.lastProgramDateTime!==null&&(r.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=r.duration*1e3),r={}},comment(){},custom(){b.segment?(r.custom=r.custom||{},r.custom[b.customType]=b.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[b.customType]=b.data)}})[b.type].call(n)})}requiredCompatibilityversion(e,n){(e<n||!e)&&this.trigger("warn",{message:`manifest must be at least version ${n}`})}warnOnMissingAttributes_(e,n,i){const r=[];i.forEach(function(s){n.hasOwnProperty(s)||r.push(s)}),r.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${r.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push(`
90
- `),this.manifest.dateRanges.length&&this.lastProgramDateTime===null&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var Ir={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},YV=["video","audio","text"],y2=["Video","Audio","Text"],N5=function(t){return t&&t.replace(/avc1\.(\d+)\.(\d+)/i,function(e,n,i){var r=("00"+Number(n).toString(16)).slice(-2),s=("00"+Number(i).toString(16)).slice(-2);return"avc1."+r+"00"+s})},Gn=function(t){t===void 0&&(t="");var e=t.split(","),n=[];return e.forEach(function(i){i=i.trim();var r;YV.forEach(function(s){var a=Ir[s].exec(i.toLowerCase());if(!(!a||a.length<=1)){r=s;var o=i.substring(0,a[1].length),c=i.replace(o,"");n.push({type:o,details:c,mediaType:s})}}),r||n.push({type:i,details:"",mediaType:"unknown"})}),n},HV=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var n=t.mediaGroups.AUDIO[e];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return Gn(r.playlists[0].attributes.CODECS)}return null},U5=function(t){return t===void 0&&(t=""),Ir.audio.test(t.trim().toLowerCase())},jV=function(t){return t===void 0&&(t=""),Ir.text.test(t.trim().toLowerCase())},Ns=function(t){if(!(!t||typeof t!="string")){var e=t.toLowerCase().split(",").map(function(r){return N5(r.trim())}),n="video";e.length===1&&U5(e[0])?n="audio":e.length===1&&jV(e[0])&&(n="application");var i="mp4";return e.every(function(r){return Ir.mp4.test(r)})?i="mp4":e.every(function(r){return Ir.webm.test(r)})?i="webm":e.every(function(r){return Ir.ogg.test(r)})&&(i="ogg"),n+"/"+i+';codecs="'+t+'"'}},Ba=function(t,e){return t===void 0&&(t=""),e===void 0&&(e=!1),x.MediaSource&&x.MediaSource.isTypeSupported&&x.MediaSource.isTypeSupported(Ns(t))||e&&x.ManagedMediaSource&&x.ManagedMediaSource.isTypeSupported&&x.ManagedMediaSource.isTypeSupported(Ns(t))||!1},Pu=function(t){return t===void 0&&(t=""),t.toLowerCase().split(",").every(function(e){e=e.trim();for(var n=0;n<y2.length;n++){var i=y2[n];if(Ir["muxer"+i].test(e))return!0}return!1})},b2="mp4a.40.2",JV="avc1.4d400d",QV=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,KV=/^application\/dash\+xml/i,k5=function(t){return QV.test(t)?"hls":KV.test(t)?"dash":t==="application/vnd.videojs.vhs+json"?"vhs-json":null},$V=function(t){return t.toString(2).length},zV=function(t){return Math.ceil($V(t)/8)},x5=function(t){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},qV=function(t){return x5(t)},pe=function(t){return t instanceof Uint8Array?t:(!Array.isArray(t)&&!qV(t)&&!(t instanceof ArrayBuffer)&&(typeof t!="number"||typeof t=="number"&&t!==t?t=0:t=[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},bt=x.BigInt||Number,Wd=[bt("0x1"),bt("0x100"),bt("0x10000"),bt("0x1000000"),bt("0x100000000"),bt("0x10000000000"),bt("0x1000000000000"),bt("0x100000000000000"),bt("0x10000000000000000")];(function(){var t=new Uint16Array([65484]),e=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return e[0]===255?"big":e[0]===204?"little":"unknown"})();var ew=function(t,e){var n=e===void 0?{}:e,i=n.signed,r=i===void 0?!1:i,s=n.le,a=s===void 0?!1:s;t=pe(t);var o=a?"reduce":"reduceRight",c=t[o]?t[o]:Array.prototype[o],u=c.call(t,function(y,A,T){var _=a?T:Math.abs(T+1-t.length);return y+bt(A)*Wd[_]},bt(0));if(r){var d=Wd[t.length]/bt(2)-bt(1);u=bt(u),u>d&&(u-=d,u-=d,u-=bt(2))}return Number(u)},tw=function(t,e){var n={},i=n.le,r=i===void 0?!1:i;(typeof t!="bigint"&&typeof t!="number"||typeof t=="number"&&t!==t)&&(t=0),t=bt(t);for(var s=zV(t),a=new Uint8Array(new ArrayBuffer(s)),o=0;o<s;o++){var c=r?o:Math.abs(o+1-a.length);a[c]=Number(t/Wd[o]&bt(255)),t<0&&(a[c]=Math.abs(~a[c]),a[c]-=o===0?1:2)}return a},L5=function(t,e){if(typeof t!="string"&&t&&typeof t.toString=="function"&&(t=t.toString()),typeof t!="string")return new Uint8Array;e||(t=unescape(encodeURIComponent(t)));for(var n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n},nw=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e=e.filter(function(a){return a&&(a.byteLength||a.length)&&typeof a!="string"}),e.length<=1)return pe(e[0]);var i=e.reduce(function(a,o,c){return a+(o.byteLength||o.length)},0),r=new Uint8Array(i),s=0;return e.forEach(function(a){a=pe(a),r.set(a,s),s+=a.byteLength}),r},Me=function(t,e,n){var i=n===void 0?{}:n,r=i.offset,s=r===void 0?0:r,a=i.mask,o=a===void 0?[]:a;t=pe(t),e=pe(e);var c=e.every?e.every:Array.prototype.every;return e.length&&t.length-s>=e.length&&c.call(e,function(u,d){var y=o[d]?o[d]&t[s+d]:t[s+d];return u===y})},iw=function(t,e,n){e.forEach(function(i){for(var r in t.mediaGroups[i])for(var s in t.mediaGroups[i][r]){var a=t.mediaGroups[i][r][s];n(a,i,r,s)}})};/*! @name mpd-parser @version 1.3.1 @license Apache-2.0 */const E2=t=>!!t&&typeof t=="object",gt=(...t)=>t.reduce((e,n)=>(typeof n!="object"||Object.keys(n).forEach(i=>{Array.isArray(e[i])&&Array.isArray(n[i])?e[i]=e[i].concat(n[i]):E2(e[i])&&E2(n[i])?e[i]=gt(e[i],n[i]):e[i]=n[i]}),e),{}),F5=t=>Object.keys(t).map(e=>t[e]),rw=(t,e)=>{const n=[];for(let i=t;i<e;i++)n.push(i);return n},Us=t=>t.reduce((e,n)=>e.concat(n),[]),B5=t=>{if(!t.length)return[];const e=[];for(let n=0;n<t.length;n++)e.push(t[n]);return e},sw=(t,e)=>t.reduce((n,i,r)=>(i[e]&&n.push(r),n),[]),aw=(t,e)=>F5(t.reduce((n,i)=>(i.forEach(r=>{n[e(r)]=r}),n),{}));var ks={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",INVALID_NUMBER_OF_CONTENT_STEERING:"INVALID_NUMBER_OF_CONTENT_STEERING",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};const eo=({baseUrl:t="",source:e="",range:n="",indexRange:i=""})=>{const r={uri:e,resolvedUri:Rc(t||"",e)};if(n||i){const s=(n||i).split("-");let a=x.BigInt?x.BigInt(s[0]):parseInt(s[0],10),o=x.BigInt?x.BigInt(s[1]):parseInt(s[1],10);a<Number.MAX_SAFE_INTEGER&&typeof a=="bigint"&&(a=Number(a)),o<Number.MAX_SAFE_INTEGER&&typeof o=="bigint"&&(o=Number(o));let c;typeof o=="bigint"||typeof a=="bigint"?c=x.BigInt(o)-x.BigInt(a)+x.BigInt(1):c=o-a+1,typeof c=="bigint"&&c<Number.MAX_SAFE_INTEGER&&(c=Number(c)),r.byterange={length:c,offset:a}}return r},ow=t=>{let e;return typeof t.offset=="bigint"||typeof t.length=="bigint"?e=x.BigInt(t.offset)+x.BigInt(t.length)-x.BigInt(1):e=t.offset+t.length-1,`${t.offset}-${e}`},T2=t=>(t&&typeof t!="number"&&(t=parseInt(t,10)),isNaN(t)?null:t),lw={static(t){const{duration:e,timescale:n=1,sourceDuration:i,periodDuration:r}=t,s=T2(t.endNumber),a=e/n;return typeof s=="number"?{start:0,end:s}:typeof r=="number"?{start:0,end:r/a}:{start:0,end:i/a}},dynamic(t){const{NOW:e,clientOffset:n,availabilityStartTime:i,timescale:r=1,duration:s,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:c=1/0}=t,u=T2(t.endNumber),d=(e+n)/1e3,y=i+a,A=d+o-y,T=Math.ceil(A*r/s),_=Math.floor((d-y-c)*r/s),b=Math.floor((d-y)*r/s);return{start:Math.max(0,_),end:typeof u=="number"?u:Math.min(T,b)}}},cw=t=>e=>{const{duration:n,timescale:i=1,periodStart:r,startNumber:s=1}=t;return{number:s+e,duration:n/i,timeline:r,time:e*n}},bh=t=>{const{type:e,duration:n,timescale:i=1,periodDuration:r,sourceDuration:s}=t,{start:a,end:o}=lw[e](t),c=rw(a,o).map(cw(t));if(e==="static"){const u=c.length-1,d=typeof r=="number"?r:s;c[u].duration=d-n/i*u}return c},W5=t=>{const{baseUrl:e,initialization:n={},sourceDuration:i,indexRange:r="",periodStart:s,presentationTime:a,number:o=0,duration:c}=t;if(!e)throw new Error(ks.NO_BASE_URL);const u=eo({baseUrl:e,source:n.sourceURL,range:n.range}),d=eo({baseUrl:e,source:e,indexRange:r});if(d.map=u,c){const y=bh(t);y.length&&(d.duration=y[0].duration,d.timeline=y[0].timeline)}else i&&(d.duration=i,d.timeline=s);return d.presentationTime=a||s,d.number=o,[d]},Eh=(t,e,n)=>{const i=t.sidx.map?t.sidx.map:null,r=t.sidx.duration,s=t.timeline||0,a=t.sidx.byterange,o=a.offset+a.length,c=e.timescale,u=e.references.filter(V=>V.referenceType!==1),d=[],y=t.endList?"static":"dynamic",A=t.sidx.timeline;let T=A,_=t.mediaSequence||0,b;typeof e.firstOffset=="bigint"?b=x.BigInt(o)+e.firstOffset:b=o+e.firstOffset;for(let V=0;V<u.length;V++){const w=e.references[V],W=w.referencedSize,B=w.subsegmentDuration;let Z;typeof b=="bigint"?Z=b+x.BigInt(W)-x.BigInt(1):Z=b+W-1;const L=`${b}-${Z}`,X=W5({baseUrl:n,timescale:c,timeline:s,periodStart:A,presentationTime:T,number:_,duration:B,sourceDuration:r,indexRange:L,type:y})[0];i&&(X.map=i),d.push(X),typeof b=="bigint"?b+=x.BigInt(W):b+=W,T+=B/c,_++}return t.segments=d,t},uw=["AUDIO","SUBTITLES"],dw=1/60,Z5=t=>aw(t,({timeline:e})=>e).sort((e,n)=>e.timeline>n.timeline?1:-1),hw=(t,e)=>{for(let n=0;n<t.length;n++)if(t[n].attributes.NAME===e)return t[n];return null},v2=t=>{let e=[];return iw(t,uw,(n,i,r,s)=>{e=e.concat(n.playlists||[])}),e},C2=({playlist:t,mediaSequence:e})=>{t.mediaSequence=e,t.segments.forEach((n,i)=>{n.number=t.mediaSequence+i})},pw=({oldPlaylists:t,newPlaylists:e,timelineStarts:n})=>{e.forEach(i=>{i.discontinuitySequence=n.findIndex(function({timeline:o}){return o===i.timeline});const r=hw(t,i.attributes.NAME);if(!r||i.sidx)return;const s=i.segments[0],a=r.segments.findIndex(function(o){return Math.abs(o.presentationTime-s.presentationTime)<dw});if(a===-1){C2({playlist:i,mediaSequence:r.mediaSequence+r.segments.length}),i.segments[0].discontinuity=!0,i.discontinuityStarts.unshift(0),(!r.segments.length&&i.timeline>r.timeline||r.segments.length&&i.timeline>r.segments[r.segments.length-1].timeline)&&i.discontinuitySequence--;return}r.segments[a].discontinuity&&!s.discontinuity&&(s.discontinuity=!0,i.discontinuityStarts.unshift(0),i.discontinuitySequence--),C2({playlist:i,mediaSequence:r.segments[a].number})})},mw=({oldManifest:t,newManifest:e})=>{const n=t.playlists.concat(v2(t)),i=e.playlists.concat(v2(e));return e.timelineStarts=Z5([t.timelineStarts,e.timelineStarts]),pw({oldPlaylists:n,newPlaylists:i,timelineStarts:e.timelineStarts}),e},Vc=t=>t&&t.uri+"-"+ow(t.byterange),Yu=t=>{const e=t.reduce(function(i,r){return i[r.attributes.baseUrl]||(i[r.attributes.baseUrl]=[]),i[r.attributes.baseUrl].push(r),i},{});let n=[];return Object.values(e).forEach(i=>{const r=F5(i.reduce((s,a)=>{const o=a.attributes.id+(a.attributes.lang||"");return s[o]?(a.segments&&(a.segments[0]&&(a.segments[0].discontinuity=!0),s[o].segments.push(...a.segments)),a.attributes.contentProtection&&(s[o].attributes.contentProtection=a.attributes.contentProtection)):(s[o]=a,s[o].attributes.timelineStarts=[]),s[o].attributes.timelineStarts.push({start:a.attributes.periodStart,timeline:a.attributes.periodStart}),s},{}));n=n.concat(r)}),n.map(i=>(i.discontinuityStarts=sw(i.segments||[],"discontinuity"),i))},Th=(t,e)=>{const n=Vc(t.sidx),i=n&&e[n]&&e[n].sidx;return i&&Eh(t,i,t.sidx.resolvedUri),t},gw=(t,e={})=>{if(!Object.keys(e).length)return t;for(const n in t)t[n]=Th(t[n],e);return t},fw=({attributes:t,segments:e,sidx:n,mediaSequence:i,discontinuitySequence:r,discontinuityStarts:s},a)=>{const o={attributes:{NAME:t.id,BANDWIDTH:t.bandwidth,CODECS:t.codecs,"PROGRAM-ID":1},uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuitySequence:r,discontinuityStarts:s,timelineStarts:t.timelineStarts,mediaSequence:i,segments:e};return t.contentProtection&&(o.contentProtection=t.contentProtection),t.serviceLocation&&(o.attributes.serviceLocation=t.serviceLocation),n&&(o.sidx=n),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},yw=({attributes:t,segments:e,mediaSequence:n,discontinuityStarts:i,discontinuitySequence:r})=>{typeof e>"u"&&(e=[{uri:t.baseUrl,timeline:t.periodStart,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration);const s={NAME:t.id,BANDWIDTH:t.bandwidth,"PROGRAM-ID":1};t.codecs&&(s.CODECS=t.codecs);const a={attributes:s,uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,timelineStarts:t.timelineStarts,discontinuityStarts:i,discontinuitySequence:r,mediaSequence:n,segments:e};return t.serviceLocation&&(a.attributes.serviceLocation=t.serviceLocation),a},bw=(t,e={},n=!1)=>{let i;const r=t.reduce((s,a)=>{const o=a.attributes.role&&a.attributes.role.value||"",c=a.attributes.lang||"";let u=a.attributes.label||"main";if(c&&!a.attributes.label){const y=o?` (${o})`:"";u=`${a.attributes.lang}${y}`}s[u]||(s[u]={language:c,autoselect:!0,default:o==="main",playlists:[],uri:""});const d=Th(fw(a,n),e);return s[u].playlists.push(d),typeof i>"u"&&o==="main"&&(i=a,i.default=!0),s},{});if(!i){const s=Object.keys(r)[0];r[s].default=!0}return r},Ew=(t,e={})=>t.reduce((n,i)=>{const r=i.attributes.label||i.attributes.lang||"text",s=i.attributes.lang||"und";return n[r]||(n[r]={language:s,default:!1,autoselect:!1,playlists:[],uri:""}),n[r].playlists.push(Th(yw(i),e)),n},{}),Tw=t=>t.reduce((e,n)=>(n&&n.forEach(i=>{const{channel:r,language:s}=i;e[s]={autoselect:!1,default:!1,instreamId:r,language:s},i.hasOwnProperty("aspectRatio")&&(e[s].aspectRatio=i.aspectRatio),i.hasOwnProperty("easyReader")&&(e[s].easyReader=i.easyReader),i.hasOwnProperty("3D")&&(e[s]["3D"]=i["3D"])}),e),{}),vw=({attributes:t,segments:e,sidx:n,discontinuityStarts:i})=>{const r={attributes:{NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth,"PROGRAM-ID":1},uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuityStarts:i,timelineStarts:t.timelineStarts,segments:e};return t.frameRate&&(r.attributes["FRAME-RATE"]=t.frameRate),t.contentProtection&&(r.contentProtection=t.contentProtection),t.serviceLocation&&(r.attributes.serviceLocation=t.serviceLocation),n&&(r.sidx=n),r},Cw=({attributes:t})=>t.mimeType==="video/mp4"||t.mimeType==="video/webm"||t.contentType==="video",Aw=({attributes:t})=>t.mimeType==="audio/mp4"||t.mimeType==="audio/webm"||t.contentType==="audio",Sw=({attributes:t})=>t.mimeType==="text/vtt"||t.contentType==="text",_w=(t,e)=>{t.forEach(n=>{n.mediaSequence=0,n.discontinuitySequence=e.findIndex(function({timeline:i}){return i===n.timeline}),n.segments&&n.segments.forEach((i,r)=>{i.number=r})})},A2=t=>t?Object.keys(t).reduce((e,n)=>{const i=t[n];return e.concat(i.playlists)},[]):[],Rw=({dashPlaylists:t,locations:e,contentSteering:n,sidxMapping:i={},previousManifest:r,eventStream:s})=>{if(!t.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:c,minimumUpdatePeriod:u}=t[0].attributes,d=Yu(t.filter(Cw)).map(vw),y=Yu(t.filter(Aw)),A=Yu(t.filter(Sw)),T=t.map(Z=>Z.attributes.captionServices).filter(Boolean),_={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:gw(d,i)};u>=0&&(_.minimumUpdatePeriod=u*1e3),e&&(_.locations=e),n&&(_.contentSteering=n),o==="dynamic"&&(_.suggestedPresentationDelay=c),s&&s.length>0&&(_.eventStream=s);const b=_.playlists.length===0,V=y.length?bw(y,i,b):null,w=A.length?Ew(A,i):null,W=d.concat(A2(V),A2(w)),B=W.map(({timelineStarts:Z})=>Z);return _.timelineStarts=Z5(B),_w(W,_.timelineStarts),V&&(_.mediaGroups.AUDIO.audio=V),w&&(_.mediaGroups.SUBTITLES.subs=w),T.length&&(_.mediaGroups["CLOSED-CAPTIONS"].cc=Tw(T)),r?mw({oldManifest:r,newManifest:_}):_},Iw=(t,e,n)=>{const{NOW:i,clientOffset:r,availabilityStartTime:s,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:c=0}=t,u=(i+r)/1e3,d=s+o,y=u+c-d;return Math.ceil((y*a-e)/n)},D5=(t,e)=>{const{type:n,minimumUpdatePeriod:i=0,media:r="",sourceDuration:s,timescale:a=1,startNumber:o=1,periodStart:c}=t,u=[];let d=-1;for(let y=0;y<e.length;y++){const A=e[y],T=A.d,_=A.r||0,b=A.t||0;d<0&&(d=b),b&&b>d&&(d=b);let V;if(_<0){const B=y+1;B===e.length?n==="dynamic"&&i>0&&r.indexOf("$Number$")>0?V=Iw(t,d,T):V=(s*a-d)/T:V=(e[B].t-d)/T}else V=_+1;const w=o+u.length+V;let W=o+u.length;for(;W<w;)u.push({number:W,duration:T/a,time:d,timeline:c}),d+=T,W++}return u},Vw=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,ww=t=>(e,n,i,r)=>{if(e==="$$")return"$";if(typeof t[n]>"u")return e;const s=""+t[n];return n==="RepresentationID"||(i?r=parseInt(r,10):r=1,s.length>=r)?s:`${new Array(r-s.length+1).join("0")}${s}`},S2=(t,e)=>t.replace(Vw,ww(e)),Nw=(t,e)=>!t.duration&&!e?[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]:t.duration?bh(t):D5(t,e),Uw=(t,e)=>{const n={RepresentationID:t.id,Bandwidth:t.bandwidth||0},{initialization:i={sourceURL:"",range:""}}=t,r=eo({baseUrl:t.baseUrl,source:S2(i.sourceURL,n),range:i.range});return Nw(t,e).map(s=>{n.Number=s.number,n.Time=s.time;const a=S2(t.media||"",n),o=t.timescale||1,c=t.presentationTimeOffset||0,u=t.periodStart+(s.time-c)/o;return{uri:a,timeline:s.timeline,duration:s.duration,resolvedUri:Rc(t.baseUrl||"",a),map:r,number:s.number,presentationTime:u}})},kw=(t,e)=>{const{baseUrl:n,initialization:i={}}=t,r=eo({baseUrl:n,source:i.sourceURL,range:i.range}),s=eo({baseUrl:n,source:e.media,range:e.mediaRange});return s.map=r,s},xw=(t,e)=>{const{duration:n,segmentUrls:i=[],periodStart:r}=t;if(!n&&!e||n&&e)throw new Error(ks.SEGMENT_TIME_UNSPECIFIED);const s=i.map(o=>kw(t,o));let a;return n&&(a=bh(t)),e&&(a=D5(t,e)),a.map((o,c)=>{if(s[c]){const u=s[c],d=t.timescale||1,y=t.presentationTimeOffset||0;return u.timeline=o.timeline,u.duration=o.duration,u.number=o.number,u.presentationTime=r+(o.time-y)/d,u}}).filter(o=>o)},Lw=({attributes:t,segmentInfo:e})=>{let n,i;e.template?(i=Uw,n=gt(t,e.template)):e.base?(i=W5,n=gt(t,e.base)):e.list&&(i=xw,n=gt(t,e.list));const r={attributes:t};if(!i)return r;const s=i(n,e.segmentTimeline);if(n.duration){const{duration:a,timescale:o=1}=n;n.duration=a/o}else s.length?n.duration=s.reduce((a,o)=>Math.max(a,Math.ceil(o.duration)),0):n.duration=0;return r.attributes=n,r.segments=s,e.base&&n.indexRange&&(r.sidx=s[0],r.segments=[]),r},Fw=t=>t.map(Lw),Pe=(t,e)=>B5(t.childNodes).filter(({tagName:n})=>n===e),go=t=>t.textContent.trim(),Bw=t=>parseFloat(t.split("/").reduce((e,n)=>e/n)),zr=t=>{const e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;const[n,i,r,s,a,o]=e.slice(1);return parseFloat(n||0)*31536e3+parseFloat(i||0)*2592e3+parseFloat(r||0)*86400+parseFloat(s||0)*3600+parseFloat(a||0)*60+parseFloat(o||0)},Ww=t=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t)&&(t+="Z"),Date.parse(t)),_2={mediaPresentationDuration(t){return zr(t)},availabilityStartTime(t){return Ww(t)/1e3},minimumUpdatePeriod(t){return zr(t)},suggestedPresentationDelay(t){return zr(t)},type(t){return t},timeShiftBufferDepth(t){return zr(t)},start(t){return zr(t)},width(t){return parseInt(t,10)},height(t){return parseInt(t,10)},bandwidth(t){return parseInt(t,10)},frameRate(t){return Bw(t)},startNumber(t){return parseInt(t,10)},timescale(t){return parseInt(t,10)},presentationTimeOffset(t){return parseInt(t,10)},duration(t){const e=parseInt(t,10);return isNaN(e)?zr(t):e},d(t){return parseInt(t,10)},t(t){return parseInt(t,10)},r(t){return parseInt(t,10)},presentationTime(t){return parseInt(t,10)},DEFAULT(t){return t}},lt=t=>t&&t.attributes?B5(t.attributes).reduce((e,n)=>{const i=_2[n.name]||_2.DEFAULT;return e[n.name]=i(n.value),e},{}):{},Zw={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},wc=(t,e)=>e.length?Us(t.map(function(n){return e.map(function(i){const r=go(i),s=Rc(n.baseUrl,r),a=gt(lt(i),{baseUrl:s});return s!==r&&!a.serviceLocation&&n.serviceLocation&&(a.serviceLocation=n.serviceLocation),a})})):t,vh=t=>{const e=Pe(t,"SegmentTemplate")[0],n=Pe(t,"SegmentList")[0],i=n&&Pe(n,"SegmentURL").map(y=>gt({tag:"SegmentURL"},lt(y))),r=Pe(t,"SegmentBase")[0],s=n||e,a=s&&Pe(s,"SegmentTimeline")[0],o=n||r||e,c=o&&Pe(o,"Initialization")[0],u=e&&lt(e);u&&c?u.initialization=c&&lt(c):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});const d={template:u,segmentTimeline:a&&Pe(a,"S").map(y=>lt(y)),list:n&&gt(lt(n),{segmentUrls:i,initialization:lt(c)}),base:r&&gt(lt(r),{initialization:lt(c)})};return Object.keys(d).forEach(y=>{d[y]||delete d[y]}),d},Dw=(t,e,n)=>i=>{const r=Pe(i,"BaseURL"),s=wc(e,r),a=gt(t,lt(i)),o=vh(i);return s.map(c=>({segmentInfo:gt(n,o),attributes:gt(a,c)}))},Ow=t=>t.reduce((e,n)=>{const i=lt(n);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const r=Zw[i.schemeIdUri];if(r){e[r]={attributes:i};const s=Pe(n,"cenc:pssh")[0];if(s){const a=go(s);e[r].pssh=a&&w5(a)}}return e},{}),Xw=t=>{if(t.schemeIdUri==="urn:scte:dash:cc:cea-608:2015")return(typeof t.value!="string"?[]:t.value.split(";")).map(e=>{let n,i;return i=e,/^CC\d=/.test(e)?[n,i]=e.split("="):/^CC\d$/.test(e)&&(n=e),{channel:n,language:i}});if(t.schemeIdUri==="urn:scte:dash:cc:cea-708:2015")return(typeof t.value!="string"?[]:t.value.split(";")).map(e=>{const n={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[i,r=""]=e.split("=");n.channel=i,n.language=e,r.split(",").forEach(s=>{const[a,o]=s.split(":");a==="lang"?n.language=o:a==="er"?n.easyReader=Number(o):a==="war"?n.aspectRatio=Number(o):a==="3D"&&(n["3D"]=Number(o))})}else n.language=e;return n.channel&&(n.channel="SERVICE"+n.channel),n})},Gw=t=>Us(Pe(t.node,"EventStream").map(e=>{const n=lt(e),i=n.schemeIdUri;return Pe(e,"Event").map(r=>{const s=lt(r),a=s.presentationTime||0,o=n.timescale||1,c=s.duration||0,u=a/o+t.attributes.start;return{schemeIdUri:i,value:n.value,id:s.id,start:u,end:u+c/o,messageData:go(r)||s.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),Mw=(t,e,n)=>i=>{const r=lt(i),s=wc(e,Pe(i,"BaseURL")),a=Pe(i,"Role")[0],o={role:lt(a)};let c=gt(t,r,o);const u=Pe(i,"Accessibility")[0],d=Xw(lt(u));d&&(c=gt(c,{captionServices:d}));const y=Pe(i,"Label")[0];if(y&&y.childNodes.length){const V=y.childNodes[0].nodeValue.trim();c=gt(c,{label:V})}const A=Ow(Pe(i,"ContentProtection"));Object.keys(A).length&&(c=gt(c,{contentProtection:A}));const T=vh(i),_=Pe(i,"Representation"),b=gt(n,T);return Us(_.map(Dw(c,s,b)))},Pw=(t,e)=>(n,i)=>{const r=wc(e,Pe(n.node,"BaseURL")),s=gt(t,{periodStart:n.attributes.start});typeof n.attributes.duration=="number"&&(s.periodDuration=n.attributes.duration);const a=Pe(n.node,"AdaptationSet"),o=vh(n.node);return Us(a.map(Mw(s,r,o)))},Yw=(t,e)=>{if(t.length>1&&e({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!t.length)return null;const n=gt({serverURL:go(t[0])},lt(t[0]));return n.queryBeforeStart=n.queryBeforeStart==="true",n},Hw=({attributes:t,priorPeriodAttributes:e,mpdType:n})=>typeof t.start=="number"?t.start:e&&typeof e.start=="number"&&typeof e.duration=="number"?e.start+e.duration:!e&&n==="static"?0:null,jw=(t,e={})=>{const{manifestUri:n="",NOW:i=Date.now(),clientOffset:r=0,eventHandler:s=function(){}}=e,a=Pe(t,"Period");if(!a.length)throw new Error(ks.INVALID_NUMBER_OF_PERIOD);const o=Pe(t,"Location"),c=lt(t),u=wc([{baseUrl:n}],Pe(t,"BaseURL")),d=Pe(t,"ContentSteering");c.type=c.type||"static",c.sourceDuration=c.mediaPresentationDuration||0,c.NOW=i,c.clientOffset=r,o.length&&(c.locations=o.map(go));const y=[];return a.forEach((A,T)=>{const _=lt(A),b=y[T-1];_.start=Hw({attributes:_,priorPeriodAttributes:b?b.attributes:null,mpdType:c.type}),y.push({node:A,attributes:_})}),{locations:c.locations,contentSteeringInfo:Yw(d,s),representationInfo:Us(y.map(Pw(c,u))),eventStream:Us(y.map(Gw))}},O5=t=>{if(t==="")throw new Error(ks.DASH_EMPTY_MANIFEST);const e=new dh;let n,i;try{n=e.parseFromString(t,"application/xml"),i=n&&n.documentElement.tagName==="MPD"?n.documentElement:null}catch{}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error(ks.DASH_INVALID_XML);return i},Jw=t=>{const e=Pe(t,"UTCTiming")[0];if(!e)return null;const n=lt(e);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(ks.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},Qw=(t,e={})=>{const n=jw(O5(t),e),i=Fw(n.representationInfo);return Rw({dashPlaylists:i,locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest,eventStream:n.eventStream})},Kw=t=>Jw(O5(t));var X5=Math.pow(2,32),$w=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n;return e.getBigUint64?(n=e.getBigUint64(0),n<Number.MAX_SAFE_INTEGER?Number(n):n):e.getUint32(0)*X5+e.getUint32(4)},zw={getUint64:$w,MAX_UINT32:X5},R2=zw.getUint64,qw=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;n.version===0?(n.earliestPresentationTime=e.getUint32(i),n.firstOffset=e.getUint32(i+4),i+=8):(n.earliestPresentationTime=R2(t.subarray(i)),n.firstOffset=R2(t.subarray(i+8)),i+=16),i+=2;var r=e.getUint16(i);for(i+=2;r>0;i+=12,r--)n.references.push({referenceType:(t[i]&128)>>>7,referencedSize:e.getUint32(i)&2147483647,subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(t[i+8]&128),sapType:(t[i+8]&112)>>>4,sapDeltaTime:e.getUint32(i+8)&268435455});return n},eN=qw;const tN=mo(eN);var nN=pe([73,68,51]),iN=function(t,e){e===void 0&&(e=0),t=pe(t);var n=t[e+5],i=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9],r=(n&16)>>4;return r?i+20:i+10},wa=function t(e,n){return n===void 0&&(n=0),e=pe(e),e.length-n<10||!Me(e,nN,{offset:n})?n:(n+=iN(e,n),t(e,n))},I2=function(t){return typeof t=="string"?L5(t):t},rN=function(t){return Array.isArray(t)?t.map(function(e){return I2(e)}):[I2(t)]},sN=function t(e,n,i){i===void 0&&(i=!1),n=rN(n),e=pe(e);var r=[];if(!n.length)return r;for(var s=0;s<e.length;){var a=(e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3])>>>0,o=e.subarray(s+4,s+8);if(a===0)break;var c=s+a;if(c>e.length){if(i)break;c=e.length}var u=e.subarray(s+8,c);Me(o,n[0])&&(n.length===1?r.push(u):r.push.apply(r,t(u,n.slice(1),i))),s=c}return r},al={EBML:pe([26,69,223,163]),DocType:pe([66,130]),Segment:pe([24,83,128,103]),SegmentInfo:pe([21,73,169,102]),Tracks:pe([22,84,174,107]),Track:pe([174]),TrackNumber:pe([215]),DefaultDuration:pe([35,227,131]),TrackEntry:pe([174]),TrackType:pe([131]),FlagDefault:pe([136]),CodecID:pe([134]),CodecPrivate:pe([99,162]),VideoTrack:pe([224]),AudioTrack:pe([225]),Cluster:pe([31,67,182,117]),Timestamp:pe([231]),TimestampScale:pe([42,215,177]),BlockGroup:pe([160]),BlockDuration:pe([155]),Block:pe([161]),SimpleBlock:pe([163])},Zd=[128,64,32,16,8,4,2,1],aN=function(t){for(var e=1,n=0;n<Zd.length&&!(t&Zd[n]);n++)e++;return e},Pl=function(t,e,n,i){n===void 0&&(n=!0),i===void 0&&(i=!1);var r=aN(t[e]),s=t.subarray(e,e+r);return n&&(s=Array.prototype.slice.call(t,e,e+r),s[0]^=Zd[r-1]),{length:r,value:ew(s,{signed:i}),bytes:s}},V2=function t(e){return typeof e=="string"?e.match(/.{1,2}/g).map(function(n){return t(n)}):typeof e=="number"?tw(e):e},oN=function(t){return Array.isArray(t)?t.map(function(e){return V2(e)}):[V2(t)]},lN=function t(e,n,i){if(i>=n.length)return n.length;var r=Pl(n,i,!1);if(Me(e.bytes,r.bytes))return i;var s=Pl(n,i+r.length);return t(e,n,i+s.length+s.value+r.length)},w2=function t(e,n){n=oN(n),e=pe(e);var i=[];if(!n.length)return i;for(var r=0;r<e.length;){var s=Pl(e,r,!1),a=Pl(e,r+s.length),o=r+s.length+a.length;a.value===127&&(a.value=lN(s,e,o),a.value!==e.length&&(a.value-=o));var c=o+a.value>e.length?e.length:o+a.value,u=e.subarray(o,c);Me(n[0],s.bytes)&&(n.length===1?i.push(u):i=i.concat(t(u,n.slice(1))));var d=s.length+a.length+u.length;r+=d}return i},cN=pe([0,0,0,1]),uN=pe([0,0,1]),dN=pe([0,0,3]),hN=function(t){for(var e=[],n=1;n<t.length-2;)Me(t.subarray(n,n+3),dN)&&(e.push(n+2),n++),n++;if(e.length===0)return t;var i=t.length-e.length,r=new Uint8Array(i),s=0;for(n=0;n<i;s++,n++)s===e[0]&&(s++,e.shift()),r[n]=t[s];return r},G5=function(t,e,n,i){t=pe(t),n=[].concat(n);for(var r=0,s,a=0;r<t.length&&(a<i||s);){var o=void 0;if(Me(t.subarray(r),cN)?o=4:Me(t.subarray(r),uN)&&(o=3),!o){r++;continue}if(a++,s)return hN(t.subarray(s,r));var c=void 0;e==="h264"?c=t[r+o]&31:e==="h265"&&(c=t[r+o]>>1&63),n.indexOf(c)!==-1&&(s=r+o),r+=o+(e==="h264"?1:2)}return t.subarray(0,0)},pN=function(t,e,n){return G5(t,"h264",e,n)},mN=function(t,e,n){return G5(t,"h265",e,n)},Bt={webm:pe([119,101,98,109]),matroska:pe([109,97,116,114,111,115,107,97]),flac:pe([102,76,97,67]),ogg:pe([79,103,103,83]),ac3:pe([11,119]),riff:pe([82,73,70,70]),avi:pe([65,86,73]),wav:pe([87,65,86,69]),"3gp":pe([102,116,121,112,51,103]),mp4:pe([102,116,121,112]),fmp4:pe([115,116,121,112]),mov:pe([102,116,121,112,113,116]),moov:pe([109,111,111,118]),moof:pe([109,111,111,102])},xs={aac:function(t){var e=wa(t);return Me(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=wa(t);return Me(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=w2(t,[al.EBML,al.DocType])[0];return Me(e,Bt.webm)},mkv:function(t){var e=w2(t,[al.EBML,al.DocType])[0];return Me(e,Bt.matroska)},mp4:function(t){if(xs["3gp"](t)||xs.mov(t))return!1;if(Me(t,Bt.mp4,{offset:4})||Me(t,Bt.fmp4,{offset:4})||Me(t,Bt.moof,{offset:4})||Me(t,Bt.moov,{offset:4}))return!0},mov:function(t){return Me(t,Bt.mov,{offset:4})},"3gp":function(t){return Me(t,Bt["3gp"],{offset:4})},ac3:function(t){var e=wa(t);return Me(t,Bt.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return t[0]===71;for(var e=0;e+188<t.length&&e<188;){if(t[e]===71&&t[e+188]===71)return!0;e+=1}return!1},flac:function(t){var e=wa(t);return Me(t,Bt.flac,{offset:e})},ogg:function(t){return Me(t,Bt.ogg)},avi:function(t){return Me(t,Bt.riff)&&Me(t,Bt.avi,{offset:8})},wav:function(t){return Me(t,Bt.riff)&&Me(t,Bt.wav,{offset:8})},h264:function(t){return pN(t,7,3).length},h265:function(t){return mN(t,[32,33],3).length}},Dd=Object.keys(xs).filter(function(t){return t!=="ts"&&t!=="h264"&&t!=="h265"}).concat(["ts","h264","h265"]);Dd.forEach(function(t){var e=xs[t];xs[t]=function(n){return e(pe(n))}});var gN=xs,Ch=function(t){t=pe(t);for(var e=0;e<Dd.length;e++){var n=Dd[e];if(gN[n](t))return n}return""},fN=function(t){return sN(t,["moof"]).length>0},Ah=9e4,Sh,_h,Nc,Rh,M5,P5,Y5;Sh=function(t){return t*Ah};_h=function(t,e){return t*e};Nc=function(t){return t/Ah};Rh=function(t,e){return t/e};M5=function(t,e){return Sh(Rh(t,e))};P5=function(t,e){return _h(Nc(t),e)};Y5=function(t,e,n){return Nc(n?t:t-e)};var Sr={ONE_SECOND_IN_TS:Ah,secondsToVideoTs:Sh,secondsToAudioTs:_h,videoTsToSeconds:Nc,audioTsToSeconds:Rh,audioTsToVideoTs:M5,videoTsToAudioTs:P5,metadataTsToSeconds:Y5},Od="8.21.0";const mi={},Qi=function(t,e){return mi[t]=mi[t]||[],e&&(mi[t]=mi[t].concat(e)),mi[t]},yN=function(t,e){Qi(t,e)},H5=function(t,e){const n=Qi(t).indexOf(e);return n<=-1?!1:(mi[t]=mi[t].slice(),mi[t].splice(n,1),!0)},bN=function(t,e){Qi(t,[].concat(e).map(n=>{const i=(...r)=>(H5(t,i),n(...r));return i}))},Yl={prefixed:!0},vl=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],N2=vl[0];let Na;for(let t=0;t<vl.length;t++)if(vl[t][1]in ee){Na=vl[t];break}if(Na){for(let t=0;t<Na.length;t++)Yl[N2[t]]=Na[t];Yl.prefixed=Na[0]!==N2[0]}let Pt=[];const EN=(t,e,n)=>(i,r,s)=>{const a=e.levels[r],o=new RegExp(`^(${a})$`);let c=t;if(i!=="log"&&s.unshift(i.toUpperCase()+":"),n&&(c=`%c${t}`,s.unshift(n)),s.unshift(c+":"),Pt){Pt.push([].concat(s));const d=Pt.length-1e3;Pt.splice(0,d>0?d:0)}if(!x.console)return;let u=x.console[i];!u&&i==="debug"&&(u=x.console.info||x.console.log),!(!u||!a||!o.test(i))&&u[Array.isArray(s)?"apply":"call"](x.console,s)};function Xd(t,e=":",n=""){let i="info",r;function s(...a){r("log",i,a)}return r=EN(t,s,n),s.createLogger=(a,o,c)=>{const u=o!==void 0?o:e,d=c!==void 0?c:n,y=`${t} ${u} ${a}`;return Xd(y,u,d)},s.createNewLogger=(a,o,c)=>Xd(a,o,c),s.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},s.level=a=>{if(typeof a=="string"){if(!s.levels.hasOwnProperty(a))throw new Error(`"${a}" in not a valid log level`);i=a}return i},s.history=()=>Pt?[].concat(Pt):[],s.history.filter=a=>(Pt||[]).filter(o=>new RegExp(`.*${a}.*`).test(o[0])),s.history.clear=()=>{Pt&&(Pt.length=0)},s.history.disable=()=>{Pt!==null&&(Pt.length=0,Pt=null)},s.history.enable=()=>{Pt===null&&(Pt=[])},s.error=(...a)=>r("error",i,a),s.warn=(...a)=>r("warn",i,a),s.debug=(...a)=>r("debug",i,a),s}const Te=Xd("VIDEOJS"),j5=Te.createLogger,TN=Object.prototype.toString,J5=function(t){return ti(t)?Object.keys(t):[]};function cs(t,e){J5(t).forEach(n=>e(t[n],n))}function Q5(t,e,n=0){return J5(t).reduce((i,r)=>e(i,t[r],r),n)}function ti(t){return!!t&&typeof t=="object"}function Ls(t){return ti(t)&&TN.call(t)==="[object Object]"&&t.constructor===Object}function xe(...t){const e={};return t.forEach(n=>{n&&cs(n,(i,r)=>{if(!Ls(i)){e[r]=i;return}Ls(e[r])||(e[r]={}),e[r]=xe(e[r],i)})}),e}function K5(t={}){const e=[];for(const n in t)if(t.hasOwnProperty(n)){const i=t[n];e.push(i)}return e}function Uc(t,e,n,i=!0){const r=a=>Object.defineProperty(t,e,{value:a,enumerable:!0,writable:!0}),s={configurable:!0,enumerable:!0,get(){const a=n();return r(a),a}};return i&&(s.set=r),Object.defineProperty(t,e,s)}var vN=Object.freeze({__proto__:null,each:cs,reduce:Q5,isObject:ti,isPlain:Ls,merge:xe,values:K5,defineLazyProperty:Uc});let Ih=!1,$5=null,kn=!1,z5,q5=!1,us=!1,ds=!1,ni=!1,Vh=null,kc=null;const CN=!!(x.cast&&x.cast.framework&&x.cast.framework.CastReceiverContext);let e4=null,Hl=!1,xc=!1,jl=!1,Lc=!1,Jl=!1,Ql=!1,Kl=!1;const to=!!(Gs()&&("ontouchstart"in x||x.navigator.maxTouchPoints||x.DocumentTouch&&x.document instanceof x.DocumentTouch)),Oi=x.navigator&&x.navigator.userAgentData;Oi&&Oi.platform&&Oi.brands&&(kn=Oi.platform==="Android",us=!!Oi.brands.find(t=>t.brand==="Microsoft Edge"),ds=!!Oi.brands.find(t=>t.brand==="Chromium"),ni=!us&&ds,Vh=kc=(Oi.brands.find(t=>t.brand==="Chromium")||{}).version||null,xc=Oi.platform==="Windows");if(!ds){const t=x.navigator&&x.navigator.userAgent||"";Ih=/iPod/i.test(t),$5=function(){const e=t.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),kn=/Android/i.test(t),z5=function(){const e=t.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const n=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return n&&i?parseFloat(e[1]+"."+e[2]):n||null}(),q5=/Firefox/i.test(t),us=/Edg/i.test(t),ds=/Chrome/i.test(t)||/CriOS/i.test(t),ni=!us&&ds,Vh=kc=function(){const e=t.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),e4=function(){const e=/MSIE\s(\d+)\.\d/.exec(t);let n=e&&parseFloat(e[1]);return!n&&/Trident\/7.0/i.test(t)&&/rv:11.0/.test(t)&&(n=11),n}(),Jl=/Tizen/i.test(t),Ql=/Web0S/i.test(t),Kl=Jl||Ql,Hl=/Safari/i.test(t)&&!ni&&!kn&&!us&&!Kl,xc=/Windows/i.test(t),jl=/iPad/i.test(t)||Hl&&to&&!/iPhone/i.test(t),Lc=/iPhone/i.test(t)&&!jl}const Vt=Lc||jl||Ih,Fc=(Hl||Vt)&&!ni;var t4=Object.freeze({__proto__:null,get IS_IPOD(){return Ih},get IOS_VERSION(){return $5},get IS_ANDROID(){return kn},get ANDROID_VERSION(){return z5},get IS_FIREFOX(){return q5},get IS_EDGE(){return us},get IS_CHROMIUM(){return ds},get IS_CHROME(){return ni},get CHROMIUM_VERSION(){return Vh},get CHROME_VERSION(){return kc},IS_CHROMECAST_RECEIVER:CN,get IE_VERSION(){return e4},get IS_SAFARI(){return Hl},get IS_WINDOWS(){return xc},get IS_IPAD(){return jl},get IS_IPHONE(){return Lc},get IS_TIZEN(){return Jl},get IS_WEBOS(){return Ql},get IS_SMART_TV(){return Kl},TOUCH_ENABLED:to,IS_IOS:Vt,IS_ANY_SAFARI:Fc});function U2(t){return typeof t=="string"&&!!t.trim()}function AN(t){if(t.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Gs(){return ee===x.document}function Ms(t){return ti(t)&&t.nodeType===1}function n4(){try{return x.parent!==x.self}catch{return!0}}function i4(t){return function(e,n){if(!U2(e))return ee[t](null);U2(n)&&(n=ee.querySelector(n));const i=Ms(n)?n:ee;return i[t]&&i[t](e)}}function ge(t="div",e={},n={},i){const r=ee.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(s){const a=e[s];s==="textContent"?qi(r,a):(r[s]!==a||s==="tabIndex")&&(r[s]=a)}),Object.getOwnPropertyNames(n).forEach(function(s){r.setAttribute(s,n[s])}),i&&wh(r,i),r}function qi(t,e){return typeof t.textContent>"u"?t.innerText=e:t.textContent=e,t}function Gd(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function Wa(t,e){return AN(e),t.classList.contains(e)}function Vr(t,...e){return t.classList.add(...e.reduce((n,i)=>n.concat(i.split(/\s+/)),[])),t}function Bc(t,...e){return t?(t.classList.remove(...e.reduce((n,i)=>n.concat(i.split(/\s+/)),[])),t):(Te.warn("removeClass was called with an element that doesn't exist"),null)}function r4(t,e,n){return typeof n=="function"&&(n=n(t,e)),typeof n!="boolean"&&(n=void 0),e.split(/\s+/).forEach(i=>t.classList.toggle(i,n)),t}function s4(t,e){Object.getOwnPropertyNames(e).forEach(function(n){const i=e[n];i===null||typeof i>"u"||i===!1?t.removeAttribute(n):t.setAttribute(n,i===!0?"":i)})}function Yi(t){const e={},n=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(t&&t.attributes&&t.attributes.length>0){const i=t.attributes;for(let r=i.length-1;r>=0;r--){const s=i[r].name;let a=i[r].value;n.includes(s)&&(a=a!==null),e[s]=a}}return e}function a4(t,e){return t.getAttribute(e)}function Fs(t,e,n){t.setAttribute(e,n)}function Wc(t,e){t.removeAttribute(e)}function o4(){ee.body.focus(),ee.onselectstart=function(){return!1}}function l4(){ee.onselectstart=function(){return!0}}function Bs(t){if(t&&t.getBoundingClientRect&&t.parentNode){const e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(i=>{e[i]!==void 0&&(n[i]=e[i])}),n.height||(n.height=parseFloat(Ws(t,"height"))),n.width||(n.width=parseFloat(Ws(t,"width"))),n}}function no(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};const e=t.offsetWidth,n=t.offsetHeight;let i=0,r=0;for(;t.offsetParent&&t!==ee[Yl.fullscreenElement];)i+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{left:i,top:r,width:e,height:n}}function Zc(t,e){const n={x:0,y:0};if(Vt){let d=t;for(;d&&d.nodeName.toLowerCase()!=="html";){const y=Ws(d,"transform");if(/^matrix/.test(y)){const A=y.slice(7,-1).split(/,\s/).map(Number);n.x+=A[4],n.y+=A[5]}else if(/^matrix3d/.test(y)){const A=y.slice(9,-1).split(/,\s/).map(Number);n.x+=A[12],n.y+=A[13]}if(d.assignedSlot&&d.assignedSlot.parentElement&&x.WebKitCSSMatrix){const A=x.getComputedStyle(d.assignedSlot.parentElement).transform,T=new x.WebKitCSSMatrix(A);n.x+=T.m41,n.y+=T.m42}d=d.parentNode||d.host}}const i={},r=no(e.target),s=no(t),a=s.width,o=s.height;let c=e.offsetY-(s.top-r.top),u=e.offsetX-(s.left-r.left);return e.changedTouches&&(u=e.changedTouches[0].pageX-s.left,c=e.changedTouches[0].pageY+s.top,Vt&&(u-=n.x,c-=n.y)),i.y=1-Math.max(0,Math.min(1,c/o)),i.x=Math.max(0,Math.min(1,u/a)),i}function c4(t){return ti(t)&&t.nodeType===3}function Dc(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function u4(t){return typeof t=="function"&&(t=t()),(Array.isArray(t)?t:[t]).map(e=>{if(typeof e=="function"&&(e=e()),Ms(e)||c4(e))return e;if(typeof e=="string"&&/\S/.test(e))return ee.createTextNode(e)}).filter(e=>e)}function wh(t,e){return u4(e).forEach(n=>t.appendChild(n)),t}function d4(t,e){return wh(Dc(t),e)}function io(t){return t.button===void 0&&t.buttons===void 0||t.button===0&&t.buttons===void 0||t.type==="mouseup"&&t.button===0&&t.buttons===0||t.type==="mousedown"&&t.button===0&&t.buttons===0?!0:!(t.button!==0||t.buttons!==1)}const Ki=i4("querySelector"),h4=i4("querySelectorAll");function Ws(t,e){if(!t||!e)return"";if(typeof x.getComputedStyle=="function"){let n;try{n=x.getComputedStyle(t)}catch{return""}return n?n.getPropertyValue(e)||n[e]:""}return""}function p4(t){[...ee.styleSheets].forEach(e=>{try{const n=[...e.cssRules].map(r=>r.cssText).join(""),i=ee.createElement("style");i.textContent=n,t.document.head.appendChild(i)}catch{const n=ee.createElement("link");n.rel="stylesheet",n.type=e.type,n.media=e.media.mediaText,n.href=e.href,t.document.head.appendChild(n)}})}var m4=Object.freeze({__proto__:null,isReal:Gs,isEl:Ms,isInFrame:n4,createEl:ge,textContent:qi,prependTo:Gd,hasClass:Wa,addClass:Vr,removeClass:Bc,toggleClass:r4,setAttributes:s4,getAttributes:Yi,getAttribute:a4,setAttribute:Fs,removeAttribute:Wc,blockTextSelection:o4,unblockTextSelection:l4,getBoundingClientRect:Bs,findPosition:no,getPointerPosition:Zc,isTextNode:c4,emptyEl:Dc,normalizeContent:u4,appendContent:wh,insertContent:d4,isSingleLeftClick:io,$:Ki,$$:h4,computedStyle:Ws,copyStyleSheetsToWindow:p4});let g4=!1,Md;const SN=function(){if(Md.options.autoSetup===!1)return;const t=Array.prototype.slice.call(ee.getElementsByTagName("video")),e=Array.prototype.slice.call(ee.getElementsByTagName("audio")),n=Array.prototype.slice.call(ee.getElementsByTagName("video-js")),i=t.concat(e,n);if(i&&i.length>0)for(let r=0,s=i.length;r<s;r++){const a=i[r];if(a&&a.getAttribute)a.player===void 0&&a.getAttribute("data-setup")!==null&&Md(a);else{Pd(1);break}}else g4||Pd(1)};function Pd(t,e){Gs()&&(e&&(Md=e),x.setTimeout(SN,t))}function Yd(){g4=!0,x.removeEventListener("load",Yd)}Gs()&&(ee.readyState==="complete"?Yd():x.addEventListener("load",Yd));const f4=function(t){const e=ee.createElement("style");return e.className=t,e},y4=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e};var Ot=new WeakMap;const _N=3;let RN=_N;function gn(){return RN++}function k2(t,e){if(!Ot.has(t))return;const n=Ot.get(t);n.handlers[e].length===0&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),Object.getOwnPropertyNames(n).length===0&&Ot.delete(t)}function Nh(t,e,n,i){n.forEach(function(r){t(e,r,i)})}function Oc(t){if(t.fixed_)return t;function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){const i=t||x.event;t={};const r=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(const s in i)r.includes(s)||s==="returnValue"&&i.preventDefault||(t[s]=i[s]);if(t.target||(t.target=t.srcElement||ee),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){i.preventDefault&&i.preventDefault(),t.returnValue=!1,i.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),t.cancelBubble=!0,i.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,t.clientX!==null&&t.clientX!==void 0){const s=ee.documentElement,a=ee.body;t.pageX=t.clientX+(s&&s.scrollLeft||a&&a.scrollLeft||0)-(s&&s.clientLeft||a&&a.clientLeft||0),t.pageY=t.clientY+(s&&s.scrollTop||a&&a.scrollTop||0)-(s&&s.clientTop||a&&a.clientTop||0)}t.which=t.charCode||t.keyCode,t.button!==null&&t.button!==void 0&&(t.button=t.button&1?0:t.button&4?1:t.button&2?2:0)}return t.fixed_=!0,t}let ol;const IN=function(){if(typeof ol!="boolean"){ol=!1;try{const t=Object.defineProperty({},"passive",{get(){ol=!0}});x.addEventListener("test",null,t),x.removeEventListener("test",null,t)}catch{}}return ol},VN=["touchstart","touchmove"];function nn(t,e,n){if(Array.isArray(e))return Nh(nn,t,e,n);Ot.has(t)||Ot.set(t,{});const i=Ot.get(t);if(i.handlers||(i.handlers={}),i.handlers[e]||(i.handlers[e]=[]),n.guid||(n.guid=gn()),i.handlers[e].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(r,s){if(i.disabled)return;r=Oc(r);const a=i.handlers[r.type];if(a){const o=a.slice(0);for(let c=0,u=o.length;c<u&&!r.isImmediatePropagationStopped();c++)try{o[c].call(t,r,s)}catch(d){Te.error(d)}}}),i.handlers[e].length===1)if(t.addEventListener){let r=!1;IN()&&VN.indexOf(e)>-1&&(r={passive:!0}),t.addEventListener(e,i.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,i.dispatcher)}function wt(t,e,n){if(!Ot.has(t))return;const i=Ot.get(t);if(!i.handlers)return;if(Array.isArray(e))return Nh(wt,t,e,n);const r=function(a,o){i.handlers[o]=[],k2(a,o)};if(e===void 0){for(const a in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},a)&&r(t,a);return}const s=i.handlers[e];if(s){if(!n){r(t,e);return}if(n.guid)for(let a=0;a<s.length;a++)s[a].guid===n.guid&&s.splice(a--,1);k2(t,e)}}function Ps(t,e,n){const i=Ot.has(t)?Ot.get(t):{},r=t.parentNode||t.ownerDocument;if(typeof e=="string"?e={type:e,target:t}:e.target||(e.target=t),e=Oc(e),i.dispatcher&&i.dispatcher.call(t,e,n),r&&!e.isPropagationStopped()&&e.bubbles===!0)Ps.call(null,r,e,n);else if(!r&&!e.defaultPrevented&&e.target&&e.target[e.type]){Ot.has(e.target)||Ot.set(e.target,{});const s=Ot.get(e.target);e.target[e.type]&&(s.disabled=!0,typeof e.target[e.type]=="function"&&e.target[e.type](),s.disabled=!1)}return!e.defaultPrevented}function Xc(t,e,n){if(Array.isArray(e))return Nh(Xc,t,e,n);const i=function(){wt(t,e,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||gn(),nn(t,e,i)}function Uh(t,e,n){const i=function(){wt(t,e,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||gn(),nn(t,e,i)}var wN=Object.freeze({__proto__:null,fixEvent:Oc,on:nn,off:wt,trigger:Ps,one:Xc,any:Uh});const fn=30,Ze=function(t,e,n){e.guid||(e.guid=gn());const i=e.bind(t);return i.guid=n?n+"_"+e.guid:e.guid,i},ii=function(t,e){let n=x.performance.now();return function(...i){const r=x.performance.now();r-n>=e&&(t(...i),n=r)}},b4=function(t,e,n,i=x){let r;const s=()=>{i.clearTimeout(r),r=null},a=function(){const o=this,c=arguments;let u=function(){r=null,u=null,n||t.apply(o,c)};!r&&n&&t.apply(o,c),i.clearTimeout(r),r=i.setTimeout(u,e)};return a.cancel=s,a};var NN=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:fn,bind_:Ze,throttle:ii,debounce:b4});let va;class rn{on(e,n){const i=this.addEventListener;this.addEventListener=()=>{},nn(this,e,n),this.addEventListener=i}off(e,n){wt(this,e,n)}one(e,n){const i=this.addEventListener;this.addEventListener=()=>{},Xc(this,e,n),this.addEventListener=i}any(e,n){const i=this.addEventListener;this.addEventListener=()=>{},Uh(this,e,n),this.addEventListener=i}trigger(e){const n=e.type||e;typeof e=="string"&&(e={type:n}),e=Oc(e),this.allowedEvents_[n]&&this["on"+n]&&this["on"+n](e),Ps(this,e)}queueTrigger(e){va||(va=new Map);const n=e.type||e;let i=va.get(this);i||(i=new Map,va.set(this,i));const r=i.get(n);i.delete(n),x.clearTimeout(r);const s=x.setTimeout(()=>{i.delete(n),i.size===0&&(i=null,va.delete(this)),this.trigger(e)},0);i.set(n,s)}}rn.prototype.allowedEvents_={};rn.prototype.addEventListener=rn.prototype.on;rn.prototype.removeEventListener=rn.prototype.off;rn.prototype.dispatchEvent=rn.prototype.trigger;const Gc=t=>typeof t.name=="function"?t.name():typeof t.name=="string"?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t,Ci=t=>t instanceof rn||!!t.eventBusEl_&&["on","one","off","trigger"].every(e=>typeof t[e]=="function"),UN=(t,e)=>{Ci(t)?e():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(e))},Hd=t=>typeof t=="string"&&/\S/.test(t)||Array.isArray(t)&&!!t.length,$l=(t,e,n)=>{if(!t||!t.nodeName&&!Ci(t))throw new Error(`Invalid target for ${Gc(e)}#${n}; must be a DOM node or evented object.`)},E4=(t,e,n)=>{if(!Hd(t))throw new Error(`Invalid event type for ${Gc(e)}#${n}; must be a non-empty string or array.`)},T4=(t,e,n)=>{if(typeof t!="function")throw new Error(`Invalid listener for ${Gc(e)}#${n}; must be a function.`)},Hu=(t,e,n)=>{const i=e.length<3||e[0]===t||e[0]===t.eventBusEl_;let r,s,a;return i?(r=t.eventBusEl_,e.length>=3&&e.shift(),[s,a]=e):(r=e[0],s=e[1],a=e[2]),$l(r,t,n),E4(s,t,n),T4(a,t,n),a=Ze(t,a),{isTargetingSelf:i,target:r,type:s,listener:a}},fr=(t,e,n,i)=>{$l(t,t,e),t.nodeName?wN[e](t,n,i):t[e](n,i)},kN={on(...t){const{isTargetingSelf:e,target:n,type:i,listener:r}=Hu(this,t,"on");if(fr(n,"on",i,r),!e){const s=()=>this.off(n,i,r);s.guid=r.guid;const a=()=>this.off("dispose",s);a.guid=r.guid,fr(this,"on","dispose",s),fr(n,"on","dispose",a)}},one(...t){const{isTargetingSelf:e,target:n,type:i,listener:r}=Hu(this,t,"one");if(e)fr(n,"one",i,r);else{const s=(...a)=>{this.off(n,i,s),r.apply(null,a)};s.guid=r.guid,fr(n,"one",i,s)}},any(...t){const{isTargetingSelf:e,target:n,type:i,listener:r}=Hu(this,t,"any");if(e)fr(n,"any",i,r);else{const s=(...a)=>{this.off(n,i,s),r.apply(null,a)};s.guid=r.guid,fr(n,"any",i,s)}},off(t,e,n){if(!t||Hd(t))wt(this.eventBusEl_,t,e);else{const i=t,r=e;$l(i,this,"off"),E4(r,this,"off"),T4(n,this,"off"),n=Ze(this,n),this.off("dispose",n),i.nodeName?(wt(i,r,n),wt(i,"dispose",n)):Ci(i)&&(i.off(r,n),i.off("dispose",n))}},trigger(t,e){$l(this.eventBusEl_,this,"trigger");const n=t&&typeof t!="string"?t.type:t;if(!Hd(n))throw new Error(`Invalid event type for ${Gc(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return Ps(this.eventBusEl_,t,e)}};function kh(t,e={}){const{eventBusKey:n}=e;if(n){if(!t[n].nodeName)throw new Error(`The eventBusKey "${n}" does not refer to an element.`);t.eventBusEl_=t[n]}else t.eventBusEl_=ge("span",{className:"vjs-event-bus"});return Object.assign(t,kN),t.eventedCallbacks&&t.eventedCallbacks.forEach(i=>{i()}),t.on("dispose",()=>{t.off(),[t,t.el_,t.eventBusEl_].forEach(function(i){i&&Ot.has(i)&&Ot.delete(i)}),x.setTimeout(()=>{t.eventBusEl_=null},0)}),t}const xN={state:{},setState(t){typeof t=="function"&&(t=t());let e;return cs(t,(n,i)=>{this.state[i]!==n&&(e=e||{},e[i]={from:this.state[i],to:n}),this.state[i]=n}),e&&Ci(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function v4(t,e){return Object.assign(t,xN),t.state=Object.assign({},t.state,e),typeof t.handleStateChanged=="function"&&Ci(t)&&t.on("statechanged",t.handleStateChanged),t}const Za=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toLowerCase())},Je=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toUpperCase())},C4=function(t,e){return Je(t)===Je(e)};var LN=Object.freeze({__proto__:null,toLowerCase:Za,toTitleCase:Je,titleCaseEquals:C4});let $=class Mt{constructor(e,n,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=xe({},this.options_),n=this.options_=xe(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){const r=e&&e.id&&e.id()||"no_player";this.id_=`${r}_component_${gn()}`}this.name_=n.name||null,n.el?this.el_=n.el:n.createEl!==!1&&(this.el_=this.createEl()),n.className&&this.el_&&n.className.split(" ").forEach(r=>this.addClass(r)),["on","off","one","any","trigger"].forEach(r=>{this[r]=void 0}),n.evented!==!1&&(kh(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),v4(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,n.initChildren!==!1&&this.initChildren(),this.ready(i),n.reportTouchActivity!==!1&&this.enableTouchActivity()}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let n=this.children_.length-1;n>=0;n--)this.children_[n].dispose&&this.children_[n].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(e){return e?(this.options_=xe(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,n,i){return ge(e,n,i)}localize(e,n,i=e){const r=this.player_.language&&this.player_.language(),s=this.player_.languages&&this.player_.languages(),a=s&&s[r],o=r&&r.split("-")[0],c=s&&s[o];let u=i;return a&&a[e]?u=a[e]:c&&c[e]&&(u=c[e]),n&&(u=u.replace(/\{(\d+)\}/g,function(d,y){const A=n[y-1];let T=A;return typeof A>"u"&&(T=d),T})),u}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((i,r)=>i.concat(r),[]);let n=this;for(let i=0;i<e.length;i++)if(n=n.getChild(e[i]),!n||!n.getChild)return;return n}setIcon(e,n=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const i="http://www.w3.org/2000/svg",r=ge("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),s=ee.createElementNS(i,"svg");s.setAttributeNS(null,"viewBox","0 0 512 512");const a=ee.createElementNS(i,"use");return s.appendChild(a),a.setAttributeNS(null,"href",`#vjs-icon-${e}`),r.appendChild(s),this.iconIsSet_?n.replaceChild(r,n.querySelector(".vjs-icon-placeholder")):n.appendChild(r),this.iconIsSet_=!0,r}addChild(e,n={},i=this.children_.length){let r,s;if(typeof e=="string"){s=Je(e);const a=n.componentClass||s;n.name=s;const o=Mt.getComponent(a);if(!o)throw new Error(`Component ${a} does not exist`);if(typeof o!="function")return null;r=new o(this.player_||this,n)}else r=e;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,typeof r.id=="function"&&(this.childIndex_[r.id()]=r),s=s||r.name&&Je(r.name()),s&&(this.childNameIndex_[s]=r,this.childNameIndex_[Za(s)]=r),typeof r.el=="function"&&r.el()){let a=null;this.children_[i+1]&&(this.children_[i+1].el_?a=this.children_[i+1].el_:Ms(this.children_[i+1])&&(a=this.children_[i+1])),this.contentEl().insertBefore(r.el(),a)}return r}removeChild(e){if(typeof e=="string"&&(e=this.getChild(e)),!e||!this.children_)return;let n=!1;for(let r=this.children_.length-1;r>=0;r--)if(this.children_[r]===e){n=!0,this.children_.splice(r,1);break}if(!n)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Je(e.name())]=null,this.childNameIndex_[Za(e.name())]=null;const i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const n=this.options_,i=a=>{const o=a.name;let c=a.opts;if(n[o]!==void 0&&(c=n[o]),c===!1)return;c===!0&&(c={}),c.playerOptions=this.options_.playerOptions;const u=this.addChild(o,c);u&&(this[o]=u)};let r;const s=Mt.getComponent("Tech");Array.isArray(e)?r=e:r=Object.keys(e),r.concat(Object.keys(this.options_).filter(function(a){return!r.some(function(o){return typeof o=="string"?a===o:a===o.name})})).map(a=>{let o,c;return typeof a=="string"?(o=a,c=e[o]||this.options_[o]||{}):(o=a.name,c=a),{name:o,opts:c}}).filter(a=>{const o=Mt.getComponent(a.opts.componentClass||Je(a.name));return o&&!s.isTech(o)}).forEach(i)}}buildCSSClass(){return""}ready(e,n=!1){if(e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}n?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(n){n.call(this)},this),this.trigger("ready")},1)}$(e,n){return Ki(e,n||this.contentEl())}$$(e,n){return h4(e,n||this.contentEl())}hasClass(e){return Wa(this.el_,e)}addClass(...e){Vr(this.el_,...e)}removeClass(...e){Bc(this.el_,...e)}toggleClass(e,n){r4(this.el_,e,n)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return a4(this.el_,e)}setAttribute(e,n){Fs(this.el_,e,n)}removeAttribute(e){Wc(this.el_,e)}width(e,n){return this.dimension("width",e,n)}height(e,n){return this.dimension("height",e,n)}dimensions(e,n){this.width(e,!0),this.height(n)}dimension(e,n,i){if(n!==void 0){(n===null||n!==n)&&(n=0),(""+n).indexOf("%")!==-1||(""+n).indexOf("px")!==-1?this.el_.style[e]=n:n==="auto"?this.el_.style[e]="":this.el_.style[e]=n+"px",i||this.trigger("componentresize");return}if(!this.el_)return 0;const r=this.el_.style[e],s=r.indexOf("px");return parseInt(s!==-1?r.slice(0,s):this.el_["offset"+Je(e)],10)}currentDimension(e){let n=0;if(e!=="width"&&e!=="height")throw new Error("currentDimension only accepts width or height value");if(n=Ws(this.el_,e),n=parseFloat(n),n===0||isNaN(n)){const i=`offset${Je(e)}`;n=this.el_[i]}return n}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}getPositions(){const e=this.el_.getBoundingClientRect(),n={x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},i={x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2};return{boundingClientRect:n,center:i}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(e.key!=="Tab"&&!(this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)&&e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,n=null;const i=10,r=200;let s;this.on("touchstart",function(o){o.touches.length===1&&(n={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY},e=x.performance.now(),s=!0)}),this.on("touchmove",function(o){if(o.touches.length>1)s=!1;else if(n){const c=o.touches[0].pageX-n.pageX,u=o.touches[0].pageY-n.pageY;Math.sqrt(c*c+u*u)>i&&(s=!1)}});const a=function(){s=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",function(o){n=null,s===!0&&x.performance.now()-e<r&&(o.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=Ze(this.player(),this.player().reportUserActivity);let n;this.on("touchstart",function(){e(),this.clearInterval(n),n=this.setInterval(e,250)});const i=function(r){e(),this.clearInterval(n)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}setTimeout(e,n){var i;return e=Ze(this,e),this.clearTimersOnDispose_(),i=x.setTimeout(()=>{this.setTimeoutIds_.has(i)&&this.setTimeoutIds_.delete(i),e()},n),this.setTimeoutIds_.add(i),i}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),x.clearTimeout(e)),e}setInterval(e,n){e=Ze(this,e),this.clearTimersOnDispose_();const i=x.setInterval(e,n);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),x.clearInterval(e)),e}requestAnimationFrame(e){this.clearTimersOnDispose_();var n;return e=Ze(this,e),n=x.requestAnimationFrame(()=>{this.rafIds_.has(n)&&this.rafIds_.delete(n),e()}),this.rafIds_.add(n),n}requestNamedAnimationFrame(e,n){this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),n=Ze(this,n);const i=this.requestAnimationFrame(()=>{n(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),x.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(([e,n])=>{this[e].forEach((i,r)=>this[n](r))}),this.clearingTimersOnDispose_=!1}))}getIsDisabled(){return!!this.el_.disabled}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(e){function n(s){const a=x.getComputedStyle(s,null),o=a.getPropertyValue("visibility");return a.getPropertyValue("display")!=="none"&&!["hidden","collapse"].includes(o)}function i(s){return!(!n(s.parentElement)||!n(s)||s.style.opacity==="0"||x.getComputedStyle(s).height==="0px"||x.getComputedStyle(s).width==="0px")}function r(s){if(s.offsetWidth+s.offsetHeight+s.getBoundingClientRect().height+s.getBoundingClientRect().width===0)return!1;const a={x:s.getBoundingClientRect().left+s.offsetWidth/2,y:s.getBoundingClientRect().top+s.offsetHeight/2};if(a.x<0||a.x>(ee.documentElement.clientWidth||x.innerWidth)||a.y<0||a.y>(ee.documentElement.clientHeight||x.innerHeight))return!1;let o=ee.elementFromPoint(a.x,a.y);for(;o;){if(o===s)return!0;if(o.parentNode)o=o.parentNode;else return!1}}return e||(e=this.el()),!!(r(e)&&i(e)&&(!e.parentElement||e.tabIndex>=0))}static registerComponent(e,n){if(typeof e!="string"||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const i=Mt.getComponent("Tech"),r=i&&i.isTech(n),s=Mt===n||Mt.prototype.isPrototypeOf(n.prototype);if(r||!s){let o;throw r?o="techs must be registered using Tech.registerTech()":o="must be a Component subclass",new Error(`Illegal component, "${e}"; ${o}.`)}e=Je(e),Mt.components_||(Mt.components_={});const a=Mt.getComponent("Player");if(e==="Player"&&a&&a.players){const o=a.players,c=Object.keys(o);if(o&&c.length>0&&c.map(u=>o[u]).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return Mt.components_[e]=n,Mt.components_[Za(e)]=n,n}static getComponent(e){if(!(!e||!Mt.components_))return Mt.components_[e]}};$.registerComponent("Component",$);function FN(t,e,n){if(typeof e!="number"||e<0||e>n)throw new Error(`Failed to execute '${t}' on 'TimeRanges': The index provided (${e}) is non-numeric or out of bounds (0-${n}).`)}function x2(t,e,n,i){return FN(t,i,n.length-1),n[i][e]}function ju(t){let e;return t===void 0||t.length===0?e={length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:e={length:t.length,start:x2.bind(null,"start",0,t),end:x2.bind(null,"end",1,t)},x.Symbol&&x.Symbol.iterator&&(e[x.Symbol.iterator]=()=>(t||[]).values()),e}function Nn(t,e){return Array.isArray(t)?ju(t):t===void 0||e===void 0?ju():ju([[t,e]])}const A4=function(t,e){t=t<0?0:t;let n=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600);const s=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=i=n="-"),r=r>0||a>0?r+":":"",i=((r||s>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n};let xh=A4;function S4(t){xh=t}function _4(){xh=A4}function xr(t,e=t){return xh(t,e)}var BN=Object.freeze({__proto__:null,createTimeRanges:Nn,createTimeRange:Nn,setFormatTime:S4,resetFormatTime:_4,formatTime:xr});function R4(t,e){let n=0,i,r;if(!e)return 0;(!t||!t.length)&&(t=Nn(0,0));for(let s=0;s<t.length;s++)i=t.start(s),r=t.end(s),r>e&&(r=e),n+=r-i;return n/e}function He(t){if(t instanceof He)return t;typeof t=="number"?this.code=t:typeof t=="string"?this.message=t:ti(t)&&(typeof t.code=="number"&&(this.code=t.code),Object.assign(this,t)),this.message||(this.message=He.defaultMessages[this.code]||"")}He.prototype.code=0;He.prototype.message="";He.prototype.status=null;He.prototype.metadata=null;He.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];He.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};He.MEDIA_ERR_CUSTOM=0;He.prototype.MEDIA_ERR_CUSTOM=0;He.MEDIA_ERR_ABORTED=1;He.prototype.MEDIA_ERR_ABORTED=1;He.MEDIA_ERR_NETWORK=2;He.prototype.MEDIA_ERR_NETWORK=2;He.MEDIA_ERR_DECODE=3;He.prototype.MEDIA_ERR_DECODE=3;He.MEDIA_ERR_SRC_NOT_SUPPORTED=4;He.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4;He.MEDIA_ERR_ENCRYPTED=5;He.prototype.MEDIA_ERR_ENCRYPTED=5;function Da(t){return t!=null&&typeof t.then=="function"}function jn(t){Da(t)&&t.then(null,e=>{})}const jd=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((e,n,i)=>(t[n]&&(e[n]=t[n]),e),{cues:t.cues&&Array.prototype.map.call(t.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},WN=function(t){const e=t.$$("track"),n=Array.prototype.map.call(e,i=>i.track);return Array.prototype.map.call(e,function(i){const r=jd(i.track);return i.src&&(r.src=i.src),r}).concat(Array.prototype.filter.call(t.textTracks(),function(i){return n.indexOf(i)===-1}).map(jd))},ZN=function(t,e){return t.forEach(function(n){const i=e.addRemoteTextTrack(n).track;!n.src&&n.cues&&n.cues.forEach(r=>i.addCue(r))}),e.textTracks()};var L2={textTracksToJson:WN,jsonToTextTracks:ZN,trackToJson_:jd};const Ju="vjs-modal-dialog";class Ys extends ${constructor(e,n){super(e,n),this.handleKeyDown_=i=>this.handleKeyDown(i),this.close_=i=>this.close(i),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=ge("div",{className:`${Ju}-content`},{role:"document"}),this.descEl_=ge("p",{className:`${Ju}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),qi(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${Ju} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(this.opened_){this.options_.fillAlways&&this.fill();return}const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}opened(e){return typeof e=="boolean"&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger({type:"modalclose",bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if(typeof e=="boolean"){const n=this.closeable_=!!e;let i=this.getChild("closeButton");if(n&&!i){const r=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(i,"close",this.close_)}!n&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const n=this.contentEl(),i=n.parentNode,r=n.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(n),this.empty(),d4(n,e),this.trigger("modalfill"),r?i.insertBefore(n,r):i.appendChild(n);const s=this.getChild("closeButton");s&&i.appendChild(s.el_),this.trigger("aftermodalfill")}empty(){this.trigger("beforemodalempty"),Dc(this.contentEl()),this.trigger("modalempty")}content(e){return typeof e<"u"&&(this.content_=e),this.content_}conditionalFocus_(){const e=ee.activeElement,n=this.player_.el_;this.previouslyActiveEl_=null,(n.contains(e)||n===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(this.trigger({type:"modalKeydown",originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),e.key==="Escape"&&this.closeable()){e.preventDefault(),this.close();return}if(e.key!=="Tab")return;const n=this.focusableEls_(),i=this.el_.querySelector(":focus");let r;for(let s=0;s<n.length;s++)if(i===n[s]){r=s;break}ee.activeElement===this.el_&&(r=0),e.shiftKey&&r===0?(n[n.length-1].focus(),e.preventDefault()):!e.shiftKey&&r===n.length-1&&(n[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,n=>(n instanceof x.HTMLAnchorElement||n instanceof x.HTMLAreaElement)&&n.hasAttribute("href")||(n instanceof x.HTMLInputElement||n instanceof x.HTMLSelectElement||n instanceof x.HTMLTextAreaElement||n instanceof x.HTMLButtonElement)&&!n.hasAttribute("disabled")||n instanceof x.HTMLIFrameElement||n instanceof x.HTMLObjectElement||n instanceof x.HTMLEmbedElement||n.hasAttribute("tabindex")&&n.getAttribute("tabindex")!==-1||n.hasAttribute("contenteditable"))}}Ys.prototype.options_={pauseOnOpen:!0,temporary:!0};$.registerComponent("ModalDialog",Ys);class Zs extends rn{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let n=0;n<e.length;n++)this.addTrack(e[n])}addTrack(e){const n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get(){return this.tracks_[n]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},Ci(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let n;for(let i=0,r=this.length;i<r;i++)if(this[i]===e){n=this[i],n.off&&n.off(),this.tracks_.splice(i,1);break}n&&this.trigger({track:n,type:"removetrack",target:this})}getTrackById(e){let n=null;for(let i=0,r=this.length;i<r;i++){const s=this[i];if(s.id===e){n=s;break}}return n}}Zs.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const t in Zs.prototype.allowedEvents_)Zs.prototype["on"+t]=null;const Qu=function(t,e){for(let n=0;n<t.length;n++)!Object.keys(t[n]).length||e.id===t[n].id||(t[n].enabled=!1)};class DN extends Zs{constructor(e=[]){for(let n=e.length-1;n>=0;n--)if(e[n].enabled){Qu(e,e[n]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&Qu(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,Qu(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}const Ku=function(t,e){for(let n=0;n<t.length;n++)!Object.keys(t[n]).length||e.id===t[n].id||(t[n].selected=!1)};class ON extends Zs{constructor(e=[]){for(let n=e.length-1;n>=0;n--)if(e[n].selected){Ku(e,e[n]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let n=0;n<this.length;n++)if(this[n].selected)return n;return-1},set(){}})}addTrack(e){e.selected&&Ku(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,Ku(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}class I4 extends Zs{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),["metadata","chapters"].indexOf(e.kind)===-1&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class XN{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let n=0,i=e.length;n<i;n++)this.addTrackElement_(e[n])}addTrackElement_(e){const n=this.trackElements_.length;""+n in this||Object.defineProperty(this,n,{get(){return this.trackElements_[n]}}),this.trackElements_.indexOf(e)===-1&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let n;for(let i=0,r=this.trackElements_.length;i<r;i++)if(e===this.trackElements_[i].track){n=this.trackElements_[i];break}return n}removeTrackElement_(e){for(let n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n]){this.trackElements_[n].track&&typeof this.trackElements_[n].track.off=="function"&&this.trackElements_[n].track.off(),typeof this.trackElements_[n].off=="function"&&this.trackElements_[n].off(),this.trackElements_.splice(n,1);break}}}class zl{constructor(e){zl.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const n=this.length||0;let i=0;const r=e.length;this.cues_=e,this.length_=e.length;const s=function(a){""+a in this||Object.defineProperty(this,""+a,{get(){return this.cues_[a]}})};if(n<r)for(i=n;i<r;i++)s.call(this,i)}getCueById(e){let n=null;for(let i=0,r=this.length;i<r;i++){const s=this[i];if(s.id===e){n=s;break}}return n}}const GN={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},MN={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},PN={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},F2={disabled:"disabled",hidden:"hidden",showing:"showing"};class Lh extends rn{constructor(e={}){super();const n={id:e.id||"vjs_track_"+gn(),kind:e.kind||"",language:e.language||""};let i=e.label||"";for(const r in n)Object.defineProperty(this,r,{get(){return n[r]},set(){}});Object.defineProperty(this,"label",{get(){return i},set(r){r!==i&&(i=r,this.trigger("labelchange"))}})}}const Fh=function(t){return new URL(t,ee.baseURI)},V4=function(t){return new URL(t,ee.baseURI).href},Bh=function(t){if(typeof t=="string"){const e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(e)return e.pop().toLowerCase()}return""},Mc=function(t,e=x.location){return Fh(t).origin!==e.origin};var YN=Object.freeze({__proto__:null,parseUrl:Fh,getAbsoluteURL:V4,getFileExtension:Bh,isCrossOrigin:Mc});const B2=function(t,e){const n=new x.WebVTT.Parser(x,x.vttjs,x.WebVTT.StringDecoder()),i=[];n.oncue=function(r){e.addCue(r)},n.onparsingerror=function(r){i.push(r)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),i.length>0&&(x.console&&x.console.groupCollapsed&&x.console.groupCollapsed(`Text Track parsing errors for ${e.src}`),i.forEach(r=>Te.error(r)),x.console&&x.console.groupEnd&&x.console.groupEnd()),n.flush()},W2=function(t,e){const n={uri:t},i=Mc(t);i&&(n.cors=i);const r=e.tech_.crossOrigin()==="use-credentials";r&&(n.withCredentials=r),A5(n,Ze(this,function(s,a,o){if(s)return Te.error(s,a);e.loaded_=!0,typeof x.WebVTT!="function"?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],c=>{if(c.type==="vttjserror"){Te.error(`vttjs failed to load, stopping trying to process ${e.src}`);return}return B2(o,e)}):B2(o,e)}))};class fo extends Lh{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const n=xe(e,{kind:PN[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=F2[n.mode]||"disabled";const r=n.default;(n.kind==="metadata"||n.kind==="chapters")&&(i="hidden"),super(n),this.tech_=n.tech,this.cues_=[],this.activeCues_=[],this.preload_=this.tech_.preloadTextTracks!==!1;const s=new zl(this.cues_),a=new zl(this.activeCues_);let o=!1;this.timeupdateHandler=Ze(this,function(u={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){u.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1),u.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});const c=()=>{this.stopTracking()};this.tech_.one("dispose",c),i!=="disabled"&&this.startTracking(),Object.defineProperties(this,{default:{get(){return r},set(){}},mode:{get(){return i},set(u){F2[u]&&i!==u&&(i=u,!this.preload_&&i!=="disabled"&&this.cues.length===0&&W2(this.src,this),this.stopTracking(),i!=="disabled"&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?s:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(this.cues.length===0)return a;const u=this.tech_.currentTime(),d=[];for(let y=0,A=this.cues.length;y<A;y++){const T=this.cues[y];T.startTime<=u&&T.endTime>=u&&d.push(T)}if(o=!1,d.length!==this.activeCues_.length)o=!0;else for(let y=0;y<d.length;y++)this.activeCues_.indexOf(d[y])===-1&&(o=!0);return this.activeCues_=d,a.setCues_(this.activeCues_),a},set(){}}}),n.src?(this.src=n.src,this.preload_||(this.loaded_=!0),(this.preload_||n.kind!=="subtitles"&&n.kind!=="captions")&&W2(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let n=e;if(!("getCueAsHTML"in n)){n=new x.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const r in e)r in n||(n[r]=e[r]);n.id=e.id,n.originalCue_=e}const i=this.tech_.textTracks();for(let r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(n);this.cues_.push(n),this.cues.setCues_(this.cues_)}removeCue(e){let n=this.cues_.length;for(;n--;){const i=this.cues_[n];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(n,1),this.cues.setCues_(this.cues_);break}}}}fo.prototype.allowedEvents_={cuechange:"cuechange"};class w4 extends Lh{constructor(e={}){const n=xe(e,{kind:MN[e.kind]||""});super(n);let i=!1;Object.defineProperty(this,"enabled",{get(){return i},set(r){typeof r!="boolean"||r===i||(i=r,this.trigger("enabledchange"))}}),n.enabled&&(this.enabled=n.enabled),this.loaded_=!0}}class N4 extends Lh{constructor(e={}){const n=xe(e,{kind:GN[e.kind]||""});super(n);let i=!1;Object.defineProperty(this,"selected",{get(){return i},set(r){typeof r!="boolean"||r===i||(i=r,this.trigger("selectedchange"))}}),n.selected&&(this.selected=n.selected)}}class Ii extends rn{constructor(e={}){super();let n;const i=new fo(e);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get(){return n}},track:{get(){return i}}}),n=Ii.NONE,i.addEventListener("loadeddata",()=>{n=Ii.LOADED,this.trigger({type:"load",target:this})})}}Ii.prototype.allowedEvents_={load:"load"};Ii.NONE=0;Ii.LOADING=1;Ii.LOADED=2;Ii.ERROR=3;const pn={audio:{ListClass:DN,TrackClass:w4,capitalName:"Audio"},video:{ListClass:ON,TrackClass:N4,capitalName:"Video"},text:{ListClass:I4,TrackClass:fo,capitalName:"Text"}};Object.keys(pn).forEach(function(t){pn[t].getterName=`${t}Tracks`,pn[t].privateName=`${t}Tracks_`});const Ds={remoteText:{ListClass:I4,TrackClass:fo,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:XN,TrackClass:Ii,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Zt=Object.assign({},pn,Ds);Ds.names=Object.keys(Ds);pn.names=Object.keys(pn);Zt.names=[].concat(Ds.names).concat(pn.names);function HN(t,e,n,i,r={}){const s=t.textTracks();r.kind=e,n&&(r.label=n),i&&(r.language=i),r.tech=t;const a=new Zt.text.TrackClass(r);return s.addTrack(a),a}class Ee extends ${constructor(e={},n=function(){}){e.reportTouchActivity=!1,super(null,e,n),this.onDurationChange_=i=>this.onDurationChange(i),this.trackProgress_=i=>this.trackProgress(i),this.trackCurrentTime_=i=>this.trackCurrentTime(i),this.stopTrackingCurrentTime_=i=>this.stopTrackingCurrentTime(i),this.disposeSourceHandler_=i=>this.disposeSourceHandler(i),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),Zt.names.forEach(i=>{const r=Zt[i];e&&e[r.getterName]&&(this[r.privateName]=e[r.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(i=>{e[`native${i}Tracks`]===!1&&(this[`featuresNative${i}Tracks`]=!1)}),e.nativeCaptions===!1||e.nativeTextTracks===!1?this.featuresNativeTextTracks=!1:(e.nativeCaptions===!0||e.nativeTextTracks===!0)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=e.preloadTextTracks!==!1,this.autoRemoteTextTracks_=new Zt.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Ze(this,function(){const n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress"),this.bufferedPercent_=n,n===1&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return Nn(0,0)}bufferedPercent(){return R4(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(pn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){e=[].concat(e),e.forEach(n=>{const i=this[`${n}Tracks`]()||[];let r=i.length;for(;r--;){const s=i[r];n==="text"&&this.removeRemoteTextTrack(s),i.removeTrack(s)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let n=e.length;for(;n--;){const i=e[n];this.removeRemoteTextTrack(i)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return e!==void 0&&(this.error_=new He(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?Nn(0,0):Nn()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){pn.names.forEach(e=>{const n=pn[e],i=()=>{this.trigger(`${e}trackchange`)},r=this[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),this.on("dispose",()=>{r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})}addWebVttScript_(){if(!x.WebVTT)if(ee.body.contains(this.el())){if(!this.options_["vtt.js"]&&Ls(m2)&&Object.keys(m2).length>0){this.trigger("vttjsloaded");return}const e=ee.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),x.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),n=this.remoteTextTracks(),i=o=>e.addTrack(o.track),r=o=>e.removeTrack(o.track);n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();const s=()=>this.trigger("texttrackchange"),a=()=>{s();for(let o=0;o<e.length;o++){const c=e[o];c.removeEventListener("cuechange",s),c.mode==="showing"&&c.addEventListener("cuechange",s)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",function(){n.off("addtrack",i),n.off("removetrack",r),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(let o=0;o<e.length;o++)e[o].removeEventListener("cuechange",s)})}addTextTrack(e,n,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return HN(this,e,n,i)}createRemoteTextTrack(e){const n=xe(e,{tech:this});return new Ds.remoteTextEl.TrackClass(n)}addRemoteTextTrack(e={},n){const i=this.createRemoteTextTrack(e);return typeof n!="boolean"&&(n=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),n===!1&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(i.track)),i}removeRemoteTextTrack(e){const n=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(n),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const n=gn();return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",()=>{this.queuedHanders_.has(n)&&(this.queuedHanders_.delete(n),e())})):this.requestNamedAnimationFrame(n,e),n}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,n){return Ee.canPlayType(e.type)}static isTech(e){return e.prototype instanceof Ee||e instanceof Ee||e===Ee}static registerTech(e,n){if(Ee.techs_||(Ee.techs_={}),!Ee.isTech(n))throw new Error(`Tech ${e} must be a Tech`);if(!Ee.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!Ee.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Je(e),Ee.techs_[e]=n,Ee.techs_[Za(e)]=n,e!=="Tech"&&Ee.defaultTechOrder_.push(e),n}static getTech(e){if(e){if(Ee.techs_&&Ee.techs_[e])return Ee.techs_[e];if(e=Je(e),x&&x.videojs&&x.videojs[e])return Te.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),x.videojs[e]}}}Zt.names.forEach(function(t){const e=Zt[t];Ee.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}});Ee.prototype.featuresVolumeControl=!0;Ee.prototype.featuresMuteControl=!0;Ee.prototype.featuresFullscreenResize=!1;Ee.prototype.featuresPlaybackRate=!1;Ee.prototype.featuresProgressEvents=!1;Ee.prototype.featuresSourceset=!1;Ee.prototype.featuresTimeupdateEvents=!1;Ee.prototype.featuresNativeTextTracks=!1;Ee.prototype.featuresVideoFrameCallback=!1;Ee.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){let i=t.sourceHandlers;i||(i=t.sourceHandlers=[]),n===void 0&&(n=i.length),i.splice(n,0,e)},t.canPlayType=function(e){const n=t.sourceHandlers||[];let i;for(let r=0;r<n.length;r++)if(i=n[r].canPlayType(e),i)return i;return""},t.selectSourceHandler=function(e,n){const i=t.sourceHandlers||[];let r;for(let s=0;s<i.length;s++)if(r=i[s].canHandleSource(e,n),r)return i[s];return null},t.canPlaySource=function(e,n){const i=t.selectSourceHandler(e,n);return i?i.canHandleSource(e,n):""},["seekable","seeking","duration"].forEach(function(e){const n=this[e];typeof n=="function"&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):n.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){let n=t.selectSourceHandler(e,this.options_);n||(t.nativeSourceHandler?n=t.nativeSourceHandler:Te.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==t.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=n.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},t.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}};$.registerComponent("Tech",Ee);Ee.registerTech("Tech",Ee);Ee.defaultTechOrder_=[];const wr={},ql={},ec={};function jN(t,e){wr[t]=wr[t]||[],wr[t].push(e)}function JN(t,e,n){t.setTimeout(()=>br(e,wr[e.type],n,t),1)}function QN(t,e){t.forEach(n=>n.setTech&&n.setTech(e))}function KN(t,e,n){return t.reduceRight(Wh(n),e[n]())}function $N(t,e,n,i){return e[n](t.reduce(Wh(n),i))}function Z2(t,e,n,i=null){const r="call"+Je(n),s=t.reduce(Wh(r),i),a=s===ec,o=a?null:e[n](s);return eU(t,n,o,a),o}const zN={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},qN={setCurrentTime:1,setMuted:1,setVolume:1},D2={play:1,pause:1};function Wh(t){return(e,n)=>e===ec?ec:n[t]?n[t](e):e}function eU(t,e,n,i){for(let r=t.length-1;r>=0;r--){const s=t[r];s[e]&&s[e](i,n)}}function tU(t){ql.hasOwnProperty(t.id())&&delete ql[t.id()]}function nU(t,e){const n=ql[t.id()];let i=null;if(n==null)return i=e(t),ql[t.id()]=[[e,i]],i;for(let r=0;r<n.length;r++){const[s,a]=n[r];s===e&&(i=a)}return i===null&&(i=e(t),n.push([e,i])),i}function br(t={},e=[],n,i,r=[],s=!1){const[a,...o]=e;if(typeof a=="string")br(t,wr[a],n,i,r,s);else if(a){const c=nU(i,a);if(!c.setSource)return r.push(c),br(t,o,n,i,r,s);c.setSource(Object.assign({},t),function(u,d){if(u)return br(t,o,n,i,r,s);r.push(c),br(d,t.type===d.type?o:wr[d.type],n,i,r,s)})}else o.length?br(t,o,n,i,r,s):s?n(t,r):br(t,wr["*"],n,i,r,!0)}const iU={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},tc=function(t=""){const e=Bh(t);return iU[e.toLowerCase()]||""},rU=(t,e)=>{if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;const n=t.cache_.sources.filter(r=>r.src===e);if(n.length)return n[0].type;const i=t.$$("source");for(let r=0;r<i.length;r++){const s=i[r];if(s.type&&s.src&&s.src===e)return s.type}return tc(e)},U4=function(t){if(Array.isArray(t)){let e=[];t.forEach(function(n){n=U4(n),Array.isArray(n)?e=e.concat(n):ti(n)&&e.push(n)}),t=e}else typeof t=="string"&&t.trim()?t=[O2({src:t})]:ti(t)&&typeof t.src=="string"&&t.src&&t.src.trim()?t=[O2(t)]:t=[];return t};function O2(t){if(!t.type){const e=tc(t.src);e&&(t.type=e)}return t}var sU=`<svg xmlns="http://www.w3.org/2000/svg">
91
- <defs>
92
- <symbol viewBox="0 0 48 48" id="vjs-icon-play">
93
- <path d="M16 10v28l22-14z"></path>
94
- </symbol>
95
- <symbol viewBox="0 0 48 48" id="vjs-icon-pause">
96
- <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>
97
- </symbol>
98
- <symbol viewBox="0 0 48 48" id="vjs-icon-audio">
99
- <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>
100
- </symbol>
101
- <symbol viewBox="0 0 48 48" id="vjs-icon-captions">
102
- <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>
103
- </symbol>
104
- <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">
105
- <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>
106
- </symbol>
107
- <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">
108
- <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>
109
- </symbol>
110
- <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">
111
- <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>
112
- </symbol>
113
- <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">
114
- <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
115
- </symbol>
116
- <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">
117
- <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>
118
- </symbol>
119
- <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">
120
- <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>
121
- </symbol>
122
- <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">
123
- <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>
124
- </symbol>
125
- <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">
126
- <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>
127
- </symbol>
128
- <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">
129
- <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>
130
- </symbol>
131
- <symbol viewBox="0 0 24 24" id="vjs-icon-hd">
132
- <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>
133
- </symbol>
134
- <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">
135
- <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>
136
- </symbol>
137
- <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">
138
- <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>
139
- </symbol>
140
- <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">
141
- <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>
142
- </symbol>
143
- <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">
144
- <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>
145
- </symbol>
146
- <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">
147
- <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>
148
- </symbol>
149
- <symbol viewBox="0 0 48 48" id="vjs-icon-share">
150
- <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>
151
- </symbol>
152
- <symbol viewBox="0 0 48 48" id="vjs-icon-cog">
153
- <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>
154
- </symbol>
155
- <symbol viewBox="0 0 48 48" id="vjs-icon-square">
156
- <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>
157
- </symbol>
158
- <symbol viewBox="0 0 48 48" id="vjs-icon-circle">
159
- <circle cx="24" cy="24" r="20"></circle>
160
- </symbol>
161
- <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">
162
- <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
163
- </symbol>
164
- <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">
165
- <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>
166
- </symbol>
167
- <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">
168
- <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>
169
- </symbol>
170
- <symbol viewBox="0 0 48 48" id="vjs-icon-replay">
171
- <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>
172
- </symbol>
173
- <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">
174
- <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>
175
- </symbol>
176
- <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">
177
- <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>
178
- </symbol>
179
- <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">
180
- <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>
181
- </symbol>
182
- <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">
183
- <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>
184
- </symbol>
185
- <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">
186
- <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>
187
- </symbol>
188
- <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">
189
- <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>
190
- </symbol>
191
- <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">
192
- <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>
193
- </symbol>
194
- <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">
195
- <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>
196
- </symbol>
197
- <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">
198
- <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>
199
- </symbol>
200
- <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">
201
- <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>
202
- </symbol>
203
- <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">
204
- <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>
205
- </symbol>
206
- <symbol viewBox="0 0 48 48" id="vjs-icon-cast">
207
- <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>
208
- </symbol>
209
- <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">
210
- <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>
211
- </symbol>
212
- <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">
213
- <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>
214
- <path fill="none" d="M-1-3h24v24H-1z"></path>
215
- </symbol>
216
- <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">
217
- <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>
218
- </symbol>
219
- <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">
220
- <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>
221
- </symbol>
222
- <symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">
223
- <path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>
224
- </symbol>
225
- <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">
226
- <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>
227
- </symbol>
228
- <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">
229
- <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>
230
- </symbol>
231
- </defs>
232
- </svg>`;const X2=Jl?10009:Ql?461:8,qr={codes:{play:415,pause:19,ff:417,rw:412,back:X2},names:{415:"play",19:"pause",417:"ff",412:"rw",[X2]:"back"},isEventKey(t,e){return e=e.toLowerCase(),!!(this.names[t.keyCode]&&this.names[t.keyCode]===e)},getEventName(t){if(this.names[t.keyCode])return this.names[t.keyCode];if(this.codes[t.code]){const e=this.codes[t.code];return this.names[e]}return null}},G2=5;class aU extends rn{constructor(e){super(),this.player_=e,this.focusableComponents=[],this.isListening_=!1,this.isPaused_=!1,this.onKeyDown_=this.onKeyDown_.bind(this),this.lastFocusedComponent_=null}start(){this.isListening_||(this.player_.on("keydown",this.onKeyDown_),this.player_.on("modalKeydown",this.onKeyDown_),this.player_.on("loadedmetadata",()=>{this.focus(this.updateFocusableComponents()[0])}),this.player_.on("modalclose",()=>{this.refocusComponent()}),this.player_.on("focusin",this.handlePlayerFocus_.bind(this)),this.player_.on("focusout",this.handlePlayerBlur_.bind(this)),this.isListening_=!0,this.player_.errorDisplay&&this.player_.errorDisplay.on("aftermodalfill",()=>{this.updateFocusableComponents(),this.focusableComponents.length&&(this.focusableComponents.length>1?this.focusableComponents[1].focus():this.focusableComponents[0].focus())}))}stop(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}onKeyDown_(e){const n=e.originalEvent?e.originalEvent:e;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(n.key)){if(this.isPaused_)return;n.preventDefault();const i=n.key.substring(5).toLowerCase();this.move(i)}else if(qr.isEventKey(n,"play")||qr.isEventKey(n,"pause")||qr.isEventKey(n,"ff")||qr.isEventKey(n,"rw")){n.preventDefault();const i=qr.getEventName(n);this.performMediaAction_(i)}else qr.isEventKey(n,"Back")&&e.target&&typeof e.target.closeable=="function"&&e.target.closeable()&&(n.preventDefault(),e.target.close())}performMediaAction_(e){if(this.player_)switch(e){case"play":this.player_.paused()&&this.player_.play();break;case"pause":this.player_.paused()||this.player_.pause();break;case"ff":this.userSeek_(this.player_.currentTime()+G2);break;case"rw":this.userSeek_(this.player_.currentTime()-G2);break}}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(e){const n=e.relatedTarget;let i=null;const r=this.getCurrentComponent(e.target);n&&(i=!!n.closest(".video-js"),n.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(!e.currentTarget.contains(e.relatedTarget)&&!i||!n)&&(r&&r.name()==="CloseButton"?this.refocusComponent():(this.pause(),r&&r.el()&&(this.lastFocusedComponent_=r)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){const e=this.player_,n=[];function i(r){for(const s of r)s.hasOwnProperty("el_")&&s.getIsFocusable()&&s.getIsAvailableToBeFocused(s.el())&&n.push(s),s.hasOwnProperty("children_")&&s.children_.length>0&&i(s.children_)}return e.children_.forEach(r=>{if(r.hasOwnProperty("el_"))if(r.getIsFocusable&&r.getIsAvailableToBeFocused&&r.getIsFocusable()&&r.getIsAvailableToBeFocused(r.el())){n.push(r);return}else r.hasOwnProperty("children_")&&r.children_.length>0?i(r.children_):r.hasOwnProperty("items")&&r.items.length>0?i(r.items):this.findSuitableDOMChild(r)&&n.push(r);if(r.name_==="ErrorDisplay"&&r.opened_){const s=r.el_.querySelector(".vjs-errors-ok-button-container");s&&s.querySelectorAll("button").forEach((a,o)=>{n.push({name:()=>"ModalButton"+(o+1),el:()=>a,getPositions:()=>{const c=a.getBoundingClientRect(),u={x:c.x,y:c.y,width:c.width,height:c.height,top:c.top,right:c.right,bottom:c.bottom,left:c.left},d={x:c.left+c.width/2,y:c.top+c.height/2,width:0,height:0,top:c.top+c.height/2,right:c.left+c.width/2,bottom:c.top+c.height/2,left:c.left+c.width/2};return{boundingClientRect:u,center:d}},getIsAvailableToBeFocused:()=>!0,getIsFocusable:c=>!0,focus:()=>a.focus()})})}}),this.focusableComponents=n,this.focusableComponents}findSuitableDOMChild(e){function n(i){if(e.getIsFocusable(i)&&e.getIsAvailableToBeFocused(i))return i;for(let r=0;r<i.children.length;r++){const s=i.children[r],a=n(s);if(a)return a}return null}return e.el()?n(e.el()):null}getCurrentComponent(e){this.updateFocusableComponents();const n=e||document.activeElement;if(this.focusableComponents.length){for(const i of this.focusableComponents)if(i.el()===n)return i}}add(e){const n=[...this.focusableComponents];e.hasOwnProperty("el_")&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())&&n.push(e),this.focusableComponents=n,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}remove(e){for(let n=0;n<this.focusableComponents.length;n++)if(this.focusableComponents[n].name()===e.name()){this.focusableComponents.splice(n,1),this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents});return}}clear(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents}))}move(e){const n=this.getCurrentComponent();if(!n)return;const i=n.getPositions(),r=this.focusableComponents.filter(a=>a!==n&&this.isInDirection_(i.boundingClientRect,a.getPositions().boundingClientRect,e)),s=this.findBestCandidate_(i.center,r,e);s?this.focus(s):this.trigger({type:"endOfFocusableComponents",direction:e,focusedComponent:n})}findBestCandidate_(e,n,i){let r=1/0,s=null;for(const a of n){const o=a.getPositions().center,c=this.calculateDistance_(e,o,i);c<r&&(r=c,s=a)}return s}isInDirection_(e,n,i){switch(i){case"right":return n.left>=e.right;case"left":return n.right<=e.left;case"down":return n.top>=e.bottom;case"up":return n.bottom<=e.top;default:return!1}}refocusComponent(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(let e=0;e<this.focusableComponents.length;e++)if(this.focusableComponents[e].name()===this.lastFocusedComponent_.name()){this.focus(this.focusableComponents[e]);return}}else this.focus(this.updateFocusableComponents()[0])}focus(e){typeof e=="object"&&(e.getIsAvailableToBeFocused(e.el())?e.focus():this.findSuitableDOMChild(e)&&this.findSuitableDOMChild(e).focus())}calculateDistance_(e,n,i){const r=Math.abs(e.x-n.x),s=Math.abs(e.y-n.y);let a;switch(i){case"right":case"left":a=r+s*100;break;case"up":a=s*2+r*.5;break;case"down":a=s*5+r;break;default:a=r+s}return a}searchForTrackSelect_(){const e=this;for(const n of e.updateFocusableComponents())if(n.constructor.name==="TextTrackSelect"){e.focus(n);break}}}class oU extends ${constructor(e,n,i){const r=xe({createEl:!1},n);if(super(e,r,i),!n.playerOptions.sources||n.playerOptions.sources.length===0)for(let s=0,a=n.playerOptions.techOrder;s<a.length;s++){const o=Je(a[s]);let c=Ee.getTech(o);if(o||(c=$.getComponent(o)),c&&c.isSupported()){e.loadTech_(o);break}}else e.src(n.playerOptions.sources)}}$.registerComponent("MediaLoader",oU);class Pc extends ${constructor(e,n){super(e,n),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=i=>this.handleMouseOver(i),this.handleMouseOut_=i=>this.handleMouseOut(i),this.handleClick_=i=>this.handleClick(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.emitTapEvents(),this.enable()}createEl(e="div",n={},i={}){n=Object.assign({className:this.buildCSSClass(),tabIndex:0},n),e==="button"&&Te.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),i=Object.assign({role:"button"},i),this.tabIndex_=n.tabIndex;const r=ge(e,n,i);return this.player_.options_.experimentalSvgIcons||r.appendChild(ge("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=ge("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,n=this.el()){if(e===void 0)return this.controlText_||"Need Text";const i=this.localize(e);this.controlText_=e,qi(this.controlTextEl_,i),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&n.setAttribute("title",i)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){e.key===" "||e.key==="Enter"?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}$.registerComponent("ClickableComponent",Pc);class Jd extends Pc{constructor(e,n){super(e,n),this.update(),this.update_=i=>this.update(i),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return ge("div",{className:"vjs-poster"})}crossOrigin(e){if(typeof e>"u")return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;if(e!==null&&e!=="anonymous"&&e!=="use-credentials"){this.player_.log.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`);return}this.$("img")&&(this.$("img").crossOrigin=e)}update(e){const n=this.player().poster();this.setSrc(n),n?this.show():this.hide()}setSrc(e){if(!e){this.el_.textContent="";return}this.$("img")||this.el_.appendChild(ge("picture",{className:"vjs-poster",tabIndex:-1},{},ge("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?jn(this.player_.play()):this.player_.pause())}}Jd.prototype.crossorigin=Jd.prototype.crossOrigin;$.registerComponent("PosterImage",Jd);const cn="#222",M2="#ccc",lU={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function $u(t,e){let n;if(t.length===4)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else if(t.length===7)n=t.slice(1);else throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+e+")"}function Wn(t,e,n){try{t.style[e]=n}catch{return}}function P2(t){return t?`${t}px`:""}class cU extends ${constructor(e,n,i){super(e,n,i);const r=a=>this.updateDisplay(a),s=a=>{this.updateDisplayOverlay(),this.updateDisplay(a)};e.on("loadstart",a=>this.toggleDisplay(a)),e.on("texttrackchange",r),e.on("loadedmetadata",a=>{this.updateDisplayOverlay(),this.preselectTrack(a)}),e.ready(Ze(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks){this.hide();return}e.on("fullscreenchange",s),e.on("playerresize",s);const a=x.screen.orientation||x,o=x.screen.orientation?"change":"orientationchange";a.addEventListener(o,s),e.on("dispose",()=>a.removeEventListener(o,s));const c=this.options_.playerOptions.tracks||[];for(let u=0;u<c.length;u++)this.player_.addRemoteTextTrack(c[u],!0);this.preselectTrack()}))}preselectTrack(){const e={captions:1,subtitles:1},n=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let r,s,a;for(let o=0;o<n.length;o++){const c=n[o];i&&i.enabled&&i.language&&i.language===c.language&&c.kind in e?c.kind===i.kind?a=c:a||(a=c):i&&!i.enabled?(a=null,r=null,s=null):c.default&&(c.kind==="descriptions"&&!r?r=c:c.kind in e&&!s&&(s=c))}a?a.mode="showing":s?s.mode="showing":r&&(r.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){typeof x.WebVTT=="function"&&x.WebVTT.processCues(x,[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),n=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),n){const a=[];for(let o=0;o<e.length;++o){const c=e[o];c.mode==="showing"&&a.push(c)}this.updateForTrack(a);return}let i=null,r=null,s=e.length;for(;s--;){const a=e[s];a.mode==="showing"&&(a.kind==="descriptions"?i=a:r=a)}if(r?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(r)):i&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i)),!x.CSS.supports("inset","10px")){const a=this.el_,o=a.querySelectorAll(".vjs-text-track-cue"),c=this.player_.controlBar.el_.getBoundingClientRect().height,u=this.player_.el_.getBoundingClientRect().height;a.style="",Wn(a,"position","relative"),Wn(a,"height",u-c+"px"),Wn(a,"top","unset"),Kl?Wn(a,"bottom",u+"px"):Wn(a,"bottom","0px"),o.length>0&&o.forEach(d=>{if(d.style.inset){const y=d.style.inset.split(" ");y.length===3&&Object.assign(d.style,{top:y[0],right:y[1],bottom:y[2],left:"unset"})}})}}updateDisplayOverlay(){if(!this.player_.videoHeight()||!x.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),n=this.player_.currentHeight(),i=e/n,r=this.player_.videoWidth()/this.player_.videoHeight();let s=0,a=0;Math.abs(i-r)>.1&&(i>r?s=Math.round((e-n*r)/2):a=Math.round((n-e/r)/2)),Wn(this.el_,"insetInline",P2(s)),Wn(this.el_,"insetBlock",P2(a))}updateDisplayState(e){const n=this.player_.textTrackSettings.getValues(),i=e.activeCues;let r=i.length;for(;r--;){const s=i[r];if(!s)continue;const a=s.displayState;if(n.color&&(a.firstChild.style.color=n.color),n.textOpacity&&Wn(a.firstChild,"color",$u(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(a.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&Wn(a.firstChild,"backgroundColor",$u(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?Wn(a,"backgroundColor",$u(n.windowColor,n.windowOpacity)):a.style.backgroundColor=n.windowColor),n.edgeStyle&&(n.edgeStyle==="dropshadow"?a.firstChild.style.textShadow=`2px 2px 3px ${cn}, 2px 2px 4px ${cn}, 2px 2px 5px ${cn}`:n.edgeStyle==="raised"?a.firstChild.style.textShadow=`1px 1px ${cn}, 2px 2px ${cn}, 3px 3px ${cn}`:n.edgeStyle==="depressed"?a.firstChild.style.textShadow=`1px 1px ${M2}, 0 1px ${M2}, -1px -1px ${cn}, 0 -1px ${cn}`:n.edgeStyle==="uniform"&&(a.firstChild.style.textShadow=`0 0 4px ${cn}, 0 0 4px ${cn}, 0 0 4px ${cn}, 0 0 4px ${cn}`)),n.fontPercent&&n.fontPercent!==1){const o=x.parseFloat(a.style.fontSize);a.style.fontSize=o*n.fontPercent+"px",a.style.height="auto",a.style.top="auto"}n.fontFamily&&n.fontFamily!=="default"&&(n.fontFamily==="small-caps"?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=lU[n.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),typeof x.WebVTT!="function"||e.every(i=>!i.activeCues))return;const n=[];for(let i=0;i<e.length;++i){const r=e[i];for(let s=0;s<r.activeCues.length;++s)n.push(r.activeCues[s])}x.WebVTT.processCues(x,n,this.el_);for(let i=0;i<e.length;++i){const r=e[i];for(let s=0;s<r.activeCues.length;++s){const a=r.activeCues[s].displayState;Vr(a,"vjs-text-track-cue","vjs-text-track-cue-"+(r.language?r.language:i)),r.language&&Fs(a,"lang",r.language)}this.player_.textTrackSettings&&this.updateDisplayState(r)}}}$.registerComponent("TextTrackDisplay",cU);class uU extends ${createEl(){const e=this.player_.isAudio(),n=this.localize(e?"Audio Player":"Video Player"),i=ge("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}}$.registerComponent("LoadingSpinner",uU);class Nt extends Pc{createEl(e,n={},i={}){e="button",n=Object.assign({className:this.buildCSSClass()},n),i=Object.assign({type:"button"},i);const r=ge(e,n,i);return this.player_.options_.experimentalSvgIcons||r.appendChild(ge("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}addChild(e,n={}){const i=this.constructor.name;return Te.warn(`Adding an actionable (user controllable) child to a Button (${i}) is not supported; use a ClickableComponent instead.`),$.prototype.addChild.call(this,e,n)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){if(e.key===" "||e.key==="Enter"){e.stopPropagation();return}super.handleKeyDown(e)}}$.registerComponent("Button",Nt);class k4 extends Nt{constructor(e,n){super(e,n),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",i=>this.handleMouseDown(i))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const n=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e){jn(n),this.player_.tech(!0)&&this.player_.tech(!0).focus();return}const i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(!r){this.player_.tech(!0).focus();return}const s=()=>r.focus();Da(n)?n.then(s,()=>{}):this.setTimeout(s,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}k4.prototype.controlText_="Play Video";$.registerComponent("BigPlayButton",k4);class dU extends Nt{constructor(e,n){super(e,n),this.setIcon("cancel"),this.controlText(n&&n.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){e.key==="Escape"?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}$.registerComponent("CloseButton",dU);class x4 extends Nt{constructor(e,n={}){super(e,n),n.replay=n.replay===void 0||n.replay,this.setIcon("play"),this.on(e,"play",i=>this.handlePlay(i)),this.on(e,"pause",i=>this.handlePause(i)),n.replay&&this.on(e,"ended",i=>this.handleEnded(i))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?jn(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",n=>this.handleSeeked(n))}}x4.prototype.controlText_="Play";$.registerComponent("PlayToggle",x4);class Hs extends ${constructor(e,n){super(e,n),this.on(e,["timeupdate","ended","seeking"],i=>this.update(i)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),n=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),i=ge("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)} `},{role:"presentation"});return n.appendChild(i),this.contentEl_=ge("span",{className:`${e}-display`},{role:"presentation"}),n.appendChild(this.contentEl_),n}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){!this.player_.options_.enableSmoothSeeking&&e.type==="seeking"||this.updateContent(e)}updateTextNode_(e=0){e=xr(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let n=this.textNode_;n&&this.contentEl_.firstChild!==n&&(n=null,Te.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=ee.createTextNode(this.formattedTime_),this.textNode_&&(n?this.contentEl_.replaceChild(this.textNode_,n):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}Hs.prototype.labelText_="Time";Hs.prototype.controlText_="Time";$.registerComponent("TimeDisplay",Hs);class Zh extends Hs{buildCSSClass(){return"vjs-current-time"}updateContent(e){let n;this.player_.ended()?n=this.player_.duration():n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(n)}}Zh.prototype.labelText_="Current Time";Zh.prototype.controlText_="Current Time";$.registerComponent("CurrentTimeDisplay",Zh);class Dh extends Hs{constructor(e,n){super(e,n);const i=r=>this.updateContent(r);this.on(e,"durationchange",i),this.on(e,"loadstart",i),this.on(e,"loadedmetadata",i)}buildCSSClass(){return"vjs-duration"}updateContent(e){const n=this.player_.duration();this.updateTextNode_(n)}}Dh.prototype.labelText_="Duration";Dh.prototype.controlText_="Duration";$.registerComponent("DurationDisplay",Dh);class hU extends ${createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=super.createEl("div"),i=super.createEl("span",{textContent:"/"});return n.appendChild(i),e.appendChild(n),e}}$.registerComponent("TimeDivider",hU);class Oh extends Hs{constructor(e,n){super(e,n),this.on(e,"durationchange",i=>this.updateContent(i))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return this.options_.displayNegative!==!1&&e.insertBefore(ge("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if(typeof this.player_.duration()!="number")return;let n;this.player_.ended()?n=0:this.player_.remainingTimeDisplay?n=this.player_.remainingTimeDisplay():n=this.player_.remainingTime(),this.updateTextNode_(n)}}Oh.prototype.labelText_="Remaining Time";Oh.prototype.controlText_="Remaining Time";$.registerComponent("RemainingTimeDisplay",Oh);class pU extends ${constructor(e,n){super(e,n),this.updateShowing(),this.on(this.player(),"durationchange",i=>this.updateShowing(i))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=ge("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(ge("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")} `})),this.contentEl_.appendChild(ee.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}}$.registerComponent("LiveDisplay",pU);class L4 extends Nt{constructor(e,n){super(e,n),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=i=>this.updateLiveEdgeStatus(i),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=ge("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}L4.prototype.controlText_="Seek to live, currently playing live";$.registerComponent("SeekToLive",L4);function yo(t,e,n){return t=Number(t),Math.min(n,Math.max(e,isNaN(t)?e:t))}var mU=Object.freeze({__proto__:null,clamp:yo});class Xh extends ${constructor(e,n){super(e,n),this.handleMouseDown_=i=>this.handleMouseDown(i),this.handleMouseUp_=i=>this.handleMouseUp(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.handleClick_=i=>this.handleClick(i),this.handleMouseMove_=i=>this.handleMouseMove(i),this.update_=i=>this.update(i),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,n={},i={}){return n.className=n.className+" vjs-slider",n=Object.assign({tabIndex:0},n),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),super.createEl(e,n,i)}handleMouseDown(e){const n=this.bar.el_.ownerDocument;e.type==="mousedown"&&e.preventDefault(),e.type==="touchstart"&&!ni&&e.preventDefault(),o4(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(n,"mousemove",this.handleMouseMove_),this.on(n,"mouseup",this.handleMouseUp_),this.on(n,"touchmove",this.handleMouseMove_),this.on(n,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const n=this.bar.el_.ownerDocument;l4(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(n,"mousemove",this.handleMouseMove_),this.off(n,"mouseup",this.handleMouseUp_),this.off(n,"touchmove",this.handleMouseMove_),this.off(n,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const n=this.vertical()?"height":"width";this.bar.el().style[n]=(e*100).toFixed(2)+"%"})),e}getProgress(){return Number(yo(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const n=Zc(this.el_,e);return this.vertical()?n.y:n.x}handleKeyDown(e){const n=this.options_.playerOptions.spatialNavigation,i=n&&n.enabled,r=n&&n.horizontalSeek;i?r&&e.key==="ArrowLeft"||!r&&e.key==="ArrowDown"?(e.preventDefault(),e.stopPropagation(),this.stepBack()):r&&e.key==="ArrowRight"||!r&&e.key==="ArrowUp"?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e):e.key==="ArrowLeft"||e.key==="ArrowDown"?(e.preventDefault(),e.stopPropagation(),this.stepBack()):e.key==="ArrowUp"||e.key==="ArrowRight"?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(e===void 0)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}$.registerComponent("Slider",Xh);const zu=(t,e)=>yo(t/e*100,0,100).toFixed(2)+"%";class gU extends ${constructor(e,n){super(e,n),this.partEls_=[],this.on(e,"progress",i=>this.update(i))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),n=ge("span",{className:"vjs-control-text"}),i=ge("span",{textContent:this.localize("Loaded")}),r=ee.createTextNode(": ");return this.percentageEl_=ge("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const n=this.player_.liveTracker,i=this.player_.buffered(),r=n&&n.isLive()?n.seekableEnd():this.player_.duration(),s=this.player_.bufferedEnd(),a=this.partEls_,o=zu(s,r);this.percent_!==o&&(this.el_.style.width=o,qi(this.percentageEl_,o),this.percent_=o);for(let c=0;c<i.length;c++){const u=i.start(c),d=i.end(c);let y=a[c];y||(y=this.el_.appendChild(ge()),a[c]=y),!(y.dataset.start===u&&y.dataset.end===d)&&(y.dataset.start=u,y.dataset.end=d,y.style.left=zu(u,s),y.style.width=zu(d-u,s))}for(let c=a.length;c>i.length;c--)this.el_.removeChild(a[c-1]);a.length=i.length})}}$.registerComponent("LoadProgressBar",gU);class fU extends ${constructor(e,n){super(e,n),this.update=ii(Ze(this,this.update),fn)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,n,i){const r=no(this.el_),s=Bs(this.player_.el()),a=e.width*n;if(!s||!r)return;let o=e.left-s.left+a,c=e.width-a+(s.right-e.right);c||(c=e.width-a,o=a);let u=r.width/2;o<u?u+=u-o:c<u&&(u=c),u<0?u=0:u>r.width&&(u=r.width),u=Math.round(u),this.el_.style.right=`-${u}px`,this.write(i)}write(e){qi(this.el_,e)}updateTime(e,n,i,r){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let s;const a=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const o=this.player_.liveTracker.liveWindow(),c=o-n*o;s=(c<1?"":"-")+xr(c,o)}else s=xr(i,a);this.update(e,n,s),r&&r()})}}$.registerComponent("TimeTooltip",fU);class Gh extends ${constructor(e,n){super(e,n),this.setIcon("circle"),this.update=ii(Ze(this,this.update),fn)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,n){const i=this.getChild("timeTooltip");if(!i)return;const r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,n,r)}}Gh.prototype.options_={children:[]};!Vt&&!kn&&Gh.prototype.options_.children.push("timeTooltip");$.registerComponent("PlayProgressBar",Gh);class F4 extends ${constructor(e,n){super(e,n),this.update=ii(Ze(this,this.update),fn)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,n){const i=n*this.player_.duration();this.getChild("timeTooltip").updateTime(e,n,i,()=>{this.el_.style.left=`${e.width*n}px`})}}F4.prototype.options_={children:["timeTooltip"]};$.registerComponent("MouseTimeDisplay",F4);const ll=5,Y2=12;class Yc extends Xh{constructor(e,n){n=xe(Yc.prototype.options_,n),n.children=[...n.children];const i=e.options_.disableSeekWhileScrubbingOnMobile&&(Vt||kn);(!Vt&&!kn||i)&&n.children.splice(1,0,"mouseTimeDisplay"),super(e,n),this.shouldDisableSeekWhileScrubbingOnMobile_=i,this.pendingSeekTime_=null,this.setEventHandlers_()}setEventHandlers_(){this.update_=Ze(this,this.update),this.update=ii(this.update_,fn),this.on(this.player_,["durationchange","timeupdate"],this.update),this.on(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in ee&&"visibilityState"in ee&&this.on(ee,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){ee.visibilityState==="hidden"?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,fn))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&e.type!=="ended"||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if(ee.visibilityState==="hidden")return;const n=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const i=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),r=this.player_.liveTracker;let s=this.player_.duration();r&&r.isLive()&&(s=this.player_.liveTracker.liveCurrentTime()),this.percent_!==n&&(this.el_.setAttribute("aria-valuenow",(n*100).toFixed(2)),this.percent_=n),(this.currentTime_!==i||this.duration_!==s)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[xr(i,s),xr(s,s)],"{1} of {2}")),this.currentTime_=i,this.duration_=s),this.bar&&this.bar.update(Bs(this.el()),this.getProgress())}),n}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){if(this.pendingSeekTime_)return this.pendingSeekTime_/this.player_.duration();const e=this.getCurrentTime_();let n;const i=this.player_.liveTracker;return i&&i.isLive()?(n=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(n=1)):n=e/this.player_.duration(),n}handleMouseDown(e){io(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.shouldDisableSeekWhileScrubbingOnMobile_||this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,n=!1){if(!io(e)||isNaN(this.player_.duration()))return;!n&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);let i;const r=this.calculateDistance(e),s=this.player_.liveTracker;if(!s||!s.isLive())i=r*this.player_.duration(),i===this.player_.duration()&&(i=i-.1);else{if(r>=.99){s.seekToLiveEdge();return}const a=s.seekableStart(),o=s.liveCurrentTime();if(i=a+r*s.liveWindow(),i>=o&&(i=o),i<=a&&(i=a+.1),i===1/0)return}this.shouldDisableSeekWhileScrubbingOnMobile_?this.pendingSeekTime_=i:this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.pendingSeekTime_&&(this.userSeek_(this.pendingSeekTime_),this.pendingSeekTime_=null),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?jn(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+ll)}stepBack(){this.userSeek_(this.player_.currentTime()-ll)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const n=this.player_.liveTracker;if(e.key===" "||e.key==="Enter")e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(e.key==="Home")e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(e.key==="End")e.preventDefault(),e.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e.key)){e.preventDefault(),e.stopPropagation();const i=parseInt(e.key,10)*.1;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else e.key==="PageDown"?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-ll*Y2)):e.key==="PageUp"?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+ll*Y2)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["durationchange","timeupdate"],this.update),this.off(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in ee&&"visibilityState"in ee&&this.off(ee,"visibilitychange",this.toggleVisibility_),super.dispose()}}Yc.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};$.registerComponent("SeekBar",Yc);class B4 extends ${constructor(e,n){super(e,n),this.handleMouseMove=ii(Ze(this,this.handleMouseMove),fn),this.throttledHandleMouseSeek=ii(Ze(this,this.handleMouseSeek),fn),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.handleMouseDownHandler_=i=>this.handleMouseDown(i),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const n=this.getChild("seekBar");if(!n)return;const i=n.getChild("playProgressBar"),r=n.getChild("mouseTimeDisplay");if(!i&&!r)return;const s=n.el(),a=no(s);let o=Zc(s,e).x;o=yo(o,0,1),r&&r.update(a,o),i&&i.update(a,n.getProgress())}handleMouseSeek(e){const n=this.getChild("seekBar");n&&n.handleMouseMove(e)}enabled(){return this.enabled_}disable(){if(this.children().forEach(e=>e.disable&&e.disable()),!!this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&jn(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),!this.enabled()&&(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const n=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(n,"mousemove",this.throttledHandleMouseSeek),this.on(n,"touchmove",this.throttledHandleMouseSeek),this.on(n,"mouseup",this.handleMouseUpHandler_),this.on(n,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}B4.prototype.options_={children:["seekBar"]};$.registerComponent("ProgressControl",B4);class W4 extends Nt{constructor(e,n){super(e,n),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],i=>this.handlePictureInPictureChange(i)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],i=>this.handlePictureInPictureEnabledChange(i)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){if(!(this.player_.currentType().substring(0,5)==="audio"||this.player_.audioPosterMode()||this.player_.audioOnlyMode())){this.show();return}this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()}handlePictureInPictureEnabledChange(){ee.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in x?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){typeof ee.exitPictureInPicture=="function"&&super.show()}}W4.prototype.controlText_="Picture-in-Picture";$.registerComponent("PictureInPictureToggle",W4);class Z4 extends Nt{constructor(e,n){super(e,n),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",i=>this.handleFullscreenChange(i)),ee[e.fsApi_.fullscreenEnabled]===!1&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}Z4.prototype.controlText_="Fullscreen";$.registerComponent("FullscreenToggle",Z4);const yU=function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})};class bU extends ${createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}$.registerComponent("VolumeLevel",bU);class EU extends ${constructor(e,n){super(e,n),this.update=ii(Ze(this,this.update),fn)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,n,i,r){if(!i){const s=Bs(this.el_),a=Bs(this.player_.el()),o=e.width*n;if(!a||!s)return;const c=e.left-a.left+o,u=e.width-o+(a.right-e.right);let d=s.width/2;c<d?d+=d-c:u<d&&(d=u),d<0?d=0:d>s.width&&(d=s.width),this.el_.style.right=`-${d}px`}this.write(`${r}%`)}write(e){qi(this.el_,e)}updateVolume(e,n,i,r,s){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,n,i,r.toFixed(0)),s&&s()})}}$.registerComponent("VolumeLevelTooltip",EU);class D4 extends ${constructor(e,n){super(e,n),this.update=ii(Ze(this,this.update),fn)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,n,i){const r=100*n;this.getChild("volumeLevelTooltip").updateVolume(e,n,i,r,()=>{i?this.el_.style.bottom=`${e.height*n}px`:this.el_.style.left=`${e.width*n}px`})}}D4.prototype.options_={children:["volumeLevelTooltip"]};$.registerComponent("MouseVolumeLevelDisplay",D4);class Hc extends Xh{constructor(e,n){super(e,n),this.on("slideractive",i=>this.updateLastVolume_(i)),this.on(e,"volumechange",i=>this.updateARIAAttributes(i)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){io(e)&&super.handleMouseDown(e)}handleMouseMove(e){const n=this.getChild("mouseVolumeLevelDisplay");if(n){const i=this.el(),r=Bs(i),s=this.vertical();let a=Zc(i,e);a=s?a.y:a.x,a=yo(a,0,1),n.update(r,a,s)}io(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const n=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",n),this.el_.setAttribute("aria-valuetext",n+"%")}volumeAsPercentage_(){return Math.round(this.player_.volume()*100)}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{this.player_.volume()===0&&this.player_.lastVolume_(e)})}}Hc.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};!Vt&&!kn&&Hc.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay");Hc.prototype.playerEvent="volumechange";$.registerComponent("VolumeBar",Hc);class O4 extends ${constructor(e,n={}){n.vertical=n.vertical||!1,(typeof n.volumeBar>"u"||Ls(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),super(e,n),yU(this,e),this.throttledHandleMouseMove=ii(Ze(this,this.handleMouseMove),fn),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.on("mousedown",i=>this.handleMouseDown(i)),this.on("touchstart",i=>this.handleMouseDown(i)),this.on("mousemove",i=>this.handleMouseMove(i)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseMove),this.on(n,"touchmove",this.throttledHandleMouseMove),this.on(n,"mouseup",this.handleMouseUpHandler_),this.on(n,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseMove),this.off(n,"touchmove",this.throttledHandleMouseMove),this.off(n,"mouseup",this.handleMouseUpHandler_),this.off(n,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}O4.prototype.options_={children:["volumeBar"]};$.registerComponent("VolumeControl",O4);const TU=function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})};class X4 extends Nt{constructor(e,n){super(e,n),TU(this,e),this.on(e,["loadstart","volumechange"],i=>this.update(i))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const n=this.player_.volume(),i=this.player_.lastVolume_();if(n===0){const r=i<.1?.1:i;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let n=3;this.setIcon("volume-high"),Vt&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),e===0||this.player_.muted()?(this.setIcon("volume-mute"),n=0):e<.33?(this.setIcon("volume-low"),n=1):e<.67&&(this.setIcon("volume-medium"),n=2),Bc(this.el_,[0,1,2,3].reduce((i,r)=>i+`${r?" ":""}vjs-vol-${r}`,"")),Vr(this.el_,`vjs-vol-${n}`)}updateControlText_(){const e=this.player_.muted()||this.player_.volume()===0?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}X4.prototype.controlText_="Mute";$.registerComponent("MuteToggle",X4);class G4 extends ${constructor(e,n={}){typeof n.inline<"u"?n.inline=n.inline:n.inline=!0,(typeof n.volumeControl>"u"||Ls(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),super(e,n),this.handleKeyPressHandler_=i=>this.handleKeyPress(i),this.on(e,["loadstart"],i=>this.volumePanelState_(i)),this.on(this.muteToggle,"keyup",i=>this.handleKeyPress(i)),this.on(this.volumeControl,"keyup",i=>this.handleVolumeControlKeyUp(i)),this.on("keydown",i=>this.handleKeyPress(i)),this.on("mouseover",i=>this.handleMouseOver(i)),this.on("mouseout",i=>this.handleMouseOut(i)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){e.key==="Escape"&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),nn(ee,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),wt(ee,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){e.key==="Escape"&&this.handleMouseOut()}}G4.prototype.options_={children:["muteToggle","volumeControl"]};$.registerComponent("VolumePanel",G4);class M4 extends Nt{constructor(e,n){super(e,n),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const n=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive()?i.seekableEnd():this.player_.duration();let s;n+this.skipTime<=r?s=n+this.skipTime:s=r,this.player_.currentTime(s)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}M4.prototype.controlText_="Skip Forward";$.registerComponent("SkipForward",M4);class P4 extends Nt{constructor(e,n){super(e,n),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const n=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive()&&i.seekableStart();let s;r&&n-this.skipTime<=r?s=r:n>=this.skipTime?s=n-this.skipTime:s=0,this.player_.currentTime(s)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}P4.prototype.controlText_="Skip Backward";$.registerComponent("SkipBackward",P4);class Y4 extends ${constructor(e,n){super(e,n),n&&(this.menuButton_=n.menuButton),this.focusedChild_=-1,this.on("keydown",i=>this.handleKeyDown(i)),this.boundHandleBlur_=i=>this.handleBlur(i),this.boundHandleTapClick_=i=>this.handleTapClick(i)}addEventListenerForItem(e){e instanceof $&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof $&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){typeof e=="string"&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const n=this.addChild(e);n&&this.addEventListenerForItem(n)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=ge(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const n=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),nn(n,"click",function(i){i.preventDefault(),i.stopImmediatePropagation()}),n}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const n=e.relatedTarget||ee.activeElement;if(!this.children().some(i=>i.el()===n)){const i=this.menuButton_;i&&i.buttonPressed_&&n!==i.el().firstChild&&i.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const n=this.children();if(!Array.isArray(n))return;const i=n.filter(r=>r.el()===e.target)[0];if(!i)return;i.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus()}}handleKeyDown(e){e.key==="ArrowLeft"||e.key==="ArrowDown"?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(e.key==="ArrowRight"||e.key==="ArrowUp")&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const n=this.children().slice();n.length&&n[0].hasClass("vjs-menu-title")&&n.shift(),n.length>0&&(e<0?e=0:e>=n.length&&(e=n.length-1),this.focusedChild_=e,n[e].el_.focus())}}$.registerComponent("Menu",Y4);class Mh extends ${constructor(e,n={}){super(e,n),this.menuButton_=new Nt(e,n),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=Nt.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const r=s=>this.handleClick(s);this.handleMenuKeyUp_=s=>this.handleMenuKeyUp(s),this.on(this.menuButton_,"tap",r),this.on(this.menuButton_,"click",r),this.on(this.menuButton_,"keydown",s=>this.handleKeyDown(s)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),nn(ee,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",s=>this.handleMouseLeave(s)),this.on("keydown",s=>this.handleSubmenuKeyDown(s))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new Y4(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const n=ge("li",{className:"vjs-menu-title",textContent:Je(this.options_.title),tabIndex:-1}),i=new $(this.player_,{el:n});e.addItem(i)}if(this.items=this.createItems(),this.items)for(let n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";this.options_.inline===!0?e+="-inline":e+="-popup";const n=Nt.prototype.buildCSSClass();return`vjs-menu-button ${e} ${n} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return this.options_.inline===!0?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,n=this.menuButton_.el()){return this.menuButton_.controlText(e,n)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),wt(ee,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){e.key==="Escape"||e.key==="Tab"?(this.buttonPressed_&&this.unpressButton(),!e.key==="Tab"&&(e.preventDefault(),this.menuButton_.focus())):(e.key==="Up"||e.key==="Down"&&!(this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){(e.key==="Escape"||e.key==="Tab")&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){(e.key==="Escape"||e.key==="Tab")&&(this.buttonPressed_&&this.unpressButton(),!e.key==="Tab"&&(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Vt&&n4())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}$.registerComponent("MenuButton",Mh);class Ph extends Mh{constructor(e,n){const i=n.tracks;if(super(e,n),this.items.length<=1&&this.hide(),!i)return;const r=Ze(this,this.update);i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),i.addEventListener("labelchange",r),this.player_.on("ready",r),this.player_.on("dispose",function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r),i.removeEventListener("labelchange",r)})}}$.registerComponent("TrackButton",Ph);class bo extends Pc{constructor(e,n){super(e,n),this.selectable=n.selectable,this.isSelected_=n.selected||!1,this.multiSelectable=n.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,n,i){this.nonIconControl=!0;const r=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},n),i),s=ge("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?r.appendChild(s):r.replaceChild(s,r.querySelector(".vjs-icon-placeholder")),r}handleKeyDown(e){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(e.key)||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}$.registerComponent("MenuItem",bo);class Eo extends bo{constructor(e,n){const i=n.track,r=e.textTracks();n.label=i.label||i.language||"Unknown",n.selected=i.mode==="showing",super(e,n),this.track=i,this.kinds=(n.kinds||[n.kind||this.track.kind]).filter(Boolean);const s=(...o)=>{this.handleTracksChange.apply(this,o)},a=(...o)=>{this.handleSelectedLanguageChange.apply(this,o)};if(e.on(["loadstart","texttrackchange"],s),r.addEventListener("change",s),r.addEventListener("selectedlanguagechange",a),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],s),r.removeEventListener("change",s),r.removeEventListener("selectedlanguagechange",a)}),r.onchange===void 0){let o;this.on(["tap","click"],function(){if(typeof x.Event!="object")try{o=new x.Event("change")}catch{}o||(o=ee.createEvent("Event"),o.initEvent("change",!0,!0)),r.dispatchEvent(o)})}this.handleTracksChange()}handleClick(e){const n=this.track,i=this.player_.textTracks();if(super.handleClick(e),!!i)for(let r=0;r<i.length;r++){const s=i[r];this.kinds.indexOf(s.kind)!==-1&&(s===n?s.mode!=="showing"&&(s.mode="showing"):s.mode!=="disabled"&&(s.mode="disabled"))}}handleTracksChange(e){const n=this.track.mode==="showing";n!==this.isSelected_&&this.selected(n)}handleSelectedLanguageChange(e){if(this.track.mode==="showing"){const n=this.player_.cache_.selectedLanguage;if(n&&n.enabled&&n.language===this.track.language&&n.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}$.registerComponent("TextTrackMenuItem",Eo);class H4 extends Eo{constructor(e,n){n.track={player:e,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,super(e,n)}handleTracksChange(e){const n=this.player().textTracks();let i=!0;for(let r=0,s=n.length;r<s;r++){const a=n[r];if(this.options_.kinds.indexOf(a.kind)>-1&&a.mode==="showing"){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const n=this.player().textTracks();let i=!0;for(let r=0,s=n.length;r<s;r++){const a=n[r];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&a.mode==="showing"){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}$.registerComponent("OffTextTrackMenuItem",H4);class js extends Ph{constructor(e,n={}){n.tracks=e.textTracks(),super(e,n)}createItems(e=[],n=Eo){let i;this.label_&&(i=`${this.label_} off`),e.push(new H4(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let s=0;s<r.length;s++){const a=r[s];if(this.kinds_.indexOf(a.kind)>-1){const o=new n(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass(`vjs-${a.kind}-menu-item`),e.push(o)}}return e}}$.registerComponent("TextTrackButton",js);class j4 extends bo{constructor(e,n){const i=n.track,r=n.cue,s=e.currentTime();n.selectable=!0,n.multiSelectable=!1,n.label=r.text,n.selected=r.startTime<=s&&s<r.endTime,super(e,n),this.track=i,this.cue=r}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}$.registerComponent("ChaptersTrackMenuItem",j4);class Yh extends js{constructor(e,n,i){super(e,n,i),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach(r=>{r.selected(this.track_.activeCues[0]===r.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&e.track.kind!=="chapters")return;const n=this.findChaptersTrack();n!==this.track_?(this.setTrack(n),super.update()):(!this.items||n&&n.cues&&n.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.kind===this.kind_)return i}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Je(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const n=this.track_.cues;if(!n)return e;for(let i=0,r=n.length;i<r;i++){const s=n[i],a=new j4(this.player_,{track:this.track_,cue:s});e.push(a)}return e}}Yh.prototype.kind_="chapters";Yh.prototype.controlText_="Chapters";$.registerComponent("ChaptersButton",Yh);class Hh extends js{constructor(e,n,i){super(e,n,i),this.setIcon("audio-description");const r=e.textTracks(),s=Ze(this,this.handleTracksChange);r.addEventListener("change",s),this.on("dispose",function(){r.removeEventListener("change",s)})}handleTracksChange(e){const n=this.player().textTracks();let i=!1;for(let r=0,s=n.length;r<s;r++){const a=n[r];if(a.kind!==this.kind_&&a.mode==="showing"){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}Hh.prototype.kind_="descriptions";Hh.prototype.controlText_="Descriptions";$.registerComponent("DescriptionsButton",Hh);class jh extends js{constructor(e,n,i){super(e,n,i),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}jh.prototype.kind_="subtitles";jh.prototype.controlText_="Subtitles";$.registerComponent("SubtitlesButton",jh);class Jh extends Eo{constructor(e,n){n.track={player:e,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",super(e,n),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+n.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}$.registerComponent("CaptionSettingsMenuItem",Jh);class Qh extends js{constructor(e,n,i){super(e,n,i),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new Jh(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}Qh.prototype.kind_="captions";Qh.prototype.controlText_="Captions";$.registerComponent("CaptionsButton",Qh);class J4 extends Eo{createEl(e,n,i){const r=super.createEl(e,n,i),s=r.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="captions"&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",r):s.appendChild(ge("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(ge("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),r}}$.registerComponent("SubsCapsMenuItem",J4);class Kh extends js{constructor(e,n={}){super(e,n),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(Je(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new Jh(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,J4),e}}Kh.prototype.kinds_=["captions","subtitles"];Kh.prototype.controlText_="Subtitles";$.registerComponent("SubsCapsButton",Kh);class Q4 extends bo{constructor(e,n){const i=n.track,r=e.audioTracks();n.label=i.label||i.language||"Unknown",n.selected=i.enabled,super(e,n),this.track=i,this.addClass(`vjs-${i.kind}-menu-item`);const s=(...a)=>{this.handleTracksChange.apply(this,a)};r.addEventListener("change",s),this.on("dispose",()=>{r.removeEventListener("change",s)})}createEl(e,n,i){const r=super.createEl(e,n,i),s=r.querySelector(".vjs-menu-item-text");return["main-desc","descriptions"].indexOf(this.options_.track.kind)>=0&&(s.appendChild(ge("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(ge("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const n=this.player_.audioTracks();for(let i=0;i<n.length;i++){const r=n[i];r!==this.track&&(r.enabled=r===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}$.registerComponent("AudioTrackMenuItem",Q4);class K4 extends Ph{constructor(e,n={}){n.tracks=e.audioTracks(),super(e,n),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const n=this.player_.audioTracks();for(let i=0;i<n.length;i++){const r=n[i];e.push(new Q4(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e}}K4.prototype.controlText_="Audio Track";$.registerComponent("AudioTrackButton",K4);class $h extends bo{constructor(e,n){const i=n.rate,r=parseFloat(i,10);n.label=i,n.selected=r===e.playbackRate(),n.selectable=!0,n.multiSelectable=!1,super(e,n),this.label=i,this.rate=r,this.on(e,"ratechange",s=>this.update(s))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}$h.prototype.contentElType="button";$.registerComponent("PlaybackRateMenuItem",$h);class $4 extends Mh{constructor(e,n){super(e,n),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",i=>this.updateVisibility(i)),this.on(e,"ratechange",i=>this.updateLabel(i)),this.on(e,"playbackrateschange",i=>this.handlePlaybackRateschange(i))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=ge("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),n=[];for(let i=e.length-1;i>=0;i--)n.push(new $h(this.player(),{rate:e[i]+"x"}));return n}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}$4.prototype.controlText_="Playback Rate";$.registerComponent("PlaybackRateMenuButton",$4);class z4 extends ${buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",n={},i={}){return n.className||(n.className=this.buildCSSClass()),super.createEl(e,n,i)}}$.registerComponent("Spacer",z4);class vU extends z4{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}}$.registerComponent("CustomControlSpacer",vU);class q4 extends ${createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}q4.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]};$.registerComponent("ControlBar",q4);class e8 extends Ys{constructor(e,n){super(e,n),this.on(e,"error",i=>{this.open(i)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}e8.prototype.options_=Object.assign({},Ys.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});$.registerComponent("ErrorDisplay",e8);class t8 extends ${constructor(e,n={}){super(e,n),this.el_.setAttribute("aria-labelledby",this.selectLabelledbyIds)}createEl(){return this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim(),ge("select",{id:this.options_.id},{},this.options_.SelectOptions.map(e=>{const n=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${gn()}`)+"-"+e[1].replace(/\W+/g,""),i=ge("option",{id:n,value:this.localize(e[0]),textContent:this.localize(e[1])});return i.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${n}`),i}))}}$.registerComponent("TextTrackSelect",t8);class Nr extends ${constructor(e,n={}){super(e,n);const i=ge("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});this.el().appendChild(i);const r=this.options_.selects;for(const s of r){const a=this.options_.selectConfigs[s],o=a.className,c=a.id.replace("%s",this.options_.id_);let u=null;const d=`vjs_select_${gn()}`;if(this.options_.type==="colors"){u=ge("span",{className:o});const A=ge("label",{id:c,className:"vjs-label",textContent:this.localize(a.label)});A.setAttribute("for",d),u.appendChild(A)}const y=new t8(e,{SelectOptions:a.options,legendId:this.options_.legendId,id:d,labelId:c});this.addChild(y),this.options_.type==="colors"&&(u.appendChild(y.el()),this.el().appendChild(u))}}createEl(){return ge("fieldset",{className:this.options_.className})}}$.registerComponent("TextTrackFieldset",Nr);class n8 extends ${constructor(e,n={}){super(e,n);const i=this.options_.textTrackComponentid,r=new Nr(e,{id_:i,legendId:`captions-text-legend-${i}`,legendText:this.localize("Text"),className:"vjs-fg vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(r);const s=new Nr(e,{id_:i,legendId:`captions-background-${i}`,legendText:this.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(s);const a=new Nr(e,{id_:i,legendId:`captions-window-${i}`,legendText:this.localize("Caption Area Background"),className:"vjs-window vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(a)}createEl(){return ge("div",{className:"vjs-track-settings-colors"})}}$.registerComponent("TextTrackSettingsColors",n8);class i8 extends ${constructor(e,n={}){super(e,n);const i=this.options_.textTrackComponentid,r=new Nr(e,{id_:i,legendId:`captions-font-size-${i}`,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(r);const s=new Nr(e,{id_:i,legendId:`captions-edge-style-${i}`,legendText:this.localize("Text Edge Style"),className:"vjs-edge-style vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(s);const a=new Nr(e,{id_:i,legendId:`captions-font-family-${i}`,legendText:this.localize("Font Family"),className:"vjs-font-family vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(a)}createEl(){return ge("div",{className:"vjs-track-settings-font"})}}$.registerComponent("TextTrackSettingsFont",i8);class r8 extends ${constructor(e,n={}){super(e,n);const i=this.localize("restore all settings to the default values"),r=new Nt(e,{controlText:i,className:"vjs-default-button"});r.el().classList.remove("vjs-control","vjs-button"),r.el().textContent=this.localize("Reset"),this.addChild(r);const s=new Nt(e,{controlText:i,className:"vjs-done-button"});s.el().classList.remove("vjs-control","vjs-button"),s.el().textContent=this.localize("Done"),this.addChild(s)}createEl(){return ge("div",{className:"vjs-track-settings-controls"})}}$.registerComponent("TrackSettingsControls",r8);const qu="vjs-text-track-settings",H2=["#000","Black"],j2=["#00F","Blue"],J2=["#0FF","Cyan"],Q2=["#0F0","Green"],K2=["#F0F","Magenta"],$2=["#F00","Red"],z2=["#FFF","White"],q2=["#FF0","Yellow"],ed=["1","Opaque"],td=["0.5","Semi-Transparent"],eg=["0","Transparent"],Hi={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[H2,z2,$2,Q2,j2,q2,K2,J2],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[ed,td,eg],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[z2,H2,$2,Q2,j2,q2,K2,J2],className:"vjs-text-color"},edgeStyle:{selector:".vjs-edge-style > select",id:"",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:t=>t==="1.00"?null:Number(t)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[ed,td],className:"vjs-text-opacity vjs-opacity"},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color",className:"vjs-window-color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[eg,td,ed],className:"vjs-window-opacity vjs-opacity"}};Hi.windowColor.options=Hi.backgroundColor.options;function s8(t,e){if(e&&(t=e(t)),t&&t!=="none")return t}function CU(t,e){const n=t.options[t.options.selectedIndex].value;return s8(n,e)}function AU(t,e,n){if(e){for(let i=0;i<t.options.length;i++)if(s8(t.options[i].value,n)===e){t.selectedIndex=i;break}}}class SU extends Ys{constructor(e,n){n.temporary=!1,super(e,n),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(e),this.endDialog=ge("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),n.persistTextTrackSettings===void 0&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(e){const n=new n8(e,{textTrackComponentid:this.id_,selectConfigs:Hi,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(n);const i=new i8(e,{textTrackComponentid:this.id_,selectConfigs:Hi,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(i);const r=new r8(e);this.addChild(r)}bindFunctionsToSelectsAndButtons(){this.on(this.$(".vjs-done-button"),["click","tap"],()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),["click","tap"],()=>{this.setDefaults(),this.updateDisplay()}),cs(Hi,e=>{this.on(this.$(e.selector),"change",this.updateDisplay)})}dispose(){this.endDialog=null,super.dispose()}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return Q5(Hi,(e,n,i)=>{const r=CU(this.$(n.selector),n.parser);return r!==void 0&&(e[i]=r),e},{})}setValues(e){cs(Hi,(n,i)=>{AU(this.$(n.selector),e[i],n.parser)})}setDefaults(){cs(Hi,e=>{const n=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=n})}restoreSettings(){let e;try{e=JSON.parse(x.localStorage.getItem(qu))}catch(n){Te.warn(n)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?x.localStorage.setItem(qu,JSON.stringify(e)):x.localStorage.removeItem(qu)}catch(n){Te.warn(n)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}}$.registerComponent("TextTrackSettings",SU);class _U extends ${constructor(e,n){let i=n.ResizeObserver||x.ResizeObserver;n.ResizeObserver===null&&(i=!1);const r=xe({createEl:!i,reportTouchActivity:!1},n);super(e,r),this.ResizeObserver=n.ResizeObserver||x.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=b4(()=>{this.resizeHandler()},100,!1,this),i?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const s=this.debouncedHandler_;let a=this.unloadListener_=function(){wt(this,"resize",s),wt(this,"unload",a),a=null};nn(this.el_.contentWindow,"unload",a),nn(this.el_.contentWindow,"resize",s)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){!this.player_||!this.player_.trigger||this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}}$.registerComponent("ResizeManager",_U);const RU={trackingThreshold:20,liveTolerance:15};class IU extends ${constructor(e,n){const i=xe(RU,n,{createEl:!1});super(e,i),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=r=>this.handlePlay(r),this.handleFirstTimeupdate_=r=>this.handleFirstTimeupdate(r),this.handleSeeked_=r=>this.handleSeeked(r),this.seekToLiveEdge_=r=>this.seekToLiveEdge(r),this.reset_(),this.on(this.player_,"durationchange",r=>this.handleDurationchange(r)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const n=Number(x.performance.now().toFixed(4)),i=this.lastTime_===-1?0:(n-this.lastTime_)/1e3;this.lastTime_=n,this.pastSeekEnd_=this.pastSeekEnd()+i;const r=this.liveCurrentTime(),s=this.player_.currentTime();let a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-s)>this.options_.liveTolerance;(!this.timeupdateSeen_||r===1/0)&&(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,fn),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),n=[];let i=e?e.length:0;for(;i--;)n.push(e.end(i));return n.length?n.sort()[n.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),n=[];let i=e?e.length:0;for(;i--;)n.push(e.start(i));return n.length?n.sort()[0]:0}liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return this.lastSeekEnd_!==-1&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return typeof this.trackingInterval_=="number"}seekToLiveEdge(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}$.registerComponent("LiveTracker",IU);class VU extends ${constructor(e,n){super(e,n),this.on("statechanged",i=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:ge("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${gn()}`}),description:ge("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${gn()}`})},ge("div",{className:"vjs-title-bar"},{},K5(this.els))}updateDom_(){const e=this.player_.tech_,n=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(r=>{const s=this.state[r],a=this.els[r],o=i[r];Dc(a),s&&qi(a,s),n&&(n.removeAttribute(o),s&&n.setAttribute(o,a.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,n=e&&e.el_;n&&(n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-describedby")),super.dispose(),this.els=null}}$.registerComponent("TitleBar",VU);const wU={initialDisplay:4e3,position:[],takeFocus:!1};class NU extends Nt{constructor(e,n){n=xe(wU,n),super(e,n),this.controlText(n.controlText),this.hide(),this.on(this.player_,["useractive","userinactive"],i=>{this.removeClass("force-display")})}buildCSSClass(){return`vjs-transient-button focus-visible ${this.options_.position.map(e=>`vjs-${e}`).join(" ")}`}createEl(){const e=ge("button",{},{type:"button",class:this.buildCSSClass()},ge("span"));return this.controlTextEl_=e.querySelector("span"),e}show(){super.show(),this.addClass("force-display"),this.options_.takeFocus&&this.el().focus({preventScroll:!0}),this.forceDisplayTimeout=this.player_.setTimeout(()=>{this.removeClass("force-display")},this.options_.initialDisplay)}hide(){this.removeClass("force-display"),super.hide()}dispose(){this.player_.clearTimeout(this.forceDisplayTimeout),super.dispose()}}$.registerComponent("TransientButton",NU);const Qd=t=>{const e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;const n=t.$$("source"),i=[];let r="";if(!n.length)return!1;for(let s=0;s<n.length;s++){const a=n[s].src;a&&i.indexOf(a)===-1&&i.push(a)}return i.length?(i.length===1&&(r=i[0]),t.triggerSourceset(r),!0):!1},UU=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(t){const e=ee.createElement(this.nodeName.toLowerCase());e.innerHTML=t;const n=ee.createDocumentFragment();for(;e.childNodes.length;)n.appendChild(e.childNodes[0]);return this.innerText="",x.Element.prototype.appendChild.call(this,n),this.innerHTML}}),a8=(t,e)=>{let n={};for(let i=0;i<t.length&&(n=Object.getOwnPropertyDescriptor(t[i],e),!(n&&n.set&&n.get));i++);return n.enumerable=!0,n.configurable=!0,n},kU=t=>a8([t.el(),x.HTMLMediaElement.prototype,x.Element.prototype,UU],"innerHTML"),tg=function(t){const e=t.el();if(e.resetSourceWatch_)return;const n={},i=kU(t),r=s=>(...a)=>{const o=s.apply(e,a);return Qd(t),o};["append","appendChild","insertAdjacentHTML"].forEach(s=>{e[s]&&(n[s]=e[s],e[s]=r(n[s]))}),Object.defineProperty(e,"innerHTML",xe(i,{set:r(i.set)})),e.resetSourceWatch_=()=>{e.resetSourceWatch_=null,Object.keys(n).forEach(s=>{e[s]=n[s]}),Object.defineProperty(e,"innerHTML",i)},t.one("sourceset",e.resetSourceWatch_)},xU=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?V4(x.Element.prototype.getAttribute.call(this,"src")):""},set(t){return x.Element.prototype.setAttribute.call(this,"src",t),t}}),LU=t=>a8([t.el(),x.HTMLMediaElement.prototype,xU],"src"),FU=function(t){if(!t.featuresSourceset)return;const e=t.el();if(e.resetSourceset_)return;const n=LU(t),i=e.setAttribute,r=e.load;Object.defineProperty(e,"src",xe(n,{set:s=>{const a=n.set.call(e,s);return t.triggerSourceset(e.src),a}})),e.setAttribute=(s,a)=>{const o=i.call(e,s,a);return/src/i.test(s)&&t.triggerSourceset(e.src),o},e.load=()=>{const s=r.call(e);return Qd(t)||(t.triggerSourceset(""),tg(t)),s},e.currentSrc?t.triggerSourceset(e.currentSrc):Qd(t)||tg(t),e.resetSourceset_=()=>{e.resetSourceset_=null,e.load=r,e.setAttribute=i,Object.defineProperty(e,"src",n),e.resetSourceWatch_&&e.resetSourceWatch_()}};class ae extends Ee{constructor(e,n){super(e,n);const i=e.source;let r=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&this.el_.tagName==="VIDEO",i&&(this.el_.currentSrc!==i.src||e.tag&&e.tag.initNetworkState_===3)?this.setSource(i):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const s=this.el_.childNodes;let a=s.length;const o=[];for(;a--;){const c=s[a];c.nodeName.toLowerCase()==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(c),this.remoteTextTracks().addTrack(c.track),this.textTracks().addTrack(c.track),!r&&!this.el_.hasAttribute("crossorigin")&&Mc(c.src)&&(r=!0)):o.push(c))}for(let c=0;c<o.length;c++)this.el_.removeChild(o[c])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&r&&Te.warn(`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
233
- This may prevent text tracks from loading.`),this.restoreMetadataTracksInIOSNativePlayer_(),(to||Lc)&&e.nativeControlsForTouch===!0&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),ae.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){FU(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let n;const i=()=>{n=[];for(let s=0;s<e.length;s++){const a=e[s];a.kind==="metadata"&&n.push({track:a,storedMode:a.mode})}};i(),e.addEventListener("change",i),this.on("dispose",()=>e.removeEventListener("change",i));const r=()=>{for(let s=0;s<n.length;s++){const a=n[s];a.track.mode==="disabled"&&a.track.mode!==a.storedMode&&(a.track.mode=a.storedMode)}e.removeEventListener("change",r)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",i),e.removeEventListener("change",r),e.addEventListener("change",r)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",r)})}overrideNative_(e,n){if(n!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[`${i}TracksListeners_`]&&Object.keys(this[`${i}TracksListeners_`]).forEach(r=>{this.el()[`${i}Tracks`].removeEventListener(r,this[`${i}TracksListeners_`][r])}),this[`featuresNative${e}Tracks`]=!n,this[`${i}TracksListeners_`]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const n=pn[e],i=this.el()[n.getterName],r=this[n.getterName]();if(!this[`featuresNative${n.capitalName}Tracks`]||!i||!i.addEventListener)return;const s={change:o=>{const c={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(c),e==="text"&&this[Ds.remoteText.getterName]().trigger(c)},addtrack(o){r.addTrack(o.track)},removetrack(o){r.removeTrack(o.track)}},a=function(){const o=[];for(let c=0;c<r.length;c++){let u=!1;for(let d=0;d<i.length;d++)if(i[d]===r[c]){u=!0;break}u||o.push(r[c])}for(;o.length;)r.removeTrack(o.shift())};this[n.getterName+"Listeners_"]=s,Object.keys(s).forEach(o=>{const c=s[o];i.addEventListener(o,c),this.on("dispose",u=>i.removeEventListener(o,c))}),this.on("loadstart",a),this.on("dispose",o=>this.off("loadstart",a))}proxyNativeTracks_(){pn.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){const i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),ae.disposeMediaElement(e),e=i}else{e=ee.createElement("video");const i=this.options_.tag&&Yi(this.options_.tag),r=xe({},i);(!to||this.options_.nativeControlsForTouch!==!0)&&delete r.controls,s4(e,Object.assign(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&Fs(e,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const n=["loop","muted","playsinline","autoplay"];for(let i=0;i<n.length;i++){const r=n[i],s=this.options_[r];typeof s<"u"&&(s?Fs(e,r,r):Wc(e,r),e[r]=s)}return e}handleLateInit_(e){if(e.networkState===0||e.networkState===3)return;if(e.readyState===0){let i=!1;const r=function(){i=!0};this.on("loadstart",r);const s=function(){i||this.trigger("loadstart")};this.on("loadedmetadata",s),this.ready(function(){this.off("loadstart",r),this.off("loadedmetadata",s),i||this.trigger("loadstart")});return}const n=["loadstart"];n.push("loadedmetadata"),e.readyState>=2&&n.push("loadeddata"),e.readyState>=3&&n.push("canplay"),e.readyState>=4&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(i){this.trigger(i)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&Fc?this.el_.fastSeek(e):this.el_.currentTime=e}catch(n){Te(n,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&kn&&ni&&this.el_.currentTime===0){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",()=>{this.off("webkitbeginfullscreen",n),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return typeof this.el_.webkitEnterFullScreen=="function"}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)jn(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(n){this.trigger("fullscreenerror",n)}},0);else try{e.webkitEnterFullScreen()}catch(n){this.trigger("fullscreenerror",n)}}exitFullScreen(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",new Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(e===void 0)return this.el_.src;this.setSrc(e)}addSourceElement(e,n){if(!e)return Te.error("Invalid source URL."),!1;const i={src:e};n&&(i.type=n);const r=ge("source",{},i);return this.el_.appendChild(r),!0}removeSourceElement(e){if(!e)return Te.error("Source URL is required to remove the source element."),!1;const n=this.el_.querySelectorAll("source");for(const i of n)if(i.src===e)return this.el_.removeChild(i),!0;return Te.warn(`No matching source element found with src: ${e}`),!1}reset(){ae.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,i):super.addTextTrack(e,n,i)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const n=ee.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n}addRemoteTextTrack(e,n){const i=super.addRemoteTextTrack(e,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const n=this.$$("track");let i=n.length;for(;i--;)(e===n[i]||e===n[i].track)&&this.el().removeChild(n[i])}}getVideoPlaybackQuality(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();const e={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),x.performance&&(e.creationTime=x.performance.now()),e}}Uc(ae,"TEST_VID",function(){if(!Gs())return;const t=ee.createElement("video"),e=ee.createElement("track");return e.kind="captions",e.srclang="en",e.label="English",t.appendChild(e),t});ae.isSupported=function(){try{ae.TEST_VID.volume=.5}catch{return!1}return!!(ae.TEST_VID&&ae.TEST_VID.canPlayType)};ae.canPlayType=function(t){return ae.TEST_VID.canPlayType(t)};ae.canPlaySource=function(t,e){return ae.canPlayType(t.type)};ae.canControlVolume=function(){try{const t=ae.TEST_VID.volume;ae.TEST_VID.volume=t/2+.1;const e=t!==ae.TEST_VID.volume;return e&&Vt?(x.setTimeout(()=>{ae&&ae.prototype&&(ae.prototype.featuresVolumeControl=t!==ae.TEST_VID.volume)}),!1):e}catch{return!1}};ae.canMuteVolume=function(){try{const t=ae.TEST_VID.muted;return ae.TEST_VID.muted=!t,ae.TEST_VID.muted?Fs(ae.TEST_VID,"muted","muted"):Wc(ae.TEST_VID,"muted","muted"),t!==ae.TEST_VID.muted}catch{return!1}};ae.canControlPlaybackRate=function(){if(kn&&ni&&kc<58)return!1;try{const t=ae.TEST_VID.playbackRate;return ae.TEST_VID.playbackRate=t/2+.1,t!==ae.TEST_VID.playbackRate}catch{return!1}};ae.canOverrideAttributes=function(){try{const t=()=>{};Object.defineProperty(ee.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(ee.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(ee.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(ee.createElement("audio"),"innerHTML",{get:t,set:t})}catch{return!1}return!0};ae.supportsNativeTextTracks=function(){return Fc||Vt&&ni};ae.supportsNativeVideoTracks=function(){return!!(ae.TEST_VID&&ae.TEST_VID.videoTracks)};ae.supportsNativeAudioTracks=function(){return!!(ae.TEST_VID&&ae.TEST_VID.audioTracks)};ae.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"];[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function([t,e]){Uc(ae.prototype,t,()=>ae[e](),!0)});ae.prototype.featuresVolumeControl=ae.canControlVolume();ae.prototype.movingMediaElementInDOM=!Vt;ae.prototype.featuresFullscreenResize=!0;ae.prototype.featuresProgressEvents=!0;ae.prototype.featuresTimeupdateEvents=!0;ae.prototype.featuresVideoFrameCallback=!!(ae.TEST_VID&&ae.TEST_VID.requestVideoFrameCallback);ae.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),typeof t.load=="function"&&function(){try{t.load()}catch{}}()}};ae.resetMediaElement=function(t){if(!t)return;const e=t.querySelectorAll("source");let n=e.length;for(;n--;)t.removeChild(e[n]);t.removeAttribute("src"),typeof t.load=="function"&&function(){try{t.load()}catch{}}()};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){ae.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){ae.prototype["set"+Je(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(t){ae.prototype[t]=function(){return this.el_[t]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(t){ae.prototype["set"+Je(t)]=function(e){this.el_[t]=e}});["pause","load","play"].forEach(function(t){ae.prototype[t]=function(){return this.el_[t]()}});Ee.withSourceHandlers(ae);ae.nativeSourceHandler={};ae.nativeSourceHandler.canPlayType=function(t){try{return ae.TEST_VID.canPlayType(t)}catch{return""}};ae.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return ae.nativeSourceHandler.canPlayType(t.type);if(t.src){const n=Bh(t.src);return ae.nativeSourceHandler.canPlayType(`video/${n}`)}return""};ae.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)};ae.nativeSourceHandler.dispose=function(){};ae.registerSourceHandler(ae.nativeSourceHandler);Ee.registerTech("Html5",ae);const o8=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],nd={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Kd=["tiny","xsmall","small","medium","large","xlarge","huge"],Cl={};Kd.forEach(t=>{const e=t.charAt(0)==="x"?`x-${t.substring(1)}`:t;Cl[t]=`vjs-layout-${e}`});const BU={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class Xe extends ${constructor(e,n,i){if(e.id=e.id||n.id||`vjs_video_${gn()}`,n=Object.assign(Xe.getTagSettings(e),n),n.initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language){const a=e.closest("[lang]");a&&(n.language=a.getAttribute("lang"))}if(super(null,n,i),this.boundDocumentFullscreenChange_=a=>this.documentFullscreenChange_(a),this.boundFullWindowOnEscKey_=a=>this.fullWindowOnEscKey(a),this.boundUpdateStyleEl_=a=>this.updateStyleEl_(a),this.boundApplyInitTime_=a=>this.applyInitTime_(a),this.boundUpdateCurrentBreakpoint_=a=>this.updateCurrentBreakpoint_(a),this.boundHandleTechClick_=a=>this.handleTechClick_(a),this.boundHandleTechDoubleClick_=a=>this.handleTechDoubleClick_(a),this.boundHandleTechTouchStart_=a=>this.handleTechTouchStart_(a),this.boundHandleTechTouchMove_=a=>this.handleTechTouchMove_(a),this.boundHandleTechTouchEnd_=a=>this.handleTechTouchEnd_(a),this.boundHandleTechTap_=a=>this.handleTechTap_(a),this.boundUpdatePlayerHeightOnAudioOnlyMode_=a=>this.updatePlayerHeightOnAudioOnlyMode_(a),this.isFullscreen_=!1,this.log=j5(this.id_),this.fsApi_=Yl,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={controlBarHeight:null,playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&Yi(e),this.language(this.options_.language),n.languages){const a={};Object.getOwnPropertyNames(n.languages).forEach(function(o){a[o.toLowerCase()]=n.languages[o]}),this.languages_=a}else this.languages_=Xe.prototype.options_.languages;this.resetCache_(),this.poster_=n.poster||"",this.controls_=!!n.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach(a=>{if(typeof this[a]!="function")throw new Error(`plugin "${a}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),kh(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(nn(ee,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const r=xe(this.options_);if(n.plugins&&Object.keys(n.plugins).forEach(a=>{this[a](n.plugins[a])}),n.debug&&this.debug(!0),this.options_.playerOptions=r,this.middleware_=[],this.playbackRates(n.playbackRates),n.experimentalSvgIcons){const a=new x.DOMParser().parseFromString(sU,"image/svg+xml");if(a.querySelector("parsererror"))Te.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const o=a.documentElement;o.style.display="none",this.el_.appendChild(o),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio(e.nodeName.toLowerCase()==="audio"),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),n.spatialNavigation&&n.spatialNavigation.enabled&&(this.spatialNavigation=new aU(this),this.addClass("vjs-spatial-navigation-enabled")),to&&this.addClass("vjs-touch-enabled"),Vt||this.addClass("vjs-workinghover"),Xe.players[this.id_]=this;const s=Od.split(".")[0];this.addClass(`vjs-v${s}`),this.userActive(!0),this.reportUserActivity(),this.one("play",a=>this.listenForUserActivity_(a)),this.on("keydown",a=>this.handleKeyDown(a)),this.on("languagechange",a=>this.handleLanguagechange(a)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),wt(ee,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),wt(ee,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),Xe.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),tU(this),Zt.names.forEach(e=>{const n=Zt[e],i=this[n.getterName]();i&&i.off&&i.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e=this.tag,n,i=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player");const r=this.tag.tagName.toLowerCase()==="video-js";i?n=this.el_=e.parentNode:r||(n=this.el_=super.createEl("div"));const s=Yi(e);if(r){for(n=this.el_=e,e=this.tag=ee.createElement("video");n.children.length;)e.appendChild(n.firstChild);Wa(n,"video-js")||Vr(n,"video-js"),n.appendChild(e),i=this.playerElIngest_=n,Object.keys(n).forEach(c=>{try{e[c]=n[c]}catch{}})}e.setAttribute("tabindex","-1"),s.tabindex="-1",ni&&xc&&(e.setAttribute("role","application"),s.role="application"),e.removeAttribute("width"),e.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach(function(c){r&&c==="class"||n.setAttribute(c,s[c]),r&&e.setAttribute(c,s[c])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=n.player=this,this.addClass("vjs-paused");const a=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter(c=>t4[c]).map(c=>"vjs-device-"+c.substring(3).toLowerCase().replace(/\_/g,"-"));if(this.addClass(...a),x.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=f4("vjs-styles-dimensions");const c=Ki(".vjs-styles-defaults"),u=Ki("head");u.insertBefore(this.styleEl_,c?c.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const o=e.getElementsByTagName("a");for(let c=0;c<o.length;c++){const u=o.item(c);Vr(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!i&&e.parentNode.insertBefore(n,e),Gd(e,n),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=n,n}crossOrigin(e){if(typeof e>"u")return this.techGet_("crossOrigin");if(e!==null&&e!=="anonymous"&&e!=="use-credentials"){Te.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`);return}this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,n){const i=e+"_";if(n===void 0)return this[i]||0;if(n===""||n==="auto"){this[i]=void 0,this.updateStyleEl_();return}const r=parseFloat(n);if(isNaN(r)){Te.error(`Improper value "${n}" supplied for for ${e}`);return}this[i]=r,this.updateStyleEl_()}fluid(e){if(e===void 0)return!!this.fluid_;this.fluid_=!!e,Ci(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),UN(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(e===void 0)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(e===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(x.VIDEOJS_NO_DYNAMIC_STYLE===!0){const o=typeof this.width_=="number"?this.width_:this.options_.width,c=typeof this.height_=="number"?this.height_:this.options_.height,u=this.tech_&&this.tech_.el();u&&(o>=0&&(u.width=o),c>=0&&(u.height=c));return}let e,n,i,r;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?i=this.aspectRatio_:this.videoWidth()>0?i=this.videoWidth()+":"+this.videoHeight():i="16:9";const s=i.split(":"),a=s[1]/s[0];this.width_!==void 0?e=this.width_:this.height_!==void 0?e=this.height_/a:e=this.videoWidth()||300,this.height_!==void 0?n=this.height_:n=e*a,/^[^a-zA-Z]/.test(this.id())?r="dimensions-"+this.id():r=this.id()+"-dimensions",this.addClass(r),y4(this.styleEl_,`
234
- .${r} {
235
- width: ${e}px;
236
- height: ${n}px;
237
- }
238
-
239
- .${r}.vjs-fluid:not(.vjs-audio-only-mode) {
240
- padding-top: ${a*100}%;
241
- }
242
- `)}loadTech_(e,n){this.tech_&&this.unloadTech_();const i=Je(e),r=e.charAt(0).toLowerCase()+e.slice(1);i!=="Html5"&&this.tag&&(Ee.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let s=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(s=!1);const a={source:n,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${r}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};Zt.names.forEach(c=>{const u=Zt[c];a[u.getterName]=this[u.privateName]}),Object.assign(a,this.options_[i]),Object.assign(a,this.options_[r]),Object.assign(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),n&&n.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);const o=Ee.getTech(e);if(!o)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new o(a),this.tech_.ready(Ze(this,this.handleTechReady_),!0),L2.jsonToTextTracks(this.textTracksJson_||[],this.tech_),o8.forEach(c=>{this.on(this.tech_,c,u=>this[`handleTech${Je(c)}_`](u))}),Object.keys(nd).forEach(c=>{this.on(this.tech_,c,u=>{if(this.tech_.playbackRate()===0&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${nd[c]}_`].bind(this),event:u});return}this[`handleTech${nd[c]}_`](u)})}),this.on(this.tech_,"loadstart",c=>this.handleTechLoadStart_(c)),this.on(this.tech_,"sourceset",c=>this.handleTechSourceset_(c)),this.on(this.tech_,"waiting",c=>this.handleTechWaiting_(c)),this.on(this.tech_,"ended",c=>this.handleTechEnded_(c)),this.on(this.tech_,"seeking",c=>this.handleTechSeeking_(c)),this.on(this.tech_,"play",c=>this.handleTechPlay_(c)),this.on(this.tech_,"pause",c=>this.handleTechPause_(c)),this.on(this.tech_,"durationchange",c=>this.handleTechDurationChange_(c)),this.on(this.tech_,"fullscreenchange",(c,u)=>this.handleTechFullscreenChange_(c,u)),this.on(this.tech_,"fullscreenerror",(c,u)=>this.handleTechFullscreenError_(c,u)),this.on(this.tech_,"enterpictureinpicture",c=>this.handleTechEnterPictureInPicture_(c)),this.on(this.tech_,"leavepictureinpicture",c=>this.handleTechLeavePictureInPicture_(c)),this.on(this.tech_,"error",c=>this.handleTechError_(c)),this.on(this.tech_,"posterchange",c=>this.handleTechPosterChange_(c)),this.on(this.tech_,"textdata",c=>this.handleTechTextData_(c)),this.on(this.tech_,"ratechange",c=>this.handleTechRateChange_(c)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(i!=="Html5"||!this.tag)&&Gd(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){Zt.names.forEach(e=>{const n=Zt[e];this[n.privateName]=this[n.getterName]()}),this.textTracksJson_=L2.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return e===void 0&&Te.warn(`Using the tech directly can be dangerous. I hope you know what you're doing.
243
- See https://github.com/videojs/video.js/issues/2617 for more info.
244
- `),this.tech_}version(){return{"video.js":Od}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(this.autoplay()===!0&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||typeof e!="string")return;const n=()=>{const r=this.muted();this.muted(!0);const s=()=>{this.muted(r)};this.playTerminatedQueue_.push(s);const a=this.play();if(Da(a))return a.catch(o=>{throw s(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${o||""}`)})};let i;if(e==="any"&&!this.muted()?(i=this.play(),Da(i)&&(i=i.catch(n))):e==="muted"&&!this.muted()?i=n():i=this.play(),!!Da(i))return i.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})})}updateSourceCaches_(e=""){let n=e,i="";typeof n!="string"&&(n=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],n&&!i&&(i=rU(this,n)),this.cache_.source=xe({},e,{src:n,type:i});const r=this.cache_.sources.filter(c=>c.src&&c.src===n),s=[],a=this.$$("source"),o=[];for(let c=0;c<a.length;c++){const u=Yi(a[c]);s.push(u),u.src&&u.src===n&&o.push(u.src)}o.length&&!r.length?this.cache_.sources=s:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=n}handleTechSourceset_(e){if(!this.changingSrc_){let n=s=>this.updateSourceCaches_(s);const i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=()=>{}),n(r),e.src||this.tech_.any(["sourceset","loadstart"],s=>{if(s.type==="sourceset")return;const a=this.techGet_("currentSrc");this.lastSource_.tech=a,this.updateSourceCaches_(a)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(e===void 0)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),n=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",n))};this.on("timeupdate",n)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.click===void 0||this.options_.userActions.click!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.click=="function"?this.options_.userActions.click.call(this,e):this.paused()?jn(this.play()):this.pause())}handleTechDoubleClick_(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),n=>n.contains(e.target))||(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.doubleClick===void 0||this.options_.userActions.doubleClick!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.doubleClick=="function"?this.options_.userActions.doubleClick.call(this,e):this.isInPictureInPicture()&&!ee.pictureInPictureElement?this.exitPictureInPicture():this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const n=e.target.player;if(n&&n!==this)return;const i=this.el();let r=ee[this.fsApi_.fullscreenElement]===i;!r&&i.matches&&(r=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}handleTechFullscreenChange_(e,n){n&&(n.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(n.isFullscreen))}handleTechFullscreenError_(e,n){this.trigger("fullscreenerror",n)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,n){this.ready(function(){if(e in qN)return $N(this.middleware_,this.tech_,e,n);if(e in D2)return Z2(this.middleware_,this.tech_,e,n);try{this.tech_&&this.tech_[e](n)}catch(i){throw Te(i),i}},!0)}techGet_(e){if(!(!this.tech_||!this.tech_.isReady_)){if(e in zN)return KN(this.middleware_,this.tech_,e);if(e in D2)return Z2(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(n){throw this.tech_[e]===void 0?(Te(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,n),n):n.name==="TypeError"?(Te(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,n),this.tech_.isReady_=!1,n):(Te(n),n)}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=jn){this.playCallbacks_.push(e);const n=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),i=!!(Fc||Vt);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n){this.waitToPlay_=s=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!n&&i&&this.load();return}const r=this.techGet_("play");i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),r===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(n){n()})}runPlayCallbacks_(e){const n=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],n.forEach(function(i){i(e)})}pause(){this.techCall_("pause")}paused(){return this.techGet_("paused")!==!1}played(){return this.techGet_("played")||Nn(0,0)}scrubbing(e){if(typeof e>"u")return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){if(e===void 0)return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime;if(e<0&&(e=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",e),this.cache_.initTime=0,isFinite(e)&&(this.cache_.currentTime=Number(e))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(e===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return(!e||!e.length)&&(e=Nn(0,0)),e}seekable(){let e=this.techGet_("seekable");return(!e||!e.length)&&(e=Nn(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return R4(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),n=this.duration();let i=e.end(e.length-1);return i>n&&(i=n),i}volume(e){let n;if(e!==void 0){n=Math.max(0,Math.min(1,e)),this.cache_.volume=n,this.techCall_("setVolume",n),n>0&&this.lastVolume_(n);return}return n=parseFloat(this.techGet_("volume")),isNaN(n)?1:n}muted(e){if(e!==void 0){this.techCall_("setMuted",e);return}return this.techGet_("muted")||!1}defaultMuted(e){return e!==void 0&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(e!==void 0&&e!==0){this.cache_.lastVolume=e;return}return this.cache_.lastVolume}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(e!==void 0){const n=this.isFullscreen_;this.isFullscreen_=!!e,this.isFullscreen_!==n&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const n=this;return new Promise((i,r)=>{function s(){n.off("fullscreenerror",o),n.off("fullscreenchange",a)}function a(){s(),i()}function o(u,d){s(),r(d)}n.one("fullscreenchange",a),n.one("fullscreenerror",o);const c=n.requestFullscreenHelper_(e);c&&(c.then(s,s),c.then(i,r))})}requestFullscreenHelper_(e){let n;if(this.fsApi_.prefixed||(n=this.options_.fullscreen&&this.options_.fullscreen.options||{},e!==void 0&&(n=e)),this.fsApi_.requestFullscreen){const i=this.el_[this.fsApi_.requestFullscreen](n);return i&&i.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),i}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((n,i)=>{function r(){e.off("fullscreenerror",a),e.off("fullscreenchange",s)}function s(){r(),n()}function a(c,u){r(),i(u)}e.one("fullscreenchange",s),e.one("fullscreenerror",a);const o=e.exitFullscreenHelper_();o&&(o.then(r,r),o.then(n,i))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=ee[this.fsApi_.exitFullscreen]();return e&&jn(e.then(()=>this.isFullscreen(!1))),e}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=ee.documentElement.style.overflow,nn(ee,"keydown",this.boundFullWindowOnEscKey_),ee.documentElement.style.overflow="hidden",Vr(ee.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){e.key==="Escape"&&this.isFullscreen()===!0&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,wt(ee,"keydown",this.boundFullWindowOnEscKey_),ee.documentElement.style.overflow=this.docOrigOverflow,Bc(ee.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(e===void 0)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){if(e!==void 0){this.isInPictureInPicture_=!!e,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&x.documentPictureInPicture){const e=ee.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(ge("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),x.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(n=>(p4(n),this.el_.parentNode.insertBefore(e,this.el_),n.document.body.appendChild(this.el_),n.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:n}),n.addEventListener("pagehide",i=>{const r=i.target.querySelector(".video-js");e.parentNode.replaceChild(r,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),n))}return"pictureInPictureEnabled"in ee&&this.disablePictureInPicture()===!1?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){if(x.documentPictureInPicture&&x.documentPictureInPicture.window)return x.documentPictureInPicture.window.close(),Promise.resolve();if("pictureInPictureEnabled"in ee)return ee.exitPictureInPicture()}handleKeyDown(e){const{userActions:n}=this.options_;!n||!n.hotkeys||(i=>{const r=i.tagName.toLowerCase();return i.isContentEditable?!0:r==="input"?["button","checkbox","hidden","radio","reset","submit"].indexOf(i.type)===-1:["textarea"].indexOf(r)!==-1})(this.el_.ownerDocument.activeElement)||(typeof n.hotkeys=="function"?n.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){const n=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:i=a=>e.key.toLowerCase()==="f",muteKey:r=a=>e.key.toLowerCase()==="m",playPauseKey:s=a=>e.key.toLowerCase()==="k"||e.key.toLowerCase()===" "}=n;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const a=$.getComponent("FullscreenToggle");ee[this.fsApi_.fullscreenEnabled]!==!1&&a.prototype.handleClick.call(this,e)}else r.call(this,e)?(e.preventDefault(),e.stopPropagation(),$.getComponent("MuteToggle").prototype.handleClick.call(this,e)):s.call(this,e)&&(e.preventDefault(),e.stopPropagation(),$.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let n;for(let i=0,r=this.options_.techOrder;i<r.length;i++){const s=r[i];let a=Ee.getTech(s);if(a||(a=$.getComponent(s)),!a){Te.error(`The "${s}" tech is undefined. Skipped browser support check for that tech.`);continue}if(a.isSupported()&&(n=a.canPlayType(e),n))return n}return""}selectSource(e){const n=this.options_.techOrder.map(o=>[o,Ee.getTech(o)]).filter(([o,c])=>c?c.isSupported():(Te.error(`The "${o}" tech is undefined. Skipped browser support check for that tech.`),!1)),i=function(o,c,u){let d;return o.some(y=>c.some(A=>{if(d=u(y,A),d)return!0})),d};let r;const s=o=>(c,u)=>o(u,c),a=([o,c],u)=>{if(c.canPlaySource(u,this.options_[o.toLowerCase()]))return{source:u,tech:o}};return this.options_.sourceOrder?r=i(e,n,s(a)):r=i(n,e,a),r||!1}handleSrc_(e,n){if(typeof e>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=U4(e);if(!i.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,n||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),JN(this,i[0],(r,s)=>{if(this.middleware_=s,n||(this.cache_.sources=i),this.updateSourceCaches_(r),this.src_(r)){if(i.length>1)return this.handleSrc_(i.slice(1));this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),this.triggerReady();return}QN(s,this.tech_)}),i.length>1){const r=()=>{this.error(null),this.handleSrc_(i.slice(1),!0)},s=()=>{this.off("error",r)};this.one("error",r),this.one("playing",s),this.resetRetryOnError_=()=>{this.off("error",r),this.off("playing",s)}}}src(e){return this.handleSrc_(e,!1)}src_(e){const n=this.selectSource([e]);return n?C4(n.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1):!0}addSourceElement(e,n){return this.tech_?this.tech_.addSourceElement(e,n):!1}removeSourceElement(e){return this.tech_?this.tech_.removeSourceElement(e):!1}load(){if(this.tech_&&this.tech_.vhs){this.src(this.currentSource());return}this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{const e=this.play();jn(e.then(()=>this.doReset_()))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Ci(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:n,progressControl:i,remainingTimeDisplay:r}=this.controlBar||{},{seekBar:s}=i||{};e&&e.updateContent(),n&&n.updateContent(),r&&r.updateContent(),s&&(s.update(),s.loadProgressBar&&s.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),n=[];return Object.keys(e).length!==0&&n.push(e),this.cache_.sources||n}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){if(e!==void 0){this.techCall_("setPreload",e),this.options_.preload=e;return}return this.techGet_("preload")}autoplay(e){if(e===void 0)return this.options_.autoplay||!1;let n;typeof e=="string"&&/(any|play|muted)/.test(e)||e===!0&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_(typeof e=="string"?e:"play"),n=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,n=typeof n>"u"?this.options_.autoplay:n,this.tech_&&this.techCall_("setAutoplay",n)}playsinline(e){return e!==void 0&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){if(e!==void 0){this.techCall_("setLoop",e),this.options_.loop=e;return}return this.techGet_("loop")}poster(e){if(e===void 0)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(e===void 0)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(e===void 0)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(e===void 0)return this.error_||null;if(Qi("beforeerror").forEach(n=>{const i=n(this,e);if(!(ti(i)&&!Array.isArray(i)||typeof i=="string"||typeof i=="number"||i===null)){this.log.error("please return a value that MediaError expects in beforeerror hooks");return}e=i}),this.options_.suppressNotSupportedError&&e&&e.code===4){const n=function(){this.error(e)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),this.one("loadstart",function(){this.off(["click","touchstart"],n)});return}if(e===null){this.error_=null,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new He(e),this.addClass("vjs-error"),Te.error(`(CODE:${this.error_.code} ${He.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),Qi("error").forEach(n=>n(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(e===void 0)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(n){n.stopPropagation(),n.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,n,i;const r=Ze(this,this.reportUserActivity),s=function(y){(y.screenX!==n||y.screenY!==i)&&(n=y.screenX,i=y.screenY,r())},a=function(){r(),this.clearInterval(e),e=this.setInterval(r,250)},o=function(y){r(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",s),this.on("mouseup",o),this.on("mouseleave",o);const c=this.getChild("controlBar");c&&!Vt&&!kn&&(c.on("mouseenter",function(y){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),c.on("mouseleave",function(y){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r);let u;const d=function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(u);const y=this.options_.inactivityTimeout;y<=0||(u=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},y))};this.setInterval(d,250)}playbackRate(e){if(e!==void 0){this.techCall_("setPlaybackRate",e);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1}defaultPlaybackRate(e){return e!==void 0?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(e!==void 0){this.isAudio_=!!e;return}return!!this.isAudio_}updatePlayerHeightOnAudioOnlyMode_(){const e=this.getChild("ControlBar");!e||this.audioOnlyCache_.controlBarHeight===e.currentHeight()||(this.audioOnlyCache_.controlBarHeight=e.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),n=this.getChild("ControlBar"),i=n&&n.currentHeight();e.forEach(r=>{r!==n&&r.el_&&!r.hasClass("vjs-hidden")&&(r.hide(),this.audioOnlyCache_.hiddenChildren.push(r))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=i,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(i),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.off("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if(typeof e!="boolean"||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const n=[];return this.isInPictureInPicture()&&n.push(this.exitPictureInPicture()),this.isFullscreen()&&n.push(this.exitFullscreen()),this.audioPosterMode()&&n.push(this.audioPosterMode(!1)),Promise.all(n).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return typeof e!="boolean"||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(e,n,i){if(this.tech_)return this.tech_.addTextTrack(e,n,i)}addRemoteTextTrack(e,n){if(this.tech_)return this.tech_.addRemoteTextTrack(e,n)}removeRemoteTextTrack(e={}){let{track:n}=e;if(n||(n=e),this.tech_)return this.tech_.removeRemoteTextTrack(n)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(e===void 0)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Ci(this)&&this.trigger("languagechange"))}languages(){return xe(Xe.prototype.options_.languages,this.languages_)}toJSON(){const e=xe(this.options_),n=e.tracks;e.tracks=[];for(let i=0;i<n.length;i++){let r=n[i];r=xe(r),r.player=void 0,e.tracks[i]=r}return e}createModal(e,n){n=n||{},n.content=e||"";const i=new Ys(this,n);return this.addChild(i),i.on("dispose",()=>{this.removeChild(i)}),i.open(),i}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),n=this.currentWidth();for(let i=0;i<Kd.length;i++){const r=Kd[i],s=this.breakpoints_[r];if(n<=s){if(e===r)return;e&&this.removeClass(Cl[e]),this.addClass(Cl[r]),this.breakpoint_=r;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return e===void 0?Object.assign(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=Object.assign({},BU,e),this.updateCurrentBreakpoint_(),Object.assign(this.breakpoints_))}responsive(e){if(e===void 0)return this.responsive_;e=!!e;const n=this.responsive_;if(e!==n)return this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return Cl[this.breakpoint_]||""}loadMedia(e,n){if(!e||typeof e!="object")return;const i=this.crossOrigin();this.reset(),this.cache_.media=xe(e);const{artist:r,artwork:s,description:a,poster:o,src:c,textTracks:u,title:d}=this.cache_.media;!s&&o&&(this.cache_.media.artwork=[{src:o,type:tc(o)}]),i&&this.crossOrigin(i),c&&this.src(c),o&&this.poster(o),Array.isArray(u)&&u.forEach(y=>this.addRemoteTextTrack(y,!1)),this.titleBar&&this.titleBar.update({title:d,description:a||r||""}),this.ready(n)}getMedia(){if(!this.cache_.media){const e=this.poster(),n=this.currentSources(),i=Array.prototype.map.call(this.remoteTextTracks(),s=>({kind:s.kind,label:s.label,language:s.language,src:s.src})),r={src:n,textTracks:i};return e&&(r.poster=e,r.artwork=[{src:r.poster,type:tc(r.poster)}]),r}return xe(this.cache_.media)}static getTagSettings(e){const n={sources:[],tracks:[]},i=Yi(e),r=i["data-setup"];if(Wa(e,"vjs-fill")&&(i.fill=!0),Wa(e,"vjs-fluid")&&(i.fluid=!0),r!==null)try{Object.assign(i,JSON.parse(r||"{}"))}catch(s){Te.error("data-setup",s)}if(Object.assign(n,i),e.hasChildNodes()){const s=e.childNodes;for(let a=0,o=s.length;a<o;a++){const c=s[a],u=c.nodeName.toLowerCase();u==="source"?n.sources.push(Yi(c)):u==="track"&&n.tracks.push(Yi(c))}}return n}debug(e){if(e===void 0)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(e===void 0)return this.cache_.playbackRates;Array.isArray(e)&&e.every(n=>typeof n=="number")&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}Zt.names.forEach(function(t){const e=Zt[t];Xe.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}});Xe.prototype.crossorigin=Xe.prototype.crossOrigin;Xe.players={};const Ca=x.navigator;Xe.prototype.options_={techOrder:Ee.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Ca&&(Ca.languages&&Ca.languages[0]||Ca.userLanguage||Ca.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1,disableSeekWhileScrubbingOnMobile:!1};o8.forEach(function(t){Xe.prototype[`handleTech${Je(t)}_`]=function(){return this.trigger(t)}});$.registerComponent("Player",Xe);const nc="plugin",hs="activePlugins_",is={},ic=t=>is.hasOwnProperty(t),Al=t=>ic(t)?is[t]:void 0,l8=(t,e)=>{t[hs]=t[hs]||{},t[hs][e]=!0},rc=(t,e,n)=>{const i=(n?"before":"")+"pluginsetup";t.trigger(i,e),t.trigger(i+":"+e.name,e)},WU=function(t,e){const n=function(){rc(this,{name:t,plugin:e,instance:null},!0);const i=e.apply(this,arguments);return l8(this,t),rc(this,{name:t,plugin:e,instance:i}),i};return Object.keys(e).forEach(function(i){n[i]=e[i]}),n},ng=(t,e)=>(e.prototype.name=t,function(...n){rc(this,{name:t,plugin:e,instance:null},!0);const i=new e(this,...n);return this[t]=()=>i,rc(this,i.getEventHash()),i});class Kt{constructor(e){if(this.constructor===Kt)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),kh(this),delete this.trigger,v4(this,this.constructor.defaultState),l8(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,n={}){return Ps(this.eventBusEl_,e,this.getEventHash(n))}handleStateChanged(e){}dispose(){const{name:e,player:n}=this;this.trigger("dispose"),this.off(),n.off("dispose",this.dispose),n[hs][e]=!1,this.player=this.state=null,n[e]=ng(e,is[e])}static isBasic(e){const n=typeof e=="string"?Al(e):e;return typeof n=="function"&&!Kt.prototype.isPrototypeOf(n.prototype)}static registerPlugin(e,n){if(typeof e!="string")throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(ic(e))Te.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(Xe.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if(typeof n!="function")throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof n}.`);return is[e]=n,e!==nc&&(Kt.isBasic(n)?Xe.prototype[e]=WU(e,n):Xe.prototype[e]=ng(e,n)),n}static deregisterPlugin(e){if(e===nc)throw new Error("Cannot de-register base plugin.");ic(e)&&(delete is[e],delete Xe.prototype[e])}static getPlugins(e=Object.keys(is)){let n;return e.forEach(i=>{const r=Al(i);r&&(n=n||{},n[i]=r)}),n}static getPluginVersion(e){const n=Al(e);return n&&n.VERSION||""}}Kt.getPlugin=Al;Kt.BASE_PLUGIN_NAME=nc;Kt.registerPlugin(nc,Kt);Xe.prototype.usingPlugin=function(t){return!!this[hs]&&this[hs][t]===!0};Xe.prototype.hasPlugin=function(t){return!!ic(t)};function ZU(t,e){let n=!1;return function(...i){return n||Te.warn(t),n=!0,e.apply(this,i)}}function xn(t,e,n,i){return ZU(`${e} is deprecated and will be removed in ${t}.0; please use ${n} instead.`,i)}var DU={NetworkBadStatus:"networkbadstatus",NetworkRequestFailed:"networkrequestfailed",NetworkRequestAborted:"networkrequestaborted",NetworkRequestTimeout:"networkrequesttimeout",NetworkBodyParserFailed:"networkbodyparserfailed",StreamingHlsPlaylistParserError:"streaminghlsplaylistparsererror",StreamingDashManifestParserError:"streamingdashmanifestparsererror",StreamingContentSteeringParserError:"streamingcontentsteeringparsererror",StreamingVttParserError:"streamingvttparsererror",StreamingFailedToSelectNextSegment:"streamingfailedtoselectnextsegment",StreamingFailedToDecryptSegment:"streamingfailedtodecryptsegment",StreamingFailedToTransmuxSegment:"streamingfailedtotransmuxsegment",StreamingFailedToAppendSegment:"streamingfailedtoappendsegment",StreamingCodecsChangeError:"streamingcodecschangeerror"};const c8=t=>t.indexOf("#")===0?t.slice(1):t;function P(t,e,n){let i=P.getPlayer(t);if(i)return e&&Te.warn(`Player "${t}" is already initialised. Options will not be applied.`),n&&i.ready(n),i;const r=typeof t=="string"?Ki("#"+c8(t)):t;if(!Ms(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");const s="getRootNode"in r&&r.getRootNode()instanceof x.ShadowRoot?r.getRootNode():r.ownerDocument.body;(!r.ownerDocument.defaultView||!s.contains(r))&&Te.warn("The element supplied is not included in the DOM"),e=e||{},e.restoreEl===!0&&(e.restoreEl=(r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),Qi("beforesetup").forEach(o=>{const c=o(r,xe(e));if(!ti(c)||Array.isArray(c)){Te.error("please return an object in beforesetup hooks");return}e=xe(e,c)});const a=$.getComponent("Player");return i=new a(r,e,n),Qi("setup").forEach(o=>o(i)),i}P.hooks_=mi;P.hooks=Qi;P.hook=yN;P.hookOnce=bN;P.removeHook=H5;if(x.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&Gs()){let t=Ki(".vjs-styles-defaults");if(!t){t=f4("vjs-styles-defaults");const e=Ki("head");e&&e.insertBefore(t,e.firstChild),y4(t,`
245
- .video-js {
246
- width: 300px;
247
- height: 150px;
248
- }
249
-
250
- .vjs-fluid:not(.vjs-audio-only-mode) {
251
- padding-top: 56.25%
252
- }
253
- `)}}Pd(1,P);P.VERSION=Od;P.options=Xe.prototype.options_;P.getPlayers=()=>Xe.players;P.getPlayer=t=>{const e=Xe.players;let n;if(typeof t=="string"){const i=c8(t),r=e[i];if(r)return r;n=Ki("#"+i)}else n=t;if(Ms(n)){const{player:i,playerId:r}=n;if(i||e[r])return i||e[r]}};P.getAllPlayers=()=>Object.keys(Xe.players).map(t=>Xe.players[t]).filter(Boolean);P.players=Xe.players;P.getComponent=$.getComponent;P.registerComponent=(t,e)=>(Ee.isTech(e)&&Te.warn(`The ${t} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),$.registerComponent.call($,t,e));P.getTech=Ee.getTech;P.registerTech=Ee.registerTech;P.use=jN;Object.defineProperty(P,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(P.middleware,"TERMINATOR",{value:ec,writeable:!1,enumerable:!0});P.browser=t4;P.obj=vN;P.mergeOptions=xn(9,"videojs.mergeOptions","videojs.obj.merge",xe);P.defineLazyProperty=xn(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",Uc);P.bind=xn(9,"videojs.bind","native Function.prototype.bind",Ze);P.registerPlugin=Kt.registerPlugin;P.deregisterPlugin=Kt.deregisterPlugin;P.plugin=(t,e)=>(Te.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Kt.registerPlugin(t,e));P.getPlugins=Kt.getPlugins;P.getPlugin=Kt.getPlugin;P.getPluginVersion=Kt.getPluginVersion;P.addLanguage=function(t,e){return t=(""+t).toLowerCase(),P.options.languages=xe(P.options.languages,{[t]:e}),P.options.languages[t]};P.log=Te;P.createLogger=j5;P.time=BN;P.createTimeRange=xn(9,"videojs.createTimeRange","videojs.time.createTimeRanges",Nn);P.createTimeRanges=xn(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",Nn);P.formatTime=xn(9,"videojs.formatTime","videojs.time.formatTime",xr);P.setFormatTime=xn(9,"videojs.setFormatTime","videojs.time.setFormatTime",S4);P.resetFormatTime=xn(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",_4);P.parseUrl=xn(9,"videojs.parseUrl","videojs.url.parseUrl",Fh);P.isCrossOrigin=xn(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Mc);P.EventTarget=rn;P.any=Uh;P.on=nn;P.one=Xc;P.off=wt;P.trigger=Ps;P.xhr=A5;P.TextTrack=fo;P.AudioTrack=w4;P.VideoTrack=N4;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(t=>{P[t]=function(){return Te.warn(`videojs.${t}() is deprecated; use videojs.dom.${t}() instead`),m4[t].apply(null,arguments)}});P.computedStyle=xn(9,"videojs.computedStyle","videojs.dom.computedStyle",Ws);P.dom=m4;P.fn=NN;P.num=mU;P.str=LN;P.url=YN;P.Error=DU;/*! @name videojs-contrib-quality-levels @version 4.1.0 @license Apache-2.0 */class OU{constructor(e){let n=this;return n.id=e.id,n.label=n.id,n.width=e.width,n.height=e.height,n.bitrate=e.bandwidth,n.frameRate=e.frameRate,n.enabled_=e.enabled,Object.defineProperty(n,"enabled",{get(){return n.enabled_()},set(i){n.enabled_(i)}}),n}}class sc extends P.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get(){return e.selectedIndex_}}),Object.defineProperty(e,"length",{get(){return e.levels_.length}}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let n=this.getQualityLevelById(e.id);if(n)return n;const i=this.levels_.length;return n=new OU(e),""+i in this||Object.defineProperty(this,i,{get(){return this.levels_[i]}}),this.levels_.push(n),this.trigger({qualityLevel:n,type:"addqualitylevel"}),n}removeQualityLevel(e){let n=null;for(let i=0,r=this.length;i<r;i++)if(this[i]===e){n=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return n&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),n}getQualityLevelById(e){for(let n=0,i=this.length;n<i;n++){const r=this[n];if(r.id===e)return r}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}sc.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const t in sc.prototype.allowedEvents_)sc.prototype["on"+t]=null;var u8="4.1.0";const XU=function(t,e){const n=t.qualityLevels,i=new sc,r=function(){i.dispose(),t.qualityLevels=n,t.off("dispose",r)};return t.on("dispose",r),t.qualityLevels=()=>i,t.qualityLevels.VERSION=u8,i},d8=function(t){return XU(this,P.obj.merge({},t))};P.registerPlugin("qualityLevels",d8);d8.VERSION=u8;/*! @name @videojs/http-streaming @version 3.16.2 @license Apache-2.0 */const jt=Rc,ac=(t,e)=>e&&e.responseURL&&t!==e.responseURL?e.responseURL:t,bn=t=>P.log.debug?P.log.debug.bind(P,"VHS:",`${t} >`):function(){};function _e(...t){const e=P.obj||P;return(e.merge||e.mergeOptions).apply(e,t)}function Ut(...t){const e=P.time||P;return(e.createTimeRanges||e.createTimeRanges).apply(e,t)}function GU(t){if(t.length===0)return"Buffered Ranges are empty";let e=`Buffered Ranges:
254
- `;for(let n=0;n<t.length;n++){const i=t.start(n),r=t.end(n);e+=`${i} --> ${r}. Duration (${r-i})
255
- `}return e}const Jn=1/30,Qn=Jn*3,h8=function(t,e){const n=[];let i;if(t&&t.length)for(i=0;i<t.length;i++)e(t.start(i),t.end(i))&&n.push([t.start(i),t.end(i)]);return Ut(n)},rs=function(t,e){return h8(t,function(n,i){return n-Qn<=e&&i+Qn>=e})},cl=function(t,e){return h8(t,function(n){return n-Jn>=e})},MU=function(t){if(t.length<2)return Ut();const e=[];for(let n=1;n<t.length;n++){const i=t.end(n-1),r=t.start(n);e.push([i,r])}return Ut(e)},PU=function(t,e){let n=null,i=null,r=0;const s=[],a=[];if(!t||!t.length||!e||!e.length)return Ut();let o=t.length;for(;o--;)s.push({time:t.start(o),type:"start"}),s.push({time:t.end(o),type:"end"});for(o=e.length;o--;)s.push({time:e.start(o),type:"start"}),s.push({time:e.end(o),type:"end"});for(s.sort(function(c,u){return c.time-u.time}),o=0;o<s.length;o++)s[o].type==="start"?(r++,r===2&&(n=s[o].time)):s[o].type==="end"&&(r--,r===1&&(i=s[o].time)),n!==null&&i!==null&&(a.push([n,i]),n=null,i=null);return Ut(a)},p8=t=>{const e=[];if(!t||!t.length)return"";for(let n=0;n<t.length;n++)e.push(t.start(n)+" => "+t.end(n));return e.join(", ")},YU=function(t,e,n=1){return((t.length?t.end(t.length-1):0)-e)/n},_r=t=>{const e=[];for(let n=0;n<t.length;n++)e.push({start:t.start(n),end:t.end(n)});return e},HU=function(t,e){if(t===e)return!1;if(!t&&e||!e&&t||t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(t.start(n)!==e.start(n)||t.end(n)!==e.end(n))return!0;return!1},id=function(t){if(!(!t||!t.length||!t.end))return t.end(t.length-1)},zh=function(t,e){let n=0;if(!t||!t.length)return n;for(let i=0;i<t.length;i++){const r=t.start(i),s=t.end(i);if(!(e>s)){if(e>r&&e<=s){n+=s-e;continue}n+=s-r}}return n},qh=(t,e)=>{if(!e.preload)return e.duration;let n=0;return(e.parts||[]).forEach(function(i){n+=i.duration}),(e.preloadHints||[]).forEach(function(i){i.type==="PART"&&(n+=t.partTargetDuration)}),n},$d=t=>(t.segments||[]).reduce((e,n,i)=>(n.parts?n.parts.forEach(function(r,s){e.push({duration:r.duration,segmentIndex:i,partIndex:s,part:r,segment:n})}):e.push({duration:n.duration,segmentIndex:i,partIndex:null,segment:n,part:null}),e),[]),m8=t=>{const e=t.segments&&t.segments.length&&t.segments[t.segments.length-1];return e&&e.parts||[]},g8=({preloadSegment:t})=>{if(!t)return;const{parts:e,preloadHints:n}=t;let i=(n||[]).reduce((r,s)=>r+(s.type==="PART"?1:0),0);return i+=e&&e.length?e.length:0,i},f8=(t,e)=>{if(e.endList)return 0;if(t&&t.suggestedPresentationDelay)return t.suggestedPresentationDelay;const n=m8(e).length>0;return n&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:n&&e.partTargetDuration?e.partTargetDuration*3:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?e.targetDuration*3:0},jU=function(t,e){let n=0,i=e-t.mediaSequence,r=t.segments[i];if(r){if(typeof r.start<"u")return{result:r.start,precise:!0};if(typeof r.end<"u")return{result:r.end-r.duration,precise:!0}}for(;i--;){if(r=t.segments[i],typeof r.end<"u")return{result:n+r.end,precise:!0};if(n+=qh(t,r),typeof r.start<"u")return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},JU=function(t,e){let n=0,i,r=e-t.mediaSequence;for(;r<t.segments.length;r++){if(i=t.segments[r],typeof i.start<"u")return{result:i.start-n,precise:!0};if(n+=qh(t,i),typeof i.end<"u")return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}},y8=function(t,e,n){if(typeof e>"u"&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence)return 0;const i=jU(t,e);if(i.precise)return i.result;const r=JU(t,e);return r.precise?r.result:i.result+n},b8=function(t,e,n){if(!t)return 0;if(typeof n!="number"&&(n=0),typeof e>"u"){if(t.totalDuration)return t.totalDuration;if(!t.endList)return x.Infinity}return y8(t,e,n)},Oa=function({defaultDuration:t,durationList:e,startIndex:n,endIndex:i}){let r=0;if(n>i&&([n,i]=[i,n]),n<0){for(let s=n;s<Math.min(0,i);s++)r+=t;n=0}for(let s=n;s<i;s++)r+=e[s].duration;return r},E8=function(t,e,n,i){if(!t||!t.segments)return null;if(t.endList)return b8(t);if(e===null)return null;e=e||0;let r=y8(t,t.mediaSequence+t.segments.length,e);return n&&(i=typeof i=="number"?i:f8(null,t),r-=i),Math.max(0,r)},QU=function(t,e,n){const i=e||0;let r=E8(t,e,!0,n);return r===null?Ut():(r<i&&(r=i),Ut(i,r))},KU=function({playlist:t,currentTime:e,startingSegmentIndex:n,startingPartIndex:i,startTime:r,exactManifestTimings:s}){let a=e-r;const o=$d(t);let c=0;for(let u=0;u<o.length;u++){const d=o[u];if(n===d.segmentIndex&&!(typeof i=="number"&&typeof d.partIndex=="number"&&i!==d.partIndex)){c=u;break}}if(a<0){if(c>0)for(let u=c-1;u>=0;u--){const d=o[u];if(a+=d.duration,s){if(a<0)continue}else if(a+Jn<=0)continue;return{partIndex:d.partIndex,segmentIndex:d.segmentIndex,startTime:r-Oa({defaultDuration:t.targetDuration,durationList:o,startIndex:c,endIndex:u})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:e}}if(c<0){for(let u=c;u<0;u++)if(a-=t.targetDuration,a<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:e};c=0}for(let u=c;u<o.length;u++){const d=o[u];a-=d.duration;const y=d.duration>Jn,A=a===0,T=y&&a+Jn>=0;if(!((A||T)&&u!==o.length-1)){if(s){if(a>0)continue}else if(a-Jn>=0)continue;return{partIndex:d.partIndex,segmentIndex:d.segmentIndex,startTime:r+Oa({defaultDuration:t.targetDuration,durationList:o,startIndex:c,endIndex:u})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:e}},T8=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},ep=function(t){return t.excludeUntil&&t.excludeUntil===1/0},jc=function(t){const e=T8(t);return!t.disabled&&!e},$U=function(t){return t.disabled},zU=function(t){for(let e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1},v8=function(t,e){return e.attributes&&e.attributes[t]},qU=function(t,e,n,i=0){return v8("BANDWIDTH",n)?(t*n.attributes.BANDWIDTH-i*8)/e:NaN},zd=(t,e)=>{if(t.playlists.length===1)return!0;const n=e.attributes.BANDWIDTH||Number.MAX_VALUE;return t.playlists.filter(i=>jc(i)?(i.attributes.BANDWIDTH||0)<n:!1).length===0},tp=(t,e)=>!t&&!e||!t&&e||t&&!e?!1:!!(t===e||t.id&&e.id&&t.id===e.id||t.resolvedUri&&e.resolvedUri&&t.resolvedUri===e.resolvedUri||t.uri&&e.uri&&t.uri===e.uri),ig=function(t,e){const n=t&&t.mediaGroups&&t.mediaGroups.AUDIO||{};let i=!1;for(const r in n){for(const s in n[r])if(i=e(n[r][s]),i)break;if(i)break}return!!i},To=t=>{if(!t||!t.playlists||!t.playlists.length)return ig(t,e=>e.playlists&&e.playlists.length||e.uri);for(let e=0;e<t.playlists.length;e++){const n=t.playlists[e],i=n.attributes&&n.attributes.CODECS;if(!(i&&i.split(",").every(r=>U5(r))||ig(t,r=>tp(n,r))))return!1}return!0};var Jt={liveEdgeDelay:f8,duration:b8,seekable:QU,getMediaInfoForTime:KU,isEnabled:jc,isDisabled:$U,isExcluded:T8,isIncompatible:ep,playlistEnd:E8,isAes:zU,hasAttribute:v8,estimateSegmentRequestTime:qU,isLowestEnabledRendition:zd,isAudioOnly:To,playlistMatch:tp,segmentDurationWithParts:qh};const{log:C8}=P,ps=(t,e)=>`${t}-${e}`,A8=(t,e,n)=>`placeholder-uri-${t}-${e}-${n}`,ek=({onwarn:t,oninfo:e,manifestString:n,customTagParsers:i=[],customTagMappers:r=[],llhls:s})=>{const a=new PV;t&&a.on("warn",t),e&&a.on("info",e),i.forEach(u=>a.addParser(u)),r.forEach(u=>a.addTagMapper(u)),a.push(n),a.end();const o=a.manifest;if(s||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(u){o.hasOwnProperty(u)&&delete o[u]}),o.segments&&o.segments.forEach(function(u){["parts","preloadHints"].forEach(function(d){u.hasOwnProperty(d)&&delete u[d]})})),!o.targetDuration){let u=10;o.segments&&o.segments.length&&(u=o.segments.reduce((d,y)=>Math.max(d,y.duration),0)),t&&t({message:`manifest has no targetDuration defaulting to ${u}`}),o.targetDuration=u}const c=m8(o);if(c.length&&!o.partTargetDuration){const u=c.reduce((d,y)=>Math.max(d,y.duration),0);t&&(t({message:`manifest has no partTargetDuration defaulting to ${u}`}),C8.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=u}return o},Js=(t,e)=>{t.mediaGroups&&["AUDIO","SUBTITLES"].forEach(n=>{if(t.mediaGroups[n])for(const i in t.mediaGroups[n])for(const r in t.mediaGroups[n][i]){const s=t.mediaGroups[n][i][r];e(s,n,i,r)}})},S8=({playlist:t,uri:e,id:n})=>{t.id=n,t.playlistErrors_=0,e&&(t.uri=e),t.attributes=t.attributes||{}},tk=t=>{let e=t.playlists.length;for(;e--;){const n=t.playlists[e];S8({playlist:n,id:ps(e,n.uri)}),n.resolvedUri=jt(t.uri,n.uri),t.playlists[n.id]=n,t.playlists[n.uri]=n,n.attributes.BANDWIDTH||C8.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},nk=t=>{Js(t,e=>{e.uri&&(e.resolvedUri=jt(t.uri,e.uri))})},ik=(t,e)=>{const n=ps(0,e),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:x.location.href,resolvedUri:x.location.href,playlists:[{uri:e,id:n,resolvedUri:e,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[e]=i.playlists[0],i},_8=(t,e,n=A8)=>{t.uri=e;for(let r=0;r<t.playlists.length;r++)if(!t.playlists[r].uri){const s=`placeholder-uri-${r}`;t.playlists[r].uri=s}const i=To(t);Js(t,(r,s,a,o)=>{if(!r.playlists||!r.playlists.length){if(i&&s==="AUDIO"&&!r.uri)for(let c=0;c<t.playlists.length;c++){const u=t.playlists[c];if(u.attributes&&u.attributes.AUDIO&&u.attributes.AUDIO===a)return}r.playlists=[it({},r)]}r.playlists.forEach(function(c,u){const d=n(s,a,o,c),y=ps(u,d);c.uri?c.resolvedUri=c.resolvedUri||jt(t.uri,c.uri):(c.uri=u===0?d:y,c.resolvedUri=c.uri),c.id=c.id||y,c.attributes=c.attributes||{},t.playlists[c.id]=c,t.playlists[c.uri]=c})}),tk(t),nk(t)};class rg{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(this.offset_!==null||!e.length)return;const[n]=e;n.programDateTime!==void 0&&(this.offset_=n.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[n]=e,i=n.startDate.getTime();this.trimProcessedDateRanges_(i),this.pendingDateRanges_=e.reduce((r,s)=>(r.set(s.id,s),r),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(this.offset_===null)return[];const e={},n=[];this.pendingDateRanges_.forEach((i,r)=>{if(!this.processedDateRanges_.has(r)&&(i.startTime=i.startDate.getTime()/1e3-this.offset_,i.processDateRange=()=>this.processDateRange(i),n.push(i),!!i.class))if(e[i.class]){const s=e[i.class].push(i);i.classListIndex=s-1}else e[i.class]=[i],i.classListIndex=0});for(const i of n){const r=e[i.class]||[];i.endDate?i.endTime=i.endDate.getTime()/1e3-this.offset_:i.endOnNext&&r[i.classListIndex+1]?i.endTime=r[i.classListIndex+1].startTime:i.duration?i.endTime=i.startTime+i.duration:i.plannedDuration?i.endTime=i.startTime+i.plannedDuration:i.endTime=i.startTime}return n}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((n,i)=>{n.startDate.getTime()<e&&this.processedDateRanges_.delete(i)})}}const R8=22,Ur=({requestType:t,request:e,error:n,parseFailure:i})=>{const r=e.status<200||e.status>299,s=e.status>=400&&e.status<=499,a={uri:e.uri,requestType:t},o=r&&!s||i;if(n&&s)a.error=it({},n),a.errorType=P.Error.NetworkRequestFailed;else if(e.aborted)a.errorType=P.Error.NetworkRequestAborted;else if(e.timedout)a.erroType=P.Error.NetworkRequestTimeout;else if(o){const c=i?P.Error.NetworkBodyParserFailed:P.Error.NetworkBadStatus;a.errorType=c,a.status=e.status,a.headers=e.headers}return a},{EventTarget:rk}=P,sk=(t,e)=>{if(e.endList||!e.serverControl)return t;const n={};if(e.serverControl.canBlockReload){const{preloadSegment:i}=e;let r=e.mediaSequence+e.segments.length;if(i){const s=i.parts||[],a=g8(e)-1;a>-1&&a!==s.length-1&&(n._HLS_part=a),(a>-1||s.length)&&r--}n._HLS_msn=r}if(e.serverControl&&e.serverControl.canSkipUntil&&(n._HLS_skip=e.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){const i=new x.URL(t);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(r){n.hasOwnProperty(r)&&i.searchParams.set(r,n[r])}),t=i.toString()}return t},ak=(t,e)=>{if(!t)return e;const n=_e(t,e);if(t.preloadHints&&!e.preloadHints&&delete n.preloadHints,t.parts&&!e.parts)delete n.parts;else if(t.parts&&e.parts)for(let i=0;i<e.parts.length;i++)t.parts&&t.parts[i]&&(n.parts[i]=_e(t.parts[i],e.parts[i]));return!t.skipped&&e.skipped&&(n.skipped=!1),t.preload&&!e.preload&&(n.preload=!1),n},ok=(t,e,n)=>{const i=t.slice(),r=e.slice();n=n||0;const s=[];let a;for(let o=0;o<r.length;o++){const c=i[o+n],u=r[o];c?(a=c.map||a,s.push(ak(c,u))):(a&&!u.map&&(u.map=a),s.push(u))}return s},I8=(t,e)=>{!t.resolvedUri&&t.uri&&(t.resolvedUri=jt(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=jt(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=jt(e,t.map.uri)),t.map&&t.map.key&&!t.map.key.resolvedUri&&(t.map.key.resolvedUri=jt(e,t.map.key.uri)),t.parts&&t.parts.length&&t.parts.forEach(n=>{n.resolvedUri||(n.resolvedUri=jt(e,n.uri))}),t.preloadHints&&t.preloadHints.length&&t.preloadHints.forEach(n=>{n.resolvedUri||(n.resolvedUri=jt(e,n.uri))})},V8=function(t){const e=t.segments||[],n=t.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints){for(let i=0;i<n.preloadHints.length;i++)if(n.preloadHints[i].type==="MAP")return e}n.duration=t.targetDuration,n.preload=!0,e.push(n)}return e},w8=(t,e)=>t===e||t.segments&&e.segments&&t.segments.length===e.segments.length&&t.endList===e.endList&&t.mediaSequence===e.mediaSequence&&t.preloadSegment===e.preloadSegment,qd=(t,e,n=w8)=>{const i=_e(t,{}),r=i.playlists[e.id];if(!r||n(r,e))return null;e.segments=V8(e);const s=_e(r,e);if(s.preloadSegment&&!e.preloadSegment&&delete s.preloadSegment,r.segments){if(e.skip){e.segments=e.segments||[];for(let a=0;a<e.skip.skippedSegments;a++)e.segments.unshift({skipped:!0})}s.segments=ok(r.segments,e.segments,e.mediaSequence-r.mediaSequence)}s.segments.forEach(a=>{I8(a,s.resolvedUri)});for(let a=0;a<i.playlists.length;a++)i.playlists[a].id===e.id&&(i.playlists[a]=s);return i.playlists[e.id]=s,i.playlists[e.uri]=s,Js(t,(a,o,c,u)=>{if(a.playlists)for(let d=0;d<a.playlists.length;d++)e.id===a.playlists[d].id&&(a.playlists[d]=s)}),i},e1=(t,e)=>{const n=t.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],s=r&&r.duration||i&&i.duration;return e&&s?s*1e3:(t.partTargetDuration||t.targetDuration||10)*500},sg=(t,e,n)=>{if(!t)return;const i=[];return t.forEach(r=>{if(!r.attributes)return;const{BANDWIDTH:s,RESOLUTION:a,CODECS:o}=r.attributes;i.push({id:r.id,bandwidth:s,resolution:a,codecs:o})}),{type:e,isLive:n,renditions:i}};class ss extends rk{constructor(e,n,i={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=bn("PlaylistLoader");const{withCredentials:r=!1}=i;this.src=e,this.vhs_=n,this.withCredentials=r,this.addDateRangesToTextTrack_=i.addDateRangesToTextTrack;const s=n.options_;this.customTagParsers=s&&s.customTagParsers||[],this.customTagMappers=s&&s.customTagMappers||[],this.llhls=s&&s.llhls,this.dateRangesStorage_=new rg,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const n=this.dateRangesStorage_.getDateRangesToProcess();!n.length||!this.addDateRangesToTextTrack_||this.addDateRangesToTextTrack_(n)}handleMediaupdatetimeout_(){if(this.state!=="HAVE_METADATA")return;const e=this.media();let n=jt(this.main.uri,e.uri);this.llhls&&(n=sk(n,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials,requestType:"hls-playlist"},(i,r)=>{if(this.request){if(i)return this.playlistRequestError(this.request,this.media(),"HAVE_METADATA");this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}})}playlistRequestError(e,n,i){const{uri:r,id:s}=n;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[s],status:e.status,message:`HLS playlist request error at URL: ${r}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:Ur({requestType:e.requestType,request:e,error:e.error})},this.trigger("error")}parseManifest_({url:e,manifestString:n}){try{return ek({onwarn:({message:i})=>this.logger_(`m3u8-parser warn for ${e}: ${i}`),oninfo:({message:i})=>this.logger_(`m3u8-parser info for ${e}: ${i}`),manifestString:n,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}catch(i){this.error=i,this.error.metadata={errorType:P.Error.StreamingHlsPlaylistParserError,error:i}}}haveMetadata({playlistString:e,playlistObject:n,url:i,id:r}){this.request=null,this.state="HAVE_METADATA";const s={playlistInfo:{type:"media",uri:i}};this.trigger({type:"playlistparsestart",metadata:s});const a=n||this.parseManifest_({url:i,manifestString:e});a.lastRequest=Date.now(),S8({playlist:a,uri:i,id:r});const o=qd(this.main,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,o?(this.main=o,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(e1(this.media(),!!o)),s.parsedPlaylist=sg(this.main.playlists,s.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:s}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),x.clearTimeout(this.mediaUpdateTimeout),x.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new rg,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,n){if(!e)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);if(typeof e=="string"){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(x.clearTimeout(this.finalRenditionTimeout),n){const o=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=x.setTimeout(this.media.bind(this,e,!1),o);return}const i=this.state,r=!this.media_||e.id!==this.media_.id,s=this.main.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,r&&(this.trigger("mediachanging"),i==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(e1(e,!0)),!r)return;if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e;const a={playlistInfo:{type:"media",uri:e.uri}};this.trigger({type:"playlistrequeststart",metadata:a}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},(o,c)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=ac(e.resolvedUri,c),o)return this.playlistRequestError(this.request,e,i);this.trigger({type:"playlistrequestcomplete",metadata:a}),this.haveMetadata({playlistString:c.responseText,url:e.uri,id:e.id}),i==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}pause(){this.mediaUpdateTimeout&&(x.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),this.state==="HAVE_NOTHING"&&(this.started=!1),this.state==="SWITCHING_MEDIA"?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":this.state==="HAVE_CURRENT_METADATA"&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(x.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const n=this.media();if(e){const i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=x.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},i);return}if(!this.started){this.start();return}n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(x.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=x.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}start(){if(this.started=!0,typeof this.src=="object"){this.src.uri||(this.src.uri=x.location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}const e={playlistInfo:{type:"multivariant",uri:this.src}};this.trigger({type:"playlistrequeststart",metadata:e}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},(n,i)=>{if(!this.request)return;if(this.request=null,n)return this.error={status:i.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:i.responseText,code:2,metadata:Ur({requestType:i.requestType,request:i,error:n})},this.state==="HAVE_NOTHING"&&(this.started=!1),this.trigger("error");this.trigger({type:"playlistrequestcomplete",metadata:e}),this.src=ac(this.src,i),this.trigger({type:"playlistparsestart",metadata:e});const r=this.parseManifest_({manifestString:i.responseText,url:this.src});e.parsedPlaylist=sg(r.playlists,e.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:e}),this.setupInitialPlaylist(r)})}srcUri(){return typeof this.src=="string"?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists){this.main=e,_8(this.main,this.srcUri()),e.playlists.forEach(i=>{i.segments=V8(i),i.segments.forEach(r=>{I8(r,i.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}const n=this.srcUri()||x.location.href;this.main=ik(e,n),this.haveMetadata({playlistObject:e,url:n,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,n){const i=this.main,r=e.ID;let s=i.playlists.length;for(;s--;){const a=i.playlists[s];if(a.attributes["PATHWAY-ID"]===r){const o=a.resolvedUri,c=a.id;if(n){const u=this.createCloneURI_(a.resolvedUri,e),d=ps(r,u),y=this.createCloneAttributes_(r,a.attributes),A=this.createClonePlaylist_(a,d,e,y);i.playlists[s]=A,i.playlists[d]=A,i.playlists[u]=A}else i.playlists.splice(s,1);delete i.playlists[c],delete i.playlists[o]}}this.updateOrDeleteCloneMedia(e,n)}updateOrDeleteCloneMedia(e,n){const i=this.main,r=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(s=>{if(!(!i.mediaGroups[s]||!i.mediaGroups[s][r])){for(const a in i.mediaGroups[s])if(a===r){for(const o in i.mediaGroups[s][a])i.mediaGroups[s][a][o].playlists.forEach((c,u)=>{const d=i.playlists[c.id],y=d.id,A=d.resolvedUri;delete i.playlists[y],delete i.playlists[A]});delete i.mediaGroups[s][a]}}}),n&&this.createClonedMediaGroups_(e)}addClonePathway(e,n={}){const i=this.main,r=i.playlists.length,s=this.createCloneURI_(n.resolvedUri,e),a=ps(e.ID,s),o=this.createCloneAttributes_(e.ID,n.attributes),c=this.createClonePlaylist_(n,a,e,o);i.playlists[r]=c,i.playlists[a]=c,i.playlists[s]=c,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const n=e.ID,i=e["BASE-ID"],r=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(s=>{if(!(!r.mediaGroups[s]||r.mediaGroups[s][n]))for(const a in r.mediaGroups[s]){if(a===i)r.mediaGroups[s][n]={};else continue;for(const o in r.mediaGroups[s][a]){const c=r.mediaGroups[s][a][o];r.mediaGroups[s][n][o]=it({},c);const u=r.mediaGroups[s][n][o],d=this.createCloneURI_(c.resolvedUri,e);u.resolvedUri=d,u.uri=d,u.playlists=[],c.playlists.forEach((y,A)=>{const T=r.playlists[y.id],_=A8(s,n,o),b=ps(n,_);if(T&&!r.playlists[b]){const V=this.createClonePlaylist_(T,b,e),w=V.resolvedUri;r.playlists[b]=V,r.playlists[w]=V}u.playlists[A]=this.createClonePlaylist_(y,b,e)})}}})}createClonePlaylist_(e,n,i,r){const s=this.createCloneURI_(e.resolvedUri,i),a={resolvedUri:s,uri:s,id:n};return e.segments&&(a.segments=[]),r&&(a.attributes=r),_e(e,a)}createCloneURI_(e,n){const i=new URL(e);i.hostname=n["URI-REPLACEMENT"].HOST;const r=n["URI-REPLACEMENT"].PARAMS;for(const s of Object.keys(r))i.searchParams.set(s,r[s]);return i.href}createCloneAttributes_(e,n){const i={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{n[r]&&(i[r]=e)}),i}getKeyIdSet(e){if(e.contentProtection){const n=new Set;for(const i in e.contentProtection){const r=e.contentProtection[i].attributes.keyId;r&&n.add(r.toLowerCase())}return n}}}const t1=function(t,e,n,i){const r=t.responseType==="arraybuffer"?t.response:t.responseText;!e&&r&&(t.responseTime=Date.now(),t.roundTripTime=t.responseTime-t.requestTime,t.bytesReceived=r.byteLength||r.length,t.bandwidth||(t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3))),n.headers&&(t.responseHeaders=n.headers),e&&e.code==="ETIMEDOUT"&&(t.timedout=!0),!e&&!t.aborted&&n.statusCode!==200&&n.statusCode!==206&&n.statusCode!==0&&(e=new Error("XHR Failed with a response of: "+(t&&(r||t.responseText)))),i(e,t)},lk=(t,e)=>{if(!t||!t.size)return;let n=e;return t.forEach(i=>{n=i(n)}),n},ck=(t,e,n,i)=>{!t||!t.size||t.forEach(r=>{r(e,n,i)})},N8=function(){const t=function e(n,i){n=_e({timeout:45e3},n);const r=e.beforeRequest||P.Vhs.xhr.beforeRequest,s=e._requestCallbackSet||P.Vhs.xhr._requestCallbackSet||new Set,a=e._responseCallbackSet||P.Vhs.xhr._responseCallbackSet;r&&typeof r=="function"&&(P.log.warn("beforeRequest is deprecated, use onRequest instead."),s.add(r));const o=P.Vhs.xhr.original===!0?P.xhr:P.Vhs.xhr,c=lk(s,n);s.delete(r);const u=o(c||n,function(y,A){return ck(a,u,y,A),t1(u,y,A,i)}),d=u.abort;return u.abort=function(){return u.aborted=!0,d.apply(u,arguments)},u.uri=n.uri,u.requestType=n.requestType,u.requestTime=Date.now(),u};return t.original=!0,t},uk=function(t){let e;const n=t.offset;return typeof t.offset=="bigint"||typeof t.length=="bigint"?e=x.BigInt(t.offset)+x.BigInt(t.length)-x.BigInt(1):e=t.offset+t.length-1,"bytes="+n+"-"+e},n1=function(t){const e={};return t.byterange&&(e.Range=uk(t.byterange)),e},dk=function(t,e){return t.start(e)+"-"+t.end(e)},hk=function(t,e){const n=t.toString(16);return"00".substring(0,2-n.length)+n+(e%2?" ":"")},pk=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},U8=function(t){const e={};return Object.keys(t).forEach(n=>{const i=t[n];x5(i)?e[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[n]=i}),e},oc=function(t){const e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")},k8=function(t){return t.resolvedUri},x8=t=>{const e=Array.prototype.slice.call(t),n=16;let i="",r,s;for(let a=0;a<e.length/n;a++)r=e.slice(a*n,a*n+n).map(hk).join(""),s=e.slice(a*n,a*n+n).map(pk).join(""),i+=r+" "+s+`
256
- `;return i},mk=({bytes:t})=>x8(t),gk=t=>{let e="",n;for(n=0;n<t.length;n++)e+=dk(t,n)+" ";return e};var fk=Object.freeze({__proto__:null,createTransferableMessage:U8,initSegmentId:oc,segmentKeyId:k8,hexDump:x8,tagDump:mk,textRanges:gk});const L8=.25,yk=(t,e)=>{if(!e.dateTimeObject)return null;const n=e.videoTimingInfo.transmuxerPrependedSeconds,i=e.videoTimingInfo.transmuxedPresentationStart+n,r=t-i;return new Date(e.dateTimeObject.getTime()+r*1e3)},bk=t=>t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds,Ek=(t,e)=>{let n;try{n=new Date(t)}catch{return null}if(!e||!e.segments||e.segments.length===0)return null;let i=e.segments[0];if(n<new Date(i.dateTimeObject))return null;for(let c=0;c<e.segments.length-1;c++){i=e.segments[c];const u=new Date(e.segments[c+1].dateTimeObject);if(n<u)break}const r=e.segments[e.segments.length-1],s=r.dateTimeObject,a=r.videoTimingInfo?bk(r.videoTimingInfo):r.duration+r.duration*L8,o=new Date(s.getTime()+a*1e3);return n>o?null:(n>new Date(s)&&(i=r),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:Jt.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})},Tk=(t,e)=>{if(!e||!e.segments||e.segments.length===0)return null;let n=0,i;for(let s=0;s<e.segments.length&&(i=e.segments[s],n=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:n+i.duration,!(t<=n));s++);const r=e.segments[e.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>n){if(t>n+r.duration*L8)return null;i=r}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}},vk=(t,e)=>{let n,i;try{n=new Date(t),i=new Date(e)}catch{}const r=n.getTime();return(i.getTime()-r)/1e3},Ck=t=>{if(!t.segments||t.segments.length===0)return!1;for(let e=0;e<t.segments.length;e++)if(!t.segments[e].dateTimeObject)return!1;return!0},Ak=({playlist:t,time:e=void 0,callback:n})=>{if(!n)throw new Error("getProgramTime: callback must be provided");if(!t||e===void 0)return n({message:"getProgramTime: playlist and time must be provided"});const i=Tk(e,t);if(!i)return n({message:"valid programTime was not found"});if(i.type==="estimate")return n({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:i.estimatedStart});const r={mediaSeconds:e},s=yk(e,i.segment);return s&&(r.programDateTime=s.toISOString()),n(null,r)},F8=({programTime:t,playlist:e,retryCount:n=2,seekTo:i,pauseAfterSeek:r=!0,tech:s,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");if(typeof t>"u"||!e||!i)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!e.endList&&!s.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!Ck(e))return a({message:"programDateTime tags must be provided in the manifest "+e.resolvedUri});const o=Ek(t,e);if(!o)return a({message:`${t} was not found in the stream`});const c=o.segment,u=vk(c.dateTimeObject,t);if(o.type==="estimate"){if(n===0)return a({message:`${t} is not buffered yet. Try again`});i(o.estimatedStart+u),s.one("seeked",()=>{F8({programTime:t,playlist:e,retryCount:n-1,seekTo:i,pauseAfterSeek:r,tech:s,callback:a})});return}const d=c.start+u,y=()=>a(null,s.currentTime());s.one("seeked",y),r&&s.pause(),i(d)},rd=(t,e)=>{if(t.readyState===4)return e()},Sk=(t,e,n,i)=>{let r=[],s,a=!1;const o=function(d,y,A,T){return y.abort(),a=!0,n(d,y,A,T)},c=function(d,y){if(a)return;if(d)return d.metadata=Ur({requestType:i,request:y,error:d}),o(d,y,"",r);const A=y.responseText.substring(r&&r.byteLength||0,y.responseText.length);if(r=nw(r,L5(A,!0)),s=s||wa(r),r.length<10||s&&r.length<s+2)return rd(y,()=>o(d,y,"",r));const T=Ch(r);return T==="ts"&&r.length<188?rd(y,()=>o(d,y,"",r)):!T&&r.length<376?rd(y,()=>o(d,y,"",r)):o(null,y,T,r)},u=e({uri:t,beforeSend(d){d.overrideMimeType("text/plain; charset=x-user-defined"),d.addEventListener("progress",function({total:y,loaded:A}){return t1(d,null,{statusCode:d.status},c)})}},function(d,y){return t1(u,d,y,c)});return u},{EventTarget:_k}=P,ag=function(t,e){if(!w8(t,e)||t.sidx&&e.sidx&&(t.sidx.offset!==e.sidx.offset||t.sidx.length!==e.sidx.length)||!t.sidx&&e.sidx||t.sidx&&!e.sidx||t.segments&&!e.segments||!t.segments&&e.segments)return!1;if(!t.segments&&!e.segments)return!0;for(let n=0;n<t.segments.length;n++){const i=t.segments[n],r=e.segments[n];if(i.uri!==r.uri)return!1;if(!i.byterange&&!r.byterange)continue;const s=i.byterange,a=r.byterange;if(s&&!a||!s&&a||s.offset!==a.offset||s.length!==a.length)return!1}return!0},Rk=(t,e,n,i)=>{const r=i.attributes.NAME||n;return`placeholder-uri-${t}-${e}-${r}`},Ik=({mainXml:t,srcUrl:e,clientOffset:n,sidxMapping:i,previousManifest:r})=>{const s=Qw(t,{manifestUri:e,clientOffset:n,sidxMapping:i,previousManifest:r});return _8(s,e,Rk),s},Vk=(t,e)=>{Js(t,(n,i,r,s)=>{(!e.mediaGroups[i][r]||!(s in e.mediaGroups[i][r]))&&delete t.mediaGroups[i][r][s]})},wk=(t,e,n)=>{let i=!0,r=_e(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod,timelineStarts:e.timelineStarts});for(let s=0;s<e.playlists.length;s++){const a=e.playlists[s];if(a.sidx){const c=Vc(a.sidx);n&&n[c]&&n[c].sidx&&Eh(a,n[c].sidx,a.sidx.resolvedUri)}const o=qd(r,a,ag);o&&(r=o,i=!1)}return Js(e,(s,a,o,c)=>{if(s.playlists&&s.playlists.length){const u=s.playlists[0].id,d=qd(r,s.playlists[0],ag);d&&(r=d,c in r.mediaGroups[a][o]||(r.mediaGroups[a][o][c]=s),r.mediaGroups[a][o][c].playlists[0]=r.playlists[u],i=!1)}}),Vk(r,e),e.minimumUpdatePeriod!==t.minimumUpdatePeriod&&(i=!1),i?null:r},Nk=(t,e)=>(!t.map&&!e.map||!!(t.map&&e.map&&t.map.byterange.offset===e.map.byterange.offset&&t.map.byterange.length===e.map.byterange.length))&&t.uri===e.uri&&t.byterange.offset===e.byterange.offset&&t.byterange.length===e.byterange.length,og=(t,e)=>{const n={};for(const i in t){const r=t[i].sidx;if(r){const s=Vc(r);if(!e[s])break;const a=e[s].sidxInfo;Nk(a,r)&&(n[s]=e[s])}}return n},Uk=(t,e)=>{let n=og(t.playlists,e);return Js(t,(i,r,s,a)=>{if(i.playlists&&i.playlists.length){const o=i.playlists;n=_e(n,og(o,e))}}),n};let i1=class extends _k{constructor(e,n,i={},r){super(),this.isPaused_=!0,this.mainPlaylistLoader_=r||this,r||(this.isMain_=!0);const{withCredentials:s=!1}=i;if(this.vhs_=n,this.withCredentials=s,this.addMetadataToTextTrack=i.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=bn("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}get isPaused(){return this.isPaused_}requestErrored_(e,n,i){if(!this.request)return!0;if(this.request=null,e)return this.error=typeof e=="object"&&!(e instanceof Error)?e:{status:n.status,message:"DASH request error at URL: "+n.uri,response:n.response,code:2,metadata:e.metadata},i&&(this.state=i),this.trigger("error"),!0}addSidxSegments_(e,n,i){const r=e.sidx&&Vc(e.sidx);if(!e.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r]){x.clearTimeout(this.mediaRequest_),this.mediaRequest_=x.setTimeout(()=>i(!1),0);return}const s=ac(e.sidx.resolvedUri),a=(c,u)=>{if(this.requestErrored_(c,u,n))return;const d=this.mainPlaylistLoader_.sidxMapping_,{requestType:y}=u;let A;try{A=tN(pe(u.response).subarray(8))}catch(T){T.metadata=Ur({requestType:y,request:u,parseFailure:!0}),this.requestErrored_(T,u,n);return}return d[r]={sidxInfo:e.sidx,sidx:A},Eh(e,A,e.sidx.resolvedUri),i(!0)},o="dash-sidx";this.request=Sk(s,this.vhs_.xhr,(c,u,d,y)=>{if(c)return a(c,u);if(!d||d!=="mp4"){const _=d||"unknown";return a({status:u.status,message:`Unsupported ${_} container type for sidx segment at URL: ${s}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},u)}const{offset:A,length:T}=e.sidx.byterange;if(y.length>=T+A)return a(c,{response:y.subarray(A,A+T),status:u.status,uri:u.uri});this.request=this.vhs_.xhr({uri:s,responseType:"arraybuffer",requestType:"dash-sidx",headers:n1({byterange:e.sidx.byterange})},a)},o)}dispose(){this.isPaused_=!0,this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},x.clearTimeout(this.minimumUpdatePeriodTimeout_),x.clearTimeout(this.mediaRequest_),x.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);const n=this.state;if(typeof e=="string"){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList){this.state="HAVE_METADATA",this.media_=e,i&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,r=>{this.haveMetadata({startingState:n,playlist:e})}))}haveMetadata({startingState:e,playlist:n}){this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,x.clearTimeout(this.mediaRequest_),this.mediaRequest_=null,this.refreshMedia_(n.id),e==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.isPaused_=!0,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),x.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(x.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state==="HAVE_NOTHING"&&(this.started=!1)}load(e){this.isPaused_=!1,x.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const n=this.media();if(e){const i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=x.setTimeout(()=>this.load(),i);return}if(!this.started){this.start();return}n&&!n.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")}start(){if(this.started=!0,!this.isMain_){x.clearTimeout(this.mediaRequest_),this.mediaRequest_=x.setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((e,n)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){const n={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:n}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},(i,r)=>{if(i){const{requestType:a}=r;i.metadata=Ur({requestType:a,request:r,error:i})}if(this.requestErrored_(i,r)){this.state==="HAVE_NOTHING"&&(this.started=!1);return}this.trigger({type:"manifestrequestcomplete",metadata:n});const s=r.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=r.responseText,r.responseHeaders&&r.responseHeaders.date?this.mainLoaded_=Date.parse(r.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=ac(this.mainPlaylistLoader_.srcUrl,r),s){this.handleMain_(),this.syncClientServerClock_(()=>e(r,s));return}return e(r,s)})}syncClientServerClock_(e){const n=Kw(this.mainPlaylistLoader_.mainXml_);if(n===null)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();if(n.method==="DIRECT")return this.mainPlaylistLoader_.clientOffset_=n.value-Date.now(),e();this.request=this.vhs_.xhr({uri:jt(this.mainPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},(i,r)=>{if(!this.request)return;if(i){const{requestType:a}=r;return this.error.metadata=Ur({requestType:a,request:r,error:i}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()}let s;n.method==="HEAD"?!r.responseHeaders||!r.responseHeaders.date?s=this.mainLoaded_:s=Date.parse(r.responseHeaders.date):s=Date.parse(r.responseText),this.mainPlaylistLoader_.clientOffset_=s-Date.now(),e()})}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){x.clearTimeout(this.mediaRequest_),this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main,n={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestparsestart",metadata:n});let i;try{i=Ik({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e})}catch(s){this.error=s,this.error.metadata={errorType:P.Error.StreamingDashManifestParserError,error:s},this.trigger("error")}e&&(i=wk(e,i,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=i||e;const r=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(r&&r!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=r),(!e||i&&i.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(i),i){const{duration:s,endList:a}=i,o=[];i.playlists.forEach(u=>{o.push({id:u.id,bandwidth:u.attributes.BANDWIDTH,resolution:u.attributes.RESOLUTION,codecs:u.attributes.CODECS})});const c={duration:s,isLive:!a,renditions:o};n.parsedManifest=c,this.trigger({type:"manifestparsecomplete",metadata:n})}return!!i}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(x.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let n=e.main&&e.main.minimumUpdatePeriod;if(n===0&&(e.media()?n=e.media().targetDuration*1e3:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),typeof n!="number"||n<=0){n<0&&this.logger_(`found invalid minimumUpdatePeriod of ${n}, not setting a timeout`);return}this.createMUPTimeout_(n)}createMUPTimeout_(e){const n=this.mainPlaylistLoader_;n.minimumUpdatePeriodTimeout_=x.setTimeout(()=>{n.minimumUpdatePeriodTimeout_=null,n.trigger("minimumUpdatePeriod"),n.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,n)=>{n&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=Uk(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,i=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const n=this.mainPlaylistLoader_.main.playlists,i=!this.media_||this.media_!==n[e];if(i?this.media_=n[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const r=()=>{this.media().endList||(this.mediaUpdateTimeout=x.setTimeout(()=>{this.trigger("mediaupdatetimeout"),r()},e1(this.media(),!!i)))};r()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const n=this.mainPlaylistLoader_.main.eventStream.map(i=>({cueTime:i.start,frames:[{data:i.messageData}]}));this.addMetadataToTextTrack("EventStream",n,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const n=new Set;for(const i in e.contentProtection){const r=e.contentProtection[i].attributes["cenc:default_KID"];r&&n.add(r.replace(/-/g,"").toLowerCase())}return n}}};var pt={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const kk=t=>{const e=new Uint8Array(new ArrayBuffer(t.length));for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e.buffer},B8=function(t){return t.on=t.addEventListener,t.off=t.removeEventListener,t},xk=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch{const e=new BlobBuilder;return e.append(t),URL.createObjectURL(e.getBlob())}},W8=function(t){return function(){const e=xk(t),n=B8(new Worker(e));n.objURL=e;const i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(e),i.call(this)},n}},Z8=function(t){return`var browserWorkerPolyFill = ${B8.toString()};
257
- browserWorkerPolyFill(self);
258
- `+t},D8=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},Lk=Z8(D8(function(){var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Gl<"u"?Gl:typeof self<"u"?self:{},e=function(){this.init=function(){var l={};this.on=function(h,p){l[h]||(l[h]=[]),l[h]=l[h].concat(p)},this.off=function(h,p){var m;return l[h]?(m=l[h].indexOf(p),l[h]=l[h].slice(),l[h].splice(m,1),m>-1):!1},this.trigger=function(h){var p,m,f,E;if(p=l[h],!!p)if(arguments.length===2)for(f=p.length,m=0;m<f;++m)p[m].call(this,arguments[1]);else{for(E=[],m=arguments.length,m=1;m<arguments.length;++m)E.push(arguments[m]);for(f=p.length,m=0;m<f;++m)p[m].apply(this,E)}},this.dispose=function(){l={}}}};e.prototype.pipe=function(l){return this.on("data",function(h){l.push(h)}),this.on("done",function(h){l.flush(h)}),this.on("partialdone",function(h){l.partialFlush(h)}),this.on("endedtimeline",function(h){l.endTimeline(h)}),this.on("reset",function(h){l.reset(h)}),l},e.prototype.push=function(l){this.trigger("data",l)},e.prototype.flush=function(l){this.trigger("done",l)},e.prototype.partialFlush=function(l){this.trigger("partialdone",l)},e.prototype.endTimeline=function(l){this.trigger("endedtimeline",l)},e.prototype.reset=function(l){this.trigger("reset",l)};var n=e,i=Math.pow(2,32),r=function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p;return h.getBigUint64?(p=h.getBigUint64(0),p<Number.MAX_SAFE_INTEGER?Number(p):p):h.getUint32(0)*i+h.getUint32(4)},s={getUint64:r,MAX_UINT32:i},a=s.MAX_UINT32,o,c,u,d,y,A,T,_,b,V,w,W,B,Z,L,X,J,j,re,de,oe,ce,se,me,we,he,be,Ne,at,ct,Ke,le,Se,Ae,Ue,En;(function(){var l;if(se={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},!(typeof Uint8Array>"u")){for(l in se)se.hasOwnProperty(l)&&(se[l]=[l.charCodeAt(0),l.charCodeAt(1),l.charCodeAt(2),l.charCodeAt(3)]);me=new Uint8Array([105,115,111,109]),he=new Uint8Array([97,118,99,49]),we=new Uint8Array([0,0,0,1]),be=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]),Ne=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]),at={video:be,audio:Ne},le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Ke=new Uint8Array([0,0,0,0,0,0,0,0]),Se=new Uint8Array([0,0,0,0,0,0,0,0]),Ae=Se,Ue=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),En=Se,ct=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),o=function(l){var h=[],p=0,m,f,E;for(m=1;m<arguments.length;m++)h.push(arguments[m]);for(m=h.length;m--;)p+=h[m].byteLength;for(f=new Uint8Array(p+8),E=new DataView(f.buffer,f.byteOffset,f.byteLength),E.setUint32(0,f.byteLength),f.set(l,4),m=0,p=8;m<h.length;m++)f.set(h[m],p),p+=h[m].byteLength;return f},c=function(){return o(se.dinf,o(se.dref,le))},u=function(l){return o(se.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,l.audioobjecttype<<3|l.samplingfrequencyindex>>>1,l.samplingfrequencyindex<<7|l.channelcount<<3,6,1,2]))},d=function(){return o(se.ftyp,me,we,me,he)},X=function(l){return o(se.hdlr,at[l])},y=function(l){return o(se.mdat,l)},L=function(l){var h=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,l.duration>>>24&255,l.duration>>>16&255,l.duration>>>8&255,l.duration&255,85,196,0,0]);return l.samplerate&&(h[12]=l.samplerate>>>24&255,h[13]=l.samplerate>>>16&255,h[14]=l.samplerate>>>8&255,h[15]=l.samplerate&255),o(se.mdhd,h)},Z=function(l){return o(se.mdia,L(l),X(l.type),T(l))},A=function(l){return o(se.mfhd,new Uint8Array([0,0,0,0,(l&4278190080)>>24,(l&16711680)>>16,(l&65280)>>8,l&255]))},T=function(l){return o(se.minf,l.type==="video"?o(se.vmhd,ct):o(se.smhd,Ke),c(),j(l))},_=function(l,h){for(var p=[],m=h.length;m--;)p[m]=de(h[m]);return o.apply(null,[se.moof,A(l)].concat(p))},b=function(l){for(var h=l.length,p=[];h--;)p[h]=W(l[h]);return o.apply(null,[se.moov,w(4294967295)].concat(p).concat(V(l)))},V=function(l){for(var h=l.length,p=[];h--;)p[h]=oe(l[h]);return o.apply(null,[se.mvex].concat(p))},w=function(l){var h=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(l&4278190080)>>24,(l&16711680)>>16,(l&65280)>>8,l&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(se.mvhd,h)},J=function(l){var h=l.samples||[],p=new Uint8Array(4+h.length),m,f;for(f=0;f<h.length;f++)m=h[f].flags,p[f+4]=m.dependsOn<<4|m.isDependedOn<<2|m.hasRedundancy;return o(se.sdtp,p)},j=function(l){return o(se.stbl,re(l),o(se.stts,En),o(se.stsc,Ae),o(se.stsz,Ue),o(se.stco,Se))},function(){var l,h;re=function(p){return o(se.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),p.type==="video"?l(p):h(p))},l=function(p){var m=p.sps||[],f=p.pps||[],E=[],R=[],I,U;for(I=0;I<m.length;I++)E.push((m[I].byteLength&65280)>>>8),E.push(m[I].byteLength&255),E=E.concat(Array.prototype.slice.call(m[I]));for(I=0;I<f.length;I++)R.push((f[I].byteLength&65280)>>>8),R.push(f[I].byteLength&255),R=R.concat(Array.prototype.slice.call(f[I]));if(U=[se.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,(p.width&65280)>>8,p.width&255,(p.height&65280)>>8,p.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o(se.avcC,new Uint8Array([1,p.profileIdc,p.profileCompatibility,p.levelIdc,255].concat([m.length],E,[f.length],R))),o(se.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],p.sarRatio){var k=p.sarRatio[0],O=p.sarRatio[1];U.push(o(se.pasp,new Uint8Array([(k&4278190080)>>24,(k&16711680)>>16,(k&65280)>>8,k&255,(O&4278190080)>>24,(O&16711680)>>16,(O&65280)>>8,O&255])))}return o.apply(null,U)},h=function(p){return o(se.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(p.channelcount&65280)>>8,p.channelcount&255,(p.samplesize&65280)>>8,p.samplesize&255,0,0,0,0,(p.samplerate&65280)>>8,p.samplerate&255,0,0]),u(p))}}(),B=function(l){var h=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(l.id&4278190080)>>24,(l.id&16711680)>>16,(l.id&65280)>>8,l.id&255,0,0,0,0,(l.duration&4278190080)>>24,(l.duration&16711680)>>16,(l.duration&65280)>>8,l.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,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,(l.width&65280)>>8,l.width&255,0,0,(l.height&65280)>>8,l.height&255,0,0]);return o(se.tkhd,h)},de=function(l){var h,p,m,f,E,R,I;return h=o(se.tfhd,new Uint8Array([0,0,0,58,(l.id&4278190080)>>24,(l.id&16711680)>>16,(l.id&65280)>>8,l.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),R=Math.floor(l.baseMediaDecodeTime/a),I=Math.floor(l.baseMediaDecodeTime%a),p=o(se.tfdt,new Uint8Array([1,0,0,0,R>>>24&255,R>>>16&255,R>>>8&255,R&255,I>>>24&255,I>>>16&255,I>>>8&255,I&255])),E=92,l.type==="audio"?(m=ce(l,E),o(se.traf,h,p,m)):(f=J(l),m=ce(l,f.length+E),o(se.traf,h,p,m,f))},W=function(l){return l.duration=l.duration||4294967295,o(se.trak,B(l),Z(l))},oe=function(l){var h=new Uint8Array([0,0,0,0,(l.id&4278190080)>>24,(l.id&16711680)>>16,(l.id&65280)>>8,l.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return l.type!=="video"&&(h[h.length-1]=0),o(se.trex,h)},function(){var l,h,p;p=function(m,f){var E=0,R=0,I=0,U=0;return m.length&&(m[0].duration!==void 0&&(E=1),m[0].size!==void 0&&(R=2),m[0].flags!==void 0&&(I=4),m[0].compositionTimeOffset!==void 0&&(U=8)),[0,0,E|R|I|U,1,(m.length&4278190080)>>>24,(m.length&16711680)>>>16,(m.length&65280)>>>8,m.length&255,(f&4278190080)>>>24,(f&16711680)>>>16,(f&65280)>>>8,f&255]},h=function(m,f){var E,R,I,U,k,O;for(U=m.samples||[],f+=20+16*U.length,I=p(U,f),R=new Uint8Array(I.length+U.length*16),R.set(I),E=I.length,O=0;O<U.length;O++)k=U[O],R[E++]=(k.duration&4278190080)>>>24,R[E++]=(k.duration&16711680)>>>16,R[E++]=(k.duration&65280)>>>8,R[E++]=k.duration&255,R[E++]=(k.size&4278190080)>>>24,R[E++]=(k.size&16711680)>>>16,R[E++]=(k.size&65280)>>>8,R[E++]=k.size&255,R[E++]=k.flags.isLeading<<2|k.flags.dependsOn,R[E++]=k.flags.isDependedOn<<6|k.flags.hasRedundancy<<4|k.flags.paddingValue<<1|k.flags.isNonSyncSample,R[E++]=k.flags.degradationPriority&61440,R[E++]=k.flags.degradationPriority&15,R[E++]=(k.compositionTimeOffset&4278190080)>>>24,R[E++]=(k.compositionTimeOffset&16711680)>>>16,R[E++]=(k.compositionTimeOffset&65280)>>>8,R[E++]=k.compositionTimeOffset&255;return o(se.trun,R)},l=function(m,f){var E,R,I,U,k,O;for(U=m.samples||[],f+=20+8*U.length,I=p(U,f),E=new Uint8Array(I.length+U.length*8),E.set(I),R=I.length,O=0;O<U.length;O++)k=U[O],E[R++]=(k.duration&4278190080)>>>24,E[R++]=(k.duration&16711680)>>>16,E[R++]=(k.duration&65280)>>>8,E[R++]=k.duration&255,E[R++]=(k.size&4278190080)>>>24,E[R++]=(k.size&16711680)>>>16,E[R++]=(k.size&65280)>>>8,E[R++]=k.size&255;return o(se.trun,E)},ce=function(m,f){return m.type==="audio"?l(m,f):h(m,f)}}();var er={ftyp:d,mdat:y,moof:_,moov:b,initSegment:function(l){var h=d(),p=b(l),m;return m=new Uint8Array(h.byteLength+p.byteLength),m.set(h),m.set(p,h.byteLength),m}},tr=function(l){var h,p,m=[],f=[];for(f.byteLength=0,f.nalCount=0,f.duration=0,m.byteLength=0,h=0;h<l.length;h++)p=l[h],p.nalUnitType==="access_unit_delimiter_rbsp"?(m.length&&(m.duration=p.dts-m.dts,f.byteLength+=m.byteLength,f.nalCount+=m.length,f.duration+=m.duration,f.push(m)),m=[p],m.byteLength=p.data.byteLength,m.pts=p.pts,m.dts=p.dts):(p.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(m.keyFrame=!0),m.duration=p.dts-m.dts,m.byteLength+=p.data.byteLength,m.push(p));return f.length&&(!m.duration||m.duration<=0)&&(m.duration=f[f.length-1].duration),f.byteLength+=m.byteLength,f.nalCount+=m.length,f.duration+=m.duration,f.push(m),f},Br=function(l){var h,p,m=[],f=[];for(m.byteLength=0,m.nalCount=0,m.duration=0,m.pts=l[0].pts,m.dts=l[0].dts,f.byteLength=0,f.nalCount=0,f.duration=0,f.pts=l[0].pts,f.dts=l[0].dts,h=0;h<l.length;h++)p=l[h],p.keyFrame?(m.length&&(f.push(m),f.byteLength+=m.byteLength,f.nalCount+=m.nalCount,f.duration+=m.duration),m=[p],m.nalCount=p.length,m.byteLength=p.byteLength,m.pts=p.pts,m.dts=p.dts,m.duration=p.duration):(m.duration+=p.duration,m.nalCount+=p.length,m.byteLength+=p.byteLength,m.push(p));return f.length&&m.duration<=0&&(m.duration=f[f.length-1].duration),f.byteLength+=m.byteLength,f.nalCount+=m.nalCount,f.duration+=m.duration,f.push(m),f},Wr=function(l){var h;return!l[0][0].keyFrame&&l.length>1&&(h=l.shift(),l.byteLength-=h.byteLength,l.nalCount-=h.nalCount,l[0][0].dts=h.dts,l[0][0].pts=h.pts,l[0][0].duration+=h.duration),l},ye=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},$e=function(l,h){var p=ye();return p.dataOffset=h,p.compositionTimeOffset=l.pts-l.dts,p.duration=l.duration,p.size=4*l.length,p.size+=l.byteLength,l.keyFrame&&(p.flags.dependsOn=2,p.flags.isNonSyncSample=0),p},ze=function(l,h){var p,m,f,E,R,I=h||0,U=[];for(p=0;p<l.length;p++)for(E=l[p],m=0;m<E.length;m++)R=E[m],f=$e(R,I),I+=f.size,U.push(f);return U},nr=function(l){var h,p,m,f,E,R,I=0,U=l.byteLength,k=l.nalCount,O=U+4*k,H=new Uint8Array(O),ne=new DataView(H.buffer);for(h=0;h<l.length;h++)for(f=l[h],p=0;p<f.length;p++)for(E=f[p],m=0;m<E.length;m++)R=E[m],ne.setUint32(I,R.data.byteLength),I+=4,H.set(R.data,I),I+=R.data.byteLength;return H},ir=function(l,h){var p,m=h||0,f=[];return p=$e(l,m),f.push(p),f},_t=function(l){var h,p,m=0,f=l.byteLength,E=l.length,R=f+4*E,I=new Uint8Array(R),U=new DataView(I.buffer);for(h=0;h<l.length;h++)p=l[h],U.setUint32(m,p.data.byteLength),m+=4,I.set(p.data,m),m+=p.data.byteLength;return I},Tn={groupNalsIntoFrames:tr,groupFramesIntoGops:Br,extendFirstKeyFrame:Wr,generateSampleTable:ze,concatenateNalData:nr,generateSampleTableForFrame:ir,concatenateNalDataForFrame:_t},Xt=[33,16,5,32,164,27],rr=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ve=function(l){for(var h=[];l--;)h.push(0);return h},Qs=function(l){return Object.keys(l).reduce(function(h,p){return h[p]=new Uint8Array(l[p].reduce(function(m,f){return m.concat(f)},[])),h},{})},sr,Zr=function(){if(!sr){var l={96e3:[Xt,[227,64],ve(154),[56]],88200:[Xt,[231],ve(170),[56]],64e3:[Xt,[248,192],ve(240),[56]],48e3:[Xt,[255,192],ve(268),[55,148,128],ve(54),[112]],44100:[Xt,[255,192],ve(268),[55,163,128],ve(84),[112]],32e3:[Xt,[255,192],ve(268),[55,234],ve(226),[112]],24e3:[Xt,[255,192],ve(268),[55,255,128],ve(268),[111,112],ve(126),[224]],16e3:[Xt,[255,192],ve(268),[55,255,128],ve(268),[111,255],ve(269),[223,108],ve(195),[1,192]],12e3:[rr,ve(268),[3,127,248],ve(268),[6,255,240],ve(268),[13,255,224],ve(268),[27,253,128],ve(259),[56]],11025:[rr,ve(268),[3,127,248],ve(268),[6,255,240],ve(268),[13,255,224],ve(268),[27,255,192],ve(268),[55,175,128],ve(108),[112]],8e3:[rr,ve(268),[3,121,16],ve(47),[7]]};sr=Qs(l)}return sr},Ln=9e4,Rt,Re,ot,ut,vo,g,v;Rt=function(l){return l*Ln},Re=function(l,h){return l*h},ot=function(l){return l/Ln},ut=function(l,h){return l/h},vo=function(l,h){return Rt(ut(l,h))},g=function(l,h){return Re(ot(l),h)},v=function(l,h,p){return ot(p?l:l-h)};var S={ONE_SECOND_IN_TS:Ln,secondsToVideoTs:Rt,secondsToAudioTs:Re,videoTsToSeconds:ot,audioTsToSeconds:ut,audioTsToVideoTs:vo,videoTsToAudioTs:g,metadataTsToSeconds:v},D=Zr,G=S,Q=function(l){var h,p,m=0;for(h=0;h<l.length;h++)p=l[h],m+=p.data.byteLength;return m},te=function(l,h,p,m){var f,E=0,R=0,I=0,U=0,k,O,H;if(h.length&&(f=G.audioTsToVideoTs(l.baseMediaDecodeTime,l.samplerate),E=Math.ceil(G.ONE_SECOND_IN_TS/(l.samplerate/1024)),p&&m&&(R=f-Math.max(p,m),I=Math.floor(R/E),U=I*E),!(I<1||U>G.ONE_SECOND_IN_TS/2))){for(k=D()[l.samplerate],k||(k=h[0].data),O=0;O<I;O++)H=h[0],h.splice(0,0,{data:k,dts:H.dts-E,pts:H.pts-E});return l.baseMediaDecodeTime-=Math.floor(G.videoTsToAudioTs(U,l.samplerate)),U}},Le=function(l,h,p){return h.minSegmentDts>=p?l:(h.minSegmentDts=1/0,l.filter(function(m){return m.dts>=p?(h.minSegmentDts=Math.min(h.minSegmentDts,m.dts),h.minSegmentPts=h.minSegmentDts,!0):!1}))},dt=function(l){var h,p,m=[];for(h=0;h<l.length;h++)p=l[h],m.push({size:p.data.byteLength,duration:1024});return m},We=function(l){var h,p,m=0,f=new Uint8Array(Q(l));for(h=0;h<l.length;h++)p=l[h],f.set(p.data,m),m+=p.data.byteLength;return f},ke={prefixWithSilence:te,trimAdtsFramesByEarliestDts:Le,generateSampleTable:dt,concatenateFrameData:We},je=S.ONE_SECOND_IN_TS,Ry=function(l,h){typeof h.pts=="number"&&(l.timelineStartInfo.pts===void 0&&(l.timelineStartInfo.pts=h.pts),l.minSegmentPts===void 0?l.minSegmentPts=h.pts:l.minSegmentPts=Math.min(l.minSegmentPts,h.pts),l.maxSegmentPts===void 0?l.maxSegmentPts=h.pts:l.maxSegmentPts=Math.max(l.maxSegmentPts,h.pts)),typeof h.dts=="number"&&(l.timelineStartInfo.dts===void 0&&(l.timelineStartInfo.dts=h.dts),l.minSegmentDts===void 0?l.minSegmentDts=h.dts:l.minSegmentDts=Math.min(l.minSegmentDts,h.dts),l.maxSegmentDts===void 0?l.maxSegmentDts=h.dts:l.maxSegmentDts=Math.max(l.maxSegmentDts,h.dts))},Iy=function(l){delete l.minSegmentDts,delete l.maxSegmentDts,delete l.minSegmentPts,delete l.maxSegmentPts},Vy=function(l,h){var p,m,f=l.minSegmentDts;return h||(f-=l.timelineStartInfo.dts),p=l.timelineStartInfo.baseMediaDecodeTime,p+=f,p=Math.max(0,p),l.type==="audio"&&(m=l.samplerate/je,p*=m,p=Math.floor(p)),p},wy={clearDtsInfo:Iy,calculateTrackBaseMediaDecodeTime:Vy,collectDtsInfo:Ry},sp=4,Ny=128,Uy=function(l){for(var h=0,p={payloadType:-1,payloadSize:0},m=0,f=0;h<l.byteLength&&l[h]!==Ny;){for(;l[h]===255;)m+=255,h++;for(m+=l[h++];l[h]===255;)f+=255,h++;if(f+=l[h++],!p.payload&&m===sp){var E=String.fromCharCode(l[h+3],l[h+4],l[h+5],l[h+6]);if(E==="GA94"){p.payloadType=m,p.payloadSize=f,p.payload=l.subarray(h,h+f);break}else p.payload=void 0}h+=f,m=0,f=0}return p},ky=function(l){return l.payload[0]!==181||(l.payload[1]<<8|l.payload[2])!==49||String.fromCharCode(l.payload[3],l.payload[4],l.payload[5],l.payload[6])!=="GA94"||l.payload[7]!==3?null:l.payload.subarray(8,l.payload.length-1)},xy=function(l,h){var p=[],m,f,E,R;if(!(h[0]&64))return p;for(f=h[0]&31,m=0;m<f;m++)E=m*3,R={type:h[E+2]&3,pts:l},h[E+2]&4&&(R.ccData=h[E+3]<<8|h[E+4],p.push(R));return p},Ly=function(l){for(var h=l.byteLength,p=[],m=1,f,E;m<h-2;)l[m]===0&&l[m+1]===0&&l[m+2]===3?(p.push(m+2),m+=2):m++;if(p.length===0)return l;f=h-p.length,E=new Uint8Array(f);var R=0;for(m=0;m<f;R++,m++)R===p[0]&&(R++,p.shift()),E[m]=l[R];return E},ap={parseSei:Uy,parseUserData:ky,parseCaptionPackets:xy,discardEmulationPreventionBytes:Ly,USER_DATA_REGISTERED_ITU_T_T35:sp},Jc=n,Co=ap,Gt=function(l){l=l||{},Gt.prototype.init.call(this),this.parse708captions_=typeof l.parse708captions=="boolean"?l.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new Ge(0,0),new Ge(0,1),new Ge(1,0),new Ge(1,1)],this.parse708captions_&&(this.cc708Stream_=new Fe({captionServices:l.captionServices})),this.reset(),this.ccStreams_.forEach(function(h){h.on("data",this.trigger.bind(this,"data")),h.on("partialdone",this.trigger.bind(this,"partialdone")),h.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};Gt.prototype=new Jc,Gt.prototype.push=function(l){var h,p,m;if(l.nalUnitType==="sei_rbsp"&&(h=Co.parseSei(l.escapedRBSP),!!h.payload&&h.payloadType===Co.USER_DATA_REGISTERED_ITU_T_T35&&(p=Co.parseUserData(h),!!p))){if(l.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(l.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}m=Co.parseCaptionPackets(l.pts,p),this.captionPackets_=this.captionPackets_.concat(m),this.latestDts_!==l.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=l.dts}},Gt.prototype.flushCCStreams=function(l){this.ccStreams_.forEach(function(h){return l==="flush"?h.flush():h.partialFlush()},this)},Gt.prototype.flushStream=function(l){if(!this.captionPackets_.length){this.flushCCStreams(l);return}this.captionPackets_.forEach(function(h,p){h.presortIndex=p}),this.captionPackets_.sort(function(h,p){return h.pts===p.pts?h.presortIndex-p.presortIndex:h.pts-p.pts}),this.captionPackets_.forEach(function(h){h.type<2?this.dispatchCea608Packet(h):this.dispatchCea708Packet(h)},this),this.captionPackets_.length=0,this.flushCCStreams(l)},Gt.prototype.flush=function(){return this.flushStream("flush")},Gt.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Gt.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(l){l.reset()})},Gt.prototype.dispatchCea608Packet=function(l){this.setsTextOrXDSActive(l)?this.activeCea608Channel_[l.type]=null:this.setsChannel1Active(l)?this.activeCea608Channel_[l.type]=0:this.setsChannel2Active(l)&&(this.activeCea608Channel_[l.type]=1),this.activeCea608Channel_[l.type]!==null&&this.ccStreams_[(l.type<<1)+this.activeCea608Channel_[l.type]].push(l)},Gt.prototype.setsChannel1Active=function(l){return(l.ccData&30720)===4096},Gt.prototype.setsChannel2Active=function(l){return(l.ccData&30720)===6144},Gt.prototype.setsTextOrXDSActive=function(l){return(l.ccData&28928)===256||(l.ccData&30974)===4138||(l.ccData&30974)===6186},Gt.prototype.dispatchCea708Packet=function(l){this.parse708captions_&&this.cc708Stream_.push(l)};var Fy={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},By=function(l){var h=Fy[l]||l;return l&4096&&l===h?"":String.fromCharCode(h)},Ao=function(l){return 32<=l&&l<=127||160<=l&&l<=255},ri=function(l){this.windowNum=l,this.reset()};ri.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},ri.prototype.getText=function(){return this.rows.join(`
259
- `)},ri.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},ri.prototype.newLine=function(l){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(l),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},ri.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},ri.prototype.addText=function(l){this.rows[this.rowIdx]+=l},ri.prototype.backspace=function(){if(!this.isEmpty()){var l=this.rows[this.rowIdx];this.rows[this.rowIdx]=l.substr(0,l.length-1)}};var So=function(l,h,p){this.serviceNum=l,this.text="",this.currentWindow=new ri(-1),this.windows=[],this.stream=p,typeof h=="string"&&this.createTextDecoder(h)};So.prototype.init=function(l,h){this.startPts=l;for(var p=0;p<8;p++)this.windows[p]=new ri(p),typeof h=="function"&&(this.windows[p].beforeRowOverflow=h)},So.prototype.setCurrentWindow=function(l){this.currentWindow=this.windows[l]},So.prototype.createTextDecoder=function(l){if(typeof TextDecoder>"u")this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(l)}catch(h){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+l+" encoding. "+h})}};var Fe=function(l){l=l||{},Fe.prototype.init.call(this);var h=this,p=l.captionServices||{},m={},f;Object.keys(p).forEach(E=>{f=p[E],/^SERVICE/.test(E)&&(m[E]=f.encoding)}),this.serviceEncodings=m,this.current708Packet=null,this.services={},this.push=function(E){E.type===3?(h.new708Packet(),h.add708Bytes(E)):(h.current708Packet===null&&h.new708Packet(),h.add708Bytes(E))}};Fe.prototype=new Jc,Fe.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Fe.prototype.add708Bytes=function(l){var h=l.ccData,p=h>>>8,m=h&255;this.current708Packet.ptsVals.push(l.pts),this.current708Packet.data.push(p),this.current708Packet.data.push(m)},Fe.prototype.push708Packet=function(){var l=this.current708Packet,h=l.data,p=null,m=null,f=0,E=h[f++];for(l.seq=E>>6,l.sizeCode=E&63;f<h.length;f++)E=h[f++],p=E>>5,m=E&31,p===7&&m>0&&(E=h[f++],p=E),this.pushServiceBlock(p,f,m),m>0&&(f+=m-1)},Fe.prototype.pushServiceBlock=function(l,h,p){var m,f=h,E=this.current708Packet.data,R=this.services[l];for(R||(R=this.initService(l,f));f<h+p&&f<E.length;f++)m=E[f],Ao(m)?f=this.handleText(f,R):m===24?f=this.multiByteCharacter(f,R):m===16?f=this.extendedCommands(f,R):128<=m&&m<=135?f=this.setCurrentWindow(f,R):152<=m&&m<=159?f=this.defineWindow(f,R):m===136?f=this.clearWindows(f,R):m===140?f=this.deleteWindows(f,R):m===137?f=this.displayWindows(f,R):m===138?f=this.hideWindows(f,R):m===139?f=this.toggleWindows(f,R):m===151?f=this.setWindowAttributes(f,R):m===144?f=this.setPenAttributes(f,R):m===145?f=this.setPenColor(f,R):m===146?f=this.setPenLocation(f,R):m===143?R=this.reset(f,R):m===8?R.currentWindow.backspace():m===12?R.currentWindow.clearText():m===13?R.currentWindow.pendingNewLine=!0:m===14?R.currentWindow.clearText():m===141&&f++},Fe.prototype.extendedCommands=function(l,h){var p=this.current708Packet.data,m=p[++l];return Ao(m)&&(l=this.handleText(l,h,{isExtended:!0})),l},Fe.prototype.getPts=function(l){return this.current708Packet.ptsVals[Math.floor(l/2)]},Fe.prototype.initService=function(l,h){var m="SERVICE"+l,p=this,m,f;return m in this.serviceEncodings&&(f=this.serviceEncodings[m]),this.services[l]=new So(l,f,p),this.services[l].init(this.getPts(h),function(E){p.flushDisplayed(E,p.services[l])}),this.services[l]},Fe.prototype.handleText=function(l,h,p){var m=p&&p.isExtended,f=p&&p.isMultiByte,E=this.current708Packet.data,R=m?4096:0,I=E[l],U=E[l+1],k=h.currentWindow,O,H;function ne(K){return K.map(ue=>("0"+(ue&255).toString(16)).slice(-2)).join("")}if(f?(H=[I,U],l++):H=[I],h.textDecoder_&&!m)O=h.textDecoder_.decode(new Uint8Array(H));else if(f){const K=ne(H);O=String.fromCharCode(parseInt(K,16))}else O=By(R|I);return k.pendingNewLine&&!k.isEmpty()&&k.newLine(this.getPts(l)),k.pendingNewLine=!1,k.addText(O),l},Fe.prototype.multiByteCharacter=function(l,h){var p=this.current708Packet.data,m=p[l+1],f=p[l+2];return Ao(m)&&Ao(f)&&(l=this.handleText(++l,h,{isMultiByte:!0})),l},Fe.prototype.setCurrentWindow=function(l,h){var p=this.current708Packet.data,m=p[l],f=m&7;return h.setCurrentWindow(f),l},Fe.prototype.defineWindow=function(l,h){var p=this.current708Packet.data,m=p[l],f=m&7;h.setCurrentWindow(f);var E=h.currentWindow;return m=p[++l],E.visible=(m&32)>>5,E.rowLock=(m&16)>>4,E.columnLock=(m&8)>>3,E.priority=m&7,m=p[++l],E.relativePositioning=(m&128)>>7,E.anchorVertical=m&127,m=p[++l],E.anchorHorizontal=m,m=p[++l],E.anchorPoint=(m&240)>>4,E.rowCount=m&15,m=p[++l],E.columnCount=m&63,m=p[++l],E.windowStyle=(m&56)>>3,E.penStyle=m&7,E.virtualRowCount=E.rowCount+1,l},Fe.prototype.setWindowAttributes=function(l,h){var p=this.current708Packet.data,m=p[l],f=h.currentWindow.winAttr;return m=p[++l],f.fillOpacity=(m&192)>>6,f.fillRed=(m&48)>>4,f.fillGreen=(m&12)>>2,f.fillBlue=m&3,m=p[++l],f.borderType=(m&192)>>6,f.borderRed=(m&48)>>4,f.borderGreen=(m&12)>>2,f.borderBlue=m&3,m=p[++l],f.borderType+=(m&128)>>5,f.wordWrap=(m&64)>>6,f.printDirection=(m&48)>>4,f.scrollDirection=(m&12)>>2,f.justify=m&3,m=p[++l],f.effectSpeed=(m&240)>>4,f.effectDirection=(m&12)>>2,f.displayEffect=m&3,l},Fe.prototype.flushDisplayed=function(l,h){for(var p=[],m=0;m<8;m++)h.windows[m].visible&&!h.windows[m].isEmpty()&&p.push(h.windows[m].getText());h.endPts=l,h.text=p.join(`
260
-
261
- `),this.pushCaption(h),h.startPts=l},Fe.prototype.pushCaption=function(l){l.text!==""&&(this.trigger("data",{startPts:l.startPts,endPts:l.endPts,text:l.text,stream:"cc708_"+l.serviceNum}),l.text="",l.startPts=l.endPts)},Fe.prototype.displayWindows=function(l,h){var p=this.current708Packet.data,m=p[++l],f=this.getPts(l);this.flushDisplayed(f,h);for(var E=0;E<8;E++)m&1<<E&&(h.windows[E].visible=1);return l},Fe.prototype.hideWindows=function(l,h){var p=this.current708Packet.data,m=p[++l],f=this.getPts(l);this.flushDisplayed(f,h);for(var E=0;E<8;E++)m&1<<E&&(h.windows[E].visible=0);return l},Fe.prototype.toggleWindows=function(l,h){var p=this.current708Packet.data,m=p[++l],f=this.getPts(l);this.flushDisplayed(f,h);for(var E=0;E<8;E++)m&1<<E&&(h.windows[E].visible^=1);return l},Fe.prototype.clearWindows=function(l,h){var p=this.current708Packet.data,m=p[++l],f=this.getPts(l);this.flushDisplayed(f,h);for(var E=0;E<8;E++)m&1<<E&&h.windows[E].clearText();return l},Fe.prototype.deleteWindows=function(l,h){var p=this.current708Packet.data,m=p[++l],f=this.getPts(l);this.flushDisplayed(f,h);for(var E=0;E<8;E++)m&1<<E&&h.windows[E].reset();return l},Fe.prototype.setPenAttributes=function(l,h){var p=this.current708Packet.data,m=p[l],f=h.currentWindow.penAttr;return m=p[++l],f.textTag=(m&240)>>4,f.offset=(m&12)>>2,f.penSize=m&3,m=p[++l],f.italics=(m&128)>>7,f.underline=(m&64)>>6,f.edgeType=(m&56)>>3,f.fontStyle=m&7,l},Fe.prototype.setPenColor=function(l,h){var p=this.current708Packet.data,m=p[l],f=h.currentWindow.penColor;return m=p[++l],f.fgOpacity=(m&192)>>6,f.fgRed=(m&48)>>4,f.fgGreen=(m&12)>>2,f.fgBlue=m&3,m=p[++l],f.bgOpacity=(m&192)>>6,f.bgRed=(m&48)>>4,f.bgGreen=(m&12)>>2,f.bgBlue=m&3,m=p[++l],f.edgeRed=(m&48)>>4,f.edgeGreen=(m&12)>>2,f.edgeBlue=m&3,l},Fe.prototype.setPenLocation=function(l,h){var p=this.current708Packet.data,m=p[l],f=h.currentWindow.penLoc;return h.currentWindow.pendingNewLine=!0,m=p[++l],f.row=m&15,m=p[++l],f.column=m&63,l},Fe.prototype.reset=function(l,h){var p=this.getPts(l);return this.flushDisplayed(p,h),this.initService(h.serviceNum,l)};var Wy={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},_o=function(l){return l===null?"":(l=Wy[l]||l,String.fromCharCode(l))},Ro=14,Zy=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ar=function(){for(var l=[],h=Ro+1;h--;)l.push({text:"",indent:0,offset:0});return l},Ge=function(l,h){Ge.prototype.init.call(this),this.field_=l||0,this.dataChannel_=h||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(p){var m,f,E,R,I;if(m=p.ccData&32639,m===this.lastControlCode_){this.lastControlCode_=null;return}if((m&61440)===4096?this.lastControlCode_=m:m!==this.PADDING_&&(this.lastControlCode_=null),E=m>>>8,R=m&255,m!==this.PADDING_)if(m===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(m===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(p.pts),this.flushDisplayed(p.pts),f=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=f,this.startPts_=p.pts;else if(m===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(p.pts);else if(m===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(p.pts);else if(m===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(p.pts);else if(m===this.CARRIAGE_RETURN_)this.clearFormatting(p.pts),this.flushDisplayed(p.pts),this.shiftRowsUp_(),this.startPts_=p.pts;else if(m===this.BACKSPACE_)this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(m===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(p.pts),this.displayed_=ar();else if(m===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ar();else if(m===this.RESUME_DIRECT_CAPTIONING_)this.mode_!=="paintOn"&&(this.flushDisplayed(p.pts),this.displayed_=ar()),this.mode_="paintOn",this.startPts_=p.pts;else if(this.isSpecialCharacter(E,R))E=(E&3)<<8,I=_o(E|R),this[this.mode_](p.pts,I),this.column_++;else if(this.isExtCharacter(E,R))this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),E=(E&3)<<8,I=_o(E|R),this[this.mode_](p.pts,I),this.column_++;else if(this.isMidRowCode(E,R))this.clearFormatting(p.pts),this[this.mode_](p.pts," "),this.column_++,(R&14)===14&&this.addFormatting(p.pts,["i"]),(R&1)===1&&this.addFormatting(p.pts,["u"]);else if(this.isOffsetControlCode(E,R)){const k=R&3;this.nonDisplayed_[this.row_].offset=k,this.column_+=k}else if(this.isPAC(E,R)){var U=Zy.indexOf(m&7968);if(this.mode_==="rollUp"&&(U-this.rollUpRows_+1<0&&(U=this.rollUpRows_-1),this.setRollUp(p.pts,U)),U!==this.row_&&U>=0&&U<=14&&(this.clearFormatting(p.pts),this.row_=U),R&1&&this.formatting_.indexOf("u")===-1&&this.addFormatting(p.pts,["u"]),(m&16)===16){const k=(m&14)>>1;this.column_=k*4,this.nonDisplayed_[this.row_].indent+=k}this.isColorPAC(R)&&(R&14)===14&&this.addFormatting(p.pts,["i"])}else this.isNormalChar(E)&&(R===0&&(R=null),I=_o(E),I+=_o(R),this[this.mode_](p.pts,I),this.column_+=I.length)}};Ge.prototype=new Jc,Ge.prototype.flushDisplayed=function(l){const h=m=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+m+"."})},p=[];this.displayed_.forEach((m,f)=>{if(m&&m.text&&m.text.length){try{m.text=m.text.trim()}catch{h(f)}m.text.length&&p.push({text:m.text,line:f+1,position:10+Math.min(70,m.indent*10)+m.offset*2.5})}else m==null&&h(f)}),p.length&&this.trigger("data",{startPts:this.startPts_,endPts:l,content:p,stream:this.name_})},Ge.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ar(),this.nonDisplayed_=ar(),this.lastControlCode_=null,this.column_=0,this.row_=Ro,this.rollUpRows_=2,this.formatting_=[]},Ge.prototype.setConstants=function(){this.dataChannel_===0?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):this.dataChannel_===1&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=this.CONTROL_|32,this.END_OF_CAPTION_=this.CONTROL_|47,this.ROLL_UP_2_ROWS_=this.CONTROL_|37,this.ROLL_UP_3_ROWS_=this.CONTROL_|38,this.ROLL_UP_4_ROWS_=this.CONTROL_|39,this.CARRIAGE_RETURN_=this.CONTROL_|45,this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41,this.BACKSPACE_=this.CONTROL_|33,this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44,this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46},Ge.prototype.isSpecialCharacter=function(l,h){return l===this.EXT_&&h>=48&&h<=63},Ge.prototype.isExtCharacter=function(l,h){return(l===this.EXT_+1||l===this.EXT_+2)&&h>=32&&h<=63},Ge.prototype.isMidRowCode=function(l,h){return l===this.EXT_&&h>=32&&h<=47},Ge.prototype.isOffsetControlCode=function(l,h){return l===this.OFFSET_&&h>=33&&h<=35},Ge.prototype.isPAC=function(l,h){return l>=this.BASE_&&l<this.BASE_+8&&h>=64&&h<=127},Ge.prototype.isColorPAC=function(l){return l>=64&&l<=79||l>=96&&l<=127},Ge.prototype.isNormalChar=function(l){return l>=32&&l<=127},Ge.prototype.setRollUp=function(l,h){if(this.mode_!=="rollUp"&&(this.row_=Ro,this.mode_="rollUp",this.flushDisplayed(l),this.nonDisplayed_=ar(),this.displayed_=ar()),h!==void 0&&h!==this.row_)for(var p=0;p<this.rollUpRows_;p++)this.displayed_[h-p]=this.displayed_[this.row_-p],this.displayed_[this.row_-p]={text:"",indent:0,offset:0};h===void 0&&(h=this.row_),this.topRow_=h-this.rollUpRows_+1},Ge.prototype.addFormatting=function(l,h){this.formatting_=this.formatting_.concat(h);var p=h.reduce(function(m,f){return m+"<"+f+">"},"");this[this.mode_](l,p)},Ge.prototype.clearFormatting=function(l){if(this.formatting_.length){var h=this.formatting_.reverse().reduce(function(p,m){return p+"</"+m+">"},"");this.formatting_=[],this[this.mode_](l,h)}},Ge.prototype.popOn=function(l,h){var p=this.nonDisplayed_[this.row_].text;p+=h,this.nonDisplayed_[this.row_].text=p},Ge.prototype.rollUp=function(l,h){var p=this.displayed_[this.row_].text;p+=h,this.displayed_[this.row_].text=p},Ge.prototype.shiftRowsUp_=function(){var l;for(l=0;l<this.topRow_;l++)this.displayed_[l]={text:"",indent:0,offset:0};for(l=this.row_+1;l<Ro+1;l++)this.displayed_[l]={text:"",indent:0,offset:0};for(l=this.topRow_;l<this.row_;l++)this.displayed_[l]=this.displayed_[l+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},Ge.prototype.paintOn=function(l,h){var p=this.displayed_[this.row_].text;p+=h,this.displayed_[this.row_].text=p};var op={CaptionStream:Gt,Cea608Stream:Ge,Cea708Stream:Fe},Io={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Dy=n,Oy=8589934592,Xy=4294967296,lp="shared",Qc=function(l,h){var p=1;for(l>h&&(p=-1);Math.abs(h-l)>Xy;)l+=p*Oy;return l},Kc=function(l){var h,p;Kc.prototype.init.call(this),this.type_=l||lp,this.push=function(m){if(m.type==="metadata"){this.trigger("data",m);return}this.type_!==lp&&m.type!==this.type_||(p===void 0&&(p=m.dts),m.dts=Qc(m.dts,p),m.pts=Qc(m.pts,p),h=m.dts,this.trigger("data",m))},this.flush=function(){p=h,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){p=void 0,h=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Kc.prototype=new Dy;var cp={TimestampRolloverStream:Kc,handleRollover:Qc},Gy=(l,h,p)=>{if(!l)return-1;for(var m=p;m<l.length;m++)if(l[m]===h)return m;return-1},My={typedArrayIndexOf:Gy},Vo=My.typedArrayIndexOf,wo={Iso88591:0,Utf16:1,Utf16be:2,Utf8:3},up=function(l,h,p){var m,f="";for(m=h;m<p;m++)f+="%"+("00"+l[m].toString(16)).slice(-2);return f},Ks=function(l,h,p){return decodeURIComponent(up(l,h,p))},$s=function(l,h,p){return unescape(up(l,h,p))},zs=function(l){return l[0]<<21|l[1]<<14|l[2]<<7|l[3]},qs={APIC:function(l){var h=1,p,m,f="-->";l.data[0]===wo.Utf8&&(p=Vo(l.data,0,h),!(p<0)&&(l.mimeType=$s(l.data,h,p),h=p+1,l.pictureType=l.data[h],h++,m=Vo(l.data,0,h),!(m<0)&&(l.description=Ks(l.data,h,m),h=m+1,l.mimeType===f?l.url=$s(l.data,h,l.data.length):l.pictureData=l.data.subarray(h,l.data.length))))},"T*":function(l){l.data[0]===wo.Utf8&&(l.value=Ks(l.data,1,l.data.length).replace(/\0*$/,""),l.values=l.value.split("\0"))},TXXX:function(l){var h;l.data[0]===wo.Utf8&&(h=Vo(l.data,0,1),h!==-1&&(l.description=Ks(l.data,1,h),l.value=Ks(l.data,h+1,l.data.length).replace(/\0*$/,""),l.data=l.value))},"W*":function(l){l.url=$s(l.data,0,l.data.length).replace(/\0.*$/,"")},WXXX:function(l){var h;l.data[0]===wo.Utf8&&(h=Vo(l.data,0,1),h!==-1&&(l.description=Ks(l.data,1,h),l.url=$s(l.data,h+1,l.data.length).replace(/\0.*$/,"")))},PRIV:function(l){var h;for(h=0;h<l.data.length;h++)if(l.data[h]===0){l.owner=$s(l.data,0,h);break}l.privateData=l.data.subarray(h+1),l.data=l.privateData}},Py=function(l){var h,p,m=10,f=0,E=[];if(!(l.length<10||l[0]!==73||l[1]!==68||l[2]!==51)){f=zs(l.subarray(6,10)),f+=10;var R=l[5]&64;R&&(m+=4,m+=zs(l.subarray(10,14)),f-=zs(l.subarray(16,20)));do{if(h=zs(l.subarray(m+4,m+8)),h<1)break;p=String.fromCharCode(l[m],l[m+1],l[m+2],l[m+3]);var I={id:p,data:l.subarray(m+10,m+h+10)};I.key=I.id,qs[I.id]?qs[I.id](I):I.id[0]==="T"?qs["T*"](I):I.id[0]==="W"&&qs["W*"](I),E.push(I),m+=10,m+=h}while(m<f);return E}},dp={parseId3Frames:Py,parseSyncSafeInteger:zs,frameParsers:qs},Yy=n,Hy=Io,ki=dp,No;No=function(l){var h={descriptor:l&&l.descriptor},p=0,m=[],f=0,E;if(No.prototype.init.call(this),this.dispatchType=Hy.METADATA_STREAM_TYPE.toString(16),h.descriptor)for(E=0;E<h.descriptor.length;E++)this.dispatchType+=("00"+h.descriptor[E].toString(16)).slice(-2);this.push=function(R){var I,U,k,O,H,ne;if(R.type==="timed-metadata"){if(R.dataAlignmentIndicator&&(f=0,m.length=0),m.length===0&&(R.data.length<10||R.data[0]!==73||R.data[1]!==68||R.data[2]!==51)){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(m.push(R),f+=R.data.byteLength,m.length===1&&(p=ki.parseSyncSafeInteger(R.data.subarray(6,10)),p+=10),!(f<p)){for(I={data:new Uint8Array(p),frames:[],pts:m[0].pts,dts:m[0].dts},H=0;H<p;)I.data.set(m[0].data.subarray(0,p-H),H),H+=m[0].data.byteLength,f-=m[0].data.byteLength,m.shift();U=10,I.data[5]&64&&(U+=4,U+=ki.parseSyncSafeInteger(I.data.subarray(10,14)),p-=ki.parseSyncSafeInteger(I.data.subarray(16,20)));do{if(k=ki.parseSyncSafeInteger(I.data.subarray(U+4,U+8)),k<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(ne=String.fromCharCode(I.data[U],I.data[U+1],I.data[U+2],I.data[U+3]),O={id:ne,data:I.data.subarray(U+10,U+k+10)},O.key=O.id,ki.frameParsers[O.id]?ki.frameParsers[O.id](O):O.id[0]==="T"?ki.frameParsers["T*"](O):O.id[0]==="W"&&ki.frameParsers["W*"](O),O.owner==="com.apple.streaming.transportStreamTimestamp"){var K=O.data,ue=(K[3]&1)<<30|K[4]<<22|K[5]<<14|K[6]<<6|K[7]>>>2;ue*=4,ue+=K[7]&3,O.timeStamp=ue,I.pts===void 0&&I.dts===void 0&&(I.pts=O.timeStamp,I.dts=O.timeStamp),this.trigger("timestamp",O)}I.frames.push(O),U+=10,U+=k}while(U<p);this.trigger("data",I)}}}},No.prototype=new Yy;var jy=No,$c=n,zc=op,vn=Io,Jy=cp.TimestampRolloverStream,Uo,ea,ko,Dr=188,qc=71;Uo=function(){var l=new Uint8Array(Dr),h=0;Uo.prototype.init.call(this),this.push=function(p){var m=0,f=Dr,E;for(h?(E=new Uint8Array(p.byteLength+h),E.set(l.subarray(0,h)),E.set(p,h),h=0):E=p;f<E.byteLength;){if(E[m]===qc&&E[f]===qc){this.trigger("data",E.subarray(m,f)),m+=Dr,f+=Dr;continue}m++,f++}m<E.byteLength&&(l.set(E.subarray(m),0),h=E.byteLength-m)},this.flush=function(){h===Dr&&l[0]===qc&&(this.trigger("data",l),h=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){h=0,this.trigger("reset")}},Uo.prototype=new $c,ea=function(){var l,h,p,m;ea.prototype.init.call(this),m=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,l=function(f,E){var R=0;E.payloadUnitStartIndicator&&(R+=f[R]+1),E.type==="pat"?h(f.subarray(R),E):p(f.subarray(R),E)},h=function(f,E){E.section_number=f[7],E.last_section_number=f[8],m.pmtPid=(f[10]&31)<<8|f[11],E.pmtPid=m.pmtPid},p=function(f,E){var R,I,U,k;if(f[5]&1){for(m.programMapTable={video:null,audio:null,"timed-metadata":{}},R=(f[1]&15)<<8|f[2],I=3+R-4,U=(f[10]&15)<<8|f[11],k=12+U;k<I;){var O=f[k],H=(f[k+1]&31)<<8|f[k+2];O===vn.H264_STREAM_TYPE&&m.programMapTable.video===null?m.programMapTable.video=H:O===vn.ADTS_STREAM_TYPE&&m.programMapTable.audio===null?m.programMapTable.audio=H:O===vn.METADATA_STREAM_TYPE&&(m.programMapTable["timed-metadata"][H]=O),k+=((f[k+3]&15)<<8|f[k+4])+5}E.programMapTable=m.programMapTable}},this.push=function(f){var E={},R=4;if(E.payloadUnitStartIndicator=!!(f[1]&64),E.pid=f[1]&31,E.pid<<=8,E.pid|=f[2],(f[3]&48)>>>4>1&&(R+=f[R]+1),E.pid===0)E.type="pat",l(f.subarray(R),E),this.trigger("data",E);else if(E.pid===this.pmtPid)for(E.type="pmt",l(f.subarray(R),E),this.trigger("data",E);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else this.programMapTable===void 0?this.packetsWaitingForPmt.push([f,R,E]):this.processPes_(f,R,E)},this.processPes_=function(f,E,R){R.pid===this.programMapTable.video?R.streamType=vn.H264_STREAM_TYPE:R.pid===this.programMapTable.audio?R.streamType=vn.ADTS_STREAM_TYPE:R.streamType=this.programMapTable["timed-metadata"][R.pid],R.type="pes",R.data=f.subarray(E),this.trigger("data",R)}},ea.prototype=new $c,ea.STREAM_TYPES={h264:27,adts:15},ko=function(){var l=this,h=!1,p={data:[],size:0},m={data:[],size:0},f={data:[],size:0},E,R=function(U,k){var O;const H=U[0]<<16|U[1]<<8|U[2];k.data=new Uint8Array,H===1&&(k.packetLength=6+(U[4]<<8|U[5]),k.dataAlignmentIndicator=(U[6]&4)!==0,O=U[7],O&192&&(k.pts=(U[9]&14)<<27|(U[10]&255)<<20|(U[11]&254)<<12|(U[12]&255)<<5|(U[13]&254)>>>3,k.pts*=4,k.pts+=(U[13]&6)>>>1,k.dts=k.pts,O&64&&(k.dts=(U[14]&14)<<27|(U[15]&255)<<20|(U[16]&254)<<12|(U[17]&255)<<5|(U[18]&254)>>>3,k.dts*=4,k.dts+=(U[18]&6)>>>1)),k.data=U.subarray(9+U[8]))},I=function(U,k,O){var H=new Uint8Array(U.size),ne={type:k},K=0,ue=0,fe=!1,ht;if(!(!U.data.length||U.size<9)){for(ne.trackId=U.data[0].pid,K=0;K<U.data.length;K++)ht=U.data[K],H.set(ht.data,ue),ue+=ht.data.byteLength;R(H,ne),fe=k==="video"||ne.packetLength<=U.size,(O||fe)&&(U.size=0,U.data.length=0),fe&&l.trigger("data",ne)}};ko.prototype.init.call(this),this.push=function(U){({pat:function(){},pes:function(){var k,O;switch(U.streamType){case vn.H264_STREAM_TYPE:k=p,O="video";break;case vn.ADTS_STREAM_TYPE:k=m,O="audio";break;case vn.METADATA_STREAM_TYPE:k=f,O="timed-metadata";break;default:return}U.payloadUnitStartIndicator&&I(k,O,!0),k.data.push(U),k.size+=U.data.byteLength},pmt:function(){var k={type:"metadata",tracks:[]};E=U.programMapTable,E.video!==null&&k.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+E.video,codec:"avc",type:"video"}),E.audio!==null&&k.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+E.audio,codec:"adts",type:"audio"}),h=!0,l.trigger("data",k)}})[U.type]()},this.reset=function(){p.size=0,p.data.length=0,m.size=0,m.data.length=0,this.trigger("reset")},this.flushStreams_=function(){I(p,"video"),I(m,"audio"),I(f,"timed-metadata")},this.flush=function(){if(!h&&E){var U={type:"metadata",tracks:[]};E.video!==null&&U.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+E.video,codec:"avc",type:"video"}),E.audio!==null&&U.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+E.audio,codec:"adts",type:"audio"}),l.trigger("data",U)}h=!1,this.flushStreams_(),this.trigger("done")}},ko.prototype=new $c;var hp={PAT_PID:0,MP2T_PACKET_LENGTH:Dr,TransportPacketStream:Uo,TransportParseStream:ea,ElementaryStream:ko,TimestampRolloverStream:Jy,CaptionStream:zc.CaptionStream,Cea608Stream:zc.Cea608Stream,Cea708Stream:zc.Cea708Stream,MetadataStream:jy};for(var eu in vn)vn.hasOwnProperty(eu)&&(hp[eu]=vn[eu]);var Qy=hp,Ky=n,$y=S.ONE_SECOND_IN_TS,xo,pp=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];xo=function(l){var h,p=0;xo.prototype.init.call(this),this.skipWarn_=function(m,f){this.trigger("log",{level:"warn",message:`adts skiping bytes ${m} to ${f} in frame ${p} outside syncword`})},this.push=function(m){var f=0,E,R,I,U,k;if(l||(p=0),m.type==="audio"){h&&h.length?(I=h,h=new Uint8Array(I.byteLength+m.data.byteLength),h.set(I),h.set(m.data,I.byteLength)):h=m.data;for(var O;f+7<h.length;){if(h[f]!==255||(h[f+1]&246)!==240){typeof O!="number"&&(O=f),f++;continue}if(typeof O=="number"&&(this.skipWarn_(O,f),O=null),R=(~h[f+1]&1)*2,E=(h[f+3]&3)<<11|h[f+4]<<3|(h[f+5]&224)>>5,U=((h[f+6]&3)+1)*1024,k=U*$y/pp[(h[f+2]&60)>>>2],h.byteLength-f<E)break;this.trigger("data",{pts:m.pts+p*k,dts:m.dts+p*k,sampleCount:U,audioobjecttype:(h[f+2]>>>6&3)+1,channelcount:(h[f+2]&1)<<2|(h[f+3]&192)>>>6,samplerate:pp[(h[f+2]&60)>>>2],samplingfrequencyindex:(h[f+2]&60)>>>2,samplesize:16,data:h.subarray(f+7+R,f+E)}),p++,f+=E}typeof O=="number"&&(this.skipWarn_(O,f),O=null),h=h.subarray(f)}},this.flush=function(){p=0,this.trigger("done")},this.reset=function(){h=void 0,this.trigger("reset")},this.endTimeline=function(){h=void 0,this.trigger("endedtimeline")}},xo.prototype=new Ky;var zy=xo,mp;mp=function(l){var h=l.byteLength,p=0,m=0;this.length=function(){return 8*h},this.bitsAvailable=function(){return 8*h+m},this.loadWord=function(){var f=l.byteLength-h,E=new Uint8Array(4),R=Math.min(4,h);if(R===0)throw new Error("no bytes available");E.set(l.subarray(f,f+R)),p=new DataView(E.buffer).getUint32(0),m=R*8,h-=R},this.skipBits=function(f){var E;m>f?(p<<=f,m-=f):(f-=m,E=Math.floor(f/8),f-=E*8,h-=E,this.loadWord(),p<<=f,m-=f)},this.readBits=function(f){var E=Math.min(m,f),R=p>>>32-E;return m-=E,m>0?p<<=E:h>0&&this.loadWord(),E=f-E,E>0?R<<E|this.readBits(E):R},this.skipLeadingZeros=function(){var f;for(f=0;f<m;++f)if(p&2147483648>>>f)return p<<=f,m-=f,f;return this.loadWord(),f+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var f=this.skipLeadingZeros();return this.readBits(f+1)-1},this.readExpGolomb=function(){var f=this.readUnsignedExpGolomb();return 1&f?1+f>>>1:-1*(f>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var qy=mp,gp=n,e9=qy,Lo,ta,fp;ta=function(){var l=0,h,p;ta.prototype.init.call(this),this.push=function(m){var f;p?(f=new Uint8Array(p.byteLength+m.data.byteLength),f.set(p),f.set(m.data,p.byteLength),p=f):p=m.data;for(var E=p.byteLength;l<E-3;l++)if(p[l+2]===1){h=l+5;break}for(;h<E;)switch(p[h]){case 0:if(p[h-1]!==0){h+=2;break}else if(p[h-2]!==0){h++;break}l+3!==h-2&&this.trigger("data",p.subarray(l+3,h-2));do h++;while(p[h]!==1&&h<E);l=h-2,h+=3;break;case 1:if(p[h-1]!==0||p[h-2]!==0){h+=3;break}this.trigger("data",p.subarray(l+3,h-2)),l=h-2,h+=3;break;default:h+=3;break}p=p.subarray(l),h-=l,l=0},this.reset=function(){p=null,l=0,this.trigger("reset")},this.flush=function(){p&&p.byteLength>3&&this.trigger("data",p.subarray(l+3)),p=null,l=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},ta.prototype=new gp,fp={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Lo=function(){var l=new ta,h,p,m,f,E,R,I;Lo.prototype.init.call(this),h=this,this.push=function(U){U.type==="video"&&(p=U.trackId,m=U.pts,f=U.dts,l.push(U))},l.on("data",function(U){var k={trackId:p,pts:m,dts:f,data:U,nalUnitTypeCode:U[0]&31};switch(k.nalUnitTypeCode){case 5:k.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:k.nalUnitType="sei_rbsp",k.escapedRBSP=E(U.subarray(1));break;case 7:k.nalUnitType="seq_parameter_set_rbsp",k.escapedRBSP=E(U.subarray(1)),k.config=R(k.escapedRBSP);break;case 8:k.nalUnitType="pic_parameter_set_rbsp";break;case 9:k.nalUnitType="access_unit_delimiter_rbsp";break}h.trigger("data",k)}),l.on("done",function(){h.trigger("done")}),l.on("partialdone",function(){h.trigger("partialdone")}),l.on("reset",function(){h.trigger("reset")}),l.on("endedtimeline",function(){h.trigger("endedtimeline")}),this.flush=function(){l.flush()},this.partialFlush=function(){l.partialFlush()},this.reset=function(){l.reset()},this.endTimeline=function(){l.endTimeline()},I=function(U,k){var O=8,H=8,ne,K;for(ne=0;ne<U;ne++)H!==0&&(K=k.readExpGolomb(),H=(O+K+256)%256),O=H===0?O:H},E=function(U){for(var k=U.byteLength,O=[],H=1,ne,K;H<k-2;)U[H]===0&&U[H+1]===0&&U[H+2]===3?(O.push(H+2),H+=2):H++;if(O.length===0)return U;ne=k-O.length,K=new Uint8Array(ne);var ue=0;for(H=0;H<ne;ue++,H++)ue===O[0]&&(ue++,O.shift()),K[H]=U[ue];return K},R=function(U){var k=0,O=0,H=0,ne=0,K,ue,fe,ht,Lt,Bn,ca,Ho,jo,cr,ua,De=[1,1],Hp,ur;if(K=new e9(U),ue=K.readUnsignedByte(),ht=K.readUnsignedByte(),fe=K.readUnsignedByte(),K.skipUnsignedExpGolomb(),fp[ue]&&(Lt=K.readUnsignedExpGolomb(),Lt===3&&K.skipBits(1),K.skipUnsignedExpGolomb(),K.skipUnsignedExpGolomb(),K.skipBits(1),K.readBoolean()))for(ua=Lt!==3?8:12,ur=0;ur<ua;ur++)K.readBoolean()&&(ur<6?I(16,K):I(64,K));if(K.skipUnsignedExpGolomb(),Bn=K.readUnsignedExpGolomb(),Bn===0)K.readUnsignedExpGolomb();else if(Bn===1)for(K.skipBits(1),K.skipExpGolomb(),K.skipExpGolomb(),ca=K.readUnsignedExpGolomb(),ur=0;ur<ca;ur++)K.skipExpGolomb();if(K.skipUnsignedExpGolomb(),K.skipBits(1),Ho=K.readUnsignedExpGolomb(),jo=K.readUnsignedExpGolomb(),cr=K.readBits(1),cr===0&&K.skipBits(1),K.skipBits(1),K.readBoolean()&&(k=K.readUnsignedExpGolomb(),O=K.readUnsignedExpGolomb(),H=K.readUnsignedExpGolomb(),ne=K.readUnsignedExpGolomb()),K.readBoolean()&&K.readBoolean()){switch(Hp=K.readUnsignedByte(),Hp){case 1:De=[1,1];break;case 2:De=[12,11];break;case 3:De=[10,11];break;case 4:De=[16,11];break;case 5:De=[40,33];break;case 6:De=[24,11];break;case 7:De=[20,11];break;case 8:De=[32,11];break;case 9:De=[80,33];break;case 10:De=[18,11];break;case 11:De=[15,11];break;case 12:De=[64,33];break;case 13:De=[160,99];break;case 14:De=[4,3];break;case 15:De=[3,2];break;case 16:De=[2,1];break;case 255:{De=[K.readUnsignedByte()<<8|K.readUnsignedByte(),K.readUnsignedByte()<<8|K.readUnsignedByte()];break}}De&&De[0]/De[1]}return{profileIdc:ue,levelIdc:fe,profileCompatibility:ht,width:(Ho+1)*16-k*2-O*2,height:(2-cr)*(jo+1)*16-H*2-ne*2,sarRatio:De}}},Lo.prototype=new gp;var t9={H264Stream:Lo,NalByteStream:ta},n9=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],yp=function(l,h){var p=l[h+6]<<21|l[h+7]<<14|l[h+8]<<7|l[h+9],m=l[h+5],f=(m&16)>>4;return p=p>=0?p:0,f?p+20:p+10},bp=function(l,h){return l.length-h<10||l[h]!==73||l[h+1]!==68||l[h+2]!==51?h:(h+=yp(l,h),bp(l,h))},i9=function(l){var h=bp(l,0);return l.length>=h+2&&(l[h]&255)===255&&(l[h+1]&240)===240&&(l[h+1]&22)===16},Ep=function(l){return l[0]<<21|l[1]<<14|l[2]<<7|l[3]},r9=function(l,h,p){var m,f="";for(m=h;m<p;m++)f+="%"+("00"+l[m].toString(16)).slice(-2);return f},s9=function(l,h,p){return unescape(r9(l,h,p))},a9=function(l,h){var p=(l[h+5]&224)>>5,m=l[h+4]<<3,f=l[h+3]&6144;return f|m|p},o9=function(l,h){return l[h]===73&&l[h+1]===68&&l[h+2]===51?"timed-metadata":l[h]&!0&&(l[h+1]&240)===240?"audio":null},l9=function(l){for(var h=0;h+5<l.length;){if(l[h]!==255||(l[h+1]&246)!==240){h++;continue}return n9[(l[h+2]&60)>>>2]}return null},c9=function(l){var h,p,m,f;h=10,l[5]&64&&(h+=4,h+=Ep(l.subarray(10,14)));do{if(p=Ep(l.subarray(h+4,h+8)),p<1)return null;if(f=String.fromCharCode(l[h],l[h+1],l[h+2],l[h+3]),f==="PRIV"){m=l.subarray(h+10,h+p+10);for(var E=0;E<m.byteLength;E++)if(m[E]===0){var R=s9(m,0,E);if(R==="com.apple.streaming.transportStreamTimestamp"){var I=m.subarray(E+1),U=(I[3]&1)<<30|I[4]<<22|I[5]<<14|I[6]<<6|I[7]>>>2;return U*=4,U+=I[7]&3,U}break}}h+=10,h+=p}while(h<l.byteLength);return null},tu={isLikelyAacData:i9,parseId3TagSize:yp,parseAdtsSize:a9,parseType:o9,parseSampleRate:l9,parseAacTimestamp:c9},u9=n,Tp=tu,Fo;Fo=function(){var l=new Uint8Array,h=0;Fo.prototype.init.call(this),this.setTimestamp=function(p){h=p},this.push=function(p){var m=0,f=0,E,R,I,U;for(l.length?(U=l.length,l=new Uint8Array(p.byteLength+U),l.set(l.subarray(0,U)),l.set(p,U)):l=p;l.length-f>=3;){if(l[f]===73&&l[f+1]===68&&l[f+2]===51){if(l.length-f<10||(m=Tp.parseId3TagSize(l,f),f+m>l.length))break;R={type:"timed-metadata",data:l.subarray(f,f+m)},this.trigger("data",R),f+=m;continue}else if((l[f]&255)===255&&(l[f+1]&240)===240){if(l.length-f<7||(m=Tp.parseAdtsSize(l,f),f+m>l.length))break;I={type:"audio",data:l.subarray(f,f+m),pts:h,dts:h},this.trigger("data",I),f+=m;continue}f++}E=l.length-f,E>0?l=l.subarray(f):l=new Uint8Array},this.reset=function(){l=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){l=new Uint8Array,this.trigger("endedtimeline")}},Fo.prototype=new u9;var d9=Fo,h9=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],p9=h9,m9=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],g9=m9,Bo=n,na=er,ia=Tn,Wo=ke,Cn=wy,si=Qy,Zo=S,vp=zy,f9=t9.H264Stream,y9=d9,b9=tu.isLikelyAacData,E9=S.ONE_SECOND_IN_TS,nu=p9,iu=g9,ra,Or,Do,or,T9=function(l,h){h.stream=l,this.trigger("log",h)},Cp=function(l,h){for(var p=Object.keys(h),m=0;m<p.length;m++){var f=p[m];f==="headOfPipeline"||!h[f].on||h[f].on("log",T9.bind(l,f))}},Ap=function(l,h){var p;if(l.length!==h.length)return!1;for(p=0;p<l.length;p++)if(l[p]!==h[p])return!1;return!0},ru=function(l,h,p,m,f,E){var R=p-h,I=m-h,U=f-p;return{start:{dts:l,pts:l+R},end:{dts:l+I,pts:l+U},prependedContentDuration:E,baseMediaDecodeTime:l}};Or=function(l,h){var p=[],m,f=0,E=0,R=1/0;h=h||{},m=h.firstSequenceNumber||0,Or.prototype.init.call(this),this.push=function(I){Cn.collectDtsInfo(l,I),l&&nu.forEach(function(U){l[U]=I[U]}),p.push(I)},this.setEarliestDts=function(I){f=I},this.setVideoBaseMediaDecodeTime=function(I){R=I},this.setAudioAppendStart=function(I){E=I},this.flush=function(){var I,U,k,O,H,ne,K;if(p.length===0){this.trigger("done","AudioSegmentStream");return}I=Wo.trimAdtsFramesByEarliestDts(p,l,f),l.baseMediaDecodeTime=Cn.calculateTrackBaseMediaDecodeTime(l,h.keepOriginalTimestamps),K=Wo.prefixWithSilence(l,I,E,R),l.samples=Wo.generateSampleTable(I),k=na.mdat(Wo.concatenateFrameData(I)),p=[],U=na.moof(m,[l]),O=new Uint8Array(U.byteLength+k.byteLength),m++,O.set(U),O.set(k,U.byteLength),Cn.clearDtsInfo(l),H=Math.ceil(E9*1024/l.samplerate),I.length&&(ne=I.length*H,this.trigger("segmentTimingInfo",ru(Zo.audioTsToVideoTs(l.baseMediaDecodeTime,l.samplerate),I[0].dts,I[0].pts,I[0].dts+ne,I[0].pts+ne,K||0)),this.trigger("timingInfo",{start:I[0].pts,end:I[0].pts+ne})),this.trigger("data",{track:l,boxes:O}),this.trigger("done","AudioSegmentStream")},this.reset=function(){Cn.clearDtsInfo(l),p=[],this.trigger("reset")}},Or.prototype=new Bo,ra=function(l,h){var p,m=[],f=[],E,R;h=h||{},p=h.firstSequenceNumber||0,ra.prototype.init.call(this),delete l.minPTS,this.gopCache_=[],this.push=function(I){Cn.collectDtsInfo(l,I),I.nalUnitType==="seq_parameter_set_rbsp"&&!E&&(E=I.config,l.sps=[I.data],iu.forEach(function(U){l[U]=E[U]},this)),I.nalUnitType==="pic_parameter_set_rbsp"&&!R&&(R=I.data,l.pps=[I.data]),m.push(I)},this.flush=function(){for(var I,U,k,O,H,ne,K=0,ue,fe;m.length&&m[0].nalUnitType!=="access_unit_delimiter_rbsp";)m.shift();if(m.length===0){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(I=ia.groupNalsIntoFrames(m),k=ia.groupFramesIntoGops(I),k[0][0].keyFrame||(U=this.getGopForFusion_(m[0],l),U?(K=U.duration,k.unshift(U),k.byteLength+=U.byteLength,k.nalCount+=U.nalCount,k.pts=U.pts,k.dts=U.dts,k.duration+=U.duration):k=ia.extendFirstKeyFrame(k)),f.length){var ht;if(h.alignGopsAtEnd?ht=this.alignGopsAtEnd_(k):ht=this.alignGopsAtStart_(k),!ht){this.gopCache_.unshift({gop:k.pop(),pps:l.pps,sps:l.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),m=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}Cn.clearDtsInfo(l),k=ht}Cn.collectDtsInfo(l,k),l.samples=ia.generateSampleTable(k),H=na.mdat(ia.concatenateNalData(k)),l.baseMediaDecodeTime=Cn.calculateTrackBaseMediaDecodeTime(l,h.keepOriginalTimestamps),this.trigger("processedGopsInfo",k.map(function(Lt){return{pts:Lt.pts,dts:Lt.dts,byteLength:Lt.byteLength}})),ue=k[0],fe=k[k.length-1],this.trigger("segmentTimingInfo",ru(l.baseMediaDecodeTime,ue.dts,ue.pts,fe.dts+fe.duration,fe.pts+fe.duration,K)),this.trigger("timingInfo",{start:k[0].pts,end:k[k.length-1].pts+k[k.length-1].duration}),this.gopCache_.unshift({gop:k.pop(),pps:l.pps,sps:l.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),m=[],this.trigger("baseMediaDecodeTime",l.baseMediaDecodeTime),this.trigger("timelineStartInfo",l.timelineStartInfo),O=na.moof(p,[l]),ne=new Uint8Array(O.byteLength+H.byteLength),p++,ne.set(O),ne.set(H,O.byteLength),this.trigger("data",{track:l,boxes:ne}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),m=[],this.gopCache_.length=0,f.length=0,this.trigger("reset")},this.resetStream_=function(){Cn.clearDtsInfo(l),E=void 0,R=void 0},this.getGopForFusion_=function(I){var U=45e3,k=1e4,O=1/0,H,ne,K,ue,fe;for(fe=0;fe<this.gopCache_.length;fe++)ue=this.gopCache_[fe],K=ue.gop,!(!(l.pps&&Ap(l.pps[0],ue.pps[0]))||!(l.sps&&Ap(l.sps[0],ue.sps[0])))&&(K.dts<l.timelineStartInfo.dts||(H=I.dts-K.dts-K.duration,H>=-k&&H<=U&&(!ne||O>H)&&(ne=ue,O=H)));return ne?ne.gop:null},this.alignGopsAtStart_=function(I){var U,k,O,H,ne,K,ue,fe;for(ne=I.byteLength,K=I.nalCount,ue=I.duration,U=k=0;U<f.length&&k<I.length&&(O=f[U],H=I[k],O.pts!==H.pts);){if(H.pts>O.pts){U++;continue}k++,ne-=H.byteLength,K-=H.nalCount,ue-=H.duration}return k===0?I:k===I.length?null:(fe=I.slice(k),fe.byteLength=ne,fe.duration=ue,fe.nalCount=K,fe.pts=fe[0].pts,fe.dts=fe[0].dts,fe)},this.alignGopsAtEnd_=function(I){var U,k,O,H,ne,K;for(U=f.length-1,k=I.length-1,ne=null,K=!1;U>=0&&k>=0;){if(O=f[U],H=I[k],O.pts===H.pts){K=!0;break}if(O.pts>H.pts){U--;continue}U===f.length-1&&(ne=k),k--}if(!K&&ne===null)return null;var ue;if(K?ue=k:ue=ne,ue===0)return I;var fe=I.slice(ue),ht=fe.reduce(function(Lt,Bn){return Lt.byteLength+=Bn.byteLength,Lt.duration+=Bn.duration,Lt.nalCount+=Bn.nalCount,Lt},{byteLength:0,duration:0,nalCount:0});return fe.byteLength=ht.byteLength,fe.duration=ht.duration,fe.nalCount=ht.nalCount,fe.pts=fe[0].pts,fe.dts=fe[0].dts,fe},this.alignGopsWith=function(I){f=I}},ra.prototype=new Bo,or=function(l,h){this.numberOfTracks=0,this.metadataStream=h,l=l||{},typeof l.remux<"u"?this.remuxTracks=!!l.remux:this.remuxTracks=!0,typeof l.keepOriginalTimestamps=="boolean"?this.keepOriginalTimestamps=l.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,or.prototype.init.call(this),this.push=function(p){if(p.content||p.text)return this.pendingCaptions.push(p);if(p.frames)return this.pendingMetadata.push(p);this.pendingTracks.push(p.track),this.pendingBytes+=p.boxes.byteLength,p.track.type==="video"&&(this.videoTrack=p.track,this.pendingBoxes.push(p.boxes)),p.track.type==="audio"&&(this.audioTrack=p.track,this.pendingBoxes.unshift(p.boxes))}},or.prototype=new Bo,or.prototype.flush=function(l){var h=0,p={captions:[],captionStreams:{},metadata:[],info:{}},m,f,E,R=0,I;if(this.pendingTracks.length<this.numberOfTracks){if(l!=="VideoSegmentStream"&&l!=="AudioSegmentStream"||this.remuxTracks)return;if(this.pendingTracks.length===0){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(R=this.videoTrack.timelineStartInfo.pts,iu.forEach(function(U){p.info[U]=this.videoTrack[U]},this)):this.audioTrack&&(R=this.audioTrack.timelineStartInfo.pts,nu.forEach(function(U){p.info[U]=this.audioTrack[U]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?p.type=this.pendingTracks[0].type:p.type="combined",this.emittedTracks+=this.pendingTracks.length,E=na.initSegment(this.pendingTracks),p.initSegment=new Uint8Array(E.byteLength),p.initSegment.set(E),p.data=new Uint8Array(this.pendingBytes),I=0;I<this.pendingBoxes.length;I++)p.data.set(this.pendingBoxes[I],h),h+=this.pendingBoxes[I].byteLength;for(I=0;I<this.pendingCaptions.length;I++)m=this.pendingCaptions[I],m.startTime=Zo.metadataTsToSeconds(m.startPts,R,this.keepOriginalTimestamps),m.endTime=Zo.metadataTsToSeconds(m.endPts,R,this.keepOriginalTimestamps),p.captionStreams[m.stream]=!0,p.captions.push(m);for(I=0;I<this.pendingMetadata.length;I++)f=this.pendingMetadata[I],f.cueTime=Zo.metadataTsToSeconds(f.pts,R,this.keepOriginalTimestamps),p.metadata.push(f);for(p.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",p),I=0;I<p.captions.length;I++)m=p.captions[I],this.trigger("caption",m);for(I=0;I<p.metadata.length;I++)f=p.metadata[I],this.trigger("id3Frame",f)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},or.prototype.setRemux=function(l){this.remuxTracks=l},Do=function(l){var h=this,p=!0,m,f;Do.prototype.init.call(this),l=l||{},this.baseMediaDecodeTime=l.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var E={};this.transmuxPipeline_=E,E.type="aac",E.metadataStream=new si.MetadataStream,E.aacStream=new y9,E.audioTimestampRolloverStream=new si.TimestampRolloverStream("audio"),E.timedMetadataTimestampRolloverStream=new si.TimestampRolloverStream("timed-metadata"),E.adtsStream=new vp,E.coalesceStream=new or(l,E.metadataStream),E.headOfPipeline=E.aacStream,E.aacStream.pipe(E.audioTimestampRolloverStream).pipe(E.adtsStream),E.aacStream.pipe(E.timedMetadataTimestampRolloverStream).pipe(E.metadataStream).pipe(E.coalesceStream),E.metadataStream.on("timestamp",function(R){E.aacStream.setTimestamp(R.timeStamp)}),E.aacStream.on("data",function(R){R.type!=="timed-metadata"&&R.type!=="audio"||E.audioSegmentStream||(f=f||{timelineStartInfo:{baseMediaDecodeTime:h.baseMediaDecodeTime},codec:"adts",type:"audio"},E.coalesceStream.numberOfTracks++,E.audioSegmentStream=new Or(f,l),E.audioSegmentStream.on("log",h.getLogTrigger_("audioSegmentStream")),E.audioSegmentStream.on("timingInfo",h.trigger.bind(h,"audioTimingInfo")),E.adtsStream.pipe(E.audioSegmentStream).pipe(E.coalesceStream),h.trigger("trackinfo",{hasAudio:!!f,hasVideo:!!m}))}),E.coalesceStream.on("data",this.trigger.bind(this,"data")),E.coalesceStream.on("done",this.trigger.bind(this,"done")),Cp(this,E)},this.setupTsPipeline=function(){var E={};this.transmuxPipeline_=E,E.type="ts",E.metadataStream=new si.MetadataStream,E.packetStream=new si.TransportPacketStream,E.parseStream=new si.TransportParseStream,E.elementaryStream=new si.ElementaryStream,E.timestampRolloverStream=new si.TimestampRolloverStream,E.adtsStream=new vp,E.h264Stream=new f9,E.captionStream=new si.CaptionStream(l),E.coalesceStream=new or(l,E.metadataStream),E.headOfPipeline=E.packetStream,E.packetStream.pipe(E.parseStream).pipe(E.elementaryStream).pipe(E.timestampRolloverStream),E.timestampRolloverStream.pipe(E.h264Stream),E.timestampRolloverStream.pipe(E.adtsStream),E.timestampRolloverStream.pipe(E.metadataStream).pipe(E.coalesceStream),E.h264Stream.pipe(E.captionStream).pipe(E.coalesceStream),E.elementaryStream.on("data",function(R){var I;if(R.type==="metadata"){for(I=R.tracks.length;I--;)!m&&R.tracks[I].type==="video"?(m=R.tracks[I],m.timelineStartInfo.baseMediaDecodeTime=h.baseMediaDecodeTime):!f&&R.tracks[I].type==="audio"&&(f=R.tracks[I],f.timelineStartInfo.baseMediaDecodeTime=h.baseMediaDecodeTime);m&&!E.videoSegmentStream&&(E.coalesceStream.numberOfTracks++,E.videoSegmentStream=new ra(m,l),E.videoSegmentStream.on("log",h.getLogTrigger_("videoSegmentStream")),E.videoSegmentStream.on("timelineStartInfo",function(U){f&&!l.keepOriginalTimestamps&&(f.timelineStartInfo=U,E.audioSegmentStream.setEarliestDts(U.dts-h.baseMediaDecodeTime))}),E.videoSegmentStream.on("processedGopsInfo",h.trigger.bind(h,"gopInfo")),E.videoSegmentStream.on("segmentTimingInfo",h.trigger.bind(h,"videoSegmentTimingInfo")),E.videoSegmentStream.on("baseMediaDecodeTime",function(U){f&&E.audioSegmentStream.setVideoBaseMediaDecodeTime(U)}),E.videoSegmentStream.on("timingInfo",h.trigger.bind(h,"videoTimingInfo")),E.h264Stream.pipe(E.videoSegmentStream).pipe(E.coalesceStream)),f&&!E.audioSegmentStream&&(E.coalesceStream.numberOfTracks++,E.audioSegmentStream=new Or(f,l),E.audioSegmentStream.on("log",h.getLogTrigger_("audioSegmentStream")),E.audioSegmentStream.on("timingInfo",h.trigger.bind(h,"audioTimingInfo")),E.audioSegmentStream.on("segmentTimingInfo",h.trigger.bind(h,"audioSegmentTimingInfo")),E.adtsStream.pipe(E.audioSegmentStream).pipe(E.coalesceStream)),h.trigger("trackinfo",{hasAudio:!!f,hasVideo:!!m})}}),E.coalesceStream.on("data",this.trigger.bind(this,"data")),E.coalesceStream.on("id3Frame",function(R){R.dispatchType=E.metadataStream.dispatchType,h.trigger("id3Frame",R)}),E.coalesceStream.on("caption",this.trigger.bind(this,"caption")),E.coalesceStream.on("done",this.trigger.bind(this,"done")),Cp(this,E)},this.setBaseMediaDecodeTime=function(E){var R=this.transmuxPipeline_;l.keepOriginalTimestamps||(this.baseMediaDecodeTime=E),f&&(f.timelineStartInfo.dts=void 0,f.timelineStartInfo.pts=void 0,Cn.clearDtsInfo(f),R.audioTimestampRolloverStream&&R.audioTimestampRolloverStream.discontinuity()),m&&(R.videoSegmentStream&&(R.videoSegmentStream.gopCache_=[]),m.timelineStartInfo.dts=void 0,m.timelineStartInfo.pts=void 0,Cn.clearDtsInfo(m),R.captionStream.reset()),R.timestampRolloverStream&&R.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(E){f&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(E)},this.setRemux=function(E){var R=this.transmuxPipeline_;l.remux=E,R&&R.coalesceStream&&R.coalesceStream.setRemux(E)},this.alignGopsWith=function(E){m&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(E)},this.getLogTrigger_=function(E){var R=this;return function(I){I.stream=E,R.trigger("log",I)}},this.push=function(E){if(p){var R=b9(E);R&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():!R&&this.transmuxPipeline_.type!=="ts"&&this.setupTsPipeline(),p=!1}this.transmuxPipeline_.headOfPipeline.push(E)},this.flush=function(){p=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Do.prototype=new Bo;var v9={Transmuxer:Do,VideoSegmentStream:ra,AudioSegmentStream:Or,AUDIO_PROPERTIES:nu,VIDEO_PROPERTIES:iu,generateSegmentTimingInfo:ru},C9=function(l){return l>>>0},A9=function(l){return("00"+l.toString(16)).slice(-2)},Oo={toUnsigned:C9,toHexString:A9},S9=function(l){var h="";return h+=String.fromCharCode(l[0]),h+=String.fromCharCode(l[1]),h+=String.fromCharCode(l[2]),h+=String.fromCharCode(l[3]),h},su=S9,_9=Oo.toUnsigned,R9=su,Sp=function(l,h){var p=[],m,f,E,R,I;if(!h.length)return null;for(m=0;m<l.byteLength;)f=_9(l[m]<<24|l[m+1]<<16|l[m+2]<<8|l[m+3]),E=R9(l.subarray(m+4,m+8)),R=f>1?m+f:l.byteLength,E===h[0]&&(h.length===1?p.push(l.subarray(m+8,R)):(I=Sp(l.subarray(m+8,R),h.slice(1)),I.length&&(p=p.concat(I)))),m=R;return p},Xo=Sp,I9=Oo.toUnsigned,V9=s.getUint64,w9=function(l){var h={version:l[0],flags:new Uint8Array(l.subarray(1,4))};return h.version===1?h.baseMediaDecodeTime=V9(l.subarray(4)):h.baseMediaDecodeTime=I9(l[4]<<24|l[5]<<16|l[6]<<8|l[7]),h},au=w9,N9=function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={version:l[0],flags:new Uint8Array(l.subarray(1,4)),trackId:h.getUint32(4)},m=p.flags[2]&1,f=p.flags[2]&2,E=p.flags[2]&8,R=p.flags[2]&16,I=p.flags[2]&32,U=p.flags[0]&65536,k=p.flags[0]&131072,O;return O=8,m&&(O+=4,p.baseDataOffset=h.getUint32(12),O+=4),f&&(p.sampleDescriptionIndex=h.getUint32(O),O+=4),E&&(p.defaultSampleDuration=h.getUint32(O),O+=4),R&&(p.defaultSampleSize=h.getUint32(O),O+=4),I&&(p.defaultSampleFlags=h.getUint32(O)),U&&(p.durationIsEmpty=!0),!m&&k&&(p.baseDataOffsetIsMoof=!0),p},ou=N9,_p=s.getUint64,U9=function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={version:l[0],flags:new Uint8Array(l.subarray(1,4)),references:[],referenceId:h.getUint32(4),timescale:h.getUint32(8)},m=12;p.version===0?(p.earliestPresentationTime=h.getUint32(m),p.firstOffset=h.getUint32(m+4),m+=8):(p.earliestPresentationTime=_p(l.subarray(m)),p.firstOffset=_p(l.subarray(m+8)),m+=16),m+=2;var f=h.getUint16(m);for(m+=2;f>0;m+=12,f--)p.references.push({referenceType:(l[m]&128)>>>7,referencedSize:h.getUint32(m)&2147483647,subsegmentDuration:h.getUint32(m+4),startsWithSap:!!(l[m+8]&128),sapType:(l[m+8]&112)>>>4,sapDeltaTime:h.getUint32(m+8)&268435455});return p},k9=U9,x9=function(l){return{isLeading:(l[0]&12)>>>2,dependsOn:l[0]&3,isDependedOn:(l[1]&192)>>>6,hasRedundancy:(l[1]&48)>>>4,paddingValue:(l[1]&14)>>>1,isNonSyncSample:l[1]&1,degradationPriority:l[2]<<8|l[3]}},L9=x9,Rp=L9,F9=function(l){var h={version:l[0],flags:new Uint8Array(l.subarray(1,4)),samples:[]},p=new DataView(l.buffer,l.byteOffset,l.byteLength),m=h.flags[2]&1,f=h.flags[2]&4,E=h.flags[1]&1,R=h.flags[1]&2,I=h.flags[1]&4,U=h.flags[1]&8,k=p.getUint32(4),O=8,H;for(m&&(h.dataOffset=p.getInt32(O),O+=4),f&&k&&(H={flags:Rp(l.subarray(O,O+4))},O+=4,E&&(H.duration=p.getUint32(O),O+=4),R&&(H.size=p.getUint32(O),O+=4),U&&(h.version===1?H.compositionTimeOffset=p.getInt32(O):H.compositionTimeOffset=p.getUint32(O),O+=4),h.samples.push(H),k--);k--;)H={},E&&(H.duration=p.getUint32(O),O+=4),R&&(H.size=p.getUint32(O),O+=4),I&&(H.flags=Rp(l.subarray(O,O+4)),O+=4),U&&(h.version===1?H.compositionTimeOffset=p.getInt32(O):H.compositionTimeOffset=p.getUint32(O),O+=4),h.samples.push(H);return h},Ip=F9,B9=s,Vp=B9.getUint64,It,lu,an=function(l){return new Date(l*1e3-20828448e5)},sa=su,W9=Xo,Z9=function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p=[],m,f;for(m=0;m+4<l.length;m+=f){if(f=h.getUint32(m),m+=4,f<=0){p.push("<span style='color:red;'>MALFORMED DATA</span>");continue}switch(l[m]&31){case 1:p.push("slice_layer_without_partitioning_rbsp");break;case 5:p.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:p.push("sei_rbsp");break;case 7:p.push("seq_parameter_set_rbsp");break;case 8:p.push("pic_parameter_set_rbsp");break;case 9:p.push("access_unit_delimiter_rbsp");break;default:p.push("UNKNOWN NAL - "+l[m]&31);break}}return p},xi={avc1:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength);return{dataReferenceIndex:h.getUint16(6),width:h.getUint16(24),height:h.getUint16(26),horizresolution:h.getUint16(28)+h.getUint16(30)/16,vertresolution:h.getUint16(32)+h.getUint16(34)/16,frameCount:h.getUint16(40),depth:h.getUint16(74),config:It(l.subarray(78,l.byteLength))}},avcC:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={configurationVersion:l[0],avcProfileIndication:l[1],profileCompatibility:l[2],avcLevelIndication:l[3],lengthSizeMinusOne:l[4]&3,sps:[],pps:[]},m=l[5]&31,f,E,R,I;for(R=6,I=0;I<m;I++)E=h.getUint16(R),R+=2,p.sps.push(new Uint8Array(l.subarray(R,R+E))),R+=E;for(f=l[R],R++,I=0;I<f;I++)E=h.getUint16(R),R+=2,p.pps.push(new Uint8Array(l.subarray(R,R+E))),R+=E;return p},btrt:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength);return{bufferSizeDB:h.getUint32(0),maxBitrate:h.getUint32(4),avgBitrate:h.getUint32(8)}},edts:function(l){return{boxes:It(l)}},elst:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={version:h.getUint8(0),flags:new Uint8Array(l.subarray(1,4)),edits:[]},m=h.getUint32(4),f;for(f=8;m;m--)p.version===0?(p.edits.push({segmentDuration:h.getUint32(f),mediaTime:h.getInt32(f+4),mediaRate:h.getUint16(f+8)+h.getUint16(f+10)/(256*256)}),f+=12):(p.edits.push({segmentDuration:Vp(l.subarray(f)),mediaTime:Vp(l.subarray(f+8)),mediaRate:h.getUint16(f+16)+h.getUint16(f+18)/(256*256)}),f+=20);return p},esds:function(l){return{version:l[0],flags:new Uint8Array(l.subarray(1,4)),esId:l[6]<<8|l[7],streamPriority:l[8]&31,decoderConfig:{objectProfileIndication:l[11],streamType:l[12]>>>2&63,bufferSize:l[13]<<16|l[14]<<8|l[15],maxBitrate:l[16]<<24|l[17]<<16|l[18]<<8|l[19],avgBitrate:l[20]<<24|l[21]<<16|l[22]<<8|l[23],decoderConfigDescriptor:{tag:l[24],length:l[25],audioObjectType:l[26]>>>3&31,samplingFrequencyIndex:(l[26]&7)<<1|l[27]>>>7&1,channelConfiguration:l[27]>>>3&15}}}},ftyp:function(l){for(var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={majorBrand:sa(l.subarray(0,4)),minorVersion:h.getUint32(4),compatibleBrands:[]},m=8;m<l.byteLength;)p.compatibleBrands.push(sa(l.subarray(m,m+4))),m+=4;return p},dinf:function(l){return{boxes:It(l)}},dref:function(l){return{version:l[0],flags:new Uint8Array(l.subarray(1,4)),dataReferences:It(l.subarray(8))}},hdlr:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={version:h.getUint8(0),flags:new Uint8Array(l.subarray(1,4)),handlerType:sa(l.subarray(8,12)),name:""},m=8;for(m=24;m<l.byteLength;m++){if(l[m]===0){m++;break}p.name+=String.fromCharCode(l[m])}return p.name=decodeURIComponent(escape(p.name)),p},mdat:function(l){return{byteLength:l.byteLength,nals:Z9(l)}},mdhd:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p=4,m,f={version:h.getUint8(0),flags:new Uint8Array(l.subarray(1,4)),language:""};return f.version===1?(p+=4,f.creationTime=an(h.getUint32(p)),p+=8,f.modificationTime=an(h.getUint32(p)),p+=4,f.timescale=h.getUint32(p),p+=8,f.duration=h.getUint32(p)):(f.creationTime=an(h.getUint32(p)),p+=4,f.modificationTime=an(h.getUint32(p)),p+=4,f.timescale=h.getUint32(p),p+=4,f.duration=h.getUint32(p)),p+=4,m=h.getUint16(p),f.language+=String.fromCharCode((m>>10)+96),f.language+=String.fromCharCode(((m&992)>>5)+96),f.language+=String.fromCharCode((m&31)+96),f},mdia:function(l){return{boxes:It(l)}},mfhd:function(l){return{version:l[0],flags:new Uint8Array(l.subarray(1,4)),sequenceNumber:l[4]<<24|l[5]<<16|l[6]<<8|l[7]}},minf:function(l){return{boxes:It(l)}},mp4a:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={dataReferenceIndex:h.getUint16(6),channelcount:h.getUint16(16),samplesize:h.getUint16(18),samplerate:h.getUint16(24)+h.getUint16(26)/65536};return l.byteLength>28&&(p.streamDescriptor=It(l.subarray(28))[0]),p},moof:function(l){return{boxes:It(l)}},moov:function(l){return{boxes:It(l)}},mvex:function(l){return{boxes:It(l)}},mvhd:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p=4,m={version:h.getUint8(0),flags:new Uint8Array(l.subarray(1,4))};return m.version===1?(p+=4,m.creationTime=an(h.getUint32(p)),p+=8,m.modificationTime=an(h.getUint32(p)),p+=4,m.timescale=h.getUint32(p),p+=8,m.duration=h.getUint32(p)):(m.creationTime=an(h.getUint32(p)),p+=4,m.modificationTime=an(h.getUint32(p)),p+=4,m.timescale=h.getUint32(p),p+=4,m.duration=h.getUint32(p)),p+=4,m.rate=h.getUint16(p)+h.getUint16(p+2)/16,p+=4,m.volume=h.getUint8(p)+h.getUint8(p+1)/8,p+=2,p+=2,p+=2*4,m.matrix=new Uint32Array(l.subarray(p,p+9*4)),p+=9*4,p+=6*4,m.nextTrackId=h.getUint32(p),m},pdin:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength);return{version:h.getUint8(0),flags:new Uint8Array(l.subarray(1,4)),rate:h.getUint32(4),initialDelay:h.getUint32(8)}},sdtp:function(l){var h={version:l[0],flags:new Uint8Array(l.subarray(1,4)),samples:[]},p;for(p=4;p<l.byteLength;p++)h.samples.push({dependsOn:(l[p]&48)>>4,isDependedOn:(l[p]&12)>>2,hasRedundancy:l[p]&3});return h},sidx:k9,smhd:function(l){return{version:l[0],flags:new Uint8Array(l.subarray(1,4)),balance:l[4]+l[5]/256}},stbl:function(l){return{boxes:It(l)}},ctts:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={version:h.getUint8(0),flags:new Uint8Array(l.subarray(1,4)),compositionOffsets:[]},m=h.getUint32(4),f;for(f=8;m;f+=8,m--)p.compositionOffsets.push({sampleCount:h.getUint32(f),sampleOffset:h[p.version===0?"getUint32":"getInt32"](f+4)});return p},stss:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={version:h.getUint8(0),flags:new Uint8Array(l.subarray(1,4)),syncSamples:[]},m=h.getUint32(4),f;for(f=8;m;f+=4,m--)p.syncSamples.push(h.getUint32(f));return p},stco:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={version:l[0],flags:new Uint8Array(l.subarray(1,4)),chunkOffsets:[]},m=h.getUint32(4),f;for(f=8;m;f+=4,m--)p.chunkOffsets.push(h.getUint32(f));return p},stsc:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p=h.getUint32(4),m={version:l[0],flags:new Uint8Array(l.subarray(1,4)),sampleToChunks:[]},f;for(f=8;p;f+=12,p--)m.sampleToChunks.push({firstChunk:h.getUint32(f),samplesPerChunk:h.getUint32(f+4),sampleDescriptionIndex:h.getUint32(f+8)});return m},stsd:function(l){return{version:l[0],flags:new Uint8Array(l.subarray(1,4)),sampleDescriptions:It(l.subarray(8))}},stsz:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={version:l[0],flags:new Uint8Array(l.subarray(1,4)),sampleSize:h.getUint32(4),entries:[]},m;for(m=12;m<l.byteLength;m+=4)p.entries.push(h.getUint32(m));return p},stts:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p={version:l[0],flags:new Uint8Array(l.subarray(1,4)),timeToSamples:[]},m=h.getUint32(4),f;for(f=8;m;f+=8,m--)p.timeToSamples.push({sampleCount:h.getUint32(f),sampleDelta:h.getUint32(f+4)});return p},styp:function(l){return xi.ftyp(l)},tfdt:au,tfhd:ou,tkhd:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength),p=4,m={version:h.getUint8(0),flags:new Uint8Array(l.subarray(1,4))};return m.version===1?(p+=4,m.creationTime=an(h.getUint32(p)),p+=8,m.modificationTime=an(h.getUint32(p)),p+=4,m.trackId=h.getUint32(p),p+=4,p+=8,m.duration=h.getUint32(p)):(m.creationTime=an(h.getUint32(p)),p+=4,m.modificationTime=an(h.getUint32(p)),p+=4,m.trackId=h.getUint32(p),p+=4,p+=4,m.duration=h.getUint32(p)),p+=4,p+=2*4,m.layer=h.getUint16(p),p+=2,m.alternateGroup=h.getUint16(p),p+=2,m.volume=h.getUint8(p)+h.getUint8(p+1)/8,p+=2,p+=2,m.matrix=new Uint32Array(l.subarray(p,p+9*4)),p+=9*4,m.width=h.getUint16(p)+h.getUint16(p+2)/65536,p+=4,m.height=h.getUint16(p)+h.getUint16(p+2)/65536,m},traf:function(l){return{boxes:It(l)}},trak:function(l){return{boxes:It(l)}},trex:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength);return{version:l[0],flags:new Uint8Array(l.subarray(1,4)),trackId:h.getUint32(4),defaultSampleDescriptionIndex:h.getUint32(8),defaultSampleDuration:h.getUint32(12),defaultSampleSize:h.getUint32(16),sampleDependsOn:l[20]&3,sampleIsDependedOn:(l[21]&192)>>6,sampleHasRedundancy:(l[21]&48)>>4,samplePaddingValue:(l[21]&14)>>1,sampleIsDifferenceSample:!!(l[21]&1),sampleDegradationPriority:h.getUint16(22)}},trun:Ip,"url ":function(l){return{version:l[0],flags:new Uint8Array(l.subarray(1,4))}},vmhd:function(l){var h=new DataView(l.buffer,l.byteOffset,l.byteLength);return{version:l[0],flags:new Uint8Array(l.subarray(1,4)),graphicsmode:h.getUint16(4),opcolor:new Uint16Array([h.getUint16(6),h.getUint16(8),h.getUint16(10)])}}};It=function(l){for(var h=0,p=[],m,f,E,R,I,U=new ArrayBuffer(l.length),k=new Uint8Array(U),O=0;O<l.length;++O)k[O]=l[O];for(m=new DataView(U);h<l.byteLength;)f=m.getUint32(h),E=sa(l.subarray(h+4,h+8)),R=f>1?h+f:l.byteLength,I=(xi[E]||function(H){return{data:H}})(l.subarray(h+8,R)),I.size=f,I.type=E,p.push(I),h=R;return p},lu=function(l,h){var p;return h=h||0,p=new Array(h*2+1).join(" "),l.map(function(m,f){return p+m.type+`
262
- `+Object.keys(m).filter(function(E){return E!=="type"&&E!=="boxes"}).map(function(E){var R=p+" "+E+": ",I=m[E];if(I instanceof Uint8Array||I instanceof Uint32Array){var U=Array.prototype.slice.call(new Uint8Array(I.buffer,I.byteOffset,I.byteLength)).map(function(k){return" "+("00"+k.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return U?U.length===1?R+"<"+U.join("").slice(1)+">":R+`<
263
- `+U.map(function(k){return p+" "+k}).join(`
264
- `)+`
265
- `+p+" >":R+"<>"}return R+JSON.stringify(I,null,2).split(`
266
- `).map(function(k,O){return O===0?k:p+" "+k}).join(`
267
- `)}).join(`
268
- `)+(m.boxes?`
269
- `+lu(m.boxes,h+1):"")}).join(`
270
- `)};var wp={inspect:It,textify:lu,parseType:sa,findBox:W9,parseTraf:xi.traf,parseTfdt:xi.tfdt,parseHdlr:xi.hdlr,parseTfhd:xi.tfhd,parseTrun:xi.trun,parseSidx:xi.sidx},D9=function(l){for(var h=0,p=String.fromCharCode(l[h]),m="";p!=="\0";)m+=p,h++,p=String.fromCharCode(l[h]);return m+=p,m},O9={uint8ToCString:D9},Go=O9.uint8ToCString,X9=s.getUint64,G9=function(l){var h=4,p=l[0],m,f,E,R,I,U,k,O;if(p===0){m=Go(l.subarray(h)),h+=m.length,f=Go(l.subarray(h)),h+=f.length;var H=new DataView(l.buffer);E=H.getUint32(h),h+=4,I=H.getUint32(h),h+=4,U=H.getUint32(h),h+=4,k=H.getUint32(h),h+=4}else if(p===1){var H=new DataView(l.buffer);E=H.getUint32(h),h+=4,R=X9(l.subarray(h)),h+=8,U=H.getUint32(h),h+=4,k=H.getUint32(h),h+=4,m=Go(l.subarray(h)),h+=m.length,f=Go(l.subarray(h)),h+=f.length}O=new Uint8Array(l.subarray(h,l.byteLength));var ne={scheme_id_uri:m,value:f,timescale:E||1,presentation_time:R,presentation_time_delta:I,event_duration:U,id:k,message_data:O};return P9(p,ne)?ne:void 0},M9=function(l,h,p,m){return l||l===0?l/h:m+p/h},P9=function(l,h){var p=h.scheme_id_uri!=="\0",m=l===0&&Np(h.presentation_time_delta)&&p,f=l===1&&Np(h.presentation_time)&&p;return!(l>1)&&m||f},Np=function(l){return l!==void 0||l!==null},Y9={parseEmsgBox:G9,scaleTime:M9},aa;typeof window<"u"?aa=window:typeof t<"u"?aa=t:typeof self<"u"?aa=self:aa={};var Up=aa,Mo=Oo.toUnsigned,oa=Oo.toHexString,qe=Xo,Xr=su,cu=Y9,H9=ou,j9=Ip,J9=au,Q9=s.getUint64,kp,xp,Lp,Fp,Bp,uu,Wp,du=Up,K9=dp.parseId3Frames;kp=function(l){var h={},p=qe(l,["moov","trak"]);return p.reduce(function(m,f){var E,R,I,U,k;return E=qe(f,["tkhd"])[0],!E||(R=E[0],I=R===0?12:20,U=Mo(E[I]<<24|E[I+1]<<16|E[I+2]<<8|E[I+3]),k=qe(f,["mdia","mdhd"])[0],!k)?null:(R=k[0],I=R===0?12:20,m[U]=Mo(k[I]<<24|k[I+1]<<16|k[I+2]<<8|k[I+3]),m)},h)},xp=function(l,h){var p;p=qe(h,["moof","traf"]);var m=p.reduce(function(f,E){var R=qe(E,["tfhd"])[0],I=Mo(R[4]<<24|R[5]<<16|R[6]<<8|R[7]),U=l[I]||9e4,k=qe(E,["tfdt"])[0],O=new DataView(k.buffer,k.byteOffset,k.byteLength),H;k[0]===1?H=Q9(k.subarray(4,12)):H=O.getUint32(4);let ne;return typeof H=="bigint"?ne=H/du.BigInt(U):typeof H=="number"&&!isNaN(H)&&(ne=H/U),ne<Number.MAX_SAFE_INTEGER&&(ne=Number(ne)),ne<f&&(f=ne),f},1/0);return typeof m=="bigint"||isFinite(m)?m:0},Lp=function(l,h){var p=qe(h,["moof","traf"]),m=0,f=0,E;if(p&&p.length){var R=qe(p[0],["tfhd"])[0],I=qe(p[0],["trun"])[0],U=qe(p[0],["tfdt"])[0];if(R){var k=H9(R);E=k.trackId}if(U){var O=J9(U);m=O.baseMediaDecodeTime}if(I){var H=j9(I);H.samples&&H.samples.length&&(f=H.samples[0].compositionTimeOffset||0)}}var ne=l[E]||9e4;typeof m=="bigint"&&(f=du.BigInt(f),ne=du.BigInt(ne));var K=(m+f)/ne;return typeof K=="bigint"&&K<Number.MAX_SAFE_INTEGER&&(K=Number(K)),K},Fp=function(l){var h=qe(l,["moov","trak"]),p=[];return h.forEach(function(m){var f=qe(m,["mdia","hdlr"]),E=qe(m,["tkhd"]);f.forEach(function(R,I){var U=Xr(R.subarray(8,12)),k=E[I],O,H,ne;U==="vide"&&(O=new DataView(k.buffer,k.byteOffset,k.byteLength),H=O.getUint8(0),ne=H===0?O.getUint32(12):O.getUint32(20),p.push(ne))})}),p},uu=function(l){var h=l[0],p=h===0?12:20;return Mo(l[p]<<24|l[p+1]<<16|l[p+2]<<8|l[p+3])},Bp=function(l){var h=qe(l,["moov","trak"]),p=[];return h.forEach(function(m){var f={},E=qe(m,["tkhd"])[0],R,I;E&&(R=new DataView(E.buffer,E.byteOffset,E.byteLength),I=R.getUint8(0),f.id=I===0?R.getUint32(12):R.getUint32(20));var U=qe(m,["mdia","hdlr"])[0];if(U){var k=Xr(U.subarray(8,12));k==="vide"?f.type="video":k==="soun"?f.type="audio":f.type=k}var O=qe(m,["mdia","minf","stbl","stsd"])[0];if(O){var H=O.subarray(8);f.codec=Xr(H.subarray(4,8));var ne=qe(H,[f.codec])[0],K,ue;ne&&(/^[asm]vc[1-9]$/i.test(f.codec)?(K=ne.subarray(78),ue=Xr(K.subarray(4,8)),ue==="avcC"&&K.length>11?(f.codec+=".",f.codec+=oa(K[9]),f.codec+=oa(K[10]),f.codec+=oa(K[11])):f.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(f.codec)?(K=ne.subarray(28),ue=Xr(K.subarray(4,8)),ue==="esds"&&K.length>20&&K[19]!==0?(f.codec+="."+oa(K[19]),f.codec+="."+oa(K[20]>>>2&63).replace(/^0/,"")):f.codec="mp4a.40.2"):f.codec=f.codec.toLowerCase())}var fe=qe(m,["mdia","mdhd"])[0];fe&&(f.timescale=uu(fe)),p.push(f)}),p},Wp=function(l,h=0){var p=qe(l,["emsg"]);return p.map(m=>{var f=cu.parseEmsgBox(new Uint8Array(m)),E=K9(f.message_data);return{cueTime:cu.scaleTime(f.presentation_time,f.timescale,f.presentation_time_delta,h),duration:cu.scaleTime(f.event_duration,f.timescale),frames:E}})};var la={findBox:qe,parseType:Xr,timescale:kp,startTime:xp,compositionStartTime:Lp,videoTrackIds:Fp,tracks:Bp,getTimescaleFromMediaHeader:uu,getEmsgID3:Wp};const{parseTrun:$9}=wp,{findBox:Zp}=la;var Dp=Up,z9=function(l){var h=Zp(l,["moof","traf"]),p=Zp(l,["mdat"]),m=[];return p.forEach(function(f,E){var R=h[E];m.push({mdat:f,traf:R})}),m},q9=function(l,h,p){var m=h,f=p.defaultSampleDuration||0,E=p.defaultSampleSize||0,R=p.trackId,I=[];return l.forEach(function(U){var k=$9(U),O=k.samples;O.forEach(function(H){H.duration===void 0&&(H.duration=f),H.size===void 0&&(H.size=E),H.trackId=R,H.dts=m,H.compositionTimeOffset===void 0&&(H.compositionTimeOffset=0),typeof m=="bigint"?(H.pts=m+Dp.BigInt(H.compositionTimeOffset),m+=Dp.BigInt(H.duration)):(H.pts=m+H.compositionTimeOffset,m+=H.duration)}),I=I.concat(O)}),I},Op={getMdatTrafPairs:z9,parseSamples:q9},e6=ap.discardEmulationPreventionBytes,t6=op.CaptionStream,hu=Xo,n6=au,i6=ou,{getMdatTrafPairs:r6,parseSamples:s6}=Op,a6=function(l,h){for(var p=l,m=0;m<h.length;m++){var f=h[m];if(p<f.size)return f;p-=f.size}return null},o6=function(l,h,p){var m=new DataView(l.buffer,l.byteOffset,l.byteLength),f={logs:[],seiNals:[]},E,R,I,U;for(R=0;R+4<l.length;R+=I)if(I=m.getUint32(R),R+=4,!(I<=0))switch(l[R]&31){case 6:var k=l.subarray(R+1,R+1+I),O=a6(R,h);if(E={nalUnitType:"sei_rbsp",size:I,data:k,escapedRBSP:e6(k),trackId:p},O)E.pts=O.pts,E.dts=O.dts,U=O;else if(U)E.pts=U.pts,E.dts=U.dts;else{f.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+R+" for trackId "+p+". See mux.js#223."});break}f.seiNals.push(E);break}return f},l6=function(l,h){var p={},m=r6(l);return m.forEach(function(f){var E=f.mdat,R=f.traf,I=hu(R,["tfhd"]),U=i6(I[0]),k=U.trackId,O=hu(R,["tfdt"]),H=O.length>0?n6(O[0]).baseMediaDecodeTime:0,ne=hu(R,["trun"]),K,ue;h===k&&ne.length>0&&(K=s6(ne,H,U),ue=o6(E,K,k),p[k]||(p[k]={seiNals:[],logs:[]}),p[k].seiNals=p[k].seiNals.concat(ue.seiNals),p[k].logs=p[k].logs.concat(ue.logs))}),p},c6=function(l,h,p){var m;if(h===null)return null;m=l6(l,h);var f=m[h]||{};return{seiNals:f.seiNals,logs:f.logs,timescale:p}},u6=function(){var l=!1,h,p,m,f,E,R;this.isInitialized=function(){return l},this.init=function(I){h=new t6,l=!0,R=I?I.isPartial:!1,h.on("data",function(U){U.startTime=U.startPts/f,U.endTime=U.endPts/f,E.captions.push(U),E.captionStreams[U.stream]=!0}),h.on("log",function(U){E.logs.push(U)})},this.isNewInit=function(I,U){return I&&I.length===0||U&&typeof U=="object"&&Object.keys(U).length===0?!1:m!==I[0]||f!==U[m]},this.parse=function(I,U,k){var O;if(this.isInitialized()){if(!U||!k)return null;if(this.isNewInit(U,k))m=U[0],f=k[m];else if(m===null||!f)return p.push(I),null}else return null;for(;p.length>0;){var H=p.shift();this.parse(H,U,k)}return O=c6(I,m,f),O&&O.logs&&(E.logs=E.logs.concat(O.logs)),O===null||!O.seiNals?E.logs.length?{logs:E.logs,captions:[],captionStreams:[]}:null:(this.pushNals(O.seiNals),this.flushStream(),E)},this.pushNals=function(I){if(!this.isInitialized()||!I||I.length===0)return null;I.forEach(function(U){h.push(U)})},this.flushStream=function(){if(!this.isInitialized())return null;R?h.partialFlush():h.flush()},this.clearParsedCaptions=function(){E.captions=[],E.captionStreams={},E.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;h.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){p=[],m=null,f=null,E?this.clearParsedCaptions():E={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},d6=u6;const{parseTfdt:h6}=wp,Li=Xo,{getTimescaleFromMediaHeader:p6}=la,{parseSamples:m6,getMdatTrafPairs:g6}=Op;var Xp=function(){let l=9e4;this.init=function(h){const p=Li(h,["moov","trak","mdia","mdhd"])[0];p&&(l=p6(p))},this.parseSegment=function(h){const p=[],m=g6(h);let f=0;return m.forEach(function(E){const R=E.mdat,I=E.traf,U=Li(I,["tfdt"])[0],k=Li(I,["tfhd"])[0],O=Li(I,["trun"]);if(U&&(f=h6(U).baseMediaDecodeTime),O.length&&k){const H=m6(O,f,k);let ne=0;H.forEach(function(K){const ue="utf-8",fe=new TextDecoder(ue),ht=R.slice(ne,ne+K.size);if(Li(ht,["vtte"])[0]){ne+=K.size;return}Li(ht,["vttc"]).forEach(function(Lt){const Bn=Li(Lt,["payl"])[0],ca=Li(Lt,["sttg"])[0],Ho=K.pts/l,jo=(K.pts+K.duration)/l;let cr,ua;if(Bn)try{cr=fe.decode(Bn)}catch(De){console.error(De)}if(ca)try{ua=fe.decode(ca)}catch(De){console.error(De)}K.duration&&cr&&p.push({cueText:cr,start:Ho,end:jo,settings:ua})}),ne+=K.size})}}),p}},pu=Io,Gp=function(l){var h=l[1]&31;return h<<=8,h|=l[2],h},Po=function(l){return!!(l[1]&64)},Yo=function(l){var h=0;return(l[3]&48)>>>4>1&&(h+=l[4]+1),h},f6=function(l,h){var p=Gp(l);return p===0?"pat":p===h?"pmt":h?"pes":null},y6=function(l){var h=Po(l),p=4+Yo(l);return h&&(p+=l[p]+1),(l[p+10]&31)<<8|l[p+11]},b6=function(l){var h={},p=Po(l),m=4+Yo(l);if(p&&(m+=l[m]+1),!!(l[m+5]&1)){var f,E,R;f=(l[m+1]&15)<<8|l[m+2],E=3+f-4,R=(l[m+10]&15)<<8|l[m+11];for(var I=12+R;I<E;){var U=m+I;h[(l[U+1]&31)<<8|l[U+2]]=l[U],I+=((l[U+3]&15)<<8|l[U+4])+5}return h}},E6=function(l,h){var p=Gp(l),m=h[p];switch(m){case pu.H264_STREAM_TYPE:return"video";case pu.ADTS_STREAM_TYPE:return"audio";case pu.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},T6=function(l){var h=Po(l);if(!h)return null;var p=4+Yo(l);if(p>=l.byteLength)return null;var m=null,f;return f=l[p+7],f&192&&(m={},m.pts=(l[p+9]&14)<<27|(l[p+10]&255)<<20|(l[p+11]&254)<<12|(l[p+12]&255)<<5|(l[p+13]&254)>>>3,m.pts*=4,m.pts+=(l[p+13]&6)>>>1,m.dts=m.pts,f&64&&(m.dts=(l[p+14]&14)<<27|(l[p+15]&255)<<20|(l[p+16]&254)<<12|(l[p+17]&255)<<5|(l[p+18]&254)>>>3,m.dts*=4,m.dts+=(l[p+18]&6)>>>1)),m},mu=function(l){switch(l){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},v6=function(l){for(var h=4+Yo(l),p=l.subarray(h),m=0,f=0,E=!1,R;f<p.byteLength-3;f++)if(p[f+2]===1){m=f+5;break}for(;m<p.byteLength;)switch(p[m]){case 0:if(p[m-1]!==0){m+=2;break}else if(p[m-2]!==0){m++;break}f+3!==m-2&&(R=mu(p[f+3]&31),R==="slice_layer_without_partitioning_rbsp_idr"&&(E=!0));do m++;while(p[m]!==1&&m<p.length);f=m-2,m+=3;break;case 1:if(p[m-1]!==0||p[m-2]!==0){m+=3;break}R=mu(p[f+3]&31),R==="slice_layer_without_partitioning_rbsp_idr"&&(E=!0),f=m-2,m+=3;break;default:m+=3;break}return p=p.subarray(f),m-=f,f=0,p&&p.byteLength>3&&(R=mu(p[f+3]&31),R==="slice_layer_without_partitioning_rbsp_idr"&&(E=!0)),E},C6={parseType:f6,parsePat:y6,parsePmt:b6,parsePayloadUnitStartIndicator:Po,parsePesType:E6,parsePesTime:T6,videoPacketContainsKeyFrame:v6},Mp=Io,Gr=cp.handleRollover,Ie={};Ie.ts=C6,Ie.aac=tu;var lr=S.ONE_SECOND_IN_TS,xt=188,Fn=71,A6=function(l,h){for(var p=0,m=xt,f,E;m<l.byteLength;){if(l[p]===Fn&&l[m]===Fn){switch(f=l.subarray(p,m),E=Ie.ts.parseType(f,h.pid),E){case"pat":h.pid=Ie.ts.parsePat(f);break;case"pmt":var R=Ie.ts.parsePmt(f);h.table=h.table||{},Object.keys(R).forEach(function(I){h.table[I]=R[I]});break}p+=xt,m+=xt;continue}p++,m++}},Pp=function(l,h,p){for(var m=0,f=xt,E,R,I,U,k,O=!1;f<=l.byteLength;){if(l[m]===Fn&&(l[f]===Fn||f===l.byteLength)){switch(E=l.subarray(m,f),R=Ie.ts.parseType(E,h.pid),R){case"pes":I=Ie.ts.parsePesType(E,h.table),U=Ie.ts.parsePayloadUnitStartIndicator(E),I==="audio"&&U&&(k=Ie.ts.parsePesTime(E),k&&(k.type="audio",p.audio.push(k),O=!0));break}if(O)break;m+=xt,f+=xt;continue}m++,f++}for(f=l.byteLength,m=f-xt,O=!1;m>=0;){if(l[m]===Fn&&(l[f]===Fn||f===l.byteLength)){switch(E=l.subarray(m,f),R=Ie.ts.parseType(E,h.pid),R){case"pes":I=Ie.ts.parsePesType(E,h.table),U=Ie.ts.parsePayloadUnitStartIndicator(E),I==="audio"&&U&&(k=Ie.ts.parsePesTime(E),k&&(k.type="audio",p.audio.push(k),O=!0));break}if(O)break;m-=xt,f-=xt;continue}m--,f--}},S6=function(l,h,p){for(var m=0,f=xt,E,R,I,U,k,O,H,ne,K=!1,ue={data:[],size:0};f<l.byteLength;){if(l[m]===Fn&&l[f]===Fn){switch(E=l.subarray(m,f),R=Ie.ts.parseType(E,h.pid),R){case"pes":if(I=Ie.ts.parsePesType(E,h.table),U=Ie.ts.parsePayloadUnitStartIndicator(E),I==="video"&&(U&&!K&&(k=Ie.ts.parsePesTime(E),k&&(k.type="video",p.video.push(k),K=!0)),!p.firstKeyFrame)){if(U&&ue.size!==0){for(O=new Uint8Array(ue.size),H=0;ue.data.length;)ne=ue.data.shift(),O.set(ne,H),H+=ne.byteLength;if(Ie.ts.videoPacketContainsKeyFrame(O)){var fe=Ie.ts.parsePesTime(O);fe?(p.firstKeyFrame=fe,p.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}ue.size=0}ue.data.push(E),ue.size+=E.byteLength}break}if(K&&p.firstKeyFrame)break;m+=xt,f+=xt;continue}m++,f++}for(f=l.byteLength,m=f-xt,K=!1;m>=0;){if(l[m]===Fn&&l[f]===Fn){switch(E=l.subarray(m,f),R=Ie.ts.parseType(E,h.pid),R){case"pes":I=Ie.ts.parsePesType(E,h.table),U=Ie.ts.parsePayloadUnitStartIndicator(E),I==="video"&&U&&(k=Ie.ts.parsePesTime(E),k&&(k.type="video",p.video.push(k),K=!0));break}if(K)break;m-=xt,f-=xt;continue}m--,f--}},_6=function(l,h){if(l.audio&&l.audio.length){var p=h;(typeof p>"u"||isNaN(p))&&(p=l.audio[0].dts),l.audio.forEach(function(E){E.dts=Gr(E.dts,p),E.pts=Gr(E.pts,p),E.dtsTime=E.dts/lr,E.ptsTime=E.pts/lr})}if(l.video&&l.video.length){var m=h;if((typeof m>"u"||isNaN(m))&&(m=l.video[0].dts),l.video.forEach(function(E){E.dts=Gr(E.dts,m),E.pts=Gr(E.pts,m),E.dtsTime=E.dts/lr,E.ptsTime=E.pts/lr}),l.firstKeyFrame){var f=l.firstKeyFrame;f.dts=Gr(f.dts,m),f.pts=Gr(f.pts,m),f.dtsTime=f.dts/lr,f.ptsTime=f.pts/lr}}},R6=function(l){for(var h=!1,p=0,m=null,f=null,E=0,R=0,I;l.length-R>=3;){var U=Ie.aac.parseType(l,R);switch(U){case"timed-metadata":if(l.length-R<10){h=!0;break}if(E=Ie.aac.parseId3TagSize(l,R),E>l.length){h=!0;break}f===null&&(I=l.subarray(R,R+E),f=Ie.aac.parseAacTimestamp(I)),R+=E;break;case"audio":if(l.length-R<7){h=!0;break}if(E=Ie.aac.parseAdtsSize(l,R),E>l.length){h=!0;break}m===null&&(I=l.subarray(R,R+E),m=Ie.aac.parseSampleRate(I)),p++,R+=E;break;default:R++;break}if(h)return null}if(m===null||f===null)return null;var k=lr/m,O={audio:[{type:"audio",dts:f,pts:f},{type:"audio",dts:f+p*1024*k,pts:f+p*1024*k}]};return O},I6=function(l){var h={pid:null,table:null},p={};A6(l,h);for(var m in h.table)if(h.table.hasOwnProperty(m)){var f=h.table[m];switch(f){case Mp.H264_STREAM_TYPE:p.video=[],S6(l,h,p),p.video.length===0&&delete p.video;break;case Mp.ADTS_STREAM_TYPE:p.audio=[],Pp(l,h,p),p.audio.length===0&&delete p.audio;break}}return p},V6=function(l,h){var p=Ie.aac.isLikelyAacData(l),m;return p?m=R6(l):m=I6(l),!m||!m.audio&&!m.video?null:(_6(m,h),m)},w6={inspect:V6,parseAudioPes_:Pp};const N6=function(l,h){h.on("data",function(p){const m=p.initSegment;p.initSegment={data:m.buffer,byteOffset:m.byteOffset,byteLength:m.byteLength};const f=p.data;p.data=f.buffer,l.postMessage({action:"data",segment:p,byteOffset:f.byteOffset,byteLength:f.byteLength},[p.data])}),h.on("done",function(p){l.postMessage({action:"done"})}),h.on("gopInfo",function(p){l.postMessage({action:"gopInfo",gopInfo:p})}),h.on("videoSegmentTimingInfo",function(p){const m={start:{decode:S.videoTsToSeconds(p.start.dts),presentation:S.videoTsToSeconds(p.start.pts)},end:{decode:S.videoTsToSeconds(p.end.dts),presentation:S.videoTsToSeconds(p.end.pts)},baseMediaDecodeTime:S.videoTsToSeconds(p.baseMediaDecodeTime)};p.prependedContentDuration&&(m.prependedContentDuration=S.videoTsToSeconds(p.prependedContentDuration)),l.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:m})}),h.on("audioSegmentTimingInfo",function(p){const m={start:{decode:S.videoTsToSeconds(p.start.dts),presentation:S.videoTsToSeconds(p.start.pts)},end:{decode:S.videoTsToSeconds(p.end.dts),presentation:S.videoTsToSeconds(p.end.pts)},baseMediaDecodeTime:S.videoTsToSeconds(p.baseMediaDecodeTime)};p.prependedContentDuration&&(m.prependedContentDuration=S.videoTsToSeconds(p.prependedContentDuration)),l.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:m})}),h.on("id3Frame",function(p){l.postMessage({action:"id3Frame",id3Frame:p})}),h.on("caption",function(p){l.postMessage({action:"caption",caption:p})}),h.on("trackinfo",function(p){l.postMessage({action:"trackinfo",trackInfo:p})}),h.on("audioTimingInfo",function(p){l.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:S.videoTsToSeconds(p.start),end:S.videoTsToSeconds(p.end)}})}),h.on("videoTimingInfo",function(p){l.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:S.videoTsToSeconds(p.start),end:S.videoTsToSeconds(p.end)}})}),h.on("log",function(p){l.postMessage({action:"log",log:p})})};class Yp{constructor(h,p){this.options=p||{},this.self=h,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new v9.Transmuxer(this.options),N6(this.self,this.transmuxer)}pushMp4Captions(h){this.captionParser||(this.captionParser=new d6,this.captionParser.init());const p=new Uint8Array(h.data,h.byteOffset,h.byteLength),m=this.captionParser.parse(p,h.trackIds,h.timescales);this.self.postMessage({action:"mp4Captions",captions:m&&m.captions||[],logs:m&&m.logs||[],data:p.buffer},[p.buffer])}initMp4WebVttParser(h){this.webVttParser||(this.webVttParser=new Xp);const p=new Uint8Array(h.data,h.byteOffset,h.byteLength);this.webVttParser.init(p)}getMp4WebVttText(h){this.webVttParser||(this.webVttParser=new Xp);const p=new Uint8Array(h.data,h.byteOffset,h.byteLength),m=this.webVttParser.parseSegment(p);this.self.postMessage({action:"getMp4WebVttText",mp4VttCues:m||[],data:p.buffer},[p.buffer])}probeMp4StartTime({timescales:h,data:p}){const m=la.startTime(h,p);this.self.postMessage({action:"probeMp4StartTime",startTime:m,data:p},[p.buffer])}probeMp4Tracks({data:h}){const p=la.tracks(h);this.self.postMessage({action:"probeMp4Tracks",tracks:p,data:h},[h.buffer])}probeEmsgID3({data:h,offset:p}){const m=la.getEmsgID3(h,p);this.self.postMessage({action:"probeEmsgID3",id3Frames:m,emsgData:h},[h.buffer])}probeTs({data:h,baseStartTime:p}){const m=typeof p=="number"&&!isNaN(p)?p*S.ONE_SECOND_IN_TS:void 0,f=w6.inspect(h,m);let E=null;f&&(E={hasVideo:f.video&&f.video.length===2||!1,hasAudio:f.audio&&f.audio.length===2||!1},E.hasVideo&&(E.videoStart=f.video[0].ptsTime),E.hasAudio&&(E.audioStart=f.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:E,data:h},[h.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(h){const p=new Uint8Array(h.data,h.byteOffset,h.byteLength);this.transmuxer.push(p)}reset(){this.transmuxer.reset()}setTimestampOffset(h){const p=h.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(S.secondsToVideoTs(p)))}setAudioAppendStart(h){this.transmuxer.setAudioAppendStart(Math.ceil(S.secondsToVideoTs(h.appendStart)))}setRemux(h){this.transmuxer.setRemux(h.remux)}flush(h){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(h){this.transmuxer.alignGopsWith(h.gopsToAlignWith.slice())}}self.onmessage=function(l){if(l.data.action==="init"&&l.data.options){this.messageHandlers=new Yp(self,l.data.options);return}this.messageHandlers||(this.messageHandlers=new Yp(self)),l.data&&l.data.action&&l.data.action!=="init"&&this.messageHandlers[l.data.action]&&this.messageHandlers[l.data.action](l.data)}}));var Fk=W8(Lk);const Bk=(t,e,n)=>{const{type:i,initSegment:r,captions:s,captionStreams:a,metadata:o,videoFrameDtsTime:c,videoFramePtsTime:u}=t.data.segment;e.buffer.push({captions:s,captionStreams:a,metadata:o});const d=t.data.segment.boxes||{data:t.data.segment.data},y={type:i,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};typeof c<"u"&&(y.videoFrameDtsTime=c),typeof u<"u"&&(y.videoFramePtsTime=u),n(y)},Wk=({transmuxedData:t,callback:e})=>{t.buffer=[],e(t)},Zk=(t,e)=>{e.gopInfo=t.data.gopInfo},O8=t=>{const{transmuxer:e,bytes:n,audioAppendStart:i,gopsToAlignWith:r,remux:s,onData:a,onTrackInfo:o,onAudioTimingInfo:c,onVideoTimingInfo:u,onVideoSegmentTimingInfo:d,onAudioSegmentTimingInfo:y,onId3:A,onCaptions:T,onDone:_,onEndedTimeline:b,onTransmuxerLog:V,isEndOfTimeline:w,segment:W,triggerSegmentEventFn:B}=t,Z={buffer:[]};let L=w;const X=j=>{e.currentTransmux===t&&(j.data.action==="data"&&Bk(j,Z,a),j.data.action==="trackinfo"&&o(j.data.trackInfo),j.data.action==="gopInfo"&&Zk(j,Z),j.data.action==="audioTimingInfo"&&c(j.data.audioTimingInfo),j.data.action==="videoTimingInfo"&&u(j.data.videoTimingInfo),j.data.action==="videoSegmentTimingInfo"&&d(j.data.videoSegmentTimingInfo),j.data.action==="audioSegmentTimingInfo"&&y(j.data.audioSegmentTimingInfo),j.data.action==="id3Frame"&&A([j.data.id3Frame],j.data.id3Frame.dispatchType),j.data.action==="caption"&&T(j.data.caption),j.data.action==="endedtimeline"&&(L=!1,b()),j.data.action==="log"&&V(j.data.log),j.data.type==="transmuxed"&&(L||(e.onmessage=null,Wk({transmuxedData:Z,callback:_}),X8(e))))},J=()=>{const j={message:"Received an error message from the transmuxer worker",metadata:{errorType:P.Error.StreamingFailedToTransmuxSegment,segmentInfo:Er({segment:W})}};_(null,j)};if(e.onmessage=X,e.onerror=J,i&&e.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&e.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),typeof s<"u"&&e.postMessage({action:"setRemux",remux:s}),n.byteLength){const j=n instanceof ArrayBuffer?n:n.buffer,re=n instanceof ArrayBuffer?0:n.byteOffset;B({type:"segmenttransmuxingstart",segment:W}),e.postMessage({action:"push",data:j,byteOffset:re,byteLength:n.byteLength},[j])}w&&e.postMessage({action:"endTimeline"}),e.postMessage({action:"flush"})},X8=t=>{t.currentTransmux=null,t.transmuxQueue.length&&(t.currentTransmux=t.transmuxQueue.shift(),typeof t.currentTransmux=="function"?t.currentTransmux():O8(t.currentTransmux))},lg=(t,e)=>{t.postMessage({action:e}),X8(t)},G8=(t,e)=>{if(!e.currentTransmux){e.currentTransmux=t,lg(e,t);return}e.transmuxQueue.push(lg.bind(null,e,t))},Dk=t=>{G8("reset",t)},Ok=t=>{G8("endTimeline",t)},M8=t=>{if(!t.transmuxer.currentTransmux){t.transmuxer.currentTransmux=t,O8(t);return}t.transmuxer.transmuxQueue.push(t)},Xk=t=>{const e=new Fk;e.currentTransmux=null,e.transmuxQueue=[];const n=e.terminate;return e.terminate=()=>(e.currentTransmux=null,e.transmuxQueue.length=0,n.call(e)),e.postMessage({action:"init",options:t}),e};var sd={reset:Dk,endTimeline:Ok,transmux:M8,createTransmuxer:Xk};const ms=function(t){const e=t.transmuxer,n=t.endAction||t.action,i=t.callback,r=it({},t,{endAction:null,transmuxer:null,callback:null}),s=a=>{a.data.action===n&&(e.removeEventListener("message",s),a.data.data&&(a.data.data=new Uint8Array(a.data.data,t.byteOffset||0,t.byteLength||a.data.data.byteLength),t.data&&(t.data=a.data.data)),i(a.data))};if(e.addEventListener("message",s),t.data){const a=t.data instanceof ArrayBuffer;r.byteOffset=a?0:t.data.byteOffset,r.byteLength=t.data.byteLength;const o=[a?t.data:t.data.buffer];e.postMessage(r,o)}else e.postMessage(r)},Kn={FAILURE:2,TIMEOUT:-101,ABORTED:-102},P8="wvtt",r1=t=>{t.forEach(e=>{e.abort()})},Gk=t=>({bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}),Mk=t=>{const e=t.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-e.requestTime||0};return n.bytesReceived=t.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n},np=(t,e)=>{const{requestType:n}=e,i=Ur({requestType:n,request:e,error:t});return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:Kn.TIMEOUT,xhr:e,metadata:i}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:Kn.ABORTED,xhr:e,metadata:i}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:Kn.FAILURE,xhr:e,metadata:i}:e.responseType==="arraybuffer"&&e.response.byteLength===0?{status:e.status,message:"Empty HLS response at URL: "+e.uri,code:Kn.FAILURE,xhr:e,metadata:i}:null},cg=(t,e,n,i)=>(r,s)=>{const a=s.response,o=np(r,s);if(o)return n(o,t);if(a.byteLength!==16)return n({status:s.status,message:"Invalid HLS key at URL: "+s.uri,code:Kn.FAILURE,xhr:s},t);const c=new DataView(a),u=new Uint32Array([c.getUint32(0),c.getUint32(4),c.getUint32(8),c.getUint32(12)]);for(let y=0;y<e.length;y++)e[y].bytes=u;const d={uri:s.uri};return i({type:"segmentkeyloadcomplete",segment:t,keyInfo:d}),n(null,t)},Pk=(t,e)=>{e===P8&&t.transmuxer.postMessage({action:"initMp4WebVttParser",data:t.map.bytes})},Yk=(t,e,n)=>{e===P8&&ms({action:"getMp4WebVttText",data:t.bytes,transmuxer:t.transmuxer,callback:({data:i,mp4VttCues:r})=>{t.bytes=i,n(null,t,{mp4VttCues:r})}})},Y8=(t,e)=>{const n=Ch(t.map.bytes);if(n!=="mp4"){const i=t.map.resolvedUri||t.map.uri,r=n||"unknown";return e({internal:!0,message:`Found unsupported ${r} container for initialization segment at URL: ${i}`,code:Kn.FAILURE,metadata:{mediaType:r}})}ms({action:"probeMp4Tracks",data:t.map.bytes,transmuxer:t.transmuxer,callback:({tracks:i,data:r})=>(t.map.bytes=r,i.forEach(function(s){t.map.tracks=t.map.tracks||{},!t.map.tracks[s.type]&&(t.map.tracks[s.type]=s,typeof s.id=="number"&&s.timescale&&(t.map.timescales=t.map.timescales||{},t.map.timescales[s.id]=s.timescale),s.type==="text"&&Pk(t,s.codec))}),e(null))})},Hk=({segment:t,finishProcessingFn:e,triggerSegmentEventFn:n})=>(i,r)=>{const s=np(i,r);if(s)return e(s,t);const a=new Uint8Array(r.response);if(n({type:"segmentloaded",segment:t}),t.map.key)return t.map.encryptedBytes=a,e(null,t);t.map.bytes=a,Y8(t,function(o){if(o)return o.xhr=r,o.status=r.status,e(o,t);e(null,t)})},jk=({segment:t,finishProcessingFn:e,responseType:n,triggerSegmentEventFn:i})=>(r,s)=>{const a=np(r,s);if(a)return e(a,t);i({type:"segmentloaded",segment:t});const o=n==="arraybuffer"||!s.responseText?s.response:kk(s.responseText.substring(t.lastReachedChar||0));return t.stats=Gk(s),t.key?t.encryptedBytes=new Uint8Array(o):t.bytes=new Uint8Array(o),e(null,t)},Jk=({segment:t,bytes:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:y,onTransmuxerLog:A,triggerSegmentEventFn:T})=>{const _=t.map&&t.map.tracks||{},b=!!(_.audio&&_.video);let V=i.bind(null,t,"audio","start");const w=i.bind(null,t,"audio","end");let W=i.bind(null,t,"video","start");const B=i.bind(null,t,"video","end"),Z=()=>M8({bytes:e,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:b,onData:L=>{L.type=L.type==="combined"?"video":L.type,d(t,L)},onTrackInfo:L=>{n&&(b&&(L.isMuxed=!0),n(t,L))},onAudioTimingInfo:L=>{V&&typeof L.start<"u"&&(V(L.start),V=null),w&&typeof L.end<"u"&&w(L.end)},onVideoTimingInfo:L=>{W&&typeof L.start<"u"&&(W(L.start),W=null),B&&typeof L.end<"u"&&B(L.end)},onVideoSegmentTimingInfo:L=>{const X={pts:{start:L.start.presentation,end:L.end.presentation},dts:{start:L.start.decode,end:L.end.decode}};T({type:"segmenttransmuxingtiminginfoavailable",segment:t,timingInfo:X}),r(L)},onAudioSegmentTimingInfo:L=>{const X={pts:{start:L.start.pts,end:L.end.pts},dts:{start:L.start.dts,end:L.end.dts}};T({type:"segmenttransmuxingtiminginfoavailable",segment:t,timingInfo:X}),s(L)},onId3:(L,X)=>{a(t,L,X)},onCaptions:L=>{o(t,[L])},isEndOfTimeline:c,onEndedTimeline:()=>{u()},onTransmuxerLog:A,onDone:(L,X)=>{y&&(L.type=L.type==="combined"?"video":L.type,T({type:"segmenttransmuxingcomplete",segment:t}),y(X,t,L))},segment:t,triggerSegmentEventFn:T});ms({action:"probeTs",transmuxer:t.transmuxer,data:e,baseStartTime:t.baseStartTime,callback:L=>{t.bytes=e=L.data;const X=L.result;X&&(n(t,{hasAudio:X.hasAudio,hasVideo:X.hasVideo,isMuxed:b}),n=null),Z()}})},H8=({segment:t,bytes:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:y,onTransmuxerLog:A,triggerSegmentEventFn:T})=>{let _=new Uint8Array(e);if(fN(_)){t.isFmp4=!0;const{tracks:b}=t.map;if(b.text&&(!b.audio||!b.video)){d(t,{data:_,type:"text"}),Yk(t,b.text.codec,y);return}const V={isFmp4:!0,hasVideo:!!b.video,hasAudio:!!b.audio};b.audio&&b.audio.codec&&b.audio.codec!=="enca"&&(V.audioCodec=b.audio.codec),b.video&&b.video.codec&&b.video.codec!=="encv"&&(V.videoCodec=b.video.codec),b.video&&b.audio&&(V.isMuxed=!0),n(t,V);const w=(W,B)=>{d(t,{data:_,type:V.hasAudio&&!V.isMuxed?"audio":"video"}),B&&B.length&&a(t,B),W&&W.length&&o(t,W),y(null,t,{})};ms({action:"probeMp4StartTime",timescales:t.map.timescales,data:_,transmuxer:t.transmuxer,callback:({data:W,startTime:B})=>{e=W.buffer,t.bytes=_=W,V.hasAudio&&!V.isMuxed&&i(t,"audio","start",B),V.hasVideo&&i(t,"video","start",B),ms({action:"probeEmsgID3",data:_,transmuxer:t.transmuxer,offset:B,callback:({emsgData:Z,id3Frames:L})=>{if(e=Z.buffer,t.bytes=_=Z,!b.video||!Z.byteLength||!t.transmuxer){w(void 0,L);return}ms({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:_,timescales:t.map.timescales,trackIds:[b.video.id],callback:X=>{e=X.data.buffer,t.bytes=_=X.data,X.logs.forEach(function(J){A(_e(J,{stream:"mp4CaptionParser"}))}),w(X.captions,L)}})}})}});return}if(!t.transmuxer){y(null,t,{});return}if(typeof t.container>"u"&&(t.container=Ch(_)),t.container!=="ts"&&t.container!=="aac"){n(t,{hasAudio:!1,hasVideo:!1}),y(null,t,{});return}Jk({segment:t,bytes:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:y,onTransmuxerLog:A,triggerSegmentEventFn:T})},j8=function({id:t,key:e,encryptedBytes:n,decryptionWorker:i,segment:r,doneFn:s},a){const o=u=>{if(u.data.source===t){i.removeEventListener("message",o);const d=u.data.decrypted;a(new Uint8Array(d.bytes,d.byteOffset,d.byteLength))}};i.onerror=()=>{const u="An error occurred in the decryption worker",d=Er({segment:r}),y={message:u,metadata:{error:new Error(u),errorType:P.Error.StreamingFailedToDecryptSegment,segmentInfo:d,keyInfo:{uri:r.key.resolvedUri||r.map.key.resolvedUri}}};s(y,r)},i.addEventListener("message",o);let c;e.bytes.slice?c=e.bytes.slice():c=new Uint32Array(Array.prototype.slice.call(e.bytes)),i.postMessage(U8({source:t,encrypted:n,key:c,iv:e.iv}),[n.buffer,c.buffer])},Qk=({decryptionWorker:t,segment:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:y,onTransmuxerLog:A,triggerSegmentEventFn:T})=>{T({type:"segmentdecryptionstart"}),j8({id:e.requestId,key:e.key,encryptedBytes:e.encryptedBytes,decryptionWorker:t,segment:e,doneFn:y},_=>{e.bytes=_,T({type:"segmentdecryptioncomplete",segment:e}),H8({segment:e,bytes:e.bytes,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:y,onTransmuxerLog:A,triggerSegmentEventFn:T})})},Kk=({activeXhrs:t,decryptionWorker:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:y,onTransmuxerLog:A,triggerSegmentEventFn:T})=>{let _=0,b=!1;return(V,w)=>{if(!b){if(V)return b=!0,r1(t),y(V,w);if(_+=1,_===t.length){const W=function(){if(w.encryptedBytes)return Qk({decryptionWorker:e,segment:w,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:y,onTransmuxerLog:A,triggerSegmentEventFn:T});H8({segment:w,bytes:w.bytes,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:y,onTransmuxerLog:A,triggerSegmentEventFn:T})};if(w.endOfAllRequests=Date.now(),w.map&&w.map.encryptedBytes&&!w.map.bytes)return T({type:"segmentdecryptionstart",segment:w}),j8({decryptionWorker:e,id:w.requestId+"-init",encryptedBytes:w.map.encryptedBytes,key:w.map.key,segment:w,doneFn:y},B=>{w.map.bytes=B,T({type:"segmentdecryptioncomplete",segment:w}),Y8(w,Z=>{if(Z)return r1(t),y(Z,w);W()})});W()}}}},$k=({loadendState:t,abortFn:e})=>n=>{n.target.aborted&&e&&!t.calledAbortFn&&(e(),t.calledAbortFn=!0)},zk=({segment:t,progressFn:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d})=>y=>{if(!y.target.aborted)return t.stats=_e(t.stats,Mk(y)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),e(y,t)},qk=({xhr:t,xhrOptions:e,decryptionWorker:n,segment:i,abortFn:r,progressFn:s,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:y,isEndOfTimeline:A,endedTimelineFn:T,dataFn:_,doneFn:b,onTransmuxerLog:V,triggerSegmentEventFn:w})=>{const W=[],B=Kk({activeXhrs:W,decryptionWorker:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:y,isEndOfTimeline:A,endedTimelineFn:T,dataFn:_,doneFn:b,onTransmuxerLog:V,triggerSegmentEventFn:w});if(i.key&&!i.key.bytes){const j=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&j.push(i.map.key);const re=_e(e,{uri:i.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),de=cg(i,j,B,w),oe={uri:i.key.resolvedUri};w({type:"segmentkeyloadstart",segment:i,keyInfo:oe});const ce=t(re,de);W.push(ce)}if(i.map&&!i.map.bytes){if(i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri)){const oe=_e(e,{uri:i.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),ce=cg(i,[i.map.key],B,w),se={uri:i.map.key.resolvedUri};w({type:"segmentkeyloadstart",segment:i,keyInfo:se});const me=t(oe,ce);W.push(me)}const j=_e(e,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:n1(i.map),requestType:"segment-media-initialization"}),re=Hk({segment:i,finishProcessingFn:B,triggerSegmentEventFn:w});w({type:"segmentloadstart",segment:i});const de=t(j,re);W.push(de)}const Z=_e(e,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:n1(i),requestType:"segment"}),L=jk({segment:i,finishProcessingFn:B,responseType:Z.responseType,triggerSegmentEventFn:w});w({type:"segmentloadstart",segment:i});const X=t(Z,L);X.addEventListener("progress",zk({segment:i,progressFn:s,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:y,isEndOfTimeline:A,endedTimelineFn:T,dataFn:_})),W.push(X);const J={};return W.forEach(j=>{j.addEventListener("loadend",$k({loadendState:J,abortFn:r}))}),()=>r1(W)},ex=bn("CodecUtils"),tx=function(t){const e=t.attributes||{};if(e.CODECS)return Gn(e.CODECS)},J8=(t,e)=>{const n=e.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&n.AUDIO&&t.mediaGroups.AUDIO[n.AUDIO]},nx=(t,e)=>{if(!J8(t,e))return!0;const n=e.attributes||{},i=t.mediaGroups.AUDIO[n.AUDIO];for(const r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1},lc=function(t){const e={};return t.forEach(({mediaType:n,type:i,details:r})=>{e[n]=e[n]||[],e[n].push(N5(`${i}${r}`))}),Object.keys(e).forEach(function(n){if(e[n].length>1){ex(`multiple ${n} codecs found as attributes: ${e[n].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),e[n]=null;return}e[n]=e[n][0]}),e},ug=function(t){let e=0;return t.audio&&e++,t.video&&e++,e},Xa=function(t,e){const n=e.attributes||{},i=lc(tx(e)||[]);if(J8(t,e)&&!i.audio&&!nx(t,e)){const r=lc(HV(t,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},ul=bn("PlaylistSelector"),dg=function(t){if(!t||!t.playlist)return;const e=t.playlist;return JSON.stringify({id:e.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:e.attributes&&e.attributes.CODECS||""})},cc=function(t,e){if(!t)return"";const n=x.getComputedStyle(t);return n?n[e]:""},gs=function(t,e){const n=t.slice();t.sort(function(i,r){const s=e(i,r);return s===0?n.indexOf(i)-n.indexOf(r):s})},ip=function(t,e){let n,i;return t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||x.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||x.Number.MAX_VALUE,n-i},ix=function(t,e){let n,i;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||x.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||x.Number.MAX_VALUE,n===i&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:n-i};let Q8=function(t,e,n,i,r,s){if(!t)return;const a={bandwidth:e,width:n,height:i,limitRenditionByPlayerDimensions:r};let o=t.playlists;Jt.isAudioOnly(t)&&(o=s.getAudioTrackPlaylists_(),a.audioOnly=!0);let c=o.map(L=>{let X;const J=L.attributes&&L.attributes.RESOLUTION&&L.attributes.RESOLUTION.width,j=L.attributes&&L.attributes.RESOLUTION&&L.attributes.RESOLUTION.height;return X=L.attributes&&L.attributes.BANDWIDTH,X=X||x.Number.MAX_VALUE,{bandwidth:X,width:J,height:j,playlist:L}});gs(c,(L,X)=>L.bandwidth-X.bandwidth),c=c.filter(L=>!Jt.isIncompatible(L.playlist));let u=c.filter(L=>Jt.isEnabled(L.playlist));u.length||(u=c.filter(L=>!Jt.isDisabled(L.playlist)));const d=u.filter(L=>L.bandwidth*pt.BANDWIDTH_VARIANCE<e);let y=d[d.length-1];const A=d.filter(L=>L.bandwidth===y.bandwidth)[0];if(r===!1){const L=A||u[0]||c[0];if(L&&L.playlist){let X="sortedPlaylistReps";return A&&(X="bandwidthBestRep"),u[0]&&(X="enabledPlaylistReps"),ul(`choosing ${dg(L)} using ${X} with options`,a),L.playlist}return ul("could not choose a playlist with options",a),null}const T=d.filter(L=>L.width&&L.height);gs(T,(L,X)=>L.width-X.width);const _=T.filter(L=>L.width===n&&L.height===i);y=_[_.length-1];const b=_.filter(L=>L.bandwidth===y.bandwidth)[0];let V,w,W;b||(V=T.filter(L=>L.width>n||L.height>i),w=V.filter(L=>L.width===V[0].width&&L.height===V[0].height),y=w[w.length-1],W=w.filter(L=>L.bandwidth===y.bandwidth)[0]);let B;if(s.leastPixelDiffSelector){const L=T.map(X=>(X.pixelDiff=Math.abs(X.width-n)+Math.abs(X.height-i),X));gs(L,(X,J)=>X.pixelDiff===J.pixelDiff?J.bandwidth-X.bandwidth:X.pixelDiff-J.pixelDiff),B=L[0]}const Z=B||W||b||A||u[0]||c[0];if(Z&&Z.playlist){let L="sortedPlaylistReps";return B?L="leastPixelDiffRep":W?L="resolutionPlusOneRep":b?L="resolutionBestRep":A?L="bandwidthBestRep":u[0]&&(L="enabledPlaylistReps"),ul(`choosing ${dg(Z)} using ${L} with options`,a),Z.playlist}return ul("could not choose a playlist with options",a),null};const hg=function(){let t=this.useDevicePixelRatio&&x.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(t=this.customPixelRatio),Q8(this.playlists.main,this.systemBandwidth,parseInt(cc(this.tech_.el(),"width"),10)*t,parseInt(cc(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.playlistController_)},rx=function(t){let e=-1,n=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let i=this.useDevicePixelRatio&&x.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(i=this.customPixelRatio),e<0&&(e=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(e=t*this.systemBandwidth+(1-t)*e,n=this.systemBandwidth),Q8(this.playlists.main,e,parseInt(cc(this.tech_.el(),"width"),10)*i,parseInt(cc(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.playlistController_)}},sx=function(t){const{main:e,currentTime:n,bandwidth:i,duration:r,segmentDuration:s,timeUntilRebuffer:a,currentTimeline:o,syncController:c}=t,u=e.playlists.filter(T=>!Jt.isIncompatible(T));let d=u.filter(Jt.isEnabled);d.length||(d=u.filter(T=>!Jt.isDisabled(T)));const y=d.filter(Jt.hasAttribute.bind(null,"BANDWIDTH")).map(T=>{const _=c.getSyncPoint(T,r,o,n)?1:2,b=Jt.estimateSegmentRequestTime(s,i,T)*_-a;return{playlist:T,rebufferingImpact:b}}),A=y.filter(T=>T.rebufferingImpact<=0);return gs(A,(T,_)=>ip(_.playlist,T.playlist)),A.length?A[0]:(gs(y,(T,_)=>T.rebufferingImpact-_.rebufferingImpact),y[0]||null)},ax=function(){const t=this.playlists.main.playlists.filter(Jt.isEnabled);return gs(t,(e,n)=>ip(e,n)),t.filter(e=>!!Xa(this.playlists.main,e).video)[0]||null},ox=t=>{let e=0,n;return t.bytes&&(n=new Uint8Array(t.bytes),t.segments.forEach(i=>{n.set(i,e),e+=i.byteLength})),n};function K8(t){try{return new URL(t).pathname.split("/").slice(-2).join("/")}catch{return""}}const lx=function(t,e,n){if(!t[n]){e.trigger({type:"usage",name:"vhs-608"});let i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);const r=e.textTracks().getTrackById(i);if(r)t[n]=r;else{const s=e.options_.vhs&&e.options_.vhs.captionServices||{};let a=n,o=n,c=!1;const u=s[i];u&&(a=u.label,o=u.language,c=u.default),t[n]=e.addRemoteTextTrack({kind:"captions",id:i,default:c,label:a,language:o},!1).track}}},cx=function({inbandTextTracks:t,captionArray:e,timestampOffset:n}){if(!e)return;const i=x.WebKitDataCue||x.VTTCue;e.forEach(r=>{const s=r.stream;r.content?r.content.forEach(a=>{const o=new i(r.startTime+n,r.endTime+n,a.text);o.line=a.line,o.align="left",o.position=a.position,o.positionAlign="line-left",t[s].addCue(o)}):t[s].addCue(new i(r.startTime+n,r.endTime+n,r.text))})},ux=function(t){Object.defineProperties(t.frame,{id:{get(){return P.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get(){return P.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get(){return P.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})},dx=({inbandTextTracks:t,metadataArray:e,timestampOffset:n,videoDuration:i})=>{if(!e)return;const r=x.WebKitDataCue||x.VTTCue,s=t.metadataTrack_;if(!s||(e.forEach(d=>{const y=d.cueTime+n;typeof y!="number"||x.isNaN(y)||y<0||!(y<1/0)||!d.frames||!d.frames.length||d.frames.forEach(A=>{const T=new r(y,y,A.value||A.url||A.data||"");T.frame=A,T.value=A,ux(T),s.addCue(T)})}),!s.cues||!s.cues.length))return;const a=s.cues,o=[];for(let d=0;d<a.length;d++)a[d]&&o.push(a[d]);const c=o.reduce((d,y)=>{const A=d[y.startTime]||[];return A.push(y),d[y.startTime]=A,d},{}),u=Object.keys(c).sort((d,y)=>Number(d)-Number(y));u.forEach((d,y)=>{const A=c[d],T=isFinite(i)?i:d,_=Number(u[y+1])||T;A.forEach(b=>{b.endTime=_})})},hx={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},px=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),mx=({inbandTextTracks:t,dateRanges:e})=>{const n=t.metadataTrack_;if(!n)return;const i=x.WebKitDataCue||x.VTTCue;e.forEach(r=>{for(const s of Object.keys(r)){if(px.has(s))continue;const a=new i(r.startTime,r.endTime,"");a.id=r.id,a.type="com.apple.quicktime.HLS",a.value={key:hx[s],data:r[s]},(s==="scte35Out"||s==="scte35In")&&(a.value.data=new Uint8Array(a.value.data.match(/[\da-f]{2}/gi)).buffer),n.addCue(a)}r.processDateRange()})},pg=(t,e,n)=>{t.metadataTrack_||(t.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,P.browser.IS_ANY_SAFARI||(t.metadataTrack_.inBandMetadataTrackDispatchType=e))},Ua=function(t,e,n){let i,r;if(n&&n.cues)for(i=n.cues.length;i--;)r=n.cues[i],r.startTime>=t&&r.endTime<=e&&n.removeCue(r)},gx=function(t){const e=t.cues;if(!e)return;const n={};for(let i=e.length-1;i>=0;i--){const r=e[i],s=`${r.startTime}-${r.endTime}-${r.text}`;n[s]?t.removeCue(r):n[s]=r}},fx=(t,e,n)=>{if(typeof e>"u"||e===null||!t.length)return[];const i=Math.ceil((e-n+3)*Sr.ONE_SECOND_IN_TS);let r;for(r=0;r<t.length&&!(t[r].pts>i);r++);return t.slice(r)},yx=(t,e,n)=>{if(!e.length)return t;if(n)return e.slice();const i=e[0].pts;let r=0;for(r;r<t.length&&!(t[r].pts>=i);r++);return t.slice(0,r).concat(e)},bx=(t,e,n,i)=>{const r=Math.ceil((e-i)*Sr.ONE_SECOND_IN_TS),s=Math.ceil((n-i)*Sr.ONE_SECOND_IN_TS),a=t.slice();let o=t.length;for(;o--&&!(t[o].pts<=s););if(o===-1)return a;let c=o+1;for(;c--&&!(t[c].pts<=r););return c=Math.max(c,0),a.splice(c,o-c+1),a},Ex=function(t,e){if(!t&&!e||!t&&e||t&&!e)return!1;if(t===e)return!0;const n=Object.keys(t).sort(),i=Object.keys(e).sort();if(n.length!==i.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(s!==i[r]||t[s]!==e[s])return!1}return!0},Tx=function(t,e,n){e=e||[];const i=[];let r=0;for(let s=0;s<e.length;s++){const a=e[s];if(t===a.timeline&&(i.push(s),r+=a.duration,r>n))return s}return i.length===0?0:i[i.length-1]},Aa=1,vx=500,mg=t=>typeof t=="number"&&isFinite(t),dl=1/60,Cx=(t,e,n)=>t!=="main"||!e||!n?null:!n.hasAudio&&!n.hasVideo?"Neither audio nor video found in segment.":e.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null,Ax=(t,e,n)=>{let i=e-pt.BACK_BUFFER_LENGTH;t.length&&(i=Math.max(i,t.start(0)));const r=e-n;return Math.min(r,i)},es=t=>{const{startOfSegment:e,duration:n,segment:i,part:r,playlist:{mediaSequence:s,id:a,segments:o=[]},mediaIndex:c,partIndex:u,timeline:d}=t,y=o.length-1;let A="mediaIndex/partIndex increment";t.getMediaInfoForTime?A=`getMediaInfoForTime (${t.getMediaInfoForTime})`:t.isSyncRequest&&(A="getSyncSegmentCandidate (isSyncRequest)"),t.independent&&(A+=` with independent ${t.independent}`);const T=typeof u=="number",_=t.segment.uri?"segment":"pre-segment",b=T?g8({preloadSegment:i})-1:0;return`${_} [${s+c}/${s+y}]`+(T?` part [${u}/${b}]`:"")+` segment start/end [${i.start} => ${i.end}]`+(T?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${e}] duration [${n}] timeline [${d}] selected by [${A}] playlist [${a}]`},gg=t=>`${t}TimingInfo`,Sx=({segmentTimeline:t,currentTimeline:e,startOfSegment:n,buffered:i,overrideCheck:r})=>!r&&t===e?null:t<e?n:i.length?i.end(i.length-1):n,s1=({timelineChangeController:t,currentTimeline:e,segmentTimeline:n,loaderType:i,audioDisabled:r})=>{if(e===n)return!1;if(i==="audio"){const s=t.lastTimelineChange({type:"main"});return!s||s.to!==n}if(i==="main"&&r){const s=t.pendingTimelineChange({type:"audio"});return!(s&&s.to===n)}return!1},_x=t=>{if(!t)return!1;const e=t.pendingTimelineChange({type:"audio"}),n=t.pendingTimelineChange({type:"main"}),i=e&&n,r=i&&e.to!==n.to;return!!(i&&e.from!==-1&&n.from!==-1&&r)},Rx=t=>{const e=t.timelineChangeController_.pendingTimelineChange({type:"audio"}),n=t.timelineChangeController_.pendingTimelineChange({type:"main"});return e&&n&&e.to<n.to},Xi=t=>{const e=t.pendingSegment_;if(e&&s1({timelineChangeController:t.timelineChangeController_,currentTimeline:t.currentTimeline_,segmentTimeline:e.timeline,loaderType:t.loaderType_,audioDisabled:t.audioDisabled_})&&_x(t.timelineChangeController_)){if(Rx(t)){t.timelineChangeController_.trigger("audioTimelineBehind");return}t.timelineChangeController_.trigger("fixBadTimelineChange")}},Ix=t=>{let e=0;return["video","audio"].forEach(function(n){const i=t[`${n}TimingInfo`];if(!i)return;const{start:r,end:s}=i;let a;typeof r=="bigint"||typeof s=="bigint"?a=x.BigInt(s)-x.BigInt(r):typeof r=="number"&&typeof s=="number"&&(a=s-r),typeof a<"u"&&a>e&&(e=a)}),typeof e=="bigint"&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),e},fg=({segmentDuration:t,maxDuration:e})=>t?Math.round(t)>e+Jn:!1,Vx=(t,e)=>{if(e!=="hls")return null;const n=Ix({audioTimingInfo:t.audioTimingInfo,videoTimingInfo:t.videoTimingInfo});if(!n)return null;const i=t.playlist.targetDuration,r=fg({segmentDuration:n,maxDuration:i*2}),s=fg({segmentDuration:n,maxDuration:i}),a=`Segment with index ${t.mediaIndex} from playlist ${t.playlist.id} has a duration of ${n} when the reported duration is ${t.duration} and the target duration is ${i}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return r||s?{severity:r?"warn":"info",message:a}:null},Er=({type:t,segment:e})=>{if(!e)return;const n=!!(e.key||e.map&&e.map.ke),i=!!(e.map&&!e.map.bytes),r=e.startOfSegment===void 0?e.start:e.startOfSegment;return{type:t||e.type,uri:e.resolvedUri||e.uri,start:r,duration:e.duration,isEncrypted:n,isMediaInitialization:i}};class a1 extends P.EventTarget{constructor(e,n={}){if(super(),!e)throw new TypeError("Initialization settings are required");if(typeof e.currentTime!="function")throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=bn(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(i){i!==this.state_&&(this.logger_(`${this.state_} -> ${i}`),this.state_=i,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():Xi(this)}),this.sourceUpdater_.on("codecschange",i=>{this.trigger(it({type:"codecschange"},i))}),this.loaderType_==="main"&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():Xi(this)}),this.loaderType_==="audio"&&this.timelineChangeController_.on("timelinechange",i=>{this.trigger(it({type:"timelinechange"},i)),this.hasEnoughInfoToLoad_()?this.processLoadQueue_():Xi(this),this.hasEnoughInfoToAppend_()?this.processCallQueue_():Xi(this)})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return sd.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&x.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if(this.state!=="WAITING"){this.pendingSegment_&&(this.pendingSegment_=null),this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,x.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return this.state==="APPENDING"&&!this.pendingSegment_?(this.state="READY",!0):!this.pendingSegment_||this.pendingSegment_.requestId!==e}error(e){return typeof e<"u"&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&sd.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Ut();if(this.loaderType_==="main"){const{hasAudio:n,hasVideo:i,isMuxed:r}=e;if(i&&n&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,n=!1){if(!e)return null;const i=oc(e);let r=this.initSegments_[i];return n&&!r&&e.bytes&&(this.initSegments_[i]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),r||e}segmentKey(e,n=!1){if(!e)return null;const i=k8(e);let r=this.keyCache_[i];this.cacheEncryptionKeys_&&n&&!r&&e.bytes&&(this.keyCache_[i]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});const s={resolvedUri:(r||e).resolvedUri};return r&&(s.bytes=r.bytes),s}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),!!this.playlist_){if(this.state==="INIT"&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"||(this.state="READY")}}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,n={}){if(!e||this.playlist_&&this.playlist_.endList&&e.endList&&this.playlist_.uri===e.uri)return;const i=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=n,this.state==="INIT"&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},this.loaderType_==="main"&&this.syncController_.setDateTimeMappingForStart(e));let s=null;if(i&&(i.id?s=i.id:i.uri&&(s=i.uri)),this.logger_(`playlist update [${s} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:
271
- currentTime: ${this.currentTime_()}
272
- bufferedEnd: ${id(this.buffered_())}
273
- `,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri){this.mediaIndex!==null&&(!e.endList&&typeof e.partTargetDuration=="number"?this.resetLoader():this.resyncLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}const a=e.mediaSequence-i.mediaSequence;if(this.logger_(`live window shift [${a}]`),this.mediaIndex!==null)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){const c=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=c}}r&&(r.mediaIndex-=a,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(x.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return this.checkBufferTimeout_===null}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&sd.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;const e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;this.sourceType_==="hls"&&!e&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,n,i=()=>{},r=!1){if(n===1/0&&(n=this.duration_()),n<=e){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}let s=1;const a=()=>{s--,s===0&&i()};(r||!this.audioDisabled_)&&(s++,this.sourceUpdater_.removeAudio(e,n,a)),(r||this.loaderType_==="main")&&(this.gopBuffer_=bx(this.gopBuffer_,e,n,this.timeMapping_),s++,this.sourceUpdater_.removeVideo(e,n,a));for(const o in this.inbandTextTracks_)Ua(e,n,this.inbandTextTracks_[o]);Ua(e,n,this.segmentMetadataTrack_),a()}monitorBuffer_(){this.checkBufferTimeout_&&x.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=x.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&x.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=x.setTimeout(this.monitorBufferTick_.bind(this),vx)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();if(!e)return;const n={segmentInfo:Er({type:this.loaderType_,segment:e})};this.trigger({type:"segmentselected",metadata:n}),typeof e.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e)}isEndOfStream_(e=this.mediaIndex,n=this.playlist_,i=this.partIndex){if(!n||!this.mediaSource_)return!1;const r=typeof e=="number"&&n.segments[e],s=e+1===n.segments.length,a=!r||!r.parts||i+1===r.parts.length;return n.endList&&this.mediaSource_.readyState==="open"&&s&&a}chooseNextRequest_(){const e=this.buffered_(),n=id(e)||0,i=zh(e,this.currentTime_()),r=!this.hasPlayed_()&&i>=1,s=i>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||r||s)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(o.isSyncRequest)o.mediaIndex=Tx(this.currentTimeline_,a,n),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${o.mediaIndex}`);else if(this.mediaIndex!==null){const A=a[this.mediaIndex],T=typeof this.partIndex=="number"?this.partIndex:-1;o.startOfSegment=A.end?A.end:n,A.parts&&A.parts[T+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=T+1):o.mediaIndex=this.mediaIndex+1}else{let A,T,_;const b=this.fetchAtBuffer_?n:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:
274
- For TargetTime: ${b}.
275
- CurrentTime: ${this.currentTime_()}
276
- BufferedEnd: ${n}
277
- Fetch At Buffer: ${this.fetchAtBuffer_}
278
- `,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const V=this.getSyncInfoFromMediaSequenceSync_(b);if(!V){const w="No sync info found while using media sequence sync";return this.error({message:w,metadata:{errorType:P.Error.StreamingFailedToSelectNextSegment,error:new Error(w)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${V.start} --> ${V.end})`),A=V.segmentIndex,T=V.partIndex,_=V.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const V=Jt.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:b,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});A=V.segmentIndex,T=V.partIndex,_=V.startTime}o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${b}`:`currentTime ${b}`,o.mediaIndex=A,o.startOfSegment=_,o.partIndex=T,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${o.mediaIndex} `)}const c=a[o.mediaIndex];let u=c&&typeof o.partIndex=="number"&&c.parts&&c.parts[o.partIndex];if(!c||typeof o.partIndex=="number"&&!u)return null;typeof o.partIndex!="number"&&c.parts&&(o.partIndex=0,u=c.parts[0]);const d=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!i&&u&&!d&&!u.independent)if(o.partIndex===0){const A=a[o.mediaIndex-1],T=A.parts&&A.parts.length&&A.parts[A.parts.length-1];T&&T.independent&&(o.mediaIndex-=1,o.partIndex=A.parts.length-1,o.independent="previous segment")}else c.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");const y=this.mediaSource_&&this.mediaSource_.readyState==="ended";return o.mediaIndex>=a.length-1&&y&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,o.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(o))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;const n=Math.max(e,this.mediaSequenceSync_.start);e!==n&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${n}`);const i=this.mediaSequenceSync_.getSyncInfoForTime(n);if(!i)return null;if(!i.isAppended)return i;const r=this.mediaSequenceSync_.getSyncInfoForTime(i.end);return r?(r.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),r):null}generateSegmentInfo_(e){const{independent:n,playlist:i,mediaIndex:r,startOfSegment:s,isSyncRequest:a,partIndex:o,forceTimestampOffset:c,getMediaInfoForTime:u}=e,d=i.segments[r],y=typeof o=="number"&&d.parts[o],A={requestId:"segment-loader-"+Math.random(),uri:y&&y.resolvedUri||d.resolvedUri,mediaIndex:r,partIndex:y?o:null,isSyncRequest:a,startOfSegment:s,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:d.timeline,duration:y&&y.duration||d.duration,segment:d,part:y,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:u,independent:n},T=typeof c<"u"?c:this.isPendingTimestampOffset_;A.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:d.timeline,currentTimeline:this.currentTimeline_,startOfSegment:s,buffered:this.buffered_(),overrideCheck:T});const _=id(this.sourceUpdater_.audioBuffered());return typeof _=="number"&&(A.audioAppendStart=_-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(A.gopsToAlignWith=fx(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),A}timestampOffsetForSegment_(e){return Sx(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const n=this.currentTime_(),i=e.bandwidth,r=this.pendingSegment_.duration,s=Jt.estimateSegmentRequestTime(r,i,this.playlist_,e.bytesReceived),a=YU(this.buffered_(),n,this.vhs_.tech_.playbackRate())-1;if(s<=a)return;const o=sx({main:this.vhs_.playlists.main,currentTime:n,bandwidth:i,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o)return;const c=s-a-o.rebufferingImpact;let u=.5;a<=Jn&&(u=1),!(!o.playlist||o.playlist.uri===this.playlist_.uri||c<u)&&(this.bandwidth=o.playlist.attributes.BANDWIDTH*pt.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${es(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,n){this.earlyAbortWhenNeeded_(n.stats),!this.checkForAbort_(n.requestId)&&this.trigger("progress")}handleTrackInfo_(e,n){const{hasAudio:i,hasVideo:r}=n,s={segmentInfo:Er({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:i,hasVideo:r}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:s}),this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)&&(this.checkForIllegalMediaSwitch(n)||(n=n||{},Ex(this.currentMediaInfo_,n)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=n,this.currentMediaInfo_=n,this.logger_("trackinfo update",n),this.trigger("trackinfo")),!this.checkForAbort_(e.requestId)&&(this.pendingSegment_.trackInfo=n,this.hasEnoughInfoToAppend_()?this.processCallQueue_():Xi(this))))}handleTimingInfo_(e,n,i,r){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const s=this.pendingSegment_,a=gg(n);s[a]=s[a]||{},s[a][i]=r,this.logger_(`timinginfo: ${n} - ${i} - ${r}`),this.hasEnoughInfoToAppend_()?this.processCallQueue_():Xi(this)}handleCaptions_(e,n){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(n.length===0){this.logger_("SegmentLoader received no captions from a caption event");return}if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,n));return}const i=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};n.forEach(s=>{r[s.stream]=r[s.stream]||{startTime:1/0,captions:[],endTime:0};const a=r[s.stream];a.startTime=Math.min(a.startTime,s.startTime+i),a.endTime=Math.max(a.endTime,s.endTime+i),a.captions.push(s)}),Object.keys(r).forEach(s=>{const{startTime:a,endTime:o,captions:c}=r[s],u=this.inbandTextTracks_;this.logger_(`adding cues from ${a} -> ${o} for ${s}`),lx(u,this.vhs_.tech_,s),Ua(a,o,u[s]),cx({captionArray:c,inbandTextTracks:u,timestampOffset:i})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,n,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,n,i));return}this.addMetadataToTextTrack(i,n,this.duration_())}}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach(n=>n())}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach(n=>n())}hasEnoughInfoToLoad_(){if(this.loaderType_!=="audio")return!0;const e=this.pendingSegment_;return e?this.getCurrentMediaInfo_()?!s1({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}):!0:!1}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,n=this.getCurrentMediaInfo_();if(!e||!n)return!1;const{hasAudio:i,hasVideo:r,isMuxed:s}=n;return!(r&&!e.videoTimingInfo||i&&!this.audioDisabled_&&!s&&!e.audioTimingInfo||s1({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,n){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){Xi(this),this.callQueue_.push(this.handleData_.bind(this,e,n));return}const i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),this.mediaSource_.readyState!=="closed"){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[gg(n.type)].start;else{const r=this.getCurrentMediaInfo_(),s=this.loaderType_==="main"&&r&&r.hasVideo;let a;s&&(a=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:s,firstVideoFrameTimeForData:a,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,n.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:this.loaderType_==="main"});const r=this.chooseNextRequest_();if(r.mediaIndex!==i.mediaIndex||r.partIndex!==i.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,n)}}updateAppendInitSegmentStatus(e,n){this.loaderType_==="main"&&typeof e.timestampOffset=="number"&&!e.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[n]!==e.playlist&&(this.appendInitSegment_[n]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:n,map:i,playlist:r}){if(i){const s=oc(i);if(this.activeInitSegmentId_===s)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=s}return n&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=r,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,n):null}handleQuotaExceededError_({segmentInfo:e,type:n,bytes:i},r){const s=this.sourceUpdater_.audioBuffered(),a=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+_r(s).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+_r(a).join(", "));const o=s.length?s.start(0):0,c=s.length?s.end(s.length-1):0,u=a.length?a.start(0):0,d=a.length?a.end(a.length-1):0;if(c-o<=Aa&&d-u<=Aa){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${i.byteLength}, audio buffer: ${_r(s).join(", ")}, video buffer: ${_r(a).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:n,bytes:i}));const y=this.currentTime_()-Aa;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${y}`),this.remove(0,y,()=>{this.logger_(`On QUOTA_EXCEEDED_ERR, retrying append in ${Aa}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=x.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},Aa*1e3)},!0)}handleAppendError_({segmentInfo:e,type:n,bytes:i},r){if(r){if(r.code===R8){this.handleQuotaExceededError_({segmentInfo:e,type:n,bytes:i});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",r),this.error({message:`${n} append of ${i.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:P.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:i,data:r,bytes:s}){if(!s){const o=[r];let c=r.byteLength;i&&(o.unshift(i),c+=i.byteLength),s=ox({bytes:c,segments:o})}const a={segmentInfo:Er({type:this.loaderType_,segment:e})};this.trigger({type:"segmentappendstart",metadata:a}),this.sourceUpdater_.appendBuffer({segmentInfo:e,type:n,bytes:s},this.handleAppendError_.bind(this,{segmentInfo:e,type:n,bytes:s}))}handleSegmentTimingInfo_(e,n,i){if(!this.pendingSegment_||n!==this.pendingSegment_.requestId)return;const r=this.pendingSegment_.segment,s=`${e}TimingInfo`;r[s]||(r[s]={}),r[s].transmuxerPrependedSeconds=i.prependedContentDuration||0,r[s].transmuxedPresentationStart=i.start.presentation,r[s].transmuxedDecodeStart=i.start.decode,r[s].transmuxedPresentationEnd=i.end.presentation,r[s].transmuxedDecodeEnd=i.end.decode,r[s].baseMediaDecodeTime=i.baseMediaDecodeTime}appendData_(e,n){const{type:i,data:r}=n;if(!r||!r.byteLength||i==="audio"&&this.audioDisabled_)return;const s=this.getInitSegmentAndUpdateState_({type:i,initSegment:n.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:s,data:r})}loadSegment_(e){if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),typeof e.timestampOffset=="number"&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){Xi(this),this.loadQueue_.push(()=>{const n=it({},e,{forceTimestampOffset:!0});it(e,this.generateSegmentInfo_(n)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)});return}this.updateTransmuxerAndRequestSegment_(e)}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const n=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=this.mediaIndex!==null,s=e.timeline!==this.currentTimeline_&&e.timeline>0,a=i||r&&s;this.logger_(`Requesting
279
- ${K8(e.uri)}
280
- ${es(e)}`),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=qk({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:o,level:c,stream:u})=>{this.logger_(`${es(e)} logged from transmuxer stream ${u} as a ${c}: ${o}`)},triggerSegmentEventFn:({type:o,segment:c,keyInfo:u,trackInfo:d,timingInfo:y})=>{const A={segmentInfo:Er({segment:c})};u&&(A.keyInfo=u),d&&(A.trackInfo=d),y&&(A.timingInfo=y),this.trigger({type:o,metadata:A})}})}trimBackBuffer_(e){const n=Ax(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);n>0&&this.remove(0,n)}createSimplifiedSegmentObj_(e){const n=e.segment,i=e.part,r=e.segment.key||e.segment.map&&e.segment.map.key,s=e.segment.map&&!e.segment.map.bytes,a={resolvedUri:i?i.resolvedUri:n.resolvedUri,byterange:i?i.byterange:n.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part,type:this.loaderType_,start:e.startOfSegment,duration:e.duration,isEncrypted:r,isMediaInitialization:s},o=e.playlist.segments[e.mediaIndex-1];if(o&&o.timeline===n.timeline&&(o.videoTimingInfo?a.baseStartTime=o.videoTimingInfo.transmuxedDecodeEnd:o.audioTimingInfo&&(a.baseStartTime=o.audioTimingInfo.transmuxedDecodeEnd)),n.key){const c=n.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);a.key=this.segmentKey(n.key),a.key.iv=c}return n.map&&(a.map=this.initSegmentForMap(n.map)),a}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,n){if(this.pendingSegment_.byteLength=n.bytesReceived,e<dl){this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${dl}`);return}const i={bandwidthInfo:{from:this.bandwidth,to:n.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:i}),this.bandwidth=n.bandwidth,this.roundTrip=n.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,n,i){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,n,i));return}if(this.saveTransferStats_(n.stats),!this.pendingSegment_||n.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Kn.ABORTED)return;if(this.pause(),e.code===Kn.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(e),this.trigger("error");return}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,n.stats),r.endOfAllRequests=n.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=yx(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}setTimeMapping_(e){const n=this.syncController_.mappingForTimeline(e);n!==null&&(this.timeMapping_=n)}updateMediaSecondsLoaded_(e){typeof e.start=="number"&&typeof e.end=="number"?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return e===null?!1:this.loaderType_==="main"&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset()}trueSegmentStart_({currentStart:e,playlist:n,mediaIndex:i,firstVideoFrameTimeForData:r,currentVideoTimestampOffset:s,useVideoTimingInfo:a,videoTimingInfo:o,audioTimingInfo:c}){if(typeof e<"u")return e;if(!a)return c.start;const u=n.segments[i-1];return i===0||!u||typeof u.start>"u"||u.end!==r+s?r:o.start}waitForAppendsToComplete_(e){const n=this.getCurrentMediaInfo_(e);if(!n){this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),this.trigger("error");return}const{hasAudio:i,hasVideo:r,isMuxed:s}=n,a=this.loaderType_==="main"&&r,o=!this.audioDisabled_&&i&&!s;if(e.waitingOnAppends=0,!e.hasAppendedData_){!e.timingInfo&&typeof e.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),this.checkAppendsDone_(e);return}a&&e.waitingOnAppends++,o&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,e.waitingOnAppends===0&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const n=Cx(this.loaderType_,this.getCurrentMediaInfo_(),e);return n?(this.error({message:n,playlistExclusionDuration:1/0}),this.trigger("error"),!0):!1}updateSourceBufferTimestampOffset_(e){if(e.timestampOffset===null||typeof e.timingInfo.start!="number"||e.changedTimestampOffset||this.loaderType_!=="main")return;let n=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),n=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),n=!0),n&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:n,timingInfo:i}){return this.useDtsForTimestampOffset_?e&&typeof e.transmuxedDecodeStart=="number"?e.transmuxedDecodeStart:n&&typeof n.transmuxedDecodeStart=="number"?n.transmuxedDecodeStart:i.start:i.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const n=this.getMediaInfo_(),i=this.loaderType_==="main"&&n&&n.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;i&&(e.timingInfo.end=typeof i.end=="number"?i.end:i.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_){const o={segmentInfo:Er({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:o})}if(!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}const e=this.pendingSegment_;e.part&&e.part.syncInfo?e.part.syncInfo.markAppended():e.segment.syncInfo&&e.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:this.loaderType_==="main"});const n=Vx(e,this.sourceType_);if(n&&(n.severity==="warn"?P.log.warn(n.message):this.logger_(n.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_)){this.logger_(`Throwing away un-appended sync request ${es(e)}`);return}this.logger_(`Appended ${es(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),this.loaderType_==="main"&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const i=e.segment,r=e.part,s=i.end&&this.currentTime_()-i.end>e.playlist.targetDuration*3,a=r&&r.end&&this.currentTime_()-r.end>e.playlist.partTargetDuration*3;if(s||a){this.logger_(`bad ${s?"segment":"part"} ${es(e)}`),this.resetEverything();return}this.mediaIndex!==null&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<dl){this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${dl}`);return}const n=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(r-n)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const n=e.segment,i=n.start,r=n.end;if(!mg(i)||!mg(r))return;Ua(i,r,this.segmentMetadataTrack_);const s=x.WebKitDataCue||x.VTTCue,a={custom:n.custom,dateTimeObject:n.dateTimeObject,dateTimeString:n.dateTimeString,programDateTime:n.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:r},o=JSON.stringify(a),c=new s(i,r,o);c.value=a,this.segmentMetadataTrack_.addCue(c)}}function gi(){}const $8=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toUpperCase())},wx=["video","audio"],o1=(t,e)=>{const n=e[`${t}Buffer`];return n&&n.updating||e.queuePending[t]},Nx=(t,e)=>{for(let n=0;n<e.length;n++){const i=e[n];if(i.type==="mediaSource")return null;if(i.type===t)return n}return null},fs=(t,e)=>{if(e.queue.length===0)return;let n=0,i=e.queue[n];if(i.type==="mediaSource"){!e.updating()&&e.mediaSource.readyState!=="closed"&&(e.queue.shift(),i.action(e),i.doneFn&&i.doneFn(),fs("audio",e),fs("video",e));return}if(t!=="mediaSource"&&!(!e.ready()||e.mediaSource.readyState==="closed"||o1(t,e))){if(i.type!==t){if(n=Nx(t,e.queue),n===null)return;i=e.queue[n]}if(e.queue.splice(n,1),e.queuePending[t]=i,i.action(t,e),!i.doneFn){e.queuePending[t]=null,fs(t,e);return}}},z8=(t,e)=>{const n=e[`${t}Buffer`],i=$8(t);n&&(n.removeEventListener("updateend",e[`on${i}UpdateEnd_`]),n.removeEventListener("error",e[`on${i}Error_`]),e.codecs[t]=null,e[`${t}Buffer`]=null)},Mn=(t,e)=>t&&e&&Array.prototype.indexOf.call(t.sourceBuffers,e)!==-1,qt={appendBuffer:(t,e,n)=>(i,r)=>{const s=r[`${i}Buffer`];if(Mn(r.mediaSource,s)){r.logger_(`Appending segment ${e.mediaIndex}'s ${t.length} bytes to ${i}Buffer`);try{s.appendBuffer(t)}catch(a){r.logger_(`Error with code ${a.code} `+(a.code===R8?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${e.mediaIndex} to ${i}Buffer`),r.queuePending[i]=null,n(a)}}},remove:(t,e)=>(n,i)=>{const r=i[`${n}Buffer`];if(Mn(i.mediaSource,r)){i.logger_(`Removing ${t} to ${e} from ${n}Buffer`);try{r.remove(t,e)}catch{i.logger_(`Remove ${t} to ${e} from ${n}Buffer failed`)}}},timestampOffset:t=>(e,n)=>{const i=n[`${e}Buffer`];Mn(n.mediaSource,i)&&(n.logger_(`Setting ${e}timestampOffset to ${t}`),i.timestampOffset=t)},callback:t=>(e,n)=>{t()},endOfStream:t=>e=>{if(e.mediaSource.readyState==="open"){e.logger_(`Calling mediaSource endOfStream(${t||""})`);try{e.mediaSource.endOfStream(t)}catch(n){P.log.warn("Failed to call media source endOfStream",n)}}},duration:t=>e=>{e.logger_(`Setting mediaSource duration to ${t}`);try{e.mediaSource.duration=t}catch(n){P.log.warn("Failed to set media source duration",n)}},abort:()=>(t,e)=>{if(e.mediaSource.readyState!=="open")return;const n=e[`${t}Buffer`];if(Mn(e.mediaSource,n)){e.logger_(`calling abort on ${t}Buffer`);try{n.abort()}catch(i){P.log.warn(`Failed to abort on ${t}Buffer`,i)}}},addSourceBuffer:(t,e)=>n=>{const i=$8(t),r=Ns(e);n.logger_(`Adding ${t}Buffer with codec ${e} to mediaSource`);const s=n.mediaSource.addSourceBuffer(r);s.addEventListener("updateend",n[`on${i}UpdateEnd_`]),s.addEventListener("error",n[`on${i}Error_`]),n.codecs[t]=e,n[`${t}Buffer`]=s},removeSourceBuffer:t=>e=>{const n=e[`${t}Buffer`];if(z8(t,e),!!Mn(e.mediaSource,n)){e.logger_(`Removing ${t}Buffer with codec ${e.codecs[t]} from mediaSource`);try{e.mediaSource.removeSourceBuffer(n)}catch(i){P.log.warn(`Failed to removeSourceBuffer ${t}Buffer`,i)}}},changeType:t=>(e,n)=>{const i=n[`${e}Buffer`],r=Ns(t);if(!Mn(n.mediaSource,i))return;const s=t.substring(0,t.indexOf(".")),a=n.codecs[e];if(a.substring(0,a.indexOf("."))===s)return;const o={codecsChangeInfo:{from:a,to:t}};n.trigger({type:"codecschange",metadata:o}),n.logger_(`changing ${e}Buffer codec from ${a} to ${t}`);try{i.changeType(r),n.codecs[e]=t}catch(c){o.errorType=P.Error.StreamingCodecsChangeError,o.error=c,c.metadata=o,n.error_=c,n.trigger("error"),P.log.warn(`Failed to changeType on ${e}Buffer`,c)}}},en=({type:t,sourceUpdater:e,action:n,doneFn:i,name:r})=>{e.queue.push({type:t,action:n,doneFn:i,name:r}),fs(t,e)},yg=(t,e)=>n=>{const i=e[`${t}Buffered`](),r=GU(i);if(e.logger_(`received "updateend" event for ${t} Source Buffer: `,r),e.queuePending[t]){const s=e.queuePending[t].doneFn;e.queuePending[t]=null,s&&s(e[`${t}Error_`])}fs(t,e)};class q8 extends P.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>fs("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=bn("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=yg("video",this),this.onAudioUpdateEnd_=yg("audio",this),this.onVideoError_=n=>{this.videoError_=n},this.onAudioError_=n=>{this.audioError_=n},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,n){en({type:"mediaSource",sourceUpdater:this,action:qt.addSourceBuffer(e,n),name:"addSourceBuffer"})}abort(e){en({type:e,sourceUpdater:this,action:qt.abort(e),name:"abort"})}removeSourceBuffer(e){if(!this.canRemoveSourceBuffer()){P.log.error("removeSourceBuffer is not supported!");return}en({type:"mediaSource",sourceUpdater:this,action:qt.removeSourceBuffer(e),name:"removeSourceBuffer"})}canRemoveSourceBuffer(){return!P.browser.IS_FIREFOX&&x.MediaSource&&x.MediaSource.prototype&&typeof x.MediaSource.prototype.removeSourceBuffer=="function"}static canChangeType(){return x.SourceBuffer&&x.SourceBuffer.prototype&&typeof x.SourceBuffer.prototype.changeType=="function"}canChangeType(){return this.constructor.canChangeType()}changeType(e,n){if(!this.canChangeType()){P.log.error("changeType is not supported!");return}en({type:e,sourceUpdater:this,action:qt.changeType(n),name:"changeType"})}addOrChangeSourceBuffers(e){if(!e||typeof e!="object"||Object.keys(e).length===0)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(n=>{const i=e[n];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(n,i);this.canChangeType()&&this.changeType(n,i)})}appendBuffer(e,n){const{segmentInfo:i,type:r,bytes:s}=e;if(this.processedAppend_=!0,r==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([e,n]),this.logger_(`delayed audio append of ${s.length} until video append`);return}const a=n;if(en({type:r,sourceUpdater:this,action:qt.appendBuffer(s,i||{mediaIndex:-1},a),doneFn:n,name:"appendBuffer"}),r==="video"){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const o=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${o.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,o.forEach(c=>{this.appendBuffer.apply(this,c)})}}audioBuffered(){return Mn(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Ut()}videoBuffered(){return Mn(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Ut()}buffered(){const e=Mn(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,n=Mn(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return n&&!e?this.audioBuffered():e&&!n?this.videoBuffered():PU(this.audioBuffered(),this.videoBuffered())}setDuration(e,n=gi){en({type:"mediaSource",sourceUpdater:this,action:qt.duration(e),name:"duration",doneFn:n})}endOfStream(e=null,n=gi){typeof e!="string"&&(e=void 0),en({type:"mediaSource",sourceUpdater:this,action:qt.endOfStream(e),name:"endOfStream",doneFn:n})}removeAudio(e,n,i=gi){if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){i();return}en({type:"audio",sourceUpdater:this,action:qt.remove(e,n),doneFn:i,name:"remove"})}removeVideo(e,n,i=gi){if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){i();return}en({type:"video",sourceUpdater:this,action:qt.remove(e,n),doneFn:i,name:"remove"})}updating(){return!!(o1("audio",this)||o1("video",this))}audioTimestampOffset(e){return typeof e<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(en({type:"audio",sourceUpdater:this,action:qt.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return typeof e<"u"&&this.videoBuffer&&this.videoTimestampOffset_!==e&&(en({type:"video",sourceUpdater:this,action:qt.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&en({type:"audio",sourceUpdater:this,action:qt.callback(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&en({type:"video",sourceUpdater:this,action:qt.callback(e),name:"callback"})}dispose(){this.trigger("dispose"),wx.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>z8(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const bg=t=>decodeURIComponent(escape(String.fromCharCode.apply(null,t))),Ux=t=>{const e=new Uint8Array(t);return Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")},Eg=new Uint8Array(`
281
-
282
- `.split("").map(t=>t.charCodeAt(0)));class kx extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class xx extends a1{constructor(e,n={}){super(e,n),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Ut();const e=this.subtitlesTrack_.cues,n=e[0].startTime,i=e[e.length-1].startTime;return Ut([[n,i]])}initSegmentForMap(e,n=!1){if(!e)return null;const i=oc(e);let r=this.initSegments_[i];if(n&&!r&&e.bytes){const s=Eg.byteLength+e.bytes.byteLength,a=new Uint8Array(s);a.set(e.bytes),a.set(Eg,e.bytes.byteLength),this.initSegments_[i]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return r||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return typeof e>"u"?this.subtitlesTrack_:(this.subtitlesTrack_=e,this.state==="INIT"&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}remove(e,n){Ua(e,n,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(this.syncController_.timestampOffsetForTimeline(e.timeline)===null){const n=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};this.syncController_.one("timestampoffset",n),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,n,i){if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(n.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){e.code===Kn.TIMEOUT&&this.handleTimeout_(),e.code===Kn.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}const r=this.pendingSegment_,s=i.mp4VttCues&&i.mp4VttCues.length;s&&(r.mp4VttCues=i.mp4VttCues),this.saveBandwidthRelatedStats_(r.duration,n.stats),n.key&&this.segmentKey(n.key,!0),this.state="APPENDING",this.trigger("appending");const a=r.segment;if(a.map&&(a.map.bytes=n.map.bytes),r.bytes=n.bytes,typeof x.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(()=>this.segmentRequestFinished_(e,n,i),()=>this.stopForError({message:"Error loading vtt.js"}));return}a.requested=!0;try{this.parseVTTCues_(r)}catch(o){this.stopForError({message:o.message,metadata:{errorType:P.Error.StreamingVttParserError,error:o}});return}if(s||this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,r.cues.forEach(o=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new x.VTTCue(o.startTime,o.endTime,o.text):o)}),gx(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(e,n){const i=e&&e.type==="vtt",r=n&&n.type==="text";i&&r&&super.handleData_(e,n)}updateTimingInfoEnd_(){}parseMp4VttCues_(e){const n=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();e.mp4VttCues.forEach(i=>{const r=i.start+n,s=i.end+n,a=new x.VTTCue(r,s,i.cueText);i.settings&&i.settings.split(" ").forEach(o=>{const c=o.split(":"),u=c[0],d=c[1];a[u]=isNaN(d)?d:Number(d)}),e.cues.push(a)})}parseVTTCues_(e){let n,i=!1;if(typeof x.WebVTT!="function")throw new kx;if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},e.mp4VttCues){this.parseMp4VttCues_(e);return}typeof x.TextDecoder=="function"?n=new x.TextDecoder("utf8"):(n=x.WebVTT.StringDecoder(),i=!0);const r=new x.WebVTT.Parser(x,x.vttjs,n);if(r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=a=>{e.timestampmap=a},r.onparsingerror=a=>{P.log.warn("Error encountered when parsing cues: "+a.message)},e.segment.map){let a=e.segment.map.bytes;i&&(a=bg(a)),r.parse(a)}let s=e.bytes;i&&(s=bg(s)),r.parse(s),r.flush()}updateTimeMapping_(e,n,i){const r=e.segment;if(!n)return;if(!e.cues.length){r.empty=!0;return}const{MPEGTS:s,LOCAL:a}=e.timestampmap,o=s/Sr.ONE_SECOND_IN_TS-a+n.mapping;if(e.cues.forEach(c=>{const u=c.endTime-c.startTime,d=this.handleRollover_(c.startTime+o,n.time);c.startTime=Math.max(d,0),c.endTime=Math.max(d+u,0)}),!i.syncInfo){const c=e.cues[0].startTime,u=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(c,u-r.duration)}}}handleRollover_(e,n){if(n===null)return e;let i=e*Sr.ONE_SECOND_IN_TS;const r=n*Sr.ONE_SECOND_IN_TS;let s;for(r<i?s=-8589934592:s=8589934592;Math.abs(i-r)>4294967296;)i+=s;return i/Sr.ONE_SECOND_IN_TS}}const Lx=function(t,e){const n=t.cues;for(let i=0;i<n.length;i++){const r=n[i];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null},Fx=function(t,e,n=0){if(!t.segments)return;let i=n,r;for(let s=0;s<t.segments.length;s++){const a=t.segments[s];if(r||(r=Lx(e,i+a.duration/2)),r){if("cueIn"in a){r.endTime=i,r.adEndTime=i,i+=a.duration,r=null;continue}if(i<r.endTime){i+=a.duration;continue}r.endTime+=a.duration}else if("cueOut"in a&&(r=new x.VTTCue(i,i+a.duration,a.cueOut),r.adStartTime=i,r.adEndTime=i+parseFloat(a.cueOut),e.addCue(r)),"cueOutCont"in a){const[o,c]=a.cueOutCont.split("/").map(parseFloat);r=new x.VTTCue(i,i+a.duration,""),r.adStartTime=i-o,r.adEndTime=r.adStartTime+c,e.addCue(r)}i+=a.duration}};class Tg{constructor({start:e,end:n,segmentIndex:i,partIndex:r=null,appended:s=!1}){this.start_=e,this.end_=n,this.segmentIndex_=i,this.partIndex_=r,this.appended_=s}isInRange(e){return e>=this.start&&e<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}}class Bx{constructor(e,n=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=n}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(e=>e.resetAppendedStatus())}}class ey{constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach(e=>e.resetAppendStatus())}update(e,n){const{mediaSequence:i,segments:r}=e;if(this.isReliable_=this.isReliablePlaylist_(i,r),!!this.isReliable_)return this.updateStorage_(r,i,this.calculateBaseTime_(i,r,n))}getSyncInfoForTime(e){for(const{segmentSyncInfo:n,partsSyncInfo:i}of this.storage_.values())if(i.length){for(const r of i)if(r.isInRange(e))return r}else if(n.isInRange(e))return n;return null}getSyncInfoForMediaSequence(e){return this.storage_.get(e)}updateStorage_(e,n,i){const r=new Map;let s=`
283
- `,a=i,o=n;this.start_=a,e.forEach((c,u)=>{const d=this.storage_.get(o),y=a,A=y+c.duration,T=!!(d&&d.segmentSyncInfo&&d.segmentSyncInfo.isAppended),_=new Tg({start:y,end:A,appended:T,segmentIndex:u});c.syncInfo=_;let b=a;const V=(c.parts||[]).map((w,W)=>{const B=b,Z=b+w.duration,L=!!(d&&d.partsSyncInfo&&d.partsSyncInfo[W]&&d.partsSyncInfo[W].isAppended),X=new Tg({start:B,end:Z,appended:L,segmentIndex:u,partIndex:W});return b=Z,s+=`Media Sequence: ${o}.${W} | Range: ${B} --> ${Z} | Appended: ${L}
284
- `,w.syncInfo=X,X});r.set(o,new Bx(_,V)),s+=`${K8(c.resolvedUri)} | Media Sequence: ${o} | Range: ${y} --> ${A} | Appended: ${T}
285
- `,o++,a=A}),this.end_=a,this.storage_=r,this.diagnostics_=s}calculateBaseTime_(e,n,i){if(!this.storage_.size)return 0;if(this.storage_.has(e))return this.storage_.get(e).segmentSyncInfo.start;const r=Math.min(...this.storage_.keys());if(e<r){const s=r-e;let a=this.storage_.get(r).segmentSyncInfo.start;for(let o=0;o<s;o++){const c=n[o];a-=c.duration}return a}return i}isReliablePlaylist_(e,n){return e!=null&&Array.isArray(n)&&n.length}}class vg extends ey{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,n,i){if(!this.storage_.size){const r=this.parent_.getSyncInfoForMediaSequence(e);return r?r.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,n,i)}}const Wx=86400,ad=[{name:"VOD",run:(t,e,n,i,r)=>n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(t,e,n,i,r,s)=>{const a=t.getMediaSequenceSync(s);if(!a||!a.isReliable)return null;const o=a.getSyncInfoForTime(r);return o?{time:o.start,partIndex:o.partIndex,segmentIndex:o.segmentIndex}:null}},{name:"ProgramDateTime",run:(t,e,n,i,r)=>{if(!Object.keys(t.timelineToDatetimeMappings).length)return null;let s=null,a=null;const o=$d(e);r=r||0;for(let c=0;c<o.length;c++){const u=e.endList||r===0?c:o.length-(c+1),d=o[u],y=d.segment,A=t.timelineToDatetimeMappings[y.timeline];if(!A||!y.dateTimeObject)continue;let T=y.dateTimeObject.getTime()/1e3+A;if(y.parts&&typeof d.partIndex=="number")for(let b=0;b<d.partIndex;b++)T+=y.parts[b].duration;const _=Math.abs(r-T);if(a!==null&&(_===0||a<_))break;a=_,s={time:T,segmentIndex:d.segmentIndex,partIndex:d.partIndex}}return s}},{name:"Segment",run:(t,e,n,i,r)=>{let s=null,a=null;r=r||0;const o=$d(e);for(let c=0;c<o.length;c++){const u=e.endList||r===0?c:o.length-(c+1),d=o[u],y=d.segment,A=d.part&&d.part.start||y&&y.start;if(y.timeline===i&&typeof A<"u"){const T=Math.abs(r-A);if(a!==null&&a<T)break;(!s||a===null||a>=T)&&(a=T,s={time:A,segmentIndex:d.segmentIndex,partIndex:d.partIndex})}}return s}},{name:"Discontinuity",run:(t,e,n,i,r)=>{let s=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length){let a=null;for(let o=0;o<e.discontinuityStarts.length;o++){const c=e.discontinuityStarts[o],u=e.discontinuitySequence+o+1,d=t.discontinuities[u];if(d){const y=Math.abs(r-d.time);if(a!==null&&a<y)break;(!s||a===null||a>=y)&&(a=y,s={time:d.time,segmentIndex:c,partIndex:null})}}}return s}},{name:"Playlist",run:(t,e,n,i,r)=>e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}];class Zx extends P.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const n=new ey,i=new vg(n),r=new vg(n);this.mediaSequenceStorage_={main:n,audio:i,vtt:r},this.logger_=bn("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,n,i,r,s){if(n!==1/0)return ad.find(({name:o})=>o==="VOD").run(this,e,n);const a=this.runStrategies_(e,n,i,r,s);if(!a.length)return null;for(const o of a){const{syncPoint:c,strategy:u}=o,{segmentIndex:d,time:y}=c;if(d<0)continue;const A=e.segments[d],T=y,_=T+A.duration;if(this.logger_(`Strategy: ${u}. Current time: ${r}. selected segment: ${d}. Time: [${T} -> ${_}]}`),r>=T&&r<_)return this.logger_("Found sync point with exact match: ",c),c}return this.selectSyncPoint_(a,{key:"time",value:r})}getExpiredTime(e,n){if(!e||!e.segments)return null;const i=this.runStrategies_(e,n,e.discontinuitySequence,0);if(!i.length)return null;const r=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+Oa({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:r.segmentIndex,endIndex:0}))}runStrategies_(e,n,i,r,s){const a=[];for(let o=0;o<ad.length;o++){const c=ad[o],u=c.run(this,e,n,i,r,s);u&&(u.strategy=c.name,a.push({strategy:c.name,syncPoint:u}))}return a}selectSyncPoint_(e,n){let i=e[0].syncPoint,r=Math.abs(e[0].syncPoint[n.key]-n.value),s=e[0].strategy;for(let a=1;a<e.length;a++){const o=Math.abs(e[a].syncPoint[n.key]-n.value);o<r&&(r=o,i=e[a].syncPoint,s=e[a].strategy)}return this.logger_(`syncPoint for [${n.key}: ${n.value}] chosen with strategy [${s}]: [time:${i.time}, segmentIndex:${i.segmentIndex}`+(typeof i.partIndex=="number"?`,partIndex:${i.partIndex}`:"")+"]"),i}saveExpiredSegmentInfo(e,n){const i=n.mediaSequence-e.mediaSequence;if(i>Wx){P.log.warn(`Not saving expired segment info. Media sequence gap ${i} is too large.`);return}for(let r=i-1;r>=0;r--){const s=e.segments[r];if(s&&typeof s.start<"u"){n.syncInfo={mediaSequence:e.mediaSequence+r,time:s.start},this.logger_(`playlist refresh sync: [time:${n.syncInfo.time}, mediaSequence: ${n.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const n=e.segments[0],i=n.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[n.timeline]=-i}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:n}){const i=this.calculateSegmentTimeMapping_(e,e.timingInfo,n),r=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:r.start}));const s=r.dateTimeObject;r.discontinuity&&n&&s&&(this.timelineToDatetimeMappings[r.timeline]=-(s.getTime()/1e3))}timestampOffsetForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].time}mappingForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,n,i){const r=e.segment,s=e.part;let a=this.timelines[e.timeline],o,c;if(typeof e.timestampOffset=="number")a={time:e.startOfSegment,mapping:e.startOfSegment-n.start},i&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${a.time}] [mapping: ${a.mapping}]`)),o=e.startOfSegment,c=n.end+a.mapping;else if(a)o=n.start+a.mapping,c=n.end+a.mapping;else return!1;return s&&(s.start=o,s.end=c),(!r.start||o<r.start)&&(r.start=o),r.end=c,!0}saveDiscontinuitySyncInfo_(e){const n=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(n.discontinuityStarts&&n.discontinuityStarts.length)for(let r=0;r<n.discontinuityStarts.length;r++){const s=n.discontinuityStarts[r],a=n.discontinuitySequence+r+1,o=s-e.mediaIndex,c=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>c){let u;o<0?u=i.start-Oa({defaultDuration:n.targetDuration,durationList:n.segments,startIndex:e.mediaIndex,endIndex:s}):u=i.end+Oa({defaultDuration:n.targetDuration,durationList:n.segments,startIndex:e.mediaIndex+1,endIndex:s}),this.discontinuities[a]={time:u,accuracy:c}}}}dispose(){this.trigger("dispose"),this.off()}}class Dx extends P.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:n,to:i}){return typeof n=="number"&&typeof i=="number"&&(this.pendingTimelineChanges_[e]={type:e,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:n,to:i}){if(typeof n=="number"&&typeof i=="number"){this.lastTimelineChanges_[e]={type:e,from:n,to:i},delete this.pendingTimelineChanges_[e];const r={timelineChangeInfo:{from:n,to:i}};this.trigger({type:"timelinechange",metadata:r})}return this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const Ox=Z8(D8(function(){var t=function(){function b(){this.listeners={}}var V=b.prototype;return V.on=function(w,W){this.listeners[w]||(this.listeners[w]=[]),this.listeners[w].push(W)},V.off=function(w,W){if(!this.listeners[w])return!1;var B=this.listeners[w].indexOf(W);return this.listeners[w]=this.listeners[w].slice(0),this.listeners[w].splice(B,1),B>-1},V.trigger=function(w){var W=this.listeners[w];if(W)if(arguments.length===2)for(var B=W.length,Z=0;Z<B;++Z)W[Z].call(this,arguments[1]);else for(var L=Array.prototype.slice.call(arguments,1),X=W.length,J=0;J<X;++J)W[J].apply(this,L)},V.dispose=function(){this.listeners={}},V.pipe=function(w){this.on("data",function(W){w.push(W)})},b}();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function e(b){return b.subarray(0,b.byteLength-b[b.byteLength-1])}/*! @name aes-decrypter @version 4.0.2 @license Apache-2.0 */const n=function(){const b=[[[],[],[],[],[]],[[],[],[],[],[]]],V=b[0],w=b[1],W=V[4],B=w[4];let Z,L,X;const J=[],j=[];let re,de,oe,ce,se,me;for(Z=0;Z<256;Z++)j[(J[Z]=Z<<1^(Z>>7)*283)^Z]=Z;for(L=X=0;!W[L];L^=re||1,X=j[X]||1)for(ce=X^X<<1^X<<2^X<<3^X<<4,ce=ce>>8^ce&255^99,W[L]=ce,B[ce]=L,oe=J[de=J[re=J[L]]],me=oe*16843009^de*65537^re*257^L*16843008,se=J[ce]*257^ce*16843008,Z=0;Z<4;Z++)V[Z][L]=se=se<<24^se>>>8,w[Z][ce]=me=me<<24^me>>>8;for(Z=0;Z<5;Z++)V[Z]=V[Z].slice(0),w[Z]=w[Z].slice(0);return b};let i=null;class r{constructor(V){i||(i=n()),this._tables=[[i[0][0].slice(),i[0][1].slice(),i[0][2].slice(),i[0][3].slice(),i[0][4].slice()],[i[1][0].slice(),i[1][1].slice(),i[1][2].slice(),i[1][3].slice(),i[1][4].slice()]];let w,W,B;const Z=this._tables[0][4],L=this._tables[1],X=V.length;let J=1;if(X!==4&&X!==6&&X!==8)throw new Error("Invalid aes key size");const j=V.slice(0),re=[];for(this._key=[j,re],w=X;w<4*X+28;w++)B=j[w-1],(w%X===0||X===8&&w%X===4)&&(B=Z[B>>>24]<<24^Z[B>>16&255]<<16^Z[B>>8&255]<<8^Z[B&255],w%X===0&&(B=B<<8^B>>>24^J<<24,J=J<<1^(J>>7)*283)),j[w]=j[w-X]^B;for(W=0;w;W++,w--)B=j[W&3?w:w-4],w<=4||W<4?re[W]=B:re[W]=L[0][Z[B>>>24]]^L[1][Z[B>>16&255]]^L[2][Z[B>>8&255]]^L[3][Z[B&255]]}decrypt(V,w,W,B,Z,L){const X=this._key[1];let J=V^X[0],j=B^X[1],re=W^X[2],de=w^X[3],oe,ce,se;const me=X.length/4-2;let we,he=4;const be=this._tables[1],Ne=be[0],at=be[1],ct=be[2],Ke=be[3],le=be[4];for(we=0;we<me;we++)oe=Ne[J>>>24]^at[j>>16&255]^ct[re>>8&255]^Ke[de&255]^X[he],ce=Ne[j>>>24]^at[re>>16&255]^ct[de>>8&255]^Ke[J&255]^X[he+1],se=Ne[re>>>24]^at[de>>16&255]^ct[J>>8&255]^Ke[j&255]^X[he+2],de=Ne[de>>>24]^at[J>>16&255]^ct[j>>8&255]^Ke[re&255]^X[he+3],he+=4,J=oe,j=ce,re=se;for(we=0;we<4;we++)Z[(3&-we)+L]=le[J>>>24]<<24^le[j>>16&255]<<16^le[re>>8&255]<<8^le[de&255]^X[he++],oe=J,J=j,j=re,re=de,de=oe}}class s extends t{constructor(){super(t),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(V){this.jobs.push(V),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const a=function(b){return b<<24|(b&65280)<<8|(b&16711680)>>8|b>>>24},o=function(b,V,w){const W=new Int32Array(b.buffer,b.byteOffset,b.byteLength>>2),B=new r(Array.prototype.slice.call(V)),Z=new Uint8Array(b.byteLength),L=new Int32Array(Z.buffer);let X,J,j,re,de,oe,ce,se,me;for(X=w[0],J=w[1],j=w[2],re=w[3],me=0;me<W.length;me+=4)de=a(W[me]),oe=a(W[me+1]),ce=a(W[me+2]),se=a(W[me+3]),B.decrypt(de,oe,ce,se,L,me),L[me]=a(L[me]^X),L[me+1]=a(L[me+1]^J),L[me+2]=a(L[me+2]^j),L[me+3]=a(L[me+3]^re),X=de,J=oe,j=ce,re=se;return Z};class c{constructor(V,w,W,B){const Z=c.STEP,L=new Int32Array(V.buffer),X=new Uint8Array(V.byteLength);let J=0;for(this.asyncStream_=new s,this.asyncStream_.push(this.decryptChunk_(L.subarray(J,J+Z),w,W,X)),J=Z;J<L.length;J+=Z)W=new Uint32Array([a(L[J-4]),a(L[J-3]),a(L[J-2]),a(L[J-1])]),this.asyncStream_.push(this.decryptChunk_(L.subarray(J,J+Z),w,W,X));this.asyncStream_.push(function(){B(null,e(X))})}static get STEP(){return 32e3}decryptChunk_(V,w,W,B){return function(){const Z=o(V,w,W);B.set(Z,V.byteOffset)}}}var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Gl<"u"?Gl:typeof self<"u"?self:{},d;typeof window<"u"?d=window:typeof u<"u"?d=u:typeof self<"u"?d=self:d={};var y=d,A=function(b){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(b):b&&b.buffer instanceof ArrayBuffer},T=y.BigInt||Number;T("0x1"),T("0x100"),T("0x10000"),T("0x1000000"),T("0x100000000"),T("0x10000000000"),T("0x1000000000000"),T("0x100000000000000"),T("0x10000000000000000"),function(){var b=new Uint16Array([65484]),V=new Uint8Array(b.buffer,b.byteOffset,b.byteLength);return V[0]===255?"big":V[0]===204?"little":"unknown"}();const _=function(b){const V={};return Object.keys(b).forEach(w=>{const W=b[w];A(W)?V[w]={bytes:W.buffer,byteOffset:W.byteOffset,byteLength:W.byteLength}:V[w]=W}),V};self.onmessage=function(b){const V=b.data,w=new Uint8Array(V.encrypted.bytes,V.encrypted.byteOffset,V.encrypted.byteLength),W=new Uint32Array(V.key.bytes,V.key.byteOffset,V.key.byteLength/4),B=new Uint32Array(V.iv.bytes,V.iv.byteOffset,V.iv.byteLength/4);new c(w,W,B,function(Z,L){self.postMessage(_({source:V.source,decrypted:L}),[L.buffer])})}}));var Xx=W8(Ox);const Gx=t=>{let e=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},ty=(t,e)=>{t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},l1=(t,e)=>{e.activePlaylistLoader=t,t.load()},Mx=(t,e)=>()=>{const{segmentLoaders:{[t]:n,main:i},mediaTypes:{[t]:r}}=e,s=r.activeTrack(),a=r.getActiveGroup(),o=r.activePlaylistLoader,c=r.lastGroup_;if(!(a&&c&&a.id===c.id)&&(r.lastGroup_=a,r.lastTrack_=s,ty(n,r),!(!a||a.isMainPlaylist))){if(!a.playlistLoader){o&&i.resetEverything();return}n.resyncLoader(),l1(a.playlistLoader,r)}},Px=(t,e)=>()=>{const{segmentLoaders:{[t]:n},mediaTypes:{[t]:i}}=e;i.lastGroup_=null,n.abort(),n.pause()},Yx=(t,e)=>()=>{const{mainPlaylistLoader:n,segmentLoaders:{[t]:i,main:r},mediaTypes:{[t]:s}}=e,a=s.activeTrack(),o=s.getActiveGroup(),c=s.activePlaylistLoader,u=s.lastTrack_;if(!(u&&a&&u.id===a.id)&&(s.lastGroup_=o,s.lastTrack_=a,ty(i,s),!!o)){if(o.isMainPlaylist){if(!a||!u||a.id===u.id)return;const d=e.vhs.playlistController_,y=d.selectPlaylist();if(d.media()===y)return;s.logger_(`track change. Switching main audio from ${u.id} to ${a.id}`),n.pause(),r.resetEverything(),d.fastQualityChange_(y);return}if(t==="AUDIO"){if(!o.playlistLoader){r.setAudio(!0),r.resetEverything();return}i.setAudio(!0),r.setAudio(!1)}if(c===o.playlistLoader){l1(o.playlistLoader,s);return}i.track&&i.track(a),i.resetEverything(),l1(o.playlistLoader,s)}},uc={AUDIO:(t,e)=>()=>{const{mediaTypes:{[t]:n},excludePlaylist:i}=e,r=n.activeTrack(),s=n.activeGroup(),a=(s.filter(c=>c.default)[0]||s[0]).id,o=n.tracks[a];if(r===o){i({error:{message:"Problem encountered loading the default audio track."}});return}P.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const c in n.tracks)n.tracks[c].enabled=n.tracks[c]===o;n.onTrackChanged()},SUBTITLES:(t,e)=>()=>{const{mediaTypes:{[t]:n}}=e;P.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const i=n.activeTrack();i&&(i.mode="disabled"),n.onTrackChanged()}},Cg={AUDIO:(t,e,n)=>{if(!e)return;const{tech:i,requestOptions:r,segmentLoaders:{[t]:s}}=n;e.on("loadedmetadata",()=>{const a=e.media();s.playlist(a,r),(!i.paused()||a.endList&&i.preload()!=="none")&&s.load()}),e.on("loadedplaylist",()=>{s.playlist(e.media(),r),i.paused()||s.load()}),e.on("error",uc[t](t,n))},SUBTITLES:(t,e,n)=>{const{tech:i,requestOptions:r,segmentLoaders:{[t]:s},mediaTypes:{[t]:a}}=n;e.on("loadedmetadata",()=>{const o=e.media();s.playlist(o,r),s.track(a.activeTrack()),(!i.paused()||o.endList&&i.preload()!=="none")&&s.load()}),e.on("loadedplaylist",()=>{s.playlist(e.media(),r),i.paused()||s.load()}),e.on("error",uc[t](t,n))}},Hx={AUDIO:(t,e)=>{const{vhs:n,sourceType:i,segmentLoaders:{[t]:r},requestOptions:s,main:{mediaGroups:a},mediaTypes:{[t]:{groups:o,tracks:c,logger_:u}},mainPlaylistLoader:d}=e,y=To(d.main);(!a[t]||Object.keys(a[t]).length===0)&&(a[t]={main:{default:{default:!0}}},y&&(a[t].main.default.playlists=d.main.playlists));for(const A in a[t]){o[A]||(o[A]=[]);for(const T in a[t][A]){let _=a[t][A][T],b;if(y?(u(`AUDIO group '${A}' label '${T}' is a main playlist`),_.isMainPlaylist=!0,b=null):i==="vhs-json"&&_.playlists?b=new ss(_.playlists[0],n,s):_.resolvedUri?b=new ss(_.resolvedUri,n,s):_.playlists&&i==="dash"?b=new i1(_.playlists[0],n,s,d):b=null,_=_e({id:T,playlistLoader:b},_),Cg[t](t,_.playlistLoader,e),o[A].push(_),typeof c[T]>"u"){const V=new P.AudioTrack({id:T,kind:Gx(_),enabled:!1,language:_.language,default:_.default,label:T});c[T]=V}}}r.on("error",uc[t](t,e))},SUBTITLES:(t,e)=>{const{tech:n,vhs:i,sourceType:r,segmentLoaders:{[t]:s},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[t]:{groups:c,tracks:u}},mainPlaylistLoader:d}=e;for(const y in o[t]){c[y]||(c[y]=[]);for(const A in o[t][y]){if(!i.options_.useForcedSubtitles&&o[t][y][A].forced)continue;let T=o[t][y][A],_;if(r==="hls")_=new ss(T.resolvedUri,i,a);else if(r==="dash"){if(!T.playlists.filter(b=>b.excludeUntil!==1/0).length)return;_=new i1(T.playlists[0],i,a,d)}else r==="vhs-json"&&(_=new ss(T.playlists?T.playlists[0]:T.resolvedUri,i,a));if(T=_e({id:A,playlistLoader:_},T),Cg[t](t,T.playlistLoader,e),c[y].push(T),typeof u[A]>"u"){const b=n.addRemoteTextTrack({id:A,kind:"subtitles",default:T.default&&T.autoselect,language:T.language,label:A},!1).track;u[A]=b}}}s.on("error",uc[t](t,e))},"CLOSED-CAPTIONS":(t,e)=>{const{tech:n,main:{mediaGroups:i},mediaTypes:{[t]:{groups:r,tracks:s}}}=e;for(const a in i[t]){r[a]||(r[a]=[]);for(const o in i[t][a]){const c=i[t][a][o];if(!/^(?:CC|SERVICE)/.test(c.instreamId))continue;const u=n.options_.vhs&&n.options_.vhs.captionServices||{};let d={label:o,language:c.language,instreamId:c.instreamId,default:c.default&&c.autoselect};if(u[d.instreamId]&&(d=_e(d,u[d.instreamId])),d.default===void 0&&delete d.default,r[a].push(_e({id:o},c)),typeof s[o]>"u"){const y=n.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;s[o]=y}}}}},ny=(t,e)=>{for(let n=0;n<t.length;n++)if(tp(e,t[n])||t[n].playlists&&ny(t[n].playlists,e))return!0;return!1},jx=(t,e)=>n=>{const{mainPlaylistLoader:i,mediaTypes:{[t]:{groups:r}}}=e,s=i.media();if(!s)return null;let a=null;s.attributes[t]&&(a=r[s.attributes[t]]);const o=Object.keys(r);if(!a)if(t==="AUDIO"&&o.length>1&&To(e.main))for(let c=0;c<o.length;c++){const u=r[o[c]];if(ny(u,s)){a=u;break}}else r.main?a=r.main:o.length===1&&(a=r[o[0]]);return typeof n>"u"?a:n===null||!a?null:a.filter(c=>c.id===n.id)[0]||null},Jx={AUDIO:(t,e)=>()=>{const{mediaTypes:{[t]:{tracks:n}}}=e;for(const i in n)if(n[i].enabled)return n[i];return null},SUBTITLES:(t,e)=>()=>{const{mediaTypes:{[t]:{tracks:n}}}=e;for(const i in n)if(n[i].mode==="showing"||n[i].mode==="hidden")return n[i];return null}},Qx=(t,{mediaTypes:e})=>()=>{const n=e[t].activeTrack();return n?e[t].activeGroup(n):null},Kx=t=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(u=>{Hx[u](u,t)});const{mediaTypes:e,mainPlaylistLoader:n,tech:i,vhs:r,segmentLoaders:{["AUDIO"]:s,main:a}}=t;["AUDIO","SUBTITLES"].forEach(u=>{e[u].activeGroup=jx(u,t),e[u].activeTrack=Jx[u](u,t),e[u].onGroupChanged=Mx(u,t),e[u].onGroupChanging=Px(u,t),e[u].onTrackChanged=Yx(u,t),e[u].getActiveGroup=Qx(u,t)});const o=e.AUDIO.activeGroup();if(o){const u=(o.filter(d=>d.default)[0]||o[0]).id;e.AUDIO.tracks[u].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),s.setAudio(!0)):a.setAudio(!0)}n.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(u=>e[u].onGroupChanged())}),n.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(u=>e[u].onGroupChanging())});const c=()=>{e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"})};i.audioTracks().addEventListener("change",c),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",()=>{i.audioTracks().removeEventListener("change",c),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),i.clearTracks("audio");for(const u in e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[u])},$x=()=>{const t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:gi,activeTrack:gi,getActiveGroup:gi,onGroupChanged:gi,onTrackChanged:gi,lastTrack_:null,logger_:bn(`MediaGroups[${e}]`)}}),t};class Ag{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){e===1&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=jt(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(n=>[n.ID,n])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class zx extends P.EventTarget{constructor(e,n){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new Ag,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=bn("Content Steering"),this.xhr_=e,this.getBandwidth_=n}assignTagProperties(e,n){this.manifestType_=n.serverUri?"HLS":"DASH";const i=n.serverUri||n.serverURL;if(!i){this.logger_(`steering manifest URL is ${i}, cannot request steering manifest.`),this.trigger("error");return}if(i.startsWith("data:")){this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1));return}this.steeringManifest.reloadUri=jt(e,i),this.defaultPathway=n.pathwayId||n.defaultServiceLocation,this.queryBeforeStart=n.queryBeforeStart,this.proxyServerUrl_=n.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering")}requestSteeringManifest(e){const n=this.steeringManifest.reloadUri;if(!n)return;const i=e?n:this.getRequestURI(n);if(!i){this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),this.dispose();return}const r={contentSteeringInfo:{uri:i}};this.trigger({type:"contentsteeringloadstart",metadata:r}),this.request_=this.xhr_({uri:i,requestType:"content-steering-manifest"},(s,a)=>{if(s){if(a.status===410){this.logger_(`manifest request 410 ${s}.`),this.logger_(`There will be no more content steering requests to ${i} this session.`),this.excludedSteeringManifestURLs.add(i);return}if(a.status===429){const u=a.responseHeaders["retry-after"];this.logger_(`manifest request 429 ${s}.`),this.logger_(`content steering will retry in ${u} seconds.`),this.startTTLTimeout_(parseInt(u,10));return}this.logger_(`manifest failed to load ${s}.`),this.startTTLTimeout_();return}this.trigger({type:"contentsteeringloadcomplete",metadata:r});let o;try{o=JSON.parse(this.request_.responseText)}catch(u){const d={errorType:P.Error.StreamingContentSteeringParserError,error:u};this.trigger({type:"error",metadata:d})}this.assignSteeringProperties_(o);const c={contentSteeringInfo:r.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:"contentsteeringparsed",metadata:c}),this.startTTLTimeout_()})}setProxyServerUrl_(e){const n=new x.URL(e),i=new x.URL(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(n.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const n=JSON.parse(x.atob(e));this.assignSteeringProperties_(n)}setSteeringParams_(e){const n=new x.URL(e),i=this.getPathway(),r=this.getBandwidth_();if(i){const s=`_${this.manifestType_}_pathway`;n.searchParams.set(s,i)}if(r){const s=`_${this.manifestType_}_throughput`;n.searchParams.set(s,r)}return n.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version){this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),this.trigger("error");return}this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const n=(i=>{for(const r of i)if(this.availablePathways_.has(r))return r;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==n&&(this.currentPathway=n,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const n=r=>this.excludedSteeringManifestURLs.has(r);if(this.proxyServerUrl_){const r=this.setProxyServerUrl_(e);if(!n(r))return r}const i=this.setSteeringParams_(e);return n(i)?null:i}startTTLTimeout_(e=this.steeringManifest.ttl){const n=e*1e3;this.ttlTimeout_=x.setTimeout(()=>{this.requestSteeringManifest()},n)}clearTTLTimeout_(){x.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new Ag}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,n){return!n&&this.steeringManifest.reloadUri||n&&(jt(e,n.serverURL)!==this.steeringManifest.reloadUri||n.defaultServiceLocation!==this.defaultPathway||n.queryBeforeStart!==this.queryBeforeStart||n.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}const qx=(t,e)=>{let n=null;return(...i)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(null,i)},e)}},eL=10;let Gi;const tL=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],nL=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},iL=function({currentPlaylist:t,buffered:e,currentTime:n,nextPlaylist:i,bufferLowWaterLine:r,bufferHighWaterLine:s,duration:a,bufferBasedABR:o,log:c}){if(!i)return P.log.warn("We received no playlist to switch to. Please check your stream."),!1;const u=`allowing switch ${t&&t.id||"null"} -> ${i.id}`;if(!t)return c(`${u} as current playlist is not set`),!0;if(i.id===t.id)return!1;const d=!!rs(e,n).length;if(!t.endList)return!d&&typeof t.partTargetDuration=="number"?(c(`not ${u} as current playlist is live llhls, but currentTime isn't in buffered.`),!1):(c(`${u} as current playlist is live`),!0);const y=zh(e,n),A=o?pt.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:pt.MAX_BUFFER_LOW_WATER_LINE;if(a<A)return c(`${u} as duration < max low water line (${a} < ${A})`),!0;const T=i.attributes.BANDWIDTH,_=t.attributes.BANDWIDTH;if(T<_&&(!o||y<s)){let b=`${u} as next bandwidth < current bandwidth (${T} < ${_})`;return o&&(b+=` and forwardBuffer < bufferHighWaterLine (${y} < ${s})`),c(b),!0}if((!o||T>_)&&y>=r){let b=`${u} as forwardBuffer >= bufferLowWaterLine (${y} >= ${r})`;return o&&(b+=` and next bandwidth > current bandwidth (${T} > ${_})`),c(b),!0}return c(`not ${u} as no switching criteria met`),!1};class rL extends P.EventTarget{constructor(e){super(),this.fastQualityChange_=qx(this.fastQualityChange_.bind(this),100);const{src:n,withCredentials:i,tech:r,bandwidth:s,externVhs:a,useCueTags:o,playlistExclusionDuration:c,enableLowInitialPlaylist:u,sourceType:d,cacheEncryptionKeys:y,bufferBasedABR:A,leastPixelDiffSelector:T,captionServices:_,experimentalUseMMS:b}=e;if(!n)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:V}=e;(V===null||typeof V>"u")&&(V=1/0),Gi=a,this.bufferBasedABR=!!A,this.leastPixelDiffSelector=!!T,this.withCredentials=i,this.tech_=r,this.vhs_=r.vhs,this.player_=e.player_,this.sourceType_=d,this.useCueTags_=o,this.playlistExclusionDuration=c,this.maxPlaylistRetries=V,this.enableLowInitialPlaylist=u,this.usingManagedMediaSource_=!1,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:i,maxPlaylistRetries:V,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=$x(),b&&x.ManagedMediaSource?(this.tech_.el_.disableRemotePlayback=!0,this.mediaSource=new x.ManagedMediaSource,this.usingManagedMediaSource_=!0,P.log("Using ManagedMediaSource")):x.MediaSource&&(this.mediaSource=new x.MediaSource),this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.load=this.load.bind(this),this.pause=this.pause.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.mediaSource.addEventListener("startstreaming",this.load),this.mediaSource.addEventListener("endstreaming",this.pause),this.seekable_=Ut(),this.hasPlayed_=!1,this.syncController_=new Zx(e),this.segmentMetadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new Xx,this.sourceUpdater_=new q8(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Dx,this.keyStatusMap_=new Map;const w={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:_,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:s,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:y,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_=this.sourceType_==="dash"?new i1(n,this.vhs_,_e(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new ss(n,this.vhs_,_e(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new a1(_e(w,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new a1(_e(w,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new xx(_e(w,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((Z,L)=>{function X(){r.off("vttjserror",J),Z()}function J(){r.off("vttjsloaded",X),L()}r.one("vttjsloaded",X),r.one("vttjserror",J),r.addWebVttScript_()})}),e);const W=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new zx(this.vhs_.xhr,W),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),tL.forEach(Z=>{this[Z+"_"]=nL.bind(this,Z)}),this.logger_=bn("pc"),this.triggeredFmp4Usage=!1,this.tech_.preload()==="none"?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const B=this.tech_.preload()==="none"?"play":"loadstart";this.tech_.one(B,()=>{const Z=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-Z,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),n=this.audioAppendsToLoadedData_();return e===-1||n===-1?-1:e+n}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const n=this.selectPlaylist();n&&this.shouldSwitchToMedia_(n)&&this.switchMedia_(n,e)}switchMedia_(e,n,i){const r=this.media(),s=r&&(r.id||r.uri),a=e&&(e.id||e.uri);if(s&&s!==a){this.logger_(`switch media ${s} -> ${a} from ${n}`);const o={renditionInfo:{id:a,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:n};this.trigger({type:"renditionselected",metadata:o}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${n}`})}this.mainPlaylistLoader_.media(e,i)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{const n=this.mediaTypes_[e],i=n?n.activeGroup():null,r=this.contentSteeringController_.getPathway();if(i&&r){const s=(i.length?i[0].playlists:i.playlists).filter(a=>a.attributes.serviceLocation===r);s.length&&this.mediaTypes_[e].activePlaylistLoader.media(s[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=x.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(x.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),n=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return n;const i=e.mediaGroups.AUDIO,r=Object.keys(i);let s;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)s=this.mediaTypes_.AUDIO.activeTrack();else{const o=i.main||r.length&&i[r[0]];for(const c in o)if(o[c].default){s={label:c};break}}if(!s)return n;const a=[];for(const o in i)if(i[o][s.label]){const c=i[o][s.label];if(c.playlists&&c.playlists.length)a.push.apply(a,c.playlists);else if(c.uri)a.push(c);else if(e.playlists.length)for(let u=0;u<e.playlists.length;u++){const d=e.playlists[u];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===o&&a.push(d)}}return a.length?a:n}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const e=this.mainPlaylistLoader_.media(),n=e.targetDuration*1.5*1e3;zd(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=n,e.endList&&this.tech_.preload()!=="none"&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),Kx({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_();let n;if(this.enableLowInitialPlaylist&&(n=this.selectInitialPlaylist()),n||(n=this.selectPlaylist()),!n||!this.shouldSwitchToMedia_(n)||(this.initialMedia_=n,this.switchMedia_(this.initialMedia_,"initial"),!(this.sourceType_==="vhs-json"&&this.initialMedia_.segments)))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const e=this.mainPlaylistLoader_.media(),n=e.targetDuration*1.5*1e3;zd(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=n,this.sourceType_==="dash"&&this.mainPlaylistLoader_.isPaused&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const e=this.mainPlaylistLoader_.media();e.lastExcludeReason_!=="playlist-unchanged"&&this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}),["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach(e=>{this.mainPlaylistLoader_.on(e,n=>{this.player_.trigger(it({},n))})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,n){const i=e.mediaGroups||{};let r=!0;const s=Object.keys(i.AUDIO);for(const a in i.AUDIO)for(const o in i.AUDIO[a])i.AUDIO[a][o].uri||(r=!1);r&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Gi.Playlist.isAes(n)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),s.length&&Object.keys(i.AUDIO[s[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const n=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),r=this.bufferLowWaterLine(),s=this.bufferHighWaterLine(),a=this.tech_.buffered();return iL({buffered:a,currentTime:i,currentPlaylist:n,nextPlaylist:e,bufferLowWaterLine:r,bufferHighWaterLine:s,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const n=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:n.playlist,error:n})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.timelineChangeController_.on("audioTimelineBehind",()=>{const n=this.audioSegmentLoader_.pendingSegment_;if(!n||!n.segment||!n.segment.syncInfo)return;const i=n.segment.syncInfo.end+.01;this.tech_.setCurrentTime(i)}),this.timelineChangeController_.on("fixBadTimelineChange",()=>{this.logger_("Fix bad timeline change. Restarting al segment loaders..."),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}),this.mainSegmentLoader_.on("earlyabort",n=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:eL}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const n=this.getCodecsOrExclude_();n&&this.sourceUpdater_.addOrChangeSourceBuffers(n)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()}),["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach(n=>{this.mainSegmentLoader_.on(n,i=>{this.player_.trigger(it({},i))}),this.audioSegmentLoader_.on(n,i=>{this.player_.trigger(it({},i))}),this.subtitleSegmentLoader_.on(n,i=>{this.player_.trigger(it({},i))})})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}pause(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}fastQualityChange_(e=this.selectPlaylist()){if(e&&e===this.mainPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0))return this.tech_.setCurrentTime(e.end(e.length-1))}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const n=this.seekable();if(!n.length)return!1;const i=n.end(0);let r=i;if(e.start){const s=e.start.timeOffset;s<0?r=Math.max(i+s,n.start(0)):r=Math.min(i,s)}this.trigger("firstplay"),this.tech_.setCurrentTime(r)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();typeof e<"u"&&typeof e.then=="function"&&e.then(null,n=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const n=this.duration();e[e.length-1].endTime=isNaN(n)||Math.abs(n)===1/0?Number.MAX_VALUE:n}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const n=this.mainSegmentLoader_.getCurrentMediaInfo_();!n||n.hasVideo?e=e&&this.audioSegmentLoader_.ended_:e=this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const n=this.syncController_.getExpiredTime(e,this.duration());if(n===null)return!1;const i=Gi.Playlist.playlistEnd(e,n),r=this.tech_.currentTime(),s=this.tech_.buffered();if(!s.length)return i-r<=Qn;const a=s.end(s.length-1);return a-r<=Qn&&i-a<=Qn}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:n={},playlistExclusionDuration:i}){if(e=e||this.mainPlaylistLoader_.media(),i=i||n.playlistExclusionDuration||this.playlistExclusionDuration,!e){this.error=n,this.mediaSource.readyState!=="open"?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}e.playlistErrors_++;const r=this.mainPlaylistLoader_.main.playlists,s=r.filter(jc),a=s.length===1&&s[0]===e;if(r.length===1&&i!==1/0)return P.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(a);if(a){if(this.main().contentSteering){const _=this.pathwayAttribute_(e),b=this.contentSteeringController_.steeringManifest.ttl*1e3;this.contentSteeringController_.excludePathway(_),this.excludeThenChangePathway_(),setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(_)},b);return}let T=!1;r.forEach(_=>{if(_===e)return;const b=_.excludeUntil;typeof b<"u"&&b!==1/0&&(T=!0,delete _.excludeUntil)}),T&&(P.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let o;e.playlistErrors_>this.maxPlaylistRetries?o=1/0:o=Date.now()+i*1e3,e.excludeUntil=o,n.reason&&(e.lastExcludeReason_=n.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const c=this.selectPlaylist();if(!c){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}const u=n.internal?this.logger_:P.log.warn,d=n.message?" "+n.message:"";u(`${n.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${d} Switching to playlist ${c.id}.`),c.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),c.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const y=c.targetDuration/2*1e3||5*1e3,A=typeof c.lastRequest=="number"&&Date.now()-c.lastRequest<=y;return this.switchMedia_(c,"exclude",a||A)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,n){const i=[],r=e==="all";(r||e==="main")&&i.push(this.mainPlaylistLoader_);const s=[];(r||e==="audio")&&s.push("AUDIO"),(r||e==="subtitle")&&(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach(a=>{const o=this.mediaTypes_[a]&&this.mediaTypes_[a].activePlaylistLoader;o&&i.push(o)}),["main","audio","subtitle"].forEach(a=>{const o=this[`${a}SegmentLoader_`];o&&(e===a||e==="all")&&i.push(o)}),i.forEach(a=>n.forEach(o=>{typeof a[o]=="function"&&a[o]()}))}setCurrentTime(e){const n=rs(this.tech_.buffered(),e);if(!(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media())||!this.mainPlaylistLoader_.media().segments)return 0;if(n&&n.length)return e;this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Gi.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}getSeekableRange_(e,n){const i=e.media();if(!i)return null;const r=this.syncController_.getMediaSequenceSync(n);if(r&&r.isReliable){const o=r.start,c=r.end;if(!isFinite(o)||!isFinite(c))return null;const u=Gi.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,i),d=Math.max(0,c-u);return d<o?null:Ut([[o,d]])}const s=this.syncController_.getExpiredTime(i,this.duration());if(s===null)return null;const a=Gi.Playlist.seekable(i,s,Gi.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,i));return a.length?a:null}computeFinalSeekable_(e,n){if(!n)return e;const i=e.start(0),r=e.end(0),s=n.start(0),a=n.end(0);return s>r||i>a?e:Ut([[Math.max(i,s),Math.min(r,a)]])}onSyncInfoUpdate_(){if(!this.mainPlaylistLoader_)return;const e=this.getSeekableRange_(this.mainPlaylistLoader_,"main");if(!e)return;let n;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(n=this.getSeekableRange_(this.mediaTypes_.AUDIO.activePlaylistLoader,"audio"),!n))return;const i=this.seekable_;if(this.seekable_=this.computeFinalSeekable_(e,n),!this.seekable_||i&&i.length&&this.seekable_.length&&i.start(0)===this.seekable_.start(0)&&i.end(0)===this.seekable_.end(0))return;this.logger_(`seekable updated [${p8(this.seekable_)}]`);const r={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:r}),this.tech_.trigger("seekablechanged")}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,e),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(e){const r=this.seekable();if(!r.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<r.end(r.length-1))&&this.sourceUpdater_.setDuration(r.end(r.length-1));return}const n=this.tech_.buffered();let i=Gi.Playlist.duration(this.mainPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const n=this.mediaTypes_[e].groups;for(const i in n)n[i].forEach(r=>{r.playlistLoader&&r.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,n=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=e?!!this.audioSegmentLoader_.getCurrentMediaInfo_():!0;return!(!n||!i)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},n=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const i=Xa(this.main(),n),r={},s=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(r.video=i.video||e.main.videoCodec||JV),e.main.isMuxed&&(r.video+=`,${i.audio||e.main.audioCodec||b2}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||s)&&(r.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||b2,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!r.audio&&!r.video){this.excludePlaylist({playlistToExclude:n,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});return}const a=(u,d)=>u?Ba(d,this.usingManagedMediaSource_):Pu(d),o={};let c;if(["video","audio"].forEach(function(u){if(r.hasOwnProperty(u)&&!a(e[u].isFmp4,r[u])){const d=e[u].isFmp4?"browser":"muxer";o[d]=o[d]||[],o[d].push(r[u]),u==="audio"&&(c=d)}}),s&&c&&n.attributes.AUDIO){const u=n.attributes.AUDIO;this.main().playlists.forEach(d=>{(d.attributes&&d.attributes.AUDIO)===u&&d!==n&&(d.excludeUntil=1/0)}),this.logger_(`excluding audio group ${u} as ${c} does not support codec(s): "${r.audio}"`)}if(Object.keys(o).length){const u=Object.keys(o).reduce((d,y)=>(d&&(d+=", "),d+=`${y} does not support codec(s): "${o[y].join(",")}"`,d),"")+".";this.excludePlaylist({playlistToExclude:n,error:{internal:!0,message:u},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const u=[];if(["video","audio"].forEach(d=>{const y=(Gn(this.sourceUpdater_.codecs[d]||"")[0]||{}).type,A=(Gn(r[d]||"")[0]||{}).type;y&&A&&y.toLowerCase()!==A.toLowerCase()&&u.push(`"${this.sourceUpdater_.codecs[d]}" -> "${r[d]}"`)}),u.length){this.excludePlaylist({playlistToExclude:n,error:{message:`Codec switching not supported: ${u.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0});return}}return r}tryToCreateSourceBuffers_(){if(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const n=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(n)}excludeUnsupportedVariants_(){const e=this.main().playlists,n=[];Object.keys(e).forEach(i=>{const r=e[i];if(n.indexOf(r.id)!==-1)return;n.push(r.id);const s=Xa(this.main,r),a=[];s.audio&&!Pu(s.audio)&&!Ba(s.audio,this.usingManagedMediaSource_)&&a.push(`audio codec ${s.audio}`),s.video&&!Pu(s.video)&&!Ba(s.video,this.usingManagedMediaSource_)&&a.push(`video codec ${s.video}`),s.text&&s.text==="stpp.ttml.im1t"&&a.push(`text codec ${s.text}`),a.length&&(r.excludeUntil=1/0,this.logger_(`excluding ${r.id} for unsupported: ${a.join(", ")}`))})}excludeIncompatibleVariants_(e){const n=[],i=this.main().playlists,r=lc(Gn(e)),s=ug(r),a=r.video&&Gn(r.video)[0]||null,o=r.audio&&Gn(r.audio)[0]||null;Object.keys(i).forEach(c=>{const u=i[c];if(n.indexOf(u.id)!==-1||u.excludeUntil===1/0)return;n.push(u.id);const d=[],y=Xa(this.mainPlaylistLoader_.main,u),A=ug(y);if(!(!y.audio&&!y.video)){if(A!==s&&d.push(`codec count "${A}" !== "${s}"`),!this.sourceUpdater_.canChangeType()){const T=y.video&&Gn(y.video)[0]||null,_=y.audio&&Gn(y.audio)[0]||null;T&&a&&T.type.toLowerCase()!==a.type.toLowerCase()&&d.push(`video codec "${T.type}" !== "${a.type}"`),_&&o&&_.type.toLowerCase()!==o.type.toLowerCase()&&d.push(`audio codec "${_.type}" !== "${o.type}"`)}d.length&&(u.excludeUntil=1/0,this.logger_(`excluding ${u.id}: ${d.join(" && ")}`))}})}updateAdCues_(e){let n=0;const i=this.seekable();i.length&&(n=i.start(0)),Fx(e,this.cueTagsTrack_,n)}goalBufferLength(){const e=this.tech_.currentTime(),n=pt.GOAL_BUFFER_LENGTH,i=pt.GOAL_BUFFER_LENGTH_RATE,r=Math.max(n,pt.MAX_GOAL_BUFFER_LENGTH);return Math.min(n+e*i,r)}bufferLowWaterLine(){const e=this.tech_.currentTime(),n=pt.BUFFER_LOW_WATER_LINE,i=pt.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(n,pt.MAX_BUFFER_LOW_WATER_LINE),s=Math.max(n,pt.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(n+e*i,this.bufferBasedABR?s:r)}bufferHighWaterLine(){return pt.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){pg(this.inbandTextTracks_,"com.apple.streaming",this.tech_),mx({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,n,i){const r=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();pg(this.inbandTextTracks_,e,this.tech_),dx({inbandTextTracks:this.inbandTextTracks_,metadataArray:n,timestampOffset:r,videoDuration:i})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const n of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(n));if(this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart){this.contentSteeringController_.requestSteeringManifest(!0);return}this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(e=>{this.contentSteeringController_.on(e,n=>{this.trigger(it({},n))})}),this.sourceType_==="dash"&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||(()=>{const n=this.contentSteeringController_.getAvailablePathways(),i=[];for(const r of e.playlists){const s=r.attributes.serviceLocation;if(s&&(i.push(s),!n.has(s)))return!0}return!!(!i.length&&n.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const n=this.main().playlists,i=new Set;let r=!1;Object.keys(n).forEach(s=>{const a=n[s],o=this.pathwayAttribute_(a),c=o&&e!==o;a.excludeUntil===1/0&&a.lastExcludeReason_==="content-steering"&&!c&&(delete a.excludeUntil,delete a.lastExcludeReason_,r=!0);const u=!a.excludeUntil&&a.excludeUntil!==1/0;!i.has(a.id)&&c&&u&&(i.add(a.id),a.excludeUntil=1/0,a.lastExcludeReason_="content-steering",this.logger_(`excluding ${a.id} for ${a.lastExcludeReason_}`))}),this.contentSteeringController_.manifestType_==="DASH"&&Object.keys(this.mediaTypes_).forEach(s=>{const a=this.mediaTypes_[s];if(a.activePlaylistLoader){const o=a.activePlaylistLoader.media_;o&&o.attributes.serviceLocation!==e&&(r=!0)}}),r&&this.changeSegmentPathway_()}handlePathwayClones_(){const e=this.main().playlists,n=this.contentSteeringController_.currentPathwayClones,i=this.contentSteeringController_.nextPathwayClones;if(n&&n.size||i&&i.size){for(const[r,s]of n.entries())i.get(r)||(this.mainPlaylistLoader_.updateOrDeleteClone(s),this.contentSteeringController_.excludePathway(r));for(const[r,s]of i.entries()){const a=n.get(r);if(!a){e.filter(o=>o.attributes["PATHWAY-ID"]===s["BASE-ID"]).forEach(o=>{this.mainPlaylistLoader_.addClonePathway(s,o)}),this.contentSteeringController_.addAvailablePathway(r);continue}this.equalPathwayClones_(a,s)||(this.mainPlaylistLoader_.updateOrDeleteClone(s,!0),this.contentSteeringController_.addAvailablePathway(r))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...i])))}}equalPathwayClones_(e,n){if(e["BASE-ID"]!==n["BASE-ID"]||e.ID!==n.ID||e["URI-REPLACEMENT"].HOST!==n["URI-REPLACEMENT"].HOST)return!1;const i=e["URI-REPLACEMENT"].PARAMS,r=n["URI-REPLACEMENT"].PARAMS;for(const s in i)if(i[s]!==r[s])return!1;for(const s in r)if(i[s]!==r[s])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),this.contentSteeringController_.manifestType_==="DASH"&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const n="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(i=>{const r=this.mainPlaylistLoader_.getKeyIdSet(i);!r||!r.size||r.forEach(s=>{const a="usable",o=this.keyStatusMap_.has(s)&&this.keyStatusMap_.get(s)===a,c=i.lastExcludeReason_===n&&i.excludeUntil===1/0;o?o&&c&&(delete i.excludeUntil,delete i.lastExcludeReason_,this.logger_(`enabling playlist ${i.id} because key ID ${s} is ${a}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==n&&(i.excludeUntil=1/0,i.lastExcludeReason_=n,this.logger_(`excluding playlist ${i.id} because the key ID ${s} doesn't exist in the keyStatusMap or is not ${a}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(i=>{const r=i&&i.attributes&&i.attributes.RESOLUTION&&i.attributes.RESOLUTION.height<720,s=i.excludeUntil===1/0&&i.lastExcludeReason_===n;r&&s&&(delete i.excludeUntil,P.log.warn(`enabling non-HD playlist ${i.id} because all playlists were excluded due to ${n} key IDs`))})}addKeyStatus_(e,n){const i=(typeof e=="string"?e:Ux(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${n}' with key ID ${i} added to the keyStatusMap`),this.keyStatusMap_.set(i,n)}updatePlaylistByKeyStatus(e,n){this.addKeyStatus_(e,n),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}const sL=(t,e,n)=>i=>{const r=t.main.playlists[e],s=ep(r),a=jc(r);if(typeof i>"u")return a;i?delete r.disabled:r.disabled=!0;const o={renditionInfo:{id:e,bandwidth:r.attributes.BANDWIDTH,resolution:r.attributes.RESOLUTION,codecs:r.attributes.CODECS},cause:"fast-quality"};return i!==a&&!s&&(i?(n(r),t.trigger({type:"renditionenabled",metadata:o})):t.trigger({type:"renditiondisabled",metadata:o})),i};class aL{constructor(e,n,i){const{playlistController_:r}=e,s=r.fastQualityChange_.bind(r);if(n.attributes){const a=n.attributes.RESOLUTION;this.width=a&&a.width,this.height=a&&a.height,this.bandwidth=n.attributes.BANDWIDTH,this.frameRate=n.attributes["FRAME-RATE"]}this.codecs=Xa(r.main(),n),this.playlist=n,this.id=i,this.enabled=sL(e.playlists,n.id,s)}}const oL=function(t){t.representations=()=>{const e=t.playlistController_.main(),n=To(e)?t.playlistController_.getAudioTrackPlaylists_():e.playlists;return n?n.filter(i=>!ep(i)).map((i,r)=>new aL(t,i,i.id)):[]}},Sg=["seeking","seeked","pause","playing","error"];class lL extends P.EventTarget{constructor(e){super(),this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=bn("PlaybackWatcher"),this.logger_("initialize");const n=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),r=()=>this.techWaiting_(),s=()=>this.resetTimeUpdate_(),a=this.playlistController_,o=["main","subtitle","audio"],c={};o.forEach(d=>{c[d]={reset:()=>this.resetSegmentDownloads_(d),updateend:()=>this.checkSegmentDownloads_(d)},a[`${d}SegmentLoader_`].on("appendsdone",c[d].updateend),a[`${d}SegmentLoader_`].on("playlistupdate",c[d].reset),this.tech_.on(["seeked","seeking"],c[d].reset)});const u=d=>{["main","audio"].forEach(y=>{a[`${y}SegmentLoader_`][d]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=()=>u("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(Sg,s),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",r),this.tech_.off(Sg,s),this.tech_.off("canplay",i),this.tech_.off("play",n),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),o.forEach(d=>{a[`${d}SegmentLoader_`].off("appendsdone",c[d].updateend),a[`${d}SegmentLoader_`].off("playlistupdate",c[d].reset),this.tech_.off(["seeked","seeking"],c[d].reset)}),this.checkCurrentTimeTimeout_&&x.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&x.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=x.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const n=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=n.buffered_()}checkSegmentDownloads_(e){const n=this.playlistController_,i=n[`${e}SegmentLoader_`],r=i.buffered_(),s=HU(this[`${e}Buffered_`],r);if(this[`${e}Buffered_`]=r,s){const a={bufferedRanges:r};n.trigger({type:"bufferedrangeschanged",metadata:a}),this.resetSegmentDownloads_(e);return}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:i.playlist_&&i.playlist_.id,buffered:_r(r)}),!(this[`${e}StalledDownloads_`]<10)&&(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),e!=="subtitle"&&n.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),n=this.tech_.buffered();if(this.lastRecordedTime===e&&(!n.length||e+Qn>=n.end(n.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&e===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(e===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(Ut([this.lastRecordedTime,e]));const i={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:i}),this.consecutiveUpdates=0,this.lastRecordedTime=e}}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const e=this.seekable(),n=this.tech_.currentTime(),i=this.afterSeekableWindow_(e,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow);let r;if(i&&(r=e.end(e.length-1)),this.beforeSeekableWindow_(e,n)){const T=e.start(0);r=T+(T===e.end(0)?0:Qn)}if(typeof r<"u")return this.logger_(`Trying to seek outside of seekable at time ${n} with seekable range ${p8(e)}. Seeking to ${r}.`),this.tech_.setCurrentTime(r),!0;const s=this.playlistController_.sourceUpdater_,a=this.tech_.buffered(),o=s.audioBuffer?s.audioBuffered():null,c=s.videoBuffer?s.videoBuffered():null,u=this.media(),d=u.partTargetDuration?u.partTargetDuration:(u.targetDuration-Jn)*2,y=[o,c];for(let T=0;T<y.length;T++)if(y[T]&&zh(y[T],n)<d)return!1;const A=cl(a,n);return A.length===0?!1:(r=A.start(0)+Qn,this.logger_(`Buffered region starts (${A.start(0)}) just beyond seek point (${n}). Seeking to ${r}.`),this.tech_.setCurrentTime(r),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),n=this.tech_.buffered(),i=rs(n,e);if(i.length&&e+3<=i.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${i.start(0)} -> ${i.end(0)}]. Attempting to resume playback by seeking to the current time.`),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});return}}techWaiting_(){const e=this.seekable(),n=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,n)){const a=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${n}. Seeking to live point (seekable end) ${a}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(a),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const i=this.tech_.vhs.playlistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:n}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const s=cl(r,n);return s.length>0?(this.logger_(`Stopped at ${n} and seeking to ${s.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(n),!0):!1}afterSeekableWindow_(e,n,i,r=!1){if(!e.length)return!1;let s=e.end(e.length-1)+Qn;const a=!i.endList,o=typeof i.partTargetDuration=="number";return a&&(o||r)&&(s=e.end(e.length-1)+i.targetDuration*3),n>s}beforeSeekableWindow_(e,n){return!!(e.length&&e.start(0)>0&&n<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:n,currentTime:i}){if(!e)return;let r;if(e.length&&n.length){const s=rs(e,i-3),a=rs(e,i),o=rs(n,i);o.length&&!a.length&&s.length&&(r={start:s.end(0),end:o.end(0)})}else cl(e,i).length||(r=this.gapFromVideoUnderflow_(e,i));return r?(this.logger_(`Encountered a gap in video from ${r.start} to ${r.end}. Seeking to current time ${i}`),!0):!1}skipTheGap_(e){const n=this.tech_.buffered(),i=this.tech_.currentTime(),r=cl(n,i);if(this.resetTimeUpdate_(),r.length===0||i!==e)return;this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+Jn);const s={gapInfo:{from:i,to:r.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:s}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(e,n){const i=MU(e);for(let r=0;r<i.length;r++){const s=i.start(r),a=i.end(r);if(n-s<4&&n-s>2)return{start:s,end:a}}return null}}const cL={errorInterval:30,getSource(t){const e=this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource();return t(e)}},iy=function(t,e){let n=0,i=0;const r=_e(cL,e);t.ready(()=>{t.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const s=function(){i&&t.currentTime(i)},a=function(d){d!=null&&(i=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",s),t.src(d),t.trigger({type:"usage",name:"vhs-error-reload"}),t.play())},o=function(){if(Date.now()-n<r.errorInterval*1e3){t.trigger({type:"usage",name:"vhs-error-reload-canceled"});return}if(!r.getSource||typeof r.getSource!="function"){P.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return n=Date.now(),r.getSource.call(t,a)},c=function(){t.off("loadedmetadata",s),t.off("error",o),t.off("dispose",c)},u=function(d){c(),iy(t,d)};t.on("error",o),t.on("dispose",c),t.reloadSourceOnError=u},uL=function(t){iy(this,t)};var ry="3.16.2",dL="7.1.0",hL="1.3.1",pL="7.2.0",mL="4.0.2";const Ye={PlaylistLoader:ss,Playlist:Jt,utils:fk,STANDARD_PLAYLIST_SELECTOR:hg,INITIAL_PLAYLIST_SELECTOR:ax,lastBandwidthSelector:hg,movingAverageBandwidthSelector:rx,comparePlaylistBandwidth:ip,comparePlaylistResolution:ix,xhr:N8()};Object.keys(pt).forEach(t=>{Object.defineProperty(Ye,t,{get(){return P.log.warn(`using Vhs.${t} is UNSAFE be sure you know what you are doing`),pt[t]},set(e){if(P.log.warn(`using Vhs.${t} is UNSAFE be sure you know what you are doing`),typeof e!="number"||e<0){P.log.warn(`value of Vhs.${t} must be greater than or equal to 0`);return}pt[t]=e}})});const sy="videojs-vhs",ay=function(t,e){const n=e.media();let i=-1;for(let r=0;r<t.length;r++)if(t[r].id===n.id){i=r;break}t.selectedIndex_=i,t.trigger({selectedIndex:i,type:"change"})},gL=function(t,e){e.representations().forEach(n=>{t.addQualityLevel(n)}),ay(t,e.playlists)};Ye.canPlaySource=function(){return P.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const fL=(t,e,n)=>{if(!t)return t;let i={};e&&e.attributes&&e.attributes.CODECS&&(i=lc(Gn(e.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);const r=Ns(i.video),s=Ns(i.audio),a={};for(const o in t)a[o]={},s&&(a[o].audioContentType=s),r&&(a[o].videoContentType=r),e.contentProtection&&e.contentProtection[o]&&e.contentProtection[o].pssh&&(a[o].pssh=e.contentProtection[o].pssh),typeof t[o]=="string"&&(a[o].url=t[o]);return _e(t,a)},yL=(t,e)=>t.reduce((n,i)=>{if(!i.contentProtection)return n;const r=e.reduce((s,a)=>{const o=i.contentProtection[a];return o&&o.pssh&&(s[a]={pssh:o.pssh}),s},{});return Object.keys(r).length&&n.push(r),n},[]),bL=({player:t,sourceKeySystems:e,audioMedia:n,mainPlaylists:i})=>{if(!t.eme.initializeMediaKeys)return Promise.resolve();const r=n?i.concat([n]):i,s=yL(r,Object.keys(e)),a=[],o=[];return s.forEach(c=>{o.push(new Promise((u,d)=>{t.tech_.one("keysessioncreated",u)})),a.push(new Promise((u,d)=>{t.eme.initializeMediaKeys({keySystems:c},y=>{if(y){d(y);return}u()})}))}),Promise.race([Promise.all(a),Promise.race(o)])},EL=({player:t,sourceKeySystems:e,media:n,audioMedia:i})=>{const r=fL(e,n,i);return r?(t.currentSource().keySystems=r,r&&!t.eme?(P.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},oy=()=>{if(!x.localStorage)return null;const t=x.localStorage.getItem(sy);if(!t)return null;try{return JSON.parse(t)}catch{return null}},TL=t=>{if(!x.localStorage)return!1;let e=oy();e=e?_e(e,t):t;try{x.localStorage.setItem(sy,JSON.stringify(e))}catch{return!1}return e},vL=t=>t.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(t.substring(t.indexOf(",")+1)):t,ly=(t,e)=>{t._requestCallbackSet||(t._requestCallbackSet=new Set),t._requestCallbackSet.add(e)},cy=(t,e)=>{t._responseCallbackSet||(t._responseCallbackSet=new Set),t._responseCallbackSet.add(e)},uy=(t,e)=>{t._requestCallbackSet&&(t._requestCallbackSet.delete(e),t._requestCallbackSet.size||delete t._requestCallbackSet)},dy=(t,e)=>{t._responseCallbackSet&&(t._responseCallbackSet.delete(e),t._responseCallbackSet.size||delete t._responseCallbackSet)};Ye.supportsNativeHls=function(){if(!ee||!ee.createElement)return!1;const t=ee.createElement("video");return P.getTech("Html5").isSupported()?["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(e){return/maybe|probably/i.test(t.canPlayType(e))}):!1}();Ye.supportsNativeDash=function(){return!ee||!ee.createElement||!P.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(ee.createElement("video").canPlayType("application/dash+xml"))}();Ye.supportsTypeNatively=t=>t==="hls"?Ye.supportsNativeHls:t==="dash"?Ye.supportsNativeDash:!1;Ye.isSupported=function(){return P.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};Ye.xhr.onRequest=function(t){ly(Ye.xhr,t)};Ye.xhr.onResponse=function(t){cy(Ye.xhr,t)};Ye.xhr.offRequest=function(t){uy(Ye.xhr,t)};Ye.xhr.offResponse=function(t){dy(Ye.xhr,t)};const CL=P.getComponent("Component");class hy extends CL{constructor(e,n,i){if(super(n,i.vhs),typeof i.initialBandwidth=="number"&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=bn("VhsHandler"),n.options_&&n.options_.playerId){const r=P.getPlayer(n.options_.playerId);this.player_=r}if(this.tech_=n,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(ee,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=>{const s=ee.fullscreenElement||ee.webkitFullscreenElement||ee.mozFullScreenElement||ee.msFullscreenElement;s&&s.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=_e(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=this.options_.llhls!==!1,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,typeof this.options_.playlistExclusionDuration!="number"&&(this.options_.playlistExclusionDuration=60),typeof this.options_.bandwidth!="number"&&this.options_.useBandwidthFromLocalStorage){const i=oy();i&&i.bandwidth&&(this.options_.bandwidth=i.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),i&&i.throughput&&(this.options_.throughput=i.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=pt.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===pt.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(i=>{typeof this.source_[i]<"u"&&(this.options_[i]=this.source_[i])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio;const n=this.options_.customPixelRatio;typeof n=="number"&&n>=0&&(this.customPixelRatio=n)}setOptions(e={}){this.setOptions_(e)}src(e,n){if(!e)return;this.setOptions_(),this.options_.src=vL(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Ye,this.options_.sourceType=k5(n),this.options_.seekTo=s=>{this.tech_.setCurrentTime(s)},this.options_.player_=this.player_,this.playlistController_=new rL(this.options_);const i=_e({liveRangeSafeTimeDelta:Qn},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new lL(i),this.attachStreamingEventListeners_(),this.playlistController_.on("error",()=>{const s=P.players[this.tech_.options_.playerId];let a=this.playlistController_.error;typeof a=="object"&&!a.code?a.code=3:typeof a=="string"&&(a={message:a,code:3}),s.error(a)});const r=this.options_.bufferBasedABR?Ye.movingAverageBandwidthSelector(.55):Ye.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=Ye.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(s){this.playlistController_.selectPlaylist=s.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(s){this.playlistController_.mainSegmentLoader_.throughput.rate=s,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let s=this.playlistController_.mainSegmentLoader_.bandwidth;const a=x.navigator.connection||x.navigator.mozConnection||x.navigator.webkitConnection,o=1e7;if(this.options_.useNetworkInformationApi&&a){const c=a.downlink*1e3*1e3;c>=o&&s>=o?s=Math.max(s,c):s=c}return s},set(s){this.playlistController_.mainSegmentLoader_.bandwidth=s,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const s=1/(this.bandwidth||1);let a;return this.throughput>0?a=1/this.throughput:a=0,Math.floor(1/(s+a))},set(){P.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>_r(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>_r(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&TL({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{oL(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=x.URL.createObjectURL(this.playlistController_.mediaSource),(P.browser.IS_ANY_SAFARI||P.browser.IS_IOS)&&this.options_.overrideNative&&this.options_.sourceType==="hls"&&typeof this.tech_.addSourceElement=="function"?(this.tech_.addSourceElement(this.mediaSourceUrl_),this.tech_.addSourceElement(this.source_.src)):this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),bL({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(n=>{this.logger_("error while creating EME key session",n),this.player_.error({message:"Failed to initialize media keys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=EL({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});if(this.player_.tech_.on("keystatuschange",i=>{this.playlistController_.updatePlaylistByKeyStatus(i.keyId,i.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),!n){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){const e=P.players[this.tech_.options_.playerId];!e||!e.qualityLevels||this.qualityLevels_||(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{gL(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{ay(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":ry,"mux.js":dL,"mpd-parser":hL,"m3u8-parser":pL,"aes-decrypter":mL}}version(){return this.constructor.version()}canChangeType(){return q8.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&x.URL.revokeObjectURL&&(x.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,n){return Ak({playlist:this.playlistController_.media(),time:e,callback:n})}seekToProgramTime(e,n,i=!0,r=2){return F8({programTime:e,playlist:this.playlistController_.media(),retryCount:r,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:n})}setupXhrHooks_(){this.xhr.onRequest=e=>{ly(this.xhr,e)},this.xhr.onResponse=e=>{cy(this.xhr,e)},this.xhr.offRequest=e=>{uy(this.xhr,e)},this.xhr.offResponse=e=>{dy(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){const e=["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"],n=["gapjumped","playedrangeschanged"];e.forEach(i=>{this.playlistController_.on(i,r=>{this.player_.trigger(it({},r))})}),n.forEach(i=>{this.playbackWatcher_.on(i,r=>{this.player_.trigger(it({},r))})})}}const dc={name:"videojs-http-streaming",VERSION:ry,canHandleSource(t,e={}){const n=_e(P.options,e);return!n.vhs.experimentalUseMMS&&!Ba("avc1.4d400d,mp4a.40.2",!1)?!1:dc.canPlayType(t.type,n)},handleSource(t,e,n={}){const i=_e(P.options,n);return e.vhs=new hy(t,e,i),e.vhs.xhr=N8(),e.vhs.setupXhrHooks_(),e.vhs.src(t.src,t.type),e.vhs},canPlayType(t,e){const n=k5(t);if(!n)return"";const i=dc.getOverrideNative(e);return!Ye.supportsTypeNatively(n)||i?"maybe":""},getOverrideNative(t={}){const{vhs:e={}}=t,n=!(P.browser.IS_ANY_SAFARI||P.browser.IS_IOS),{overrideNative:i=n}=e;return i}},AL=()=>Ba("avc1.4d400d,mp4a.40.2",!0);AL()&&P.getTech("Html5").registerSourceHandler(dc,0);P.VhsHandler=hy;P.VhsSourceHandler=dc;P.Vhs=Ye;P.use||P.registerComponent("Vhs",Ye);P.options.vhs=P.options.vhs||{};(!P.getPlugin||!P.getPlugin("reloadSourceOnError"))&&P.registerPlugin("reloadSourceOnError",uL);const SL=t=>{const e=M.useRef();return M.useEffect(()=>{if(!e.current&&t.current){const n=document.createElement("video-js");n.classList.add("vjs-big-play-centered"),t.current.appendChild(n),e.current=P(n,{controls:!1,playsinline:!0})}return()=>{e.current&&(e.current.dispose(),e.current=void 0)}},[]),e},py={time:0,adCount:0,adPosition:0,skipDelay:0,playing:!1,paused:!1,reset:()=>{},whyThisAd:null,hasAdUrl:!1,adAction:t=>{},playMuted:!1,muted:!1,autoplay:!0},Oe=VI(py),_g=t=>{if(!t)return 0;const e=t.duration(),n=t.currentTime();return e===void 0||isNaN(e)||n===void 0||isNaN(n)?0:Math.round(e-n)},_L=(t,e)=>{const n=zR(t,e),i=SL(t),r=M.useRef(),s=M.useRef(!1),a=M.useRef(!1),o=M.useCallback(()=>{if(a.current)return;const T=n.get().nonceManager;if(T&&s.current)try{T.sendPlaybackEnd()}catch(_){console.warn("[PAL] sendPlaybackEnd failed",_)}a.current=!0},[n]),c=M.useCallback(()=>{o(),i.current&&(i.current.pause(),i.current.src(void 0)),r.current=void 0,Oe.set({...py,reset:c})},[i,o]);M.useEffect(()=>{Oe.setKey("reset",c)},[c]);const u=M.useCallback(()=>{var T,_,b;const{adPosition:V,adCount:w}=Oe.get();if(i.current){if(V<w){const W=V+1,{ads:B,muted:Z,autoplay:L,nonceManager:X}=n.get(),J=B[W-1];if(J){(T=r.current)==null||T.complete(),r.current=new MR(null,J.ad,J.creative),r.current.on("clickthrough",j=>{if(X)try{X.sendAdClick()}catch(re){console.warn("[PAL] sendAdClick failed",re)}window.open(j,"_blank")}),Oe.setKey("adPosition",W),Oe.setKey("playMuted",Z),Oe.setKey("skipDelay",J.creative.skipDelay||0),Oe.setKey("time",0),Oe.setKey("adAction",j=>{r.current&&r.current.click(null,{CLICKPOS:[j.clientX,j.clientY]})}),Oe.setKey("whyThisAd",J.creative.icons.find(j=>j.program==="GoogleWhyThisAd")||null),Oe.setKey("hasAdUrl",!!((_=J.creative.videoClickThroughURLTemplate)!=null&&_.url)),i.current.src(J.mediaFileUrl),Oe.setKey("playing",!0),V===0?(Oe.setKey("muted",Z),Oe.setKey("autoplay",L),Z&&i.current.muted(!0),L?i.current.play():(i.current.pause(),Oe.setKey("paused",!0))):i.current.play();return}}(b=r.current)==null||b.complete(),c()}},[i,c,n]),d=M.useCallback(()=>{if(!i.current)return;const T=i.current.muted();i.current.muted(!T),Oe.setKey("muted",!T),r.current&&r.current.setMuted(!T)},[i]),y=M.useCallback(()=>{i.current&&(i.current.paused()?(i.current.play(),r.current&&r.current.setPaused(!1)):(i.current.pause(),r.current&&r.current.setPaused(!0)))},[i]),A=M.useCallback(()=>{i.current&&(r.current&&r.current.skip(),u())},[u,i]);return M.useEffect(()=>{const T=i.current;if(!T)return()=>{};const _=L=>{if(Oe.setKey("playing",!0),Oe.setKey("paused",!1),Oe.setKey("time",_g(L.target.player)),!s.current){const X=n.get().nonceManager;if(X)try{X.sendPlaybackStart(),s.current=!0,a.current=!1}catch(J){console.warn("[PAL] sendPlaybackStart failed",J)}}},b=()=>{var L;(L=r.current)==null||L.complete(),u()},V=L=>{Oe.setKey("muted",L.target.player.muted())},w=()=>{Oe.setKey("paused",!0)},W=L=>{L.target.tagName==="VIDEO"&&(Oe.get().autoplay||y())},B=L=>{Oe.setKey("time",_g(L.target.player)),r.current&&r.current.setProgress(L.target.player.currentTime())},Z=()=>{c()};return T.on("play",_),T.on("ended",b),T.on("muted",V),T.on("pause",w),T.on("click",W),T.on("timeupdate",B),T.on("error",Z),()=>{T.off("play",_),T.off("ended",b),T.off("muted",V),T.off("pause",w),T.off("click",W),T.off("timeupdate",B),T.off("error",Z)}},[y,u,i,c,n]),M.useEffect(()=>n.subscribe(T=>{T&&(s.current=!1,a.current=!1,Oe.setKey("adCount",T.ads.length),Oe.setKey("adPosition",0),u())}),[n,i,u]),M.useEffect(()=>()=>{c()},[c]),[Oe,d,y,A,r]},RL=F("div")({name:"PauseAdOverlay",class:"pw9gih8",propsAsIs:!1}),IL=F("div")({name:"PauseAdContent",class:"p8lpomy",propsAsIs:!1}),VL=F("div")({name:"PauseAdGradientLeft",class:"pv7u167",propsAsIs:!1}),wL=F("div")({name:"PauseAdGradientRight",class:"p1kh2yb0",propsAsIs:!1}),NL=F("div")({name:"PauseAdGradientBottom",class:"pl8f94x",propsAsIs:!1}),UL=F("div")({name:"PauseAdTopLeft",class:"p1m6zmrt",propsAsIs:!1}),kL=F("h2")({name:"PauseAdTitle",class:"pm3vwfa",propsAsIs:!1}),xL=F("p")({name:"PauseAdCaption",class:"p1tibuhw",propsAsIs:!1}),LL=F("div")({name:"PauseAdBottomLeft",class:"ptqqrqd",propsAsIs:!1}),FL=F("button")({name:"PauseAdPlayButton",class:"p14estxv",propsAsIs:!1}),BL=F("div")({name:"PauseAdSidebar",class:"p1dpvfl1",propsAsIs:!1}),WL=F("div")({name:"ExternalAdContainer",class:"ezfmabr",propsAsIs:!1}),ZL=({vastUrl:t})=>{const e=M.useRef(null),[,,n]=_L(e,t);return M.useEffect(()=>{n&&n()},[n]),C.jsx(WL,{ref:e})},DL=({isClosing:t,title:e,caption:n,onPlay:i,onClose:r,vastUrl:s})=>{const{ref:a,focusSelf:o}=hc.useFocusable({focusKey:"sl-pause-ad-play",onEnterRelease:i,isFocusBoundary:!0,forceFocus:!0});return M.useEffect(()=>{a.current&&o()},[a,o]),M.useEffect(()=>{const c=u=>{const d=u.keyCode;if(d===461||d===10009||d===27){u.preventDefault(),u.stopPropagation(),u.stopImmediatePropagation(),r==null||r();return}};return window.addEventListener("keydown",c,{capture:!0}),()=>window.removeEventListener("keydown",c,{capture:!0})},[r]),C.jsx(RL,{className:mn(t&&"pause-ad-closing"),children:C.jsxs(IL,{children:[C.jsx(VL,{}),C.jsx(wL,{}),C.jsx(NL,{}),C.jsxs(UL,{children:[C.jsx(kL,{children:e}),C.jsx(xL,{children:n})]}),C.jsx(LL,{children:C.jsx(FL,{ref:a,onClick:i,onMouseEnter:()=>a.current.focus(),"aria-label":"Resume playback"})}),C.jsxs(BL,{children:[s&&C.jsx(ZL,{vastUrl:s}),C.jsx("span",{children:"ADVERTISEMENT"})]})]})})},OL=({showPauseAd:t,vastUrls:e,title:n,caption:i,onPlay:r,onClose:s,onRender:a})=>{const[o,c]=M.useState(!1),[u,d]=M.useState(!1),y=M.useRef();M.useEffect(()=>(y.current&&clearTimeout(y.current),t?(Yt.emit("exposedPauseAd",{action:"enabled",payload:{}}),y.current=setTimeout(()=>{d(!1),c(!0)},5e3)):(Yt.emit("exposedPauseAd",{action:"disabled",payload:{}}),d(!0),y.current=setTimeout(()=>{c(!1)},400)),()=>{y.current&&clearTimeout(y.current)}),[t]),M.useEffect(()=>{a==null||a({rendered:o})},[o,a]),M.useEffect(()=>()=>{a==null||a({rendered:!1})},[a]);const A=e==null?void 0:e[0].url;return o?C.jsx(DL,{onClose:s,isClosing:u,title:n,caption:i,onPlay:r,vastUrl:A}):null},XL=M.createContext({sdk:null,topNavigation:!1}),GL=()=>M.useContext(XL),ML=[10,10,1,0],PL=F("div")({name:"RemainingTimeCircle",class:"r165427",propsAsIs:!1}),YL=F("div")({name:"RemainingTime",class:"r17garf3",propsAsIs:!1}),HL=fC,c1=yC,Rg=bC,jL=({className:t,duration:e=30,onTimerExpired:n,isPlaying:i=!0})=>C.jsx(Dg.CountdownCircleTimer,{isPlaying:i,strokeWidth:0,duration:e,colors:c1,size:24,onComplete:n,children:({remainingTime:r})=>C.jsx(YL,{className:t,children:e===0?0:r})}),JL=({isPlaying:t=!0,duration:e=30,onTimerExpired:n})=>{const[i,r]=M.useState(e>10?HL:c1),[s,a]=M.useState(2);M.useEffect(()=>{e===0&&(a(0),r(Rg))},[e]);const o=({remainingTime:d})=>C.jsx(PL,{children:e===0?0:d}),c=M.useCallback(()=>{n==null||n(),r(Rg)},[n,r]),u=M.useCallback(d=>{d===10&&r(c1)},[r]);return C.jsx(Dg.CountdownCircleTimer,{isPlaying:t,duration:e,colors:gC,colorsTime:ML,size:32,strokeWidth:s,trailStrokeWidth:2,trailColor:i,onComplete:c,onUpdate:u,children:o})},QL=F("div")({name:"CloseIconWrap",class:"c3v6bv6",propsAsIs:!1}),KL=F("div")({name:"TimerWrap",class:"teuhmro",propsAsIs:!1}),$L=()=>Ce,zL=F($L())({name:"Icon",class:"i17rfxv5",propsAsIs:!0}),qL=({close:t,className:e,timerClassName:n,skipIcon:i,isPlaying:r=!0,duration:s=0,autoClose:a})=>{const[o,c]=M.useState(s===0);M.useEffect(()=>{c(!s)},[s]);const u=M.useCallback(()=>{a===R7.ENABLED?t==null||t():c(!0)},[a,t]);return o?C.jsxs(QL,{"data-a":"intr",onClick:t,className:e,style:i?{width:"auto"}:{},children:[i&&C.jsx("span",{"data-a":"intr",children:"Skip"}),C.jsx(zL,{"data-a":"intr",name:i?"iconSkip":"icon-cross"})]}):C.jsx(KL,{children:C.jsx(jL,{className:n,isPlaying:r,duration:s,onTimerExpired:u})})},my={[ie.TWEET]:{label:"Insight",iconName:"icon-insight"},[ie.PROMOTION]:{label:"Insight",iconName:"icon-insight"},[ie.UNSET]:void 0,[ie.FACTOID]:{label:"Insight",iconName:"icon-insight"},[ie.POLL]:{label:"Poll",iconName:"icon-poll"},[ie.TRIVIA]:{label:"Trivia",iconName:"icon-trivia"},[ie.PREDICTION]:{label:"Prediction",iconName:"icon-prediction"}};ie.TWEET+"",ie.FACTOID+"",ie.POLL+"",ie.TRIVIA+"",ie.PREDICTION+"",ie.PROMOTION+"",ie.UNSET+"";const eF=F("div")({name:"Container",class:"c1vwopgc",propsAsIs:!1}),tF=F("div")({name:"QuestionTypeWrap",class:"qyktpt0",propsAsIs:!1}),nF=()=>Ce,iF=F(nF())({name:"QuestionTypeIcon",class:"q951jdx",propsAsIs:!0}),rF=F("span")({name:"QuestionTypeTitle",class:"qss5f0e",propsAsIs:!1}),sF=F("button")({name:"CloseIconWrap",class:"c1ao1jtv",propsAsIs:!1}),aF=()=>Ce,oF=F(aF())({name:"CloseIcon",class:"cvsl7l3",propsAsIs:!0}),lF=yn(sF,{}),cF=({webos:t,type:e,closeTimer:n,close:i,label:r,mastersApp:s})=>{const a=e?my[e]:{label:r,iconName:void 0};return C.jsxs(eF,{children:[C.jsxs(tF,{children:[(a==null?void 0:a.iconName)&&C.jsx(iF,{"data-type-trivia":e===ie.TRIVIA,"data-type-poll":e===ie.POLL,"data-type-prediction":e===ie.PREDICTION,"data-masters-app":!!s,name:a.iconName}),(a==null?void 0:a.label)&&C.jsx(rF,{children:a.label})]}),n!=null&&n.seconds?C.jsx(qL,{close:i,autoClose:n.auto,duration:n.seconds}):C.jsx(lF,{webos:t,"data-a":"intr",onClick:i,type:"button","data-close-btn":"true",children:C.jsx(oF,{"data-a":"intr",name:"icon-cross"})})]})},uF="data:image/svg+xml,%3csvg%20width='103'%20height='18'%20viewBox='0%200%20103%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_104497)'%3e%3cpath%20d='M9.89618%203.45801C9.91951%203.45801%209.94451%203.46134%209.96784%203.46134C9.97618%203.46134%209.98284%203.46134%209.99118%203.46467H9.99784C10.0095%203.46467%2010.0212%203.46801%2010.0312%203.46801C10.0412%203.46801%2010.0462%203.46801%2010.0545%203.47134C10.0762%203.47467%2010.0962%203.47467%2010.1178%203.47634C10.1412%203.47967%2010.1662%203.48134%2010.1895%203.48467H10.2012C10.2462%203.48967%2010.2945%203.49634%2010.3395%203.50467C10.4512%203.52467%2010.5595%203.54801%2010.6662%203.57801C10.6928%203.58301%2010.7178%203.59301%2010.7445%203.60134H10.7478C10.7745%203.60967%2010.7995%203.61801%2010.8262%203.62467C10.8528%203.63301%2010.8778%203.64134%2010.9045%203.65134C10.9312%203.65967%2010.9562%203.66801%2010.9795%203.67967C11.0012%203.68801%2011.0212%203.69634%2011.0428%203.70634C11.0495%203.70967%2011.0578%203.71134%2011.0645%203.71467C11.0828%203.72301%2011.1012%203.72967%2011.1195%203.73801C11.1262%203.74134%2011.1312%203.74301%2011.1378%203.74634C11.1562%203.75467%2011.1712%203.76134%2011.1895%203.76967C11.1962%203.77301%2011.2045%203.77467%2011.2128%203.78134C11.2345%203.78967%2011.2528%203.79801%2011.2728%203.80967C11.2762%203.80967%2011.2795%203.81301%2011.2812%203.81301C11.3045%203.82467%2011.3295%203.83634%2011.3512%203.84801C11.3695%203.85634%2011.3878%203.86801%2011.4062%203.87634C11.4212%203.88134%2011.4328%203.89134%2011.4462%203.89967C11.4645%203.91134%2011.4828%203.91967%2011.5012%203.93134C11.5045%203.93467%2011.5078%203.93467%2011.5095%203.93634L11.5728%203.97467H11.5762L15.2178%206.18801L15.4412%206.32467C16.3228%206.90801%2016.9028%207.88467%2016.9028%208.99301C16.9028%2010.1013%2016.3262%2011.0763%2015.4445%2011.6613L15.2095%2011.803L11.5745%2014.0113H11.5712L11.5078%2014.0497C11.5078%2014.0497%2011.5012%2014.053%2011.4995%2014.0547C11.4812%2014.0663%2011.4628%2014.0747%2011.4445%2014.0863C11.4595%2014.078%2011.4745%2014.0697%2011.4895%2014.0597L5.94951%2017.433C5.94951%2017.433%205.94618%2017.433%205.94618%2017.4363L5.74451%2017.558H5.74118C5.19784%2017.863%204.55784%2018.0247%203.87784%2017.993C2.73618%2017.938%201.75784%2017.3463%201.19284%2016.4847C0.837844%2015.9413%200.64451%2015.2913%200.681177%2014.6013C0.71451%2013.983%200.922844%2013.4147%201.26118%2012.9397L1.26951%2012.9247L4.04451%208.99634L6.77784%205.12634C6.81118%205.07967%206.84784%205.03301%206.87784%204.98467C6.87451%204.98967%206.86951%204.99967%206.86284%205.00467C6.87118%204.98967%206.88118%204.97634%206.88951%204.96134C6.88951%204.95801%206.89284%204.95801%206.89284%204.95634C6.89618%204.95301%206.89951%204.94801%206.90118%204.94467C6.90118%204.94467%206.90118%204.94134%206.90451%204.94134C6.91951%204.92134%206.93451%204.90134%206.94618%204.87801C6.96118%204.85801%206.97618%204.83801%206.99118%204.81634C7.00618%204.79634%207.02118%204.77634%207.03618%204.75467C7.03951%204.75134%207.03951%204.74967%207.04284%204.74634C7.04618%204.74301%207.04618%204.74134%207.04951%204.74134C7.06451%204.72134%207.07951%204.70134%207.09784%204.67967C7.10951%204.66467%207.12118%204.65134%207.13451%204.63634C7.16784%204.59801%207.20118%204.56134%207.23784%204.52301C7.25284%204.50801%207.26451%204.49467%207.27951%204.47967C7.30118%204.45634%207.32118%204.43634%207.34618%204.41634C7.36451%204.39967%207.38284%204.38134%207.40118%204.36467C7.41951%204.34801%207.43451%204.33301%207.45284%204.31801C7.45618%204.31467%207.45951%204.31301%207.45951%204.31301C7.47118%204.30134%207.48118%204.29301%207.49284%204.28467C7.50451%204.27301%207.51951%204.26134%207.53284%204.25301C7.53618%204.24967%207.53951%204.24801%207.54118%204.24801C7.55951%204.23301%207.57451%204.21967%207.59284%204.20467C7.60784%204.18967%207.62618%204.17801%207.64118%204.16634C7.65618%204.15467%207.66784%204.14634%207.68284%204.13467C7.70118%204.11967%207.71951%204.10801%207.73784%204.09467C7.75284%204.08634%207.76451%204.07467%207.77951%204.06634C7.78618%204.06134%207.79451%204.05467%207.80284%204.05134C7.81784%204.03967%207.83284%204.03134%207.84784%204.02301C7.85118%204.01967%207.85618%204.01801%207.85951%204.01467C7.87784%204.00301%207.89618%203.99134%207.91118%203.98301C7.91784%203.97801%207.92618%203.97467%207.93284%203.96801C7.94784%203.95967%207.95951%203.95134%207.97451%203.94134C7.98284%203.93634%207.99284%203.92967%208.00118%203.92467C8.01618%203.91634%208.03451%203.90801%208.04951%203.89634C8.05284%203.89301%208.05784%203.89134%208.06451%203.88801C8.08618%203.87634%208.10451%203.86467%208.12451%203.85634C8.12784%203.85301%208.13118%203.85301%208.13618%203.85134C8.15784%203.83967%208.17784%203.82801%208.19951%203.81967C8.19951%203.81967%208.20284%203.81967%208.20284%203.81634C8.22618%203.80467%208.24784%203.79301%208.27284%203.78134C8.27284%203.78134%208.27618%203.78134%208.27618%203.77801C8.29451%203.76967%208.31284%203.76134%208.33284%203.75134C8.34118%203.74801%208.35118%203.74301%208.35951%203.73967C8.37118%203.73467%208.38284%203.72801%208.39618%203.72467C8.41118%203.71967%208.42284%203.71301%208.43784%203.70801C8.46118%203.69967%208.48284%203.69134%208.50784%203.68134C8.52284%203.67634%208.53451%203.66967%208.54951%203.66634C8.57118%203.65801%208.59118%203.65134%208.61284%203.64301C8.63118%203.63801%208.65284%203.63134%208.66951%203.62301C8.75451%203.59634%208.83784%203.57134%208.92284%203.54967C8.94118%203.54467%208.96284%203.54134%208.97951%203.53801C9.08451%203.51467%209.19451%203.49467%209.30284%203.48301C9.32951%203.47967%209.35784%203.47801%209.38451%203.47467C9.42118%203.47134%209.45951%203.46967%209.49618%203.46634C9.51118%203.46634%209.52284%203.46301%209.53784%203.46301H9.55951C9.58951%203.46301%209.61618%203.45967%209.64784%203.45967H9.73784C9.79451%203.45967%209.84284%203.45967%209.89451%203.46301L9.89618%203.45801ZM10.6662%2014.413C10.5612%2014.4413%2010.4512%2014.4647%2010.3395%2014.4863C10.4512%2014.4663%2010.5595%2014.443%2010.6662%2014.413ZM9.56118%2014.5313H9.56951C9.56118%2014.5313%209.54784%2014.5313%209.53951%2014.528C9.54618%2014.528%209.55451%2014.5313%209.56118%2014.5313ZM7.08784%2013.293C7.05451%2013.253%207.02451%2013.2147%206.99451%2013.1747C7.02451%2013.2147%207.05784%2013.253%207.08784%2013.293ZM6.90284%2013.043C6.90284%2013.043%206.90618%2013.0463%206.90618%2013.048C6.90284%2013.0447%206.90284%2013.043%206.89951%2013.0363C6.89618%2013.033%206.89618%2013.0297%206.89284%2013.0247C6.86951%2012.9897%206.84784%2012.953%206.82284%2012.918C6.84451%2012.953%206.86784%2012.9913%206.88951%2013.0247C6.89618%2013.0297%206.89784%2013.0363%206.90118%2013.0413L6.90284%2013.043ZM6.89451%2013.0263C6.85784%2012.968%206.81951%2012.913%206.77618%2012.858L6.89451%2013.0263Z'%20fill='%231652A8'%20style='fill:%231652A8;fill:color(display-p3%200.0863%200.3216%200.6588);fill-opacity:1;'/%3e%3cg%20opacity='0.85'%3e%3cpath%20d='M5.77088%200.453306L5.97588%200.578306L5.97921%200.581639L11.5225%203.94997C11.5075%203.94164%2011.4925%203.93331%2011.4775%203.92331C11.4959%203.93497%2011.5142%203.94331%2011.5325%203.95497C11.5359%203.95831%2011.5392%203.95831%2011.5409%203.95997L11.6042%203.99831H11.6075L15.2492%206.21164L15.4725%206.34831C16.3542%206.93164%2016.9342%207.9083%2016.9342%209.01664C16.9342%2010.125%2016.3575%2011.1%2015.4759%2011.685L15.2409%2011.8266L11.6059%2014.035H11.6025L11.5392%2014.0733C11.5392%2014.0733%2011.5325%2014.0766%2011.5309%2014.0783C11.5125%2014.09%2011.4942%2014.0983%2011.4759%2014.11C11.4642%2014.1183%2011.4492%2014.125%2011.4359%2014.1333C11.4175%2014.145%2011.3992%2014.1533%2011.3809%2014.1616C11.3575%2014.1733%2011.3359%2014.185%2011.3109%2014.1966C11.3075%2014.2%2011.3042%2014.2%2011.3025%2014.2C11.2842%2014.2116%2011.2625%2014.22%2011.2425%2014.2283C11.2359%2014.2316%2011.2275%2014.2333%2011.2192%2014.24C11.2009%2014.2483%2011.1859%2014.255%2011.1675%2014.2633C11.1609%2014.2666%2011.1592%2014.2683%2011.1525%2014.2683C11.1309%2014.2766%2011.1109%2014.285%2011.0859%2014.2966C11.0625%2014.3083%2011.0342%2014.3166%2011.0109%2014.325C10.9875%2014.3333%2010.9592%2014.345%2010.9359%2014.3533C10.9092%2014.3616%2010.8842%2014.37%2010.8575%2014.38C10.8309%2014.3883%2010.8059%2014.3966%2010.7792%2014.4033H10.7759C10.7492%2014.4116%2010.7242%2014.4183%2010.6975%2014.4266C10.5925%2014.455%2010.4825%2014.4783%2010.3709%2014.4983C10.3259%2014.5066%2010.2775%2014.5133%2010.2325%2014.5183C10.2259%2014.5183%2010.2242%2014.5183%2010.2209%2014.5216C10.1975%2014.525%2010.1725%2014.5283%2010.1492%2014.53C10.1009%2014.5366%2010.0525%2014.5383%2010.0042%2014.5416C9.92921%2014.5483%209.85254%2014.5483%209.77754%2014.5483H9.68088C9.65421%2014.5483%209.62921%2014.545%209.60254%2014.545C9.59421%2014.545%209.58088%2014.545%209.57254%2014.5416C9.53254%2014.5383%209.49088%2014.5366%209.45254%2014.5333C9.27421%2014.5166%209.09588%2014.4866%208.92754%2014.4466C8.90421%2014.44%208.87921%2014.435%208.85254%2014.4266C8.81921%2014.4183%208.78588%2014.41%208.74921%2014.3983C8.73088%2014.3933%208.70921%2014.3866%208.69254%2014.3816C8.66588%2014.3733%208.64088%2014.365%208.61421%2014.355C8.58754%2014.3466%208.56254%2014.3383%208.53921%2014.3266C8.51588%2014.3183%208.48754%2014.3066%208.46421%2014.2983C8.44088%2014.29%208.41921%2014.2816%208.39754%2014.27C8.38921%2014.2666%208.38254%2014.265%208.37421%2014.2583C8.35588%2014.25%208.33754%2014.2416%208.31754%2014.2316C8.31754%2014.2316%208.31421%2014.2316%208.31421%2014.2283C8.29088%2014.2166%208.26588%2014.205%208.24254%2014.1933C8.21921%2014.1816%208.19421%2014.17%208.17088%2014.155C8.14754%2014.1433%208.12254%2014.1283%208.10088%2014.1166C8.07754%2014.105%208.05254%2014.09%208.03088%2014.0766C8.00754%2014.0616%207.98588%2014.0483%207.96088%2014.0366C7.93754%2014.0216%207.91588%2014.0083%207.89421%2013.9933C7.87254%2013.9783%207.85254%2013.965%207.83088%2013.95C7.82754%2013.95%207.82754%2013.9466%207.82421%2013.945C7.80588%2013.9333%207.78754%2013.9183%207.76754%2013.905C7.76421%2013.9016%207.76088%2013.9016%207.75921%2013.9C7.74088%2013.885%207.72254%2013.8733%207.70421%2013.86C7.70088%2013.8566%207.69588%2013.855%207.69254%2013.8483C7.67421%2013.8333%207.65588%2013.82%207.63754%2013.805C7.63754%2013.805%207.63421%2013.805%207.63421%2013.8016C7.61588%2013.7866%207.59754%2013.7733%207.57754%2013.755C7.57421%2013.7516%207.57088%2013.7516%207.56921%2013.7483C7.55421%2013.7366%207.53921%2013.7216%207.52421%2013.71C7.51754%2013.705%207.51254%2013.6983%207.50588%2013.695C7.49421%2013.6833%207.47921%2013.6716%207.46588%2013.66C7.43921%2013.6366%207.41421%2013.6133%207.39088%2013.5866C7.37254%2013.57%207.35754%2013.5516%207.33921%2013.535C7.32754%2013.5233%207.31754%2013.5116%207.30588%2013.5C7.29421%2013.4883%207.28421%2013.48%207.27588%2013.4683C7.25754%2013.4516%207.24254%2013.43%207.22421%2013.4133C7.19088%2013.375%207.15754%2013.3383%207.12421%2013.2966C7.09088%2013.2566%207.06088%2013.2183%207.03088%2013.1783C7.01588%2013.1583%207.00088%2013.1383%206.98588%2013.1166C6.97088%2013.0966%206.95588%2013.0766%206.94421%2013.0533C6.94088%2013.05%206.94088%2013.0483%206.93754%2013.0416C6.93421%2013.0383%206.93421%2013.0366%206.93088%2013.03C6.90754%2012.995%206.88588%2012.9583%206.86088%2012.9233C6.88254%2012.9583%206.90588%2012.995%206.92754%2013.03C6.89088%2012.9716%206.85254%2012.9166%206.80921%2012.8616L4.07921%208.99664L1.34088%205.12997L1.23254%204.97664L1.22921%204.97164C0.92421%204.51164%200.737543%203.97497%200.707543%203.39497C0.670877%202.70497%200.86421%202.05164%201.22088%201.50997C1.78588%200.648306%202.76588%200.0566391%203.90421%20-2.75556e-05C4.58421%20-0.0150276%205.22421%200.148306%205.77088%200.453306Z'%20fill='url(%23paint0_linear_6919_104497)'%20style=''/%3e%3c/g%3e%3cpath%20d='M32.4132%2012.862C31.2015%2012.862%2030.4482%2012.0503%2030.4482%2010.7203V8.4453H32.6632V7.02697H30.4482V4.72363L28.8548%205.9053V7.0253H27.9648V8.44363H28.8548V10.7053C28.8548%2012.9953%2030.1982%2014.412%2032.4282%2014.412H32.7682V12.862H32.4132Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M19.9812%2012.5767L21.4028%2011.4651C22.0395%2012.4867%2022.8995%2013.0351%2023.9962%2013.0351C25.1962%2013.0351%2025.9512%2012.2651%2025.9512%2011.3017C25.9512%2010.1901%2024.7662%209.83506%2023.5212%209.43506C22.0545%208.96172%2020.4695%208.36839%2020.4695%206.38339C20.4695%204.73839%2021.9362%203.43506%2023.9362%203.43506C25.5812%203.43506%2026.6028%204.07172%2027.4328%205.03506L26.1145%206.01339C25.6262%205.25839%2024.8995%204.85839%2023.9362%204.85839C22.8395%204.85839%2022.1278%205.51006%2022.1278%206.35506C22.1278%207.39172%2023.2695%207.73339%2024.5128%208.14839C25.9945%208.65172%2027.6095%209.29006%2027.6095%2011.3051C27.6095%2012.9651%2026.2462%2014.5501%2024.0095%2014.5501C22.1578%2014.5501%2020.8978%2013.7651%2019.9795%2012.5801L19.9812%2012.5767Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M38.2695%2010.7367C38.2695%208.56503%2039.9379%206.8667%2042.1095%206.8667C44.2812%206.8667%2045.9062%208.4467%2045.9062%2010.6334V11.2534H39.7912C39.9979%2012.39%2040.8845%2013.1434%2042.1695%2013.1434C43.1745%2013.1434%2043.9429%2012.6117%2044.3262%2011.8134L45.6262%2012.5367C44.9762%2013.7484%2043.8095%2014.545%2042.1695%2014.545C39.8362%2014.545%2038.2695%2012.8767%2038.2695%2010.735V10.7367ZM39.8645%209.91003H44.2962C44.0595%208.8467%2043.2479%208.25503%2042.1095%208.25503C40.9712%208.25503%2040.1595%208.93503%2039.8645%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M33.7549%2010.72C33.7549%208.42999%2035.0982%207.02832%2037.3282%207.02832H38.0366V8.56499H37.3132C36.1016%208.56499%2035.3199%209.40665%2035.3349%2010.7367V14.415H33.7549V10.7233V10.72Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M46.6882%2010.7218C46.6882%208.56517%2048.3865%206.88184%2050.5132%206.88184C52.6399%206.88184%2054.3082%208.56517%2054.3082%2010.7218V14.4135H52.7582V13.4535C52.2415%2014.1468%2051.4432%2014.5468%2050.4682%2014.5468C48.3565%2014.5468%2046.6865%2012.8935%2046.6865%2010.7218H46.6882ZM52.7882%2010.7218C52.7882%209.40684%2051.7832%208.3585%2050.5132%208.3585C49.2432%208.3585%2048.2382%209.40684%2048.2382%2010.7218C48.2382%2012.0368%2049.2282%2013.0852%2050.5132%2013.0852C51.7982%2013.0852%2052.7882%2012.0218%2052.7882%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M55.3027%2010.2717C55.3027%208.30667%2056.6461%206.875%2058.6411%206.875C59.7777%206.875%2060.6944%207.33333%2061.2694%208.10167C61.8161%207.33333%2062.7027%206.875%2063.8394%206.875C65.8477%206.875%2067.2511%208.27833%2067.2511%2010.2717V14.4067H65.6711V10.2867C65.6711%209.165%2064.9177%208.38167%2063.8394%208.38167C62.7611%208.38167%2062.0527%209.18%2062.0677%2010.2433V14.4083H60.4877V10.2883C60.4877%209.16667%2059.7194%208.38333%2058.6411%208.38333C57.5627%208.38333%2056.8694%209.18167%2056.8827%2010.245V14.41H55.3027V10.275V10.2717Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M68.2646%203.62695H69.8746V12.872H74.2313V14.4086H68.2646V3.62695Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M89.418%2010.7367C89.418%208.56503%2091.0863%206.8667%2093.258%206.8667C95.4296%206.8667%2097.0546%208.4467%2097.0546%2010.6334V11.2534H90.9396C91.1463%2012.39%2092.033%2013.1434%2093.318%2013.1434C94.323%2013.1434%2095.0913%2012.6117%2095.4746%2011.8134L96.7746%2012.5367C96.1246%2013.7484%2094.958%2014.545%2093.318%2014.545C90.9846%2014.545%2089.418%2012.8767%2089.418%2010.735V10.7367ZM91.013%209.91003H95.4446C95.208%208.8467%2094.3963%208.25503%2093.258%208.25503C92.1196%208.25503%2091.308%208.93503%2091.013%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M74.4948%2010.7218C74.4948%208.56517%2076.1932%206.88184%2078.3198%206.88184C80.4465%206.88184%2082.1148%208.56517%2082.1148%2010.7218V14.4135H80.5648V13.4535C80.0482%2014.1468%2079.2498%2014.5468%2078.2748%2014.5468C76.1632%2014.5468%2074.4932%2012.8935%2074.4932%2010.7218H74.4948ZM80.5948%2010.7218C80.5948%209.40684%2079.5898%208.3585%2078.3198%208.3585C77.0498%208.3585%2076.0448%209.40684%2076.0448%2010.7218C76.0448%2012.0368%2077.0348%2013.0852%2078.3198%2013.0852C79.6048%2013.0852%2080.5948%2012.0218%2080.5948%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M85.0381%2014.0498L81.9814%207.0498H83.6798L85.8364%2012.1748L87.8748%207.0498H89.5431L85.0831%2017.8465H83.4581L85.0381%2014.0515V14.0498Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M98.041%2010.7151C98.041%208.4251%2099.3843%207.02344%20101.614%207.02344H102.323V8.5601H101.599C100.388%208.5601%2099.606%209.40177%2099.621%2010.7318V14.4101H98.041V10.7184V10.7151Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_6919_104497'%20x1='4.31754'%20y1='8.70664'%20x2='13.6359'%20y2='3.59497'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.2'%20stop-color='%231589EE'%20style='stop-color:%231589EE;stop-color:color(display-p3%200.0824%200.5373%200.9333);stop-opacity:1;'/%3e%3cstop%20offset='1'%20stop-color='%235EB4FF'%20style='stop-color:%235EB4FF;stop-color:color(display-p3%200.3686%200.7059%201.0000);stop-opacity:1;'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_6919_104497'%3e%3crect%20width='101.648'%20height='18'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.675781)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",od=F("div")({name:"SponsorLogoWrap",class:"s8p5v5z",propsAsIs:!1}),dF=()=>Ce,hF=F(dF())({name:"SponsorLogo",class:"s755yti",propsAsIs:!0}),pF=F("img")({name:"AdSponsorLogo",class:"a1dflj8e",propsAsIs:!1}),mF=({mastersApp:t,sponsorLogo:e})=>t?C.jsx(od,{children:C.jsx(hF,{name:"mastersLogo"})}):e?C.jsx(od,{children:C.jsx(pF,{src:e,alt:"ad-sponsor-logo"})}):C.jsx(od,{children:C.jsx("img",{src:uF,alt:"stream-layer-logo"})}),gF=F("div")({name:"Container",class:"cqg02m",propsAsIs:!1}),ld=({children:t,style:e,loading:n})=>n?C.jsx(gF,{style:e,children:t}):t,fF=F("div")({name:"Container",class:"c1gcvmcj",propsAsIs:!1}),yF=F("div")({name:"Title",class:"tnr592a",propsAsIs:!1}),bF=F("div")({name:"Description",class:"d1e8jqpv",propsAsIs:!1}),EF=()=>Ce,TF=F(EF())({name:"Icon",class:"i1vs651k",propsAsIs:!0}),vF=({icon:t,title:e,description:n})=>C.jsxs(fF,{children:[C.jsx(TF,{name:t}),C.jsx(yF,{children:e}),C.jsx(bF,{children:n})]}),CF=F("div")({name:"Container",class:"c1pgyo67",propsAsIs:!1}),AF="sx17qu6",SF="h1692c5m",rp=({children:t,style:e,className:n,enabled:i=!0,hiding:r,onAnimationEnd:s})=>C.jsx(CF,{style:e,className:mn(n,i&&AF,i&&r&&SF),onAnimationEnd:s,children:t}),_F=()=>rp,RF=F(_F())({name:"GrowingContainer",class:"gck55ev",propsAsIs:!0}),gy=({children:t,style:e,enabled:n,animate:i,...r})=>{const s=M.useRef(null);return C.jsx(RF,{...r,enabled:n&&i,style:{...e,...(()=>{const a=s==null?void 0:s.current,o=a&&window.getComputedStyle(a),c=o==null?void 0:o.getPropertyValue("height");return n?{height:i?c:0}:{}})()},children:C.jsx("div",{ref:s,children:t})})},IF=()=>gy,VF=F(IF())({name:"ShowInContainer",class:"s16sbdnm",propsAsIs:!0}),yr=F("div")({name:"FeedbackContainer",class:"fbhorgl",propsAsIs:!1}),Ig="s1g20ja7",wF=F("div")({name:"Container",class:"c455ozj",propsAsIs:!1}),NF=()=>Ce,Vg=F(NF())({name:"IconPrediction",class:"i1913njx",propsAsIs:!0}),Sa=F("div")({name:"FeedbackIconWrap",class:"fzfk69z",propsAsIs:!1}),hl=F("div")({name:"FeedbackHeader",class:"fx87qaj",propsAsIs:!1}),UF=F("span")({name:"FeedbackTitle",class:"fvek9ew",propsAsIs:!1}),Tr=F("span")({name:"FeedbackDescription",class:"f1kbtp09",propsAsIs:!1}),kF=F("div")({name:"FeedbackTitleWrap",class:"f4i8rro",propsAsIs:!1}),xF=F("div")({name:"FeedbackResultDescriptionWrap",class:"fqyssr",propsAsIs:!1}),LF=()=>Tr,FF=F(LF())({name:"FeedbackDynamicDescription",class:"fyv794i",propsAsIs:!0}),BF=()=>Tr,WF=F(BF())({name:"FeedbackResultDescription",class:"f1jkj9vx",propsAsIs:!0}),cd=F("div")({name:"FeedbackText",class:"f1pxh3a6",propsAsIs:!1}),ZF=F("span")({name:"DynamicWrap",class:"d1afvufn",propsAsIs:!1}),DF=F("div")({name:"EarlyFeedbackDescription",class:"eq8u24d",propsAsIs:!1}),wg=({feedbackMessages:t,questionVotedCorrectly:e,questionVoted:n,questionType:i,hasCorrectAnswer:r,showExpiredNotification:s,showClosedNotificationTrivia:a,votedInCurrentRender:o,votedAfterQuestionClosed:c,voteErrorMessage:u,enteredAnActiveQuestion:d,marketClosed:y,percentsAnimated:A,votedAnswer:T,isEarlyPrediction:_,correctAnswer:b,onAnimationEnd:V})=>{const w=n&&(i===ie.TRIVIA||i===ie.PREDICTION),W=i===ie.PREDICTION&&!r,B=y&&i===ie.PREDICTION&&!n||i===ie.PREDICTION&&c&&o&&d,Z=w&&W,L=w&&r,X=i===ie.PREDICTION&&n&&o&&r,J=n&&i===ie.POLL&&o,j=e?"correct":"incorrect",re=e?t==null?void 0:t.correctFeedback:t==null?void 0:t.incorrectFeedback;return s||a||Z||L||B||J||X||u?C.jsx(VF,{enabled:o,animate:!u&&s?!0:A,onAnimationEnd:V,children:C.jsxs(wF,{"data-prediction":W,children:[u&&!B&&C.jsxs(yr,{children:[!_&&C.jsx(Vg,{name:"questionExpired"}),C.jsx(Tr,{children:u})]}),!u&&s&&C.jsxs(yr,{children:[!_&&C.jsx(Sa,{children:C.jsx(Ce,{name:"questionExpired"})}),C.jsxs("div",{children:[C.jsx(hl,{children:C.jsx(Tr,{children:"Question Expired"})}),C.jsx(cd,{children:"You can still answer to see if you're correct, but no points are awarded for expired questions."})]})]}),!u&&a&&C.jsxs(yr,{className:mn(Ig),children:[C.jsx(Sa,{children:C.jsx(Ce,{name:"questionExpired"})}),C.jsxs("div",{children:[C.jsx(hl,{children:C.jsx(Tr,{children:"Question Closed"})}),C.jsx(cd,{children:"This question was answered after the moderator closed the question. So the points for this answer won’t tally."})]})]}),B&&C.jsxs(yr,{children:[!_&&C.jsx(Sa,{children:C.jsx(Ce,{name:"questionExpired"})}),C.jsxs("div",{children:[C.jsx(hl,{children:C.jsx(Tr,{children:_?r?"The results are already in!":"Question is Closed":"Question Closed"})}),C.jsx(cd,{children:_?C.jsx(DF,{children:r?`Correct: ${b==null?void 0:b.text}`:"Event affecting the outcome has occurred."}):"This event has already taken place, so the ability to make a prediction on its outcome is no longer available."})]})]}),!u&&Z&&C.jsxs(yr,{children:[!_&&C.jsx(Vg,{name:"icon-prediction"}),C.jsxs(FF,{children:["Your pick has been recorded. ",C.jsx(ZF,{children:"We’ll notify you of the result."})]})]}),!u&&J&&C.jsxs(yr,{children:[!_&&C.jsx(Sa,{"data-feedback-type":"correct",children:C.jsx(Ce,{name:"correct"})}),C.jsx(Tr,{children:"Thanks for answering. Please stay tuned for the next question."})]}),!u&&(L||X)&&C.jsxs(yr,{className:mn(a&&Ig),children:[!_&&C.jsx(Sa,{"data-feedback-type":j,children:C.jsx(Ce,{name:j})}),C.jsx("div",{children:C.jsxs(hl,{children:[_?C.jsx(kF,{children:j==="incorrect"?C.jsxs(C.Fragment,{children:[C.jsx("div",{children:"So close!"}),C.jsx("div",{children:"Better luck next time"})]}):C.jsxs(C.Fragment,{children:[C.jsx("div",{children:"That’s correct!"}),C.jsx("div",{children:"You chose wisely."})]})}):C.jsx(UF,{"data-feedback-type":j,children:re==null?void 0:re.title}),_?C.jsxs(xF,{children:[C.jsxs("div",{children:["Your pick: ",T==null?void 0:T.text]}),C.jsx("div",{children:j==="incorrect"?`Correct: ${b==null?void 0:b.text}`:""})]}):C.jsx(WF,{children:re==null?void 0:re.description})]})})]})]})}):null},OF=F("div")({name:"Container",class:"c1hygj0s",propsAsIs:!1}),XF=F("div")({name:"Title",class:"t1r84tez",propsAsIs:!1}),GF=F("div")({name:"Description",class:"d1aj1a7k",propsAsIs:!1}),MF=F("div")({name:"AdditionalDescription",class:"ax09ezs",propsAsIs:!1}),PF=()=>Ce,YF=F(PF())({name:"Icon",class:"inkrac",propsAsIs:!0}),HF=({icon:t,title:e,description:n,additionalDescription:i})=>C.jsxs(OF,{children:[t&&C.jsx(YF,{name:t}),C.jsx(XF,{children:e}),C.jsx(GF,{children:n}),i&&C.jsx(MF,{children:i})]}),jF=F("div")({name:"SDKScrollContainer",class:"s102vcph",propsAsIs:!1}),fy=F("div")({name:"Container",class:"c14ielyq",propsAsIs:!1}),JF=()=>jF,QF=F(JF())({name:"QuestionScrollContainer",class:"q1tlqx57",propsAsIs:!0}),KF=F("div")({name:"TopShadow",class:"t1hq58md",propsAsIs:!1}),$F=F("div")({name:"BottomShadow",class:"b1c8nxcx",propsAsIs:!1}),zF=F("div")({name:"SponsorLogo",class:"siozuc3",propsAsIs:!1}),yy=F("div")({name:"Content",class:"cpnc44r",propsAsIs:!1}),qF=F("div")({name:"Title",class:"tq7p3w0",propsAsIs:!1}),eB=F("div")({name:"OptionsWrap",class:"o1jlfj9g",propsAsIs:!1}),by=F("div")({name:"Options",class:"o84pmnd",propsAsIs:!1}),tB=()=>rp,Ng=F(tB())({name:"AlertContainer",class:"a1dybjw9",propsAsIs:!0}),nB=F("div")({name:"EarlyPrediction",class:"e1l05ict",propsAsIs:!1}),iB=()=>Ce,rB=F(iB())({name:"EarlyPredictionIcon",class:"ez9juex",propsAsIs:!0}),sB=()=>Ce,aB=F(sB())({name:"SponsorIcon",class:"s8p4aob",propsAsIs:!0}),Ey=({value:t=0,decimals:e,duration:n=1,preserveValue:i=!0,...r})=>{const[,s]=t.toString().split("."),a=e??((s==null?void 0:s.length)||0);return C.jsx(W6,{end:t,...r,duration:n,decimals:a,enableScrollSpy:!1,preserveValue:i})},oB=F("button")({name:"ButtonContainer",class:"b1b6dl8t",propsAsIs:!1}),lB=F("div")({name:"ButtonPctWrap",class:"b4iik8i",propsAsIs:!1}),cB=F("div")({name:"ButtonPct",class:"b1gq1lnf",propsAsIs:!1}),uB=F("span")({name:"ButtonBody",class:"b1j65z51",propsAsIs:!1}),dB=F("div")({name:"IconContainer",class:"i19tpfua",propsAsIs:!1}),hB=F("div")({name:"IconWrap",class:"i1tubmma",propsAsIs:!1}),Ty=F("img")({name:"Icon",class:"i1grrgwj",propsAsIs:!1}),pB=()=>Ty,mB=F(pB())({name:"IconDefault",class:"ibemyq8",propsAsIs:!0}),gB=()=>Ty,fB=F(gB())({name:"IconCircle",class:"i1dceht",propsAsIs:!0}),yB=F("span")({name:"Title",class:"t116q4vq",propsAsIs:!1}),bB=F("span")({name:"Indicators",class:"i17ajcu2",propsAsIs:!1}),EB=F("div")({name:"PtsWrap",class:"pu9kmlb",propsAsIs:!1}),TB=F("span")({name:"Pts",class:"p1j2j0s0",propsAsIs:!1}),vB=F("span")({name:"Percentage",class:"p1mzj1sj",propsAsIs:!1}),CB=()=>Ce,AB=F(CB())({name:"CheckIcon",class:"cichgz8",propsAsIs:!0}),Ug={[mt.CENTERED]:t=>C.jsx(mB,{"data-testid":"vote-icon",alt:"option-icon",src:t}),[mt.TRANSPARENT]:t=>C.jsx(dB,{"data-testid":"vote-icon",children:C.jsx(hB,{style:{backgroundImage:`url(${t})`}})}),[mt.ROUNDED]:t=>C.jsx(fB,{"data-testid":"vote-icon",alt:"option-icon",src:t}),[mt.NONE]:()=>null,[mt.UNSET]:()=>null},SB=({questionType:t,hasCorrectAnswer:e,correct:n,youVoted:i,questionVoted:r})=>{if(t===ie.POLL&&i)return"voted";if(t===ie.PREDICTION){if(!e&&r)return i?"voted":"unset";if(e&&r)return i?n?"correct":"incorrect":"unset";if(i)return"correct"}return t===ie.TRIVIA&&r&&i?n?"correct":"incorrect":"unset"},_B=({questionType:t,questionVoted:e,correct:n,hasCorrectAnswer:i,questionStatus:r})=>t===ie.TRIVIA?e&&n:t===ie.PREDICTION?e&&n&&i||r===Rr.RESOLVED&&n:!1,RB=yn(oB),IB=t=>{var e;const{id:n,icon:i,text:r,percentageDecimal:s,points:a,onVote:o,markThatVoted:c,firstOption:u,onPercentsAnimated:d,youSelected:y,youVoted:A,questionVoted:T,imageMode:_,answerTimeExpired:b,questionStatus:V,isLoading:w,questionType:W,correct:B,hasCorrectAnswer:Z,marketClosed:L,isEarlyPrediction:X,isAd:J,webos:j}=t,[re,de]=M.useState(0),oe=SB(t),ce=_B({questionType:W,questionVoted:T,correct:B,hasCorrectAnswer:Z,questionStatus:V}),se=L&&W===ie.PREDICTION,me=T||se,we=W===ie.PREDICTION&&!T&&!L&&!J,he=T&&!y&&oe!=="incorrect"&&!A;return M.useLayoutEffect(()=>{de(0),requestAnimationFrame(()=>{de(s)})},[s]),C.jsxs(RB,{value:n,webos:j,autoFocus:u,"data-selected":y,"data-answer-state":oe,disabled:T||w||b||se,"data-is-not-checked":he,"data-a":"intr",onClick:be=>{c(W===ie.PREDICTION?L:V===Rr.RESOLVED),o(be)},"data-is-ad":J,children:[C.jsx(lB,{children:C.jsx(cB,{"data-answer-state":oe,"data-is-not-checked":he,style:{width:`${me?re:0}%`},onTransitionEnd:()=>{se||d==null||d()},"data-is-ad":J})}),C.jsxs(uB,{"data-a":"intr",children:[i&&_&&((e=Ug[_])==null?void 0:e.call(Ug,i)),C.jsx(yB,{"data-a":"intr",children:r}),we&&C.jsxs(EB,{children:[a,C.jsx(TB,{children:"pts"})]}),me&&C.jsxs(bB,{children:[ce&&C.jsx(AB,{name:X?"selectedBetPack":"selected"}),C.jsx(vB,{children:C.jsx(Ey,{value:s,suffix:"%"})})]})]})]})},VB=()=>gy,wB=F(VB())({name:"ShowInContainer",class:"sie6cqo",propsAsIs:!0}),NB=F("div")({name:"WinBarContainer",class:"wgizw4u",propsAsIs:!1}),UB=F("div")({name:"Content",class:"c1l3ucjp",propsAsIs:!1}),kB=F("div")({name:"Title",class:"tx7j799",propsAsIs:!1}),xB=()=>Ce,LB=F(xB())({name:"WinIcon",class:"w4lwuj0",propsAsIs:!0}),FB=F("div")({name:"Points",class:"po9i64o",propsAsIs:!1}),BB=F("span")({name:"PointsCount",class:"pe5g05h",propsAsIs:!1}),WB=F("span")({name:"PointsUnits",class:"p1hdtpmb",propsAsIs:!1}),ZB=({title:t,points:e,isPlayingTimer:n,isTimer:i,animatePoints:r,questionType:s,timerDuration:a,votedInCurrentRender:o,percentsAnimated:c,onTimerExpired:u})=>C.jsx(wB,{enabled:s===ie.PREDICTION&&o,animate:c,children:C.jsxs(NB,{style:{justifyContent:s===ie.PREDICTION?"center":"space-between"},children:[C.jsxs(UB,{children:[t&&C.jsx(kB,{children:t}),e!==void 0&&s!==ie.POLL&&C.jsxs(C.Fragment,{children:[C.jsx(LB,{name:"icon-trophy"}),C.jsxs(FB,{children:[C.jsx(BB,{children:r?C.jsx(Ey,{value:e,delay:.3}):e}),C.jsx(WB,{children:"PTS"})]})]})]}),i&&s!==ie.PREDICTION&&C.jsx(JL,{isPlaying:n,onTimerExpired:u,duration:a})]})}),DB=(t,e)=>{switch(t){case"already_voted":return e===ie.POLL?"You’ve already answered this question on another device.":"You’ve already answered this question on another device. So the points for this answer won't tally.";default:return"Something went wrong, please try again"}},OB=()=>C.jsx(fy,{children:C.jsxs(yy,{children:[C.jsx(ld,{loading:!0,style:{height:"40px",borderRadius:"100px"}}),C.jsx(ld,{loading:!0,style:{height:"24px",margin:"16px 0"}}),C.jsx(by,{children:Array.from({length:5}).map((t,e)=>C.jsx(ld,{loading:!0,style:{height:"44px"}},e))})]})}),XB=({openedQuestion:t,isLoading:e,vote:n,close:i,isEarlyPrediction:r,mastersApp:s,webos:a})=>{var o,c;const u=t.subject,d=t.type,y=t.status,A=(o=t.options)==null?void 0:o.options,T=t.marketClosed,_=t.id,b=M.useRef(),V=M.useRef(),w=s?!1:(t==null?void 0:t.adUnit)===mc.STANDART,[W,B]=M.useState(!1),[Z,L]=M.useState(!1),[X,J]=M.useState(!0),[j,re]=M.useState(!1),[de,oe]=M.useState(!1),[ce,se]=M.useState(""),[me,we]=M.useState(""),[he,be]=M.useState(!1),[Ne,at]=M.useState(!1),[ct,Ke]=M.useState(!1),{runAnimation:le,finished:Se}=H1();M.useEffect(()=>{Se&&i(_)},[i,Se]),M.useEffect(()=>{d===ie.PREDICTION?T&&J(!1):y===Rr.RESOLVED&&J(!1)},[]);const Ae=M.useCallback(Re=>{L(Re),B(!0)},[]),Ue=M.useCallback(()=>{r&&B(!1)},[r]),En=M.useRef(!1),er=M.useCallback(()=>{V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{Ke(!0),le({delay:5500})},4e3)},[le]),tr=M.useCallback(async Re=>{if(!En.current&&(En.current=!0,_)){const ot=Re.currentTarget.value;se(ot);try{await n(_,ot),w&&er()}catch(ut){we(DB(ut.message,d)),se(""),console.error("Error while voting",ut),En.current=!1}}},[d,_,se,n,w,er]),Br=M.useCallback(()=>{re(!0),le({delay:3500})},[le]),Wr=M.useCallback(()=>{oe(!0),le({delay:3500})},[le]),ye=t==null?void 0:t.answers.find(Re=>Re.youVoted===!0),$e=M.useMemo(()=>!!(t!=null&&t.answers.find(Re=>Re.correct===!0)),[t]),ze=M.useMemo(()=>t==null?void 0:t.answers.find(Re=>Re.correct===!0),[t]);M.useEffect(()=>{ye&&W&&!Ne&&(b.current=setTimeout(Wr,1e4),at(!0))},[ye]),M.useEffect(()=>()=>{clearTimeout(b.current),clearTimeout(V.current)},[]);const nr=M.useMemo(()=>t?t.answers.map(Re=>{var ot;return{...Re,questionVoted:!!ye,youSelected:ce===Re.id,isLoading:e,hasCorrectAnswer:$e,questionType:t.type,answerTimeExpired:j,questionStatus:y,imageMode:(ot=t.appearance)==null?void 0:ot.images,onVote:tr}}):[],[$e,j,e,t,ye,y,tr,ce]);M.useEffect(()=>{const Re=nr.some(({percentageDecimal:ut})=>ut!==0),ot=ye&&d===ie.PREDICTION;me&&(r||!Re||T&&ot)&&be(!0)},[nr,me,r,T,d,ye]);const ir=A&&(A.case==="trivia"||A.case==="prediction")?A.value:void 0,_t=y===Rr.RESOLVED&&d===ie.TRIVIA&&!ye&&!X,Tn=d===ie.TRIVIA&&Z,Xt=M.useMemo(()=>w?!1:d===ie.PREDICTION?r?!1:!!(ye&&!$e||ye&&$e&&ze!=null&&ze.youVoted):!0,[d,ye,$e,ze,r,w]),rr=M.useMemo(()=>{if(d===ie.PREDICTION&&ye&&(!$e||$e&&ze!=null&&ze.youVoted))return ye.points;if(!(_t||j))return ye?ye.correct?ye.pointsEarned:0:ze==null?void 0:ze.points},[j,ye,ze,_t,d,$e]),ve=M.useMemo(()=>d===ie.PREDICTION&&ye?$e?$e&&ze!=null&&ze.youVoted?"You won":"":"To win":_t||j?"Time expired":d===ie.POLL?"Time remaining":ye?"You won":"To win",[j,d,ye,_t,$e,ze]),Qs=!Xt||Xt&&d===ie.PREDICTION&&W&&!he,sr=(d===ie.TRIVIA||d===ie.PREDICTION)&&ye&&$e&&(ze==null?void 0:ze.youVoted),Zr=ye||_t||Tn||d===ie.TRIVIA&&y===Rr.RESOLVED&&X,Ln=!r&&(j||de)||ct,Rt=()=>{const Re=()=>d===ie.TRIVIA?ye!=null&&ye.correct?`That's correct!
286
- You chose wisely.`:`So close!
287
- Better luck next time.`:d===ie.POLL?`Thanks for answering.
288
- Please stay tuned for the next question.`:d===ie.PREDICTION?"Stay tuned to see if your prediction was correct.":"",ot=()=>d===ie.TRIVIA?`Your Pick: ${ze==null?void 0:ze.text}`:d===ie.POLL||d===ie.PREDICTION?`Your Pick: ${ye==null?void 0:ye.text}`:"",ut=()=>d===ie.TRIVIA&&(A==null?void 0:A.case)==="trivia"?A==null?void 0:A.value.explanation:d===ie.PREDICTION?u:"";return ct?C.jsx(Ng,{children:C.jsx(HF,{title:Re(),description:ot(),...ye!=null&&ye.correct||d===ie.POLL||d===ie.PREDICTION?{icon:"icon-correct"}:{},...d===ie.TRIVIA||d===ie.PREDICTION?{additionalDescription:ut()}:{}})}):!r&&(j||de)?C.jsx(Ng,{children:C.jsx(vF,{icon:"icon-check-circle",title:"More to come...",description:de?C.jsxs(C.Fragment,{children:["Stay tuned for more questions ",C.jsx("br",{})," and insights."]}):C.jsxs(C.Fragment,{children:["Watch for additional enhanced stream ",C.jsx("br",{})," interactive experience."]})})}):null};return C.jsxs(QF,{children:[r&&C.jsx(KF,{}),C.jsx(fy,{style:r?{marginTop:"-40px"}:{},children:C.jsxs(yy,{children:[!r&&!w&&C.jsx(wg,{feedbackMessages:ir,questionVoted:!!ye,questionVotedCorrectly:ye==null?void 0:ye.correct,questionType:d,hasCorrectAnswer:$e,showExpiredNotification:_t,showClosedNotificationTrivia:Tn,votedInCurrentRender:W,votedAfterQuestionClosed:Z,enteredAnActiveQuestion:X,marketClosed:T,percentsAnimated:he,voteErrorMessage:me,votedAnswer:ye}),Xt&&C.jsx(ZB,{title:ve,points:rr,onTimerExpired:Br,questionType:t.type,isTimer:!e,isPlayingTimer:!ye,animatePoints:sr,timerDuration:Zr?0:Number(((c=t==null?void 0:t.appearance)==null?void 0:c.autoHideInterval)||"30"),votedInCurrentRender:W,percentsAnimated:he}),Ln?Rt():C.jsxs(C.Fragment,{children:[r&&C.jsxs(nB,{children:[C.jsx(rB,{name:"iconEarlyPrediction"}),"EARLY PREDICTION"]}),C.jsx(qF,{style:Qs?{marginTop:0}:{},children:u}),r&&C.jsx(wg,{feedbackMessages:ir,questionVoted:!!ye,questionVotedCorrectly:ye==null?void 0:ye.correct,questionType:d,hasCorrectAnswer:$e,showExpiredNotification:_t,showClosedNotificationTrivia:Tn,votedInCurrentRender:W,votedAfterQuestionClosed:Z,enteredAnActiveQuestion:X,marketClosed:T,percentsAnimated:he,voteErrorMessage:me,isEarlyPrediction:r,correctAnswer:ze,votedAnswer:ye,onAnimationEnd:Ue}),C.jsxs(eB,{children:[C.jsx(by,{children:nr.sort((Re,ot)=>Re.id>ot.id?1:-1).map((Re,ot)=>C.jsx(IB,{...Re,firstOption:ot===0,markThatVoted:Ae,onPercentsAnimated:()=>be(!0),votedAfterQuestionClosed:Z,enteredAnActiveQuestion:X,marketClosed:T,isEarlyPrediction:r,isAd:w,webos:a},Re.id))}),r&&C.jsxs(C.Fragment,{children:[C.jsx($F,{}),C.jsx(zF,{children:C.jsx(aB,{name:"mastersLogoWhite"})})]})]})]})]})})]})},GB=t=>{const{containerSelector:e,getElements:n,onEscape:i,onEnter:r,initialFocusPriority:s="close-btn",enabled:a=!0,dependencies:o=[],resetFocusOn:c=[]}=t,u=M.useRef(0),d=M.useRef(!1),y=M.useRef(c);return c.some((A,T)=>A!==y.current[T])&&(d.current=!1,y.current=c),M.useEffect(()=>{if(!a)return;const A=document.querySelector(e);if(!A)return;const T=n||(V=>Array.from(V.querySelectorAll("button")).filter(w=>!w.disabled));let _=T(A);(()=>{var V,w,W;if(_.length!==0){if(d.current){const B=document.activeElement;if(_.includes(B))return}if(s==="close-btn"){const B=A.querySelector('[data-close-btn="true"]');if(B){const Z=_.indexOf(B);u.current=Z!==-1?Z:0,B.focus()}else u.current=0,(V=_[u.current])==null||V.focus()}else s==="first"?(u.current=0,(w=_[u.current])==null||w.focus()):typeof s=="number"&&(u.current=Math.min(s,_.length-1),(W=_[u.current])==null||W.focus());d.current=!0}})();const b=V=>{var w,W;if(!A)return;_=T(A);const B=_.length;if(B===0)return;const Z=V.keyCode;if(["ArrowDown","ArrowRight"].includes(V.key)||Z===40||Z===39){u.current=(u.current+1)%B,(w=_[u.current])==null||w.focus(),V.preventDefault();return}if(["ArrowUp","ArrowLeft"].includes(V.key)||Z===38||Z===37){u.current=(u.current-1+B)%B,(W=_[u.current])==null||W.focus(),V.preventDefault();return}if(V.key==="Enter"||Z===13||V.key===" "){const L=_[u.current];if(!L)return;const X=document.activeElement;if(!_.includes(X))return;r?r(L,u.current):(L.tagName==="BUTTON"||L.tagName,L.click()),V.preventDefault();return}if(V.key==="Escape"||V.key==="Backspace"||V.code==="Back"||Z===10009){i(),V.preventDefault();return}};return window.addEventListener("keydown",b),()=>{window.removeEventListener("keydown",b)}},[a,e,s,i,r,...o,...c]),{focusedIndex:u}},MB=F("div")({name:"Container",class:"cq8qxhy",propsAsIs:!1}),PB=F("div")({name:"VideoWrapper",class:"v18kj6dc",propsAsIs:!1}),YB=()=>oo,HB=F(YB())({name:"FocusableVideo",class:"fv2nwib",propsAsIs:!0}),kg=F("div")({name:"VideoStatus",class:"v8ptucg",propsAsIs:!1}),xg="caip8y5",jB=F("div")({name:"Content",class:"ccgc65e",propsAsIs:!1}),JB=F("h3")({name:"Title",class:"t1q3iml2",propsAsIs:!1}),QB=F("div")({name:"Description",class:"d1y2pxs8",propsAsIs:!1}),KB=F("img")({name:"Image",class:"ig2j4fc",propsAsIs:!1}),$B=F("div")({name:"ImageContainer",class:"i3dd6iy",propsAsIs:!1}),zB=({instantView:t,isDetail:e,notification:n,controlVideo:i,muted:r})=>{var s,a;const o=M.useRef(null),[c,u]=M.useState(!1),[d,y]=M.useState(void 0),[A,T]=M.useState(!1),_=(t==null?void 0:t.playVideoMuted)===Ef.ENABLED,b=e&&(t==null?void 0:t.autoPlayVideo)===xa.ENABLED,V=_&&b,w=M.useRef(),W=t==null?void 0:t.heading,B=t==null?void 0:t.body,Z=W||B,L=n==null?void 0:n.title,X=n==null?void 0:n.body,J=M.useCallback(()=>{const re=[];o.current&&re.push(o.current);const de=document.querySelector(".webos"),oe=de==null?void 0:de.querySelector('[data-close-btn="true"]');return oe&&re.push(oe),re},[]),j=M.useCallback(re=>{const de=document.activeElement;if(J().includes(de))switch(re.tagName){case"BUTTON":re.click();break;case"VIDEO":w.current=setTimeout(()=>{const oe=re;_&&b?oe.muted?(y(!1),oe.muted=!1):(y(!0),oe.muted=!0):oe.paused||oe.ended?(u(!1),T(!0),oe.play().then(()=>{}).catch(ce=>console.warn("⛔ start failed:",ce))):(u(!0),oe.pause(),T(!0))},0);break}},[b,_,J]);return M.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]),GB({containerSelector:".webos",getElements:J,onEscape:()=>{},onEnter:j,initialFocusPriority:b?0:1,enabled:!0,dependencies:[b,_]}),C.jsxs(MB,{children:[((s=t==null?void 0:t.video)==null?void 0:s.url)&&C.jsxs(PB,{children:[C.jsx(HB,{className:xg,source:t.video.url,poster:t.video.thumbnailUrl,controlVideo:i,muted:r,autoPlay:e&&t.autoPlayVideo===xa.ENABLED,tabIndex:0,ref:o,onPause:()=>{e&&t.autoPlayVideo===xa.ENABLED&&(u==null||u(!0))},onPlay:()=>{u==null||u(!1)},playMuted:_,noControlsButtons:!0,isMutedMediaVideo:d,webos:!0}),c&&A&&C.jsxs(kg,{children:[C.jsx(Ce,{name:"icon-pause"}),"PAUSED"]}),(d||V&&d===void 0)&&C.jsxs(kg,{children:[C.jsx(Ce,{name:"iconMute"}),"MUTED"]})]}),(t==null?void 0:t.image)&&!((a=t==null?void 0:t.video)!=null&&a.url)&&C.jsx($B,{className:xg,"data-rounded":t.imageMode===mt.ROUNDED,children:C.jsx(KB,{src:t==null?void 0:t.image})}),C.jsxs(jB,{children:[C.jsx(JB,{children:e&&Z?W:L}),C.jsx(QB,{children:e&&Z?B:X})]})]})},qB=F("div")({name:"Container",class:"cgn5uen",propsAsIs:!1}),Lg="c1px8nt6",eW=F("div")({name:"Content",class:"c5et2jt",propsAsIs:!1}),tW=F("h3")({name:"Title",class:"t1i2kpk2",propsAsIs:!1}),nW=F("div")({name:"Description",class:"dd3lh3p",propsAsIs:!1}),iW=F("img")({name:"Image",class:"i1gfjeu5",propsAsIs:!1}),rW=F("div")({name:"ImageContainer",class:"i58y999",propsAsIs:!1}),sW=({instantView:t,isDetail:e,notification:n,controlVideo:i,muted:r})=>{var s,a;const o=t==null?void 0:t.heading,c=t==null?void 0:t.body,u=o||c,d=n==null?void 0:n.title,y=n==null?void 0:n.body;return C.jsxs(qB,{children:[((s=t==null?void 0:t.video)==null?void 0:s.url)&&C.jsx(oo,{className:Lg,source:t.video.url,poster:t.video.thumbnailUrl,controlVideo:i,muted:r,autoPlay:e&&t.autoPlayVideo===xa.ENABLED}),(t==null?void 0:t.image)&&!((a=t==null?void 0:t.video)!=null&&a.url)&&C.jsx(rW,{className:Lg,"data-rounded":t.imageMode===mt.ROUNDED,children:C.jsx(iW,{src:t==null?void 0:t.image})}),C.jsxs(eW,{children:[C.jsx(tW,{children:e&&u?o:d}),C.jsx(nW,{children:e&&u?c:y})]})]})},aW=F("div")({name:"Container",class:"c1euiow",propsAsIs:!1}),oW=F("a")({name:"WebLinkBtn",class:"w19zie3h",propsAsIs:!1}),lW=()=>Ce,cW=F(lW())({name:"WebLinkIcon",class:"wyg5v7z",propsAsIs:!0}),uW=({instantView:t,...e})=>C.jsxs(aW,{children:[e.webos?C.jsx(zB,{instantView:t,...e,isDetail:!0}):C.jsx(sW,{instantView:t,...e,isDetail:!0}),(t==null?void 0:t.webLink)&&C.jsxs(oW,{href:t==null?void 0:t.webLink.url,target:"_blank","data-a":"web-link",children:[t==null?void 0:t.webLink.label,C.jsx(cW,{name:"icon-external-link"})]})]}),dW=t=>{const e=new Date(t);if(!e)return"";const n=new Date,i=Math.floor(n.getTime()-e.getTime());return i<6e4?`${Math.floor(i/1e3)}s`:i<36e5?`${Math.floor(i/6e4)}m`:i<864e5?`${Math.floor(i/36e5)}h`:e.getFullYear()===n.getFullYear()?`${e.toLocaleDateString("en-US",{month:"short",day:"numeric"})}`:`${e.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"})}`},hW=F("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),pW=F("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),mW=F("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),gW=()=>Ce,fW=F(gW())({name:"TwitterIcon",class:"t1c454nm",propsAsIs:!0}),yW=F("div")({name:"Details",class:"d11nigc3",propsAsIs:!1}),bW=F("div")({name:"Name",class:"nrxa4k8",propsAsIs:!1}),EW=F("div")({name:"UserNameAndDate",class:"u1p051g3",propsAsIs:!1}),TW=({image:t,name:e,userName:n,verified:i,createdTweet:r})=>{const s=r&&dW(r);return C.jsxs(hW,{children:[t&&C.jsxs(pW,{children:[C.jsx(mW,{className:"SL_AccountImage",src:t}),C.jsx(fW,{name:"twitter"})]}),C.jsxs(yW,{children:[e&&C.jsxs(bW,{className:"SL_TweetAccountName",children:[e," ",i&&C.jsx(Ce,{name:"icon-twitter-verified"})]}),n&&C.jsxs(EW,{className:"SL_TweetAccountUserName",children:["@",n," ",s&&`・ ${s}`]})]})]})},vW=F("div")({name:"Container",class:"c1kzqw87",propsAsIs:!1}),CW=F("div")({name:"Details",class:"d9r1hf9",propsAsIs:!1}),AW=F("div")({name:"Body",class:"bezygt5",propsAsIs:!1}),_a=F("div")({name:"ImagesContainer",class:"i1y8f7ym",propsAsIs:!1}),ud=F("div")({name:"ImagesBlock",class:"i18gwonx",propsAsIs:!1}),vy=F("img")({name:"Image",class:"i3g0xjd",propsAsIs:!1}),SW=()=>vy,Mi=F(SW())({name:"ImageFullSize",class:"io8rt7p",propsAsIs:!0}),_W=()=>vy,dd=F(_W())({name:"ImageHalfSize",class:"i4hn3ox",propsAsIs:!0}),RW=new RegExp("\\s?https?://t.co[^\\s]+(\\s+)?$"),IW=t=>t==null?void 0:t.replace(RW,""),VW=M.memo(({image:t,body:e,muted:n,account:i,accountVerified:r,tweet:s,isDetail:a,controlVideo:o})=>{var c,u,d,y,A;const T=(u=(c=s==null?void 0:s.meta)==null?void 0:c.extendedEntities)==null?void 0:u.media,_=T==null?void 0:T.find(({type:V})=>V==="photo"),b=M.useMemo(()=>{var V,w,W,B;return(B=(W=(w=(V=T==null?void 0:T[0])==null?void 0:V.videoInfo)==null?void 0:w.variants)==null?void 0:W.findLast(({contentType:Z})=>Z==="video/mp4"))==null?void 0:B.url},[T]);return C.jsxs(vW,{children:[C.jsxs(CW,{children:[C.jsx(TW,{image:t,name:(d=s==null?void 0:s.meta)==null?void 0:d.accountName,userName:i,verified:r,createdTweet:s==null?void 0:s.date}),C.jsx(AW,{children:IW(e)}),!a&&_&&C.jsx(_a,{children:C.jsx(Mi,{src:T==null?void 0:T[0].mediaUrlHttps})}),a&&_&&C.jsxs(C.Fragment,{children:[(T==null?void 0:T.length)===1&&C.jsx(_a,{children:C.jsx(Mi,{src:T[0].mediaUrlHttps})}),(T==null?void 0:T.length)===2&&C.jsxs(_a,{children:[C.jsx(dd,{src:T[0].mediaUrlHttps}),C.jsx(dd,{src:T[1].mediaUrlHttps})]}),(T==null?void 0:T.length)===3&&C.jsxs(_a,{children:[C.jsx(dd,{src:T[0].mediaUrlHttps}),C.jsxs(ud,{children:[C.jsx(Mi,{src:T[1].mediaUrlHttps}),C.jsx(Mi,{src:T[2].mediaUrlHttps})]})]}),(T==null?void 0:T.length)===4&&C.jsxs(_a,{children:[C.jsxs(ud,{children:[C.jsx(Mi,{src:T[0].mediaUrlHttps}),C.jsx(Mi,{src:T[1].mediaUrlHttps})]}),C.jsxs(ud,{children:[C.jsx(Mi,{src:T[2].mediaUrlHttps}),C.jsx(Mi,{src:T[3].mediaUrlHttps})]})]})]})]}),!_&&(((y=T==null?void 0:T[0])==null?void 0:y.type)==="video"||((A=T==null?void 0:T[0])==null?void 0:A.type)==="animated_gif")&&b&&C.jsx(oo,{muted:n,source:b,poster:T[0].mediaUrlHttps,controlVideo:o})]})}),wW=F("div")({name:"Container",class:"c1dcxmvf",propsAsIs:!1}),NW=F("blockquote")({name:"Quote",class:"qb4q22c",propsAsIs:!1}),UW=t=>C.jsxs(wW,{children:[t.title&&C.jsx(NW,{children:t.title}),C.jsx(VW,{...t,isDetail:!0})]}),kW=F("div")({name:"QuestionAdvertisementContainer",class:"qwludgs",propsAsIs:!1}),xW=F("div")({name:"QuestionAdvertisementText",class:"qvce6pv",propsAsIs:!1}),LW=F("div")({name:"QuestionAdvertisementImage",class:"qsid7hx",propsAsIs:!1}),FW=({sponsorLogo:t,id:e,hasBanner:n,setAdShowed:i})=>{const r=M.useRef();return M.useEffect(()=>(r.current=setTimeout(()=>{i(!0),n&&Yt.emit("poll",{action:"bannerOpened",payload:{questionId:e}})},5e3),()=>{clearTimeout(r.current)}),[i,e,n]),C.jsxs(kW,{children:[C.jsx(xW,{children:"PRESENTED BY"}),C.jsx(LW,{children:C.jsx("img",{src:t,alt:"ad-sponsor-logo"})})]})},Fg=F("div")({name:"QuestionContainer",class:"q14ckf9e",propsAsIs:!1}),BW=({openedQuestion:t,muted:e,webos:n})=>{var i,r;const{sdk:s}=GL();return((i=t==null?void 0:t.attributes)==null?void 0:i.attributes.case)==="insight"?C.jsx(uW,{...t.attributes.attributes.value,muted:e,controlVideo:s==null?void 0:s.controlVideoPlayer,webos:n}):((r=t==null?void 0:t.attributes)==null?void 0:r.attributes.case)==="tweet"?C.jsx(UW,{...t.attributes.attributes.value,muted:e,controlVideo:s==null?void 0:s.controlVideoPlayer}):null},WW=({extendedQuestion:t,vote:e,close:n,webos:i})=>{const{loading:r,data:s}=t;return s?C.jsx(XB,{webos:i,vote:e,close:n,openedQuestion:s,isLoading:!!r}):C.jsx(OB,{})},ZW=({gamification:t,sdk:e,muted:n,skipAutoClose:i,hideSponsor:r,className:s,hideHeader:a,webos:o})=>{var c,u,d,y,A,T,_,b,V,w,W,B,Z,L,X,J,j,re,de;const oe=Ti(t.openedQuestion.$store),ce=Ti(t.openedQuestion.$extendedStore),[se,me]=M.useState(!1),we=Ti(e.options),he=((c=oe==null?void 0:oe.attributes)==null?void 0:c.type)===ie.FACTOID,be=(u=oe==null?void 0:oe.attributes)==null?void 0:u.backgroundImage,Ne=(d=ce.data)==null?void 0:d.backgroundImage,at=he?be==null?void 0:be.landscapeUrl:Ne==null?void 0:Ne.landscapeUrl,ct=he?be==null?void 0:be.portraitUrl:Ne==null?void 0:Ne.portraitUrl,Ke=d3({containerId:we.containerId,landscapeUrl:at,portraitUrl:ct});if(!oe)return null;const le=oe.type,Se=((A=(y=ce.data)==null?void 0:y.options)==null?void 0:A.options.case)==="factoid"?ce.data.options.options.value.closeTimer:void 0;return((T=ce.data)==null?void 0:T.adUnit)===mc.STANDART&&!se?C.jsxs(Fg,{className:s,children:[Ke,C.jsx(FW,{id:ce.data.id,hasBanner:!!((b=(_=ce.data.promotion)==null?void 0:_.banner)!=null&&b.imageUrl),setAdShowed:me,sponsorLogo:((W=(w=(V=ce.data)==null?void 0:V.promotion)==null?void 0:w.sponsor)==null?void 0:W.logo)||((Z=(B=ce.data)==null?void 0:B.sponsorship)==null?void 0:Z.logo)||""})]}):C.jsxs(Fg,{className:s,children:[Ke,!a&&C.jsx(cF,{closeTimer:i?void 0:Se,close:t.closeQuestion,type:((L=oe.attributes)==null?void 0:L.type)||ie.UNSET,webos:o}),le==="question"&&C.jsx(WW,{webos:o,vote:t.submitAnswer,close:t.closeQuestion,extendedQuestion:ce}),le!=="question"&&C.jsx(BW,{muted:n,openedQuestion:oe,webos:o}),!r&&C.jsx(mF,{sponsorLogo:((j=(J=(X=ce.data)==null?void 0:X.promotion)==null?void 0:J.sponsor)==null?void 0:j.logo)||((de=(re=ce.data)==null?void 0:re.sponsorship)==null?void 0:de.logo)})]})},DW=F("div")({name:"QuestionCaption",class:"q2sl39u",propsAsIs:!1}),OW=()=>Ce,Sl=F(OW())({name:"QuestionActionIcon",class:"q1fa0b9h",propsAsIs:!0}),XW=()=>Sl,GW=F(XW())({name:"QuestionCheckIcon",class:"qxlt78s",propsAsIs:!0}),MW=()=>Ce,PW=F(MW())({name:"QuestionTypeIcon",class:"qmg0vkx",propsAsIs:!0}),YW=F("div")({name:"QuestionTypeLabel",class:"q1uz5j1g",propsAsIs:!1});Ko.LOST+"",Ko.WON+"",Ko.UNSET+"",Ko.DNP+"";const HW=({questionTypeData:t,questionType:e,questionStatus:n})=>C.jsxs(DW,{className:"SL_QuestionCaption",children:[C.jsx(PW,{className:"SL_QuestionTypeIcon","data-testid":"question-type-icon","data-type-trivia":e===ie.TRIVIA,"data-type-poll":e===ie.POLL,name:t.iconName}),C.jsxs(YW,{className:"SL_QuestionTypeLabel",children:[t.label,e===ie.TRIVIA&&n===Rr.RESOLVED&&" • Expired"]})]}),jW=()=>({color:t})=>t,Bg=F("div")({name:"MediaComponentWrap",class:"mek728j",propsAsIs:!1,vars:{"mek728j-0":[jW()]}}),Fr=F("div")({name:"Media",class:"m461t56",propsAsIs:!1}),JW=()=>Fr,QW=F(JW())({name:"MediaImgBottom",class:"m22bh04",propsAsIs:!0}),KW=()=>Fr,$W=F(KW())({name:"MediaVideo",class:"m17u1e34",propsAsIs:!0}),zW=()=>Fr,qW=F(zW())({name:"MediaImgContentMedia",class:"m4j3eds",propsAsIs:!0}),eZ=()=>Fr,tZ=F(eZ())({name:"MediaImgSolid",class:"m1lp3swr",propsAsIs:!0}),nZ=()=>Fr,iZ=F(nZ())({name:"MediaImgRounded",class:"mc7lij",propsAsIs:!0}),rZ=()=>Fr,sZ=F(rZ())({name:"MediaImgCentered",class:"mwwaw7o",propsAsIs:!0}),aZ=()=>Fr,u1=F(aZ())({name:"MediaNone",class:"mqfzyyr",propsAsIs:!0}),oZ="v170mtgf",lZ={[mt.UNSET]:u1,[mt.NONE]:u1,[mt.ROUNDED]:iZ,[mt.CENTERED]:sZ,[mt.TRANSPARENT]:QW,[mt.SOLID]:tZ},Wg=({src:t,imageMode:e=mt.UNSET,withVideo:n,color:i,useContentMedia:r,thumbnailUrl:s})=>{if(!t)return C.jsx(Bg,{color:i,children:C.jsx(u1,{})});const a=r===Ed.ENABLED?qW:lZ[e];return C.jsx(Bg,{color:i,children:n?C.jsx($W,{children:C.jsx(oo,{className:oZ,source:t,poster:s||""})}):C.jsx(a,{children:C.jsx("img",{src:t,alt:""})})})},cZ=()=>({withoutPadding:t})=>t?"0px":"1rem",Cy=F("div")({name:"NotificationContent",class:"n1p3bk1c",propsAsIs:!1,vars:{"n1p3bk1c-0":[cZ()]}}),uZ=F("div")({name:"MainContent",class:"m1g211mu",propsAsIs:!1}),dZ=()=>Ce,hZ=F(dZ())({name:"StyledChevronRight",class:"sx1hq4c",propsAsIs:!0}),Ay=F("div")({name:"NotificationContainer",class:"n1fcriet",propsAsIs:!1}),pZ=()=>({questionType:t})=>t===ie.FACTOID?"7.3rem":"4.5rem",mZ=()=>({webos:t})=>t?"11px 0px 8px 0px":"11px 0px",gZ=()=>({imageMode:t,webos:e})=>e?"330px":t===mt.SOLID?"310px":t===mt.CENTERED||t===mt.ROUNDED||t===mt.TRANSPARENT?"370px":"430px",fZ=F("div")({name:"Body",class:"b1byyovs",propsAsIs:!1,vars:{"b1byyovs-0":[pZ()],"b1byyovs-1":[mZ()],"b1byyovs-2":[gZ()]}}),yZ=()=>({webos:t})=>t?"0.85rem":"1.033rem",bZ=()=>({webos:t})=>t?"0.95rem":"1.25rem",EZ=()=>({webos:t})=>t?"4.7rem":"2.25rem",TZ=()=>({webos:t})=>t?"pre-wrap":"nowrap",vZ=F("div")({name:"Title",class:"t1y5k5id",propsAsIs:!1,vars:{"t1y5k5id-0":[yZ()],"t1y5k5id-1":[bZ()],"t1y5k5id-2":[EZ()],"t1y5k5id-3":[TZ()]}}),CZ=F("div")({name:"Description",class:"dw9eb7l",propsAsIs:!1}),AZ=F("div")({name:"LogoImgContainer",class:"ldu8wgy",propsAsIs:!1}),Sy=F("img")({name:"LogoImg",class:"ln4a3eh",propsAsIs:!1}),SZ=()=>Ay,_Z=F(SZ())({name:"NotificationInterstitialContainer",class:"no2k63v",propsAsIs:!0}),RZ=F("div")({name:"TVButtons",class:"th9nn6a",propsAsIs:!1}),_y=F("button")({name:"TVButton",class:"t1eee77p",propsAsIs:!1}),IZ=()=>_y,VZ=F(IZ())({name:"DismissButton",class:"ds000hw",propsAsIs:!0}),wZ=()=>_y,NZ=F(wZ())({name:"AnswerButton",class:"a1nz9hoe",propsAsIs:!0}),UZ=({title:t,questionType:e,questionTypeData:n,description:i,imageMode:r,webos:s})=>C.jsxs(fZ,{imageMode:r,questionType:e,webos:s,children:[C.jsx(HW,{questionTypeData:n,questionType:e,questionStatus:Rr.UNSET}),t&&C.jsx(vZ,{webos:s,children:t}),i&&C.jsx(CZ,{children:i})]}),kZ=yn(_Z),xZ=yn(VZ),LZ=yn(NZ),FZ=({sponsorLogo:t,onClick:e,webos:n})=>C.jsx(kZ,{autoFocus:!0,webos:n,onClick:e,"data-webos":n,children:C.jsx(Cy,{withoutPadding:!0,children:C.jsx(Sy,{src:t})})}),BZ=({action:t,close:e,questionType:n,inApp:i,insight:r,color:s,webos:a})=>{var o,c,u;const[d,y]=M.useState(!1),A=M.useRef();M.useEffect(()=>(i!=null&&i.sponsorLogo&&(y(!0),A.current=setTimeout(()=>{y(!1)},5e3)),()=>clearTimeout(A.current)),[i==null?void 0:i.sponsorLogo]);const T=my[n];if(!T||!i||!i.notification)return null;const{title:_,image:b,imageMode:V,useContentMedia:w}=i.notification,W=n===ie.FACTOID?r==null?void 0:r.heading:_,B=n===ie.FACTOID?r==null?void 0:r.body:"",Z=b,L=n===ie.FACTOID&&((o=r==null?void 0:r.video)==null?void 0:o.url)&&(i==null?void 0:i.isVideo)&&w===Ed.ENABLED,X=w===Ed.ENABLED?L?(c=r==null?void 0:r.video)==null?void 0:c.url:r==null?void 0:r.image:"";return i!=null&&i.sponsorLogo&&d?C.jsx(FZ,{sponsorLogo:i==null?void 0:i.sponsorLogo,webos:a,onClick:()=>y(!1)}):C.jsxs(Ay,{"data-a":"intr",className:"SL_InApp",onClick:J=>{a&&(t==null||t(J))},"data-is-insight":n===ie.FACTOID,"data-webos":a,children:[(i==null?void 0:i.sponsorLogo)&&C.jsx(AZ,{children:C.jsx(Sy,{src:i==null?void 0:i.sponsorLogo})}),C.jsxs(Cy,{children:[C.jsxs(uZ,{children:[!X&&C.jsx(Wg,{src:Z,imageMode:V,withVideo:!!L,color:s}),X&&C.jsx(Wg,{src:X,imageMode:V,withVideo:!!L,color:s,useContentMedia:w,thumbnailUrl:(u=r==null?void 0:r.video)==null?void 0:u.thumbnailUrl}),C.jsx(UZ,{questionTypeData:T,questionType:n,title:W,description:B,imageMode:V,webos:a})]}),!a&&C.jsx(hZ,{name:"chevronRight"}),a&&C.jsxs(RZ,{children:[C.jsx(xZ,{webos:!0,"data-close-btn":"true",onClick:e,children:"Dismiss"}),C.jsx(LZ,{webos:!0,autoFocus:!0,onClick:t,children:"Answer"})]})]})]})},WZ=()=>rp,ZZ=F(WZ())({name:"OpenedContainer",class:"osyjgip",propsAsIs:!0}),Zg=({sdk:t,notification:e})=>{var n,i,r,s,a,o,c;const u=Ti(t.featuresList.getStore()),{hiding:d,onAnimationEnd:y,finished:A}=H1(),[T]=M.useState(t.getNotificationsStore()),_=Ti(T),b=M.useMemo(()=>t.getActiveNotification(),[t,_]);M.useEffect(()=>{b&&Yt.emit("notification",{action:"rendered",payload:{questionId:b.data.questionId,questionType:b.data.questionType}})},[b]);const V=t.getFeature(Cr.GAMES);return M.useEffect(()=>{A&&(V==null||V.closeQuestion())},[A,V]),!u||!V?null:e&&b&&((n=b.data.inApp)==null?void 0:n.adUnit)===mc.STANDART?C.jsx(BZ,{...b.data,action:b.action,close:b.close,color:((s=(r=(i=b==null?void 0:b.data)==null?void 0:i.inApp)==null?void 0:r.notification)==null?void 0:s.indicatorColor)||((c=(o=(a=b==null?void 0:b.data)==null?void 0:a.inApp)==null?void 0:o.appearance)==null?void 0:c.primaryColor)||"",webos:!0}):e?null:C.jsx(ZZ,{hiding:d,onAnimationEnd:y,children:C.jsx(ZW,{sdk:t,gamification:V,className:"webos",webos:!0})})};hc.init({shouldFocusDOMNode:!0});const DZ=({persistent:t,children:e,sdk:n,showPauseAd:i,pauseAdVastUrl:r,onClosePauseAd:s,onRenderPauseAd:a})=>{const o=Ti(n.uiState),c=M.useCallback(()=>{s==null||s()},[s]),u=M.useCallback(()=>{n.controlVideoPlayer({play:!0})},[n]),d=o.appSidebar||o.promotionSidebar||o.promotionOverlay;return C.jsxs(nC,{sdk:n,sidebar:({promo:y})=>y?C.jsx(Wu,{sdk:n,persistent:t,sidebar:"right"}):C.jsx(Zg,{sdk:n,persistent:t}),notification:({promo:y})=>y?C.jsx(Wu,{sdk:n,notification:!0,persistent:t}):C.jsx(Zg,{notification:!0,sdk:n,persistent:t}),banner:C.jsx(Wu,{sdk:n,persistent:t,banner:"bottom"}),webos:!0,children:[e,r&&!d&&C.jsx(OL,{showPauseAd:i,vastUrls:r,onClose:c,onRender:a,onPlay:u})]})};class OZ extends M.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,n){console.error("StreamLayerSDKTv error:",e,n.componentStack)}render(){return this.state.hasError?this.props.children:C.jsx(DZ,{...this.props})}}const XZ=new Set([Fv]),GZ=t=>C.jsx(Ga.StreamLayerProvider,{...t,themeMode:"dark",withAd:!0,skipOnboarding:!0,withAdNotification:!0,autoEnable:!0,plugins:XZ,friendsTab:"disabled",hideFriends:!0,webOS:!0}),MZ=({sdk:t})=>(M.useEffect(()=>{t.anonymousAuthorization()},[t]),null),PZ=({persistent:t,children:e,showPauseAd:n,pauseAdVastUrl:i,videoPlayerController:r,onRenderPauseAd:s,onClosePauseAd:a})=>{const o=Ga.useStreamLayer(),c=Ga.useStreamLayerTheme(),u=M.useRef();return M.useEffect(()=>{if(o)return r&&(u.current=r,o.addVideoPlayerController(u.current)),()=>{u.current&&o.removeVideoPlayerController(u.current)}},[o]),o?C.jsx("div",{className:"StreamLayerSDK",children:C.jsxs(L6.StreamLayerThemeProvider,{customTheme:c.theme,themeMode:c.themeMode,children:[C.jsx(OZ,{sdk:o,persistent:t,showPauseAd:n,onRenderPauseAd:s,pauseAdVastUrl:i,onClosePauseAd:a,children:e}),o&&C.jsx(MZ,{sdk:o})]})}):null};Object.defineProperty(exports,"useStreamLayer",{enumerable:!0,get:()=>Ga.useStreamLayer});Object.defineProperty(exports,"useStreamLayerUI",{enumerable:!0,get:()=>Ga.useStreamLayerUI});exports.StreamLayerProvider=GZ;exports.StreamLayerSDKTv=PZ;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("./index2.js");require("nanostores");require("react");require("@nanostores/react");require("lodash.throttle");require("react-countup");exports.StreamLayerProvider=e.StreamLayerProvider;exports.StreamLayerSDKTv=e.StreamLayerSDKTv;exports.useStreamLayer=e.jA;exports.useStreamLayerUI=e.WA;