PageSourceSearch

https://www.ataglance.com/Static/dist/js/index.js?v=c1c9e1d7-8b0b-40d3-a5ce-aeb2fc96fde1

js ataglance.com collected 2026-10-04 00:25:24 UTC 1,376,976 bytes, 583 lines download raw bytes

vendor: 10,667 bytes, line 1
1(()=>{var l5=Object.create;var Qc=Object.defineProperty;var u5=Object.getOwnPropertyDescriptor;var c5=Object.getOwnPropertyNames;var d5=Object.getPrototypeOf,h5=Object.prototype.hasOwnProperty;var Ki=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var Ze=(r,e)=>()=>(r&&(e=r(r=0)),e);var pe=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Wl=(r,e)=>{for(var t in e)Qc(r,t,{get:e[t],enumerable:!0})},k_=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of c5(e))!h5.call(r,s)&&s!==t&&Qc(r,s,{get:()=>e[s],enumerable:!(n=u5(e,s))||n.enumerable});return r};var Z=(r,e,t)=>(t=r!=null?l5(d5(r)):{},k_(e||!r||!r.__esModule?Qc(t,"default",{value:r,enumerable:!0}):t,r)),Zp=r=>k_(Qc({},"__esModule",{value:!0}),r);var O=Ze(()=>{});var X={};Wl(X,{_debugEnd:()=>g2,_debugProcess:()=>m2,_events:()=>O2,_eventsCount:()=>L2,_exiting:()=>X_,_fatalExceptions:()=>d2,_getActiveHandles:()=>e2,_getActiveRequests:()=>Z_,_kill:()=>r2,_linkedBinding:()=>Q_,_maxListeners:()=>I2,_preload_modules:()=>A2,_rawDebug:()=>W_,_startProfilerIdleNotifier:()=>v2,_stopProfilerIdleNotifier:()=>y2,_tickCallback:()=>p2,abort:()=>S2,addListener:()=>R2,allowedNodeEnvironmentFlags:()=>l2,arch:()=>O_,argv:()=>N_,argv0:()=>k2,assert:()=>u2,binding:()=>U_,browser:()=>z_,chdir:()=>V_,config:()=>Y_,cpuUsage:()=>Yc,cwd:()=>H_,debugPort:()=>E2,default:()=>V2,dlopen:()=>J_,domain:()=>K_,emit:()=>F2,emitWarning:()=>F_,env:()=>R_,execArgv:()=>M_,execPath:()=>C2,exit:()=>a2,features:()=>c2,hasUncaughtExceptionCaptureCallback:()=>f2,hrtime:()=>Xc,kill:()=>s2,listeners:()=>H2,memoryUsage:()=>n2,moduleLoadList:()=>G_,nextTick:()=>P_,off:()=>M2,on:()=>$n,once:()=>N2,openStdin:()=>o2,pid:()=>x2,platform:()=>L_,ppid:()=>w2,prependListener:()=>U2,prependOnceListener:()=>q2,reallyExit:()=>t2,release:()=>j_,removeAllListeners:()=>$2,removeListener:()=>B2,resourceUsage:()=>i2,setSourceMapsEnabled:()=>P2,setUncaughtExceptionCaptureCallback:()=>h2,stderr:()=>_2,stdin:()=>T2,stdout:()=>b2,title:()=>I_,umask:()=>q_,uptime:()=>D2,version:()=>B_,versions:()=>$_});function rm(r){throw new Error("Node.js process "+r+" is not supported by JSPM core outside of Node.js")}function f5(){!ho||!da||(ho=!1,da.length?Bn=da.concat(Bn):Kc=-1,Bn.length&&A_())}function A_(){if(!ho){var r=setTimeout(f5,0);ho=!0;for(var e=Bn.length;e;){for(da=Bn,Bn=[];++Kc<e;)da&&da[Kc].run();Kc=-1,e=Bn.length}da=null,ho=!1,clearTimeout(r)}}function P_(r){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];Bn.push(new D_(r,e)),Bn.length===1&&!ho&&setTimeout(A_,0)}function D_(r,e){this.fun=r,this.array=e}function Lr(){}function Q_(r){rm("_linkedBinding")}function J_(r){rm("dlopen")}function Z_(){return[]}function e2(){return[]}function u2(r,e){if(!r)throw new Error(e||"assertion error")}function f2(){return!1}function D2(){return _s.now()/1e3}function Xc(r){var e=Math.floor((Date.now()-_s.now())*.001),t=_s.now()*.001,n=Math.floor(t)+e,s=Math.floor(t%1*1e9);return r&&(n=n-r[0],s=s-r[1],s<0&&(n--,s+=tm)),[n,s]}function $n(){return V2}function H2(r){return[]}var Bn,ho,da,Kc,I_,O_,L_,R_,N_,M_,B_,$_,F_,U_,q_,H_,V_,j_,z_,W_,G_,K_,X_,Y_,t2,r2,Yc,i2,n2,s2,a2,o2,l2,c2,d2,h2,p2,m2,g2,v2,y2,b2,_2,T2,S2,x2,w2,C2,E2,k2,A2,P2,_s,em,tm,I2,O2,L2,R2,N2,M2,B2,$2,F2,U2,q2,V2,j2=Ze(()=>{O();R();L();Bn=[],ho=!1,Kc=-1;D_.prototype.run=function(){this.fun.apply(null,this.array)};I_="browser",O_="x64",L_="browser",R_={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},N_=["/usr/bin/node"],M_=[],B_="v16.8.0",$_={},F_=function(r,e){console.warn((e?e+": ":"")+r)},U_=function(r){rm("binding")},q_=function(r){return 0},H_=function(){return"/"},V_=function(r){},j_={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};z_=!0,W_=Lr,G_=[];K_={},X_=!1,Y_={};t2=Lr,r2=Lr,Yc=function(){return{}},i2=Yc,n2=Yc,s2=Lr,a2=Lr,o2=Lr,l2={};c2={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},d2=Lr,h2=Lr;p2=Lr,m2=Lr,g2=Lr,v2=Lr,y2=Lr,b2=void 0,_2=void 0,T2=void 0,S2=Lr,x2=2,w2=1,C2="/bin/usr/node",E2=9229,k2="node",A2=[],P2=Lr,_s={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};_s.now===void 0&&(em=Date.now(),_s.timing&&_s.timing.navigationStart&&(em=_s.timing.navigationStart),_s.now=()=>Date.now()-em);tm=1e9;Xc.bigint=function(r){var e=Xc(r);return typeof BigInt>"u"?e[0]*tm+e[1]:BigInt(e[0]*tm)+BigInt(e[1])};I2=10,O2={},L2=0;R2=$n,N2=$n,M2=$n,B2=$n,$2=$n,F2=Lr,U2=$n,q2=$n;V2={version:B_,versions:$_,arch:O_,platform:L_,browser:z_,release:j_,_rawDebug:W_,moduleLoadList:G_,binding:U_,_linkedBinding:Q_,_events:O2,_eventsCount:L2,_maxListeners:I2,on:$n,addListener:R2,once:N2,off:M2,removeListener:B2,removeAllListeners:$2,emit:F2,prependListener:U2,prependOnceListener:q2,listeners:H2,domain:K_,_exiting:X_,config:Y_,dlopen:J_,uptime:D2,_getActiveRequests:Z_,_getActiveHandles:e2,reallyExit:t2,_kill:r2,cpuUsage:Yc,resourceUsage:i2,memoryUsage:n2,kill:s2,exit:a2,openStdin:o2,allowedNodeEnvironmentFlags:l2,assert:u2,features:c2,_fatalExceptions:d2,setUncaughtExceptionCaptureCallback:h2,hasUncaughtExceptionCaptureCallback:f2,emitWarning:F_,nextTick:P_,_tickCallback:p2,_debugProcess:m2,_debugEnd:g2,_startProfilerIdleNotifier:v2,_stopProfilerIdleNotifier:y2,stdout:b2,stdin:T2,stderr:_2,abort:S2,umask:q_,chdir:V_,cwd:H_,env:R_,title:I_,argv:N_,execArgv:M_,pid:x2,ppid:w2,execPath:C2,debugPort:E2,hrtime:Xc,argv0:k2,_preload_modules:A2,setSourceMapsEnabled:P2}});var L=Ze(()=>{j2()});function p5(){if(z2)return Gl;z2=!0,Gl.byteLength=l,Gl.toByteArray=c,Gl.fromByteArray=v;for(var r=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=n.length;s<a;++s)r[s]=n[s],e[n.charCodeAt(s)]=s;e[45]=62,e[95]=63;function o(p){var T=p.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=T);var b=g===T?0:4-g%4;return[g,b]}function l(p){var T=o(p),g=T[0],b=T[1];return(g+b)*3/4-b}function u(p,T,g){return(T+g)*3/4-g}function c(p){var T,g=o(p),b=g[0],S=g[1],x=new t(u(p,b,S)),E=0,k=S>0?b-4:b,A;for(A=0;A<k;A+=4)T=e[p.charCodeAt(A)]<<18|e[p.charCodeAt(A+1)]<<12|e[p.charCodeAt(A+2)]<<6|e[p.charCodeAt(A+3)],x[E++]=T>>16&255,x[E++]=T>>8&255,x[E++]=T&255;return S===2&&(T=e[p.charCodeAt(A)]<<2|e[p.charCodeAt(A+1)]>>4,x[E++]=T&255),S===1&&(T=e[p.charCodeAt(A)]<<10|e[p.charCodeAt(A+1)]<<4|e[p.charCodeAt(A+2)]>>2,x[E++]=T>>8&255,x[E++]=T&255),x}function h(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[p&63]}function f(p,T,g){for(var b,S=[],x=T;x<g;x+=3)b=(p[x]<<16&16711680)+(p[x+1]<<8&65280)+(p[x+2]&255),S.push(h(b));return S.join("")}function v(p){for(var T,g=p.length,b=g%3,S=[],x=16383,E=0,k=g-b;E<k;E+=x)S.push(f(p,E,E+x>k?k:E+x));return b===1?(T=p[g-1],S.push(r[T>>2]+r[T<<4&63]+"==")):b===2&&(T=(p[g-2]<<8)+p[g-1],S.push(r[T>>10]+r[T>>4&63]+r[T<<2&63]+"=")),S.join("")}return Gl}function m5(){if(W2)return Jc;W2=!0;return Jc.read=function(r,e,t,n,s){var a,o,l=s*8-n-1,u=(1<<l)-1,c=u>>1,h=-7,f=t?s-1:0,v=t?-1:1,p=r[e+f];for(f+=v,a=p&(1<<-h)-1,p>>=-h,h+=l;h>0;a=a*256+r[e+f],f+=v,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=n;h>0;o=o*256+r[e+f],f+=v,h-=8);if(a===0)a=1-c;else{if(a===u)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-c}return(p?-1:1)*o*Math.pow(2,a-n)},Jc.write=function(r,e,t,n,s,a){var o,l,u,c=a*8-s-1,h=(1<<c)-1,f=h>>1,v=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,T=n?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+f>=1?e+=v/u:e+=v*Math.pow(2,1-f),e*u>=2&&(o++,u/=2),o+f>=h?(l=0,o=h):o+f>=1?(l=(e*u-1)*Math.pow(2,s),o=o+f):(l=e*Math.pow(2,f-1)*Math.pow(2,s),o=0));s>=8;r[t+p]=l&255,p+=T,l/=256,s-=8);for(o=o<<s|l,c+=s;c>0;r[t+p]=o&255,p+=T,o/=256,c-=8);r[t+p-T]|=g*128},Jc}function Q2(){if(G2)return ha;G2=!0;let r=p5(),e=m5(),t=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ha.Buffer=o,ha.SlowBuffer=S,ha.INSPECT_MAX_BYTES=50;let n=2147483647;ha.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=s(),!o.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 s(){try{let B=new Uint8Array(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,Uint8Array.prototype),Object.setPrototypeOf(B,C),B.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(B){if(B>n)throw new RangeError('The value "'+B+'" is invalid for option "size"');let C=new Uint8Array(B);return Object.setPrototypeOf(C,o.prototype),C}function o(B,C,D){if(typeof B=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(B)}return l(B,C,D)}o.poolSize=8192;function l(B,C,D){if(typeof B=="string")return f(B,C);if(ArrayBuffer.isView(B))return p(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(St(B,ArrayBuffer)||B&&St(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(St(B,SharedArrayBuffer)||B&&St(B.buffer,SharedArrayBuffer)))return T(B,C,D);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let V=B.valueOf&&B.valueOf();if(V!=null&&V!==B)return o.from(V,C,D);let te=g(B);if(te)return te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return o.from(B[Symbol.toPrimitive]("string"),C,D);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}o.from=function(B,C,D){return l(B,C,D)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function u(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function c(B,C,D){return u(B),B<=0?a(B):C!==void 0?typeof D=="str
1ing"?a(B).fill(C,D):a(B).fill(C):a(B)}o.alloc=function(B,C,D){return c(B,C,D)};function h(B){return u(B),a(B<0?0:b(B)|0)}o.allocUnsafe=function(B){return h(B)},o.allocUnsafeSlow=function(B){return h(B)};function f(B,C){if((typeof C!="string"||C==="")&&(C="utf8"),!o.isEncoding(C))throw new TypeError("Unknown encoding: "+C);let D=x(B,C)|0,V=a(D),te=V.write(B,C);return te!==D&&(V=V.slice(0,te)),V}function v(B){let C=B.length<0?0:b(B.length)|0,D=a(C);for(let V=0;V<C;V+=1)D[V]=B[V]&255;return D}function p(B){if(St(B,Uint8Array)){let C=new Uint8Array(B);return T(C.buffer,C.byteOffset,C.byteLength)}return v(B)}function T(B,C,D){if(C<0||B.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<C+(D||0))throw new RangeError('"length" is outside of buffer bounds');let V;return C===void 0&&D===void 0?V=new Uint8Array(B):D===void 0?V=new Uint8Array(B,C):V=new Uint8Array(B,C,D),Object.setPrototypeOf(V,o.prototype),V}function g(B){if(o.isBuffer(B)){let C=b(B.length)|0,D=a(C);return D.length===0||B.copy(D,0,0,C),D}if(B.length!==void 0)return typeof B.length!="number"||xt(B.length)?a(0):v(B);if(B.type==="Buffer"&&Array.isArray(B.data))return v(B.data)}function b(B){if(B>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return B|0}function S(B){return+B!=B&&(B=0),o.alloc(+B)}o.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==o.prototype},o.compare=function(C,D){if(St(C,Uint8Array)&&(C=o.from(C,C.offset,C.byteLength)),St(D,Uint8Array)&&(D=o.from(D,D.offset,D.byteLength)),!o.isBuffer(C)||!o.isBuffer(D))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===D)return 0;let V=C.length,te=D.length;for(let he=0,fe=Math.min(V,te);he<fe;++he)if(C[he]!==D[he]){V=C[he],te=D[he];break}return V<te?-1:te<V?1:0},o.isEncoding=function(C){switch(String(C).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}},o.concat=function(C,D){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return o.alloc(0);let V;if(D===void 0)for(D=0,V=0;V<C.length;++V)D+=C[V].length;let te=o.allocUnsafe(D),he=0;for(V=0;V<C.length;++V){let fe=C[V];if(St(fe,Uint8Array))he+fe.length>te.length?(o.isBuffer(fe)||(fe=o.from(fe)),fe.copy(te,he)):Uint8Array.prototype.set.call(te,fe,he);else if(o.isBuffer(fe))fe.copy(te,he);else throw new TypeError('"list" argument must be an Array of Buffers');he+=fe.length}return te};function x(B,C){if(o.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||St(B,ArrayBuffer))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);let D=B.length,V=arguments.length>2&&arguments[2]===!0;if(!V&&D===0)return 0;let te=!1;for(;;)switch(C){case"ascii":case"latin1":case"binary":return D;case"utf8":case"utf-8":return Ht(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D*2;case"hex":return D>>>1;case"base64":return Zt(B).length;default:if(te)return V?-1:Ht(B).length;C=(""+C).toLowerCase(),te=!0}}o.byteLength=x;function E(B,C,D){let V=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((D===void 0||D>this.length)&&(D=this.length),D<=0)||(D>>>=0,C>>>=0,D<=C))return"";for(B||(B="utf8");;)switch(B){case"hex":return ce(this,C,D);case"utf8":case"utf-8":return H(this,C,D);case"ascii":return se(this,C,D);case"latin1":case"binary":return ge(this,C,D);case"base64":return j(this,C,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,C,D);default:if(V)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),V=!0}}o.prototype._isBuffer=!0;function k(B,C,D){let V=B[C];B[C]=B[D],B[D]=V}o.prototype.swap16=function(){let C=this.length;if(C%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let D=0;D<C;D+=2)k(this,D,D+1);return this},o.prototype.swap32=function(){let C=this.length;if(C%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let D=0;D<C;D+=4)k(this,D,D+3),k(this,D+1,D+2);return this},o.prototype.swap64=function(){let C=this.length;if(C%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let D=0;D<C;D+=8)k(this,D,D+7),k(this,D+1,D+6),k(this,D+2,D+5),k(this,D+3,D+4);return this},o.prototype.toString=function(){let C=this.length;return C===0?"":arguments.length===0?H(this,0,C):E.apply(this,arguments)}
vendor: 1,143 bytes, line 1
1,o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(C){if(!o.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C?!0:o.compare(this,C)===0},o.prototype.inspect=function(){let C="",D=ha.INSPECT_MAX_BYTES;return C=this.toString("hex",0,D).replace(/(.{2})/g,"$1 ").trim(),this.length>D&&(C+=" ... "),"<Buffer "+C+">"},t&&(o.prototype[t]=o.prototype.inspect),o.prototype.compare=function(C,D,V,te,he){if(St(C,Uint8Array)&&(C=o.from(C,C.offset,C.byteLength)),!o.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(D===void 0&&(D=0),V===void 0&&(V=C?C.length:0),te===void 0&&(te=0),he===void 0&&(he=this.length),D<0||V>C.length||te<0||he>this.length)throw new RangeError("out of range index");if(te>=he&&D>=V)return 0;if(te>=he)return-1;if(D>=V)return 1;if(D>>>=0,V>>>=0,te>>>=0,he>>>=0,this===C)return 0;let fe=he-te,ee=V-D,oe=Math.min(fe,ee),Me=this.slice(te,he),Ue=C.slice(D,V);for(let qe=0;qe<oe;++qe)if(Me[qe]!==Ue[qe]){fe=Me[qe],ee=Ue[qe];break}return fe<ee?-1:ee<fe?1:0};function A(B,C,D,V,te){if(B.length===0)return-1;
vendor: 1,830 bytes, line 1
1if(typeof D=="string"?(V=D,D=0):D>2147483647?D=2147483647:D<-2147483648&&(D=-2147483648),D=+D,xt(D)&&(D=te?0:B.length-1),D<0&&(D=B.length+D),D>=B.length){if(te)return-1;D=B.length-1}else if(D<0)if(te)D=0;else return-1;if(typeof C=="string"&&(C=o.from(C,V)),o.isBuffer(C))return C.length===0?-1:N(B,C,D,V,te);if(typeof C=="number")return C=C&255,typeof Uint8Array.prototype.indexOf=="function"?te?Uint8Array.prototype.indexOf.call(B,C,D):Uint8Array.prototype.lastIndexOf.call(B,C,D):N(B,[C],D,V,te);throw new TypeError("val must be string, number or Buffer")}function N(B,C,D,V,te){let he=1,fe=B.length,ee=C.length;if(V!==void 0&&(V=String(V).toLowerCase(),V==="ucs2"||V==="ucs-2"||V==="utf16le"||V==="utf-16le")){if(B.length<2||C.length<2)return-1;he=2,fe/=2,ee/=2,D/=2}function oe(Ue,qe){return he===1?Ue[qe]:Ue.readUInt16BE(qe*he)}let Me;if(te){let Ue=-1;for(Me=D;Me<fe;Me++)if(oe(B,Me)===oe(C,Ue===-1?0:Me-Ue)){if(Ue===-1&&(Ue=Me),Me-Ue+1===ee)return Ue*he}else Ue!==-1&&(Me-=Me-Ue),Ue=-1}else for(D+ee>fe&&(D=fe-ee),Me=D;Me>=0;Me--){let Ue=!0;for(let qe=0;qe<ee;qe++)if(oe(B,Me+qe)!==oe(C,qe)){Ue=!1;break}if(Ue)return Me}return-1}o.prototype.includes=function(C,D,V){return this.indexOf(C,D,V)!==-1},o.prototype.indexOf=function(C,D,V){return A(this,C,D,V,!0)},o.prototype.lastIndexOf=function(C,D,V){return A(this,C,D,V,!1)};function I(B,C,D,V){D=Number(D)||0;let te=B.length-D;V?(V=Number(V),V>te&&(V=te)):V=te;let he=C.length;V>he/2&&(V=he/2);let fe;for(fe=0;fe<V;++fe){let ee=parseInt(C.substr(fe*2,2),16);if(xt(ee))return fe;B[D+fe]=ee}return fe}function M(B,C,D,V){return Ge(Ht(C,B.length-D),B,D,V)}function F(B,C,D,V){return Ge(Jt(C),B,D,V)}function ne(B,C,D,V){return Ge(Zt(C),B,D,V)}function Q(B,C,D,V){return Ge(yt(C,B.length-D),B,D,V)}o.prototype.write=function(C,D,V,te){if(D===void 0)te="utf8",V=this.length,D=0;
vendor: 11,357 bytes, line 1
1else if(V===void 0&&typeof D=="string")te=D,V=this.length,D=0;else if(isFinite(D))D=D>>>0,isFinite(V)?(V=V>>>0,te===void 0&&(te="utf8")):(te=V,V=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let he=this.length-D;if((V===void 0||V>he)&&(V=he),C.length>0&&(V<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let fe=!1;for(;;)switch(te){case"hex":return I(this,C,D,V);case"utf8":case"utf-8":return M(this,C,D,V);case"ascii":case"latin1":case"binary":return F(this,C,D,V);case"base64":return ne(this,C,D,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,C,D,V);default:if(fe)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),fe=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(B,C,D){return C===0&&D===B.length?r.fromByteArray(B):r.fromByteArray(B.slice(C,D))}function H(B,C,D){D=Math.min(B.length,D);let V=[],te=C;for(;te<D;){let he=B[te],fe=null,ee=he>239?4:he>223?3:he>191?2:1;if(te+ee<=D){let oe,Me,Ue,qe;switch(ee){case 1:he<128&&(fe=he);break;case 2:oe=B[te+1],(oe&192)===128&&(qe=(he&31)<<6|oe&63,qe>127&&(fe=qe));break;case 3:oe=B[te+1],Me=B[te+2],(oe&192)===128&&(Me&192)===128&&(qe=(he&15)<<12|(oe&63)<<6|Me&63,qe>2047&&(qe<55296||qe>57343)&&(fe=qe));break;case 4:oe=B[te+1],Me=B[te+2],Ue=B[te+3],(oe&192)===128&&(Me&192)===128&&(Ue&192)===128&&(qe=(he&15)<<18|(oe&63)<<12|(Me&63)<<6|Ue&63,qe>65535&&qe<1114112&&(fe=qe))}}fe===null?(fe=65533,ee=1):fe>65535&&(fe-=65536,V.push(fe>>>10&1023|55296),fe=56320|fe&1023),V.push(fe),te+=ee}return ae(V)}let W=4096;function ae(B){let C=B.length;if(C<=W)return String.fromCharCode.apply(String,B);let D="",V=0;for(;V<C;)D+=String.fromCharCode.apply(String,B.slice(V,V+=W));return D}function se(B,C,D){let V="";D=Math.min(B.length,D);for(let te=C;te<D;++te)V+=String.fromCharCode(B[te]&127);return V}function ge(B,C,D){let V="";D=Math.min(B.length,D);for(let te=C;te<D;++te)V+=String.fromCharCode(B[te]);return V}function ce(B,C,D){let V=B.length;(!C||C<0)&&(C=0),(!D||D<0||D>V)&&(D=V);let te="";for(let he=C;he<D;++he)te+=Vr[B[he]];return te}function ue(B,C,D){let V=B.slice(C,D),te="";for(let he=0;he<V.length-1;he+=2)te+=String.fromCharCode(V[he]+V[he+1]*256);return te}o.prototype.slice=function(C,D){let V=this.length;C=~~C,D=D===void 0?V:~~D,C<0?(C+=V,C<0&&(C=0)):C>V&&(C=V),D<0?(D+=V,D<0&&(D=0)):D>V&&(D=V),D<C&&(D=C);let te=this.subarray(C,D);return Object.setPrototypeOf(te,o.prototype),te};function ye(B,C,D){if(B%1!==0||B<0)throw new RangeError("offset is not uint");if(B+C>D)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(C,D,V){C=C>>>0,D=D>>>0,V||ye(C,D,this.length);let te=this[C],he=1,fe=0;for(;++fe<D&&(he*=256);)te+=this[C+fe]*he;return te},o.prototype.readUintBE=o.prototype.readUIntBE=function(C,D,V){C=C>>>0,D=D>>>0,V||ye(C,D,this.length);let te=this[C+--D],he=1;for(;D>0&&(he*=256);)te+=this[C+--D]*he;return te},o.prototype.readUint8=o.prototype.readUInt8=function(C,D){return C=C>>>0,D||ye(C,1,this.length),this[C]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(C,D){return C=C>>>0,D||ye(C,2,this.length),this[C]|this[C+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(C,D){return C=C>>>0,D||ye(C,2,this.length),this[C]<<8|this[C+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(C,D){return C=C>>>0,D||ye(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(C,D){return C=C>>>0,D||ye(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},o.prototype.readBigUInt64LE=Vt(function(C){C=C>>>0,Be(C,"offset");let D=this[C],V=this[C+7];(D===void 0||V===void 0)&&je(C,this.length-8);let te=D+this[++C]*2**8+this[++C]*2**16+this[++C]*2**24,he=this[++C]+this[++C]*2**8+this[++C]*2**16+V*2**24;return BigInt(te)+(BigInt(he)<<BigInt(32))}),o.prototype.readBigUInt64BE=Vt(function(C){C=C>>>0,Be(C,"offset");let D=this[C],V=this[C+7];(D===void 0||V===void 0)&&je(C,this.length-8);let te=D*2**24+this[++C]*2**16+this[++C]*2**8+this[++C],he=this[++C]*2**24+this[++C]*2**16+this[++C]*2**8+V;return(BigInt(te)<<BigInt(32))+BigInt(he)}),o.prototype.readIntLE=function(C,D,V){C=C>>>0,D=D>>>0,V||ye(C,D,this.length);let te=this[C],he=1,fe=0;for(;++fe<D&&(he*=256);)te+=this[C+fe]*he;return he*=128,te>=he&&(te-=Math.pow(2,8*D)),te},o.prototype.readIntBE=function(C,D,V){C=C>>>0,D=D>>>0,V||ye(C,D,this.length);let te=D,he=1,fe=this[C+--te];for(;te>0&&(he*=256);)fe+=this[C+--te]*he;return he*=128,fe>=he&&(fe-=Math.pow(2,8*D)),fe},o.prototype.readInt8=function(C,D){return C=C>>>0,D||ye(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},o.prototype.readInt16LE=function(C,D){C=C>>>0,D||ye(C,2,this.length);let V=this[C]|this[C+1]<<8;return V&32768?V|4294901760:V},o.prototype.readInt16BE=function(C,D){C=C>>>0,D||ye(C,2,this.length);let V=this[C+1]|this[C]<<8;return V&32768?V|4294901760:V},o.prototype.readInt32LE=function(C,D){return C=C>>>0,D||ye(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},o.prototype.readInt32BE=function(C,D){return C=C>>>0,D||ye(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},o.prototype.readBigInt64LE=Vt(function(C){C=C>>>0,Be(C,"offset");let D=this[C],V=this[C+7];(D===void 0||V===void 0)&&je(C,this.length-8);let te=this[C+4]+this[C+5]*2**8+this[C+6]*2**16+(V<<24);return(BigInt(te)<<BigInt(32))+BigInt(D+this[++C]*2**8+this[++C]*2**16+this[++C]*2**24)}),o.prototype.readBigInt64BE=Vt(function(C){C=C>>>0,Be(C,"offset");let D=this[C],V=this[C+7];(D===void 0||V===void 0)&&je(C,this.length-8);let te=(D<<24)+this[++C]*2**16+this[++C]*2**8+this[++C];return(BigInt(te)<<BigInt(32))+BigInt(this[++C]*2**24+this[++C]*2**16+this[++C]*2**8+V)}),o.prototype.readFloatLE=function(C,D){return C=C>>>0,D||ye(C,4,this.length),e.read(this,C,!0,23,4)},o.prototype.readFloatBE=function(C,D){return C=C>>>0,D||ye(C,4,this.length),e.read(this,C,!1,23,4)},o.prototype.readDoubleLE=function(C,D){return C=C>>>0,D||ye(C,8,this.length),e.read(this,C,!0,52,8)},o.prototype.readDoubleBE=function(C,D){return C=C>>>0,D||ye(C,8,this.length),e.read(this,C,!1,52,8)};function Te(B,C,D,V,te,he){if(!o.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>te||C<he)throw new RangeError('"value" argument is out of bounds');if(D+V>B.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(C,D,V,te){if(C=+C,D=D>>>0,V=V>>>0,!te){let ee=Math.pow(2,8*V)-1;Te(this,C,D,V,ee,0)}let he=1,fe=0;for(this[D]=C&255;++fe<V&&(he*=256);)this[D+fe]=C/he&255;return D+V},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(C,D,V,te){if(C=+C,D=D>>>0,V=V>>>0,!te){let ee=Math.pow(2,8*V)-1;Te(this,C,D,V,ee,0)}let he=V-1,fe=1;for(this[D+he]=C&255;--he>=0&&(fe*=256);)this[D+he]=C/fe&255;return D+V},o.prototype.writeUint8=o.prototype.writeUInt8=function(C,D,V){return C=+C,D=D>>>0,V||Te(this,C,D,1,255,0),this[D]=C&255,D+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(C,D,V){return C=+C,D=D>>>0,V||Te(this,C,D,2,65535,0),this[D]=C&255,this[D+1]=C>>>8,D+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(C,D,V){return C=+C,D=D>>>0,V||Te(this,C,D,2,65535,0),this[D]=C>>>8,this[D+1]=C&255,D+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(C,D,V){return C=+C,D=D>>>0,V||Te(this,C,D,4,4294967295,0),this[D+3]=C>>>24,this[D+2]=C>>>16,this[D+1]=C>>>8,this[D]=C&255,D+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(C,D,V){return C=+C,D=D>>>0,V||Te(this,C,D,4,4294967295,0),this[D]=C>>>24,this[D+1]=C>>>16,this[D+2]=C>>>8,this[D+3]=C&255,D+4};function Se(B,C,D,V,te){st(C,V,te,B,D,7);let he=Number(C&BigInt(4294967295));B[D++]=he,he=he>>8,B[D++]=he,he=he>>8,B[D++]=he,he=he>>8,B[D++]=he;let fe=Number(C>>BigInt(32)&BigInt(4294967295));return B[D++]=fe,fe=fe>>8,B[D++]=fe,fe=fe>>8,B[D++]=fe,fe=fe>>8,B[D++]=fe,D}function me(B,C,D,V,te){st(C,V,te,B,D,7);let he=Number(C&BigInt(4294967295));B[D+7]=he,he=he>>8,B[D+6]=he,he=he>>8,B[D+5]=he,he=he>>8,B[D+4]=he;let fe=Number(C>>BigInt(32)&BigInt(4294967295));return B[D+3]=fe,fe=fe>>8,B[D+2]=fe,fe=fe>>8,B[D+1]=fe,fe=fe>>8,B[D]=fe,D+8}o.prototype.writeBigUInt64LE=Vt(function(C,D=0){return Se(this,C,D,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Vt(function(C,D=0){return me(this,C,D,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(C,D,V,te){if(C=+C,D=D>>>0,!te){let oe=Math.pow(2,8*V-1);Te(this,C,D,V,oe-1,-oe)}let he=0,fe=1,ee=0;for(this[D]=C&255;++he<V&&(fe*=256);)C<0&&ee===0&&this[D+he-1]!==0&&(ee=1),this[D+he]=(C/fe>>0)-ee&255;return D+V},o.prototype.writeIntBE=function(C,D,V,te){if(C=+C,D=D>>>0,!te){let oe=Math.pow(2,8*V-1);Te(this,C,D,V,oe-1,-oe)}let he=V-1,fe=1,ee=0;for(this[D+he]=C&255;--he>=0&&(fe*=256);)C<0&&ee===0&&this[D+he+1]!==0&&(ee=1),this[D+he]=(C/fe>>0)-ee&255;return D+V},o.prototype.writeInt8=function(C,D,V){return C=+C,D=D>>>0,V||Te(this,C,D,1,127,-128),C<0&&(C=255+C+1),this[D]=C&255,D+1},o.prototype.writeInt16LE=function(C,D,V){return C=+C,D=D>>>0,V||Te(this,C,D,2,32767,-32768),this[D]=C&255,this[D+1]=C>>>8,D+2},o.prototype.writeInt16BE=function(C,D,V){return C=+C,D=D>>>0,V||Te(this,C,D,2,32767,-32768),this[D]=C>>>8,this[D+1]=C&255,D+2},o.prototype.writeInt32LE=function(C,D,V){return C=+C,D=D>>>0,V||Te(this,C,D,4,2147483647,-2147483648),this[D]=C&255,this[D+1]=C>>>8,this[D+2]=C>>>16,this[D+3]=C>>>24,D+4},o.prototype.writeInt32BE=function(C,D,V){return C=+C,D=D>>>0,V||Te(this,C,D,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[D]=C>>>24,this[D+1]=C>>>16,this[D+2]=C>>>8,this[D+3]=C&255,D+4},o.prototype.writeBigInt64LE=Vt(function(C,D=0){return Se(this,C,D,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Vt(function(C,D=0){return me(this,C,D,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ce(B,C,D,V,te,he){if(D+V>B.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("Index out of range")}function Ie(B,C,D,V,te){return C=+C,D=D>>>0,te||Ce(B,C,D,4),e.write(B,C,D,V,23,4),D+4}o.prototype.writeFloatLE=function(C,D,V){return Ie(this,C,D,!0,V)},o.prototype.writeFloatBE=function(C,D,V){return Ie(this,C,D,!1,V)};function Pe(B,C,D,V,te){return C=+C,D=D>>>0,te||Ce(B,C,D,8),e.write(B,C,D,V,52,8),D+8}o.prototype.writeDoubleLE=function(C,D,V){return Pe(this,C,D,!0,V)},o.prototype.writeDoubleBE=function(C,D,V){return Pe(this,C,D,!1,V)},o.prototype.copy=function(C,D,V,te){if(!o.isBuffer(C))throw new TypeError("argument should be a Buffer");if(V||(V=0),!te&&te!==0&&(te=this.length),D>=C.length&&(D=C.length),D||(D=0),te>0&&te<V&&(te=V),te===V||C.length===0||this.length===0)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),C.length-D<te-V&&(te=C.length-D+V);let he=te-V;return this===C&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(D,V,te):Uint8Array.prototype.set.call(C,this.subarray(V,te),D),he},o.prototype.fill=function(C,D,V,te){if(typeof C=="string"){if(typeof D=="str
1ing"?(te=D,D=0,V=this.length):typeof V=="string"&&(te=V,V=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!o.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if(C.length===1){let fe=C.charCodeAt(0);(te==="utf8"&&fe<128||te==="latin1")&&(C=fe)}}else typeof C=="number"?C=C&255:typeof C=="boolean"&&(C=Number(C));if(D<0||this.length<D||this.length<V)throw new RangeError("Out of range index");if(V<=D)return this;D=D>>>0,V=V===void 0?this.length:V>>>0,C||(C=0);let he;if(typeof C=="number")for(he=D;he<V;++he)this[he]=C;else{let fe=o.isBuffer(C)?C:o.from(C,te),ee=fe.length;if(ee===0)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(he=0;he<V-D;++he)this[he+D]=fe[he%ee]}return this};let We={};function et(B,C,D){We[B]=class extends D{constructor(){super(),Object.defineProperty(this,"message",{value:C.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${B}]`,this.stack,delete this.name}get code(){return B}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${B}]: ${this.message}`}}}et("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),et("ERR_INVALID_ARG_TYPE",function(B,C){return`The "${B}" argument must be of type number. Received type ${typeof C}`},TypeError),et("ERR_OUT_OF_RANGE",function(B,C,D){let V=`The value of "${B}" is out of range.`,te=D;return Number.isInteger(D)&&Math.abs(D)>2**32?te=Ye(String(D)):typeof D=="bigint"&&(te=String(D),(D>BigInt(2)**BigInt(32)||D<-(BigInt(2)**BigInt(32)))&&(te=Ye(te)),te+="n"),V+=` It must be ${C}. Received ${te}`,V},RangeError);function Ye(B){let C="",D=B.length,V=B[0]==="-"?1:0;for(;D>=V+4;D-=3)C=`_${B.slice(D-3,D)}${C}`;return`${B.slice(0,D)}${C}`}function Je(B,C,D){Be(C,"offset"),(B[C]===void 0||B[C+D]===void 0)&&je(C,B.length-(D+1))}function st(B,C,D,V,te,he){if(B>D||B<C){let fe=typeof C=="bigint"?"n":"",ee;throw C===0||C===BigInt(0)?ee=`>= 0${fe} and < 2${fe} ** ${(he+1)*8}${fe}`:ee=`>= -(2${fe} ** ${(he+1)*8-1}${fe}) and < 2 ** ${(he+1)*8-1}${fe}`,new We.ERR_OUT_OF_RANGE("value",ee,B)}Je(V,te,he)}function Be(B,C){if(typeof B!="number")throw new We.ERR_INVALID_ARG_TYPE(C,"number",B)}function je(B,C,D){throw Math.floor(B)!==B?(Be(B,D),new We.ERR_OUT_OF_RANGE("offset","an integer",B)):C<0?new We.ERR_BUFFER_OUT_OF_BOUNDS:new We.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${C}`,B)}let pt=/[^+/0-9A-Za-z-_]/g;function mt(B){if(B=B.split("=")[0],B=B.trim().replace(pt,""),B.length<2)return"";for(;B.length%4!==0;)B=B+"=";return B}function Ht(B,C){C=C||1/0;let D,V=B.length,te=null,he=[];for(let fe=0;fe<V;++fe){if(D=B.charCodeAt(fe),D>55295&&D<57344){if(!te){if(D>56319){(C-=3)>-1&&he.push(239,191,189);continue}else if(fe+1===V){(C-=3)>-1&&he.push(239,191,189);continue}te=D;continue}if(D<56320){(C-=3)>-1&&he.push(239,191,189),te=D;continue}D=(te-55296<<10|D-56320)+65536}else te&&(C-=3)>-1&&he.push(239,191,189);if(te=null,D<128){if((C-=1)<0)break;he.push(D)}else if(D<2048){if((C-=2)<0)break;he.push(D>>6|192,D&63|128)}else if(D<65536){if((C-=3)<0)break;he.push(D>>12|224,D>>6&63|128,D&63|128)}else if(D<1114112){if((C-=4)<0)break;he.push(D>>18|240,D>>12&63|128,D>>6&63|128,D&63|128)}else throw new Error("Invalid code point")}return he}function Jt(B){let C=[];for(let D=0;D<B.length;++D)C.push(B.charCodeAt(D)&255);return C}function yt(B,C){let D,V,te,he=[];for(let fe=0;fe<B.length&&!((C-=2)<0);++fe)D=B.charCodeAt(fe),V=D>>8,te=D%256,he.push(te),he.push(V);return he}function Zt(B){return r.toByteArray(mt(B))}function Ge(B,C,D,V){let te;for(te=0;te<V&&!(te+D>=C.length||te>=B.length);++te)C[te+D]=B[te];return te}function St(B,C){return B instanceof C||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===C.name}function xt(B){return B!==B}let Vr=function(){let B="0123456789abcdef",C=new Array(256);for(let D=0;D<16;++D){let V=D*16;for(let te=0;te<16;++te)C[V+te]=B[D]+B[te]}return C}();function Vt(B){return typeof BigInt>"u"?mi:B}function mi(){throw new Error("BigInt not supported")}return ha}var Gl,z2,Jc,W2,ha,G2,K2=Ze(()=>{O();R();L();Gl={},z2=!1;Jc={},W2=!1;ha={},G2=!1});var fa,K,ZG,eQ,X2=Ze(()=>{O();R();L();K2();fa=Q2();fa.Buffer;fa.SlowBuffer;fa.INSPECT_MAX_BYTES;fa.kMaxLength;K=fa.Buffer,ZG=fa.INSPECT_MAX_BYTES,eQ=fa.kMaxLength});var R=Ze(()=>{X2()});var Ae=pe((oQ,Y2)=>{O();R();L();Y2.exports=window.jQuery});var e1=pe((xQ,im)=>{O();R();L();(function(r){typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],r):r(typeof im<"u"&&im.exports?Ae():jQuery)})(function(r){"use strict";function e(W){return!W||W.allowPageScroll!==void 0||W.swipe===void 0&&W.swipeStatus===void 0||(W.allowPageScroll=h),W.click!==void 0&&W.tap===void 0&&(W.tap=W.click),W||(W={}),W=r.extend({},r.fn.swipe.defaults,W),this.each(function(){var ae=r(this),se=ae.data(j);se||(se=new t(this,W),ae.data(j,se))})}function t(W,we){function se(de){if(!(he()||r(de.target).closest(we.excludedElements,ze).length>0)){var Ee=de.originalEvent?de.originalEvent:de;if(!Ee.pointerType||Ee.pointerType!="mouse"||we.fallbackToMouseEvents!=0){var De,Qe=Ee.touches,Wr=Qe?Qe[0]:Ee;return ut=A,Qe?wt=Qe.length:we.preventDefaultEvents!==!1&&de.preventDefault(),At=0,bt=null,Qt=null,Ar=null,He=0,Ir=0,Er=0,kr=1,ii=0,Pt=it(),V(),ee(0,Wr),!Qe||wt===we.fingers||we.fingers===E||st()?(Il=Di(),wt==2&&(ee(1,Qe[1]),Ir=Er=pr(_t[0].start,_t[1].start)),(we.swipeStatus||we.pinchStatus)&&(De=me(Ee,ut))):De=!1,De===!1?(ut=M,me(Ee,ut),De):(we.hold&&(la=setTimeout(r.proxy(function(){ze.trigger("hold",[Ee.target]),we.hold&&(De=we.hold.call(ze,Ee,Ee.target))},this),we.longTapThreshold)),fe(!0),null)}}}function ge(de){var Ee=de.originalEvent?de.originalEvent:de;if(ut!==I&&ut!==M&&!te()){var De,Qe=Ee.touches,Wr=Qe?Qe[0]:Ee,or=oe(Wr);if(sa=Di(),Qe&&(wt=Qe.length),we.hold&&clearTimeout(la),ut=N,wt==2&&(Ir==0?(ee(1,Qe[1]),Ir=Er=pr(_t[0].start,_t[1].start)):(oe(Qe[1]),Er=pr(_t[0].end,_t[1].end),Ar=ia(_t[0].end,_t[1].end)),kr=Pi(Ir,Er),ii=Math.abs(Ir-Er)),wt===we.fingers||we.fingers===E||!Qe||st
vendor: 9,131 bytes, line 1
1()){if(bt=ps(or.start,or.end),Qt=ps(or.last,or.end),Ye(de,Qt),At=ln(or.start,or.end),He=Ai(),Ue(bt,At),De=me(Ee,ut),!we.triggerOnTouchEnd||we.triggerOnTouchLeave){var Nn=!0;if(we.triggerOnTouchLeave){var Rp=ao(this);Nn=Ln(or.end,Rp)}!we.triggerOnTouchEnd&&Nn?ut=Se(N):we.triggerOnTouchLeave&&!Nn&&(ut=Se(I)),ut!=M&&ut!=I||me(Ee,ut)}}else ut=M,me(Ee,ut);De===!1&&(ut=M,me(Ee,ut))}}function ce(de){var Ee=de.originalEvent?de.originalEvent:de,De=Ee.touches;if(De){if(De.length&&!te())return D(Ee),!0;if(De.length&&te())return!0}return te()&&(wt=aa),sa=Di(),He=Ai(),Pe()||!Ie()?(ut=M,me(Ee,ut)):we.triggerOnTouchEnd||we.triggerOnTouchEnd===!1&&ut===N?(we.preventDefaultEvents!==!1&&de.cancelable!==!1&&de.preventDefault(),ut=I,me(Ee,ut)):!we.triggerOnTouchEnd&&yt()?(ut=I,Ce(Ee,ut,T)):ut===N&&(ut=M,me(Ee,ut)),fe(!1),null}function ue(){wt=0,sa=0,Il=0,Ir=0,Er=0,kr=1,V(),fe(!1)}function ye(de){var Ee=de.originalEvent?de.originalEvent:de;we.triggerOnTouchLeave&&(ut=Se(I),me(Ee,ut))}function Te(){ze.off(Ii,se),ze.off(Rn,ue),ze.off(zi,ge),ze.off(er,ce),Oi&&ze.off(Oi,ye),fe(!1)}function Se(de){var Ee=de,De=et(),Qe=Ie(),Wr=Pe();return!De||Wr?Ee=M:!Qe||de!=N||we.triggerOnTouchEnd&&!we.triggerOnTouchLeave?!Qe&&de==I&&we.triggerOnTouchLeave&&(Ee=M):Ee=I,Ee}function me(de,Ee){var De,Qe=de.touches;return(mt()||pt())&&(De=Ce(de,Ee,v)),(Be()||st())&&De!==!1&&(De=Ce(de,Ee,p)),B()&&De!==!1?De=Ce(de,Ee,g):C()&&De!==!1?De=Ce(de,Ee,b):mi()&&De!==!1&&(De=Ce(de,Ee,T)),Ee===M&&ue(de),Ee===I&&(Qe&&Qe.length||ue(de)),De}function Ce(de,Ee,De){var Qe;if(De==v){if(ze.trigger("swipeStatus",[Ee,bt||null,At||0,He||0,wt,_t,Qt]),we.swipeStatus&&(Qe=we.swipeStatus.call(ze,de,Ee,bt||null,At||0,He||0,wt,_t,Qt),Qe===!1))return!1;if(Ee==I&&je()){if(clearTimeout(oa),clearTimeout(la),ze.trigger("swipe",[bt,At,He,wt,_t,Qt]),we.swipe&&(Qe=we.swipe.call(ze,de,bt,At,He,wt,_t,Qt),Qe===!1))return!1;switch(bt){case s:ze.trigger("swipeLeft",[bt,At,He,wt,_t,Qt]),we.swipeLeft&&(Qe=we.swipeLeft.call(ze,de,bt,At,He,wt,_t,Qt));break;case a:ze.trigger("swipeRight",[bt,At,He,wt,_t,Qt]),we.swipeRight&&(Qe=we.swipeRight.call(ze,de,bt,At,He,wt,_t,Qt));break;case o:ze.trigger("swipeUp",[bt,At,He,wt,_t,Qt]),we.swipeUp&&(Qe=we.swipeUp.call(ze,de,bt,At,He,wt,_t,Qt));break;case l:ze.trigger("swipeDown",[bt,At,He,wt,_t,Qt]),we.swipeDown&&(Qe=we.swipeDown.call(ze,de,bt,At,He,wt,_t,Qt))}}}if(De==p){if(ze.trigger("pinchStatus",[Ee,Ar||null,ii||0,He||0,wt,kr,_t]),we.pinchStatus&&(Qe=we.pinchStatus.call(ze,de,Ee,Ar||null,ii||0,He||0,wt,kr,_t),Qe===!1))return!1;if(Ee==I&&Je())switch(Ar){case u:ze.trigger("pinchIn",[Ar||null,ii||0,He||0,wt,kr,_t]),we.pinchIn&&(Qe=we.pinchIn.call(ze,de,Ar||null,ii||0,He||0,wt,kr,_t));break;case c:ze.trigger("pinchOut",[Ar||null,ii||0,He||0,wt,kr,_t]),we.pinchOut&&(Qe=we.pinchOut.call(ze,de,Ar||null,ii||0,He||0,wt,kr,_t))}}return De==T?Ee!==M&&Ee!==I||(clearTimeout(oa),clearTimeout(la),Zt()&&!xt()?(un=Di(),oa=setTimeout(r.proxy(function(){un=null,ze.trigger("tap",[de.target]),we.tap&&(Qe=we.tap.call(ze,de,de.target))},this),we.doubleTapThreshold)):(un=null,ze.trigger("tap",[de.target]),we.tap&&(Qe=we.tap.call(ze,de,de.target)))):De==g?Ee!==M&&Ee!==I||(clearTimeout(oa),clearTimeout(la),un=null,ze.trigger("doubletap",[de.target]),we.doubleTap&&(Qe=we.doubleTap.call(ze,de,de.target))):De==b&&(Ee!==M&&Ee!==I||(clearTimeout(oa),un=null,ze.trigger("longtap",[de.target]),we.longTap&&(Qe=we.longTap.call(ze,de,de.target)))),Qe}function Ie(){var de=!0;return we.threshold!==null&&(de=At>=we.threshold),de}function Pe(){var de=!1;return we.cancelThreshold!==null&&bt!==null&&(de=qe(bt)-At>=we.cancelThreshold),de}function We(){return we.pinchThreshold!==null?ii>=we.pinchThreshold:!0}function et(){var de;return de=we.maxTimeThreshold?!(He>=we.maxTimeThreshold):!0}function Ye(de,Ee){if(we.preventDefaultEvents!==!1)if(we.allowPageScroll===h)de.preventDefault();else{var De=we.allowPageScroll===f;switch(Ee){case s:(we.swipeLeft&&De||!De&&we.allowPageScroll!=S)&&de.preventDefault();break;case a:(we.swipeRight&&De||!De&&we.allowPageScroll!=S)&&de.preventDefault();break;case o:(we.swipeUp&&De||!De&&we.allowPageScroll!=x)&&de.preventDefault();break;case l:(we.swipeDown&&De||!De&&we.allowPageScroll!=x)&&de.preventDefault();break;case h:}}}function Je(){var de=Ht(),Ee=Jt(),De=We();return de&&Ee&&De}function st(){return!!(we.pinchStatus||we.pinchIn||we.pinchOut)}function Be(){return!(!Je()||!st())}function je(){var de=et(),Ee=Ie(),De=Ht(),Qe=Jt(),Wr=Pe(),or=!Wr&&Qe&&De&&Ee&&de;return or}function pt(){return!!(we.swipe||we.swipeStatus||we.swipeLeft||we.swipeRight||we.swipeUp||we.swipeDown)}function mt(){return!(!je()||!pt())}function Ht(){return wt===we.fingers||we.fingers===E||!F}function Jt(){return _t[0].end.x!==0}function yt(){return!!we.tap}function Zt(){return!!we.doubleTap}function Ge(){return!!we.longTap}function St(){if(un==null)return!1;var de=Di();return Zt()&&de-un<=we.doubleTapThreshold}function xt(){return St()}function Vr(){return(wt===1||!F)&&(isNaN(At)||At<we.threshold)}function Vt(){return He>we.longTapThreshold&&k>At}function mi(){return!(!Vr()||!yt())}function B(){return!(!St()||!Zt())}function C(){return!(!Vt()||!Ge())}function D(de){ms=Di(),aa=de.touches.length+1}function V(){ms=0,aa=0}function te(){var de=!1;if(ms){var Ee=Di()-ms;Ee<=we.fingerReleaseThreshold&&(de=!0)}return de}function he(){return ze.data(j+"_intouch")===!0}function fe(de){ze&&(de===!0?(ze.on(zi,ge),ze.on(er,ce),Oi&&ze.on(Oi,ye)):(ze.off(zi,ge,!1),ze.off(er,ce,!1),Oi&&ze.off(Oi,ye,!1)),ze.data(j+"_intouch",de===!0))}function ee(de,Ee){var De={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return De.start.x=De.last.x=De.end.x=Ee.pageX||Ee.clientX,De.start.y=De.last.y=De.end.y=Ee.pageY||Ee.clientY,_t[de]=De,De}function oe(de){var Ee=de.identifier!==void 0?de.identifier:0,De=Me(Ee);return De===null&&(De=ee(Ee,de)),De.last.x=De.end.x,De.last.y=De.end.y,De.end.x=de.pageX||de.clientX,De.end.y=de.pageY||de.clientY,De}function Me(de){return _t[de]||null}function Ue(de,Ee){de!=h&&(Ee=Math.max(Ee,qe(de)),Pt[de].distance=Ee)}function qe(de){return Pt[de]?Pt[de].distance:void 0}function it(){var de={};return de[s]=jr(s),de[a]=jr(a),de[o]=jr(o),de[l]=jr(l),de}function jr(de){return{direction:de,distance:0}}function Ai(){return sa-Il}function pr(de,Ee){var De=Math.abs(de.x-Ee.x),Qe=Math.abs(de.y-Ee.y);return Math.round(Math.sqrt(De*De+Qe*Qe))}function Pi(de,Ee){var De=Ee/de*1;return De.toFixed(2)}function ia(){return 1>kr?c:u}function ln(de,Ee){return Math.round(Math.sqrt(Math.pow(Ee.x-de.x,2)+Math.pow(Ee.y-de.y,2)))}function zr(de,Ee){var De=de.x-Ee.x,Qe=Ee.y-de.y,Wr=Math.atan2(Qe,De),or=Math.round(180*Wr/Math.PI);return 0>or&&(or=360-Math.abs(or)),or}function ps(de,Ee){if(na(de,Ee))return h;var De=zr(de,Ee);return 45>=De&&De>=0||360>=De&&De>=315?s:De>=135&&225>=De?a:De>45&&135>De?l:o}function Di(){var de=new Date;return de.getTime()}function ao(de){de=r(de);var Ee=de.offset(),De={left:Ee.left,right:Ee.left+de.outerWidth(),top:Ee.top,bottom:Ee.top+de.outerHeight()};return De}function Ln(de,Ee){return de.x>Ee.left&&de.x<Ee.right&&de.y>Ee.top&&de.y<Ee.bottom}function na(de,Ee){return de.x==Ee.x&&de.y==Ee.y}var we=r.extend({},we),ji=F||Q||!we.fallbackToMouseEvents,Ii=ji?Q?ne?"MSPointerDown":"pointerdown":"touchstart":"mousedown",zi=ji?Q?ne?"MSPointerMove":"pointermove":"touchmove":"mousemove",er=ji?Q?ne?"MSPointerUp":"pointerup":"touchend":"mouseup",Oi=ji?Q?"mouseleave":null:"mouseleave",Rn=Q?ne?"MSPointerCancel":"pointercancel":"touchcancel",At=0,bt=null,Qt=null,He=0,Ir=0,Er=0,kr=1,ii=0,Ar=0,Pt=null,ze=r(W),ut="start",wt=0,_t={},Il=0,sa=0,ms=0,aa=0,un=0,oa=null,la=null;try{ze.on(Ii,se),ze.on(Rn,ue)}catch{r.error("events not supported "+Ii+","+Rn+" on jQuery.swipe")}this.enable=function(){return this.disable(),ze.on(Ii,se),ze.on(Rn,ue),ze},this.disable=function(){return Te(),ze},this.destroy=function(){Te(),ze.data(j,null),ze=null},this.option=function(de,Ee){if(typeof de=="object")we=r.extend(we,de);else if(we[de]!==void 0){if(Ee===void 0)return we[de];we[de]=Ee}else{if(!de)return we;r.error("Option "+de+" does not exist on jQuery.swipe.options")}return null}}var n="1.6.18",s="left",a="right",o="up",l="down",u="in",c="out",h="none",f="auto",v="swipe",p="pinch",T="tap",g="doubletap",b="longtap",S="horizontal",x="vertical",E="all",k=10,A="start",N="move",I="end",M="cancel",F="ontouchstart"in window,ne=window.navigator.msPointerEnabled&&!window.PointerEvent&&!F,Q=(window.PointerEvent||window.navigator.msPointerEnabled)&&!F,j="TouchSwipe",H={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};r.fn.swipe=function(W){var ae=r(this),se=ae.data(j);if(se&&typeof W=="string"){if(se[W])return se[W].apply(se,Array.prototype.slice.call(arguments,1
1));r.error("Method "+W+" does not exist on jQuery.swipe")}else if(se&&typeof W=="object")se.option.apply(se,arguments);else if(!(se||typeof W!="object"&&W))return e.apply(this,arguments);return ae},r.fn.swipe.version=n,r.fn.swipe.defaults=H,r.fn.swipe.phases={PHASE_START:A,PHASE_MOVE:N,PHASE_END:I,PHASE_CANCEL:M},r.fn.swipe.directions={LEFT:s,RIGHT:a,UP:o,DOWN:l,IN:u,OUT:c},r.fn.swipe.pageScroll={NONE:h,HORIZONTAL:S,VERTICAL:x,AUTO:f},r.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:E}})});var r1=pe((t1,Zc)=>{O();R();L();(function(r){"use strict";function e(g,b){var S=(65535&g)+(65535&b);return(g>>16)+(b>>16)+(S>>16)<<16|65535&S}function t(g,b,S,x,E,k){return e(function(A,N){return A<<N|A>>>32-N}(e(e(b,g),e(x,k)),E),S)}function n(g,b,S,x,E,k,A){return t(b&S|~b&x,g,b,E,k,A)}function s(g,b,S,x,E,k,A){return t(b&x|S&~x,g,b,E,k,A)}function a(g,b,S,x,E,k,A){return t(b^S^x,g,b,E,k,A)}function o(g,b,S,x,E,k,A){return t(S^(b|~x),g,b,E,k,A)}function l(g,b){var S,x,E,k,A;g[b>>5]|=128<<b%32,g[14+(b+64>>>9<<4)]=b;var N=1732584193,I=-271733879,M=-1732584194,F=271733878;for(S=0;S<g.length;S+=16)I=o(I=o(I=o(I=o(I=a(I=a(I=a(I=a(I=s(I=s(I=s(I=s(I=n(I=n(I=n(I=n(E=I,M=n(k=M,F=n(A=F,N=n(x=N,I,M,F,g[S],7,-680876936),I,M,g[S+1],12,-389564586),N,I,g[S+2],17,606105819),F,N,g[S+3],22,-1044525330),M=n(M,F=n(F,N=n(N,I,M,F,g[S+4],7,-176418897),I,M,g[S+5],12,1200080426),N,I,g[S+6],17,-1473231341),F,N,g[S+7],22,-45705983),M=n(M,F=n(F,N=n(N,I,M,F,g[S+8],7,1770035416),I,M,g[S+9],12,-1958414417),N,I,g[S+10],17,-42063),F,N,g[S+11],22,-1990404162),M=n(M,F=n(F,N=n(N,I,M,F,g[S+12],7,1804603682),I,M,g[S+13],12,-40341101),N,I,g[S+14],17,-1502002290),F,N,g[S+15],22,1236535329),M=s(M,F=s(F,N=s(N,I,M,F,g[S+1],5,-165796510),I,M,g[S+6],9,-1069501632),N,I,g[S+11],14,643717713),F,N,g[S],20,-373897302),M=s(M,F=s(F,N=s(N,I,M,F,g[S+5],5,-701558691),I,M,g[S+10],9,38016083),N,I,g[S+15],14,-660478335),F,N,g[S+4],20,-405537848),M=s(M,F=s(F,N=s(N,I,M,F,g[S+9],5,568446438),I,M,g[S+14],9,-1019803690),N,I,g[S+3],14,-187363961),F,N,g[S+8],20,1163531501),M=s(M,F=s(F,N=s(N,I,M,F,g[S+13],5,-1444681467),I,M,g[S+2],9,-51403784),N,I,g[S+7],14,1735328473),F,N,g[S+12],20,-1926607734),M=a(M,F=a(F,N=a(N,I,M,F,g[S+5],4,-378558),I,M,g[S+8],11,-2022574463),N,I,g[S+11],16,1839030562),F,N,g[S+14],23,-35309556),M=a(M,F=a(F,N=a(N,I,M,F,g[S+1],4,-1530992060),I,M,g[S+4],11,1272893353),N,I,g[S+7],16,-155497632),F,N,g[S+10],23,-1094730640),M=a(M,F=a(F,N=a(N,I,M,F,g[S+13],4,681279174),I,M,g[S],11,-358537222),N,I,g[S+3],16,-722521979),F,N,g[S+6],23,76029189),M=a(M,F=a(F,N=a(N,I,M,F,g[S+9],4,-640364487),I,M,g[S+12],11,-421815835),N,I,g[S+15],16,530742520),F,N,g[S+2],23,-995338651),M=o(M,F=o(F,N=o(N,I,M,F,g[S],6,-198630844),I,M,g[S+7],10,1126891415),N,I,g[S+14],15,-1416354905),F,N,g[S+5],21,-57434055),M=o(M,F=o(F,N=o(N,I,M,F,g[S+12],6,1700485571),I,M,g[S+3],10,-1894986606),N,I,g[S+10],15,-1051523),F,N,g[S+1],21,-2054922799),M=o(M,F=o(F,N=o(N,I,M,F,g[S+8],6,1873313359),I,M,g[S+15],10,-30611744),N,I,g[S+6],15,-1560198380),F,N,g[S+13],21,1309151649),M=o(M,F=o(F,N=o(N,I,M,F,g[S+4],6,-145523070),I,M,g[S+11],10,-1120210379),N,I,g[S+2],15,718787259),F,N,g[S+9],21,-343485551),N=e(N,x),I=e(I,E),M=e(M,k),F=e(F,A);return[N,I,M,F]}function u(g){var b,S="",x=32*g.length;for(b=0;b<x;b+=8)S+=String.fromCharCode(g[b>>5]>>>b%32&255);return S}function c(g){var b,S=[];for(S[(g.length>>2)-1]=void 0,b=0;b<S.length;b+=1)S[b]=0;var x=8*g.length;for(b=0;b<x;b+=8)S[b>>5]|=(255&g.charCodeAt(b/8))<<b%32;return S}function h(g){var b,S,x="0123456789abcdef",E="";for(S=0;S<g.length;S+=1)b=g.charCodeAt(S),E+=x.charAt(b>>>4&15)+x.charAt(15&b);return E}function f(g){return unescape(encodeURIComponent(g))}function v(g){return function(b){return u(l(c(b),8*b.length))}(f(g))}function p(g,b){return function(S,x){var E,k,A=c(S),N=[],I=[];for(N[15]=I[15]=void 0,16<A.length&&(A=l(A,8*S.length)),E=0;E<16;E+=1)N[E]=909522486^A[E],I[E]=1549556828^A[E];return k=l(N.concat(c(x)),512+8*x.length),u(l(I.concat(k),640))}(f(g),f(b))}function T(g,b,S){return b?S?p(b,g):function(x,E){return h(p(x,E))}(b,g):S?v(g):function(x){return h(v(x))}(g)}typeof define=="function"&&define.amd?define(function(){return T}):typeof Zc=="object"&&Zc.exports?Zc.exports=T:r.md5=T})(t1)});var Ql,g5,ed,pa,Ts,fo,i1,dn,nm,vi,n1,Kl,po,lr=Ze(()=>{O();R();L();Ql=Z(Ae()),g5=(r,e=!1)=>
1{if(typeof r!="string")return"";let t=e?(0,Ql.default)("html").attr("data-brand")?.toLowerCase()??"":"";t&&(t=`${t}/`);let n=r.endsWith(".svg")?r:`${r}.svg`;return`/Static/svgs/${t}${n}`},ed=async(r,e=!1)=>{let t=g5(r,e);try{let n=await fetch(t);if(!n.ok)throw new Error("Network response was not ok.");return await n.text()}catch(n){return console.error("Error fetching the SVG:",n),""}},pa=r=>{let e=(0,Ql.default)((0,Ql.default)(r)[0]);if(e.length<=0||!e.is(":visible"))return 0;let t=e.outerHeight(!0),n=(0,Ql.default)(window).height(),s=e[0].getBoundingClientRect(),a=s.top,o=s.bottom;return Math.max(0,a>0?Math.min(t,n-a):Math.min(o,n))},Ts=r=>{let e=[];return{el:r,listeners:e,on:(s,a)=>{for(let o of s.split(" "))e.push({eventName:o,callback:a})},emit:(s,...a)=>{for(let o of e)for(let l of s.split(" "))o.eventName===l&&o.callback(...a)}}},fo=r=>{document.cookie=`${r}= ; Secure;expires = Thu, 01 Jan 1970 00:00:00 GMT ; path = /;`},i1=(r,e)=>{let t=new Date;t.setFullYear(t.getFullYear()+1),document.cookie=`${r}=${e};path=/;Secure;expires=${t.toGMTString()};`},dn=r=>{let e=document.cookie.match(new RegExp(`${r}=([^;]+)`));return e?e[1]:null},nm=(r=null,e=null,t=null)=>{if(typeof r!="string")return"";try{let n=r.startsWith("/")?new URL(window.location.origin+r):new URL(r);return typeof e=="string"&&e.endsWith("px")&&n.searchParams.set("width",e),typeof t=="string"&&t.endsWith("px")&&n.searchParams.set("height",t),n.toString()}catch(n){return console.error(n),""}},vi=(r,e)=>{let t=null;return(...n)=>{window.clearTimeout(t),t=window.setTimeout(()=>{r(...n)},e)}},n1=(r,e)=>{if(!Array.isArray(r))return[];if(!Array.isArray(e))return r;let t=new Set(e);return r.filter(n=>!t.has(n))},Kl=(r,e)=>{let t=new Set(e);return r.filter(n=>t.has(n))},po=r=>{let t=new Date(r.slice(0,4),r.slice(4,6)-1,r.slice(6,8))-new Date;return Math.ceil(t/(1e3*60*60*24))}});var Ut=pe((HQ,s1)=>{O();R();L();lr();function hn(){}function v5(r,e){if(r===null)return"";if(r!==document){let n=r.getAttribute(e);if(n!==null)return n}let t=r.querySelector(`[${e}]`);return t===null?"":t.getAttribute(e)}function y5(r,e){let t=r,n=null;for(;t&&!n;)n=t.querySelector(e),t=t.parentNode;return n}function b5(r,e){let t=r,n=null,s=!1;for(;t&&!s;)s=t.hasAttribute(e),s&&(n=t),t=t.parentNode;return n}function _5(){let r=this.getDataAttributeFromChildNode(document,"data-user-status"),e=this.getDataAttributeFromChildNode(document,"data-email-subscriber");return{userId:this.getDataAttributeFromChildNode(document,"data-user-id"),emailSubscriber:e?"true":"false",userStatus:r==="true"?"registered":"guest",isLoggedIn:r,city:dn("City"),state:dn("State"),country:dn("ClientCountry"),language:dn("Language"),userEmail:this.getDataAttributeFromChildNode(document,"data-email"),userPhone:this.getDataAttributeFromChildNode(document,"data-phone-number"),userFirstName:this.getDataAttributeFromChildNode(document,"data-first-name"),userLastName:this.getDataAttributeFromChildNode(document,"data-last-name"),userStreet:this.getDataAttributeFromChildNode(document,"data-street-address"),userZipcode:this.getDataAttributeFromChildNode(document,"data-postalcode"),customerType:this.getDataAttributeFromChildNode(document,"data-customer-type")}}function T5(){let r=sessionStorage.getItem("promoStack");return r||""}function S5(){let r="",e=document.querySelectorAll(".Breadcrumbs > .container > li > .item");for(var t=0;t<e.length;t++)t+1==e.length?r+=`${e[t].innerHTML}`:r+=`${e[t].innerHTML} > `;return r}function x5(r){r=r.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var e=new RegExp("[\\?&]"+r+"=([^&#]*)"),t=e.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function w5(){let r=window.location;if(history.replaceState)history.replaceState("",document.title,r.pathname+r.search);else{let e=window.scrollY,t=window.scrollX;r.hash="",window.scrollTo(t,e)}}hn.prototype.getDataAttributeFromChildNode=v5;hn.prototype.findAncestor=y5;hn.prototype.findAncestorWithAttribute=b5;hn.prototype.getUserData=_5;hn.prototype.getBreadcrumbs=S5;hn.prototype.getCookie=dn;hn.prototype.getUrlParameter=x5;hn.prototype.getPromoStack=T5;hn.prototype.removeHash=w5;s1.exports=hn});var ma,a1,Qr,o1,mo,Xl,Yl=Ze(()=>{O();R();L();ma=Z(Ae()),a1=Z(Ut());lr();Qr=new a1.default,o1=(r,e,t,n,s,a,o,l=null,u={})=>{let c=l;(c===null||c==="")&&(c=Qr.getDataAttributeFromChildNode(r,"data-onhand"));let h=0,f=Qr.getDataAttributeFromChildNode(r,"data-hasbackorder");f&&(h=Number(Qr.getDataAttributeFromChildNode(r,"data-bckorderqty")));let v=Qr.getDataAttributeFromChildNode(r,"data-backorder-availability-date"),p=(0,ma.default)('input[name="enableQTYSelectorVOne"]').val(),T=Number(u.oldQty),g=Number(s),b=T+g,S=h+Number(c),x=g;if(p==="VersionOneEnabled")x=Qr.getDataAttributeFromChildNode(r,"min");else if(+g==0)x=Qr.getDataAttributeFromChildNode(r,"min");else{if(f==="false"&&T>=Number(c))return;if(f==="false"&&b>c)x=c-T;else if(f==="false"&&b<=c)x=g;else{if(f==="true"&&T>=Number(S))return;f==="true"&&b>S?x=S-T:f==="true"&&b<=S&&(x=g)}}let E=+(n*x).toFixed(2),k=Number.parseInt(c)<Number(b),A=e;A=e.replace(/"/g,""),dataLayer.push({ecommerce:null}),dataLayer.push({event:"add_to_cart",ecommerce:{currency:document.querySelector("html").getAttribute("data-gtm-currency"),value:E,items:[{item_id:t,item_name:A,item_category:o,item_brand:Qr.getDataAttributeFromChildNode(document,"data-brand"),item_variant:a,price:+Number(n).toFixed(2),quantity:Number(x),is_out_of_stock:k}]}}),Number(s)>Number.parseInt(c)&&f==="true"&&v!==""&&dataLayer.push({event:"add_to_cart_oos",oos_item_name:A,oos_item_id:t,oos_item_category:o,oos_item_price:n,oos_item_sku:a,oos_date_expected_in_stock:v,oos_days_until_in_stock:po(v)})},mo=(r,e="Add to Cart",t={})=>{let n=1;if(r!==null){let h=r.querySelector("[data-gtm-product-quantity]"),f=Qr.getDataAttributeFromChildNode(r,"data-gtm-product-quantity");f!==void 0&&Number.parseInt(f)>0?n=f:h!==null&&h.options!==void 0?n=h.options[h.selectedIndex].value:h!==null&&h.tagName==="INPUT"?n=h.value:h!==null&&(n=h)}let s=Qr.getDataAttributeFromChildNode(r,"data-gtm-category-name");(s===null||s==="")&&(s=(0,ma.default)(".Breadcrumbs > .container > a:last").text().trim());let a=Qr.getDataAttributeFromChildNode(r,"data-gtm-product-name"),o=Qr.getDataAttributeFromChildNode(r,"data-gtm-product-id"),l=Qr.getDataAttributeFromChildNode(r,"data-gtm-product-price"),u=Qr.getDataAttributeFromChildNode(r,"data-gtm-variant-id"),c=document.querySelector("[data-wishlist-name]")?.getAttribute("data-wishlist-name")??r.getAttribute("data-gtm-product-list");o1(r,a,o,l,n,u,s,null,t)},Xl=()=>((0,ma.default)("html").on("click","[data-gtm-add-to-cart-trigger]",function(){let r="Add to Cart",e=(0,ma.default)(this).find(".label").text().trim().toLowerCase();(0,ma.default)(this).hasClass("reorder")?r="Reorder":(0,ma.default)(this).hasClass("renew")?r="Renew":(e==="added to cart"||e==="add to cart")&&(r="Add to Cart");
1let t=Qr.findAncestorWithAttribute(this,"data-gtm-product");if(t){let n=t.querySelector("[ada-message]");n!=null&&(n.textContent=`Product ${Qr.getDataAttributeFromChildNode(t,"data-gtm-product-name")} Added to cart`)}}),{addToCartPush:mo,addToCartDatalayerPush:o1})});var p1,vo,sm=Ze(()=>{O();R();L();p1=Z(Ut()),vo=()=>{let r=new p1.default,e=document.querySelector("html")?.getAttribute("data-gtm-currency"),t=r.getDataAttributeFromChildNode(document,"data-gtm-product-id"),n=r.getDataAttributeFromChildNode(document,"data-gtm-product-name"),s=r.getDataAttributeFromChildNode(document,"data-brand"),a=r.getDataAttributeFromChildNode(document,"data-gtm-category-name"),o=r.getDataAttributeFromChildNode(document,"data-gtm-product-variant"),l=r.getDataAttributeFromChildNode(document,"data-gtm-product-price"),c=r.getDataAttributeFromChildNode(document,"data-out-of-stock").toLowerCase()==="true",h=l?parseFloat(l):0,f=1;window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:null}),dataLayer.push({event:"view_item",ecommerce:{currency:e,items:[{item_id:t,item_name:n,item_category:a,item_brand:s,item_variant:o,price:h,quantity:f,is_out_of_stock:c}]}})}});var cm=pe((yK,T1)=>{O();R();L();var b1=Z(Ut()),A5=new b1.default;function va(){let r=document.querySelectorAll("[data-gtm-custom-event]"),e=document.querySelectorAll(".js-gtm-data");for(let t=0;t<e.length;t++)if(e[t].getAttribute("listener")!=="true"){let n=s=>{P5(s)};e[t].addEventListener("change",n,!0),e[t].setAttribute("listener","true")}for(let t=0;t<r.length;t++)r[t].getAttribute("listener")!=="true"&&(r[t].addEventListener("click",function(){this.getAttribute("data-gtm-custom-event")==="account"?R5(this):this.getAttribute("data-gtm-custom-event")==="downloads"?N5(this):_1(this)}),r[t].setAttribute("listener","true"));setTimeout(()=>{let t=document.querySelectorAll("div.prettydropdown"),n;for(let s of t){let a=s.querySelectorAll("li");if(s.getAttribute("listener")!=="true"){let o=0;s.addEventListener("click",()=>{o++;for(let l of a)l.classList.contains("selected")&&o===2&&(n=l.getAttribute("data-value"),o=0,D5(n))}),s.setAttribute("listener","true")}}},0)}function _1(r){let e={event:"customEvent",eventCategory:r.getAttribute("data-gtm-custom-event"),eventAction:r.getAttribute("data-gtm-custom-event-action"),eventLabel:r.getAttribute("data-gtm-custom-event-label")};dataLayer.push(e)}function P5(r){let e={event:"customEvent",eventCategory:r.target.options[r.target.selectedIndex].getAttribute("data-gtm-custom-event"),eventAction:r.target.options[r.target.selectedIndex].getAttribute("data-gtm-custom-event-action"),eventLabel:r.target.options[r.target.selectedIndex].getAttribute("data-gtm-custom-event-label")};dataLayer.push(e)}function D5(r){let e={event:"customEvent",eventCategory:"search",eventAction:`sort ~ ${r}`,eventLabel:r};dataLayer.push(e)}function I5(r,e){dataLayer.push({event:"customEvent",eventCategory:"order discount",eventAction:"discount applied",eventLabel:`${r} - ${e}`})}function O5(r){dataLayer.push({event:"customEvent",eventCategory:"order discount",eventAction:"discount failed",eventLabel:r})}function L5(r){dataLayer.push({event:"customEvent",eventCategory:"order discount",eventAction:"discount purchased",eventLabel:r})}function R5(r){let e={event:"customEvent",eventCategory:"account",eventAction:r.getAttribute("data-gtm-custom-event-action"),eventLabel:r.getAttribute("data-gtm-custom-event-label"),userLogOuts:"1"};dataLayer.push(e)}function N5(r){let e={event:"customEvent",eventCategory:"downloads",eventAction:r.getAttribute("data-gtm-custom-event-action"),eventLabel:r.getAttribute("data-gtm-custom-event-label"),downloads:"1"};dataLayer.push(e)}function M5(){let r=A5.getUrlParameter("s"),e="";switch(r){case"n":e="404";break;case"e":e="500";break;case"u":e="401";break;default:e="404";break}dataLayer.push({event:"customEvent",eventCategory:"error",eventAction:"http",eventLabel:e})}function B5(r){dataLayer.push({event:"customEvent",eventCategory:"error",eventAction:"page",eventLabel:r})}va.prototype.sendEventToDataLayer=_1;va.prototype.sendErrorToDataLayer=M5;va.prototype.sendHttpErrorToDataLayer=B5;va.prototype.sendDiscountAppliedToDataLayer=I5;va.prototype.sendDiscountsPurchasedToDataLayer=L5;va.prototype.sendDiscountFailedToDataLayer=O5;T1.exports=va});var M1=pe((MK,N1)=>{O();R();L();
1var Rr=Z(Ae()),O1=Z(Ut()),id=new O1.default,To=[],dm=[],ya=[],hm=[],fm=[],L1=document.querySelector("html")?.getAttribute("data-gtm-currency"),z5=id.getDataAttributeFromChildNode(document,"data-gtm-product-id"),W5=id.getDataAttributeFromChildNode(document,"data-gtm-product-name"),G5=id.getDataAttributeFromChildNode(document,"data-gtm-category-name");function Q5(){this.$promos=(0,Rr.default)("[data-gtm-has-promo-tracking=True]"),K5.call(this),X5.call(this)}function K5(){(0,Rr.default)("html").on("click","[data-gtm-has-promo-tracking=True] a:not(.Close)",function(){let r=id.findAncestorWithAttribute(this,"data-gtm-promo-id");r!==void 0&&J5(this,r)})}function X5(){let r;window.addEventListener("DOMContentLoaded",()=>{I1.call(this),D1()}),window.addEventListener("scroll",()=>{r&&window.clearTimeout(r),r=window.setTimeout(()=>{I1.call(this),D1()},1e3)})}function D1(){(To.length>0||ya.length>0)&&Y5()}function I1(){var r=(0,Rr.default)(window).height(),e=(0,Rr.default)(document).scrollTop(),t=e,n=e+r;this.$promos.each(function(){let s=(0,Rr.default)(this).offset().top,a=s+(0,Rr.default)(this).height();if(s>=t&&s<n||a>=t&&a<n){let o=(0,Rr.default)(this).attr("data-gtm-promo-id"),l=(0,Rr.default)(this).attr("data-gtm-promo-props").split("||"),u=(0,Rr.default)(this).attr("data-gtm-promo-non-ecommerce"),c={id:o,name:l[0],creative:l[1],position:l[2]};if(fm.push(R1((0,Rr.default)(this))),u==="True"){let h=ya.map(v=>v.id).indexOf(o),f=hm.map(v=>v.id).indexOf(o);h===-1&&f===-1&&ya.push(c)}else{let h=To.map(v=>v.id).indexOf(o),f=dm.map(v=>v.id).indexOf(o);h===-1&&f===-1&&To.push(c)}}})}function Y5(){dataLayer.push({event:"promoView",ecommerce:{promotions:To}});for(var r=0;r<=ya.length-1;r++)Z5(ya[r],"view");eR(),dm=dm.concat(To),hm=hm.concat(ya),To=[],ya=[],fm=[]}function J5(r,e){let t=[],n=(0,Rr.default)(e).attr("data-gtm-promo-id"),s=(0,Rr.default)(e).attr("data-gtm-promo-props").split("||"),a=(0,Rr.default)(e).attr("data-gtm-promo-location-id"),o=R1((0,Rr.default)(e));t.push(o),dataLayer.push({ecommerce:null}),dataLayer.push({event:"select_promotion",ecommerce:{currency:L1,creative_name:s[1],creative_slot:a,promotion_id:n,promotion_name:s[0]}})}function Z5(r,e){dataLayer.push({event:"customEvent",eventCategory:r.name,eventAction:`${r.creative} ${e}`,eventLabel:r.position})}function eR(){if(!fm.length)return;let r=(0,Rr.default)("[data-gtm-has-promo-tracking=True]").first(),e=r.attr("data-gtm-promo-id"),t=r.attr("data-gtm-promo-props").split("||"),n=r.attr("data-gtm-promo-location-id");dataLayer.push({ecommerce:null}),dataLayer.push({event:"view_promotion",ecommerce:{currency:L1,creative_name:t[1],creative_slot:n,promotion_id:e,promotion_name:t[0]}})}function R1(r){return{item_id:z5||"",item_name:W5||"",item_category:G5||""}}N1.exports=Q5});var H1=pe((qK,q1)=>{O();R();L();var B1=Z(Ut()),$1=Z(Ae()),UK=new B1.default;function F1(){typeof $$epiforms<"u"&&$$epiforms(document).ready(function(){$$epiforms(".CustomEpiForms").on("formsSubmitted",function(e){if(e.isFinalizedSubmission&&e.isSuccess&&typeof dataLayer<"u"){var t=$$epiforms(this).get(0),n=t.id;$1.default.ajax({url:`/GetFormName?contentID=${n}`,method:"GET",success:s=>{s&&U1(s)}})}})})}function U1(r){var e={event:"customEvent",eventCategory:"Form",eventAction:"Submitted",eventLabel:r};dataLayer.push(e)}F1.prototype.sendFormSubmissionToDataLayer=U1;q1.exports=F1});var nT=pe((IX,iT)=>{O();R();L();var tT=Z(Ae()),rT=Z(Ut()),iR=new rT.default,nR=()=>{(0,tT.default)("input[data-gtm-epi-form-submit]").each(function(){dataLayer.push({event:"form_start",form_name:this.getAttribute("data-form-name"),form_id:this.getAttribute("data-form-id"),form_type:this.getAttribute("data-form-type"),form_value:this.getAttribute("data-form-value")})}),$$epiforms(".EPiServerForms").on("formsSubmitted",function(e){let t=iR.findAncestor(this,"[data-gtm-epi-form-submit]");dataLayer.push({event:"form_submit",form_name:t.getAttribute("data-form-name"),form_id:t.getAttribute("data-form-id"),form_type:t.getAttribute("data-form-type"),form_value:t.getAttribute("data-form-value")})})};iT.exports=nR});var xa,cT,uT,ld,_m=Ze(()=>{O();R();L();xa=Z(Ae()),cT=Z(Ut()),uT=new cT.default,ld=()=>{let r=document.querySelector("html")?.getAttribute("data-gtm-currency")||"USD",e=()=>{let s=[];return(0,xa.default)("#mini-cart .cart-item").each(function(){let a=(0,xa.default)(this),o=a.attr("data-onhand"),l=a.attr("data-gtm-product-price")||"0",u=+parseFloat(l.toString().replace(/[^0-9.]/g,"")).toFixed(2)||0,c=parseInt(a.attr("data-gtm-product-quantity"),10)||1,h=!1;h=Number.parseInt(o)<Number(c),s.push({item_id:a.attr("data-gtm-product-sku")||"",item_name:a.attr("data-gtm-product-name")||"",item_category:a.attr("data-gtm-product-category")||"",item_brand:uT.getDataAttributeFromChildNode(document,"data-brand")||"",item_variant:a.attr("data-gtm-product-sku")||"",price:+(u/c).toFixed(2),quantity:c,is_out_of_stock:h})}),s},t=s=>{let a=e(),o=a.reduce((u,c)=>Number(u+c.price*c.quantity),0),l=+Number(o).toFixed(2);if(s==="view_cart_minicart"&&dataLayer.push({event:"view_cart",ecommerce:{currency:r,value:l,type:"minicart",items:a}}),s==="checkout_minicart"){let u=document.querySelector(".mvp-mini-cart");dataLayer.push({event:"begin_checkout",ecommerce:{currency:r,value:l,checkout_type:"minicart",items:a}})}},n=s=>{let a=s.attr("data-onhand"),o=s.attr("data-gtm-product-price")||"0",l=+parseFloat(o.toString().replace(/[^0-9.]/g,"")).toFixed(2)||0,u=parseInt(s.attr("data-gtm-product-quantity"),10)||1,c=!1;c=Number.parseInt(a)<Number(u),dataLayer.push({event:"remove_from_cart",ecommerce:{currency:r,value:l,items:[{item_id:s.attr("data-id")||"",item_name:s.attr("data-gtm-product-name")||"",item_category:s.attr("data-gtm-product-category")||"",item_variant:s.attr("data-gtm-product-sku")||"",item_brand:uT.getDataAttributeFromChildNode(document,"data-brand")||"",price:+(l/u).toFixed(2),quantity:u,checkout_type:"mini_cart",product_OOO:c}]}})};
1return(0,xa.default)(document).off("click",".cart-actions [data-gtm-mini-cart-checkout-view]"),(0,xa.default)(document).off("click",".view-cart-btn[data-gtm-mini-cart-view]"),(0,xa.default)(document).on("click",".view-cart-btn[data-gtm-mini-cart-view]",()=>{t("view_cart_minicart")}),(0,xa.default)(document).on("click",".cart-actions [data-gtm-mini-cart-checkout-view]",()=>{t("checkout_minicart")}),{sendRemoveDatalayer:n}}});function fT(r){return r!==""?r.toLowerCase().startsWith("tel")||r.toLowerCase().startsWith("mailto")||r.toLowerCase().endsWith(".pdf")?!0:(r.indexOf(":")>-1||r.indexOf("//")>-1)&&dT(location.href)===dT(r):!1}function aR(r){if(r.title!=="")return r.title;if(r.innerText!=="")return r.innerText.includes(`
2`)?r.innerText.replace(/\n.*/s,""):r.innerText;let e="";return Array.prototype.forEach.call(r.querySelectorAll("*"),t=>{t.tagName.toLowerCase()==="img"?e=t.getAttribute("alt"):r.innerText!==""&&(r.innerText.includes(`
3`)&&(e=r.innerText.replace(/\n.*/s,"")),e=r.innerText)}),e}function dT(r){return r.indexOf("//")===0&&(r=location.protocol+r),r.toLowerCase().replace(/([a-z])?:\/\//,"$1").split("/")[0]}var hT,Tm,Sm=Ze(()=>{O();R();L();hT=()=>{document.querySelectorAll("[data-gtm-internal-link]:not(a)").forEach(r=>{let e=r.getAttribute("data-gtm-internal-link");r.querySelectorAll("a").forEach(t=>{fT(t.href)===!0&&e!==""&&!t.hasAttribute("data-gtm-internal-link")&&t.setAttribute("data-gtm-internal-link",e)})}),document.querySelectorAll("a").forEach(r=>{r.href!==""&&r.href.toLowerCase().endsWith(".pdf")&&!r.hasAttribute("data-gtm-internal-link")&&r.setAttribute("data-gtm-internal-link","resource_link")}),document.querySelectorAll("[data-template=Cart-template] .tooltip-wrapper a[href], [data-template=Checkout-page] .tooltip-wrapper a[href]").forEach(r=>{r.href!==""&&!r.hasAttribute("data-gtm-internal-link")&&r.setAttribute("data-gtm-internal-link","checkout_link")}),document.querySelectorAll("a[href][data-gtm-internal-link]").forEach(r=>{Tm(r)})},Tm=r=>{let e=r.href;if(!e)return;let t=r.getAttribute("data-gtm-internal-link");r.addEventListener("click",()=>{fT(e)===!0&&t!==""&&dataLayer.push({event:"internal_link_click",link_type:t,link_text:aR(r),link_url:e.replace(window.location.origin,"")})})}});var vr,wa,ud=Ze(()=>{O();R();L();vr=Z(Ae());lr();wa=()=>{let r="en-US",e={minimumIntegerDigits:2,useGrouping:!1},t=u=>Math.floor(u/60).toLocaleString(r,e),n=u=>Math.floor(u%60).toLocaleString(r,e),s=u=>`${Math.round(u).toLocaleString(r,e)}%`,a=({event:u,url:c,currentTimeText:h,durationText:f,completion:v,visible:p,title:T="{{Video Title}}",provider:g="{{Video Provider}}"})=>{if(typeof f!="string"||f.trim()==="")return;let b={event:u,event_name:u,video_current_time:h,video_duration:f,video_percent:v,video_provider:g,video_title:T,video_url:c,visible:p};dataLayer.push(b)},o=u=>u.currentTime>0&&!u.paused&&!u.ended&&u.readyState>2;(0,vr.default)(document).ready(()=>{for(let u of document.querySelectorAll("video:not(.video-tracked)")){let c=u?.readyState>0||!1,h=c?u.duration:0,f=h>0?`${t(h)}:${n(h)}`:"",v=[],p=0,T={NOT_READY:"NOT_READY",READY:"READY",PLAYING:"PLAYING",IDLE:"IDLE"},b={state:o(u)?T.PLAYING:c?T.READY:T.NOT_READY,transitions:{[T.NOT_READY]:{load:T.READY},[T.READY]:{play:T.PLAYING,pause:T.IDLE,end:T.IDLE},[T.PLAYING]:{pause:T.IDLE,end:T.IDLE},[T.IDLE]:{play:T.PLAYING}}},S=(k,A)=>{let N=k.state;return k.transitions[N][A]||k.state},x=v[p]??{hasReportedStarted:!1,hasReported25PercentWatched:!1,hasReported50PercentWatched:!1,hasReported75PercentWatched:!1,hasReportedEnded:!1};v[p]=x;let E=({event:k,completion:A})=>{x.hasReportedStarted&&k==="video_start"||x.hasReported25PercentWatched&&k==="video_progress"&&A==="25%"||x.hasReported50PercentWatched&&k==="video_progress"&&A==="50%"||x.hasReported75PercentWatched&&k==="video_progress"&&A==="75%"||x.hasReportedEnded&&k==="video_complete"||(a({event:k,url:u.src||u.querySelector("source")?.src||"",title:u.title||u.src||u.querySelector("source")?.src||"",currentTimeText:`${t(u.currentTime)}:${n(u.currentTime)}`,durationText:f,visible:pa(u)>0,completion:typeof A=="string"?A:s(u.currentTime/h*100),provider:"internal"}),v[p]={hasReportedStarted:k==="video_start"||x.hasReportedStarted,hasReported25PercentWatched:k==="video_progress"&&A==="25%"||x.hasReported25PercentWatched,hasReported50PercentWatched:k==="video_progress"&&A==="50%"||x.hasReported50PercentWatched,hasReported75PercentWatched:k==="video_progress"&&A==="75%"||x.hasReported75PercentWatched,hasReportedEnded:k==="video_complete"||x.hasReportedEnded},x=v[p])};(0,vr.default)(u).off("loadedmetadata.tracker"),(0,vr.default)(u).on("loadedmetadata.tracker",()=>{S(b,"load")===T.READY&&(b.state=T.READY,h=u.duration,f=`${t(h)}:${n(h)}`,c=!0)}),(0,vr.default)(u).off("timeupdate.tracker"),(0,vr.default)(u).on("timeupdate.tracker",()=>{if(b.state!==T.PLAYING)return;let k=u.currentTime;k>=h*.25&&E({event:"video_progress",completion:"25%"}),k>=h*.5&&E({event:"video_progress",completion:"50%"}),k>=h*.75&&E({event:"video_progress",completion:"75%"})}),(0,vr.default)(u).off("play.tracker"),(0,vr.default)(u).on("play.tracker",()=>{if(b.state===T.NOT_READY){u.pause(),u.addEventListener("loadedmetadata",()=>u.play(),{once:!0});return}if(S(b,"play")===T.PLAYING){b.state=T.PLAYING;let k=u.currentTime;x=v[p]??{hasReportedStarted:!1,hasReported25PercentWatched:!1,hasReported50PercentWatched:!1,hasReported75PercentWatched:!1,hasReportedEnded:!1},v[p]=x,setTimeout(()=>{let A=(0,vr.default)(`video[data-id="${u.getAttribute("data-id")}"]`).last(),N=A.length>0?A[0]:u;o(N)&&E({event:"video_start",completion:s(k/h*100)})},1e3)}}),(0,vr.default)(u).off("pause.tracker"),(0,vr.default)(u).on("pause.tracker",()=>{S(b,"pause")===T.IDLE&&(b.state=T.IDLE)}),(0,vr.default)(u).off("ended.tracker"),(0,vr.default)(u).on("ended.tracker",()=>{S(b,"end")===T.IDLE&&(b.state=T.IDLE,E({event:"video_complete",completion:"100%"}),p++)}),u.classList.add("video-tracked")}});let l=()=>{(0,vr.default)(document).ready(()=>{let u=vr.default.makeArray((0,vr.default)(".youtube-iframe-video,iframe[src*='youtube.com/embed/']:not(.video-tracked)")).map(c=>{if(c.tagName==="IFRAME"){let h=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),v=(c.getAttribute("src")||"").split("youtube.com/embed/")[1]?.split("?")[0]||"",p=document.createElement("div");p.id=h;let T=c.width,g=c.height;return T&&p.setAttribute("data-original-width",T),g&&p.setAttribute("data-original-height",g),v&&p.setAttribute("data-youtube-id",v),c.parentNode.replaceChild(p,c),{id:h,youtubeID:v}}return{id:c.id,youtubeID:(0,vr.default)(c).attr("data-youtube-id")}});for(let c of u){let h=null,f=null,v=!1,p=!1,T=!1,g=!1,b=!1,S=!1,x=(0,vr.default)(`#${c.id}`).attr("data-title");
3(x==null||typeof x!="string"||typeof x=="string"&&x.trim()==="")&&(x="");let E=new YT.Player(c.id,{videoId:c.youtubeID,events:{onStateChange:A=>{let{data:N}=A;switch(N){case YT.PlayerState.PAUSED:{S=!0;break}case YT.PlayerState.PLAYING:{h=E.getDuration(),f=`${t(h)}:${n(h)}`,x===""&&(x=E.getVideoData().title);let I=E.getCurrentTime(),M=`${t(I)}:${n(I)}`;b||(a({event:"video_start",url:E.getVideoUrl(),title:x,provider:"YouTube",currentTimeText:M,durationText:f,completion:s(I/h*100),visible:pa(E.getIframe())>0}),S=!1,b=!0,v=!1,p=!1,T=!1,g=!1);break}case YT.PlayerState.ENDED:{let I=E.getCurrentTime(),M=`${t(I)}:${n(I)}`;a({event:"video_complete",url:E.getVideoUrl(),currentTimeText:M,title:x,provider:"YouTube",durationText:f,completion:s(I/h*100),visible:pa(E.getIframe())>0}),b=!1,S=!1,v=!1,p=!1,T=!1,g=!0;break}}}}}),k=E.getIframe();if(k){let A=k.getAttribute("data-original-width"),N=k.getAttribute("data-original-height");A&&(k.width=A),N&&(k.height=N)}setInterval(()=>{if(T&&p&&v||!E.getCurrentTime||h===null||g)return;let A=E.getCurrentTime(),N=`${t(A)}:${n(A)}`,I=A>=h*.25,M=A>=h*.5,F=A>=h*.75;I&&!v&&(a({event:"video_progress",url:E.getVideoUrl(),title:x,provider:"YouTube",currentTimeText:N,durationText:f,completion:s(25),visible:pa(E.getIframe())>0}),v=!0),M&&!p&&(a({event:"video_progress",url:E.getVideoUrl(),title:x,provider:"YouTube",currentTimeText:N,durationText:f,completion:s(50),visible:pa(E.getIframe())>0}),p=!0),F&&!T&&(a({event:"video_progress",url:E.getVideoUrl(),title:x,provider:"YouTube",currentTimeText:N,durationText:f,completion:s(75),visible:pa(E.getIframe())>0}),T=!0)},100),E.getIframe().classList.add("video-tracked")}})};window.onYouTubeIframeAPIReady=l,window.YT?.Player&&l(),setTimeout(()=>{wa()},1e3)}});var pn=pe((DY,TT)=>{O();R();L();var Zl;typeof window<"u"||typeof window<"u"?Zl=window:typeof self<"u"?Zl=self:Zl={};TT.exports=Zl});var ST=pe(()=>{O();R();L()});var xm=pe((FY,wT)=>{O();R();L();var xT=typeof window<"u"||typeof window<"u"?window:{},uR=ST(),eu;typeof document<"u"?eu=document:(eu=xT["__GLOBAL_DOCUMENT_CACHE@4"],eu||(eu=xT["__GLOBAL_DOCUMENT_CACHE@4"]=uR));wT.exports=eu});var CT=pe((VY,qn)=>{O();R();L();function wm(){return qn.exports=wm=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},qn.exports.__esModule=!0,qn.exports.default=qn.exports,wm.apply(null,arguments)}qn.exports=wm,qn.exports.__esModule=!0,qn.exports.default=qn.exports});var kT=pe((GY,ET)=>{O();R();L();ET.exports=dR;var cR=Object.prototype.toString;function dR(r){if(!r)return!1;var e=cR.call(r);return e==="[object Function]"||typeof r=="function"&&e!=="[object RegExp]"||typeof window<"u"&&(r===window.setTimeout||r===window.alert||r===window.confirm||r===window.prompt)}});var DT=pe((YY,PT)=>{"use strict";O();R();L();function hR(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=fR(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0;return function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
4In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fR(r,e){if(r){if(typeof r=="string")return AT(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return AT(r,e)}}function AT(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}var pR=function(){function r(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var e=r.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,s){this.typeToInterceptorsMap_.has(n)||this.typeToInterceptorsMap_.set(n,new Set);var a=this.typeToInterceptorsMap_.get(n);return a.has(s)?!1:(a.add(s),!0)},e.removeInterceptor=function(n,s){var a=this.typeToInterceptorsMap_.get(n);return a&&a.has(s)?(a.delete(s),!0):!1},e.clearInterceptorsByType=function(n){var s=this.typeToInterceptorsMap_.get(n);return s?(this.typeToInterceptorsMap_.delete(n),this.typeToInterceptorsMap_.set(n,new Set),!0):!1},e.clear=function(){return this.typeToInterceptorsMap_.size?(this.t
4ypeToInterceptorsMap_=new Map,!0):!1},e.getForType=function(n){return this.typeToInterceptorsMap_.get(n)||new Set},e.execute=function(n,s){for(var a=this.getForType(n),o=hR(a),l;!(l=o()).done;){var u=l.value;try{s=u(s)}catch{}}return s},r}();PT.exports=pR});var OT=pe((tJ,IT)=>{"use strict";O();R();L();var mR=function(){function r(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var e=r.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 s=n===void 0?{}:n,a=s.maxAttempts,o=s.delayFactor,l=s.fuzzFactor,u=s.initialDelay;return new gR({maxAttempts:a||this.maxAttempts_,delayFactor:o||this.delayFactor_,fuzzFactor:l||this.fuzzFactor_,initialDelay:u||this.initialDelay_})},r}(),gR=function(){function r(t){this.maxAttempts_=t.maxAttempts,this.delayFactor_=t.delayFactor,this.fuzzFactor_=t.fuzzFactor,this.currentDelay_=t.initialDelay,this.currentAttempt_=1}var e=r.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(),s=this.getCurrentMaxPossibleDelay();return n+Math.random()*(s-n)},r}();IT.exports=mR});var RT=pe((sJ,LT)=>{"use strict";O();R();L();var vR=pn(),yR=function(e,t){return t===void 0&&(t=!1),function(n,s,a){if(n){e(n);return}if(s.statusCode>=400&&s.statusCode<=599){var o=a;if(t)if(vR.TextDecoder){var l=bR(s.headers&&s.headers["content-type"]);try{o=new TextDecoder(l).decode(a)}catch{}}else o=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:o});return}e(null,a)}};function bR(r){return r===void 0&&(r=""),r.toLowerCase().split(";").reduce(function(e,t){var n=t.split("="),s=n[0],a=n[1];return s.trim()==="charset"?a.trim():e},"utf-8")}LT.exports=yR});var $T=pe((uJ,Em)=>{"use strict";O();R();L();var NT=pn(),_R=CT(),TR=kT(),MT=DT(),SR=OT();nr.httpHandler=RT();nr.requestInterceptorsStorage=new MT;nr.responseInterceptorsStorage=new MT;
vendor: 23,384 bytes, lines 4-12
4nr.retryManager=new SR;var xR=function(e){var t={};return e&&e.trim().split(`
5`).forEach(function(n){var s=n.indexOf(":"),a=n.slice(0,s).trim().toLowerCase(),o=n.slice(s+1).trim();typeof t[a]>"u"?t[a]=o:Array.isArray(t[a])?t[a].push(o):t[a]=[t[a],o]}),t};Em.exports=nr;Em.exports.default=nr;nr.XMLHttpRequest=NT.XMLHttpRequest||kR;nr.XDomainRequest="withCredentials"in new nr.XMLHttpRequest?nr.XMLHttpRequest:NT.XDomainRequest;wR(["get","put","post","patch","head","delete"],function(r){nr[r==="delete"?"del":r]=function(e,t,n){return t=BT(e,t,n),t.method=r.toUpperCase(),Cm(t)}});function wR(r,e){for(var t=0;t<r.length;t++)e(r[t])}function CR(r){for(var e in r)if(r.hasOwnProperty(e))return!1;return!0}function BT(r,e,t){var n=r;return TR(e)?(t=e,typeof r=="string"&&(n={uri:r})):n=_R({},e,{uri:r}),n.callback=t,n}function nr(r,e,t){return e=BT(r,e,t),Cm(e)}function Cm(r){if(typeof r.callback>"u")throw new Error("callback argument missing");if(r.requestType&&nr.requestInterceptorsStorage.getIsEnabled()){var e={uri:r.uri||r.url,headers:r.headers||{},body:r.body,metadata:r.metadata||{},retry:r.retry,timeout:r.timeout},t=nr.requestInterceptorsStorage.execute(r.requestType,e);r.uri=t.uri,r.headers=t.headers,r.body=t.body,r.metadata=t.metadata,r.retry=t.retry,r.timeout=t.timeout}var n=!1,s=function(A,N,I){n||(n=!0,r.callback(A,N,I))};function a(){c.readyState===4&&!nr.responseInterceptorsStorage.getIsEnabled()&&setTimeout(u,0)}function o(){var k=void 0;if(c.response?k=c.response:k=c.responseText||ER(c),S)try{k=JSON.parse(k)}catch{}return k}function l(k){if(clearTimeout(x),clearTimeout(r.retryTimeout),k instanceof Error||(k=new Error(""+(k||"Unknown XMLHttpRequest Error"))),k.statusCode=0,!f&&nr.retryManager.getIsEnabled()&&r.retry&&r.retry.shouldRetry()){r.retryTimeout=setTimeout(function(){r.retry.moveToNextAttempt(),r.xhr=c,Cm(r)},r.retry.getCurrentFuzzedDelay());return}if(r.requestType&&nr.responseInterceptorsStorage.getIsEnabled()){var A={headers:E.headers||{},body:E.body,responseUrl:c.responseURL,responseType:c.responseType},N=nr.responseInterceptorsStorage.execute(r.requestType,A);E.body=N.body,E.headers=N.headers}return s(k,E)}function u(){if(!f){var k;clearTimeout(x),clearTimeout(r.retryTimeout),r.useXDR&&c.status===void 0?k=200:k=c.status===1223?204:c.status;var A=E,N=null;if(k!==0?(A={body:o(),statusCode:k,method:p,headers:{},url:v,rawRequest:c},c.getAllResponseHeaders&&(A.headers=xR(c.getAllResponseHeaders()))):N=new Error("Internal XMLHttpRequest Error"),r.requestType&&nr.responseInterceptorsStorage.getIsEnabled()){var I={headers:A.headers||{},body:A.body,responseUrl:c.responseURL,responseType:c.responseType},M=nr.responseInterceptorsStorage.execute(r.requestType,I);A.body=M.body,A.headers=M.headers}return s(N,A,A.body)}}var c=r.xhr||null;c||(r.cors||r.useXDR?c=new nr.XDomainRequest:c=new nr.XMLHttpRequest);var h,f,v=c.url=r.uri||r.url,p=c.method=r.method||"GET",T=r.body||r.data,g=c.headers=r.headers||{},b=!!r.sync,S=!1,x,E={body:void 0,headers:{},statusCode:0,method:p,url:v,rawRequest:c};if("json"in r&&r.json!==!1&&(S=!0,g.accept||g.Accept||(g.Accept="application/json"),p!=="GET"&&p!=="HEAD"&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),T=JSON.stringify(r.json===!0?T:r.json))),c.onreadystatechange=a,c.onload=u,c.onerror=l,c.onprogress=function(){},c.onabort=function(){f=!0,clearTimeout(r.retryTimeout)},c.ontimeout=l,c.open(p,v,!b,r.username,r.password),b||(c.withCredentials=!!r.withCredentials),!b&&r.timeout>0&&(x=setTimeout(function(){if(!f){f=!0,c.abort("timeout");var k=new Error("XMLHttpRequest timeout");k.code="ETIMEDOUT",l(k)}},r.timeout)),c.setRequestHeader)for(h in g)g.hasOwnProperty(h)&&c.setRequestHeader(h,g[h]);else if(r.headers&&!CR(r.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in r&&(c.responseType=r.responseType),"beforeSend"in r&&typeof r.beforeSend=="function"&&r.beforeSend(c),c.send(T||null),c}function ER(r){try{if(r.responseType==="document")return r.responseXML;var e=r.responseXML&&r.responseXML.documentElement.nodeName==="parsererror";if(r.responseType===""&&!e)return r.responseXML}catch{}return null}function kR(){}});var zT=pe((fJ,jT)=>{O();R();L();var FT=xm(),Am=Object.create||function(){function r(){}return function(e){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return r.prototype=e,new r}}();function yi(r,e){this.name="ParsingError",this.code=r.code,this.message=e||r.message}yi.prototype=Am(Error.prototype);yi.prototype.constructor=yi;yi.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function Pm(r){function e(n,s,a,o){return(n|0)*3600+(s|0)*60+(a|0)+(o|0)/1e3}var t=r.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return t?t[3]?e(t[1],t[2],t[3].replace(":",""),t[4]):t[1]>59?e(t[1],t[2],0,t[4]):e(0,t[1],t[2],t[4]):null}function ru(){this.values=Am(null)}ru.prototype={set:function(r,e){!this.get(r)&&e!==""&&(this.values[r]=e)},get:function(r,e,t){return t?this.has(r)?this.values[r]:e[t]:this.has(r)?this.values[r]:e},has:function(r){return r in this.values},alt:function(r,e,t){for(var n=0;n<t.length;++n)if(e===t[n]){this.set(r,e);break}},integer:function(r,e){/^-?\d+$/.test(e)&&this.set(r,parseInt(e,10))},percent:function(r,e){var t;return(t=e.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(e=parseFloat(e),e>=0&&e<=100)?(this.set(r,e),!0):!1}};function tu(r,e,t,n){var s=n?r.split(n):[r];for(var a in s)if(typeof s[a]=="string"){var o=s[a].split(t);if(o.length===2){var l=o[0].trim(),u=o[1].trim();e(l,u)}}}function AR(r,e,t){var n=r;function s(){var l=Pm(r);if(l===null)throw new yi(yi.Errors.BadTimeStamp,"Malformed timestamp: "+n);return r=r.replace(/^[^\sa-zA-Z-]+/,""),l}function a(l,u){var c=new ru;tu(l,function(h,f){switch(h){case"region":for(var v=t.length-1;v>=0;v--)if(t[v].id===f){c.set(h,t[v].region);break}break;case"vertical":c.alt(h,f,["rl","lr"]);break;case"line":var p=f.split(","),T=p[0];c.integer(h,T),c.percent(h,T)&&c.set("snapToLines",!1),c.alt(h,T,["auto"]),p.length===2&&c.alt("lineAlign",p[1],["start","center","end"]);break;case"position":p=f.split(","),c.percent(h,p[0]),p.length===2&&c.alt("positionAlign",p[1],["start","center","end"]);break;case"size":c.percent(h,f);break;case"align":c.alt(h,f,["start","center","end","left","right"]);break}},/:/,/\s/),u.region=c.get("region",null),u.vertical=c.get("vertical","");try{u.line=c.get("line","auto")}catch{}u.lineAlign=c.get("lineAlign","start"),u.snapToLines=c.get("snapToLines",!0),u.size=c.get("size",100);try{u.align=c.get("align","center")}catch{u.align=c.get("align","middle")}try{u.position=c.get("position","auto")}catch{u.position=c.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},u.align)}u.positionAlign=c.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},u.align)}function o(){r=r.replace(/^\s+/,"")}if(o(),e.startTime=s(),o(),r.substr(0,3)!=="-->")throw new yi(yi.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+n);r=r.substr(3),o(),e.endTime=s(),o(),a(r,e)}var km=FT.createElement&&FT.createElement("textarea"),PR={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},UT={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)"},DR={v:"title",lang:"lang"},qT={rt:"ruby"};function VT(r,e){function t(){if(!e)return null;function T(b){return e=e.substr(b.length),b}var g=e.match(/^([^<]*)(<[^>]*>?)?/);return T(g[1]?g[1]:g[2])}function n(T){return km.innerHTML=T,T=km.textContent,km.textContent="",T}function s(T,g){return!qT[g.localName]||qT[g.localName]===T.localName}function a(T,g){var b=PR[T];if(!b)return null;var S=r.document.createElement(b),x=DR[T];return x&&g&&(S[x]=g.trim()),S}for(var o=r.document.createElement("div"),l=o,u,c=[];(u=t())!==null;){if(u[0]==="<"){if(u[1]==="/"){c.length&&c[c.length-1]===u.substr(2).replace(">","")&&(c.pop(),l=l.parentNode);continue}var h=Pm(u.substr(1,u.length-2)),f;if(h){f=r.document.createProcessingInstruction("timestamp",h),l.appendChild(f);continue}var v=u.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v||(f=a(v[1],v[3]),!f)||!s(l,f))continue;if(v[2]){var p=v[2].split(".");p.forEach(function(T){var g=/^bg_/.test(T),b=g?T.slice(3):T;if(UT.hasOwnProperty(b)){var S=g?"background-color":"color",x=UT[b];f.style[S]=x}}),f.className=p.join(" ")}c.push(v[1]),l.appendChild(f),l=f;continue}l.appendChild(r.document.createTextNode(n(u)))}return o}var HT=[[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 IR(r){for(var e=0;e<HT.length;e++){var t=HT[e];if(r>=t[0]&&r<=t[1])return!0}return!1}function OR(r){var e=[],t="",n;if(!r||!r.childNodes)return"ltr";function s(l,u){for(var c=u.childNodes.length-1;c>=0;c--)l.push(u.childNodes[c])}function a(l){if(!l||!l.length)return null;var u=l.pop(),c=u.textContent||u.innerText;if(c){var h=c.match(/^.*(\n|\r)/);return h?(l.length=0,h[0]):c}if(u.tagName==="ruby")return a(l);if(u.childNodes)return s(l,u),a(l)}for(s(e,r);t=a(e);)for(var o=0;o<t.length;o++)if(n=t.charCodeAt(o),IR(n))return"rtl";return"ltr"}function LR(r){if(typeof r.line=="number"&&(r.snapToLines||r.line>=0&&r.line<=100))return r.line;if(!r.track||!r.track.textTrackList||!r.track.textTrackList.mediaElement)return-1;for(var e=r.track,t=e.textTrackList,n=0,s=0;s<t.length&&t[s]!==e;s++)t[s].mode==="showing"&&n++;return++n*-1}function dd(){}dd.prototype.applyStyles=function(r,e){e=e||this.div;for(var t in r)r.hasOwnProperty(t)&&(e.style[t]=r[t])};dd.prototype.formatStyle=function(r,e){return r===0?0:r+e};function cd(r,e,t){dd.call(this),this.cue=e,this.cueDiv=VT(r,e.text);var n={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(n,this.cueDiv),this.div=r.document.createElement("div"),n={direction:OR(this.cueDiv),writingMode:e.vertical===""?"horizontal-tb":e.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:e.align==="middle"?"center":e.align,font:t.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var s=0;switch(e.positionAlign){case"start":case"line-left":s=e.position;break;case"center":s=e.position-e.size/2;break;case"end":case"line-right":s=e.position-e.size;break}e.vertical===""?this.applyStyles({left:this.formatStyle(s,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(s,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(a){this.applyStyles({top:this.formatStyle(a.top,"px"),bottom:this.formatStyle(a.bottom,"px"),left:this.formatStyle(a.left,"px"),right:this.formatStyle(a.right,"px"),height:this.formatStyle(a.height,"px"),width:this.formatStyle(a.width,"px")})}}cd.prototype=Am(dd.prototype);cd.prototype.constructor=cd;function Kr(r){var e,t,n,s;if(r.div){t=r.div.offsetHeight,n=r.div.offsetWidth,s=r.div.offsetTop;var a=(a=r.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();r=r.div.getBoundingClientRect(),e=a?Math.max(a[0]&&a[0].height||0,r.height/a.length):0}this.left=r.left,this.right=r.right,this.top=r.top||s,this.height=r.height||t,this.bottom=r.bottom||s+(r.height||t),this.width=r.width||n,this.lineHeight=e!==void 0?e:r.lineHeight}Kr.prototype.move=function(r,e){switch(e=e!==void 0?e:this.lineHeight,r){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}};Kr.prototype.overlaps=function(r){return this.left<r.right&&this.right>r.left&&this.top<r.bottom&&this.bottom>r.top};Kr.prototype.overlapsAny=function(r){for(var e=0;e<r.length;e++)if(this.overlaps(r[e]))return!0;return!1};Kr.prototype.within=function(r){return this.top>=r.top&&this.bottom<=r.bottom&&this.left>=r.left&&this.right<=r.right};Kr.prototype.overlapsOppositeAxis=function(r,e){switch(e){case"+x":return this.left<r.left;case"-x":return this.right>r.right;case"+y":return this.top<r.top;case"-y":return this.bottom>r.bottom}};Kr.prototype.intersectPercentage=function(r){var e=Math.max(0,Math.min(this.right,r.right)-Math.max(this.left,r.left)),t=Math.max(0,Math.min(this.bottom,r.bottom)-Math.max(this.top,r.top)),n=e*t;return n/(this.height*this.width)};Kr.prototype.toCSSCompatValues=function(r){return{top:this.top-r.top,bottom:r.bottom-this.bottom,left:this.left-r.left,right:r.right-this.right,height:this.height,width:this.width}};Kr.getSimpleBoxPosition=function(r){var e=r.div?r.div.offsetHeight:r.tagName?r.offsetHeight:0,t=r.div?r.div.offsetWidth:r.tagName?r.offsetWidth:0,n=r.div?r.div.offsetTop:r.tagName?r.offsetTop:0;r=r.div?r.div.getBoundingClientRect():r.tagName?r.getBoundingClientRect():r;var s={left:r.left,right:r.right,top:r.top||n,height:r.height||e,bottom:r.bottom||n+(r.height||e),width:r.width||t};return s};function RR(r,e,t,n){function s(b,S){for(var x,E=new Kr(b),k=1,A=0;A<S.length;A++){for(;b.overlapsOppositeAxis(t,S[A])||b.within(t)&&b.overlapsAny(n);)b.move(S[A]);if(b.within(t))return b;var N=b.intersectPercentage(t);k>N&&(x=new Kr(b),k=N),b=new Kr(E)}return x||E}var a=new Kr(e),o=e.cue,l=LR(o),u=[];if(o.snapToLines){var c;switch(o.vertical){case"":u=["+y","-y"],c="height";break;case"rl":u=["+x","-x"],c="width";break;case"lr":u=["-x","+x"],c="width";break}var h=a.lineHeight,f=h*Math.round(l),v=t[c]+h,p=u[0];Math.abs(f)>v&&(f=f<0?-1:1,f*=Math.ceil(v/h)*h),l<0&&(f+=o.vertical===""?t.height:t.width,u=u.reverse()),a.move(p,f)}else{var T=a.lineHeight/t.height*100;switch(o.lineAlign){case"center":l-=T/2;break;case"end":l-=T;break}switch(o.vertical){case"":e.applyStyles({top:e.formatStyle(l,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(l,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(l,"%")});break}u=["+y","-x","+x","-y"],a=new Kr(e)}var g=s(a,u);e.move(g.toCSSCompatValues(t))}function xo(){}xo.StringDecoder=function(){return{decode:function(r){if(!r)return"";if(typeof r!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(r))}}};xo.convertCueToDOMTree=function(r,e){return!r||!e?null:VT(r,e)};var NR=.05,MR="sans-serif",BR="1.5%";xo.processCues=function(r,e,t){if(!r||!e||!t)return null;for(;t.firstChild;)t.removeChild(t.firstChild);var n=r.document.createElement("div");n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin=BR,t.appendChild(n);function s(h){for(var f=0;f<h.length;f++)if(h[f].hasBeenReset||!h[f].displayState)return!0;return!1}if(!s(e)){for(var a=0;a<e.length;a++)n.appendChild(e[a].displayState);return}var o=[],l=Kr.getSimpleBoxPosition(n),u=Math.round(l.height*NR*100)/100,c={font:u+"px "+MR};(function(){for(var h,f,v=0;v<e.length;v++)f=e[v],h=new cd(r,f,c),n.appendChild(h.div),RR(r,h,l,o),f.displayState=h.div,o.push(Kr.getSimpleBoxPosition(h))})()};xo.Parser=function(r,e,t){t||(t=e,e={}),e||(e={}),this.window=r,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=t||new TextDecoder("utf8"),this.regionList=[]};xo.Parser.prototype={reportOrThrowError:function(r){if(r instanceof yi)this.onparsingerror&&this.onparsingerror(r);else throw r},parse:function(r){var e=this;r&&(e.buffer+=e.decoder.decode(r,{stream:!0}));function t(){for(var h=e.buffer,f=0;f<h.length&&h[f]!=="\r"&&h[f]!==`
6`;)++f;var v=h.substr(0,f);return h[f]==="\r"&&++f,h[f]===`
7`&&++f,e.buffer=h.substr(f),v}function n(h){var f=new ru;if(tu(h,function(p,T){switch(p){case"id":f.set(p,T);break;case"width":f.percent(p,T);break;case"lines":f.integer(p,T);break;case"regionanchor":case"viewportanchor":var g=T.split(",");if(g.length!==2)break;var b=new ru;if(b.percent("x",g[0]),b.percent("y",g[1]),!b.has("x")||!b.has("y"))break;f.set(p+"X",b.get("x")),f.set(p+"Y",b.get("y"));break;case"scroll":f.alt(p,T,["up"]);break}},/=/,/\s/),f.has("id")){var v=new(e.vttjs.VTTRegion||e.window.VTTRegion);v.width=f.get("width",100),v.lines=f.get("lines",3),v.regionAnchorX=f.get("regionanchorX",0),v.regionAnchorY=f.get("regionanchorY",100),v.viewportAnchorX=f.get("viewportanchorX",0),v.viewportAnchorY=f.get("viewportanchorY",100),v.scroll=f.get("scroll",""),e.onregion&&e.onregion(v),e.regionList.push({id:f.get("id"),region:v})}}function s(h){var f=new ru;tu(h,function(v,p){switch(v){case"MPEGT":f.integer(v+"S",p);break;case"LOCA":f.set(v+"L",Pm(p));break}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:f.get("MPEGTS"),LOCAL:f.get("LOCAL")})}function a(h){h.match(/X-TIMESTAMP-MAP/)?tu(h,function(f,v){switch(f){case"X-TIMESTAMP-MAP":s(v);break}},/=/):tu(h,function(f,v){switch(f){case"Region":n(v);break}},/:/)}try{var o;if(e.state==="INITIAL"){if(!/\r\n|\n/.test(e.buffer))return this;o=t();var l=o.match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new yi(yi.Errors.BadSignature);e.state="HEADER"}for(var u=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(u?u=!1:o=t(),e.state){case"HEADER":/:/.test(o)?a(o):o||(e.state="ID");continue;case"NOTE":o||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(o)){e.state="NOTE";break}if(!o)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",o.indexOf("-->")===-1){e.cue.id=o;continue}case"CUE":try{AR(o,e.cue,e.regionList)}catch(h){e.reportOrThrowError(h),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var c=o.indexOf("-->")!==-1;if(!o||c&&(u=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+=`
8`),e.cue.text+=o.replace(/\u2028/g,`
9`).replace(/u2029/g,`
10`);continue;case"BADCUE":o||(e.state="ID");continue}}}catch(h){e.reportOrThrowError(h),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 r=this;try{if(r.buffer+=r.decoder.decode(),(r.cue||r.state==="HEADER")&&(r.buffer+=`
11
12`,r.parse()),r.state==="INITIAL")throw new yi(yi.Errors.BadSignature)}catch(e){r.reportOrThrowError(e)}return r.onflush&&r.onflush(),this}};jT.exports=xo});var QT=pe((vJ,GT)=>{O();R();L();var $R="auto",FR={"":1,lr:1,rl:1},UR={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function qR(r){if(typeof r!="string")return!1;var e=FR[r.toLowerCase()];return e?r.toLowerCase():!1}function Dm(r){if(typeof r!="string")return!1;var e=UR[r.toLowerCase()];return e?r.toLowerCase():!1}function WT(r,e,t){this.hasBeenReset=!1;var n="",s=!1,a=r,o=e,l=t,u=null,c="",h=!0,f="auto",v="start",p="auto",T="auto",g=100,b="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(S){n=""+S}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(S){s=!!S}},startTime:{enumerable:!0,get:function(){return a},set:function(S){if(typeof S!="number")throw new TypeError("Start time must be set to a number.");a=S,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return o},set:function(S){if(typeof S!="number")throw new TypeError("End time must be set to a number.");o=S,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return l},set:function(S){l=""+S,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(S){u=S,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return c},set:function(S){var x=qR(S);if(x===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");c=x,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(S){h=!!S,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(S){if(typeof S!="number"&&S!==$R)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=S,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return v},set:function(S){var x=Dm(S);x?(v=x,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return p},set:function(S){if(S<0||S>100)throw new Error("Position must be between 0 and 100.");p=S,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return T},set:function(S){var x=Dm(S);x?(T=x,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return g},set:function(S){if(S<0||S>100)throw new Error("Size must be between 0 and 100.");g=S,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return b},set:function(S){var x=Dm(S);if(!x)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");b=x,this.hasBeenReset=!0}}}),this.displayState=void 0}WT.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};GT.exports=WT});var XT=pe((TJ,KT)=>{O();R();L();var HR={"":!0,up:!0};function VR(r){if(typeof r!="string")return!1;var e=HR[r.toLowerCase()];return e?r.toLowerCase():!1}function iu(r){return typeof r=="number"&&r>=0&&r<=100}function jR(){var r=100,e=3,t=0,n=100,s=0,a=100,o="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return r},set:function(l){if(!iu(l))throw new Error("Width must be between 0 and 100.");r=l}},lines:{enumerable:!0,get:function(){return e},set:function(l){if(typeof l!="number")throw new TypeError("Lines must be set to a number.");e=l}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(l){if(!iu(l))throw new Error("RegionAnchorX must be between 0 and 100.");n=l}},regionAnchorX:{enumerable:!0,get:function(){return t},set:function(l){if(!iu(l))throw new Error("RegionAnchorY must be between 0 and 100.");t=l}},viewportAnchorY:{enumerable:!0,get:function(){return a}
12,set:function(l){if(!iu(l))throw new Error("ViewportAnchorY must be between 0 and 100.");a=l}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(l){if(!iu(l))throw new Error("ViewportAnchorX must be between 0 and 100.");s=l}},scroll:{enumerable:!0,get:function(){return o},set:function(l){var u=VR(l);u===!1?console.warn("Scroll: an invalid or illegal string was specified."):o=u}}})}KT.exports=jR});var ZT=pe((CJ,JT)=>{O();R();L();var Hn=pn(),Ca=JT.exports={WebVTT:zT(),VTTCue:QT(),VTTRegion:XT()};Hn.vttjs=Ca;Hn.WebVTT=Ca.WebVTT;var zR=Ca.VTTCue,WR=Ca.VTTRegion,GR=Hn.VTTCue,QR=Hn.VTTRegion;Ca.shim=function(){Hn.VTTCue=zR,Hn.VTTRegion=WR};Ca.restore=function(){Hn.VTTCue=GR,Hn.VTTRegion=QR};Hn.VTTCue||Ca.shim()});function jt(){return jt=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},jt.apply(null,arguments)}var Im=Ze(()=>{O();R();L()});var wo,eS,KR,Co,Om=Ze(()=>{O();R();L();wo=Z(pn()),eS="https://example.com",KR=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=wo.default.location&&wo.default.location.href||"");var n=/^\/\//.test(e),s=!wo.default.location&&!/\/\//i.test(e);e=new wo.default.URL(e,wo.default.location||eS);var a=new URL(t,e);return s?a.href.slice(eS.length):n?a.href.slice(a.protocol.length):a.href},Co=KR});var hd,tS=Ze(()=>{O();R();L();hd=function(){function r(){this.listeners={}}var e=r.prototype;return e.on=function(n,s){this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push(s)},e.off=function(n,s){if(!this.listeners[n])return!1;var a=this.listeners[n].indexOf(s);return this.listeners[n]=this.listeners[n].slice(0),this.listeners[n].splice(a,1),a>-1},e.trigger=function(n){var s=this.listeners[n];if(s)if(arguments.length===2)for(var a=s.length,o=0;o<a;++o)s[o].call(this,arguments[1]);else for(var l=Array.prototype.slice.call(arguments,1),u=s.length,c=0;c<u;++c)s[c].apply(this,l)},e.dispose=function(){this.listeners={}},e.pipe=function(n){this.on("data",function(s){n.push(s)})},r}()});function nu(r){for(var e=XR(r),t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}var Lm,XR,Rm=Ze(()=>{O();R();L();Lm=Z(pn()),XR=function(e){return Lm.default.atob?Lm.default.atob(e):K.from(e,"base64").toString("binary")}});var Bm,YR,Nm,JR,Xr,rS,$m,ZR,xs,Mm,fd,iS=Ze(()=>{O();R();L();tS();Im();Rm();Bm=class extends hd{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf(`
13`);t>-1;t=this.buffer.indexOf(`
14`))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}},YR="	",Nm=function(r){let e=/([0-9.]*)?@?([0-9.]*)?/.exec(r||""),t={};return e[1]&&(t.length=parseInt(e[1],10)),e[2]&&(t.offset=parseInt(e[2],10)),t},JR=function(){let t="(?:"+"[^=]*"+")=(?:"+'"[^"]*"|[^,]*'+")";return new RegExp("(?:^|,)("+t+")")},Xr=function(r){let e={};if(!r)return e;let t=r.split(JR()),n=t.length,s;for(;n--;)t[n]!==""&&(s=/([^=]*)=(.*)/.exec(t[n]).slice(1),s[0]=s[0].replace(/^\s+|\s+$/g,""),s[1]=s[1].replace(/^\s+|\s+$/g,""),s[1]=s[1].replace(/^['"](.*)['"]$/g,"$1"),e[s[0]]=s[1]);return e},rS=r=>{let e=r.split("x"),t={};return e[0]&&(t.width=parseInt(e[0],10)),e[1]&&(t.height=parseInt(e[1],10)),t},$m=class extends hd{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,n;if(e=e.trim(),e.length===0)return;if(e[0]!=="#"){this.trigger("data",{type:"uri",uri:e});return}this.tagMappers.reduce((a,o)=>{let l=o(e);return l===e?a:a.concat([l])},[e]).forEach(a=>{for(let o=0;o<this.customParsers.length;o++)if(this.customParsers[o].call(this,a))return;if(a.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:a.slice(1)});return}if(a=a.replace("\r",""),t=/^#EXTM3U/.exec(a),t){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(a),t){n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),this.trigger("data",n);return}if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(a),t){n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),this.trigger("data",n);return}if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(a),t){n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),this.trigger("data",n);return}if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(a),t){n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),this.trigger("data",n);return}if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(a),t){n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),this.trigger("data",n);return}if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(a),t){n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),this.trigger("data",n);return}if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(a),t){n=jt(Nm(t[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",n);return}if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(a),t){n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),this.trigger("data",n);return}if(t=/^#EXT-X-MAP:(.*)$/.exec(a),t){if(n={type:"tag",tagType:"map"},t[1]){let o=Xr(t[1]);o.URI&&(n.uri=o.URI),o.BYTERANGE&&(n.byterange=Nm(o.BYTERANGE))}this.trigger("data",n);return}if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(a),t){n={type:"tag",tagType:"stream-inf"},t[1]&&(n.attributes=Xr(t[1]),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=rS(n.attributes.RESOLUTION)),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))),this.trigger("data",n);return}if(t=/^#EXT-X-MEDIA:(.*)$/.exec(a),t){n={type:"tag",tagType:"media"},t[1]&&(n.attributes=Xr(t[1])),this.trigger("data",n);return}if(t=/^#EXT-X-ENDLIST/.exec(a),t){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(t=/^#EXT-X-DISCONTINUITY/.exec(a),t){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(a),t){n={type:"tag",tagType:"program-date-time"}
vendor: 16,476 bytes, line 14
14,t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),this.trigger("data",n);return}if(t=/^#EXT-X-KEY:(.*)$/.exec(a),t){n={type:"tag",tagType:"key"},t[1]&&(n.attributes=Xr(t[1]),n.attributes.IV&&(n.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),this.trigger("data",n);return}if(t=/^#EXT-X-START:(.*)$/.exec(a),t){n={type:"tag",tagType:"start"},t[1]&&(n.attributes=Xr(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),this.trigger("data",n);return}if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(a),t){n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",this.trigger("data",n);return}if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(a),t){n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",this.trigger("data",n);return}if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(a),t){n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",this.trigger("data",n);return}if(t=/^#EXT-X-SKIP:(.*)$/.exec(a),t&&t[1]){n={type:"tag",tagType:"skip"},n.attributes=Xr(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(YR)),this.trigger("data",n);return}if(t=/^#EXT-X-PART:(.*)$/.exec(a),t&&t[1]){n={type:"tag",tagType:"part"},n.attributes=Xr(t[1]),["DURATION"].forEach(function(o){n.attributes.hasOwnProperty(o)&&(n.attributes[o]=parseFloat(n.attributes[o]))}),["INDEPENDENT","GAP"].forEach(function(o){n.attributes.hasOwnProperty(o)&&(n.attributes[o]=/YES/.test(n.attributes[o]))}),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=Nm(n.attributes.BYTERANGE)),this.trigger("data",n);return}if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(a),t&&t[1]){n={type:"tag",tagType:"server-control"},n.attributes=Xr(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(o){n.attributes.hasOwnProperty(o)&&(n.attributes[o]=parseFloat(n.attributes[o]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(o){n.attributes.hasOwnProperty(o)&&(n.attributes[o]=/YES/.test(n.attributes[o]))}),this.trigger("data",n);return}if(t=/^#EXT-X-PART-INF:(.*)$/.exec(a),t&&t[1]){n={type:"tag",tagType:"part-inf"},n.attributes=Xr(t[1]),["PART-TARGET"].forEach(function(o){n.attributes.hasOwnProperty(o)&&(n.attributes[o]=parseFloat(n.attributes[o]))}),this.trigger("data",n);return}if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(a),t&&t[1]){n={type:"tag",tagType:"preload-hint"},n.attributes=Xr(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(o){if(n.attributes.hasOwnProperty(o)){n.attributes[o]=parseInt(n.attributes[o],10);let l=o==="BYTERANGE-LENGTH"?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[l]=n.attributes[o],delete n.attributes[o]}}),this.trigger("data",n);return}if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(a),t&&t[1]){n={type:"tag",tagType:"rendition-report"},n.attributes=Xr(t[1]),["LAST-MSN","LAST-PART"].forEach(function(o){n.attributes.hasOwnProperty(o)&&(n.attributes[o]=parseInt(n.attributes[o],10))}),this.trigger("data",n);return}if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(a),t&&t[1]){n={type:"tag",tagType:"daterange"},n.attributes=Xr(t[1]),["ID","CLASS"].forEach(function(l){n.attributes.hasOwnProperty(l)&&(n.attributes[l]=String(n.attributes[l]))}),["START-DATE","END-DATE"].forEach(function(l){n.attributes.hasOwnProperty(l)&&(n.attributes[l]=new Date(n.attributes[l]))}),["DURATION","PLANNED-DURATION"].forEach(function(l){n.attributes.hasOwnProperty(l)&&(n.attributes[l]=parseFloat(n.attributes[l]))}),["END-ON-NEXT"].forEach(function(l){n.attributes.hasOwnProperty(l)&&(n.attributes[l]=/YES/i.test(n.attributes[l]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(l){n.attributes.hasOwnProperty(l)&&(n.attributes[l]=n.attributes[l].toString(16))});let o=/^X-([A-Z]+-)+[A-Z]+$/;for(let l in n.attributes){if(!o.test(l))continue;let u=/[0-9A-Fa-f]{6}/g.test(n.attributes[l]),c=/^\d+(\.\d+)?$/.test(n.attributes[l]);n.attributes[l]=u?n.attributes[l].toString(16):c?parseFloat(n.attributes[l]):String(n.attributes[l])}this.trigger("data",n);return}if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(a),t){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(t=/^#EXT-X-I-FRAMES-ONLY/.exec(a),t){this.trigger("data",{type:"tag",tagType:"i-frames-only"});return}if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(a),t){n={type:"tag",tagType:"content-steering"},n.attributes=Xr(t[1]),this.trigger("data",n);return}if(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(a),t){n={type:"tag",tagType:"i-frame-playlist"},n.attributes=Xr(t[1]),n.attributes.URI&&(n.uri=n.attributes.URI),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=rS(n.attributes.RESOLUTION)),n.attributes["AVERAGE-BANDWIDTH"]&&(n.attributes["AVERAGE-BANDWIDTH"]=parseInt(n.attributes["AVERAGE-BANDWIDTH"],10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),this.trigger("data",n);return}if(t=/^#EXT-X-DEFINE:(.*)$/.exec(a),t){n={type:"tag",tagType:"define"},n.attributes=Xr(t[1]),this.trigger("data",n);return}this.trigger("data",{type:"tag",data:a.slice(4)})})}addParser({expression:e,customType:t,dataParser:n,segment:s}){typeof n!="function"&&(n=a=>a),this.customParsers.push(a=>{if(e.exec(a))return this.trigger("data",{type:"custom",data:n(a),customType:t,segment:s}),!0})}addTagMapper({expression:e,map:t}){let n=s=>e.test(s)?t(s):s;this.tagMappers.push(n)}},ZR=r=>r.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()),xs=function(r){let e={};return Object.keys(r).forEach(function(t){e[ZR(t)]=r[t]}),e},Mm=function(r){let{serverControl:e,targetDuration:t,partTargetDuration:n}=r;if(!e)return;let s="#EXT-X-SERVER-CONTROL",a="holdBack",o="partHoldBack",l=t&&t*3,u=n&&n*2;t&&!e.hasOwnProperty(a)&&(e[a]=l,this.trigger("info",{message:`${s} defaulting HOLD-BACK to targetDuration * 3 (${l}).`})),l&&e[a]<l&&(this.trigger("warn",{message:`${s} clamping HOLD-BACK (${e[a]}) to targetDuration * 3 (${l})`}),e[a]=l),n&&!e.hasOwnProperty(o)&&(e[o]=n*3,this.trigger("info",{message:`${s} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${e[o]}).`})),n&&e[o]<u&&(this.trigger("warn",{message:`${s} clamping PART-HOLD-BACK (${e[o]}) to partTargetDuration * 2 (${u}).`}),e[o]=u)},fd=class extends hd{constructor(e={}){super(),this.lineStream=new Bm,this.parseStream=new $m,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;let t=this,n=[],s={},a,o,l=!1,u=function(){},c={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},h="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",f=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let v=0,p=0,T={};this.on("end",()=>{s.uri||!s.parts&&!s.preloadHints||(!s.map&&a&&(s.map=a),!s.key&&o&&(s.key=o),!s.timeline&&typeof f=="number"&&(s.timeline=f),this.manifest.preloadSegment=s)}),this.parseStream.on("data",function(g){let b,S;if(t.manifest.definitions){for(let x in t.manifest.definitions)if(g.uri&&(g.uri=g.uri.replace(`{$${x}}`,t.manifest.definitions[x])),g.attributes)for(let E in g.attributes)typeof g.attributes[E]=="string"&&(g.attributes[E]=g.attributes[E].replace(`{$${x}}`,t.manifest.definitions[x]))}({tag(){({version(){g.version&&(this.manifest.version=g.version)},"allow-cache"(){this.manifest.allowCache=g.allowed,"allowed"in g||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){let x={};"length"in g&&(s.byterange=x,x.length=g.length,"offset"in g||(g.offset=v)),"offset"in g&&(s.byterange=x,x.offset=g.offset),v=x.offset+x.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"})),g.title&&(s.title=g.title),g.duration>0&&(s.duration=g.duration),g.duration===0&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(!g.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(g.attributes.METHOD==="NONE"){o=null;return}if(!g.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(g.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:g.attributes};return}if(g.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:g.attributes.URI};return}if(g.attributes.KEYFORMAT===h){if(["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(g.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(g.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),g.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(g.attributes.KEYID&&g.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:g.attributes.KEYFORMAT,keyId:g.attributes.KEYID.substring(2)},pssh:nu(g.attributes.URI.split(",")[1])};return}g.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),o={method:g.attributes.METHOD||"AES-128",uri:g.attributes.URI},typeof g.attributes.IV<"u"&&(o.iv=g.attributes.IV)},"media-sequence"(){if(!isFinite(g.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+g.number});return}this.manifest.mediaSequence=g.number},"discontinuity-sequence"(){if(!isFinite(g.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+g.number});return}this.manifest.discontinuitySequence=g.number,f=g.number},"playlist-type"(){if(!/VOD|EVENT/.test(g.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+g.playlist});return}this.manifest.playlistType=g.playlistType},map(){a={},g.uri&&(a.uri=g.uri),g.byterange&&(a.byterange=g.byterange),o&&(a.key=o)},"stream-inf"(){if(this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||c,!g.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}s.attributes||(s.attributes={}),jt(s.attributes,g.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,!(g.attributes&&g.attributes.TYPE&&g.attributes["GROUP-ID"]&&g.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}let x=this.manifest.mediaGroups[g.attributes.TYPE];x[g.attributes["GROUP-ID"]]=x[g.attributes["GROUP-ID"]]||{},b=x[g.attributes["GROUP-ID"]],S={default:/yes/i.test(g.attributes.DEFAULT)},S.default?S.autoselect=!0:S.autoselect=/yes/i.test(g.attributes.AUTOSELECT),g.attributes.LANGUAGE&&(S.language=g.attributes.LANGUAGE),g.attributes.URI&&(S.uri=g.attributes.URI),g.attributes["INSTREAM-ID"]&&(S.instreamId=g.attributes["INSTREAM-ID"]),g.attributes.CHARACTERISTICS&&(S.characteristics=g.attributes.CHARACTERISTICS),g.attributes.FORCED&&(S.forced=/yes/i.test(g.attributes.FORCED)),b[g.attributes.NAME]=S},discontinuity(){f+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=g.dateTimeString,this.manifest.dateTimeObject=g.dateTimeObject),s.dateTimeString=g.dateTimeString,s.dateTimeObject=g.dateTimeObject;let{lastProgramDateTime:x}=this;this.lastProgramDateTime=new Date(g.dateTimeString).getTime(),x===null&&this.manifest.segments.reduceRight((E,k)=>(k.programDateTime=E-k.duration*1e3,k.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(g.duration)||g.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+g.duration});return}this.manifest.targetDuration=g.duration,Mm.call(this,this.manifest)},start(){if(!g.attributes||isNaN(g.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:g.attributes["TIME-OFFSET"],precise:g.attributes.PRECISE}},"cue-out"(){s.cueOut=g.data},"cue-out-cont"(){s.cueOutCont=g.data},"cue-in"(){s.cueIn=g.data},skip(){this.manifest.skip=xs(g.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",g.attributes,["SKIPPED-SEGMENTS"])},part(){l=!0;let x=this.manifest.segments.length,E=xs(g.attributes);s.parts=s.parts||[],s.parts.push(E),E.byterange&&(E.byterange.hasOwnProperty("offset")||(E.byterange.offset=p),p=E.byterange.offset+E.byterange.length);let k=s.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${k} for segment #${x}`,g.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((A,N)=>{A.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${N} lacks required attribute(s): LAST-PART`})})},"server-control"(){let x=this.manifest.serverControl=xs(g.attributes);x.hasOwnProperty("canBlockReload")||(x.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),Mm.call(this,this.manifest),x.canSkipDateranges&&!x.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"(){let x=this.manifest.segments.length,E=xs(g.attributes),k=E.type&&E.type==="PART";s.preloadHints=s.preloadHints||[],s.preloadHints.push(E),E.byterange&&(E.byterange.hasOwnProperty("offset")||(E.byterange.offset=k?p:0,k&&(p=E.byterange.offset+E.byterange.length)));let A=s.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${A} for segment #${x}`,g.attributes,["TYPE","URI"]),!!E.type)for(let N=0;N<s.preloadHints.length-1;N++){let I=s.preloadHints[N];I.type&&I.type===E.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${A} for segment #${x} has the same TYPE ${E.type} as preload hint #${N}`})}},"rendition-report"(){let x=xs(g.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(x);let E=this.manifest.renditionReports.length-1,k=["LAST-MSN","URI"];l&&k.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${E}`,g.attributes,k)},"part-inf"(){this.manifest.partInf=xs(g.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",g.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),Mm.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(xs(g.attributes));let x=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${x}`,g.attributes,["ID","START-DATE"]);let E=this.manifest.dateRanges[x];E.endDate&&E.startDate&&new Date(E.endDate)<new Date(E.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),E.duration&&E.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),E.plannedDuration&&E.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});let k=!!E.endOnNext;if(k&&!E.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT
14=YES attribute must have a CLASS attribute"}),k&&(E.duration||E.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),E.duration&&E.endDate){let N=E.startDate.getTime()+E.duration*1e3;this.manifest.dateRanges[x].endDate=new Date(N)}if(!T[E.id])T[E.id]=E;else{for(let N in T[E.id])if(E[N]&&JSON.stringify(T[E.id][N])!==JSON.stringify(E[N])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}let A=this.manifest.dateRanges.findIndex(N=>N.id===E.id);this.manifest.dateRanges[A]=jt(this.manifest.dateRanges[A],E),T[E.id]=jt(T[E.id],E),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=xs(g.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",g.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};let x=(E,k)=>{if(E in this.manifest.definitions){this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${E}`});return}this.manifest.definitions[E]=k};if("QUERYPARAM"in g.attributes){if("NAME"in g.attributes||"IMPORT"in g.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}let E=this.params.get(g.attributes.QUERYPARAM);if(!E){this.trigger("error",{message:`EXT-X-DEFINE: No query param ${g.attributes.QUERYPARAM}`});return}x(g.attributes.QUERYPARAM,decodeURIComponent(E));return}if("NAME"in g.attributes){if("IMPORT"in g.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}if(!("VALUE"in g.attributes)||typeof g.attributes.VALUE!="string"){this.trigger("error",{message:`EXT-X-DEFINE: No value for ${g.attributes.NAME}`});return}x(g.attributes.NAME,g.attributes.VALUE);return}if("IMPORT"in g.attributes){if(!this.mainDefinitions[g.attributes.IMPORT]){this.trigger("error",{message:`EXT-X-DEFINE: No value ${g.attributes.IMPORT} to import, or IMPORT used on main playlist`});return}x(g.attributes.IMPORT,this.mainDefinitions[g.attributes.IMPORT]);return}this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:g.attributes,uri:g.uri,timeline:f}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",g.attributes,["BANDWIDTH","URI"])}}[g.tagType]||u).call(t)},uri(){s.uri=g.uri,n.push(s),this.manifest.targetDuration&&!("duration"in s)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),o&&(s.key=o),s.timeline=f,a&&(s.map=a),p=0,this.lastProgramDateTime!==null&&(s.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=s.duration*1e3),s={}},comment(){},custom(){g.segment?(s.custom=s.custom||{},s.custom[g.customType]=g.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[g.customType]=g.data)}})[g.type].call(t)})}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger("warn",{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,n){let s=[];n.forEach(function(a){t.hasOwnProperty(a)||s.push(a)}),s.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${s.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push(`
15`),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 Ea,ka,eN,nS,Fm,Ji,sS,Um,tN,Aa,Eo,pd,qm,aS,oS=Ze(()=>{O();R();L();Ea=Z(pn()),ka={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^/},eN=["video","audio","text"],nS=["Video","Audio","Text"],Fm=function(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,function(t,n,s){var a=("00"+Number(n).toString(16)).slice(-2),o=("00"+Number(s).toString(16)).slice(-2);return"avc1."+a+"00"+o})},Ji=function(e){e===void 0&&(e="");var t=e.split(","),n=[];return t.forEach(function(s){s=s.trim();var a;
vendor: 7,272 bytes, line 15
15eN.forEach(function(o){var l=ka[o].exec(s.toLowerCase());if(!(!l||l.length<=1)){a=o;var u=s.substring(0,l[1].length),c=s.replace(u,"");n.push({type:u,details:c,mediaType:o})}}),a||n.push({type:s,details:"",mediaType:"unknown"})}),n},sS=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var s in n){var a=n[s];if(a.default&&a.playlists)return Ji(a.playlists[0].attributes.CODECS)}return null},Um=function(e){return e===void 0&&(e=""),ka.audio.test(e.trim().toLowerCase())},tN=function(e){return e===void 0&&(e=""),ka.text.test(e.trim().toLowerCase())},Aa=function(e){if(!(!e||typeof e!="string")){var t=e.toLowerCase().split(",").map(function(a){return Fm(a.trim())}),n="video";t.length===1&&Um(t[0])?n="audio":t.length===1&&tN(t[0])&&(n="application");var s="mp4";return t.every(function(a){return ka.mp4.test(a)})?s="mp4":t.every(function(a){return ka.webm.test(a)})?s="webm":t.every(function(a){return ka.ogg.test(a)})&&(s="ogg"),n+"/"+s+';codecs="'+e+'"'}},Eo=function(e,t){return e===void 0&&(e=""),t===void 0&&(t=!1),Ea.default.MediaSource&&Ea.default.MediaSource.isTypeSupported&&Ea.default.MediaSource.isTypeSupported(Aa(e))||t&&Ea.default.ManagedMediaSource&&Ea.default.ManagedMediaSource.isTypeSupported&&Ea.default.ManagedMediaSource.isTypeSupported(Aa(e))||!1},pd=function(e){return e===void 0&&(e=""),e.toLowerCase().split(",").every(function(t){t=t.trim();for(var n=0;n<nS.length;n++){var s=nS[n];if(ka["muxer"+s].test(t))return!0}return!1})},qm="mp4a.40.2",aS="avc1.4d400d"});var rN,iN,Hm,lS=Ze(()=>{O();R();L();rN=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,iN=/^application\/dash\+xml/i,Hm=function(e){return rN.test(e)?"hls":iN.test(e)?"dash":e==="application/vnd.videojs.vhs+json"?"vhs-json":null}});var uS,nN,sN,jm,aN,$e,Pr,Vm,aZ,zm,cS,Wm,md,dS,Ct,ws=Ze(()=>{O();R();L();uS=Z(pn()),nN=function(e){return e.toString(2).length},sN=function(e){return Math.ceil(nN(e)/8)},jm=function(e){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},aN=function(e){return jm(e)},$e=function(e){return e instanceof Uint8Array?e:(!Array.isArray(e)&&!aN(e)&&!(e instanceof ArrayBuffer)&&(typeof e!="number"||typeof e=="number"&&e!==e?e=0:e=[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},Pr=uS.default.BigInt||Number,Vm=[Pr("0x1"),Pr("0x100"),Pr("0x10000"),Pr("0x1000000"),Pr("0x100000000"),Pr("0x10000000000"),Pr("0x1000000000000"),Pr("0x100000000000000"),Pr("0x10000000000000000")],aZ=function(){var r=new Uint16Array([65484]),e=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);return e[0]===255?"big":e[0]===204?"little":"unknown"}(),zm=function(e,t){var n=t===void 0?{}:t,s=n.signed,a=s===void 0?!1:s,o=n.le,l=o===void 0?!1:o;e=$e(e);var u=l?"reduce":"reduceRight",c=e[u]?e[u]:Array.prototype[u],h=c.call(e,function(v,p,T){var g=l?T:Math.abs(T+1-e.length);return v+Pr(p)*Vm[g]},Pr(0));if(a){var f=Vm[e.length]/Pr(2)-Pr(1);h=Pr(h),h>f&&(h-=f,h-=f,h-=Pr(2))}return Number(h)},cS=function(e,t){var n=t===void 0?{}:t,s=n.le,a=s===void 0?!1:s;(typeof e!="bigint"&&typeof e!="number"||typeof e=="number"&&e!==e)&&(e=0),e=Pr(e);for(var o=sN(e),l=new Uint8Array(new ArrayBuffer(o)),u=0;u<o;u++){var c=a?u:Math.abs(u+1-l.length);l[c]=Number(e/Vm[u]&Pr(255)),e<0&&(l[c]=Math.abs(~l[c]),l[c]-=u===0?1:2)}return l},Wm=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,$e(e));try{return decodeURIComponent(escape(t))}catch{}return t},md=function(e,t){if(typeof e!="string"&&e&&typeof e.toString=="function"&&(e=e.toString()),typeof e!="string")return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),s=0;s<e.length;s++)n[s]=e.charCodeAt(s);return n},dS=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter(function(l){return l&&(l.byteLength||l.length)&&typeof l!="string"}),t.length<=1)return $e(t[0]);var s=t.reduce(function(l,u,c){return l+(u.byteLength||u.length)},0),a=new Uint8Array(s),o=0;return t.forEach(function(l){l=$e(l),a.set(l,o),o+=l.byteLength}),a},Ct=function(e,t,n){var s=n===void 0?{}:n,a=s.offset,o=a===void 0?0:a,l=s.mask,u=l===void 0?[]:l;e=$e(e),t=$e(t);var c=t.every?t.every:Array.prototype.every;return t.length&&e.length-o>=t.length&&c.call(t,function(h,f){var v=u[f]?u[f]&e[o+f]:e[o+f];return h===v})}});var hS,fS=Ze(()=>{O();R();L();hS=function(e,t,n){t.forEach(function(s){for(var a in e.mediaGroups[s])for(var o in e.mediaGroups[s][a]){var l=e.mediaGroups[s][a][o];n(l,s,a,o)}})}});var ko=pe(Vn=>{"use strict";O();R();L();function oN(r,e,t){if(t===void 0&&(t=Array.prototype),r&&typeof t.find=="function")return t.find.call(r,e);for(var n=0;n<r.length;n++)if(Object.prototype.hasOwnProperty.call(r,n)){var s=r[n];if(e.call(void 0,s,n,r))return s}}function Qm(r,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(r):r}function lN(r,e){if(r===null||typeof r!="object")throw new TypeError("target is not an object");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r}var pS=Qm({HTML:"text/html",isHTML:function(r){return r===pS.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),mS=Qm({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(r){return r===mS.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),gd=/[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]/,Gm=new RegExp("[\\-\\.0-9"+gd.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),uN=new RegExp("^"+gd.source+Gm.source+"*(?::"+gd.source+Gm.source+"*)?$");Vn.assign=lN;Vn.find=oN;Vn.freeze=Qm;Vn.MIME_TYPE=pS;Vn.NAMESPACE=mS;Vn.nameStartChar=gd;Vn.nameChar=Gm;Vn.tagNamePattern=uN});var ag=pe(Gn=>{O();R();L();var Km=ko(),mn=Km.find,au=Km.NAMESPACE,Ao=Km.tagNamePattern;function cN(r){return r!==""}function dN(r){return r?r.split(/[\t\n\f\r ]+/).filter(cN):[]}function hN(r,e){return r.hasOwnProperty(e)||(r[e]=!0),r}function gS(r){if(!r)return[];var e=dN(r);return Object.keys(e.reduce(hN,{}))}function fN(r){return function(e){return r&&r.indexOf(e)!==-1}}function lu(r,e){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}function ai(r,e){var t=r.prototype;if(!(t instanceof e)){let s=function(){};var n=s;s.prototype=e.prototype,s=new s,lu(t,s),r.prototype=t=s}t.constructor!=r&&(typeof r!="function"&&console.error("unknown Class:"+r),t.constructor=r)}var oi={},Ri=oi.ELEMENT_NODE=1,Po=oi.ATTRIBUTE_NODE=2,su=oi.TEXT_NODE=3,wS=oi.CDATA_SECTION_NODE=4,CS=oi.ENTITY_REFERENCE_NODE=5,pN=oi.ENTITY_NODE=6,Xm=oi.PROCESSING_INSTRUCTION_NODE=7,Ym=oi.COMMENT_NODE=8,ES=oi.DOCUMENT_NODE=9,kS=oi.DOCUMENT_TYPE_NODE=10,jn=oi.DOCUMENT_FRAGMENT_NODE=11,mN=oi.NOTATION_NODE=12,Nr={},br={},bZ=Nr.INDEX_SIZE_ERR=(br[1]="Index size error",1),_Z=Nr.DOMSTRING_SIZE_ERR=(br[2]="DOMString size error",2),si=Nr.HIERARCHY_REQUEST_ERR=(br[3]="Hierarchy request error",3),TZ=Nr.WRONG_DOCUMENT_ERR=(br[4]="Wrong document",4),vS=Nr.INVALID_CHARACTER_ERR=(br[5]="Invalid character",5),SZ=Nr.NO_DATA_ALLOWED_ER
vendor: 20,300 bytes, line 15
15R=(br[6]="No data allowed",6),xZ=Nr.NO_MODIFICATION_ALLOWED_ERR=(br[7]="No modification allowed",7),AS=Nr.NOT_FOUND_ERR=(br[8]="Not found",8),wZ=Nr.NOT_SUPPORTED_ERR=(br[9]="Not supported",9),yS=Nr.INUSE_ATTRIBUTE_ERR=(br[10]="Attribute in use",10),Zi=Nr.INVALID_STATE_ERR=(br[11]="Invalid state",11),CZ=Nr.SYNTAX_ERR=(br[12]="Syntax error",12),EZ=Nr.INVALID_MODIFICATION_ERR=(br[13]="Invalid modification",13),kZ=Nr.NAMESPACE_ERR=(br[14]="Invalid namespace",14),AZ=Nr.INVALID_ACCESS_ERR=(br[15]="Invalid access",15);function ct(r,e){if(e instanceof Error)var t=e;else t=this,Error.call(this,br[r]),this.message=br[r],Error.captureStackTrace&&Error.captureStackTrace(this,ct);return t.code=r,e&&(this.message=this.message+": "+e),t}ct.prototype=Error.prototype;lu(Nr,ct);function zn(){}zn.prototype={length:0,item:function(r){return r>=0&&r<this.length?this[r]:null},toString:function(r,e,t){for(var n=!!t&&!!t.requireWellFormed,s=[],a=0;a<this.length;a++)sg(this[a],s,r,e,null,n);return s.join("")},filter:function(r){return Array.prototype.filter.call(this,r)},indexOf:function(r){return Array.prototype.indexOf.call(this,r)}};function Do(r,e){this._node=r,this._refresh=e,Jm(this)}function Jm(r){var e=r._node._inc||r._node.ownerDocument._inc;if(r._inc!==e){var t=r._refresh(r._node);if(qS(r,"length",t.length),!r.$$length||t.length<r.$$length)for(var n=t.length;n in r;n++)Object.prototype.hasOwnProperty.call(r,n)&&delete r[n];lu(t,r),r._inc=e}}Do.prototype.item=function(r){return Jm(this),this[r]||null};ai(Do,zn);function yd(){this._nameIndex=Object.create(null)}function PS(r,e){for(var t=r.length;t--;)if(r[t]===e)return t}function gN(r,e){r._nameIndex[e.nodeName]=e}function DS(r,e){r._nameIndex[e.nodeName]===e&&delete r._nameIndex[e.nodeName]}function bS(r,e,t,n){if(n?(e[PS(e,n)]=t,DS(e,n)):e[e.length++]=t,gN(e,t),r){t.ownerElement=r;var s=r.ownerDocument;s&&(n&&LS(s,r,n),vN(s,r,t))}}function _S(r,e,t){var n=PS(e,t);if(n>=0){for(var s=e.length-1;n<s;)e[n]=e[++n];if(e.length=s,DS(e,t),r){var a=r.ownerDocument;a&&(LS(a,r,t),t.ownerElement=null)}}else throw new ct(AS,new Error(r.tagName+"@"+t))}yd.prototype={length:0,item:zn.prototype.item,getNamedItem:function(r){for(var e=this.length;e--;){var t=this[e];if(t.nodeName==r)return t}},setNamedItem:function(r){var e=r.ownerElement;if(e&&e!=this._ownerElement)throw new ct(yS);var t=this._nameIndex[r.nodeName];return bS(this._ownerElement,this,r,t),t},setNamedItemNS:function(r){var e=r.ownerElement,t;if(e&&e!=this._ownerElement)throw new ct(yS);return t=this.getNamedItemNS(r.namespaceURI,r.localName),bS(this._ownerElement,this,r,t),t},removeNamedItem:function(r){var e=this.getNamedItem(r);return _S(this._ownerElement,this,e),e},removeNamedItemNS:function(r,e){var t=this.getNamedItemNS(r,e);return _S(this._ownerElement,this,t),t},getNamedItemNS:function(r,e){for(var t=this.length;t--;){var n=this[t];if(n.localName==e&&n.namespaceURI==r)return n}return null}};function IS(){}IS.prototype={hasFeature:function(r,e){return!0},createDocument:function(r,e,t){var n=new uu;if(n.implementation=this,n.childNodes=new zn,n.doctype=t||null,t&&n.appendChild(t),e){var s=n.createElementNS(r,e);n.appendChild(s)}return n},createDocumentType:function(r,e,t){var n=new xd;return n.name=r,n.nodeName=r,n.publicId=e||"",n.systemId=t||"",n}};function It(){}It.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(r,e){return _d(this,r,e)},replaceChild:function(r,e){_d(this,r,e,NS),e&&this.removeChild(e)},removeChild:function(r){return RS(this,r)},appendChild:function(r){return this.insertBefore(r,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(r){return US(this.ownerDocument||this,this,r)},normalize:function(){yr(this,null,{enter:function(r){for(var e=r.firstChild;e;){var t=e.nextSibling;if(t!==null&&t.nodeType===su&&e.nodeType===su){for(var n=[],s=t;s!==null&&s.nodeType===su;)n.push(s.data),s=s.nextSibling;for(var a=e.nextSibling;a!==s;){var o=a.nextSibling;a.parentNode=null,a.previousSibling=null,a.nextSibling=null,a=o}e.nextSibling=s,s!==null?s.previousSibling=e:r.lastChild=e,e.appendData(n.join("")),Sd(r.ownerDocument,r),e=s}else e=t}return!0}})},isSupported:function(r,e){return this.ownerDocument.implementation.hasFeature(r,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(r){for(var e=this;e;){var t=e._nsMap;if(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]===r)return n}e=e.nodeType==Po?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(r){for(var e=this;e;){var t=e._nsMap;if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r];e=e.nodeType==Po?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(r){var e=this.lookupPrefix(r);return e==null}};function OS(r){return r=="<"&&"&lt;"||r==">"&&"&gt;"||r=="&"&&"&amp;"||r=='"'&&"&quot;"||"&#"+r.charCodeAt()+";"}lu(oi,It);lu(oi,It.prototype);function bd(r,e){return yr(r,null,{enter:function(t){return e(t)?yr.STOP:!0}})===yr.STOP}function yr(r,e,t){for(var n=[{node:r,context:e,phase:yr.ENTER}];n.length>0;){var s=n.pop();if(s.phase===yr.ENTER){var a=t.enter(s.node,s.context);if(a===yr.STOP)return yr.STOP;if(n.push({node:s.node,context:a,phase:yr.EXIT}),a==null)continue;for(var o=s.node.lastChild;o;)n.push({node:o,context:a,phase:yr.ENTER}),o=o.previousSibling}else t.exit&&t.exit(s.node,s.context)}}yr.STOP=Symbol("walkDOM.STOP");yr.ENTER=0;yr.EXIT=1;function uu(){this.ownerDocument=this}function vN(r,e,t){r&&r._inc++;var n=t.namespaceURI;n===au.XMLNS&&(e._nsMap[t.prefix?t.localName:""]=t.value)}function LS(r,e,t,n){r&&r._inc++;var s=t.namespaceURI;s===au.XMLNS&&delete e._nsMap[t.prefix?t.localName:""]}function Sd(r,e,t){if(r&&r._inc){r._inc++;var n=e.childNodes;if(t)n[n.length++]=t;else{for(var s=e.firstChild,a=0;s;)n[a++]=s,s=s.nextSibling;n.length=a,delete n[n.length]}}}function RS(r,e){var t=e.previousSibling,n=e.nextSibling;return t?t.nextSibling=n:r.firstChild=n,n?n.previousSibling=t:r.lastChild=t,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,Sd(r.ownerDocument,r),e}function yN(r){return r&&(r.nodeType===It.DOCUMENT_NODE||r.nodeType===It.DOCUMENT_FRAGMENT_NODE||r.nodeType===It.ELEMENT_NODE)}function bN(r){return r&&(gn(r)||Zm(r)||Wn(r)||r.nodeType===It.DOCUMENT_FRAGMENT_NODE||r.nodeType===It.COMMENT_NODE||r.nodeType===It.PROCESSING_INSTRUCTION_NODE)}function Wn(r){return r&&r.nodeType===It.DOCUMENT_TYPE_NODE}function gn(r){return r&&r.nodeType===It.ELEMENT_NODE}function Zm(r){return r&&r.nodeType===It.TEXT_NODE}function TS(r,e){var t=r.childNodes||[];if(mn(t,gn)||Wn(e))return!1;var n=mn(t,Wn);return!(e&&n&&t.indexOf(n)>t.indexOf(e))}function SS(r,e){var t=r.childNodes||[];function n(a){return gn(a)&&a!==e}if(mn(t,n))return!1;var s=mn(t,Wn);return!(e&&s&&t.indexOf(s)>t.indexOf(e))}function _N(r,e,t){if(!yN(r))throw new ct(si,"Unexpected parent node type "+r.nodeType);if(t&&t.parentNode!==r)throw new ct(AS,"child not in parent");if(!bN(e)||Wn(e)&&r.nodeType!==It.DOCUMENT_NODE)throw new ct(si,"Unexpected node type "+e.nodeType+" for parent node type "+r.nodeType)}function TN(r,e,t){var n=r.childNodes||[],s=e.childNodes||[];if(e.nodeType===It.DOCUMENT_FRAGMENT_NODE){var a=s.filter(gn);if(a.length>1||mn(s,Zm))throw new ct(si,"More than one element or text in fragment");if(a.length===1&&!TS(r,t))throw new ct(si,"Element in fragment can not be inserted before doctype")}if(gn(e)&&!TS(r,t))throw new ct(si,"Only one element can be added and only after doctype");if(Wn(e)){if(mn(n,Wn))throw new ct(si,"Only one doctype is allowed");var o=mn(n,gn);if(t&&n.indexOf(o)<n.indexOf(t))throw new ct(si,"Doctype can only be inserted before an element");if(!t&&o)throw new ct(si,"Doctype can not be appended since element is present")}}function NS(r,e,t){var n=r.childNodes||[],s=e.childNodes||[];if(e.nodeType===It.DOCUMENT_FRAGMENT_NODE){var a=s.filter(gn);if(a.length>1||mn(s,Zm))throw new ct(si,"More than one element or text in fragment");if(a.length===1&&!SS(r,t))throw new ct(si,"Element in fragment can not be inserted before doctype")}if(gn(e)&&!SS(r,t))throw new ct(si,"Only one element can be added and only after doctype");if(Wn(e)){let u=function(c){return Wn(c)&&c!==t};var l=u;if(mn(n,u))throw new ct(si,"Only one doctype is allowed");var o=mn(n,gn);if(t&&n.indexOf(o)<n.indexOf(t))throw new ct(si,"Doctype can only be inserted before an element")}}function _d(r,e,t,n){_N(r,e,t),r.nodeType===It.DOCUMENT_NODE&&(n||TN)(r,e,t);var s=e.parentNode;if(s&&s.removeChild(e),e.nodeType===jn){var a=e.firstChild;if(a==null)return e;var o=e.lastChild}else a=o=e;var l=t?t.previousSibling:r.lastChild;a.previousSibling=l,o.nextSibling=t,l?l.nextSibling=a:r.firstChild=a,t==null?r.lastChild=o:t.previousSibling=o;do{a.parentNode=r;var u=r.ownerDocument||r;ou(a,u)}while(a!==o&&(a=a.nextSibling));return Sd(r.ownerDocument||r,r),e.nodeType==jn&&(e.firstChild=e.lastChild=null),e}function ou(r,e){if(r.ownerDocument!==e){if(r.ownerDocument=e,r.nodeType===Ri&&r.attributes)for(var t=0;t<r.attributes.length;t++){var n=r.attributes.item(t);n&&(n.ownerDocument=e)}for(var s=r.firstChild;s;)ou(s,e),s=s.nextSibling}}function SN(r,e){e.parentNode&&e.parentNode.removeChild(e),e.parentNode=r,e.previousSibling=r.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:r.firstChild=e,r.lastChild=e,Sd(r.ownerDocument,r,e);var t=r.ownerDocument||r;return ou(e,t),e}uu.prototype={nodeName:"#document",nodeType:ES,doctype:null,documentElement:null,_inc:1,insertBefore:function(r,e){if(r.nodeType==jn){for(var t=r.firstChild;t;){var n=t.nextSibling;this.insertBefore(t,e),t=n}return r}return _d(this,r,e),ou(r,this),this.documentElement===null&&r.nodeType===Ri&&(this.documentElement=r),r},removeChild:function(r){return this.documentElement==r&&(this.documentElement=null),RS(this,r)},replaceChild:function(r,e){_d(this,r,e,NS),ou(r,this),e&&this.removeChild(e),gn(r)&&(this.documentElement=r)},importNode:function(r,e){return xN(this,r,e)},getElementById:function(r){var e=null;return bd(this.documentElement,function(t){if(t.nodeType==Ri&&t.getAttribute("id")==r)return e=t,!0}),e},getElementsByClassName:function(r){var e=gS(r);return new Do(this,function(t){var n=[];return e.length>0&&bd(t.documentElement,function(s){if(s!==t&&s.nodeType===Ri){var a=s.getAttribute("class");if(a){var o=r===a;if(!o){var l=gS(a);o=e.every(fN(l))}o&&n.push(s)}}}),n})},createElement:function(r){var e=new Pa;e.ownerDocument=this,e.nodeName=r,e.tagName=r,e.localName=r,e.childNodes=new zn;var t=e.attributes=new yd;return t._ownerElement=e,e},createDocumentFragment:function(){var r=new wd;return r.ownerDocument=this,r.childNodes=new zn,r},createTextNode:function(r){var e=new eg;return e.ownerDocument=this,e.appendData(r),e},createComment:function(r){var e=new tg;return e.ownerDocument=this,e.appendData(r),e},createCDATASection:function(r){if(r.indexOf("]]>")!==-1)throw new ct(vS,'data contains "]]>"');var e=new rg;return e.ownerDocument=this,e.appendData(r),e},createProcessingInstruction:function(r,e){var t=new ng;return t.ownerDocument=this,t.tagName=t.nodeName=t.target=r,t.nodeValue=t.data=e,t},createAttribute:function(r){var e=new Td;return e.ownerDocument=this,e.name=r,e.nodeName=r,e.localName=r,e.specified=!0,e},createEntityReference:function(r){if(!Ao.test(r))throw new ct(vS,'not a valid xml name "'+r+'"');var e=new ig;return e.ownerDocument=this,e.nodeName=r,e},createElementNS:function(r,e){var t=new Pa,n=e.split(":"),s=t.attributes=new yd;return t.childNodes=new zn,t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.namespaceURI=r,n.length==2?(t.prefix=n[0],t.localName=n[1]):t.localName=e,s._ownerElement=t,t},createAttributeNS:function(r,e){var t=new Td,n=e.split(":");return t.ownerDocument=this,t.nodeName=e,t.name=e,t.namespaceURI=r,t.specified=!0,n.length==2?(t.prefix=n[0],t.localName=n[1]):t.localName=e,t}};ai(uu,It);function Pa(){this._nsMap={}}Pa.prototype={nodeType:Ri,hasAttribute:function(r){return this.getAttributeNode(r)!=null},getAttribute:function(r){var e=this.getAttributeNode(r);return e&&e.value||""},getAttributeNode:function(r){return this.attributes.getNamedItem(r)},setAttribute:function(r,e){var t=this.ownerDocument.createAttribute(r);t.value=t.nodeValue=""+e,this.setAttributeNode(t)},removeAttribute:function(r){var e=this.getAttributeNode(r);e&&this.removeAttributeNode(e)},appendChild:function(r){return r.nodeType===jn?this.insertBefore(r,null):SN(this,r)},setAttributeNode:function(r){return this.attributes.setNamedItem(r)},setAttributeNodeNS:function(r){return this.attributes.setNamedItemNS(r)},removeAttributeNode:function(r){return this.attributes.removeNamedItem(r.nodeName)},removeAttributeNS:function(r,e){var t=this.getAttributeNodeNS(r,e);t&&this.removeAttributeNode(t)},hasAttributeNS:function(r,e){return this.getAttributeNodeNS(r,e)!=null},getAttributeNS:function(r,e){var t=this.getAttributeNodeNS(r,e);return t&&t.value||""},setAttributeNS:function(r,e,t){var n=this.ownerDocument.createAttributeNS(r,e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},getAttributeNodeNS:function(r,e){return this.attributes.getNamedItemNS(r,e)},getElementsByTagName:function(r){return new Do(this,function(e){var t=[];return bd(e,function(n){n!==e&&n.nodeType==Ri&&(r==="*"||n.tagName==r)&&t.push(n)}),t})},getElementsByTagNameNS:function(r,e){return new Do(this,function(t){var n=[];return bd(t,function(s){s!==t&&s.nodeType===Ri&&(r==="*"||s.namespaceURI===r)&&(e==="*"||s.localName==e)&&n.push(s)}),n})}};uu.prototype.getElementsByTagName=Pa.prototype.getElementsByTagName;uu.prototype.getElementsByTagNameNS=Pa.prototype.getElementsByTagNameNS;ai(Pa,It);function Td(){}Td.prototype.nodeType=Po;ai(Td,It);function cu(){}cu.prototype={data:"",substringData:function(r,e){return this.data.substring(r,r+e)},appendData:function(r){r=this.data+r,this.nodeValue=this.data=r,this.length=r.length},insertData:function(r,e){this.replaceData(r,0,e)},appendChild:function(r){throw new Error(br[si])},deleteData:function(r,e){this.replaceData(r,e,"")},replaceData:function(r,e,t){var n=this.data.substring(0,r),s=this.data.substring(r+e);t=n+t+s,this.nodeValue=this.data=t,this.length=t.length}};ai(cu,It);function eg(){}eg.prototype={nodeName:"#text",nodeType:su,splitText:function(r){var e=this.data,t=e.substring(r);e=e.substring(0,r),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(t);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}};ai(eg,cu);function tg(){}tg.prototype={nodeName:"#comment",nodeType:Ym};ai(tg,cu);function rg(){}rg.prototype={nodeName:"#cdata-section",nodeType:wS};ai(rg,cu);function xd(){}xd.prototype.nodeType=kS;ai(xd,It);function MS(){}MS.prototype.nodeType=mN;ai(MS,It);function BS(){}BS.prototype.nodeType=pN;ai(BS,It);function ig(){}ig.prototype.nodeType=CS;ai(ig,It);function wd(){}wd.prototype.nodeName="#document-fragment";wd.prototype.nodeType=jn;ai(wd,It);function ng(){}ng.prototype.nodeType=Xm;ai(ng,It);function $S(){}$S.prototype.serializeToString=function(r,e,t,n){return FS.call(r,e,t,n)};It.prototype.toString=FS;function FS(r,e,t){var n=!!t&&!!t.requireWellFormed,s=[],a=this.nodeType==9&&this.documentElement||this,o=a.prefix,l=a.namespaceURI;if(l&&o==null){var o=a.lookupPrefix(l);if(o==null)var u=[{namespace:l,prefix:null}]}return sg(this,s,r,e,u,n),s.join("")}function xS(r,e,t){var n=r.prefix||"",s=r.namespaceURI;if(!s||n==="xml"&&s===au.XML||s===au.XMLNS)return!1;for(var a=t.length;a--;){var o=t[a];if(o.prefix===n)return o.namespace!==s}return!0}function vd(r,e,t,n){if(n&&!Ao.test(e))throw new ct(Zi,'The attribute name "'+e+'" is not a valid XML QName');r.push(" ",e,'="',t.replace(/[<>&"\t\n\r]/g,OS),'"')}function sg(r,e,t,n,s,a){s||(s=[]),yr(r,{ns:s,isHTML:t},{enter:function(o,l){var u=l.ns,c=l.isHTML;if(n)if(o=n(o),o){if(typeof o=="string")return e.push(o),null}else return null;switch(o.nodeType){case Ri:var h=o.attributes,f=h.length,v=o.tagName;c=au.isHTML(o.namespaceURI)||c;var p=v;if(!c&&!o.prefix&&o.namespaceURI){for(var T,g=0;g<h.length;g++)if(h.item(g).name==="xmlns"){T=h.item(g).value;break}if(!T)for(var b=u.length-1;b>=0;b--){var S=u[b];if(S.prefix===""&&S.namespace===o.namespaceURI){T=S.namespace;break}}if(T!==o.namespaceURI)for(var b=u.length-1;b>=0;b--){var S=u[b];if(S.namespace===o.namespaceURI){S.prefix&&(p=S.prefix+":"+v);break}}}if(a&&!Ao.test(p))throw new ct(Zi,'The element name "'+p+'" is not a valid XML QName');e.push("<",p);for(var x=u.slice(),E=0;E<f;E++){var k=h.item(E);k.prefix=="xmlns"?x.push({prefix:k.localName,namespace:k.value}):k.nodeName=="xmlns"&&x.push({prefix:"",namespace:k.value})}for(var E=0;E<f;E++){var k=h.item(E);if(xS(k,c,x)){var A=k.prefix||"",N=k.namespaceURI;vd(e,A?"xmlns:"+A:"xmlns",N,a),x.push({prefix:A,namespace:N})}var I=n?n(k):k;I&&(typeof I=="string"?e.push(I):vd(e,I.name,I.value,a))}if(v===p&&xS(o,c,x)){var M=o.prefix||"",N=o.namespaceURI;vd(e,M?"xmlns:"+M:"xmlns",N,a),x.push({prefix:M,namespace:N})}var F=o.firstChild;if(F||c&&!/^(?:meta|link|img|br|hr|input)$/i.test(v)){if(e.push(">"),c&&/^script$/i.test(v)){for(;F;)F.data?e.push(F.data):sg(F,e,c,n,x.slice(),a),F=F.nextSibling;return e.push("</",v,">"),null}return{ns:x,isHTML:c,tag:p}}else return e.push("/>"),null;case ES:case jn:return{ns:u.slice(),isHTML:c,tag:null};case Po:return vd(e,o.name,o.value,a),null;case su:return e.push(o.data.replace(/[<&>]/g,OS)),null;case wS:if(a&&o.data.indexOf("]]>")!==-1)throw new ct(Zi,'The CDATASection data contains "]]>"');return e.push("<![CDATA[",o.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case Ym:if(a&&o.data.indexOf("-->")!==-1)throw new ct(Zi,'The comment node data contains "-->"');return e.push("<!--",o.data,"-->"),null;case kS:if(a){if(!Ao.test(o.name))throw new ct(Zi,'The doctype name "'+o.name+'" is not a valid XML Name');if(o.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(o.publicId))throw new ct(Zi,"DocumentType publicId is not a valid PubidLiteral");if(o.systemId&&!/^("[^"]*"|'[^']*')$/.test(o.systemId))throw new ct(Zi,"DocumentType systemId is not a valid SystemLiteral");if(o.internalSubset&&o.internalSubset.indexOf("]>")!==-1)throw new ct(Zi,'DocumentType internalSubset contains "]>"')}var ne=o.publicId,Q=o.systemId;if(e.push("<!DOCTYPE ",o.name),ne)e.push(" PUBLIC ",ne),Q&&Q!="."&&e.push(" ",Q),e.push(">");else if(Q&&Q!=".")e.push(" SYSTEM ",Q,">");else{var j=o.internalSubset;j&&e.push(" [",j,"]"),e.push(">")}return null;case Xm:if(a){if(!Ao.test(o.target)||o.target.indexOf(":")!==-1||o.target.toLowerCase()==="xml")throw new ct(Zi,'The processing instruction target "'+o.target+'" is not a valid XML NCName or is reserved');if(o.data.indexOf("?>")!==-1)throw new ct(Zi,'The ProcessingInstruction data contains "?>"')}return e.push("<?",o.target," ",o.data,"?>"),null;case CS:if(a&&!Ao.test(o.nodeName))throw new ct(Zi,'The entity reference name "'+o.nodeName+'" is not a valid XML Name');return e.push("&",o.nodeName,";"),null;default:return e.push("??",o.nodeName),null}},exit:function(o,l){l&&l.tag&&e.push("</",l.tag,">")}})}function xN(r,e,t){var n;return yr(e,null,{enter:function(s,a){var o=s.cloneNode(!1);o.ownerDocument=r,o.parentNode=null,a===null?n=o:a.appendChild(o);var l=s.nodeType===Po||t;return l?o:null}}),n}function US(r,e,t){var n;return yr(e,null,{enter:function(s,a){var o=new s.constructor;for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l)){var u=s[l];typeof u!="object"&&u!=o[l]&&(o[l]=u)}s.childNodes&&(o.childNodes=new zn),o.ownerDocument=r;var c=t;switch(o.nodeType){case Ri:var h=s.attributes,f=o.attributes=new yd,v=h.length;f._ownerElement=o;for(var p=0;p<v;p++)o.setAttributeNode(US(r,h.item(p),!0));break;case Po:c=!0}return a!==null?a.appendChild(o):n=o,c?o:null}}),n}function qS(r,e,t){r[e]=t}try{Object.defineProperty&&(Object.defineProperty(Do.prototype,"length",{get:function(){return Jm(this),this.$$length}}),Object.defineProperty(It.prototype,"textContent",{get:function(){if(this.nodeType===Ri||this.nodeType===jn){var r=[];return yr(this,null,{enter:function(e){if(e.nodeType===Ri||e.nodeType===jn)return!0;
15if(e.nodeType===Xm||e.nodeType===Ym)return null;r.push(e.nodeValue)}}),r.join("")}return this.nodeValue},set:function(r){switch(this.nodeType){case Ri:case jn:for(;this.firstChild;)this.removeChild(this.firstChild);(r||String(r))&&this.appendChild(this.ownerDocument.createTextNode(r));break;default:this.data=r,this.value=r,this.nodeValue=r}}}),qS=function(r,e,t){r["$$"+e]=t})}catch{}Gn.DocumentType=xd;Gn.DOMException=ct;Gn.DOMImplementation=IS;Gn.Element=Pa;Gn.Node=It;Gn.NodeList=zn;Gn.walkDOM=yr;Gn.XMLSerializer=$S});var VS=pe(du=>{"use strict";O();R();L();var HS=ko().freeze;du.XML_ENTITIES=HS({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});du.HTML_ENTITIES=HS
vendor: 35,739 bytes, lines 15-16
15({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
16`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:"	",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"})
vendor: 6,522 bytes, line 16
16;du.entityMap=du.HTML_ENTITIES});var QS=pe(lg=>{O();R();L();var pu=ko().NAMESPACE,og=ko().tagNamePattern,Io=0,Cs=1,Oo=2,hu=3,Lo=4,Ro=5,fu=6,Cd=7;function No(r,e){this.message=r,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,No)}No.prototype=new Error;No.prototype.name=No.name;function WS(){}WS.prototype={parse:function(r,e,t){var n=this.domBuilder;n.startDocument(),AN(e,e={}),wN(r,e,t,n,this.errorHandler),n.endDocument()}};function wN(r,e,t,n,s){function a(se){if(se>65535){se-=65536;var ge=55296+(se>>10),ce=56320+(se&1023);return String.fromCharCode(ge,ce)}else return String.fromCharCode(se)}function o(se){var ge=se.slice(1,-1);return Object.hasOwnProperty.call(t,ge)?t[ge]:ge.charAt(0)==="#"?a(parseInt(ge.substr(1).replace("x","0x"))):(s.error("entity not found:"+se),se)}function l(se){if(se>g){var ge=r.substring(g,se).replace(/&#?\w+;/g,o);v&&u(g),n.characters(ge,0,se-g),g=se}}function u(se,ge){for(;se>=h&&(ge=f.exec(r));)c=ge.index,h=c+ge[0].length,v.lineNumber++;v.columnNumber=se-c+1}for(var c=0,h=0,f=/.*(?:\r\n?|\n)|.*$/g,v=n.locator,p=[{currentNSMap:e}],T={},g=0;;){try{var b=r.indexOf("<",g);if(b<0){if(!r.substr(g).match(/^\s*$/)){var S=n.doc,x=S.createTextNode(r.substr(g));S.appendChild(x),n.currentElement=x}return}switch(b>g&&l(b),r.charAt(b+1)){case"/":var Q=r.indexOf(">",b+3),E=r.substring(b+2,Q).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),k=p.pop();Q<0?(E=r.substring(b+2).replace(/[\s<].*/,""),s.error("end tag name: "+E+" is not complete:"+k.tagName),Q=b+1+E.length):E.match(/\s</)?(E=E.replace(/[\s<].*/,""),s.error("end tag name: "+E+" maybe not complete"),Q=b+1+E.length):/[ \t\n\r]/.test(E)&&og.test(E.split(/[ \t\n\r]/)[0])&&s.error('end tag name is followed by whitespace and trailing content: "'+E+'"');var A=k.localNSMap,N=k.tagName==E,I=N||k.tagName&&k.tagName.toLowerCase()==E.toLowerCase();if(I){if(n.endElement(k.uri,k.localName,E),A)for(var M in A)Object.prototype.hasOwnProperty.call(A,M)&&n.endPrefixMapping(M);N||s.fatalError("end tag name: "+E+" is not match the current start tagName:"+k.tagName)}else p.push(k);Q++;break;case"?":v&&u(b),Q=DN(r,b,n);break;case"!":v&&u(b),Q=PN(r,b,n,s);break;default:v&&u(b);var F=new GS,ne=p[p.length-1].currentNSMap,Q=CN(r,b,F,ne,o,s),j=F.length;if(!F.closed&&kN(r,Q,F.tagName,T)&&(F.closed=!0,t.nbsp||s.warning("unclosed xml attribute")),v&&j){for(var H=jS(v,{}),W=0;W<j;W++){var ae=F[W];u(ae.offset),ae.locator=jS(v,{})}n.locator=H,zS(F,n,ne)&&p.push(F),n.locator=v}else zS(F,n,ne)&&p.push(F);pu.isHTML(F.uri)&&!F.closed?Q=EN(r,Q,F.tagName,o,n):Q++}}catch(se){if(se instanceof No)throw se;s.error("element parse error: "+se),Q=-1}Q>g?g=Q:l(Math.max(b,g)+1)}}function jS(r,e){return e.lineNumber=r.lineNumber,e.columnNumber=r.columnNumber,e}function CN(r,e,t,n,s,a){function o(p,T,g){t.attributeNames.hasOwnProperty(p)&&a.fatalError("Attribute "+p+" redefined"),t.addValue(p,T.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,s),g)}for(var l,u,c=++e,h=Io;;){var f=r.charAt(c);if(h===Io&&f==="<")throw new Error("unexpected < in tag name: "+r.slice(e,c));switch(f){case"=":if(h===Cs)l=r.slice(e,c),h=hu;else if(h===Oo)h=hu;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(h===hu||h===Cs)if(h===Cs&&(a.warning('attribute value must after "="'),l=r.slice(e,c)),e=c+1,c=r.indexOf(f,e),c>0)u=r.slice(e,c),o(l,u,e-1),h=Ro;else throw new Error("attribute value no end '"+f+"' match");else if(h==Lo)u=r.slice(e,c),o(l,u,e),a.warning('attribute "'+l+'" missed start quot('+f+")!!"),e=c+1,h=Ro;else throw new Error('attribute value must after "="');break;case"/":switch(h){case Io:t.setTagName(r.slice(e,c));case Ro:case fu:case Cd:h=Cd,t.closed=!0;case Lo:case Cs:break;case Oo:t.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),h==Io&&t.setTagName(r.slice(e,c)),c;case">":switch(h){case Io:t.setTagName(r.slice(e,c));case Ro:case fu:case Cd:break;case Lo:case Cs:u=r.slice(e,c),u.slice(-1)==="/"&&(t.closed=!0,u=u.slice(0,-1));case Oo:h===Oo&&(u=l),h==Lo?(a.warning('attribute "'+u+'" missed quot(")!'),o(l,u,e)):((!pu.isHTML(n[""])||!u.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),o(u,u,e));break;case hu:throw new Error("attribute value missed!!")}return c;case"\x80":f=" ";default:if(f<=" ")switch(h){case Io:t.setTagName(r.slice(e,c)),h=fu;break;case Cs:l=r.slice(e,c),h=Oo;break;case Lo:var u=r.slice(e,c);a.warning('attribute "'+u+'" missed quot(")!!'),o(l,u,e);case Ro:h=fu;break}else switch(h){case Oo:var v=t.tagName;(!pu.isHTML(n[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),o(l,l,e),e=c,h=Cs;break;case Ro:a.warning('attribute space is required"'+l+'"!!');case fu:h=Cs,e=c;break;case hu:h=Lo,e=c;break;case Cd:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function zS(r,e,t){for(var n=r.tagName,s=null,f=r.length;f--;){var a=r[f],o=a.qName,l=a.value,v=o.indexOf(":");if(v>0)var u=a.prefix=o.slice(0,v),c=o.slice(v+1),h=u==="xmlns"&&c;else c=o,u=null,h=o==="xmlns"&&"";a.localName=c,h!==!1&&(s==null&&(s={},t=Object.create(t)),t[h]=s[h]=l,a.uri=pu.XMLNS,e.startPrefixMapping(h,l))}for(var f=r.length;f--;){a=r[f];var u=a.prefix;u&&(u==="xml"&&(a.uri=pu.XML),u!=="xmlns"&&(a.uri=t[u||""]))}var v=n.indexOf(":");v>0?(u=r.prefix=n.slice(0,v),c=r.localName=n.slice(v+1)):(u=null,c=r.localName=n);var p=r.uri=t[u||""];if(e.startElement(p,c,n,r),r.closed){if(e.endElement(p,c,n),s)for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&e.endPrefixMapping(u)}else return r.currentNSMap=t,r.localNSMap=s,!0}function EN(r,e,t,n,s){if(/^(?:script|textarea)$/i.test(t)){var a=r.indexOf("</"+t+">",e),o=r.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(t)?(s.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),s.characters(o,0,o.length),a)}return e+1}function kN(r,e,t,n){var s=n[t];return s==null&&(s=r.lastIndexOf("</"+t+">"),s<e&&(s=r.lastIndexOf("</"+t)),n[t]=s),s<e}function AN(r,e){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}function PN(r,e,t,n){var s=r.charAt(e+2);switch(s){case"-":if(r.charAt(e+3)==="-"){var a=r.indexOf("-->",e+4);return a>e?(t.comment(r,e+4,a-e-4),a+3):(n.error("Unclosed comment"),-1)}else return-1;default:if(r.substr(e+3,6)=="CDATA["){var a=r.indexOf("]]>",e+9);return t.startCDATA(),t.characters(r,e+9,a-e-9),t.endCDATA(),a+3}var o=IN(r,e),l=o.length;if(l>
vendor: 4,722 bytes, lines 16-19
161&&/!doctype/i.test(o[0][0])){var u=o[1][0],c=!1,h=!1;l>3&&(/^public$/i.test(o[2][0])?(c=o[3][0],h=l>4&&o[4][0]):/^system$/i.test(o[2][0])&&(h=o[3][0]));var f=o[l-1];return t.startDTD(u,c,h),t.endDTD(),f.index+f[0].length}}return-1}function DN(r,e,t){var n=r.indexOf("?>",e);if(n){var s=r.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(s){var a=s[0].length;return t.processingInstruction(s[1],s[2]),n+2}else return-1}return-1}function GS(){this.attributeNames={}}GS.prototype={setTagName:function(r){if(!og.test(r))throw new Error("invalid tagName:"+r);this.tagName=r},addValue:function(r,e,t){if(!og.test(r))throw new Error("invalid attribute:"+r);this.attributeNames[r]=this.length,this[this.length++]={qName:r,value:e,offset:t}},length:0,getLocalName:function(r){return this[r].localName},getLocator:function(r){return this[r].locator},getQName:function(r){return this[r].qName},getURI:function(r){return this[r].uri},getValue:function(r){return this[r].value}};function IN(r,e){var t,n=[],s=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(s.lastIndex=e,s.exec(r);t=s.exec(r);)if(n.push(t),t[1])return n}lg.XMLReader=WS;lg.ParseError=No});var tx=pe(kd=>{O();R();L();var ON=ko(),LN=ag(),KS=VS(),JS=QS(),RN=LN.DOMImplementation,XS=ON.NAMESPACE,NN=JS.ParseError,MN=JS.XMLReader;function ZS(r){return r.replace(/\r[\n\u0085]/g,`
17`).replace(/[\r\u0085\u2028]/g,`
18`)}function ex(r){this.options=r||{locator:{}}}ex.prototype.parseFromString=function(r,e){var t=this.options,n=new MN,s=t.domBuilder||new mu,a=t.errorHandler,o=t.locator,l=t.xmlns||{},u=/\/x?html?$/.test(e),c=u?KS.HTML_ENTITIES:KS.XML_ENTITIES;o&&s.setDocumentLocator(o),n.errorHandler=BN(a,s,o),n.domBuilder=t.domBuilder||s,u&&(l[""]=XS.HTML),l.xml=l.xml||XS.XML;var h=t.normalizeLineEndings||ZS;return r&&typeof r=="string"?n.parse(h(r),l,c):n.errorHandler.error("invalid doc source"),s.doc};function BN(r,e,t){if(!r){if(e instanceof mu)return e;r=e}var n={},s=r instanceof Function;t=t||{};function a(o){var l=r[o];!l&&s&&(l=r.length==2?function(u){r(o,u)}:r),n[o]=l&&function(u){l("[xmldom "+o+"]	"+u+ug(t))}||function(){}}return a("warning"),a("error"),a("fatalError"),n}function mu(){this.cdata=!1}function Mo(r,e){e.lineNumber=r.lineNumber,e.columnNumber=r.columnNumber}mu.prototype={startDocument:function(){this.doc=new RN().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(r,e,t,n){var s=this.doc,a=s.createElementNS(r,t||e),o=n.length;Ed(this,a),this.currentElement=a,this.locator&&Mo(this.locator,a);for(var l=0;l<o;l++){var r=n.getURI(l),u=n.getValue(l),t=n.getQName(l),c=s.createAttributeNS(r,t);this.locator&&Mo(n.getLocator(l),c),c.value=c.nodeValue=u,a.setAttributeNode(c)}},endElement:function(r,e,t){var n=this.currentElement,s=n.tagName;this.currentElement=n.parentNode},startPrefixMapping:function(r,e){},endPrefixMapping:function(r){},processingInstruction:function(r,e){var t=this.doc.createProcessingInstruction(r,e);this.locator&&Mo(this.locator,t),Ed(this,t)},ignorableWhitespace:function(r,e,t){},characters:function(r,e,t){if(r=YS.apply(this,arguments),r){if(this.cdata)var n=this.doc.createCDATASection(r);else var n=this.doc.createTextNode(r);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(r)&&this.doc.appendChild(n),this.locator&&Mo(this.locator,n)}},skippedEntity:function(r){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(r){(this.locator=r)&&(r.lineNumber=0)},comment:function(r,e,t){r=YS.apply(this,arguments);var n=this.doc.createComment(r);this.locator&&Mo(this.locator,n),Ed(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(r,e,t){var n=this.doc.implementation;if(n&&n.createDocumentType){var s=n.createDocumentType(r,e,t);this.locator&&Mo(this.locator,s),Ed(this,s),this.doc.doctype=s}},warning:function(r){console.warn("[xmldom warning]	"+r,ug(this.locator))},error:function(r){console.error("[xmldom error]	"+r,ug(this.locator))},fatalError:function(r){throw new NN(r,this.locator)}};function ug(r){if(r)return`
19@`+(r.systemId||"")+"#[line:"+r.lineNumber+",col:"+r.columnNumber+"]"}function YS(r,e,t){return typeof r=="string"?r.substr(e,t):r.length>=e+t||e?new java.lang.String(r,e,t)+"":r}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(r){mu.prototype[r]=function(){return null}});function Ed(r,e){r.currentElement?r.currentElement.appendChild(e):r.doc.appendChild(e)}kd.__DOMHandler=mu;kd.normalizeLineEndings=ZS;kd.DOMParser=ex});var ix=pe(Ad=>{O();R();L();var rx=ag();Ad.DOMImplementation=rx.DOMImplementation;
19Ad.XMLSerializer=rx.XMLSerializer;Ad.DOMParser=tx().DOMParser});var Yr,dx,nx,_r,hx,$N,$o,fx,FN,UN,Fo,gu,qN,sx,HN,VN,dg,px,Pd,jN,zN,mx,WN,ax,ox,GN,QN,vu,cg,hg,KN,XN,YN,JN,ZN,eM,tM,rM,iM,nM,sM,lx,aM,oM,gx,lM,uM,ux,cM,dM,hM,fM,pM,mM,qt,yu,gM,Bo,vM,cx,yM,dr,bM,Dd,fg,_M,TM,SM,xM,wM,CM,EM,kM,AM,vx,PM,yx,bx,_x=Ze(()=>{O();R();L();Om();Yr=Z(pn());fS();Rm();dx=Z(ix());nx=r=>!!r&&typeof r=="object",_r=(...r)=>r.reduce((e,t)=>(typeof t!="object"||Object.keys(t).forEach(n=>{Array.isArray(e[n])&&Array.isArray(t[n])?e[n]=e[n].concat(t[n]):nx(e[n])&&nx(t[n])?e[n]=_r(e[n],t[n]):e[n]=t[n]}),e),{}),hx=r=>Object.keys(r).map(e=>r[e]),$N=(r,e)=>{let t=[];for(let n=r;n<e;n++)t.push(n);return t},$o=r=>r.reduce((e,t)=>e.concat(t),[]),fx=r=>{if(!r.length)return[];let e=[];for(let t=0;t<r.length;t++)e.push(r[t]);return e},FN=(r,e)=>r.reduce((t,n,s)=>(n[e]&&t.push(s),t),[]),UN=(r,e)=>hx(r.reduce((t,n)=>(n.forEach(s=>{t[e(s)]=s}),t),{})),Fo={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"},gu=({baseUrl:r="",source:e="",range:t="",indexRange:n=""})=>{let s={uri:e,resolvedUri:Co(r||"",e)};if(t||n){let o=(t||n).split("-"),l=Yr.default.BigInt?Yr.default.BigInt(o[0]):parseInt(o[0],10),u=Yr.default.BigInt?Yr.default.BigInt(o[1]):parseInt(o[1],10);l<Number.MAX_SAFE_INTEGER&&typeof l=="bigint"&&(l=Number(l)),u<Number.MAX_SAFE_INTEGER&&typeof u=="bigint"&&(u=Number(u));let c;typeof u=="bigint"||typeof l=="bigint"?c=Yr.default.BigInt(u)-Yr.default.BigInt(l)+Yr.default.BigInt(1):c=u-l+1,typeof c=="bigint"&&c<Number.MAX_SAFE_INTEGER&&(c=Number(c)),s.byterange={length:c,offset:l}}return s},qN=r=>{let e;return typeof r.offset=="bigint"||typeof r.length=="bigint"?e=Yr.default.BigInt(r.offset)+Yr.default.BigInt(r.length)-Yr.default.BigInt(1):e=r.offset+r.length-1,`${r.offset}-${e}`},sx=r=>(r&&typeof r!="number"&&(r=parseInt(r,10)),isNaN(r)?null:r),HN={static(r){let{duration:e,timescale:t=1,sourceDuration:n,periodDuration:s}=r,a=sx(r.endNumber),o=e/t;return typeof a=="number"?{start:0,end:a}:typeof s=="number"?{start:0,end:s/o}:{start:0,end:n/o}},dynamic(r){let{NOW:e,clientOffset:t,availabilityStartTime:n,timescale:s=1,duration:a,periodStart:o=0,minimumUpdatePeriod:l=0,timeShiftBufferDepth:u=1/0}=r,c=sx(r.endNumber),h=(e+t)/1e3,f=n+o,p=h+l-f,T=Math.ceil(p*s/a),g=Math.floor((h-f-u)*s/a),b=Math.floor((h-f)*s/a);return{start:Math.max(0,g),end:typeof c=="number"?c:Math.min(T,b)}}},VN=r=>e=>{let{duration:t,timescale:n=1,periodStart:s,startNumber:a=1}=r;return{number:a+e,duration:t/n,timeline:s,time:e*t}},dg=r=>{let{type:e,duration:t,timescale:n=1,periodDuration:s,sourceDuration:a}=r,{start:o,end:l}=HN[e](r),u=$N(o,l).map(VN(r));if(e==="static"){let c=u.length-1,h=typeof s=="number"?s:a;u[c].duration=h-t/n*c}return u},px=r=>{let{baseUrl:e,initialization:t={},sourceDuration:n,indexRange:s="",periodStart:a,presentationTime:o,number:l=0,duration:u}=r;if(!e)throw new Error(Fo.NO_BASE_URL);let c=gu({baseUrl:e,source:t.sourceURL,range:t.range}),h=gu({baseUrl:e,source:e,indexRange:s});if(h.map=c,u){let f=dg(r);f.length&&(h.duration=f[0].duration,h.timeline=f[0].timeline)}else n&&(h.duration=n,h.timeline=a);return h.presentationTime=o||a,h.number=l,[h]},Pd=(r,e,t)=>{let n=r.sidx.map?r.sidx.map:null,s=r.sidx.duration,a=r.timeline||0,o=r.sidx.byterange,l=o.offset+o.length,u=e.timescale,c=e.references.filter(b=>b.referenceType!==1),h=[],f=r.endList?"static":"dynamic",v=r.sidx.timeline,p=v,T=r.mediaSequence||0,g;typeof e.firstOffset=="bigint"?g=Yr.default.BigInt(l)+e.firstOffset:g=l+e.firstOffset;for(let b=0;b<c.length;b++){let S=e.references[b],x=S.referencedSize,E=S.subsegmentDuration,k;typeof g=="bigint"?k=g+Yr.default.BigInt(x)-Yr.default.BigInt(1):k=g+x-1;let A=`${g}-${k}`,I=px({baseUrl:t,timescale:u,timeline:a,periodStart:v,presentationTime:p,number:T,duration:E,sourceDuration:s,indexRange:A,type:f})[0];n&&(I.map=n),h.push(I),typeof g=="bigint"?g+=Yr.default.BigInt(x):g+=x,p+=E/u,T++}return r.segments=h,r},jN=["AUDIO","SUBTITLES"],zN=1/60,mx=r=>UN(r,({timeline:e})=>e).sort((e,t)=>
vendor: 4,216 bytes, line 19
19e.timeline>t.timeline?1:-1),WN=(r,e)=>{for(let t=0;t<r.length;t++)if(r[t].attributes.NAME===e)return r[t];return null},ax=r=>{let e=[];return hS(r,jN,(t,n,s,a)=>{e=e.concat(t.playlists||[])}),e},ox=({playlist:r,mediaSequence:e})=>{r.mediaSequence=e,r.segments.forEach((t,n)=>{t.number=r.mediaSequence+n})},GN=({oldPlaylists:r,newPlaylists:e,timelineStarts:t})=>{e.forEach(n=>{n.discontinuitySequence=t.findIndex(function({timeline:u}){return u===n.timeline});let s=WN(r,n.attributes.NAME);if(!s||n.sidx)return;let a=n.segments[0],o=s.segments.findIndex(function(u){return Math.abs(u.presentationTime-a.presentationTime)<zN});if(o===-1){ox({playlist:n,mediaSequence:s.mediaSequence+s.segments.length}),n.segments[0].discontinuity=!0,n.discontinuityStarts.unshift(0),(!s.segments.length&&n.timeline>s.timeline||s.segments.length&&n.timeline>s.segments[s.segments.length-1].timeline)&&n.discontinuitySequence--;return}s.segments[o].discontinuity&&!a.discontinuity&&(a.discontinuity=!0,n.discontinuityStarts.unshift(0),n.discontinuitySequence--),ox({playlist:n,mediaSequence:s.segments[o].number})})},QN=({oldManifest:r,newManifest:e})=>{let t=r.playlists.concat(ax(r)),n=e.playlists.concat(ax(e));return e.timelineStarts=mx([r.timelineStarts,e.timelineStarts]),GN({oldPlaylists:t,newPlaylists:n,timelineStarts:e.timelineStarts}),e},vu=r=>r&&r.uri+"-"+qN(r.byterange),cg=r=>{let e=r.reduce(function(n,s){return n[s.attributes.baseUrl]||(n[s.attributes.baseUrl]=[]),n[s.attributes.baseUrl].push(s),n},{}),t=[];return Object.values(e).forEach(n=>{let s=hx(n.reduce((a,o)=>{let l=o.attributes.id+(o.attributes.lang||"");return a[l]?(o.segments&&(o.segments[0]&&(o.segments[0].discontinuity=!0),a[l].segments.push(...o.segments)),o.attributes.contentProtection&&(a[l].attributes.contentProtection=o.attributes.contentProtection)):(a[l]=o,a[l].attributes.timelineStarts=[]),a[l].attributes.timelineStarts.push({start:o.attributes.periodStart,timeline:o.attributes.periodStart}),a},{}));t=t.concat(s)}),t.map(n=>(n.discontinuityStarts=FN(n.segments||[],"discontinuity"),n))},hg=(r,e)=>{let t=vu(r.sidx),n=t&&e[t]&&e[t].sidx;return n&&Pd(r,n,r.sidx.resolvedUri),r},KN=(r,e={})=>{if(!Object.keys(e).length)return r;for(let t in r)r[t]=hg(r[t],e);return r},XN=({attributes:r,segments:e,sidx:t,mediaSequence:n,discontinuitySequence:s,discontinuityStarts:a},o)=>{let l={attributes:{NAME:r.id,BANDWIDTH:r.bandwidth,CODECS:r.codecs,"PROGRAM-ID":1},uri:"",endList:r.type==="static",timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,discontinuitySequence:s,discontinuityStarts:a,timelineStarts:r.timelineStarts,mediaSequence:n,segments:e};return r.contentProtection&&(l.contentProtection=r.contentProtection),r.serviceLocation&&(l.attributes.serviceLocation=r.serviceLocation),t&&(l.sidx=t),o&&(l.attributes.AUDIO="audio",l.attributes.SUBTITLES="subs"),l},YN=({attributes:r,segments:e,mediaSequence:t,discontinuityStarts:n,discontinuitySequence:s})=>{typeof e>"u"&&(e=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);let a={NAME:r.id,BANDWIDTH:r.bandwidth,"PROGRAM-ID":1};r.codecs&&(a.CODECS=r.codecs);let o={attributes:a,uri:"",endList:r.type==="static",timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:n,discontinuitySequence:s,mediaSequence:t,segments:e};return r.serviceLocation&&(o.attributes.serviceLocation=r.serviceLocation),o},JN=(r,e={},t=!1)=>{let n,s=r.reduce((a,o)=>{let l=o.attributes.role&&o.attributes.role.value||"",u=o.attributes.lang||"",c=o.attributes.label||"main";if(u&&!o.attributes.label){let f=l?` (${l})`:"";c=`${o.attributes.lang}${f}`}a[c]||(a[c]={language:u,autoselect:!0,default:l==="main",playlists:[],uri:""});let h=hg(XN(o,t),e);return a[c].playlists.push(h),typeof n>"u"&&l==="main"&&(n=o,n.default=!0),a},{});if(!n){let a=Object.keys(s)[0];s[a].default=!0}return s},ZN=(r,e={})=>r.reduce((t,n)=>{let s=n.attributes.label||n.attributes.lang||"text",a=n.attributes.lang||"und";return t[s]||(t[s]={language:a,default:!1,autoselect:!1,playlists:[],uri:""}),t[s].playlists.push(hg(YN(n),e)),t},{}),eM=r=>r.reduce((e,t)=>
vendor: 3,654 bytes, line 19
19(t&&t.forEach(n=>{let{channel:s,language:a}=n;e[a]={autoselect:!1,default:!1,instreamId:s,language:a},n.hasOwnProperty("aspectRatio")&&(e[a].aspectRatio=n.aspectRatio),n.hasOwnProperty("easyReader")&&(e[a].easyReader=n.easyReader),n.hasOwnProperty("3D")&&(e[a]["3D"]=n["3D"])}),e),{}),tM=({attributes:r,segments:e,sidx:t,discontinuityStarts:n})=>{let s={attributes:{NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth,"PROGRAM-ID":1},uri:"",endList:r.type==="static",timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,discontinuityStarts:n,timelineStarts:r.timelineStarts,segments:e};return r.frameRate&&(s.attributes["FRAME-RATE"]=r.frameRate),r.qualityRanking!==void 0&&(s.attributes.SCORE=1/(r.qualityRanking+1)),r.contentProtection&&(s.contentProtection=r.contentProtection),r.serviceLocation&&(s.attributes.serviceLocation=r.serviceLocation),t&&(s.sidx=t),s},rM=({attributes:r})=>r.mimeType==="video/mp4"||r.mimeType==="video/webm"||r.contentType==="video",iM=({attributes:r})=>r.mimeType==="audio/mp4"||r.mimeType==="audio/webm"||r.contentType==="audio",nM=({attributes:r})=>r.mimeType==="text/vtt"||r.contentType==="text",sM=(r,e)=>{r.forEach(t=>{t.mediaSequence=0,t.discontinuitySequence=e.findIndex(function({timeline:n}){return n===t.timeline}),t.segments&&t.segments.forEach((n,s)=>{n.number=s})})},lx=r=>r?Object.keys(r).reduce((e,t)=>{let n=r[t];return e.concat(n.playlists)},[]):[],aM=({dashPlaylists:r,locations:e,contentSteering:t,sidxMapping:n={},previousManifest:s,eventStream:a})=>{if(!r.length)return{};let{sourceDuration:o,type:l,suggestedPresentationDelay:u,minimumUpdatePeriod:c}=r[0].attributes,h=cg(r.filter(rM)).map(tM),f=cg(r.filter(iM)),v=cg(r.filter(nM)),p=r.map(k=>k.attributes.captionServices).filter(Boolean),T={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:o,playlists:KN(h,n)};c>=0&&(T.minimumUpdatePeriod=c*1e3),e&&(T.locations=e),t&&(T.contentSteering=t),l==="dynamic"&&(T.suggestedPresentationDelay=u),a&&a.length>0&&(T.eventStream=a);let g=T.playlists.length===0,b=f.length?JN(f,n,g):null,S=v.length?ZN(v,n):null,x=h.concat(lx(b),lx(S)),E=x.map(({timelineStarts:k})=>k);return T.timelineStarts=mx(E),sM(x,T.timelineStarts),b&&(T.mediaGroups.AUDIO.audio=b),S&&(T.mediaGroups.SUBTITLES.subs=S),p.length&&(T.mediaGroups["CLOSED-CAPTIONS"].cc=eM(p)),s?QN({oldManifest:s,newManifest:T}):T},oM=(r,e,t)=>{let{NOW:n,clientOffset:s,availabilityStartTime:a,timescale:o=1,periodStart:l=0,minimumUpdatePeriod:u=0}=r,c=(n+s)/1e3,h=a+l,v=c+u-h;return Math.ceil((v*o-e)/t)},gx=(r,e)=>{let{type:t,minimumUpdatePeriod:n=0,media:s="",sourceDuration:a,timescale:o=1,startNumber:l=1,periodStart:u}=r,c=[],h=-1;for(let f=0;f<e.length;f++){let v=e[f],p=v.d,T=v.r||0,g=v.t||0;h<0&&(h=g),g&&g>h&&(h=g);let b;if(T<0){let E=f+1;E===e.length?t==="dynamic"&&n>0&&s.indexOf("$Number$")>0?b=oM(r,h,p):b=(a*o-h)/p:b=(e[E].t-h)/p}else b=T+1;let S=l+c.length+b,x=l+c.length;for(;x<S;)c.push({number:x,duration:p/o,time:h,timeline:u}),h+=p,x++}return c},lM=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,uM=r=>(e,t,n,s)=>{if(e==="$$")return"$";if(typeof r[t]>"u")return e;let a=""+r[t];return t==="RepresentationID"||(n?s=parseInt(s,10):s=1,a.length>=s)?a:`${new Array(s-a.length+1).join("0")}${a}`},ux=(r,e)=>r.replace(lM,uM(e)),cM=(r,e)=>!r.duration&&!e?[{number:r.startNumber||1,duration:r.sourceDuration,time:0,timeline:r.periodStart}]:r.duration?dg(r):gx(r,e),dM=(r,e)=>{let t={RepresentationID:r.id,Bandwidth:r.bandwidth||0},{initialization:n={sourceURL:"",range:""}}
vendor: 4,210 bytes, line 19
19=r,s=gu({baseUrl:r.baseUrl,source:ux(n.sourceURL,t),range:n.range});return cM(r,e).map(o=>{t.Number=o.number,t.Time=o.time;let l=ux(r.media||"",t),u=r.timescale||1,c=r.presentationTimeOffset||0,h=r.periodStart+(o.time-c)/u;return{uri:l,timeline:o.timeline,duration:o.duration,resolvedUri:Co(r.baseUrl||"",l),map:s,number:o.number,presentationTime:h}})},hM=(r,e)=>{let{baseUrl:t,initialization:n={}}=r,s=gu({baseUrl:t,source:n.sourceURL,range:n.range}),a=gu({baseUrl:t,source:e.media,range:e.mediaRange});return a.map=s,a},fM=(r,e)=>{let{duration:t,segmentUrls:n=[],periodStart:s}=r;if(!t&&!e||t&&e)throw new Error(Fo.SEGMENT_TIME_UNSPECIFIED);let a=n.map(u=>hM(r,u)),o;return t&&(o=dg(r)),e&&(o=gx(r,e)),o.map((u,c)=>{if(a[c]){let h=a[c],f=r.timescale||1,v=r.presentationTimeOffset||0;return h.timeline=u.timeline,h.duration=u.duration,h.number=u.number,h.presentationTime=s+(u.time-v)/f,h}}).filter(u=>u)},pM=({attributes:r,segmentInfo:e})=>{let t,n;e.template?(n=dM,t=_r(r,e.template)):e.base?(n=px,t=_r(r,e.base)):e.list&&(n=fM,t=_r(r,e.list));let s={attributes:r};if(!n)return s;let a=n(t,e.segmentTimeline);if(t.duration){let{duration:o,timescale:l=1}=t;t.duration=o/l}else a.length?t.duration=a.reduce((o,l)=>Math.max(o,Math.ceil(l.duration)),0):t.duration=0;return s.attributes=t,s.segments=a,e.base&&t.indexRange&&(s.sidx=a[0],s.segments=[]),s},mM=r=>r.map(pM),qt=(r,e)=>fx(r.childNodes).filter(({tagName:t})=>t===e),yu=r=>r.textContent.trim(),gM=r=>parseFloat(r.split("/").reduce((e,t)=>e/t)),Bo=r=>{let l=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(r);if(!l)return 0;let[u,c,h,f,v,p]=l.slice(1);return parseFloat(u||0)*31536e3+parseFloat(c||0)*2592e3+parseFloat(h||0)*86400+parseFloat(f||0)*3600+parseFloat(v||0)*60+parseFloat(p||0)},vM=r=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(r)&&(r+="Z"),Date.parse(r)),cx={mediaPresentationDuration(r){return Bo(r)},availabilityStartTime(r){return vM(r)/1e3},minimumUpdatePeriod(r){return Bo(r)},suggestedPresentationDelay(r){return Bo(r)},type(r){return r},timeShiftBufferDepth(r){return Bo(r)},start(r){return Bo(r)},width(r){return parseInt(r,10)},height(r){return parseInt(r,10)},bandwidth(r){return parseInt(r,10)},frameRate(r){return gM(r)},startNumber(r){return parseInt(r,10)},timescale(r){return parseInt(r,10)},presentationTimeOffset(r){return parseInt(r,10)},duration(r){let e=parseInt(r,10);return isNaN(e)?Bo(r):e},d(r){return parseInt(r,10)},t(r){return parseInt(r,10)},r(r){return parseInt(r,10)},presentationTime(r){return parseInt(r,10)},qualityRanking(r){return parseInt(r,10)},qualityranking(r){return parseInt(r,10)},DEFAULT(r){return r}},yM={qualityranking:"qualityRanking"},dr=r=>r&&r.attributes?fx(r.attributes).reduce((e,t)=>{let n=cx[t.name]||cx.DEFAULT,s=yM[t.name]||t.name;return e[s]=n(t.value),e},{}):{},bM={"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"},Dd=(r,e)=>e.length?$o(r.map(function(t){return e.map(function(n){let s=yu(n),a=Co(t.baseUrl,s),o=_r(dr(n),{baseUrl:a});return a!==s&&!o.serviceLocation&&t.serviceLocation&&(o.serviceLocation=t.serviceLocation),o})})):r,fg=r=>{let e=qt(r,"SegmentTemplate")[0],t=qt(r,"SegmentList")[0],n=t&&qt(t,"SegmentURL").map(f=>_r({tag:"SegmentURL"},dr(f))),s=qt(r,"SegmentBase")[0],a=t||e,o=a&&qt(a,"SegmentTimeline")[0],l=t||s||e,u=l&&qt(l,"Initialization")[0],c=e&&dr(e);c&&u?c.initialization=u&&dr(u):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});let h={template:c,segmentTimeline:o&&qt(o,"S").map(f=>dr(f)),list:t&&_r(dr(t),{segmentUrls:n,initialization:dr(u)}),base:s&&_r(dr(s),{initialization:dr(u)})};return Object.keys(h).forEach(f=>{h[f]||delete h[f]}),h},_M=(r,e,t)=>n=>{let s=qt(n,"BaseURL"),a=Dd(e,s),o=_r(r,dr(n)),l=fg(n);return a.map(u=>({segmentInfo:_r(t,l),attributes:_r(o,u)}))},TM=r=>r.reduce((e,t)=>{let n=dr(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());let s=bM[n.schemeIdUri];if(s){e[s]={attributes:n};
19let a=qt(t,"cenc:pssh")[0];if(a){let o=yu(a);e[s].pssh=o&&nu(o)}}return e},{}),SM=r=>{if(r.schemeIdUri==="urn:scte:dash:cc:cea-608:2015")return(typeof r.value!="string"?[]:r.value.split(";")).map(t=>{let n,s;return s=t,/^CC\d=/.test(t)?[n,s]=t.split("="):/^CC\d$/.test(t)&&(n=t),{channel:n,language:s}});if(r.schemeIdUri==="urn:scte:dash:cc:cea-708:2015")return(typeof r.value!="string"?[]:r.value.split(";")).map(t=>{let n={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){let[s,a=""]=t.split("=");n.channel=s,n.language=t,a.split(",").forEach(o=>{let[l,u]=o.split(":");l==="lang"?n.language=u:l==="er"?n.easyReader=Number(u):l==="war"?n.aspectRatio=Number(u):l==="3D"&&(n["3D"]=Number(u))})}else n.language=t;return n.channel&&(n.channel="SERVICE"+n.channel),n})},xM=r=>$o(qt(r.node,"EventStream").map(e=>{let t=dr(e),n=t.schemeIdUri;return qt(e,"Event").map(s=>{let a=dr(s),o=a.presentationTime||0,l=t.timescale||1,u=a.duration||0,c=o/l+r.attributes.start;return{schemeIdUri:n,value:t.value,id:a.id,start:c,end:c+u/l,messageData:yu(s)||a.messageData,contentEncoding:t.contentEncoding,presentationTimeOffset:t.presentationTimeOffset||0}})})),wM=(r,e,t)=>n=>{let s=dr(n),a=Dd(e,qt(n,"BaseURL")),o=qt(n,"Role")[0],l={role:dr(o)},u=_r(r,s,l),c=qt(n,"Accessibility")[0],h=SM(dr(c));h&&(u=_r(u,{captionServices:h}));let f=qt(n,"Label")[0];if(f&&f.childNodes.length){let b=f.childNodes[0].nodeValue.trim();u=_r(u,{label:b})}let v=TM(qt(n,"ContentProtection"));Object.keys(v).length&&(u=_r(u,{contentProtection:v}));let p=fg(n),T=qt(n,"Representation"),g=_r(t,p);return $o(T.map(_M(u,a,g)))},CM=(r,e)=>(t,n)=>{let s=Dd(e,qt(t.node,"BaseURL")),a=_r(r,{periodStart:t.attributes.start});typeof t.attributes.duration=="number"&&(a.periodDuration=t.attributes.duration);let o=qt(t.node,"AdaptationSet"),l=fg(t.node);return $o(o.map(wM(a,s,l)))},EM=(r,e)=>{if(r.length>1&&e({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!r.length)return null;let t=_r({serverURL:yu(r[0])},dr(r[0]));return t.queryBeforeStart=t.queryBeforeStart==="true",t},kM=({attributes:r,priorPeriodAttributes:e,mpdType:t})=>typeof r.start=="number"?r.start:e&&typeof e.start=="number"&&typeof e.duration=="number"?e.start+e.duration:!e&&t==="static"?0:null,AM=(r,e={})=>{let{manifestUri:t="",NOW:n=Date.now(),clientOffset:s=0,eventHandler:a=function(){}}=e,o=qt(r,"Period");if(!o.length)throw new Error(Fo.INVALID_NUMBER_OF_PERIOD);let l=qt(r,"Location"),u=dr(r),c=Dd([{baseUrl:t}],qt(r,"BaseURL")),h=qt(r,"ContentSteering");u.type=u.type||"static",u.sourceDuration=u.mediaPresentationDuration||0,u.NOW=n,u.clientOffset=s,l.length&&(u.locations=l.map(yu));let f=[];return o.forEach((v,p)=>{let T=dr(v),g=f[p-1];T.start=kM({attributes:T,priorPeriodAttributes:g?g.attributes:null,mpdType:u.type}),f.push({node:v,attributes:T})}),{locations:u.locations,contentSteeringInfo:EM(h,a),representationInfo:$o(f.map(CM(u,c))),eventStream:$o(f.map(xM))}},vx=r=>{if(r==="")throw new Error(Fo.DASH_EMPTY_MANIFEST);let e=new dx.DOMParser,t,n;try{t=e.parseFromString(r,"application/xml"),n=t&&t.documentElement.tagName==="MPD"?t.documentElement:null}catch{}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(Fo.DASH_INVALID_XML);return n},PM=r=>{let e=qt(r,"UTCTiming")[0];if(!e)return null;let t=dr(e);switch(t.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":t.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":t.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":t.method="DIRECT",t.value=Date.parse(t.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(Fo.UNSUPPORTED_UTC_TIMING_SCHEME)}return t},yx=(r,e={})=>{let t=AM(vx(r),e),n=mM(t.representationInfo);return aM({dashPlaylists:n,locations:t.locations,contentSteering:t.contentSteeringInfo,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest,eventStream:t.eventStream})},bx=r=>PM(vx(r))});var xx=pe((ree,Sx)=>{O();R();L();var Tx=Math.pow(2,32),DM=function(r){var e=new DataView(r.buffer,r.byteOffset,r.byteLength),t;return e.getBigUint64?(t=e.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?
vendor: 5,245 bytes, line 19
19Number(t):t):e.getUint32(0)*Tx+e.getUint32(4)};Sx.exports={getUint64:DM,MAX_UINT32:Tx}});var Ex=pe((aee,Cx)=>{O();R();L();var wx=xx().getUint64,IM=function(r){var e=new DataView(r.buffer,r.byteOffset,r.byteLength),t={version:r[0],flags:new Uint8Array(r.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},n=12;t.version===0?(t.earliestPresentationTime=e.getUint32(n),t.firstOffset=e.getUint32(n+4),n+=8):(t.earliestPresentationTime=wx(r.subarray(n)),t.firstOffset=wx(r.subarray(n+8)),n+=16),n+=2;var s=e.getUint16(n);for(n+=2;s>0;n+=12,s--)t.references.push({referenceType:(r[n]&128)>>>7,referencedSize:e.getUint32(n)&2147483647,subsegmentDuration:e.getUint32(n+4),startsWithSap:!!(r[n+8]&128),sapType:(r[n+8]&112)>>>4,sapDeltaTime:e.getUint32(n+8)&268435455});return t};Cx.exports=IM});var OM,LM,Da,pg=Ze(()=>{O();R();L();ws();OM=$e([73,68,51]),LM=function(e,t){t===void 0&&(t=0),e=$e(e);var n=e[t+5],s=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],a=(n&16)>>4;return a?s+20:s+10},Da=function r(e,t){return t===void 0&&(t=0),e=$e(e),e.length-t<10||!Ct(e,OM,{offset:t})?t:(t+=LM(e,t),r(e,t))}});var mg=Ze(()=>{O();R();L();ws()});var Tee,Ax=Ze(()=>{O();R();L();Tee=new Uint8Array([79,112,117,115,72,101,97,100])});var Px,$M,gg,Dx,Ix,Ox=Ze(()=>{O();R();L();ws();mg();Ax();Px=function(e){return typeof e=="string"?md(e):e},$M=function(e){return Array.isArray(e)?e.map(function(t){return Px(t)}):[Px(e)]},Dx=function(e){e=$e(e);for(var t=[],n=0;e.length>n;){var s=e[n],a=0,o=0;o++;var l=e[o];for(o++;l&128;)a=(l&127)<<7,l=e[o],o++;a+=l&127;for(var u=0;u<gg.length;u++){var c=gg[u],h=c.id,f=c.parser;if(s===h){t.push(f(e.subarray(o,o+a)));break}}n+=a+o}return t};gg=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(t.flags&128&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.flags&64){var n=e[t.size];t.url=Wm(e.subarray(t.size+1,t.size+1+n)),t.size+=n}return t.flags&32&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=Dx(e.subarray(t.size))||[],t}},{id:4,parser:function(e){var t={tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:Dx(e.subarray(13))};return t}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];Ix=function r(e,t,n){n===void 0&&(n=!1),t=$M(t),e=$e(e);var s=[];if(!t.length)return s;for(var a=0;a<e.length;){var o=(e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3])>>>0,l=e.subarray(a+4,a+8);if(o===0)break;var u=a+o;if(u>e.length){if(n)break;u=e.length}var c=e.subarray(a+8,u);Ct(l,t[0])&&(t.length===1?s.push(c):s.push.apply(s,r(c,t.slice(1),n))),a=u}return s}});var bu,vg,FM,Id,Lx,UM,qM,yg,Rx=Ze(()=>{O();R();L();ws();mg();bu={EBML:$e([26,69,223,163]),DocType:$e([66,130]),Segment:$e([24,83,128,103]),SegmentInfo:$e([21,73,169,102]),Tracks:$e([22,84,174,107]),Track:$e([174]),TrackNumber:$e([215]),DefaultDuration:$e([35,227,131]),TrackEntry:$e([174]),TrackType:$e([131]),FlagDefault:$e([136]),CodecID:$e([134]),CodecPrivate:$e([99,162]),VideoTrack:$e([224]),AudioTrack:$e([225]),Cluster:$e([31,67,182,117]),Timestamp:$e([231]),TimestampScale:$e([42,215,177]),BlockGroup:$e([160]),BlockDuration:$e([155]),Block:$e([161]),SimpleBlock:$e([163])},vg=[128,64,32,16,8,4,2,1],FM=function(e){for(var t=1,n=0;n<vg.length&&!(e&vg[n]);n++)t++;return t},Id=function(e,t,n,s){n===void 0&&(n=!0),s===void 0&&(s=!1);var a=FM(e[t]),o=e.subarray(t,t+a);return n&&(o=Array.prototype.slice.call(e,t,t+a),o[0]^=vg[a-1]),{length:a,value:zm(o,{signed:s}),bytes:o}},Lx=function r(e){return typeof e=="string"?e.match(/.{1,2}/g).map(function(t){return r(t)}):typeof e=="number"?cS(e):e},UM=function(e){return Array.isArray(e)?e.map(function(t){return Lx(t)}):[Lx(e)]},qM=function r(e,t,n){if(n>=t.length)return t.length;var s=Id(t,n,!1);if(Ct(e.bytes,s.bytes))return n;var a=Id(t,n+s.length);return r(e,t,n+a.length+a.value+s.length)},yg=function r(e,t){t=UM(t),e=$e(e);var n=[];if(!t.length)return n;for(var s=0;s<e.length;){var a=Id(e,s,!1),o=Id(e,s+a.length),l=s+a.length+o.length;o.value===127&&(o.value=qM(a,e,l),o.value!==e.length&&(o.value-=l));var u=l+o.value>e.length?e.length:l+o.value,c=e.subarray(l,u);Ct(t[0],a.bytes)&&(t.length===1?n.push(c):n=n.concat(r(c,t.slice(1))));var h=a.length+o.length+c.length;s+=h}return n}});var HM,VM,jM,zM,Nx,Mx,Bx,$x=Ze(()=>{O();R();L();ws();HM=$e([0,0,0,1]),VM=$e([0,0,1]),jM=$e([0,0,3]),zM=function(e){for(var t=[],n=1;n<e.length-2;)Ct(e.subarray(n,n+3),jM)&&(t.push(n+2),n++),n++;if(t.length===0)return e;var s=e.length-t.length,a=new Uint8Array(s),o=0;for(n=0;n<s;o++,n++)o===t[0]&&(o++,t.shift()),a[n]=e[o];return a},Nx=function(e,t,n,s){s===void 0&&(s=1/0),e=$e(e),n=[].concat(n);for(var a=0,o,l=0;a<e.length&&(l<s||o);){var u=void 0;if(Ct(e.subarray(a),HM)?u=4:Ct(e.subarray(a),VM)&&(u=3),!u){a++;continue}if(l++,o)return zM(e.subarray(o,a));var c=void 0;t==="h264"?c=e[a+u]&31:t==="h265"&&(c=e[a+u]>>1&63),n.indexOf(c)!==-1&&(o=a+u),a+=u+(t==="h264"?1:2)}return e.subarray(0,0)},Mx=function(e,t,n){return Nx(e,"h264",t,n)},Bx=function(e,t,n){return Nx(e,"h265",t,n)}});var Mr,Uo,bg,WM,Od,Fx,Ux=Ze(()=>{O();R();L();ws();Ox();Rx();
19pg();$x();Mr={webm:$e([119,101,98,109]),matroska:$e([109,97,116,114,111,115,107,97]),flac:$e([102,76,97,67]),ogg:$e([79,103,103,83]),ac3:$e([11,119]),riff:$e([82,73,70,70]),avi:$e([65,86,73]),wav:$e([87,65,86,69]),"3gp":$e([102,116,121,112,51,103]),mp4:$e([102,116,121,112]),fmp4:$e([115,116,121,112]),mov:$e([102,116,121,112,113,116]),moov:$e([109,111,111,118]),moof:$e([109,111,111,102]),vtt:$e([87,69,66,86,84,84])},Uo={aac:function(e){var t=Da(e);return Ct(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Da(e);return Ct(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=yg(e,[bu.EBML,bu.DocType])[0];return Ct(t,Mr.webm)},mkv:function(e){var t=yg(e,[bu.EBML,bu.DocType])[0];return Ct(t,Mr.matroska)},mp4:function(e){if(Uo["3gp"](e)||Uo.mov(e))return!1;if(Ct(e,Mr.mp4,{offset:4})||Ct(e,Mr.fmp4,{offset:4})||Ct(e,Mr.moof,{offset:4})||Ct(e,Mr.moov,{offset:4}))return!0},mov:function(e){return Ct(e,Mr.mov,{offset:4})},"3gp":function(e){return Ct(e,Mr["3gp"],{offset:4})},ac3:function(e){var t=Da(e);return Ct(e,Mr.ac3,{offset:t})},vtt:function(e){return Ct(e,Mr.vtt)},ts:function(e){if(e.length<189&&e.length>=1)return e[0]===71;for(var t=0;t+188<e.length&&t<188;){if(e[t]===71&&e[t+188]===71)return!0;t+=1}return!1},flac:function(e){var t=Da(e);return Ct(e,Mr.flac,{offset:t})},ogg:function(e){return Ct(e,Mr.ogg)},avi:function(e){return Ct(e,Mr.riff)&&Ct(e,Mr.avi,{offset:8})},wav:function(e){return Ct(e,Mr.riff)&&Ct(e,Mr.wav,{offset:8})},h264:function(e){return Mx(e,7,3).length},h265:function(e){return Bx(e,[32,33],3).length}},bg=Object.keys(Uo).filter(function(r){return r!=="ts"&&r!=="h264"&&r!=="h265"}).concat(["ts","h264","h265"]);bg.forEach(function(r){var e=Uo[r];Uo[r]=function(t){return e($e(t))}});WM=Uo,Od=function(e){e=$e(e);for(var t=0;t<bg.length;t++){var n=bg[t];if(WM[n](e))return n}return""},Fx=function(e){return Ix(e,["moof"]).length>0}});var zx=pe((ete,jx)=>{O();R();L();var _g=9e4,Tg,Sg,Ld,xg,qx,Hx,Vx;Tg=function(r){return r*_g};Sg=function(r,e){return r*e};Ld=function(r){return r/_g};xg=function(r,e){return r/e};qx=function(r,e){return Tg(xg(r,e))};Hx=function(r,e){return Sg(Ld(r),e)};Vx=function(r,e,t){return Ld(t?r:r-e)};jx.exports={ONE_SECOND_IN_TS:_g,secondsToVideoTs:Tg,secondsToAudioTs:Sg,videoTsToSeconds:Ld,audioTsToSeconds:xg,audioTsToVideoTs:qx,videoTsToAudioTs:Hx,metadataTsToSeconds:Vx}});function qg(r,e=":",t=""){let n="info",s;function a(...o){s("log",n,o)}return s=KM(r,a,t),a.createLogger=(o,l,u)=>{let c=l!==void 0?l:e,h=u!==void 0?u:t,f=`${r} ${c} ${o}`;return qg(f,c,h)},a.createNewLogger=(o,l,u)=>qg(o,l,u),a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},a.level=o=>{if(typeof o=="string"){if(!a.levels.hasOwnProperty(o))throw new Error(`"${o}" in not a valid log level`);n=o}return n},a.history=()=>li?[].concat(li):[],a.history.filter=o=>(li||[]).filter(l=>new RegExp(`.*${o}.*`).test(l[0])),a.history.clear=()=>{li&&(li.length=0)},a.history.disable=()=>{li!==null&&(li.length=0,li=null)},a.history.enable=()=>{li===null&&(li=[])},a.error=(...o)=>s("error",n,o),a.warn=(...o)=>s("warn",n,o),a.debug=(...o)=>s("debug",n,o),a}function zo(r,e){$w(r).forEach(t=>e(r[t],t))}function Fw(r,e,t=0){return $w(r).reduce((n,s)=>e(n,r[s],s),t)}function xn(r){return!!r&&typeof r=="object"}function Zo(r){return xn(r)&&XM.call(r)==="[object Object]"&&r.constructor===Object}function Rt(...r){let e={};return r.forEach(t=>{t&&zo(t,(n,s)=>{if(!Zo(n)){e[s]=n;return}Zo(e[s])||(e[s]={}),e[s]=Rt(e[s],n)})}),e}function Uw(r={}){let e=[];for(let t in r)if(r.hasOwnProperty(t)){let n=r[t];e.push(n)}return e}function jh(r,e,t,n=!0){let s=o=>Object.defineProperty(r,e,{value:o,enumerable:!0,writable:!0}),a={configurable:!0,enumerable:!0,get(){let o=t();return s(o),o}};return n&&(a.set=s),Object.defineProperty(r,e,a)}function Gx(r){return typeof r=="string"&&!!r.trim()}function ZM(r){if(r.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function ol(){return ke.default===J.default.document}function ll(r){return xn(r)&&r.nodeType===1}function Ww(){try{return J.default.parent!==J.default.self}catch{return!0}}function Gw(r){return function(e,t){if(!Gx(e))return ke.default[r](null);Gx(t)&&(t=ke.default.querySelector(t));let n=ll(t)?t:ke.default;return n[r]&&n[r](e)}}function Xe(r="div",e={},t={},n){let s=ke.default.createElement(r);return Object.getOwnPropertyNames(e).forEach(function(a){let o=e[a];a==="textContent"?Fs(s,o):(s[a]!==o||a==="tabIndex")&&(s[a]=o)}),Object.getOwnPropertyNames(t).forEach(function(a){s.setAttribute(a,t[a])}),n&&$0(s,n),s}function Fs(r,e){return typeof r.textContent>"u"?r.innerText=e:r.textContent=e,r}function Hg(r,e){e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}function Cu(r,e){return ZM(e),r.classList.contains(e)}function Na(r,...e){return r.classList.add(...e.reduce((t,n)=>t.concat(n.split(/\s+/)),[])),r}function Kh(r,...e){return r?(r.classList.remove(...e.reduce((t,n)=>t.concat(n.split(/\s+/)),[])),r):(ot.warn("removeClass was called with an element that doesn't exist"),null)}function Qw(r,e,t){return typeof t=="function"&&(t=t(r,e)),typeof t!="boolean"&&(t=void 0),e.split(/\s+/).forEac
19h(n=>r.classList.toggle(n,t)),r}function Kw(r,e){Object.getOwnPropertyNames(e).forEach(function(t){let n=e[t];n===null||typeof n>"u"||n===!1?r.removeAttribute(t):r.setAttribute(t,n===!0?"":n)})}function As(r){let e={},t=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(r&&r.attributes&&r.attributes.length>0){let n=r.attributes;for(let s=n.length-1;s>=0;s--){let a=n[s].name,o=n[s].value;t.includes(a)&&(o=o!==null),e[a]=o}}return e}function Xw(r,e){return r.getAttribute(e)}function el(r,e,t){r.setAttribute(e,t)}function Xh(r,e){r.removeAttribute(e)}function Yw(){ke.default.body.focus(),ke.default.onselectstart=function(){return!1}}function Jw(){ke.default.onselectstart=function(){return!0}}function tl(r){if(r&&r.getBoundingClientRect&&r.parentNode){let e=r.getBoundingClientRect(),t={};return["bottom","height","left","right","top","width"].forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),t.height||(t.height=parseFloat(rl(r,"height"))),t.width||(t.width=parseFloat(rl(r,"width"))),t}}function Iu(r){if(!r||r&&!r.offsetParent)return{left:0,top:0,width:0,height:0};let e=r.offsetWidth,t=r.offsetHeight,n=0,s=0;for(;r.offsetParent&&r!==ke.default[qd.fullscreenElement];)n+=r.offsetLeft,s+=r.offsetTop,r=r.offsetParent;return{left:n,top:s,width:e,height:t}}function Yh(r,e){let t={x:0,y:0};if(Br){let h=r;for(;h&&h.nodeName.toLowerCase()!=="html";){let f=rl(h,"transform");
vendor: 10,105 bytes, line 19
19if(/^matrix/.test(f)){let v=f.slice(7,-1).split(/,\s/).map(Number);t.x+=v[4],t.y+=v[5]}else if(/^matrix3d/.test(f)){let v=f.slice(9,-1).split(/,\s/).map(Number);t.x+=v[12],t.y+=v[13]}if(h.assignedSlot&&h.assignedSlot.parentElement&&J.default.WebKitCSSMatrix){let v=J.default.getComputedStyle(h.assignedSlot.parentElement).transform,p=new J.default.WebKitCSSMatrix(v);t.x+=p.m41,t.y+=p.m42}h=h.parentNode||h.host}}let n={},s=Iu(e.target),a=Iu(r),o=a.width,l=a.height,u=e.offsetY-(a.top-s.top),c=e.offsetX-(a.left-s.left);return e.changedTouches&&(c=e.changedTouches[0].pageX-a.left,u=e.changedTouches[0].pageY+a.top,Br&&(c-=t.x,u-=t.y)),n.y=1-Math.max(0,Math.min(1,u/l)),n.x=Math.max(0,Math.min(1,c/o)),n}function Zw(r){return xn(r)&&r.nodeType===3}function Jh(r){for(;r.firstChild;)r.removeChild(r.firstChild);return r}function eC(r){return typeof r=="function"&&(r=r()),(Array.isArray(r)?r:[r]).map(e=>{if(typeof e=="function"&&(e=e()),ll(e)||Zw(e))return e;if(typeof e=="string"&&/\S/.test(e))return ke.default.createTextNode(e)}).filter(e=>e)}function $0(r,e){return eC(e).forEach(t=>r.appendChild(t)),r}function tC(r,e){return $0(Jh(r),e)}function Ou(r){return r.button===void 0&&r.buttons===void 0||r.button===0&&r.buttons===void 0||r.type==="mouseup"&&r.button===0&&r.buttons===0||r.type==="mousedown"&&r.button===0&&r.buttons===0?!0:!(r.button!==0||r.buttons!==1)}function rl(r,e){if(!r||!e)return"";if(typeof J.default.getComputedStyle=="function"){let t;try{t=J.default.getComputedStyle(r)}catch{return""}return t?t.getPropertyValue(e)||t[e]:""}return""}function iC(r){[...ke.default.styleSheets].forEach(e=>{try{let t=[...e.cssRules].map(s=>s.cssText).join(""),n=ke.default.createElement("style");n.textContent=t,r.document.head.appendChild(n)}catch{let n=ke.default.createElement("link");n.rel="stylesheet",n.type=e.type,n.media=e.media.mediaText,n.href=e.href,r.document.head.appendChild(n)}})}function jg(r,e){ol()&&(e&&(Vg=e),J.default.setTimeout(e6,r))}function zg(){sC=!0,J.default.removeEventListener("load",zg)}function Bi(){return r6++}function Qx(r,e){if(!Zr.has(r))return;let t=Zr.get(r);t.handlers[e].length===0&&(delete t.handlers[e],r.removeEventListener?r.removeEventListener(e,t.dispatcher,!1):r.detachEvent&&r.detachEvent("on"+e,t.dispatcher)),Object.getOwnPropertyNames(t.handlers).length<=0&&(delete t.handlers,delete t.dispatcher,delete t.disabled),Object.getOwnPropertyNames(t).length===0&&Zr.delete(r)}function F0(r,e,t,n){t.forEach(function(s){r(e,s,n)})}function Zh(r){if(r.fixed_)return r;function e(){return!0}function t(){return!1}if(!r||!r.isPropagationStopped||!r.isImmediatePropagationStopped){let n=r||J.default.event;r={};let s=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(let a in n)s.includes(a)||a==="returnValue"&&n.preventDefault||(r[a]=n[a]);if(r.target||(r.target=r.srcElement||ke.default),r.relatedTarget||(r.relatedTarget=r.fromElement===r.target?r.toElement:r.fromElement),r.preventDefault=function(){n.preventDefault&&n.preventDefault(),r.returnValue=!1,n.returnValue=!1,r.defaultPrevented=!0},r.defaultPrevented=!1,r.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),r.cancelBubble=!0,n.cancelBubble=!0,r.isPropagationStopped=e},r.isPropagationStopped=t,r.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),r.isImmediatePropagationStopped=e,r.stopPropagation()},r.isImmediatePropagationStopped=t,r.clientX!==null&&r.clientX!==void 0){let a=ke.default.documentElement,o=ke.default.body;r.pageX=r.clientX+(a&&a.scrollLeft||o&&o.scrollLeft||0)-(a&&a.clientLeft||o&&o.clientLeft||0),r.pageY=r.clientY+(a&&a.scrollTop||o&&o.scrollTop||0)-(a&&a.clientTop||o&&o.clientTop||0)}r.which=r.charCode||r.keyCode,r.button!==null&&r.button!==void 0&&(r.button=r.button&1?0:r.button&4?1:r.button&2?2:0)}return r.fixed_=!0,r}function Ti(r,e,t){if(Array.isArray(e))return F0(Ti,r,e,t);Zr.has(r)||Zr.set(r,{});let n=Zr.get(r);if(n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),t.guid||(t.guid=Bi()),n.handlers[e].push(t),n.dispatcher||(n.disabled=!1,n.dispatcher=function(s,a){if(n.disabled)return;s=Zh(s);let o=n.handlers[s.type];if(o){let l=o.slice(0);for(let u=0,c=l.length;u<c&&!s.isImmediatePropagationStopped();u++)try{l[u].call(r,s,a)}catch(h){ot.error(h)}}}),n.handlers[e].length===1)if(r.addEventListener){let s=!1;i6()&&n6.indexOf(e)>-1&&(s={passive:!0}),r.addEventListener(e,n.dispatcher,s)}else r.attachEvent&&r.attachEvent("on"+e,n.dispatcher)}function $r(r,e,t){if(!Zr.has(r))return;let n=Zr.get(r);if(!n.handlers)return;if(Array.isArray(e))return F0($r,r,e,t);let s=function(o,l){n.handlers[l]=[],Qx(o,l)};if(e===void 0){for(let o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&&s(r,o);return}let a=n.handlers[e];if(a){if(!t){s(r,e);return}if(t.guid)for(let o=0;o<a.length;o++)a[o].guid===t.guid&&a.splice(o--,1);Qx(r,e)}}function ul(r,e,t){let n=Zr.has(r)?Zr.get(r):{},s=r.parentNode||r.ownerDocument;if(typeof e=="string"?e={type:e,target:r}:e.target||(e.target=r),e=Zh(e),n.dispatcher&&n.dispatcher.call(r,e,t),s&&!e.isPropagationStopped()&&e.bubbles===!0)ul.call(null,s,e,t);else if(!s&&!e.defaultPrevented&&e.target&&e.target[e.type]){Zr.has(e.target)||Zr.set(e.target,{});let a=Zr.get(e.target);e.target[e.type]&&(a.disabled=!0,typeof e.target[e.type]=="function"&&e.target[e.type](),a.disabled=!1)}return!e.defaultPrevented}function ef(r,e,t){if(Array.isArray(e))return F0(ef,r,e,t);let n=function(){$r(r,e,n),t.apply(this,arguments)};n.guid=t.guid=t.guid||Bi(),Ti(r,e,n)}function U0(r,e,t){let n=function(){$r(r,e,n),t.apply(this,arguments)};n.guid=t.guid=t.guid||Bi(),Ti(r,e,n)}function q0(r,e={}){let{eventBusKey:t}=e;if(t){if(!r[t].nodeName)throw new Error(`The eventBusKey "${t}" does not refer to an element.`);r.eventBusEl_=r[t]}else r.eventBusEl_=Xe("span",{className:"vjs-event-bus"});return Object.assign(r,l6),r.eventedCallbacks&&r.eventedCallbacks.forEach(n=>{n()}),r.on("dispose",()=>{r.off(),[r,r.el_,r.eventBusEl_].forEach(function(n){n&&Zr.has(n)&&Zr.delete(n)}),J.default.setTimeout(()=>{r.eventBusEl_=null},0)}),r}function dC(r,e){return Object.assign(r,u6),r.state=Object.assign({},r.state,e),typeof r.handleStateChanged=="function"&&Yn(r)&&r.on("statechanged",r.handleStateChanged),r}function d6(r,e,t){if(typeof e!="number"||e<0||e>t)throw new Error(`Failed to execute '${r}' on 'TimeRanges': The index provided (${e}) is non-numeric or out of bounds (0-${t}).`)}function Kx(r,e,t,n){return d6(r,n,t.length-1),t[n][e]}function Cg(r){let e;return r===void 0||r.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:r.length,start:Kx.bind(null,"start",0,r),end:Kx.bind(null,"end",1,r)},J.default.Symbol&&J.default.Symbol.iterator&&(e[J.default.Symbol.iterator]=()=>(r||[]).values()),e}function en(r,e){return Array.isArray(r)?Cg(r):r===void 0||e===void 0?Cg():Cg([[r,e]])}function pC(r){H0=r}function mC(){H0=fC}function $a(r,e=r){return H0(r,e)}function gC(r,e){let t=0,n,s;if(!e)return 0;(!r||!r.length)&&(r=en(0,0));for(let a=0;a<r.length;a++)n=r.start(a),s=r.end(a),s>e&&(s=e),t+=s-n;return t/e}function Wt(r){if(r instanceof Wt)return r;typeof r=="number"?this.code=r:typeof r=="string"?this.message=r:xn(r)&&(typeof r.code=="number"&&(this.code=r.code),Object.assign(this,r)),this.message||(this.message=Wt.defaultMessages[this.code]||"")}function ku(r){return r!=null&&typeof r.then=="function"}function bn(r){ku(r)&&r.then(null,e=>{})}function b6(r,e,t,n,s={}){let a=r.textTracks();s.kind=e,t&&(s.label=t),n&&(s.language=n),s.tech=r;let o=new Jr.text.TrackClass(s);return a.addTrack(o),o}function _6(r,e){Ma[r]=Ma[r]||[],Ma[r].push(e)}function T6(r,e,t){r.setTimeout(()=>Oa(e,Ma[e.type],t,r),1)}function S6(r,e){r.forEach(t=>t.setTech&&t.setTech(e))}function x6(r,e,t){return r.reduceRight(z0(t),e[t]())}function w6(r,e,t,n){return e[t](r.reduce(z0(t),n))}function Zx(r,e,t,n=null){let s="call"+Xt(t),a=r.reduce(z0(s),n),o=a===eh,l=o?null:e[t](a);return k6(r,t,l,o),l}function z0(r){return(e,t)=>e===eh?eh:t[r]?t[r](e):e}function k6(r,e,t,n){for(let s=r.length-1;s>=0;s--){let a=r[s];a[e]&&a[e](n,t)}}function A6(r){Zd.hasOwnProperty(r.id())&&delete Zd[r.id()]}function P6(r,e){let t=Zd[r.id()],n=null;if(t==null)return n=e(r),Zd[r.id()]=[[e,n]],n;for(let s=0;s<t.length;s++){let[a,o]=t[s];a===e&&(n=o)}return n===null&&(n=e(r),t.push([e,n])),n}function Oa(r={},e=[],t,n,s=[],a=!1){let[o,...l]=e;if(typeof o=="string")Oa(r,Ma[o],t,n,s,a);else if(o){let u=P6(n,o);if(!u.setSource)return s.push(u),Oa(r,l,t,n,s,a);u.setSource(Object.assign({},r),function(c,h){if(c)return Oa(r,l,t,n,s,a);s.push(u),Oa(h,r.type===h.type?l:Ma[h.type],t,n,s,a)})}else l.length?Oa(r,l,t,n,s,a):a?t(r,s):Oa(r,Ma["*"],t,n,s,!0)}function tw(r){if(!r.type){let e=th(r.src);e&&(r.type=e)}return r}function Pg(r,e){let t;if(r.length===4)t=r[1]+r[1]+r[2]+r[2]+r[3]+r[3];else if(r.length===7)t=r.slice(1);else throw new Error("Invalid color code provided, "+r+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(t.slice(0,2),16)+","+parseInt(t.slice(2,4),16)+","+parseInt(t.slice(4,6),16)+","+e+")"}function vn(r,e,t){try{r.style[e]=t}catch{return}}function sw(r){return r?`${r}px`:""}function Zu(r,e,t){return r=Number(r),Math.min(t,Math.max(e,isNaN(r)?e:r))}function bC(r,e){if(e&&(r=e(r)),r&&r!=="none")return r}function B6(r,e){let t=r.options[r.options.selectedIndex].value;return bC(t,e)}function $6(r,e,t){if(e){for(let n=0;n<r.options.length;n++)if(bC(r.options[n].value,t)===e){r.selectedIndex=n;break}}}function Q6(r,e){let t=!1;return function(...n){return t||ot.warn(r),t=!0,e.apply(this,n)}}function rn(r,e,t,n){return Q6(`${e} is deprecated and will be removed in ${r}.0; please use ${t} instead.`,n)}function le(r,e,t){let n=le.getPlayer(r);if(n)return e&&ot.warn(`Player "${r}" is already initialised. Options will not be applied.`),t&&n.ready(t),n;let s=typeof r=="string"?Rs("#"+xC(r)):r;if(!ll(s))throw new TypeError("The element or ID supplied is not val
19id. (videojs)");let o=("getRootNode"in s?s.getRootNode()instanceof J.default.ShadowRoot:!1)?s.getRootNode():s.ownerDocument.body;(!s.ownerDocument.defaultView||!o.contains(s))&&ot.warn("The element supplied is not included in the DOM"),e=e||{},e.restoreEl===!0&&(e.restoreEl=(s.parentNode&&s.parentNode.hasAttribute&&s.parentNode.hasAttribute("data-vjs-player")?s.parentNode:s).cloneNode(!0)),Ls("beforesetup").forEach(u=>{let c=u(s,Rt(e));if(!xn(c)||Array.isArray(c)){ot.error("please return an object in beforesetup hooks");return}e=Rt(e,c)});let l=_e.getComponent("Player");return n=new l(s,e,t),Ls("setup").forEach(u=>u(n)),n}function Et(...r){let e=le.obj||le;return(e.merge||e.mergeOptions).apply(e,r)}function Sr(...r){let e=le.time||le;return(e.createTimeRanges||e.createTimeRanges).apply(e,r)}function Y6(r){if(r.length===0)return"Buffered Ranges are empty";let e=`Buffered Ranges: 
20`;for(let t=0;t<r.length;t++){let n=r.start(t),s=r.end(t);e+=`${n} --> ${s}. Duration (${s-n})
21`}return e}function dE(r){try{return new URL(r).pathname.split("/").slice(-2).join("/")}catch{return""}}function Xn(){}var J,ke,N0,Fg,Nw,Ds,Ug,Kn,Ls,GM,Mw,QM,qd,$d,Wx,xu,li,KM,ot,Bw,XM,$w,YM,M0,qw,tn,Hw,Vw,Os,Wo,wn,B0,zh,JM,jw,Hd,Wh,Vd,Gh,jd,zd,Wd,Du,Es,Br,Qh,zw,Rs,rC,nC,sC,Vg,e6,aC,oC,Zr,t6,r6,Rd,i6,n6,s6,$i,Mt,Cn,lC,a6,_u,ei,tf,Yn,o6,Wg,Gd,uC,cC,wg,Ia,l6,u6,Eu,Xt,hC,c6,_e,fC,H0,h6,Gg,f6,p6,Qg,Eg,Ns,Zn,kg,Qd,Ag,Kd,Lu,Kg,Xd,m6,g6,v6,Xx,Ru,V0,vC,j0,rf,y6,Yx,Jx,Fa,Yd,Jd,Ms,Mi,il,Jr,Ot,Ma,Zd,eh,C6,E6,ew,D6,th,I6,yC,O6,rw,qo,iw,Xg,Yg,nl,Nu,Ni,nw,L6,Jg,Zg,xr,rh,e0,ih,Bs,Mu,Bu,t0,$u,r0,nh,R6,Fu,Dg,i0,n0,Uu,sh,ah,oh,lh,uh,N6,s0,a0,ch,sl,dh,M6,hh,fh,ph,mh,gh,qu,Hu,Ua,qa,vh,$s,yh,Vu,ju,zu,Wu,Gu,bh,Qu,_h,Th,Ku,Sh,xh,o0,wh,Ch,Eh,Jn,kh,Ah,Ph,Ig,aw,ow,lw,uw,cw,dw,hw,fw,Og,Lg,pw,Ps,l0,u0,F6,c0,d0,U6,h0,f0,q6,_C,H6,mw,V6,j6,z6,Ne,TC,Rg,p0,Fd,W6,Bt,Tu,Dh,Go,Vo,Ih,Ud,SC,Oh,G6,gw,Fi,K6,xC,m0,al,wC,X6,CC,ui,Lh,Ui,_n,Tn,EC,jo,Nd,J6,Z6,kC,eB,Ra,tB,Ng,W0,G0,g0,AC,PC,DC,rB,iB,IC,OC,Au,LC,nB,sB,RC,Q0,nf,aB,oB,NC,lB,v0,K0,vw,ec,ci,MC,Qo,BC,uB,cl,$C,cB,dB,hB,FC,Rh,UC,Ba,fB,qC,HC,pB,Xu,yw,Pu,mB,gB,vB,yB,VC,jC,zC,y0,b0,bw,Is,_0,bB,_B,WC,TB,T0,SB,xB,wB,GC,Nh,QC,KC,CB,EB,kB,XC,AB,PB,DB,IB,OB,LB,RB,YC,Mg,NB,MB,_w,BB,$B,FB,UB,qB,Tw,HB,Yu,Tr,VB,JC,jB,ZC,eE,tE,zB,WB,GB,QB,KB,rE,iE,Sw,nE,XB,YB,sE,JB,Bg,Ko,Sn,aE,S0,ZB,e$,X0,xw,t$,r$,oE,i$,n$,s$,lE,uE,a$,o$,l$,u$,c$,Md,ww,Xo,Yo,Y0,d$,cE,Cw,h$,f$,p$,m$,g$,v$,y$,b$,_$,T$,S$,Ew,wu,x$,w$,C$,E$,k$,A$,Su,P$,kw,Bd,D$,I$,Ho,Aw,O$,x0,L$,R$,ks,N$,Pw,M$,La,Ju,hE,B$,w0,$$,Jo,fE,yn,bi,_i,Dw,Mh,Iw,F$,Ow,C0,E0,U$,q$,Bh,k0,$h,Fh,H$,$g,A0,P0,V$,j$,z$,pE,D0,W$,G$,Q$,Uh,Lw,K$,mE,X$,Y$,J$,Z$,eF,qh,I0,tF,rF,Qn,iF,nF,sF,O0,aF,L0,oF,Rw,R0,lF,gE,uF,vE,cF,dF,hF,fF,zt,yE,bE,pF,mF,gF,vF,yF,_E,bF,_F,TE,SE,xE,wE,TF,Hh,Vh,SF,J0=Ze(()=>{O();R();L();J=Z(pn()),ke=Z(xm()),N0=Z($T()),Fg=Z(ZT());Im();Om();iS();oS();lS();ws();_x();Nw=Z(Ex());pg();Ux();Ds=Z(zx());Ug="8.24.1",Kn={},Ls=function(r,e){return Kn[r]=Kn[r]||[],e&&(Kn[r]=Kn[r].concat(e)),Kn[r]},GM=function(r,e){Ls(r,e)},Mw=function(r,e){let t=Ls(r).indexOf(e);return t<=-1?!1:(Kn[r]=Kn[r].slice(),Kn[r].splice(t,1),!0)},QM=function(r,e){Ls(r,[].concat(e).map(t=>{let n=(...s)=>(Mw(r,n),t(...s));return n}))},qd={prefixed:!0},$d=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],Wx=$d[0];for(let r=0;r<$d.length;r++)if($d[r][1]in ke.default){xu=$d[r];break}if(xu){for(let r=0;r<xu.length;r++)qd[Wx[r]]=xu[r];qd.prefixed=xu[0]!==Wx[0]}li=[],KM=(r,e,t)=>(n,s,a)=>{let o=e.levels[s],l=new RegExp(`^(${o})$`),u=r;if(n!=="log"&&a.unshift(n.toUpperCase()+":"),t&&(u=`%c${r}`,a.unshift(t)),a.unshift(u+":"),li){li.push([].concat(a));let h=li.length-1e3;li.splice(0,h>0?h:0)}if(!J.default.console)return;let c=J.default.console[n];!c&&n==="debug"&&(c=J.default.console.info||J.default.console.log),!(!c||!o||!l.test(n))&&c[Array.isArray(a)?"apply":"call"](J.default.console,a)};ot=qg("VIDEOJS"),Bw=ot.createLogger,XM=Object.prototype.toString,$w=function(r){return xn(r)?Object.keys(r):[]};YM=Object.freeze({__proto__:null,each:zo,reduce:Fw,isObject:xn,isPlain:Zo,merge:Rt,values:Uw,defineLazyProperty:jh}),M0=!1,qw=null,tn=!1,Vw=!1,Os=!1,Wo=!1,wn=!1,B0=null,zh=null,JM=!!(J.default.cast&&J.default.cast.framework&&J.default.cast.framework.CastReceiverContext),jw=null,Hd=!1,Wh=!1,Vd=!1,Gh=!1,jd=!1,zd=!1,Wd=!1,Du=!!(ol()&&("ontouchstart"in J.default||J.default.navigator.maxTouchPoints||J.default.DocumentTouch&&J.default.document instanceof J.default.DocumentTouch)),Es=J.default.navigator&&J.default.navigator.userAgentData;Es&&Es.platform&&Es.brands&&(tn=Es.platform==="Android",Os=!!Es.brands.find(r=>r.brand==="Microsoft Edge"),Wo=!!Es.brands.find(r=>r.brand==="Chromium"),wn=!Os&&Wo,B0=zh=(Es.brands.find(r=>r.brand==="Chromium")||{}).version||null,Wh=Es.platform==="Windows");if(!Wo){let r=J.default.navigator&&J.default.navigator.userAgent||"";M0=/iPod/i.test(r),qw=function(){let e=r.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),tn=/Android/i.test(r),Hw=function(){let e=r.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;let t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),Vw=/Firefox/i.test(r),Os=/Edg/i.test(r),Wo=/Chrome/i.test(r)||/CriOS/i.test(r),wn=!Os&&Wo,B0=zh=function(){let e=r.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),jw=function(){let e=/MSIE\s(\d+)\.\d/.exec(r),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(r)&&/rv:11.0/.test(r)&&(t=11),t}(),jd=/Tizen/i.test(r),zd=/Web0S/i.test(r),Wd=jd||zd,Hd=/Safari/i.test(r)&&!wn&&!tn&&!Os&&!Wd,Wh=/Windows/i.test(r),Vd=/iPad/i.test(r)||Hd&&Du&&!/iPhone/i.test(r),Gh=/iPhone/i.test(r)&&!Vd}Br=Gh||Vd||M0,Qh=(Hd||Br)&&!wn,zw=Object.freeze({__proto__:null,get IS_IPOD(){return M0},get IOS_VERSION(){return qw},get IS_ANDROID(){return tn},get ANDROID_VERSION(){return Hw},get IS_FIREFOX(){return Vw},get IS_EDGE(){return Os},get IS_CHROMIUM(){return Wo},get IS_CHROME(){return wn},get CHROMIUM_VERSION(){return B0},get CHROME_VERSION(){return zh},IS_CHROMECAST_RECEIVER:JM,get IE_VERSION(){return jw},get IS_SAFARI(){return Hd},get IS_WINDOWS(){return Wh},get IS_IPAD(){return Vd},get IS_IPHONE(){return Gh},get IS_TIZEN(){return jd},get IS_WEBOS(){return zd},get IS_SMART_TV(){return Wd},TOUCH_ENABLED:Du,IS_IOS:Br,IS_ANY_SAFARI:Qh});Rs=Gw("querySelector"),rC=Gw("querySelectorAll");nC=Object.freeze({__proto__:null,isReal:ol,isEl:ll,isInFrame:Ww,createEl:Xe,textContent:Fs,prependTo:Hg,hasClass:Cu,addClass:Na,removeClass:Kh,toggleClass:Qw,setAttributes:Kw,getAttributes:A
21s,getAttribute:Xw,setAttribute:el,removeAttribute:Xh,blockTextSelection:Yw,unblockTextSelection:Jw,getBoundingClientRect:tl,findPosition:Iu,getPointerPosition:Yh,isTextNode:Zw,emptyEl:Jh,normalizeContent:eC,appendContent:$0,insertContent:tC,isSingleLeftClick:Ou,$:Rs,$$:rC,computedStyle:rl,copyStyleSheetsToWindow:iC}),sC=!1,e6=function(){if(Vg.options.autoSetup===!1)return;let r=Array.prototype.slice.call(ke.default.getElementsByTagName("video")),e=Array.prototype.slice.call(ke.default.getElementsByTagName("audio")),t=Array.prototype.slice.call(ke.default.getElementsByTagName("video-js")),n=r.concat(e,t);if(n&&n.length>0)for(let s=0,a=n.length;s<a;s++){let o=n[s];if(o&&o.getAttribute)o.player===void 0&&o.getAttribute("data-setup")!==null&&Vg(o);else{jg(1);break}}else sC||jg(1)};ol()&&(ke.default.readyState==="complete"?zg():J.default.addEventListener("load",zg));aC=function(r){let e=ke.default.createElement("style");return e.className=r,e},oC=function(r,e){r.styleSheet?r.styleSheet.cssText=e:r.textContent=e},Zr=new WeakMap,t6=3,r6=t6;i6=function(){if(typeof Rd!="boolean"){Rd=!1;try{let r=Object.defineProperty({},"passive",{get(){Rd=!0}});J.default.addEventListener("test",null,r),J.default.removeEventListener("test",null,r)}catch{}}return Rd},n6=["touchstart","touchmove"];s6=Object.freeze({__proto__:null,fixEvent:Zh,on:Ti,off:$r,trigger:ul,one:ef,any:U0}),$i=30,Mt=function(r,e,t){e.guid||(e.guid=Bi());let n=e.bind(r);return n.guid=t?t+"_"+e.guid:e.guid,n},Cn=function(r,e){let t=J.default.performance.now();return function(...s){let a=J.default.performance.now();a-t>=e&&(r(...s),t=a)}},lC=function(r,e,t,n=J.default){let s,a=()=>{n.clearTimeout(s),s=null},o=function(){let l=this,u=arguments,c=function(){s=null,c=null,t||r.apply(l,u)};!s&&t&&r.apply(l,u),n.clearTimeout(s),s=n.setTimeout(c,e)};return o.cancel=a,o},a6=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:$i,bind_:Mt,throttle:Cn,debounce:lC}),ei=class{on(e,t){let n=this.addEventListener;this.addEventListener=()=>{},Ti(this,e,t),this.addEventListener=n}off(e,t){$r(this,e,t)}one(e,t){let n=this.addEventListener;this.addEventListener=()=>{},ef(this,e,t),this.addEventListener=n}any(e,t){let n=this.addEventListener;this.addEventListener=()=>{},U0(this,e,t),this.addEventListener=n}trigger(e){let t=e.type||e;typeof e=="string"&&(e={type:t}),e=Zh(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),ul(this,e)}queueTrigger(e){_u||(_u=new Map);let t=e.type||e,n=_u.get(this);n||(n=new Map,_u.set(this,n));let s=n.get(t);n.delete(t),J.default.clearTimeout(s);let a=J.default.setTimeout(()=>{n.delete(t),n.size===0&&(n=null,_u.delete(this)),this.trigger(e)},0);n.set(t,a)}};ei.prototype.allowedEvents_={};ei.prototype.addEventListener=ei.prototype.on;ei.prototype.removeEventListener=ei.prototype.off;ei.prototype.dispatchEvent=ei.prototype.trigger;tf=r=>typeof r.name=="function"?r.name():typeof r.name=="string"?r.name:r.name_?r.name_:r.constructor&&r.constructor.name?r.constructor.name:typeof r,Yn=r=>r instanceof ei||!!r.eventBusEl_&&["on","one","off","trigger"].every(e=>typeof r[e]=="function"),o6=(r,e)=>{Yn(r)?e():(r.eventedCallbacks||(r.eventedCallbacks=[]),r.eventedCallbacks.push(e))},Wg=r=>typeof r=="string"&&/\S/.test(r)||Array.isArray(r)&&!!r.length,Gd=(r,e,t)=>{if(!r||!r.nodeName&&!Yn(r))throw new Error(`Invalid target for ${tf(e)}#${t}; must be a DOM node or evented object.`)},uC=(r,e,t)=>{if(!Wg(r))throw new Error(`Invalid event type for ${tf(e)}#${t}; must be a non-empty string or array.`)},cC=(r,e,t)=>{if(typeof r!="function")throw new Error(`Invalid listener for ${tf(e)}#${t}; must be a function.`)},wg=(r,e,t)=>{let n=e.length<3||e[0]===r||e[0]===r.eventBusEl_,s,a,o;return n?(s=r.eventBusEl_,e.length>=3&&e.shift(),[a,o]=e):(s=e[0],a=e[1],o=e[2]),Gd(s,r,t),uC(a,r,t),cC(o,r,t),o=Mt(r,o),{isTargetingSelf:n,target:s,type:a,listener:o}},Ia=(r,e,t,n)=>{Gd(r,r,e),r.nodeName?s6[e](r,t,n):r[e](t,n)},l6={on(...r){let{isTargetingSelf:e,target:t,type:n,listener:s}=wg(this,r,"on");if(Ia(t,"on",n,s),!e){let a=()=>this.off(t,n,s);a.guid=s.guid;let o=()=>this.off("dispose",a);o.guid=s.guid,Ia(this,"on","dispose",a),Ia(t,"on","dispose",o)}},one(...r){let{isTargetingSelf:e,target:t,type:n,listener:s}=wg(this,r,"one");if(e)Ia(t,"one",n,s);else{let a=(...o)=>{this.off(t,n,a),s.apply(null,o)};a.guid=s.guid,Ia(t,"one",n,a)}},any(...r){let{isTargetingSelf:e,target:t,type:n,listener:s}=wg(this,r,"any");if(e)Ia(t,"any",n,s);else{let a=(...o)=>{this.off(t,n,a),s.apply(null,o)};a.guid=s.guid,Ia(t,"any",n,a)}},off(r,e,t){if(!r||Wg(r))$r(this.eventBusEl_,r,e);else{let n=r,s=e;Gd(n,this,"off"),uC(s,this,"off"),cC(t,this,"off"),t=Mt(this,t),this.off("dispose",t),n.nodeName?($r(n,s,t),$r(n,"dispose",t)):Yn(n)&&(n.off(s,t),n.off("dispose",t))}},trigger(r,e){Gd(this.eventBusEl_,this,"trigger");let t=r&&typeof r!="string"?r.type:r;if(!Wg(t))throw new Error(`Invalid event type for ${tf(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return ul(this.eventBusEl_,r,e)}};u6={state:{},setState(r){typeof r=="function"&&(r=r());let e;return zo(r,(t,n)=>{this.state[n]!==t&&(e=e||{},e[n]={from:this.state[n],to:t}),this.state[n]=t}),e&&Yn(this)&&this.trigger({changes:e,type:"statechanged"}),e}};Eu=function(r){return typeof r!="string"?r:r.replace(/./,e=>e.toLowerCase())},Xt=function(r){return typeof r!="string"?r:r.replace(/./,e=>e.toUpperCase())},hC=function(r,e){return Xt(r)===Xt(e)},c6=Object.freeze({__proto__:null,toLowerCase:Eu,toTitleCase:Xt,titleCaseEquals:hC}
vendor: 9,680 bytes, line 21
21),_e=class r{constructor(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Rt({},this.options_),t=this.options_=Rt(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){let s=e&&e.id&&e.id()||"no_player";this.id_=`${s}_component_${Bi()}`}this.name_=t.name||null,t.el?this.el_=t.el:t.createEl!==!1&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(s=>this.addClass(s)),["on","off","one","any","trigger"].forEach(s=>{this[s]=void 0}),t.evented!==!1&&(q0(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),dC(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,t.initChildren!==!1&&this.initChildren(),this.ready(n),t.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 t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].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_=Rt(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,n){return Xe(e,t,n)}localize(e,t,n=e){let s=this.player_.language&&this.player_.language(),a=this.player_.languages&&this.player_.languages(),o=a&&a[s],l=s&&s.split("-")[0],u=a&&a[l],c=n;return o&&o[e]?c=o[e]:u&&u[e]&&(c=u[e]),t&&(c=c.replace(/\{(\d+)\}/g,function(h,f){let v=t[f-1],p=v;return typeof v>"u"&&(p=h),p})),c}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((n,s)=>n.concat(s),[]);let t=this;for(let n=0;n<e.length;n++)if(t=t.getChild(e[n]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;let n="http://www.w3.org/2000/svg",s=Xe("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),a=ke.default.createElementNS(n,"svg");a.setAttributeNS(null,"viewBox","0 0 512 512");let o=ke.default.createElementNS(n,"use");return a.appendChild(o),o.setAttributeNS(null,"href",`#vjs-icon-${e}`),s.appendChild(a),this.iconIsSet_?t.replaceChild(s,t.querySelector(".vjs-icon-placeholder")):t.appendChild(s),this.iconIsSet_=!0,s}addChild(e,t={},n=this.children_.length){let s,a;if(typeof e=="string"){a=Xt(e);let o=t.componentClass||a;t.name=a;let l=r.getComponent(o);if(!l)throw new Error(`Component ${o} does not exist`);if(typeof l!="function")return null;s=new l(this.player_||this,t)}else s=e;if(s.parentComponent_&&s.parentComponent_.removeChild(s),this.children_.splice(n,0,s),s.parentComponent_=this,typeof s.id=="function"&&(this.childIndex_[s.id()]=s),a=a||s.name&&Xt(s.name()),a&&(this.childNameIndex_[a]=s,this.childNameIndex_[Eu(a)]=s),typeof s.el=="function"&&s.el()){let o=null;this.children_[n+1]&&(this.children_[n+1].el_?o=this.children_[n+1].el_:ll(this.children_[n+1])&&(o=this.children_[n+1])),this.contentEl().insertBefore(s.el(),o)}return s}removeChild(e){if(typeof e=="string"&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let s=this.children_.length-1;s>=0;s--)if(this.children_[s]===e){t=!0,this.children_.splice(s,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Xt(e.name())]=null,this.childNameIndex_[Eu(e.name())]=null;let n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){let e=this.options_.children;if(e){let t=this.options_,n=o=>{let l=o.name,u=o.opts;if(t[l]!==void 0&&(u=t[l]),u===!1)return;u===!0&&(u={}),u.playerOptions=this.options_.playerOptions;let c=this.addChild(l,u);c&&(this[l]=c)},s,a=r.getComponent("Tech");Array.isArray(e)?s=e:s=Object.keys(e),s.concat(Object.keys(this.options_).filter(function(o){return!s.some(function(l){return typeof l=="string"?o===l:o===l.name})})).map(o=>{let l,u;return typeof o=="string"?(l=o,u=e[l]||this.options_[l]||{}):(l=o.name,u=o),{name:l,opts:u}}).filter(o=>{let l=r.getComponent(o.opts.componentClass||Xt(o.name));return l&&!a.isTech(l)}).forEach(n)}}buildCSSClass(){return""}ready(e,t=!1){if(e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}t?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){let e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)}$(e,t){return Rs(e,t||this.contentEl())}$$(e,t){return rC(e,t||this.contentEl())}hasClass(e){return Cu(this.el_,e)}addClass(...e){Na(this.el_,...e)}removeClass(...e){Kh(this.el_,...e)}toggleClass(e,t){Qw(this.el_,e,t)}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 Xw(this.el_,e)}setAttribute(e,t){el(this.el_,e,t)}removeAttribute(e){Xh(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,n){if(t!==void 0){(t===null||t!==t)&&(t=0),(""+t).indexOf("%")!==-1||(""+t).indexOf("px")!==-1?this.el_.style[e]=t:t==="auto"?this.el_.style[e]="":this.el_.style[e]=t+"px",n||this.trigger("componentresize");return}if(!this.el_)return 0;let s=this.el_.style[e],a=s.indexOf("px");return parseInt(a!==-1?s.slice(0,a):this.el_["offset"+Xt(e)],10)}currentDimension(e){let t=0;if(e!=="width"&&e!=="height")throw new Error("currentDimension only accepts width or height value");if(t=rl(this.el_,e),t=parseFloat(t),t===0||isNaN(t)){let n=`offset${Xt(e)}`;t=this.el_[n]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}getPositions(){let e=this.el_.getBoundingClientRect(),t={x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},n={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:t,center:n}}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,t=null,n=10,s=200,a;this.on("touchstart",function(l){l.touches.length===1&&(t={pageX:l.touches[0].pageX,pageY:l.touches[0].pageY},e=J.default.performance.now(),a=!0)}),this.on("touchmove",function(l){if(l.touches.length>1)a=!1;else if(t){let u=l.touches[0].pageX-t.pageX,c=l.touches[0].pageY-t.pageY;Math.sqrt(u*u+c*c)>n&&(a=!1)}});let o=function(){a=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",function(l){t=null,a===!0&&J.default.performance.now()-e<s&&(l.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;let e=Mt(this.player(),this.player().reportUserActivity),t;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});let n=function(s){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}setTimeout(e,t){var n;return e=Mt(this,e),this.clearTimersOnDispose_(),n=J.default.setTimeout(()=>{this.setTimeoutIds_.has(n)&&this.setTimeoutIds_.delete(n),e()},t),this.setTimeoutIds_.add(n),n}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),J.default.clearTimeout(e)),e}setInterval(e,t){e=Mt(this,e),this.clearTimersOnDispose_();let n=J.default.setInterval(e,t);return this.setIntervalIds_.add(n),n}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),J.default.clearInterval(e)),e}requestAnimationFrame(e){this.clearTimersOnDispose_();var t;return e=Mt(this,e),t=J.default.requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),t=Mt(this,t);let n=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),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),J.default.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
21h(([e,t])=>{this[e].forEach((n,s)=>this[t](s))}),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 t(a){let o=J.default.getComputedStyle(a,null),l=o.getPropertyValue("visibility");return o.getPropertyValue("display")!=="none"&&!["hidden","collapse"].includes(l)}function n(a){return!(!t(a.parentElement)||!t(a)||a.style.opacity==="0"||J.default.getComputedStyle(a).height==="0px"||J.default.getComputedStyle(a).width==="0px")}function s(a){if(a.offsetWidth+a.offsetHeight+a.getBoundingClientRect().height+a.getBoundingClientRect().width===0)return!1;let o={x:a.getBoundingClientRect().left+a.offsetWidth/2,y:a.getBoundingClientRect().top+a.offsetHeight/2};if(o.x<0||o.x>(ke.default.documentElement.clientWidth||J.default.innerWidth)||o.y<0||o.y>(ke.default.documentElement.clientHeight||J.default.innerHeight))return!1;let l=ke.default.elementFromPoint(o.x,o.y);for(;l;){if(l===a)return!0;if(l.parentNode)l=l.parentNode;else return!1}}return e||(e=this.el()),!!(s(e)&&n(e)&&(!e.parentElement||e.tabIndex>=0))}static registerComponent(e,t){if(typeof e!="string"||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);let n=r.getComponent("Tech"),s=n&&n.isTech(t),a=r===t||r.prototype.isPrototypeOf(t.prototype);if(s||!a){let l;throw s?l="techs must be registered using Tech.registerTech()":l="must be a Component subclass",new Error(`Illegal component, "${e}"; ${l}.`)}e=Xt(e),r.components_||(r.components_={});let o=r.getComponent("Player");if(e==="Player"&&o&&o.players){let l=o.players,u=Object.keys(l);if(l&&u.length>0){for(let c=0;c<u.length;c++)if(l[u[c]]!==null)throw new Error("Can not register Player component after player has been created.")}}return r.components_[e]=t,r.components_[Eu(e)]=t,t}static getComponent(e){if(!(!e||!r.components_))return r.components_[e]}};_e.registerComponent("Component",_e);fC=function(r,e){r=r<0?0:r;let t=Math.floor(r%60),n=Math.floor(r/60%60),s=Math.floor(r/3600),a=Math.floor(e/60%60),o=Math.floor(e/3600);return(isNaN(r)||r===1/0)&&(s=n=t="-"),s=s>0||o>0?s+":":"",n=((s||a>=10)&&n<10?"0"+n:n)+":",t=t<10?"0"+t:t,s+n+t},H0=fC;h6=Object.freeze({__proto__:null,createTimeRanges:en,createTimeRange:en,setFormatTime:pC,resetFormatTime:mC,formatTime:$a});Wt.prototype.code=0;Wt.prototype.message="";Wt.prototype.status=null;Wt.prototype.metadata=null;Wt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];Wt.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."};Wt.MEDIA_ERR_CUSTOM=0;Wt.prototype.MEDIA_ERR_CUSTOM=0;Wt.MEDIA_ERR_ABORTED=1;Wt.prototype.MEDIA_ERR_ABORTED=1;Wt.MEDIA_ERR_NETWORK=2;Wt.prototype.MEDIA_ERR_NETWORK=2;Wt.MEDIA_ERR_DECODE=3;Wt.prototype.MEDIA_ERR_DECODE=3;Wt.MEDIA_ERR_SRC_NOT_SUPPORTED=4;Wt.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4;Wt.MEDIA_ERR_ENCRYPTED=5;Wt.prototype.MEDIA_ERR_ENCRYPTED=5;Gg=function(r){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((t,n,s)=>(r[n]&&(t[n]=r[n]),t),{cues:r.cues&&Array.prototype.map.call(r.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},f6=function(r){let e=r.$$("track"),t=Array.prototype.map.call(e,s=>s.track);return Array.prototype.map.call(e,function(s){let a=Gg(s.track);return s.src&&(a.src=s.src),a}).concat(Array.prototype.filter.call(r.textTracks(),function(s){return t.indexOf(s)===-1}).map(Gg))},p6=function(r,e){return r.forEach(function(t){let n=e.addRemoteTextTrack(t).track;
vendor: 4,622 bytes, line 21
21!t.src&&t.cues&&t.cues.forEach(s=>n.addCue(s))}),e.textTracks()},Qg={textTracksToJson:f6,jsonToTextTracks:p6,trackToJson:Gg},Eg="vjs-modal-dialog",Ns=class extends _e{constructor(e,t){super(e,t),this.handleKeyDown_=n=>this.handleKeyDown(n),this.close_=n=>this.close(n),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=Xe("div",{className:`${Eg}-content`},{role:"document"}),this.descEl_=Xe("p",{className:`${Eg}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),Fs(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`${Eg} 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}let 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;let 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"){let t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){let s=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=s,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){let t=this.contentEl(),n=t.parentNode,s=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),tC(t,e),this.trigger("modalfill"),s?n.insertBefore(t,s):n.appendChild(t);let a=this.getChild("closeButton");a&&n.appendChild(a.el_),this.trigger("aftermodalfill")}empty(){this.trigger("beforemodalempty"),Jh(this.contentEl()),this.trigger("modalempty")}content(e){return typeof e<"u"&&(this.content_=e),this.content_}conditionalFocus_(){let e=ke.default.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===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;let t=this.focusableEls_(),n=this.el_.querySelector(":focus"),s;for(let a=0;a<t.length;a++)if(n===t[a]){s=a;break}ke.default.activeElement===this.el_&&(s=0),e.shiftKey&&s===0?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&s===t.length-1&&(t[0].focus(),e.preventDefault())}focusableEls_(){let e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,t=>(t instanceof J.default.HTMLAnchorElement||t instanceof J.default.HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof J.default.HTMLInputElement||t instanceof J.default.HTMLSelectElement||t instanceof J.default.HTMLTextAreaElement||t instanceof J.default.HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof J.default.HTMLIFrameElement||t instanceof J.default.HTMLObjectElement||t instanceof J.default.HTMLEmbedElement||t.hasAttribute("tabindex")&&t.getAttribute("tabindex")!==-1||t.hasAttribute("contenteditable"))}};
vendor: 6,081 bytes, line 21
21Ns.prototype.options_={pauseOnOpen:!0,temporary:!0};_e.registerComponent("ModalDialog",Ns);Zn=class extends ei{constructor(e=[]){super(),this.tracks_=[];for(let t=0;t<e.length;t++)this.addTrack(e[t])}get length(){return this.tracks_.length}addTrack(e){let t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),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})},Yn(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let n=0,s=this.length;n<s;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let n=0,s=this.length;n<s;n++){let a=this[n];if(a.id===e){t=a;break}}return t}};Zn.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(let r in Zn.prototype.allowedEvents_)Zn.prototype["on"+r]=null;kg=function(r,e){for(let t=0;t<r.length;t++)!Object.keys(r[t]).length||e.id===r[t].id||(r[t].enabled=!1)},Qd=class extends Zn{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){kg(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&kg(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,kg(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)}},Ag=function(r,e){for(let t=0;t<r.length;t++)!Object.keys(r[t]).length||e.id===r[t].id||(r[t].selected=!1)},Kd=class extends Zn{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){Ag(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set(){}})}addTrack(e){e.selected&&Ag(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,Ag(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)}},Lu=class extends Zn{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_))}toJSON(){return this.tracks_.map(e=>e.toJSON())}},Kg=class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}addTrackElement_(e){let t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),this.trackElements_.indexOf(e)===-1&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let n=0,s=this.trackElements_.length;n<s;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t}removeTrackElement_(e){for(let t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&typeof this.trackElements_[t].track.off=="function"&&this.trackElements_[t].track.off(),typeof this.trackElements_[t].off=="function"&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}},Xd=class r{constructor(e){r.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){let t=this.length||0,n=0,s=e.length;this.cues_=e,this.length_=e.length;let a=function(o){""+o in this||Object.defineProperty(this,""+o,{get(){return this.cues_[o]}})};if(t<s)for(n=t;n<s;n++)a.call(this,n)}getCueById(e){let t=null;for(let n=0,s=this.length;n<s;n++){let a=this[n];if(a.id===e){t=a;break}}return t}},m6={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},g6={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},v6={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Xx={disabled:"disabled",hidden:"hidden",showing:"showing"},Ru=class extends ei{constructor(e={}){super();let t={id:e.id||"vjs_track_"+Bi(),kind:e.kind||"",language:e.language||""},n=e.label||"";for(let s in t)Object.defineProperty(this,s,{get(){return t[s]},set(){}});Object.defineProperty(this,"label",{get(){return n},set(s){s!==n&&(n=s,this.trigger("labelchange"))}})}},V0=function(r){return new URL(r,ke.default.baseURI)},vC=function(r){return new URL(r,ke.default.baseURI).href},j0=function(r){if(typeof r=="string"){let t=r.split("?")[0].replace(/\/+$/,"").match(/\.([^.\/]+)$/);return t?t[1].toLowerCase():""}return""},rf=function(r,e=J.default.location){return V0(r).origin!==e.origin},y6=Object.freeze({__proto__:null,parseUrl:V0,getAbsoluteURL:vC,getFileExtension:j0,isCrossOrigin:rf}),Yx=function(r,e){let t=new J.default.WebVTT.Parser(J.default,J.default.vttjs,J.default.WebVTT.StringDecoder()),n=[];t.oncue=function(s){e.addCue(s)},t.onparsingerror=function(s){n.push(s)},t.onflush=function(){e.trigger({type:"loadeddata",target:e})},t.parse(r),n.length>0&&(J.default.console&&J.default.console.groupCollapsed&&J.default.console.groupCollapsed(`Text Track parsing errors for ${e.src}
21`),n.forEach(s=>ot.error(s)),J.default.console&&J.default.console.groupEnd&&J.default.console.groupEnd()),t.flush()},Jx=function(r,e){let t={uri:r},n=rf(r);n&&(t.cors=n);let s=e.tech_.crossOrigin()==="use-credentials";s&&(t.withCredentials=s),(0,N0.default)(t,Mt(this,function(a,o,l){if(a)return ot.error(a,o);e.loaded_=!0,typeof J.default.WebVTT!="function"?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],u=>{if(u.type==="vttjserror"){ot.error(`vttjs failed to load, stopping trying to process ${e.src}`);return}return Yx(l,e)}):Yx(l,e)}))},Fa=class extends Ru{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");let t=Rt(e,{kind:v6[e.kind]||"subtitles",language:e.language||e.srclang||""}),n=Xx[t.mode]||"disabled",s=t.default;(t.kind==="metadata"||t.kind==="chapters")&&(n="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=this.tech_.preloadTextTracks!==!1;let a=new Xd(this.cues_),o=new Xd(this.activeCues_),l=!1;this.timeupdateHandler=Mt(this,function(c={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){c.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1),c.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});let u=()=>{this.stopTracking()};this.tech_.one("dispose",u),n!=="disabled"&&this.startTracking(),Object.defineProperties(this,{default:{get(){return s},set(){}},mode:{get(){return n},set(c){Xx[c]&&n!==c&&(n=c,!this.preload_&&n!=="disabled"&&this.cues.length===0&&Jx(this.src,this),this.stopTracking(),n!=="disabled"&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?a:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(this.cues.length===0)return o;let c=this.tech_.currentTime(),h=[];for(let f=0,v=this.cues.length;f<v;f++){let p=this.cues[f];p.startTime<=c&&p.endTime>=c&&h.push(p)}if(l=!1,h.length!==this.activeCues_.length)l=!0;else for(let f=0;f<h.length;f++)this.activeCues_.indexOf(h[f])===-1&&(l=!0);return this.activeCues_=h,o.setCues_(this.activeCues_),o},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||t.kind!=="subtitles"&&t.kind!=="captions")&&Jx(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 t=e;if(!("getCueAsHTML"in t)){t=new J.default.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(let s in e)s in t||(t[s]=e[s]);t.id=e.id,t.originalCue_=e}let n=this.tech_.textTracks();for(let s=0;s<n.length;s++)n[s]!==this&&n[s].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}toJSON(){return Qg.trackToJson(this)}removeCue(e){let t=this.cues_.length;for(;t--;){let n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}};Fa.prototype.allowedEvents_={cuechange:"cuechange"};Yd=class extends Ru{constructor(e={}){let t=Rt(e,{kind:g6[e.kind]||""});super(t);let n=!1;Object.defineProperty(this,"enabled",{get(){return n},set(s){typeof s!="boolean"||s===n||(n=s,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}},Jd=class extends Ru{constructor(e={}){let t=Rt(e,{kind:m6[e.kind]||""});super(t);let n=!1;Object.defineProperty(this,"selected",{get(){return n},set(s){typeof s!="boolean"||s===n||(n=s,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}},Ms=class r extends ei{constructor(e={}){super();let t,n=new Fa(e);this.kind=n.kind,this.src=n.src,this.srclang=n.language,this.label=n.label,this.default=n.default,Object.defineProperties(this,{readyState:{get(){return t}},track:{get(){return n}}}),t=r.NONE,n.addEventListener("loadeddata",()=>{t=r.LOADED,this.trigger({type:"load",target:this})})}};Ms.prototype.allowedEvents_={load:"load"};Ms.NONE=0;Ms.LOADING=1;Ms.LOADED=2;Ms.ERROR=3;
vendor: 10,443 bytes, line 21
21Mi={audio:{ListClass:Qd,TrackClass:Yd,capitalName:"Audio"},video:{ListClass:Kd,TrackClass:Jd,capitalName:"Video"},text:{ListClass:Lu,TrackClass:Fa,capitalName:"Text"}};Object.keys(Mi).forEach(function(r){Mi[r].getterName=`${r}Tracks`,Mi[r].privateName=`${r}Tracks_`});il={remoteText:{ListClass:Lu,TrackClass:Fa,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Kg,TrackClass:Ms,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Jr=Object.assign({},Mi,il);il.names=Object.keys(il);Mi.names=Object.keys(Mi);Jr.names=[].concat(il.names).concat(Mi.names);Ot=class r extends _e{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=n=>this.onDurationChange(n),this.trackProgress_=n=>this.trackProgress(n),this.trackCurrentTime_=n=>this.trackCurrentTime(n),this.stopTrackingCurrentTime_=n=>this.stopTrackingCurrentTime(n),this.disposeSourceHandler_=n=>this.disposeSourceHandler(n),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),Jr.names.forEach(n=>{let s=Jr[n];e&&e[s.getterName]&&(this[s.privateName]=e[s.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(n=>{e[`native${n}Tracks`]===!1&&(this[`featuresNative${n}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 Jr.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(Mt(this,function(){let t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,t===1&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return en(0,0)}bufferedPercent(){return gC(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(Mi.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){e=[].concat(e),e.forEach(t=>{let n=this[`${t}Tracks`]()||[],s=n.length;for(;s--;){let a=n[s];t==="text"&&this.removeRemoteTextTrack(a),n.removeTrack(a)}})}cleanupAutoTextTracks(){let e=this.autoRemoteTextTracks_||[],t=e.length;for(;t--;){let n=e[t];this.removeRemoteTextTrack(n)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return e!==void 0&&(this.error_=new Wt(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?en(0,0):en()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){Mi.names.forEach(e=>{let t=Mi[e],n=()=>{this.trigger(`${e}trackchange`)},s=this[t.getterName]();s.addEventListener("removetrack",n),s.addEventListener("addtrack",n),this.on("dispose",()=>{s.removeEventListener("removetrack",n),s.removeEventListener("addtrack",n)})})}addWebVttScript_(){if(!J.default.WebVTT)if(ke.default.body.contains(this.el())){if(!this.options_["vtt.js"]&&Zo(Fg.default)&&Object.keys(Fg.default).length>0){this.trigger("vttjsloaded");return}let e=ke.default.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}),J.default.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){let e=this.textTracks(),t=this.remoteTextTracks(),n=l=>e.addTrack(l.track),s=l=>e.removeTrack(l.track);t.on("addtrack",n),t.on("removetrack",s),this.addWebVttScript_();let a=()=>this.trigger("texttrackchange"),o=()=>{a();for(let l=0;l<e.length;l++){let u=e[l];u.removeEventListener("cuechange",a),u.mode==="showing"&&u.addEventListener("cuechange",a)}};o(),e.addEventListener("change",o),e.addEventListener("addtrack",o),e.addEventListener("removetrack",o),this.on("dispose",function(){t.off("addtrack",n),t.off("removetrack",s),e.removeEventListener("change",o),e.removeEventListener("addtrack",o),e.removeEventListener("removetrack",o);for(let l=0;l<e.length;l++)e[l].removeEventListener("cuechange",a)})}addTextTrack(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return b6(this,e,t,n)}createRemoteTextTrack(e){let t=Rt(e,{tech:this});return new il.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){let n=this.createRemoteTextTrack(e);return typeof t!="boolean"&&(t=!1),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),t===!1&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(n.track)),n}removeRemoteTextTrack(e){let t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){let t=Bi();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}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,t){return r.canPlayType(e.type)}static isTech(e){return e.prototype instanceof r||e instanceof r||e===r}static registerTech(e,t){if(r.techs_||(r.techs_={}),!r.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!r.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!r.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Xt(e),r.techs_[e]=t,r.techs_[Eu(e)]=t,e!=="Tech"&&r.defaultTechOrder_.push(e),t}static getTech(e){if(e){if(r.techs_&&r.techs_[e])return r.techs_[e];if(e=Xt(e),J.default&&J.default.videojs&&J.default.videojs[e])return ot.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),J.default.videojs[e]}}};Jr.names.forEach(function(r){let e=Jr[r];Ot.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}});Ot.prototype.featuresVolumeControl=!0;Ot.prototype.featuresMuteControl=!0;Ot.prototype.featuresFullscreenResize=!1;Ot.prototype.featuresPlaybackRate=!1;Ot.prototype.featuresProgressEvents=!1;Ot.prototype.featuresSourceset=!1;Ot.prototype.featuresTimeupdateEvents=!1;Ot.prototype.featuresNativeTextTracks=!1;Ot.prototype.featuresVideoFrameCallback=!1;Ot.withSourceHandlers=function(r){r.registerSourceHandler=function(t,n){let s=r.sourceHandlers;s||(s=r.sourceHandlers=[]),n===void 0&&(n=s.length),s.splice(n,0,t)},r.canPlayType=function(t){let n=r.sourceHandlers||[],s;for(let a=0;a<n.length;a++)if(s=n[a].canPlayType(t),s)return s;return""},r.selectSourceHandler=function(t,n){let s=r.sourceHandlers||[],a;for(let o=0;o<s.length;o++)if(a=s[o].canHandleSource(t,n),a)return s[o];return null},r.canPlaySource=function(t,n){let s=r.selectSourceHandler(t,n);return s?s.canHandleSource(t,n):""},["seekable","seeking","duration"].forEach(function(t){let n=this[t];typeof n=="function"&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):n.apply(this,arguments)})},r.prototype),r.prototype.setSource=function(t){let n=r.selectSourceHandler(t,this.options_);n||(r.nativeSourceHandler?n=r.nativeSourceHandler:ot.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==r.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},r.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)}};_e.registerComponent("Tech",Ot);Ot.registerTech("Tech",Ot);Ot.defaultTechOrder_=[];Ma={},Zd={},eh={};C6={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},E6={setCurrentTime:1,setMuted:1,setVolume:1},ew={play:1,pause:1};D6={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/d
21ash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},th=function(r=""){let e=j0(r);return D6[e.toLowerCase()]||""},I6=(r,e)=>{if(!e)return"";if(r.cache_.source.src===e&&r.cache_.source.type)return r.cache_.source.type;let t=r.cache_.sources.filter(s=>s.src===e);if(t.length)return t[0].type;let n=r.$$("source");for(let s=0;s<n.length;s++){let a=n[s];if(a.type&&a.src&&a.src===e)return a.type}return th(e)},yC=function(r){if(Array.isArray(r)){let e=[];r.forEach(function(t){t=yC(t),Array.isArray(t)?e=e.concat(t):xn(t)&&e.push(t)}),r=e}else typeof r=="string"&&r.trim()?r=[tw({src:r})]:xn(r)&&typeof r.src=="string"&&r.src&&r.src.trim()?r=[tw(r)]:r=[];return r};O6
vendor: 17,607 bytes, lines 21-163
21=`<svg xmlns="http://www.w3.org/2000/svg">
22  <defs>
23    <symbol viewBox="0 0 48 48" id="vjs-icon-play">
24      <path d="M16 10v28l22-14z"></path>
25    </symbol>
26    <symbol viewBox="0 0 48 48" id="vjs-icon-pause">
27      <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>
28    </symbol>
29    <symbol viewBox="0 0 48 48" id="vjs-icon-audio">
30      <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>
31    </symbol>
32    <symbol viewBox="0 0 48 48" id="vjs-icon-captions">
33      <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>
34    </symbol>
35    <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">
36      <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>
37    </symbol>
38    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">
39      <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>
40    </symbol>
41    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">
42      <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>
43    </symbol>
44    <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">
45      <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>
46    </symbol>
47    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">
48      <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>
49    </symbol>
50    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">
51      <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>
52    </symbol>
53    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">
54      <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>
55    </symbol>
56    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">
57      <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>
58    </symbol>
59    <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">
60      <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>
61    </symbol>
62    <symbol viewBox="0 0 24 24" id="vjs-icon-hd">
63      <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>
64    </symbol>
65    <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">
66      <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>
67    </symbol>
68    <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">
69      <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>
70    </symbol>
71    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">
72      <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>
73    </symbol>
74    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">
75      <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>
76    </symbol>
77    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">
78      <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>
79    </symbol>
80    <symbol viewBox="0 0 48 48" id="vjs-icon-share">
81      <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>
82    </symbol>
83    <symbol viewBox="0 0 48 48" id="vjs-icon-cog">
84      <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>
85    </symbol>
86    <symbol viewBox="0 0 48 48" id="vjs-icon-square">
87      <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>
88    </symbol>
89    <symbol viewBox="0 0 48 48" id="vjs-icon-circle">
90      <circle cx="24" cy="24" r="20"></circle>
91    </symbol>
92    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">
93      <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>
94    </symbol>
95    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">
96      <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>
97    </symbol>
98    <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">
99      <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>
100    </symbol>
101    <symbol viewBox="0 0 48 48" id="vjs-icon-replay">
102      <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>
103    </symbol>
104    <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">
105      <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>
106    </symbol>
107    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">
108      <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>
109    </symbol>
110    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">
111      <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>
112    </symbol>
113    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">
114      <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>
115    </symbol>
116    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">
117      <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>
118    </symbol>
119    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">
120      <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>
121    </symbol>
122    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">
123      <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>
124    </symbol>
125    <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">
126      <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>
127    </symbol>
128    <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">
129      <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>
130    </symbol>
131    <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">
132      <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>
133    </symbol>
134    <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">
135      <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>
136    </symbol>
137    <symbol viewBox="0 0 48 48" id="vjs-icon-cast">
138      <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>
139    </symbol>
140    <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">
141      <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>
142    </symbol>
143    <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">
144      <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>
145      <path fill="none" d="M-1-3h24v24H-1z"></path>
146    </symbol>
147    <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">
148      <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>
149    </symbol>
150    <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">
151      <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>
152    </symbol>
153    <symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">
154      <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"/>
155    </symbol>
156    <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">
157      <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>
158    </symbol>
159    <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">
160      <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>
161    </symbol>
162  </defs>
163</svg>`,
vendor: 2,355 bytes, line 163
163rw=jd?10009:zd?461:8,qo={codes:{play:415,pause:19,ff:417,rw:412,back:rw},names:{415:"play",19:"pause",417:"ff",412:"rw",[rw]:"back"},isEventKey(r,e){return e=e.toLowerCase(),!!(this.names[r.keyCode]&&this.names[r.keyCode]===e)},getEventName(r){if(this.names[r.keyCode])return this.names[r.keyCode];if(this.codes[r.code]){let e=this.codes[r.code];return this.names[e]}return null}},iw=5,Xg=class extends ei{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){let t=e.originalEvent?e.originalEvent:e;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(t.key)){if(this.isPaused_)return;t.preventDefault();let n=t.key.substring(5).toLowerCase();this.move(n)}else if(qo.isEventKey(t,"play")||qo.isEventKey(t,"pause")||qo.isEventKey(t,"ff")||qo.isEventKey(t,"rw")){t.preventDefault();let n=qo.getEventName(t);this.performMediaAction_(n)}else qo.isEventKey(t,"Back")&&e.target&&typeof e.target.closeable=="function"&&e.target.closeable()&&(t.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()+iw);break;case"rw":this.userSeek_(this.player_.currentTime()-iw);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}
vendor: 3,143 bytes, line 163
163handlePlayerBlur_(e){let t=e.relatedTarget,n=null,s=this.getCurrentComponent(e.target);t&&(n=!!t.closest(".video-js"),t.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(!e.currentTarget.contains(e.relatedTarget)&&!n||!t)&&(s&&s.name()==="CloseButton"?this.refocusComponent():(this.pause(),s&&s.el()&&(this.lastFocusedComponent_=s)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){let e=this.player_,t=[];function n(s){for(let a of s)a.hasOwnProperty("el_")&&a.getIsFocusable()&&a.getIsAvailableToBeFocused(a.el())&&t.push(a),a.hasOwnProperty("children_")&&a.children_.length>0&&n(a.children_)}return e.children_.forEach(s=>{if(s.hasOwnProperty("el_"))if(s.getIsFocusable&&s.getIsAvailableToBeFocused&&s.getIsFocusable()&&s.getIsAvailableToBeFocused(s.el())){t.push(s);return}else s.hasOwnProperty("children_")&&s.children_.length>0?n(s.children_):s.hasOwnProperty("items")&&s.items.length>0?n(s.items):this.findSuitableDOMChild(s)&&t.push(s);if(s.name_==="ErrorDisplay"&&s.opened_){let a=s.el_.querySelector(".vjs-errors-ok-button-container");a&&a.querySelectorAll("button").forEach((l,u)=>{t.push({name:()=>"ModalButton"+(u+1),el:()=>l,getPositions:()=>{let c=l.getBoundingClientRect(),h={x:c.x,y:c.y,width:c.width,height:c.height,top:c.top,right:c.right,bottom:c.bottom,left:c.left},f={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:h,center:f}},getIsAvailableToBeFocused:()=>!0,getIsFocusable:c=>!0,focus:()=>l.focus()})})}}),this.focusableComponents=t,this.focusableComponents}findSuitableDOMChild(e){function t(n){if(e.getIsFocusable(n)&&e.getIsAvailableToBeFocused(n))return n;for(let s=0;s<n.children.length;s++){let a=n.children[s],o=t(a);if(o)return o}return null}return e.el()?t(e.el()):null}getCurrentComponent(e){this.updateFocusableComponents();let t=e||document.activeElement;if(this.focusableComponents.length){for(let n of this.focusableComponents)if(n.el()===t)return n}}add(e){let t=[...this.focusableComponents];e.hasOwnProperty("el_")&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())&&t.push(e),this.focusableComponents=t,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}remove(e){for(let t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===e.name()){this.focusableComponents.splice(t,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){let t=this.getCurrentComponent();if(!t)return;let n=t.getPositions(),s=this.focusableComponents.filter(o=>o!==t&&this.isInDirection_(n.boundingClientRect,o.getPositions().boundingClientRect,e)),a=this.findBestCandidate_(n.center,s,e);a?this.focus(a):this.trigger({type:"endOfFocusableComponents",direction:e,focu
163sedComponent:t})}findBestCandidate_(e,t,n){let s=1/0,a=null;for(let o of t){let l=o.getPositions().center,u=this.calculateDistance_(e,l,n);u<s&&(s=u,a=o)}return a}isInDirection_(e,t,n){switch(n){case"right":return t.left>=e.right;case"left":return t.right<=e.left;case"down":return t.top>=e.bottom;case"up":return t.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,t,n){let s=Math.abs(e.x-t.x),a=Math.abs(e.y-t.y),o;switch(n){case"right":case"left":o=s+a*100;break;case"up":o=a*2+s*.5;break;case"down":o=a*5+s;break;default:o=s+a}return o}searchForTrackSelect_(){let e=this;for(let t of e.updateFocusableComponents())if(t.constructor.name==="TextTrackSelect"){e.focus(t);break}}},Yg=class extends _e{constructor(e,t,n){let s=Rt({createEl:!1},t);if(super(e,s,n),!t.playerOptions.sources||t.playerOptions.sources.length===0)for(let a=0,o=t.playerOptions.techOrder;a<o.length;a++){let l=Xt(o[a]),u=Ot.getTech(l);if(l||(u=_e.getComponent(l)),u&&u.isSupported()){e.loadTech_(l);break}}else e.src(t.playerOptions.sources)}};_e.registerComponent("MediaLoader",Yg);nl=class extends _e{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=n=>this.handleMouseOver(n),this.handleMouseOut_=n=>this.handleMouseOut(n),this.handleClick_=n=>this.handleClick(n),this.handleKeyDown_=n=>this.handleKeyDown(n),this.emitTapEvents(),this.enable()}createEl(e="div",t={},n={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),e==="button"&&ot.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),n=Object.assign({role:"button"},n),this.tabIndex_=t.tabIndex;let s=Xe(e,t,n);return this.player_.options_.experimentalSvgIcons||s.appendChild(Xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=Xe("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(e===void 0)return this.controlText_||"Need Text";let n=this.localize(e);this.controlText_=e,Fs(this.controlTextEl_,n),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&t.setAttribute("title",n)}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)}};_e.registerComponent("ClickableComponent",nl);Nu=class extends nl{constructor(e,t){super(e,t);let{mainContent:n}=t&&t.playerOptions||{};this.isMainContent=n,this.update(),this.update_=s=>this.update(s),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return Xe("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){let t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){if(!e){this.el_.textContent="";return}this.$("img")||this.el_.appendChild(Xe("picture",{className:"vjs-poster",tabIndex:-1},{},Xe("img",{loading:this.isMainContent?"eager":"lazy",fetchPriority:this.isMainContent?"high":"auto",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e}handleClick(e){if(!this.player_.controls())return;let t=this.player_.getChild("controlBar"),n=t&&t.getChild("playToggle");Os?(n||this.player_).focus():this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?bn(this.player_.play()):this.player_.pause()}};Nu.prototype.crossorigin=Nu.prototype.crossOrigin;_e.registerComponent("PosterImage",Nu);Ni="#222",nw="#ccc",L6={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',
163script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};Jg=class extends _e{constructor(e,t,n){super(e,t,n);let s=o=>this.updateDisplay(o),a=o=>{this.updateDisplayOverlay(),this.updateDisplay(o)};e.on("loadstart",o=>this.toggleDisplay(o)),e.on("useractive",s),e.on("userinactive",s),e.on("texttrackchange",s),e.on("loadedmetadata",o=>{this.updateDisplayOverlay(),this.preselectTrack(o)}),e.ready(Mt(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks){this.hide();return}e.on("fullscreenchange",a),e.on("playerresize",a);let o=J.default.screen.orientation||J.default,l=J.default.screen.orientation?"change":"orientationchange";o.addEventListener(l,a),e.on("dispose",()=>o.removeEventListener(l,a));let u=this.options_.playerOptions.tracks||[];for(let c=0;c<u.length;c++)this.player_.addRemoteTextTrack(u[c],!0);this.preselectTrack()}))}preselectTrack(){let e={captions:1,subtitles:1},t=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage,s,a,o;for(let l=0;l<t.length;l++){let u=t[l];n&&n.enabled&&n.language&&n.language===u.language&&u.kind in e?u.kind===n.kind?o=u:o||(o=u):n&&!n.enabled?(o=null,s=null,a=null):u.default&&(u.kind==="descriptions"&&!s?s=u:u.kind in e&&!a&&(a=u))}o?o.mode="showing":a?a.mode="showing":s&&(s.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 J.default.WebVTT=="function"&&J.default.WebVTT.processCues(J.default,[],this.el_)}updateDisplay(){let e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){let o=[];for(let l=0;l<e.length;++l){let u=e[l];u.mode==="showing"&&o.push(u)}this.updateForTrack(o);return}let n=null,s=null,a=e.length;for(;a--;){let o=e[a];o.mode==="showing"&&(o.kind==="descriptions"?n=o:s=o)}if(s?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):n&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(n)),!(J.default.CSS!==void 0&&J.default.CSS.supports("inset","10px"))){let o=this.el_,l=o.querySelectorAll(".vjs-text-track-cue"),u=this.player_.controlBar.el_.getBoundingClientRect().height,c=this.player_.el_.getBoundingClientRect().height;o.style="",vn(o,"position","relative"),vn(o,"height",c-u+"px"),vn(o,"top","unset"),Wd?vn(o,"bottom",c+"px"):vn(o,"bottom","0px"),l.length>0&&l.forEach(h=>{if(h.style.inset){let f=h.style.inset.split(" ");f.length===3&&Object.assign(h.style,{top:f[0],right:f[1],bottom:f[2],left:"unset"})}})}}updateDisplayOverlay(){if(!this.player_.videoHeight()||!(J.default.CSS!==void 0&&J.default.CSS.supports("inset-inline: 10px")))return;let e=this.player_.currentWidth(),t=this.player_.currentHeight(),n=e/t,s=this.player_.videoWidth()/this.player_.videoHeight(),a=0,o=0;Math.abs(n-s)>.1&&(n>s?a=Math.round((e-t*s)/2):o=Math.round((t-e/s)/2)),vn(this.el_,"insetInline",sw(a)),vn(this.el_,"insetBlock",sw(o))}updateDisplayState(e){let t=this.player_.textTrackSettings.getValues(),n=e.activeCues,s=n.length;for(;s--;){let a=n[s];if(!a)continue;let o=a.displayState;if(t.color&&(o.firstChild.style.color=t.color),t.textOpacity&&vn(o.firstChild,"color",Pg(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(o.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&vn(o.firstChild,"backgroundColor",Pg(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?vn(o,"backgroundColor",Pg(t.windowColor,t.windowOpacity)):o.style.backgroundColor=t.windowColor),t.edgeStyle&&(t.edgeStyle==="dropshadow"?o.firstChild.style.textShadow=`2px 2px 3px ${Ni}, 2px 2px 4px ${Ni}, 2px 2px 5px ${Ni}`:t.edgeStyle==="raised"?o.firstChild.style.textShadow=`1px 1px ${Ni}, 2px 2px ${Ni}, 3px 3px ${Ni}`:t.edgeStyle==="depressed"?o.firstChild.style.textShadow=`1px 1px ${nw}, 0 1px ${nw}, -1px -1px ${Ni}, 0 -1px ${Ni}`:t.edgeStyle==="uniform"&&(o.firstChild.style.textShadow=`0 0 4px ${Ni}, 0 0 4px ${Ni}, 0 0 4px ${Ni}, 0 0 4px ${Ni}`)),t.fontPercent&&t.fontPercent!==1){let l=J.default.parseFloat(o.style.fontSize);o.style.fontSize=l*t.fontPercent+"px",o.style.height="auto",o.style.top="auto"}t.fontFamily&&t.fontFamily!=="default"&&(t.fontFamily==="small-caps"?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=L6[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),typeof J.default.WebVTT!="function"||e.every(n=>!n.activeCues))return;let t=[];for(let n=0;n<e.length;++n){let s=e[n];for(let a=0;a<s.activeCues.length;++a)t.push(s.activeCues[a])}J.default.WebVTT.processCues(J.default,t,this.el_);for(let n=0;n<e.length;++n){let s=e[n];for(let a=0;a<s.activeCues.length;++a){let o=s.activeCues[a].displayState;Na(o,"vjs-text-track-cue","vjs-text-track-cue-"+(s.language?s.language:n)),s.language&&el(o,"lang",s.language)}this.player_.textTrackSettings&&this.updateDisplayState(s)}}};_e.registerComponent("TextTrackDisplay",Jg);
vendor: 5,682 bytes, line 163
163Zg=class extends _e{createEl(){let e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),n=Xe("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),s=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return s.appendChild(n),s}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}};_e.registerComponent("LoadingSpinner",Zg);xr=class extends nl{createEl(e,t={},n={}){e="button",t=Object.assign({className:this.buildCSSClass()},t),n=Object.assign({type:"button"},n);let s=Xe(e,t,n);return this.player_.options_.experimentalSvgIcons||s.appendChild(Xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}addChild(e,t={}){let n=this.constructor.name;return ot.warn(`Adding an actionable (user controllable) child to a Button (${n}) is not supported; use a ClickableComponent instead.`),_e.prototype.addChild.call(this,e,t)}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)}};_e.registerComponent("Button",xr);rh=class extends xr{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",n=>this.handleMouseDown(n))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){let t=this.player_.play(),n=this.player_.getChild("controlBar"),s=n&&n.getChild("playToggle");if(e.type==="tap"||this.mouseused_&&"clientX"in e&&"clientY"in e){bn(t),Os?(s||this.player_).focus():this.player_.tech(!0)&&this.player_.tech(!0).focus();return}if(!s){this.player_.tech(!0).focus();return}let a=()=>s.focus();ku(t)?t.then(a,()=>{}):this.setTimeout(a,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}};rh.prototype.controlText_="Play Video";_e.registerComponent("BigPlayButton",rh);e0=class extends xr{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.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)}};_e.registerComponent("CloseButton",e0);ih=class extends xr{constructor(e,t={}){super(e,t),t.replay=t.replay===void 0||t.replay,this.setIcon("play"),this.on(e,"play",n=>this.handlePlay(n)),this.on(e,"pause",n=>this.handlePause(n)),t.replay&&this.on(e,"ended",n=>this.handleEnded(n))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?bn(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",t=>this.handleSeeked(t))}};ih.prototype.controlText_="Play";_e.registerComponent("PlayToggle",ih);Bs=class extends _e{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],n=>this.update(n)),this.updateTextNode_()}createEl(){let e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),n=Xe("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)}\xA0`},{role:"presentation"});return t.appendChild(n),this.contentEl_=Xe("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}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=$a(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let t=this.textNode_;t&&this.contentEl_.firstChild!==t&&(t=null,ot.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_=ke.default.createTextNode(this.formattedTime_),this.textNode_&&(t?this.contentEl_.replaceChild(this.textNode_,t):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}};Bs.prototype.labelText_="Time";Bs.prototype.controlText_="Time";_e.registerComponent("TimeDisplay",Bs);Mu=class extends Bs{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;this.player_.ended()?t=this.player_.duration():e&&e.target&&typeof e.target.pendingSeekTime=="function"&&e.target.pendingSeekTime()!==null?t=e.target.pendingSeekTime():t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}};Mu.prototype.labelText_="Current Time";Mu.prototype.controlText_="Current Time";_e.registerComponent("CurrentTimeDisplay",Mu);Bu=class extends Bs{constructor(e,t){super(e,t);let n=s=>this.updateContent(s);this.on(e,"durationchange",n),this.on(e,"loadstart",n),this.on(e,"loadedmetadata",n)}buildCSSClass(){return"vjs-duration"}updateContent(e){let t=this.player_.duration();this.updateTextNode_(t)}};Bu.prototype.labelText_="Duration";Bu.prototype.controlText_="Duration";_e.registerComponent("DurationDisplay",Bu);
vendor: 6,558 bytes, line 163
163t0=class extends _e{createEl(){let e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),n=super.createEl("span",{textContent:"/"});return t.appendChild(n),e.appendChild(t),e}};_e.registerComponent("TimeDivider",t0);$u=class extends Bs{constructor(e,t){super(e,t),this.on(e,"durationchange",n=>this.updateContent(n))}buildCSSClass(){return"vjs-remaining-time"}createEl(){let e=super.createEl();return this.options_.displayNegative!==!1&&e.insertBefore(Xe("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if(typeof this.player_.duration()!="number")return;let t;this.player_.ended()?t=0:this.player_.remainingTimeDisplay?t=this.player_.remainingTimeDisplay():t=this.player_.remainingTime(),this.updateTextNode_(t)}};$u.prototype.labelText_="Remaining Time";$u.prototype.controlText_="Remaining Time";_e.registerComponent("RemainingTimeDisplay",$u);r0=class extends _e{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",n=>this.updateShowing(n))}createEl(){let e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Xe("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Xe("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")}\xA0`})),this.contentEl_.appendChild(ke.default.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()}};_e.registerComponent("LiveDisplay",r0);nh=class extends xr{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=n=>this.updateLiveEdgeStatus(n),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){let e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=Xe("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()}};nh.prototype.controlText_="Seek to live, currently playing live";_e.registerComponent("SeekToLive",nh);R6=Object.freeze({__proto__:null,clamp:Zu}),Fu=class extends _e{constructor(e,t){super(e,t),this.handleMouseDown_=n=>this.handleMouseDown(n),this.handleMouseUp_=n=>this.handleMouseUp(n),this.handleKeyDown_=n=>this.handleKeyDown(n),this.handleClick_=n=>this.handleClick(n),this.handleMouseMove_=n=>this.handleMouseMove(n),this.update_=n=>this.update(n),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;let 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,t={},n={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),n=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},n),super.createEl(e,t,n)}handleMouseDown(e){let t=this.bar.el_.ownerDocument;e.type==="mousedown"&&e.preventDefault(),e.type==="touchstart"&&!wn&&e.preventDefault(),Yw(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){let t=this.bar.el_.ownerDocument;Jw(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;let e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{let t=this.vertical()?"height":"width";this.bar.el().style[t]=(e*100).toFixed(2)+"%"})),e}getProgress(){return Number(Zu(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){let t=Yh(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){let t=this.options_.playerOptions.spatialNavigation,n=t&&t.enabled,s=t&&t.horizontalSeek;n?s&&e.key==="ArrowLeft"||!s&&e.key==="ArrowDown"?(e.preventDefault(),e.stopPropagation(),this.stepBack()):s&&e.key==="ArrowRight"||!s&&e.key==="ArrowUp"?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(this.pendingSeekTime()&&(this.pendingSeekTime(null),this.userSeek_(this.player_.currentTime())),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")}};_e.registerComponent("Slider",Fu);Dg=(r,e)=>
vendor: 9,866 bytes, line 163
163Zu(r/e*100,0,100).toFixed(2)+"%",i0=class extends _e{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",n=>this.update(n))}createEl(){let e=super.createEl("div",{className:"vjs-load-progress"}),t=Xe("span",{className:"vjs-control-text"}),n=Xe("span",{textContent:this.localize("Loaded")}),s=ke.default.createTextNode(": ");return this.percentageEl_=Xe("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(n),t.appendChild(s),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{let t=this.player_.liveTracker,n=this.player_.buffered(),s=t&&t.isLive()?t.seekableEnd():this.player_.duration(),a=this.player_.bufferedEnd(),o=this.partEls_,l=Dg(a,s);this.percent_!==l&&(this.el_.style.width=l,Fs(this.percentageEl_,l),this.percent_=l);for(let u=0;u<n.length;u++){let c=n.start(u),h=n.end(u),f=o[u];f||(f=this.el_.appendChild(Xe()),o[u]=f),!(f.dataset.start===c&&f.dataset.end===h)&&(f.dataset.start=c,f.dataset.end=h,f.style.left=Dg(c,a),f.style.width=Dg(h-c,a))}for(let u=o.length;u>n.length;u--)this.el_.removeChild(o[u-1]);o.length=n.length})}};_e.registerComponent("LoadProgressBar",i0);n0=class extends _e{constructor(e,t){super(e,t),this.update=Cn(Mt(this,this.update),$i)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,n){let s=Iu(this.el_),a=tl(this.player_.el()),o=e.width*t;if(!a||!s)return;let l=e.left-a.left+o,u=e.width-o+(a.right-e.right);u||(u=e.width-o,l=o);let c=s.width/2;l<c?c+=c-l:u<c&&(c=u),c<0?c=0:c>s.width&&(c=s.width),c=Math.round(c),this.el_.style.right=`-${c}px`,this.write(n)}write(e){Fs(this.el_,e)}updateTime(e,t,n,s){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let a,o=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){let l=this.player_.liveTracker.liveWindow(),u=l-t*l;a=(u<1?"":"-")+$a(u,l)}else a=$a(n,o);this.update(e,t,a),s&&s()})}};_e.registerComponent("TimeTooltip",n0);Uu=class extends _e{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=Cn(Mt(this,this.update),$i)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t,n){let s=this.getChild("timeTooltip");if(!s)return;let a=n&&n.target&&typeof n.target.pendingSeekTime=="function"?n.target.pendingSeekTime():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();s.updateTime(e,t,a)}};Uu.prototype.options_={children:[]};!Br&&!tn&&Uu.prototype.options_.children.push("timeTooltip");_e.registerComponent("PlayProgressBar",Uu);sh=class extends _e{constructor(e,t){super(e,t),this.update=Cn(Mt(this,this.update),$i)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){let n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,()=>{this.el_.style.left=`${e.width*t}px`})}};sh.prototype.options_={children:["timeTooltip"]};_e.registerComponent("MouseTimeDisplay",sh);ah=class r extends Fu{constructor(e,t){t=Rt(r.prototype.options_,t),t.children=[...t.children];let n=e.options_.disableSeekWhileScrubbingOnMobile&&(Br||tn)||e.options_.disableSeekWhileScrubbingOnSTV;(!Br&&!tn||n)&&t.children.splice(1,0,"mouseTimeDisplay"),super(e,t),this.shouldDisableSeekWhileScrubbing_=n,this.pendingSeekTime_=null,this.setEventHandlers_()}setEventHandlers_(){this.update_=Mt(this,this.update),this.update=Cn(this.update_,$i),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 ke.default&&"visibilityState"in ke.default&&this.on(ke.default,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){ke.default.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,$i))}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(ke.default.visibilityState==="hidden")return;let t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{let n=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),s=this.player_.liveTracker,a=this.player_.duration();s&&s.isLive()&&(a=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(t*100).toFixed(2)),this.percent_=t),(this.currentTime_!==n||this.duration_!==a)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[$a(n,a),$a(a,a)],"{1} of {2}")),this.currentTime_=n,this.duration_=a),this.bar&&this.bar.update(tl(this.el()),this.getProgress(),e)}),t}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()}pendingSeekTime(e){if(e!==void 0)if(e!==null){let t=this.player_.duration();this.pendingSeekTime_=Math.max(0,Math.min(e,t))}else this.pendingSeekTime_=null;return this.pendingSeekTime_}getPercent(){if(this.pendingSeekTime()!==null)return this.pendingSeekTime()/this.player_.duration();let e=this.getCurrentTime_(),t,n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){Ou(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.shouldDisableSeekWhileScrubbing_||this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!Ou(e)||isNaN(this.player_.duration()))return;!t&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);let n,s=this.calculateDistance(e),a=this.player_.liveTracker;if(!a||!a.isLive())n=s*this.player_.duration(),n===this.player_.duration()&&(n=n-.1);else{if(s>=.99){a.seekToLiveEdge();return}let o=a.seekableStart(),l=a.liveCurrentTime();if(n=o+s*a.liveWindow(),n>=l&&(n=l),n<=o&&(n=o+.1),n===1/0)return}this.shouldDisableSeekWhileScrubbing_?this.pendingSeekTime(n):this.userSeek_(n),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();let e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();let e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.pendingSeekTime()!==null&&(this.userSeek_(this.pendingSeekTime()),this.pendingSeekTime(null)),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?bn(this.player_.play()):this.update_()}handlePendingSeek_(e){this.player_.paused()||this.player_.pause();let t=this.pendingSeekTime()!==null?this.pendingSeekTime():this.player_.currentTime();this.pendingSeekTime(t+e),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}stepForward(){this.shouldDisableSeekWhileScrubbing_?this.handlePendingSeek_(this.options().stepSeconds):this.userSeek_(this.player_.currentTime()+this.options().stepSeconds)}stepBack(){this.shouldDisableSeekWhileScrubbing_?this.handlePendingSeek_(-this.options().stepSeconds):this.userSeek_(this.player_.currentTime()-this.options().stepSeconds)}handleAction(e){this.pendingSeekTime()!==null&&(this.userSeek_(this.pendingSeekTime()),this.pendingSeekTime(null)),this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){let t=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(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e.key)){e.preventDefault(),e.stopPropagation();let n=parseInt(e.key,10)*.1;t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else e.key==="PageDown"?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-this.options().stepSeconds*this.options().pageMultiplier)):e.key==="PageUp"?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+this.options().stepSeconds*this.options().pageMultiplier)):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 ke.default&&"visibilityState"in ke.default&&this.off(ke.default,"visibilitychange",this.toggleVisibility_),super.dispose()}};ah.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar",stepSeconds:5,pageMultiplier:12};_e.registerComponent("SeekBar",ah);
vendor: 1,168 bytes, line 163
163oh=class extends _e{constructor(e,t){super(e,t),this.handleMouseMove=Cn(Mt(this,this.handleMouseMove),$i),this.throttledHandleMouseSeek=Cn(Mt(this,this.handleMouseSeek),$i),this.handleMouseUpHandler_=n=>this.handleMouseUp(n),this.handleMouseDownHandler_=n=>this.handleMouseDown(n),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){let t=this.getChild("seekBar");if(!t)return;let n=t.getChild("playProgressBar"),s=t.getChild("mouseTimeDisplay");if(!n&&!s)return;let a=t.el(),o=Iu(a),l=Yh(a,e).x;l=Zu(l,0,1),s&&s.update(o,l),n&&n.update(o,t.getProgress())}handleMouseSeek(e){let t=this.getChild("seekBar");t&&t.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())){let e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&bn(this.player_.play())}}
163enable(){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(){let 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){let t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){let t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}};oh.prototype.options_={children:["seekBar"]};_e.registerComponent("ProgressControl",oh);lh=class extends xr{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],n=>this.handlePictureInPictureChange(n)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],n=>this.handlePictureInPictureEnabledChange(n)),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(){ke.default.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in J.default?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 ke.default.exitPictureInPicture=="function"&&super.show()}};lh.prototype.controlText_="Picture-in-Picture";_e.registerComponent("PictureInPictureToggle",lh);uh=class extends xr{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",n=>this.handleFullscreenChange(n)),ke.default[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()}};uh.prototype.controlText_="Fullscreen";_e.registerComponent("FullscreenToggle",uh);N6=function(r,e){e.tech_&&!e.tech_.featuresVolumeControl&&r.addClass("vjs-hidden"),r.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?r.removeClass("vjs-hidden"):r.addClass("vjs-hidden")})},s0=class extends _e{createEl(){let e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}};_e.registerComponent("VolumeLevel",s0);a0=class extends _e{constructor(e,t){super(e,t),this.update=Cn(Mt(this,this.update),$i)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,n,s){if(!n){let a=tl(this.el_),o=tl(this.player_.el()),l=e.width*t;if(!o||!a)return;let u=e.left-o.left+l,c=e.width-l+(o.right-e.right),h=a.width/2;u<h?h+=h-u:c<h&&(h=c),h<0?h=0:h>a.width&&(h=a.width),this.el_.style.right=`-${h}px`}this.write(`${s}%`)}write(e){Fs(this.el_,e)}updateVolume(e,t,n,s,a){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,t,n,s.toFixed(0)),a&&a()})}};
vendor: 10,761 bytes, line 163
163_e.registerComponent("VolumeLevelTooltip",a0);ch=class extends _e{constructor(e,t){super(e,t),this.update=Cn(Mt(this,this.update),$i)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,n){let s=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,s,()=>{n?this.el_.style.bottom=`${e.height*t}px`:this.el_.style.left=`${e.width*t}px`})}};ch.prototype.options_={children:["volumeLevelTooltip"]};_e.registerComponent("MouseVolumeLevelDisplay",ch);sl=class extends Fu{constructor(e,t){super(e,t),this.on("slideractive",n=>this.updateLastVolume_(n)),this.on(e,"volumechange",n=>this.updateARIAAttributes(n)),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){Ou(e)&&super.handleMouseDown(e)}handleMouseMove(e){let t=this.getChild("mouseVolumeLevelDisplay");if(t){let n=this.el(),s=tl(n),a=this.vertical(),o=Yh(n,e);o=a?o.y:o.x,o=Zu(o,0,1),t.update(s,o,a)}Ou(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){let t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(this.player_.volume()*100)}updateLastVolume_(){let e=this.player_.volume();this.one("sliderinactive",()=>{this.player_.volume()===0&&this.player_.lastVolume_(e)})}};sl.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};!Br&&!tn&&sl.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay");sl.prototype.playerEvent="volumechange";_e.registerComponent("VolumeBar",sl);dh=class extends _e{constructor(e,t={}){t.vertical=t.vertical||!1,(typeof t.volumeBar>"u"||Zo(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),N6(this,e),this.throttledHandleMouseMove=Cn(Mt(this,this.handleMouseMove),$i),this.handleMouseUpHandler_=n=>this.handleMouseUp(n),this.on("mousedown",n=>this.handleMouseDown(n)),this.on("touchstart",n=>this.handleMouseDown(n)),this.on("mousemove",n=>this.handleMouseMove(n)),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){let t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){let t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}};dh.prototype.options_={children:["volumeBar"]};_e.registerComponent("VolumeControl",dh);M6=function(r,e){e.tech_&&!e.tech_.featuresMuteControl&&r.addClass("vjs-hidden"),r.on(e,"loadstart",function(){e.tech_.featuresMuteControl?r.removeClass("vjs-hidden"):r.addClass("vjs-hidden")})},hh=class extends xr{constructor(e,t){super(e,t),M6(this,e),this.on(e,["loadstart","volumechange"],n=>this.update(n))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){let t=this.player_.volume(),n=this.player_.lastVolume_();if(t===0){let s=n<.1?.1:n;this.player_.volume(s),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){let e=this.player_.volume(),t=3;this.setIcon("volume-high"),Br&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),e===0||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),Kh(this.el_,[0,1,2,3].reduce((n,s)=>n+`${s?" ":""}vjs-vol-${s}`,"")),Na(this.el_,`vjs-vol-${t}`)}updateControlText_(){let t=this.player_.muted()||this.player_.volume()===0?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)}};hh.prototype.controlText_="Mute";_e.registerComponent("MuteToggle",hh);fh=class extends _e{constructor(e,t={}){typeof t.inline<"u"?t.inline=t.inline:t.inline=!0,(typeof t.volumeControl>"u"||Zo(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=n=>this.handleKeyPress(n),this.on(e,["loadstart"],n=>this.volumePanelState_(n)),this.on(this.muteToggle,"keyup",n=>this.handleKeyPress(n)),this.on(this.volumeControl,"keyup",n=>this.handleVolumeControlKeyUp(n)),this.on("keydown",n=>this.handleKeyPress(n)),this.on("mouseover",n=>this.handleMouseOver(n)),this.on("mouseout",n=>this.handleMouseOut(n)),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"),Ti(ke.default,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),$r(ke.default,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){e.key==="Escape"&&this.handleMouseOut()}};fh.prototype.options_={children:["muteToggle","volumeControl"]};_e.registerComponent("VolumePanel",fh);ph=class extends xr{constructor(e,t){super(e,t),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(){let 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;let t=this.player_.currentTime(),n=this.player_.liveTracker,s=n&&n.isLive()?n.seekableEnd():this.player_.duration(),a;t+this.skipTime<=s?a=t+this.skipTime:a=s,this.player_.currentTime(a)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}};ph.prototype.controlText_="Skip Forward";_e.registerComponent("SkipForward",ph);mh=class extends xr{constructor(e,t){super(e,t),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(){let 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){let t=this.player_.currentTime(),n=this.player_.liveTracker,s=n&&n.isLive()&&n.seekableStart(),a;s&&t-this.skipTime<=s?a=s:t>=this.skipTime?a=t-this.skipTime:a=0,this.player_.currentTime(a)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}};mh.prototype.controlText_="Skip Backward";_e.registerComponent("SkipBackward",mh);gh=class extends _e{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",n=>this.handleKeyDown(n)),this.boundHandleBlur_=n=>this.handleBlur(n),this.boundHandleTapClick_=n=>this.handleTapClick(n)}addEventListenerForItem(e){e instanceof _e&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof _e&&(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){let t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){let e=this.options_.contentElType||"ul";this.contentEl_=Xe(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");let t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),Ti(t,"click",function(n){n.preventDefault(),n.stopImmediatePropagation()}),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){let t=e.relatedTarget||ke.default.activeElement;if(!this.children().some(n=>n.el()===t)){let n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();let t=this.children();if(!Array.isArray(t))return;let n=t.filter(s=>s.el()===e.target)[0];if(!n)return;n.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){let t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}};_e.registerComponent("Menu",gh);
vendor: 4,992 bytes, line 163
163qu=class extends _e{constructor(e,t={}){super(e,t),this.menuButton_=new xr(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");let n=xr.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+n,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;let s=a=>this.handleClick(a);this.handleMenuKeyUp_=a=>this.handleMenuKeyUp(a),this.on(this.menuButton_,"tap",s),this.on(this.menuButton_,"click",s),this.on(this.menuButton_,"keydown",a=>this.handleKeyDown(a)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),Ti(ke.default,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",a=>this.handleMouseLeave(a)),this.on("keydown",a=>this.handleSubmenuKeyDown(a))}update(){let 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(){let e=new gh(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){let t=Xe("li",{className:"vjs-menu-title",textContent:Xt(this.options_.title),tabIndex:-1}),n=new _e(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){return super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";this.options_.inline===!0?e+="-inline":e+="-popup";let t=xr.prototype.buildCSSClass();return`vjs-menu-button ${e} ${t} ${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,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),$r(ke.default,"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"),Br&&Ww())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()}};_e.registerComponent("MenuButton",qu);Hu=class extends qu{constructor(e,t){let n=t.tracks;super(e,t),this.items.length<=1&&this.hide(),n&&(this.updateHandler_=Mt(this,this.update),this.cleanupHandler_=Mt(this,this.cleanupTrackListeners_),n.addEventListener("removetrack",this.updateHandler_),n.addEventListener("addtrack",this.updateHandler_),n.addEventListener("labelchange",this.updateHandler_),this.player_.on("ready",this.updateHandler_),this.player_.on("dispose",this.cleanupHandler_))}cleanupTrackListeners_(){if(!this.updateHandler_)return;let e=this.options_.tracks;e&&(e.removeEventListener("removetrack",this.updateHandler_),e.removeEventListener("addtrack",this.updateHandler_),e.removeEventListener("labelchange",this.updateHandler_)),this.player_&&(this.player_.off("ready",this.updateHandler_),this.player_.off("dispose",this.cleanupHandler_)),this.updateHandler_=null,this.cleanupHandler_=null}dispose(){this.cleanupTrackListeners_(),super.dispose()}};_e.registerComponent("TrackButton",Hu);Ua=class extends nl{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}
vendor: 4,385 bytes, line 163
163createEl(e,t,n){this.nonIconControl=!0;let s=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),n),a=Xe("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?s.appendChild(a):s.replaceChild(a,s.querySelector(".vjs-icon-placeholder")),s}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))}};_e.registerComponent("MenuItem",Ua);qa=class extends Ua{constructor(e,t){let n=t.track,s=e.textTracks();t.label=n.label||n.language||"Unknown",t.selected=n.mode==="showing",super(e,t),this.track=n,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);let a=(...l)=>{this.handleTracksChange.apply(this,l)},o=(...l)=>{this.handleSelectedLanguageChange.apply(this,l)};if(e.on(["loadstart","texttrackchange"],a),s.addEventListener("change",a),s.addEventListener("selectedlanguagechange",o),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],a),s.removeEventListener("change",a),s.removeEventListener("selectedlanguagechange",o)}),s.onchange===void 0){let l;this.on(["tap","click"],function(){if(typeof J.default.Event!="object")try{l=new J.default.Event("change")}catch{}l||(l=ke.default.createEvent("Event"),l.initEvent("change",!0,!0)),s.dispatchEvent(l)})}this.handleTracksChange()}handleClick(e){let t=this.track,n=this.player_.textTracks();if(super.handleClick(e),!!n)for(let s=0;s<n.length;s++){let a=n[s];this.kinds.indexOf(a.kind)!==-1&&(a===t?a.mode!=="showing"&&(a.mode="showing"):a.mode!=="disabled"&&(a.mode="disabled"))}}handleTracksChange(e){let t=this.track.mode==="showing";t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if(this.track.mode==="showing"){let t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.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()}};_e.registerComponent("TextTrackMenuItem",qa);vh=class extends qa{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){let t=this.player().textTracks(),n=!0;for(let s=0,a=t.length;s<a;s++){let o=t[s];if(this.options_.kinds.indexOf(o.kind)>-1&&o.mode==="showing"){n=!1;break}}n!==this.isSelected_&&this.selected(n)}handleSelectedLanguageChange(e){let t=this.player().textTracks(),n=!0;for(let s=0,a=t.length;s<a;s++){let o=t[s];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&o.mode==="showing"){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}};_e.registerComponent("OffTextTrackMenuItem",vh);$s=class extends Hu{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=qa){let n;this.label_&&(n=`${this.label_} off`),e.push(new vh(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;let s=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let a=0;a<s.length;a++){let o=s[a];if(this.kinds_.indexOf(o.kind)>-1){let l=new t(this.player_,{track:o,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});l.addClass(`vjs-${o.kind}-menu-item`),e.push(l)}}return e}};_e.registerComponent("TextTrackButton",$s);yh=class extends Ua{constructor(e,t){let n=t.track,s=t.cue,a=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=s.text,t.selected=s.startTime<=a&&a<s.endTime,super(e,t),this.track=n,this.cue=s}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}};_e.registerComponent("ChaptersTrackMenuItem",yh);Vu=class extends $s{constructor(e,t,n){super(e,t,n),this.setIcon("chapters"),this.selectCurrentItem_=()=>
163{this.items.forEach(s=>{s.selected(this.track_.activeCues[0]===s.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;let t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){let t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";let t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){let e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){let n=e[t];if(n.kind===this.kind_)return n}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Xt(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){let e=[];
vendor: 16,936 bytes, line 163
163if(!this.track_)return e;let t=this.track_.cues;if(!t)return e;for(let n=0,s=t.length;n<s;n++){let a=t[n],o=new yh(this.player_,{track:this.track_,cue:a});e.push(o)}return e}};Vu.prototype.kind_="chapters";Vu.prototype.controlText_="Chapters";_e.registerComponent("ChaptersButton",Vu);ju=class extends $s{constructor(e,t,n){super(e,t,n),this.setIcon("audio-description");let s=e.textTracks(),a=Mt(this,this.handleTracksChange);s.addEventListener("change",a),this.on("dispose",function(){s.removeEventListener("change",a)})}handleTracksChange(e){let t=this.player().textTracks(),n=!1;for(let s=0,a=t.length;s<a;s++){let o=t[s];if(o.kind!==this.kind_&&o.mode==="showing"){n=!0;break}}n?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}};ju.prototype.kind_="descriptions";ju.prototype.controlText_="Descriptions";_e.registerComponent("DescriptionsButton",ju);zu=class extends $s{constructor(e,t,n){super(e,t,n),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}};zu.prototype.kind_="subtitles";zu.prototype.controlText_="Subtitles";_e.registerComponent("SubtitlesButton",zu);Wu=class extends qa{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.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()}};_e.registerComponent("CaptionSettingsMenuItem",Wu);Gu=class extends $s{constructor(e,t,n){super(e,t,n),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new Wu(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}};Gu.prototype.kind_="captions";Gu.prototype.controlText_="Captions";_e.registerComponent("CaptionsButton",Gu);bh=class extends qa{createEl(e,t,n){let s=super.createEl(e,t,n),a=s.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="captions"&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",s):a.appendChild(Xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(Xe("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),s}};_e.registerComponent("SubsCapsMenuItem",bh);Qu=class extends $s{constructor(e,t={}){super(e,t),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(Xt(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 Wu(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,bh),e}};Qu.prototype.kinds_=["captions","subtitles"];Qu.prototype.controlText_="Subtitles";_e.registerComponent("SubsCapsButton",Qu);_h=class extends Ua{constructor(e,t){let n=t.track,s=e.audioTracks();t.label=n.label||n.language||"Unknown",t.selected=n.enabled,super(e,t),this.track=n,this.addClass(`vjs-${n.kind}-menu-item`);let a=(...o)=>{this.handleTracksChange.apply(this,o)};s.addEventListener("change",a),this.on("dispose",()=>{s.removeEventListener("change",a)})}createEl(e,t,n){let s=super.createEl(e,t,n),a=s.querySelector(".vjs-menu-item-text");return["main-desc","descriptions","description"].indexOf(this.options_.track.kind)>=0&&(a.appendChild(Xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(Xe("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),s}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){let t=this.player_.audioTracks();for(let n=0;n<t.length;n++){let s=t[n];s!==this.track&&(s.enabled=s===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}};_e.registerComponent("AudioTrackMenuItem",_h);Th=class extends Hu{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;let t=this.player_.audioTracks();for(let n=0;n<t.length;n++){let s=t[n];e.push(new _h(this.player_,{track:s,selectable:!0,multiSelectable:!1}))}return e}};Th.prototype.controlText_="Audio Track";_e.registerComponent("AudioTrackButton",Th);Ku=class extends Ua{constructor(e,t){let n=t.rate,s=parseFloat(n,10);t.label=n,t.selected=s===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=n,this.rate=s,this.on(e,"ratechange",a=>this.update(a))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}};Ku.prototype.contentElType="button";_e.registerComponent("PlaybackRateMenuItem",Ku);Sh=class extends qu{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",n=>this.updateVisibility(n)),this.on(e,"ratechange",n=>this.updateLabel(n)),this.on(e,"playbackrateschange",n=>this.handlePlaybackRateschange(n))}createEl(){let e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Xe("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(){let e=this.playbackRates(),t=[];for(let n=e.length-1;n>=0;n--)t.push(new Ku(this.player(),{rate:e[n]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){let 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")}};Sh.prototype.controlText_="Playback Rate";_e.registerComponent("PlaybackRateMenuButton",Sh);xh=class extends _e{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},n={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,n)}};_e.registerComponent("Spacer",xh);o0=class extends xh{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:"\xA0"})}};_e.registerComponent("CustomControlSpacer",o0);wh=class extends _e{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}};wh.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]};_e.registerComponent("ControlBar",wh);Ch=class extends Ns{constructor(e,t){super(e,t),this.on(e,"error",n=>{this.open(n)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){let e=this.player().error();return e?this.localize(e.message):""}};Ch.prototype.options_=Object.assign({},Ns.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});_e.registerComponent("ErrorDisplay",Ch);Eh=class extends _e{constructor(e,t={}){super(e,t),this.el_.setAttribute("aria-labelledby",this.selectLabelledbyIds)}createEl(){return this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim(),Xe("select",{id:this.options_.id},{},this.options_.SelectOptions.map(t=>{let n=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${Bi()}`)+"-"+t[1].replace(/\W+/g,""),s=Xe("option",{id:n,value:this.localize(t[0]),textContent:this.localize(t[1])});return s.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${n}`),s}))}};_e.registerComponent("TextTrackSelect",Eh);Jn=class extends _e{constructor(e,t={}){super(e,t);let n=Xe("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});this.el().appendChild(n);let s=this.options_.selects;for(let a of s){let o=this.options_.selectConfigs[a],l=o.className,u=o.id.replace("%s",this.options_.id_),c=null,h=`vjs_select_${Bi()}`;if(this.options_.type==="colors"){c=Xe("span",{className:l});let v=Xe("label",{id:u,className:"vjs-label",textContent:this.localize(o.label)});v.setAttribute("for",h),c.appendChild(v)}let f=new Eh(e,{SelectOptions:o.options,legendId:this.options_.legendId,id:h,labelId:u});this.addChild(f),this.options_.type==="colors"&&(c.appendChild(f.el()),this.el().appendChild(c))}}createEl(){return Xe("fieldset",{className:this.options_.className})}};_e.registerComponent("TextTrackFieldset",Jn);kh=class extends _e{constructor(e,t={}){super(e,t);let n=this.options_.textTrackComponentid,s=new Jn(e,{id_:n,legendId:`captions-text-legend-${n}`,legendText:this.localize("Text"),className:"vjs-fg vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(s);let a=new Jn(e,{id_:n,legendId:`captions-background-${n}`,legendText:this.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(a);let o=new Jn(e,{id_:n,legendId:`captions-window-${n}`,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(o)}createEl(){return Xe("div",{className:"vjs-track-settings-colors"})}};_e.registerComponent("TextTrackSettingsColors",kh);Ah=class extends _e{constructor(e,t={}){super(e,t);let n=this.options_.textTrackComponentid,s=new Jn(e,{id_:n,legendId:`captions-font-size-${n}`,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(s);let a=new Jn(e,{id_:n,legendId:`captions-edge-style-${n}`,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(a);let o=new Jn(e,{id_:n,legendId:`captions-font-family-${n}`,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(o)}createEl(){return Xe("div",{className:"vjs-track-settings-font"})}};_e.registerComponent("TextTrackSettingsFont",Ah);Ph=class extends _e{constructor(e,t={}){super(e,t);let n=new xr(e,{controlText:this.localize("restore all settings to the default values"),className:"vjs-default-button"});n.el().classList.remove("vjs-control","vjs-button"),n.el().textContent=this.localize("Reset"),this.addChild(n);let s=this.localize("Done"),a=new xr(e,{controlText:s,className:"vjs-done-button"});a.el().classList.remove("vjs-control","vjs-button"),a.el().textContent=s,this.addChild(a)}createEl(){return Xe("div",{className:"vjs-track-settings-controls"})}};_e.registerComponent("TrackSettingsControls",Ph);Ig="vjs-text-track-settings",aw=["#000","Black"],ow=["#00F","Blue"],lw=["#0FF","Cyan"],uw=["#0F0","Green"],cw=["#F0F","Magenta"],dw=["#F00","Red"],hw=["#FFF","White"],fw=["#FF0","Yellow"],Og=["1","Opaque"],Lg=["0.5","Semi-Transparent"],pw=["0","Transparent"],Ps={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[aw,hw,dw,uw,ow,fw,cw,lw],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[Og,Lg,pw],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[hw,aw,dw,uw,ow,fw,cw,lw],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:r=>r==="1.00"?null:Number(r)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[Og,Lg],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:[pw,Lg,Og],className:"vjs-window-opacity vjs-opacity"}};Ps.windowColor.options=Ps.backgroundColor.options;l0=class extends Ns{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(e),this.endDialog=Xe("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),t.persistTextTrackSettings===void 0&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(e){let t=new kh(e,{textTrackComponentid:this.id_,selectConfigs:Ps,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(t);let n=new Ah(e,{textTrackComponentid:this.id_,selectConfigs:Ps,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(n);let s=new Ph(e);this.addChild(s)}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()}),zo(Ps,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 Fw(Ps,(e,t,n)=>{let s=B6(this.$(t.selector),t.parser);return s!==void 0&&(e[n]=s),e},{})}setValues(e){zo(Ps,(t,n)=>{$6(this.$(t.selector),e[n],t.parser)})}setDefaults(){zo(Ps,e=>{let t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(J.default.localStorage.getItem(Ig))}catch(t){ot.warn(t)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;let e=this.getValues();try{Object.keys(e).length?J.default.localStorage.setItem(Ig,JSON.stringify(e)):J.default.localStorage.removeItem(Ig)}catch(t){ot.warn(t)}}updateDisplay(){let e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}};_e.registerComponent("TextTrackSettings",l0);
vendor: 4,498 bytes, line 163
163u0=class extends _e{constructor(e,t){let n=t.ResizeObserver||J.default.ResizeObserver;t.ResizeObserver===null&&(n=!1);let s=Rt({createEl:!n,reportTouchActivity:!1},t);super(e,s),this.ResizeObserver=t.ResizeObserver||J.default.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=lC(()=>{this.resizeHandler()},100,!1,this),n?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;let a=this.debouncedHandler_,o=this.unloadListener_=function(){$r(this,"resize",a),$r(this,"unload",o),o=null};Ti(this.el_.contentWindow,"unload",o),Ti(this.el_.contentWindow,"resize",a)},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()}};_e.registerComponent("ResizeManager",u0);F6={trackingThreshold:20,liveTolerance:15},c0=class extends _e{constructor(e,t){let n=Rt(F6,t,{createEl:!1});super(e,n),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=s=>this.handlePlay(s),this.handleFirstTimeupdate_=s=>this.handleFirstTimeupdate(s),this.handleSeeked_=s=>this.handleSeeked(s),this.seekToLiveEdge_=s=>this.seekToLiveEdge(s),this.reset_(),this.on(this.player_,"durationchange",s=>this.handleDurationchange(s)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){let e=this.player_.seekable();if(!e||!e.length)return;let t=Number(J.default.performance.now().toFixed(4)),n=this.lastTime_===-1?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;let s=this.liveCurrentTime(),a=this.player_.currentTime(),o=this.player_.paused()||this.seekedBehindLive_||Math.abs(s-a)>this.options_.liveTolerance;(!this.timeupdateSeen_||s===1/0)&&(o=!1),o!==this.behindLiveEdge_&&(this.behindLiveEdge_=o,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_,$i),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(){let 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(){let e=this.player_.seekable(),t=[],n=e?e.length:0;for(;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){let e=this.player_.seekable(),t=[],n=e?e.length:0;for(;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0}
vendor: 6,918 bytes, lines 163-164
163liveWindow(){let 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(){let 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()}};_e.registerComponent("LiveTracker",c0);d0=class extends _e{constructor(e,t){super(e,t),this.on("statechanged",n=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:Xe("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${Bi()}`}),description:Xe("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${Bi()}`})},Xe("div",{className:"vjs-title-bar"},{},Uw(this.els))}updateDom_(){let e=this.player_.tech_,t=e&&e.el_,n={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(s=>{let a=this.state[s],o=this.els[s],l=n[s];Jh(o),a&&Fs(o,a),t&&(t.removeAttribute(l),a&&t.setAttribute(l,o.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){let e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}};_e.registerComponent("TitleBar",d0);U6={initialDisplay:4e3,position:[],takeFocus:!1},h0=class extends xr{constructor(e,t){t=Rt(U6,t),super(e,t),this.controlText(t.controlText),this.hide(),this.on(this.player_,["useractive","userinactive"],n=>{this.removeClass("force-display")})}buildCSSClass(){return`vjs-transient-button focus-visible ${this.options_.position.map(e=>`vjs-${e}`).join(" ")}`}createEl(){let e=Xe("button",{},{type:"button",class:this.buildCSSClass()},Xe("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()}};_e.registerComponent("TransientButton",h0);f0=r=>{let e=r.el();if(e.hasAttribute("src"))return r.triggerSourceset(e.src),!0;let t=r.$$("source"),n=[],s="";if(!t.length)return!1;for(let a=0;a<t.length;a++){let o=t[a].src;o&&n.indexOf(o)===-1&&n.push(o)}return n.length?(n.length===1&&(s=n[0]),r.triggerSourceset(s),!0):!1},q6=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(r){let e=ke.default.createElement(this.nodeName.toLowerCase());e.innerHTML=r;let t=ke.default.createDocumentFragment();for(;e.childNodes.length;)t.appendChild(e.childNodes[0]);return this.innerText="",J.default.Element.prototype.appendChild.call(this,t),this.innerHTML}}),_C=(r,e)=>{let t={};for(let n=0;n<r.length&&(t=Object.getOwnPropertyDescriptor(r[n],e),!(t&&t.set&&t.get));n++);return t.enumerable=!0,t.configurable=!0,t},H6=r=>_C([r.el(),J.default.HTMLMediaElement.prototype,J.default.Element.prototype,q6],"innerHTML"),mw=function(r){let e=r.el();if(e.resetSourceWatch_)return;let t={},n=H6(r),s=a=>(...o)=>{let l=a.apply(e,o);return f0(r),l};["append","appendChild","insertAdjacentHTML"].forEach(a=>{e[a]&&(t[a]=e[a],e[a]=s(t[a]))}),Object.defineProperty(e,"innerHTML",Rt(n,{set:s(n.set)})),e.resetSourceWatch_=()=>{e.resetSourceWatch_=null,Object.keys(t).forEach(a=>{e[a]=t[a]}),Object.defineProperty(e,"innerHTML",n)},r.one("sourceset",e.resetSourceWatch_)},V6=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?vC(J.default.Element.prototype.getAttribute.call(this,"src")):""},set(r){return J.default.Element.prototype.setAttribute.call(this,"src",r),r}}),j6=r=>_C([r.el(),J.default.HTMLMediaElement.prototype,V6],"src"),z6=function(r){if(!r.featuresSourceset)return;let e=r.el();if(e.resetSourceset_)return;let t=j6(r),n=e.setAttribute,s=e.load;Object.defineProperty(e,"src",Rt(t,{set:a=>{let o=t.set.call(e,a);return r.triggerSourceset(e.src),o}})),e.setAttribute=(a,o)=>{let l=n.call(e,a,o);return/src/i.test(a)&&r.triggerSourceset(e.src),l},e.load=()=>{let a=s.call(e);return f0(r)||(r.triggerSourceset(""),mw(r)),a},e.currentSrc?r.triggerSourceset(e.currentSrc):f0(r)||mw(r),e.resetSourceset_=()=>{e.resetSourceset_=null,e.load=s,e.setAttribute=n,Object.defineProperty(e,"src",t),e.resetSourceWatch_&&e.resetSourceWatch_()}},Ne=class r extends Ot{constructor(e,t){super(e,t);let n=e.source,s=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&this.el_.tagName==="VIDEO",n&&(this.el_.currentSrc!==n.src||e.tag&&e.tag.initNetworkState_===3)?this.setSource(n):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){let a=this.el_.childNodes,o=a.length,l=[];for(;o--;){let u=a[o];u.nodeName.toLowerCase()==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(u),this.remoteTextTracks().addTrack(u.track),this.textTracks().addTrack(u.track),!s&&!this.el_.hasAttribute("crossorigin")&&rf(u.src)&&(s=!0)):l.push(u))}for(let u=0;u<l.length;u++)this.el_.removeChild(l[u])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&s&&ot.warn(`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
164This may prevent text tracks from loading.`),this.restoreMetadataTracksInIOSNativePlayer_(),(Du||Gh)&&e.nativeControlsForTouch===!0&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),r.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){z6(this)}restoreMetadataTracksInIOSNativePlayer_(){let e=this.textTracks(),t,n=()=>{t=[];for(let a=0;a<e.length;a++){let o=e[a];o.kind==="metadata"&&t.push({track:o,storedMode:o.mode})}};n(),e.addEventListener("change",n),this.on("dispose",()=>e.removeEventListener("change",n));let s=()=>{for(let a=0;a<t.length;a++){let o=t[a];o.track.mode==="disabled"&&o.track.mode!==o.storedMode&&(o.track.mode=o.storedMode)}e.removeEventListener("change",s)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",n),e.removeEventListener("change",s),e.addEventListener("change",s)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",s)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;let n=e.toLowerCase();this[`${n}TracksListeners_`]&&Object.keys(this[`${n}
164TracksListeners_`]).forEach(s=>{this.el()[`${n}Tracks`].removeEventListener(s,this[`${n}TracksListeners_`][s])}),this[`featuresNative${e}Tracks`]=!t,this[`${n}TracksListeners_`]=null,this.proxyNativeTracksForType_(n)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){let t=Mi[e],n=this.el()[t.getterName],s=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!n||!n.addEventListener)return;let a={change:l=>{let u={type:"change",target:s,currentTarget:s,srcElement:s};s.trigger(u),e==="text"&&this[il.remoteText.getterName]().trigger(u)},addtrack(l){s.addTrack(l.track)},removetrack(l){s.removeTrack(l.track)}},o=function(){let l=[];for(let u=0;u<s.length;u++){let c=!1;for(let h=0;h<n.length;h++)if(n[h]===s[u]){c=!0;break}c||l.push(s[u])}for(;l.length;)s.removeTrack(l.shift())};this[t.getterName+"Listeners_"]=a,Object.keys(a).forEach(l=>{let u=a[l];n.addEventListener(l,u),this.on("dispose",c=>n.removeEventListener(l,u))}),this.on("loadstart",o),this.on("dispose",l=>this.off("loadstart",o))}proxyNativeTracks_(){Mi.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){let n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),r.disposeMediaElement(e),e=n}else{e=ke.default.createElement("video");let n=this.options_.tag&&As(this.options_.tag),s=Rt({},n);(!Du||this.options_.nativeControlsForTouch!==!0)&&delete s.controls,Kw(e,Object.assign(s,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&el(e,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);let t=["loop","muted","playsinline","autoplay"];for(let n=0;n<t.length;n++){let s=t[n],a=this.options_[s];typeof a<"u"&&(a?el(e,s,s):Xh(e,s),e[s]=a)}return e}handleLateInit_(e){if(e.networkState===0||e.networkState===3)return;if(e.readyState===0){let n=!1,s=function(){n=!0};this.on("loadstart",s);let a=function(){n||this.trigger("loadstart")};this.on("loadedmetadata",a),this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",a),n||this.trigger("loadstart")});return}let t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready(function(){t.forEach(function(n){this.trigger(n)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&Qh?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){ot(t,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&tn&&wn&&this.el_.currentTime===0){let 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;let e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=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",t),this.on("dispose",()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return typeof this.el_.webkitEnterFullScreen=="function"}enterFullScreen(){let e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)bn(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}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,t){if(!e)return ot.error("Invalid source URL."),!1;let n={src:e};t&&(n.type=t);let s=Xe("source",{},n);return this.el_.appendChild(s),!0}removeSourceElement(e){if(!e)return ot.error("Source URL is required to remove the source element."),!1;let t=this.el_.querySelectorAll("source");for(let n of t)if(n.src===e)return this.el_.removeChild(n),!0;return ot.warn(`No matching source element found with src: ${e}`),!1}reset(){r.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,n):super.addTextTrack(e,t,n)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);let t=ke.default.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){let n=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(n),n}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){let t=this.$$("track"),n=t.length;for(;n--;)(e===t[n]||e===t[n].track)&&this.el().removeChild(t[n])}}getVideoPlaybackQuality(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();let e={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),J.default.performance&&(e.creationTime=J.default.performance.now()),e}};jh(Ne,"TEST_VID",function(){if(!ol())return;let r=ke.default.createElement("video"),e=ke.default.createElement("track");return e.kind="captions",e.srclang="en",e.label="English",r.appendChild(e),r});Ne.isSupported=function(){try{Ne.TEST_VID.volume=.5}catch{return!1}return!!(Ne.TEST_VID&&Ne.TEST_VID.canPlayType)};Ne.canPlayType=function(r){return Ne.TEST_VID.canPlayType(r)};Ne.canPlaySource=function(r,e){return Ne.canPlayType(r.type)};Ne.canControlVolume=function(){try{let r=Ne.TEST_VID.volume;Ne.TEST_VID.volume=r/2+.1;let e=r!==Ne.TEST_VID.volume;return e&&Br?(J.default.setTimeout(()=>{Ne&&Ne.prototype&&(Ne.prototype.featuresVolumeControl=r!==Ne.TEST_VID.volume)}),!1):e}catch{return!1}};Ne.canMuteVolume=function(){try{let r=Ne.TEST_VID.muted;return Ne.TEST_VID.muted=!r,Ne.TEST_VID.muted?el(Ne.TEST_VID,"muted","muted"):Xh(Ne.TEST_VID,"muted","muted"),r!==Ne.TEST_VID.muted}catch{return!1}};Ne.canControlPlaybackRate=function(){if(tn&&wn&&zh<58)return!1;try{let r=Ne.TEST_VID.playbackRate;return Ne.TEST_VID.playbackRate=r/2+.1,r!==Ne.TEST_VID.playbackRate}catch{return!1}};Ne.canOverrideAttributes=function(){try{let r=()=>{};Object.defineProperty(ke.default.createElement("video"),"src",{get:r,set:r}),Object.defineProperty(ke.default.createElement("audio"),"src",{get:r,set:r}),Object.defineProperty(ke.default.createElement("video"),"innerHTML",{get:r,set:r}),Object.defineProperty(ke.default.createElement("audio"),"innerHTML",{get:r,set:r})}catch{return!1}return!0};Ne.supportsNativeTextTracks=function(){return Qh||Br&&wn};Ne.supportsNativeVideoTracks=function(){return!!(Ne.TEST_VID&&Ne.TEST_VID.videoTracks)};Ne.supportsNativeAudioTracks=function(){return!!(Ne.TEST_VID&&Ne.TEST_VID.audioTracks)};Ne.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"]].forEac
164h(function([r,e]){jh(Ne.prototype,r,()=>Ne[e](),!0)});Ne.prototype.featuresVolumeControl=Ne.canControlVolume();Ne.prototype.movingMediaElementInDOM=!Br;Ne.prototype.featuresFullscreenResize=!0;Ne.prototype.featuresProgressEvents=!0;Ne.prototype.featuresTimeupdateEvents=!0;Ne.prototype.featuresVideoFrameCallback=!!(Ne.TEST_VID&&Ne.TEST_VID.requestVideoFrameCallback);Ne.disposeMediaElement=function(r){if(r){for(r.parentNode&&r.parentNode.removeChild(r);r.hasChildNodes();)r.removeChild(r.firstChild);r.removeAttribute("src"),typeof r.load=="function"&&function(){try{r.load()}catch{}}()}};Ne.resetMediaElement=function(r){if(!r)return;let e=r.querySelectorAll("source"),t=e.length;for(;t--;)r.removeChild(e[t]);r.removeAttribute("src"),typeof r.load=="function"&&function(){try{r.load()}catch{}}()};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(r){Ne.prototype[r]=function(){return this.el_[r]||this.el_.hasAttribute(r)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(r){Ne.prototype["set"+Xt(r)]=function(e){this.el_[r]=e,e?this.el_.setAttribute(r,r):this.el_.removeAttribute(r)}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(r){Ne.prototype[r]=function(){return this.el_[r]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(r){Ne.prototype["set"+Xt(r)]=function(e){this.el_[r]=e}});["pause","load","play"].forEach(function(r){Ne.prototype[r]=function(){return this.el_[r]()}});Ot.withSourceHandlers(Ne);Ne.nativeSourceHandler={};Ne.nativeSourceHandler.canPlayType=function(r){try{return Ne.TEST_VID.canPlayType(r)}catch{return""}};Ne.nativeSourceHandler.canHandleSource=function(r,e){if(r.type)return Ne.nativeSourceHandler.canPlayType(r.type);if(r.src){let t=j0(r.src);return Ne.nativeSourceHandler.canPlayType(`video/${t}`)}return""};Ne.nativeSourceHandler.handleSource=function(r,e,t){e.setSrc(r.src)};Ne.nativeSourceHandler.dispose=function(){};Ne.registerSourceHandler(Ne.nativeSourceHandler);Ot.registerTech("Html5",Ne);TC=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Rg={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},p0=["tiny","xsmall","small","medium","large","xlarge","huge"],Fd={};p0.forEach(r=>{let e=r.charAt(0)==="x"?`x-${r.substring(1)}`:r;Fd[r]=`vjs-layout-${e}`});W6={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Bt=class r extends _e{constructor(e,t,n){if(e.id=e.id||t.id||`vjs_video_${Bi()}`,t=Object.assign(r.getTagSettings(e),t),t.initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language){let o=e.closest("[lang]");o&&(t.language=o.getAttribute("lang"))}if(super(null,t,n),this.boundDocumentFullscreenChange_=o=>this.documentFullscreenChange_(o),this.boundFullWindowOnEscKey_=o=>this.fullWindowOnEscKey(o),this.boundUpdateStyleEl_=o=>this.updateStyleEl_(o),this.boundApplyInitTime_=o=>this.applyInitTime_(o),this.boundUpdateCurrentBreakpoint_=o=>this.updateCurrentBreakpoint_(o),this.boundHandleTechClick_=o=>this.handleTechClick_(o),this.boundHandleTechDoubleClick_=o=>this.handleTechDoubleClick_(o),this.boundHandleTechTouchStart_=o=>this.handleTechTouchStart_(o),this.boundHandleTechTouchMove_=o=>this.handleTechTouchMove_(o),this.boundHandleTechTouchEnd_=o=>this.handleTechTouchEnd_(o),this.boundHandleTechTap_=o=>this.handleTechTap_(o),this.boundUpdatePlayerHeightOnAudioOnlyMode_=o=>this.updatePlayerHeightOnAudioOnlyMode_(o),this.isFullscreen_=!1,this.log=Bw(this.id_),this.fsApi_=qd,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&&As(e),this.language(this.options_.language),t.languages){let o={};
vendor: 11,030 bytes, lines 164-173
164Object.getOwnPropertyNames(t.languages).forEach(function(l){o[l.toLowerCase()]=t.languages[l]}),this.languages_=o}else this.languages_=r.prototype.options_.languages;this.resetCache_(),this.poster_=t.poster||"",this.controls_=!!t.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),t.plugins&&Object.keys(t.plugins).forEach(o=>{if(typeof this[o]!="function")throw new Error(`plugin "${o}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),q0(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(Ti(ke.default,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);let s=Rt(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach(o=>{this[o](t.plugins[o])}),t.debug&&this.debug(!0),this.options_.playerOptions=s,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){let l=new J.default.DOMParser().parseFromString(O6,"image/svg+xml");if(l.querySelector("parsererror"))ot.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{let c=l.documentElement;c.style.display="none",this.el_.appendChild(c),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"),t.spatialNavigation&&t.spatialNavigation.enabled&&(this.spatialNavigation=new Xg(this),this.addClass("vjs-spatial-navigation-enabled")),Du&&this.addClass("vjs-touch-enabled"),Br||this.addClass("vjs-workinghover"),r.players[this.id_]=this;let a=Ug.split(".")[0];this.addClass(`vjs-v${a}`),this.userActive(!0),this.reportUserActivity(),this.one("play",o=>this.listenForUserActivity_(o)),this.on("keydown",o=>this.handleKeyDown(o)),this.on("languagechange",o=>this.handleLanguagechange(o)),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"),$r(ke.default,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),$r(ke.default,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),r.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),A6(this),Jr.names.forEach(e=>{let t=Jr[e],n=this[t.getterName]();n&&n.off&&n.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e=this.tag,t,n=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player"),s=this.tag.tagName.toLowerCase()==="video-js";n?t=this.el_=e.parentNode:s||(t=this.el_=super.createEl("div"));let a=As(e);if(s){for(t=this.el_=e,e=this.tag=ke.default.createElement("video");t.children.length;)e.appendChild(t.firstChild);Cu(t,"video-js")||Na(t,"video-js"),t.appendChild(e),n=this.playerElIngest_=t,Object.keys(t).forEach(u=>{try{e[u]=t[u]}catch{}})}e.setAttribute("tabindex","-1"),a.tabindex="-1",wn&&Wh&&(e.setAttribute("role","application"),a.role="application"),e.removeAttribute("width"),e.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach(function(u){s&&u==="class"||t.setAttribute(u,a[u]),s&&e.setAttribute(u,a[u])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=t.player=this,this.addClass("vjs-paused");let o=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter(u=>zw[u]).map(u=>"vjs-device-"+u.substring(3).toLowerCase().replace(/\_/g,"-"));if(this.addClass(...o),J.default.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=aC("vjs-styles-dimensions");let u=Rs(".vjs-styles-defaults"),c=Rs("head");c.insertBefore(this.styleEl_,u?u.nextSibling:c.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);let l=e.getElementsByTagName("a");for(let u=0;u<l.length;u++){let c=l.item(u);Na(c,"vjs-hidden"),c.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!n&&e.parentNode.insertBefore(t,e),Hg(e,t),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t,t}crossOrigin(e){if(typeof e>"u")return this.techGet_("crossOrigin");if(e!==null&&e!=="anonymous"&&e!=="use-credentials"){ot.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,t){let n=e+"_";if(t===void 0)return this[n]||0;if(t===""||t==="auto"){this[n]=void 0,this.updateStyleEl_();return}let s=parseFloat(t);if(isNaN(s)){ot.error(`Improper value "${t}" supplied for for ${e}`);return}this[n]=s,this.updateStyleEl_()}fluid(e){if(e===void 0)return!!this.fluid_;this.fluid_=!!e,Yn(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),o6(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(J.default.VIDEOJS_NO_DYNAMIC_STYLE===!0){let l=typeof this.width_=="number"?this.width_:this.options_.width,u=typeof this.height_=="number"?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(l>=0&&(c.width=l),u>=0&&(c.height=u));return}let e,t,n,s;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?n=this.aspectRatio_:this.videoWidth()>0?n=this.videoWidth()+":"+this.videoHeight():n="16:9";let a=n.split(":"),o=a[1]/a[0];this.width_!==void 0?e=this.width_:this.height_!==void 0?e=this.height_/o:e=this.videoWidth()||300,this.height_!==void 0?t=this.height_:t=e*o,/^[^a-zA-Z]/.test(this.id())?s="dimensions-"+this.id():s=this.id()+"-dimensions",this.addClass(s),oC(this.styleEl_,`
165      .${s} {
166        width: ${e}px;
167        height: ${t}px;
168      }
169
170      .${s}.vjs-fluid:not(.vjs-audio-only-mode) {
171        padding-top: ${o*100}%;
172      }
173    `)}loadTech_(e,t){this.tech_&&this.unloadTech_();let n=Xt(e),s=e.charAt(0).toLowerCase()+e.slice(1);n!=="Html5"&&this.tag&&(Ot.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;let a=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(a=!1);let o={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${s}_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};Jr.names.forEach(u=>{let c=Jr[u];o[c.getterName]=this[c.privateName]}),Object.assign(o,this.options_[n]),Object.assign(o,this.options_[s]),Object.assign(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);let l=Ot.getTech(e);if(!l)throw new Error(`No Tech named '${n}' exists! '${n}' should be registered using videojs.registerTech()'`);this.tech_=new l(o),this.tech_.ready(Mt(this,this.handleTechReady_),!0),Qg.jsonToTextTracks(this.textTracksJson_||[],this.tech_),TC.forEach(u=>{this.on(this.tech_,u,c=>this[`handleTech${Xt(u)}_`](c))}),Object.keys(Rg).forEach(u=>{this.on(this.tech_,u,c=>{if(this.tech_.playbackRate()===0&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${Rg[u]}_`].bind(this),event:c});return}this[`handleTech${Rg[u]}_`](c)})}),this.on(this.tech_,"loadstart",u=>this.handleTechLoadStart_(u)),this.on(this.tech_,"sourceset",u=>this.handleTechSourceset_(u)),this.on(this.tech_,"waiting",u=>this.handleTechWaiting_(u)),this.on(this.tech_,"ended",u=>this.handleTechEnded_(u)),this.on(this.tech_,"seeking",u=>this.handleTechSeeking_(u)),this.on(this.tech_,"play",u=>this.handleTechPlay_(u)),this.on(this.tech_,"pause",u=>this.handleTechPause_(u)),this.on(this.tech_,"durationchange",u=>this.handleTechDurationChange_(u)),this.on(this.tech_,"fullscreenchange",(u,c)=>this.handleTechFullscreenChange_(u,c)),this.on(this.tech_,"fullscreenerror",(u,c)=>this.handleTechFullscreenError_(u,c)),this.on(this.tech_,"enterpictureinpicture",u=>this.handleTechEnterPictureInPicture_(u)),this.on(this.tech_,"leavepictureinpicture",u=>this.handleTechLeavePictureInPicture_(u)),this.on(this.tech_,"error",u=>this.handleTechError_(u)),this.on(this.tech_,"posterchange",u=>this.handleTechPosterChange_(u)),this.on(this.tech_,"textdata",u=>this.handleTechTextData_(u)),this.on(this.tech_,"ratechange",u=>this.handleTechRateChange_(u)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(n!=="Html5"||!this.tag)&&Hg(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){Jr.names.forEach(e=>{let t=Jr[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=Qg.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&&ot.warn(`Using the tech directly can be dangerous. I hope you know 
173what you're doing.
174See https://github.com/videojs/video.js/issues/2617 for more info.
175`),this.tech_}version(){return{"video.js":Ug}}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;let t=()=>{let s=this.muted();this.muted(!0);let a=()=>{this.muted(s)};this.playTerminatedQueue_.push(a);let o=this.play();if(ku(o))return o.catch(l=>{throw a(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${l||""}`)})},n;if(e==="any"&&!this.muted()?(n=this.play(),ku(n)&&(n=n.catch(t))):e==="muted"&&!this.muted()?n=t():n=this.play(),!!ku(n))return n.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})})}updateSourceCaches_(e=""){let t=e,n="";typeof t!="string"&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=I6(this,t)),this.cache_.source=Rt({},e,{src:t,type:n});let s=this.cache_.sources.filter(u=>u.src&&u.src===t),a=[],o=this.$$("source"),l=[];for(let u=0;u<o.length;u++){let c=As(o[u]);a.push(c),c.src&&c.src===t&&l.push(c.src)}l.length&&!s.length?this.cache_.sources=a:s.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=a=>this.updateSourceCaches_(a),n=this.currentSource().src,s=e.src;n&&!/^blob:/.test(n)&&/^blob:/.test(s)&&(!this.lastSource_||this.lastSource_.tech!==s&&this.lastSource_.player!==n)&&(t=()=>{}),t(s),e.src||this.tech_.any(["sourceset","loadstart"],a=>{if(a.type==="sourceset")return;let o=this.techGet_("currentSrc");this.lastSource_.tech=o,this.updateSourceCaches_(o)})}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");let e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}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")}
vendor: 26,039 bytes, line 175
175handleTechSeeked_(){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()?bn(this.play()):this.pause())}handleTechDoubleClick_(e){if(!this.controls_)return;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()&&!ke.default.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){let t=e.target.player;if(t&&t!==this)return;let n=this.el(),s=ke.default[this.fsApi_.fullscreenElement]===n;!s&&n.matches&&(s=n.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(s)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}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_(){let 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,t){this.ready(function(){if(e in E6)return w6(this.middleware_,this.tech_,e,t);if(e in ew)return Zx(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw ot(n),n}},!0)}techGet_(e){if(!(!this.tech_||!this.tech_.isReady_)){if(e in C6)return x6(this.middleware_,this.tech_,e);if(e in ew)return Zx(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){throw this.tech_[e]===void 0?(ot(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t):t.name==="TypeError"?(ot(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t):(ot(t),t)}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=bn){this.playCallbacks_.push(e);let t=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),n=!!(Qh||Br);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t){this.waitToPlay_=o=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!t&&n&&this.load();return}let s=this.techGet_("play");n&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),s===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(s)}runPlayTerminatedQueue_(){let e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(t){t()})}runPlayCallbacks_(e){let t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(n){n(e)})}pause(){this.techCall_("pause")}paused(){return this.techGet_("paused")!==!1}played(){return this.techGet_("played")||en(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=en(0,0)),e}seekable(){let e=this.techGet_("seekable");return(!e||!e.length)&&(e=en(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 gC(this.buffered(),this.duration())}bufferedEnd(){let e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n}volume(e){let t;if(e!==void 0){t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),t>0&&this.lastVolume_(t);return}return t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t}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){let t=this.isFullscreen_;this.isFullscreen_=!!e,this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();let t=this;return new Promise((n,s)=>{function a(){t.off("fullscreenerror",l),t.off("fullscreenchange",o)}function o(){a(),n()}function l(c,h){a(),s(h)}t.one("fullscreenchange",o),t.one("fullscreenerror",l);let u=t.requestFullscreenHelper_(e);u&&(u.then(a,a),u.then(n,s))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},e!==void 0&&(t=e)),this.fsApi_.requestFullscreen){let n=this.el_[this.fsApi_.requestFullscreen](t);return n&&n.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),n}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){let e=this;return new Promise((t,n)=>{function s(){e.off("fullscreenerror",o),e.off("fullscreenchange",a)}function a(){s(),t()}function o(u,c){s(),n(c)}e.one("fullscreenchange",a),e.one("fullscreenerror",o);let l=e.exitFullscreenHelper_();l&&(l.then(s,s),l.then(t,n))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){let e=ke.default[this.fsApi_.exitFullscreen]();return e&&bn(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=ke.default.documentElement.style.overflow,Ti(ke.default,"keydown",this.boundFullWindowOnEscKey_),ke.default.documentElement.style.overflow="hidden",Na(ke.default.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,$r(ke.default,"keydown",this.boundFullWindowOnEscKey_),ke.default.documentElement.style.overflow=this.docOrigOverflow,Kh(ke.default.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&&J.default.documentPictureInPicture){let e=ke.default.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(Xe("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),J.default.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(iC(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:t}),t.addEventListener("pagehide",n=>{let s=n.target.querySelector(".video-js");e.parentNode.replaceChild(s,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),t))}return"pictureInPictureEnabled"in ke.default&&this.disablePictureInPicture()===!1?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){if(J.default.documentPictureInPicture&&J.default.documentPictureInPicture.window)return J.default.documentPictureInPicture.window.close(),Promise.resolve();if("pictureInPictureEnabled"in ke.default)return ke.default.exitPictureInPicture()}handleKeyDown(e){let{userActions:t}=this.options_;!t||!t.hotkeys||(s=>{let a=s.tagName.toLowerCase();if(s.isContentEditable)return!0;let o=["button","checkbox","hidden","radio","reset","submit"];return a==="input"?o.indexOf(s.type)===-1:["textarea"].indexOf(a)!==-1})(this.el_.ownerDocument.activeElement)||(typeof t.hotkeys=="function"?t.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){let t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:n=o=>e.key.toLowerCase()==="f",muteKey:s=o=>e.key.toLowerCase()==="m",playPauseKey:a=o=>e.key.toLowerCase()==="k"||e.key.toLowerCase()===" "}=t;if(n.call(this,e)){e.preventDefault(),e.stopPropagation();let o=_e.getComponent("FullscreenToggle");ke.default[this.fsApi_.fullscreenEnabled]!==!1&&o.prototype.handleClick.call(this,e)}else s.call(this,e)?(e.preventDefault(),e.stopPropagation(),_e.getComponent("MuteToggle").prototype.handleClick.call(this,e)):a.call(this,e)&&(e.preventDefault(),e.stopPropagation(),_e.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let t;for(let n=0,s=this.options_.techOrder;n<s.length;n++){let a=s[n],o=Ot.getTech(a);if(o||(o=_e.getComponent(a)),!o){ot.error(`The "${a}" tech is undefined. Skipped browser support check for that tech.`);continue}if(o.isSupported()&&(t=o.canPlayType(e),t))return t}return""}selectSource(e){let t=this.options_.techOrder.map(l=>[l,Ot.getTech(l)]).filter(([l,u])=>u?u.isSupported():(ot.error(`The "${l}" tech is undefined. Skipped browser support check for that tech.`),!1)),n=function(l,u,c){let h;return l.some(f=>u.some(v=>{if(h=c(f,v),h)return!0})),h},s,a=l=>(u,c)=>l(c,u),o=([l,u],c)=>{if(u.canPlaySource(c,this.options_[l.toLowerCase()]))return{source:c,tech:l}};return this.options_.sourceOrder?s=n(e,t,a(o)):s=n(t,e,o),s||!1}handleSrc_(e,t){if(typeof e>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();let n=yC(e);if(!n.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,t||(this.cache_.sources=n),this.updateSourceCaches_(n[0]),T6(this,n[0],(s,a)=>{if(this.middleware_=a,t||(this.cache_.sources=n),this.updateSourceCaches_(s),this.src_(s)){if(n.length>1)return this.handleSrc_(n.slice(1));this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),this.triggerReady();return}S6(a,this.tech_)}),n.length>1){let s=()=>{this.error(null),this.handleSrc_(n.slice(1),!0)},a=()=>{this.off("error",s)};this.one("error",s),this.one("playing",a),this.resetRetryOnError_=()=>{this.off("error",s),this.off("playing",a)}}}src(e){return this.handleSrc_(e,!1)}src_(e){let t=this.selectSource([e]);return t?hC(t.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_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1):!0}addSourceElement(e,t){return this.tech_?this.tech_.addSourceElement(e,t):!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{let e=this.play();bn(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}),Yn(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);let{currentTimeDisplay:e,durationDisplay:t,progressControl:n,remainingTimeDisplay:s}=this.controlBar||{},{seekBar:a}=n||{};e&&e.updateContent(),t&&t.updateContent(),s&&s.updateContent(),a&&(a.update(),a.loadProgressBar&&a.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){let e=this.currentSource(),t=[];return Object.keys(e).length!==0&&t.push(e),this.cache_.sources||t}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 t;typeof e=="string"&&/(any|play|muted)/.test(e)||e===!0&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_(typeof e=="string"?e:"play"),t=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,t=typeof t>"u"?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}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){let 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(Ls("beforeerror").forEach(t=>{let n=t(this,e);if(!(xn(n)&&!Array.isArray(n)||typeof n=="string"||typeof n=="number"||n===null)){this.log.error("please return a value that MediaError expects in beforeerror hooks");return}e=n}),this.options_.suppressNotSupportedError&&e&&e.code===4){let t=function(){this.error(e)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),this.one("loadstart",function(){this.off(["click","touchstart"],t)});return}if(e===null){this.error_=null,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new Wt(e),this.addClass("vjs-error"),ot.error(`(CODE:${this.error_.code} ${Wt.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),Ls("error").forEach(t=>t(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(t){t.stopPropagation(),t.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,n,s=Mt(this,this.reportUserActivity),a=function(f){(f.screenX!==t||f.screenY!==n)&&(t=f.screenX,n=f.screenY,s())},o=function(){s(),this.clearInterval(e),e=this.setInterval(s,250)},l=function(f){s(),this.clearInterval(e)};this.on("mousedown",o),this.on("mousemove",a),this.on("mouseup",l),this.on("mouseleave",l);let u=this.getChild("controlBar");u&&!Br&&!tn&&(u.on("mouseenter",function(f){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),u.on("mouseleave",function(f){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",s),this.on("keyup",s);let c,h=function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(c);let f=this.options_.inactivityTimeout;f<=0||(c=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},f))};this.setInterval(h,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_(){let 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");let e=this.children(),t=this.getChild("ControlBar"),n=t&&t.currentHeight();e.forEach(s=>{s!==t&&s.el_&&!s.hasClass("vjs-hidden")&&(s.hide(),this.audioOnlyCache_.hiddenChildren.push(s))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=n,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(n),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){let t=[];return this.isInPictureInPicture()&&t.push(this.exitPictureInPicture()),this.isFullscreen()&&t.push(this.exitFullscreen()),this.audioPosterMode()&&t.push(this.audioPosterMode(!1)),Promise.all(t).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,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}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(),Yn(this)&&this.trigger("languagechange"))}languages(){return Rt(r.prototype.options_.languages,this.languages_)}toJSON(){let e=Rt(this.options_),t=e.tracks;e.tracks=[];for(let n=0;n<t.length;n++){let s=t[n];s=Rt(s),s.player=void 0,e.tracks[n]=s}return e}createModal(e,t){t=t||{},t.content=e||"";let n=new Ns(this,t);return this.addChild(n),n.on("dispose",()=>{this.removeChild(n)}),n.open(),n}updateCurrentBreakpoint_(){if(!this.responsive())return;let e=this.currentBreakpoint(),t=this.currentWidth();for(let n=0;n<p0.length;n++){let s=p0[n],a=this.breakpoints_[s];if(t<=a){if(e===s)return;e&&this.removeClass(Fd[e]),this.addClass(Fd[s]),this.breakpoint_=s;break}}}removeCurrentBreakpoint_(){let e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return e===void 0?Object.assign(this.breakpoints_):(this.removeCurrentBreakpoint_(),this.breakpoints_=Object.assign({},W6,e),this.updateCurrentBreakpoint_(),Object.assign(this.breakpoints_))}responsive(e){if(e===void 0)return this.responsive_;e=!!e;let t=this.responsive_;if(e!==t)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 Fd[this.breakpoint_]||""}loadMedia(e,t){if(!e||typeof e!="object")return;let n=this.crossOrigin();this.reset(),this.cache_.media=Rt(e);let{artist:s,artwork:a,description:o,poster:l,src:u,textTracks:c,title:h}=this.cache_.media;!a&&l&&(this.cache_.media.artwork=[{src:l,type:th(l)}]),n&&this.crossOrigin(n),u&&this.src(u),l&&this.poster(l),Array.isArray(c)&&c.forEach(f=>this.addRemoteTextTrack(f,!1)),this.titleBar&&this.titleBar.update({title:h,description:o||s||""}),this.ready(t)}getMedia(){if(!this.cache_.media){let e=this.poster(),t=this.currentSources(),n=Array.prototype.map.call(this.remoteTextTracks(),a=>({kind:a.kind,label:a.label,language:a.language,src:a.src})),s={src:t,textTracks:n};return e&&(s.poster=e,s.artwork=[{src:s.poster,type:th(s.poster)}]),s}return Rt(this.cache_.media)}static getTagSettings(e){let t={sources:[],tracks:[]},n=As(e),s=n["data-setup"];if(Cu(e,"vjs-fill")&&(n.fill=!0),Cu(e,"vjs-fluid")&&(n.fluid=!0),s!==null)try{Object.assign(n,JSON.parse(s||"{}"))}catch(a){ot.error("data-setup",a)}if(Object.assign(t,n),e.hasChildNodes()){let a=e.childNodes;for(let o=0,l=a.length;o<l;o++){let u=a[o],c=u.nodeName.toLowerCase();c==="source"?t.sources.push(As(u)):c==="track"&&t.tracks.push(As(u))}}return t}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(t=>typeof t=="number")&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}};Bt.prototype.videoTracks=()=>{};Bt.prototype.audioTracks=()=>{};Bt.prototype.textTracks=()=>{};Bt.prototype.remoteTextTracks=()=>{};Bt.prototype.remoteTextTrackEls=()=>{};
175Jr.names.forEach(function(r){let e=Jr[r];Bt.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}});Bt.prototype.crossorigin=Bt.prototype.crossOrigin;Bt.players={};Tu=J.default.navigator;Bt.prototype.options_={techOrder:Ot.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Tu&&(Tu.languages&&Tu.languages[0]||Tu.userLanguage||Tu.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,disableSeekWhileScrubbingOnSTV:!1};TC.forEach(function(r){Bt.prototype[`handleTech${Xt(r)}_`]=function(){return this.trigger(r)}});_e.registerComponent("Player",Bt);Dh="plugin",Go="activePlugins_",Vo={},Ih=r=>Vo.hasOwnProperty(r),Ud=r=>Ih(r)?Vo[r]:void 0,SC=(r,e)=>{r[Go]=r[Go]||{},r[Go][e]=!0},Oh=(r,e,t)=>{let n=(t?"before":"")+"pluginsetup";r.trigger(n,e),r.trigger(n+":"+e.name,e)},G6=function(r,e){let t=function(){Oh(this,{name:r,plugin:e,instance:null},!0);let n=e.apply(this,arguments);return SC(this,r),Oh(this,{name:r,plugin:e,instance:n}),n};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t},gw=(r,e)=>(e.prototype.name=r,function(...t){Oh(this,{name:r,plugin:e,instance:null},!0);let n=new e(this,...t);return this[r]=()=>n,Oh(this,n.getEventHash()),n}),Fi=class r{constructor(e){if(this.constructor===r)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),q0(this),delete this.trigger,dC(this,this.constructor.defaultState),SC(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,t={}){return ul(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){let{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Go][e]=!1,this.player=this.state=null,t[e]=gw(e,Vo[e])}static isBasic(e){let t=typeof e=="string"?Ud(e):e;return typeof t=="function"&&!r.prototype.isPrototypeOf(t.prototype)}static registerPlugin(e,t){if(typeof e!="string")throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(Ih(e))ot.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(Bt.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if(typeof t!="function")throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof t}.`);return Vo[e]=t,e!==Dh&&(r.isBasic(t)?Bt.prototype[e]=G6(e,t):Bt.prototype[e]=gw(e,t)),t}static deregisterPlugin(e){if(e===Dh)throw new Error("Cannot de-register base plugin.");Ih(e)&&(delete Vo[e],delete Bt.prototype[e])}static getPlugins(e=Object.keys(Vo)){let t;return e.forEach(n=>{let s=Ud(n);s&&(t=t||{},t[n]=s)}),t}static getPluginVersion(e){let t=Ud(e);return t&&t.VERSION||""}};Fi.getPlugin=Ud;Fi.BASE_PLUGIN_NAME=Dh;Fi.registerPlugin(Dh,Fi);Bt.prototype.usingPlugin=function(r){return!!this[Go]&&this[Go][r]===!0};Bt.prototype.hasPlugin=function(r){return!!Ih(r)};K6={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"},xC=r=>r.indexOf("#")===0?r.slice(1):r;le.hooks_=Kn;le.hooks=Ls;le.hook=GM;le.hookOnce=QM;le.removeHook=Mw;if(J.default.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&ol()){let r=Rs(".vjs-styles-defaults");if(!r){r=aC("vjs-styles-defaults");let e=Rs("head");
175e&&e.insertBefore(r,e.firstChild),oC(r,`
176      .video-js {
177        width: 300px;
178        height: 150px;
179      }
180
181      .vjs-fluid:not(.vjs-audio-only-mode) {
182        padding-top: 56.25%
183      }
184    `)}}jg(1,le);le.VERSION=Ug;le.options=Bt.prototype.options_;le.getPlayers=()=>Bt.players;le.getPlayer=r=>{let e=Bt.players,t;if(typeof r=="string"){let n=xC(r),s=e[n];if(s)return s;t=Rs("#"+n)}else t=r;if(ll(t)){let{player:n,playerId:s}=t;if(n||e[s])return n||e[s]}};le.getAllPlayers=()=>Object.keys(Bt.players).map(r=>Bt.players[r]).filter(Boolean);le.players=Bt.players;le.getComponent=_e.getComponent;le.registerComponent=(r,e)=>(Ot.isTech(e)&&ot.warn(`The ${r} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),_e.registerComponent.call(_e,r,e));le.getTech=Ot.getTech;le.registerTech=Ot.registerTech;le.use=_6;Object.defineProperty(le,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(le.middleware,"TERMINATOR",{value:eh,writeable:!1,enumerable:!0});le.browser=zw;le.obj=YM;le.mergeOptions=rn(9,"videojs.mergeOptions","videojs.obj.merge",Rt);le.defineLazyProperty=rn(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",jh);le.bind=rn(9,"videojs.bind","native Function.prototype.bind",Mt);le.registerPlugin=Fi.registerPlugin;le.deregisterPlugin=Fi.deregisterPlugin;le.plugin=(r,e)=>(ot.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Fi.registerPlugin(r,e));le.getPlugins=Fi.getPlugins;le.getPlugin=Fi.getPlugin;le.getPluginVersion=Fi.getPluginVersion;le.addLanguage=function(r,e){return r=(""+r).toLowerCase(),le.options.languages=Rt(le.options.languages,{[r]:e}),le.options.languages[r]};le.log=ot;le.createLogger=Bw;le.time=h6;le.createTimeRange=rn(9,"videojs.createTimeRange","videojs.time.createTimeRanges",en);le.createTimeRanges=rn(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",en);le.formatTime=rn(9,"videojs.formatTime","videojs.time.formatTime",$a);le.setFormatTime=rn(9,"videojs.setFormatTime","videojs.time.setFormatTime",pC);le.resetFormatTime=rn(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",mC);le.parseUrl=rn(9,"videojs.parseUrl","videojs.url.parseUrl",V0);le.isCrossOrigin=rn(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",rf);le.EventTarget=ei;le.any=U0;le.on=Ti;le.one=ef;le.off=$r;le.trigger=ul;le.xhr=N0.default;le.TrackList=Zn;le.TextTrack=Fa;le.TextTrackList=Lu;le.AudioTrack=Yd;le.AudioTrackList=Qd;le.VideoTrack=Jd;le.VideoTrackList=Kd;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(r=>{le[r]=function(){return ot.warn(`videojs.${r}() is deprecated; use videojs.dom.${r}() instead`),nC[r].apply(null,arguments)}});le.computedStyle=rn(9,"videojs.computedStyle","videojs.dom.computedStyle",rl);le.dom=nC;le.fn=a6;le.num=R6;le.str=c6;le.url=y6;le.Error=K6;m0=class{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get(){return t.enabled_()},set(n){t.enabled_(n)}}),t}},al=class extends le.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 t=this.getQualityLevelById(e.id);if(t)return t;let n=this.levels_.length;return t=new m0(e),""+n in this||Object.defineProperty(this,n,{get(){return this.levels_[n]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let n=0,s=this.length;n<s;n++)if(this[n]===e){t=this.levels_.splice(n,1)[0],this.selectedIndex_===n?this.selectedIndex_=-1:this.selectedIndex_>n&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,n=this.length;t<n;t++){let s=this[t];if(s.id===e)return s}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}};al.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(let r in al.prototype.allowedEvents_)al.prototype["on"+r]=null;wC="4.1.0",X6=function(r,e){let t=r.qualityLevels,n=new al,s=function(){n.dispose(),r.qualityLevels=t,r.off("dispose",s)};return r.on("dispose",s),r.qualityLevels=()=>n,r.qualityLevels.VERSION=wC,n},CC=function(r){return X6(this,le.obj.merge({},r))};le.registerPlugin("qualityLevels",CC);CC.VERSION=wC;ui=Co,Lh=(r,e)=>e&&e.responseURL&&r!==e.responseURL?e.responseURL:r,Ui=r=>le.log.debug?le.log.debug.bind(le,"VHS:",`${r} >`):function(){};_n=1/30,Tn=_n*3,EC=function(r,e){let t=[],n;if(r&&r.length)for(n=0;n<r.length;
vendor: 6,225 bytes, line 184
184n++)e(r.start(n),r.end(n))&&t.push([r.start(n),r.end(n)]);return Sr(t)},jo=function(r,e){return EC(r,function(t,n){return t-Tn<=e&&n+Tn>=e})},Nd=function(r,e){return EC(r,function(t){return t-_n>=e})},J6=function(r){if(r.length<2)return Sr();let e=[];for(let t=1;t<r.length;t++){let n=r.end(t-1),s=r.start(t);e.push([n,s])}return Sr(e)},Z6=function(r,e){let t=null,n=null,s=0,a=[],o=[];if(!r||!r.length||!e||!e.length)return Sr();let l=r.length;for(;l--;)a.push({time:r.start(l),type:"start"}),a.push({time:r.end(l),type:"end"});for(l=e.length;l--;)a.push({time:e.start(l),type:"start"}),a.push({time:e.end(l),type:"end"});for(a.sort(function(u,c){return u.time-c.time}),l=0;l<a.length;l++)a[l].type==="start"?(s++,s===2&&(t=a[l].time)):a[l].type==="end"&&(s--,s===1&&(n=a[l].time)),t!==null&&n!==null&&(o.push([t,n]),t=null,n=null);return Sr(o)},kC=r=>{let e=[];if(!r||!r.length)return"";for(let t=0;t<r.length;t++)e.push(r.start(t)+" => "+r.end(t));return e.join(", ")},eB=function(r,e,t=1){return((r.length?r.end(r.length-1):0)-e)/t},Ra=r=>{let e=[];for(let t=0;t<r.length;t++)e.push({start:r.start(t),end:r.end(t)});return e},tB=function(r,e){if(r===e)return!1;if(!r&&e||!e&&r||r.length!==e.length)return!0;for(let t=0;t<r.length;t++)if(r.start(t)!==e.start(t)||r.end(t)!==e.end(t))return!0;return!1},Ng=function(r){if(!(!r||!r.length||!r.end))return r.end(r.length-1)},W0=function(r,e){let t=0;if(!r||!r.length)return t;for(let n=0;n<r.length;n++){let s=r.start(n),a=r.end(n);if(!(e>a)){if(e>s&&e<=a){t+=a-e;continue}t+=a-s}}return t},G0=(r,e)=>{if(!e.preload)return e.duration;let t=0;return(e.parts||[]).forEach(function(n){t+=n.duration}),(e.preloadHints||[]).forEach(function(n){n.type==="PART"&&(t+=r.partTargetDuration)}),t},g0=r=>(r.segments||[]).reduce((e,t,n)=>(t.parts?t.parts.forEach(function(s,a){e.push({duration:s.duration,segmentIndex:n,partIndex:a,part:s,segment:t})}):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e),[]),AC=r=>{let e=r.segments&&r.segments.length&&r.segments[r.segments.length-1];return e&&e.parts||[]},PC=({preloadSegment:r})=>{if(!r)return;let{parts:e,preloadHints:t}=r,n=(t||[]).reduce((s,a)=>s+(a.type==="PART"?1:0),0);return n+=e&&e.length?e.length:0,n},DC=(r,e)=>{if(e.endList)return 0;if(r&&r.suggestedPresentationDelay)return r.suggestedPresentationDelay;let t=AC(e).length>0;return t&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:t&&e.partTargetDuration?e.partTargetDuration*3:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?e.targetDuration*3:0},rB=function(r,e){let t=0,n=e-r.mediaSequence,s=r.segments[n];if(s){if(typeof s.start<"u")return{result:s.start,precise:!0};if(typeof s.end<"u")return{result:s.end-s.duration,precise:!0}}for(;n--;){if(s=r.segments[n],typeof s.end<"u")return{result:t+s.end,precise:!0};if(t+=G0(r,s),typeof s.start<"u")return{result:t+s.start,precise:!0}}return{result:t,precise:!1}},iB=function(r,e){let t=0,n,s=e-r.mediaSequence;for(;s<r.segments.length;s++){if(n=r.segments[s],typeof n.start<"u")return{result:n.start-t,precise:!0};if(t+=G0(r,n),typeof n.end<"u")return{result:n.end-t,precise:!0}}return{result:-1,precise:!1}},IC=function(r,e,t){if(typeof e>"u"&&(e=r.mediaSequence+r.segments.length),e<r.mediaSequence)return 0;let n=rB(r,e);if(n.precise)return n.result;let s=iB(r,e);return s.precise?s.result:n.result+t},OC=function(r,e,t){if(!r)return 0;if(typeof t!="number"&&(t=0),typeof e>"u"){if(r.totalDuration)return r.totalDuration;if(!r.endList)return J.default.Infinity}return IC(r,e,t)},Au=function({defaultDuration:r,durationList:e,startIndex:t,endIndex:n}){let s=0;if(t>n&&([t,n]=[n,t]),t<0){for(let a=t;a<Math.min(0,n);a++)s+=r;t=0}for(let a=t;a<n;a++)s+=e[a].duration;return s},LC=function(r,e,t,n){if(!r||!r.segments)return null;if(r.endList)return OC(r);if(e===null)return null;e=e||0;let s=IC(r,r.mediaSequence+r.segments.length,e);return t&&(n=typeof n=="number"?n:DC(null,r),s-=n),Math.max(0,s)},nB=function(r,e,t){let s=e||0,a=LC(r,e,!0,t);return a===null?Sr():(a<s&&(a=s),Sr(s,a))},sB=function({playlist:r,currentTime:e,startingSegmentIndex:t,startingPartIndex:n,startTime:s,exactManifestTimings:a}){let o=e-s,l=g0(r),u=0;for(let c=0;c<l.length;c++){let h=l[c];if(t===h.segmentIndex&&!(typeof n=="number"&&typeof h.partIndex=="number"&&n!==h.partIndex)){u=c;break}}if(o<0){if(u>0)for(let c=u-1;c>=0;c--){let h=l[c];if(o+=h.duration,a){if(o<0)continue}else if(o+_n<=0)continue;return{partIndex:h.partIndex,segmentIndex:h.segmentIndex,startTime:s-Au({defaultDuration:r.targetDuration,durationList:l,startIndex:u,endIndex:c})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:e}}if(u<0){for(let c=u;c<0;c++)if(o-=r.targetDuration,o<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:e};u=0}for(let c=u;c<l.length;c++){let h=l[c];o-=h.duration;let f=h.duration>_n,v=o===0,p=f&&o+_n>=0;if(!((v||p)&&c!==l.length-1)){if(a){if(o>0)continue}else if(o-_n>=0)continue;return{partIndex:h.partIndex,segmentIndex:h.segmentIndex,startTime:s+Au({defaultDuration:r.targetDuration,durationList:l,startIndex:u,endIndex:c})}}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:e}},RC=function(r){return r.excludeUntil&&r.excludeUntil>Date.now()},Q0=function(r){return r.excludeUntil&&r.excludeUntil===1/0},nf=function(r){let e=RC(r);return!r.disabled&&!e},aB=function(r){return r.disabled},oB=function(r){for(let e=0;e<r.segments.length;e++)if(r.segments[e].key)return!0;return!1},NC=function(r,e){return e.attributes&&e.attributes[r]},lB=function(r,e,t,n=0){return NC("BANDWIDTH",t)?(r*t.attributes.BANDWIDTH-n*8)/e:NaN},v0=(r,e)=>{if(r.playlists.length===1)return!0;let t=e.attributes.BANDWIDTH||Number.MAX_VALUE;return r.playlists.filter(n=>nf(n)?(n.attributes.BANDWIDTH||0)<t:!1).length===0},K0=(r,e)=>!r&&!e||!r&&e||r&&!e?!1:!!(r===e||r.id&&e.id&&r.id===e.id||r.resolvedUri&&e.resolvedUri&&r.resolvedUri===e.resolvedUri||r.uri&&e.uri&&r.uri===e.uri),vw=function(r,e){let t=r&&r.mediaGroups&&r.mediaGroups.AUDIO||{},n=!1;for(let s in t){for(let a in t[s])if(n=e(t[s][a]),n)break;if(n)break}return!!n},ec=r=>
vendor: 7,465 bytes, line 184
184{if(!r||!r.playlists||!r.playlists.length)return vw(r,t=>t.playlists&&t.playlists.length||t.uri);for(let e=0;e<r.playlists.length;e++){let t=r.playlists[e],n=t.attributes&&t.attributes.CODECS;if(!(n&&n.split(",").every(a=>Um(a))||vw(r,a=>K0(t,a))))return!1}return!0},ci={liveEdgeDelay:DC,duration:OC,seekable:nB,getMediaInfoForTime:sB,isEnabled:nf,isDisabled:aB,isExcluded:RC,isIncompatible:Q0,playlistEnd:LC,isAes:oB,hasAttribute:NC,estimateSegmentRequestTime:lB,isLowestEnabledRendition:v0,isAudioOnly:ec,playlistMatch:K0,segmentDurationWithParts:G0},{log:MC}=le,Qo=(r,e)=>`${r}-${e}`,BC=(r,e,t)=>`placeholder-uri-${r}-${e}-${t}`,uB=({onwarn:r,oninfo:e,manifestString:t,customTagParsers:n=[],customTagMappers:s=[],llhls:a})=>{let o=new fd;r&&o.on("warn",r),e&&o.on("info",e),n.forEach(c=>o.addParser(c)),s.forEach(c=>o.addTagMapper(c)),o.push(t),o.end();let l=o.manifest;if(a||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(c){l.hasOwnProperty(c)&&delete l[c]}),l.segments&&l.segments.forEach(function(c){["parts","preloadHints"].forEach(function(h){c.hasOwnProperty(h)&&delete c[h]})})),!l.targetDuration){let c=10;l.segments&&l.segments.length&&(c=l.segments.reduce((h,f)=>Math.max(h,f.duration),0)),r&&r({message:`manifest has no targetDuration defaulting to ${c}`}),l.targetDuration=c}let u=AC(l);if(u.length&&!l.partTargetDuration){let c=u.reduce((h,f)=>Math.max(h,f.duration),0);r&&(r({message:`manifest has no partTargetDuration defaulting to ${c}`}),MC.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.")),l.partTargetDuration=c}return l},cl=(r,e)=>{r.mediaGroups&&["AUDIO","SUBTITLES"].forEach(t=>{if(r.mediaGroups[t])for(let n in r.mediaGroups[t])for(let s in r.mediaGroups[t][n]){let a=r.mediaGroups[t][n][s];e(a,t,n,s)}})},$C=({playlist:r,uri:e,id:t})=>{r.id=t,r.playlistErrors_=0,e&&(r.uri=e),r.attributes=r.attributes||{}},cB=r=>{let e=r.playlists.length;for(;e--;){let t=r.playlists[e];$C({playlist:t,id:Qo(e,t.uri)}),t.resolvedUri=ui(r.uri,t.uri),r.playlists[t.id]=t,r.playlists[t.uri]=t,t.attributes.BANDWIDTH||MC.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},dB=r=>{cl(r,e=>{e.uri&&(e.resolvedUri=ui(r.uri,e.uri))})},hB=(r,e)=>{let t=Qo(0,e),n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:J.default.location.href,resolvedUri:J.default.location.href,playlists:[{uri:e,id:t,resolvedUri:e,attributes:{}}]};return n.playlists[t]=n.playlists[0],n.playlists[e]=n.playlists[0],n},FC=(r,e,t=BC)=>{r.uri=e;for(let s=0;s<r.playlists.length;s++)if(!r.playlists[s].uri){let a=`placeholder-uri-${s}`;r.playlists[s].uri=a}let n=ec(r);cl(r,(s,a,o,l)=>{if(!s.playlists||!s.playlists.length){if(n&&a==="AUDIO"&&!s.uri)for(let u=0;u<r.playlists.length;u++){let c=r.playlists[u];if(c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===o)return}s.playlists=[jt({},s)]}s.playlists.forEach(function(u,c){let h=t(a,o,l,u),f=Qo(c,h);u.uri?u.resolvedUri=u.resolvedUri||ui(r.uri,u.uri):(u.uri=c===0?h:f,u.resolvedUri=u.uri),u.id=u.id||f,u.attributes=u.attributes||{},r.playlists[u.id]=u,r.playlists[u.uri]=u})}),cB(r),dB(r)},Rh=class{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(this.offset_!==null||!e.length)return;let[t]=e;t.programDateTime!==void 0&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;let[t]=e,n=t.startDate.getTime();this.trimProcessedDateRanges_(n),this.pendingDateRanges_=e.reduce((s,a)=>(s.set(a.id,a),s),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(this.offset_===null)return[];let e={},t=[];this.pendingDateRanges_.forEach((n,s)=>{if(!this.processedDateRanges_.has(s)&&(n.startTime=n.startDate.getTime()/1e3-this.offset_,n.processDateRange=()=>this.processDateRange(n),t.push(n),!!n.class))if(e[n.class]){let a=e[n.class].push(n);n.classListIndex=a-1}else e[n.class]=[n],n.classListIndex=0});for(let n of t){let s=e[n.class]||[];n.endDate?n.endTime=n.endDate.getTime()/1e3-this.offset_:n.endOnNext&&s[n.classListIndex+1]?n.endTime=s[n.classListIndex+1].startTime:n.duration?n.endTime=n.startTime+n.duration:n.plannedDuration?n.endTime=n.startTime+n.plannedDuration:n.endTime=n.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((n,s)=>{n.startDate.getTime()<e&&this.processedDateRanges_.delete(s)})}},UC=22,Ba=({requestType:r,request:e,error:t,parseFailure:n})=>{let s=e.status<200||e.status>299,a=e.status>=400&&e.status<=499,o={uri:e.uri,requestType:r},l=s&&!a||n;if(t&&a)o.error=jt({},t),o.errorType=le.Error.NetworkRequestFailed;else if(e.aborted)o.errorType=le.Error.NetworkRequestAborted;else if(e.timedout)o.errorType=le.Error.NetworkRequestTimeout;else if(l){let u=n?le.Error.NetworkBodyParserFailed:le.Error.NetworkBadStatus;o.errorType=u,o.status=e.status,o.headers=e.headers}return o},fB=Ui("CodecUtils"),qC=function(r){let e=r.attributes||{};if(e.CODECS)return Ji(e.CODECS)},HC=(r,e)=>{let t=e.attributes||{};return r&&r.mediaGroups&&r.mediaGroups.AUDIO&&t.AUDIO&&r.mediaGroups.AUDIO[t.AUDIO]},pB=(r,e)=>{if(!HC(r,e))return!0;let t=e.attributes||{},n=r.mediaGroups.AUDIO[t.AUDIO];for(let s in n)if(!n[s].uri&&!n[s].playlists)return!0;return!1},Xu=function(r){let e={};return r.forEach(({mediaType:t,type:n,details:s})=>{e[t]=e[t]||[],e[t].push(Fm(`${n}${s}`))}),Object.keys(e).forEach(function(t){if(e[t].length>1){fB(`multiple ${t} codecs found as attributes: ${e[t].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),e[t]=null;return}e[t]=e[t][0]}),e},yw=function(r){let e=0;return r.audio&&e++,r.video&&e++,e},Pu=function(r,e){let t=e.attributes||{},n=Xu(qC(e)||[]);if(HC(r,e)&&!n.audio&&!pB(r,e)){let s=Xu(sS(r,t.AUDIO)||[]);s.audio&&(n.audio=s.audio)}return n},{EventTarget:mB}=le,gB=(r,e)=>{if(e.endList||!e.serverControl)return r;let t={};if(e.serverControl.canBlockReload){let{preloadSegment:n}=e,s=e.mediaSequence+e.segments.length;if(n){let a=n.parts||[],o=PC(e)-1;o>-1&&o!==a.length-1&&(t._HLS_part=o),(o>-1||a.length)&&s--}t._HLS_msn=s}if(e.serverControl&&e.serverControl.canSkipUntil&&(t._HLS_skip=e.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(t).length){let n=new J.default.URL(r);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(s){t.hasOwnProperty(s)&&n.searchParams.set(s,t[s])}),r=n.toString()}return r},vB=(r,e)=>{if(!r)return e;let t=Et(r,e);if(r.preloadHints&&!e.preloadHints&&delete t.preloadHints,r.parts&&!e.parts)delete t.parts;else if(r.parts&&e.parts)for(let n=0;n<e.parts.length;n++)r.parts&&r.parts[n]&&(t.parts[n]=Et(r.parts[n],e.parts[n]));return!r.skipped&&e.skipped&&(t.skipped=!1),r.preload&&!e.preload&&(t.preload=!1),t},yB=(r,e,t)=>{let n=r.slice(),s=e.slice();t=t||0;let a=[],o;for(let l=0;l<s.length;l++){let u=n[l+t],c=s[l];u?(o=u.map||o,a.push(vB(u,c))):(o&&!c.map&&(c.map=o),a.push(c))}return a},VC=(r,e)=>{!r.resolvedUri&&r.uri&&(r.resolvedUri=ui(e,r.uri)),r.key&&!r.key.resolvedUri&&(r.key.resolvedUri=ui(e,r.key.uri)),r.map&&!r.map.resolvedUri&&(r.map.resolvedUri=ui(e,r.map.uri)),r.map&&r.map.key&&!r.map.key.resolvedUri&&(r.map.key.resolvedUri=ui(e,r.map.key.uri)),r.parts&&r.parts.length&&r.parts.forEac
vendor: 4,138 bytes, line 184
184h(t=>{t.resolvedUri||(t.resolvedUri=ui(e,t.uri))}),r.preloadHints&&r.preloadHints.length&&r.preloadHints.forEach(t=>{t.resolvedUri||(t.resolvedUri=ui(e,t.uri))})},jC=function(r){let e=r.segments||[],t=r.preloadSegment;if(t&&t.parts&&t.parts.length){if(t.preloadHints){for(let n=0;n<t.preloadHints.length;n++)if(t.preloadHints[n].type==="MAP")return e}t.duration=r.targetDuration,t.preload=!0,e.push(t)}return e},zC=(r,e)=>r===e||r.segments&&e.segments&&r.segments.length===e.segments.length&&r.endList===e.endList&&r.mediaSequence===e.mediaSequence&&r.preloadSegment===e.preloadSegment,y0=(r,e,t=zC)=>{let n=Et(r,{}),s=n.playlists[e.id];if(!s||t(s,e))return null;e.segments=jC(e);let a=Et(s,e);if(a.preloadSegment&&!e.preloadSegment&&delete a.preloadSegment,s.segments){if(e.skip){e.segments=e.segments||[];for(let o=0;o<e.skip.skippedSegments;o++)e.segments.unshift({skipped:!0})}a.segments=yB(s.segments,e.segments,e.mediaSequence-s.mediaSequence)}a.segments.forEach(o=>{VC(o,a.resolvedUri)});for(let o=0;o<n.playlists.length;o++)n.playlists[o].id===e.id&&(n.playlists[o]=a);return n.playlists[e.id]=a,n.playlists[e.uri]=a,cl(r,(o,l,u,c)=>{if(o.playlists)for(let h=0;h<o.playlists.length;h++)e.id===o.playlists[h].id&&(o.playlists[h]=a)}),n},b0=(r,e)=>{let t=r.segments||[],n=t[t.length-1],s=n&&n.parts&&n.parts[n.parts.length-1],a=s&&s.duration||n&&n.duration;return e&&a?a*1e3:(r.partTargetDuration||r.targetDuration||10)*500},bw=(r,e,t)=>{if(!r)return;let n=[];return r.forEach(s=>{if(!s.attributes)return;let{BANDWIDTH:a,RESOLUTION:o,CODECS:l}=s.attributes;n.push({id:s.id,bandwidth:a,resolution:o,codecs:l})}),{type:e,isLive:t,renditions:n}},Is=class extends mB{constructor(e,t,n={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=Ui("PlaylistLoader");let{withCredentials:s=!1}=n;this.src=e,this.vhs_=t,this.withCredentials=s,this.addDateRangesToTextTrack_=n.addDateRangesToTextTrack;let a=t.options_;this.customTagParsers=a&&a.customTagParsers||[],this.customTagMappers=a&&a.customTagMappers||[],this.llhls=a&&a.llhls,this.dateRangesStorage_=new Rh,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){let e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);let t=this.dateRangesStorage_.getDateRangesToProcess();!t.length||!this.addDateRangesToTextTrack_||this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if(this.state!=="HAVE_METADATA")return;let e=this.media(),t=ui(this.main.uri,e.uri);this.llhls&&(t=gB(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials,requestType:"hls-playlist"},(n,s)=>{if(this.request){if(n)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,t,n){let{uri:s,id:a}=t;this.request=null,n&&(this.state=n),this.error={playlist:this.main.playlists[a],status:e.status,message:`HLS playlist request error at URL: ${s}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:Ba({requestType:e.requestType,request:e,error:e.error})},this.trigger("error")}parseManifest_({url:e,manifestString:t}){try{let n=uB({onwarn:({message:s})=>this.logger_(`m3u8-parser warn for ${e}: ${s}`),oninfo:({message:s})=>this.logger_(`m3u8-parser info for ${e}: ${s}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls});return!n.playlists||!n.playlists.length||this.excludeAudioOnlyVariants(n.playlists),n}catch(n){this.error=n,this.error.metadata={errorType:le.Error.StreamingHlsPlaylistParserError,error:n}}}excludeAudioOnlyVariants(e){let t=n=>{let s=n.attributes||{},{width:a,height:o}=s.RESOLUTION||{};if(a&&o)return!0;let l=qC(n)||[];return!!Xu(l).video};e.some(t)&&e.forEach(n=>{t(n)||(n.excludeUntil=1/0)})}
184haveMetadata({playlistString:e,playlistObject:t,url:n,id:s}){this.request=null,this.state="HAVE_METADATA";let a={playlistInfo:{type:"media",uri:n}};this.trigger({type:"playlistparsestart",metadata:a});let o=t||this.parseManifest_({url:n,manifestString:e});o.lastRequest=Date.now(),$C({playlist:o,uri:n,id:s});let l=y0(this.main,o);this.targetDuration=o.partTargetDuration||o.targetDuration,this.pendingMedia_=null,l?(this.main=l,this.media_=this.main.playlists[s]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(b0(this.media(),!!l)),a.parsedPlaylist=bw(this.main.playlists,a.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:a}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),J.default.clearTimeout(this.mediaUpdateTimeout),J.default.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new Rh,this.off()}stopRequest(){if(this.request){let e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){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(J.default.clearTimeout(this.finalRenditionTimeout),t){let l=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=J.default.setTimeout(this.media.bind(this,e,!1),l);return}let n=this.state,s=!this.media_||e.id!==this.media_.id,a=this.main.playlists[e.id];if(a&&a.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,s&&(this.trigger("mediachanging"),n==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(b0(e,!0)),!s)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;let o={playlistInfo:{type:"media",uri:e.uri}};this.trigger({type:"playlistrequeststart",metadata:o}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},(l,u)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=Lh(e.resolvedUri,u),l)return this.playlistRequestError(this.request,e,n);this.trigger({type:"playlistrequestcomplete",metadata:o}),this.haveMetadata({playlistString:u.responseText,url:e.uri,id:e.id}),n==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}pause(){this.mediaUpdateTimeout&&(J.default.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&&(J.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);let t=this.media();if(e){let n=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=J.default.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},n);return}if(!this.started){this.start();return}t&&!t.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(J.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=J.default.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=J.default.location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}
vendor: 1,073 bytes, line 184
184let 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"},(t,n)=>{if(!this.request)return;if(this.request=null,t)return this.error={status:n.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:n.responseText,code:2,metadata:Ba({requestType:n.requestType,request:n,error:t})},this.state==="HAVE_NOTHING"&&(this.started=!1),this.trigger("error");this.trigger({type:"playlistrequestcomplete",metadata:e}),this.src=Lh(this.src,n),this.trigger({type:"playlistparsestart",metadata:e});let s=this.parseManifest_({manifestString:n.responseText,url:this.src});e.parsedPlaylist=bw(s.playlists,e.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:e}),this.setupInitialPlaylist(s)})}srcUri(){return typeof this.src=="string"?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists){this.main=e,FC(this.main,this.srcUri()),e.playlists.forEac
184h(n=>{n.segments=jC(n),n.segments.forEach(s=>{VC(s,n.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}let t=this.srcUri()||J.default.location.href;this.main=hB(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){let n=this.main,s=e.ID,a=n.playlists.length;for(;a--;){let o=n.playlists[a];if(o.attributes["PATHWAY-ID"]===s){let l=o.resolvedUri,u=o.id;if(t){let c=this.createCloneURI_(o.resolvedUri,e),h=Qo(s,c),f=this.createCloneAttributes_(s,o.attributes),v=this.createClonePlaylist_(o,h,e,f);n.playlists[a]=v,n.playlists[h]=v,n.playlists[c]=v}else n.playlists.splice(a,1);delete n.playlists[u],delete n.playlists[l]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){let n=this.main,s=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(a=>{if(!(!n.mediaGroups[a]||!n.mediaGroups[a][s])){for(let o in n.mediaGroups[a])if(o===s){for(let l in n.mediaGroups[a][o])n.mediaGroups[a][o][l].playlists.forEac
184h((c,h)=>{let f=n.playlists[c.id],v=f.id,p=f.resolvedUri;delete n.playlists[v],delete n.playlists[p]});delete n.mediaGroups[a][o]}}}),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){let n=this.main,s=n.playlists.length,a=this.createCloneURI_(t.resolvedUri,e),o=Qo(e.ID,a),l=this.createCloneAttributes_(e.ID,t.attributes),u=this.createClonePlaylist_(t,o,e,l);n.playlists[s]=u,n.playlists[o]=u,n.playlists[a]=u,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){let t=e.ID,n=e["BASE-ID"],s=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(a=>{if(!(!s.mediaGroups[a]||s.mediaGroups[a][t]))for(let o in s.mediaGroups[a]){if(o===n)s.mediaGroups[a][t]={};else continue;for(let l in s.mediaGroups[a][o]){let u=s.mediaGroups[a][o][l];s.mediaGroups[a][t][l]=jt({},u);let c=s.mediaGroups[a][t][l],h=this.createCloneURI_(u.resolvedUri,e);c.resolvedUri=h,c.uri=h,c.playlists=[],u.playlists.forEach((f,v)=>{let p=s.playlists[f.id],T=BC(a,t,l),g=Qo(t,T);if(p&&!s.playlists[g]){let b=this.createClonePlaylist_(p,g,e),S=b.resolvedUri;s.playlists[g]=b,s.playlists[S]=b}c.playlists[v]=this.createClonePlaylist_(f,g,e)})}}})}createClonePlaylist_(e,t,n,s){let a=this.createCloneURI_(e.resolvedUri,n),o={resolvedUri:a,uri:a,id:t};return e.segments&&(o.segments=[]),s&&(o.attributes=s),Et(e,o)}createCloneURI_(e,t){let n=new URL(e);n.hostname=t["URI-REPLACEMENT"].HOST;let s=t["URI-REPLACEMENT"].PARAMS;for(let a of Object.keys(s))n.searchParams.set(a,s[a]);return n.href}createCloneAttributes_(e,t){let n={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(s=>{t[s]&&(n[s]=e)}),n}getKeyIdSet(e){let t=new Set;if(!e||!e.contentProtection)return t;for(let n in e.contentProtection)if(e.contentProtection[n]&&e.contentProtection[n].attributes&&e.contentProtection[n].attributes.keyId){let s=e.contentProtection[n].attributes.keyId;t.add(s.toLowerCase())}return t}},_0=function(r,e,t,n){let s=r.responseType==="arraybuffer"?r.response:r.responseText;!e&&s&&(r.responseTime=Date.now(),r.roundTripTime=r.responseTime-r.requestTime,r.bytesReceived=s.byteLength||s.length,r.bandwidth||(r.bandwidth=Math.floor(r.bytesReceived/r.roundTripTime*8*1e3))),t.headers&&(r.responseHeaders=t.headers),e&&e.code==="ETIMEDOUT"&&(r.timedout=!0),!e&&!r.aborted&&t.statusCode!==200&&t.statusCode!==206&&t.statusCode!==0&&(e=new Error("XHR Failed with a response of: "+(r&&(s||r.responseText)))),n(e,r)},bB=(r,e)=>{if(!r||!r.size)return;let t=e;return r.forEach(n=>{t=n(t)}),t},_B=(r,e,t,n)=>{!r||!r.size||r.forEach(s=>{s(e,t,n)})},WC=function(){let r=function e(t,n){t=Et({timeout:45e3},t);let s=e.beforeRequest||le.Vhs.xhr.beforeRequest,a=e._requestCallbackSet||le.Vhs.xhr._requestCallbackSet||new Set,o=e._responseCallbackSet||le.Vhs.xhr._responseCallbackSet;s&&typeof s=="function"&&(le.log.warn("beforeRequest is deprecated, use onRequest instead."),a.add(s));let l=le.Vhs.xhr.original===!0?le.xhr:le.Vhs.xhr,u=bB(a,t);a.delete(s);let c=l(u||t,function(f,v){return _B(o,c,f,v),_0(c,f,v,n)}),h=c.abort;return c.abort=function(){return c.aborted=!0,h.apply(c,arguments)},c.uri=t.uri,c.requestType=t.requestType,c.requestTime=Date.now(),c};return r.original=!0,r},TB=function(r){let e,t=r.offset;return typeof r.offset=="bigint"||typeof r.length=="bigint"?e=J.default.BigInt(r.offset)+J.default.BigInt(r.length)-J.default.BigInt(1):e=r.offset+r.length-1,"bytes="+t+"-"+e},T0=function(r){let e={};return r.byterange&&(e.Range=TB(r.byterange)),e},SB=function(r,e){return r.start(e)+"-"+r.end(e)},xB=function(r,e){let t=r.toString(16);return"00".substring(0,2-t.length)+t+(e%2?" ":"")},wB=function(r){return r>=32&&r<126?String.fromCharCode(r):"."},GC=function(r){let e={};return Object.keys(r).forEach(t=>{let n=r[t];jm(n)?e[t]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:e[t]=n}),e},Nh=function(r){let e=r.byterange||{length:1/0,offset:0};return[e.length,e.offset,r.resolvedUri].join(",")},QC=function(r){return r.resolvedUri},KC=r=>{let e=Array.prototype.slice.call(r),t=16,n="",s,a;for(let o=0;o<e.length/t;o++)s=e.slice(o*t,o*t+t).map(xB).join(""),a=e.slice(o*t,o*t+t).map(wB).join(""),n+=s+" "+a+`
185`;return n},CB=({bytes:r})=>KC(r),EB=r=>{let e="",t;for(t=0;t<r.length;t++)e+=SB(r,t)+" ";return e},kB=Object.freeze({__proto__:null,createTransferableMessage:GC,initSegmentId:Nh,segmentKeyId:QC,hexDump:KC,tagDump:CB,textRanges:EB}),XC=.25,AB=(r,e)=>{if(!e.dateTimeObject)return null;let t=e.videoTimingInfo.transmuxerPrependedSeconds,s=e.videoTimingInfo.transmuxedPresentationStart+t,a=r-s;return new Date(e.dateTimeObject.getTime()+a*1e3)},PB=r=>r.transmuxedPresentationEnd-r.transmuxedPresentationStart-r.transmuxerPrependedSeconds,DB=(r,e)=>{let t;try{t=new Date(r)}catch{return null}if(!e||!e.segments||e.segments.length===0)return null;let n=e.segments[0];if(t<new Date(n.dateTimeObject))return null;for(let u=0;u<e.segments.length-1;u++){n=e.segments[u];let c=new Date(e.segments[u+1].dateTimeObject);if(t<c)break}let s=e.segments[e.segments.length-1],a=s.dateTimeObject,o=s.videoTimingInfo?PB(s.videoTimingInfo):s.duration+s.duration*XC,l=new Date(a.getTime()+o*1e3);return t>l?null:(t>
vendor: 5,911 bytes, line 185
185new Date(a)&&(n=s),{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:ci.duration(e,e.mediaSequence+e.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"})},IB=(r,e)=>{if(!e||!e.segments||e.segments.length===0)return null;let t=0,n;for(let a=0;a<e.segments.length&&(n=e.segments[a],t=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:t+n.duration,!(r<=t));a++);let s=e.segments[e.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<r)return null;if(r>t){if(r>t+s.duration*XC)return null;n=s}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:t-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}},OB=(r,e)=>{let t,n;try{t=new Date(r),n=new Date(e)}catch{}let s=t.getTime();return(n.getTime()-s)/1e3},LB=r=>{if(!r.segments||r.segments.length===0)return!1;for(let e=0;e<r.segments.length;e++)if(!r.segments[e].dateTimeObject)return!1;return!0},RB=({playlist:r,time:e=void 0,callback:t})=>{if(!t)throw new Error("getProgramTime: callback must be provided");if(!r||e===void 0)return t({message:"getProgramTime: playlist and time must be provided"});let n=IB(e,r);if(!n)return t({message:"valid programTime was not found"});if(n.type==="estimate")return t({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:n.estimatedStart});let s={mediaSeconds:e},a=AB(e,n.segment);return a&&(s.programDateTime=a.toISOString()),t(null,s)},YC=({programTime:r,playlist:e,retryCount:t=2,seekTo:n,pauseAfterSeek:s=!0,tech:a,callback:o})=>{if(!o)throw new Error("seekToProgramTime: callback must be provided");if(typeof r>"u"||!e||!n)return o({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!e.endList&&!a.hasStarted_)return o({message:"player must be playing a live stream to start buffering"});if(!LB(e))return o({message:"programDateTime tags must be provided in the manifest "+e.resolvedUri});let l=DB(r,e);if(!l)return o({message:`${r} was not found in the stream`});let u=l.segment,c=OB(u.dateTimeObject,r);if(l.type==="estimate"){if(t===0)return o({message:`${r} is not buffered yet. Try again`});n(l.estimatedStart+c),a.one("seeked",()=>{YC({programTime:r,playlist:e,retryCount:t-1,seekTo:n,pauseAfterSeek:s,tech:a,callback:o})});return}let h=u.start+c,f=()=>o(null,a.currentTime());a.one("seeked",f),s&&a.pause(),n(h)},Mg=(r,e)=>{if(r.readyState===4)return e()},NB=(r,e,t,n)=>{let s=[],a,o=!1,l=function(f,v,p,T){return v.abort(),o=!0,t(f,v,p,T)},u=function(f,v){if(o)return;if(f)return f.metadata=Ba({requestType:n,request:v,error:f}),l(f,v,"",s);let p=v.responseText.substring(s&&s.byteLength||0,v.responseText.length);if(s=dS(s,md(p,!0)),a=a||Da(s),s.length<10||a&&s.length<a+2)return Mg(v,()=>l(f,v,"",s));let T=Od(s);return T==="ts"&&s.length<188?Mg(v,()=>l(f,v,"",s)):!T&&s.length<376?Mg(v,()=>l(f,v,"",s)):l(null,v,T,s)},h=e({uri:r,beforeSend(f){f.overrideMimeType("text/plain; charset=x-user-defined"),f.addEventListener("progress",function({total:v,loaded:p}){return _0(f,null,{statusCode:f.status},u)})}},function(f,v){return _0(h,f,v,u)});return h},{EventTarget:MB}=le,_w=function(r,e){if(!zC(r,e)||r.sidx&&e.sidx&&(r.sidx.offset!==e.sidx.offset||r.sidx.length!==e.sidx.length))return!1;if(!r.sidx&&e.sidx||r.sidx&&!e.sidx||r.segments&&!e.segments||!r.segments&&e.segments)return!1;if(!r.segments&&!e.segments)return!0;for(let t=0;t<r.segments.length;t++){let n=r.segments[t],s=e.segments[t];if(n.uri!==s.uri)return!1;if(!n.byterange&&!s.byterange)continue;let a=n.byterange,o=s.byterange;if(a&&!o||!a&&o||a.offset!==o.offset||a.length!==o.length)return!1}return!0},BB=(r,e,t,n)=>{let s=n.attributes.NAME||t;return`placeholder-uri-${r}-${e}-${s}`},$B=({mainXml:r,srcUrl:e,clientOffset:t,sidxMapping:n,previousManifest:s})=>{let a=yx(r,{manifestUri:e,clientOffset:t,sidxMapping:n,previousManifest:s});return FC(a,e,BB),a},FB=(r,e)=>{cl(r,(t,n,s,a)=>{(!e.mediaGroups[n][s]||!(a in e.mediaGroups[n][s]))&&delete r.mediaGroups[n][s][a]})},UB=(r,e,t)=>{let n=!0,s=Et(r,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod,timelineStarts:e.timelineStarts});for(let a=0;a<e.playlists.length;a++){let o=e.playlists[a];if(o.sidx){let u=vu(o.sidx);t&&t[u]&&t[u].sidx&&Pd(o,t[u].sidx,o.sidx.resolvedUri)}let l=y0(s,o,_w);l&&(s=l,n=!1)}return cl(e,(a,o,l,u)=>{if(a.playlists&&a.playlists.length){let c=a.playlists[0].id,h=y0(s,a.playlists[0],_w);h&&(s=h,u in s.mediaGroups[o][l]||(s.mediaGroups[o][l][u]=a),s.mediaGroups[o][l][u].playlists[0]=s.playlists[c],n=!1)}}),FB(s,e),e.minimumUpdatePeriod!==r.minimumUpdatePeriod&&(n=!1),n?null:s},qB=(r,e)=>(!r.map&&!e.map||!!(r.map&&e.map&&r.map.byterange.offset===e.map.byterange.offset&&r.map.byterange.length===e.map.byterange.length))&&r.uri===e.uri&&r.byterange.offset===e.byterange.offset&&r.byterange.length===e.byterange.length,Tw=(r,e)=>{let t={};for(let n in r){let a=r[n].sidx;if(a){let o=vu(a);if(!e[o])break;let l=e[o].sidxInfo;qB(l,a)&&(t[o]=e[o])}}return t},HB=(r,e)=>{let n=Tw(r.playlists,e);return cl(r,(s,a,o,l)=>{if(s.playlists&&s.playlists.length){let u=s.playlists;n=Et(n,Tw(u,e))}}),n},Yu=class extends MB{constructor(e,t,n={},s){super(),this.isPaused_=!0,this.mainPlaylistLoader_=s||this,s||(this.isMain_=!0);let{withCredentials:a=!1}=n;if(this.vhs_=t,this.withCredentials=a,this.addMetadataToTextTrack=n.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_=Ui("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}get isPaused(){return this.isPaused_}requestErrored_(e,t,n){if(!this.request)return!0;
185if(this.request=null,e)return this.error=typeof e=="object"&&!(e instanceof Error)?e:{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2,metadata:e.metadata},n&&(this.state=n),this.trigger("error"),!0}addSidxSegments_(e,t,n){let s=e.sidx&&vu(e.sidx);if(!e.sidx||!s||this.mainPlaylistLoader_.sidxMapping_[s]){J.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=J.default.setTimeout(()=>n(!1),0);return}let a=Lh(e.sidx.resolvedUri),o=(u,c)=>{if(this.requestErrored_(u,c,t))return;let h=this.mainPlaylistLoader_.sidxMapping_,{requestType:f}=c,v;try{v=(0,Nw.default)($e(c.response).subarray(8))}catch(p){p.metadata=Ba({requestType:f,request:c,parseFailure:!0}),this.requestErrored_(p,c,t);return}return h[s]={sidxInfo:e.sidx,sidx:v},Pd(e,v,e.sidx.resolvedUri),n(!0)},l="dash-sidx";this.request=NB(a,this.vhs_.xhr,(u,c,h,f)=>{if(u)return o(u,c);if(!h||h!=="mp4"){let T=h||"unknown";return o({status:c.status,message:`Unsupported ${T} container type for sidx segment at URL: ${a}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},c)}let{offset:v,length:p}=e.sidx.byterange;if(f.length>=p+v)return o(u,{response:f.subarray(v,v+p),status:c.status,uri:c.uri});this.request=this.vhs_.xhr({uri:a,responseType:"arraybuffer",requestType:"dash-sidx",headers:T0({byterange:e.sidx.byterange})},o)},l)}dispose(){this.isPaused_=!0,this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},J.default.clearTimeout(this.minimumUpdatePeriodTimeout_),J.default.clearTimeout(this.mediaRequest_),J.default.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){let 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);let t=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]}let n=!this.media_||e.id!==this.media_.id;if(n&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList){this.state="HAVE_METADATA",this.media_=e,n&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,s=>{this.haveMetadata({startingState:t,playlist:e})}))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,J.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=null,this.refreshMedia_(t.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(),J.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(J.default.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state==="HAVE_NOTHING"&&(this.started=!1)}load(e){this.isPaused_=!1,J.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;let t=this.media();if(e){let n=t?t.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=J.default.setTimeout(()=>this.load(),n);return}if(!this.started){this.start();return}t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")}start(){if(this.started=!0,!this.isMain_){J.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=J.default.setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((e,t)=>
vendor: 2,939 bytes, line 185
185{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){let t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:t}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},(n,s)=>{if(n){let{requestType:o}=s;n.metadata=Ba({requestType:o,request:s,error:n})}if(this.requestErrored_(n,s)){this.state==="HAVE_NOTHING"&&(this.started=!1);return}this.trigger({type:"manifestrequestcomplete",metadata:t});let a=s.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=s.responseText,s.responseHeaders&&s.responseHeaders.date?this.mainLoaded_=Date.parse(s.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=Lh(this.mainPlaylistLoader_.srcUrl,s),a){this.handleMain_(),this.syncClientServerClock_(()=>e(s,a));return}return e(s,a)})}syncClientServerClock_(e){let t=bx(this.mainPlaylistLoader_.mainXml_);if(t===null)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();if(t.method==="DIRECT")return this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e();this.request=this.vhs_.xhr({uri:ui(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},(n,s)=>{if(!this.request)return;if(n){let{requestType:o}=s;return this.error.metadata=Ba({requestType:o,request:s,error:n}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()}let a;t.method==="HEAD"?!s.responseHeaders||!s.responseHeaders.date?a=this.mainLoaded_:a=Date.parse(s.responseHeaders.date):a=Date.parse(s.responseText),this.mainPlaylistLoader_.clientOffset_=a-Date.now(),e()})}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){J.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=null;let e=this.mainPlaylistLoader_.main,t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestparsestart",metadata:t});let n;try{n=$B({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e})}catch(a){this.error=a,this.error.metadata={errorType:le.Error.StreamingDashManifestParserError,error:a},this.trigger("error")}e&&(n=UB(e,n,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=n||e;let s=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(s&&s!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=s),(!e||n&&n.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(n),n){let{duration:a,endList:o}=n,l=[];
185n.playlists.forEach(c=>{l.push({id:c.id,bandwidth:c.attributes.BANDWIDTH,resolution:c.attributes.RESOLUTION,codecs:c.attributes.CODECS})});let u={duration:a,isLive:!o,renditions:l};t.parsedManifest=u,this.trigger({type:"manifestparsecomplete",metadata:t})}return!!n}updateMinimumUpdatePeriodTimeout_(){let e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(J.default.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;if(t===0&&(e.media()?t=e.media().targetDuration*1e3:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),typeof t!="number"||t<=0){t<0&&this.logger_(`found invalid minimumUpdatePeriod of ${t}, not setting a timeout`);return}this.createMUPTimeout_(t)}createMUPTimeout_(e){let t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=J.default.setTimeout(()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=HB(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,n=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();let t=this.mainPlaylistLoader_.main.playlists,n=!this.media_||this.media_!==t[e];if(n?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){let s=()=>{this.media().endList||(this.mediaUpdateTimeout=J.default.setTimeout(()=>{this.trigger("mediaupdatetimeout"),s()},b0(this.media(),!!n)))};s()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){let t=this.mainPlaylistLoader_.main.eventStream.map(n=>({cueTime:n.start,frames:[{data:n.messageData}]}));this.addMetadataToTextTrack("EventStream",t,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){let t=new Set;for(let n in e.contentProtection){let s=e.contentProtection[n].attributes["cenc:default_KID"];s&&t.add(s.replace(/-/g,"").toLowerCase())}return t}}},Tr={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},VB=r=>{let e=new Uint8Array(new ArrayBuffer(r.length));for(let t=0;t<r.length;t++)e[t]=r.charCodeAt(t);return e.buffer},JC=function(r){return r.on=r.addEventListener,r.off=r.removeEventListener,r},jB=function(r){try{return URL.createObjectURL(new Blob([r],{type:"application/javascript"}))}catch{let t=new BlobBuilder;return t.append(r),URL.createObjectURL(t.getBlob())}},ZC=function(r){return function(){let e=jB(r),t=JC(new Worker(e));t.objURL=e;let n=t.terminate;return t.on=t.addEventListener,t.off=t.removeEventListener,t.terminate=function(){return URL.revokeObjectURL(e),n.call(this)},t}},eE=function(r){return`var browserWorkerPolyFill = ${JC.toString()};
186browserWorkerPolyFill(self);
187`+r},tE=function(r){return r.toString().replace(/^function.+?{/,"").slice(0,-1)},zB=eE(tE(function(){var r=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{},e=function(){this.init=function(){var d={};this.on=function(m,y){d[m]||(d[m]=[]),d[m]=d[m].concat(y)},this.off=function(m,y){var _;return d[m]?(_=d[m].indexOf(y),d[m]=d[m].slice(),d[m].splice(_,1),_>-1):!1},this.trigger=function(m){var y,_,w,P;if(y=d[m],!!y)if(arguments.length===2)for(w=y.length,_=0;_<w;++_)y[_].call(this,arguments[1]);else{for(P=[],_=arguments.length,_=1;_<arguments.length;++_)P.push(arguments[_]);for(w=y.length,_=0;_<w;++_)y[_].apply(this,P)}},this.dispose=function(){d={}}}};e.prototype.pipe=function(d){return this.on("data",function(m){d.push(m)}),this.on("done",function(m){d.flush(m)}),this.on("partialdone",function(m){d.partialFlush(m)}),this.on("endedtimeline",function(m){d.endTimeline(m)}),this.on("reset",function(m){d.reset(m)}),d},e.prototype.push=function(d){this.trigger("data",d)},e.prototype.flush=function(d){this.trigger("done",d)},e.prototype.partialFlush=function(d){this.trigger("partialdone",d)},e.prototype.endTimeline=function(d){this.trigger("endedtimeline",d)},e.prototype.reset=function(d){this.trigger("reset",d)};var t=e,n=Math.pow(2,32),s=function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y;return m.getBigUint64?(y=m.getBigUint64(0),y<Number.MAX_SAFE_INTEGER?
vendor: 110,539 bytes, lines 187-199
187Number(y):y):m.getUint32(0)*n+m.getUint32(4)},a={getUint64:s,MAX_UINT32:n},o=a.MAX_UINT32,l,u,c,h,f,v,p,T,g,b,S,x,E,k,A,N,I,M,F,ne,Q,j,H,W,ae,se,ge,ce,ue,ye,Te,Se,me,Ce,Ie,Pe;(function(){var d;if(H={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(d in H)H.hasOwnProperty(d)&&(H[d]=[d.charCodeAt(0),d.charCodeAt(1),d.charCodeAt(2),d.charCodeAt(3)]);W=new Uint8Array([105,115,111,109]),se=new Uint8Array([97,118,99,49]),ae=new Uint8Array([0,0,0,1]),ge=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]),ce=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]),ue={video:ge,audio:ce},Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Te=new Uint8Array([0,0,0,0,0,0,0,0]),me=new Uint8Array([0,0,0,0,0,0,0,0]),Ce=me,Ie=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Pe=me,ye=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),l=function(d){var m=[],y=0,_,w,P;for(_=1;_<arguments.length;_++)m.push(arguments[_]);for(_=m.length;_--;)y+=m[_].byteLength;for(w=new Uint8Array(y+8),P=new DataView(w.buffer,w.byteOffset,w.byteLength),P.setUint32(0,w.byteLength),w.set(d,4),_=0,y=8;_<m.length;_++)w.set(m[_],y),y+=m[_].byteLength;return w},u=function(){return l(H.dinf,l(H.dref,Se))},c=function(d){return l(H.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,d.audioobjecttype<<3|d.samplingfrequencyindex>>>1,d.samplingfrequencyindex<<7|d.channelcount<<3,6,1,2]))},h=function(){return l(H.ftyp,W,ae,W,se)},N=function(d){return l(H.hdlr,ue[d])},f=function(d){return l(H.mdat,d)},A=function(d){var m=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,d.duration>>>24&255,d.duration>>>16&255,d.duration>>>8&255,d.duration&255,85,196,0,0]);return d.samplerate&&(m[12]=d.samplerate>>>24&255,m[13]=d.samplerate>>>16&255,m[14]=d.samplerate>>>8&255,m[15]=d.samplerate&255),l(H.mdhd,m)},k=function(d){return l(H.mdia,A(d),N(d.type),p(d))},v=function(d){return l(H.mfhd,new Uint8Array([0,0,0,0,(d&4278190080)>>24,(d&16711680)>>16,(d&65280)>>8,d&255]))},p=function(d){return l(H.minf,d.type==="video"?l(H.vmhd,ye):l(H.smhd,Te),u(),M(d))},T=function(d,m){for(var y=[],_=m.length;_--;)y[_]=ne(m[_]);return l.apply(null,[H.moof,v(d)].concat(y))},g=function(d){for(var m=d.length,y=[];m--;)y[m]=x(d[m]);return l.apply(null,[H.moov,S(4294967295)].concat(y).concat(b(d)))},b=function(d){for(var m=d.length,y=[];m--;)y[m]=Q(d[m]);return l.apply(null,[H.mvex].concat(y))},S=function(d){var m=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(d&4278190080)>>24,(d&16711680)>>16,(d&65280)>>8,d&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 l(H.mvhd,m)},I=function(d){var m=d.samples||[],y=new Uint8Array(4+m.length),_,w;for(w=0;w<m.length;w++)_=m[w].flags,y[w+4]=_.dependsOn<<4|_.isDependedOn<<2|_.hasRedundancy;return l(H.sdtp,y)},M=function(d){return l(H.stbl,F(d),l(H.stts,Pe),l(H.stsc,Ce),l(H.stsz,Ie),l(H.stco,me))},function(){var d,m;F=function(y){return l(H.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),y.type==="video"?d(y):m(y))},d=function(y){var _=y.sps||[],w=y.pps||[],P=[],U=[],q,z;for(q=0;q<_.length;q++)P.push((_[q].byteLength&65280)>>>8),P.push(_[q].byteLength&255),P=P.concat(Array.prototype.slice.call(_[q]));for(q=0;q<w.length;q++)U.push((w[q].byteLength&65280)>>>8),U.push(w[q].byteLength&255),U=U.concat(Array.prototype.slice.call(w[q]));if(z=[H.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,(y.width&65280)>>8,y.width&255,(y.height&65280)>>8,y.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]),l(H.avcC,new Uint8Array([1,y.profileIdc,y.profileCompatibility,y.levelIdc,255].concat([_.length],P,[w.length],U))),l(H.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],y.sarRatio){var G=y.sarRatio[0],re=y.sarRatio[1];z.push(l(H.pasp,new Uint8Array([(G&4278190080)>>24,(G&16711680)>>16,(G&65280)>>8,G&255,(re&4278190080)>>24,(re&16711680)>>16,(re&65280)>>8,re&255])))}return l.apply(null,z)},m=function(y){return l(H.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(y.channelcount&65280)>>8,y.channelcount&255,(y.samplesize&65280)>>8,y.samplesize&255,0,0,0,0,(y.samplerate&65280)>>8,y.samplerate&255,0,0]),c(y))}}(),E=function(d){var m=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(d.id&4278190080)>>24,(d.id&16711680)>>16,(d.id&65280)>>8,d.id&255,0,0,0,0,(d.duration&4278190080)>>24,(d.duration&16711680)>>16,(d.duration&65280)>>8,d.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,(d.width&65280)>>8,d.width&255,0,0,(d.height&65280)>>8,d.height&255,0,0]);return l(H.tkhd,m)},ne=function(d){var m,y,_,w,P,U,q;return m=l(H.tfhd,new Uint8Array([0,0,0,58,(d.id&4278190080)>>24,(d.id&16711680)>>16,(d.id&65280)>>8,d.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),U=Math.floor(d.baseMediaDecodeTime/o),q=Math.floor(d.baseMediaDecodeTime%o),y=l(H.tfdt,new Uint8Array([1,0,0,0,U>>>24&255,U>>>16&255,U>>>8&255,U&255,q>>>24&255,q>>>16&255,q>>>8&255,q&255])),P=92,d.type==="audio"?(_=j(d,P),l(H.traf,m,y,_)):(w=I(d),_=j(d,w.length+P),l(H.traf,m,y,_,w))},x=function(d){return d.duration=d.duration||4294967295,l(H.trak,E(d),k(d))},Q=function(d){var m=new Uint8Array([0,0,0,0,(d.id&4278190080)>>24,(d.id&16711680)>>16,(d.id&65280)>>8,d.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return d.type!=="video"&&(m[m.length-1]=0),l(H.trex,m)},function(){var d,m,y;y=function(_,w){var P=0,U=0,q=0,z=0;return _.length&&(_[0].duration!==void 0&&(P=1),_[0].size!==void 0&&(U=2),_[0].flags!==void 0&&(q=4),_[0].compositionTimeOffset!==void 0&&(z=8)),[0,0,P|U|q|z,1,(_.length&4278190080)>>>24,(_.length&16711680)>>>16,(_.length&65280)>>>8,_.length&255,(w&4278190080)>>>24,(w&16711680)>>>16,(w&65280)>>>8,w&255]},m=function(_,w){var P,U,q,z,G,re;for(z=_.samples||[],w+=20+16*z.length,q=y(z,w),U=new Uint8Array(q.length+z.length*16),U.set(q),P=q.length,re=0;re<z.length;re++)G=z[re],U[P++]=(G.duration&4278190080)>>>24,U[P++]=(G.duration&16711680)>>>16,U[P++]=(G.duration&65280)>>>8,U[P++]=G.duration&255,U[P++]=(G.size&4278190080)>>>24,U[P++]=(G.size&16711680)>>>16,U[P++]=(G.size&65280)>>>8,U[P++]=G.size&255,U[P++]=G.flags.isLeading<<2|G.flags.dependsOn,U[P++]=G.flags.isDependedOn<<6|G.flags.hasRedundancy<<4|G.flags.paddingValue<<1|G.flags.isNonSyncSample,U[P++]=G.flags.degradationPriority&61440,U[P++]=G.flags.degradationPriority&15,U[P++]=(G.compositionTimeOffset&4278190080)>>>24,U[P++]=(G.compositionTimeOffset&16711680)>>>16,U[P++]=(G.compositionTimeOffset&65280)>>>8,U[P++]=G.compositionTimeOffset&255;return l(H.trun,U)},d=function(_,w){var P,U,q,z,G,re;for(z=_.samples||[],w+=20+8*z.length,q=y(z,w),P=new Uint8Array(q.length+z.length*8),P.set(q),U=q.length,re=0;re<z.length;re++)G=z[re],P[U++]=(G.duration&4278190080)>>>24,P[U++]=(G.duration&16711680)>>>16,P[U++]=(G.duration&65280)>>>8,P[U++]=G.duration&255,P[U++]=(G.size&4278190080)>>>24,P[U++]=(G.size&16711680)>>>16,P[U++]=(G.size&65280)>>>8,P[U++]=G.size&255;return l(H.trun,P)},j=function(_,w){return _.type==="audio"?d(_,w):m(_,w)}}();var We={ftyp:h,mdat:f,moof:T,moov:g,initSegment:function(d){var m=h(),y=g(d),_;return _=new Uint8Array(m.byteLength+y.byteLength),_.set(m),_.set(y,m.byteLength),_}},et=function(d){var m,y,_=[],w=[];for(w.byteLength=0,w.nalCount=0,w.duration=0,_.byteLength=0,m=0;m<d.length;m++)y=d[m],y.nalUnitType==="access_unit_delimiter_rbsp"?(_.length&&(_.duration=y.dts-_.dts,w.byteLength+=_.byteLength,w.nalCount+=_.length,w.duration+=_.duration,w.push(_)),_=[y],_.byteLength=y.data.byteLength,_.pts=y.pts,_.dts=y.dts):(y.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(_.keyFrame=!0),_.duration=y.dts-_.dts,_.byteLength+=y.data.byteLength,_.push(y));return w.length&&(!_.duration||_.duration<=0)&&(_.duration=w[w.length-1].duration),w.byteLength+=_.byteLength,w.nalCount+=_.length,w.duration+=_.duration,w.push(_),w},Ye=function(d){var m,y,_=[],w=[];for(_.byteLength=0,_.nalCount=0,_.duration=0,_.pts=d[0].pts,_.dts=d[0].dts,w.byteLength=0,w.nalCount=0,w.duration=0,w.pts=d[0].pts,w.dts=d[0].dts,m=0;m<d.length;m++)y=d[m],y.keyFrame?(_.length&&(w.push(_),w.byteLength+=_.byteLength,w.nalCount+=_.nalCount,w.duration+=_.duration),_=[y],_.nalCount=y.length,_.byteLength=y.byteLength,_.pts=y.pts,_.dts=y.dts,_.duration=y.duration):(_.duration+=y.duration,_.nalCount+=y.length,_.byteLength+=y.byteLength,_.push(y));return w.length&&_.duration<=0&&(_.duration=w[w.length-1].duration),w.byteLength+=_.byteLength,w.nalCount+=_.nalCount,w.duration+=_.duration,w.push(_),w},Je=function(d){var m;return!d[0][0].keyFrame&&d.length>1&&(m=d.shift(),d.byteLength-=m.byteLength,d.nalCount-=m.nalCount,d[0][0].dts=m.dts,d[0][0].pts=m.pts,d[0][0].duration+=m.duration),d},st=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},Be=function(d,m){var y=st();return y.dataOffset=m,y.compositionTimeOffset=d.pts-d.dts,y.duration=d.duration,y.size=4*d.length,y.size+=d.byteLength,d.keyFrame&&(y.flags.dependsOn=2,y.flags.isNonSyncSample=0),y},je=function(d,m){var y,_,w,P,U,q=m||0,z=[];for(y=0;y<d.length;y++)for(P=d[y],_=0;_<P.length;_++)U=P[_],w=Be(U,q),q+=w.size,z.push(w);return z},pt=function(d){var m,y,_,w,P,U,q=0,z=d.byteLength,G=d.nalCount,re=z+4*G,ve=new Uint8Array(re),Oe=new DataView(ve.buffer);for(m=0;m<d.length;m++)for(w=d[m],y=0;y<w.length;y++)for(P=w[y],_=0;_<P.length;_++)U=P[_],Oe.setUint32(q,U.data.byteLength),q+=4,ve.set(U.data,q),q+=U.data.byteLength;return ve},mt=function(d,m){var y,_=m||0,w=[];return y=Be(d,_),w.push(y),w},Ht=function(d){var m,y,_=0,w=d.byteLength,P=d.length,U=w+4*P,q=new Uint8Array(U),z=new DataView(q.buffer);for(m=0;m<d.length;m++)y=d[m],z.setUint32(_,y.data.byteLength),_+=4,q.set(y.data,_),_+=y.data.byteLength;return q},Jt={groupNalsIntoFrames:et,groupFramesIntoGops:Ye,extendFirstKeyFrame:Je,generateSampleTable:je,concatenateNalData:pt,generateSampleTableForFrame:mt,concatenateNalDataForFrame:Ht},yt=[33,16,5,32,164,27],Zt=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],Ge=function(d){for(var m=[];d--;)m.push(0);return m},St=function(d){return Object.keys(d).reduce(function(m,y){return m[y]=new Uint8Array(d[y].reduce(function(_,w){return _.concat(w)},[])),m},{})},xt,Vr=function(){if(!xt){var d={96e3:[yt,[227,64],Ge(154),[56]],88200:[yt,[231],Ge(170),[56]],64e3:[yt,[248,192],Ge(240),[56]],48e3:[yt,[255,192],Ge(268),[55,148,128],Ge(54),[112]],44100:[yt,[255,192],Ge(268),[55,163,128],Ge(84),[112]],32e3:[yt,[255,192],Ge(268),[55,234],Ge(226),[112]],24e3:[yt,[255,192],Ge(268),[55,255,128],Ge(268),[111,112],Ge(126),[224]],16e3:[yt,[255,192],Ge(268),[55,255,128],Ge(268),[111,255],Ge(269),[223,108],Ge(195),[1,192]],12e3:[Zt,Ge(268),[3,127,248],Ge(268),[6,255,240],Ge(268),[13,255,224],Ge(268),[27,253,128],Ge(259),[56]],11025:[Zt,Ge(268),[3,127,248],Ge(268),[6,255,240],Ge(268),[13,255,224],Ge(268),[27,255,192],Ge(268),[55,175,128],Ge(108),[112]],8e3:[Zt,Ge(268),[3,121,16],Ge(47),[7]]};xt=St(d)}return xt},Vt=9e4,mi,B,C,D,V,te,he;mi=function(d){return d*Vt},B=function(d,m){return d*m},C=function(d){return d/Vt},D=function(d,m){return d/m},V=function(d,m){return mi(D(d,m))},te=function(d,m){return B(C(d),m)},he=function(d,m,y){return C(y?d:d-m)};var fe={ONE_SECOND_IN_TS:Vt,secondsToVideoTs:mi,secondsToAudioTs:B,videoTsToSeconds:C,audioTsToSeconds:D,audioTsToVideoTs:V,videoTsToAudioTs:te,metadataTsToSeconds:he},ee=Vr,oe=fe,Me=function(d){var m,y,_=0;for(m=0;m<d.length;m++)y=d[m],_+=y.data.byteLength;return _},Ue=function(d,m,y,_){var w,P=0,U=0,q=0,z=0,G,re,ve;if(m.length&&(w=oe.audioTsToVideoTs(d.baseMediaDecodeTime,d.samplerate),P=Math.ceil(oe.ONE_SECOND_IN_TS/(d.samplerate/1024)),y&&_&&(U=w-Math.max(y,_),q=Math.floor(U/P),z=q*P),!(q<1||z>oe.ONE_SECOND_IN_TS/2))){for(G=ee()[d.samplerate],G||(G=m[0].data),re=0;re<q;re++)ve=m[0],m.splice(0,0,{data:G,dts:ve.dts-P,pts:ve.pts-P});return d.baseMediaDecodeTime-=Math.floor(oe.videoTsToAudioTs(z,d.samplerate)),z}},qe=function(d,m,y){return m.minSegmentDts>=y?d:(m.minSegmentDts=1/0,d.filter(function(_){return _.dts>=y?(m.minSegmentDts=Math.min(m.minSegmentDts,_.dts),m.minSegmentPts=m.minSegmentDts,!0):!1}))},it=function(d){var m,y,_=[];for(m=0;m<d.length;m++)y=d[m],_.push({size:y.data.byteLength,duration:1024});return _},jr=function(d){var m,y,_=0,w=new Uint8Array(Me(d));for(m=0;m<d.length;m++)y=d[m],w.set(y.data,_),_+=y.data.byteLength;return w},Ai={prefixWithSilence:Ue,trimAdtsFramesByEarliestDts:qe,generateSampleTable:it,concatenateFrameData:jr},pr=fe.ONE_SECOND_IN_TS,Pi=function(d,m){typeof m.pts=="number"&&(d.timelineStartInfo.pts===void 0&&(d.timelineStartInfo.pts=m.pts),d.minSegmentPts===void 0?d.minSegmentPts=m.pts:d.minSegmentPts=Math.min(d.minSegmentPts,m.pts),d.maxSegmentPts===void 0?d.maxSegmentPts=m.pts:d.maxSegmentPts=Math.max(d.maxSegmentPts,m.pts)),typeof m.dts=="number"&&(d.timelineStartInfo.dts===void 0&&(d.timelineStartInfo.dts=m.dts),d.minSegmentDts===void 0?d.minSegmentDts=m.dts:d.minSegmentDts=Math.min(d.minSegmentDts,m.dts),d.maxSegmentDts===void 0?d.maxSegmentDts=m.dts:d.maxSegmentDts=Math.max(d.maxSegmentDts,m.dts))},ia=function(d){delete d.minSegmentDts,delete d.maxSegmentDts,delete d.minSegmentPts,delete d.maxSegmentPts},ln=function(d,m){var y,_,w=d.minSegmentDts;return m||(w-=d.timelineStartInfo.dts),y=d.timelineStartInfo.baseMediaDecodeTime,y+=w,y=Math.max(0,y),d.type==="audio"&&(_=d.samplerate/pr,y*=_,y=Math.floor(y)),y},zr={clearDtsInfo:ia,calculateTrackBaseMediaDecodeTime:ln,collectDtsInfo:Pi},ps=4,Di=128,ao=function(d){for(var m=0,y={payloadType:-1,payloadSize:0},_=0,w=0;m<d.byteLength&&d[m]!==Di;){for(;d[m]===255;)_+=255,m++;for(_+=d[m++];d[m]===255;)w+=255,m++;if(w+=d[m++],!y.payload&&_===ps){var P=String.fromCharCode(d[m+3],d[m+4],d[m+5],d[m+6]);if(P==="GA94"){y.payloadType=_,y.payloadSize=w,y.payload=d.subarray(m,m+w);break}else y.payload=void 0}m+=w,_=0,w=0}return y},Ln=function(d){return d.payload[0]!==181||(d.payload[1]<<8|d.payload[2])!==49||String.fromCharCode(d.payload[3],d.payload[4],d.payload[5],d.payload[6])!=="GA94"||d.payload[7]!==3?null:d.payload.subarray(8,d.payload.length-1)},na=function(d,m){var y=[],_,w,P,U;if(!(m[0]&64))return y;for(w=m[0]&31,_=0;_<w;_++)P=_*3,U={type:m[P+2]&3,pts:d},m[P+2]&4&&(U.ccData=m[P+3]<<8|m[P+4],y.push(U));return y},we=function(d){for(var m=d.byteLength,y=[],_=1,w,P;_<m-2;)d[_]===0&&d[_+1]===0&&d[_+2]===3?(y.push(_+2),_+=2):_++;if(y.length===0)return d;w=m-y.length,P=new Uint8Array(w);var U=0;for(_=0;_<w;U++,_++)U===y[0]&&(U++,y.shift()),P[_]=d[U];return P},ji={parseSei:ao,parseUserData:Ln,parseCaptionPackets:na,discardEmulationPreventionBytes:we,USER_DATA_REGISTERED_ITU_T_T35:ps},Ii=t,zi=ji,er=function(d){d=d||{},er.prototype.init.call(this),this.parse708captions_=typeof d.parse708captions=="boolean"?d.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new Pt(0,0),new Pt(0,1),new Pt(1,0),new Pt(1,1)],this.parse708captions_&&(this.cc708Stream_=new He({captionServices:d.captionServices})),this.reset(),this.ccStreams_.forEach(function(m){m.on("data",this.trigger.bind(this,"data")),m.on("partialdone",this.trigger.bind(this,"partialdone")),m.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")))};er.prototype=new Ii,er.prototype.push=function(d){var m,y,_;if(d.nalUnitType==="sei_rbsp"&&(m=zi.parseSei(d.escapedRBSP),!!m.payload&&m.payloadType===zi.USER_DATA_REGISTERED_ITU_T_T35&&(y=zi.parseUserData(m),!!y))){if(d.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(d.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}_=zi.parseCaptionPackets(d.pts,y),this.captionPackets_=this.captionPackets_.concat(_),this.latestDts_!==d.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=d.dts}},er.prototype.flushCCStreams=function(d){this.ccStreams_.forEach(function(m){return d==="flush"?m.flush():m.partialFlush()},this)},er.prototype.flushStream=function(d){if(!this.captionPackets_.length){this.flushCCStreams(d);return}this.captionPackets_.forEach(function(m,y){m.presortIndex=y}),this.captionPackets_.sort(function(m,y){return m.pts===y.pts?m.presortIndex-y.presortIndex:m.pts-y.pts}),this.captionPackets_.forEach(function(m){m.type<2?this.dispatchCea608Packet(m):this.dispatchCea708Packet(m)},this),this.captionPackets_.length=0,this.flushCCStreams(d)},er.prototype.flush=function(){return this.flushStream("flush")},er.prototype.partialFlush=function(){return this.flushStream("partialFlush")},er.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(d){d.reset()})},er.prototype.dispatchCea608Packet=function(d){this.setsTextOrXDSActive(d)?this.activeCea608Channel_[d.type]=null:this.setsChannel1Active(d)?this.activeCea608Channel_[d.type]=0:this.setsChannel2Active(d)&&(this.activeCea608Channel_[d.type]=1),this.activeCea608Channel_[d.type]!==null&&this.ccStreams_[(d.type<<1)+this.activeCea608Channel_[d.type]].push(d)},er.prototype.setsChannel1Active=function(d){return(d.ccData&30720)===4096},er.prototype.setsChannel2Active=function(d){return(d.ccData&30720)===6144},er.prototype.setsTextOrXDSActive=function(d){return(d.ccData&28928)===256||(d.ccData&30974)===4138||(d.ccData&30974)===6186},er.prototype.dispatchCea708Packet=function(d){this.parse708captions_&&this.cc708Stream_.push(d)};var Oi={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},Rn=function(d){var m=Oi[d]||d;return d&4096&&d===m?"":String.fromCharCode(m)},At=function(d){return 32<=d&&d<=127||160<=d&&d<=255},bt=function(d){this.windowNum=d,this.reset()};bt.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},bt.prototype.getText=function(){return this.rows.join(`
188`)},bt.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},bt.prototype.newLine=function(d){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(d),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},bt.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},bt.prototype.addText=function(d){this.rows[this.rowIdx]+=d},bt.prototype.backspace=function(){if(!this.isEmpty()){var d=this.rows[this.rowIdx];this.rows[this.rowIdx]=d.substr(0,d.length-1)}};var Qt=function(d,m,y){this.serviceNum=d,this.text="",this.currentWindow=new bt(-1),this.windows=[],this.stream=y,typeof m=="string"&&this.createTextDecoder(m)};Qt.prototype.init=function(d,m){this.startPts=d;for(var y=0;y<8;y++)this.windows[y]=new bt(y),typeof m=="function"&&(this.windows[y].beforeRowOverflow=m)},Qt.prototype.setCurrentWindow=function(d){this.currentWindow=this.windows[d]},Qt.prototype.createTextDecoder=function(d){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(d)}catch(m){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+d+" encoding. "+m})}};var He=function(d){d=d||{},He.prototype.init.call(this);var m=this,y=d.captionServices||{},_={},w;Object.keys(y).forEach(P=>{w=y[P],/^SERVICE/.test(P)&&(_[P]=w.encoding)}),this.serviceEncodings=_,this.current708Packet=null,this.services={},this.push=function(P){P.type===3?(m.new708Packet(),m.add708Bytes(P)):(m.current708Packet===null&&m.new708Packet(),m.add708Bytes(P))}};He.prototype=new Ii,He.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},He.prototype.add708Bytes=function(d){var m=d.ccData,y=m>>>8,_=m&255;this.current708Packet.ptsVals.push(d.pts),this.current708Packet.data.push(y),this.current708Packet.data.push(_)},He.prototype.push708Packet=function(){var d=this.current708Packet,m=d.data,y=null,_=null,w=0,P=m[w++];for(d.seq=P>>6,d.sizeCode=P&63;w<m.length;w++)P=m[w++],y=P>>5,_=P&31,y===7&&_>0&&(P=m[w++],y=P),this.pushServiceBlock(y,w,_),_>0&&(w+=_-1)},He.prototype.pushServiceBlock=function(d,m,y){var _,w=m,P=this.current708Packet.data,U=this.services[d];for(U||(U=this.initService(d,w));w<m+y&&w<P.length;w++)_=P[w],At(_)?w=this.handleText(w,U):_===24?w=this.multiByteCharacter(w,U):_===16?w=this.extendedCommands(w,U):128<=_&&_<=135?w=this.setCurrentWindow(w,U):152<=_&&_<=159?w=this.defineWindow(w,U):_===136?w=this.clearWindows(w,U):_===140?w=this.deleteWindows(w,U):_===137?w=this.displayWindows(w,U):_===138?w=this.hideWindows(w,U):_===139?w=this.toggleWindows(w,U):_===151?w=this.setWindowAttributes(w,U):_===144?w=this.setPenAttributes(w,U):_===145?w=this.setPenColor(w,U):_===146?w=this.setPenLocation(w,U):_===143?U=this.reset(w,U):_===8?U.currentWindow.backspace():_===12?U.currentWindow.clearText():_===13?U.currentWindow.pendingNewLine=!0:_===14?U.currentWindow.clearText():_===141&&w++},He.prototype.extendedCommands=function(d,m){var y=this.current708Packet.data,_=y[++d];return At(_)&&(d=this.handleText(d,m,{isExtended:!0})),d},He.prototype.getPts=function(d){return this.current708Packet.ptsVals[Math.floor(d/2)]},He.prototype.initService=function(d,m){var _="SERVICE"+d,y=this,_,w;return _ in this.serviceEncodings&&(w=this.serviceEncodings[_]),this.services[d]=new Qt(d,w,y),this.services[d].init(this.getPts(m),function(P){y.flushDisplayed(P,y.services[d])}),this.services[d]},He.prototype.handleText=function(d,m,y){var _=y&&y.isExtended,w=y&&y.isMultiByte,P=this.current708Packet.data,U=_?4096:0,q=P[d],z=P[d+1],G=m.currentWindow,re,ve;function Oe(be){return be.map(Ve=>("0"+(Ve&255).toString(16)).slice(-2)).join("")}if(w?(ve=[q,z],d++):ve=[q],m.textDecoder_&&!_)re=m.textDecoder_.decode(new Uint8Array(ve));else if(w){let be=Oe(ve);re=String.fromCharCode(parseInt(be,16))}else re=Rn(U|q);return G.pendingNewLine&&!G.isEmpty()&&G.newLine(this.getPts(d)),G.pendingNewLine=!1,G.addText(re),d},He.prototype.multiByteCharacter=function(d,m){var y=this.current708Packet.data,_=y[d+1],w=y[d+2];return At(_)&&At(w)&&(d=this.handleText(++d,m,{isMultiByte:!0})),d},He.prototype.setCurrentWindow=function(d,m){var y=this.current708Packet.data,_=y[d],w=_&7;return m.setCurrentWindow(w),d},He.prototype.defineWindow=function(d,m){var y=this.current708Packet.data,_=y[d],w=_&7;m.setCurrentWindow(w);var P=m.currentWindow;return _=y[++d],P.visible=(_&32)>>5,P.rowLock=(_&16)>>4,P.columnLock=(_&8)>>3,P.priority=_&7,_=y[++d],P.relativePositioning=(_&128)>>7,P.anchorVertical=_&127,_=y[++d],P.anchorHorizontal=_,_=y[++d],P.anchorPoint=(_&240)>>4,P.rowCount=_&15,_=y[++d],P.columnCount=_&63,_=y[++d],P.windowStyle=(_&56)>>3,P.penStyle=_&7,P.virtualRowCount=P.rowCount+1,d},He.prototype.setWindowAttributes=function(d,m){var y=this.current708Packet.data,_=y[d],w=m.currentWindow.winAttr;return _=y[++d],w.fillOpacity=(_&192)>>6,w.fillRed=(_&48)>>4,w.fillGreen=(_&12)>>2,w.fillBlue=_&3,_=y[++d],w.borderType=(_&192)>>6,w.borderRed=(_&48)>>4,w.borderGreen=(_&12)>>2,w.borderBlue=_&3,_=y[++d],w.borderType+=(_&128)>>5,w.wordWrap=(_&64)>>6,w.printDirection=(_&48)>>4,w.scrollDirection=(_&12)>>2,w.justify=_&3,_=y[++d],w.effectSpeed=(_&240)>>4,w.effectDirection=(_&12)>>2,w.displayEffect=_&3,d},He.prototype.flushDisplayed=function(d,m){for(var y=[],_=0;_<8;_++)m.windows[_].visible&&!m.windows[_].isEmpty()&&y.push(m.windows[_].getText());m.endPts=d,m.text=y.join(`
189
190`),this.pushCaption(m),m.startPts=d},He.prototype.pushCaption=function(d){d.text!==""&&(this.trigger("data",{startPts:d.startPts,endPts:d.endPts,text:d.text,stream:"cc708_"+d.serviceNum}),d.text="",d.startPts=d.endPts)},He.prototype.displayWindows=function(d,m){var y=this.current708Packet.data,_=y[++d],w=this.getPts(d);this.flushDisplayed(w,m);for(var P=0;P<8;P++)_&1<<P&&(m.windows[P].visible=1);return d},He.prototype.hideWindows=function(d,m){var y=this.current708Packet.data,_=y[++d],w=this.getPts(d);this.flushDisplayed(w,m);for(var P=0;P<8;P++)_&1<<P&&(m.windows[P].visible=0);return d},He.prototype.toggleWindows=function(d,m){var y=this.current708Packet.data,_=y[++d],w=this.getPts(d);this.flushDisplayed(w,m);for(var P=0;P<8;P++)_&1<<P&&(m.windows[P].visible^=1);return d},He.prototype.clearWindows=function(d,m){var y=this.current708Packet.data,_=y[++d],w=this.getPts(d);this.flushDisplayed(w,m);for(var P=0;P<8;P++)_&1<<P&&m.windows[P].clearText();return d},He.prototype.deleteWindows=function(d,m){var y=this.current708Packet.data,_=y[++d],w=this.getPts(d);this.flushDisplayed(w,m);for(var P=0;P<8;P++)_&1<<P&&m.windows[P].reset();return d},He.prototype.setPenAttributes=function(d,m){var y=this.current708Packet.data,_=y[d],w=m.currentWindow.penAttr;return _=y[++d],w.textTag=(_&240)>>4,w.offset=(_&12)>>2,w.penSize=_&3,_=y[++d],w.italics=(_&128)>>7,w.underline=(_&64)>>6,w.edgeType=(_&56)>>3,w.fontStyle=_&7,d},He.prototype.setPenColor=function(d,m){var y=this.current708Packet.data,_=y[d],w=m.currentWindow.penColor;return _=y[++d],w.fgOpacity=(_&192)>>6,w.fgRed=(_&48)>>4,w.fgGreen=(_&12)>>2,w.fgBlue=_&3,_=y[++d],w.bgOpacity=(_&192)>>6,w.bgRed=(_&48)>>4,w.bgGreen=(_&12)>>2,w.bgBlue=_&3,_=y[++d],w.edgeRed=(_&48)>>4,w.edgeGreen=(_&12)>>2,w.edgeBlue=_&3,d},He.prototype.setPenLocation=function(d,m){var y=this.current708Packet.data,_=y[d],w=m.currentWindow.penLoc;return m.currentWindow.pendingNewLine=!0,_=y[++d],w.row=_&15,_=y[++d],w.column=_&63,d},He.prototype.reset=function(d,m){var y=this.getPts(d);return this.flushDisplayed(y,m),this.initService(m.serviceNum,d)};var Ir={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},Er=function(d){return d===null?"":(d=Ir[d]||d,String.fromCharCode(d))},kr=14,ii=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ar=function(){for(var d=[],m=kr+1;m--;)d.push({text:"",indent:0,offset:0});return d},Pt=function(d,m){Pt.prototype.init.call(this),this.field_=d||0,this.dataChannel_=m||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(y){var _,w,P,U,q;if(_=y.ccData&32639,_===this.lastControlCode_){this.lastControlCode_=null;return}if((_&61440)===4096?this.lastControlCode_=_:_!==this.PADDING_&&(this.lastControlCode_=null),P=_>>>8,U=_&255,_!==this.PADDING_)if(_===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(_===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(y.pts),this.flushDisplayed(y.pts),w=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=w,this.startPts_=y.pts;else if(_===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(y.pts);else if(_===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(y.pts);else if(_===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(y.pts);else if(_===this.CARRIAGE_RETURN_)this.clearFormatting(y.pts),this.flushDisplayed(y.pts),this.shiftRowsUp_(),this.startPts_=y.pts;else if(_===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(_===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(y.pts),this.displayed_=Ar();else if(_===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ar();else if(_===this.RESUME_DIRECT_CAPTIONING_)this.mode_!=="paintOn"&&(this.flushDisplayed(y.pts),this.displayed_=Ar()),this.mode_="paintOn",this.startPts_=y.pts;else if(this.isSpecialCharacter(P,U))P=(P&3)<<8,q=Er(P|U),this[this.mode_](y.pts,q),this.column_++;else if(this.isExtCharacter(P,U))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),P=(P&3)<<8,q=Er(P|U),this[this.mode_](y.pts,q),this.column_++;else if(this.isMidRowCode(P,U))this.clearFormatting(y.pts),this[this.mode_](y.pts," "),this.column_++,(U&14)===14&&this.addFormatting(y.pts,["i"]),(U&1)===1&&this.addFormatting(y.pts,["u"]);else if(this.isOffsetControlCode(P,U)){let G=U&3;this.nonDisplayed_[this.row_].offset=G,this.column_+=G}else if(this.isPAC(P,U)){var z=ii.indexOf(_&7968);if(this.mode_==="rollUp"&&(z-this.rollUpRows_+1<0&&(z=this.rollUpRows_-1),this.setRollUp(y.pts,z)),z!==this.row_&&z>=0&&z<=14&&(this.clearFormatting(y.pts),this.row_=z),U&1&&this.formatting_.indexOf("u")===-1&&this.addFormatting(y.pts,["u"]),(_&16)===16){let G=(_&14)>>1;this.column_=G*4,this.nonDisplayed_[this.row_].indent+=G}this.isColorPAC(U)&&(U&14)===14&&this.addFormatting(y.pts,["i"])}else this.isNormalChar(P)&&(U===0&&(U=null),q=Er(P),q+=Er(U),this[this.mode_](y.pts,q),this.column_+=q.length)}};Pt.prototype=new Ii,Pt.prototype.flushDisplayed=function(d){let m=_=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+_+"."})},y=[];this.displayed_.forEach((_,w)=>{if(_&&_.text&&_.text.length){try{_.text=_.text.trim()}catch{m(w)}_.text.length&&y.push({text:_.text,line:w+1,position:10+Math.min(70,_.indent*10)+_.offset*2.5})}else _==null&&m(w)}),y.length&&this.trigger("data",{startPts:this.startPts_,endPts:d,content:y,stream:this.name_})},Pt.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_=kr,this.rollUpRows_=2,this.formatting_=[]},Pt.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},Pt.prototype.isSpecialCharacter=function(d,m){return d===this.EXT_&&m>=48&&m<=63},Pt.prototype.isExtCharacter=function(d,m){return(d===this.EXT_+1||d===this.EXT_+2)&&m>=32&&m<=63},Pt.prototype.isMidRowCode=function(d,m){return d===this.EXT_&&m>=32&&m<=47},Pt.prototype.isOffsetControlCode=function(d,m){return d===this.OFFSET_&&m>=33&&m<=35},Pt.prototype.isPAC=function(d,m){return d>=this.BASE_&&d<this.BASE_+8&&m>=64&&m<=127},Pt.prototype.isColorPAC=function(d){return d>=64&&d<=79||d>=96&&d<=127},Pt.prototype.isNormalChar=function(d){return d>=32&&d<=127},Pt.prototype.setRollUp=function(d,m){if(this.mode_!=="rollUp"&&(this.row_=kr,this.mode_="rollUp",this.flushDisplayed(d),this.nonDisplayed_=Ar(),this.displayed_=Ar()),m!==void 0&&m!==this.row_)for(var y=0;y<this.rollUpRows_;y++)this.displayed_[m-y]=this.displayed_[this.row_-y],this.displayed_[this.row_-y]={text:"",indent:0,offset:0};m===void 0&&(m=this.row_),this.topRow_=m-this.rollUpRows_+1},Pt.prototype.addFormatting=function(d,m){this.formatting_=this.formatting_.concat(m);var y=m.reduce(function(_,w){return _+"<"+w+">"},"");this[this.mode_](d,y)},Pt.prototype.clearFormatting=function(d){if(this.formatting_.length){var m=this.formatting_.reverse().reduce(function(y,_){return y+"</"+_+">"},"");this.formatting_=[],this[this.mode_](d,m)}},Pt.prototype.popOn=function(d,m){var y=this.nonDisplayed_[this.row_].text;y+=m,this.nonDisplayed_[this.row_].text=y},Pt.prototype.rollUp=function(d,m){var y=this.displayed_[this.row_].text;y+=m,this.displayed_[this.row_].text=y},Pt.prototype.shiftRowsUp_=function(){var d;for(d=0;d<this.topRow_;d++)this.displayed_[d]={text:"",indent:0,offset:0};for(d=this.row_+1;d<kr+1;d++)this.displayed_[d]={text:"",indent:0,offset:0};for(d=this.topRow_;d<this.row_;d++)this.displayed_[d]=this.displayed_[d+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},Pt.prototype.paintOn=function(d,m){var y=this.displayed_[this.row_].text;y+=m,this.displayed_[this.row_].text=y};var ze={CaptionStream:er,Cea608Stream:Pt,Cea708Stream:He},ut={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},wt=t,_t=8589934592,Il=4294967296,sa="shared",ms=function(d,m){var y=1;for(d>m&&(y=-1);Math.abs(m-d)>Il;)d+=y*_t;return d},aa=function(d){var m,y;aa.prototype.init.call(this),this.type_=d||sa,this.push=function(_){if(_.type==="metadata"){this.trigger("data",_);return}this.type_!==sa&&_.type!==this.type_||(y===void 0&&(y=_.dts),_.dts=ms(_.dts,y),_.pts=ms(_.pts,y),m=_.dts,this.trigger("data",_))},this.flush=function(){y=m,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){y=void 0,m=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};aa.prototype=new wt;var un={TimestampRolloverStream:aa,handleRollover:ms},oa=(d,m,y)=>{if(!d)return-1;for(var _=y;_<d.length;_++)if(d[_]===m)return _;return-1},la={typedArrayIndexOf:oa},de=la.typedArrayIndexOf,Ee={Iso88591:0,Utf16:1,Utf16be:2,Utf8:3},De=function(d,m,y){var _,w="";for(_=m;_<y;_++)w+="%"+("00"+d[_].toString(16)).slice(-2);return w},Qe=function(d,m,y){return decodeURIComponent(De(d,m,y))},Wr=function(d,m,y){return unescape(De(d,m,y))},or=function(d){return d[0]<<21|d[1]<<14|d[2]<<7|d[3]},Nn={APIC:function(d){var m=1,y,_,w="-->";d.data[0]===Ee.Utf8&&(y=de(d.data,0,m),!(y<0)&&(d.mimeType=Wr(d.data,m,y),m=y+1,d.pictureType=d.data[m],m++,_=de(d.data,0,m),!(_<0)&&(d.description=Qe(d.data,m,_),m=_+1,d.mimeType===w?d.url=Wr(d.data,m,d.data.length):d.pictureData=d.data.subarray(m,d.data.length))))},"T*":function(d){d.data[0]===Ee.Utf8&&(d.value=Qe(d.data,1,d.data.length).replace(/\0*$/,""),d.values=d.value.split("\0"))},TXXX:function(d){var m;d.data[0]===Ee.Utf8&&(m=de(d.data,0,1),m!==-1&&(d.description=Qe(d.data,1,m),d.value=Qe(d.data,m+1,d.data.length).replace(/\0*$/,""),d.data=d.value))},"W*":function(d){d.url=Wr(d.data,0,d.data.length).replace(/\0.*$/,"")},WXXX:function(d){var m;d.data[0]===Ee.Utf8&&(m=de(d.data,0,1),m!==-1&&(d.description=Qe(d.data,1,m),d.url=Wr(d.data,m+1,d.data.length).replace(/\0.*$/,"")))},PRIV:function(d){var m;for(m=0;m<d.data.length;m++)if(d.data[m]===0){d.owner=Wr(d.data,0,m);break}d.privateData=d.data.subarray(m+1),d.data=d.privateData}},Rp=function(d){var m,y,_=10,w=0,P=[];if(!(d.length<10||d[0]!==73||d[1]!==68||d[2]!==51)){w=or(d.subarray(6,10)),w+=10;var U=d[5]&64;U&&(_+=4,_+=or(d.subarray(10,14)),w-=or(d.subarray(16,20)));do{if(m=or(d.subarray(_+4,_+8)),m<1)break;y=String.fromCharCode(d[_],d[_+1],d[_+2],d[_+3]);var q={id:y,data:d.subarray(_+10,_+m+10)};q.key=q.id,Nn[q.id]?Nn[q.id](q):q.id[0]==="T"?Nn["T*"](q):q.id[0]==="W"&&Nn["W*"](q),P.push(q),_+=10,_+=m}while(_<w);return P}},Wb={parseId3Frames:Rp,parseSyncSafeInteger:or,frameParsers:Nn},SL=t,xL=ut,gs=Wb,Ic;Ic=function(d){var m={descriptor:d&&d.descriptor},y=0,_=[],w=0,P;if(Ic.prototype.init.call(this),this.dispatchType=xL.METADATA_STREAM_TYPE.toString(16),m.descriptor)for(P=0;P<m.descriptor.length;P++)this.dispatchType+=("00"+m.descriptor[P].toString(16)).slice(-2);this.push=function(U){var q,z,G,re,ve,Oe;if(U.type==="timed-metadata"){if(U.dataAlignmentIndicator&&(w=0,_.length=0),_.length===0&&(U.data.length<10||U.data[0]!==73||U.data[1]!==68||U.data[2]!==51)){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(_.push(U),w+=U.data.byteLength,_.length===1&&(y=gs.parseSyncSafeInteger(U.data.subarray(6,10)),y+=10),!(w<y)){for(q={data:new Uint8Array(y),frames:[],pts:_[0].pts,dts:_[0].dts},ve=0;ve<y;)q.data.set(_[0].data.subarray(0,y-ve),ve),ve+=_[0].data.byteLength,w-=_[0].data.byteLength,_.shift();z=10,q.data[5]&64&&(z+=4,z+=gs.parseSyncSafeInteger(q.data.subarray(10,14)),y-=gs.parseSyncSafeInteger(q.data.subarray(16,20)));do{if(G=gs.parseSyncSafeInteger(q.data.subarray(z+4,z+8)),G<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(Oe=String.fromCharCode(q.data[z],q.data[z+1],q.data[z+2],q.data[z+3]),re={id:Oe,data:q.data.subarray(z+10,z+G+10)},re.key=re.id,gs.frameParsers[re.id]?gs.frameParsers[re.id](re):re.id[0]==="T"?gs.frameParsers["T*"](re):re.id[0]==="W"&&gs.frameParsers["W*"](re),re.owner==="com.apple.streaming.transportStreamTimestamp"){var be=re.data,Ve=(be[3]&1)<<30|be[4]<<22|be[5]<<14|be[6]<<6|be[7]>>>2;Ve*=4,Ve+=be[7]&3,re.timeStamp=Ve,q.pts===void 0&&q.dts===void 0&&(q.pts=re.timeStamp,q.dts=re.timeStamp),this.trigger("timestamp",re)}q.frames.push(re),z+=10,z+=G}while(z<y);this.trigger("data",q)}}}},Ic.prototype=new SL;var wL=Ic,Np=t,Mp=ze,Wi=ut,CL=un.TimestampRolloverStream,Oc,Ol,Lc,oo=188,Bp=71;Oc=function(){var d=new Uint8Array(oo),m=0;Oc.prototype.init.call(this),this.push=function(y){var _=0,w=oo,P;for(m?(P=new Uint8Array(y.byteLength+m),P.set(d.subarray(0,m)),P.set(y,m),m=0):P=y;w<P.byteLength;){if(P[_]===Bp&&P[w]===Bp){this.trigger("data",P.subarray(_,w)),_+=oo,w+=oo;continue}_++,w++}_<P.byteLength&&(d.set(P.subarray(_),0),m=P.byteLength-_)},this.flush=function(){m===oo&&d[0]===Bp&&(this.trigger("data",d),m=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){m=0,this.trigger("reset")}},Oc.prototype=new Np,Ol=function(){var d,m,y,_;Ol.prototype.init.call(this),_=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,d=function(w,P){var U=0;P.payloadUnitStartIndicator&&(U+=w[U]+1),P.type==="pat"?m(w.subarray(U),P):y(w.subarray(U),P)},m=function(w,P){P.section_number=w[7],P.last_section_number=w[8],_.pmtPid=(w[10]&31)<<8|w[11],P.pmtPid=_.pmtPid},y=function(w,P){var U,q,z,G;if(w[5]&1){for(_.programMapTable={video:null,audio:null,"timed-metadata":{}},U=(w[1]&15)<<8|w[2],q=3+U-4,z=(w[10]&15)<<8|w[11],G=12+z;G<q;){var re=w[G],ve=(w[G+1]&31)<<8|w[G+2];re===Wi.H264_STREAM_TYPE&&_.programMapTable.video===null?_.programMapTable.video=ve:re===Wi.ADTS_STREAM_TYPE&&_.programMapTable.audio===null?_.programMapTable.audio=ve:re===Wi.METADATA_STREAM_TYPE&&(_.programMapTable["timed-metadata"][ve]=re),G+=((w[G+3]&15)<<8|w[G+4])+5}P.programMapTable=_.programMapTable}},this.push=function(w){var P={},U=4;if(P.payloadUnitStartIndicator=!!(w[1]&64),P.pid=w[1]&31,P.pid<<=8,P.pid|=w[2],(w[3]&48)>>>4>1&&(U+=w[U]+1),P.pid===0)P.type="pat",d(w.subarray(U),P),this.trigger("data",P);else if(P.pid===this.pmtPid)for(P.type="pmt",d(w.subarray(U),P),this.trigger("data",P);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else this.programMapTable===void 0?this.packetsWaitingForPmt.push([w,U,P]):this.processPes_(w,U,P)},this.processPes_=function(w,P,U){U.pid===this.programMapTable.video?U.streamType=Wi.H264_STREAM_TYPE:U.pid===this.programMapTable.audio?U.streamType=Wi.ADTS_STREAM_TYPE:U.streamType=this.programMapTable["timed-metadata"][U.pid],U.type="pes",U.data=w.subarray(P),this.trigger("data",U)}},Ol.prototype=new Np,Ol.STREAM_TYPES={h264:27,adts:15},Lc=function(){var d=this,m=!1,y={data:[],size:0},_={data:[],size:0},w={data:[],size:0},P,U=function(z,G){var re;let ve=z[0]<<16|z[1]<<8|z[2];G.data=new Uint8Array,ve===1&&(G.packetLength=6+(z[4]<<8|z[5]),G.dataAlignmentIndicator=(z[6]&4)!==0,re=z[7],re&192&&(G.pts=(z[9]&14)<<27|(z[10]&255)<<20|(z[11]&254)<<12|(z[12]&255)<<5|(z[13]&254)>>>3,G.pts*=4,G.pts+=(z[13]&6)>>>1,G.dts=G.pts,re&64&&(G.dts=(z[14]&14)<<27|(z[15]&255)<<20|(z[16]&254)<<12|(z[17]&255)<<5|(z[18]&254)>>>3,G.dts*=4,G.dts+=(z[18]&6)>>>1)),G.data=z.subarray(9+z[8]))},q=function(z,G,re){var ve=new Uint8Array(z.size),Oe={type:G},be=0,Ve=0,tt=!1,gr;if(!(!z.data.length||z.size<9)){for(Oe.trackId=z.data[0].pid,be=0;be<z.data.length;be++)gr=z.data[be],ve.set(gr.data,Ve),Ve+=gr.data.byteLength;U(ve,Oe),tt=G==="video"||Oe.packetLength<=z.size,(re||tt)&&(z.size=0,z.data.length=0),tt&&d.trigger("data",Oe)}};Lc.prototype.init.call(this),this.push=function(z){({pat:function(){},pes:function(){var G,re;switch(z.streamType){case Wi.H264_STREAM_TYPE:G=y,re="video";break;case Wi.ADTS_STREAM_TYPE:G=_,re="audio";break;case Wi.METADATA_STREAM_TYPE:G=w,re="timed-metadata";break;default:return}z.payloadUnitStartIndicator&&q(G,re,!0),G.data.push(z),G.size+=z.data.byteLength},pmt:function(){var G={type:"metadata",tracks:[]};P=z.programMapTable,P.video!==null&&G.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+P.video,codec:"avc",type:"video"}),P.audio!==null&&G.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+P.audio,codec:"adts",type:"audio"}),m=!0,d.trigger("data",G)}})[z.type]()},this.reset=function(){y.size=0,y.data.length=0,_.size=0,_.data.length=0,this.trigger("reset")},this.flushStreams_=function(){q(y,"video"),q(_,"audio"),q(w,"timed-metadata")},this.flush=function(){if(!m&&P){var z={type:"metadata",tracks:[]};P.video!==null&&z.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+P.video,codec:"avc",type:"video"}),P.audio!==null&&z.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+P.audio,codec:"adts",type:"audio"}),d.trigger("data",z)}m=!1,this.flushStreams_(),this.trigger("done")}},Lc.prototype=new Np;var Gb={PAT_PID:0,MP2T_PACKET_LENGTH:oo,TransportPacketStream:Oc,TransportParseStream:Ol,ElementaryStream:Lc,TimestampRolloverStream:CL,CaptionStream:Mp.CaptionStream,Cea608Stream:Mp.Cea608Stream,Cea708Stream:Mp.Cea708Stream,MetadataStream:wL};for(var $p in Wi)Wi.hasOwnProperty($p)&&(Gb[$p]=Wi[$p]);var EL=Gb,kL=t,AL=fe.ONE_SECOND_IN_TS,Rc,Qb=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];Rc=function(d){var m,y=0;Rc.prototype.init.call(this),this.skipWarn_=function(_,w){this.trigger("log",{level:"warn",message:`adts skiping bytes ${_} to ${w} in frame ${y} outside syncword`})},this.push=function(_){var w=0,P,U,q,z,G;if(d||(y=0),_.type==="audio"){m&&m.length?(q=m,m=new Uint8Array(q.byteLength+_.data.byteLength),m.set(q),m.set(_.data,q.byteLength)):m=_.data;for(var re;w+7<m.length;){if(m[w]!==255||(m[w+1]&246)!==240){typeof re!="number"&&(re=w),w++;continue}if(typeof re=="number"&&(this.skipWarn_(re,w),re=null),U=(~m[w+1]&1)*2,P=(m[w+3]&3)<<11|m[w+4]<<3|(m[w+5]&224)>>5,z=((m[w+6]&3)+1)*1024,G=z*AL/Qb[(m[w+2]&60)>>>2],m.byteLength-w<P)break;this.trigger("data",{pts:_.pts+y*G,dts:_.dts+y*G,sampleCount:z,audioobjecttype:(m[w+2]>>>6&3)+1,channelcount:(m[w+2]&1)<<2|(m[w+3]&192)>>>6,samplerate:Qb[(m[w+2]&60)>>>2],samplingfrequencyindex:(m[w+2]&60)>>>2,samplesize:16,data:m.subarray(w+7+U,w+P)}),y++,w+=P}typeof re=="number"&&(this.skipWarn_(re,w),re=null),m=m.subarray(w)}},this.flush=function(){y=0,this.trigger("done")},this.reset=function(){m=void 0,this.trigger("reset")},this.endTimeline=function(){m=void 0,this.trigger("endedtimeline")}},Rc.prototype=new kL;var PL=Rc,Kb;Kb=function(d){var m=d.byteLength,y=0,_=0;this.length=function(){return 8*m},this.bitsAvailable=function(){return 8*m+_},this.loadWord=function(){var w=d.byteLength-m,P=new Uint8Array(4),U=Math.min(4,m);if(U===0)throw new Error("no bytes available");P.set(d.subarray(w,w+U)),y=new DataView(P.buffer).getUint32(0),_=U*8,m-=U},this.skipBits=function(w){var P;_>w?(y<<=w,_-=w):(w-=_,P=Math.floor(w/8),w-=P*8,m-=P,this.loadWord(),y<<=w,_-=w)},this.readBits=function(w){var P=Math.min(_,w),U=y>>>32-P;return _-=P,_>0?y<<=P:m>0&&this.loadWord(),P=w-P,P>0?U<<P|this.readBits(P):U},this.skipLeadingZeros=function(){var w;for(w=0;w<_;++w)if(y&2147483648>>>w)return y<<=w,_-=w,w;return this.loadWord(),w+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var w=this.skipLeadingZeros();return this.readBits(w+1)-1},this.readExpGolomb=function(){var w=this.readUnsignedExpGolomb();return 1&w?1+w>>>1:-1*(w>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var DL=Kb,Xb=t,IL=DL,Nc,Ll,Yb;Ll=function(){var d=0,m,y;Ll.prototype.init.call(this),this.push=function(_){var w;y?(w=new Uint8Array(y.byteLength+_.data.byteLength),w.set(y),w.set(_.data,y.byteLength),y=w):y=_.data;for(var P=y.byteLength;d<P-3;d++)if(y[d+2]===1){m=d+5;break}for(;m<P;)switch(y[m]){case 0:if(y[m-1]!==0){m+=2;break}else if(y[m-2]!==0){m++;break}d+3!==m-2&&this.trigger("data",y.subarray(d+3,m-2));do m++;while(y[m]!==1&&m<P);d=m-2,m+=3;break;case 1:if(y[m-1]!==0||y[m-2]!==0){m+=3;break}this.trigger("data",y.subarray(d+3,m-2)),d=m-2,m+=3;break;default:m+=3;break}y=y.subarray(d),m-=d,d=0},this.reset=function(){y=null,d=0,this.trigger("reset")},this.flush=function(){y&&y.byteLength>3&&this.trigger("data",y.subarray(d+3)),y=null,d=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},Ll.prototype=new Xb,Yb={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Nc=function(){var d=new Ll,m,y,_,w,P,U,q;Nc.prototype.init.call(this),m=this,this.push=function(z){z.type==="video"&&(y=z.trackId,_=z.pts,w=z.dts,d.push(z))},d.on("data",function(z){var G={trackId:y,pts:_,dts:w,data:z,nalUnitTypeCode:z[0]&31};switch(G.nalUnitTypeCode){case 5:G.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:G.nalUnitType="sei_rbsp",G.escapedRBSP=P(z.subarray(1));break;case 7:G.nalUnitType="seq_parameter_set_rbsp",G.escapedRBSP=P(z.subarray(1)),G.config=U(G.escapedRBSP);break;case 8:G.nalUnitType="pic_parameter_set_rbsp";break;case 9:G.nalUnitType="access_unit_delimiter_rbsp";break}m.trigger("data",G)}),d.on("done",function(){m.trigger("done")}),d.on("partialdone",function(){m.trigger("partialdone")}),d.on("reset",function(){m.trigger("reset")}),d.on("endedtimeline",function(){m.trigger("endedtimeline")}),this.flush=function(){d.flush()},this.partialFlush=function(){d.partialFlush()},this.reset=function(){d.reset()},this.endTimeline=function(){d.endTimeline()},q=function(z,G){var re=8,ve=8,Oe,be;for(Oe=0;Oe<z;Oe++)ve!==0&&(be=G.readExpGolomb(),ve=(re+be+256)%256),re=ve===0?re:ve},P=function(z){for(var G=z.byteLength,re=[],ve=1,Oe,be;ve<G-2;)z[ve]===0&&z[ve+1]===0&&z[ve+2]===3?(re.push(ve+2),ve+=2):ve++;if(re.length===0)return z;Oe=G-re.length,be=new Uint8Array(Oe);var Ve=0;for(ve=0;ve<Oe;Ve++,ve++)Ve===re[0]&&(Ve++,re.shift()),be[ve]=z[Ve];return be},U=function(z){var G=0,re=0,ve=0,Oe=0,be,Ve,tt,gr,gi,bs,ql,Hl,Vl,jl,Gc,Ft=[1,1],zl,Qi;if(be=new IL(z),Ve=be.readUnsignedByte(),gr=be.readUnsignedByte(),tt=be.readUnsignedByte(),be.skipUnsignedExpGolomb(),Yb[Ve]&&(gi=be.readUnsignedExpGolomb(),gi===3&&be.skipBits(1),be.skipUnsignedExpGolomb(),be.skipUnsignedExpGolomb(),be.skipBits(1),be.readBoolean()))for(Gc=gi!==3?8:12,Qi=0;Qi<Gc;Qi++)be.readBoolean()&&(Qi<6?q(16,be):q(64,be));if(be.skipUnsignedExpGolomb(),bs=be.readUnsignedExpGolomb(),bs===0)be.readUnsignedExpGolomb();else if(bs===1)for(be.skipBits(1),be.skipExpGolomb(),be.skipExpGolomb(),ql=be.readUnsignedExpGolomb(),Qi=0;Qi<ql;Qi++)be.skipExpGolomb();if(be.skipUnsignedExpGolomb(),be.skipBits(1),Hl=be.readUnsignedExpGolomb(),Vl=be.readUnsignedExpGolomb(),jl=be.readBits(1),jl===0&&be.skipBits(1),be.skipBits(1),be.readBoolean()&&(G=be.readUnsignedExpGolomb(),re=be.readUnsignedExpGolomb(),ve=be.readUnsignedExpGolomb(),Oe=be.readUnsignedExpGolomb()),be.readBoolean()&&be.readBoolean()){switch(zl=be.readUnsignedByte(),zl){case 1:Ft=[1,1];break;case 2:Ft=[12,11];break;case 3:Ft=[10,11];break;case 4:Ft=[16,11];break;case 5:Ft=[40,33];break;case 6:Ft=[24,11];break;case 7:Ft=[20,11];break;case 8:Ft=[32,11];break;case 9:Ft=[80,33];break;case 10:Ft=[18,11];break;case 11:Ft=[15,11];break;case 12:Ft=[64,33];break;case 13:Ft=[160,99];break;case 14:Ft=[4,3];break;case 15:Ft=[3,2];break;case 16:Ft=[2,1];break;case 255:{Ft=[be.readUnsignedByte()<<8|be.readUnsignedByte(),be.readUnsignedByte()<<8|be.readUnsignedByte()];break}}Ft&&Ft[0]/Ft[1]}return{profileIdc:Ve,levelIdc:tt,profileCompatibility:gr,width:(Hl+1)*16-G*2-re*2,height:(2-jl)*(Vl+1)*16-ve*2-Oe*2,sarRatio:Ft}}},Nc.prototype=new Xb;var OL={H264Stream:Nc,NalByteStream:Ll},LL=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Jb=function(d,m){var y=d[m+6]<<21|d[m+7]<<14|d[m+8]<<7|d[m+9],_=d[m+5],w=(_&16)>>4;return y=y>=0?y:0,w?y+20:y+10},Zb=function(d,m){return d.length-m<10||d[m]!==73||d[m+1]!==68||d[m+2]!==51?m:(m+=Jb(d,m),Zb(d,m))},RL=function(d){var m=Zb(d,0);return d.length>=m+2&&(d[m]&255)===255&&(d[m+1]&240)===240&&(d[m+1]&22)===16},e_=function(d){return d[0]<<21|d[1]<<14|d[2]<<7|d[3]},NL=function(d,m,y){var _,w="";for(_=m;_<y;_++)w+="%"+("00"+d[_].toString(16)).slice(-2);return w},ML=function(d,m,y){return unescape(NL(d,m,y))},BL=function(d,m){var y=(d[m+5]&224)>>5,_=d[m+4]<<3,w=d[m+3]&6144;return w|_|y},$L=function(d,m){return d[m]===73&&d[m+1]===68&&d[m+2]===51?"timed-metadata":d[m]&!0&&(d[m+1]&240)===240?"audio":null},FL=function(d){for(var m=0;m+5<d.length;){if(d[m]!==255||(d[m+1]&246)!==240){m++;continue}return LL[(d[m+2]&60)>>>2]}return null},UL=function(d){var m,y,_,w;m=10,d[5]&64&&(m+=4,m+=e_(d.subarray(10,14)));do{if(y=e_(d.subarray(m+4,m+8)),y<1)return null;if(w=String.fromCharCode(d[m],d[m+1],d[m+2],d[m+3]),w==="PRIV"){_=d.subarray(m+10,m+y+10);for(var P=0;P<_.byteLength;P++)if(_[P]===0){var U=ML(_,0,P);if(U==="com.apple.streaming.transportStreamTimestamp"){var q=_.subarray(P+1),z=(q[3]&1)<<30|q[4]<<22|q[5]<<14|q[6]<<6|q[7]>>>2;return z*=4,z+=q[7]&3,z}break}}m+=10,m+=y}while(m<d.byteLength);return null},Fp={isLikelyAacData:RL,parseId3TagSize:Jb,parseAdtsSize:BL,parseType:$L,parseSampleRate:FL,parseAacTimestamp:UL},qL=t,t_=Fp,Mc;Mc=function(){var d=new Uint8Array,m=0;Mc.prototype.init.call(this),this.setTimestamp=function(y){m=y},this.push=function(y){var _=0,w=0,P,U,q,z;for(d.length?(z=d.length,d=new Uint8Array(y.byteLength+z),d.set(d.subarray(0,z)),d.set(y,z)):d=y;d.length-w>=3;){if(d[w]===73&&d[w+1]===68&&d[w+2]===51){if(d.length-w<10||(_=t_.parseId3TagSize(d,w),w+_>d.length))break;U={type:"timed-metadata",data:d.subarray(w,w+_)},this.trigger("data",U),w+=_;continue}else if((d[w]&255)===255&&(d[w+1]&240)===240){if(d.length-w<7||(_=t_.parseAdtsSize(d,w),w+_>d.length))break;q={type:"audio",data:d.subarray(w,w+_),pts:m,dts:m},this.trigger("data",q),w+=_;continue}w++}P=d.length-w,P>0?d=d.subarray(w):d=new Uint8Array},this.reset=function(){d=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){d=new Uint8Array,this.trigger("endedtimeline")}},Mc.prototype=new qL;var HL=Mc,VL=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],jL=VL,zL=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],WL=zL,Bc=t,Rl=We,Nl=Jt,$c=Ai,Gi=zr,Mn=EL,Fc=fe,r_=PL,GL=OL.H264Stream,QL=HL,KL=Fp.isLikelyAacData,XL=fe.ONE_SECOND_IN_TS,Up=jL,qp=WL,Ml,lo,Uc,ua,YL=function(d,m){m.stream=d,this.trigger("log",m)},i_=function(d,m){for(var y=Object.keys(m),_=0;_<y.length;_++){var w=y[_];w==="headOfPipeline"||!m[w].on||m[w].on("log",YL.bind(d,w))}},n_=function(d,m){var y;if(d.length!==m.length)return!1;for(y=0;y<d.length;y++)if(d[y]!==m[y])return!1;return!0},Hp=function(d,m,y,_,w,P){var U=y-m,q=_-m,z=w-y;return{start:{dts:d,pts:d+U},end:{dts:d+q,pts:d+z},prependedContentDuration:P,baseMediaDecodeTime:d}};lo=function(d,m){var y=[],_,w=0,P=0,U=1/0;m=m||{},_=m.firstSequenceNumber||0,lo.prototype.init.call(this),this.push=function(q){Gi.collectDtsInfo(d,q),d&&Up.forEach(function(z){d[z]=q[z]}),y.push(q)},this.setEarliestDts=function(q){w=q},this.setVideoBaseMediaDecodeTime=function(q){U=q},this.setAudioAppendStart=function(q){P=q},this.flush=function(){var q,z,G,re,ve,Oe,be;if(y.length===0){this.trigger("done","AudioSegmentStream");return}q=$c.trimAdtsFramesByEarliestDts(y,d,w),d.baseMediaDecodeTime=Gi.calculateTrackBaseMediaDecodeTime(d,m.keepOriginalTimestamps),be=$c.prefixWithSilence(d,q,P,U),d.samples=$c.generateSampleTable(q),G=Rl.mdat($c.concatenateFrameData(q)),y=[],z=Rl.moof(_,[d]),re=new Uint8Array(z.byteLength+G.byteLength),_++,re.set(z),re.set(G,z.byteLength),Gi.clearDtsInfo(d),ve=Math.ceil(XL*1024/d.samplerate),q.length&&(Oe=q.length*ve,this.trigger("segmentTimingInfo",Hp(Fc.audioTsToVideoTs(d.baseMediaDecodeTime,d.samplerate),q[0].dts,q[0].pts,q[0].dts+Oe,q[0].pts+Oe,be||0)),this.trigger("timingInfo",{start:q[0].pts,end:q[0].pts+Oe})),this.trigger("data",{track:d,boxes:re}),this.trigger("done","AudioSegmentStream")},this.reset=function(){Gi.clearDtsInfo(d),y=[],this.trigger("reset")}},lo.prototype=new Bc,Ml=function(d,m){var y,_=[],w=[],P,U;m=m||{},y=m.firstSequenceNumber||0,Ml.prototype.init.call(this),delete d.minPTS,this.gopCache_=[],this.push=function(q){Gi.collectDtsInfo(d,q),q.nalUnitType==="seq_parameter_set_rbsp"&&!P&&(P=q.config,d.sps=[q.data],qp.forEach(function(z){d[z]=P[z]},this)),q.nalUnitType==="pic_parameter_set_rbsp"&&!U&&(U=q.data,d.pps=[q.data]),_.push(q)},this.flush=function(){for(var q,z,G,re,ve,Oe,be=0,Ve,tt;_.length&&_[0].nalUnitType!=="access_unit_delimiter_rbsp";)_.shift();if(_.length===0){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(q=Nl.groupNalsIntoFrames(_),G=Nl.groupFramesIntoGops(q),G[0][0].keyFrame||(z=this.getGopForFusion_(_[0],d),z?(be=z.duration,G.unshift(z),G.byteLength+=z.byteLength,G.nalCount+=z.nalCount,G.pts=z.pts,G.dts=z.dts,G.duration+=z.duration):G=Nl.extendFirstKeyFrame(G)),w.length){var gr;if(m.alignGopsAtEnd?gr=this.alignGopsAtEnd_(G):gr=this.alignGopsAtStart_(G),!gr){this.gopCache_.unshift({gop:G.pop(),pps:d.pps,sps:d.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),_=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}Gi.clearDtsInfo(d),G=gr}Gi.collectDtsInfo(d,G),d.samples=Nl.generateSampleTable(G),ve=Rl.mdat(Nl.concatenateNalData(G)),d.baseMediaDecodeTime=Gi.calculateTrackBaseMediaDecodeTime(d,m.keepOriginalTimestamps),this.trigger("processedGopsInfo",G.map(function(gi){return{pts:gi.pts,dts:gi.dts,byteLength:gi.byteLength}})),Ve=G[0],tt=G[G.length-1],this.trigger("segmentTimingInfo",Hp(d.baseMediaDecodeTime,Ve.dts,Ve.pts,tt.dts+tt.duration,tt.pts+tt.duration,be)),this.trigger("timingInfo",{start:G[0].pts,end:G[G.length-1].pts+G[G.length-1].duration}),this.gopCache_.unshift({gop:G.pop(),pps:d.pps,sps:d.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),_=[],this.trigger("baseMediaDecodeTime",d.baseMediaDecodeTime),this.trigger("timelineStartInfo",d.timelineStartInfo),re=Rl.moof(y,[d]),Oe=new Uint8Array(re.byteLength+ve.byteLength),y++,Oe.set(re),Oe.set(ve,re.byteLength),this.trigger("data",{track:d,boxes:Oe}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),_=[],this.gopCache_.length=0,w.length=0,this.trigger("reset")},this.resetStream_=function(){Gi.clearDtsInfo(d),P=void 0,U=void 0},this.getGopForFusion_=function(q){var z=45e3,G=1e4,re=1/0,ve,Oe,be,Ve,tt;for(tt=0;tt<this.gopCache_.length;tt++)Ve=this.gopCache_[tt],be=Ve.gop,!(!(d.pps&&n_(d.pps[0],Ve.pps[0]))||!(d.sps&&n_(d.sps[0],Ve.sps[0])))&&(be.dts<d.timelineStartInfo.dts||(ve=q.dts-be.dts-be.duration,ve>=-G&&ve<=z&&(!Oe||re>ve)&&(Oe=Ve,re=ve)));return Oe?Oe.gop:null},this.alignGopsAtStart_=function(q){var z,G,re,ve,Oe,be,Ve,tt;for(Oe=q.byteLength,be=q.nalCount,Ve=q.duration,z=G=0;z<w.length&&G<q.length&&(re=w[z],ve=q[G],re.pts!==ve.pts);){if(ve.pts>re.pts){z++;continue}G++,Oe-=ve.byteLength,be-=ve.nalCount,Ve-=ve.duration}return G===0?q:G===q.length?null:(tt=q.slice(G),tt.byteLength=Oe,tt.duration=Ve,tt.nalCount=be,tt.pts=tt[0].pts,tt.dts=tt[0].dts,tt)},this.alignGopsAtEnd_=function(q){var z,G,re,ve,Oe,be;for(z=w.length-1,G=q.length-1,Oe=null,be=!1;z>=0&&G>=0;){if(re=w[z],ve=q[G],re.pts===ve.pts){be=!0;break}if(re.pts>ve.pts){z--;continue}z===w.length-1&&(Oe=G),G--}if(!be&&Oe===null)return null;var Ve;if(be?Ve=G:Ve=Oe,Ve===0)return q;var tt=q.slice(Ve),gr=tt.reduce(function(gi,bs){return gi.byteLength+=bs.byteLength,gi.duration+=bs.duration,gi.nalCount+=bs.nalCount,gi},{byteLength:0,duration:0,nalCount:0});return tt.byteLength=gr.byteLength,tt.duration=gr.duration,tt.nalCount=gr.nalCount,tt.pts=tt[0].pts,tt.dts=tt[0].dts,tt},this.alignGopsWith=function(q){w=q}},Ml.prototype=new Bc,ua=function(d,m){this.numberOfTracks=0,this.metadataStream=m,d=d||{},typeof d.remux<"u"?this.remuxTracks=!!d.remux:this.remuxTracks=!0,typeof d.keepOriginalTimestamps=="boolean"?this.keepOriginalTimestamps=d.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,ua.prototype.init.call(this),this.push=function(y){if(y.content||y.text)return this.pendingCaptions.push(y);if(y.frames)return this.pendingMetadata.push(y);this.pendingTracks.push(y.track),this.pendingBytes+=y.boxes.byteLength,y.track.type==="video"&&(this.videoTrack=y.track,this.pendingBoxes.push(y.boxes)),y.track.type==="audio"&&(this.audioTrack=y.track,this.pendingBoxes.unshift(y.boxes))}},ua.prototype=new Bc,ua.prototype.flush=function(d){var m=0,y={captions:[],captionStreams:{},metadata:[],info:{}},_,w,P,U=0,q;if(this.pendingTracks.length<this.numberOfTracks){if(d!=="VideoSegmentStream"&&d!=="AudioSegmentStream")return;if(this.remuxTracks)return;if(this.pendingTracks.length===0){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(U=this.videoTrack.timelineStartInfo.pts,qp.forEach(function(z){y.info[z]=this.videoTrack[z]},this)):this.audioTrack&&(U=this.audioTrack.timelineStartInfo.pts,Up.forEach(function(z){y.info[z]=this.audioTrack[z]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?y.type=this.pendingTracks[0].type:y.type="combined",this.emittedTracks+=this.pendingTracks.length,P=Rl.initSegment(this.pendingTracks),y.initSegment=new Uint8Array(P.byteLength),y.initSegment.set(P),y.data=new Uint8Array(this.pendingBytes),q=0;q<this.pendingBoxes.length;q++)y.data.set(this.pendingBoxes[q],m),m+=this.pendingBoxes[q].byteLength;for(q=0;q<this.pendingCaptions.length;q++)_=this.pendingCaptions[q],_.startTime=Fc.metadataTsToSeconds(_.startPts,U,this.keepOriginalTimestamps),_.endTime=Fc.metadataTsToSeconds(_.endPts,U,this.keepOriginalTimestamps),y.captionStreams[_.stream]=!0,y.captions.push(_);for(q=0;q<this.pendingMetadata.length;q++)w=this.pendingMetadata[q],w.cueTime=Fc.metadataTsToSeconds(w.pts,U,this.keepOriginalTimestamps),y.metadata.push(w);for(y.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",y),q=0;q<y.captions.length;q++)_=y.captions[q],this.trigger("caption",_);for(q=0;q<y.metadata.length;q++)w=y.metadata[q],this.trigger("id3Frame",w)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},ua.prototype.setRemux=function(d){this.remuxTracks=d},Uc=function(d){var m=this,y=!0,_,w;Uc.prototype.init.call(this),d=d||{},this.baseMediaDecodeTime=d.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var P={};this.transmuxPipeline_=P,P.type="aac",P.metadataStream=new Mn.MetadataStream,P.aacStream=new QL,P.audioTimestampRolloverStream=new Mn.TimestampRolloverStream("audio"),P.timedMetadataTimestampRolloverStream=new Mn.TimestampRolloverStream("timed-metadata"),P.adtsStream=new r_,P.coalesceStream=new ua(d,P.metadataStream),P.headOfPipeline=P.aacStream,P.aacStream.pipe(P.audioTimestampRolloverStream).pipe(P.adtsStream),P.aacStream.pipe(P.timedMetadataTimestampRolloverStream).pipe(P.metadataStream).pipe(P.coalesceStream),P.metadataStream.on("timestamp",function(U){P.aacStream.setTimestamp(U.timeStamp)}),P.aacStream.on("data",function(U){U.type!=="timed-metadata"&&U.type!=="audio"||P.audioSegmentStream||(w=w||{timelineStartInfo:{baseMediaDecodeTime:m.baseMediaDecodeTime},codec:"adts",type:"audio"},P.coalesceStream.numberOfTracks++,P.audioSegmentStream=new lo(w,d),P.audioSegmentStream.on("log",m.getLogTrigger_("audioSegmentStream")),P.audioSegmentStream.on("timingInfo",m.trigger.bind(m,"audioTimingInfo")),P.adtsStream.pipe(P.audioSegmentStream).pipe(P.coalesceStream),m.trigger("trackinfo",{hasAudio:!!w,hasVideo:!!_}))}),P.coalesceStream.on("data",this.trigger.bind(this,"data")),P.coalesceStream.on("done",this.trigger.bind(this,"done")),i_(this,P)},this.setupTsPipeline=function(){var P={};this.transmuxPipeline_=P,P.type="ts",P.metadataStream=new Mn.MetadataStream,P.packetStream=new Mn.TransportPacketStream,P.parseStream=new Mn.TransportParseStream,P.elementaryStream=new Mn.ElementaryStream,P.timestampRolloverStream=new Mn.TimestampRolloverStream,P.adtsStream=new r_,P.h264Stream=new GL,P.captionStream=new Mn.CaptionStream(d),P.coalesceStream=new ua(d,P.metadataStream),P.headOfPipeline=P.packetStream,P.packetStream.pipe(P.parseStream).pipe(P.elementaryStream).pipe(P.timestampRolloverStream),P.timestampRolloverStream.pipe(P.h264Stream),P.timestampRolloverStream.pipe(P.adtsStream),P.timestampRolloverStream.pipe(P.metadataStream).pipe(P.coalesceStream),P.h264Stream.pipe(P.captionStream).pipe(P.coalesceStream),P.elementaryStream.on("data",function(U){var q;if(U.type==="metadata"){for(q=U.tracks.length;q--;)!_&&U.tracks[q].type==="video"?(_=U.tracks[q],_.timelineStartInfo.baseMediaDecodeTime=m.baseMediaDecodeTime):!w&&U.tracks[q].type==="audio"&&(w=U.tracks[q],w.timelineStartInfo.baseMediaDecodeTime=m.baseMediaDecodeTime);_&&!P.videoSegmentStream&&(P.coalesceStream.numberOfTracks++,P.videoSegmentStream=new Ml(_,d),P.videoSegmentStream.on("log",m.getLogTrigger_("videoSegmentStream")),P.videoSegmentStream.on("timelineStartInfo",function(z){w&&!d.keepOriginalTimestamps&&(w.timelineStartInfo=z,P.audioSegmentStream.setEarliestDts(z.dts-m.baseMediaDecodeTime))}),P.videoSegmentStream.on("processedGopsInfo",m.trigger.bind(m,"gopInfo")),P.videoSegmentStream.on("segmentTimingInfo",m.trigger.bind(m,"videoSegmentTimingInfo")),P.videoSegmentStream.on("baseMediaDecodeTime",function(z){w&&P.audioSegmentStream.setVideoBaseMediaDecodeTime(z)}),P.videoSegmentStream.on("timingInfo",m.trigger.bind(m,"videoTimingInfo")),P.h264Stream.pipe(P.videoSegmentStream).pipe(P.coalesceStream)),w&&!P.audioSegmentStream&&(P.coalesceStream.numberOfTracks++,P.audioSegmentStream=new lo(w,d),P.audioSegmentStream.on("log",m.getLogTrigger_("audioSegmentStream")),P.audioSegmentStream.on("timingInfo",m.trigger.bind(m,"audioTimingInfo")),P.audioSegmentStream.on("segmentTimingInfo",m.trigger.bind(m,"audioSegmentTimingInfo")),P.adtsStream.pipe(P.audioSegmentStream).pipe(P.coalesceStream)),m.trigger("trackinfo",{hasAudio:!!w,hasVideo:!!_})}}),P.coalesceStream.on("data",this.trigger.bind(this,"data")),P.coalesceStream.on("id3Frame",function(U){U.dispatchType=P.metadataStream.dispatchType,m.trigger("id3Frame",U)}),P.coalesceStream.on("caption",this.trigger.bind(this,"caption")),P.coalesceStream.on("done",this.trigger.bind(this,"done")),i_(this,P)},this.setBaseMediaDecodeTime=function(P){var U=this.transmuxPipeline_;d.keepOriginalTimestamps||(this.baseMediaDecodeTime=P),w&&(w.timelineStartInfo.dts=void 0,w.timelineStartInfo.pts=void 0,Gi.clearDtsInfo(w),U.audioTimestampRolloverStream&&U.audioTimestampRolloverStream.discontinuity()),_&&(U.videoSegmentStream&&(U.videoSegmentStream.gopCache_=[]),_.timelineStartInfo.dts=void 0,_.timelineStartInfo.pts=void 0,Gi.clearDtsInfo(_),U.captionStream.reset()),U.timestampRolloverStream&&U.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(P){w&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(P)},this.setRemux=function(P){var U=this.transmuxPipeline_;d.remux=P,U&&U.coalesceStream&&U.coalesceStream.setRemux(P)},this.alignGopsWith=function(P){_&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(P)},this.getLogTrigger_=function(P){var U=this;return function(q){q.stream=P,U.trigger("log",q)}},this.push=function(P){if(y){var U=KL(P);U&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():!U&&this.transmuxPipeline_.type!=="ts"&&this.setupTsPipeline(),y=!1}this.transmuxPipeline_.headOfPipeline.push(P)},this.flush=function(){y=!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()}},Uc.prototype=new Bc;var JL={Transmuxer:Uc,VideoSegmentStream:Ml,AudioSegmentStream:lo,AUDIO_PROPERTIES:Up,VIDEO_PROPERTIES:qp,generateSegmentTimingInfo:Hp},ZL=function(d){return d>>>0},e8=function(d){return("00"+d.toString(16)).slice(-2)},qc={toUnsigned:ZL,toHexString:e8},t8=function(d){var m="";return m+=String.fromCharCode(d[0]),m+=String.fromCharCode(d[1]),m+=String.fromCharCode(d[2]),m+=String.fromCharCode(d[3]),m},Vp=t8,r8=qc.toUnsigned,i8=Vp,s_=function(d,m){var y=[],_,w,P,U,q;if(!m.length)return null;for(_=0;_<d.byteLength;)w=r8(d[_]<<24|d[_+1]<<16|d[_+2]<<8|d[_+3]),P=i8(d.subarray(_+4,_+8)),U=w>1?_+w:d.byteLength,P===m[0]&&(m.length===1?y.push(d.subarray(_+8,U)):(q=s_(d.subarray(_+8,U),m.slice(1)),q.length&&(y=y.concat(q)))),_=U;return y},Hc=s_,n8=qc.toUnsigned,s8=a.getUint64,a8=function(d){var m={version:d[0],flags:new Uint8Array(d.subarray(1,4))};return m.version===1?m.baseMediaDecodeTime=s8(d.subarray(4)):m.baseMediaDecodeTime=n8(d[4]<<24|d[5]<<16|d[6]<<8|d[7]),m},jp=a8,o8=function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y={version:d[0],flags:new Uint8Array(d.subarray(1,4)),trackId:m.getUint32(4)},_=y.flags[2]&1,w=y.flags[2]&2,P=y.flags[2]&8,U=y.flags[2]&16,q=y.flags[2]&32,z=y.flags[0]&65536,G=y.flags[0]&131072,re;return re=8,_&&(re+=4,y.baseDataOffset=m.getUint32(12),re+=4),w&&(y.sampleDescriptionIndex=m.getUint32(re),re+=4),P&&(y.defaultSampleDuration=m.getUint32(re),re+=4),U&&(y.defaultSampleSize=m.getUint32(re),re+=4),q&&(y.defaultSampleFlags=m.getUint32(re)),z&&(y.durationIsEmpty=!0),!_&&G&&(y.baseDataOffsetIsMoof=!0),y},zp=o8,a_=a.getUint64,l8=function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y={version:d[0],flags:new Uint8Array(d.subarray(1,4)),references:[],referenceId:m.getUint32(4),timescale:m.getUint32(8)},_=12;y.version===0?(y.earliestPresentationTime=m.getUint32(_),y.firstOffset=m.getUint32(_+4),_+=8):(y.earliestPresentationTime=a_(d.subarray(_)),y.firstOffset=a_(d.subarray(_+8)),_+=16),_+=2;var w=m.getUint16(_);for(_+=2;w>0;_+=12,w--)y.references.push({referenceType:(d[_]&128)>>>7,referencedSize:m.getUint32(_)&2147483647,subsegmentDuration:m.getUint32(_+4),startsWithSap:!!(d[_+8]&128),sapType:(d[_+8]&112)>>>4,sapDeltaTime:m.getUint32(_+8)&268435455});return y},u8=l8,c8=function(d){return{isLeading:(d[0]&12)>>>2,dependsOn:d[0]&3,isDependedOn:(d[1]&192)>>>6,hasRedundancy:(d[1]&48)>>>4,paddingValue:(d[1]&14)>>>1,isNonSyncSample:d[1]&1,degradationPriority:d[2]<<8|d[3]}},d8=c8,o_=d8,h8=function(d){var m={version:d[0],flags:new Uint8Array(d.subarray(1,4)),samples:[]},y=new DataView(d.buffer,d.byteOffset,d.byteLength),_=m.flags[2]&1,w=m.flags[2]&4,P=m.flags[1]&1,U=m.flags[1]&2,q=m.flags[1]&4,z=m.flags[1]&8,G=y.getUint32(4),re=8,ve;for(_&&(m.dataOffset=y.getInt32(re),re+=4),w&&G&&(ve={flags:o_(d.subarray(re,re+4))},re+=4,P&&(ve.duration=y.getUint32(re),re+=4),U&&(ve.size=y.getUint32(re),re+=4),z&&(m.version===1?ve.compositionTimeOffset=y.getInt32(re):ve.compositionTimeOffset=y.getUint32(re),re+=4),m.samples.push(ve),G--);G--;)ve={},P&&(ve.duration=y.getUint32(re),re+=4),U&&(ve.size=y.getUint32(re),re+=4),q&&(ve.flags=o_(d.subarray(re,re+4)),re+=4),z&&(m.version===1?ve.compositionTimeOffset=y.getInt32(re):ve.compositionTimeOffset=y.getUint32(re),re+=4),m.samples.push(ve);return m},l_=h8,f8=a,u_=f8.getUint64,Or,Wp,Li=function(d){return new Date(d*1e3-20828448e5)},Bl=Vp,p8=Hc,m8=function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y=[],_,w;for(_=0;_+4<d.length;_+=w){if(w=m.getUint32(_),_+=4,w<=0){y.push("<span style='color:red;'>MALFORMED DATA</span>");continue}switch(d[_]&31){case 1:y.push("slice_layer_without_partitioning_rbsp");break;case 5:y.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:y.push("sei_rbsp");break;case 7:y.push("seq_parameter_set_rbsp");break;case 8:y.push("pic_parameter_set_rbsp");break;case 9:y.push("access_unit_delimiter_rbsp");break;default:y.push("UNKNOWN NAL - "+d[_]&31);break}}return y},vs={avc1:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength);return{dataReferenceIndex:m.getUint16(6),width:m.getUint16(24),height:m.getUint16(26),horizresolution:m.getUint16(28)+m.getUint16(30)/16,vertresolution:m.getUint16(32)+m.getUint16(34)/16,frameCount:m.getUint16(40),depth:m.getUint16(74),config:Or(d.subarray(78,d.byteLength))}},avcC:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y={configurationVersion:d[0],avcProfileIndication:d[1],profileCompatibility:d[2],avcLevelIndication:d[3],lengthSizeMinusOne:d[4]&3,sps:[],pps:[]},_=d[5]&31,w,P,U,q;for(U=6,q=0;q<_;q++)P=m.getUint16(U),U+=2,y.sps.push(new Uint8Array(d.subarray(U,U+P))),U+=P;for(w=d[U],U++,q=0;q<w;q++)P=m.getUint16(U),U+=2,y.pps.push(new Uint8Array(d.subarray(U,U+P))),U+=P;return y},btrt:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength);return{bufferSizeDB:m.getUint32(0),maxBitrate:m.getUint32(4),avgBitrate:m.getUint32(8)}},edts:function(m){return{boxes:Or(m)}},elst:function(m){var y=new DataView(m.buffer,m.byteOffset,m.byteLength),_={version:y.getUint8(0),flags:new Uint8Array(m.subarray(1,4)),edits:[]},w=y.getUint32(4),P;for(P=8;w;w--)_.version===0?(_.edits.push({segmentDuration:y.getUint32(P),mediaTime:y.getInt32(P+4),mediaRate:y.getUint16(P+8)+y.getUint16(P+10)/(256*256)}),P+=12):(_.edits.push({segmentDuration:u_(m.subarray(P)),mediaTime:u_(m.subarray(P+8)),mediaRate:y.getUint16(P+16)+y.getUint16(P+18)/(256*256)}),P+=20);return _},esds:function(d){return{version:d[0],flags:new Uint8Array(d.subarray(1,4)),esId:d[6]<<8|d[7],streamPriority:d[8]&31,decoderConfig:{objectProfileIndication:d[11],streamType:d[12]>>>2&63,bufferSize:d[13]<<16|d[14]<<8|d[15],maxBitrate:d[16]<<24|d[17]<<16|d[18]<<8|d[19],avgBitrate:d[20]<<24|d[21]<<16|d[22]<<8|d[23],decoderConfigDescriptor:{tag:d[24],length:d[25],audioObjectType:d[26]>>>3&31,samplingFrequencyIndex:(d[26]&7)<<1|d[27]>>>7&1,channelConfiguration:d[27]>>>3&15}}}},ftyp:function(d){for(var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y={majorBrand:Bl(d.subarray(0,4)),minorVersion:m.getUint32(4),compatibleBrands:[]},_=8;_<d.byteLength;)y.compatibleBrands.push(Bl(d.subarray(_,_+4))),_+=4;return y},dinf:function(d){return{boxes:Or(d)}},dref:function(d){return{version:d[0],flags:new Uint8Array(d.subarray(1,4)),dataReferences:Or(d.subarray(8))}},hdlr:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y={version:m.getUint8(0),flags:new Uint8Array(d.subarray(1,4)),handlerType:Bl(d.subarray(8,12)),name:""},_=8;for(_=24;_<d.byteLength;_++){if(d[_]===0){_++;break}y.name+=String.fromCharCode(d[_])}return y.name=decodeURIComponent(escape(y.name)),y},mdat:function(d){return{byteLength:d.byteLength,nals:m8(d)}},mdhd:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y=4,_,w={version:m.getUint8(0),flags:new Uint8Array(d.subarray(1,4)),language:""};return w.version===1?(y+=4,w.creationTime=Li(m.getUint32(y)),y+=8,w.modificationTime=Li(m.getUint32(y)),y+=4,w.timescale=m.getUint32(y),y+=8,w.duration=m.getUint32(y)):(w.creationTime=Li(m.getUint32(y)),y+=4,w.modificationTime=Li(m.getUint32(y)),y+=4,w.timescale=m.getUint32(y),y+=4,w.duration=m.getUint32(y)),y+=4,_=m.getUint16(y),w.language+=String.fromCharCode((_>>10)+96),w.language+=String.fromCharCode(((_&992)>>5)+96),w.language+=String.fromCharCode((_&31)+96),w},mdia:function(d){return{boxes:Or(d)}},mfhd:function(d){return{version:d[0],flags:new Uint8Array(d.subarray(1,4)),sequenceNumber:d[4]<<24|d[5]<<16|d[6]<<8|d[7]}},minf:function(d){return{boxes:Or(d)}},mp4a:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y={dataReferenceIndex:m.getUint16(6),channelcount:m.getUint16(16),samplesize:m.getUint16(18),samplerate:m.getUint16(24)+m.getUint16(26)/65536};return d.byteLength>28&&(y.streamDescriptor=Or(d.subarray(28))[0]),y},moof:function(d){return{boxes:Or(d)}},moov:function(d){return{boxes:Or(d)}},mvex:function(d){return{boxes:Or(d)}},mvhd:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y=4,_={version:m.getUint8(0),flags:new Uint8Array(d.subarray(1,4))};return _.version===1?(y+=4,_.creationTime=Li(m.getUint32(y)),y+=8,_.modificationTime=Li(m.getUint32(y)),y+=4,_.timescale=m.getUint32(y),y+=8,_.duration=m.getUint32(y)):(_.creationTime=Li(m.getUint32(y)),y+=4,_.modificationTime=Li(m.getUint32(y)),y+=4,_.timescale=m.getUint32(y),y+=4,_.duration=m.getUint32(y)),y+=4,_.rate=m.getUint16(y)+m.getUint16(y+2)/16,y+=4,_.volume=m.getUint8(y)+m.getUint8(y+1)/8,y+=2,y+=2,y+=2*4,_.matrix=new Uint32Array(d.subarray(y,y+9*4)),y+=9*4,y+=6*4,_.nextTrackId=m.getUint32(y),_},pdin:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength);return{version:m.getUint8(0),flags:new Uint8Array(d.subarray(1,4)),rate:m.getUint32(4),initialDelay:m.getUint32(8)}},sdtp:function(d){var m={version:d[0],flags:new Uint8Array(d.subarray(1,4)),samples:[]},y;for(y=4;y<d.byteLength;y++)m.samples.push({dependsOn:(d[y]&48)>>4,isDependedOn:(d[y]&12)>>2,hasRedundancy:d[y]&3});return m},sidx:u8,smhd:function(d){return{version:d[0],flags:new Uint8Array(d.subarray(1,4)),balance:d[4]+d[5]/256}},stbl:function(d){return{boxes:Or(d)}},ctts:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y={version:m.getUint8(0),flags:new Uint8Array(d.subarray(1,4)),compositionOffsets:[]},_=m.getUint32(4),w;for(w=8;_;w+=8,_--)y.compositionOffsets.push({sampleCount:m.getUint32(w),sampleOffset:m[y.version===0?"getUint32":"getInt32"](w+4)});return y},stss:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y={version:m.getUint8(0),flags:new Uint8Array(d.subarray(1,4)),syncSamples:[]},_=m.getUint32(4),w;for(w=8;_;w+=4,_--)y.syncSamples.push(m.getUint32(w));return y},stco:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y={version:d[0],flags:new Uint8Array(d.subarray(1,4)),chunkOffsets:[]},_=m.getUint32(4),w;for(w=8;_;w+=4,_--)y.chunkOffsets.push(m.getUint32(w));return y},stsc:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y=m.getUint32(4),_={version:d[0],flags:new Uint8Array(d.subarray(1,4)),sampleToChunks:[]},w;for(w=8;y;w+=12,y--)_.sampleToChunks.push({firstChunk:m.getUint32(w),samplesPerChunk:m.getUint32(w+4),sampleDescriptionIndex:m.getUint32(w+8)});return _},stsd:function(d){return{version:d[0],flags:new Uint8Array(d.subarray(1,4)),sampleDescriptions:Or(d.subarray(8))}},stsz:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y={version:d[0],flags:new Uint8Array(d.subarray(1,4)),sampleSize:m.getUint32(4),entries:[]},_;for(_=12;_<d.byteLength;_+=4)y.entries.push(m.getUint32(_));return y},stts:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y={version:d[0],flags:new Uint8Array(d.subarray(1,4)),timeToSamples:[]},_=m.getUint32(4),w;for(w=8;_;w+=8,_--)y.timeToSamples.push({sampleCount:m.getUint32(w),sampleDelta:m.getUint32(w+4)});return y},styp:function(d){return vs.ftyp(d)},tfdt:jp,tfhd:zp,tkhd:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength),y=4,_={version:m.getUint8(0),flags:new Uint8Array(d.subarray(1,4))};return _.version===1?(y+=4,_.creationTime=Li(m.getUint32(y)),y+=8,_.modificationTime=Li(m.getUint32(y)),y+=4,_.trackId=m.getUint32(y),y+=4,y+=8,_.duration=m.getUint32(y)):(_.creationTime=Li(m.getUint32(y)),y+=4,_.modificationTime=Li(m.getUint32(y)),y+=4,_.trackId=m.getUint32(y),y+=4,y+=4,_.duration=m.getUint32(y)),y+=4,y+=2*4,_.layer=m.getUint16(y),y+=2,_.alternateGroup=m.getUint16(y),y+=2,_.volume=m.getUint8(y)+m.getUint8(y+1)/8,y+=2,y+=2,_.matrix=new Uint32Array(d.subarray(y,y+9*4)),y+=9*4,_.width=m.getUint16(y)+m.getUint16(y+2)/65536,y+=4,_.height=m.getUint16(y)+m.getUint16(y+2)/65536,_},traf:function(d){return{boxes:Or(d)}},trak:function(d){return{boxes:Or(d)}},trex:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength);return{version:d[0],flags:new Uint8Array(d.subarray(1,4)),trackId:m.getUint32(4),defaultSampleDescriptionIndex:m.getUint32(8),defaultSampleDuration:m.getUint32(12),defaultSampleSize:m.getUint32(16),sampleDependsOn:d[20]&3,sampleIsDependedOn:(d[21]&192)>>6,sampleHasRedundancy:(d[21]&48)>>4,samplePaddingValue:(d[21]&14)>>1,sampleIsDifferenceSample:!!(d[21]&1),sampleDegradationPriority:m.getUint16(22)}},trun:l_,"url ":function(d){return{version:d[0],flags:new Uint8Array(d.subarray(1,4))}},vmhd:function(d){var m=new DataView(d.buffer,d.byteOffset,d.byteLength);return{version:d[0],flags:new Uint8Array(d.subarray(1,4)),graphicsmode:m.getUint16(4),opcolor:new Uint16Array([m.getUint16(6),m.getUint16(8),m.getUint16(10)])}}};Or=function(d){for(var m=0,y=[],_,w,P,U,q,z=new ArrayBuffer(d.length),G=new Uint8Array(z),re=0;re<d.length;++re)G[re]=d[re];for(_=new DataView(z);m<d.byteLength;)w=_.getUint32(m),P=Bl(d.subarray(m+4,m+8)),U=w>1?m+w:d.byteLength,q=(vs[P]||function(ve){return{data:ve}})(d.subarray(m+8,U)),q.size=w,q.type=P,y.push(q),m=U;return y},Wp=function(d,m){var y;return m=m||0,y=new Array(m*2+1).join(" "),d.map(function(_,w){return y+_.type+`
191`+Object.keys(_).filter(function(P){return P!=="type"&&P!=="boxes"}).map(function(P){var U=y+"  "+P+": ",q=_[P];if(q instanceof Uint8Array||q instanceof Uint32Array){var z=Array.prototype.slice.call(new Uint8Array(q.buffer,q.byteOffset,q.byteLength)).map(function(G){return" "+("00"+G.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return z?z.length===1?U+"<"+z.join("").slice(1)+">":U+`<
192`+z.map(function(G){return y+"  "+G}).join(`
193`)+`
194`+y+"  >":U+"<>"}return U+JSON.stringify(q,null,2).split(`
195`).map(function(G,re){return re===0?G:y+"  "+G}).join(`
196`)}).join(`
197`)+(_.boxes?`
198`+Wp(_.boxes,m+1):"")}).join(`
199`)};var c_={inspect:Or,textify:Wp,parseType:Bl,findBox:p8,parseTraf:vs.traf,parseTfdt:vs.tfdt,parseHdlr:vs.hdlr,parseTfhd:vs.tfhd,parseTrun:vs.trun,parseSidx:vs.sidx},g8=function(d){for(var m=0,y=String.fromCharCode(d[m]),_="";y!=="\0";)_+=y,m++,y=String.fromCharCode(d[m]);return _+=y,_},v8={uint8ToCString:g8},Vc=v8.uint8ToCString,y8=a.getUint64,b8=function(d){var m=4,y=d[0],_,w,P,U,q,z,G,re;if(y===0){_=Vc(d.subarray(m)),m+=_.length,w=Vc(d.subarray(m)),m+=w.length;var ve=new DataView(d.buffer);P=ve.getUint32(m),m+=4,q=ve.getUint32(m),m+=4,z=ve.getUint32(m),m+=4,G=ve.getUint32(m),m+=4}else if(y===1){var ve=new DataView(d.buffer);P=ve.getUint32(m),m+=4,U=y8(d.subarray(m)),m+=8,z=ve.getUint32(m),m+=4,G=ve.getUint32(m),m+=4,_=Vc(d.subarray(m)),m+=_.length,w=Vc(d.subarray(m)),m+=w.length}re=new Uint8Array(d.subarray(m,d.byteLength));var Oe={scheme_id_uri:_,value:w,timescale:P||1,presentation_time:U,presentation_time_delta:q,event_duration:z,id:G,message_data:re};return T8(y,Oe)?Oe:void 0},_8=function(d,m,y,_){return d||d===0?d/m:_+y/m},T8=function(d,m){var y=m.scheme_id_uri!=="\0",_=d===0&&d_(m.presentation_time_delta)&&y,w=d===1&&d_(m.presentation_time)&&y;return!(d>1)&&_||w},d_=function(d){return d!==void 0||d!==null},S8={parseEmsgBox:b8,scaleTime:_8},$l;typeof window<"u"?$l=window:typeof r<"u"?$l=r:typeof self<"u"?$l=self:$l={};var h_=$l,jc=qc.toUnsigned,Fl=qc.toHexString,tr=Hc,uo=Vp,Gp=S8,x8=zp,w8=l_,C8=jp,E8=a.getUint64,f_,p_,m_,g_,v_,Qp,y_,Kp=h_,k8=Wb.parseId3Frames;f_=function(d){var m={},y=tr(d,["moov","trak"]);return y.reduce(function(_,w){var P,U,q,z,G;return P=tr(w,["tkhd"])[0],!P||(U=P[0],q=U===0?12:20,z=jc(P[q]<<24|P[q+1]<<16|P[q+2]<<8|P[q+3]),G=tr(w,["mdia","mdhd"])[0],!G)?null:(U=G[0],q=U===0?12:20,_[z]=jc(G[q]<<24|G[q+1]<<16|G[q+2]<<8|G[q+3]),_)},m)},p_=function(d,m){var y;y=tr(m,["moof","traf"]);var _=y.reduce(function(w,P){var U=tr(P,["tfhd"])[0],q=jc(U[4]<<24|U[5]<<16|U[6]<<8|U[7]),z=d[q]||9e4,G=tr(P,["tfdt"])[0],re=new DataView(G.buffer,G.byteOffset,G.byteLength),ve;G[0]===1?ve=E8(G.subarray(4,12)):ve=re.getUint32(4);let Oe;return typeof ve=="bigint"?Oe=ve/Kp.BigInt(z):typeof ve=="number"&&!isNaN(ve)&&(Oe=ve/z),Oe<Number.MAX_SAFE_INTEGER&&(Oe=Number(Oe)),Oe<w&&(w=Oe),w},1/0);return typeof _=="bigint"||isFinite(_)?_:0},m_=function(d,m){var y=tr(m,["moof","traf"]),_=0,w=0,P;if(y&&y.length){var U=tr(y[0],["tfhd"])[0],q=tr(y[0],["trun"])[0],z=tr(y[0],["tfdt"])[0];if(U){var G=x8(U);P=G.trackId}if(z){var re=C8(z);_=re.baseMediaDecodeTime}if(q){var ve=w8(q);ve.samples&&ve.samples.length&&(w=ve.samples[0].compositionTimeOffset||0)}}var Oe=d[P]||9e4;typeof _=="bigint"&&(w=Kp.BigInt(w),Oe=Kp.BigInt(Oe));var be=(_+w)/Oe;return typeof be=="bigint"&&be<Number.MAX_SAFE_INTEGER&&(be=Number(be)),be},g_=function(d){var m=tr(d,["moov","trak"]),y=[];return m.forEach(function(_){var w=tr(_,["mdia","hdlr"]),P=tr(_,["tkhd"]);w.forEach(function(U,q){var z=uo(U.subarray(8,12)),G=P[q],re,ve,Oe;z==="vide"&&(re=new DataView(G.buffer,G.byteOffset,G.byteLength),ve=re.getUint8(0),Oe=ve===0?re.getUint32(12):re.getUint32(20),y.push(Oe))})}),y},Qp=function(d){var m=d[0],y=m===0?12:20;return jc(d[y]<<24|d[y+1]<<16|d[y+2]<<8|d[y+3])},v_=function(d){var m=tr(d,["moov","trak"]),y=[];return m.forEach(function(_){var w={},P=tr(_,["tkhd"])[0],U,q;P&&(U=new DataView(P.buffer,P.byteOffset,P.byteLength),q=U.getUint8(0),w.id=q===0?U.getUint32(12):U.getUint32(20));var z=tr(_,["mdia","hdlr"])[0];if(z){var G=uo(z.subarray(8,12));G==="vide"?w.type="video":G==="soun"?w.type="audio":w.type=G}var re=tr(_,["mdia","minf","stbl","stsd"])[0];if(re){var ve=re.subarray(8);w.codec=uo(ve.subarray(4,8));var Oe=tr(ve,[w.codec])[0],be,Ve;Oe&&(/^[asm]vc[1-9]$/i.test(w.codec)?(be=Oe.subarray(78),Ve=uo(be.subarray(4,8)),Ve==="avcC"&&be.length>11?(w.codec+=".",w.codec+=Fl(be[9]),w.codec+=Fl(be[10]),w.codec+=Fl(be[11])):w.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(w.codec)?(be=Oe.subarray(28),Ve=uo(be.subarray(4,8)),Ve==="esds"&&be.length>20&&be[19]!==0?(w.codec+="."+Fl(be[19]),w.codec+="."+Fl(be[20]>>>2&63).replace(/^0/,"")):w.codec="mp4a.40.2"):w.codec=w.codec.toLowerCase())}var tt=tr(_,["mdia","mdhd"])[0];tt&&(w.timescale=Qp(tt)),y.push(w)}),y},y_=function(d,m=0){var y=tr(d,["emsg"]);return y.map(_=>{var w=Gp.parseEmsgBox(new Uint8Array(_)),P=k8(w.message_data);return{cueTime:Gp.scaleTime(w.presentation_time,w.timescale,w.presentation_time_delta,m),duration:Gp.scaleTime(w.event_duration,w.timescale),frames:P}})};var Ul={findBox:tr,parseType:uo,timescale:f_,startTime:p_,compositionStartTime:m_,videoTrackIds:g_,tracks:v_,getTimescaleFromMediaHeader:Qp,getEmsgID3:y_};let{parseTrun:A8}=c_,{findBox:b_}=Ul;var __=h_,P8=function(d){var m=b_(d,["moof","traf"]),y=b_(d,["mdat"]),_=[];return y.forEach(function(w,P){var U=m[P];_.push({mdat:w,traf:U})}),_},D8=function(d,m,y){var _=m,w=y.defaultSampleDuration||0,P=y.defaultSampleSize||0,U=y.trackId,q=[];return d.forEach(function(z){var G=A8(z),re=G.samples;re.forEach(function(ve){ve.duration===void 0&&(ve.duration=w),ve.size===void 0&&(ve.size=P),ve.trackId=U,ve.dts=_,ve.compositionTimeOffset===void 0&&(ve.compositionTimeOffset=0),typeof _=="bigint"?(ve.pts=_+__.BigInt(ve.compositionTimeOffset),_+=__.BigInt(ve.duration)):(ve.pts=_+ve.compositionTimeOffset,_+=ve.duration)}),q=q.concat(re)}),q},T_={getMdatTrafPairs:P8,parseSamples:D8},I8=ji.discardEmulationPreventionBytes,O8=ze.CaptionStream,Xp=Hc,L8=jp,R8=zp,{getMdatTrafPairs:N8,parseSamples:M8}=T_,B8=function(d,m){for(var y=d,_=0;_<m.length;_++){var w=m[_];if(y<w.size)return w;y-=w.size}return null},$8=function(d,m,y){var _=new DataView(d.buffer,d.byteOffset,d.byteLength),w={logs:[],seiNals:[]},P,U,q,z;for(U=0;U+4<d.length;U+=q)if(q=_.getUint32(U),U+=4,!(q<=0))switch(d[U]&31){case 6:var G=d.subarray(U+1,U+1+q),re=B8(U,m);if(P={nalUnitType:"sei_rbsp",size:q,data:G,escapedRBSP:I8(G),trackId:y},re)P.pts=re.pts,P.dts=re.dts,z=re;else if(z)P.pts=z.pts,P.dts=z.dts;else{w.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+U+" for trackId "+y+". See mux.js#223."});break}w.seiNals.push(P);break}return w},F8=function(d,m){var y={},_=N8(d);return _.forEach(function(w){var P=w.mdat,U=w.traf,q=Xp(U,["tfhd"]),z=R8(q[0]),G=z.trackId,re=Xp(U,["tfdt"]),ve=re.length>0?L8(re[0]).baseMediaDecodeTime:0,Oe=Xp(U,["trun"]),be,Ve;m===G&&Oe.length>0&&(be=M8(Oe,ve,z),Ve=$8(P,be,G),y[G]||(y[G]={seiNals:[],logs:[]}),y[G].seiNals=y[G].seiNals.concat(Ve.seiNals),y[G].logs=y[G].logs.concat(Ve.logs))}),y},U8=function(d,m,y){var _;if(m===null)return null;_=F8(d,m);var w=_[m]||{};return{seiNals:w.seiNals,logs:w.logs,timescale:y}},q8=function(){var d=!1,m,y,_,w,P,U;this.isInitialized=function(){return d},this.init=function(q){m=new O8,d=!0,U=q?q.isPartial:!1,m.on("data",function(z){z.startTime=z.startPts/w,z.endTime=z.endPts/w,P.captions.push(z),P.captionStreams[z.stream]=!0}),m.on("log",function(z){P.logs.push(z)})},this.isNewInit=function(q,z){return q&&q.length===0||z&&typeof z=="object"&&Object.keys(z).length===0?!1:_!==q[0]||w!==z[_]},this.parse=function(q,z,G){var re;if(this.isInitialized()){if(!z||!G)return null;if(this.isNewInit(z,G))_=z[0],w=G[_];else if(_===null||!w)return y.push(q),null}else return null;for(;y.length>0;){var ve=y.shift();this.parse(ve,z,G)}return re=U8(q,_,w),re&&re.logs&&(P.logs=P.logs.concat(re.logs)),re===null||!re.seiNals?P.logs.length?{logs:P.logs,captions:[],captionStreams:[]}:null:(this.pushNals(re.seiNals),this.flushStream(),P)},this.pushNals=function(q){if(!this.isInitialized()||!q||q.length===0)return null;q.forEach(function(z){m.push(z)})},this.flushStream=function(){if(!this.isInitialized())return null;U?m.partialFlush():m.flush()},this.clearParsedCaptions=function(){P.captions=[],P.captionStreams={},P.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;m.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){y=[],_=null,w=null,P?this.clearParsedCaptions():P={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},H8=q8;let{parseTfdt:V8}=c_,ys=Hc,{getTimescaleFromMediaHeader:j8}=Ul,{parseSamples:z8,getMdatTrafPairs:W8}=T_;var S_=function(){let d=9e4;this.init=function(m){let y=ys(m,["moov","trak","mdia","mdhd"])[0];y&&(d=j8(y))},this.parseSegment=function(m){let y=[],_=W8(m),w=0;return _.forEach(function(P){let U=P.mdat,q=P.traf,z=ys(q,["tfdt"])[0],G=ys(q,["tfhd"])[0],re=ys(q,["trun"]);if(z&&(w=V8(z).baseMediaDecodeTime),re.length&&G){let ve=z8(re,w,G),Oe=0;ve.forEach(function(be){let Ve="utf-8",tt=new TextDecoder(Ve),gr=U.slice(Oe,Oe+be.size);if(ys(gr,["vtte"])[0]){Oe+=be.size;return}ys(gr,["vttc"]).forEach(function(ql){let Hl=ys(ql,["payl"])[0],Vl=ys(ql,["sttg"])[0],jl=be.pts/d,Gc=(be.pts+be.duration)/d,Ft,zl;if(Hl)try{Ft=tt.decode(Hl)}catch(Qi){console.error(Qi)}if(Vl)try{zl=tt.decode(Vl)}catch(Qi){console.error(Qi)}be.duration&&Ft&&y.push({cueText:Ft,start:jl,end:Gc,settings:zl})}),Oe+=be.size})}}),y}},Yp=ut,x_=function(d){var m=d[1]&31;return m<<=8,m|=d[2],m},zc=function(d){return!!(d[1]&64)},Wc=function(d){var m=0;return(d[3]&48)>>>4>1&&(m+=d[4]+1),m},G8=function(d,m){var y=x_(d);return y===0?"pat":y===m?"pmt":m?"pes":null},Q8=function(d){var m=zc(d),y=4+Wc(d);return m&&(y+=d[y]+1),(d[y+10]&31)<<8|d[y+11]},K8=function(d){var m={},y=zc(d),_=4+Wc(d);if(y&&(_+=d[_]+1),!!(d[_+5]&1)){var w,P,U;w=(d[_+1]&15)<<8|d[_+2],P=3+w-4,U=(d[_+10]&15)<<8|d[_+11];for(var q=12+U;q<P;){var z=_+q;m[(d[z+1]&31)<<8|d[z+2]]=d[z],q+=((d[z+3]&15)<<8|d[z+4])+5}return m}},X8=function(d,m){var y=x_(d),_=m[y];switch(_){case Yp.H264_STREAM_TYPE:return"video";case Yp.ADTS_STREAM_TYPE:return"audio";case Yp.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},Y8=function(d){var m=zc(d);if(!m)return null;var y=4+Wc(d);if(y>=d.byteLength)return null;var _=null,w;return w=d[y+7],w&192&&(_={},_.pts=(d[y+9]&14)<<27|(d[y+10]&255)<<20|(d[y+11]&254)<<12|(d[y+12]&255)<<5|(d[y+13]&254)>>>3,_.pts*=4,_.pts+=(d[y+13]&6)>>>1,_.dts=_.pts,w&64&&(_.dts=(d[y+14]&14)<<27|(d[y+15]&255)<<20|(d[y+16]&254)<<12|(d[y+17]&255)<<5|(d[y+18]&254)>>>3,_.dts*=4,_.dts+=(d[y+18]&6)>>>1)),_},Jp=function(d){switch(d){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}},J8=function(d){for(var m=4+Wc(d),y=d.subarray(m),_=0,w=0,P=!1,U;w<y.byteLength-3;w++)if(y[w+2]===1){_=w+5;break}for(;_<y.byteLength;)switch(y[_]){case 0:if(y[_-1]!==0){_+=2;break}else if(y[_-2]!==0){_++;break}w+3!==_-2&&(U=Jp(y[w+3]&31),U==="slice_layer_without_partitioning_rbsp_idr"&&(P=!0));do _++;while(y[_]!==1&&_<y.length);w=_-2,_+=3;break;case 1:if(y[_-1]!==0||y[_-2]!==0){_+=3;break}U=Jp(y[w+3]&31),U==="slice_layer_without_partitioning_rbsp_idr"&&(P=!0),w=_-2,_+=3;break;default:_+=3;break}return y=y.subarray(w),_-=w,w=0,y&&y.byteLength>3&&(U=Jp(y[w+3]&31),U==="slice_layer_without_partitioning_rbsp_idr"&&(P=!0)),P},Z8={parseType:G8,parsePat:Q8,parsePmt:K8,parsePayloadUnitStartIndicator:zc,parsePesType:X8,parsePesTime:Y8,videoPacketContainsKeyFrame:J8},w_=ut,co=un.handleRollover,Dt={};Dt.ts=Z8,Dt.aac=Fp;var ca=fe.ONE_SECOND_IN_TS,Gr=188,cn=71,e5=function(d,m){for(var y=0,_=Gr,w,P;_<d.byteLength;){if(d[y]===cn&&d[_]===cn){switch(w=d.subarray(y,_),P=Dt.ts.parseType(w,m.pid),P){case"pat":m.pid=Dt.ts.parsePat(w);break;case"pmt":var U=Dt.ts.parsePmt(w);m.table=m.table||{},Object.keys(U).forEach(function(q){m.table[q]=U[q]});break}y+=Gr,_+=Gr;continue}y++,_++}},C_=function(d,m,y){for(var _=0,w=Gr,P,U,q,z,G,re=!1;w<=d.byteLength;){if(d[_]===cn&&(d[w]===cn||w===d.byteLength)){switch(P=d.subarray(_,w),U=Dt.ts.parseType(P,m.pid),U){case"pes":q=Dt.ts.parsePesType(P,m.table),z=Dt.ts.parsePayloadUnitStartIndicator(P),q==="audio"&&z&&(G=Dt.ts.parsePesTime(P),G&&(G.type="audio",y.audio.push(G),re=!0));break}if(re)break;_+=Gr,w+=Gr;continue}_++,w++}for(w=d.byteLength,_=w-Gr,re=!1;_>=0;){if(d[_]===cn&&(d[w]===cn||w===d.byteLength)){switch(P=d.subarray(_,w),U=Dt.ts.parseType(P,m.pid),U){case"pes":q=Dt.ts.parsePesType(P,m.table),z=Dt.ts.parsePayloadUnitStartIndicator(P),q==="audio"&&z&&(G=Dt.ts.parsePesTime(P),G&&(G.type="audio",y.audio.push(G),re=!0));break}if(re)break;_-=Gr,w-=Gr;continue}_--,w--}},t5=function(d,m,y){for(var _=0,w=Gr,P,U,q,z,G,re,ve,Oe,be=!1,Ve={data:[],size:0};w<d.byteLength;){if(d[_]===cn&&d[w]===cn){switch(P=d.subarray(_,w),U=Dt.ts.parseType(P,m.pid),U){case"pes":if(q=Dt.ts.parsePesType(P,m.table),z=Dt.ts.parsePayloadUnitStartIndicator(P),q==="video"&&(z&&!be&&(G=Dt.ts.parsePesTime(P),G&&(G.type="video",y.video.push(G),be=!0)),!y.firstKeyFrame)){if(z&&Ve.size!==0){for(re=new Uint8Array(Ve.size),ve=0;Ve.data.length;)Oe=Ve.data.shift(),re.set(Oe,ve),ve+=Oe.byteLength;if(Dt.ts.videoPacketContainsKeyFrame(re)){var tt=Dt.ts.parsePesTime(re);tt?(y.firstKeyFrame=tt,y.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.")}Ve.size=0}Ve.data.push(P),Ve.size+=P.byteLength}break}if(be&&y.firstKeyFrame)break;_+=Gr,w+=Gr;continue}_++,w++}for(w=d.byteLength,_=w-Gr,be=!1;_>=0;){if(d[_]===cn&&d[w]===cn){switch(P=d.subarray(_,w),U=Dt.ts.parseType(P,m.pid),U){case"pes":q=Dt.ts.parsePesType(P,m.table),z=Dt.ts.parsePayloadUnitStartIndicator(P),q==="video"&&z&&(G=Dt.ts.parsePesTime(P),G&&(G.type="video",y.video.push(G),be=!0));break}if(be)break;_-=Gr,w-=Gr;continue}_--,w--}},r5=function(d,m){if(d.audio&&d.audio.length){var y=m;(typeof y>"u"||isNaN(y))&&(y=d.audio[0].dts),d.audio.forEach(function(P){P.dts=co(P.dts,y),P.pts=co(P.pts,y),P.dtsTime=P.dts/ca,P.ptsTime=P.pts/ca})}if(d.video&&d.video.length){var _=m;if((typeof _>"u"||isNaN(_))&&(_=d.video[0].dts),d.video.forEach(function(P){P.dts=co(P.dts,_),P.pts=co(P.pts,_),P.dtsTime=P.dts/ca,P.ptsTime=P.pts/ca}),d.firstKeyFrame){var w=d.firstKeyFrame;w.dts=co(w.dts,_),w.pts=co(w.pts,_),w.dtsTime=w.dts/ca,w.ptsTime=w.pts/ca}}},i5=function(d){for(var m=!1,y=0,_=null,w=null,P=0,U=0,q;d.length-U>=3;){var z=Dt.aac.parseType(d,U);switch(z){case"timed-metadata":if(d.length-U<10){m=!0;break}if(P=Dt.aac.parseId3TagSize(d,U),P>d.length){m=!0;break}w===null&&(q=d.subarray(U,U+P),w=Dt.aac.parseAacTimestamp(q)),U+=P;break;case"audio":if(d.length-U<7){m=!0;break}if(P=Dt.aac.parseAdtsSize(d,U),P>d.length){m=!0;break}_===null&&(q=d.subarray(U,U+P),_=Dt.aac.parseSampleRate(q)),y++,U+=P;break;default:U++;break}if(m)return null}if(_===null||w===null)return null;var G=ca/_,re={audio:[{type:"audio",dts:w,pts:w},{type:"audio",dts:w+y*1024*G,pts:w+y*1024*G}]};return re},n5=function(d){var m={pid:null,table:null},y={};e5(d,m);for(var _ in m.table)if(m.table.hasOwnProperty(_)){var w=m.table[_];switch(w){case w_.H264_STREAM_TYPE:y.video=[],t5(d,m,y),y.video.length===0&&delete y.video;break;case w_.ADTS_STREAM_TYPE:y.audio=[],C_(d,m,y),y.audio.length===0&&delete y.audio;break}}return y},s5=function(d,m){var y=Dt.aac.isLikelyAacData(d),_;return y?_=i5(d):_=n5(d),!_||!_.audio&&!_.video?null:(r5(_,m),_)},a5={inspect:s5,parseAudioPes_:C_};let o5=function(d,m){m.on("data",function(y){let _=y.initSegment;y.initSegment={data:_.buffer,byteOffset:_.byteOffset,byteLength:_.byteLength};let w=y.data;y.data=w.buffer,d.postMessage({action:"data",segment:y,byteOffset:w.byteOffset,byteLength:w.byteLength},[y.data])}),m.on("done",function(y){d.postMessage({action:"done"})}),m.on("gopInfo",function(y){d.postMessage({action:"gopInfo",gopInfo:y})}),m.on("videoSegmentTimingInfo",function(y){let _={start:{decode:fe.videoTsToSeconds(y.start.dts),presentation:fe.videoTsToSeconds(y.start.pts)},end:{decode:fe.videoTsToSeconds(y.end.dts),presentation:fe.videoTsToSeconds(y.end.pts)},baseMediaDecodeTime:fe.videoTsToSeconds(y.baseMediaDecodeTime)};y.prependedContentDuration&&(_.prependedContentDuration=fe.videoTsToSeconds(y.prependedContentDuration)),d.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:_})}),m.on("audioSegmentTimingInfo",function(y){let _={start:{decode:fe.videoTsToSeconds(y.start.dts),presentation:fe.videoTsToSeconds(y.start.pts)},end:{decode:fe.videoTsToSeconds(y.end.dts),presentation:fe.videoTsToSeconds(y.end.pts)},baseMediaDecodeTime:fe.videoTsToSeconds(y.baseMediaDecodeTime)};y.prependedContentDuration&&(_.prependedContentDuration=fe.videoTsToSeconds(y.prependedContentDuration)),d.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:_})}),m.on("id3Frame",function(y){d.postMessage({action:"id3Frame",id3Frame:y})}),m.on("caption",function(y){d.postMessage({action:"caption",caption:y})}),m.on("trackinfo",function(y){d.postMessage({action:"trackinfo",trackInfo:y})}),m.on("audioTimingInfo",function(y){d.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:fe.videoTsToSeconds(y.start),end:fe.videoTsToSeconds(y.end)}})}),m.on("videoTimingInfo",function(y){d.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:fe.videoTsToSeconds(y.start),end:fe.videoTsToSeconds(y.end)}})}),m.on("log",function(y){d.postMessage({action:"log",log:y})})};class E_{constructor(m,y){this.options=y||{},this.self=m,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new JL.Transmuxer(this.options),o5(this.self,this.transmuxer)}pushMp4Captions(m){this.captionParser||(this.captionParser=new H8,this.captionParser.init());let y=new Uint8Array(m.data,m.byteOffset,m.byteLength),_=this.captionParser.parse(y,m.trackIds,m.timescales);this.self.postMessage({action:"mp4Captions",captions:_&&_.captions||[],logs:_&&_.logs||[],data:y.buffer},[y.buffer])}initMp4WebVttParser(m){this.webVttParser||(this.webVttParser=new S_);let y=new Uint8Array(m.data,m.byteOffset,m.byteLength);this.webVttParser.init(y)}getMp4WebVttText(m){this.webVttParser||(this.webVttParser=new S_);let y=new Uint8Array(m.data,m.byteOffset,m.byteLength),_=this.webVttParser.parseSegment(y);this.self.postMessage({action:"getMp4WebVttText",mp4VttCues:_||[],data:y.buffer},[y.buffer])}probeMp4StartTime({timescales:m,data:y}){let _=Ul.startTime(m,y);this.self.postMessage({action:"probeMp4StartTime",startTime:_,data:y},[y.buffer])}probeMp4Tracks({data:m}){let y=Ul.tracks(m);this.self.postMessage({action:"probeMp4Tracks",tracks:y,data:m},[m.buffer])}probeEmsgID3({data:m,offset:y}){let _=Ul.getEmsgID3(m,y);this.self.postMessage({action:"probeEmsgID3",id3Frames:_,emsgData:m},[m.buffer])}probeTs({data:m,baseStartTime:y}){let _=typeof y=="number"&&!isNaN(y)?y*fe.ONE_SECOND_IN_TS:void 0,w=a5.inspect(m,_),P=null;w&&(P={hasVideo:w.video&&w.video.length===2||!1,hasAudio:w.audio&&w.audio.length===2||!1},P.hasVideo&&(P.videoStart=w.video[0].ptsTime),P.hasAudio&&(P.audioStart=w.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:P,data:m},[m.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(m){let y=new Uint8Array(m.data,m.byteOffset,m.byteLength);this.transmuxer.push(y)}reset(){this.transmuxer.reset()}setTimestampOffset(m){let y=m.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(fe.secondsToVideoTs(y)))}setAudioAppendStart(m){this.transmuxer.setAudioAppendStart(Math.ceil(fe.secondsToVideoTs(m.appendStart)))}setRemux(m){this.transmuxer.setRemux(m.remux)}flush(m){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(m){this.transmuxer.alignGopsWith(m.gopsToAlignWith.slice())}}self.onmessage=function(d){if(d.data.action==="init"&&d.data.options){this.messageHandlers=new E_(self,d.data.options);return}this.messageHandlers||(this.messageHandlers=new E_(self)),d.data&&d.data.action&&d.data.action!=="init"&&this.messageHandlers[d.data.action]&&this.messageHandlers[d.data.action](d.data)}})),WB=ZC(zB),GB=(r,e,t)=>{let{type:n,initSegment:s,captions:a,captionStreams:o,metadata:l,videoFrameDtsTime:u,videoFramePtsTime:c}=r.data.segment;e.buffer.push({captions:a,captionStreams:o,metadata:l});let h=r.data.segment.boxes||{data:r.data.segment.data},f={type:n,data:new Uint8Array(h.data,h.data.byteOffset,h.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};typeof u<"u"&&(f.videoFrameDtsTime=u),typeof c<"u"&&(f.videoFramePtsTime=c),t(f)},QB=({transmuxedData:r,callback:e})=>{r.buffer=[],e(r)},KB=(r,e)=>{e.gopInfo=r.data.gopInfo},rE=r=>{let{transmuxer:e,bytes:t,audioAppendStart:n,gopsToAlignWith:s,remux:a,onData:o,onTrackInfo:l,onAudioTimingInfo:u,onVideoTimingInfo:c,onVideoSegmentTimingInfo:h,onAudioSegmentTimingInfo:f,onId3:v,onCaptions:p,onDone:T,onEndedTimeline:g,onTransmuxerLog:b,isEndOfTimeline:S,segment:x,triggerSegmentEventFn:E}=r,k={buffer:[]},A=S,N=M=>{e.currentTransmux===r&&(M.data.action==="data"&&GB(M,k,o),M.data.action==="trackinfo"&&l(M.data.trackInfo),M.data.action==="gopInfo"&&KB(M,k),M.data.action==="audioTimingInfo"&&u(M.data.audioTimingInfo),M.data.action==="videoTimingInfo"&&c(M.data.videoTimingInfo),M.data.action==="videoSegmentTimingInfo"&&h(M.data.videoSegmentTimingInfo),M.data.action==="audioSegmentTimingInfo"&&f(M.data.audioSegmentTimingInfo),M.data.action==="id3Frame"&&v([M.data.id3Frame],M.data.id3Frame.dispatchType),M.data.action==="caption"&&p(M.data.caption),M.data.action==="endedtimeline"&&(A=!1,g()),M.data.action==="log"&&b(M.data.log),M.data.type==="transmuxed"&&(A||(e.onmessage=null,QB({transmuxedData:k,callback:T}),iE(e))))},I=()=>{let M={message:"Received an error message from the transmuxer worker",metadata:{errorType:le.Error.StreamingFailedToTransmuxSegment,segmentInfo:La({segment:x})}};T(null,M)};if(e.onmessage=N,e.onerror=I,n&&e.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(s)&&e.postMessage({action:"alignGopsWith",gopsToAlignWith:s}),typeof a<"u"&&e.postMessage({action:"setRemux",remux:a}),t.byteLength){let M=t instanceof ArrayBuffer?t:t.buffer,F=t instanceof ArrayBuffer?0:t.byteOffset;E({type:"segmenttransmuxingstart",segment:x}),e.postMessage({action:"push",data:M,byteOffset:F,byteLength:t.byteLength},[M])}S&&e.postMessage({action:"endTimeline"}),e.postMessage({action:"flush"})},iE=r=>{r.currentTransmux=null,r.transmuxQueue.length&&(r.currentTransmux=r.transmuxQueue.shift(),typeof r.currentTransmux=="function"?r.currentTransmux():rE(r.currentTransmux))},Sw=(r,e)=>{r.postMessage({action:e}),iE(r)},nE=(r,e)=>{if(!e.currentTransmux){e.currentTransmux=r,Sw(e,r);return}e.transmuxQueue.push(Sw.bind(null,e,r))},XB=r=>{nE("reset",r)},YB=r=>{nE("endTimeline",r)},sE=r=>{if(!r.transmuxer.currentTransmux){r.transmuxer.currentTransmux=r,rE(r);return}r.transmuxer.transmuxQueue.push(r)},JB=r=>{let e=new WB;e.currentTransmux=null,e.transmuxQueue=[];let t=e.terminate;return e.terminate=()=>(e.currentTransmux=null,e.transmuxQueue.length=0,t.call(e)),e.postMessage({action:"init",options:r}),e},Bg={reset:XB,endTimeline:YB,transmux:sE,createTransmuxer:JB},Ko=function(r){let e=r.transmuxer,t=r.endAction||r.action,n=r.callback,s=jt({},r,{endAction:null,transmuxer:null,callback:null}),a=o=>{o.data.action===t&&(e.removeEventListener("message",a),o.data.data&&(o.data.data=new Uint8Array(o.data.data,r.byteOffset||0,r.byteLength||o.data.data.byteLength),r.data&&(r.data=o.data.data)),n(o.data))};if(e.addEventListener("message",a),r.data){let o=r.data instanceof ArrayBuffer;s.byteOffset=o?0:r.data.byteOffset,s.byteLength=r.data.byteLength;let l=[o?r.data:r.data.buffer];e.postMessage(s,l)}else e.postMessage(s)},Sn={FAILURE:2,TIMEOUT:-101,ABORTED:-102},aE="wvtt",S0=r=>{r.forEach(e=>{e.abort()})},ZB=r=>({bandwidth:r.bandwidth,bytesReceived:r.bytesReceived||0,roundTripTime:r.roundTripTime||0}),e$=r=>{let e=r.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-e.requestTime||0};return n.bytesReceived=r.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n},X0=(r,e)=>{let{requestType:t}=e,n=Ba({requestType:t,request:e,error:r});return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:Sn.TIMEOUT,xhr:e,metadata:n}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:Sn.ABORTED,xhr:e,metadata:n}:r?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:Sn.FAILURE,xhr:e,metadata:n}:e.responseType==="arraybuffer"&&e.response.byteLength===0?{status:e.status,message:"Empty HLS response at URL: "+e.uri,code:Sn.FAILURE,xhr:e,metadata:n}:null},xw=(r,e,t,n)=>(s,a)=>{let o=a.response,l=X0(s,a);if(l)return t(l,r);if(o.byteLength!==16)return t({status:a.status,message:"Invalid HLS key at URL: "+a.uri,code:Sn.FAILURE,xhr:a},r);let u=new DataView(o),c=new Uint32Array([u.getUint32(0),u.getUint32(4),u.getUint32(8),u.getUint32(12)]);for(let f=0;f<e.length;f++)e[f].bytes=c;let h={uri:a.uri};return n({type:"segmentkeyloadcomplete",segment:r,keyInfo:h}),t(null,r)},t$=(r,e)=>{e===aE&&r.transmuxer.postMessage({action:"initMp4WebVttParser",data:r.map.bytes})},r$=(r,e,t)=>{e===aE&&Ko({action:"getMp4WebVttText",data:r.bytes,transmuxer:r.transmuxer,callback:({data:n,mp4VttCues:s})=>{r.bytes=n,t(null,r,{mp4VttCues:s})}})},oE=(r,e)=>{let t=Od(r.map.bytes);if(t!=="mp4"){let n=r.map.resolvedUri||r.map.uri,s=t||"unknown";return e({internal:!0,message:`Found unsupported ${s} container for initialization segment at URL: ${n}`,code:Sn.FAILURE,metadata:{mediaType:s}})}Ko({action:"probeMp4Tracks",data:r.map.bytes,transmuxer:r.transmuxer,callback:({tracks:n,data:s})=>(r.map.bytes=s,n.forEach(function(a){r.map.tracks=r.map.tracks||{},!r.map.tracks[a.type]&&(r.map.tracks[a.type]=a,typeof a.id=="number"&&a.timescale&&(r.map.timescales=r.map.timescales||{},r.map.timescales[a.id]=a.timescale),a.type==="text"&&t$(r,a.codec))}),e(null))})},i$=({segment:r,finishProcessingFn:e,triggerSegmentEventFn:t})=>(n,s)=>{let a=X0(n,s);if(a)return e(a,r);let o=new Uint8Array(s.response);if(t({type:"segmentloaded",segment:r}),r.map.key)return r.map.encryptedBytes=o,e(null,r);r.map.bytes=o,oE(r,function(l){if(l)return l.xhr=s,l.status=s.status,e(l,r);e(null,r)})},n$=({segment:r,finishProcessingFn:e,responseType:t,triggerSegmentEventFn:n})=>(s,a)=>{let o=X0(s,a);if(o)return e(o,r);n({type:"segmentloaded",segment:r});let l=t==="arraybuffer"||!a.responseText?a.response:VB(a.responseText.substring(r.lastReachedChar||0));return r.stats=ZB(a),r.key?r.encryptedBytes=new Uint8Array(l):r.bytes=new Uint8Array(l),e(null,r)},s$=({segment:r,bytes:e,trackInfoFn:t,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:f,onTransmuxerLog:v,triggerSegmentEventFn:p})=>{let T=r.map&&r.map.tracks||{},g=!!(T.audio&&T.video),b=n.bind(null,r,"audio","start"),S=n.bind(null,r,"audio","end"),x=n.bind(null,r,"video","start"),E=n.bind(null,r,"video","end"),k=()=>sE({bytes:e,transmuxer:r.transmuxer,audioAppendStart:r.audioAppendStart,gopsToAlignWith:r.gopsToAlignWith,remux:g,onData:A=>{A.type=A.type==="combined"?"video":A.type,h(r,A)},onTrackInfo:A=>{t&&(g&&(A.isMuxed=!0),t(r,A))},onAudioTimingInfo:A=>{b&&typeof A.start<"u"&&(b(A.start),b=null),S&&typeof A.end<"u"&&S(A.end)},onVideoTimingInfo:A=>{x&&typeof A.start<"u"&&(x(A.start),x=null),E&&typeof A.end<"u"&&E(A.end)},onVideoSegmentTimingInfo:A=>{let N={pts:{start:A.start.presentation,end:A.end.presentation},dts:{start:A.start.decode,end:A.end.decode}};p({type:"segmenttransmuxingtiminginfoavailable",segment:r,timingInfo:N}),s(A)},onAudioSegmentTimingInfo:A=>{let N={pts:{start:A.start.pts,end:A.end.pts},dts:{start:A.start.dts,end:A.end.dts}};p({type:"segmenttransmuxingtiminginfoavailable",segment:r,timingInfo:N}),a(A)},onId3:(A,N)=>{o(r,A,N)},onCaptions:A=>{l(r,[A])},isEndOfTimeline:u,onEndedTimeline:()=>{c()},onTransmuxerLog:v,onDone:(A,N)=>{f&&(A.type=A.type==="combined"?"video":A.type,p({type:"segmenttransmuxingcomplete",segment:r}),f(N,r,A))},segment:r,triggerSegmentEventFn:p});Ko({action:"probeTs",transmuxer:r.transmuxer,data:e,baseStartTime:r.baseStartTime,callback:A=>{r.bytes=e=A.data;let N=A.result;N&&(t(r,{hasAudio:N.hasAudio,hasVideo:N.hasVideo,isMuxed:g}),t=null),k()}})},lE=({segment:r,bytes:e,trackInfoFn:t,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:f,onTransmuxerLog:v,triggerSegmentEventFn:p})=>{let T=new Uint8Array(e);if(Fx(T)){r.isFmp4=!0;let{tracks:g}=r.map;if(g.text&&(!g.audio||!g.video)){h(r,{data:T,type:"text"}),r$(r,g.text.codec,f);return}let S={isFmp4:!0,hasVideo:!!g.video,hasAudio:!!g.audio};g.audio&&g.audio.codec&&g.audio.codec!=="enca"&&(S.audioCodec=g.audio.codec),g.video&&g.video.codec&&g.video.codec!=="encv"&&(S.videoCodec=g.video.codec),g.video&&g.audio&&(S.isMuxed=!0),t(r,S);let x=(E,k)=>{h(r,{data:T,type:S.hasAudio&&!S.isMuxed?"audio":"video"}),k&&k.length&&o(r,k),E&&E.length&&l(r,E),f(null,r,{})};Ko({action:"probeMp4StartTime",timescales:r.map.timescales,data:T,transmuxer:r.transmuxer,callback:({data:E,startTime:k})=>{e=E.buffer,r.bytes=T=E,S.hasAudio&&!S.isMuxed&&n(r,"audio","start",k),S.hasVideo&&n(r,"video","start",k),Ko({action:"probeEmsgID3",data:T,transmuxer:r.transmuxer,offset:k,callback:({emsgData:A,id3Frames:N})=>{if(e=A.buffer,r.bytes=T=A,!g.video||!A.byteLength||!r.transmuxer){x(void 0,N);return}Ko({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:r.transmuxer,data:T,timescales:r.map.timescales,trackIds:[g.video.id],callback:I=>{e=I.data.buffer,r.bytes=T=I.data,I.logs.forEach(function(M){v(Et(M,{stream:"mp4CaptionParser"}))}),x(I.captions,N)}})}})}});return}if(!r.transmuxer){f(null,r,{});return}if(typeof r.container>"u"&&(r.container=Od(T)),r.container!=="ts"&&r.container!=="aac"){t(r,{hasAudio:!1,hasVideo:!1}),f(null,r,{});return}s$({segment:r,bytes:e,trackInfoFn:t,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:f,onTransmuxerLog:v,triggerSegmentEventFn:p})},uE=function({id:r,key:e,encryptedBytes:t,decryptionWorker:n,segment:s,doneFn:a},o){let l=c=>{if(c.data.source===r){n.removeEventListener("message",l);let h=c.data.decrypted;o(new Uint8Array(h.bytes,h.byteOffset,h.byteLength))}};n.onerror=()=>{let c="An error occurred in the decryption worker",h=La({segment:s}),f={message:c,metadata:{error:new Error(c),errorType:le.Error.StreamingFailedToDecryptSegment,segmentInfo:h,keyInfo:{uri:s.key.resolvedUri||s.map.key.resolvedUri}}};a(f,s)},n.addEventListener("message",l);let u;
vendor: 13,935 bytes, line 199
199e.bytes.slice?u=e.bytes.slice():u=new Uint32Array(Array.prototype.slice.call(e.bytes)),n.postMessage(GC({source:r,encrypted:t,key:u,iv:e.iv}),[t.buffer,u.buffer])},a$=({decryptionWorker:r,segment:e,trackInfoFn:t,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:f,onTransmuxerLog:v,triggerSegmentEventFn:p})=>{p({type:"segmentdecryptionstart"}),uE({id:e.requestId,key:e.key,encryptedBytes:e.encryptedBytes,decryptionWorker:r,segment:e,doneFn:f},T=>{e.bytes=T,p({type:"segmentdecryptioncomplete",segment:e}),lE({segment:e,bytes:e.bytes,trackInfoFn:t,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:f,onTransmuxerLog:v,triggerSegmentEventFn:p})})},o$=({activeXhrs:r,decryptionWorker:e,trackInfoFn:t,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:f,onTransmuxerLog:v,triggerSegmentEventFn:p})=>{let T=0,g=!1;return(b,S)=>{if(!g){if(b)return g=!0,S0(r),f(b,S);if(T+=1,T===r.length){let x=function(){if(S.encryptedBytes)return a$({decryptionWorker:e,segment:S,trackInfoFn:t,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:f,onTransmuxerLog:v,triggerSegmentEventFn:p});lE({segment:S,bytes:S.bytes,trackInfoFn:t,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:f,onTransmuxerLog:v,triggerSegmentEventFn:p})};if(S.endOfAllRequests=Date.now(),S.map&&S.map.encryptedBytes&&!S.map.bytes)return p({type:"segmentdecryptionstart",segment:S}),uE({decryptionWorker:e,id:S.requestId+"-init",encryptedBytes:S.map.encryptedBytes,key:S.map.key,segment:S,doneFn:f},E=>{S.map.bytes=E,p({type:"segmentdecryptioncomplete",segment:S}),oE(S,k=>{if(k)return S0(r),f(k,S);x()})});x()}}}},l$=({loadendState:r,abortFn:e})=>t=>{t.target.aborted&&e&&!r.calledAbortFn&&(e(),r.calledAbortFn=!0)},u$=({segment:r,progressFn:e,trackInfoFn:t,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h})=>f=>{if(!f.target.aborted)return r.stats=Et(r.stats,e$(f)),!r.stats.firstBytesReceivedAt&&r.stats.bytesReceived&&(r.stats.firstBytesReceivedAt=Date.now()),e(f,r)},c$=({xhr:r,xhrOptions:e,decryptionWorker:t,segment:n,abortFn:s,progressFn:a,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:h,captionsFn:f,isEndOfTimeline:v,endedTimelineFn:p,dataFn:T,doneFn:g,onTransmuxerLog:b,triggerSegmentEventFn:S})=>{let x=[],E=o$({activeXhrs:x,decryptionWorker:t,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:h,captionsFn:f,isEndOfTimeline:v,endedTimelineFn:p,dataFn:T,doneFn:g,onTransmuxerLog:b,triggerSegmentEventFn:S});if(n.key&&!n.key.bytes){let M=[n.key];n.map&&!n.map.bytes&&n.map.key&&n.map.key.resolvedUri===n.key.resolvedUri&&M.push(n.map.key);let F=Et(e,{uri:n.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),ne=xw(n,M,E,S),Q={uri:n.key.resolvedUri};S({type:"segmentkeyloadstart",segment:n,keyInfo:Q});let j=r(F,ne);x.push(j)}if(n.map&&!n.map.bytes){if(n.map.key&&(!n.key||n.key.resolvedUri!==n.map.key.resolvedUri)){let j=Et(e,{uri:n.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),H=xw(n,[n.map.key],E,S),W={uri:n.map.key.resolvedUri};S({type:"segmentkeyloadstart",segment:n,keyInfo:W});let ae=r(j,H);x.push(ae)}let F=Et(e,{uri:n.map.resolvedUri,responseType:"arraybuffer",headers:T0(n.map),requestType:"segment-media-initialization"}),ne=i$({segment:n,finishProcessingFn:E,triggerSegmentEventFn:S});S({type:"segmentloadstart",segment:n});let Q=r(F,ne);x.push(Q)}let k=Et(e,{uri:n.part&&n.part.resolvedUri||n.resolvedUri,responseType:"arraybuffer",headers:T0(n),requestType:"segment"}),A=n$({segment:n,finishProcessingFn:E,responseType:k.responseType,triggerSegmentEventFn:S});S({type:"segmentloadstart",segment:n});let N=r(k,A);N.addEventListener("progress",u$({segment:n,progressFn:a,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:h,captionsFn:f,isEndOfTimeline:v,endedTimelineFn:p,dataFn:T})),x.push(N);let I={};return x.forEach(M=>{M.addEventListener("loadend",l$({loadendState:I,abortFn:s}))}),()=>S0(x)},Md=Ui("PlaylistSelector"),ww=function(r){if(!r||!r.playlist)return;let e=r.playlist;return JSON.stringify({id:e.id,bandwidth:r.bandwidth,width:r.width,height:r.height,codecs:e.attributes&&e.attributes.CODECS||""})},Xo=function(r,e){if(!r)return"";let t=J.default.getComputedStyle(r);return t?t[e]:""},Yo=function(r,e){let t=r.slice();r.sort(function(n,s){let a=e(n,s);return a===0?t.indexOf(n)-t.indexOf(s):a})},Y0=function(r,e){let t,n;return r.attributes.BANDWIDTH&&(t=r.attributes.BANDWIDTH),t=t||J.default.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||J.default.Number.MAX_VALUE,t-n},d$=function(r,e){let t,n;return r.attributes.RESOLUTION&&r.attributes.RESOLUTION.width&&(t=r.attributes.RESOLUTION.width),t=t||J.default.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||J.default.Number.MAX_VALUE,t===n&&r.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?r.attributes.BANDWIDTH-e.attributes.BANDWIDTH:t-n},cE=function(r){let{main:e,bandwidth:t,playerWidth:n,playerHeight:s,playerObjectFit:a,limitRenditionByPlayerDimensions:o,playlistController:l}=r;if(!e)return;let u={bandwidth:t,width:n,height:s,limitRenditionByPlayerDimensions:o},c=e.playlists;ci.isAudioOnly(e)&&(c=l.getAudioTrackPlaylists_(),u.audioOnly=!0);let h=c.map(I=>{let M,F=I.attributes&&I.attributes.RESOLUTION&&I.attributes.RESOLUTION.width,ne=I.attributes&&I.attributes.RESOLUTION&&I.attributes.RESOLUTION.height;return M=I.attributes&&I.attributes.BANDWIDTH,M=M||J.default.Number.MAX_VALUE,{bandwidth:M,width:F,height:ne,playlist:I}});Yo(h,(I,M)=>I.bandwidth-M.bandwidth),h=h.filter(I=>!ci.isIncompatible(I.playlist));let f=h.filter(I=>ci.isEnabled(I.playlist));f.length||(f=h.filter(I=>!ci.isDisabled(I.playlist)));let v=f.filter(I=>I.bandwidth*Tr.BANDWIDTH_VARIANCE<t),p=v[v.length-1],T=v.filter(I=>I.bandwidth===p.bandwidth)[0];if(o===!1){let I=T||f[0]||h[0];if(I&&I.playlist){let M="sortedPlaylistReps";return T&&(M="bandwidthBestRep"),f[0]&&(M="enabledPlaylistReps"),Md(`choosing ${ww(I)} using ${M} with options`,u),I.playlist}return Md("could not choose a playlist with options",u),null}let g=v.filter(I=>I.width&&I.height);Yo(g,(I,M)=>I.width-M.width);let b=g.filter(I=>I.width===n&&I.height===s);p=b[b.length-1];let S=b.filter(I=>I.bandwidth===p.bandwidth)[0],x,E,k;S||(x=g.filter(I=>a==="cover"?I.width>n&&I.height>s:I.width>n||I.height>s),E=x.filter(I=>I.width===x[0].width&&I.height===x[0].height),p=E[E.length-1],k=E.filter(I=>I.bandwidth===p.bandwidth)[0]);let A;if(l.leastPixelDiffSelector){let I=g.map(M=>(M.pixelDiff=Math.abs(M.width-n)+Math.abs(M.height-s),M));Yo(I,(M,F)=>M.pixelDiff===F.pixelDiff?F.bandwidth-M.bandwidth:M.pixelDiff-F.pixelDiff),A=I[0]}let N=A||k||S||T||f[0]||h[0];if(N&&N.playlist){let I="sortedPlaylistReps";return A?I="leastPixelDiffRep":k?I="resolutionPlusOneRep":S?I="resolutionBestRep":T?I="bandwidthBestRep":f[0]&&(I="enabledPlaylistReps"),Md(`choosing ${ww(N)} using ${I} with options`,u),N.playlist}return Md("could not choose a playlist with options",u),null},Cw=function(){let r=this.useDevicePixelRatio&&J.default.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(r=this.customPixelRatio),cE({main:this.playlists.main,bandwidth:this.systemBandwidth,playerWidth:parseInt(Xo(this.tech_.el(),"width"),10)*r,playerHeight:parseInt(Xo(this.tech_.el(),"height"),10)*r,playerObjectFit:this.usePlayerObjectFit?Xo(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})},h$=function(r){let e=-1,t=-1;if(r<0||r>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let n=this.useDevicePixelRatio&&J.default.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(n=this.customPixelRatio),e<0&&(e=this.systemBandwidth,t=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==t&&(e=r*this.systemBandwidth+(1-r)*e,t=this.systemBandwidth),cE({main:this.playlists.main,bandwidth:e,playerWidth:parseInt(Xo(this.tech_.el(),"width"),10)*n,playerHeight:parseInt(Xo(this.tech_.el(),"height"),10)*n,playerObjectFit:this.usePlayerObjectFit?Xo(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})}},f$=function(r){let{main:e,currentTime:t,bandwidth:n,duration:s,segmentDuration:a,timeUntilRebuffer:o,currentTimeline:l,syncController:u}=r,c=e.playlists.filter(T=>!ci.isIncompatible(T)),h=c.filter(ci.isEnabled);h.length||(h=c.filter(T=>!ci.isDisabled(T)));let v=h.filter(ci.hasAttribute.bind(null,"BANDWIDTH")).map(T=>{let b=u.getSyncPoint(T,s,l,t)?1:2,x=ci.estimateSegmentRequestTime(a,n,T)*b-o;return{playlist:T,rebufferingImpact:x}}),p=v.filter(T=>T.rebufferingImpact<=0);return Yo(p,(T,g)=>Y0(g.playlist,T.playlist)),p.length?p[0]:(Yo(v,(T,g)=>T.rebufferingImpact-g.rebufferingImpact),v[0]||null)},p$=function(){let r=this.playlists.main.playlists.filter(ci.isEnabled);return Yo(r,(t,n)=>Y0(t,n)),r.filter(t=>!!Pu(this.playlists.main,t).video)[0]||null},m$=r=>{let e=0,t;return r.bytes&&(t=new Uint8Array(r.bytes),r.segments.forEach(n=>{t.set(n,e),e+=n.byteLength})),t};g$=function(r,e,t){if(!r[t]){e.trigger({type:"usage",name:"vhs-608"});let n=t;/^cc708_/.test(t)&&(n="SERVICE"+t.split("_")[1]);let s=e.textTracks().getTrackById(n);if(s)r[t]=s;else{let a=e.options_.vhs&&e.options_.vhs.captionServices||{},o=t,l=t,u=!1,c=a[n];c&&(o=c.label,l=c.language,u=c.default),r[t]=e.addRemoteTextTrack({kind:"captions",id:n,default:u,label:o,language:l},!1).track}}},v$=function({inbandTextTracks:r,captionArray:e,timestampOffset:t}){if(!e)return;let n=J.default.WebKitDataCue||J.default.VTTCue;e.forEach(s=>{let a=s.stream;s.content?s.content.forEach(o=>{let l=new n(s.startTime+t,s.endTime+t,o.text);l.line=o.line,l.align="left",l.position=o.position,l.positionAlign="line-left",r[a].addCue(l)}):r[a].addCue(new n(s.startTime+t,s.endTime+t,s.text))})},y$=function(r){Object.defineProperties(r.frame,{id:{get(){return le.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),r.value.key}},value:{get(){return le.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),r.value.data}},privateData:{get(){return le.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),r.value.data}}})},b$=({inbandTextTracks:r,metadataArray:e,timestampOffset:t,videoDuration:n})=>{if(!e)return;let s=J.default.WebKitDataCue||J.default.VTTCue,a=r.metadataTrack_;if(!a||(e.forEach(h=>{let f=h.cueTime+t;typeof f!="number"||J.default.isNaN(f)||f<0||!(f<1/0)||!h.frames||!h.frames.length||h.frames.forEach(v=>{let p=new s(f,f,v.value||v.url||v.data||"");p.frame=v,p.value=v,y$(p),a.addCue(p)})}),!a.cues||!a.cues.length))return;let o=a.cues,l=[];for(let h=0;h<o.length;h++)o[h]&&l.push(o[h]);let u=l.reduce((h,f)=>{let v=h[f.startTime]||[];return v.push(f),h[f.startTime]=v,h},{}),c=Object.keys(u).sort((h,f)=>Number(h)-Number(f));c.forEach((h,f)=>{let v=u[h],p=isFinite(n)?n:h,T=Number(c[f+1])||p;v.forEach(g=>{g.endTime=T})})},_$={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"},T$=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),S$=({inbandTextTracks:r,dateRanges:e})=>{let t=r.metadataTrack_;if(!t)return;let n=J.default.WebKitDataCue||J.default.VTTCue;e.forEach(s=>{for(let a of Object.keys(s)){if(T$.has(a))continue;let o=new n(s.startTime,s.endTime,"");o.id=s.id,o.type="com.apple.quicktime.HLS",o.value={key:_$[a],data:s[a]},(a==="scte35Out"||a==="scte35In")&&(o.value.data=new Uint8Array(o.value.data.match(/[\da-f]{2}/gi)).buffer),t.addCue(o)}s.processDateRange()})},Ew=(r,e,t)=>{r.metadataTrack_||(r.metadataTrack_=t.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,le.browser.IS_ANY_SAFARI||(r.metadataTrack_.inBandMetadataTrackDispatchType=e))},wu=function(r,e,t){let n,s;if(t&&t.cues)for(n=t.cues.length;n--;)s=t.cues[n],s.startTime>=r&&s.endTime<=e&&t.removeCue(s)},x$=function(r){let e=r.cues;if(!e)return;let t={};for(let n=e.length-1;n>=0;n--){let s=e[n],a=`${s.startTime}-${s.endTime}-${s.text}`;t[a]?r.removeCue(s):t[a]=s}},w$=(r,e,t)=>{if(typeof e>"u"||e===null||!r.length)return[];let n=Math.ceil((e-t+3)*Ds.ONE_SECOND_IN_TS),s;for(s=0;s<r.length&&!(r[s].pts>n);s++);return r.slice(s)},C$=(r,e,t)=>{if(!e.length)return r;if(t)return e.slice();let n=e[0].pts,s=0;for(s;s<r.length&&!(r[s].pts>=n);s++);return r.slice(0,s).concat(e)},E$=(r,e,t,n)=>{let s=Math.ceil((e-n)*Ds.ONE_SECOND_IN_TS),a=Math.ceil((t-n)*Ds.ONE_SECOND_IN_TS),o=r.slice(),l=r.length;for(;l--&&!(r[l].pts<=a););if(l===-1)return o;let u=l+1;for(;u--&&!(r[u].pts<=s););return u=Math.max(u,0),o.splice(u,l-u+1),o},k$=function(r,e){if(!r&&!e||!r&&e||r&&!e)return!1;if(r===e)return!0;let t=Object.keys(r).sort(),n=Object.keys(e).sort();if(t.length!==n.length)return!1;for(let s=0;s<t.length;s++){let a=t[s];if(a!==n[s]||r[a]!==e[a])return!1}return!0},A$=function(r,e,t){e=e||[];let n=[],s=0;for(let a=0;a<e.length;a++){let o=e[a];if(r===o.timeline&&(n.push(a),s+=o.duration,s>t))return a}return n.length===0?0:n[n.length-1]},Su=1,P$=500,kw=r=>typeof r=="number"&&isFinite(r),Bd=1/60,D$=(r,e,t)=>r!=="main"||!e||!t?null:!t.hasAudio&&!t.hasVideo?"Neither audio nor video foun
199d in segment.":e.hasVideo&&!t.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&&t.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,I$=(r,e,t)=>{let n=e-Tr.BACK_BUFFER_LENGTH;r.length&&(n=Math.max(n,r.start(0)));let s=e-t;return Math.min(s,n)},Ho=r=>{let{startOfSegment:e,duration:t,segment:n,part:s,playlist:{mediaSequence:a,id:o,segments:l=[]},mediaIndex:u,partIndex:c,timeline:h}=r,f=l.length-1,v="mediaIndex/partIndex increment";r.getMediaInfoForTime?v=`getMediaInfoForTime (${r.getMediaInfoForTime})`:r.isSyncRequest&&(v="getSyncSegmentCandidate (isSyncRequest)"),r.independent&&(v+=` with independent ${r.independent}`);let p=typeof c=="number",T=r.segment.uri?"segment":"pre-segment",g=p?PC({preloadSegment:n})-1:0;return`${T} [${a+u}/${a+f}]`+(p?` part [${c}/${g}]`:"")+` segment start/end [${n.start} => ${n.end}]`+(p?` part start/end [${s.start} => ${s.end}]`:"")+` startOfSegment [${e}] duration [${t}] timeline [${h}] selected by [${v}] playlist [${o}]`},Aw=r=>`${r}TimingInfo`,O$=({segmentTimeline:r,currentTimeline:e,startOfSegment:t,buffered:n,overrideCheck:s})=>!s&&r===e?null:r<e?t:n.length?n.end(n.length-1):t,x0=({timelineChangeController:r,currentTimeline:e,segmentTimeline:t,loaderType:n,audioDisabled:s})=>{if(e===t)return!1;if(n==="audio"){let a=r.lastTimelineChange({type:"main"});return!a||a.to!==t}if(n==="main"&&s){let a=r.pendingTimelineChange({type:"audio"});return!(a&&a.to===t)}return!1},L$=r=>{if(!r)return!1;let e=r.pendingTimelineChange({type:"audio"}),t=r.pendingTimelineChange({type:"main"}),n=e&&t,s=n&&e.to!==t.to;return!!(n&&e.from!==-1&&t.from!==-1&&s)},R$=r=>{let e=r.timelineChangeController_.pendingTimelineChange({type:"audio"}),t=r.timelineChangeController_.pendingTimelineChange({type:"main"});return e&&t&&e.to<t.to},ks=r=>{let e=r.pendingSegment_;if(!e)return;if(x0({timelineChangeController:r.timelineChangeController_,currentTimeline:r.currentTimeline_,segmentTimeline:e.timeline,loaderType:r.loaderType_,audioDisabled:r.audioDisabled_})&&L$(r.timelineChangeController_)){if(R$(r)){r.timelineChangeController_.trigger("audioTimelineBehind");return}r.timelineChangeController_.trigger("fixBadTimelineChange")}},N$=r=>{let e=0;return["video","audio"].forEach(function(t){let n=r[`${t}TimingInfo`];if(!n)return;let{start:s,end:a}=n,o;typeof s=="bigint"||typeof a=="bigint"?o=J.default.BigInt(a)-J.default.BigInt(s):typeof s=="number"&&typeof a=="number"&&(o=a-s),typeof o<"u"&&o>e&&(e=o)}),typeof e=="bigint"&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),e},Pw=({segmentDuration:r,maxDuration:e})=>r?Math.round(r)>e+_n:!1,M$=(r,e)=>{if(e!=="hls")return null;let t=N$({audioTimingInfo:r.audioTimingInfo,videoTimingInfo:r.videoTimingInfo});if(!t)return null;let n=r.playlist.targetDuration,s=Pw({segmentDuration:t,maxDuration:n*2}),a=Pw({segmentDuration:t,maxDuration:n}),o=`Segment with index ${r.mediaIndex} from playlist ${r.playlist.id} has a duration of ${t} when the reported duration is ${r.duration} and the target duration is ${n}. 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 s||a?{severity:s?"warn":"info",message:o}:null},La=({type:r,segment:e})=>{if(!e)return;let t=!!(e.key||e.map&&e.map.ke),n=!!(e.map&&!e.map.bytes),s=e.startOfSegment===void 0?e.start:e.startOfSegment;return{type:r||e.type,uri:e.resolvedUri||e.uri,start:s,duration:e.duration,isEncrypted:t,isMediaInitialization:n}},Ju=class extends le.EventTarget{constructor(e,t={}){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_={}
vendor: 6,620 bytes, lines 199-202
199,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_=Ui(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(n){n!==this.state_&&(this.logger_(`${this.state_} -> ${n}`),this.state_=n,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():ks(this)}),this.sourceUpdater_.on("codecschange",n=>{this.trigger(jt({type:"codecschange"},n))}),this.loaderType_==="main"&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():ks(this)}),this.loaderType_==="audio"&&this.timelineChangeController_.on("timelinechange",n=>{this.trigger(jt({type:"timelinechange"},n)),this.hasEnoughInfoToLoad_()?this.processLoadQueue_():ks(this),this.hasEnoughInfoToAppend_()?this.processCallQueue_():ks(this)})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return Bg.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_&&J.default.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,J.default.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_&&Bg.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){let e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Sr();if(this.loaderType_==="main"){let{hasAudio:t,hasVideo:n,isMuxed:s}=e;if(n&&t&&!this.audioDisabled_&&!s)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;let n=Nh(e),s=this.initSegments_[n];return t&&!s&&e.bytes&&(this.initSegments_[n]=s={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),s||e}segmentKey(e,t=!1){if(!e)return null;let n=QC(e),s=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!s&&e.bytes&&(this.keyCache_[n]=s={resolvedUri:e.resolvedUri,bytes:e.bytes});let a={resolvedUri:(s||e).resolvedUri};return s&&(a.bytes=s.bytes),a}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,t={}){if(!e||this.playlist_&&this.playlist_.endList&&e.endList&&this.playlist_.uri===e.uri)return;let n=this.playlist_,s=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,this.state==="INIT"&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},this.loaderType_==="main"&&this.syncController_.setDateTimeMappingForStart(e));let a=null;if(n&&(n.id?a=n.id:n.uri&&(a=n.uri)),this.logger_(`playlist update [${a} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:
200currentTime: ${this.currentTime_()}
201bufferedEnd: ${Ng(this.buffered_())}
202`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri){this.mediaIndex!==null&&(!e.endList&&typeof e.partTargetDuration=="number"?this.resetLoader():this.resyncLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}let o=e.mediaSequence-n.mediaSequence;if(this.logger_(`live window shift [${o}]`),this.mediaIndex!==null)if(this.mediaIndex-=o,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{let l=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!l.parts||!l.parts.length||!l.parts[this.partIndex])){let u=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=u}}s&&(s.mediaIndex-=o,s.mediaIndex<0?(s.mediaIndex=null,s.partIndex=null):(s.mediaIndex>=0&&(s.segment=e.segments[s.mediaIndex]),s.partIndex>=0&&s.segment.parts&&(s.part=s.segment.parts[s.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}pause(){this.checkBufferTimeout_&&(J.default.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"}))}
vendor: 6,990 bytes, lines 202-207
202resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&Bg.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;let 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,t,n=()=>{},s=!1){if(t===1/0&&(t=this.duration_()),t<=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 a=1,o=()=>{a--,a===0&&n()};(s||!this.audioDisabled_)&&(a++,this.sourceUpdater_.removeAudio(e,t,o)),(s||this.loaderType_==="main")&&(this.gopBuffer_=E$(this.gopBuffer_,e,t,this.timeMapping_),a++,this.sourceUpdater_.removeVideo(e,t,o));for(let l in this.inbandTextTracks_)wu(e,t,this.inbandTextTracks_[l]);wu(e,t,this.segmentMetadataTrack_),o()}monitorBuffer_(){this.checkBufferTimeout_&&J.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=J.default.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&J.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=J.default.setTimeout(this.monitorBufferTick_.bind(this),P$)}fillBuffer_(){if(this.sourceUpdater_.updating())return;let e=this.chooseNextRequest_();if(!e)return;let t={segmentInfo:La({type:this.loaderType_,segment:e})};this.trigger({type:"segmentselected",metadata:t}),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,t=this.playlist_,n=this.partIndex){if(!t||!this.mediaSource_)return!1;let s=typeof e=="number"&&t.segments[e],a=e+1===t.segments.length,o=!s||!s.parts||n+1===s.parts.length;return t.endList&&this.mediaSource_.readyState==="open"&&a&&o}chooseNextRequest_(){let e=this.buffered_(),t=Ng(e)||0,n=W0(e,this.currentTime_()),s=!this.hasPlayed_()&&n>=1,a=n>=this.goalBufferLength_(),o=this.playlist_.segments;if(!o.length||s||a)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);let l={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(l.isSyncRequest)l.mediaIndex=A$(this.currentTimeline_,o,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${l.mediaIndex}`);else if(this.mediaIndex!==null){let v=o[this.mediaIndex],p=typeof this.partIndex=="number"?this.partIndex:-1;l.startOfSegment=v.end?v.end:t,v.parts&&v.parts[p+1]?(l.mediaIndex=this.mediaIndex,l.partIndex=p+1):l.mediaIndex=this.mediaIndex+1}else{let v,p,T,g=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:
203For TargetTime: ${g}.
204CurrentTime: ${this.currentTime_()}
205BufferedEnd: ${t}
206Fetch At Buffer: ${this.fetchAtBuffer_}
207`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){let b=this.getSyncInfoFromMediaSequenceSync_(g);if(!b){let S="No sync info found while using media sequence sync";return this.error({message:S,metadata:{errorType:le.Error.StreamingFailedToSelectNextSegment,error:new Error(S)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${b.start} --> ${b.end})`),v=b.segmentIndex,p=b.partIndex,T=b.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");let b=ci.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:g,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});v=b.segmentIndex,p=b.partIndex,T=b.startTime}l.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${g}`:`currentTime ${g}`,l.mediaIndex=v,l.startOfSegment=T,l.partIndex=p,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${l.mediaIndex} `)}let u=o[l.mediaIndex],c=u&&typeof l.partIndex=="number"&&u.parts&&u.parts[l.partIndex];if(!u||typeof l.partIndex=="number"&&!c)return null;typeof l.partIndex!="number"&&u.parts&&(l.partIndex=0,c=u.parts[0]);let h=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!n&&c&&!h&&!c.independent)if(l.partIndex===0){let v=o[l.mediaIndex-1],p=v.parts&&v.parts.length&&v.parts[v.parts.length-1];p&&p.independent&&(l.mediaIndex-=1,l.partIndex=v.parts.length-1,l.independent="previous segment")}else u.parts[l.partIndex-1].independent&&(l.partIndex-=1,l.independent="previous part");let f=this.mediaSource_&&this.mediaSource_.readyState==="ended";return l.mediaIndex>=o.length-1&&f&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,l.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(l))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;let t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${t}`);let n=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!n)return null;if(!n.isAppended)return n;let s=this.mediaSequenceSync_.getSyncInfoForTime(n.end);return s?(s.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),s):null}generateSegmentInfo_(e){let{independent:t,playlist:n,mediaIndex:s,startOfSegment:a,isSyncRequest:o,partIndex:l,forceTimestampOffset:u,getMediaInfoForTime:c}=e,h=n.segments[s],f=typeof l=="number"&&h.parts[l],v={requestId:"segment-loader-"+Math.random(),uri:f&&f.resolvedUri||h.resolvedUri,mediaIndex:s,partIndex:f?l:null,isSyncRequest:o,startOfSegment:a,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:h.timeline,duration:f&&f.duration||h.duration,segment:h,part:f,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:c,independent:t},p=typeof u<"u"?u:this.isPendingTimestampOffset_;v.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:h.timeline,currentTimeline:this.currentTimeline_,startOfSegment:a,buffered:this.buffered_(),overrideCheck:p});
vendor: 22,237 bytes, lines 207-209
207let T=Ng(this.sourceUpdater_.audioBuffered());return typeof T=="number"&&(v.audioAppendStart=T-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(v.gopsToAlignWith=w$(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),v}timestampOffsetForSegment_(e){return O$(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;let t=this.currentTime_(),n=e.bandwidth,s=this.pendingSegment_.duration,a=ci.estimateSegmentRequestTime(s,n,this.playlist_,e.bytesReceived),o=eB(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(a<=o)return;let l=f$({main:this.vhs_.playlists.main,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:s,timeUntilRebuffer:o,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!l)return;let c=a-o-l.rebufferingImpact,h=.5;o<=_n&&(h=1),!(!l.playlist||l.playlist.uri===this.playlist_.uri||c<h)&&(this.bandwidth=l.playlist.attributes.BANDWIDTH*Tr.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${Ho(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)&&this.trigger("progress")}handleTrackInfo_(e,t){let{hasAudio:n,hasVideo:s}=t,a={segmentInfo:La({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:n,hasVideo:s}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:a}),this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)&&(this.checkForIllegalMediaSwitch(t)||(t=t||{},k$(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),!this.checkForAbort_(e.requestId)&&(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()?this.processCallQueue_():ks(this))))}handleTimingInfo_(e,t,n,s){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;let a=this.pendingSegment_,o=Aw(t);a[o]=a[o]||{},a[o][n]=s,this.logger_(`timinginfo: ${t} - ${n} - ${s}`),this.hasEnoughInfoToAppend_()?this.processCallQueue_():ks(this)}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(t.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,t));return}let s=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),a={};t.forEach(o=>{a[o.stream]=a[o.stream]||{startTime:1/0,captions:[],endTime:0};let l=a[o.stream];l.startTime=Math.min(l.startTime,o.startTime+s),l.endTime=Math.max(l.endTime,o.endTime+s),l.captions.push(o)}),Object.keys(a).forEach(o=>{let{startTime:l,endTime:u,captions:c}=a[o],h=this.inbandTextTracks_;this.logger_(`adding cues from ${l} -> ${u} for ${o}`),g$(h,this.vhs_.tech_,o),wu(l,u,h[o]),v$({captionArray:c,inbandTextTracks:h,timestampOffset:s})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n));return}this.addMetadataToTextTrack(n,t,this.duration_())}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){let e=this.callQueue_;this.callQueue_=[],e.forEach(t=>t())}processLoadQueue_(){let e=this.loadQueue_;this.loadQueue_=[],e.forEach(t=>t())}hasEnoughInfoToLoad_(){if(this.loaderType_!=="audio")return!0;let e=this.pendingSegment_;return e?this.getCurrentMediaInfo_()?!x0({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;let e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;let{hasAudio:n,hasVideo:s,isMuxed:a}=t;return!(s&&!e.videoTimingInfo||n&&!this.audioDisabled_&&!a&&!e.audioTimingInfo||x0({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){ks(this),this.callQueue_.push(this.handleData_.bind(this,e,t));return}let n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),this.mediaSource_.readyState!=="closed"){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[Aw(t.type)].start;else{let s=this.getCurrentMediaInfo_(),a=this.loaderType_==="main"&&s&&s.hasVideo,o;a&&(o=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:o,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:this.loaderType_==="main"});let s=this.chooseNextRequest_();if(s.mediaIndex!==n.mediaIndex||s.partIndex!==n.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}updateAppendInitSegmentStatus(e,t){this.loaderType_==="main"&&typeof e.timestampOffset=="number"&&!e.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:n,playlist:s}){if(n){let a=Nh(n);if(this.activeInitSegmentId_===a)return null;t=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=a}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=s,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:n},s){let a=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Ra(a).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Ra(o).join(", "));let l=a.length?a.start(0):0,u=a.length?a.end(a.length-1):0,c=o.length?o.start(0):0,h=o.length?o.end(o.length-1):0;if(u-l<=Su&&h-c<=Su){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${n.byteLength}, audio buffer: ${Ra(a).join(", ")}, video buffer: ${Ra(o).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:t,bytes:n}));let v=this.currentTime_()-Su;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${v}`),this.remove(0,v,()=>{this.logger_(`On QUOTA_EXCEEDED_ERR, retrying append in ${Su}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=J.default.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},Su*1e3)},!0)}handleAppendError_({segmentInfo:e,type:t,bytes:n},s){if(s){if(s.code===UC){this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:n});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",s),this.error({message:`${t} append of ${n.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:le.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:n,data:s,bytes:a}){if(!a){let l=[s],u=s.byteLength;n&&(l.unshift(n),u+=n.byteLength),a=m$({bytes:u,segments:l})}let o={segmentInfo:La({type:this.loaderType_,segment:e})};this.trigger({type:"segmentappendstart",metadata:o}),this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:a}))}handleSegmentTimingInfo_(e,t,n){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;let s=this.pendingSegment_.segment,a=`${e}TimingInfo`;s[a]||(s[a]={}),s[a].transmuxerPrependedSeconds=n.prependedContentDuration||0,s[a].transmuxedPresentationStart=n.start.presentation,s[a].transmuxedDecodeStart=n.start.decode,s[a].transmuxedPresentationEnd=n.end.presentation,s[a].transmuxedDecodeEnd=n.end.decode,s[a].baseMediaDecodeTime=n.baseMediaDecodeTime}appendData_(e,t){let{type:n,data:s}=t;if(!s||!s.byteLength||n==="audio"&&this.audioDisabled_)return;let a=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:a,data:s})}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_()){ks(this),this.loadQueue_.push(()=>{let t=jt({},e,{forceTimestampOffset:!0});jt(e,this.generateSegmentInfo_(t)),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}));let t=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),s=this.mediaIndex!==null,a=e.timeline!==this.currentTimeline_&&e.timeline>0,o=n||s&&a;this.logger_(`Requesting
208${dE(e.uri)}
209${Ho(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=c$({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,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:o,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:l,level:u,stream:c})=>{this.logger_(`${Ho(e)} logged from transmuxer stream ${c} as a ${u}: ${l}`)},triggerSegmentEventFn:({type:l,segment:u,keyInfo:c,trackInfo:h,timingInfo:f})=>{let p={segmentInfo:La({segment:u})};c&&(p.keyInfo=c),h&&(p.trackInfo=h),f&&(p.timingInfo=f),this.trigger({type:l,metadata:p})}})}trimBackBuffer_(e){let t=I$(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){let t=e.segment,n=e.part,s=e.segment.key||e.segment.map&&e.segment.map.key,a=e.segment.map&&!e.segment.map.bytes,o={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.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:s,isMediaInitialization:a},l=e.playlist.segments[e.mediaIndex-1];if(l&&l.timeline===t.timeline&&(l.videoTimingInfo?o.baseStartTime=l.videoTimingInfo.transmuxedDecodeEnd:l.audioTimingInfo&&(o.baseStartTime=l.audioTimingInfo.transmuxedDecodeEnd)),t.key){let u=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);o.key=this.segmentKey(t.key),o.key.iv=u}return t.map&&(o.map=this.initSegmentForMap(t.map)),o}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e<Bd){this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${Bd}`);return}let n={bandwidthInfo:{from:this.bandwidth,to:t.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:n}),this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,n){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_||t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Sn.ABORTED)return;if(this.pause(),e.code===Sn.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(e),this.trigger("error");return}let s=this.pendingSegment_;this.saveBandwidthRelatedStats_(s.duration,t.stats),s.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=C$(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(s)}setTimeMapping_(e){let t=this.syncController_.mappingForTimeline(e);t!==null&&(this.timeMapping_=t)}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:t,mediaIndex:n,firstVideoFrameTimeForData:s,currentVideoTimestampOffset:a,useVideoTimingInfo:o,videoTimingInfo:l,audioTimingInfo:u}){if(typeof e<"u")return e;if(!o)return u.start;let c=t.segments[n-1];return n===0||!c||typeof c.start>"u"||c.end!==s+a?s:l.start}waitForAppendsToComplete_(e){let t=this.getCurrentMediaInfo_(e);if(!t){this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),this.trigger("error");return}let{hasAudio:n,hasVideo:s,isMuxed:a}=t,o=this.loaderType_==="main"&&s,l=!this.audioDisabled_&&n&&!a;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}o&&e.waitingOnAppends++,l&&e.waitingOnAppends++,o&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),l&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,e.waitingOnAppends===0&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){let t=D$(this.loaderType_,this.getCurrentMediaInfo_(),e);return t?(this.error({message:t,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 t=!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),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:n}){return this.useDtsForTimestampOffset_?e&&typeof e.transmuxedDecodeStart=="number"?e.transmuxedDecodeStart:t&&typeof t.transmuxedDecodeStart=="number"?t.transmuxedDecodeStart:n.start:n.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};let t=this.getMediaInfo_(),s=this.loaderType_==="main"&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;s&&(e.timingInfo.end=typeof s.end=="number"?s.end:s.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_){let u={segmentInfo:La({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:u})}if(!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}let 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"});let t=M$(e,this.sourceType_);if(t&&(t.severity==="warn"?le.log.warn(t.message):this.logger_(t.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 ${Ho(e)}`);return}this.logger_(`Appended ${Ho(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");let n=e.segment,s=e.part,a=n.end&&this.currentTime_()-n.end>e.playlist.targetDuration*3,o=s&&s.end&&this.currentTime_()-s.end>e.playlist.partTargetDuration*3;if(a||o){this.logger_(`bad ${a?"segment":"part"} ${Ho(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<Bd){this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${Bd}`);return}let t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,s=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(s-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;let t=e.segment,n=t.start,s=t.end;if(!kw(n)||!kw(s))return;wu(n,s,this.segmentMetadataTrack_);let a=J.default.WebKitDataCue||J.default.VTTCue,o={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.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:n,end:s},l=JSON.stringify(o),u=new a(n,s,l);u.value=o,this.segmentMetadataTrack_.addCue(u)}};hE=function(r){return typeof r!="string"?r:r.replace(/./,e=>e.toUpperCase())},B$=["video","audio"],w0=(r,e)=>{let t=e[`${r}Buffer`];return t&&t.updating||e.queuePending[r]},$$=(r,e)=>{for(let t=0;t<e.length;t++){let n=e[t];if(n.type==="mediaSource")return null;if(n.type===r)return t}return null},Jo=(r,e)=>{if(e.queue.length===0)return;let t=0,n=e.queue[t];if(n.type==="mediaSource"){!e.updating()&&e.mediaSource.readyState!=="closed"&&(e.queue.shift(),n.action(e),n.doneFn&&n.doneFn(),Jo("audio",e),Jo("video",e));return}if(r!=="mediaSource"&&!(!e.ready()||e.mediaSource.readyState==="closed"||w0(r,e))){if(n.type!==r){if(t=$$(r,e.queue),t===null)return;n=e.queue[t]}if(e.queue.splice(t,1),e.queuePending[r]=n,n.action(r,e),!n.doneFn){e.queuePending[r]=null,Jo(r,e);return}}},fE=(r,e)=>{let t=e[`${r}Buffer`],n=hE(r);t&&(t.removeEventListener("updateend",e[`on${n}UpdateEnd_`]),t.removeEventListener("error",e[`on${n}Error_`]),e.codecs[r]=null,e[`${r}Buffer`]=null)},yn=(r,e)=>r&&e&&Array.prototype.indexOf.call(r.sourceBuffers,e)!==-1,bi={appendBuffer:(r,e,t)=>(n,s)=>{let a=s[`${n}Buffer`];if(yn(s.mediaSource,a)){s.logger_(`Appending segment ${e.mediaIndex}'s ${r.length} bytes to ${n}Buffer`);try{a.appendBuffer(r)}catch(o){s.logger_(`Error with code ${o.code} `+(o.code===UC?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${e.mediaIndex} to ${n}Buffer`),s.queuePending[n]=null,t(o)}}},remove:(r,e)=>(t,n)=>{let s=n[`${t}Buffer`];if(yn(n.mediaSource,s)){n.logger_(`Removing ${r} to ${e} from ${t}Buffer`);try{s.remove(r,e)}catch{n.logger_(`Remove ${r} to ${e} from ${t}Buffer failed`)}}},timestampOffset:r=>(e,t)=>
vendor: 3,225 bytes, line 209
209{let n=t[`${e}Buffer`];yn(t.mediaSource,n)&&(t.logger_(`Setting ${e}timestampOffset to ${r}`),n.timestampOffset=r)},callback:r=>(e,t)=>{r()},endOfStream:r=>e=>{if(e.mediaSource.readyState==="open"){e.logger_(`Calling mediaSource endOfStream(${r||""})`);try{e.mediaSource.endOfStream(r)}catch(t){le.log.warn("Failed to call media source endOfStream",t)}}},duration:r=>e=>{e.logger_(`Setting mediaSource duration to ${r}`);try{e.mediaSource.duration=r}catch(t){le.log.warn("Failed to set media source duration",t)}},abort:()=>(r,e)=>{if(e.mediaSource.readyState!=="open")return;let t=e[`${r}Buffer`];if(yn(e.mediaSource,t)){e.logger_(`calling abort on ${r}Buffer`);try{t.abort()}catch(n){le.log.warn(`Failed to abort on ${r}Buffer`,n)}}},addSourceBuffer:(r,e)=>t=>{let n=hE(r),s=Aa(e);t.logger_(`Adding ${r}Buffer with codec ${e} to mediaSource`);let a=t.mediaSource.addSourceBuffer(s);a.addEventListener("updateend",t[`on${n}UpdateEnd_`]),a.addEventListener("error",t[`on${n}Error_`]),t.codecs[r]=e,t[`${r}Buffer`]=a},removeSourceBuffer:r=>e=>{let t=e[`${r}Buffer`];if(fE(r,e),!!yn(e.mediaSource,t)){e.logger_(`Removing ${r}Buffer with codec ${e.codecs[r]} from mediaSource`);try{e.mediaSource.removeSourceBuffer(t)}catch(n){le.log.warn(`Failed to removeSourceBuffer ${r}Buffer`,n)}}},changeType:r=>(e,t)=>{let n=t[`${e}Buffer`],s=Aa(r);if(!yn(t.mediaSource,n))return;let a=r.substring(0,r.indexOf(".")),o=t.codecs[e];if(o.substring(0,o.indexOf("."))===a)return;let u={codecsChangeInfo:{from:o,to:r}};t.trigger({type:"codecschange",metadata:u}),t.logger_(`changing ${e}Buffer codec from ${o} to ${r}`);try{n.changeType(s),t.codecs[e]=r}catch(c){u.errorType=le.Error.StreamingCodecsChangeError,u.error=c,c.metadata=u,t.error_=c,t.trigger("error"),le.log.warn(`Failed to changeType on ${e}Buffer`,c)}}},_i=({type:r,sourceUpdater:e,action:t,doneFn:n,name:s})=>{e.queue.push({type:r,action:t,doneFn:n,name:s}),Jo(r,e)},Dw=(r,e)=>t=>{let n=e[`${r}Buffered`](),s=Y6(n);if(e.logger_(`received "updateend" event for ${r} Source Buffer: `,s),e.queuePending[r]){let a=e.queuePending[r].doneFn;e.queuePending[r]=null,a&&a(e[`${r}Error_`])}Jo(r,e)},Mh=class extends le.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>Jo("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=Ui("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=Dw("video",this),this.onAudioUpdateEnd_=Dw("audio",this),this.onVideoError_=t=>{this.videoError_=t},this.onAudioError_=t=>{this.audioError_=t},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())}
vendor: 4,469 bytes, lines 209-211
209triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){_i({type:"mediaSource",sourceUpdater:this,action:bi.addSourceBuffer(e,t),name:"addSourceBuffer"})}abort(e){_i({type:e,sourceUpdater:this,action:bi.abort(e),name:"abort"})}removeSourceBuffer(e){if(!this.canRemoveSourceBuffer()){le.log.error("removeSourceBuffer is not supported!");return}_i({type:"mediaSource",sourceUpdater:this,action:bi.removeSourceBuffer(e),name:"removeSourceBuffer"})}canRemoveSourceBuffer(){return!le.browser.IS_FIREFOX&&J.default.MediaSource&&J.default.MediaSource.prototype&&typeof J.default.MediaSource.prototype.removeSourceBuffer=="function"}static canChangeType(){return J.default.SourceBuffer&&J.default.SourceBuffer.prototype&&typeof J.default.SourceBuffer.prototype.changeType=="function"}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){if(!this.canChangeType()){le.log.error("changeType is not supported!");return}_i({type:e,sourceUpdater:this,action:bi.changeType(t),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(t=>{let n=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,n);this.canChangeType()&&this.changeType(t,n)})}appendBuffer(e,t){let{segmentInfo:n,type:s,bytes:a}=e;if(this.processedAppend_=!0,s==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([e,t]),this.logger_(`delayed audio append of ${a.length} until video append`);return}let o=t;if(_i({type:s,sourceUpdater:this,action:bi.appendBuffer(a,n||{mediaIndex:-1},o),doneFn:t,name:"appendBuffer"}),s==="video"){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;let l=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${l.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,l.forEach(u=>{this.appendBuffer.apply(this,u)})}}audioBuffered(){return yn(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Sr()}videoBuffered(){return yn(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Sr()}buffered(){let e=yn(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=yn(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():Z6(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=Xn){_i({type:"mediaSource",sourceUpdater:this,action:bi.duration(e),name:"duration",doneFn:t})}endOfStream(e=null,t=Xn){typeof e!="string"&&(e=void 0),_i({type:"mediaSource",sourceUpdater:this,action:bi.endOfStream(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,n=Xn){if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){n();return}_i({type:"audio",sourceUpdater:this,action:bi.remove(e,t),doneFn:n,name:"remove"})}removeVideo(e,t,n=Xn){if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){n();return}_i({type:"video",sourceUpdater:this,action:bi.remove(e,t),doneFn:n,name:"remove"})}updating(){return!!(w0("audio",this)||w0("video",this))}audioTimestampOffset(e){return typeof e<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(_i({type:"audio",sourceUpdater:this,action:bi.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return typeof e<"u"&&this.videoBuffer&&this.videoTimestampOffset_!==e&&(_i({type:"video",sourceUpdater:this,action:bi.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&_i({type:"audio",sourceUpdater:this,action:bi.callback(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&_i({type:"video",sourceUpdater:this,action:bi.callback(e),name:"callback"})}dispose(){this.trigger("dispose"),B$.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>fE(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}},Iw=r=>decodeURIComponent(escape(String.fromCharCode.apply(null,r))),F$=r=>{let e=new Uint8Array(r);return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")},Ow=new Uint8Array(`
210
211`.split("").map(r=>
211r.charCodeAt(0))),C0=class extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}},E0=class extends Ju{constructor(e,t={}){super(e,t),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 Sr();let e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return Sr([[t,n]])}initSegmentForMap(e,t=!1){if(!e)return null;let n=Nh(e),s=this.initSegments_[n];if(t&&!s&&e.bytes){let a=Ow.byteLength+e.bytes.byteLength,o=new Uint8Array(a);o.set(e.bytes),o.set(Ow,e.bytes.byteLength),this.initSegments_[n]=s={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:o}}return s||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,t){wu(e,t,this.subtitlesTrack_)}fillBuffer_(){let e=this.chooseNextRequest_();if(e){if(this.syncController_.timestampOffsetForTimeline(e.timeline)===null){let t=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};this.syncController_.one("timestampoffset",t),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,t,n){if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){e.code===Sn.TIMEOUT&&this.handleTimeout_(),e.code===Sn.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}let s=this.pendingSegment_,a=n.mp4VttCues&&n.mp4VttCues.length;a&&(s.mp4VttCues=n.mp4VttCues),this.saveBandwidthRelatedStats_(s.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");let o=s.segment;if(o.map&&(o.map.bytes=t.map.bytes),s.bytes=t.bytes,typeof J.default.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(()=>this.segmentRequestFinished_(e,t,n),()=>this.stopForError({message:"Error loading vtt.js"}));return}o.requested=!0;try{this.parseVTTCues_(s)}catch(l){this.stopForError({message:l.message,metadata:{errorType:le.Error.StreamingVttParserError,error:l}});return}if(a||this.updateTimeMapping_(s,this.syncController_.timelines[s.timeline],this.playlist_),s.cues.length?s.timingInfo={start:s.cues[0].startTime,end:s.cues[s.cues.length-1].endTime}:s.timingInfo={start:s.startOfSegment,end:s.startOfSegment+s.duration},s.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}s.byteLength=s.bytes.byteLength,this.mediaSecondsLoaded+=o.duration,s.cues.forEach(l=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new J.default.VTTCue(l.startTime,l.endTime,l.text):l)}),x$(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(e,t){let n=e&&e.type==="vtt",s=t&&t.type==="text";n&&s&&super.handleData_(e,t)}updateTimingInfoEnd_(){}parseMp4VttCues_(e){let t=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();e.mp4VttCues.forEach(n=>{let s=n.start+t,a=n.end+t,o=new J.default.VTTCue(s,a,n.cueText);n.settings&&n.settings.split(" ").forEach(l=>{let u=l.split(":"),c=u[0],h=u[1];o[c]=isNaN(h)?h:Number(h)}),e.cues.push(o)})}parseVTTCues_(e){let t,n=!1;if(typeof J.default.WebVTT!="function")throw new C0;if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},e.mp4VttCues){this.parseMp4VttCues_(e);return}typeof J.default.TextDecoder=="function"?t=new J.default.TextDecoder("utf8"):(t=J.default.WebVTT.StringDecoder(),n=!0);let s=new J.default.WebVTT.Parser(J.default,J.default.vttjs,t);if(s.oncue=e.cues.push.bind(e.cues),s.ontimestampmap=o=>{e.timestampmap=o},s.onparsingerror=o=>{le.log.warn("Error encountered when parsing cues: "+o.message)},e.segment.map){let o=e.segment.map.bytes;n&&(o=Iw(o)),s.parse(o)}let a=e.bytes;n&&(a=Iw(a)),s.parse(a),s.flush()}updateTimeMapping_(e,t,n){let s=e.segment;if(!t)return;if(!e.cues.length){s.empty=!0;return}let{MPEGTS:a,LOCAL:o}=e.timestampmap,u=a/Ds.ONE_SECOND_IN_TS-o+t.mapping;
vendor: 7,977 bytes, lines 211-214
211if(e.cues.forEach(c=>{let h=c.endTime-c.startTime,f=this.handleRollover_(c.startTime+u,t.time);c.startTime=Math.max(f,0),c.endTime=Math.max(f+h,0)}),!n.syncInfo){let c=e.cues[0].startTime,h=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(c,h-s.duration)}}}handleRollover_(e,t){if(t===null)return e;let n=e*Ds.ONE_SECOND_IN_TS,s=t*Ds.ONE_SECOND_IN_TS,a;for(s<n?a=-8589934592:a=8589934592;Math.abs(n-s)>4294967296;)n+=a;return n/Ds.ONE_SECOND_IN_TS}},U$=function(r,e){let t=r.cues;for(let n=0;n<t.length;n++){let s=t[n];if(e>=s.adStartTime&&e<=s.adEndTime)return s}return null},q$=function(r,e,t=0){if(!r.segments)return;let n=t,s;for(let a=0;a<r.segments.length;a++){let o=r.segments[a];if(s||(s=U$(e,n+o.duration/2)),s){if("cueIn"in o){s.endTime=n,s.adEndTime=n,n+=o.duration,s=null;continue}if(n<s.endTime){n+=o.duration;continue}s.endTime+=o.duration}else if("cueOut"in o&&(s=new J.default.VTTCue(n,n+o.duration,o.cueOut),s.adStartTime=n,s.adEndTime=n+parseFloat(o.cueOut),e.addCue(s)),"cueOutCont"in o){let[l,u]=o.cueOutCont.split("/").map(parseFloat);s=new J.default.VTTCue(n,n+o.duration,""),s.adStartTime=n-l,s.adEndTime=s.adStartTime+u,e.addCue(s)}n+=o.duration}},Bh=class{constructor({start:e,end:t,segmentIndex:n,partIndex:s=null,appended:a=!1}){this.start_=e,this.end_=t,this.segmentIndex_=n,this.partIndex_=s,this.appended_=a}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_}},k0=class{constructor(e,t=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=t}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())}},$h=class{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,t){let{mediaSequence:n,segments:s}=e;if(this.isReliable_=this.isReliablePlaylist_(n,s),!!this.isReliable_)return this.updateStorage_(s,n,this.calculateBaseTime_(n,s,t))}getSyncInfoForTime(e){for(let{segmentSyncInfo:t,partsSyncInfo:n}of this.storage_.values())if(n.length){for(let s of n)if(s.isInRange(e))return s}else if(t.isInRange(e))return t;return null}getSyncInfoForMediaSequence(e){return this.storage_.get(e)}updateStorage_(e,t,n){let s=new Map,a=`
212`,o=n,l=t;this.start_=o,e.forEach((u,c)=>{let h=this.storage_.get(l),f=o,v=f+u.duration,p=!!(h&&h.segmentSyncInfo&&h.segmentSyncInfo.isAppended),T=new Bh({start:f,end:v,appended:p,segmentIndex:c});u.syncInfo=T;let g=o,b=(u.parts||[]).map((S,x)=>{let E=g,k=g+S.duration,A=!!(h&&h.partsSyncInfo&&h.partsSyncInfo[x]&&h.partsSyncInfo[x].isAppended),N=new Bh({start:E,end:k,appended:A,segmentIndex:c,partIndex:x});return g=k,a+=`Media Sequence: ${l}.${x} | Range: ${E} --> ${k} | Appended: ${A}
213`,S.syncInfo=N,N});s.set(l,new k0(T,b)),a+=`${dE(u.resolvedUri)} | Media Sequence: ${l} | Range: ${f} --> ${v} | Appended: ${p}
214`,l++,o=v}),this.end_=o,this.storage_=s,this.diagnostics_=a}calculateBaseTime_(e,t,n){if(!this.storage_.size)return 0;if(this.storage_.has(e))return this.storage_.get(e).segmentSyncInfo.start;let s=Math.min(...this.storage_.keys());if(e<s){let a=s-e,o=this.storage_.get(s).segmentSyncInfo.start;for(let l=0;l<a;l++){let u=t[l];o-=u.duration}return o}return n}isReliablePlaylist_(e,t){return e!=null&&Array.isArray(t)&&t.length}},Fh=class extends $h{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,t,n){if(!this.storage_.size){let s=this.parent_.getSyncInfoForMediaSequence(e);return s?s.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,t,n)}},H$=86400,$g=[{name:"VOD",run:(r,e,t,n,s)=>t!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(r,e,t,n,s,a)=>{let o=r.getMediaSequenceSync(a);if(!o||!o.isReliable)return null;let l=o.getSyncInfoForTime(s);return l?{time:l.start,partIndex:l.partIndex,segmentIndex:l.segmentIndex}:null}},{name:"ProgramDateTime",run:(r,e,t,n,s)=>{if(!Object.keys(r.timelineToDatetimeMappings).length)return null;let a=null,o=null,l=g0(e);s=s||0;for(let u=0;u<l.length;u++){let c=e.endList||s===0?u:l.length-(u+1),h=l[c],f=h.segment,v=r.timelineToDatetimeMappings[f.timeline];if(!v||!f.dateTimeObject)continue;let T=f.dateTimeObject.getTime()/1e3+v;if(f.parts&&typeof h.partIndex=="number")for(let b=0;b<h.partIndex;b++)T+=f.parts[b].duration;let g=Math.abs(s-T);if(o!==null&&(g===0||o<g))break;o=g,a={time:T,segmentIndex:h.segmentIndex,partIndex:h.partIndex}}return a}},{name:"Segment",run:(r,e,t,n,s)=>{let a=null,o=null;s=s||0;let l=g0(e);for(let u=0;u<l.length;u++){let c=e.endList||s===0?u:l.length-(u+1),h=l[c],f=h.segment,v=h.part&&h.part.start||f&&f.start;if(f.timeline===n&&typeof v<"u"){let p=Math.abs(s-v);if(o!==null&&o<p)break;(!a||o===null||o>=p)&&(o=p,a={time:v,segmentIndex:h.segmentIndex,partIndex:h.partIndex})}}return a}},{name:"Discontinuity",run:(r,e,t,n,s)=>{let a=null;if(s=s||0,e.discontinuityStarts&&e.discontinuityStarts.length){let o=null;for(let l=0;l<e.discontinuityStarts.length;l++){let u=e.discontinuityStarts[l],c=e.discontinuitySequence+l+1,h=r.discontinuities[c];if(h){let f=Math.abs(s-h.time);if(o!==null&&o<f)break;(!a||o===null||o>=f)&&(o=f,a={time:h.time,segmentIndex:u,partIndex:null})}}}return a}},{name:"Playlist",run:(r,e,t,n,s)=>e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}],A0=class extends le.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};let t=new $h,n=new Fh(t),s=new Fh(t);this.mediaSequenceStorage_={main:t,audio:n,vtt:s},this.logger_=Ui("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,n,s,a){if(t!==1/0)return $g.find(({name:u})=>u==="VOD").run(this,e,t);let o=this.runStrategies_(e,t,n,s,a);if(!o.length)return null;for(let l of o){let{syncPoint:u,strategy:c}=l,{segmentIndex:h,time:f}=u;if(h<0)continue;let v=e.segments[h],p=f,T=p+v.duration;if(this.logger_(`Strategy: ${c}. Current time: ${s}. selected segment: ${h}. Time: [${p} -> ${T}]}`),s>=p&&s<T)return this.logger_("Found sync point with exact match: ",u),u}return this.selectSyncPoint_(o,{key:"time",value:s})}getExpiredTime(e,t){if(!e||!e.segments)return null;let n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;let s=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return s.segmentIndex>0&&(s.time*=-1),Math.abs(s.time+Au({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:s.segmentIndex,endIndex:0}))}runStrategies_(e,t,n,s,a){let o=[];for(let l=0;l<$g.length;l++){let u=$g[l],c=u.run(this,e,t,n,s,a);c&&(c.strategy=u.name,o.push({strategy:u.name,syncPoint:c}))}return o}selectSyncPoint_(e,t){let n=e[0].syncPoint,s=Math.abs(e[0].syncPoint[t.key]-t.value),a=e[0].strategy;for(let o=1;o<e.length;o++){let l=Math.abs(e[o].syncPoint[t.key]-t.value);l<s&&(s=l,n=e[o].syncPoint,a=e[o].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${a}]: [time:${n.time}, segmentIndex:${n.segmentIndex}`+(typeof n.partIndex=="number"?`,partIndex:${n.partIndex}`:"")+"]"),n}saveExpiredSegmentInfo(e,t){let n=t.mediaSequence-e.mediaSequence;if(n>H$){le.log.warn(`Not saving expired segment info. Media sequence gap ${n} is too large.`);return}for(let s=n-1;s>=0;s--){let a=e.segments[s];if(a&&typeof a.start<"u"){t.syncInfo={mediaSequence:e.mediaSequence+s,time:a.start}
vendor: 12,037 bytes, line 214
214,this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){let t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){let n=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),s=e.segment;n&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:s.start}));let a=s.dateTimeObject;s.discontinuity&&t&&a&&(this.timelineToDatetimeMappings[s.timeline]=-(a.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,t,n){let s=e.segment,a=e.part,o=this.timelines[e.timeline],l,u;if(typeof e.timestampOffset=="number")o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${o.time}] [mapping: ${o.mapping}]`)),l=e.startOfSegment,u=t.end+o.mapping;else if(o)l=t.start+o.mapping,u=t.end+o.mapping;else return!1;return a&&(a.start=l,a.end=u),(!s.start||l<s.start)&&(s.start=l),s.end=u,!0}saveDiscontinuitySyncInfo_(e){let t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let s=0;s<t.discontinuityStarts.length;s++){let a=t.discontinuityStarts[s],o=t.discontinuitySequence+s+1,l=a-e.mediaIndex,u=Math.abs(l);if(!this.discontinuities[o]||this.discontinuities[o].accuracy>u){let c;l<0?c=n.start-Au({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:a}):c=n.end+Au({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:a}),this.discontinuities[o]={time:c,accuracy:u}}}}dispose(){this.trigger("dispose"),this.off()}},P0=class extends le.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:n}){return typeof t=="number"&&typeof n=="number"&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:n}){if(typeof t=="number"&&typeof n=="number"){this.lastTimelineChanges_[e]={type:e,from:t,to:n},delete this.pendingTimelineChanges_[e];let s={timelineChangeInfo:{from:t,to:n}};this.trigger({type:"timelinechange",metadata:s})}return this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}},V$=eE(tE(function(){var r=function(){function g(){this.listeners={}}var b=g.prototype;return b.on=function(x,E){this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push(E)},b.off=function(x,E){if(!this.listeners[x])return!1;var k=this.listeners[x].indexOf(E);return this.listeners[x]=this.listeners[x].slice(0),this.listeners[x].splice(k,1),k>-1},b.trigger=function(x){var E=this.listeners[x];if(E)if(arguments.length===2)for(var k=E.length,A=0;A<k;++A)E[A].call(this,arguments[1]);else for(var N=Array.prototype.slice.call(arguments,1),I=E.length,M=0;M<I;++M)E[M].apply(this,N)},b.dispose=function(){this.listeners={}},b.pipe=function(x){this.on("data",function(E){x.push(E)})},g}();function e(g){return g.subarray(0,g.byteLength-g[g.byteLength-1])}let t=function(){let g=[[[],[],[],[],[]],[[],[],[],[],[]]],b=g[0],S=g[1],x=b[4],E=S[4],k,A,N,I=[],M=[],F,ne,Q,j,H,W;for(k=0;k<256;k++)M[(I[k]=k<<1^(k>>7)*283)^k]=k;for(A=N=0;!x[A];A^=F||1,N=M[N]||1)for(j=N^N<<1^N<<2^N<<3^N<<4,j=j>>8^j&255^99,x[A]=j,E[j]=A,Q=I[ne=I[F=I[A]]],W=Q*16843009^ne*65537^F*257^A*16843008,H=I[j]*257^j*16843008,k=0;k<4;k++)b[k][A]=H=H<<24^H>>>8,S[k][j]=W=W<<24^W>>>8;for(k=0;k<5;k++)b[k]=b[k].slice(0),S[k]=S[k].slice(0);return g},n=null;class s{constructor(b){n||(n=t()),this._tables=[[n[0][0].slice(),n[0][1].slice(),n[0][2].slice(),n[0][3].slice(),n[0][4].slice()],[n[1][0].slice(),n[1][1].slice(),n[1][2].slice(),n[1][3].slice(),n[1][4].slice()]];let S,x,E,k=this._tables[0][4],A=this._tables[1],N=b.length,I=1;if(N!==4&&N!==6&&N!==8)throw new Error("Invalid aes key size");let M=b.slice(0),F=[];for(this._key=[M,F],S=N;S<4*N+28;S++)E=M[S-1],(S%N===0||N===8&&S%N===4)&&(E=k[E>>>24]<<24^k[E>>16&255]<<16^k[E>>8&255]<<8^k[E&255],S%N===0&&(E=E<<8^E>>>24^I<<24,I=I<<1^(I>>7)*283)),M[S]=M[S-N]^E;for(x=0;S;x++,S--)E=M[x&3?S:S-4],S<=4||x<4?F[x]=E:F[x]=A[0][k[E>>>24]]^A[1][k[E>>16&255]]^A[2][k[E>>8&255]]^A[3][k[E&255]]}decrypt(b,S,x,E,k,A){let N=this._key[1],I=b^N[0],M=E^N[1],F=x^N[2],ne=S^N[3],Q,j,H,W=N.length/4-2,ae,se=4,ge=this._tables[1],ce=ge[0],ue=ge[1],ye=ge[2],Te=ge[3],Se=ge[4];for(ae=0;ae<W;ae++)Q=ce[I>>>24]^ue[M>>16&255]^ye[F>>8&255]^Te[ne&255]^N[se],j=ce[M>>>24]^ue[F>>16&255]^ye[ne>>8&255]^Te[I&255]^N[se+1],H=ce[F>>>24]^ue[ne>>16&255]^ye[I>>8&255]^Te[M&255]^N[se+2],ne=ce[ne>>>24]^ue[I>>16&255]^ye[M>>8&255]^Te[F&255]^N[se+3],se+=4,I=Q,M=j,F=H;for(ae=0;ae<4;ae++)k[(3&-ae)+A]=Se[I>>>24]<<24^Se[M>>16&255]<<16^Se[F>>8&255]<<8^Se[ne&255]^N[se++],Q=I,I=M,M=F,F=ne,ne=Q}}class a extends r{constructor(){super(r),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(b){this.jobs.push(b),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}let o=function(g){return g<<24|(g&65280)<<8|(g&16711680)>>8|g>>>24},l=function(g,b,S){let x=new Int32Array(g.buffer,g.byteOffset,g.byteLength>>2),E=new s(Array.prototype.slice.call(b)),k=new Uint8Array(g.byteLength),A=new Int32Array(k.buffer),N,I,M,F,ne,Q,j,H,W;for(N=S[0],I=S[1],M=S[2],F=S[3],W=0;W<x.length;W+=4)ne=o(x[W]),Q=o(x[W+1]),j=o(x[W+2]),H=o(x[W+3]),E.decrypt(ne,Q,j,H,A,W),A[W]=o(A[W]^N),A[W+1]=o(A[W+1]^I),A[W+2]=o(A[W+2]^M),A[W+3]=o(A[W+3]^F),N=ne,I=Q,M=j,F=H;return k};class u{constructor(b,S,x,E){let k=u.STEP,A=new Int32Array(b.buffer),N=new Uint8Array(b.byteLength),I=0;for(this.asyncStream_=new a,this.asyncStream_.push(this.decryptChunk_(A.subarray(I,I+k),S,x,N)),I=k;I<A.length;I+=k)x=new Uint32Array([o(A[I-4]),o(A[I-3]),o(A[I-2]),o(A[I-1])]),this.asyncStream_.push(this.decryptChunk_(A.subarray(I,I+k),S,x,N));this.asyncStream_.push(function(){E(null,e(N))})}static get STEP(){return 32e3}decryptChunk_(b,S,x,E){return function(){let k=l(b,S,x);E.set(k,b.byteOffset)}}}var c=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{},h;typeof window<"u"?h=window:typeof c<"u"?h=c:typeof self<"u"?h=self:h={};var f=h,v=function(b){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(b):b&&b.buffer instanceof ArrayBuffer},p=f.BigInt||Number;p("0x1"),p("0x100"),p("0x10000"),p("0x1000000"),p("0x100000000"),p("0x10000000000"),p("0x1000000000000"),p("0x100000000000000"),p("0x10000000000000000"),function(){var g=new Uint16Array([65484]),b=new Uint8Array(g.buffer,g.byteOffset,g.byteLength);return b[0]===255?"big":b[0]===204?"little":"unknown"}();let T=function(g){let b={};return Object.keys(g).forEach(S=>{let x=g[S];v(x)?b[S]={bytes:x.buffer,byteOffset:x.byteOffset,byteLength:x.byteLength}:b[S]=x}),b};self.onmessage=function(g){let b=g.data,S=new Uint8Array(b.encrypted.bytes,b.encrypted.byteOffset,b.encrypted.byteLength),x=new Uint32Array(b.key.bytes,b.key.byteOffset,b.key.byteLength/4),E=new Uint32Array(b.iv.bytes,b.iv.byteOffset,b.iv.byteLength/4);new u(S,x,E,function(k,A){self.postMessage(T({source:b.source,decrypted:A}),[A.buffer])})}})),j$=ZC(V$),z$=r=>{let e=r.default?"main":"alternative";return r.characteristics&&r.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},pE=(r,e)=>{r.abort(),r.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},D0=(r,e)=>{e.activePlaylistLoader=r,r.load()},W$=(r,e)=>()=>{let{segmentLoaders:{[r]:t,main:n},mediaTypes:{[r]:s}}=e,a=s.activeTrack(),o=s.getActiveGroup(),l=s.activePlaylistLoader,u=s.lastGroup_;if(!(o&&u&&o.id===u.id)&&(s.lastGroup_=o,s.lastTrack_=a,pE(t,s),!(!o||o.isMainPlaylist))){if(!o.playlistLoader){l&&n.resetEverything();return}t.resyncLoader(),D0(o.playlistLoader,s)}},G$=(r,e)=>()=>{let{segmentLoaders:{[r]:t},mediaTypes:{[r]:n}}=e;n.lastGroup_=null,t.abort(),t.pause()},Q$=(r,e)=>()=>{let{mainPlaylistLoader:t,segmentLoaders:{[r]:n,main:s},mediaTypes:{[r]:a}}=e,o=a.activeTrack(),l=a.getActiveGroup(),u=a.activePlaylistLoader,c=a.lastTrack_;if(!(c&&o&&c.id===o.id)&&(a.lastGroup_=l,a.lastTrack_=o,pE(n,a),!!l)){if(l.isMainPlaylist){if(!o||!c||o.id===c.id)return;let h=e.vhs.playlistController_,f=h.selectPlaylist();if(h.media()===f)return;a.logger_(`track change. Switching main audio from ${c.id} to ${o.id}`),t.pause(),s.resetEverything(),h.fastQualityChange_(f);return}if(r==="AUDIO"){if(!l.playlistLoader){s.setAudio(!0),s.resetEverything();return}n.setAudio(!0),s.setAudio(!1)}if(u===l.playlistLoader){D0(l.playlistLoader,a);return}n.track&&n.track(o),n.resetEverything(),D0(l.playlistLoader,a)}},Uh={AUDIO:(r,e)=>()=>{let{mediaTypes:{[r]:t},excludePlaylist:n}=e,s=t.activeTrack(),a=t.activeGroup(),o=(a.filter(u=>u.default)[0]||a[0]).id,l=t.tracks[o];if(s===l){n({error:{message:"Problem encountered loading the default audio track."}});return}le.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(let u in t.tracks)t.tracks[u].enabled=t.tracks[u]===l;t.onTrackChanged()},SUBTITLES:(r,e)=>()=>{let{mediaTypes:{[r]:t}}=e;le.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");let n=t.activeTrack();n&&(n.mode="disabled"),t.onTrackChanged()}},Lw={AUDIO:(r,e,t)=>{if(!e)return;let{tech:n,requestOptions:s,segmentLoaders:{[r]:a}}=t;e.on("loadedmetadata",()=>{let o=e.media();a.playlist(o,s),(!n.paused()||o.endList&&n.preload()!=="none")&&a.load()}),e.on("loadedplaylist",()=>{a.playlist(e.media(),s),n.paused()||a.load()}),e.on("error",Uh[r](r,t))},SUBTITLES:(r,e,t)=>{let{tech:n,requestOptions:s,segmentLoaders:{[r]:a},mediaTypes:{[r]:o}}=t;e.on("loadedmetadata",()=>{let l=e.media();a.playlist(l,s),a.track(o.activeTrack()),(!n.paused()||l.endList&&n.preload()!=="none")&&a.load()}),e.on("loadedplaylist",()=>{a.playlist(e.media(),s),n.paused()||a.load()}),e.on("error",Uh[r](r,t))}},K$={AUDIO:(r,e)=>{let{vhs:t,sourceType:n,segmentLoaders:{[r]:s},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[r]:{groups:l,tracks:u,logger_:c}},mainPlaylistLoader:h}=e,f=ec(h.main);(!o[r]||Object.keys(o[r]).length===0)&&(o[r]={main:{default:{default:!0}}},f&&(o[r].main.default.playlists=h.main.playlists));for(let v in o[r]){l[v]||(l[v]=[]);for(let p in o[r][v]){let T=o[r][v][p],g;if(f?(c(`AUDIO group '${v}' label '${p}' is a main playlist`),T.isMainPlaylist=!0,g=null):n==="vhs-json"&&T.playlists?g=new Is(T.playlists[0],t,a):T.resolvedUri?g=new Is(T.resolvedUri,t,a):T.playlists&&n==="dash"?g=new Yu(T.playlists[0],t,a,h):g=null,T=Et({id:p,playlistLoader:g},T),Lw[r](r,T.playlistLoader,e),l[v].push(T),typeof u[p]>"u"){let b=new le.AudioTrack({id:p,kind:z$(T),enabled:!1,language:T.language,default:T.default,label:p});u[p]=b}}}s.on("error",Uh[r](r,e))},SUBTITLES:(r,e)=>{let{tech:t,vhs:n,sourceType:s,segmentLoaders:{[r]:a},requestOptions:o,main:{mediaGroups:l},mediaTypes:{[r]:{groups:u,tracks:c}},mainPlaylistLoader:h}=e;for(let f in l[r]){u[f]||(u[f]=[]);for(let v in l[r][f]){if(!n.options_.useForcedSubtitles&&l[r][f][v].forced)continue;let p=l[r][f][v],T;if(s==="hls")T=new Is(p.resolvedUri,n,o);else if(s==="dash"){if(!p.playlists.filter(b=>b.excludeUntil!==1/0).length)return;
vendor: 18,905 bytes, line 214
214T=new Yu(p.playlists[0],n,o,h)}else s==="vhs-json"&&(T=new Is(p.playlists?p.playlists[0]:p.resolvedUri,n,o));if(p=Et({id:v,playlistLoader:T},p),Lw[r](r,p.playlistLoader,e),u[f].push(p),typeof c[v]>"u"){let g=t.addRemoteTextTrack({id:v,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:v},!1).track;c[v]=g}}}a.on("error",Uh[r](r,e))},"CLOSED-CAPTIONS":(r,e)=>{let{tech:t,main:{mediaGroups:n},mediaTypes:{[r]:{groups:s,tracks:a}}}=e;for(let o in n[r]){s[o]||(s[o]=[]);for(let l in n[r][o]){let u=n[r][o][l];if(!/^(?:CC|SERVICE)/.test(u.instreamId))continue;let c=t.options_.vhs&&t.options_.vhs.captionServices||{},h={label:l,language:u.language,instreamId:u.instreamId,default:u.default&&u.autoselect};if(c[h.instreamId]&&(h=Et(h,c[h.instreamId])),h.default===void 0&&delete h.default,s[o].push(Et({id:l},u)),typeof a[l]>"u"){let f=t.addRemoteTextTrack({id:h.instreamId,kind:"captions",default:h.default,language:h.language,label:h.label},!1).track;a[l]=f}}}}},mE=(r,e)=>{for(let t=0;t<r.length;t++)if(K0(e,r[t])||r[t].playlists&&mE(r[t].playlists,e))return!0;return!1},X$=(r,e)=>t=>{let{mainPlaylistLoader:n,mediaTypes:{[r]:{groups:s}}}=e,a=n.media();if(!a)return null;let o=null;a.attributes[r]&&(o=s[a.attributes[r]]);let l=Object.keys(s);if(!o)if(r==="AUDIO"&&l.length>1&&ec(e.main))for(let u=0;u<l.length;u++){let c=s[l[u]];if(mE(c,a)){o=c;break}}else s.main?o=s.main:l.length===1&&(o=s[l[0]]);return typeof t>"u"?o:t===null||!o?null:o.filter(u=>u.id===t.id)[0]||null},Y$={AUDIO:(r,e)=>()=>{let{mediaTypes:{[r]:{tracks:t}}}=e;for(let n in t)if(t[n].enabled)return t[n];return null},SUBTITLES:(r,e)=>()=>{let{mediaTypes:{[r]:{tracks:t}}}=e;for(let n in t)if(t[n].mode==="showing"||t[n].mode==="hidden")return t[n];return null}},J$=(r,{mediaTypes:e})=>()=>{let t=e[r].activeTrack();return t?e[r].activeGroup(t):null},Z$=r=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(c=>{K$[c](c,r)});let{mediaTypes:e,mainPlaylistLoader:t,tech:n,vhs:s,segmentLoaders:{["AUDIO"]:a,main:o}}=r;["AUDIO","SUBTITLES"].forEach(c=>{e[c].activeGroup=X$(c,r),e[c].activeTrack=Y$[c](c,r),e[c].onGroupChanged=W$(c,r),e[c].onGroupChanging=G$(c,r),e[c].onTrackChanged=Q$(c,r),e[c].getActiveGroup=J$(c,r)});let l=e.AUDIO.activeGroup();if(l){let c=(l.filter(f=>f.default)[0]||l[0]).id;e.AUDIO.tracks[c].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),a.setAudio(!0)):o.setAudio(!0)}t.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(c=>e[c].onGroupChanged())}),t.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(c=>e[c].onGroupChanging())});let u=()=>{e.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"vhs-audio-change"})};n.audioTracks().addEventListener("change",u),n.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),s.on("dispose",()=>{n.audioTracks().removeEventListener("change",u),n.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),n.clearTracks("audio");for(let c in e.AUDIO.tracks)n.audioTracks().addTrack(e.AUDIO.tracks[c])},eF=()=>{let r={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{r[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Xn,activeTrack:Xn,getActiveGroup:Xn,onGroupChanged:Xn,onTrackChanged:Xn,lastTrack_:null,logger_:Ui(`MediaGroups[${e}]`)}}),r},qh=class{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_=ui(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(t=>[t.ID,t])))}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_}},I0=class extends le.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new qh,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_=Ui("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";let n=t.serverUri||t.serverURL;if(!n){this.logger_(`steering manifest URL is ${n}, cannot request steering manifest.`),this.trigger("error");return}if(n.startsWith("data:")){this.decodeDataUriManifest_(n.substring(n.indexOf(",")+1));return}this.steeringManifest.reloadUri=ui(e,n),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering")}requestSteeringManifest(e){let t=this.steeringManifest.reloadUri;if(!t)return;let n=e?t:this.getRequestURI(t);if(!n){this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),this.dispose();return}let s={contentSteeringInfo:{uri:n}};this.trigger({type:"contentsteeringloadstart",metadata:s}),this.request_=this.xhr_({uri:n,requestType:"content-steering-manifest"},(a,o)=>{if(a){if(o.status===410){this.logger_(`manifest request 410 ${a}.`),this.logger_(`There will be no more content steering requests to ${n} this session.`),this.excludedSteeringManifestURLs.add(n);return}if(o.status===429){let c=o.responseHeaders["retry-after"];this.logger_(`manifest request 429 ${a}.`),this.logger_(`content steering will retry in ${c} seconds.`),this.startTTLTimeout_(parseInt(c,10));return}this.logger_(`manifest failed to load ${a}.`),this.startTTLTimeout_();return}this.trigger({type:"contentsteeringloadcomplete",metadata:s});let l;try{l=JSON.parse(this.request_.responseText)}catch(c){let h={errorType:le.Error.StreamingContentSteeringParserError,error:c};this.trigger({type:"error",metadata:h})}this.assignSteeringProperties_(l);let u={contentSteeringInfo:s.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:"contentsteeringparsed",metadata:u}),this.startTTLTimeout_()})}setProxyServerUrl_(e){let t=new J.default.URL(e),n=new J.default.URL(this.proxyServerUrl_);return n.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(n.toString())}decodeDataUriManifest_(e){let t=JSON.parse(J.default.atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){let t=new J.default.URL(e),n=this.getPathway(),s=this.getBandwidth_();if(n){let a=`_${this.manifestType_}_pathway`;t.searchParams.set(a,n)}if(s){let a=`_${this.manifestType_}_throughput`;t.searchParams.set(a,s)}return t.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());let n=(s=>{for(let a of s)if(this.availablePathways_.has(a))return a;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;let t=s=>this.excludedSteeringManifestURLs.has(s);if(this.proxyServerUrl_){let s=this.setProxyServerUrl_(e);if(!t(s))return s}let n=this.setSteeringParams_(e);return t(n)?null:n}startTTLTimeout_(e=this.steeringManifest.ttl){let t=e*1e3;this.ttlTimeout_=J.default.setTimeout(()=>{this.requestSteeringManifest()},t)}clearTTLTimeout_(){J.default.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 qh}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(ui(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}},tF=(r,e)=>{let t=null;return(...n)=>{clearTimeout(t),t=setTimeout(()=>{r.apply(null,n)},e)}},rF=10,iF=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],nF=function(r){return this.audioSegmentLoader_[r]+this.mainSegmentLoader_[r]},sF=function({currentPlaylist:r,buffered:e,currentTime:t,nextPlaylist:n,bufferLowWaterLine:s,bufferHighWaterLine:a,duration:o,bufferBasedABR:l,log:u}){if(!n)return le.log.warn("We received no playlist to switch to. Please check your stream."),!1;let c=`allowing switch ${r&&r.id||"null"} -> ${n.id}`;if(!r)return u(`${c} as current playlist is not set`),!0;if(n.id===r.id)return!1;let h=!!jo(e,t).length;if(!r.endList)return!h&&typeof r.partTargetDuration=="number"?(u(`not ${c} as current playlist is live llhls, but currentTime isn't in buffered.`),!1):(u(`${c} as current playlist is live`),!0);let f=W0(e,t),v=l?Tr.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Tr.MAX_BUFFER_LOW_WATER_LINE;if(o<v)return u(`${c} as duration < max low water line (${o} < ${v})`),!0;let p=n.attributes.BANDWIDTH,T=r.attributes.BANDWIDTH;if(p<T&&(!l||f<a)){let g=`${c} as next bandwidth < current bandwidth (${p} < ${T})`;return l&&(g+=` and forwardBuffer < bufferHighWaterLine (${f} < ${a})`),u(g),!0}if((!l||p>T)&&f>=s){let g=`${c} as forwardBuffer >= bufferLowWaterLine (${f} >= ${s})`;return l&&(g+=` and next bandwidth > current bandwidth (${p} > ${T})`),u(g),!0}return u(`not ${c} as no switching criteria met`),!1},O0=class extends le.EventTarget{constructor(e){super(),this.fastQualityChange_=tF(this.fastQualityChange_.bind(this),100);let{src:t,withCredentials:n,tech:s,bandwidth:a,externVhs:o,useCueTags:l,playlistExclusionDuration:u,enableLowInitialPlaylist:c,sourceType:h,cacheEncryptionKeys:f,bufferBasedABR:v,leastPixelDiffSelector:p,captionServices:T,experimentalUseMMS:g}=e;if(!t)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:b}=e;(b===null||typeof b>"u")&&(b=1/0),Qn=o,this.bufferBasedABR=!!v,this.leastPixelDiffSelector=!!p,this.withCredentials=n,this.tech_=s,this.vhs_=s.vhs,this.player_=e.player_,this.sourceType_=h,this.useCueTags_=l,this.playlistExclusionDuration=u,this.maxPlaylistRetries=b,this.enableLowInitialPlaylist=c,this.usingManagedMediaSource_=!1,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:n,maxPlaylistRetries:b,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=eF(),g&&J.default.ManagedMediaSource?(this.tech_.el_.disableRemotePlayback=!0,this.mediaSource=new J.default.ManagedMediaSource,this.usingManagedMediaSource_=!0,le.log("Using ManagedMediaSource")):J.default.MediaSource&&(this.mediaSource=new J.default.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_=Sr(),this.hasPlayed_=!1,this.syncController_=new A0(e),this.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.segmentMetadataTrack_.mode="hidden",this.decrypter_=new j$,this.sourceUpdater_=new Mh(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new P0,this.keyStatusMap_=new Map;let S={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:T,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:a,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:f,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_=this.sourceType_==="dash"?new Yu(t,this.vhs_,Et(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new Is(t,this.vhs_,Et(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new Ju(Et(S,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new Ju(Et(S,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new E0(Et(S,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((k,A)=>{function N(){s.off("vttjserror",I),k()}function I(){s.off("vttjsloaded",N),A()}s.one("vttjsloaded",N),s.one("vttjserror",I),s.addWebVttScript_()})}),e);let x=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new I0(this.vhs_.xhr,x),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),iF.forEach(k=>{this[k+"_"]=nF.bind(this,k)}),this.logger_=Ui("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;let E=this.tech_.preload()==="none"?"play":"loadstart";this.tech_.one(E,()=>{let k=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-k,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){let e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return e===-1||t===-1?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){let t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,n){let s=this.media(),a=s&&(s.id||s.uri),o=e&&(e.id||e.uri);if(a&&a!==o){this.logger_(`switch media ${a} -> ${o} from ${t}`);let l={renditionInfo:{id:o,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:t};this.trigger({type:"renditionselected",metadata:l}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})}this.mainPlaylistLoader_.media(e,n)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{let t=this.mediaTypes_[e],n=t?t.activeGroup():null,s=this.contentSteeringController_.getPathway();if(n&&s){let o=(n.length?n[0].playlists:n.playlists).filter(l=>l.attributes.serviceLocation===s);o.length&&this.mediaTypes_[e].activePlaylistLoader.media(o[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=J.default.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(J.default.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){let e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;let n=e.mediaGroups.AUDIO,s=Object.keys(n),a;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)a=this.mediaTypes_.AUDIO.activeTrack();else{let l=n.main||s.length&&n[s[0]];for(let u in l)if(l[u].default){a={label:u};break}}if(!a)return t;let o=[];for(let l in n)if(n[l][a.label]){let u=n[l][a.label];if(u.playlists&&u.playlists.length)o.push.apply(o,u.playlists);else if(u.uri)o.push(u);else if(e.playlists.length)for(let c=0;c<e.playlists.length;c++){let h=e.playlists[c];h.attributes&&h.attributes.AUDIO&&h.attributes.AUDIO===l&&o.push(h)}}return o.length?o:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{let t=this.mainPlaylistLoader_.media(),n=t.targetDuration*1.5*1e3;v0(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=n,t.endList&&this.tech_.preload()!=="none"&&(this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.mainSegmentLoader_.load()),Z$({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(),t),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 t=this.mainPlaylistLoader_.media();if(!t){this.attachContentSteeringListeners_(),this.initContentSteeringController_
vendor: 4,425 bytes, line 214
214(),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;t=this.initialMedia_}this.handleUpdatedMediaPlaylist(t)}),this.mainPlaylistLoader_.on("error",()=>{let t=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:t.playlist,error:t})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{let t=this.mainPlaylistLoader_.media(),n=t.targetDuration*1.5*1e3;v0(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(t,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{let t=this.mainPlaylistLoader_.media();if(t.lastExcludeReason_==="playlist-unchanged")return;this.stuckAtPlaylistEnd_(t)&&(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(t=>{this.mainPlaylistLoader_.on(t,n=>{this.player_.trigger(jt({},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,t){let n=e.mediaGroups||{},s=!0,a=Object.keys(n.AUDIO);for(let o in n.AUDIO)for(let l in n.AUDIO[o])n.AUDIO[o][l].uri||(s=!1);s&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Qn.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),a.length&&Object.keys(n.AUDIO[a[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){let t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),s=this.bufferLowWaterLine(),a=this.bufferHighWaterLine(),o=this.tech_.buffered();return sF({buffered:o,currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:s,bufferHighWaterLine:a,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",()=>{let 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",()=>
vendor: 1,643 bytes, line 214
214{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.timelineChangeController_.on("audioTimelineBehind",()=>{let n=this.audioSegmentLoader_.pendingSegment_;if(!n||!n.segment||!n.segment.syncInfo)return;let s=n.segment.syncInfo.end+.01;this.tech_.setCurrentTime(s)}),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:rF}))});let e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();let 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",()=>
214{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,s=>{this.player_.trigger(jt({},s))}),this.audioSegmentLoader_.on(n,s=>{this.player_.trigger(jt({},s))}),this.subtitleSegmentLoader_.on(n,s=>{this.player_.trigger(jt({},s))})})}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();let 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(){let e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){let t=this.seekable();if(!t.length)return!1;let n=t.end(0),s=n;if(e.start){let a=e.start.timeOffset;if(a<0){let o=this.mainPlaylistLoader_.main,l=Qn.Playlist.liveEdgeDelay(o,e),u=n+l;s=Math.max(Math.min(u+a,n),t.start(0))}else s=Math.min(n,a)}this.trigger("firstplay"),this.tech_.setCurrentTime(s)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){let e=this.tech_.play();typeof e<"u"&&typeof e.then=="function"&&e.then(null,t=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;let e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;let t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){let t=this.mainSegmentLoader_.getCurrentMediaInfo_();!t||t.hasVideo?e=e&&this.audioSegmentLoader_.ended_:e=this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;let n=this.syncController_.getExpiredTime(e,this.duration());if(n===null)return!1;let s=Qn.Playlist.playlistEnd(e,n),a=this.tech_.currentTime(),o=this.tech_.buffered();if(!o.length)return s-a<=Tn;let l=o.end(o.length-1);return l-a<=Tn&&s-l<=Tn}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:n}){if(e=e||this.mainPlaylistLoader_.media(),n=n||t.playlistExclusionDuration||this.playlistExclusionDuration,!e){this.error=t,this.mediaSource.readyState!=="open"?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}e.playlistErrors_++;let s=this.mainPlaylistLoader_.main.playlists,a=s.filter(nf),o=a.length===1&&a[0]===e;if(s.length===1&&n!==1/0)return le.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(o);if(o){if(this.main().contentSteering){let T=this.pathwayAttribute_(e),g=this.contentSteeringController_.steeringManifest.ttl*1e3;this.contentSteeringController_.excludePathway(T),this.excludeThenChangePathway_(),setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(T)},g);return}let p=!1;
214s.forEach(T=>{if(T===e)return;let g=T.excludeUntil;typeof g<"u"&&g!==1/0&&(p=!0,delete T.excludeUntil)}),p&&(le.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let l;e.playlistErrors_>this.maxPlaylistRetries?l=1/0:l=Date.now()+n*1e3,e.excludeUntil=l,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});let u=this.selectPlaylist();if(!u){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}let c=t.internal?this.logger_:le.log.warn,h=t.message?" "+t.message:"";c(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${h} Switching to playlist ${u.id}.`),u.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),u.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);let f=u.targetDuration/2*1e3||5*1e3,v=typeof u.lastRequest=="number"&&Date.now()-u.lastRequest<=f;return this.switchMedia_(u,"exclude",o||v)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){let n=[],s=e==="all";(s||e==="main")&&n.push(this.mainPlaylistLoader_);let a=[];(s||e==="audio")&&a.push("AUDIO"),(s||e==="subtitle")&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach(o=>{let l=this.mediaTypes_[o]&&this.mediaTypes_[o].activePlaylistLoader;l&&n.push(l)}),["main","audio","subtitle"].forEach(o=>{let l=this[`${o}SegmentLoader_`];l&&(e===o||e==="all")&&n.push(l)}),n.forEach(o=>t.forEach(l=>{typeof o[l]=="function"&&o[l]()}))}setCurrentTime(e){let t=jo(this.tech_.buffered(),e);if(!(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media())||!this.mainPlaylistLoader_.media().segments)return 0;if(t&&t.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;let e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Qn.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}getSeekableRange_(e,t){let n=e.media();if(!n)return null;let s=this.syncController_.getMediaSequenceSync(t);if(s&&s.isReliable){let l=s.start,u=s.end;if(!isFinite(l)||!isFinite(u))return null;let c=Qn.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,n),h=Math.max(l,u-c);return Sr([[l,h]])}let a=this.syncController_.getExpiredTime(n,this.duration());if(a===null)return null;let o=Qn.Playlist.seekable(n,a,Qn.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,n));return o.length?o:null}computeFinalSeekable_(e,t){if(!t)return e;let n=e.start(0),s=e.end(0),a=t.start(0),o=t.end(0);return a>s||n>o?e:Sr([[Math.max(n,a),Math.min(s,o)]])}onSyncInfoUpdate_(){if(!this.mainPlaylistLoader_)return;let e=this.getSeekableRange_(this.mainPlaylistLoader_,"main");if(!e)return;let t;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=this.getSeekableRange_(this.mediaTypes_.AUDIO.activePlaylistLoader,"audio"),!t))return;let n=this.seekable_;if(this.seekable_=this.computeFinalSeekable_(e,t),!this.seekable_||n&&n.length&&this.seekable_.length&&n.start(0)===this.seekable_.start(0)&&n.end(0)===this.seekable_.end(0))return;this.logger_(`seekable updated [${kC(this.seekable_)}]`);let s={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:s}),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){let s=this.seekable();if(!s.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<s.end(s.length-1))&&this.sourceUpdater_.setDuration(s.end(s.length-1));return}let t=this.tech_.buffered(),n=Qn.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(n=Math.max(n,t.end(t.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)}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
vendor: 17,330 bytes, line 214
214=>{let t=this.mediaTypes_[e].groups;for(let n in t)t[n].forEach(s=>{s.playlistLoader&&s.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_(){let e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=e?!!this.audioSegmentLoader_.getCurrentMediaInfo_():!0;return!(!t||!n)}getCodecsOrExclude_(){let e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;let n=Pu(this.main(),t),s={},a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(s.video=n.video||e.main.videoCodec||aS),e.main.isMuxed&&(s.video+=`,${n.audio||e.main.audioCodec||qm}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||a)&&(s.audio=n.audio||e.main.audioCodec||e.audio.audioCodec||qm,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!s.audio&&!s.video){this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});return}let o=(c,h)=>c?Eo(h,this.usingManagedMediaSource_):pd(h),l={},u;if(["video","audio"].forEach(function(c){if(s.hasOwnProperty(c)&&!o(e[c].isFmp4,s[c])){let h=e[c].isFmp4?"browser":"muxer";l[h]=l[h]||[],l[h].push(s[c]),c==="audio"&&(u=h)}}),a&&u&&t.attributes.AUDIO){let c=t.attributes.AUDIO;this.main().playlists.forEach(h=>{(h.attributes&&h.attributes.AUDIO)===c&&h!==t&&(h.excludeUntil=1/0)}),this.logger_(`excluding audio group ${c} as ${u} does not support codec(s): "${s.audio}"`)}if(Object.keys(l).length){let c=Object.keys(l).reduce((h,f)=>(h&&(h+=", "),h+=`${f} does not support codec(s): "${l[f].join(",")}"`,h),"")+".";this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:c},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){let c=[];if(["video","audio"].forEach(h=>{let f=(Ji(this.sourceUpdater_.codecs[h]||"")[0]||{}).type,v=(Ji(s[h]||"")[0]||{}).type;f&&v&&f.toLowerCase()!==v.toLowerCase()&&c.push(`"${this.sourceUpdater_.codecs[h]}" -> "${s[h]}"`)}),c.length){this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${c.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0});return}}return s}tryToCreateSourceBuffers_(){if(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;let e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);let t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){let e=this.main().playlists,t=[];Object.keys(e).forEach(n=>{let s=e[n];if(t.indexOf(s.id)!==-1)return;t.push(s.id);let a=Pu(this.main,s),o=[];a.audio&&!pd(a.audio)&&!Eo(a.audio,this.usingManagedMediaSource_)&&o.push(`audio codec ${a.audio}`),a.video&&!pd(a.video)&&!Eo(a.video,this.usingManagedMediaSource_)&&o.push(`video codec ${a.video}`),a.text&&a.text==="stpp.ttml.im1t"&&o.push(`text codec ${a.text}`),o.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id} for unsupported: ${o.join(", ")}`))})}excludeIncompatibleVariants_(e){let t=[],n=this.main().playlists,s=Xu(Ji(e)),a=yw(s),o=s.video&&Ji(s.video)[0]||null,l=s.audio&&Ji(s.audio)[0]||null;Object.keys(n).forEach(u=>{let c=n[u];if(t.indexOf(c.id)!==-1||c.excludeUntil===1/0)return;t.push(c.id);let h=[],f=Pu(this.mainPlaylistLoader_.main,c),v=yw(f);if(!(!f.audio&&!f.video)){if(v!==a&&h.push(`codec count "${v}" !== "${a}"`),!this.sourceUpdater_.canChangeType()){let p=f.video&&Ji(f.video)[0]||null,T=f.audio&&Ji(f.audio)[0]||null;p&&o&&p.type.toLowerCase()!==o.type.toLowerCase()&&h.push(`video codec "${p.type}" !== "${o.type}"`),T&&l&&T.type.toLowerCase()!==l.type.toLowerCase()&&h.push(`audio codec "${T.type}" !== "${l.type}"`)}h.length&&(c.excludeUntil=1/0,this.logger_(`excluding ${c.id}: ${h.join(" && ")}`))}})}updateAdCues_(e){let t=0,n=this.seekable();n.length&&(t=n.start(0)),q$(e,this.cueTagsTrack_,t)}goalBufferLength(){let e=this.tech_.currentTime(),t=Tr.GOAL_BUFFER_LENGTH,n=Tr.GOAL_BUFFER_LENGTH_RATE,s=Math.max(t,Tr.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,s)}bufferLowWaterLine(){let e=this.tech_.currentTime(),t=Tr.BUFFER_LOW_WATER_LINE,n=Tr.BUFFER_LOW_WATER_LINE_RATE,s=Math.max(t,Tr.MAX_BUFFER_LOW_WATER_LINE),a=Math.max(t,Tr.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.bufferBasedABR?a:s)}bufferHighWaterLine(){return Tr.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){Ew(this.inbandTextTracks_,"com.apple.streaming",this.tech_),S$({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,n){let s=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();Ew(this.inbandTextTracks_,e,this.tech_),b$({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:s,videoDuration:n})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){let e=this.main();if(e.contentSteering){for(let t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));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(t=>{this.contentSteeringController_.on(t,n=>{this.trigger(jt({},n))})}),this.sourceType_==="dash"&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{let t=this.main();(this.contentSteeringController_.didDASHTagChange(t.uri,t.contentSteering)||(()=>{let a=this.contentSteeringController_.getAvailablePathways(),o=[];for(let l of t.playlists){let u=l.attributes.serviceLocation;if(u&&(o.push(u),!a.has(u)))return!0}return!!(!o.length&&a.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){let e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();let n=this.main().playlists,s=new Set,a=!1;Object.keys(n).forEach(o=>{let l=n[o],u=this.pathwayAttribute_(l),c=u&&e!==u;l.excludeUntil===1/0&&l.lastExcludeReason_==="content-steering"&&!c&&(delete l.excludeUntil,delete l.lastExcludeReason_,a=!0);let f=!l.excludeUntil&&l.excludeUntil!==1/0;!s.has(l.id)&&c&&f&&(s.add(l.id),l.excludeUntil=1/0,l.lastExcludeReason_="content-steering",this.logger_(`excluding ${l.id} for ${l.lastExcludeReason_}`))}),this.contentSteeringController_.manifestType_==="DASH"&&Object.keys(this.mediaTypes_).forEach(o=>{let l=this.mediaTypes_[o];if(l.activePlaylistLoader){let u=l.activePlaylistLoader.media_;u&&u.attributes.serviceLocation!==e&&(a=!0)}}),a&&this.changeSegmentPathway_()}handlePathwayClones_(){let t=this.main().playlists,n=this.contentSteeringController_.currentPathwayClones,s=this.contentSteeringController_.nextPathwayClones;if(n&&n.size||s&&s.size){for(let[o,l]of n.entries())s.get(o)||(this.mainPlaylistLoader_.updateOrDeleteClone(l),this.contentSteeringController_.excludePathway(o));for(let[o,l]of s.entries()){let u=n.get(o);if(!u){t.filter(h=>h.attributes["PATHWAY-ID"]===l["BASE-ID"]).forEach(h=>{this.mainPlaylistLoader_.addClonePathway(l,h)}),this.contentSteeringController_.addAvailablePathway(o);continue}this.equalPathwayClones_(u,l)||(this.mainPlaylistLoader_.updateOrDeleteClone(l,!0),this.contentSteeringController_.addAvailablePathway(o))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...s])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;let n=e["URI-REPLACEMENT"].PARAMS,s=t["URI-REPLACEMENT"].PARAMS;for(let a in n)if(n[a]!==s[a])return!1;for(let a in s)if(n[a]!==s[a])return!1;return!0}changeSegmentPathway_(){let 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,t="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(n=>{let s=this.mainPlaylistLoader_.getKeyIdSet(n);!s||!s.size||s.forEach(a=>{let o="usable",l=this.keyStatusMap_.has(a)&&this.keyStatusMap_.get(a)===o,u=n.lastExcludeReason_===t&&n.excludeUntil===1/0;l?l&&u&&(delete n.excludeUntil,delete n.lastExcludeReason_,this.logger_(`enabling playlist ${n.id} because key ID ${a} is ${o}`)):(n.excludeUntil!==1/0&&n.lastExcludeReason_!==t&&(n.excludeUntil=1/0,n.lastExcludeReason_=t,this.logger_(`excluding playlist ${n.id} because the key ID ${a} doesn't exist in the keyStatusMap or is not ${o}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(n=>{let s=n&&n.attributes&&n.attributes.RESOLUTION&&n.attributes.RESOLUTION.height<720,a=n.excludeUntil===1/0&&n.lastExcludeReason_===t;s&&a&&(delete n.excludeUntil,le.log.warn(`enabling non-HD playlist ${n.id} because all playlists were excluded due to ${t} key IDs`))})}addKeyStatus_(e,t){let a=(typeof e=="string"?e:F$(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${a} added to the keyStatusMap`),this.keyStatusMap_.set(a,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),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_()}},aF=(r,e,t)=>n=>{let s=r.main.playlists[e],a=Q0(s),o=nf(s);if(typeof n>"u")return o;n?delete s.disabled:s.disabled=!0;let l={renditionInfo:{id:e,bandwidth:s.attributes.BANDWIDTH,resolution:s.attributes.RESOLUTION,codecs:s.attributes.CODECS},cause:"fast-quality"};return n!==o&&!a&&(n?(t(s),r.trigger({type:"renditionenabled",metadata:l})):r.trigger({type:"renditiondisabled",metadata:l})),n},L0=class{constructor(e,t,n){let{playlistController_:s}=e,a=s.fastQualityChange_.bind(s);if(t.attributes){let o=t.attributes.RESOLUTION;this.width=o&&o.width,this.height=o&&o.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=Pu(s.main(),t),this.playlist=t,this.id=n,this.enabled=aF(e.playlists,t.id,a)}},oF=function(r){r.representations=()=>{let e=r.playlistController_.main(),t=ec(e)?r.playlistController_.getAudioTrackPlaylists_():e.playlists;return t?t.filter(n=>!Q0(n)).map((n,s)=>new L0(r,n,n.id)):[]}},Rw=["seeking","seeked","pause","playing","error"],R0=class extends le.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_=Ui("PlaybackWatcher"),this.logger_("initialize");let t=()=>this.monitorCurrentTime_(),n=()=>this.monitorCurrentTime_(),s=()=>this.techWaiting_(),a=()=>this.resetTimeUpdate_(),o=this.playlistController_,l=["main","subtitle","audio"],u={};l.forEach(h=>{u[h]={reset:()=>this.resetSegmentDownloads_(h),updateend:()=>this.checkSegmentDownloads_(h)},o[`${h}SegmentLoader_`].on("appendsdone",u[h].updateend),o[`${h}SegmentLoader_`].on("playlistupdate",u[h].reset),this.tech_.on(["seeked","seeking"],u[h].reset)});let c=h=>{["main","audio"].forEach(f=>{o[`${f}SegmentLoader_`][h]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),c("off"))},this.clearSeekingAppendCheck_=()=>c("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),c("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",s),this.tech_.on(Rw,a),this.tech_.on("canplay",n),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",s),this.tech_.off(Rw,a),this.tech_.off("canplay",n),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),l.forEach(h=>{o[`${h}SegmentLoader_`].off("appendsdone",u[h].updateend),o[`${h}SegmentLoader_`].off("playlistupdate",u[h].reset),this.tech_.off(["seeked","seeking"],u[h].reset)}),this.checkCurrentTimeTimeout_&&J.default.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&J.default.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=J.default.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){let t=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_`]=t.buffered_()}checkSegmentDownloads_(e){let t=this.playlistController_,n=t[`${e}SegmentLoader_`],s=n.buffered_(),a=tB(this[`${e}Buffered_`],s);if(this[`${e}Buffered_`]=s,a){let o={bufferedRanges:s};t.trigger({type:"bufferedrangeschanged",metadata:o}),this.resetSegmentDownloads_(e);return}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:n.playlist_&&n.playlist_.id,buffered:Ra(s)}),!(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"&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;let e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+Tn>=t.end(t.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(Sr([this.lastRecordedTime,e]));let n={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:n}),this.consecutiveUpdates=0,this.lastRecordedTime=e}}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;let t=this.seekable(),n=this.tech_.currentTime(),s=this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow),a;if(s&&(a=t.end(t.length-1)),this.beforeSeekableWindow_(t,n)){let T=t.start(0);a=T+(T===t.end(0)?0:Tn)}if(typeof a<"u")return this.logger_(`Trying to seek outside of seekable at time ${n} with seekable range ${kC(t)}. Seeking to ${a}.`),this.tech_.setCurrentTime(a),!0;let o=this.playlistController_.sourceUpdater_,l=this.tech_.buffered(),u=o.audioBuffer?o.audioBuffered():null,c=o.videoBuffer?o.videoBuffered():null,h=this.media(),f=h.partTargetDuration?h.partTargetDuration:(h.targetDuration-_n)*2,v=[u,c];for(let T=0;T<v.length;T++){if(!v[T])continue;if(W0(v[T],n)<f)return!1}let p=Nd(l,n);return p.length===0?!1:(a=p.start(0)+Tn,this.logger_(`Buffered region starts (${p.start(0)})  just beyond seek point (${n}). Seeking to ${a}.`),this.tech_.setCurrentTime(a),!0)}waiting_(){if(this.techWaiting_())return;let e=this.tech_.currentTime(),t=this.tech_.buffered(),n=jo(t,e);if(n.length&&e+3<=n.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${n.start(0)} -> ${n.end(0)}]. Attempting to resume playback by seeking to the current time.`),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});return}}techWaiting_(){let e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;
214if(this.beforeSeekableWindow_(e,t)){let l=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) ${l}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(l),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}let n=this.tech_.vhs.playlistController_.sourceUpdater_,s=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;let o=Nd(s,t);return o.length>0?(this.logger_(`Stopped at ${t} and seeking to ${o.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0):!1}afterSeekableWindow_(e,t,n,s=!1){if(!e.length)return!1;let a=e.end(e.length-1)+Tn,o=!n.endList,l=typeof n.partTargetDuration=="number";return o&&(l||s)&&(a=e.end(e.length-1)+n.targetDuration*3),t>a}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:n}){if(!e)return;let s;if(e.length&&t.length){let a=jo(e,n-3),o=jo(e,n),l=jo(t,n);l.length&&!o.length&&a.length&&(s={start:a.end(0),end:l.end(0)})}else Nd(e,n).length||(s=this.gapFromVideoUnderflow_(e,n));return s?(this.logger_(`Encountered a gap in video from ${s.start} to ${s.end}. Seeking to current time ${n}`),!0):!1}skipTheGap_(e){let t=this.tech_.buffered(),n=this.tech_.currentTime(),s=Nd(t,n);if(this.resetTimeUpdate_(),s.length===0||n!==e)return;this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",s.start(0)),this.tech_.setCurrentTime(s.start(0)+_n);let a={gapInfo:{from:n,to:s.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:a}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(e,t){let n=J6(e);for(let s=0;s<n.length;s++){let a=n.start(s),o=n.end(s);if(t-a<4&&t-a>2)return{start:a,end:o}}return null}},lF={errorInterval:30,getSource(r){let t=this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource();return r(t)}},gE=function(r,e){let t=0,n=0,s=Et(lF,e);r.ready(()=>{r.trigger({type:"usage",name:"vhs-error-reload-initialized"})});let a=function(){n&&r.currentTime(n)},o=function(h){h!=null&&(n=r.duration()!==1/0&&r.currentTime()||0,r.one("loadedmetadata",a),r.src(h),r.trigger({type:"usage",name:"vhs-error-reload"}),r.play())},l=function(){if(Date.now()-t<s.errorInterval*1e3){r.trigger({type:"usage",name:"vhs-error-reload-canceled"});return}if(!s.getSource||typeof s.getSource!="function"){le.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return t=Date.now(),s.getSource.call(r,o)},u=function(){r.off("loadedmetadata",a),r.off("error",l),r.off("dispose",u)},c=function(h){u(),gE(r,h)};r.on("error",l),r.on("dispose",u),r.reloadSourceOnError=c},uF=function(r){gE(this,r)},vE="3.17.5",cF="7.1.0",dF="1.4.0",hF="7.2.0",fF="4.0.2",zt={PlaylistLoader:Is,Playlist:ci,utils:kB,STANDARD_PLAYLIST_SELECTOR:Cw,INITIAL_PLAYLIST_SELECTOR:p$,lastBandwidthSelector:Cw,movingAverageBandwidthSelector:h$,comparePlaylistBandwidth:Y0,comparePlaylistResolution:d$,xhr:WC()};Object.keys(Tr).forEach(r=>{Object.defineProperty(zt,r,{get(){return le.log.warn(`using Vhs.${r} is UNSAFE be sure you know what you are doing`),Tr[r]},set(e){if(le.log.warn(`using Vhs.${r} is UNSAFE be sure you know what you are doing`),typeof e!="number"||e<0){le.log.warn(`value of Vhs.${r} must be greater than or equal to 0`);return}Tr[r]=e}})});yE="videojs-vhs",bE=function(r,e){let t=e.media(),n=-1;for(let s=0;s<r.length;s++)if(r[s].id===t.id){n=s;break}r.selectedIndex_=n,r.trigger({selectedIndex:n,type:"change"})},pF=function(r,e){e.representations().forEach(t=>{r.addQualityLevel(t)}),bE(r,e.playlists)};zt.canPlaySource=function(){return le.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};mF=(r,e,t)=>{if(!r)return r;let n={};e&&e.attributes&&e.attributes.CODECS&&(n=Xu(Ji(e.attributes.CODECS))),t&&t.attributes&&t.attributes.CODECS&&(n.audio=t.attributes.CODECS);let s=Aa(n.video),a=Aa(n.audio),o={};for(let l in r)o[l]={},a&&(o[l].audioContentType=a),s&&(o[l].videoContentType=s),e.contentProtection&&e.contentProtection[l]&&e.contentProtection[l].pss
214h&&(o[l].pssh=e.contentProtection[l].pssh),typeof r[l]=="string"&&(o[l].url=r[l]);return Et(r,o)},gF=(r,e)=>r.reduce((t,n)=>{if(!n.contentProtection)return t;let s=e.reduce((a,o)=>{let l=n.contentProtection[o];return l&&l.pssh&&(a[o]={pssh:l.pssh}),a},{});return Object.keys(s).length&&t.push(s),t},[]),vF=({player:r,sourceKeySystems:e,audioMedia:t,mainPlaylists:n})=>{if(!r.eme.initializeMediaKeys)return Promise.resolve();let s=t?n.concat([t]):n,a=gF(s,Object.keys(e)),o=[],l=[];return a.forEach(u=>{l.push(new Promise((c,h)=>{r.tech_.one("keysessioncreated",c)})),o.push(new Promise((c,h)=>{r.eme.initializeMediaKeys({keySystems:u},f=>{if(f){h(f);return}c()})}))}),Promise.race([Promise.all(o),Promise.race(l)])},yF=({player:r,sourceKeySystems:e,media:t,audioMedia:n})=>{let s=mF(e,t,n);return s?(r.currentSource().keySystems=s,s&&!r.eme?(le.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},_E=()=>{if(!J.default.localStorage)return null;let r=J.default.localStorage.getItem(yE);if(!r)return null;try{return JSON.parse(r)}catch{return null}},bF=r=>{if(!J.default.localStorage)return!1;let e=_E();e=e?Et(e,r):r;try{J.default.localStorage.setItem(yE,JSON.stringify(e))}catch{return!1}return e},_F=r=>r.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(r.substring(r.indexOf(",")+1)):r,TE=(r,e)=>{r._requestCallbackSet||(r._requestCallbackSet=new Set),r._requestCallbackSet.add(e)},SE=(r,e)=>{r._responseCallbackSet||(r._responseCallbackSet=new Set),r._responseCallbackSet.add(e)},xE=(r,e)=>{r._requestCallbackSet&&(r._requestCallbackSet.delete(e),r._requestCallbackSet.size||delete r._requestCallbackSet)},wE=(r,e)=>{r._responseCallbackSet&&(r._responseCallbackSet.delete(e),r._responseCallbackSet.size||delete r._responseCallbackSet)};zt.supportsNativeHls=function(){if(!ke.default||!ke.default.createElement)return!1;let r=ke.default.createElement("video");return le.getTech("Html5").isSupported()?["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(r.canPlayType(t))}):!1}();zt.supportsNativeDash=function(){return!ke.default||!ke.default.createElement||!le.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(ke.default.createElement("video").canPlayType("application/dash+xml"))}();zt.supportsTypeNatively=r=>r==="hls"?zt.supportsNativeHls:r==="dash"?zt.supportsNativeDash:!1;zt.isSupported=function(){return le.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};zt.xhr.onRequest=function(r){TE(zt.xhr,r)};zt.xhr.onResponse=function(r){SE(zt.xhr,r)};zt.xhr.offRequest=function(r){xE(zt.xhr,r)};zt.xhr.offResponse=function(r){wE(zt.xhr,r)};TF=le.getComponent("Component"),Hh=class extends TF{constructor(e,t,n){if(super(t,n.vhs),typeof n.initialBandwidth=="number"&&(this.options_.bandwidth=n.initialBandwidth),this.logger_=Ui("VhsHandler"),t.options_&&t.options_.playerId){let s=le.getPlayer(t.options_.playerId);this.player_=s}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(ke.default,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],s=>{let a=ke.default.fullscreenElement||ke.default.webkitFullscreenElement||ke.default.mozFullScreenElement||ke.default.msFullscreenElement;a&&a.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_=Et(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_.usePlayerObjectFit=this.options_.usePlayerObjectFit||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||
vendor: 7,684 bytes, line 214
214!1,this.options_.useNetworkInformationApi=typeof this.options_.useNetworkInformationApi<"u"?this.options_.useNetworkInformationApi:!0,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){let n=_E();n&&n.bandwidth&&(this.options_.bandwidth=n.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),n&&n.throughput&&(this.options_.throughput=n.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=Tr.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Tr.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","usePlayerObjectFit","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(n=>{typeof this.source_[n]<"u"&&(this.options_[n]=this.source_[n])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio,this.usePlayerObjectFit=this.options_.usePlayerObjectFit;let t=this.options_.customPixelRatio;typeof t=="number"&&t>=0&&(this.customPixelRatio=t)}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;this.setOptions_(),this.options_.src=_F(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=zt,this.options_.sourceType=Hm(t),this.options_.seekTo=a=>{this.tech_.setCurrentTime(a)},this.options_.player_=this.player_,this.playlistController_=new O0(this.options_);let n=Et({liveRangeSafeTimeDelta:Tn},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new R0(n),this.attachStreamingEventListeners_(),this.playlistController_.on("error",()=>{let a=le.players[this.tech_.options_.playerId],o=this.playlistController_.error;typeof o=="object"&&!o.code?o.code=3:typeof o=="string"&&(o={message:o,code:3}),a.error(o)});let s=this.options_.bufferBasedABR?zt.movingAverageBandwidthSelector(.55):zt.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.playlistController_.selectInitialPlaylist=zt.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(a){this.playlistController_.selectPlaylist=a.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(a){this.playlistController_.mainSegmentLoader_.throughput.rate=a,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let a=this.playlistController_.mainSegmentLoader_.bandwidth,o=J.default.navigator.connection||J.default.navigator.mozConnection||J.default.navigator.webkitConnection,l=1e7;if(this.options_.useNetworkInformationApi&&o){let u=o.downlink*1e3*1e3;u>=l&&a>=l?a=Math.max(a,u):a=u}return a},set(a){this.playlistController_.mainSegmentLoader_.bandwidth=a,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){let a=1/(this.bandwidth||1),o;return this.throughput>0?o=1/this.throughput:o=0,Math.floor(1/(a+o))},set(){le.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:()=>Ra(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:()=>Ra(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&&bF({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{oF(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_=J.default.URL.createObjectURL(this.playlistController_.mediaSource),(le.browser.IS_ANY_SAFARI||le.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_(){let e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),vF({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(t=>{this.logger_("error while creating EME key session",t),this.player_.error({message:"Failed to initialize media ke
214ys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){let e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=yF({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});if(this.player_.tech_.on("keystatuschange",n=>{this.playlistController_.updatePlaylistByKeyStatus(n.keyId,n.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),!t){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){let e=le.players[this.tech_.options_.playerId];!e||!e.qualityLevels||this.qualityLevels_||(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{pF(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{bE(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":vE,"mux.js":cF,"mpd-parser":dF,"m3u8-parser":hF,"aes-decrypter":fF}}version(){return this.constructor.version()}canChangeType(){return Mh.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_&&J.default.URL.revokeObjectURL&&(J.default.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return RB({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,n=!0,s=2){return YC({programTime:e,playlist:this.playlistController_.media(),retryCount:s,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{TE(this.xhr,e)},this.xhr.onResponse=e=>{SE(this.xhr,e)},this.xhr.offRequest=e=>{xE(this.xhr,e)},this.xhr.offResponse=e=>{wE(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){let e=["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"],t=["gapjumped","playedrangeschanged"];e.forEach(n=>{this.playlistController_.on(n,s=>{this.player_.trigger(jt({},s))})}),t.forEach(n=>{this.playbackWatcher_.on(n,s=>{this.player_.trigger(jt({},s))})})}},Vh={name:"videojs-http-streaming",VERSION:vE,canHandleSource(r,e={}){let t=Et(le.options,e);return!t.vhs.experimentalUseMMS&&!Eo("avc1.4d400d,mp4a.40.2",!1)?!1:Vh.canPlayType(r.type,t)},handleSource(r,e,t={}){let n=Et(le.options,t);return e.vhs=new Hh(r,e,n),e.vhs.xhr=WC(),e.vhs.setupXhrHooks_(),e.vhs.src(r.src,r.type),e.vhs},canPlayType(r,e){let t=Hm(r);if(!t)return"";let n=Vh.getOverrideNative(e);return!zt.supportsTypeNatively(t)||n?"maybe":""},getOverrideNative(r={}){let{vhs:e={}}=r,t=!(le.browser.IS_ANY_SAFARI||le.browser.IS_IOS),{overrideNative:n=t}=e;return n}},SF=()=>Eo("avc1.4d400d,mp4a.40.2",!0);SF()&&le.getTech("Html5").registerSourceHandler(Vh,0);le.VhsHandler=Hh;le.VhsSourceHandler=Vh;le.Vhs=zt;le.use||le.registerComponent("Vhs",zt);le.options.vhs=le.options.vhs||{};(!le.getPlugin||!le.getPlugin("reloadSourceOnError"))&&le.registerPlugin("reloadSourceOnError",uF)});var Fr=pe((Ste,AE)=>{"use strict";O();R();L();var dl=Ae(),wF={blankClass:"hidden"},CF=window.devicePixelRatio>1,kE=function(r){var e=dl(r);e.addClass(this.opts.blankClass),e.is("img")?e.removeAttr("src"):e.css("background-image","")},EF=function(r,e){var t=dl(r),n=t.attr(e);if(!n){kE.call(this,r);return}t.removeClass(this.opts.blankClass),t.is("img")?t.attr("src",n):t.css("background-image",'url("'+n+'")')},EE=function(r){var e,t;if(r>=this.mqs.length)return this.$images.each(function(n,s){kE.call(this,s)}.bind(this)),!1;if(e=this.mqs[r],t=CF&&e.retinaAttrName||e.attrName,!t)return!1;this.$images.each(function(n,s){EF.call(this,s,t)}.bind(this))},sf=function(){for(var r=0,e=this.mqls.length;r<e;r+=1)if(this.mqls[r].matches){EE.call(this,r);return}EE.call(this,e)}
214,kF=function(){this.mqls[0].addListener&&this.mqls.forEach(function(r){r.addListener(sf.bind(this))}.bind(this))},AF=function(){return this.mqs.filter(function(r){return r.mediaQuery}).map(function(r){return matchMedia(r.mediaQuery)})},PF=function(r,e,t){return!r||!e||!e.length||!matchMedia?!1:(this.selector=null,typeof r=="string"?this.selector=r:typeof r=="object"&&r.selector&&(this.selector=r.selector),this.$images=dl(r),this.mqs=e,this.opts=dl.extend({},wF,t),this.mqls=AF.call(this),kF.call(this),sf.call(this),!0)},af=function(r,e,t){this.result=PF.call(this,r,e,t)};af.prototype.runCheck=sf;af.prototype.refresh=function(){!this.selector||!this.result||(this.$images=dl(this.selector),sf.call(this))};dl.fn.MediaQueryImages=function(r,e){return new af(this,r,e)};AE.exports=af});var xe,nt,hr,tc,ev,PE,tv,DE,DF,rv,es,Ur,wr,iv,of,Tt=Ze(()=>{O();R();L();xe={tab:9,enter:13,shift:16,escape:27,spaceBar:32,end:35,home:36,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40},nt={ltSmall:"(max-width: 31.1875rem)",gtSmall:"(min-width: 31.25rem)",ltMedium:"(max-width: 46.8125rem)",gtMedium:"(min-width: 46.875rem)",ltLarge:"(max-width: 63.9375rem)",gtLarge:"(min-width: 64rem)",ltXLarge:"(max-width: 87.4375rem)",gtXLarge:"(min-width: 87.5rem)"},hr=class{constructor(e,t){this.key=e,this.name=t,Object.freeze(this)}equals(e){return this.key===e.key&&this.name===e.name}},tc=(()=>{let r={AAG:new hr("AAG","ataglance"),QRT:new hr("QRT","quartet"),MEAD:new hr("MEAD","mead"),FST:new hr("FST","fivestar"),DYT:new hr("DYT","daytimer"),PWR:new hr("PWR","powera"),LCD:new hr("LCD","lucidsound"),SWL:new hr("SWL","swingline"),CAM:new hr("CAM","cambridge"),GBC:new hr("GBC","GBC"),XYR:new hr("XYR","Xyron"),DRW:new hr("DRW","Derwent"),KEN:new hr("KEN","Kensington"),TRU:new hr("TRU","TruSens"),CRP:new hr("CRP","Acco"),EAP:new hr("EAP","Acco Partners")};Object.freeze(r);let e=Object.entries(r);Object.freeze(e);let t=c=>c instanceof Element||c instanceof HTMLDocument,n=(c=null)=>{if(c===null||typeof c!="string")return null;let h=c.toUpperCase(),f=e.find(v=>v[0]===h);return f===void 0?null:f[1]},s=(c=null)=>{if(c===null&&(c=$("html")),t(c)&&(c=$(c)),!(c instanceof jQuery))return null;let f="data-brand",v=`[${f}]`,p=c;if(c.attr(f)===void 0){let b=c.closest(v);if(b.length===0)return null;p=b}let g=p.attr(f);return n(g)},a=(c=null,h=null)=>{if(c===null&&(c=l()),h===null||!Array.isArray(h)||h.length===0)return!1;let f=h.map(v=>n(v.key)).filter(v=>v instanceof hr&&v!==null);return f.length===0?!1:f.some(v=>c.equals(v))},o=(c=null)=>((c===null||!(c instanceof hr))&&(c=l()),e.filter(h=>h[1].key!==c.key)),l=()=>s(null);return{BRANDS:r,getBrandByKey:n,getSiteBrand:l,getElementBrand:c=>s(c),isBrandAmoungBrands:a,getOtherBrands:o}})(),ev=!0,PE=":tabbable",tv=document.body,DE=[tv],DF=(r=DE,e=ev,t=tv)=>{if(r=$(r),t=$(t),t=$(t[0]),t.length<=0)try{throw new Error("Element was empty",t)}catch(l){throw console.error(l.message,t),l}let n=r.length,s=r.index(t);if(s===-1)try{throw new Error("Element not found in collection",t,r)}catch(l){throw console.error(l.message,t,r),l}let a=s===0?e?n-1:0:s-1,o=s===n-1?e?0:n-1:s+1;return{prev:r.eq(a),next:r.eq(o),self:$(t)}},rv=({collection:r=DE,loop:e=ev}={})=>(t=tv)=>DF($(r),e,t),es=(r=document.body,e=!1)=>(r=$(r),r=$(r[0]),e&&r.is(PE)?r:$(r.find(PE))),Ur=(r=document.body,e=!1)=>$(es(r,e)).first(),wr=(r=document.activeElement,e=document.body,t=ev,n=null)=>{if(r=$(r),r=$(r[0]),e=$(e),e=$(e[0]),r.length<=0)throw new Error("Element was empty",r);
214if(e.length<=0)throw new Error("Container was empty",e);let s=es(e),a=n===null?s:s.add($($(n)[0]));return rv({collection:a,loop:t})(r)},iv=(r,e,t=!1)=>{if(r=$(r),r=$(r[0]),e=$(e),e=$(e[0]),r.length<=0)throw new Error("Element was empty",r);if(e.length<=0)throw new Error("Container was empty",e);return e.has(r).length||(t?r.is(e):!1)},of=(r=document.activeElement,e=void 0,t=[])=>{r=$($(r)[0]);let n=[!0,!1].includes(e)?e:!1;return(s=void 0)=>([!0,!1].includes(s)||(s=!n),n=s,$("body").children().each((a,o)=>{let l=$.contains(o,r[0]),u=$(o).is($(r));!l&&!u&&(s?$(o).attr("inert",""):$(o).removeAttr("inert"))}),$(t).each(function(){let a=$(this);s?a.attr("inert",""):a.removeAttr("inert")}),s)}});var En=pe((Dte,OE)=>{"use strict";O();R();L();var rc=function(r,e){var t=this;if(!(typeof r!="string"||!r.length||typeof e>"u")){if(r.indexOf(" ")>-1){r.split(" ").forEach(function(n){rc.call(t,n,e)});return}this._events=this._events||{},this._events[r]=this._events[r]||[],this._events[r].push(e)}},ic=function(r,e){var t=this;if(!(typeof r!="string"||!r.length)){if(r.indexOf(" ")>-1){r.split(" ").forEach(function(s){ic.call(t,s,e)});return}if(this._events=this._events||{},r in this._events){if(typeof e>"u"){delete this._events[r];return}var n=this._events[r].indexOf(e);n>-1&&(this._events[r].length===1?delete this._events[r]:this._events[r].splice(n,1))}}},hl=function(r){for(var e=this,t=arguments.length,n=Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var a=r.lastIndexOf(":");a>-1&&hl.call.apply(hl,[this,r.substring(0,a)].concat(n)),this._events=this._events||{},r in this._events&&this._events[r].forEach(function(o){o.apply(e,n)})},nv=function(){},fl=nv.prototype;fl.on=rc;fl.off=ic;fl.emit=hl;fl.bind=rc;fl.unbind=ic;fl.trigger=hl;var IE=function(r){return arguments.length===0?new nv:(typeof r=="function"&&(r.prototype.on=rc,r.prototype.off=ic,r.prototype.emit=hl),typeof r=="object"&&(r.on=rc,r.off=ic,r.emit=hl),r)};IE.EventConstructor=nv;OE.exports=IE});var av=pe((Rte,$E)=>{"use strict";O();R();L();function LE(r){return r&&typeof r=="object"&&"default"in r?r.default:r}var ts=LE(Ae()),RE=LE(En()),sv=RE({}),nn={},IF=0,Us=[],NE=[],lf={zIndexStart:1e3,appendTo:document.forms.length>0&&document.forms[0].parentElement===document.body?document.forms[0]:document.body},ME={overlayHTML:'<div class="Overlay" data-state="off"></div>',attr:"data-state",onState:"on",offState:"off",verticallyCenterModal:!0},BE=function(e){var t=ts(window).height(),n=e.outerHeight(),s=ts(window).scrollTop();return Math.max((t-n)/2,0)+s},uf=function(){return Us.length===0?null:Us[Us.length-1]},nc=function(e,t,n){this.$el=e,this.el=e[0],this.id=t,this.opts=ts.extend({},ME,n),this.isOpen=!1,this.opts.overlayHTML&&(this.$overlay=ts(this.opts.overlayHTML),this.$overlay.appendTo(lf.appendTo)),this.$el.appendTo(lf.appendTo),this.$el.attr({tabindex:"-1",role:"dialog"})};RE(nc);nc.prototype.open=function(){if(!this.isOpen){this.isOpen=!0,Us.push(this),NE.push(document.activeElement);var r={zIndex:lf.zIndexStart+Us.length};this.opts.overlayHTML&&this.$overlay.css(r).attr(this.opts.attr,this.opts.onState),this.opts.verticallyCenterModal&&(r.top=BE(this.$el)),this.$el.css(r).attr(this.opts.attr,this.opts.onState),this.emit("open"),sv.emit("open",this)}};nc.prototype.close=function(){if(this.isOpen){this.isOpen=!1;var r=Us.indexOf(this),e;r>-1&&(Us.splice(r,1),e=NE.splice(r,1)[0]),this.opts.overlayHTML&&this.$overlay.attr(this.opts.attr,this.opts.offState),this.$el.attr(this.opts.attr,this.opts.offState),e.focus(),this.emit("close"),sv.emit("close",this)}};nc.prototype.verticallyCenter=function(){this.$el.css({top:BE(this.$el)})};var OF=function(e){ts.extend(lf,e)},LF=function(e){ts.extend(ME,e)},RF=function(e,t){var n;if(typeof e=="string"&&(n=e.indexOf("#")===0?e.substr(1):e,nn.hasOwnProperty(n)))return nn[n];var s=ts(e);if(s.length){if(n=s[0].id||"_"+ ++IF,nn.hasOwnProperty(n))return nn[n];var a=new nc(s,n,t);return nn[n]=a,a}},NF=function(){for(;Us.length>0;)uf().close()},MF=function(){var e=uf();e&&e.close()},BF=function(e){nn.hasOwnProperty(e)&&nn[e].open()},$F=function(e){nn.hasOwnProperty(e)&&nn[e].close()},FF=function(e){nn.hasOwnProperty(e)&&nn[e].verticallyCenter()};ts(document).on("keydown",function(r){if(r.which===27){var e=uf();e&&e.close()}}).on("focus","body",function(r){var e=uf();!e||e.el.contains(r.target)||(r.stopPropagation(),e.el.focus())});var UF=ts.extend(sv,{config:OF,setDefaults:LF,create:RF,closeAll:NF,closeActive:MF,open:BF,close:$F,verticallyCenter:FF});$E.exports=UF});var cf,ov,di,qs=Ze(()=>{O();R();L();cf=Z(Ae()),ov=Z(av()),di=(r,e,t,n)=>{let a=(0,cf.default)(e).find("video"),o=a.attr("data-autoplay");ov.default.config({appendTo:t});let l=ov.default.create(e);if(l)return l.$el.on("click",".cancel",u=>{u.preventDefault(),l.$el.find(".Close").length>0&&l.$el.find(".Close").attr("tabindex","-1"),l.close()}),l.$el.on("click",".Close",u=>{u.preventDefault(),l.$el.find(".Close").length>0&&l.$el.find(".Close").attr("tabindex","-1"),l.close(),a.length>0&&a.get(0).pause()}),r&&(0,cf.default)(r).on("click",u=>{u.preventDefault(),l.open(),l.$el.find(".Close").length>0&&l.$el.find(".Close").attr("tabindex","0"),a&&o==="true"&&a.get(0).play()}),n&&l.open(),(0,cf.default)(document).on("click",".Overlay",()=>{l.close(),a.length>0&&a.get(0).pause()}),l}});var qE=pe((jte,UE)=>{O();R();L();var pl=Z(Ae()),lv=Z(Fr());Tt();qs();var qF={videoModal:!0},FE=function(){new lv.default(this.$image,[{mediaQuery:nt.ltSmall,attrName:"data-mobile"},{mediaQuery:nt.ltMedium,attrName:"data-tablet"},{attrName:"data-desktop"}],{blankClass:"hidden"}),new lv.default(this.$videoWrapper,[{mediaQuery:nt.ltMedium,attrName:"data-tablet"},{mediaQuery:nt.ltSmall,attrName:"data-mobile"},{attrName:"data-desktop"}],{blankClass:"hidden"})},HF=r=>r.length!==0,VF=function(){var r=this;let e=r.$video.find("video");r.$video.attr("data-autoplay")==="true"&&(e[0].controls=!1,e[0].loop=!0,e[0].muted=!0,e[0].play(),r.$el.attr("data-video-status","playing")),this.$videoBtn.on("click",t=>{t.preventDefault(),e[0].play(),e[0].controls=!1,e[0].loop=!0,e[0].muted=!0,r.$el.attr("data-video-status","playing")}),this.$el.on("click",function(t){let n=r.$video.find("video");t.target.className!=="video-btn"&&(0,pl.default)(this).attr("data-video-status")!=="inactive"&&(t.target.className==="text"||(0,pl.default)(t.target).parents(".text").length||t.target.className==="dropzone"||(0,pl.default)(t.target).parents(".dropzone").length||(n[0].pause(),r.$el.attr("data-video-status","paused")))})},jF=function(){di(this.$videoBtn,this.$videoModal,"body")},zF=function(r,e){this.$el=(0,pl.default)(r),this.options=pl.default.extend({}
214,qF,e),this.$image=this.$el.find(".image"),this.hasImage=HF.call(this,this.$image),this.$videoBtn=this.$el.find(".video-btn"),this.$videoModal=this.$el.find(".video-modal"),this.$videoWrapper=this.$el.find(".video"),this.$video=this.$el.find(".video-lazy-load"),this.$videoBtn.length>0&&this.options.videoModal?jF.call(this):this.$el.hasClass("has-video")&&!this.options.videoModal&&this.$video.length>0&&VF.call(this),FE.call(this),this.hasImage&&FE.call(this)};UE.exports=zF});var $t,hv,cv,WF,dv,qi,ml=Ze(()=>{O();R();L();$t=Z(Ae()),hv=Z(Fr());ud();cv=r=>{let e=(0,$t.default)(window).scrollTop()+(0,$t.default)(window).outerHeight(),t=r,n=(0,$t.default)(t).attr("data-autoplay"),s=(0,$t.default)(t).attr("data-playsinline"),a=(0,$t.default)(t).attr("data-click-play"),o=(0,$t.default)(t).attr("data-title");if(e>(0,$t.default)(r).offset().top&&!(0,$t.default)(r).hasClass("loaded")){let l=document.createElement("video");l.controls=!0,l.title=o,s&&((0,$t.default)(l).attr("playsinline",""),(0,$t.default)(l).attr("controls",""),(0,$t.default)(l).attr("muted","")),n&&(0,$t.default)(l).attr("data-autoplay","true"),l.src=(0,$t.default)(r).attr("data-src"),(0,$t.default)(r).append(l),l.load(),a&&l.play(),(0,$t.default)(r).addClass("loaded"),wa()}},WF=r=>{new hv.default(r,[{mediaQuery:"(min-width: 0px)",attrName:"data-src"}],{blankClass:"hidden"}),(0,$t.default)(r).addClass("loaded")},dv=r=>{let e=(0,$t.default)(window).scrollTop()+(0,$t.default)(window).outerHeight();(0,$t.default)(r).attr("data-src")||r.setAttribute("data-src",(0,$t.default)(r).attr("src")),e>(0,$t.default)(r).offset().top&&!(0,$t.default)(r).hasClass("loaded")&&(new hv.default(r,[{mediaQuery:"(min-width: 0px)",attrName:"data-src"}],{blankClass:"hidden"}),(0,$t.default)(r).addClass("loaded"))},qi=(r,e=!1)=>{if(!(r==null||r===""))return e?cv(r):dv(r),(0,$t.default)(window).on("scroll",()=>{e?cv(r):dv(r)}),(0,$t.default)(document).ready(()=>{e?cv(r):dv(r)}),{loadAllImages:WF}}});function GF(){if(zE)return fv;zE=!0;let r=2147483647,e=36,t=1,n=26,s=38,a=700,o=72,l=128,u="-",c=/^xn--/,h=/[^\0-\x7F]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=e-t,T=Math.floor,g=String.fromCharCode;function b(H){throw new RangeError(v[H])}function S(H,W){let ae=[],se=H.length;for(;se--;)ae[se]=W(H[se]);return ae}function x(H,W){let ae=H.split("@"),se="";ae.length>1&&(se=ae[0]+"@",H=ae[1]),H=H.replace(f,".");let ge=H.split("."),ce=S(ge,W).join(".");return se+ce}function E(H){let W=[],ae=0,se=H.length;for(;ae<se;){let ge=H.charCodeAt(ae++);if(ge>=55296&&ge<=56319&&ae<se){let ce=H.charCodeAt(ae++);(ce&64512)==56320?W.push(((ge&1023)<<10)+(ce&1023)+65536):(W.push(ge),ae--)}else W.push(ge)}return W}let k=H=>String.fromCodePoint(...H),A=function(H){return H>=48&&H<58?26+(H-48):H>=65&&H<91?H-65:H>=97&&H<123?H-97:e},N=function(H,W){return H+22+75*(H<26)-((W!=0)<<5)},I=function(H,W,ae){let se=0;for(H=ae?T(H/a):H>>1,H+=T(H/W);H>p*n>>1;se+=e)H=T(H/p);return T(se+(p+1)*H/(H+s))},M=function(H){let W=[],ae=H.length,se=0,ge=l,ce=o,ue=H.lastIndexOf(u);ue<0&&(ue=0);for(let ye=0;ye<ue;
vendor: 39,644 bytes, lines 214-217
214++ye)H.charCodeAt(ye)>=128&&b("not-basic"),W.push(H.charCodeAt(ye));for(let ye=ue>0?ue+1:0;ye<ae;){let Te=se;for(let me=1,Ce=e;;Ce+=e){ye>=ae&&b("invalid-input");let Ie=A(H.charCodeAt(ye++));Ie>=e&&b("invalid-input"),Ie>T((r-se)/me)&&b("overflow"),se+=Ie*me;let Pe=Ce<=ce?t:Ce>=ce+n?n:Ce-ce;if(Ie<Pe)break;let We=e-Pe;me>T(r/We)&&b("overflow"),me*=We}let Se=W.length+1;ce=I(se-Te,Se,Te==0),T(se/Se)>r-ge&&b("overflow"),ge+=T(se/Se),se%=Se,W.splice(se++,0,ge)}return String.fromCodePoint(...W)},F=function(H){let W=[];H=E(H);let ae=H.length,se=l,ge=0,ce=o;for(let Te of H)Te<128&&W.push(g(Te));let ue=W.length,ye=ue;for(ue&&W.push(u);ye<ae;){let Te=r;for(let me of H)me>=se&&me<Te&&(Te=me);let Se=ye+1;Te-se>T((r-ge)/Se)&&b("overflow"),ge+=(Te-se)*Se,se=Te;for(let me of H)if(me<se&&++ge>r&&b("overflow"),me===se){let Ce=ge;for(let Ie=e;;Ie+=e){let Pe=Ie<=ce?t:Ie>=ce+n?n:Ie-ce;if(Ce<Pe)break;let We=Ce-Pe,et=e-Pe;W.push(g(N(Pe+We%et,0))),Ce=T(We/et)}W.push(g(N(Ce,0))),ce=I(ge,Se,ye===ue),ge=0,++ye}++ge,++se}return W.join("")};return fv={version:"2.3.1",ucs2:{decode:E,encode:k},decode:M,encode:F,toASCII:function(H){return x(H,function(W){return h.test(W)?"xn--"+F(W):W})},toUnicode:function(H){return x(H,function(W){return c.test(W)?M(W.slice(4).toLowerCase()):W})}},fv}var fv,zE,Hs,dre,hre,fre,pre,mre,gre,WE=Ze(()=>{O();R();L();fv={},zE=!1;Hs=GF(),dre=Hs.decode,hre=Hs.encode,fre=Hs.toASCII,pre=Hs.toUnicode,mre=Hs.ucs2,gre=Hs.version});function QF(){return GE||(GE=!0,pv=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[t]=s;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==s||o.enumerable!==!0)return!1}return!0}),pv}function KF(){return QE||(QE=!0,mv=Error),mv}function XF(){return KE||(KE=!0,gv=EvalError),gv}function YF(){return XE||(XE=!0,vv=RangeError),vv}function JF(){return YE||(YE=!0,yv=ReferenceError),yv}function pk(){return JE||(JE=!0,bv=SyntaxError),bv}function vl(){return ZE||(ZE=!0,_v=TypeError),_v}function ZF(){return ek||(ek=!0,Tv=URIError),Tv}function eU(){if(tk)return Sv;tk=!0;var r=typeof Symbol<"u"&&Symbol,e=QF();return Sv=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Sv}function tU(){if(rk)return xv;rk=!0;var r={__proto__:null,foo:{}},e=Object;return xv=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof e)},xv}function rU(){if(ik)return wv;ik=!0;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",s=function(u,c){for(var h=[],f=0;f<u.length;f+=1)h[f]=u[f];for(var v=0;v<c.length;v+=1)h[v+u.length]=c[v];return h},a=function(u,c){for(var h=[],f=c,v=0;f<u.length;f+=1,v+=1)h[v]=u[f];return h},o=function(l,u){for(var c="",h=0;h<l.length;h+=1)c+=l[h],h+1<l.length&&(c+=u);return c};return wv=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==n)throw new TypeError(r+c);for(var h=a(arguments,1),f,v=function(){if(this instanceof f){var S=c.apply(this,s(h,arguments));return Object(S)===S?S:this}return c.apply(u,s(h,arguments))},p=t(0,c.length-h.length),T=[],g=0;g<p;g++)T[g]="$"+g;if(f=Function("binder","return function ("+o(T,",")+"){ return binder.apply(this,arguments); }")(v),c.prototype){var b=function(){};b.prototype=c.prototype,f.prototype=new b,b.prototype=null}return f},wv}function Rv(){if(nk)return Cv;nk=!0;var r=rU();return Cv=Function.prototype.bind||r,Cv}function iU(){if(sk)return Ev;sk=!0;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Rv();return Ev=t.call(r,e),Ev}function Ha(){if(ak)return kv;ak=!0;var r,e=KF(),t=XF(),n=YF(),s=JF(),a=pk(),o=vl(),l=ZF(),u=Function,c=function(ge){try{return u('"use strict"; return ('+ge+").constructor;")()}catch{}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch{h=null}var f=function(){throw new o},v=h?function(){try{return arguments.callee,f}catch{try{return h(arguments,"callee").get}catch{return f}}}():f,p=eU()(),T=tU()(),g=Object.getPrototypeOf||(T?function(ge){return ge.__proto__}:null),b={},S=typeof Uint8Array>"u"||!g?r:g(Uint8Array),x={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p&&g?g([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":e,"%eval%":eval,"%EvalError%":t,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":b,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&g?g(g([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p||!g?r:g(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":n,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p||!g?r:g(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&g?g(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":v,"%TypedArray%":S,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet};if(g)try{null.error}catch(ge){var E=g(g(ge));x["%Error.prototype%"]=E}var k=function ge(ce){var ue;if(ce==="%AsyncFunction%")ue=c("async function () {}");else if(ce==="%GeneratorFunction%")ue=c("function* () {}");else if(ce==="%AsyncGeneratorFunction%")ue=c("async function* () {}");else if(ce==="%AsyncGenerator%"){var ye=ge("%AsyncGeneratorFunction%");ye&&(ue=ye.prototype)}else if(ce==="%AsyncIteratorPrototype%"){var Te=ge("%AsyncGenerator%");Te&&g&&(ue=g(Te.prototype))}return x[ce]=ue,ue},A={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=Rv(),I=iU(),M=N.call(Function.call,Array.prototype.concat),F=N.call(Function.apply,Array.prototype.splice),ne=N.call(Function.call,String.prototype.replace),Q=N.call(Function.call,String.prototype.slice),j=N.call(Function.call,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,ae=function(ce){var ue=Q(ce,0,1),ye=Q(ce,-1);if(ue==="%"&&ye!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(ye==="%"&&ue!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Te=[];return ne(ce,H,function(Se,me,Ce,Ie){Te[Te.length]=Ce?ne(Ie,W,"$1"):me||Se}),Te},se=function(ce,ue){var ye=ce,Te;if(I(A,ye)&&(Te=A[ye],ye="%"+Te[0]+"%"),I(x,ye)){var Se=x[ye];if(Se===b&&(Se=k(ye)),typeof Se>"u"&&!ue)throw new o("intrinsic "+ce+" exists, but is not available. Please file an issue!");return{alias:Te,name:ye,value:Se}}throw new a("intrinsic "+ce+" does not exist!")};return kv=function(ce,ue){if(typeof ce!="string"||ce.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ue!="boolean")throw new o('"allowMissing" argument must be a boolean');if(j(/^%?[^%]*%?$/,ce)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ye=ae(ce),Te=ye.length>0?ye[0]:"",Se=se("%"+Te+"%",ue),me=Se.name,Ce=Se.value,Ie=!1,Pe=Se.alias;Pe&&(Te=Pe[0],F(ye,M([0,1],Pe)));for(var We=1,et=!0;We<ye.length;We+=1){var Ye=ye[We],Je=Q(Ye,0,1),st=Q(Ye,-1);if((Je==='"'||Je==="'"||Je==="`"||st==='"'||st==="'"||st==="`")&&Je!==st)throw new a("property names with quotes must have matching quotes");if((Ye==="constructor"||!et)&&(Ie=!0),Te+="."+Ye,me="%"+Te+"%",I(x,me))Ce=x[me];else if(Ce!=null){if(!(Ye in Ce)){if(!ue)throw new o("base intrinsic for "+ce+" exists, but the property is not available.");return}if(h&&We+1>=ye.length){var Be=h(Ce,Ye);et=!!Be,et&&"get"in Be&&!("originalValue"in Be.get)?Ce=Be.get:Ce=Ce[Ye]}else et=I(Ce,Ye),Ce=Ce[Ye];et&&!Ie&&(x[me]=Ce)}}return Ce},kv}function Nv(){if(ok)return Av;ok=!0;var r=Ha(),e=r("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Av=e,Av}function mk(){if(lk)return Pv;lk=!0;var r=Ha(),e=r("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return Pv=e,Pv}function nU(){if(uk)return Dv;uk=!0;var r=Nv(),e=pk(),t=vl(),n=mk();return Dv=function(a,o,l){if(!a||typeof a!="object"&&typeof a!="function")throw new t("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,v=!!n&&n(a,o);if(r)r(a,o,{configurable:h===null&&v?v.configurable:!h,enumerable:u===null&&v?v.enumerable:!u,value:l,writable:c===null&&v?v.writable:!c});else if(f||!u&&!c&&!h)a[o]=l;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Dv}function sU(){if(ck)return Iv;ck=!0;var r=Nv(),e=function(){return!!r};return e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},Iv=e,Iv}function aU(){if(dk)return Ov;dk=!0;var r=Ha(),e=nU(),t=sU()(),n=mk(),s=vl(),a=r("%Math.floor%");return Ov=function(l,u){if(typeof l!="function")throw new s("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||a(u)!==u)throw new s("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],h=!0,f=!0;if("length"in l&&n){var v=n(l,"length");v&&!v.configurable&&(h=!1),v&&!v.writable&&(f=!1)}return(h||f||!c)&&(t?e(l,"length",u,!0,!0):e(l,"length",u)),l},Ov}function oU(){if(hk)return ac;hk=!0;var r=Rv(),e=Ha(),t=aU(),n=vl(),s=e("%Function.prototype.apply%"),a=e("%Function.prototype.call%"),o=e("%Reflect.apply%",!0)||r.call(a,s),l=Nv(),u=e("%Math.max%");ac=function(f){if(typeof f!="function")throw new n("a function is required");var v=o(r,a,arguments);return t(v,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return o(r,s,arguments)};return l?l(ac,"apply",{value:c}):ac.apply=c,ac}function gk(){if(fk)return Lv;fk=!0;var r=Ha(),e=oU(),t=e(r("String.prototype.indexOf"));return Lv=function(s,a){var o=r(s,!!a);return typeof o=="function"&&t(s,".prototype.")>-1?e(o):o},Lv}var pv,GE,mv,QE,gv,KE,vv,XE,yv,YE,bv,JE,_v,ZE,Tv,ek,Sv,tk,xv,rk,wv,ik,Cv,nk,Ev,sk,kv,ak,Av,ok,Pv,lk,Dv,uk,Iv,ck,Ov,dk,ac,hk,Lv,fk,vk=Ze(()=>{O();R();L();pv={},GE=!1;mv={},QE=!1;gv={},KE=!1;vv={},XE=!1;yv={},YE=!1;bv={},JE=!1;_v={},ZE=!1;Tv={},ek=!1;Sv={},tk=!1;xv={},rk=!1;wv={},ik=!1;Cv={},nk=!1;Ev={},sk=!1;kv={},ak=!1;Av={},ok=!1;Pv={},lk=!1;Dv={},uk=!1;Iv={},ck=!1;Ov={},dk=!1;ac={},hk=!1;Lv={},fk=!1});function Fv(r){throw new Error("Node.js process "+r+" is not supported by JSPM core outside of Node.js")}function lU(){!yl||!Va||(yl=!1,Va.length?rs=Va.concat(rs):df=-1,rs.length&&yk())}function yk(){if(!yl){var r=setTimeout(lU,0);yl=!0;for(var e=rs.length;e;){for(Va=rs,rs=[];++df<e;)Va&&Va[df].run();df=-1,e=rs.length}Va=null,yl=!1,clearTimeout(r)}}function uU(r){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];rs.push(new bk(r,e)),rs.length===1&&!yl&&setTimeout(yk,0)}function bk(r,e){this.fun=r,this.array=e}function qr(){}function EU(r){Fv("_linkedBinding")}function DU(r){Fv("dlopen")}function IU(){return[]}function OU(){return[]}function qU(r,e){if(!r)throw new Error(e||"assertion error")}function zU(){return!1}function l7(){return Vs.now()/1e3}function $v(r){var e=Math.floor((Date.now()-Vs.now())*.001),t=Vs.now()*.001,n=Math.floor(t)+e,s=Math.floor(t%1*1e9);return r&&(n=n-r[0],s=s-r[1],s<0&&(n--,s+=Bv)),[n,s]}function js(){return qv}function _7(r){return[]}var rs,yl,Va,df,cU,dU,hU,fU,pU,mU,gU,vU,yU,bU,_U,TU,SU,xU,wU,CU,kU,AU,PU,LU,RU,Uv,NU,MU,BU,$U,FU,UU,HU,VU,jU,WU,GU,QU,KU,XU,YU,JU,ZU,e7,t7,r7,i7,n7,s7,a7,o7,Vs,Mv,Bv,u7,c7,d7,h7,f7,p7,m7,g7,v7,y7,b7,qv,hf=Ze(()=>{O();R();L();rs=[],yl=!1,df=-1;bk.prototype.run=function(){this.fun.apply(null,this.array)};cU="browser",dU="x64",hU="browser",fU={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},pU=["/usr/bin/node"],mU=[],gU="v16.8.0",vU={},yU=function(r,e){console.warn((e?e+": ":"")+r)},bU=function(r){Fv("binding")},_U=function(r){return 0},TU=function(){return"/"},SU=function(r){},xU={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};wU=qr,CU=[];kU={},AU=!1,PU={};LU=qr,RU=qr,Uv=function(){return{}},NU=Uv,MU=Uv,BU=qr,$U=qr,FU=qr,UU={};HU={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},VU=qr,jU=qr;WU=qr,GU=qr,QU=qr,KU=qr,XU=qr,YU=void 0,JU=void 0,ZU=void 0,e7=qr,t7=2,r7=1,i7="/bin/usr/node",n7=9229,s7="node",a7=[],o7=qr,Vs={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Vs.now===void 0&&(Mv=Date.now(),Vs.timing&&Vs.timing.navigationStart&&(Mv=Vs.timing.navigationStart),Vs.now=()=>Date.now()-Mv);Bv=1e9;$v.bigint=function(r){var e=$v(r);return typeof BigInt>"u"?e[0]*Bv+e[1]:BigInt(e[0]*Bv)+BigInt(e[1])};u7=10,c7={},d7=0;h7=js,f7=js,p7=js,m7=js,g7=js,v7=qr,y7=js,b7=js;qv={version:gU,versions:vU,arch:dU,platform:hU,release:xU,_rawDebug:wU,moduleLoadList:CU,binding:bU,_linkedBinding:EU,_events:c7,_eventsCount:d7,_maxListeners:u7,on:js,addListener:h7,once:f7,off:p7,removeListener:m7,removeAllListeners:g7,emit:v7,prependListener:y7,prependOnceListener:b7,listeners:_7,domain:kU,_exiting:AU,config:PU,dlopen:DU,uptime:l7,_getActiveRequests:IU,_getActiveHandles:OU,reallyExit:LU,_kill:RU,cpuUsage:Uv,resourceUsage:NU,memoryUsage:MU,kill:BU,exit:$U,openStdin:FU,allowedNodeEnvironmentFlags:UU,assert:qU,features:HU,_fatalExceptions:VU,setUncaughtExceptionCaptureCallback:jU,hasUncaughtExceptionCaptureCallback:zU,emitWarning:yU,nextTick:uU,_tickCallback:WU,_debugProcess:GU,_debugEnd:QU,_startProfilerIdleNotifier:KU,_stopProfilerIdleNotifier:XU,stdout:YU,stdin:ZU,stderr:JU,abort:e7,umask:_U,chdir:SU,cwd:TU,env:fU,title:cU,argv:pU,execArgv:mU,pid:t7,ppid:r7,execPath:i7,debugPort:n7,hrtime:$v,argv0:s7,_preload_modules:a7,setSourceMapsEnabled:o7}});function T7(){if(_k)return Hv;_k=!0;var r=qv;function e(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function t(a,o){for(var l="",u=0,c=-1,h=0,f,v=0;v<=a.length;++v){if(v<a.length)f=a.charCodeAt(v);else{if(f===47)break;f=47}if(f===47){if(!(c===v-1||h===1))if(c!==v-1&&h===2){if(l.length<2||u!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var p=l.lastIndexOf("/");if(p!==l.length-1){p===-1?(l="",u=0):(l=l.slice(0,p),u=l.length-1-l.lastIndexOf("/")),c=v,h=0;continue}}else if(l.length===2||l.length===1){l="",u=0,c=v,h=0;continue}}o&&(l.length>0?l+="/..":l="..",u=2)}else l.length>0?l+="/"+a.slice(c+1,v):l=a.slice(c+1,v),u=v-c-1;c=v,h=0}else f===46&&h!==-1?++h:h=-1}return l}function n(a,o){var l=o.dir||o.root,u=o.base||(o.name||"")+(o.ext||"");return l?l===o.root?l+u:l+a+u:u}var s={resolve:function(){for(var o="",l=!1,u,c=arguments.length-1;c>=-1&&!l;c--){var h;c>=0?h=arguments[c]:(u===void 0&&(u=r.cwd()),h=u),e(h),h.length!==0&&(o=h+"/"+o,l=h.charCodeAt(0)===47)}return o=t(o,!l),l?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(e(o),o.length===0)return".";var l=o.charCodeAt(0)===47,u=o.charCodeAt(o.length-1)===47;return o=t(o,!l),o.length===0&&!l&&(o="."),o.length>0&&u&&(o+="/"),l?"/"+o:o},isAbsolute:function(o){return e(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,l=0;l<arguments.length;++l){var u=arguments[l];e(u),u.length>0&&(o===void 0?o=u:o+="/"+u)}return o===void 0?".":s.normalize(o)},relative:function(o,l){if(e(o),e(l),o===l||(o=s.resolve(o),l=s.resolve(l),o===l))return"";for(var u=1;u<o.length&&o.charCodeAt(u)===47;++u);for(var c=o.length,h=c-u,f=1;f<l.length&&l.charCodeAt(f)===47;++f);for(var v=l.length,p=v-f,T=h<p?h:p,g=-1,b=0;b<=T;++b){if(b===T){if(p>T){if(l.charCodeAt(f+b)===47)return l.slice(f+b+1);if(b===0)return l.slice(f+b)}else h>T&&(o.charCodeAt(u+b)===47?g=b:b===0&&(g=0));break}var S=o.charCodeAt(u+b),x=l.charCodeAt(f+b);if(S!==x)break;S===47&&(g=b)}var E="";for(b=u+g+1;b<=c;++b)(b===c||o.charCodeAt(b)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+l.slice(f+g):(f+=g,l.charCodeAt(f)===47&&++f,l.slice(f))},_makeLong:function(o){return o},dirname:function(o){if(e(o),o.length===0)return".";for(var l=o.charCodeAt(0),u=l===47,c=-1,h=!0,f=o.length-1;f>=1;--f)if(l=o.charCodeAt(f),l===47){if(!h){c=f;break}}else h=!1;return c===-1?u?"/":".":u&&c===1?"//":o.slice(0,c)},basename:function(o,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');e(o);var u=0,c=-1,h=!0,f;if(l!==void 0&&l.length>0&&l.length<=o.length){if(l.length===o.length&&l===o)return"";var v=l.length-1,p=-1;for(f=o.length-1;f>=0;--f){var T=o.charCodeAt(f);if(T===47){if(!h){u=f+1;break}}else p===-1&&(h=!1,p=f+1),v>=0&&(T===l.charCodeAt(v)?--v===-1&&(c=f):(v=-1,c=p))}return u===c?c=p:c===-1&&(c=o.length),o.slice(u,c)}else{for(f=o.length-1;f>=0;--f)if(o.charCodeAt(f)===47){if(!h){u=f+1;break}}else c===-1&&(h=!1,c=f+1);return c===-1?"":o.slice(u,c)}},extname:function(o){e(o);for(var l=-1,u=0,c=-1,h=!0,f=0,v=o.length-1;v>=0;--v){var p=o.charCodeAt(v);if(p===47){if(!h){u=v+1;break}continue}c===-1&&(h=!1,c=v+1),p===46?l===-1?l=v:f!==1&&(f=1):l!==-1&&(f=-1)}return l===-1||c===-1||f===0||f===1&&l===c-1&&l===u+1?"":o.slice(l,c)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return n("/",o)},parse:function(o){e(o);var l={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return l;var u=o.charCodeAt(0),c=u===47,h;c?(l.root="/",h=1):h=0;for(var f=-1,v=0,p=-1,T=!0,g=o.length-1,b=0;g>=h;--g){if(u=o.charCodeAt(g),u===47){if(!T){v=g+1;break}continue}p===-1&&(T=!1,p=g+1),u===46?f===-1?f=g:b!==1&&(b=1):f!==-1&&(b=-1)}return f===-1||p===-1||b===0||b===1&&f===p-1&&f===v+1?p!==-1&&(v===0&&c?l.base=l.name=o.slice(1,p):l.base=l.name=o.slice(v,p)):(v===0&&c?(l.name=o.slice(1,f),l.base=o.slice(1,p)):(l.name=o.slice(v,f),l.base=o.slice(v,p)),l.ext=o.slice(f,p)),v>0?l.dir=o.slice(0,v-1):c&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};return s.posix=s,Hv=s,Hv}var Hv,_k,fr,Vv=Ze(()=>{O();R();L();hf();Hv={},_k=!1;fr=T7()});var Ok={};Wl(Ok,{URL:()=>N7,Url:()=>D7,default:()=>ti,fileURLToPath:()=>Dk,format:()=>I7,parse:()=>R7,pathToFileURL:()=>Ik,resolve:()=>O7,resolveObject:()=>L7});function x7(){if(Tk)return jv;Tk=!0;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,s=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=s&&a&&typeof a.get=="function"?a.get:null,l=s&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,c=u?WeakMap.prototype.has:null,h=typeof WeakSet=="function"&&WeakSet.prototype,f=h?WeakSet.prototype.has:null,v=typeof WeakRef=="function"&&WeakRef.prototype,p=v?WeakRef.prototype.deref:null,T=Boolean.prototype.valueOf,g=Object.prototype.toString,b=Function.prototype.toString,S=String.prototype.match,x=String.prototype.slice,E=String.prototype.replace,k=String.prototype.toUpperCase,A=String.prototype.toLowerCase,N=RegExp.prototype.test,I=Array.prototype.concat,M=Array.prototype.join,F=Array.prototype.slice,ne=Math.floor,Q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,j=Object.getOwnPropertySymbols,H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,W=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ae=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===W||!0)?Symbol.toStringTag:null,se=Object.prototype.propertyIsEnumerable,ge=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ee){return ee.__proto__}:null);function ce(ee,oe){if(ee===1/0||ee===-1/0||ee!==ee||ee&&ee>-1e3&&ee<1e3||N.call(/e/,oe))return oe;var Me=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ee=="number"){var Ue=ee<0?-ne(-ee):ne(ee);if(Ue!==ee){var qe=String(Ue),it=x.call(oe,qe.length+1);return E.call(qe,Me,"$&_")+"."+E.call(E.call(it,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(oe,Me,"$&_")}var ue=S7,ye=ue.custom,Te=st(ye)?ye:null;jv=function ee(oe,Me,Ue,qe){var it=Me||{};if(pt(it,"quoteStyle")&&it.quoteStyle!=="single"&&it.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pt(it,"maxStringLength")&&(typeof it.maxStringLength=="number"?it.maxStringLength<0&&it.maxStringLength!==1/0:it.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var jr=pt(it,"customInspect")?it.customInspect:!0;if(typeof jr!="boolean"&&jr!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pt(it,"indent")&&it.indent!==null&&it.indent!=="	"&&!(parseInt(it.indent,10)===it.indent&&it.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pt(it,"numericSeparator")&&typeof it.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ai=it.numericSeparator;if(typeof oe>"u")return"undefined";if(oe===null)return"null";if(typeof oe=="boolean")return oe?"true":"false";if(typeof oe=="string")return Vt(oe,it);if(typeof oe=="number"){if(oe===0)return 1/0/oe>0?"0":"-0";var pr=String(oe);return Ai?ce(oe,pr):pr}if(typeof oe=="bigint"){var Pi=String(oe)+"n";return Ai?ce(oe,Pi):Pi}var ia=typeof it.depth>"u"?5:it.depth;if(typeof Ue>"u"&&(Ue=0),Ue>=ia&&ia>0&&typeof oe=="object")return Ce(oe)?"[Array]":"[Object]";var ln=te(it,Ue);if(typeof qe>"u")qe=[];else if(Jt(qe,oe)>=0)return"[Circular]";function zr(Ir,Er,kr){if(Er&&(qe=F.call(qe),qe.push(Er)),kr){var ii={depth:it.depth};return pt(it,"quoteStyle")&&(ii.quoteStyle=it.quoteStyle),ee(Ir,ii,Ue+1,qe)}return ee(Ir,it,Ue+1,qe)}if(typeof oe=="function"&&!Pe(oe)){var ps=Ht(oe),Di=fe(oe,zr);return"[Function"+(ps?": "+ps:" (anonymous)")+"]"+(Di.length>0?" { "+M.call(Di,", ")+" }":"")}if(st(oe)){var ao=W?E.call(String(oe),/^(Symbol\(.*\))_[^)]*$/,"$1"):H.call(oe);return typeof oe=="object"&&!W?B(ao):ao}if(Vr(oe)){for(var Ln="<"+A.call(String(oe.nodeName)),na=oe.attributes||[],we=0;we<na.length;we++)Ln+=" "+na[we].name+"="+Se(me(na[we].value),"double",it);return Ln+=">",oe.childNodes&&oe.childNodes.length&&(Ln+="..."),Ln+="</"+A.call(String(oe.nodeName))+">",Ln}if(Ce(oe)){if(oe.length===0)return"[]";var ji=fe(oe,zr);return ln&&!V(ji)?"["+he(ji,ln)+"]":"[ "+M.call(ji,", ")+" ]"}if(We(oe)){var Ii=fe(oe,zr);return!("cause"in Error.prototype)&&"cause"in oe&&!se.call(oe,"cause")?"{ ["+String(oe)+"] "+M.call(I.call("[cause]: "+zr(oe.cause),Ii),", ")+" }":Ii.length===0?"["+String(oe)+"]":"{ ["+String(oe)+"] "+M.call(Ii,", ")+" }"}if(typeof oe=="object"&&jr){if(Te&&typeof oe[Te]=="function"&&ue)return ue(oe,{depth:ia-Ue});if(jr!=="symbol"&&typeof oe.inspect=="function")return oe.inspect()}if(yt(oe)){var zi=[];return n&&n.call(oe,function(Ir,Er){zi.push(zr(Er,oe,!0)+" => "+zr(Ir,oe))}),D("Map",t.call(oe),zi,ln)}if(St(oe)){var er=[];return l&&l.call(oe,function(Ir){er.push(zr(Ir,oe))}),D("Set",o.call(oe),er,ln)}if(Zt(oe))return C("WeakMap");if(xt(oe))return C("WeakSet");if(Ge(oe))return C("WeakRef");if(Ye(oe))return B(zr(Number(oe)));if(Be(oe))return B(zr(Q.call(oe)));if(Je(oe))return B(T.call(oe));if(et(oe))return B(zr(String(oe)));if(typeof window<"u"&&oe===window)return"{ [object Window] }";if(typeof globalThis<"u"&&oe===globalThis||typeof zv<"u"&&oe===zv)return"{ [object globalThis] }";if(!Ie(oe)&&!Pe(oe)){var Oi=fe(oe,zr),Rn=ge?ge(oe)===Object.prototype:oe instanceof Object||oe.constructor===Object,At=oe instanceof Object?"":"null prototype",bt=!Rn&&ae&&Object(oe)===oe&&ae in oe?x.call(mt(oe),8,-1):At?"Object":"",Qt=Rn||typeof oe.constructor!="function"?"":oe.constructor.name?oe.constructor.name+" ":"",He=Qt+(bt||At?"["+M.call(I.call([],bt||[],At||[]),": ")+"] ":"");return Oi.length===0?He+"{}":ln?He+"{"+he(Oi,ln)+"}":He+"{ "+M.call(Oi,", ")+" }"}return String(oe)};function Se(ee,oe,Me){var Ue=(Me.quoteStyle||oe)==="double"?'"':"'";return Ue+ee+Ue}function me(ee){return E.call(String(ee),/"/g,"&quot;")}function Ce(ee){return mt(ee)==="[object Array]"&&(!ae||!(typeof ee=="object"&&ae in ee))}function Ie(ee){return mt(ee)==="[object Date]"&&(!ae||!(typeof ee=="object"&&ae in ee))}function Pe(ee){return mt(ee)==="[object RegExp]"&&(!ae||!(typeof ee=="object"&&ae in ee))}function We(ee){return mt(ee)==="[object Error]"&&(!ae||!(typeof ee=="object"&&ae in ee))}function et(ee){return mt(ee)==="[object String]"&&(!ae||!(typeof ee=="object"&&ae in ee))}function Ye(ee){return mt(ee)==="[object Number]"&&(!ae||!(typeof ee=="object"&&ae in ee))}function Je(ee){return mt(ee)==="[object Boolean]"&&(!ae||!(typeof ee=="object"&&ae in ee))}function st(ee){if(W)return ee&&typeof ee=="object"&&ee instanceof Symbol;if(typeof ee=="symbol")return!0;if(!ee||typeof ee!="object"||!H)return!1;try{return H.call(ee),!0}catch{}return!1}function Be(ee){if(!ee||typeof ee!="object"||!Q)return!1;try{return Q.call(ee),!0}catch{}return!1}var je=Object.prototype.hasOwnProperty||function(ee){return ee in(this||zv)};function pt(ee,oe){return je.call(ee,oe)}function mt(ee){return g.call(ee)}function Ht(ee){if(ee.name)return ee.name;var oe=S.call(b.call(ee),/^function\s*([\w$]+)/);return oe?oe[1]:null}function Jt(ee,oe){if(ee.indexOf)return ee.indexOf(oe);for(var Me=0,Ue=ee.length;Me<Ue;Me++)if(ee[Me]===oe)return Me;return-1}function yt(ee){if(!t||!ee||typeof ee!="object")return!1;try{t.call(ee);try{o.call(ee)}catch{return!0}return ee instanceof Map}catch{}return!1}function Zt(ee){if(!c||!ee||typeof ee!="object")return!1;try{c.call(ee,c);try{f.call(ee,f)}catch{return!0}return ee instanceof WeakMap}catch{}return!1}function Ge(ee){if(!p||!ee||typeof ee!="object")return!1;try{return p.call(ee),!0}catch{}return!1}function St(ee){if(!o||!ee||typeof ee!="object")return!1;try{o.call(ee);try{t.call(ee)}catch{return!0}return ee instanceof Set}catch{}return!1}function xt(ee){if(!f||!ee||typeof ee!="object")return!1;try{f.call(ee,f);try{c.call(ee,c)}catch{return!0}return ee instanceof WeakSet}catch{}return!1}function Vr(ee){return!ee||typeof ee!="object"?!1:typeof HTMLElement<"u"&&ee instanceof HTMLElement?!0:typeof ee.nodeName=="string"&&typeof ee.getAttribute=="function"}function Vt(ee,oe){if(ee.length>oe.maxStringLength){var Me=ee.length-oe.maxStringLength,Ue="... "+Me+" more character"+(Me>1?"s":"");return Vt(x.call(ee,0,oe.maxStringLength),oe)+Ue}var qe=E.call(E.call(ee,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,mi);return Se(qe,"single",oe)}function mi(ee){var oe=ee.charCodeAt(0),Me={8:"b",9:"t",10:"n",12:"f",13:"r"}[oe];return Me?"\\"+Me:"\\x"+(oe<16?"0":"")+k.call(oe.toString(16))}function B(ee){return"Object("+ee+")"}function C(ee){return ee+" { ? }"}function D(ee,oe,Me,Ue){var qe=Ue?he(Me,Ue):M.call(Me,", ");return ee+" ("+oe+") {"+qe+"}"}function V(ee){for(var oe=0;oe<ee.length;oe++)if(Jt(ee[oe],`
215`)>=0)return!1;return!0}function te(ee,oe){var Me;if(ee.indent==="	")Me="	";else if(typeof ee.indent=="number"&&ee.indent>0)Me=M.call(Array(ee.indent+1)," ");else return null;return{base:Me,prev:M.call(Array(oe+1),Me)}}function he(ee,oe){if(ee.length===0)return"";var Me=`
216`+oe.prev+oe.base;return Me+M.call(ee,","+Me)+`
217`+oe.prev}function fe(ee,oe){var Me=Ce(ee),Ue=[];if(Me){Ue.length=ee.length;for(var qe=0;qe<ee.length;qe++)Ue[qe]=pt(ee,qe)?oe(ee[qe],ee):""}var it=typeof j=="function"?j(ee):[],jr;if(W){jr={};for(var Ai=0;Ai<it.length;Ai++)jr["$"+it[Ai]]=it[Ai]}for(var pr in ee)pt(ee,pr)&&(Me&&String(Number(pr))===pr&&pr<ee.length||W&&jr["$"+pr]instanceof Symbol||(N.call(/[^\w$]/,pr)?Ue.push(oe(pr,ee)+": "+oe(ee[pr],ee)):Ue.push(pr+": "+oe(ee[pr],ee))));if(typeof j=="function")for(var Pi=0;Pi<it.length;Pi++)se.call(ee,it[Pi])&&Ue.push("["+oe(it[Pi])+"]: "+oe(ee[it[Pi]],ee));return Ue}return jv}function w7(){if(Sk)return Wv;Sk=!0;var r=Ha(),e=gk(),t=x7(),n=vl(),s=r("%WeakMap%",!0),a=r("%Map%",!0),o=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),c=e("Map.prototype.get",!0),h=e("Map.prototype.set",!0),f=e("Map.prototype.has",!0),v=function(b,S){for(var x=b,E;(E=x.next)!==null;x=E)if(E.key===S)return x.next=E.next,E.next=b.next,b.next=E,E},p=function(b,S){var x=v(b,S);return x&&x.value},T=function(b,S,x){var E=v(b,S);E?E.value=x:b.next={key:S,next:b.next,value:x}},g=function(b,S){return!!v(b,S)};return Wv=function(){var S,x,E,k={assert:function(A){if(!k.has(A))throw new n("Side channel does not contain "+t(A))},get:function(A){if(s&&A&&(typeof A=="object"||typeof A=="function")){if(S)return o(S,A)}else if(a){if(x)return c(x,A)}else if(E)return p(E,A)},has:function(A){if(s&&A&&(typeof A=="object"||typeof A=="function")){if(S)return u(S,A)}else if(a){if(x)return f(x,A)}else if(E)return g(E,A);return!1},set:function(A,N){s&&A&&(typeof A=="object"||typeof A=="function")?(S||(S=new s),l(S,A,N)):a?(x||(x=new a),h(x,A,N)):(E||(E={key:{},next:null}),T(E,A,N))}};return k},Wv}function Zv(){if(xk)return Gv;xk=!0;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Gv={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},Gv}function Pk(){if(wk)return Qv;wk=!0;var r=Zv(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var b=[],S=0;S<256;++S)b.push("%"+((S<16?"0":"")+S.toString(16)).toUpperCase());return b}(),s=function(S){for(;S.length>1;){var x=S.pop(),E=x.obj[x.prop];if(t(E)){for(var k=[],A=0;A<E.length;++A)typeof E[A]<"u"&&k.push(E[A]);x.obj[x.prop]=k}}},a=function(S,x){for(var E=x&&x.plainObjects?Object.create(null):{},k=0;k<S.length;++k)typeof S[k]<"u"&&(E[k]=S[k]);return E},o=function b(S,x,E){if(!x)return S;if(typeof x!="object"){if(t(S))S.push(x);else if(S&&typeof S=="object")(E&&(E.plainObjects||E.allowPrototypes)||!e.call(Object.prototype,x))&&(S[x]=!0);else return[S,x];return S}if(!S||typeof S!="object")return[S].concat(x);var k=S;return t(S)&&!t(x)&&(k=a(S,E)),t(S)&&t(x)?(x.forEach(function(A,N){if(e.call(S,N)){var I=S[N];I&&typeof I=="object"&&A&&typeof A=="object"?S[N]=b(I,A,E):S.push(A)}else S[N]=A}),S):Object.keys(x).reduce(function(A,N){var I=x[N];return e.call(A,N)?A[N]=b(A[N],I,E):A[N]=I,A},k)},l=function(S,x){return Object.keys(x).reduce(function(E,k){return E[k]=x[k],E},S)},u=function(b,S,x){var E=b.replace(/\+/g," ");if(x==="iso-8859-1")return E.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(E)}catch{return E}},c=1024,h=function(S,x,E,k,A){if(S.length===0)return S;var N=S;if(typeof S=="symbol"?N=Symbol.prototype.toString.call(S):typeof S!="string"&&(N=String(S)),E==="iso-8859-1")return escape(N).replace(/%u[0-9a-f]{4}/gi,function(H){return"%26%23"+parseInt(H.slice(2),16)+"%3B"});for(var I="",M=0;M<N.length;M+=c){for(var F=N.length>=c?N.slice(M,M+c):N,ne=[],Q=0;Q<F.length;++Q){var j=F.charCodeAt(Q);if(j===45||j===46||j===95||j===126||j>=48&&j<=57||j>=65&&j<=90||j>=97&&j<=122||A===r.RFC1738&&(j===40||j===41)){ne[ne.length]=F.charAt(Q);continue}if(j<128){ne[ne.length]=n[j];continue}if(j<2048){ne[ne.length]=n[192|j>>6]+n[128|j&63];continue}if(j<55296||j>=57344){ne[ne.length]=n[224|j>>12]+n[128|j>>6&63]+n[128|j&63];continue}Q+=1,j=65536+((j&1023)<<10|F.charCodeAt(Q)&1023),ne[ne.length]=n[240|j>>18]+n[128|j>>12&63]+n[128|j>>6&63]+n[128|j&63]}I+=ne.join("")}return I},f=function(S){for(var x=[{obj:{o:S},prop:"o"}],E=[],k=0;k<x.length;++k)for(var A=x[k],N=A.obj[A.prop],I=Object.keys(N),M=0;M<I.length;++M){var F=I[M],ne=N[F];typeof ne=="object"&&ne!==null&&E.indexOf(ne)===-1&&(x.push({obj:N,prop:F}),E.push(ne))}return s(x),S},v=function(S){return Object.prototype.toString.call(S)==="[object RegExp]"},p=function(S){return!S||typeof S!="object"?!1:!!(S.constructor&&S.constructor.isBuffer&&S.constructor.isBuffer(S))},T=function(S,x){return[].concat(S,x)},g=function(S,x){if(t(S)){for(var E=[],k=0;k<S.length;k+=1)E.push(x(S[k]));return E}return x(S)};return Qv={arrayToObject:a,assign:l,combine:T,compact:f,decode:u,encode:h,isBuffer:p,isRegExp:v,maybeMap:g,merge:o},Qv}function C7(){if(Ck)return Kv;Ck=!0;var r=w7(),e=Pk(),t=Zv(),n=Object.prototype.hasOwnProperty,s={brackets:function(b){return b+"[]"},comma:"comma",indices:function(b,S){return b+"["+S+"]"},repeat:function(b){return b}},a=Array.isArray,o=Array.prototype.push,l=function(g,b){o.apply(g,a(b)?b:[b])},u=Date.prototype.toISOString,c=t.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,format:c,formatter:t.formatters[c],indices:!1,serializeDate:function(b){return u.call(b)},skipNulls:!1,strictNullHandling:!1},f=function(b){return typeof b=="string"||typeof b=="number"||typeof b=="boolean"||typeof b=="symbol"||typeof b=="bigint"},v={},p=function g(b,S,x,E,k,A,N,I,M,F,ne,Q,j,H,W,ae,se,ge){for(var ce=b,ue=ge,ye=0,Te=!1;(ue=ue.get(v))!==void 0&&!Te;){var Se=ue.get(b);if(ye+=1,typeof Se<"u"){if(Se===ye)throw new RangeError("Cyclic object value");Te=!0}typeof ue.get(v)>"u"&&(ye=0)}if(typeof F=="function"?ce=F(S,ce):ce instanceof Date?ce=j(ce):x==="comma"&&a(ce)&&(ce=e.maybeMap(ce,function(mt){return mt instanceof Date?j(mt):mt})),ce===null){if(A)return M&&!ae?M(S,h.encoder,se,"key",H):S;ce=""}if(f(ce)||e.isBuffer(ce)){if(M){var me=ae?S:M(S,h.encoder,se,"key",H);return[W(me)+"="+W(M(ce,h.encoder,se,"value",H))]}return[W(S)+"="+W(String(ce))]}var Ce=[];if(typeof ce>"u")return Ce;var Ie;if(x==="comma"&&a(ce))ae&&M&&(ce=e.maybeMap(ce,M)),Ie=[{value:ce.length>0?ce.join(",")||null:void 0}];else if(a(F))Ie=F;else{var Pe=Object.keys(ce);Ie=ne?Pe.sort(ne):Pe}var We=I?S.replace(/\./g,"%2E"):S,et=E&&a(ce)&&ce.length===1?We+"[]":We;if(k&&a(ce)&&ce.length===0)return et+"[]";for(var Ye=0;Ye<Ie.length;++Ye){var Je=Ie[Ye],st=typeof Je=="object"&&typeof Je.value<"u"?Je.value:ce[Je];if(!(N&&st===null)){var Be=Q&&I?Je.replace(/\./g,"%2E"):Je,je=a(ce)?typeof x=="function"?x(et,Be):et:et+(Q?"."+Be:"["+Be+"]");ge.set(b,ye);var pt=r();pt.set(v,ge),l(Ce,g(st,je,x,E,k,A,N,I,x==="comma"&&ae&&a(ce)?null:M,F,ne,Q,j,H,W,ae,se,pt))}}return Ce},T=function(b){if(!b)return h;if(typeof b.allowEmptyArrays<"u"&&typeof b.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
vendor: 1,194 bytes, line 217
217if(typeof b.encodeDotInKeys<"u"&&typeof b.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(b.encoder!==null&&typeof b.encoder<"u"&&typeof b.encoder!="function")throw new TypeError("Encoder has to be a function.");var S=b.charset||h.charset;if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var x=t.default;if(typeof b.format<"u"){if(!n.call(t.formatters,b.format))throw new TypeError("Unknown format option provided.");x=b.format}var E=t.formatters[x],k=h.filter;(typeof b.filter=="function"||a(b.filter))&&(k=b.filter);var A;if(b.arrayFormat in s?A=b.arrayFormat:"indices"in b?A=b.indices?"indices":"repeat":A=h.arrayFormat,"commaRoundTrip"in b&&typeof b.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var N=typeof b.allowDots>"u"?b.encodeDotInKeys===!0?!0:h.allowDots:!!b.allowDots;return{addQueryPrefix:typeof b.addQueryPrefix=="boolean"?b.addQueryPrefix:h.addQueryPrefix,allowDots:N,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:
vendor: 17,166 bytes, lines 217-219
217h.allowEmptyArrays,arrayFormat:A,charset:S,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:h.charsetSentinel,commaRoundTrip:b.commaRoundTrip,delimiter:typeof b.delimiter>"u"?h.delimiter:b.delimiter,encode:typeof b.encode=="boolean"?b.encode:h.encode,encodeDotInKeys:typeof b.encodeDotInKeys=="boolean"?b.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof b.encoder=="function"?b.encoder:h.encoder,encodeValuesOnly:typeof b.encodeValuesOnly=="boolean"?b.encodeValuesOnly:h.encodeValuesOnly,filter:k,format:x,formatter:E,serializeDate:typeof b.serializeDate=="function"?b.serializeDate:h.serializeDate,skipNulls:typeof b.skipNulls=="boolean"?b.skipNulls:h.skipNulls,sort:typeof b.sort=="function"?b.sort:null,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:h.strictNullHandling}};return Kv=function(g,b){var S=g,x=T(b),E,k;typeof x.filter=="function"?(k=x.filter,S=k("",S)):a(x.filter)&&(k=x.filter,E=k);var A=[];if(typeof S!="object"||S===null)return"";var N=s[x.arrayFormat],I=N==="comma"&&x.commaRoundTrip;E||(E=Object.keys(S)),x.sort&&E.sort(x.sort);for(var M=r(),F=0;F<E.length;++F){var ne=E[F];x.skipNulls&&S[ne]===null||l(A,p(S[ne],ne,N,I,x.allowEmptyArrays,x.strictNullHandling,x.skipNulls,x.encodeDotInKeys,x.encode?x.encoder:null,x.filter,x.sort,x.allowDots,x.serializeDate,x.format,x.formatter,x.encodeValuesOnly,x.charset,M))}var Q=A.join(x.delimiter),j=x.addQueryPrefix===!0?"?":"";return x.charsetSentinel&&(x.charset==="iso-8859-1"?j+="utf8=%26%2310003%3B&":j+="utf8=%E2%9C%93&"),Q.length>0?j+Q:""},Kv}function E7(){if(Ek)return Xv;Ek=!0;var r=Pk(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(v){return v.replace(/&#(\d+);/g,function(p,T){return String.fromCharCode(parseInt(T,10))})},a=function(v,p){return v&&typeof v=="string"&&p.comma&&v.indexOf(",")>-1?v.split(","):v},o="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(p,T){var g={__proto__:null},b=T.ignoreQueryPrefix?p.replace(/^\?/,""):p;b=b.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var S=T.parameterLimit===1/0?void 0:T.parameterLimit,x=b.split(T.delimiter,S),E=-1,k,A=T.charset;if(T.charsetSentinel)for(k=0;k<x.length;++k)x[k].indexOf("utf8=")===0&&(x[k]===l?A="utf-8":x[k]===o&&(A="iso-8859-1"),E=k,k=x.length);for(k=0;k<x.length;++k)if(k!==E){var N=x[k],I=N.indexOf("]="),M=I===-1?N.indexOf("="):I+1,F,ne;M===-1?(F=T.decoder(N,n.decoder,A,"key"),ne=T.strictNullHandling?null:""):(F=T.decoder(N.slice(0,M),n.decoder,A,"key"),ne=r.maybeMap(a(N.slice(M+1),T),function(j){return T.decoder(j,n.decoder,A,"value")})),ne&&T.interpretNumericEntities&&A==="iso-8859-1"&&(ne=s(ne)),N.indexOf("[]=")>-1&&(ne=t(ne)?[ne]:ne);var Q=e.call(g,F);Q&&T.duplicates==="combine"?g[F]=r.combine(g[F],ne):(!Q||T.duplicates==="last")&&(g[F]=ne)}return g},c=function(v,p,T,g){for(var b=g?p:a(p,T),S=v.length-1;S>=0;--S){var x,E=v[S];if(E==="[]"&&T.parseArrays)x=T.allowEmptyArrays&&(b===""||T.strictNullHandling&&b===null)?[]:[].concat(b);else{x=T.plainObjects?Object.create(null):{};var k=E.charAt(0)==="["&&E.charAt(E.length-1)==="]"?E.slice(1,-1):E,A=T.decodeDotInKeys?k.replace(/%2E/g,"."):k,N=parseInt(A,10);!T.parseArrays&&A===""?x={0:b}:!isNaN(N)&&E!==A&&String(N)===A&&N>=0&&T.parseArrays&&N<=T.arrayLimit?(x=[],x[N]=b):A!=="__proto__"&&(x[A]=b)}b=x}return b},h=function(p,T,g,b){if(p){var S=g.allowDots?p.replace(/\.([^.[]+)/g,"[$1]"):p,x=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,k=g.depth>0&&x.exec(S),A=k?S.slice(0,k.index):S,N=[];if(A){if(!g.plainObjects&&e.call(Object.prototype,A)&&!g.allowPrototypes)return;N.push(A)}for(var I=0;g.depth>0&&(k=E.exec(S))!==null&&I<g.depth;){if(I+=1,!g.plainObjects&&e.call(Object.prototype,k[1].slice(1,-1))&&!g.allowPrototypes)return;N.push(k[1])}if(k){if(g.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+g.depth+" and strictDepth is true");N.push("["+S.slice(k.index)+"]")}return c(N,T,g,b)}},f=function(p){if(!p)return n;if(typeof p.allowEmptyArrays<"u"&&typeof p.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof p.decodeDotInKeys<"u"&&typeof p.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(p.decoder!==null&&typeof p.decoder<"u"&&typeof p.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof p.charset<"u"&&p.charset!=="utf-8"&&p.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var T=typeof p.charset>"u"?n.charset:p.charset,g=typeof p.duplicates>"u"?n.duplicates:p.duplicates;if(g!=="combine"&&g!=="first"&&g!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var b=typeof p.allowDots>"u"?p.decodeDotInKeys===!0?!0:n.allowDots:!!p.allowDots;return{allowDots:b,allowEmptyArrays:typeof p.allowEmptyArrays=="boolean"?!!p.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof p.allowPrototypes=="boolean"?p.allowPrototypes:n.allowPrototypes,allowSparse:typeof p.allowSparse=="boolean"?p.allowSparse:n.allowSparse,arrayLimit:typeof p.arrayLimit=="number"?p.arrayLimit:n.arrayLimit,charset:T,charsetSentinel:typeof p.charsetSentinel=="boolean"?p.charsetSentinel:n.charsetSentinel,comma:typeof p.comma=="boolean"?p.comma:n.comma,decodeDotInKeys:typeof p.decodeDotInKeys=="boolean"?p.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof p.decoder=="function"?p.decoder:n.decoder,delimiter:typeof p.delimiter=="string"||r.isRegExp(p.delimiter)?p.delimiter:n.delimiter,depth:typeof p.depth=="number"||p.depth===!1?+p.depth:n.depth,duplicates:g,ignoreQueryPrefix:p.ignoreQueryPrefix===!0,interpretNumericEntities:typeof p.interpretNumericEntities=="boolean"?p.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof p.parameterLimit=="number"?p.parameterLimit:n.parameterLimit,parseArrays:p.parseArrays!==!1,plainObjects:typeof p.plainObjects=="boolean"?p.plainObjects:n.plainObjects,strictDepth:typeof p.strictDepth=="boolean"?!!p.strictDepth:n.strictDepth,strictNullHandling:typeof p.strictNullHandling=="boolean"?p.strictNullHandling:n.strictNullHandling}};return Xv=function(v,p){var T=f(p);if(v===""||v===null||typeof v>"u")return T.plainObjects?Object.create(null):{};for(var g=typeof v=="string"?u(v,T):v,b=T.plainObjects?Object.create(null):{},S=Object.keys(g),x=0;x<S.length;++x){var E=S[x],k=h(E,g[E],T,typeof v=="string");b=r.merge(b,k,T)}return T.allowSparse===!0?b:r.compact(b)},Xv}function k7(){if(kk)return Yv;kk=!0;var r=C7(),e=E7(),t=Zv();return Yv={formats:t,parse:e,stringify:r},Yv}function A7(){if(Ak)return ja;Ak=!0;var r=Hs;function e(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var t=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,a=["<",">",'"',"`"," ","\r",`
218`,"	"],o=["{","}","|","\\","^","`"].concat(a),l=["'"].concat(o),u=["%","/","?",";","#"].concat(l),c=["/","?","#"],h=255,f=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},T={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=k7();function S(A,N,I){if(A&&typeof A=="object"&&A instanceof e)return A;var M=new e;return M.parse(A,N,I),M}e.prototype.parse=function(A,N,I){if(typeof A!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof A);var M=A.indexOf("?"),F=M!==-1&&M<A.indexOf("#")?"?":"#",ne=A.split(F),Q=/\\/g;ne[0]=ne[0].replace(Q,"/"),A=ne.join(F);var j=A;if(j=j.trim(),!I&&A.split("#").length===1){var H=s.exec(j);if(H)return this.path=j,this.href=j,this.pathname=H[1],H[2]?(this.search=H[2],N?this.query=b.parse(this.search.substr(1)):this.query=this.search.substr(1)):N&&(this.search="",this.query={}),this}var W=t.exec(j);if(W){W=W[0];var ae=W.toLowerCase();this.protocol=ae,j=j.substr(W.length)}if(I||W||j.match(/^\/\/[^@/]+@[^@/]+/)){var se=j.substr(0,2)==="//";se&&!(W&&T[W])&&(j=j.substr(2),this.slashes=!0)}if(!T[W]&&(se||W&&!g[W])){for(var ge=-1,ce=0;ce<c.length;ce++){var ue=j.indexOf(c[ce]);ue!==-1&&(ge===-1||ue<ge)&&(ge=ue)}var ye,Te;ge===-1?Te=j.lastIndexOf("@"):Te=j.lastIndexOf("@",ge),Te!==-1&&(ye=j.slice(0,Te),j=j.slice(Te+1),this.auth=decodeURIComponent(ye)),ge=-1;for(var ce=0;ce<u.length;ce++){var ue=j.indexOf(u[ce]);ue!==-1&&(ge===-1||ue<ge)&&(ge=ue)}ge===-1&&(ge=j.length),this.host=j.slice(0,ge),j=j.slice(ge),this.parseHost(),this.hostname=this.hostname||"";var Se=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Se)for(var me=this.hostname.split(/\./),ce=0,Ce=me.length;ce<Ce;ce++){var Ie=me[ce];if(Ie&&!Ie.match(f)){for(var Pe="",We=0,et=Ie.length;We<et;We++)Ie.charCodeAt(We)>127?Pe+="x":Pe+=Ie[We];if(!Pe.match(f)){var Ye=me.slice(0,ce),Je=me.slice(ce+1),st=Ie.match(v);st&&(Ye.push(st[1]),Je.unshift(st[2])),Je.length&&(j="/"+Je.join(".")+j),this.hostname=Ye.join(".");break}}}this.hostname.length>h?this.hostname="":this.hostname=this.hostname.toLowerCase(),Se||(this.hostname=r.toASCII(this.hostname));var Be=this.port?":"+this.port:"",je=this.hostname||"";this.host=je+Be,this.href+=this.host,Se&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),j[0]!=="/"&&(j="/"+j))}if(!p[ae])for(var ce=0,Ce=l.length;ce<Ce;ce++){var pt=l[ce];if(j.indexOf(pt)!==-1){var mt=encodeURIComponent(pt);mt===pt&&(mt=escape(pt)),j=j.split(pt).join(mt)}}var Ht=j.indexOf("#");Ht!==-1&&(this.hash=j.substr(Ht),j=j.slice(0,Ht));var Jt=j.indexOf("?");if(Jt!==-1?(this.search=j.substr(Jt),this.query=j.substr(Jt+1),N&&(this.query=b.parse(this.query)),j=j.slice(0,Jt)):N&&(this.search="",this.query={}),j&&(this.pathname=j),g[ae]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Be=this.pathname||"",yt=this.search||"";this.path=Be+yt}return this.href=this.format(),this};function x(A){return typeof A=="string"&&(A=S(A)),A instanceof e?A.format():e.prototype.format.call(A)}e.prototype.format=function(){var A=this.auth||"";A&&(A=encodeURIComponent(A),A=A.replace(/%3A/i,":"),A+="@");var N=this.protocol||"",I=this.pathname||"",M=this.hash||"",F=!1,ne="";this.host?F=A+this.host:this.hostname&&(F=A+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(F+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(ne=b.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Q=this.search||ne&&"?"+ne||"";return N&&N.substr(-1)!==":"&&(N+=":"),this.slashes||(!N||g[N])&&F!==!1?(F="//"+(F||""),I&&I.charAt(0)!=="/"&&(I="/"+I)):F||(F=""),M&&M.charAt(0)!=="#"&&(M="#"+M),Q&&Q.charAt(0)!=="?"&&(Q="?"+Q),I=I.replace(/[?#]/g,function(j){return encodeURIComponent(j)}),Q=Q.replace("#","%23"),N+F+I+Q+M};function E(A,N){return S(A,!1,!0).resolve(N)}e.prototype.resolve=function(A){return this.resolveObject(S(A,!1,!0)).format()};function k(A,N){return A?S(A,!1,!0).resolveObject(N):N}return e.prototype.resolveObject=function(A){if(typeof A=="string"){var N=new e;N.parse(A,!1,!0),A=N}for(var I=new e,M=Object.keys(this),F=0;F<M.length;F++){var ne=M[F];I[ne]=this[ne]}if(I.hash=A.hash,A.href==="")return I.href=I.format(),I;if(A.slashes&&!A.protocol){for(var Q=Object.keys(A),j=0;j<Q.length;j++){var H=Q[j];H!=="protocol"&&(I[H]=A[H])}return g[I.protocol]&&I.hostname&&!I.pathname&&(I.pathname="/",I.path=I.pathname),I.href=I.format(),I}if(A.protocol&&A.protocol!==I.protocol){if(!g[A.protocol]){for(var W=Object.keys(A),ae=0;ae<W.length;ae++){var se=W[ae];I[se]=A[se]}return I.href=I.format(),I}if(I.protocol=A.protocol,!A.host&&!T[A.protocol]){for(var Ce=(A.pathname||"").split("/");Ce.length&&!(A.host=Ce.shift()););A.host||(A.host=""),A.hostname||(A.hostname=""),Ce[0]!==""&&Ce.unshift(""),Ce.length<2&&Ce.unshift(""),I.pathname=Ce.join("/")}else I.pathname=A.pathname;if(I.search=A.search,I.query=A.query,I.host=A.host||"",I.auth=A.auth,I.hostname=A.hostname||A.host,I.port=A.port,I.pathname||I.search){var ge=I.pathname||"",ce=I.search||"";I.path=ge+ce}return I.slashes=I.slashes||A.slashes,I.href=I.format(),I}var ue=I.pathname&&I.pathname.charAt(0)==="/",ye=A.host||A.pathname&&A.pathname.charAt(0)==="/",Te=ye||ue||I.host&&A.pathname,Se=Te,me=I.pathname&&I.pathname.split("/")||[],Ce=A.pathname&&A.pathname.split("/")||[],Ie=I.protocol&&!g[I.protocol];if(Ie&&(I.hostname="",I.port=null,I.host&&(me[0]===""?me[0]=I.host:me.unshift(I.host)),I.host="",A.protocol&&(A.hostname=null,A.port=null,A.host&&(Ce[0]===""?Ce[0]=A.host:Ce.unshift(A.host)),A.host=null),Te=Te&&(Ce[0]===""||me[0]==="")),ye)I.host=A.host||A.host===""?A.host:I.host,I.hostname=A.hostname||A.hostname===""?A.hostname:I.hostname,I.search=A.search,I.query=A.query,me=Ce;else if(Ce.length)me||(me=[]),me.pop(),me=me.concat(Ce),I.search=A.search,I.query=A.query;else if(A.search!=null){if(Ie){I.host=me.shift(),I.hostname=I.host;var Pe=I.host&&I.host.indexOf("@")>0?I.host.split("@"):!1;Pe&&(I.auth=Pe.shift(),I.hostname=Pe.shift(),I.host=I.hostname)}return I.search=A.search,I.query=A.query,(I.pathname!==null||I.search!==null)&&(I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"")),I.href=I.format(),I}if(!me.length)return I.pathname=null,I.search?I.path="/"+I.search:I.path=null,I.href=I.format(),I;for(var We=me.slice(-1)[0],et=(I.host||A.host||me.length>1)&&(We==="."||We==="..")||We==="",Ye=0,Je=me.length;Je>=0;Je--)We=me[Je],We==="."?me.splice(Je,1):We===".."?(me.splice(Je,1),Ye++):Ye&&(me.splice(Je,1),Ye--);if(!Te&&!Se)for(;Ye--;Ye)me.unshift("..");Te&&me[0]!==""&&(!me[0]||me[0].charAt(0)!=="/")&&me.unshift(""),et&&me.join("/").substr(-1)!=="/"&&me.push("");var st=me[0]===""||me[0]&&me[0].charAt(0)==="/";if(Ie){I.hostname=st?"":me.length?me.shift():"",I.host=I.hostname;var Pe=I.host&&I.host.indexOf("@")>0?I.host.split("@"):!1;Pe&&(I.auth=Pe.shift(),I.hostname=Pe.shift(),I.host=I.hostname)}return Te=Te||I.host&&me.length,Te&&!st&&me.unshift(""),me.length>0?I.pathname=me.join("/"):(I.pathname=null,I.path=null),(I.pathname!==null||I.search!==null)&&(I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"")),I.auth=A.auth||I.auth,I.slashes=I.slashes||A.slashes,I.href=I.format(),I},e.prototype.parseHost=function(){var A=this.host,N=n.exec(A);N&&(N=N[0],N!==":"&&(this.port=N.substr(1)),A=A.substr(0,A.length-N.length)),A&&(this.hostname=A)},ja.parse=S,ja.resolve=E,ja.resolveObject=k,ja.format=x,ja.Url=e,ja}function Dk(r){if(typeof r=="string")r=new URL(r);else if(!(r instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(r.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return Jv?W7(r):G7(r)}function W7(r){let e=r.hostname,t=r.pathname;for(let n=0;n<t.length;n++)if(t[n]==="%"){let s=t.codePointAt(n+2)||32;if(t[n+1]==="2"&&s===102||t[n+1]==="5"&&s===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(t=t.replace(U7,"\\"),t=decodeURIComponent(t),e!=="")return`\\\\${e}${t}`;{let n=t.codePointAt(1)|32,s=t[2];if(n<$7||n>F7||s!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return t.slice(1)}}function G7(r){if(r.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let e=r.pathname;for(let t=0;t<e.length;t++)if(e[t]==="%"){let n=e.codePointAt(t+2)||32;if(e[t+1]==="2"&&n===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(e)}function Ik(r){let e=fr.resolve(r),t=r.charCodeAt(r.length-1);(t===B7||Jv&&t===M7)&&e[e.length-1]!==fr.sep&&(e+="/");let n=new URL("file://");return e.includes("%")&&(e=e.replace(q7,"%25")),!Jv&&e.includes("\\")&&(e=e.replace(H7,"%5C")),e.includes(`
219`)&&(e=e.replace(V7,"%0A")),e.includes("\r")&&(e=e.replace(j7,"%0D")),e.includes("	")&&(e=e.replace(z7,"%09")),n.pathname=e,n}var S7,jv,Tk,zv,Wv,Sk,Gv,xk,Qv,wk,Kv,Ck,Xv,Ek,Yv,kk,ja,Ak,ti,P7,D7,I7,O7,L7,R7,N7,M7,B7,$7,F7,Jv,U7,q7,H7,V7,j7,z7,Lk=Ze(()=>{O();R();L();WE();vk();Vv();hf();S7=Object.freeze(Object.create(null)),jv={},Tk=!1,zv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window;Wv={},Sk=!1;Gv={},xk=!1;Qv={},wk=!1;Kv={},Ck=!1;Xv={},Ek=!1;Yv={},kk=!1;ja={},Ak=!1;ti=A7();ti.parse;ti.resolve;ti.resolveObject;ti.format;ti.Url;P7=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;ti.URL=typeof URL<"u"?URL:null;ti.pathToFileURL=Ik;ti.fileURLToPath=Dk;D7=ti.Url,I7=ti.format,O7=ti.resolve,L7=ti.resolveObject,R7=ti.parse,N7=ti.URL,M7=92,B7=47,$7=97,F7=122,Jv=P7==="win32",U7=/\//g,q7=/%/g,H7=/\\/g,V7=/\n/g,j7=/\r/g,z7=/\t/g});var ff=pe((qre,Mk)=>{"use strict";O();R();L();var Rk=Array.isArray,Nk=Object.keys,Q7=Object.prototype.hasOwnProperty;Mk.exports=function r(e,t){if(e===t)return!0;var n=Rk(e),s=Rk(t),a,o,l;
219if(n&&s){if(o=e.length,o!=t.length)return!1;for(a=0;a<o;a++)if(!r(e[a],t[a]))return!1;return!0}if(n!=s)return!1;var u=e instanceof Date,c=t instanceof Date;if(u!=c)return!1;if(u&&c)return e.getTime()==t.getTime();var h=e instanceof RegExp,f=t instanceof RegExp;if(h!=f)return!1;if(h&&f)return e.toString()==t.toString();if(e instanceof Object&&t instanceof Object){var v=Nk(e);if(o=v.length,o!==Nk(t).length)return!1;for(a=0;a<o;a++)if(!Q7.call(t,v[a]))return!1;for(a=0;a<o;a++)if(l=v[a],!r(e[l],t[l]))return!1;return!0}return!1}});var $k=pe((zre,Bk)=>{"use strict";O();R();L();Bk.exports=function(e){for(var t=0,n=e.length,s=0,a;s<n;)t++,a=e.charCodeAt(s++),a>=55296&&a<=56319&&s<n&&(a=e.charCodeAt(s),(a&64512)==56320&&s++);return t}});var za=pe((Kre,qk)=>{"use strict";O();R();L();qk.exports={copy:K7,checkDataType:ey,checkDataTypes:X7,coerceToTypes:Y7,toHash:ry,getProperty:iy,escapeQuotes:ny,equal:ff(),ucs2length:$k(),varOccurences:e9,varReplace:t9,cleanUpCode:s9,finalCleanUpCode:m9,schemaHasRules:g9,schemaHasRulesExcept:v9,toQuotedString:ty,getPathExpr:y9,getPath:b9,getData:S9,unescapeFragment:x9,unescapeJsonPointer:ay,escapeFragment:w9,escapeJsonPointer:sy};function K7(r,e){e=e||{};for(var t in r)e[t]=r[t];return e}function ey(r,e,t){var n=t?" !== ":" === ",s=t?" || ":" && ",a=t?"!":"",o=t?"":"!";switch(r){case"null":return e+n+"null";case"array":return a+"Array.isArray("+e+")";case"object":return"("+a+e+s+"typeof "+e+n+'"object"'+s+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+n+'"number"'+s+o+"("+e+" % 1)"+s+e+n+e+")";default:return"typeof "+e+n+'"'+r+'"'}}function X7(r,e){switch(r.length){case 1:return ey(r[0],e,!0);default:var t="",n=ry(r);n.array&&n.object&&(t=n.null?"(":"(!"+e+" || ",t+="typeof "+e+' !== "object")',delete n.null,delete n.array,delete n.object),n.number&&delete n.integer;for(var s in n)t+=(t?" && ":"")+ey(s,e,!0);return t}}var Fk=ry(["string","number","integer","boolean","null"]);function Y7(r,e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++){var s=e[n];(Fk[s]||r==="array"&&s==="array")&&(t[t.length]=s)}if(t.length)return t}else{if(Fk[e])return[e];if(r==="array"&&e==="array")return["array"]}}function ry(r){for(var e={},t=0;t<r.length;t++)e[r[t]]=!0;return e}var J7=/^[a-z$_][a-z$_0-9]*$/i,Z7=/'|\\/g;function iy(r){return typeof r=="number"?"["+r+"]":J7.test(r)?"."+r:"['"+ny(r)+"']"}function ny(r){return r.replace(Z7,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function e9(r,e){e+="[^0-9]";var t=r.match(new RegExp(e,"g"));return t?t.length:0}function t9(r,e,t){return e+="([^0-9])",t=t.replace(/\$/g,"$$$$"),r.replace(new RegExp(e,"g"),t+"$1")}var r9=/else\s*{\s*}/g,i9=/if\s*\([^)]+\)\s*\{\s*\}(?!\s*else)/g,n9=/if\s*\(([^)]+)\)\s*\{\s*\}\s*else(?!\s*if)/g;function s9(r){return r.replace(r9,"").replace(i9,"").replace(n9,"if (!($1))")}var a9=/[^v.]errors/g,o9=/var errors = 0;|var vErrors = null;|validate.errors = vErrors;/g,l9=/var errors = 0;|var vErrors = null;/g,u9="return errors === 0;",c9="validate.errors = null; return true;",d9=/if \(errors === 0\) return data;\s*else throw new ValidationError\(vErrors\);/,h9="return data;",f9=/[^A-Za-z_$]rootData[^A-Za-z0-9_$]/g,p9=/if \(rootData === undefined\) rootData = data;/;function m9(r,e){var t=r.match(a9);return t&&t.length==2&&(r=e?r.replace(l9,"").replace(d9,h9):r.replace(o9,"").replace(u9,c9)),t=r.match(f9),!t||t.length!==3?r:r.replace(p9,"")}function g9(r,e){if(typeof r=="boolean")return!r;for(var t in r)if(e[t])return!0}function v9(r,e,t){if(typeof r=="boolean")return!r&&t!="not";for(var n in r)if(n!=t&&e[n])return!0}function ty(r){return"'"+ny(r)+"'"}function y9(r,e,t,n){var s=t?"'/' + "+e+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return Uk(r,s)}function b9(r,e,t){var n=ty(t?"/"+sy(e):iy(e));return Uk(r,n)}var _9=/^\/(?:[^~]|~0|~1)*$/,T9=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function S9(r,e,t){var n,s,a,o;if(r==="")return"rootData";if(r[0]=="/"){if(!_9.test(r))throw new Error("Invalid JSON-pointer: "+r);s=r,a="rootData"}else{if(o=r.match(T9),!o)throw new Error("Invalid JSON-pointer: "+r);if(n=+o[1],s=o[2],s=="#"){if(n>=e)throw new Error("Cannot access property/index "+n+" levels up, current level is "+e);return t[e-n]}if(n>e)throw new Error("Cannot access data "+n+" levels up, current level is "+e);if(a="data"+(e-n||""),!s)return a}for(var l=a,u=s.split("/"),c=0;c<u.length;c++){var h=u[c];h&&(a+=iy(ay(h)),l+=" && "+a)}return l}function Uk(r,e){return r=='""'?e:(r+" + "+e).replace(/' \+ '/g,"")}function x9(r){return ay(decodeURIComponent(r))}function w9(r){return encodeURIComponent(sy(r))}function sy(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}function ay(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}});var oy=pe((Zre,Hk)=>{"use strict";O();R();L();
vendor: 9,699 bytes, line 219
219var C9=za();Hk.exports=E9;function E9(r){C9.copy(r,this)}});var jk=pe((iie,Vk)=>{"use strict";O();R();L();var zs=Vk.exports=function(r,e,t){typeof e=="function"&&(t=e,e={}),pf(e,t,r,"",r)};zs.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};zs.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};zs.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};zs.skipKeywords={enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function pf(r,e,t,n,s,a,o,l,u){if(t&&typeof t=="object"&&!Array.isArray(t)){e(t,n,s,a,o,l,u);for(var c in t){var h=t[c];if(Array.isArray(h)){if(c in zs.arrayKeywords)for(var f=0;f<h.length;f++)pf(r,e,h[f],n+"/"+c+"/"+f,s,n,c,t,f)}else if(c in zs.propsKeywords){if(h&&typeof h=="object")for(var v in h)pf(r,e,h[v],n+"/"+c+"/"+k9(v),s,n,c,t,v)}else(c in zs.keywords||r.allKeys&&!(c in zs.skipKeywords))&&pf(r,e,h,n+"/"+c,s,n,c,t)}}}function k9(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}});var Tf=pe((oie,Qk)=>{"use strict";O();R();L();var yf=(Lk(),Zp(Ok)),zk=ff(),bf=za(),mf=oy(),A9=jk();Qk.exports=Gs;Gs.normalizeId=Ws;Gs.fullPath=gf;Gs.url=vf;Gs.ids=L9;Gs.inlineRef=ly;Gs.schema=_f;function Gs(r,e,t){var n=this._refs[t];if(typeof n=="string")if(this._refs[n])n=this._refs[n];else return Gs.call(this,r,e,n);if(n=n||this._schemas[t],n instanceof mf)return ly(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var s=_f.call(this,e,t),a,o,l;return s&&(a=s.schema,e=s.root,l=s.baseId),a instanceof mf?o=a.validate||r.call(this,a.schema,e,void 0,l):a!==void 0&&(o=ly(a,this._opts.inlineRefs)?a:r.call(this,a,e,void 0,l)),o}function _f(r,e){var t=yf.parse(e,!1,!0),n=Gk(t),s=gf(this._getId(r.schema));if(n!==s){var a=Ws(n),o=this._refs[a];if(typeof o=="string")return P9.call(this,r,o,t);if(o instanceof mf)o.validate||this._compile(o),r=o;else if(o=this._schemas[a],o instanceof mf){if(o.validate||this._compile(o),a==Ws(e))return{schema:o,root:r,baseId:s};r=o}else return;if(!r.schema)return;s=gf(this._getId(r.schema))}return Wk.call(this,t,s,r.schema,r)}function P9(r,e,t){var n=_f.call(this,r,e);if(n){var s=n.schema,a=n.baseId;r=n.root;var o=this._getId(s);return o&&(a=vf(a,o)),Wk.call(this,t,a,s,r)}}var D9=bf.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Wk(r,e,t,n){if(r.hash=r.hash||"",r.hash.slice(0,2)=="#/"){for(var s=r.hash.split("/"),a=1;a<s.length;a++){var o=s[a];if(o){if(o=bf.unescapeFragment(o),t=t[o],t===void 0)break;var l;if(!D9[o]&&(l=this._getId(t),l&&(e=vf(e,l)),t.$ref)){var u=vf(e,t.$ref),c=_f.call(this,n,u);c&&(t=c.schema,n=c.root,e=c.baseId)}}}if(t!==void 0&&t!==n.schema)return{schema:t,root:n,baseId:e}}}var I9=bf.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function ly(r,e){if(e===!1)return!1;if(e===void 0||e===!0)return uy(r);if(e)return cy(r)<=e}function uy(r){var e;if(Array.isArray(r)){for(var t=0;t<r.length;t++)if(e=r[t],typeof e=="object"&&!uy(e))return!1}else for(var n in r)if(n=="$ref"||(e=r[n],typeof e=="object"&&!uy(e)))return!1;return!0}function cy(r){var e=0,t;if(Array.isArray(r)){for(var n=0;n<r.length;n++)if(t=r[n],typeof t=="object"&&(e+=cy(t)),e==1/0)return 1/0}else for(var s in r){if(s=="$ref")return 1/0;if(I9[s])e++;else if(t=r[s],typeof t=="object"&&(e+=cy(t)+1),e==1/0)return 1/0}return e}function gf(r,e){e!==!1&&(r=Ws(r));var t=yf.parse(r,!1,!0);return Gk(t)}function Gk(r){var e=r.protocol||r.href.slice(0,2)=="//"?"//":"";return(r.protocol||"")+e+(r.host||"")+(r.path||"")+"#"}var O9=/#\/?$/;function Ws(r){return r?r.replace(O9,""):""}function vf(r,e){return e=Ws(e),yf.resolve(r,e)}function L9(r){var e=Ws(this._getId(r)),t={"":e},n={"":gf(e,!1)},s={},a=this;return A9(r,{allKeys:!0},function(o,l,u,c,h,f,v){if(l!==""){var p=a._getId(o),T=t[c],g=n[c]+"/"+h;if(v!==void 0&&(g+="/"+(typeof v=="number"?v:bf.escapeFragment(v))),typeof p=="string"){p=T=Ws(T?yf.resolve(T,p):p);var b=a._refs[p];if(typeof b=="string"&&(b=a._refs[b]),b&&b.schema){if(!zk(o,b.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=Ws(g))if(p[0]=="#"){if(s[p]&&!zk(o,s[p]))throw new Error('id "'+p+'" resolves to more than one schema');s[p]=o}else a._refs[p]=g}t[l]=T,n[l]=g}}),s}});var Sf=pe((die,Xk)=>{"use strict";O();R();L();var dy=Tf();Xk.exports={Validation:Kk(R9),MissingRef:Kk(hy)};function R9(r){this.message="validation failed",this.errors=r,this.ajv=this.validation=!0}hy.message=function(r,e){return"can't resolve reference "+e+" from id "+r};function hy(r,e,t){this.message=t||hy.message(r,e),this.missingRef=dy.url(r,e),this.missingSchema=dy.normalizeId(dy.fullPath(this.missingRef))}function Kk(r){return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}});var fy=pe((mie,Yk)=>{"use strict";O();R();L();Yk.exports=function(r,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var t=typeof e.cycles=="boolean"?e.cycles:!1,n=e.cmp&&function(a){return function(o){return function(l,u){var c={key:l,value:o[l]},h={key:u,value:o[u]};return a(c,h)}}}(e.cmp),s=[];return function a(o){if(o&&o.toJSON&&typeof o.toJSON=="function"&&(o=o.toJSON()),o!==void 0){if(typeof o=="number")return isFinite(o)?""+o:"null";if(typeof o!="object")return JSON.stringify(o);var l,u;if(Array.isArray(o)){for(u="[",l=0;l<o.length;l++)l&&(u+=","),u+=a(o[l])||"null";return u+"]"}if(o===null)return"null";if(s.indexOf(o)!==-1){if(t)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=s.push(o)-1,h=Object.keys(o).sort(n&&n(o));for(u="",l=0;l<h.length;l++){var f=h[l],v=a(o[f]);v&&(u&&(u+=","),u+=JSON.stringify(f)+":"+v)}return s.splice(c,1),"{"+u+"}"}}(r)}});var py=pe((bie,Jk)=>{"use strict";O();R();L();Jk.exports=function(e,t,n){var s="",a=e.schema.$async===!0,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),l=e.self._getId(e.schema);if(e.isTop&&(s+=" var validate = ",a&&(e.async=!0,s+="async "),s+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",l&&(e.opts.sourceCode||e.opts.processCode)&&(s+=" "+("/*# sourceURL="+l+" */")+" ")),typeof e.schema=="boolean"||!(o||e.schema.$ref)){var t="false schema",u=e.level,c=e.dataLevel,h=e.schema[t],f=e.schemaPath+e.util.getProperty(t),v=e.errSchemaPath+"/"+t,x=!e.opts.allErrors,A,p="data"+(c||""),S="valid"+u;if(e.schema===!1){e.isTop?x=!0:s+=" var "+S+" = false; ";var T=T||[];T.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(A||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'boolean schema is false' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var g=s;s=T.pop(),!e.compositeRule&&x?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?a?s+=" return data; ":s+=" validate.errors = null; return true; ":s+=" var "+S+" = true; ";return e.isTop&&(s+=" }; return validate; "),s}if(e.isTop){var b=e.isTop,u=e.level=0,c=e.dataLevel=0,p="data";e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[void 0],s+=" var vErrors = null; ",s+=" var errors = 0;     ",s+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,c=e.dataLevel,p="data"+(c||"");if(l&&(e.baseId=e.resolve.url(e.baseId,l)),a&&!e.async)throw new Error("async schema in sync schema");s+=" var errs_"+u+" = errors;"}var S="valid"+u,x=!e.opts.allErrors,E="",k="",A,N=e.schema.type,I=Array.isArray(N);if(I&&N.length==1&&(N=N[0],I=!1),e.schema.$ref&&o){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(s+=" "+e.RULES.all.$comment.code(e,"$comment")),N){if(e.opts.coerceTypes)var M=e.util.coerceToTypes(e.opts.coerceTypes,N);var F=e.RULES.types[N];if(M||I||F===!0||F&&!Jt(F)){var f=e.schemaPath+".type",v=e.errSchemaPath+"/type",f=e.schemaPath+".type",v=e.errSchemaPath+"/type",ne=I?"checkDataTypes":"checkDataType";if(s+=" if ("+e.util[ne](N,p,!0)+") { ",M){var Q="dataType"+u,j="coerced"+u;s+=" var "+Q+" = typeof "+p+"; ",e.opts.coerceTypes=="array"&&(s+=" if ("+Q+" == 'object' && Array.isArray("+p+")) "+Q+" = 'array'; "),s+=" var "+j+" = undefined; ";var H="",W=M;if(W)for(var ae,se=-1,ge=W.length-1;se<ge;)ae=W[se+=1],se&&(s+=" if ("+j+" === undefined) { ",H+="}"),e.opts.coerceTypes=="array"&&ae!="array"&&(s+=" if ("+Q+" == 'array' && "+p+".length == 1) { "+j+" = "+p+" = "+p+"[0]; "+Q+" = typeof "+p+";  } "),ae=="string"?s+=" if ("+Q+" == 'number' || "+Q+" == 'boolean') "+j+" = '' + "+p+"; else if ("+p+" === null) "+j+" = ''; ":ae=="number"||ae=="integer"?(s+=" if ("+Q+" == 'boolean' || "+p+" === null || ("+Q+" == 'string' && "+p+" && "+p+" == +"+p+" ",ae=="integer"&&(s+=" && !("+p+" % 1)"),s+=")) "+j+" = +"+p+"; "):ae=="boolean"?s+=" if ("+p+" === 'false' || "+p+" === 0 || "+p+" === null) "+j+" = false; else if ("+p+" === 'true' || "+p+" === 1) "+j+" = true; ":ae=="null"?s+=" if ("+p+" === '' || "+p+" === 0 || "+p+" === false) "+j+" = null;
219 ":e.opts.coerceTypes=="array"&&ae=="array"&&(s+=" if ("+Q+" == 'string' || "+Q+" == 'number' || "+Q+" == 'boolean' || "+p+" == null) "+j+" = ["+p+"]; ");s+=" "+H+" if ("+j+" === undefined) {   ";var T=T||[];T.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(A||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { type: '",I?s+=""+N.join(","):s+=""+N,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",I?s+=""+N.join(","):s+=""+N,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var g=s;s=T.pop(),!e.compositeRule&&x?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else {  ";var ce=c?"data"+(c-1||""):"parentData",ue=c?e.dataPathArr[c]:"parentDataProperty";s+=" "+p+" = "+j+"; ",c||(s+="if ("+ce+" !== undefined)"),s+=" "+ce+"["+ue+"] = "+j+"; } "}else{var T=T||[];T.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(A||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { type: '",I?s+=""+N.join(","):s+=""+N,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",I?s+=""+N.join(","):s+=""+N,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var g=s;s=T.pop(),!e.compositeRule&&x?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } "}}if(e.schema.$ref&&!o)s+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",x&&(s+=" } if (errors === ",b?s+="0":s+="errs_"+u,s+=") { ",k+="}");else{var ye=e.RULES;if(ye){for(var F,Te=-1,Se=ye.length-1;Te<Se;)if(F=ye[Te+=1],Jt(F)){if(F.type&&(s+=" if ("+e.util.checkDataType(F.type,p)+") { "),e.opts.useDefaults&&!e.compositeRule){if(F.type=="object"&&e.schema.properties){var h=e.schema.properties,me=Object.keys(h),Ce=me;if(Ce)for(var Ie,Pe=-1,We=Ce.length-1;Pe<We;){Ie=Ce[Pe+=1];var et=h[Ie];if(et.default!==void 0){var Ye=p+e.util.getProperty(Ie);s+="  if ("+Ye+" === undefined) "+Ye+" = ",e.opts.useDefaults=="shared"?s+=" "+e.useDefault(et.default)+" ":s+=" "+JSON.stringify(et.default)+" ",s+="; "}}}else if(F.type=="array"&&Array.isArray(e.schema.items)){var Je=e.schema.items;if(Je){for(var et,se=-1,st=Je.length-1;se<st;)if(et=Je[se+=1],et.default!==void 0){var Ye=p+"["+se+"]";s+="  if ("+Ye+" === undefined) "+Ye+" = ",e.opts.useDefaults=="shared"?s+=" "+e.useDefault(et.default)+" ":s+=" "+JSON.stringify(et.default)+" ",s+="; "}}}}var Be=F.rules;if(Be){for(var je,pt=-1,mt=Be.length-1;pt<mt;)if(je=Be[pt+=1],yt(je)){var Ht=je.code(e,je.keyword,F.type);Ht&&(s+=" "+Ht+" ",x&&(E+="}"))}}if(x&&(s+=" "+E+" ",E=""),F.type&&(s+=" } ",N&&N===F.type&&!M)){s+=" else { ";var f=e.schemaPath+".type",v=e.errSchemaPath+"/type",T=T||[];T.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(A||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { type: '",I?s+=""+N.join(","):s+=""+N,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",I?s+=""+N.join(","):s+=""+N,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var g=s;s=T.pop(),!e.compositeRule&&x?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } "}x&&(s+=" if (errors === ",b?s+="0":s+="errs_"+u,s+=") { ",k+="}")}}}x&&(s+=" "+k+" "),b?(a?(s+=" if (errors === 0) return data;           ",s+=" else throw new ValidationError(vErrors); "):(s+=" validate.errors = vErrors; ",s+=" return errors === 0;       "),s+=" }; return validate;"):s+=" var "+S+" = errors === errs_"+u+";",s=e.util.cleanUpCode(s),b&&(s=e.util.finalCleanUpCode(s,a));function Jt(Ge){for(var St=Ge.rules,xt=0;xt<St.length;xt++)if(yt(St[xt]))return!0}function yt(Ge){return e.schema[Ge.keyword]!==void 0||Ge.implements&&Zt(Ge)}function Zt(Ge){for(var St=Ge.implements,xt=0;xt<St.length;xt++)if(e.schema[St[xt]]!==void 0)return!0}return s}});var iA=pe((xie,rA)=>{"use strict";O();R();L();var xf=Tf(),Cf=za(),eA=Sf(),N9=fy(),Zk=py(),M9=Cf.ucs2length,B9=ff(),$9=eA.Validation;rA.exports=my;function my(r,e,t,n){var s=this,a=this._opts,o=[void 0],l={},u=[],c={},h=[],f={},v=[];e=e||{schema:r,refVal:o,refs:l};var p=F9.call(this,r,e,n),T=this._compilations[p.index];if(p.compiling)return T.callValidate=E;var g=this._formats,b=this.RULES;try{var S=k(r,e,t,n);T.validate=S;var x=T.callValidate;return x&&(x.schema=S.schema,x.errors=null,x.refs=S.refs,x.refVal=S.refVal,x.root=S.root,x.$async=S.$async,a.sourceCode&&(x.source=S.source)),S}finally{U9.call(this,r,e,n)}function E(){var H=T.validate,W=H.apply(null,arguments);return E.errors=H.errors,W}
vendor: 4,140 bytes, line 219
219function k(H,W,ae,se){var ge=!W||W&&W.schema==H;if(W.schema!=e.schema)return my.call(s,H,W,ae,se);var ce=H.$async===!0,ue=Zk({isTop:!0,schema:H,isRoot:ge,baseId:se,root:W,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:eA.MissingRef,RULES:b,validate:Zk,util:Cf,resolve:xf,resolveRef:A,usePattern:ne,useDefault:Q,useCustomRule:j,opts:a,formats:g,logger:s.logger,self:s});ue=wf(o,V9)+wf(u,q9)+wf(h,H9)+wf(v,j9)+ue,a.processCode&&(ue=a.processCode(ue));var ye;try{var Te=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",ue);ye=Te(s,b,g,e,o,h,v,B9,M9,$9),o[0]=ye}catch(Se){throw s.logger.error("Error compiling schema, function code:",ue),Se}return ye.schema=H,ye.errors=null,ye.refs=l,ye.refVal=o,ye.root=ge?ye:W,ce&&(ye.$async=!0),a.sourceCode===!0&&(ye.source={code:ue,patterns:u,defaults:h}),ye}function A(H,W,ae){W=xf.url(H,W);var se=l[W],ge,ce;if(se!==void 0)return ge=o[se],ce="refVal["+se+"]",F(ge,ce);if(!ae&&e.refs){var ue=e.refs[W];if(ue!==void 0)return ge=e.refVal[ue],ce=N(W,ge),F(ge,ce)}ce=N(W);var ye=xf.call(s,k,e,W);if(ye===void 0){var Te=t&&t[W];Te&&(ye=xf.inlineRef(Te,a.inlineRefs)?Te:my.call(s,Te,e,t,H))}if(ye===void 0)I(W);else return M(W,ye),F(ye,ce)}function N(H,W){var ae=o.length;return o[ae]=W,l[H]=ae,"refVal"+ae}function I(H){delete l[H]}function M(H,W){var ae=l[H];o[ae]=W}function F(H,W){return typeof H=="object"||typeof H=="boolean"?{code:W,schema:H,inline:!0}:{code:W,$async:H&&!!H.$async}}function ne(H){var W=c[H];return W===void 0&&(W=c[H]=u.length,u[W]=H),"pattern"+W}function Q(H){switch(typeof H){case"boolean":case"number":return""+H;case"string":return Cf.toQuotedString(H);case"object":if(H===null)return"null";var W=N9(H),ae=f[W];return ae===void 0&&(ae=f[W]=h.length,h[ae]=H),"default"+ae}}function j(H,W,ae,se){var ge=H.definition.validateSchema;if(ge&&s._opts.validateSchema!==!1){var ce=ge(W);if(!ce){var ue="keyword schema is invalid: "+s.errorsText(ge.errors);if(s._opts.validateSchema=="log")s.logger.error(ue);else throw new Error(ue)}}var ye=H.definition.compile,Te=H.definition.inline,Se=H.definition.macro,me;if(ye)me=ye.call(s,W,ae,se);else if(Se)me=Se.call(s,W,ae,se),a.validateSchema!==!1&&s.validateSchema(me,!0);else if(Te)me=Te.call(s,se,H.keyword,W,ae);else if(me=H.definition.validate,!me)return;if(me===void 0)throw new Error('custom keyword "'+H.keyword+'"failed to compile');var Ce=v.length;return v[Ce]=me,{code:"customRule"+Ce,validate:me}}}function F9(r,e,t){var n=tA.call(this,r,e,t);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:r,root:e,baseId:t},{index:n,compiling:!1})}function U9(r,e,t){var n=tA.call(this,r,e,t);n>=0&&this._compilations.splice(n,1)}function tA(r,e,t){for(var n=0;n<this._compilations.length;n++){var s=this._compilations[n];if(s.schema==r&&s.root==e&&s.baseId==t)return n}return-1}function q9(r,e){return"var pattern"+r+" = new RegExp("+Cf.toQuotedString(e[r])+");"}function H9(r){return"var default"+r+" = defaults["+r+"];"}function V9(r,e){return e[r]===void 0?"":"var refVal"+r+" = refVal["+r+"];"}function j9(r){return"var customRule"+r+" = customRules["+r+"];"}function wf(r,e){if(!r.length)return"";for(var t="",n=0;n<r.length;n++)t+=e(n,r);return t}});var sA=pe((kie,nA)=>{"use strict";O();R();L();var Ef=nA.exports=function(){this._cache={}};Ef.prototype.put=function(e,t){this._cache[e]=t};Ef.prototype.get=function(e){return this._cache[e]};Ef.prototype.del=function(e){delete this._cache[e]};Ef.prototype.clear=function(){this._cache={}}});var vA=pe((Iie,gA)=>{"use strict";O();R();L();var z9=za(),W9=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,G9=[0,31,28,31,30,31,30,31,31,30,31,30,31],Q9=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d:\d\d)?$/i,aA=/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*$/i,K9=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4}
219)?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,X9=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,oA=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,lA=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,uA=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,cA=/^(?:\/(?:[^~/]|~0|~1)*)*$/,dA=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,hA=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;gA.exports=kf;function kf(r){return r=r=="full"?"full":"fast",z9.copy(kf[r])}kf.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":oA,url:lA,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:aA,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}
vendor: 17,023 bytes, line 219
219(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:mA,uuid:uA,"json-pointer":cA,"json-pointer-uri-fragment":dA,"relative-json-pointer":hA};kf.full={date:fA,time:pA,"date-time":Z9,uri:rq,"uri-reference":X9,"uri-template":oA,url:lA,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&''*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:eq,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:mA,uuid:uA,"json-pointer":cA,"json-pointer-uri-fragment":dA,"relative-json-pointer":hA};function Y9(r){return r%4===0&&(r%100!==0||r%400===0)}function fA(r){var e=r.match(W9);if(!e)return!1;var t=+e[1],n=+e[2],s=+e[3];return n>=1&&n<=12&&s>=1&&s<=(n==2&&Y9(t)?29:G9[n])}function pA(r,e){var t=r.match(Q9);if(!t)return!1;var n=t[1],s=t[2],a=t[3],o=t[5];return(n<=23&&s<=59&&a<=59||n==23&&s==59&&a==60)&&(!e||o)}var J9=/t|\s/i;function Z9(r){var e=r.split(J9);return e.length==2&&fA(e[0])&&pA(e[1],!0)}function eq(r){return r.length<=255&&aA.test(r)}var tq=/\/|:/;function rq(r){return tq.test(r)&&K9.test(r)}var iq=/[^\\]\\Z/;function mA(r){if(iq.test(r))return!1;try{return new RegExp(r),!0}catch{return!1}}});var bA=pe((Nie,yA)=>{"use strict";O();R();L();yA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,h="data"+(o||""),f="valid"+a,v,p;if(l=="#"||l=="#/")e.isRoot?(v=e.async,p="validate"):(v=e.root.schema.$async===!0,p="root.refVal[0]");else{var T=e.resolveRef(e.baseId,l,e.isRoot);if(T===void 0){var g=e.MissingRefError.message(e.baseId,l);if(e.opts.missingRefs=="fail"){e.logger.error(g);var b=b||[];b.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",e.opts.messages!==!1&&(s+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(s+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var S=s;s=b.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(s+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(g),c&&(s+=" if (true) { ");else throw new e.MissingRefError(e.baseId,l,g)}else if(T.inline){var x=e.util.copy(e);x.level++;var E="valid"+x.level;x.schema=T.schema,x.schemaPath="",x.errSchemaPath=l;var k=e.validate(x).replace(/validate\.schema/g,T.code);s+=" "+k+" ",c&&(s+=" if ("+E+") { ")}else v=T.$async===!0||e.async&&T.$async!==!1,p=T.code}if(p){var b=b||[];b.push(s),s="",e.opts.passContext?s+=" "+p+".call(this, ":s+=" "+p+"( ",s+=" "+h+", (dataPath || '')",e.errorPath!='""'&&(s+=" + "+e.errorPath);var A=o?"data"+(o-1||""):"parentData",N=o?e.dataPathArr[o]:"parentDataProperty";s+=" , "+A+" , "+N+", rootData)  ";var I=s;if(s=b.pop(),v){if(!e.async)throw new Error("async schema referenced by sync schema");c&&(s+=" var "+f+"; "),s+=" try { await "+I+"; ",c&&(s+=" "+f+" = true; "),s+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",c&&(s+=" "+f+" = false; "),s+=" } ",c&&(s+=" if ("+f+") { ")}else s+=" if (!"+I+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",c&&(s+=" else { ")}return s}});var TA=pe((Fie,_A)=>{"use strict";O();R();L();_A.exports=function(e,t,n){var s=" ",a=e.schema[t],o=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c=e.util.copy(e),h="";c.level++;var f="valid"+c.level,v=c.baseId,p=!0,T=a;if(T)for(var g,b=-1,S=T.length-1;b<S;)g=T[b+=1],e.util.schemaHasRules(g,e.RULES.all)&&(p=!1,c.schema=g,c.schemaPath=o+"["+b+"]",c.errSchemaPath=l+"/"+b,s+="  "+e.validate(c)+" ",c.baseId=v,u&&(s+=" if ("+f+") { ",h+="}"));return u&&(p?s+=" if (true) { ":s+=" "+h.slice(0,-1)+" "),s=e.util.cleanUpCode(s),s}});var xA=pe((Vie,SA)=>{"use strict";O();R();L();SA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="valid"+a,p="errs__"+a,T=e.util.copy(e),g="";T.level++;var b="valid"+T.level,S=l.every(function(M){return e.util.schemaHasRules(M,e.RULES.all)});if(S){var x=T.baseId;s+=" var "+p+" = errors; var "+v+" = false;  ";var E=e.compositeRule;e.compositeRule=T.compositeRule=!0;var k=l;if(k)for(var A,N=-1,I=k.length-1;N<I;)A=k[N+=1],T.schema=A,T.schemaPath=u+"["+N+"]",T.errSchemaPath=c+"/"+N,s+="  "+e.validate(T)+" ",T.baseId=x,s+=" "+v+" = "+v+" || "+b+"; if (!"+v+") { ",g+="}";e.compositeRule=T.compositeRule=E,s+=" "+g+" if (!"+v+") {   var err =   ",e.createErrors!==!1?(s+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } else {  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(s+=" } "),s=e.util.cleanUpCode(s)}else h&&(s+=" if (true) { ");return s}});var CA=pe((Gie,wA)=>{"use strict";O();R();L();wA.exports=function(e,t,n){var s=" ",a=e.schema[t],o=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u=e.util.toQuotedString(a);return e.opts.$comment===!0?s+=" console.log("+u+");":typeof e.opts.$comment=="function"&&(s+=" self._opts.$comment("+u+", "+e.util.toQuotedString(o)+", validate.root.schema);"),s}});var kA=pe((Yie,EA)=>{"use strict";O();R();L();EA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="valid"+a,p=e.opts.$data&&l&&l.$data,T;p?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",T="schema"+a):T=l,p||(s+=" var schema"+a+" = validate.schema"+u+";"),s+="var "+v+" = equal("+f+", schema"+a+"); if (!"+v+") {   ";var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+a+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be equal to constant' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var b=s;return s=g.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+b+"]); ":s+=" validate.errors = ["+b+"]; return false; ":s+=" var err = "+b+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" }",h&&(s+=" else { "),s}});var PA=pe((tne,AA)=>{"use strict";O();R();L();AA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="valid"+a,p="errs__"+a,T=e.util.copy(e),g="";T.level++;var b="valid"+T.level,S="i"+a,x=T.dataLevel=e.dataLevel+1,E="data"+x,k=e.baseId,A=e.util.schemaHasRules(l,e.RULES.all);if(s+="var "+p+" = errors;var "+v+";",A){var N=e.compositeRule;e.compositeRule=T.compositeRule=!0,T.schema=l,T.schemaPath=u,T.errSchemaPath=c,s+=" var "+b+" = false; for (var "+S+" = 0; "+S+" < "+f+".length; "+S+"++) { ",T.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var I=f+"["+S+"]";T.dataPathArr[x]=S;var M=e.validate(T);T.baseId=k,e.util.varOccurences(M,E)<2?s+=" "+e.util.varReplace(M,E,I)+" ":s+=" var "+E+" = "+I+"; "+M+" ",s+=" if ("+b+") break; }  ",e.compositeRule=T.compositeRule=N,s+=" "+g+" if (!"+b+") {"}else s+=" if ("+f+".length == 0) {";var F=F||[];F.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should contain a valid item' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var ne=s;return s=F.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+ne+"]); ":s+=" validate.errors = ["+ne+"]; return false; ":s+=" var err = "+ne+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { ",A&&(s+="  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(s+=" } "),s=e.util.cleanUpCode(s),s}});var IA=pe((sne,DA)=>{"use strict";O();R();L();DA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="errs__"+a,p=e.util.copy(e),T="";p.level++;var g="valid"+p.level,b={},S={},x=e.opts.ownProperties;for(N in l){var E=l[N],k=Array.isArray(E)?S:b;k[N]=E}s+="var "+v+" = errors;";var A=e.errorPath;s+="var missing"+a+";";for(var N in S)if(k=S[N],k.length){if(s+=" if ( "+f+e.util.getProperty(N)+" !== undefined ",x&&(s+=" && Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(N)+"') "),h){s+=" && ( ";var I=k;if(I)for(var M,F=-1,ne=I.length-1;F<ne;){M=I[F+=1],F&&(s+=" || ");var Q=e.util.getProperty(M),j=f+Q;s+=" ( ( "+j+" === undefined ",x&&(s+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(M)+"') "),s+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?M:Q)+") ) "}s+=")) {  ";var H="missing"+a,W="' + "+H+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(A,H,!0):A+" + "+H);var ae=ae||[];ae.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(N)+"', missingProperty: '"+W+"', depsCount: "+k.length+", deps: '"+e.util.escapeQuotes(k.length==1?k[0]:k.join(", "))+"' } ",e.opts.messages!==!1&&(s+=" , message: 'should have ",k.length==1?s+="property "+e.util.escapeQuotes(k[0]):s+="properties "+e.util.escapeQuotes(k.join(", ")),s+=" when property "+e.util.escapeQuotes(N)+" is present' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var se=s;s=ae.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+se+"]); ":s+=" validate.errors = ["+se+"]; return false; ":s+=" var err = "+se+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{s+=" ) { ";var ge=k;if(ge)for(var M,ce=-1,ue=ge.length-1;ce<ue;){M=ge[ce+=1];var Q=e.util.getProperty(M),W=e.util.escapeQuotes(M),j=f+Q;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(A,M,e.opts.jsonPointers)),s+=" if ( "+j+" === undefined ",x&&(s+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(M)+"') "),s+=") {  var err =   ",e.createErrors!==!1?(s+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(N)+"', missingProperty: '"+W+"', depsCount: "+k.length+", deps: '"+e.util.escapeQuotes(k.length==1?k[0]:k.join(", "))+"' } ",e.opts.messages!==!1&&(s+=" , message: 'should have ",k.length==1?s+="property "+e.util.escapeQuotes(k[0]):s+="properties "+e.util.escapeQuotes(k.join(", ")),s+=" when property "+e.util.escapeQuotes(N)+" is present' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}s+=" }   ",h&&(T+="}",s+=" else { ")}e.errorPath=A;var ye=p.baseId;for(var N in b){var E=b[N];e.util.schemaHasRules(E,e.RULES.all)&&(s+=" "+g+" = true; if ( "+f+e.util.getProperty(N)+" !== undefined ",x&&(s+=" && Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(N)+"') "),s+=") { ",p.schema=E,p.schemaPath=u+e.util.getProperty(N),p.errSchemaPath=c+"/"+e.util.escapeFragment(N),s+="  "+e.validate(p)+" ",p.baseId=ye,s+=" }  ",h&&(s+=" if ("+g+") { ",T+="}"))}return h&&(s+="   "+T+" if ("+v+" == errors) {"),s=e.util.cleanUpCode(s),s}});var LA=pe((une,OA)=>{"use strict";O();R();L();OA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="valid"+a,p=e.opts.$data&&l&&l.$data,T;p?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",T="schema"+a):T=l;var g="i"+a,b="schema"+a;p||(s+=" var "+b+" = validate.schema"+u+";"),s+="var "+v+";",p&&(s+=" if (schema"+a+" === undefined) "+v+" = true; else if (!Array.isArray(schema"+a+")) "+v+" = false; else {"),s+=""+v+" = false;for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) if (equal("+f+", "+b+"["+g+"])) { "+v+" = true; break; }",p&&(s+="  }  "),s+=" if (!"+v+") {   ";var S=S||[];S.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+a+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var x=s;return s=S.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+x+"]); ":s+=" validate.errors = ["+x+"]; return false; ":s+=" var err = "+x+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" }",h&&(s+=" else { "),s}});var NA=pe((fne,RA)=>{"use strict";O();R();L();RA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||"");if(e.opts.format===!1)return h&&(s+=" if (true) { "),s;var v=e.opts.$data&&l&&l.$data,p;v?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=l;var T=e.opts.unknownFormats,g=Array.isArray(T);if(v){var b="format"+a,S="isObject"+a,x="formatType"+a;s+=" var "+b+" = formats["+p+"];
219 var "+S+" = typeof "+b+" == 'object' && !("+b+" instanceof RegExp) && "+b+".validate; var "+x+" = "+S+" && "+b+".type || 'string'; if ("+S+") { ",e.async&&(s+=" var async"+a+" = "+b+".async; "),s+=" "+b+" = "+b+".validate; } if (  ",v&&(s+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),s+=" (",T!="ignore"&&(s+=" ("+p+" && !"+b+" ",g&&(s+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),s+=") || "),s+=" ("+b+" && "+x+" == '"+n+"' && !(typeof "+b+" == 'function' ? ",e.async?s+=" (async"+a+" ? await "+b+"("+f+") : "+b+"("+f+")) ":s+=" "+b+"("+f+") ",s+=" : "+b+".test("+f+"))))) {"}else{var b=e.formats[l];if(!b){if(T=="ignore")return e.logger.warn('unknown format "'+l+'" ignored in schema at path "'+e.errSchemaPath+'"'),h&&(s+=" if (true) { "),s;if(g&&T.indexOf(l)>=0)return h&&(s+=" if (true) { "),s;throw new Error('unknown format "'+l+'" is used in schema at path "'+e.errSchemaPath+'"')}var S=typeof b=="object"&&!(b instanceof RegExp)&&b.validate,x=S&&b.type||"string";if(S){var E=b.async===!0;b=b.validate}if(x!=n)return h&&(s+=" if (true) { "),s;if(E){if(!e.async)throw new Error("async format in sync schema");var k="formats"+e.util.getProperty(l)+".validate";s+=" if (!(await "+k+"("+f+"))) { "}else{s+=" if (! ";var k="formats"+e.util.getProperty(l);S&&(k+=".validate"),typeof b=="function"?s+=" "+k+"("+f+") ":s+=" "+k+".test("+f+") ",s+=") { "}}var A=A||[];A.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format:  ",v?s+=""+p:s+=""+e.util.toQuotedString(l),s+="  } ",e.opts.messages!==!1&&(s+=` , message: 'should match format "`,v?s+="' + "+p+" + '":s+=""+e.util.escapeQuotes(l),s+=`"' `),e.opts.verbose&&(s+=" , schema:  ",v?s+="validate.schema"+u:s+=""+e.util.toQuotedString(l),s+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var N=s;return s=A.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+N+"]); ":s+=" validate.errors = ["+N+"]; return false; ":s+=" var err = "+N+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",h&&(s+=" else { "),s}});var BA=pe((vne,MA)=>{"use strict";O();R();L();MA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="valid"+a,p="errs__"+a,T=e.util.copy(e);T.level++;var g="valid"+T.level,b=e.schema.then,S=e.schema.else,x=b!==void 0&&e.util.schemaHasRules(b,e.RULES.all),E=S!==void 0&&e.util.schemaHasRules(S,e.RULES.all),k=T.baseId;if(x||E){var A;T.createErrors=!1,T.schema=l,T.schemaPath=u,T.errSchemaPath=c,s+=" var "+p+" = errors; var "+v+" = true;  ";var N=e.compositeRule;e.compositeRule=T.compositeRule=!0,s+="  "+e.validate(T)+" ",T.baseId=k,T.createErrors=!0,s+="  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }  ",e.compositeRule=T.compositeRule=N,x?(s+=" if ("+g+") {  ",T.schema=e.schema.then,T.schemaPath=e.schemaPath+".then",T.errSchemaPath=e.errSchemaPath+"/then",s+="  "+e.validate(T)+" ",T.baseId=k,s+=" "+v+" = "+g+"; ",x&&E?(A="ifClause"+a,s+=" var "+A+" = 'then'; "):A="'then'",s+=" } ",E&&(s+=" else { ")):s+=" if (!"+g+") { ",E&&(T.schema=e.schema.else,T.schemaPath=e.schemaPath+".else",T.errSchemaPath=e.errSchemaPath+"/else",s+="  "+e.validate(T)+" ",T.baseId=k,s+=" "+v+" = "+g+"; ",x&&E?(A="ifClause"+a,s+=" var "+A+" = 'else'; "):A="'else'",s+=" } "),s+=" if (!"+v+") {   var err =   ",e.createErrors!==!1?(s+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+A+" } ",e.opts.messages!==!1&&(s+=` , message: 'should match "' + `+A+` + '" schema' `),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" }   ",h&&(s+=" else { "),s=e.util.cleanUpCode(s)}else h&&(s+=" if (true) { ");return s}});var FA=pe((Tne,$A)=>{"use strict";O();R();L();$A.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="valid"+a,p="errs__"+a,T=e.util.copy(e),g="";
vendor: 22,004 bytes, line 219
219T.level++;var b="valid"+T.level,S="i"+a,x=T.dataLevel=e.dataLevel+1,E="data"+x,k=e.baseId;if(s+="var "+p+" = errors;var "+v+";",Array.isArray(l)){var A=e.schema.additionalItems;if(A===!1){s+=" "+v+" = "+f+".length <= "+l.length+"; ";var N=c;c=e.errSchemaPath+"/additionalItems",s+="  if (!"+v+") {   ";var I=I||[];I.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+l.length+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have more than "+l.length+" items' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var M=s;s=I.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+M+"]); ":s+=" validate.errors = ["+M+"]; return false; ":s+=" var err = "+M+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",c=N,h&&(g+="}",s+=" else { ")}var F=l;if(F){for(var ne,Q=-1,j=F.length-1;Q<j;)if(ne=F[Q+=1],e.util.schemaHasRules(ne,e.RULES.all)){s+=" "+b+" = true; if ("+f+".length > "+Q+") { ";var H=f+"["+Q+"]";T.schema=ne,T.schemaPath=u+"["+Q+"]",T.errSchemaPath=c+"/"+Q,T.errorPath=e.util.getPathExpr(e.errorPath,Q,e.opts.jsonPointers,!0),T.dataPathArr[x]=Q;var W=e.validate(T);T.baseId=k,e.util.varOccurences(W,E)<2?s+=" "+e.util.varReplace(W,E,H)+" ":s+=" var "+E+" = "+H+"; "+W+" ",s+=" }  ",h&&(s+=" if ("+b+") { ",g+="}")}}if(typeof A=="object"&&e.util.schemaHasRules(A,e.RULES.all)){T.schema=A,T.schemaPath=e.schemaPath+".additionalItems",T.errSchemaPath=e.errSchemaPath+"/additionalItems",s+=" "+b+" = true; if ("+f+".length > "+l.length+") {  for (var "+S+" = "+l.length+"; "+S+" < "+f+".length; "+S+"++) { ",T.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var H=f+"["+S+"]";T.dataPathArr[x]=S;var W=e.validate(T);T.baseId=k,e.util.varOccurences(W,E)<2?s+=" "+e.util.varReplace(W,E,H)+" ":s+=" var "+E+" = "+H+"; "+W+" ",h&&(s+=" if (!"+b+") break; "),s+=" } }  ",h&&(s+=" if ("+b+") { ",g+="}")}}else if(e.util.schemaHasRules(l,e.RULES.all)){T.schema=l,T.schemaPath=u,T.errSchemaPath=c,s+="  for (var "+S+" = 0; "+S+" < "+f+".length; "+S+"++) { ",T.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var H=f+"["+S+"]";T.dataPathArr[x]=S;var W=e.validate(T);T.baseId=k,e.util.varOccurences(W,E)<2?s+=" "+e.util.varReplace(W,E,H)+" ":s+=" var "+E+" = "+H+"; "+W+" ",h&&(s+=" if (!"+b+") break; "),s+=" }"}return h&&(s+=" "+g+" if ("+p+" == errors) {"),s=e.util.cleanUpCode(s),s}});var gy=pe((Cne,UA)=>{"use strict";O();R();L();UA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,k,f="data"+(o||""),v=e.opts.$data&&l&&l.$data,p;v?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=l;var T=t=="maximum",g=T?"exclusiveMaximum":"exclusiveMinimum",b=e.schema[g],S=e.opts.$data&&b&&b.$data,x=T?"<":">",E=T?">":"<",k=void 0;if(S){var A=e.util.getData(b.$data,o,e.dataPathArr),N="exclusive"+a,I="exclType"+a,M="exclIsNumber"+a,F="op"+a,ne="' + "+F+" + '";s+=" var schemaExcl"+a+" = "+A+"; ",A="schemaExcl"+a,s+=" var "+N+"; var "+I+" = typeof "+A+"; if ("+I+" != 'boolean' && "+I+" != 'undefined' && "+I+" != 'number') { ";var k=g,Q=Q||[];Q.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(k||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: '"+g+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var j=s;s=Q.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+j+"]); ":s+=" validate.errors = ["+j+"]; return false; ":s+=" var err = "+j+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",v&&(s+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),s+=" "+I+" == 'number' ? ( ("+N+" = "+p+" === undefined || "+A+" "+x+"= "+p+") ? "+f+" "+E+"= "+A+" : "+f+" "+E+" "+p+" ) : ( ("+N+" = "+A+" === true) ? "+f+" "+E+"= "+p+" : "+f+" "+E+" "+p+" ) || "+f+" !== "+f+") { var op"+a+" = "+N+" ? '"+x+"' : '"+x+"='; ",l===void 0&&(k=g,c=e.errSchemaPath+"/"+g,p=A,v=S)}else{var M=typeof b=="number",ne=x;if(M&&v){var F="'"+ne+"'";s+=" if ( ",v&&(s+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),s+=" ( "+p+" === undefined || "+b+" "+x+"= "+p+" ? "+f+" "+E+"= "+b+" : "+f+" "+E+" "+p+" ) || "+f+" !== "+f+") { "}else{M&&l===void 0?(N=!0,k=g,c=e.errSchemaPath+"/"+g,p=b,E+="="):(M&&(p=Math[T?"min":"max"](b,l)),b===(M?p:!0)?(N=!0,k=g,c=e.errSchemaPath+"/"+g,E+="="):(N=!1,ne+="="));var F="'"+ne+"'";s+=" if ( ",v&&(s+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),s+=" "+f+" "+E+" "+p+" || "+f+" !== "+f+") { "}}k=k||t;var Q=Q||[];Q.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(k||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+F+", limit: "+p+", exclusive: "+N+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be "+ne+" ",v?s+="' + "+p:s+=""+p+"'"),e.opts.verbose&&(s+=" , schema:  ",v?s+="validate.schema"+u:s+=""+l,s+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var j=s;return s=Q.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+j+"]); ":s+=" validate.errors = ["+j+"]; return false; ":s+=" var err = "+j+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",h&&(s+=" else { "),s}});var vy=pe((Pne,qA)=>{"use strict";O();R();L();qA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,g,f="data"+(o||""),v=e.opts.$data&&l&&l.$data,p;v?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=l;var T=t=="maxItems"?">":"<";s+="if ( ",v&&(s+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),s+=" "+f+".length "+T+" "+p+") { ";var g=t,b=b||[];b.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(g||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have ",t=="maxItems"?s+="more":s+="less",s+=" than ",v?s+="' + "+p+" + '":s+=""+l,s+=" items' "),e.opts.verbose&&(s+=" , schema:  ",v?s+="validate.schema"+u:s+=""+l,s+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var S=s;return s=b.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",h&&(s+=" else { "),s}});var yy=pe((Lne,HA)=>{"use strict";O();R();L();HA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,g,f="data"+(o||""),v=e.opts.$data&&l&&l.$data,p;v?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=l;var T=t=="maxLength"?">":"<";s+="if ( ",v&&(s+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?s+=" "+f+".length ":s+=" ucs2length("+f+") ",s+=" "+T+" "+p+") { ";var g=t,b=b||[];b.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(g||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be ",t=="maxLength"?s+="longer":s+="shorter",s+=" than ",v?s+="' + "+p+" + '":s+=""+l,s+=" characters' "),e.opts.verbose&&(s+=" , schema:  ",v?s+="validate.schema"+u:s+=""+l,s+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var S=s;return s=b.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",h&&(s+=" else { "),s}});var by=pe((Bne,VA)=>{"use strict";O();R();L();VA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,g,f="data"+(o||""),v=e.opts.$data&&l&&l.$data,p;v?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=l;var T=t=="maxProperties"?">":"<";s+="if ( ",v&&(s+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),s+=" Object.keys("+f+").length "+T+" "+p+") { ";var g=t,b=b||[];b.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(g||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have ",t=="maxProperties"?s+="more":s+="less",s+=" than ",v?s+="' + "+p+" + '":s+=""+l,s+=" properties' "),e.opts.verbose&&(s+=" , schema:  ",v?s+="validate.schema"+u:s+=""+l,s+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var S=s;return s=b.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",h&&(s+=" else { "),s}});var zA=pe((qne,jA)=>{"use strict";O();R();L();jA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v=e.opts.$data&&l&&l.$data,p;v?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=l,s+="var division"+a+";if (",v&&(s+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),s+=" (division"+a+" = "+f+" / "+p+", ",e.opts.multipleOfPrecision?s+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+e.opts.multipleOfPrecision+" ":s+=" division"+a+" !== parseInt(division"+a+") ",s+=" ) ",v&&(s+="  )  "),s+=" ) {   ";var T=T||[];T.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+p+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be multiple of ",v?s+="' + "+p:s+=""+p+"'"),e.opts.verbose&&(s+=" , schema:  ",v?s+="validate.schema"+u:s+=""+l,s+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var g=s;return s=T.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",h&&(s+=" else { "),s}});var GA=pe((zne,WA)=>{"use strict";O();R();L();WA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="errs__"+a,p=e.util.copy(e);p.level++;var T="valid"+p.level;if(e.util.schemaHasRules(l,e.RULES.all)){p.schema=l,p.schemaPath=u,p.errSchemaPath=c,s+=" var "+v+" = errors;  ";var g=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var b;p.opts.allErrors&&(b=p.opts.allErrors,p.opts.allErrors=!1),s+=" "+e.validate(p)+" ",p.createErrors=!0,b&&(p.opts.allErrors=b),e.compositeRule=p.compositeRule=g,s+=" if ("+T+") {   ";var S=S||[];S.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be valid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var x=s;s=S.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+x+"]); ":s+=" validate.errors = ["+x+"]; return false; ":s+=" var err = "+x+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else {  errors = "+v+"; if (vErrors !== null) { if ("+v+") vErrors.length = "+v+"; else vErrors = null; } ",e.opts.allErrors&&(s+=" } ")}else s+="  var err =   ",e.createErrors!==!1?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be valid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h&&(s+=" if (false) { ");return s}});var KA=pe((Kne,QA)=>{"use strict";O();R();L();QA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="valid"+a,p="errs__"+a,T=e.util.copy(e),g="";T.level++;var b="valid"+T.level,S=T.baseId,x="prevValid"+a,E="passingSchemas"+a;s+="var "+p+" = errors , "+x+" = false , "+v+" = false , "+E+" = null; ";var k=e.compositeRule;e.compositeRule=T.compositeRule=!0;var A=l;if(A)for(var N,I=-1,M=A.length-1;I<M;)N=A[I+=1],e.util.schemaHasRules(N,e.RULES.all)?(T.schema=N,T.schemaPath=u+"["+I+"]",T.errSchemaPath=c+"/"+I,s+="  "+e.validate(T)+" ",T.baseId=S):s+=" var "+b+" = true; ",I&&(s+=" if ("+b+" && "+x+") { "+v+" = false; "+E+" = ["+E+", "+I+"]; } else { ",g+="}"),s+=" if ("+b+") { "+v+" = "+x+" = true; "+E+" = "+I+"; }";return e.compositeRule=T.compositeRule=k,s+=""+g+"if (!"+v+") {   var err =   ",e.createErrors!==!1?(s+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+E+" } ",e.opts.messages!==!1&&(s+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+="} else {  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(s+=" } "),s}});var YA=pe((Zne,XA)=>{"use strict";O();R();L();XA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v=e.opts.$data&&l&&l.$data,p;v?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=l;var T=v?"(new RegExp("+p+"))":e.usePattern(l);s+="if ( ",v&&(s+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),s+=" !"+T+".test("+f+") ) {   ";var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern:  ",v?s+=""+p:s+=""+e.util.toQuotedString(l),s+="  } ",e.opts.messages!==!1&&(s+=` , message: 'should match pattern "`,v?s+="' + "+p+" + '":s+=""+e.util.escapeQuotes(l),s+=`"' `),e.opts.verbose&&(s+=" , schema:  ",v?s+="validate.schema"+u:s+=""+e.util.toQuotedString(l),s+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var b=s;return s=g.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+b+"]); ":s+=" validate.errors = ["+b+"]; return false; ":s+=" var err = "+b+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",h&&(s+=" else { "),s}});var ZA=pe((ise,JA)=>{"use strict";O();R();L();JA.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="errs__"+a,p=e.util.copy(e),T="";p.level++;var g="valid"+p.level,b="key"+a,S="idx"+a,x=p.dataLevel=e.dataLevel+1,E="data"+x,k="dataProperties"+a,A=Object.keys(l||{}),N=e.schema.patternProperties||{},I=Object.keys(N),M=e.schema.additionalProperties,F=A.length||I.length,ne=M===!1,Q=typeof M=="object"&&Object.keys(M).length,j=e.opts.removeAdditional,H=ne||Q||j,W=e.opts.ownProperties,ae=e.baseId,se=e.schema.required;if(se&&!(e.opts.v5&&se.$data)&&se.length<e.opts.loopRequired)var ge=e.util.toHash(se);if(s+="var "+v+" = errors;var "+g+" = true;",W&&(s+=" var "+k+" = undefined;"),H){if(W?s+=" "+k+" = "+k+" || Object.keys("+f+"); for (var "+S+"=0; "+S+"<"+k+".length; "+S+"++) { var "+b+" = "+k+"["+S+"]; ":s+=" for (var "+b+" in "+f+") { ",F){if(s+=" var isAdditional"+a+" = !(false ",A.length)if(A.length>5)s+=" || validate.schema"+u+"["+b+"] ";else{var ce=A;if(ce)for(var ue,ye=-1,Te=ce.length-1;ye<Te;)ue=ce[ye+=1],s+=" || "+b+" == "+e.util.toQuotedString(ue)+" "}if(I.length){var Se=I;if(Se)for(var me,Ce=-1,Ie=Se.length-1;Ce<Ie;)me=Se[Ce+=1],s+=" || "+e.usePattern(me)+".test("+b+") "}s+=" ); if (isAdditional"+a+") { "}if(j=="all")s+=" delete "+f+"["+b+"]; ";else{var Pe=e.errorPath,We="' + "+b+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers)),ne)if(j)s+=" delete "+f+"["+b+"]; ";else{s+=" "+g+" = false; ";var et=c;c=e.errSchemaPath+"/additionalProperties";var Ye=Ye||[];Ye.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+We+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is an invalid additional property":s+="should NOT have additional properties",s+="' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var Je=s;s=Ye.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+Je+"]); ":s+=" validate.errors = ["+Je+"]; return false; ":s+=" var err = "+Je+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=et,h&&(s+=" break; ")}else if(Q)if(j=="failing"){s+=" var "+v+" = errors;  ";var st=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=M,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers);var Be=f+"["+b+"]";p.dataPathArr[x]=b;var je=e.validate(p);p.baseId=ae,e.util.varOccurences(je,E)<2?s+=" "+e.util.varReplace(je,E,Be)+" ":s+=" var "+E+" = "+Be+"; "+je+" ",s+=" if (!"+g+") { errors = "+v+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+f+"["+b+"]; }  ",e.compositeRule=p.compositeRule=st}else{p.schema=M,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers);var Be=f+"["+b+"]";p.dataPathArr[x]=b;var je=e.validate(p);p.baseId=ae,e.util.varOccurences(je,E)<2?s+=" "+e.util.varReplace(je,E,Be)+" ":s+=" var "+E+" = "+Be+"; "+je+" ",h&&(s+=" if (!"+g+") break; ")}e.errorPath=Pe}F&&(s+=" } "),s+=" }  ",h&&(s+=" if ("+g+") { ",T+="}")}var pt=e.opts.useDefaults&&!e.compositeRule;if(A.length){var mt=A;if(mt)for(var ue,Ht=-1,Jt=mt.length-1;Ht<Jt;){ue=mt[Ht+=1];var yt=l[ue];if(e.util.schemaHasRules(yt,e.RULES.all)){var Zt=e.util.getProperty(ue),Be=f+Zt,Ge=pt&&yt.default!==void 0;p.schema=yt,p.schemaPath=u+Zt,p.errSchemaPath=c+"/"+e.util.escapeFragment(ue),p.errorPath=e.util.getPath(e.errorPath,ue,e.opts.jsonPointers),p.dataPathArr[x]=e.util.toQuotedString(ue);var je=e.validate(p);if(p.baseId=ae,e.util.varOccurences(je,E)<2){je=e.util.varReplace(je,E,Be);var St=Be}else{var St=E;s+=" var "+E+" = "+Be+"; "}if(Ge)s+=" "+je+" ";else{if(ge&&ge[ue]){s+=" if ( "+St+" === undefined ",W&&(s+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(ue)+"') "),s+=") { "+g+" = false; ";var Pe=e.errorPath,et=c,xt=e.util.escapeQuotes(ue);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(Pe,ue,e.opts.jsonPointers)),c=e.errSchemaPath+"/required";var Ye=Ye||[];Ye.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+xt+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+xt+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var Je=s;s=Ye.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+Je+"]); ":s+=" validate.errors = ["+Je+"]; return false; ":s+=" var err = "+Je+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=et,e.errorPath=Pe,s+=" } else { "}else h?(s+=" if ( "+St+" === undefined ",W&&(s+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(ue)+"') "),s+=") { "+g+" = true; } else { "):(s+=" if ("+St+" !== undefined ",W&&(s+=" &&   Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(ue)+"') "),s+=" ) { ");s+=" "+je+" } "}}h&&(s+=" if ("+g+") { ",T+="}")}}if(I.length){var Vr=I;if(Vr)for(var me,Vt=-1,mi=Vr.length-1;Vt<mi;){me=Vr[Vt+=1];var yt=N[me];if(e.util.schemaHasRules(yt,e.RULES.all)){p.schema=yt,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(me),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(me),W?s+=" "+k+" = "+k+" || Ob
219ject.keys("+f+"); for (var "+S+"=0; "+S+"<"+k+".length; "+S+"++) { var "+b+" = "+k+"["+S+"]; ":s+=" for (var "+b+" in "+f+") { ",s+=" if ("+e.usePattern(me)+".test("+b+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers);var Be=f+"["+b+"]";p.dataPathArr[x]=b;var je=e.validate(p);p.baseId=ae,e.util.varOccurences(je,E)<2?s+=" "+e.util.varReplace(je,E,Be)+" ":s+=" var "+E+" = "+Be+"; "+je+" ",h&&(s+=" if (!"+g+") break; "),s+=" } ",h&&(s+=" else "+g+" = true; "),s+=" }  ",h&&(s+=" if ("+g+") { ",T+="}")}}}return h&&(s+=" "+T+" if ("+v+" == errors) {"),s=e.util.cleanUpCode(s),s}});var tP=pe((ose,eP)=>{"use strict";O();R();L();eP.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="errs__"+a,p=e.util.copy(e),T="";p.level++;var g="valid"+p.level;if(e.util.schemaHasRules(l,e.RULES.all)){p.schema=l,p.schemaPath=u,p.errSchemaPath=c;var b="key"+a,S="idx"+a,x="i"+a,E="' + "+b+" + '",k=p.dataLevel=e.dataLevel+1,A="data"+k,N="dataProperties"+a,I=e.opts.ownProperties,M=e.baseId;s+=" var "+v+" = errors; ",I&&(s+=" var "+N+" = undefined; "),I?s+=" "+N+" = "+N+" || Object.keys("+f+"); for (var "+S+"=0; "+S+"<"+N+".length; "+S+"++) { var "+b+" = "+N+"["+S+"]; ":s+=" for (var "+b+" in "+f+") { ",s+=" var startErrs"+a+" = errors; ";var F=b,ne=e.compositeRule;e.compositeRule=p.compositeRule=!0;var Q=e.validate(p);p.baseId=M,e.util.varOccurences(Q,A)<2?s+=" "+e.util.varReplace(Q,A,F)+" ":s+=" var "+A+" = "+F+"; "+Q+" ",e.compositeRule=p.compositeRule=ne,s+=" if (!"+g+") { for (var "+x+"=startErrs"+a+"; "+x+"<errors; "+x+"++) { vErrors["+x+"].propertyName = "+b+"; }   var err =   ",e.createErrors!==!1?(s+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+E+"' } ",e.opts.messages!==!1&&(s+=" , message: 'property name \\'"+E+"\\' is invalid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),h&&(s+=" break; "),s+=" } }"}return h&&(s+=" "+T+" if ("+v+" == errors) {"),s=e.util.cleanUpCode(s),s}});var iP=pe((dse,rP)=>{"use strict";O();R();L();rP.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="valid"+a,p=e.opts.$data&&l&&l.$data,T;p?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",T="schema"+a):T=l;var g="schema"+a;if(!p)if(l.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var b=[],S=l;if(S)for(var x,E=-1,k=S.length-1;E<k;){x=S[E+=1];var A=e.schema.properties[x];A&&e.util.schemaHasRules(A,e.RULES.all)||(b[b.length]=x)}}else var b=l;if(p||b.length){var N=e.errorPath,I=p||b.length>=e.opts.loopRequired,M=e.opts.ownProperties;if(h)if(s+=" var missing"+a+"; ",I){p||(s+=" var "+g+" = validate.schema"+u+"; ");var F="i"+a,ne="schema"+a+"["+F+"]",Q="' + "+ne+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(N,ne,e.opts.jsonPointers)),s+=" var "+v+" = true; ",p&&(s+=" if (schema"+a+" === undefined) "+v+" = true; else if (!Array.isArray(schema"+a+")) "+v+" = false; else {"),s+=" for (var "+F+" = 0; "+F+" < "+g+".length; "+F+"++) { "+v+" = "+f+"["+g+"["+F+"]] !== undefined ",M&&(s+=" &&   Object.prototype.hasOwnProperty.call("+f+", "+g+"["+F+"]) "),s+="; if (!"+v+") break; } ",p&&(s+="  }  "),s+="  if (!"+v+") {   ";var j=j||[];j.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+Q+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+Q+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var H=s;s=j.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+H+"]); ":s+=" validate.errors = ["+H+"]; return false; ":s+=" var err = "+H+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { "}else{s+=" if ( ";var W=b;if(W)for(var ae,F=-1,se=W.length-1;F<se;){ae=W[F+=1],F&&(s+=" || ");var ge=e.util.getProperty(ae),ce=f+ge;s+=" ( ( "+ce+" === undefined ",M&&(s+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(ae)+"') "),s+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?ae:ge)+") ) "}s+=") {  ";var ne="missing"+a,Q="' + "+ne+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(N,ne,!0):N+" + "+ne);var j=j||[];j.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+Q+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+Q+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var H=s;s=j.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+H+"]); ":s+=" validate.errors = ["+H+"]; return false; ":s+=" var err = "+H+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { "}else if(I){p||(s+=" var "+g+" = validate.schema"+u+"; ");var F="i"+a,ne="schema"+a+"["+F+"]",Q="' + "+ne+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(N,ne,e.opts.jsonPointers)),p&&(s+=" if ("+g+" && !Array.isArray("+g+")) {  var err =   ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+Q+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+Q+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+g+" !== undefined) { "),s+=" for (var "+F+" = 0; "+F+" < "+g+".length;
219 "+F+"++) { if ("+f+"["+g+"["+F+"]] === undefined ",M&&(s+=" || ! Object.prototype.hasOwnProperty.call("+f+", "+g+"["+F+"]) "),s+=") {  var err =   ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+Q+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+Q+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(s+="  }  ")}else{var ue=b;if(ue)for(var ae,ye=-1,Te=ue.length-1;ye<Te;){ae=ue[ye+=1];var ge=e.util.getProperty(ae),Q=e.util.escapeQuotes(ae),ce=f+ge;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(N,ae,e.opts.jsonPointers)),s+=" if ( "+ce+" === undefined ",M&&(s+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(ae)+"') "),s+=") {  var err =   ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+Q+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+Q+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=N}else h&&(s+=" if (true) {");return s}});var sP=pe((mse,nP)=>{"use strict";O();R();L();nP.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||""),v="valid"+a,p=e.opts.$data&&l&&l.$data,T;if(p?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",T="schema"+a):T=l,(l||p)&&e.opts.uniqueItems!==!1){p&&(s+=" var "+v+"; if ("+T+" === false || "+T+" === undefined) "+v+" = true; else if (typeof "+T+" != 'boolean') "+v+" = false; else { "),s+=" var i = "+f+".length , "+v+" = true , j; if (i > 1) { ";var g=e.schema.items&&e.schema.items.type,b=Array.isArray(g);if(!g||g=="object"||g=="array"||b&&(g.indexOf("object")>=0||g.indexOf("array")>=0))s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+v+" = false; break outer; } } } ";else{s+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var S="checkDataType"+(b?"s":"");s+=" if ("+e.util[S](g,"item",!0)+") continue; ",b&&(s+=` if (typeof item == 'string') item = '"' + item; `),s+=" if (typeof itemIndices[item] == 'number') { "+v+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}s+=" } ",p&&(s+="  }  "),s+=" if (!"+v+") {   ";var x=x||[];x.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(s+=" , schema:  ",p?s+="validate.schema"+u:s+=""+l,s+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var E=s;s=x.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+E+"]); ":s+=" validate.errors = ["+E+"]; return false; ":s+=" var err = "+E+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",h&&(s+=" else { ")}else h&&(s+=" if (true) { ");return s}});var oP=pe((bse,aP)=>{"use strict";O();R();L();aP.exports={$ref:bA(),allOf:TA(),anyOf:xA(),$comment:CA(),const:kA(),contains:PA(),dependencies:IA(),enum:LA(),format:NA(),if:BA(),items:FA(),maximum:gy(),minimum:gy(),maxItems:vy(),minItems:vy(),maxLength:yy(),minLength:yy(),maxProperties:by(),minProperties:by(),multipleOf:zA(),not:GA(),oneOf:KA(),pattern:YA(),properties:ZA(),propertyNames:tP(),required:iP(),uniqueItems:sP(),val
vendor: 14,548 bytes, line 219
219idate:py()}});var cP=pe((xse,uP)=>{"use strict";O();R();L();var lP=oP(),_y=za().toHash;uP.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"],n=["$schema","$id","id","$data","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],s=["number","integer","string","array","object","boolean","null"];return e.all=_y(t),e.types=_y(s),e.forEach(function(a){a.rules=a.rules.map(function(o){var l;if(typeof o=="object"){var u=Object.keys(o)[0];l=o[u],o=u,l.forEach(function(h){t.push(h),e.all[h]=!0})}t.push(o);var c=e.all[o]={keyword:o,code:lP[o],implements:l};return c}),e.all.$comment={keyword:"$comment",code:lP.$comment},a.type&&(e.types[a.type]=a)}),e.keywords=_y(t.concat(n)),e.custom={},e}});var fP=pe((kse,hP)=>{"use strict";O();R();L();var dP=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];hP.exports=function(r,e){for(var t=0;t<e.length;t++){r=JSON.parse(JSON.stringify(r));var n=e[t].split("/"),s=r,a;for(a=1;a<n.length;a++)s=s[n[a]];for(a=0;a<dP.length;a++){var o=dP[a],l=s[o];l&&(s[o]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#"}]})}}return r}});var gP=pe((Ise,mP)=>{"use strict";O();R();L();var nq=Sf().MissingRef;mP.exports=pP;function pP(r,e,t){var n=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(t=e,e=void 0);var s=a(r).then(function(){var l=n._addSchema(r,void 0,e);return l.validate||o(l)});return t&&s.then(function(l){t(null,l)},t),s;function a(l){var u=l.$schema;return u&&!n.getSchema(u)?pP.call(n,{$ref:u},!0):Promise.resolve()}function o(l){try{return n._compile(l)}catch(c){if(c instanceof nq)return u(c);throw c}function u(c){var h=c.missingSchema;if(p(h))throw new Error("Schema "+h+" is loaded but "+c.missingRef+" cannot be resolved");var f=n._loadingSchemas[h];return f||(f=n._loadingSchemas[h]=n._opts.loadSchema(h),f.then(v,v)),f.then(function(T){if(!p(h))return a(T).then(function(){p(h)||n.addSchema(T,h,void 0,e)})}).then(function(){return o(l)});function v(){delete n._loadingSchemas[h]}function p(T){return n._refs[T]||n._schemas[T]}}}}});var yP=pe((Nse,vP)=>{"use strict";O();R();L();vP.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f,v="data"+(o||""),p="valid"+a,T="errs__"+a,g=e.opts.$data&&l&&l.$data,b;g?(s+=" var schema"+a+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",b="schema"+a):b=l;var S=this,x="definition"+a,E=S.definition,k="",A,N,I,M,F;if(g&&E.$data){F="keywordValidate"+a;var ne=E.validateSchema;s+=" var "+x+" = RULES.custom['"+t+"'].definition; var "+F+" = "+x+".validate;"}else{if(M=e.useCustomRule(S,l,e.schema,e),!M)return;b="validate.schema"+u,F=M.code,A=E.compile,N=E.inline,I=E.macro}var Q=F+".errors",j="i"+a,H="ruleErr"+a,W=E.async;if(W&&!e.async)throw new Error("async keyword in sync schema");if(N||I||(s+=""+Q+" = null;"),s+="var "+T+" = errors;var "+p+";",g&&E.$data&&(k+="}",s+=" if ("+b+" === undefined) { "+p+" = true; } else { ",ne&&(k+="}",s+=" "+p+" = "+x+".validateSchema("+b+"); if ("+p+") { ")),N)E.statements?s+=" "+M.validate+" ":s+=" "+p+" = "+M.validate+"; ";else if(I){var ae=e.util.copy(e),k="";ae.level++;var se="valid"+ae.level;ae.schema=M.validate,ae.schemaPath="";var ge=e.compositeRule;e.compositeRule=ae.compositeRule=!0;var ce=e.validate(ae).replace(/validate\.schema/g,F);e.compositeRule=ae.compositeRule=ge,s+=" "+ce}else{var ue=ue||[];ue.push(s),s="",s+="  "+F+".call( ",e.opts.passContext?s+="this":s+="self",A||E.schema===!1?s+=" , "+v+" ":s+=" , "+b+" , "+v+" , validate.schema"+e.schemaPath+" ",s+=" , (dataPath || '')",e.errorPath!='""'&&(s+=" + "+e.errorPath);var ye=o?"data"+(o-1||""):"parentData",Te=o?e.dataPathArr[o]:"parentDataProperty";s+=" , "+ye+" , "+Te+" , rootData )  ";var Se=s;s=ue.pop(),E.errors===!1?(s+=" "+p+" = ",W&&(s+="await "),s+=""+Se+"; "):W?(Q="customErrors"+a,s+=" var "+Q+" = null; try { "+p+" = await "+Se+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+Q+" = e.errors; else throw e; } "):s+=" "+Q+" = null; "+p+" = "+Se+"; "}if(E.modifying&&(s+=" if ("+ye+") "+v+" = "+ye+"["+Te+"];"),s+=""+k,E.valid)h&&(s+=" if (true) { ");else{s+=" if ( ",E.valid===void 0?(s+=" !",I?s+=""+se:s+=""+p):s+=" "+!E.valid+" ",s+=") { ",f=S.keyword;var ue=ue||[];ue.push(s),s="";var ue=ue||[];ue.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(f||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+S.keyword+"' } ",e.opts.messages!==!1&&(s+=` , message: 'should pass "`+S.keyword+`" keyword validation' `),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "),s+=" } "):s+=" {} ";var me=s;s=ue.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+me+"]); ":s+=" validate.errors = ["+me+"]; return false; ":s+=" var err = "+me+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var Ce=s;s=ue.pop(),N?E.errors?E.errors!="full"&&(s+="  for (var "+j+"="+T+"; "+j+"<errors; "+j+"++) { var "+H+" = vErrors["+j+"]; if ("+H+".dataPath === undefined) "+H+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+H+".schemaPath === undefined) { "+H+'.schemaPath = "'+c+'"; } ',e.opts.verbose&&(s+=" "+H+".schema = "+b+"; "+H+".data = "+v+"; "),s+=" } "):E.errors===!1?s+=" "+Ce+" ":(s+=" if ("+T+" == errors) { "+Ce+" } else {  for (var "+j+"="+T+"; "+j+"<errors; "+j+"++) { var "+H+" = vErrors["+j+"]; if ("+H+".dataPath === undefined) "+H+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+H+".schemaPath === undefined) { "+H+'.schemaPath = "'+c+'"; } ',e.opts.verbose&&(s+=" "+H+".schema = "+b+"; "+H+".data = "+v+"; "),s+=" } } "):I?(s+="   var err =   ",e.createErrors!==!1?(s+=" { keyword: '"+(f||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+S.keyword+"' } ",e.opts.messages!==!1&&(s+=` , message: 'should pass "`+S.keyword+`" keyword validation' `),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "),s+=" } "):s+=" {} ",s+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; ")):E.errors===!1?s+=" "+Ce+" ":(s+=" if (Array.isArray("+Q+")) { if (vErrors === null) vErrors = "+Q+"; else vErrors = vErrors.concat("+Q+"); errors = vErrors.length;  for (var "+j+"="+T+"; "+j+"<errors; "+j+"++) { var "+H+" = vErrors["+j+"]; if ("+H+".dataPath === undefined) "+H+".dataPath = (dataPath || '') + "+e.errorPath+";  "+H+'.schemaPath = "'+c+'";  ',e.opts.verbose&&(s+=" "+H+".schema = "+b+"; "+H+".data = "+v+"; "),s+=" } } else { "+Ce+" } "),s+=" } ",h&&(s+=" else { ")}return s}});var _P=pe((Fse,bP)=>{"use strict";O();R();L();var sq=/^[a-z_$][a-z0-9_$-]*$/i,aq=yP();bP.exports={add:oq,get:lq,remove:uq};function oq(r,e){var t=this.RULES;if(t.keywords[r])throw new Error("Keyword "+r+" is already defined");if(!sq.test(r))throw new Error("Keyword "+r+" is not a valid identifier");if(e){if(e.macro&&e.valid!==void 0)throw new Error('"valid" option cannot be used with macro keywords');var n=e.type;if(Array.isArray(n)){var s,a=n.length;for(s=0;s<a;s++)c(n[s]);for(s=0;s<a;s++)u(r,n[s],e)}else n&&c(n),u(r,n,e);var o=e.$data===!0&&this._opts.$data;if(o&&!e.validate)throw new Error('$data support: "validate" function is not defined');var l=e.metaSchema;l&&(o&&(l={anyOf:[l,{$ref:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(l,!0))}t.keywords[r]=t.all[r]=!0;function u(h,f,v){for(var p,T=0;T<t.length;T++){var g=t[T];if(g.type==f){p=g;break}}p||(p={type:f,rules:[]},t.push(p));var b={keyword:h,definition:v,custom:!0,code:aq,implements:v.implements};p.rules.push(b),t.custom[h]=b}function c(h){if(!t.types[h])throw new Error("Unknown type "+h)}return this}function lq(r){var e=this.RULES.custom[r];return e?e.definition:this.RULES.keywords[r]||!1}function uq(r){var e=this.RULES;delete e.keywords[r],delete e.all[r],delete e.custom[r];for(var t=0;t<e.length;t++)for(var n=e[t].rules,s=0;s<n.length;s++)if(n[s].keyword==r){n.splice(s,1);break}return this}});var TP=pe((Vse,cq)=>{cq.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var SP=pe((jse,dq)=>{dq.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var OP=pe((zse,IP)=>{"use strict";O();R();L();var wP=iA(),Wa=Tf(),hq=sA(),CP=oy(),fq=fy(),pq=vA(),mq=cP(),EP=fP(),kP=za();IP.exports=sr;sr.prototype.validate=vq;sr.prototype.compile=yq;sr.prototype.addSchema=bq;sr.prototype.addMetaSchema=_q;sr.prototype.validateSchema=Tq;sr.prototype.getSchema=xq;sr.prototype.removeSchema=Cq;sr.prototype.addFormat=Lq;sr.prototype.errorsText=Oq;sr.prototype._addSchema=Eq;sr.prototype._compile=kq;sr.prototype.compileAsync=gP();var Sy=_P();sr.prototype.addKeyword=Sy.add;sr.prototype.getKeyword=Sy.get;sr.prototype.removeKeyword=Sy.remove;var AP=Sf();sr.ValidationError=AP.Validation;sr.MissingRefError=AP.MissingRef;sr.$dataMetaSchema=EP;var Pf="http://json-schema.org/draft-07/schema",xP=["removeAdditional","useDefaults","coerceTypes"],gq=["/properties"];function sr(r){if(!(this instanceof sr))return new sr(r);r=this._opts=kP.copy(r)||{},$q(this),this._schemas={},this._refs={},this._fragments={},this._formats=pq(r.format);var e=this._schemaUriFormat=this._formats["uri-reference"];this._schemaUriFormatFunc=function(t){return e.test(t)},this._cache=r.cache||new hq,this._loadingSchemas={},this._compilations=[],this.RULES=mq(),this._getId=Aq(r),r.loopRequired=r.loopRequired||1/0,r.errorDataPath=="property"&&(r._errorDataPathProperty=!0),r.serialize===void 0&&(r.serialize=fq),this._metaOpts=Bq(this),r.formats&&Mq(this),Rq(this),typeof r.meta=="object"&&this.addMetaSchema(r.meta),Nq(this)}function vq(r,e){var t;if(typeof r=="string"){if(t=this.getSchema(r),!t)throw new Error('no schema with key or ref "'+r+'"')}else{var n=this._addSchema(r);t=n.validate||this._compile(n)}var s=t(e);return t.$async!==!0&&(this.errors=t.errors),s}function yq(r,e){var t=this._addSchema(r,void 0,e);return t.validate||this._compile(t)}function bq(r,e,t,n){if(Array.isArray(r)){for(var s=0;s<r.length;s++)this.addSchema(r[s],void 0,t,n);return this}var a=this._getId(r);if(a!==void 0&&typeof a!="string")throw new Error("schema id must be string");return e=Wa.normalizeId(e||a),DP(this,e),this._schemas[e]=this._addSchema(r,t,n,!0),this}function _q(r,e,t){return this.addSchema(r,e,t,!0),this}function Tq(r,e){var t=r.$schema;if(t!==void 0&&typeof t!="string")throw new Error("$schema must be a string");if(t=t||this._opts.defaultMeta||Sq(this),!t)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this._formats.uri;this._formats.uri=typeof n=="function"?this._schemaUriFormatFunc:this._schemaUriFormat;var s;try{s=this.validate(t,r)}finally{this._formats.uri=n}
219if(!s&&e){var a="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(a);else throw new Error(a)}return s}function Sq(r){var e=r._opts.meta;return r._opts.defaultMeta=typeof e=="object"?r._getId(e)||e:r.getSchema(Pf)?Pf:void 0,r._opts.defaultMeta}function xq(r){var e=PP(this,r);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return wq(this,r)}}function wq(r,e){var t=Wa.schema.call(r,{schema:{}},e);if(t){var n=t.schema,s=t.root,a=t.baseId,o=wP.call(r,n,s,void 0,a);return r._fragments[e]=new CP({ref:e,fragment:!0,schema:n,root:s,baseId:a,validate:o}),o}}function PP(r,e){return e=Wa.normalizeId(e),r._schemas[e]||r._refs[e]||r._fragments[e]}function Cq(r){if(r instanceof RegExp)return Af(this,this._schemas,r),Af(this,this._refs,r),this;switch(typeof r){case"undefined":return Af(this,this._schemas),Af(this,this._refs),this._cache.clear(),this;case"string":var e=PP(this,r);return e&&this._cache.del(e.cacheKey),delete this._schemas[r],delete this._refs[r],this;case"object":var t=this._opts.serialize,n=t?t(r):r;this._cache.del(n);var s=this._getId(r);s&&(s=Wa.normalizeId(s),delete this._schemas[s],delete this._refs[s])}return this}function Af(r,e,t){for(var n in e){var s=e[n];!s.meta&&(!t||t.test(n))&&(r._cache.del(s.cacheKey),delete e[n])}}function Eq(r,e,t,n){if(typeof r!="object"&&typeof r!="boolean")throw new Error("schema should be object or boolean");var s=this._opts.serialize,a=s?s(r):r,o=this._cache.get(a);if(o)return o;n=n||this._opts.addUsedSchema!==!1;var l=Wa.normalizeId(this._getId(r));l&&n&&DP(this,l);var u=this._opts.validateSchema!==!1&&!e,c;u&&!(c=l&&l==Wa.normalizeId(r.$schema))&&this.validateSchema(r,!0);var h=Wa.ids.call(this,r),f=new CP({id:l,schema:r,localRefs:h,cacheKey:a,meta:t});return l[0]!="#"&&n&&(this._refs[l]=f),this._cache.put(a,f),u&&c&&this.validateSchema(r,!0),f}function kq(r,e){if(r.compiling)return r.validate=s,s.schema=r.schema,s.errors=null,s.root=e||s,r.schema.$async===!0&&(s.$async=!0),s;r.compiling=!0;var t;r.meta&&(t=this._opts,this._opts=this._metaOpts);var n;try{n=wP.call(this,r.schema,e,r.localRefs)}finally{r.compiling=!1,r.meta&&(this._opts=t)}return r.validate=n,r.refs=n.refs,r.refVal=n.refVal,r.root=n.root,n;function s(){var a=r.validate,o=a.apply(null,arguments);return s.errors=a.errors,o}}function Aq(r){switch(r.schemaId){case"auto":return Iq;case"id":return Pq;default:return Dq}}function Pq(r){return r.$id&&this.logger.warn("schema $id ignored",r.$id),r.id}function Dq(r){return r.id&&this.logger.warn("schema id ignored",r.id),r.$id}function Iq(r){if(r.$id&&r.id&&r.$id!=r.id)throw new Error("schema $id is different from id");return r.$id||r.id}function Oq(r,e){if(r=r||this.errors,!r)return"No errors";e=e||{};for(var t=e.separator===void 0?", ":e.separator,n=e.dataVar===void 0?"data":e.dataVar,s="",a=0;a<r.length;a++){var o=r[a];o&&(s+=n+o.dataPath+" "+o.message+t)}return s.slice(0,-t.length)}function Lq(r,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[r]=e,this}function Rq(r){var e;if(r._opts.$data&&(e=TP(),r.addMetaSchema(e,e.$id,!0)),r._opts.meta!==!1){var t=SP();r._opts.$data&&(t=EP(t,gq)),r.addMetaSchema(t,Pf,!0),r._refs["http://json-schema.org/schema"]=Pf}}function Nq(r){var e=r._opts.schemas;if(e)if(Array.isArray(e))r.addSchema(e);else for(var t in e)r.addSchema(e[t],t)}function Mq(r){for(var e in r._opts.formats){var t=r._opts.formats[e];r.addFormat(e,t)}}function DP(r,e){if(r._schemas[e]||r._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function Bq(r){for(var e=kP.copy(r._opts),t=0;t<xP.length;t++)delete e[xP[t]];return e}function $q(r){var e=r._opts.logger;if(e===!1)r.logger={log:Ty,warn:Ty,error:Ty};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");r.logger=e}}function Ty(){}});var RP=pe((Kse,LP)=>{"use strict";O();R();L();LP.exports=function(e,t,n){var s=" ",a=e.level,o=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(o||"");if(e.createErrors!==!1){var v=/\$\{[^\}]+\}/,p=/\$\{([^\}]+)\}/g,T=/^\'\'\s*\+\s*|\s*\+\s*\'\'$/g,g=e.self.getKeyword(t).config,b="_em_dataPath"+a,S="_em_i"+a,x="_em_key"+a,E="_em_keyProp"+a,k="_em_err"+a,A="_em_child"+a,N="_em_childKeyword"+a,I="_em_matches"+a,M="_em_isArray"+a,F="_em_errors"+a,ne="_em_message"+a,Q="_em_paramsErrors"+a,j="_em_propParam"+a,H="_em_keywordPropParams"+a,W="_em_templates"+a,ae=e.util.toQuotedString(e.errSchemaPath);if(s+=" if (errors > 0) { var "+b+" = (dataPath || '') + "+e.errorPath+"; var "+S+", "+k+", "+F+"; ",typeof l=="object"){var se={},ge={},ce={properties:{},items:{}},ue=!1,ye=!1,Te=!1;for(var Se in l)switch(Se){case"properties":for(var me in l.properties)ye=!0,ce.properties[me]=[];break;case"items":for(var Ce=0;Ce<l.items.length;Ce++)Te=!0,ce.items[Ce]=[];break;default:if(typeof l[Se]=="object"){ue=!0,ge[Se]={};for(var me in l[Se])ge[Se][me]=[]}else se[Se]=[]}var Ie=Object.keys(se);if(Ie.length){s+=" "+S+" = 0; "+F+" = "+JSON.stringify(se)+";  var "+W+" = { ";var Pe=!1,We=Ie;if(We)for(var Se,et=-1,Ye=We.length-1;et<Ye;)Se=We[et+=1],v.test(l[Se])&&(Pe&&(s+=","),s+=""+e.util.toQuotedString(Se)+": "+oe(l[Se])+" ",Pe=!0);s+=" }; while ("+S+" < errors) { "+k+" = vErrors["+S+"]; if (  "+k+".keyword != '"+t+"' ",g.options.keepErrors&&(s+=" && !"+k+".emUsed "),s+=" && "+k+".keyword in "+F+" && "+k+".dataPath == "+b+" && "+k+".schemaPath.indexOf("+ae+") == 0 && /^\\/[^\\/]*$/.test("+k+".schemaPath.slice("+e.errSchemaPath.length+"))) { "+F+"["+k+".keyword].push("+k+");  ",g.options.keepErrors?s+=" "+k+".emUsed = true; ":s+=" vErrors.splice("+S+", 1); errors--; ",s+=" } else { "+S+"++; } } ",g.options.singleError&&(s+=" var "+ne+" = ''; var "+Q+" = []; "),s+=" for (var "+x+" in "+F+") { if ("+F+"["+x+"].length) { ",g.options.singleError?(s+=" if ("+ne+") { "+ne+" += ",typeof g.options.singleError=="string"?s+=" "+e.util.toQuotedString(g.options.singleError)+" ":s+=" '; ' ",s+="; } "+ne+" +=   "+x+" in "+W+" ? "+W+"["+x+"] () : validate.schema"+u+"["+x+"]; "+Q+" = "+Q+".concat("+F+"["+x+"]); } } "):s+=" var "+ne+" =   "+x+" in "+W+" ? "+W+"["+x+"] () : validate.schema"+u+"["+x+"]; var "+Q+" = "+F+"["+x+"]; ",s+="  var err = { keyword: '"+t+"' , dataPath: "+b+" , schemaPath: "+ae+" + '/"+t+"' , params: { errors: "+Q+" } , message: "+ne+" ",e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" };  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",g.options.singleError||(s+=" } } ")}if(ue){s+=" "+S+" = 0; "+F+" = "+JSON.stringify(ge)+"; var "+Q+", "+j+"; var "+H+" = "+JSON.stringify(g.KEYWORD_PROPERTY_PARAMS)+";  var "+W+" = { ";var Pe=!1,Je=Object.keys(ge);if(Je)for(var Se,st=-1,Be=Je.length-1;st<Be;){Se=Je[st+=1];var je=l[Se];Pe&&(s+=","),s+=""+e.util.toQuotedString(Se)+": { ",Pe=!0;var pt=!1,mt=Object.keys(je);if(mt)for(var me,Ht=-1,Jt=mt.length-1;Ht<Jt;)me=mt[Ht+=1],v.test(je[me])&&(pt&&(s+=","),s+=""+e.util.toQuotedString(me)+": "+oe(je[me])+" ",pt=!0);s+=" } "}s+=" }; while ("+S+" < errors) { "+k+" = vErrors["+S+"]; if (  "+k+".keyword != '"+t+"' ",g.options.keepErrors&&(s+=" && !"+k+".emUsed "),s+=" && "+k+".keyword in "+F+" && "+k+".dataPath == "+b+" && "+k+".schemaPath.indexOf("+ae+") == 0 && /^\\/[^\\/]*$/.test("+k+".schemaPath.slice("+e.errSchemaPath.length+"))) { "+j+" = "+H+"["+k+".keyword]; "+Q+" = "+F+"["+k+".keyword]["+k+".params["+j+"]]; if ("+Q+") { "+Q+".push("+k+");  ",g.options.keepErrors?s+=" "+k+".emUsed = true; ":s+=" vErrors.splice("+S+", 1); errors--; ",s+=" } } else { "+S+"++; } } for (var "+x+" in "+F+") { for (var "+E+" in "+F+"["+x+"]) { "+Q+" = "+F+"["+x+"]["+E+"]; if ("+Q+".length) { var "+ne+" =   "+x+" in "+W+" && "+E+" in "+W+"["+x+"] ? "+W+"["+x+"]["+E+"] () : validate.schema"+u+"["+x+"]["+E+"];  var err = { keyword: '"+t+"' , dataPath: "+b+" , schemaPath: "+ae+" + '/"+t+"' , params: { errors: "+Q+" } , message: "+ne+" ",e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" };  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } } "}if(ye||Te){if(s+=" var "+M+" = Array.isArray("+f+"); if ",ye&&Te){s+=" (typeof "+f+" == 'object') { ";var yt="["+N+"]";s+=" "+S+" = 0; if ("+M+") { var "+N+" = 'items'; "+F+" = "+JSON.stringify(ce.items)+";    ";var xt=Object.keys(ce.items);s+=" var "+W+" = { ";var Pe=!1,Zt=xt;if(Zt)for(var Se,Ge=-1,St=Zt.length-1;Ge<St;)Se=Zt[Ge+=1],v.test(l.items[Se])&&(Pe&&(s+=","),s+=""+e.util.toQuotedString(Se)+": "+oe(l.items[Se])+" ",Pe=!0);s+=" }; } else { var "+N+" = 'properties'; "+F+" =  "+JSON.stringify(ce.properties)+";    ";var xt=Object.keys(ce.properties);s+=" var "+W+" = { ";var Pe=!1,Vr=xt;if(Vr)for(var Se,Vt=-1,mi=Vr.length-1;Vt<mi;)Se=Vr[Vt+=1],v.test(l.properties[Se])&&(Pe&&(s+=","),s+=""+e.util.toQuotedString(Se)+": "+oe(l.properties[Se])+" ",Pe=!0);s+=" }; } "}else if(ye){s+=" (typeof "+f+" == 'object' && !"+M+") { ";var yt=".properties";s+=" "+S+" = 0; "+F+" = "+JSON.stringify(ce.properties)+";  ";var xt=Object.keys(ce.properties);s+=" var "+W+" = { ";var Pe=!1,B=xt;if(B)for(var Se,C=-1,D=B.length-1;C<D;)Se=B[C+=1],v.test(l.properties[Se])&&(Pe&&(s+=","),s+=""+e.util.toQuotedString(Se)+": "+oe(l.properties[Se])+" ",Pe=!0);s+=" }; "}else{s+=" ("+M+") { ";var yt=".items";s+=" "+S+" = 0; "+F+" = "+JSON.stringify(ce.items)+";  ";var xt=Object.keys(ce.items);s+=" var "+W+" = { ";var Pe=!1,V=xt;if(V)for(var Se,te=-1,he=V.length-1;te<he;)Se=V[te+=1],v.test(l.items[Se])&&(Pe&&(s+=","),s+=""+e.util.toQuotedString(Se)+": "+oe(l.items[Se])+" ",Pe=!0);s+=" }; "}s+=" var "+A+", "+I+"; while ("+S+" < errors) { "+k+" = vErrors["+S+"]; if (  "+k+".keyword != '"+t+"' ",g.options.keepErrors&&(s+=" && !"+k+".emUsed "),s+=" && "+k+".dataPath.indexOf("+b+") == 0 && ("+I+" = "+k+".dataPath.slice("+b+".length).match(/^\\/([^\\/]*)(?:\\/|$)/), "+A+" = "+I+" && "+I+"[1].replace(/~1/g, '/').replace(/~0/g, '~') ) !== undefined && "+A+" in "+F+") { "+F+"["+A+"].push("+k+");  ",g.options.keepErrors?s+=" "+k+".emUsed = true; ":s+=" vErrors.splice("+S+", 1); errors--; ",s+=" } else { "+S+"++; } } for (var "+x+" in "+F+") { if ("+F+"["+x+"].length) { var err = { keyword: '"+t+"' , dataPath: "+b+" + '/' + "+x+".replace(/~/g, '~0').replace(/\\//g, '~1') , schemaPath: "+ae+" + '/"+t+"' , params: { errors: "+F+"["+x+"] } , message: "+x+" in "+W+" ? "+W+"["+x+"] () : validate.schema"+u+yt+"["+x+"] ",e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" };  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } }  }  "}}var fe=typeof l=="string"?l:l._;fe&&(s+=" "+S+" = 0; "+F+" = []; while ("+S+" < errors) { "+k+" = vErrors["+S+"]; if (  "+k+".keyword != '"+t+"' ",g.options.keepErrors&&(s+=" && !"+k+".emUsed "),s+=" && ("+k+".dataPath == "+b+" || ("+k+".dataPath.indexOf("+b+") == 0 && "+k+".dataPath["+b+".length] == '/')) && "+k+".schemaPath.indexOf("+ae+") == 0 && "+k+".schemaPath["+e.errSchemaPath.length+"] == '/') { "+F+".push("+k+");  ",g.options.keepErrors?s+=" "+k+".emUsed = true; ":s+=" vErrors.splice("+S+", 1); errors--; ",s+=" } else { "+S+"++; } } if ("+F+".length) { var err = { keyword: '"+t+"' , dataPath: "+b+" , schemaPath: "+ae+" + '/"+t+"' , params: { errors: "+F+" } , message: "+ee(fe)+" ",e.opts.verbose&&(s+=" , schema: "+e.util.toQuotedString(fe)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" };  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "),s+=" }"}function ee(Me){if(Me=e.util.escapeQuotes(Me),!v.test(Me))return"'"+Me+"'";var Ue="'"+Me.replace(p,function(qe,it){return"' + JSON.stringify("+e.util.getData(it,o,e.dataPathArr)+") + '"})+"'";return Ue.replace(T,"")}function oe(Me){return"function() { return "+ee(Me)+"; }"}return s}});var MP=pe((Zse,NP)=>{"use strict";O();R();L();NP.exports=function(r,e){if(!r._opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");return r._opts.jsonPointers||(console.warn("ajv-errors: Ajv option jsonPointers changed to true"),r._opts.jsonPointers=!0),r.addKeyword("errorMessage",{inline:RP(),statements:!0,valid:!0,errors:"full",config:{KEYWORD_PROPERTY_PARAMS:{required:"missingProperty",dependencies:"property"},options:e||{}},metaSchema:{type:["string","object"],properties:{properties:{$ref:"#/definitions/stringMap"},items:{$ref:"#/definitions/stringList"},required:{$ref:"#/definitions/stringOrMap"},dependencies:{$ref:"#/definitions/stringOrMap"}},additionalProperties:{type:"string"},definitions:{stringMap:{type:["object"],additionalProperties:{type:"string"}},stringOrMap:{type:["string","object"],additionalProperties:{type:"string"}},stringList:{type:["array"],items:{type:"string"}}}}}),r}});var qP=pe((iae,UP)=>{O();R();L();var kn=Z(Ae()),$P=Z(OP()),FP=Z(MP()),xy=new $P.default({allErrors:!0,jsonPointers:!0});(0,FP.default)(xy);var Fq=function(r){var e=this;let t=r;var n=(0,kn.default)(e.$el).serializeArray();this.data={},(0,kn.default)(n).each((s,a)=>{e.data[a.name]=a.value}),kn.default.ajax({method:"GET",url:t}).done(s=>{var a=xy.compile(s);o(e.data);function o(l){var u=a(l);u?(BP.call(e),Uq.call(e)):(BP.call(e),qq.call(e,a.errors),console.log("Invalid: "+xy.errorsText(a.errors)))}})},Uq=function(){this.data.blockId=this.$blockId,this.data.language=this.$language;var r={__RequestVerificationToken:this.$csrfToken,requestModel:this.data};kn.default.ajax({url:this.$dataWebservice,method:"POST",dataType:"json",data:r}).done(()=>{this.$dataAction!==void 0&&(window.location.href=this.$dataAction),this.$el.find(".form-data").css("display","none"),this.$el.find(".form-submission-message").css("display","block")}).fail(e=>{e&&e.responseJSON&&e.responseJSON.errorMessage==="CSRFERROR"&&(window.location.href=e.responseJSON.redirectUrl),this.$failedRequest.css("display","inline-block")})},BP=function(){let r=this.$el.find(".error-message"),e=this.$el.find("input"),t=this.$el.find("select");r.each(function(){(0,kn.default)(this).css("display","none")}),e.each(function(){(0,kn.default)(this).removeClass("error")}),t.each(function(){(0,kn.default)(this).removeClass("error")})},qq=function(r){r!==null&&r.map(e=>{let t=e.dataPath.replace("/",".");this.$el.find("input"+t).addClass("error"),this.$el.find("select"+t).addClass("error");let n=(0,kn.default)(this.$el).find(`.error-message${t}`);n.css("display","inline-block");let s=n.attr("data-error-message"),a=typeof s=="string"&&s.trim().length>0?s:e.message;n.text(a),this.$el.find("#newsletterEmail").focus()})},Hq=function(){this.$privacyCheckbox.prop("checked")&&this.$submit.prop("disabled",!1),this.$submit.click(r=>{r.preventDefault(),Fq.call(this,this.$schema)}),this.$privacyCheckbox.click(r=>{r.target.checked?this.$submit.prop("disabled",!1):this.$submit.prop("disabled",!0)})},Vq=function(r){this.$el=(0,kn.default)(r),this.$schema=this.$el.attr("data-schema"),this.$dataWebservice=this.$el.attr("data-webservice"),this.$dataAction=this.$el.attr("data-action"),this.$blockId=this.$el.attr("data-block"),this.$language=this.$el.attr("data-language"),this.$submit=this.$el.find('button[type="submit"]'),this.$privacyCheckbox=this.$el.find('input[type="checkbox"]'),this.$failedRequest=this.$el.find(".failed-submit-message"),this.$csrfToken=this.$el.find("input[name=__RequestVerificationToken]").val(),this.data={},Hq.call(this)};UP.exports=Vq});var Cy=pe((oae,GP)=>{"use strict";O();R();L();function jq(r){return r&&typeof r=="object"&&"default"in r?r.default:r}var bl=jq(Ae()),HP=0,zq={item:".item",target:".target",control:".target",panel:".panel",allowMultiple:!0,attribute:"data-status",expanded:"expanded",contracted:"contracted",prefix:"Accordion-",transition:"height .3s",transitionSupport:!0,setFocus:"none",hashEnabled:!1},Wq=function(e){var t=e-1;
219t<0&&(t=this.items.length-1),this.items[t].target.focus()},Gq=function(e){var t=e+1;t>=this.items.length&&(t=0),this.items[t].target.focus()},Qq=function(e){var t=this.opts.setFocus;switch(t){case"item":e.el.focus();break;case"panel":case"target":case"control":e[t].focus();break;case"first":e.$panel.find("a, :input").first().each(function(){this.focus()});break}},VP=function(e){var t=this.items[e];t.$el.removeAttr("style"),t.isExpanded?Qq.call(this,t):t.$panel.attr("aria-hidden","true"),t.inTransition=!1},jP=function(e){var t=this.items[e];if(!t.isExpanded){var n=t.$control.outerHeight();t.inTransition||(t.$el.height(n),t.el.getBoundingClientRect(),t.el.style.transition=this.opts.transition,t.inTransition=!0),t.$el.attr(this.opts.attribute,this.opts.expanded),t.$target.attr("aria-expanded","true"),this.opts.allowMultiple||t.$target.attr("aria-selected","true"),t.$panel.attr("aria-hidden","false");var s=t.$panel.outerHeight();this.opts.transitionSupport&&t.$el.height(n+s),t.isExpanded=!0,this.opts.setFocus==="target"&&t.target.focus()}},wy=function(e){var t=this.items[e];if(t.isExpanded){var n=t.$control.outerHeight();if(!t.inTransition){var s=t.$panel.outerHeight();t.$el.height(n+s),t.el.getBoundingClientRect(),t.el.style.transition=this.opts.transition,t.inTransition=!0}t.$el.attr(this.opts.attribute,this.opts.contracted),t.$target.attr("aria-expanded","false"),this.opts.allowMultiple||t.$target.attr("aria-selected","false"),this.opts.transitionSupport&&t.$el.height(n),t.isExpanded=!1,this.opts.transitionSupport||VP.call(this,e)}},zP=function(e){var t=this;this.items.forEach(function(n,s){s!==e&&n.isExpanded&&wy.call(t,s)})},Df=function(e){var t=this.items[e];if(t.isExpanded){wy.call(this,e);return}this.opts.allowMultiple||zP.call(this,e),jP.call(this,e)},Kq=function(e,t){if(e.which===13||e.which===32){e.preventDefault(),Df.call(this,t);return}if(e.which===35){e.preventDefault(),this.items[this.items.length-1].target.focus();return}if(e.which===36){e.preventDefault(),this.items[0].target.focus();return}if(e.which===37||e.which===38){e.preventDefault(),Wq.call(this,t);return}if(e.which===39||e.which===40){e.preventDefault(),Gq.call(this,t);return}},Xq=function(){var e=this;this.items.forEach(function(t,n){t.$target.on("click",function(s){e._enabled&&(s.preventDefault(),Df.call(e,n))}),t.$el.on("transitionend",function(s){!e._enabled||s.target!==s.delegateTarget||VP.call(e,n)}),t.$target.on("keydown",function(s){e._enabled&&Kq.call(e,s,n)})}),bl(window).on("hashchange",function(){e.opts.hashEnabled&&e._enabled&&WP.call(e)})},Yq=function(){this.items.forEach(function(e,t){e.$target.off("click keydown"),e.$el.off("transitionend")}),this._enabled=!1},Jq=function(){var e=this;return bl.map(this.$el.find(this.opts.item),function(t,n){var s=bl(t),a=s.find(e.opts.target),o=e.opts.target===e.opts.control?a:s.find(e.opts.control),l=s.find(e.opts.panel);a.attr("role")||a.attr("role","tab"),l.attr("role")||l.attr("role","tabpanel");var u=s.attr(e.opts.attribute),c=u===e.opts.expanded;switch(u||s.attr(e.opts.attribute,c?e.opts.expanded:e.opts.contracted),a.attr("aria-expanded",c),e.opts.allowMultiple||a.attr("aria-selected",c),l.attr("aria-hidden",!c),e.opts.setFocus){case"item":if(s.attr("tabindex"))return;s.attr("tabindex","-1");break;case"panel":if(l.attr("tabindex"))return;l.attr("tabindex","-1");break;case"target":if(a.attr("tabindex"))return;a.attr("tabindex","0");break;case"control":if(o.attr("tabindex"))return;o.attr("tabindex","-1");break}var h=a.attr("id");return h?a.attr("data-original-id",!0):(h=e.opts.prefix+e.count+"-"+(n+1),a.attr("id",h)),l.attr("aria-labelledby")?l.attr("data-original-labelledBy",!0):l.attr("aria-labelledby",h),{$el:s,el:t,$target:a,target:a[0],$control:o,control:o[0],$panel:l,panel:l[0],isExpanded:c,inTransition:!1}})},Zq=function(){var e=this;this.$el.removeAttr("role aria-multiselectable"),this.$el.find(this.opts.item).each(function(){var t=bl(this),n=t.find(e.opts.target),s=e.opts.target===e.opts.control?n:t.find(e.opts.control),a=t.find(e.opts.panel);t.removeAttr("tabindex"),n.removeAttr("role aria-expanded aria-selected tabindex"),a.removeAttr("role aria-hidden tabindex"),s.removeAttr("tabindex"),n.attr("data-original-id")?n.removeAttr("data-original-id"):n.removeAttr("id"),a.attr("data-original-labelledBy")?a.removeAttr("data-original-labelledBy"):a.removeAttr("aria-labelledby")})},eH=function(){Zq.call(this),Yq.call(this)},WP=function(){var e=this;if(document.location.hash){var t=document.location.hash.split("#")[1];
219e.items.forEach(function(n,s){var a=n.el.dataset.hash;a===t&&Df.call(e,s)})}},Qs=function(e,t){HP+=1,this.count=HP,this.$el=bl(e),this.opts=bl.extend({},zq,t),this._enabled=!0,this.$el.attr("role")||this.$el.attr("role","tablist"),this.opts.allowMultiple&&this.$el.attr("aria-multiselectable","true"),this.items=Jq.call(this),Xq.call(this),this.opts.hashEnabled&&WP.call(this)};Qs.prototype.activate=Df;Qs.prototype.expand=jP;Qs.prototype.contract=wy;Qs.prototype.contractAll=zP;Qs.prototype.enable=function(){return this._enabled=!0,this};Qs.prototype.disable=function(){return this._enabled=!1,this};Qs.prototype.destroy=eH;GP.exports=Qs});var ZP=pe((dae,JP)=>{"use strict";O();R();L();function XP(r){return r&&typeof r=="object"&&"default"in r?r.default:r}var mr=XP(Ae()),tH=XP(En()),QP=0,rH={tablist:".tablist",tab:".tab",panel:".panel",prefix:"Tabs-",hashEnabled:!1,direction:"horizontal",firstOpen:0},If={left:37,right:39,up:38,down:40},Ey=function(){let e=this.index-1;e<0&&(e=this.len-1),oc.call(this,e)},ky=function(){let e=this.index+1;e>=this.len&&(e=0),oc.call(this,e)},KP=function(e,t){if(e.which===If.left&&this.opts.direction==="horizontal"){e.preventDefault(),Ey.call(this,t);return}if(e.which===If.right&&this.opts.direction==="horizontal"){e.preventDefault(),ky.call(this,t);return}if(e.which===If.up&&this.opts.direction==="vertical"){e.preventDefault(),Ey.call(this,t);return}if(e.which===If.down&&this.opts.direction==="vertical"){e.preventDefault(),ky.call(this,t);return}},oc=function(e){if(e===this.index)return;let t=this.index;this.index=e,this.$tabs.eq(t).attr({"aria-selected":!1,tabindex:-1}),this.$panels.eq(t).attr({"aria-hidden":!0,tabindex:-1}),this.$tabs.eq(e).attr({"aria-selected":!0,tabindex:0})[0].focus(),this.$panels.eq(e).attr({"aria-hidden":!1,tabindex:0}),this.emit("update",e)},iH=function(){var e=this;e.$tabs.on("click",t=>{oc.call(e,e.$tabs.index(t.currentTarget))}),e.$tabs.on("keydown",t=>{KP.call(e,t)}),e.$panels.on("keydown",t=>{t.ctrlKey&&KP.call(e,t)}),mr(window).on("hashchange",function(){e.opts.hashEnabled&&e._enabled&&YP.call(e)})},nH=function(){this.$tabs.off("click keydown"),this.$panels.off("keydown"),this._enabled=!1},sH=function(){this.$tablist.attr("role")||this.$tablist.attr("role","tablist"),this.$tabs.each((e,t)=>{var n=mr(t).attr("id");mr(t).attr({role:"tab",tabindex:e===this.index?0:-1,"aria-selected":e===this.index}),n?mr(t).attr("data-original-id",!0):mr(t).attr({id:this.opts.prefix+this.count+"-"+(e+1)})}),this.$panels.each((e,t)=>{var n=mr(t).attr("aria-labelledby");mr(t).attr({role:"tabpanel",tabindex:e===this.index?0:-1,"aria-hidden":e!==this.index}),n?mr(t).attr("data-original-labelledBy",!0):mr(t).attr({"aria-labelledby":this.opts.prefix+this.count+"-"+(e+1)})})},aH=function(){this.$tablist.removeAttr("role"),this.$tabs.each((e,t)=>{var n=mr(t).attr("id");mr(t).attr("data-original-id")||mr(t).removeAttr("id"),mr(t).removeAttr("role tabindex aria-selected data-original-id")}),this.$panels.each((e,t)=>{var n=mr(t).attr("aria-labelledby");mr(t).attr("data-original-labelledBy")||mr(t).removeAttr("aria-labelledby"),mr(t).removeAttr("role tabindex aria-hidden data-original-labelledBy")})},oH=function(){aH.call(this),nH.call(this)},YP=function(){var e=this;if(document.location.hash){var t=document.location.hash.split("#")[1],n=e.$tabs.filter('[data-hash="'+t+'"]');n.length>0&&oc.call(e,n.index())}},_l=function(e,t){QP+=1,this.count=QP,this.opts=mr.extend({},rH,t),this.$el=mr(e),this.$tablist=this.$el.find(this.opts.tablist),this.$tabs=this.$el.find(this.opts.tab),this.$panels=this.$el.find(this.opts.panel),this._enabled=!0,this.len=this.$tabs.length,this.index=this.opts.firstOpen,sH.call(this),iH.call(this),this.opts.hashEnabled&&YP.call(this)};tH(_l);_l.prototype.activate=oc;_l.prototype.activateNext=ky;_l.prototype.activatePrevious=Ey;_l.prototype.destroy=oH;JP.exports=_l});var tD=pe((mae,eD)=>{O();R();L();var gt=Z(Ae());function lH(r){(0,gt.default)(r).closest("div.column")&&(0,gt.default)(r).closest("div.column").find("div.content a")&&(0,gt.default)(r).closest("div.column").find("div.content a").length>0&&(0,gt.default)(r).closest("div.column").find("div.content a")[0].click()}function uH(r){window.location.href=r}var cH=()=>{(0,gt.default)("#Cart .Cart-items li.cart-item").each(function(){let r=(0,gt.default)(this).find("a").attr("href");r===""||r===void 0||((0,gt.default)(this).find(".sku-price").on("click",()=>{window.location=r}),(0,gt.default)(this).find(".sku").on("keyup",e=>{var t=e.which;t=="13"&&(window.location=r)}),(0,gt.default)(this).find(".product-image").on("click",()=>{window.location=r}))})},dH=()=>{(0,gt.default)(".history-page").length!==0&&(0,gt.default)(".Reorder-list-block li.history-list").each(function(){(0,gt.default)(this).find(".Reorder-list li.product-item").each(function(){let r=(0,gt.default)(this).find("a").attr("href");r===""||r===void 0||((0,gt.default)(this).find(".sku-link").on("click",()=>{window.location=r}),(0,gt.default)(this).find(".img-link").on("click",()=>{window.location=r}))})})},hH=()=>{(0,gt.default)(".Account-list").length!==0&&(0,gt.default)(".Reorder-list-block").each(function(){(0,gt.default)(this).find(".Reorder-list li.product-item").each(function(){let r=(0,gt.default)(this).find("a").attr("href");r===""||r===void 0||((0,gt.default)(this).find(".sku-link").on("click",()=>{window.location=r}),(0,gt.default)(this).find(".img-link").on("click",()=>{window.location=r}))})})},fH=()=>
219{if((0,gt.default)(".checkout-wrapper")){var r=(0,gt.default)(".Checkout-account"),e=(0,gt.default)(".Checkout-shipping"),t=(0,gt.default)(".Checkout-billing"),n=r.attr("data-expanded"),s=r.attr("data-status"),a=e.attr("data-expanded"),o=e.attr("data-status");n==="true"&&s==="default"&&(r.find(".panel").css("display","block"),r.find(".completed-block").css("display","none"),e.find(".panel").css("display","none"),e.find(".completed-block").css("display","none"),t.find("#paymentWindowContainer").css("display","none")),n==="false"&&s==="complete"&&(r.find(".panel").css("display","none"),r.find(".completed-block").css("display","block"),e.find(".panel").css("display","none"),e.find(".completed-block").css("display","none"),t.find("#paymentWindowContainer").css("display","none")),(a==="true"&&o==="default"||o==="error")&&(r.find(".panel").css("display","none"),r.find(".completed-block").css("display","block"),e.find(".panel").css("display","block"),e.find(".completed-block").css("display","none"),t.find(".panel").css("display","none")),a==="false"&&o==="complete"&&(r.find(".panel").css("display","none"),r.find(".completed-block").css("display","block"),e.find(".panel").css("display","none"),e.find(".completed-block").css("display","block"),t.find("#paymentWindowContainer").css("display","block"))}},pH=function(){(0,gt.default)("html .image-grid-div-trigger-click").off("click").on("click",r=>{lH(r.target)}),(0,gt.default)("html .product-info-div-click").off("click").on("click",r=>{var e=(0,gt.default)("html .product-info-div-click").data("div-click-url");e&&uH(e)}),(0,gt.default)('a[href^="#"]').on("click",function(){window.location.hash=gt.default.attr(this,"href").substr(1)}),cH.call(this),fH.call(this),dH.call(this),hH.call(this)},mH=function(r){this.$el=(0,gt.default)(r),pH.call(this)};eD.exports=mH});var lc=pe((Tae,aD)=>{O();R();L();var Ke=Z(Ae());Tt();lr();var rD=Z(Cy()),iD=Z(ZP()),nD=Z(tD()),Ay=749,Of=(0,Ke.default)(window).width(),gH=function(){Of=(0,Ke.default)(window).width(),sD.call(this)},vH=function(){(0,Ke.default)(window).on("resize",vi(gH.bind(this),150)),new nD.default},sD=function(){if(this.type==="tablist"&&this.mediaQuery.matches||this.type==="tablist-only"){let t=this.$el.find('[data-status="expanded"]'),n=this.$el.find(".item").index(t);if(new iD.default(this.$el,{firstOpen:n}),n<=0){var r=this.$el.find('[role="tab"]').first();r.attr("tabindex","0"),r.focus(function(){this.click()});var e=this.$el.find('[role="radio"]').first();e.attr("tabindex","0").trigger("click"),e.focus(function(){e.click()})}}else new rD.default(this.$el),(0,Ke.default)("#product-media-section").removeAttr("aria-hidden"),(0,Ke.default)(".Accordion").removeAttr("aria-multiselectable"),(0,Ke.default)(".Content-container-block").removeAttr("aria-multiselectable"),Of>Ay?((0,Ke.default)(".Sub-navigation .Accordion .item").attr("data-status","expanded"),(0,Ke.default)('.Sub-navigation .Accordion .target[role="tab"]').attr("aria-expanded",!0),(0,Ke.default)('.Sub-navigation .Accordion .panel[role="tabpanel"]').attr("aria-hidden",!1),(0,Ke.default)('.Sub-navigation .Accordion .panel[role="tabpanel"] li a').attr("tabindex",0),(0,Ke.default)(".Accordion").removeAttr("role").removeAttr("aria-multiselectable"),(0,Ke.default)(".Accordion .target").removeAttr("role"),(0,Ke.default)(".Accordion .panel").removeAttr("role").removeAttr("aria-labelledby"),this.$el.removeAttr("role"),this.$el.find(".tablist").removeAttr("role"),this.$el.find(".target").removeAttr("role"),this.$el.find(".panel").removeAttr("role"),(0,Ke.default)("#CategoryFiltersForm .Accordion .target").off("click"),(0,Ke.default)(".Content-container-block .target").attr("role","button"),(0,Ke.default)(".Contact-methods .cell .panel").attr("aria-hidden",!1),(0,Ke.default)(".Product-specs-block .product-block #specs-section.panel").attr("aria-hidden",!1),(0,Ke.default)(".Card-list.Accordion .panel").attr("aria-hidden",!1)):((0,Ke.default)('.Sub-navigation .Accordion .panel[role="tabpanel"]').attr("aria-hidden",!1),(0,Ke.default)(".Accordion").removeAttr("role").removeAttr("aria-multiselectable"),(0,Ke.default)(".Accordion .target").attr("role","button").attr("tabindex",0),(0,Ke.default)(".Accordion .panel").removeAttr("role"),(0,Ke.default)(".Cart-items .Accordion .target").removeAttr("role"),this.$el.removeAttr("role"),this.$el.find(".target").attr("role","button"),this.$el.find(".panel").removeAttr("role")),this.mediaQuery.matches&&((0,Ke.default)(".Search-dropdown-menu").length&&((0,Ke.default)(".Search-dropdown-menu .Accordion .target").removeAttr("aria-expanded").removeAttr("role").removeAttr("tabindex"),(0,Ke.default)(".Search-dropdown-menu .Accordion .panel").removeAttr("aria-hidden")),(0,Ke.default)("#CategoryFiltersForm").length&&((0,Ke.default)("#CategoryFiltersForm .Accordion .target").removeAttr("aria-expanded").removeAttr("role"),(0,Ke.default)("#CategoryFiltersForm .Accordion .panel").removeAttr("aria-hidden")),(0,Ke.default)("#FooterContent").length&&((0,Ke.default)("#FooterContent .Accordion .target").removeAttr("aria-expanded"),(0,Ke.default)("#FooterContent .Accordion .panel").removeAttr("aria-hidden")),(0,Ke.default)("section.Account-settings").length&&((0,Ke.default)("section.Account-settings .Accordion .target").removeAttr("aria-expanded").removeAttr("role"),(0,Ke.default)("section.Account-settings .Accordion .panel").removeAttr("aria-hidden")),(0,Ke.default)("section.Address-book-main").length&&((0,Ke.default)("section.Address-book-main .Accordion .target").removeAttr("aria-expanded").removeAttr("role"),(0,Ke.default)("section.Address-book-main .Accordion .panel").removeAttr("aria-hidden")),(0,Ke.default)('body[data-template="Product-detail-template"]').length&&setTimeout(function(){(0,Ke.default)("section.container").off("click").unbind("click"),(0,Ke.default)("section.container").each(function(){(0,Ke.default)(this).hasClass("recommendation-sli
219der")||(0,Ke.default)(this).find("*").not(".recommendation-slider, .recommendation-slider *").off("click").unbind("click")}),(0,Ke.default)("section.container .Accordion .target").removeAttr("aria-expanded"),(0,Ke.default)("section.container .Accordion .target .heading-block"),(0,Ke.default)("section.container .Accordion .panel").removeAttr("aria-hidden").removeAttr("aria-labelledby")},500))},yH=function(r){this.$el=(0,Ke.default)(r),this.type=this.$el.attr("data-widget"),this.mediaQuery=window.matchMedia(nt.gtLarge),sD.call(this),vH.call(this)};Of>Ay?(0,Ke.default)('#FooterContent .panel[role="tabpanel"]').attr("aria-hidden",!1):(0,Ke.default)('#FooterContent .target[role="tab"]').attr("tabindex",0);setInterval(()=>{Of<=Ay||(0,Ke.default)('#FooterContent .panel[role="tabpanel"]').attr("aria-hidden",!1)},500);aD.exports=yH});var sn=pe((hD,fD)=>{O();R();L();(function(r){"use strict";typeof define=="function"&&define.amd?define(["jquery"],r):typeof hD<"u"?fD.exports=r(Ae()):r(jQuery)})(function(r){"use strict";var e=window.Slick||{};e=function(){var t=0;function n(s,a){var o=this,l;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:r(s),appendDots:r(s),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(u,c){return r('<button type="button" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},r.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=r(s),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,l=r(s).data("slick")||{},o.options=r.extend({},o.defaults,a,l),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,typeof document.mozHidden<"u"?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):typeof document.webkitHidden<"u"&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=r.proxy(o.autoPlay,o),o.autoPlayClear=r.proxy(o.autoPlayClear,o),o.autoPlayIterator=r.proxy(o.autoPlayIterator,o),o.changeSlide=r.proxy(o.changeSlide,o),o.clickHandler=r.proxy(o.clickHandler,o),o.selectHandler=r.proxy(o.selectHandler,o),o.setPosition=r.proxy(o.setPosition,o),o.swipeHandler=r.proxy(o.swipeHandler,o),o.dragHandler=r.proxy(o.dragHandler,o),o.keyHandler=r.proxy(o.keyHandler,o),o.instanceUid=t++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}return n}(),e.prototype.activateADA=function(){var t=this;t.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(t,n,s){var a=this;if(typeof n=="boolean")s=n,n=null;else if(n<0||n>=a.slideCount)return!1;a.unload(),typeof n=="number"?n===0&&a.$slides.length===0?r(t).appendTo(a.$slideTrack):s?r(t).insertBefore(a.$slides.eq(n)):r(t).insertAfter(a.$slides.eq(n)):s===!0?r(t).prependTo(a.$slideTrack):r(t).appendTo(a.$slideTrack),a.$slides=a.$slideTrack.children(this.options.slide),a.$slideTrack.children(this.options.slide).detach(),a.$slideTrack.append(a.$slides),a.$slides.each(function(o,l){r(l).attr("data-slick-index",o)}),a.$slidesCache=a.$slides,a.reinit()},e.prototype.animateHeight=function(){var t=this;if(t.options.slidesToShow===1&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var n=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:n},t.options.speed)}},e.prototype.animateSlide=function(t,n){var s={},a=this;a.animateHeight(),a.options.rtl===!0&&a.options.vertical===!1&&(t=-t),a.transformsEnabled===!1?a.options.vertical===!1?a.$slideTrack.animate({left:t},a.options.speed,a.options.easing,n):a.$slideTrack.animate({top:t},a.options.speed,a.options.easing,n):a.cssTransitions===!1?(a.options.rtl===!0&&(a.currentLeft=-a.currentLeft),r({animStart:a.currentLeft}).animate({animStart:t},{duration:a.options.speed,easing:a.options.easing,step:function(o){o=Math.ceil(o),a.options.vertical===!1?(s[a.animType]="translate("+o+"px, 0px)",a.$slideTrack.css(s)):(s[a.animType]="translate(0px,"+o+"px)",a.$slideTrack.css(s))},complete:function(){n&&n.call()}})):(a.applyTransition(),t=Math.ceil(t),a.options.vertical===!1?s[a.animType]="translate3d("+t+"px, 0px, 0px)":s[a.animType]="translate3d(0px,"+t+"px, 0px)",a.$slideTrack.css(s),n&&setTimeout(function(){a.disableTransition(),n.call()},a.options.speed))},e.prototype.getNavTarget=function(){var t=this,n=t.options.asNavFor;return n&&n!==null&&(n=r(n).not(t.$slider)),n},e.prototype.asNavFor=function(t){var n=this,s=n.getNavTarget();s!==null&&typeof s=="object"&&s.each(function(){var a=r(this).slick("getSlick");a.unslicked||a.slideHandler(t,!0)})},e.prototype.applyTransition=function(t){var n=this,s={};n.options.fade===!1?s[n.transitionType]=n.transformType+" "+n.options.speed+"ms "+n.options.cssEase:s[n.transitionType]="opacity "+n.options.speed+"ms "+n.options.cssEase,n.options.fade===!1?n.$slideTrack.css(s):n.$slides.eq(t).css(s)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,n=t.currentSlide+t.options.slidesToScroll;!t.paused&&!t.interrupted&&!t.focussed&&(t.options.infinite===!1&&(t.direction===1&&t.currentSlide+1===t.slideCount-1?t.direction=0:t.direction===0&&(n=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1===0&&(t.direction=1))),t.slideHandler(n))},e.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&(t.$prevArrow=r(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=r(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var t=this,n,s;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(t.$slider.addClass("slick-dotted"),s=r("<ul />
219").addClass(t.options.dotsClass),n=0;n<=t.getDotCount();n+=1)s.append(r("<li />").append(t.options.customPaging.call(this,t,n)));t.$dots=s.appendTo(t.options.appendDots),t.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(n,s){r(s).attr("data-slick-index",n).data("originalStyling",r(s).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=t.slideCount===0?r('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),(t.options.centerMode===!0||t.options.swipeToSlide===!0)&&(t.options.slidesToScroll=1),r("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses(typeof t.currentSlide=="number"?t.currentSlide:0),t.options.draggable===!0&&t.$list.addClass("draggable")},e.prototype.buildRows=function(){var t=this,n,s,a,o,l,u,c;if(o=document.createDocumentFragment(),u=t.$slider.children(),t.options.rows>0){for(c=t.options.slidesPerRow*t.options.rows,l=Math.ceil(u.length/c),n=0;n<l;n++){var h=document.createElement("div");for(s=0;s<t.options.rows;s++){var f=document.createElement("div");for(a=0;a<t.options.slidesPerRow;a++){var v=n*c+(s*t.options.slidesPerRow+a);u.get(v)&&f.appendChild(u.get(v))}h.appendChild(f)}o.appendChild(h)}t.$slider.empty().append(o),t.$slider.children().children().children().css({width:100/t.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(t,n){var s=this,a,o,l,u=!1,c=s.$slider.width(),h=window.innerWidth||r(window).width();if(s.respondTo==="window"?l=h:s.respondTo==="slider"?l=c:s.respondTo==="min"&&(l=Math.min(h,c)),s.options.responsive&&s.options.responsive.length&&s.options.responsive!==null){o=null;for(a in s.breakpoints)s.breakpoints.hasOwnProperty(a)&&(s.originalSettings.mobileFirst===!1?l<s.breakpoints[a]&&(o=s.breakpoints[a]):l>s.breakpoints[a]&&(o=s.breakpoints[a]));o!==null?s.activeBreakpoint!==null?(o!==s.activeBreakpoint||n)&&(s.activeBreakpoint=o,s.breakpointSettings[o]==="unslick"?s.unslick(o):(s.options=r.extend({},s.originalSettings,s.breakpointSettings[o]),t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),u=o):(s.activeBreakpoint=o,s.breakpointSettings[o]==="unslick"?s.unslick(o):(s.options=r.extend({},s.originalSettings,s.breakpointSettings[o]),t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),u=o):s.activeBreakpoint!==null&&(s.activeBreakpoint=null,s.options=s.originalSettings,t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t),u=o),!t&&u!==!1&&s.$slider.trigger("breakpoint",[s,u])}},e.prototype.changeSlide=function(t,n){var s=this,a=r(t.currentTarget),o,l,u;switch(a.is("a")&&t.preventDefault(),a.is("li")||(a=a.closest("li")),u=s.slideCount%s.options.slidesToScroll!==0,o=u?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":l=o===0?s.options.slidesToScroll:s.options.slidesToShow-o,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-l,!1,n);break;case"next":l=o===0?s.options.slidesToScroll:o,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+l,!1,n);break;case"index":var c=t.data.index===0?0:t.data.index||a.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(c),!1,n),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var n=this,s,a;if(s=n.getNavigableIndexes(),a=0,t>s[s.length-1])t=s[s.length-1];else for(var o in s){if(t<s[o]){t=a;break}a=s[o]}return t},e.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&t.$dots!==null&&(r("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",r.proxy(t.interrupt,t,!0)).off("mouseleave.slick",r.proxy(t.interrupt,t,!1)),t.options.accessibility===!0&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),t.options.accessibility===!0&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.
219slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),r(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),t.options.accessibility===!0&&t.$list.off("keydown.slick",t.keyHandler),t.options.focusOnSelect===!0&&r(t.$slideTrack).children().off("click.slick",t.selectHandler),r(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),r(window).off("resize.slick.slick-"+t.instanceUid,t.resize),r("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),r(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},e.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",r.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",r.proxy(t.interrupt,t,!1))},e.prototype.cleanUpRows=function(){var t=this,n;t.options.rows>0&&(n=t.$slides.children().children(),n.removeAttr("style"),t.$slider.empty().append(n))},e.prototype.clickHandler=function(t){var n=this;n.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),r(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){r(this).attr("style",r(this).data("originalStyling"))}),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},e.prototype.disableTransition=function(t){var n=this,s={};s[n.transitionType]="",n.options.fade===!1?n.$slideTrack.css(s):n.$slides.eq(t).css(s)},e.prototype.fadeSlide=function(t,n){var s=this;s.cssTransitions===!1?(s.$slides.eq(t).css({zIndex:s.options.zIndex}),s.$slides.eq(t).animate({opacity:1},s.options.speed,s.options.easing,n)):(s.applyTransition(t),s.$slides.eq(t).css({opacity:1,zIndex:s.options.zIndex}),n&&setTimeout(function(){s.disableTransition(t),n.call()},s.options.speed))},e.prototype.fadeSlideOut=function(t){var n=this;n.cssTransitions===!1?n.$slides.eq(t).animate({opacity:0,zIndex:n.options.zIndex-2},n.options.speed,n.options.easing):(n.applyTransition(t),n.$slides.eq(t).css({opacity:0,zIndex:n.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var n=this;t!==null&&(n.$slidesCache=n.$slides,n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.filter(t).appendTo(n.$slideTrack),n.reinit())},e.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(n){n.stopImmediatePropagation();var s=r(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=s.is(":focus"),t.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,n=0,s=0,a=0;if(t.options.infinite===!0)if(t.slideCount<=t.options.slidesToShow)++a;else for(;n<t.slideCount;)++a,n=s+t.options.slidesToScroll,s+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(t.options.centerMode===!0)a=t.slideCount;else if(!t.options.asNavFor)a=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);else for(;n<t.slideCount;)++a,n=s+t.options.slidesToScroll,s+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return a-1},e.prototype.getLeft=function(t){var n=this,s,a,o=0,l,u;return n.slideOffset=0,a=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,u=-1,n.options.vertical===!0&&n.options.centerMode===!0&&(n.options.slidesToShow===2?u=-1.5:n.options.slidesToShow===1&&(u=-2)),o=a*n.options.slidesToShow*u),n.slideCount%n.options.slidesToScroll!==0&&t+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(t>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(t-n.slideCount))*n.slideWidth*-1,o=(n.options.slidesToShow-(t-n.slideCount))*a*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,o=n.slideCount%n.options.slidesToScroll*a*-1))):t+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(t+n.options.slidesToShow-n.slideCount)*n.slideWidth,o=(t+n.options.slidesToShow-n.slideCount)*a),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,o=0),n.options.centerMode===!0&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),n.options.vertical===!1?s=t*n.slideWidth*-1+n.slideOffset:s=t*a*-1+o,n.options.variableWidth===!0&&(n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?l=n.$slideTrack.children(".slick-slide").eq(t):l=n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow),n.options.rtl===!0?l[0]?s=(n.$slideTrack.width()-l[0].offsetLeft-l.width())*-1:s=0:s=l[0]?l[0].offsetLeft*-1:0,n.options.centerMode===!0&&(n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?l=n.$slideTrack.children(".slick-slide").eq(t):l=n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow+1),n.options.rtl===!0?l[0]?s=(n.$slideTrack.width()-l[0].offsetLeft-l.width())*-1:s=0:s=l[0]?l[0].offsetLeft*-1:0,s+=(n.$list.width()-l.outerWidth())/2)),s},e.prototype.getOption=e.prototype.slickGetOption=function(t){var n=this;return n.options[t]},e.prototype.getNavigableIndexes=function(){var t=this,n=0,s=0,a=[],o;for(t.options.infinite===!1?o=t.slideCount:(n=t.options.slidesToScroll*-1,s=t.options.slidesToScroll*-1,o=t.slideCount*2);n<o;)a.push(n),n=s+t.options.slidesToScroll,s+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return a},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var t=this,n,s,a;return a=t.options.centerMode===!0?t.slideWidth*Math.floor(t.options.slidesToShow/2):0,t.options.swipeToSlide===!0?(t.$slideTrack.find(".slick-slide").each(function(o,l){if(l.offsetLeft-a+r(l).outerWidth()/2>t.swipeLeft*-1)return s=l,!1}),n=Math.abs(r(s).attr("data-slick-index")-t.currentSlide)||1,n):t.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,n){var s=this;
vendor: 3,016 bytes, line 219
219s.changeSlide({data:{message:"index",index:parseInt(t)}},n)},e.prototype.init=function(t){var n=this;r(n.$slider).hasClass("slick-initialized")||(r(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),t&&n.$slider.trigger("init",[n]),n.options.accessibility===!0&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},e.prototype.initADA=function(){var t=this,n=Math.ceil(t.slideCount/t.options.slidesToShow),s=t.getNavigableIndexes().filter(function(l){return l>=0&&l<t.slideCount});t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),t.$dots!==null&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(l){var u=s.indexOf(l);if(r(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+l,tabindex:-1}),u!==-1){var c="slick-slide-control"+t.instanceUid+u;r("#"+c).length&&r(this).attr({"aria-describedby":c})}}),t.$dots.attr("role","tablist").find("li").each(function(l){var u=s[l];r(this).attr({role:"presentation"}),r(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+l,"aria-controls":"slick-slide"+t.instanceUid+u,"aria-label":l+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var a=t.currentSlide,o=a+t.options.slidesToShow;a<o;a++)t.options.focusOnChange?t.$slides.eq(a).attr({tabindex:"0"}):t.$slides.eq(a).removeAttr("tabindex");t.activateADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),t.options.accessibility===!0&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&(r("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),t.options.accessibility===!0&&t.$dots.on("keydown.slick",t.keyHandler)),t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&t.slideCount>t.options.slidesToShow&&r("li",t.$dots).on("mouseenter.slick",r.proxy(t.interrupt,t,!0)).on("mouseleave.slick",r.proxy(t.interrupt,t,!1))},e.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",r.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",r.proxy(t.interrupt,t,!1)))},e.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
219,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),r(document).on(t.visibilityChange,r.proxy(t.visibility,t)),t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler),t.options.focusOnSelect===!0&&r(t.$slideTrack).children().on("click.slick",t.selectHandler),r(window).on("orientationchange.slick.slick-"+t.instanceUid,r.proxy(t.orientationChange,t)),r(window).on("resize.slick.slick-"+t.instanceUid,r.proxy(t.resize,t)),r("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),r(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),r(t.setPosition)},e.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var n=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(t.keyCode===37&&n.options.accessibility===!0?n.changeSlide({data:{message:n.options.rtl===!0?"next":"previous"}}):t.keyCode===39&&n.options.accessibility===!0&&n.changeSlide({data:{message:n.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){var t=this,n,s,a,o;function l(v){r("img[data-lazy]",v).each(function(){var p=r(this),T=r(this).attr("data-lazy"),g=r(this).attr("data-srcset"),b=r(this).attr("data-sizes")||t.$slider.attr("data-sizes"),S=document.createElement("img");S.onload=function(){p.animate({opacity:0}
vendor: 7,150 bytes, line 219
219,100,function(){g&&(p.attr("srcset",g),b&&p.attr("sizes",b)),p.attr("src",T).animate({opacity:1},200,function(){p.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),t.$slider.trigger("lazyLoaded",[t,p,T])})},S.onerror=function(){p.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),t.$slider.trigger("lazyLoadError",[t,p,T])},S.src=T})}if(t.options.centerMode===!0?t.options.infinite===!0?(a=t.currentSlide+(t.options.slidesToShow/2+1),o=a+t.options.slidesToShow+2):(a=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),o=2+(t.options.slidesToShow/2+1)+t.currentSlide):(a=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,o=Math.ceil(a+t.options.slidesToShow),t.options.fade===!0&&(a>0&&a--,o<=t.slideCount&&o++)),n=t.$slider.find(".slick-slide").slice(a,o),t.options.lazyLoad==="anticipated")for(var u=a-1,c=o,h=t.$slider.find(".slick-slide"),f=0;f<t.options.slidesToScroll;f++)u<0&&(u=t.slideCount-1),n=n.add(h.eq(u)),n=n.add(h.eq(c)),u--,c++;l(n),t.slideCount<=t.options.slidesToShow?(s=t.$slider.find(".slick-slide"),l(s)):t.currentSlide>=t.slideCount-t.options.slidesToShow?(s=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),l(s)):t.currentSlide===0&&(s=t.$slider.find(".slick-cloned").slice(t.options.slidesToShow*-1),l(s))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),t.options.lazyLoad==="progressive"&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var t=this;t.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(t){var n=this;if(!n.unslicked&&(n.$slider.trigger("afterChange",[n,t]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),n.options.accessibility===!0&&(n.initADA(),n.options.focusOnChange))){var s=r(n.$slides.get(n.currentSlide));s.attr("tabindex",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){var t=this;t.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(t){t=t||1;var n=this,s=r("img[data-lazy]",n.$slider),a,o,l,u,c;s.length?(a=s.first(),o=a.attr("data-lazy"),l=a.attr("data-srcset"),u=a.attr("data-sizes")||n.$slider.attr("data-sizes"),c=document.createElement("img"),c.onload=function(){l&&(a.attr("srcset",l),u&&a.attr("sizes",u)),a.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),n.options.adaptiveHeight===!0&&n.setPosition(),n.$slider.trigger("lazyLoaded",[n,a,o]),n.progressiveLazyLoad()},c.onerror=function(){t<3?setTimeout(function(){n.progressiveLazyLoad(t+1)},500):(a.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,a,o]),n.progressiveLazyLoad())},c.src=o):n.$slider.trigger("allImagesLoaded",[n])},e.prototype.refresh=function(t){var n=this,s,a;a=n.slideCount-n.options.slidesToShow,!n.options.infinite&&n.currentSlide>a&&(n.currentSlide=a),n.slideCount<=n.options.slidesToShow&&(n.currentSlide=0),s=n.currentSlide,n.destroy(!0),r.extend(n,n.initials,{currentSlide:s}),n.init(),t||n.changeSlide({data:{message:"index",index:s}},!1)},e.prototype.registerBreakpoints=function(){var t=this,n,s,a,o=t.options.responsive||null;if(r.type(o)==="array"&&o.length){t.respondTo=t.options.respondTo||"window";for(n in o)if(a=t.breakpoints.length-1,o.hasOwnProperty(n)){for(s=o[n].breakpoint;a>=0;)t.breakpoints[a]&&t.breakpoints[a]===s&&t.breakpoints.splice(a,1),a--;t.breakpoints.push(s),t.breakpointSettings[s]=o[n].settings}t.breakpoints.sort(function(l,u){return t.options.mobileFirst?l-u:u-l})}},e.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&t.currentSlide!==0&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),t.options.focusOnSelect===!0&&r(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses(typeof t.currentSlide=="number"?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},e.prototype.resize=function(){var t=this;r(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=r(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,n,s){var a=this;if(typeof t=="boolean"?(n=t,t=n===!0?0:a.slideCount-1):t=n===!0?--t:t,a.slideCount<1||t<0||t>a.slideCount-1)return!1;a.unload(),s===!0?a.$slideTrack.children().remove():a.$slideTrack.children(this.options.slide).eq(t).remove(),a.$slides=a.$slideTrack.children(this.options.slide),a.$slideTrack.children(this.options.slide).detach(),a.$slideTrack.append(a.$slides),a.$slidesCache=a.$slides,a.reinit()},e.prototype.setCSS=function(t){var n=this,s={},a,o;n.options.rtl===!0&&(t=-t),a=n.positionProp=="left"?Math.ceil(t)+"px":"0px",o=n.positionProp=="top"?Math.ceil(t)+"px":"0px",s[n.positionProp]=t,n.transformsEnabled===!1?n.$slideTrack.css(s):(s={},n.cssTransitions===!1?(s[n.animType]="translate("+a+", "+o+")",n.$slideTrack.css(s)):(s[n.animType]="translate3d("+a+", "+o+", 0px)",n.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var t=this;t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var n=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-n)},e.prototype.setFade=function(){var t=this,n;t.$slides.each(function(s,a){n=t.slideWidth*s*-1,t.options.rtl===!0?r(a).css({position:"relative",right:n,top:0,zIndex:t.options.zIndex-2,opacity:0}
219):r(a).css({position:"relative",left:n,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(t.options.slidesToShow===1&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var n=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",n)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var t=this,n,s,a,o,l=!1,u;if(r.type(arguments[0])==="object"?(a=arguments[0],l=arguments[1],u="multiple"):r.type(arguments[0])==="string"&&(a=arguments[0],o=arguments[1],l=arguments[2],arguments[0]==="responsive"&&r.type(arguments[1])==="array"?u="responsive":typeof arguments[1]<"u"&&(u="single")),u==="single")t.options[a]=o;else if(u==="multiple")r.each(a,function(c,h){t.options[c]=h});else if(u==="responsive")for(s in o)if(r.type(t.options.responsive)!=="array")t.options.responsive=[o[s]];else{for(n=t.options.responsive.length-1;n>=0;)t.options.responsive[n].breakpoint===o[s].breakpoint&&t.options.responsive.splice(n,1),n--;t.options.responsive.push(o[s])}l&&(t.unload(),t.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,n=document.body.style;t.positionProp=t.options.vertical===!0?"top":"left",t.positionProp==="top"?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(n.WebkitTransition!==void 0||n.MozTransition!==void 0||n.msTransition!==void 0)&&t.options.useCSS===!0&&(t.cssTransitions=!0),t.options.fade&&(typeof t.options.zIndex=="number"?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),n.OTransform!==void 0&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",n.perspectiveProperty===void 0&&n.webkitPerspective===void 0&&(t.animType=!1)),n.MozTransform!==void 0&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",n.perspectiveProperty===void 0&&n.MozPerspective===void 0&&(t.animType=!1)),n.webkitTransform!==void 0&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",n.perspectiveProperty===void 0&&n.webkitPerspective===void 0&&(t.animType=!1)),n.msTransform!==void 0&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",n.msTransform===void 0&&(t.animType=!1)),n.transform!==void 0&&t.animType!==!1&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&t.animType!==null&&t.animType!==!1},e.prototype.setSlideClasses=function(t){var n=this,s,a,o,l;if(a=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(t).addClass("slick-current"),n.options.centerMode===!0){var u=n.options.slidesToShow%2===0?1:0;s=Math.floor(n.options.slidesToShow/2),n.options.infinite===!0&&(t>=s&&t<=n.slideCount-1-s?n.$slides.slice(t-s+u,t+s+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+t,a.slice(o-s+1+u,o+s+2).addClass("slick-active").attr("aria-hidden","false")),t===0?a.eq(a.length-1-n.options.slidesToShow).addClass("slick-center"):t===n.slideCount-1&&a.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=n.slideCount-n.options.slidesToShow?n.$slides.slice(t,t+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):a.length<=n.options.slidesToShow?a.addClass("slick-active").attr("aria-hidden","false"):(l=n.slideCount%n.options.slidesToShow,o=n.options.infinite===!0?n.options.slidesToShow+t:t,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-t<n.options.slidesToShow?a.slice(o-(n.options.slidesToShow-l),o+l).addClass("slick-active").attr("aria-hidden","false"):a.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));(n.options.lazyLoad==="ondemand"||n.options.lazyLoad==="anticipated")&&n.lazyLoad()},e.prototype.setupInfinite=function(){var t=this,n,s,a;if(t.options.fade===!0&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(s=null,t.slideCount>t.options.slidesToShow)){for(t.options.centerMode===!0?a=t.options.slidesToShow+1:a=t.o
219ptions.slidesToShow,n=t.slideCount;n>t.slideCount-a;n-=1)s=n-1,r(t.$slides[s]).clone(!0).attr("id","").attr("data-slick-index",s-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(n=0;n<a+t.slideCount;n+=1)s=n,r(t.$slides[s]).clone(!0).attr("id","").attr("data-slick-index",s+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){r(this).attr("id","")})}},e.prototype.interrupt=function(t){var n=this;t||n.autoPlay(),n.interrupted=t},e.prototype.selectHandler=function(t){var n=this,s=r(t.target).is(".slick-slide")?r(t.target):r(t.target).parents(".slick-slide"),a=parseInt(s.attr("data-slick-index"));if(a||(a=0),n.slideCount<=n.options.slidesToShow){n.slideHandler(a,!1,!0);return}n.slideHandler(a)},e.prototype.slideHandler=function(t,n,s){var a,o,l,u,c=null,h=this,f;if(n=n||!1,!(h.animating===!0&&h.options.waitForAnimate===!0)&&!(h.options.fade===!0&&h.currentSlide===t)){if(n===!1&&h.asNavFor(t),a=t,c=h.getLeft(a),u=h.getLeft(h.currentSlide),h.currentLeft=h.swipeLeft===null?u:h.swipeLeft,h.options.infinite===!1&&h.options.centerMode===!1&&(t<0||t>h.getDotCount()*h.options.slidesToScroll)){h.options.fade===!1&&(a=h.currentSlide,s!==!0&&h.slideCount>h.options.slidesToShow?h.animateSlide(u,function(){h.postSlide(a)}):h.postSlide(a));return}else if(h.options.infinite===!1&&h.options.centerMode===!0&&(t<0||t>h.slideCount-h.options.slidesToScroll)){h.options.fade===!1&&(a=h.currentSlide,s!==!0&&h.slideCount>h.options.slidesToShow?h.animateSlide(u,function(){h.postSlide(a)}):h.postSlide(a));return}if(h.options.autoplay&&clearInterval(h.autoPlayTimer),a<0?h.slideCount%h.options.slidesToScroll!==0?o=h.slideCount-h.slideCount%h.options.slidesToScroll:o=h.slideCount+a:a>=h.slideCount?h.slideCount%h.options.slidesToScroll!==0?o=0:o=a-h.slideCount:o=a,h.animating=!0,h.$slider.trigger("beforeChange",[h,h.currentSlide,o]),l=h.currentSlide,h.currentSlide=o,h.setSlideClasses(h.currentSlide),h.options.asNavFor&&(f=h.getNavTarget(),f=f.slick("getSlick"),f.slideCount<=f.options.slidesToShow&&f.setSlideClasses(h.currentSlide)),h.updateDots(),h.updateArrows(),h.options.fade===!0){s!==!0?(h.fadeSlideOut(l),h.fadeSlide(o,function(){h.postSlide(o)})):h.postSlide(o),h.animateHeight();return}s!==!0&&h.slideCount>h.options.slidesToShow?h.animateSlide(c,function(){h.postSlide(o)}):h.postSlide(o)}},e.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,n,s,a,o=this;return t=o.touchObject.startX-o.touchObject.curX,n=o.touchObject.startY-o.touchObject.curY,s=Math.atan2(n,t),a=Math.round(s*180/Math.PI),a<0&&(a=360-Math.abs(a)),a<=45&&a>=0||a<=360&&a>=315?o.options.rtl===!1?"left":"right":a>=135&&a<=225?o.options.rtl===!1?"right":"left":o.options.verticalSwiping===!0?a>=35&&a<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var n=this,s,a;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),n.touchObject.curX===void 0)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(a=n.swipeDirection(),a){case"left":case"down":s=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":s=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1;break;default:}a!="vertical"&&(n.slideHandler(s),n.touchObject={},n.$slider.trigger("swipe",[n,a]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.prototype.swipeHandler=function(t){var n=this;if(!(n.options.swipe===!1||"ontouchend"in document&&n.options.swipe===!1)&&!(n.options.draggable===!1&&t.type.indexOf("mou
219se")!==-1))switch(n.touchObject.fingerCount=t.originalEvent&&t.originalEvent.touches!==void 0?t.originalEvent.touches.length:1,n.touchObject.minSwipe=n.listWidth/n.options.touchThreshold,n.options.verticalSwiping===!0&&(n.touchObject.minSwipe=n.listHeight/n.options.touchThreshold),t.data.action){case"start":n.swipeStart(t);break;case"move":n.swipeMove(t);break;case"end":n.swipeEnd(t);break}},e.prototype.swipeMove=function(t){var n=this,s=!1,a,o,l,u,c,h;if(c=t.originalEvent!==void 0?t.originalEvent.touches:null,!n.dragging||n.scrolling||c&&c.length!==1)return!1;if(a=n.getLeft(n.currentSlide),n.touchObject.curX=c!==void 0?c[0].pageX:t.clientX,n.touchObject.curY=c!==void 0?c[0].pageY:t.clientY,n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curX-n.touchObject.startX,2))),h=Math.round(Math.sqrt(Math.pow(n.touchObject.curY-n.touchObject.startY,2))),!n.options.verticalSwiping&&!n.swiping&&h>4)return n.scrolling=!0,!1;if(n.options.verticalSwiping===!0&&(n.touchObject.swipeLength=h),o=n.swipeDirection(),t.originalEvent!==void 0&&n.touchObject.swipeLength>4&&(n.swiping=!0,t.preventDefault()),u=(n.options.rtl===!1?1:-1)*(n.touchObject.curX>n.touchObject.startX?1:-1),n.options.verticalSwiping===!0&&(u=n.touchObject.curY>n.touchObject.startY?1:-1),l=n.touchObject.swipeLength,n.touchObject.edgeHit=!1,n.options.infinite===!1&&(n.currentSlide===0&&o==="right"||n.currentSlide>=n.getDotCount()&&o==="left")&&(l=n.touchObject.swipeLength*n.options.edgeFriction,n.touchObject.edgeHit=!0),n.options.vertical===!1?n.swipeLeft=a+l*u:n.swipeLeft=a+l*(n.$list.height()/n.listWidth)*u,n.options.verticalSwiping===!0&&(n.swipeLeft=a+l*u),n.options.fade===!0||n.options.touchMove===!1)return!1;if(n.animating===!0)return n.swipeLeft=null,!1;n.setCSS(n.swipeLeft)},e.prototype.swipeStart=function(t){var n=this,s;if(n.interrupted=!0,n.touchObject.fingerCount!==1||n.slideCount<=n.options.slidesToShow)return n.touchObject={},!1;t.originalEvent!==void 0&&t.originalEvent.touches!==void 0&&(s=t.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=s!==void 0?s.pageX:t.clientX,n.touchObject.startY=n.touchObject.curY=s!==void 0?s.pageY:t.clientY,n.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;t.$slidesCache!==null&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var t=this;r(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var n=this;n.$slider.trigger("unslick",[n,t]),n.destroy()},e.prototype.updateArrows=function(){var t=this,n;n=Math.floor(t.options.slidesToShow/2),t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.currentSlide===0?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&t.options.centerMode===!1||t.currentSlide>=t.slideCount-1&&t.options.centerMode===!0)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;t.$dots!==null&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},r.fn.slick=function(){var t=this,n=arguments[0],s=Array.prototype.slice.call(arguments,1),a=t.length,o,l;for(o=0;o<a;o++)if(typeof n=="object"||typeof n>"u"?t[o].slick=new e(t[o],n):l=t[o].slick[n].apply(t[o].slick,s),typeof l<"u")return l;return t}})});var Iy=pe((coe,mD)=>{O();R();L();var ns=Z(Ae()),loe=Z(sn()),pD=Z(Fr());Tt();var _H=function(){let r=JSON.parse((0,ns.default)(this.$slider).attr("data-slick")??JSON.stringify({infinite:!0,autoplaySpeed:3e3})),{infinite:e,autoplaySpeed:t}=r;this.$slider.not(".slick-initialized").slick({infinite:e,mobileFirst:!0,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:t,arrows:!1,dots:!0,pauseOnHover:!0,responsive:[{breakpoint:1024,settings:{arrows:!0,dots:!1}}]}),new pD.default(".Hero-banner .image",[{mediaQuery:this.mobileBreakPoint,attrName:"data-mobile"},{attrName:"data-desktop"}],{blankClass:"hidden"}
219),this.$slider.attr("tabindex","0"),this.$slider.on("keydown",function(n){n.key==="Escape"&&(n.preventDefault(),(0,ns.default)(this).hasClass("stick-pause")?((0,ns.default)(this).slick("slickPlay"),(0,ns.default)(this).slick("slickNext"),(0,ns.default)(this).removeClass("stick-pause")):((0,ns.default)(this).slick("slickPause"),(0,ns.default)(this).addClass("stick-pause")))})},TH=function(r,e){this.$el=(0,ns.default)(r),this.mobileBreakPoint=e!==void 0?e:nt.ltMedium,this.$slider=this.$el.find(".slider"),_H.call(this)};mD.exports=TH});var bD=pe((poe,yD)=>{O();R();L();var vD=Z(Ae()),SH=function(){this.$closeBtn.click(()=>{this.$el.remove();let r=`iso=${this.iso}&culture=${this.lang}&consent=true;`;gD("locationConsent",r)}),this.$redirectLink.click(r=>{r.preventDefault();let e=this.$redirectLink.data("redirect-language");if(gD("Language",e),e==="en"){window.location.href="/";return}window.location.href=`/${e}/`})},gD=(r,e)=>{var t=new Date;t.setFullYear(t.getFullYear()+1),document.cookie=`${r}=${e};path=/;Secure;expires=`+t.toGMTString()+";"},xH=function(r){this.$el=(0,vD.default)(r),this.$closeBtn=this.$el.find("#location-notification-dismiss"),this.$redirectLink=this.$el.find("#location-redirect-link"),this.iso=this.$el.attr("data-iso"),this.lang=document.querySelector("html").lang,SH.call(this)};yD.exports=xH});var SD=pe((Toe,TD)=>{O();R();L();var Dr=Z(Ae());qs();lr();var _oe=Z(sn()),wH=()=>{let r=(0,Dr.default)(".Nav-isFixed");(0,Dr.default)("#Upsell-modal").attr("data-state")==="on"&&r.length>0?r.css("display","none"):r.css("display","block")},_D=()=>{(0,Dr.default)("#UpsellModalResults ul").hasClass("slick-initialized")||(0,Dr.default)("#UpsellModalResults ul").slick({infinite:!1,slidesToShow:1,slidesToScroll:1,arrows:!1,mobileFirst:!0,responsive:[{breakpoint:971,settings:"unslick"},{breakpoint:970,settings:{slidesToShow:3}},{breakpoint:700,settings:{slidesToShow:2}}]})},CH=()=>{(0,Dr.default)("body").append(`<div class="Modal full-container" data-state="off" id="Upsell-modal">
220                    <div class="content">
221                    </div>
222                </div>`)},EH=function(){let r=this,e=this.$response.LastProductID;Dr.default.ajax({url:this.upsellWebservice+"?productID="+e}).done(function(t){if(t.status==="error"){console.log("There was an issue creating the upsell modal.");return}(0,Dr.default)("#Upsell-modal .content").html(t),setTimeout(()=>{di((0,Dr.default)(this),"#Upsell-modal","body",!0),_D.call(r)},1e3)})},kH=function(){CH.call(this),EH.call(this),this.$html.on("click","#UpsellModalResults .btn",function(){let r=(0,Dr.default)(this).attr("data-added");(0,Dr.default)(this).text(r),(0,Dr.default)(this).attr("disabled","disabled"),(0,Dr.default)(this).siblings("select").attr("disabled","disabled")}),this.$html.on("click",".Overlay",()=>{(0,Dr.default)("#Upsell-modal #cart-link")[0].click()}),(0,Dr.default)(window).on("resize",vi(_D.bind(this),150)),(0,Dr.default)(window).on("scroll",vi(wH.bind(this),150))},AH=function(r){this.$response=r,this.upsellWebservice="/UpsellModal/Create",this.$html=(0,Dr.default)("html"),kH.call(this)};TD.exports=AH});var CD=pe((Coe,wD)=>{O();R();L();var Ks=Z(Ae()),xD=function(r){let e=!0,t=[];if(!this.$formElements)return e;for(let n=0;n<this.$formElements.length;n++){let s=this.$formElements[n],a=!0;if(s.type!=="radio")continue;let o=(0,Ks.default)(s).data("attribute");if(r?a=(0,Ks.default)(`input[name='${s.name}'][data-quoteselected='true']`).length===0:a=(0,Ks.default)(`input[name='${s.name}']:checked`).val(),t.indexOf(o)!==-1)continue;let l=(0,Ks.default)(o);a?(r||l.toggleClass("hidden",!0),t.push(o)):(r||l.toggleClass("hidden",!1),e=!1)}return e},PH=function(){xD.call(this,!1)&&(this.$hide.css("display","none"),this.$form.toggleClass("hidden",!1))},DH=function(){xD.call(this,!0)||(this.$hide.css("display","block"),this.$form.toggleClass("hidden",!0))},IH=function(){let r=this;if(r.$attributes.length>0){if(r.$formElements=r.$attributes[0].elements,r.$btn.on("click",e=>{e.preventDefault(),PH.call(r)}),!r.$formElements)return;for(let e=0;e<r.$formElements.length;e++){let t=r.$formElements[e];t.type==="radio"&&(0,Ks.default)(t).on("click",function(n){n.preventDefault();let s=(0,Ks.default)(this).attr("data-quoteselected")==="true";(0,Ks.default)(this).attr("data-quoteselected",!s),DH.call(r)})}}else r.$btn.on("click",e=>{e.preventDefault(),r.$hide.css("display","none"),r.$form.toggleClass("hidden",!1)})},OH=function(r){this.$form=r.find(".form-block"),this.$attributes=r.find(".attributes-section"),this.$btn=r.find(".quote-btn"),this.$hide=r.find(".opening-block"),IH.call(this)};wD.exports=OH});var ED=pe((Doe,Bf)=>{O();R();L();var Si=Z(Ae());Tt();var An={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT"},uc={START:"START",MIDDLE:"MIDDLE",END:"END"},Nf=An.RIGHT,Mf=uc.START,Oy=0,LH=({wrapperElement:r=null,openByDefault:e=!1,popupPosition:t=Nf,distance:n=Oy,trianglePosition:s=Mf})=>{if(!r)return null;let a=(0,Si.default)((0,Si.default)(r)[0]);if(!a.is(".new-tooltip-wrapper"))return null;let o=a.find(".tooltip-popup"),l=o.find(".tooltip-content"),u=a.find(".tooltip-triangle"),c=a.find(".tooltip-opener");An[t]||(t=Nf);let h=t;uc[s]||(s=Mf);let f=s,v=n,p=()=>{let k=c.offset(),A=c.outerHeight(!0),N=c.outerWidth(!0),I=o.offset(),M=o.outerHeight(!0),F=o.outerWidth(!0),ne=u.offset(),Q=u.outerHeight(!0),j=u.outerWidth(!0),H=(0,Si.default)(window).outerWidth(!0),W=(0,Si.default)(window).scrollTop();if([An.TOP,An.BOTTOM].includes(h)){let ae=k.left+(N/2-j/2),se=ae-j/2-(F-j*2)/2*Object.values(uc).indexOf(f),ge=se<0?Math.abs(se):0,ce=se+F>H?se+F-H:0,ue=se+(ge>0?ge:0)+(ce>0?-ce:0),ye=h===An.TOP?k.top-M-Q/2-v-W:k.top+A+Q/2+v-W,Te=ye-Q/2+(h===An.TOP?M:0);o.css({top:ye,left:ue}),u.css({top:Te,left:ae}),h===An.TOP&&(u.css("border-top-color","transparent"),u.css("border-right-color",""),u.css("border-bottom-color",""),u.css("border-left-color","transparent")),h===An.BOTTOM&&(u.css("border-top-color",""),u.css("border-right-color","transparent"),u.css("border-bottom-color","transparent"),u.css("border-left-color",""))}};(0,Si.default)("*").on("scroll",p),(0,Si.default)(window).on("resize",p);let T=(k=void 0)=>{let A=typeof k=="boolean"?k:o.attr("aria-hidden")==="true";o.attr("aria-hidden",(!A).toString()),u.attr("aria-hidden",(!A).toString()),A?((0,Si.default)("body").append(o),(0,Si.default)("body").append(u),p(),Ur(o)[0].focus()):(a.append(o),a.append(u))},g=(k=void 0)=>{k||(k=""),l.html(k),p()},b=(k=Nf)=>{An[k]||(k=Nf),h=k,p()},S=(k=Oy)=>{!1==="string"&&(k=Oy),v=k,p()},x=(k=Mf)=>{uc[k]||(k=Mf),f=k,p()};e&&T(!0);let E=k=>
222{let A=k.type==="keydown"&&k.key==="Escape",N=k.type==="click"&&!(0,Si.default)(k.target).closest(o).length&&!(0,Si.default)(k.target).closest(c).length;(A||N)&&T(!1)};return(0,Si.default)("*").on("click",E),(0,Si.default)(document).on("keydown",E),c.on("click",k=>{k.preventDefault(),T()}),{toggle:T,setContent:g,setPosition:b,setDistance:S,setTrianglePosition:x,wrapper:a,popup:o,opener:c}};Bf.exports.createTooltip=LH;Bf.exports.POSITION=An;Bf.exports.TRIANGLE_POSITION=uc});var fi=pe(xi=>{"use strict";O();R();L();xi.__esModule=!0;xi.extend=kD;xi.indexOf=$H;xi.escapeExpression=FH;xi.isEmpty=UH;xi.createFrame=qH;xi.blockParams=HH;xi.appendContextPath=VH;var RH={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},NH=/[&<>"'`=]/g,MH=/[&<>"'`=]/;function BH(r){return RH[r]}function kD(r){for(var e=1;e<arguments.length;e++)for(var t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&(r[t]=arguments[e][t]);return r}var Ry=Object.prototype.toString;xi.toString=Ry;var Ly=function(e){return typeof e=="function"};Ly(/x/)&&(xi.isFunction=Ly=function(r){return typeof r=="function"&&Ry.call(r)==="[object Function]"});xi.isFunction=Ly;var AD=Array.isArray||function(r){return r&&typeof r=="object"?Ry.call(r)==="[object Array]":!1};xi.isArray=AD;function $H(r,e){for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function FH(r){if(typeof r!="string"){if(r&&r.toHTML)return r.toHTML();if(r==null)return"";if(!r)return r+"";r=""+r}return MH.test(r)?r.replace(NH,BH):r}function UH(r){return!r&&r!==0?!0:!!(AD(r)&&r.length===0)}function qH(r){var e=kD({},r);return e._parent=r,e}function HH(r,e){return r.path=e,r}function VH(r,e){return(r?r+".":"")+e}});var Pn=pe(($f,PD)=>{"use strict";O();R();L();$f.__esModule=!0;var Ny=["description","fileName","lineNumber","message","name","number","stack"];function My(r,e){var t=e&&e.loc,n=void 0,s=void 0;t&&(n=t.start.line,s=t.start.column,r+=" - "+n+":"+s);for(var a=Error.prototype.constructor.call(this,r),o=0;o<Ny.length;o++)this[Ny[o]]=a[Ny[o]];Error.captureStackTrace&&Error.captureStackTrace(this,My);try{t&&(this.lineNumber=n,Object.defineProperty?Object.defineProperty(this,"column",{value:s,enumerable:!0}):this.column=s)}catch{}}My.prototype=new Error;$f.default=My;PD.exports=$f.default});var ID=pe((Ff,DD)=>{"use strict";O();R();L();Ff.__esModule=!0;var By=fi();Ff.default=function(r){r.registerHelper("blockHelperMissing",function(e,t){var n=t.inverse,s=t.fn;if(e===!0)return s(this);if(e===!1||e==null)return n(this);if(By.isArray(e))return e.length>0?(t.ids&&(t.ids=[t.name]),r.helpers.each(e,t)):n(this);if(t.data&&t.ids){var a=By.createFrame(t.data);a.contextPath=By.appendContextPath(t.data.contextPath,t.name),t={data:a}}return s(e,t)})};DD.exports=Ff.default});var LD=pe((Uf,OD)=>{"use strict";O();R();L();Uf.__esModule=!0;function jH(r){return r&&r.__esModule?r:{default:r}}var cc=fi(),zH=Pn(),WH=jH(zH);Uf.default=function(r){r.registerHelper("each",function(e,t){if(!t)throw new WH.default("Must pass iterator to #each");var n=t.fn,s=t.inverse,a=0,o="",l=void 0,u=void 0;t.data&&t.ids&&(u=cc.appendContextPath(t.data.contextPath,t.ids[0])+"."),cc.isFunction(e)&&(e=e.call(this)),t.data&&(l=cc.createFrame(t.data));function c(p,T,g){l&&(l.key=p,l.index=T,l.first=T===0,l.last=!!g,u&&(l.contextPath=u+p)),o=o+n(e[p],{data:l,blockParams:cc.blockParams([e[p],p],[u+p,null])})}if(e&&typeof e=="object")if(cc.isArray(e))for(var h=e.length;a<h;a++)a in e&&c(a,a,a===e.length-1);else{var f=void 0;for(var v in e)e.hasOwnProperty(v)&&(f!==void 0&&c(f,a-1),f=v,a++);f!==void 0&&c(f,a-1,!0)}return a===0&&(o=s(this)),o})};OD.exports=Uf.default});var ND=pe((qf,RD)=>{"use strict";O();R();L();qf.__esModule=!0;function GH(r){return r&&r.__esModule?r:{default:r}}var QH=Pn(),KH=GH(QH);qf.default=function(r){r.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new KH.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};RD.exports=qf.default});var $D=pe((Hf,BD)=>{"use strict";O();R();L();Hf.__esModule=!0;var MD=fi();Hf.default=function(r){r.registerHelper("if",function(e,t){return MD.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||MD.isEmpty(e)?t.inverse(this):t.fn(this)}),r.registerHelper("unless",function(e,t){return r.helpers.if.call(this,e,{fn:t.inverse,inverse:t.fn,hash:t.hash})})};BD.exports=Hf.default});var UD=pe((Vf,FD)=>{"use strict";O();R();L();
222Vf.__esModule=!0;Vf.default=function(r){r.registerHelper("log",function(){for(var e=[void 0],t=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)e.push(arguments[n]);var s=1;t.hash.level!=null?s=t.hash.level:t.data&&t.data.level!=null&&(s=t.data.level),e[0]=s,r.log.apply(r,e)})};FD.exports=Vf.default});var HD=pe((jf,qD)=>{"use strict";O();R();L();jf.__esModule=!0;jf.default=function(r){r.registerHelper("lookup",function(e,t){return e&&e[t]})};qD.exports=jf.default});var jD=pe((zf,VD)=>{"use strict";O();R();L();zf.__esModule=!0;var dc=fi();zf.default=function(r){r.registerHelper("with",function(e,t){dc.isFunction(e)&&(e=e.call(this));var n=t.fn;if(dc.isEmpty(e))return t.inverse(this);var s=t.data;return t.data&&t.ids&&(s=dc.createFrame(t.data),s.contextPath=dc.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:s,blockParams:dc.blockParams([e],[s&&s.contextPath])})})};VD.exports=zf.default});var zD=pe($y=>{"use strict";O();R();L();$y.__esModule=!0;$y.registerDefaultHelpers=cV;function Ga(r){return r&&r.__esModule?r:{default:r}}var XH=ID(),YH=Ga(XH),JH=LD(),ZH=Ga(JH),eV=ND(),tV=Ga(eV),rV=$D(),iV=Ga(rV),nV=UD(),sV=Ga(nV),aV=HD(),oV=Ga(aV),lV=jD(),uV=Ga(lV);function cV(r){YH.default(r),ZH.default(r),tV.default(r),iV.default(r),sV.default(r),oV.default(r),uV.default(r)}});var GD=pe((Wf,WD)=>{"use strict";O();R();L();Wf.__esModule=!0;var dV=fi();Wf.default=function(r){r.registerDecorator("inline",function(e,t,n,s){var a=e;return t.partials||(t.partials={},a=function(o,l){var u=n.partials;n.partials=dV.extend({},u,t.partials);var c=e(o,l);return n.partials=u,c}),t.partials[s.args[0]]=s.fn,a})};WD.exports=Wf.default});var QD=pe(Fy=>{"use strict";O();R();L();Fy.__esModule=!0;Fy.registerDefaultDecorators=mV;function hV(r){return r&&r.__esModule?r:{default:r}}var fV=GD(),pV=hV(fV);function mV(r){pV.default(r)}});var XD=pe((Gf,KD)=>{"use strict";O();R();L();Gf.__esModule=!0;var gV=fi(),Tl={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if(typeof e=="string"){var t=gV.indexOf(Tl.methodMap,e.toLowerCase());t>=0?e=t:e=parseInt(e,10)}return e},log:function(e){if(e=Tl.lookupLevel(e),typeof console<"u"&&Tl.lookupLevel(Tl.level)<=e){var t=Tl.methodMap[e];console[t]||(t="log");for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];console[t].apply(console,s)}}};Gf.default=Tl;KD.exports=Gf.default});var Kf=pe(ss=>{"use strict";O();R();L();ss.__esModule=!0;ss.HandlebarsEnvironment=Hy;function YD(r){return r&&r.__esModule?r:{default:r}}var Qa=fi(),vV=Pn(),Uy=YD(vV),yV=zD(),bV=QD(),_V=XD(),Qf=YD(_V),TV="4.0.11";ss.VERSION=TV;var SV=7;ss.COMPILER_REVISION=SV;var xV={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};ss.REVISION_CHANGES=xV;var qy="[object Object]";function Hy(r,e,t){this.helpers=r||{},this.partials=e||{},this.decorators=t||{},yV.registerDefaultHelpers(this),bV.registerDefaultDecorators(this)}Hy.prototype={constructor:Hy,logger:Qf.default,log:Qf.default.log,registerHelper:function(e,t){if(Qa.toString.call(e)===qy){if(t)throw new Uy.default("Arg not supported with multiple helpers");Qa.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(Qa.toString.call(e)===qy)Qa.extend(this.partials,e);else{if(typeof t>"u")throw new Uy.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(Qa.toString.call(e)===qy){if(t)throw new Uy.default("Arg not supported with multiple decorators");Qa.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var wV=Qf.default.log;ss.log=wV;ss.createFrame=Qa.createFrame;ss.logger=Qf.default});var ZD=pe((Xf,JD)=>{"use strict";O();R();L();
vendor: 4,924 bytes, lines 222-224
222Xf.__esModule=!0;function Vy(r){this.string=r}Vy.prototype.toString=Vy.prototype.toHTML=function(){return""+this.string};Xf.default=Vy;JD.exports=Xf.default});var rI=pe(Xs=>{"use strict";O();R();L();Xs.__esModule=!0;Xs.checkRevision=PV;Xs.template=DV;Xs.wrapProgram=Yf;Xs.resolvePartial=IV;Xs.invokePartial=OV;Xs.noop=eI;function CV(r){return r&&r.__esModule?r:{default:r}}function EV(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}var kV=fi(),hc=EV(kV),AV=Pn(),as=CV(AV),Sl=Kf();function PV(r){var e=r&&r[0]||1,t=Sl.COMPILER_REVISION;if(e!==t)if(e<t){var n=Sl.REVISION_CHANGES[t],s=Sl.REVISION_CHANGES[e];throw new as.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new as.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+r[1]+").")}function DV(r,e){if(!e)throw new as.default("No environment passed to template");if(!r||!r.main)throw new as.default("Unknown template object: "+typeof r);r.main.decorator=r.main_d,e.VM.checkRevision(r.compiler);function t(a,o,l){l.hash&&(o=hc.extend({},o,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,o,l);var u=e.VM.invokePartial.call(this,a,o,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,r.compilerOptions,e),u=l.partials[l.name](o,l)),u!=null){if(l.indent){for(var c=u.split(`
223`),h=0,f=c.length;h<f&&!(!c[h]&&h+1===f);h++)c[h]=l.indent+c[h];u=c.join(`
224`)}return u}else throw new as.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(o,l){if(!(l in o))throw new as.default('"'+l+'" not defined in '+o);return o[l]},lookup:function(o,l){for(var u=o.length,c=0;c<u;c++)if(o[c]&&o[c][l]!=null)return o[c][l]},lambda:function(o,l){return typeof o=="function"?o.call(l):o},escapeExpression:hc.escapeExpression,invokePartial:t,fn:function(o){var l=r[o];return l.decorator=r[o+"_d"],l},programs:[],program:function(o,l,u,c,h){var f=this.programs[o],v=this.fn(o);return l||h||c||u?f=Yf(this,o,v,l,u,c,h):f||(f=this.programs[o]=Yf(this,o,v)),f},data:function(o,l){for(;o&&l--;)o=o._parent;return o},merge:function(o,l){var u=o||l;return o&&l&&o!==l&&(u=hc.extend({},l,o)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:r.compiler};function s(a){var o=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=o.data;s._setup(o),!o.partial&&r.useData&&(l=LV(a,l));var u=void 0,c=r.useBlockParams?[]:void 0;r.useDepths&&(o.depths?u=a!=o.depths[0]?[a].concat(o.depths):o.depths:u=[a]);function h(f){return""+r.main(n,f,n.helpers,n.partials,l,c,u)}return h=tI(r.main,h,n,o.depths||[],l,c),h(a,o)}return s.isTop=!0,s._setup=function(a){a.partial?(n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators):(n.helpers=n.merge(a.helpers,e.helpers),r.usePartial&&(n.partials=n.merge(a.partials,e.partials)),(r.usePartial||r.useDecorators)&&(n.decorators=n.merge(a.decorators,e.decorators)))},s._child=function(a,o,l,u){if(r.useBlockParams&&!l)throw new as.default("must pass block params");if(r.useDepths&&!u)throw new as.default("must pass parent depths");return Yf(n,a,r[a],o,0,l,u)},s}function Yf(r,e,t,n,s,a,o){function l(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=o;return o&&u!=o[0]&&!(u===r.nullContext&&o[0]===null)&&(h=[u].concat(o)),t(r,u,r.helpers,r.partials,c.data||n,a&&[c.blockParams].concat(a),h)}return l=tI(t,l,r,o,n,a),l.program=e,l.depth=o?o.length:0,l.blockParams=s||0,l}function IV(r,e,t){return r?!r.call&&!t.name&&(t.name=r,r=t.partials[r]):t.name==="@partial-block"?r=t.data["partial-block"]:r=t.partials[t.name],r}function OV(r,e,t){var n=t.data&&t.data["partial-block"];t.partial=!0,t.ids&&(t.data.contextPath=t.ids[0]||t.data.contextPath);var s=void 0;if(t.fn&&t.fn!==eI&&function(){t.data=Sl.createFrame(t.data);var a=t.fn;s=t.data["partial-block"]=function(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Sl.createFrame(u.data),u.data["partial-block"]=n,a(l,u)},a.partials&&(t.partials=hc.extend({},t.partials,a.partials))}(),r===void 0&&s&&(r=s),r===void 0)throw new as.default("The partial "+t.name+" could not be found");if(r instanceof Function)return r(e,t)}function eI(){return""}function LV(r,e){return(!e||!("root"in e))&&(e=e?Sl.createFrame(e):{},e.root=r),e}function tI(r,e,t,n,s,a){if(r.decorator){var o={};e=r.decorator(e,o,t,n&&n[0],s,a,n),hc.extend(e,o)}return e}});var jy=pe((Jf,iI)=>{"use strict";O();R();L();Jf.__esModule=!0;Jf.default=function(r){var e=window,t=e.Handlebars;r.noConflict=function(){return e.Handlebars===r&&(e.Handlebars=t),r}};iI.exports=Jf.default});var lI=pe((Zf,oI)=>{"use strict";O();R();L();
224Zf.__esModule=!0;function Wy(r){return r&&r.__esModule?r:{default:r}}function Gy(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}var RV=Kf(),nI=Gy(RV),NV=ZD(),MV=Wy(NV),BV=Pn(),$V=Wy(BV),FV=fi(),zy=Gy(FV),UV=rI(),sI=Gy(UV),qV=jy(),HV=Wy(qV);function aI(){var r=new nI.HandlebarsEnvironment;return zy.extend(r,nI),r.SafeString=MV.default,r.Exception=$V.default,r.Utils=zy,r.escapeExpression=zy.escapeExpression,r.VM=sI,r.template=function(e){return sI.template(e,r)},r}var fc=aI();fc.create=aI;HV.default(fc);fc.default=fc;Zf.default=fc;oI.exports=Zf.default});var Qy=pe((ep,cI)=>{"use strict";O();R();L();ep.__esModule=!0;var uI={helpers:{helperExpression:function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return e.parts.length===1&&!uI.helpers.scopedId(e)&&!e.depth}}};ep.default=uI;cI.exports=ep.default});var hI=pe((tp,dI)=>{"use strict";O();R();L();tp.__esModule=!0;var VV=function(){var r={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition_plus0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,
vendor: 4,652 bytes, line 224
224EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,1],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(s,a,o,l,u,c,h){var f=c.length-1;switch(u){case 1:return c[f-1];case 2:this.$=l.prepareProgram(c[f]);break;case 3:this.$=c[f];break;case 4:this.$=c[f];break;case 5:this.$=c[f];break;case 6:this.$=c[f];break;case 7:this.$=c[f];break;case 8:this.$=c[f];break;case 9:this.$={type:"CommentStatement",value:l.stripComment(c[f]),strip:l.stripFlags(c[f],c[f]),loc:l.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:c[f],value:c[f],loc:l.locInfo(this._$)};break;case 11:this.$=l.prepareRawBlock(c[f-2],c[f-1],c[f],this._$);break;case 12:this.$={path:c[f-3],params:c[f-2],hash:c[f-1]};break;case 13:this.$=l.prepareBlock(c[f-3],c[f-2],c[f-1],c[f],!1,this._$);break;case 14:this.$=l.prepareBlock(c[f-3],c[f-2],c[f-1],c[f],!0,this._$);break;case 15:this.$={open:c[f-5],path:c[f-4],params:c[f-3],hash:c[f-2],blockParams:c[f-1],strip:l.stripFlags(c[f-5],c[f])};break;case 16:this.$={path:c[f-4],params:c[f-3],hash:c[f-2],blockParams:c[f-1],strip:l.stripFlags(c[f-5],c[f])};break;case 17:this.$={path:c[f-4],params:c[f-3],hash:c[f-2],blockParams:c[f-1],strip:l.stripFlags(c[f-5],c[f])};break;case 18:this.$={strip:l.stripFlags(c[f-1],c[f-1]),program:c[f]};break;case 19:var v=l.prepareBlock(c[f-2],c[f-1],c[f],c[f],!1,this._$),p=l.prepareProgram([v],c[f-1].loc);p.chained=!0,this.$={strip:c[f-2].strip,program:p,chain:!0};break;case 20:this.$=c[f];break;case 21:this.$={path:c[f-1],strip:l.stripFlags(c[f-2],c[f])};break;case 22:this.$=l.prepareMustache(c[f-3],c[f-2],c[f-1],c[f-4],l.stripFlags(c[f-4],c[f]),this._$);break;case 23:this.$=l.prepareMustache(c[f-3],c[f-2],c[f-1],c[f-4],l.stripFlags(c[f-4],c[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:c[f-3],params:c[f-2],hash:c[f-1],indent:"",strip:l.stripFlags(c[f-4],c[f]),loc:l.locInfo(this._$)};break;case 25:this.$=l.preparePartialBlock(c[f-2],c[f-1],c[f],this._$);break;case 26:this.$={path:c[f-3],params:c[f-2],hash:c[f-1],strip:l.stripFlags(c[f-4],c[f])};break;case 27:this.$=c[f];break;case 28:this.$=c[f];break;case 29:this.$={type:"SubExpression",path:c[f-3],params:c[f-2],hash:c[f-1],loc:l.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:c[f],loc:l.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:l.id(c[f-2]),value:c[f],loc:l.locInfo(this._$)};break;case 32:this.$=l.id(c[f-1]);break;case 33:this.$=c[f];break;case 34:this.$=c[f];break;case 35:this.$={type:"StringLiteral",value:c[f],original:c[f],loc:l.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(c[f]),original:Number(c[f]),loc:l.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:c[f]==="true",original:c[f]==="true",loc:l.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:l.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:l.locInfo(this._$)};break;case 40:this.$=c[f];break;case 41:this.$=c[f];break;case 42:this.$=l.preparePath(!0,c[f],this._$);break;case 43:this.$=l.preparePath(!1,c[f],this._$);break;case 44:c[f-2].push({part:l.id(c[f]),original:c[f],separator:c[f-1]}),this.$=c[f-2];break;case 45:this.$=[{part:l.id(c[f]),original:c[f]}];break;case 46:this.$=[];break;case 47:c[f-1].push(c[f]);break;
vendor: 4,783 bytes, line 224
224case 48:this.$=[c[f]];break;case 49:c[f-1].push(c[f]);break;case 50:this.$=[];break;case 51:c[f-1].push(c[f]);break;case 58:this.$=[];break;case 59:c[f-1].push(c[f]);break;case 64:this.$=[];break;case 65:c[f-1].push(c[f]);break;case 70:this.$=[];break;case 71:c[f-1].push(c[f]);break;case 78:this.$=[];break;case 79:c[f-1].push(c[f]);break;case 82:this.$=[];break;case 83:c[f-1].push(c[f]);break;case 86:this.$=[];break;case 87:c[f-1].push(c[f]);break;case 90:this.$=[];break;case 91:c[f-1].push(c[f]);break;case 94:this.$=[];break;case 95:c[f-1].push(c[f]);break;case 98:this.$=[c[f]];break;case 99:c[f-1].push(c[f]);break;case 100:this.$=[c[f]];break;case 101:c[f-1].push(c[f]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{13:40,15:[1,20],17:39},{20:42,56:41,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:45,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:48,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:42,56:49,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:50,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,51]},{72:[1,35],86:52},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:53,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:54,38:56,39:[1,58],43:57,44:[1,59],45:55,47:[2,54]},{28:60,43:61,44:[1,59],47:[2,56]},{13:63,15:[1,20],18:[1,62]},{15:[2,48],18:[2,48]}
vendor: 3,321 bytes, line 224
224,{33:[2,86],57:64,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:65,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:66,47:[1,67]},{30:68,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:69,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:70,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:71,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:75,33:[2,80],50:72,63:73,64:76,65:[1,44],69:74,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,80]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,51]},{20:75,53:81,54:[2,84],63:82,64:76,65:[1,44],69:83,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:84,47:[1,67]},{47:[2,55]},{4:85,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:86,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:87,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:88,47:[1,67]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:75,33:[2,88],58:89,63:90,64:76,65:[1,44],69:91,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:92,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:93,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,31:94,33:[2,60],63:95,64:76,65:[1,44],69:96,70:77,71:78,72:[1,79],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,66],36:97,63:98,64:76,65:[1,44],69:99,70:77,71:78,72:[1,79],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,22:100,23:[2,52],63:101,64:76,65:[1,44],69:102,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,92],62:103,63:104,64:76,65:[1,44],69:105,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,106]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]}
vendor: 13,949 bytes, lines 224-228
224,{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:107,72:[1,108],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,109],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,110]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:56,39:[1,58],43:57,44:[1,59],45:112,46:111,47:[2,76]},{33:[2,70],40:113,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,114]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:75,63:116,64:76,65:[1,44],67:115,68:[2,96],69:117,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,118]},{32:119,33:[2,62],74:120,75:[1,121]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:122,74:123,75:[1,121]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,124]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,125]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,109]},{20:75,63:126,64:76,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:75,33:[2,72],41:127,63:128,64:76,65:[1,44],69:129,70:77,71:78,72:[1,79],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,130]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,131]},{33:[2,63]},{72:[1,133],76:132},{33:[1,134]},{33:[2,69]},{15:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:135,74:136,75:[1,121]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,138],77:[1,137]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,139]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],55:[2,55],57:[2,20],61:[2,57],74:[2,81],83:[2,85],87:[2,18],91:[2,89],102:[2,53],105:[2,93],111:[2,19],112:[2,77],117:[2,97],120:[2,63],123:[2,69],124:[2,12],136:[2,75],137:[2,32]},parseError:function(s,a){throw new Error(s)},parse:function(s){var a=this,o=[0],l=[null],u=[],c=this.table,h="",f=0,v=0,p=0,T=2,g=1;this.lexer.setInput(s),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var b=this.lexer.yylloc;u.push(b);var S=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function x(se){o.length=o.length-2*se,l.length=l.length-se,u.length=u.length-se}function E(){var se;return se=a.lexer.lex()||1,typeof se!="number"&&(se=a.symbols_[se]||se),se}for(var k,A,N,I,M,F,ne={},Q,j,H,W;;){if(N=o[o.length-1],this.defaultActions[N]?I=this.defaultActions[N]:((k===null||typeof k>"u")&&(k=E()),I=c[N]&&c[N][k]),typeof I>"u"||!I.length||!I[0]){var ae="";if(!p){W=[];for(Q in c[N])this.terminals_[Q]&&Q>2&&W.push("'"+this.terminals_[Q]+"'");this.lexer.showPosition?ae="Parse error on line "+(f+1)+`:
225`+this.lexer.showPosition()+`
226Expecting `+W.join(", ")+", got '"+(this.terminals_[k]||k)+"'":ae="Parse error on line "+(f+1)+": Unexpected "+(k==1?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(ae,{text:this.lexer.match,token:this.terminals_[k]||k,line:this.lexer.yylineno,loc:b,expected:W})}}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+k);switch(I[0]){case 1:o.push(k),l.push(this.lexer.yytext),u.push(this.lexer.yylloc),o.push(I[1]),k=null,A?(k=A,A=null):(v=this.lexer.yyleng,h=this.lexer.yytext,f=this.lexer.yylineno,b=this.lexer.yylloc,p>0&&p--);break;case 2:if(j=this.productions_[I[1]][1],ne.$=l[l.length-j],ne._$={first_line:u[u.length-(j||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(j||1)].first_column,last_column:u[u.length-1].last_column},S&&(ne._$.range=[u[u.length-(j||1)].range[0],u[u.length-1].range[1]]),F=this.performAction.call(ne,h,v,f,this.yy,I[1],l,u),typeof F<"u")return F;j&&(o=o.slice(0,-1*j*2),l=l.slice(0,-1*j),u=u.slice(0,-1*j)),o.push(this.productions_[I[1]][0]),l.push(ne.$),u.push(ne._$),H=c[o[o.length-2]][o[o.length-1]],o.push(H);break;case 3:return!0}}return!0}},e=function(){var n={EOF:1,parseError:function(a,o){if(this.yy.parser)this.yy.parser.parseError(a,o);else throw new Error(a)},setInput:function(a){return this._input=a,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var c=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===u.length?this.yylloc.first_column:0)+u[u.length-l.length].length-l[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
227`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,o,l,u,c,h;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),v=0;v<f.length&&(l=this._input.match(this.rules[f[v]]),!(l&&(!o||l[0].length>o[0].length)&&(o=l,u=v,!this.options.flex)));v++);return o?(h=o[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],a=this.performAction.call(this,this.yy,this,f[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
228`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return typeof a<"u"?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}};return n.options={},n.performAction=function(a,o,l,u){function c(f,v){return o.yytext=o.yytext.substr(f,o.yyleng-v)}var h=u;switch(l){case 0:if(o.yytext.slice(-2)==="\\\\"?(c(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(c(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(o.yytext=o.yytext.substr(5,o.yyleng-9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=c(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=c(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();r.lexer=e;function t(){this.yy={}}return t.prototype=r,r.Parser=t,new t}();tp.default=VV;dI.exports=tp.default});var sp=pe((np,mI)=>{"use strict";O();R();L();np.__esModule=!0;function jV(r){return r&&r.__esModule?r:{default:r}}var zV=Pn(),Ky=jV(zV);function rp(){this.parents=[]}rp.prototype={constructor:rp,mutating:!1,acceptKey:function(e,t){var n=this.accept(e[t]);if(this.mutating){if(n&&!rp.prototype[n.type])throw new Ky.default('Unexpected node type "'+n.type+'" found when accepting '+t+" on "+e.type);e[t]=n}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new Ky.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,n=e.length;t<n;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,n--)},accept:function(e){if(e){if(!this[e.type])throw new Ky.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||t)return t;if(t!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:ip,Decorator:ip,BlockStatement:fI,DecoratorBlock:fI,PartialStatement:pI,PartialBlockStatement:function(e){pI.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:ip,PathExpression:function(){}
228,StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function ip(r){this.acceptRequired(r,"path"),this.acceptArray(r.params),this.acceptKey(r,"hash")}function fI(r){ip.call(this,r),this.acceptKey(r,"program"),this.acceptKey(r,"inverse")}function pI(r){this.acceptRequired(r,"name"),this.acceptArray(r.params),this.acceptKey(r,"hash")}np.default=rp;mI.exports=np.default});var vI=pe((ap,gI)=>{"use strict";O();R();L();ap.__esModule=!0;function WV(r){return r&&r.__esModule?r:{default:r}}var GV=sp(),QV=WV(GV);function Dn(){var r=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=r}Dn.prototype=new QV.default;Dn.prototype.Program=function(r){var e=!this.options.ignoreStandalone,t=!this.isRootSeen;this.isRootSeen=!0;for(var n=r.body,s=0,a=n.length;s<a;s++){var o=n[s],l=this.accept(o);if(l){var u=Xy(n,s,t),c=Yy(n,s,t),h=l.openStandalone&&u,f=l.closeStandalone&&c,v=l.inlineStandalone&&u&&c;l.close&&Ka(n,s,!0),l.open&&Ys(n,s,!0),e&&v&&(Ka(n,s),Ys(n,s)&&o.type==="Parti
228alStatement"&&(o.indent=/([ \t]+$)/.exec(n[s-1].original)[1])),e&&h&&(Ka((o.program||o.inverse).body),Ys(n,s)),e&&f&&(Ka(n,s),Ys((o.inverse||o.program).body))}}return r};Dn.prototype.BlockStatement=Dn.prototype.DecoratorBlock=Dn.prototype.PartialBlockStatement=function(r){this.accept(r.program),this.accept(r.inverse);var e=r.program||r.inverse,t=r.program&&r.inverse,n=t,s=t;if(t&&t.chained)for(n=t.body[0].program;s.chained;)s=s.body[s.body.length-1].program;var a={open:r.openStrip.open,close:r.closeStrip.close,openStandalone:Yy(e.body),closeStandalone:Xy((n||e).body)};if(r.openStrip.close&&Ka(e.body,null,!0),t){var o=r.inverseStrip;o.open&&Ys(e.body,null,!0),o.close&&Ka(n.body,null,!0),r.closeStrip.open&&Ys(s.body,null,!0),!this.options.ignoreStandalone&&Xy(e.body)&&Yy(n.body)&&(Ys(e.body),Ka(n.body))}else r.closeStrip.open&&Ys(e.body,null,!0);return a};Dn.prototype.Decorator=Dn.prototype.MustacheStatement=function(r){return r.strip};Dn.prototype.PartialStatement=Dn.prototype.CommentStatement=function(r){var e=r.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}};function Xy(r,e,t){e===void 0&&(e=r.length);var n=r[e-1],s=r[e-2];if(!n)return t;if(n.type==="ContentStatement")return(s||!t?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}function Yy(r,e,t){e===void 0&&(e=-1);var n=r[e+1],s=r[e+2];if(!n)return t;if(n.type==="ContentStatement")return(s||!t?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}function Ka(r,e,t){var n=r[e==null?0:e+1];if(!(!n||n.type!=="ContentStatement"||!t&&n.rightStripped)){var s=n.value;n.value=n.value.replace(t?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==s}}function Ys(r,e,t){var n=r[e==null?r.length-1:e-1];if(!(!n||n.type!=="ContentStatement"||!t&&n.leftStripped)){var s=n.value;return n.value=n.value.replace(t?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==s,n.leftStripped}}ap.default=Dn;gI.exports=ap.default});var yI=pe(Hi=>{"use strict";O();R();L();Hi.__esModule=!0;Hi.SourceLocation=YV;Hi.id=JV;Hi.stripFlags=ZV;Hi.stripComment=ej;Hi.preparePath=tj;Hi.prepareMustache=rj;Hi.prepareRawBlock=ij;Hi.prepareBlock=nj;Hi.prepareProgram=sj;Hi.preparePartialBlock=aj;function KV(r){return r&&r.__esModule?r:{default:r}}var XV=Pn(),Jy=KV(XV);function Zy(r,e){if(e=e.path?e.path.original:e,r.path.original!==e){var t={loc:r.path.loc};throw new Jy.default(r.path.original+" doesn't match "+e,t)}}function YV(r,e){this.source=r,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function JV(r){return/^\[.*\]$/.test(r)?r.substr(1,r.length-2):r}function ZV(r,e){return{open:r.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}function ej(r){return r.replace(/^\{\{~?\!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function tj(r,e,t){t=this.locInfo(t);for(var n=r?"@":"",s=[],a=0,o="",l=0,u=e.length;l<u;l++){var c=e[l].part,h=e[l].original!==c;if(n+=(e[l].separator||"")+c,!h&&(c===".."||c==="."||c==="this")){if(s.length>0)throw new Jy.default("Invalid path: "+n,{loc:t});c===".."&&(a++,o+="../")}else s.push(c)}return{type:"PathExpression",data:r,depth:a,parts:s,original:n,loc:t}}function rj(r,e,t,n,s,a){var o=n.charAt(3)||n.charAt(2),l=o!=="{"&&o!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:r,params:e,hash:t,escaped:l,strip:s,loc:this.locInfo(a)}}function ij(r,e,t,n){Zy(r,t),n=this.locInfo(n);var s={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:r.path,params:r.params,hash:r.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function nj(r,e,t,n,s,a){n&&n.path&&Zy(r,n);var o=/\*/.test(r.open);e.blockParams=r.blockParams;var l=void 0,u=void 0;if(t){if(o)throw new Jy.default("Unexpected inverse block on decorator",t);t.chain&&(t.program.body[0].closeStrip=n.strip),u=t.strip,l=t.program}return s&&(s=l,l=e,e=s),{type:o?"DecoratorBlock":"BlockStatement",path:r.path,params:r.params,hash:r.hash,program:e,inverse:l,openStrip:r.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(a)}}function sj(r,e){if(!e&&r.length){var t=r[0].loc,n=r[r.length-1].loc;t&&n&&(e={source:t.source,start:{line:t.start.line,column:t.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:r,strip:{},loc:e}}function aj(r,e,t,n){return Zy(r,t),{type:"PartialBlockStatement",name:r.path,params:r.params,hash:r.hash,program:e,openStrip:r.strip,closeStrip:t&&t.strip,loc:this.locInfo(n)}}});var _I=pe(lp=>{"use strict";O();R();L();lp.__esModule=!0;lp.parse=pj;function oj(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}function bI(r){return r&&r.__esModule?r:{default:r}}var lj=hI(),eb=bI(lj),uj=vI(),cj=bI(uj),dj=yI(),hj=oj(dj),fj=fi();lp.parser=eb.default;var op={};fj.extend(op,hj);function pj(r,e){if(r.type==="Program")return r;eb.default.yy=op,op.locInfo=function(n){return new op.SourceLocation(e&&e.srcName,n)};var t=new cj.default(e);return t.accept(eb.default.parse(r))}});var wI=pe(gc=>{"use strict";O();R();L();gc.__esModule=!0;gc.Compiler=tb;gc.precompile=yj;gc.compile=bj;function SI(r){return r&&r.__esModule?r:{default:r}}var mj=Pn(),mc=SI(mj),up=fi(),gj=Qy(),pc=SI(gj),vj=[].slice;function tb(){}tb.prototype={compiler:tb,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var n=0;n<t;n++){var s=this.opcodes[n],a=e.opcodes[n];if(s.opcode!==a.opcode||!xI(s.args,a.args))return!1}t=this.children.length;for(var n=0;n<t;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},guid:0,compile:function(e,t){this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[];var n=t.knownHelpers;if(t.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n)for(var s in n)s in n&&(this.options.knownHelpers[s]=n[s]);return this.accept(e)}
vendor: 2,681 bytes, line 228
228,compileProgram:function(e){var t=new this.compiler,n=t.compile(e,this.options),s=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[s]=n,this.useDepths=this.useDepths||n.useDepths,s},accept:function(e){if(!this[e.type])throw new mc.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,n=t.length,s=0;s<n;s++)this.accept(t[s]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){TI(e);var t=e.program,n=e.inverse;t=t&&this.compileProgram(t),n=n&&this.compileProgram(n);var s=this.classifySexpr(e);s==="helper"?this.helperSexpr(e,t,n):s==="simple"?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,n),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),n=this.setupFullMustacheParams(e,t,void 0),s=e.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,s.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var n=e.params;if(n.length>1)throw new mc.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var s=e.name.original,a=e.name.type==="SubExpression";a&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var o=e.indent||"";this.options.preventIndent&&o&&(this.opcode("appendContent",o),o=""),this.opcode("invokePartial",a,s,o),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){TI(e);var t=this.classifySexpr(e);t==="simple"?this.simpleSexpr(e):t==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,n){var s=e.path,a=s.parts[0],o=t!=null||n!=null;this.opcode("getContext",s.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",n),s.strict=!0,this.accept(s),this.opcode("invokeAmbiguous",a,o)}
228,simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,n){var s=this.setupFullMustacheParams(e,t,n),a=e.path,o=a.parts[0];if(this.options.knownHelpers[o])this.opcode("invokeKnownHelper",s.length,o);else{if(this.options.knownHelpersOnly)throw new mc.default("You specified knownHelpersOnly, but used the unknown helper "+o,e);a.strict=!0,a.falsy=!0,this.accept(a),this.opcode("invokeHelper",s.length,a.original,pc.default.helpers.simpleId(a))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],n=pc.default.helpers.scopedId(e),s=!e.depth&&!n&&this.blockParamIndex(t);s?this.opcode("lookupBlockParam",s,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,n=0,s=t.length;for(this.opcode("pushHash");n<s;n++)this.pushParam(t[n].value);for(;n--;)this.opcode("assignToHash",t[n].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:vj.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=pc.default.helpers.simpleId(e.path),n=t&&!!this.blockParamIndex(e.path.parts[0]),s=!n&&pc.default.helpers.helperExpression(e),a=!n&&(s||t);if(a&&!s){var o=e.path.parts[0],l=this.options;l.knownHelpers[o]?s=!0:l.knownHelpersOnly&&(a=!1)}return s?"helper":a?"ambiguous":"simple"},pushParams:function(e){for(var t=0,n=e.length;t<n;t++)this.pushParam(e[t])},pushParam:function(e){var t=e.value!=null?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),e.type==="SubExpression"&&this.accept(e);else{if(this.trackIds){var n=void 0;if(e.parts&&!pc.default.helpers.scopedId(e)&&!e.depth&&(n=this.blockParamIndex(e.parts[0])),n){var s=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,s)}else t=e.original||t,t.replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,n,s){var a=e.params;return this.pushParams(a),this.opcode("pushProgram",t),this.opcode("pushProgram",n),e.hash?this.accept(e.hash):this.opcode("emptyHash",s),a},blockParamIndex:function(e){for(var t=0,n=this.options.blockParams.length;t<n;t++){var s=this.options.blockParams[t],a=s&&up.indexOf(s,e);if(s&&a>=0)return[t,a]}}};function yj(r,e,t){if(r==null||typeof r!="string"&&r.type!=="Program")throw new mc.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+r);e=e||{},"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=t.parse(r,e),s=new t.Compiler().compile(n,e);return new t.JavaScriptCompiler().compile(s,e)}function bj(r,e,t){if(e===void 0&&(e={}),r==null||typeof r!="string"&&r.type!=="Program")throw new mc.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+r);e=up.extend({},e),"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function s(){var o=t.parse(r,e),l=new t.Compiler().compile(o,e),u=new t.JavaScriptCompiler().compile(l,e,void 0,!0);return t.template(u)}function a(o,l){return n||(n=s()),n.call(this,o,l)}return a._setup=function(o){return n||(n=s()),n._setup(o)},a._child=function(o,l,u,c){return n||(n=s()),n._child(o,l,u,c)},a}function xI(r,e){if(r===e)return!0;if(up.isArray(r)&&up.isArray(e)&&r.length===e.length){for(var t=0;t<r.length;t++)if(!xI(r[t],e[t]))return!1;return!0}}function TI(r){if(!r.path.parts){var e=r.path;r.path={type:"PathExpression",data:!1,depth:0,parts:[e.original+""],original:e.original+"",loc:e.loc}}}});var CI={};Wl(CI,{_makeLong:()=>_j,basename:()=>Tj,default:()=>fr,delimiter:()=>Sj,dirname:()=>xj,extname:()=>wj,format:()=>Cj,isAbsolute:()=>Ej,join:()=>kj,normalize:()=>Aj,parse:()=>Pj,posix:()=>Dj,relative:()=>Ij,resolve:()=>Oj,sep:()=>Lj,win32:()=>Rj});var _j,Tj,Sj,xj,wj,Cj,Ej,kj,Aj,Pj,Dj,Ij,Oj,Lj,Rj,EI=Ze(()=>{O();R();L();Vv();hf();_j=fr._makeLong,Tj=fr.basename,Sj=fr.delimiter,xj=fr.dirname,wj=fr.extname,Cj=fr.format,Ej=fr.isAbsolute,kj=fr.join,Aj=fr.normalize,Pj=fr.parse,Dj=fr.posix,Ij=fr.relative,Oj=fr.resolve,Lj=fr.sep,Rj=fr.win32});var cp=pe((pue,kI)=>{"use strict";O();R();L();function Nj(r,e){"use strict";var t={},n={},s=!1,a=(EI(),Zp(CI)),o,l;function u(T){var g,b;for(g=0;T[g];g+=1)if(b=T[g],b===".")T.splice(g,1),g-=1;else if(b===".."){if(g===1&&(T[2]===".."||T[0]===".."))break;g>0&&(T.splice(g-1,2),g-=2)}}function c(T,g){var b;return T&&T.charAt(0)==="."&&g&&(b=g.split("/"),b=b.slice(0,b.length-1),b=b.concat(T.split("/")),u(b),T=b.join("/")),T}function h(T){return function(g){return c(g,T)}}function f(T){function g(b){n[T]=b}return g.fromText=function(b,S){throw new Error("amdefine does not implement load.fromText")},g}o=function(T,g,b,S){function x(E,k){if(typeof E=="string")return l(T,g,b,E,S);E=E.map(function(A){return l(T,g,b,A,S)}),k&&X.nextTick(function(){k.apply(null,E)})}return x.toUrl=function(E){return E.indexOf(".")===0?c(E,a.dirname(b.filename)):E},x},e=e||function(){return r.require.apply(r,arguments)};function v(T,g,b){var S,x,E,k;if(T)x=n[T]={},E={id:T,uri:__filename,exports:x},S=o(e,x,E,T);else{if(s)throw new Error("amdefine with no module ID cannot be called more than once per file.");
228s=!0,x=r.exports,E=r,S=o(e,x,E,r.id)}g&&(g=g.map(function(A){return S(A)})),typeof b=="function"?k=b.apply(E.exports,g):k=b,k!==void 0&&(E.exports=k,T&&(n[T]=E.exports))}l=function(T,g,b,S,x){var E=S.indexOf("!"),k=S,A,N;if(E===-1){if(S=c(S,x),S==="require")return o(T,g,b,x);if(S==="exports")return g;if(S==="module")return b;if(n.hasOwnProperty(S))return n[S];if(t[S])return v.apply(null,t[S]),n[S];if(T)return T(k);throw new Error("No module with ID: "+S)}else return A=S.substring(0,E),S=S.substring(E+1,S.length),N=l(T,g,b,A,x),N.normalize?S=N.normalize(S,h(x)):S=c(S,x),n[S]||N.load(S,o(T,g,b,x),f(S),{}),n[S]};function p(T,g,b){Array.isArray(T)?(b=g,g=T,T=void 0):typeof T!="string"&&(b=T,T=g=void 0),g&&!Array.isArray(g)&&(b=g,g=void 0),g||(g=["require","exports","module"]),T?t[T]=[T,g,b]:v(T,g,b)}return p.require=function(T){if(n[T])return n[T];if(t[T])return v.apply(null,t[T]),n[T]},p.amd={},p}kI.exports=Nj});var PI=pe((yue,AI)=>{O();R();L();typeof rb!="function"&&(rb=cp()(AI,Ki));var rb;rb(function(r,e,t){var n=r("./base64-vlq"),s=r("./util"),a=r("./array-set").ArraySet,o=r("./mapping-list").MappingList;function l(u){u||(u={}),this._file=s.getArg(u,"file",null),this._sourceRoot=s.getArg(u,"sourceRoot",null),this._skipValidation=s.getArg(u,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new o,this._sourcesContents=null}l.prototype._version=3,l.fromSourceMap=function(c){var h=c.sourceRoot,f=new l({file:c.file,sourceRoot:h});return c.eachMapping(function(v){var p={generated:{line:v.generatedLine,column:v.generatedColumn}};v.source!=null&&(p.source=v.source,h!=null&&(p.source=s.relative(h,p.source)),p.original={line:v.originalLine,column:v.originalColumn},v.name!=null&&(p.name=v.name)),f.addMapping(p)}),c.sources.forEach(function(v){var p=c.sourceContentFor(v);p!=null&&f.setSourceContent(v,p)}),f},l.prototype.addMapping=function(c){var h=s.getArg(c,"generated"),f=s.getArg(c,"original",null),v=s.getArg(c,"source",null),p=s.getArg(c,"name",null);this._skipValidation||this._validateMapping(h,f,v,p),v!=null&&!this._sources.has(v)&&this._sources.add(v),p!=null&&!this._names.has(p)&&this._names.add(p),this._mappings.add({generatedLine:h.line,generatedColumn:h.column,originalLine:f!=null&&f.line,originalColumn:f!=null&&f.column,source:v,name:p})},l.prototype.setSourceContent=function(c,h){var f=c;this._sourceRoot!=null&&(f=s.relative(this._sourceRoot,f)),h!=null?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[s.toSetString(f)]=h):this._sourcesContents&&(delete this._sourcesContents[s.toSetString(f)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},l.prototype.applySourceMap=function(c,h,f){var v=h;if(h==null){if(c.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);v=c.file}var p=this._sourceRoot;p!=null&&(v=s.relative(p,v));var T=new a,g=new a;this._mappings.unsortedForEach(function(b){if(b.source===v&&b.originalLine!=null){var S=c.originalPositionFor({line:b.originalLine,column:b.originalColumn});S.source!=null&&(b.source=S.source,f!=null&&(b.source=s.join(f,b.source)),p!=null&&(b.source=s.relative(p,b.source)),b.originalLine=S.line,b.originalColumn=S.column,S.name!=null&&(b.name=S.name))}var x=b.source;x!=null&&!T.has(x)&&T.add(x);var E=b.name;E!=null&&!g.has(E)&&g.add(E)},this),this._sources=T,this._names=g,c.sources.forEach(function(b){var S=c.sourceContentFor(b);S!=null&&(f!=null&&(b=s.join(f,b)),p!=null&&(b=s.relative(p,b)),this.setSourceContent(b,S))},this)},l.prototype._validateMapping=function(c,h,f,v){if(!(c&&"line"in c&&"column"in c&&c.line>0&&c.column>=0&&!h&&!f&&!v)){if(c&&"line"in c&&"column"in c&&h&&"line"in h&&"column"in h&&c.line>0&&c.column>=0&&h.line>0&&h.column>=0&&f)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:c,source:f,original:h,name:v}))}},l.prototype._serializeMappings=function(){for(var c=0,h=1,f=0,v=0,p=0,T=0,g="",b,S=this._mappings.toArray(),x=0,E=S.length;x<E;x++){if(b=S[x],b.generatedLine!==h)for(c=0;b.generatedLine!==h;)g+=";",h++;else if(x>0){if(!s.compareByGeneratedPositionsInflated(b,S[x-1]))continue;g+=","}g+=n.encode(b.generatedColumn-c),c=b.generatedColumn,b.source!=null&&(g+=n.encode(this._sources.indexOf(b.source)-T),T=this._sources.indexOf(b.source),g+=n.encode(b.originalLine-1-v),v=b.originalLine-1,g+=n.encode(b.originalColumn-f),f=b.originalColumn,b.name!=null&&(g+=n.encode(this._names.indexOf(b.name)-p),p=this._names.indexOf(b.name)))}return g},l.prototype._generateSourcesContent=function(c,h){return c.map(function(f){if(!this._sourcesContents)return null;h!=null&&(f=s.relative(h,f));var v=s.toSetString(f);return Object.prototype.hasOwnProperty.call(this._sourcesContents,v)?this._sourcesContents[v]:null},this)},l.prototype.toJSON=function(){var c={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(c.file=this._file),this._sourceRoot!=null&&(c.sourceRoot=this._sourceRoot),this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,c.sourceRoot)),c},l.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=l})});var II=pe((xue,DI)=>{O();R();L();typeof ib!="function"&&(ib=cp()(DI,Ki));var ib;
vendor: 8,091 bytes, line 228
228ib(function(r,e,t){var n=r("./util"),s=r("./binary-search"),a=r("./array-set").ArraySet,o=r("./base64-vlq"),l=r("./quick-sort").quickSort;function u(v){var p=v;return typeof v=="string"&&(p=JSON.parse(v.replace(/^\)\]\}'/,""))),p.sections!=null?new f(p):new c(p)}u.fromSourceMap=function(v){return c.fromSourceMap(v)},u.prototype._version=3,u.prototype.__generatedMappings=null,Object.defineProperty(u.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),u.prototype.__originalMappings=null,Object.defineProperty(u.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),u.prototype._charIsMappingSeparator=function(p,T){var g=p.charAt(T);return g===";"||g===","},u.prototype._parseMappings=function(p,T){throw new Error("Subclasses must implement _parseMappings")},u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,u.prototype.eachMapping=function(p,T,g){var b=T||null,S=g||u.GENERATED_ORDER,x;switch(S){case u.GENERATED_ORDER:x=this._generatedMappings;break;case u.ORIGINAL_ORDER:x=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var E=this.sourceRoot;x.map(function(k){var A=k.source===null?null:this._sources.at(k.source);return A!=null&&E!=null&&(A=n.join(E,A)),{source:A,generatedLine:k.generatedLine,generatedColumn:k.generatedColumn,originalLine:k.originalLine,originalColumn:k.originalColumn,name:k.name===null?null:this._names.at(k.name)}},this).forEach(p,b)},u.prototype.allGeneratedPositionsFor=function(p){var T=n.getArg(p,"line"),g={source:n.getArg(p,"source"),originalLine:T,originalColumn:n.getArg(p,"column",0)};if(this.sourceRoot!=null&&(g.source=n.relative(this.sourceRoot,g.source)),!this._sources.has(g.source))return[];g.source=this._sources.indexOf(g.source);var b=[],S=this._findMapping(g,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,s.LEAST_UPPER_BOUND);if(S>=0){var x=this._originalMappings[S];if(p.column===void 0)for(var E=x.originalLine;x&&x.originalLine===E;)b.push({line:n.getArg(x,"generatedLine",null),column:n.getArg(x,"generatedColumn",null),lastColumn:n.getArg(x,"lastGeneratedColumn",null)}),x=this._originalMappings[++S];else for(var k=x.originalColumn;x&&x.originalLine===T&&x.originalColumn==k;)b.push({line:n.getArg(x,"generatedLine",null),column:n.getArg(x,"generatedColumn",null),lastColumn:n.getArg(x,"lastGeneratedColumn",null)}),x=this._originalMappings[++S]}return b},e.SourceMapConsumer=u;function c(v){var p=v;typeof v=="string"&&(p=JSON.parse(v.replace(/^\)\]\}'/,"")));var T=n.getArg(p,"version"),g=n.getArg(p,"sources"),b=n.getArg(p,"names",[]),S=n.getArg(p,"sourceRoot",null),x=n.getArg(p,"sourcesContent",null),E=n.getArg(p,"mappings"),k=n.getArg(p,"file",null);if(T!=this._version)throw new Error("Unsupported version: "+T);g=g.map(n.normalize),this._names=a.fromArray(b,!0),this._sources=a.fromArray(g,!0),this.sourceRoot=S,this.sourcesContent=x,this._mappings=E,this.file=k}c.prototype=Object.create(u.prototype),c.prototype.consumer=u,c.fromSourceMap=function(p){var T=Object.create(c.prototype),g=T._names=a.fromArray(p._names.toArray(),!0),b=T._sources=a.fromArray(p._sources.toArray(),!0);T.sourceRoot=p._sourceRoot,T.sourcesContent=p._generateSourcesContent(T._sources.toArray(),T.sourceRoot),T.file=p._file;for(var S=p._mappings.toArray().slice(),x=T.__generatedMappings=[],E=T.__originalMappings=[],k=0,A=S.length;k<A;k++){var N=S[k],I=new h;I.generatedLine=N.generatedLine,I.generatedColumn=N.generatedColumn,N.source&&(I.source=b.indexOf(N.source),I.originalLine=N.originalLine,I.originalColumn=N.originalColumn,N.name&&(I.name=g.indexOf(N.name)),E.push(I)),x.push(I)}return l(T.__originalMappings,n.compareByOriginalPositions),T},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._sources.toArray().map(function(v){return this.sourceRoot!=null?n.join(this.sourceRoot,v):v},this)}});function h(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}c.prototype._parseMappings=function(p,T){for(var g=1,b=0,S=0,x=0,E=0,k=0,A=p.length,N=0,I={},M={},F=[],ne=[],Q,j,H,W,ae;N<A;)if(p.charAt(N)===";")g++,N++,b=0;else if(p.charAt(N)===",")N++;else{for(Q=new h,Q.generatedLine=g,W=N;W<A&&!this._charIsMappingSeparator(p,W);W++);if(j=p.slice(N,W),H=I[j],H)N+=j.length;else{for(H=[];N<W;)o.decode(p,N,M),ae=M.value,N=M.rest,H.push(ae);if(H.length===2)throw new Error("Found a source, but no line and column");if(H.length===3)throw new Error("Found a source and line, but no column");I[j]=H}Q.generatedColumn=b+H[0],b=Q.generatedColumn,H.length>1&&(Q.source=E+H[1],E+=H[1],Q.originalLine=S+H[2],S=Q.originalLine,Q.originalLine+=1,Q.originalColumn=x+H[3],x=Q.originalColumn,H.length>4&&(Q.name=k+H[4],k+=H[4])),ne.push(Q),typeof Q.originalLine=="number"&&F.push(Q)}l(ne,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=ne,l(F,n.compareByOriginalPositions),this.__originalMappings=F},c.prototype._findMapping=function(p,T,g,b,S,x){if(p[g]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+p[g]);if(p[b]<0)throw new TypeError("Column must be greater than or equal to 0, got "+p[b]);return s.search(p,T,S,x)},c.prototype.computeColumnSpans=function(){for(var p=0;p<this._generatedMappings.length;++p){var T=this._generatedMappings[p];if(p+1<this._generatedMappings.length){var g=this._generatedMappings[p+1];if(T.generatedLine===g.generatedLine){T.lastGeneratedColumn=g.generatedColumn-1;continue}}T.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(p){var T={generatedLine:n.getArg(p,"line"),generatedColumn:n.getArg(p,"column")},g=this._findMapping(T,this._generatedMappings,"generatedLine","generatedColumn",n.compareByGeneratedPositionsDeflated,n.getArg(p,"bias",u.GREATEST_LOWER_BOUND));if(g>=0){var b=this._generatedMappings[g];if(b.generatedLine===T.generatedLine){var S=n.getArg(b,"source",null);S!==null&&(S=this._sources.at(S),this.sourceRoot!=null&&(S=n.join(this.sourceRoot,S)));var x=n.getArg(b,"name",null);return x!==null&&(x=this._names.at(x)),{source:S,line:n.getArg(b,"originalLine",null),column:n.getArg(b,"originalColumn",null),name:x}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(p){return p==null}):!1},c.prototype.sourceContentFor=function(p,T){if(!this.sourcesContent)return null;if(this.sourceRoot!=null&&(p=n.relative(this.sourceRoot,p)),this._sources.has(p))return this.sourcesContent[this._sources.indexOf(p)];var g;if(this.sourceRoot!=null&&(g=n.urlParse(this.sourceRoot))){var b=p.replace(/^file:\/\//,"");if(g.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!g.path||g.path=="/")&&this._sources.has("/"+p))return this.sourcesContent[this._sources.indexOf("/"+p)]}if(T)return null;throw new Error('"'+p+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(p){var T=n.getArg(p,"source");if(this.sourceRoot!=null&&(T=n.relative(this.sourceRoot,T)),!this._sources.has(T))return{line:null,column:null,lastColumn:null};T=this._sources.indexOf(T);var g={source:T,originalLine:n.getArg(p,"line"),originalColumn:n.getArg(p,"column")},b=this._findMapping(g,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(p,"bias",u.GREATEST_LOWER_BOUND));if(b>=0){var S=this._originalMappings[b];if(S.source===g.source)return{line:n.getArg(S,"generatedLine",null),column:n.getArg(S,"generatedColumn",null),lastColumn:n.getArg(S,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=c;function f(v){var p=v;typeof v=="string"&&(p=JSON.parse(v.replace(/^\)\]\}'/,"")));var T=n.getArg(p,"version"),g=n.getArg(p,"sections");
228if(T!=this._version)throw new Error("Unsupported version: "+T);this._sources=new a,this._names=new a;var b={line:-1,column:0};this._sections=g.map(function(S){if(S.url)throw new Error("Support for url field in sections not implemented.");var x=n.getArg(S,"offset"),E=n.getArg(x,"line"),k=n.getArg(x,"column");if(E<b.line||E===b.line&&k<b.column)throw new Error("Section offsets must be ordered and non-overlapping.");return b=x,{generatedOffset:{generatedLine:E+1,generatedColumn:k+1},consumer:new u(n.getArg(S,"map"))}})}f.prototype=Object.create(u.prototype),f.prototype.constructor=u,f.prototype._version=3,Object.defineProperty(f.prototype,"sources",{get:function(){for(var v=[],p=0;p<this._sections.length;p++)for(var T=0;T<this._sections[p].consumer.sources.length;T++)v.push(this._sections[p].consumer.sources[T]);return v}}),f.prototype.originalPositionFor=function(p){var T={generatedLine:n.getArg(p,"line"),generatedColumn:n.getArg(p,"column")},g=s.search(T,this._sections,function(S,x){var E=S.generatedLine-x.generatedOffset.generatedLine;return E||S.generatedColumn-x.generatedOffset.generatedColumn}),b=this._sections[g];return b?b.consumer.originalPositionFor({line:T.generatedLine-(b.generatedOffset.generatedLine-1),column:T.generatedColumn-(b.generatedOffset.generatedLine===T.generatedLine?b.generatedOffset.generatedColumn-1:0),bias:p.bias}):{source:null,line:null,column:null,name:null}},f.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(p){return p.consumer.hasContentsOfAllSources()})},f.prototype.sourceContentFor=function(p,T){for(var g=0;g<this._sections.length;g++){var b=this._sections[g],S=b.consumer.sourceContentFor(p,!0);if(S)return S}if(T)return null;throw new Error('"'+p+'" is not in the SourceMap.')},f.prototype.generatedPositionFor=function(p){for(var T=0;T<this._sections.length;T++){var g=this._sections[T];if(g.consumer.sources.indexOf(n.getArg(p,"source"))!==-1){var b=g.consumer.generatedPositionFor(p);if(b){var S={line:b.line+(g.generatedOffset.generatedLine-1),column:b.column+(g.generatedOffset.generatedLine===b.line?g.generatedOffset.generatedColumn-1:0)};return S}}}return{line:null,column:null}},f.prototype._parseMappings=function(p,T){this.__generatedMappings=[],this.__originalMappings=[];for(var g=0;g<this._sections.length;g++)for(var b=this._sections[g],S=b.consumer._generatedMappings,x=0;x<S.length;x++){var E=S[g],k=b.consumer._sources.at(E.source);b.consumer.sourceRoot!==null&&(k=n.join(b.consumer.sourceRoot,k)),this._sources.add(k),k=this._sources.indexOf(k);var A=b.consumer._names.at(E.name);this._names.add(A),A=this._names.indexOf(A);var N={source:k,generatedLine:E.generatedLine+(b.generatedOffset.generatedLine-1),generatedColumn:E.column+(b.generatedOffset.generatedLine===E.generatedLine)?b.generatedOffset.generatedColumn-1:0,originalLine:E.originalLine,originalColumn:E.originalColumn,name:A};this.__generatedMappings.push(N),typeof N.originalLine=="number"&&this.__originalMappings.push(N)}l(this.__generatedMappings,n.compareByGeneratedPositionsDeflated),l(this.__originalMappings,n.compareByOriginalPositions)},e.IndexedSourceMapConsumer=f})});var LI=pe((Aue,OI)=>{O();R();L();typeof nb!="function"&&(nb=cp()(OI,Ki));var nb;nb(function(r,e,t){var n=r("./source-map-generator").SourceMapGenerator,s=r("./util"),a=/(\r?\n)/,o=10,l="$$$isSourceNode$$$";function u(c,h,f,v,p){this.children=[],this.sourceContents={},this.line=c??null,this.column=h??null,this.source=f??null,this.name=p??null,this[l]=!0,v!=null&&this.add(v)}u.fromStringWithSourceMap=function(h,f,v){var p=new u,T=h.split(a),g=function(){var k=T.shift(),A=T.shift()||"";return k+A},b=1,S=0,x=null;return f.eachMapping(function(k){if(x!==null)if(b<k.generatedLine){var A="";E(x,g()),b++,S=0}else{var N=T[0],A=N.substr(0,k.generatedColumn-S);T[0]=N.substr(k.generatedColumn-S),S=k.generatedColumn,E(x,A),x=k;return}for(;b<k.generatedLine;)p.add(g()),b++;if(S<k.generatedColumn){var N=T[0];p.add(N.substr(0,k.generatedColumn)),T[0]=N.substr(k.generatedColumn),S=k.generatedColumn}x=k},this),T.length>
vendor: 14,203 bytes, lines 228-234
2280&&(x&&E(x,g()),p.add(T.join(""))),f.sources.forEach(function(k){var A=f.sourceContentFor(k);A!=null&&(v!=null&&(k=s.join(v,k)),p.setSourceContent(k,A))}),p;function E(k,A){if(k===null||k.source===void 0)p.add(A);else{var N=v?s.join(v,k.source):k.source;p.add(new u(k.originalLine,k.originalColumn,N,A,k.name))}}},u.prototype.add=function(h){if(Array.isArray(h))h.forEach(function(f){this.add(f)},this);else if(h[l]||typeof h=="string")h&&this.children.push(h);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+h);return this},u.prototype.prepend=function(h){if(Array.isArray(h))for(var f=h.length-1;f>=0;f--)this.prepend(h[f]);else if(h[l]||typeof h=="string")this.children.unshift(h);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+h);return this},u.prototype.walk=function(h){for(var f,v=0,p=this.children.length;v<p;v++)f=this.children[v],f[l]?f.walk(h):f!==""&&h(f,{source:this.source,line:this.line,column:this.column,name:this.name})},u.prototype.join=function(h){var f,v,p=this.children.length;if(p>0){for(f=[],v=0;v<p-1;v++)f.push(this.children[v]),f.push(h);f.push(this.children[v]),this.children=f}return this},u.prototype.replaceRight=function(h,f){var v=this.children[this.children.length-1];return v[l]?v.replaceRight(h,f):typeof v=="string"?this.children[this.children.length-1]=v.replace(h,f):this.children.push("".replace(h,f)),this},u.prototype.setSourceContent=function(h,f){this.sourceContents[s.toSetString(h)]=f},u.prototype.walkSourceContents=function(h){for(var f=0,v=this.children.length;f<v;f++)this.children[f][l]&&this.children[f].walkSourceContents(h);for(var p=Object.keys(this.sourceContents),f=0,v=p.length;f<v;f++)h(s.fromSetString(p[f]),this.sourceContents[p[f]])},u.prototype.toString=function(){var h="";return this.walk(function(f){h+=f}),h},u.prototype.toStringWithSourceMap=function(h){var f={code:"",line:1,column:0},v=new n(h),p=!1,T=null,g=null,b=null,S=null;return this.walk(function(x,E){f.code+=x,E.source!==null&&E.line!==null&&E.column!==null?((T!==E.source||g!==E.line||b!==E.column||S!==E.name)&&v.addMapping({source:E.source,original:{line:E.line,column:E.column},generated:{line:f.line,column:f.column},name:E.name}),T=E.source,g=E.line,b=E.column,S=E.name,p=!0):p&&(v.addMapping({generated:{line:f.line,column:f.column}}),T=null,p=!1);for(var k=0,A=x.length;k<A;k++)x.charCodeAt(k)===o?(f.line++,f.column=0,k+1===A?(T=null,p=!1):p&&v.addMapping({source:E.source,original:{line:E.line,column:E.column},generated:{line:f.line,column:f.column},name:E.name})):f.column++}),this.walkSourceContents(function(x,E){v.setSourceContent(x,E)}),{code:f.code,map:v}},e.SourceNode=u})});var RI=pe(dp=>{O();R();L();dp.SourceMapGenerator=PI().SourceMapGenerator;dp.SourceMapConsumer=II().SourceMapConsumer;dp.SourceNode=LI().SourceNode});var $I=pe((hp,BI)=>{"use strict";O();R();L();hp.__esModule=!0;var ab=fi(),Xa=void 0;try{(typeof define!="function"||!define.amd)&&(NI=RI(),Xa=NI.SourceNode)}catch{}var NI;Xa||(Xa=function(r,e,t,n){this.src="",n&&this.add(n)},Xa.prototype={add:function(e){ab.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){ab.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function sb(r,e,t){if(ab.isArray(r)){for(var n=[],s=0,a=r.length;s<a;s++)n.push(e.wrap(r[s],t));return n}else if(typeof r=="boolean"||typeof r=="number")return r+"";return r}function MI(r){this.srcFile=r,this.source=[]}MI.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each(function(t){e.add(["  ",t,`
229`])}),e},each:function(e){for(var t=0,n=this.source.length;t<n;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new Xa(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Xa?e:(e=sb(e,this,t),new Xa(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,n){return n=this.generateList(n),this.wrap([e,t?"."+t+"(":"(",n,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var s=sb(e[n],this);s!=="undefined"&&t.push([this.quotedString(n),":",s])}var a=this.generateList(t);return a.prepend("{"),a.add("}"),a},generateList:function(e){for(var t=this.empty(),n=0,s=e.length;n<s;n++)n&&t.add(","),t.add(sb(e[n],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}};hp.default=MI;BI.exports=hp.default});var VI=pe((fp,HI)=>{"use strict";O();R();L();fp.__esModule=!0;function qI(r){return r&&r.__esModule?r:{default:r}}var FI=Kf(),Mj=Pn(),ob=qI(Mj),Bj=fi(),$j=$I(),UI=qI($j);function xl(r){this.value=r}function Ya(){}Ya.prototype={nameLookup:function(e,t){return Ya.isValidJavaScriptVariableName(t)?[e,".",t]:[e,"[",JSON.stringify(t),"]"]},depthedLookup:function(e){return[this.aliasable("container.lookup"),'(depths, "',e,'")']},compilerInfo:function(){var e=FI.COMPILER_REVISION,t=FI.REVISION_CHANGES[e];return[e,t]},appendToBuffer:function(e,t,n){return Bj.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},compile:function(e,t,n,s){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var a=e.opcodes,o=void 0,l=void 0,u=void 0,c=void 0;for(u=0,c=a.length;u<c;u++)o=a[u],this.source.currentLocation=o.loc,l=l||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=l,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new ob.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(`var decorators = container.decorators;
230`),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
231`),this.decorators.push(`}
232`),this.decorators=this.decorators.merge()));var h=this.createFunctionContext(s);if(this.isChild)return h;var f={compiler:this.compilerInfo(),main:h};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var v=this.context,p=v.programs,T=v.decorators;for(u=0,c=p.length;u<c;u++)p[u]&&(f[u]=p[u],T[u]&&(f[u+"_d"]=T[u],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),s?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),t.srcName?(f=f.toStringWithSourceMap({file:t.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},preamble:function(){this.lastContext=0,this.source=new UI.default(this.options.srcName),this.decorators=new UI.default(this.options.srcName)},createFunctionContext:function(e){var t="",n=this.stackVars.concat(this.registers.list);n.length>0&&(t+=", "+n.join(", "));var s=0;for(var a in this.aliases){var o=this.aliases[a];this.aliases.hasOwnProperty(a)&&o.children&&o.referenceCount>1&&(t+=", alias"+ ++s+"="+a,o.children[0]="alias"+s)}var l=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&l.push("blockParams"),this.useDepths&&l.push("depths");var u=this.mergeSource(t);return e?(l.push(u),Function.apply(this,l)):this.source.wrap(["function(",l.join(","),`) {
233  `,u,"}"])},mergeSource:function(e){var t=this.environment.isSimple,n=!this.forceBuffer,s=void 0,a=void 0,o=void 0,l=void 0;return this.source.each(function(u){u.appendToBuffer?(o?u.prepend("  + "):o=u,l=u):(o&&(a?o.prepend("buffer += "):s=!0,l.add(";"),o=l=void 0),a=!0,t||(n=!1))}),n?o?(o.prepend("return "),l.add(";")):a||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),l.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
234`)),this.source.merge()},blockValue:function(e){var t=this.aliasable("helpers.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function(){var e=this.aliasable("helpers.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var n=this.topStack();t.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(t){return[" != null ? ",t,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,n,s){var a=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[a++])):this.pushContext(),this.resolvePath("context",e,a,t,n)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,n)},resolvePath:function(e,t,n,s,a){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(Fj(this.options.strict&&a,this,t,e));return}for(var l=t.length;n<l;n++)this.replaceStack(function(u){var c=o.nameLookup(u,t[n],e);return s?[" && ",c]:[" != null ? ",c," : ",u]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),t!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var n=this.nameLookup("decorators",t,"decorator"),s=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",s])," || fn;"])},invokeHelper:function(e,t,n){var s=this.popStack(),a=this.setupHelper(e,t),o=n?[a.name," || "]:"",l=["("].concat(o,s);this.options.strict||l.push(" || ",this.aliasable("helpers.helperMissing")),l.push(")"),this.push(this.source.functionCall(l,"call",a.callParams))},invokeKnownHelper:function(e,t){var n=this.setupHelper(e,t);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,t),a=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",a," || ",n,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("helpers.helperMissing"))),this.push(["(",o,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",s.callParams)," : helper))"])},invokePartial:function(e,t,n){var s=[],a=this.setupParams(t,1,s);e&&(t=this.popStack(),delete a.name),n&&(a.indent=JSON.stringify(n)),a.helpers="helpers",a.partials="partials",a.decorators="container.decorators",e?s.unshift(t):s.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(a.depths="depths"),a=this.objectLiteral(a),s.push(a),this.push(this.source.functionCall("container.invokePartial","",s))},assignToHash:function(e){var t=this.popStack(),n=void 0,s=void 0,a=void 0;this.trackIds&&(a=this.popStack()),this.stringParams&&(s=this.popStack(),n=this.popStack());var o=this.hash;n&&(o.contexts[e]=n),s&&(o.types[e]=s),a&&(o.ids[e]=a),o.values[e]=t},pushId:function(e,t,n){e==="BlockParam"?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):e==="PathExpression"?this.pushString(t):e==="Sub
234Expression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:Ya,compileChildren:function(e,t){for(var n=e.children,s=void 0,a=void 0,o=0,l=n.length;o<l;o++){s=n[o],a=new this.compiler;var u=this.matchExistingProgram(s);if(u==null){this.context.programs.push("");var c=this.context.programs.length;s.index=c,s.name="program"+c,this.context.programs[c]=a.compile(s,t,this.context,!this.precompile),this.context.decorators[c]=a.decorators,this.context.environments[c]=s,this.useDepths=this.useDepths||a.useDepths,this.useBlockParams=this.useBlockParams||a.useBlockParams,s.useDepths=this.useDepths,s.useBlockParams=this.useBlockParams}else s.index=u.index,s.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},matchExistingProgram:function(e){for(var t=0,n=this.context.environments.length;t<n;t++){var s=this.context.environments[t];if(s&&s.equals(e))return s}},programExpression:function(e){var t=this.environment.children[e],n=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof xl||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new xl(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],n=void 0,s=void 0,a=void 0;if(!this.isInline())throw new ob.default("replaceStack on non-inline");var o=this.popStack(!0);if(o instanceof xl)n=[o.value],t=["(",n],a=!0;else{s=!0;var l=this.incrStack();t=["((",this.push(l)," = ",o,")"],n=this.topStack()}var u=e.call(this,n);a||this.popStack(),s&&this.stackSlot--,this.push(t.concat(u,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;t<n;t++){var s=e[t];if(s instanceof xl)this.compileStack.push(s);else{var a=this.incrStack();this.pushSource([a," = ",s,";"]),this.compileStack.push(a)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),n=(t?this.inlineStack:this.compileStack).pop();if(!e&&n instanceof xl)return n.value;if(!t){if(!this.stackSlot)throw new ob.default("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof xl?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):(t=this.aliases[e]=this.source.wrap(e),t.aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,n){var s=[],a=this.setupHelperArgs(t,e,s,n),o=this.nameLookup("helpers",t,"helper"),l=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:s,paramsInit:a,name:o,callParams:[l].concat(s)}},setupParams:function(e,t,n){var s={},a=[],o=[],l=[],u=!n,c=void 0;u&&(n=[]),s.name=this.quotedString(e),s.hash=this.popStack(),this.trackIds&&(s.hashIds=this.popStack()),this.stringParams&&(s.hashTypes=this.popStack(),s.hashContexts=this.popStack());var h=this.popStack(),f=this.popStack();(f||h)&&(s.fn=f||"container.noop",s.inverse=h||"container.noop");for(var v=t;v--;)c=this.popStack(),n[v]=c,this.trackIds&&(l[v]=this.popStack()),this.stringParams&&(o[v]=this.popStack(),a[v]=this.popStack());return u&&(s.args=this.source.generateArray(n)),this.trackIds&&(s.ids=this.source.generateArray(l)),this.stringParams&&(s.types=this.source.generateArray(o),s.contexts=this.source.generateArray(a)),this.options.data&&(s.data="data"),this.useBlockParams&&(s.blockParams="blockParams"),s},setupHelperArgs:function(e,t,n,s){var a=this.setupParams(e,t,n);return a=this.objectLiteral(a),s?(this.useRegister("options"),n.push("options"),["o
234ptions=",a]):n?(n.push(a),""):a}};(function(){for(var r="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),e=Ya.RESERVED_WORDS={},t=0,n=r.length;t<n;t++)e[r[t]]=!0})();Ya.isValidJavaScriptVariableName=function(r){return!Ya.RESERVED_WORDS[r]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(r)};function Fj(r,e,t,n){var s=e.popStack(),a=0,o=t.length;for(r&&o--;a<o;a++)s=e.nameLookup(s,t[a],n);return r?[e.aliasable("container.strict"),"(",s,", ",e.quotedString(t[a]),")"]:s}fp.default=Ya;HI.exports=fp.default});var GI=pe((pp,WI)=>{"use strict";O();R();L();pp.__esModule=!0;function vc(r){return r&&r.__esModule?r:{default:r}}var Uj=lI(),qj=vc(Uj),Hj=Qy(),Vj=vc(Hj),jI=_I(),lb=wI(),jj=VI(),zj=vc(jj),Wj=sp(),Gj=vc(Wj),Qj=jy(),Kj=vc(Qj),Xj=qj.default.create;function zI(){var r=Xj();return r.compile=function(e,t){return lb.compile(e,t,r)},r.precompile=function(e,t){return lb.precompile(e,t,r)},r.AST=Vj.default,r.Compiler=lb.Compiler,r.JavaScriptCompiler=zj.default,r.Parser=jI.parser,r.parse=jI.parse,r}var wl=zI();wl.create=zI;Kj.default(wl);wl.Visitor=Gj.default;wl.default=wl;pp.default=wl;WI.exports=pp.default});var QI=pe(mp=>{"use strict";O();R();L();mp.__esModule=!0;mp.print=ez;mp.PrintVisitor=Yt;function Yj(r){return r&&r.__esModule?r:{default:r}}var Jj=sp(),Zj=Yj(Jj);function ez(r){return new Yt().accept(r)}function Yt(){this.padding=0}Yt.prototype=new Zj.default;Yt.prototype.pad=function(r){for(var e="",t=0,n=this.padding;t<n;t++)e+="  ";return e+=r+`
235`,e};Yt.prototype.Program=function(r){var e="",t=r.body,n=void 0,s=void 0;if(r.blockParams){var a="BLOCK PARAMS: [";for(n=0,s=r.blockParams.length;n<s;n++)a+=" "+r.blockParams[n];a+=" ]",e+=this.pad(a)}for(n=0,s=t.length;n<s;n++)e+=this.accept(t[n]);return this.padding--,e};Yt.prototype.MustacheStatement=function(r){return this.pad("{{ "+this.SubExpression(r)+" }}")};Yt.prototype.Decorator=function(r){return this.pad("{{ DIRECTIVE "+this.SubExpression(r)+" }}")};Yt.prototype.BlockStatement=Yt.prototype.DecoratorBlock=function(r){var e="";return e+=this.pad((r.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(r)),r.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(r.program),this.padding--),r.inverse&&(r.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(r.inverse),this.padding--,r.program&&this.padding--),this.padding--,e};Yt.prototype.PartialStatement=function(r){var e="PARTIAL:"+r.name.original;return r.params[0]&&(e+=" "+this.accept(r.params[0])),r.hash&&(e+=" "+this.accept(r.hash)),this.pad("{{> "+e+" }}")};Yt.prototype.PartialBlockStatement=function(r){var e="PARTIAL BLOCK:"+r.name.original;return r.params[0]&&(e+=" "+this.accept(r.params[0])),r.hash&&(e+=" "+this.accept(r.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(r.program),this.padding--,this.pad("{{> "+e+" }}")};Yt.prototype.ContentStatement=function(r){return this.pad("CONTENT[ '"+r.value+"' ]")};Yt.prototype.CommentStatement=function(r){return this.pad("{{! '"+r.value+"' }}")};Yt.prototype.SubExpression=function(r){for(var e=r.params,t=[],n=void 0,s=0,a=e.length;s<a;s++)t.push(this.accept(e[s]));return e="["+t.join(", ")+"]",n=r.hash?" "+this.accept(r.hash):"",this.accept(r.path)+" "+e+n};Yt.prototype.PathExpression=function(r){var e=r.parts.join("/");return(r.data?"@":"")+"PATH:"+e};Yt.prototype.StringLiteral=function(r){return'"'+r.value+'"'};Yt.prototype.NumberLiteral=function(r){return"NUMBER{"+r.value+"}"};Yt.prototype.BooleanLiteral=function(r){return"BOOLEAN{"+r.value+"}"};Yt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Yt.prototype.NullLiteral=function(){return"NULL"};Yt.prototype.Hash=function(r){for(var e=r.pairs,t=[],n=0,s=e.length;n<s;n++)t.push(this.accept(e[n]));return"HASH{"+t.join(", ")+"}"};Yt.prototype.HashPair=function(r){return r.key+"="+this.accept(r.value)}});var KI={};Wl(KI,{default:()=>tz});var tz,XI=Ze(()=>{O();R();L();tz={}});var Ja=pe((Zue,ZI)=>{O();R();L();var gp=GI().default,JI=QI();gp.PrintVisitor=JI.PrintVisitor;gp.print=JI.print;ZI.exports=gp;function YI(r,e){var t=(XI(),Zp(KI)),n=t.readFileSync(e,"utf8");r.exports=gp.compile(n)}typeof Ki<"u"&&Ki.extensions&&(Ki.extensions[".handlebars"]=YI,Ki.extensions[".hbs"]=YI)});var h4=pe((cce,d4)=>{O();R();L();var ie=Z(Ae());Tt();lr();var n4=Z(En());ls();Tt();var Cl=Z(ED()),uce=Z(sn()),s4=Z(Ja()),rz=document.querySelector("body"),iz=rz.dataset.template==="Cart-template",e4=r=>{let e=(0,ie.default)(r).parent(".attr-row"),t=e.find(".tooltip-info"),n=e.find(".attr-name").outerWidth()-3;t.find(".tooltip-triangle").css("left",n)},nz=function(r){(0,ie.default)('html[data-brand="PWR"]').length>0||(0,ie.default)('html[data-brand="LCD"]').length>0||(0,ie.default)('html[data-mvp="true"]').length>0?r.slick({infinite:!1,slidesToShow:1,slidesToScroll:4,variableWidth:!0}):r.slick({infinite:!1,slidesToShow:1,slidesToScroll:1,variableWidth:!0,accessibility:!1}),r.find(".slick-slide").attr("aria-hidden","false"),r.find(".slick-list").attr("role","radiogroup"),r.find(".slick-slide input").removeAttr("tabindex"),typeof this.$viewAllText=="string"&&this.$viewAllText.trim()!==""&&(r.append(`<div class="view-all-row"><a href="#" class="view-all" gtm-product-interaction>${this.$viewAllText}</a></div>`),r.find(".view-all").click(t=>{t.preventDefault(),r.slick("unslick")}))},t4=(r,e)=>!r||r.length===0||!e||!e.length===0?r:n1(r,e),sz=function(r){let e=[],t=[],n=r.map(s=>s.ViewId);for(let s of this.variantFilters){let a=r.filter(l=>l.Id!==s.Id).map(l=>l.ViewId);if(!a||a.length===0){e.push(s.ViewId);continue}a.push(s.ViewId),this.variantSelectors.find(l=>{let u=l.Attributes.map(h=>h.ViewId);return Kl(u,a).length===a.length})?e.push(s.ViewId):t.push(s.ViewId)}return t=t4.call(this,t,e),t=t4.call(this,t,n),{enabledFilters:Array.from(new Set(e)),disabledFilters:Array.from(new Set(t))}},az=function(r){let e=r.map(l=>l.Id),t=r.find(l=>l.IsDisabled===!0),n=this.variantSelectors.filter(l=>{let u=l.Attributes.map(f=>f.Id),c=l.Attributes.some(f=>t.ViewId===f.ViewId),h=Kl(e,u);
235return c&&e.length===h.length});if(n.length===0)return null;if(n.length===1)return n[0];let s=0,a=null,o=r.map(l=>l.ViewId);for(let l of n){let u=l.Attributes.map(h=>h.ViewId),c=Kl(o,u);c.length>s&&(s=c.length,a=l)}return a},oz=function(r){if(r.some(s=>s.IsDisabled))return az.call(this,r);if(r.length===0)return null;let t=r.map(s=>s.ViewId);return this.variantSelectors.find(s=>{if(!s.Attributes||s.Attributes.length===0)return!1;let a=s.Attributes.map(l=>l.ViewId);return Kl(t,a).length===t.length})},lz=(r,e)=>{if(!e)return r;let t=[];for(let n of r){let s=e.Attributes.find(a=>a.Id===n.Id);s&&t.push(s)}return t},uz=()=>{let r=[];return(0,ie.default)(".attribute-form input[type=radio]:checked").each(function(){if(!iz){let s=(0,ie.default)(".Product-info-wrapper").find(".attributes-section").parent().find(".add-to-cart-btn-block").find(".cart-item-error");s.length>0&&s.empty().removeClass("show")}r.push({Id:Number.parseInt(this.getAttribute("data-attribute"),10),IsDisabled:(0,ie.default)(this).parent().hasClass("disabled"),Name:this.getAttribute("data-name"),Value:this.value,ViewId:this.getAttribute("data-view-id")})}),r},cz=function(){if(!this.$price.hasClass("hidden")){this.buttonStatus="pricing";return}if(!(0,ie.default)(".call-for-pricing").hasClass("hidden")){this.buttonStatus="call";return}if(!(0,ie.default)(".call-to-order").hasClass("hidden")){this.buttonStatus="call-order";return}this.buttonStatus="quote"},dz=function(){let r=uz.call(this),e=oz.call(this,r);if(e?.variantCode&&(a4=e.variantCode),!e)return;r=lz.call(this,r,e);let t=sz.call(this,r),n=t.enabledFilters,s=t.disabledFilters;this.$attribute.each(function(){let o=(0,ie.default)(this).find("input").first().attr("id");if(o===void 0&&(0,ie.default)(this).toggleClass("disabled",!0),s&&s.length>=0)for(let l=0;l<s.length;l++)s[l]===o&&(0,ie.default)(this).addClass("disabled");if(n&&n.length>=0)for(let l=0;l<n.length;l++)n[l]===o&&(0,ie.default)(this).removeClass("disabled");if(r&&r.length>=0)for(let l=0;l<r.length;l++)r[l].ViewId===o&&((0,ie.default)(this).removeClass("disabled"),(0,ie.default)(this).find("input").prop("checked",!0))}),(0,ie.default)("[data-gtm-product-name]").attr("data-gtm-product-name",e.Name);let a="";for(let o=0;o<r.length;o++)a+=`${r[o].Value}, `;
235return a=a.slice(0,-2),e.DisplaySku?((0,ie.default)("[data-gtm-product-id]").attr("data-gtm-product-id",e.DisplaySku),(0,ie.default)("[data-gtm-variant-id]").attr("data-gtm-variant-id",e.DisplaySku),(0,ie.default)("[data-gtm-product-variant]").attr("data-gtm-product-variant",a),(0,ie.default)(this.$el).find(".title-block > p").text(`SKU ${e.DisplaySku}`),(0,ie.default)(".ps-widget").attr("ps-sku",e.DisplaySku),(0,ie.default)(".sku").removeClass("hidden")):((0,ie.default)(".product-sku").html(""),(0,ie.default)(".sku").addClass("hidden")),e.DiscountedPrice&&e.BasePrice&&e.SavingDisplay!=="none"?(this.$price.replaceWith(`
236            <div class="price is-discounted">
237				<span class="deal-discount"><span class="sr-only">Sale price&nbsp;</span>${e.DiscountedPrice}</span>
238                <span class="deal-original"><span class="sr-only">&nbsp;Original price&nbsp;</span><strike>${e.BasePrice}</strike></span>
239                <span class="deal-savings">(${e.SavingText})</span>
240            </div>
241            `),this.$price=this.$productInfo.find(".price"),this.$price.attr("data-gtm-product-price",e.DiscountedPriceGTM)):e.DiscountedPrice&&e.BasePrice?(this.$price.replaceWith(`
242            <div class="price is-discounted">
243                <span class="deal-discount"><span class="sr-only">Sale price&nbsp;</span>${e.DiscountedPrice}</span>
244				<span class="deal-original"><span class="sr-only">&nbsp;Original price&nbsp;</span><strike>${e.BasePrice}</strike></span>
245            </div>
246            `),this.$price=this.$productInfo.find(".price"),this.$price.attr("data-gtm-product-price",e.DiscountedPriceGTM)):e.BasePrice?(this.$price.replaceWith(`
247                <div class="price">
248                    <span class="original">${e.BasePrice}</span>
249                </div>
250            `),this.$price=this.$productInfo.find(".price"),this.$price.attr("data-gtm-product-price",e.BasePriceGTM)):(this.$price.replaceWith('<div class="price"></div>'),this.$price=this.$productInfo.find(".price"),this.$price.attr("data-gtm-product-price","")),this.$skuWrapper&&this.$skuWrapper.length>0&&this.$skuWrapper[0].setAttribute("data-variant-code",e.VariantCode||""),e},hz=function(r){let e=document.querySelector(".ProductTagLineDescription");(0,ie.default)(".ProductTagLineDescription").addClass("hidden");let t=r.TaglineFontSize;if(r.Tagline!==""&&r.Tagline!==null&&r.Tagline!==void 0)if((0,ie.default)(".ProductTagLineDescription").removeClass("hidden"),t!==""&&t!==null&&t!==void 0){let s=`<${t}>${r.Tagline}</${t}>`;e.innerHTML=s}else e.innerHTML=`<h2>${r.Tagline}</h2>`;else e.innerHTML="",(0,ie.default)(".ProductTagLineDescription").addClass("hidden");if((0,ie.default)('html[data-brand="KEN"]').length>0&&((0,ie.default)(".Product-info-wrapper").attr("data-eol-status")==="True"&&!this.$isEndOfLife?(this.$skuWrapper.removeClass("hidden"),this.$productInfo.find(".tooltip-wrapper").removeClass("hidden"),this.$addToCartBlock.removeClass("hidden"),(0,ie.default)(".Product-info-wrapper").attr("data-eol-status","False"),(0,ie.default)(".quote-only").removeClass("end-of-life-hidden"),(0,ie.default)(".eol-wrapper").addClass("hidden"),(0,ie.default)(".heading-section").removeClass("hidden"),(0,ie.default)(".eol-message").addClass("hidden"),(0,ie.default)('label[for="AddToCartQuantity"]').removeClass("end-of-life-hidden"),(0,ie.default)(".no-replacement-sku").addClass("hidden"),(0,ie.default)(".has-replacement-sku").addClass("hidden")):(0,ie.default)(".Product-info-wrapper").attr("data-eol-status")==="False"&&this.$isEndOfLife?(this.$skuWrapper.addClass("hidden"),this.$productInfo.find(".tooltip-wrapper").addClass("hidden"),this.$addToCartBlock.addClass("hidden"),(0,ie.default)(".Product-info-wrapper").attr("data-eol-status","True"),(0,ie.default)(".quote-only").addClass("end-of-life-hidden"),(0,ie.default)(".eol-wrapper").removeClass("hidden"),(0,ie.default)(".heading-section").addClass("hidden"),(0,ie.default)(".eol-message").removeClass("hidden"),(0,ie.default)('label[for="AddToCartQuantity"]').addClass("end-of-life-hidden"),this.hasReplacementProduct?((0,ie.default)(".no-replacement-sku").addClass("hidden"),(0,ie.default)(".has-replacement-sku").removeClass("hidden")):((0,ie.default)(".no-replacement-sku").removeClass("hidden"),(0,ie.default)(".has-replacement-sku").addClass("hidden")),this.$eolSection.html(this.eolHtml)):this.$isEndOfLife&&(this.hasReplacementProduct?((0,ie.default)(".no-replacement-sku").addClass("hidden"),(0,ie.default)(".has-replacement-sku").removeClass("hidden")):((0,ie.default)(".no-replacement-sku").removeClass("hidden"),(0,ie.default)(".has-replacement-sku").addClass("hidden")),this.$eolSection.html(this.eolHtml)),r.IsCustomHideSellingBlock?(0,ie.default)(".add-to-cart-btn-block,.qty").addClass("hidden"):(0,ie.default)(".add-to-cart-btn-block,.qty").removeClass("hidden")),this.$productDescription&&r.Tagline)if(r.Tagline.length>160){let s=r.Tagline.substring(0,160),a=r.Tagline.substring(160),o=(0,ie.default)("<span></span>").addClass("read-more").html("... Read More"),l=(0,ie.default)("<span></span>").addClass("extra-text").html(a);this.$productDescription.html(s).append(o).append(l).removeClass("hidden"),o.click(function(){(0,ie.default)(this).toggleClass("show")})}else this.$productDescription.html(r.Tagline).removeClass("hidden");else this.$productDescription&&!r.Tagline&&this.$productDescription.html("").addClass("hidden");this.$productInfo.attr("data-onhand",this.$onHandInventory),this.$productInfo.attr("data-hasbackorder",this.$hasBackorder),this.$productInfo.attr("data-bckorderqty",this.$backorderAvailableInventory),this.$statusText.attr("data-hasbackorder",this.$hasBackorder),this.$tooltipBtn.attr("data-show",this.$hasBackorder),this.$productAddToCartButton.text(this.productAddToCartButtonText),!r.BasePrice&&!r.CallForPricing&&!r.CallToOrder?(this.$statusText.text(this.statusTextVal),this.$statusText.attr("data-show","true"),this.$statusText.removeClass("hidden")):this.$hasBackorder?this.$onHandInventory>0?(this.$statusText.attr("data-show","false"),this.$tooltipBtn.attr("data-show","false"),this.$statusText.addClass("hidden")):(this.$statusText.text(this.statusTextVal),this.$statusText.attr("data-show","true"),this.$tooltipBtn.attr("data-show","true"),this.$statusText.removeClass("hidden")):(this.$statusText.addClass("hidden"),this.$statusText.attr("data-show","false"));function n(s,a,o){if(!a)return;s.empty();let l=performance.now(),u=1;function c(){let h=document.createDocumentFragment();for(let f=0;f<o&&u<=a;
250f++,u++){let v=document.createElement("option");v.value=u,v.textContent=u,h.appendChild(v)}s.append(h),u<=a?setTimeout(c,0):console.log(`availableInventory ${a} => ${(performance.now()-l).toFixed(2)} ms`)}c()}if(this.$availableInventory){let s=1e3;this.$availableInventory<s&&(s=this.$availableInventory),n(this.$productQuantityDropdown,this.$availableInventory,s)}if(this.$isInStock&&r.BasePrice){this.$addToCartBlock.attr("tabindex","0"),this.$productQuantityDropdown.removeClass("hidden"),(0,ie.default)(".rounded-quantity-input")!==void 0&&(0,ie.default)(".rounded-quantity-input").length>0&&((0,ie.default)(".plus-minus-input").removeClass("hidden"),(0,ie.default)(".qty-button").attr("data-increment-qty",r.OrderIncrementalQty),(0,ie.default)(".rounded-quantity-input").attr("data-increment-qty",r.OrderIncrementalQty),(0,ie.default)('input[name="enableQTYSelectorVOne"]').val()!=="VersionOneEnabled"&&((0,ie.default)(".rounded-quantity-input").attr("min",r.OrderIncrementalQty),(0,ie.default)(".rounded-quantity-input").val(r.OrderIncrementalQty)));let s=this.$buyNowButton.attr("data-hidebuynow").toLowerCase()==="true";this.$productAddToCartButton.removeClass("hidden"),this.$productOutOfStockButton.addClass("hidden"),s||(this.$buyNowButton.attr("disabled",!(this.$isInStock&&!this.isPreOrder)),this.$buyNowButton.toggleClass("hidden",!(this.$isInStock&&!this.isPreOrder)))}else this.$addToCartBlock.attr("tabindex","-1"),this.$productQuantityDropdown.addClass("hidden"),this.$productAddToCartButton.addClass("hidden"),(0,ie.default)(".rounded-quantity-input")!==void 0&&(0,ie.default)(".rounded-quantity-input").length>0&&(0,ie.default)(".plus-minus-input").addClass("hidden"),this.$productOutOfStockButton.removeClass("hidden"),this.$buyNowButton.attr("disabled",!0),this.$buyNowButton.toggleClass("hidden",!0);if(this.$buyNowButton.hasClass("hidden")?this.$addToCartBlock.removeClass("has-buy-now-button"):this.$addToCartBlock.has("has-buy-now-button")&&this.$addToCartBlock.addClass("has-buy-now-button"),r.IsPartnerExclusive?((0,ie.default)(".ken-non-partner").addClass("hidden"),(0,ie.default)(".ken-partner").removeClass("hidden"),r.Partner?((0,ie.default)(".ken-partner-btns").removeClass("hidden"),(0,ie.default)("#partner-exclusive-message").text(r.PartnerExclusiveMessage),(0,ie.default)("#partner-exclusive-image").attr("src",r.PartnerLogoUrl),(0,ie.default)("#partner-exclusive-image").attr("alt",r.Partner.Partner),(0,ie.default)("#partner-exclusive-url").attr("href",r.PartnerExclusiveUrl),(0,ie.default)("#partner-exclusive-url").attr("alt",r.Partner.Partner)):(0,ie.default)(".ken-partner-btns").addClass("hidden")):((0,ie.default)(".ken-non-partner").removeClass("hidden"),(0,ie.default)(".ken-partner").addClass("hidden")),this.PartnerExclusiveViewModel){if(r.IsPartnerExclusive){let s=this.PartnerExclusiveViewModel,a=s.Partners,o="",l="",u="",c="";if(s.ResalePartnerBtnPosition&&(u+=s.ResalePartnerBtnPosition),s.ResalePartnerBtnInLineDisplay&&(c+=s.ResalePartnerBtnInLineDisplay),c?this.$addToCartBlock.addClass(c.trim()):this.$addToCartBlock.removeClass("inline-resale-btn"),this.$resalePartnerOfferbtns.removeClass("resalePartnerBtnStyle resalePartnerBtnInLineStyle").addClass(u.trim()),a.length>1){o+=`
251				<div id="brandResaleModal" class="modal brandResaleModal" id="brand-resale-modal">
252					<div id="brandResaleModalDialog" class="modal-dialog">
253						<div class="modal-content">
254							<div class="modal-header">
255								<h2>${s.PartnerExclusiveHeadline}</h2>
256								<a class="Close closeresalePartnerModalBtn" href="#" role="button" aria-label="Close">								
257									<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
258										<title>Close</title>
259										<desc>Created with Sketch.</desc>
260										<g id="Product-Detail:-Cambridge" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
261											<g id="PDP---Design---Help-Modal-2" transform="translate(-1440.000000, -393.000000)" fill="#1F345E" fill-rule="nonzero">
262												<polygon id="Close" points="1464 395.422857 1461.57714 393 1452 402.577143 1442.42286 393 1440 395.422857 1449.57714 405 1440 414.577143 1442.42286 417 1452 407.422857 1461.57714 417 1464 414.577143 1454.42286 405"></polygon>
263											</g>
264										</g>
265									</svg>
266									<span class="sr-only">Close</span>
267								</a>
268							</div>
269							<div class="modal-body">
270								<p>${s.PartnerExclusiveDescription}</p>
271								<div class="brandImages">`;for(let h=0;h<a.length;h++)o+=`<a href="${a[h].PartnerUrl}"  target="_blank">
271`,a[h].PartnerLogoUrl?o+=`<img class="brandImg" src="${a[h].PartnerLogoUrl}" alt="${a[h].Partner}">`:o+=`<span>${a[h].Partner}</span>`,o+="</a>";o+=`
272							</div>
273						</div>
274					</div>
275				</div>
276			</div>
277			`,l+=`<a class="${s.PartnerExclusiveButtonStyle} ${s.ResalePartnerBtnClass} openresalePartnerModalBtn" role="button" tabindex="0">${s.PartnerExclusiveButtonText}</a>`}else s?.Partners?.length===1&&(l+=`<a class="${s.PartnerExclusiveButtonStyle} ${s.ResalePartnerBtnClass} " href="${s.Partners[0].PartnerUrl}" target="_blank" tabindex="0">${s.PartnerExclusiveButtonText}</a>`);this.$resalePartnerOfferingSection.html(o),this.$resalePartnerOfferbtns.html(l)}else this.$resalePartnerOfferingSection.html(""),this.$resalePartnerOfferbtns.html(""),this.$resalePartnerOfferbtns.removeClass("resalePartnerBtnStyle resalePartnerBtnInLineStyle");u4()}else this.$resalePartnerOfferingSection.html(""),this.$resalePartnerOfferbtns.html(""),this.$resalePartnerOfferbtns.removeClass("resalePartnerBtnStyle resalePartnerBtnInLineStyle");
277r.CommerceEnabled&&r.IsRequestQuoteOnly&&this.buttonStatus!=="quote"?(this.buttonStatus="quote",(0,ie.default)(".quote-only").removeClass("hidden"),(0,ie.default)(".cart-only").addClass("hidden"),(0,ie.default)(".opening-block.quote-only").show(),(0,ie.default)(".form-block").addClass("hidden"),(0,ie.default)(".call-for-pricing").addClass("hidden"),(0,ie.default)(".call-to-order").addClass("hidden"),(0,ie.default)(".cart-pricing-limbo-only").addClass("hidden")):r.CommerceEnabled&&r.IsCommerceOrderableItem&&this.buttonStatus!=="pricing"?(this.buttonStatus="pricing",(0,ie.default)(".quote-only").addClass("hidden"),(0,ie.default)(".cart-only").removeClass("hidden"),(0,ie.default)(".call-for-pricing").addClass("hidden"),(0,ie.default)(".call-to-order").addClass("hidden"),(0,ie.default)(".cart-pricing-limbo-only").removeClass("hidden")):r.CommerceEnabled&&r.CallForPricing&&this.buttonStatus!=="call"?(this.buttonStatus="call",(0,ie.default)(".quote-only").addClass("hidden"),(0,ie.default)(".cart-only").addClass("hidden"),(0,ie.default)(".call-for-pricing").removeClass("hidden"),(0,ie.default)(".call-to-order").addClass("hidden"),(0,ie.default)(".cart-pricing-limbo-only").removeClass("hidden")):r.CommerceEnabled&&r.CallToOrder&&this.buttonStatus!=="call-order"?(this.buttonStatus="call",(0,ie.default)(".quote-only").addClass("hidden"),(0,ie.default)(".cart-only").addClass("hidden"),(0,ie.default)(".call-for-pricing").addClass("hidden"),(0,ie.default)(".call-to-order").removeClass("hidden"),(0,ie.default)(".cart-pricing-limbo-only").removeClass("hidden")):r.CommerceEnabled&&!r.IsRequestQuoteO
277nly&&!r.IsCommerceOrderableItem&&!r.CallForPricing&&!r.CallToOrder&&this.buttonStatus!=="limbo"&&(this.buttonStatus="limbo",(0,ie.default)(".quote-only").addClass("hidden"),(0,ie.default)(".cart-only").addClass("hidden"),(0,ie.default)(".call-for-pricing").addClass("hidden"),(0,ie.default)(".call-to-order").addClass("hidden"),(0,ie.default)(".cart-pricing-limbo-only").removeClass("hidden")),"PriceSpider"in window&&PriceSpider.rebind(),(0,ie.default)(".free-shipping-stripe").toggleClass("hidden",!r.eligibleForFreeShipping)},fz=({webServiceUrl:r})=>{let e={},t=async({variantLink:a})=>{try{let o=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({variantLink:a})});if(!o.ok)throw new Error(`Failed to fetch variant: ${o.status}:${o.statusText}`);let l=await o.json();return e[a]=l,[null,l]}catch(o){return console.error(o),e[a]=null,[o,null]}},n=({variantLink:a})=>e[a]!==void 0&&e[a]!==null?e[a]:(e[a]=null,null);return{getOrFetchVariant:async({variantLink:a})=>{let o=n({variantLink:a});if(o!==null)return o;let[l,u]=await t({variantLink:a});return l?null:u},getVariant:n,fetchVariant:t}},a4=null;function o4(r,e){let t=(0,ie.default)(".Product-info-wrapper");if(t.find(".attributes-section").length>0){let s=t.find(".qtySelectorVOne"),a=t.find(".defaultButton.outOfCart");if(s.addClass("toggleDisplay"),a.addClass("toggleDisplay"),!r||!e?.Items){a.removeClass("toggleDisplay");return}e.Items?.find(l=>l.Code===r)?s.removeClass("toggleDisplay"):a.removeClass("toggleDisplay")}}function l4(r,e){let t=(0,ie.default)(".Product-info-wrapper");if(t.find(".attributes-section").length>0){if(t.find(".qtySelectorVOne").addClass("toggleDisplay"),t.find(".defaultButton.outOfCart").removeClass("toggleDisplay"),!r||!e?.Items)return;let s=e.Items?.find(l=>l.Code===r);if(!s)return;let a=Number(s.Quantity);t.find(".defaultButton.outOfCart").addClass("toggleDisplay");let o=t.find(".qtySelectorVOne");o.removeClass("toggleDisplay"),o.hasClass("toggleDisplay")||o.find("div.hidden").length>0&&o.find("div.hidden").removeClass("hidden"),t.find(".rounded-quantity-input").val(a)}}var r4=function(r){let e=dz.call(this);if(gz.call(this,e),vz(e),!e&&r)return r.preventDefault();this.emit("updateProductImages",e.Media),this.$webservice.getOrFetchVariant({variantLink:e.VariantLink}).then(t=>{this.$availableInventory=t.availableInventory,this.$onHandInventory=t.availableOnHandInventory,this.$hasBackorder=t.hasBackorder,this.$backorderAvailableInventory=t.backorderAvailableInventory||0,this.$isInStock=t.isInStock,this.$isEndOfLife=t.isEndOfLife,this.statusTextVal=t.statusText,this.requestAQuoteBtnUrl=t.requestAQuoteBtnUrl,this.productAddToCartButtonText=t.addToCartBtnText,this.isPreOrder=t.isPreOrder,(0,ie.default)('html[data-brand="KEN"]').length>0&&t.isEndOfLife&&(this.eolHtml=this.handlebarsTemplate(t),this.hasReplacementProduct=t.hasEOLReplacementProduct),(0,ie.default)('html[data-brand="KEN"]').length>0&&(t.removeBorderClass?(0,ie.default)(".accordion-item").addClass("rm-bordertop"):(0,ie.default)(".accordion-item").removeClass("rm-bordertop")),this.PartnerExclusiveViewModel=t.PartnerExclusiveViewModel,e.eligibleForFreeShipping=t.eligibleForFreeShipping??!1,hz.call(this,e),(0,ie.default)('input[name="enableQTYSelectorVOne"]').val()==="VersionOneEnabled"&&Promise.resolve().then(()=>(ls(),f4)).then(({loadCart:n})=>{n().then(s=>{o4(a4,s),l4(e.VariantCode,s)})}),this.emit("updateHtml",t),pz.call(this)})},pz=()=>{(0,ie.default)('.attributes-section .attr-row input[type="radio"]:checked').each(function(){let e=(0,ie.default)(this).parent(".box").find(".attr").attr("data-attr-value");if(e!==void 0&&e!==""){let t=(0,ie.default)(this).closest(".attr-row"),n=(0,ie.default)(t).find(".attr-name-value");(0,ie.default)(n).html()!==e&&(0,ie.default)(n).html(e)}})},i4=({collection:r,loop:e=!0})=>t=>{let n=r.length,s=r.index(t);if(s===-1)throw new Error("Element not found in collection",t);let a=s===0?e?n-1:0:s-1,o=s===n-1?e?0:n-1:s+1;return{prev:r.eq(a),next:r.eq(o)}},mz=async function(){let r=this,e=this.$attribute.find("input"),t=i4({collection:e,loop:!1}),n=i4({collection:(0,ie.default)('a:not([disabled]), button:not([disabled]), input[type=text]:not([disabled]), [tabindex]:not
277([disabled]):not([tabindex="-1"])')});if(this.$attribute.keydown(function(M){let F=(0,ie.default)(this).find("input");M.keyCode===xe.enter&&(F[0].checked===!0?F[0].checked=!1:F[0].checked=!0);let ne=[xe.downArrow,xe.rightArrow],Q=[xe.leftArrow,xe.upArrow],j=M.keyCode===xe.escape,H=n(e.first()).prev,W=n(e.last()).next;if(j){W.focus();return}let ae=ne.includes(M.keyCode)||M.keyCode===xe.tab&&!M.shiftKey,se=Q.includes(M.keyCode)||M.keyCode===xe.tab&&M.shiftKey,ge=(0,ie.default)(M.target);if(ge.is("input")&&(ae||se)){let{prev:ce,next:ue}=t(ge),ye=M.target===e[0],Te=M.target===e[e.length-1],Se=ce[0]===M.target,me=ue[0]===M.target;if(se){if(!Se){M.preventDefault(),ce.focus();return}H.focus();return}if(ae){if(!me){M.preventDefault(),ue.focus();return}W.focus();return}}}),this.$tooltip.click(function(M){M.preventDefault(),e4.call(r,(0,ie.default)(this))}),this.$tooltip.on("keydown",function(M){M.keyCode===xe.enter&&e4.call(r,(0,ie.default)(this))}),r.$hasBackorder||r.$hasBackorder==="true"){let M=Number.parseInt((0,ie.default)(this.$productQuantityDropdown).val()),F=Number.parseInt(r.$onHandInventory);M>F?(r.$statusText.text(r.statusTextVal),r.$statusText.attr("data-show","true"),r.$tooltipBtn.attr("data-show","true"),r.$statusText.removeClass("hidden")):(r.$statusText.attr("data-show","false"),r.$tooltipBtn.attr("data-show","false"),r.$statusText.addClass("hidden"))}this.$productQuantityDropdown.on("change",function(){if(!r.$hasBackorder||r.$hasBackorder==="false")return;let M=Number.parseInt((0,ie.default)(this).val()),F=Number.parseInt(r.$onHandInventory);M>F?(r.$statusText.text(r.statusTextVal),r.$statusText.attr("data-show","true"),r.$tooltipBtn.attr("data-show","true"),r.$statusText.removeClass("hidden")):(r.$statusText.attr("data-show","false"),r.$tooltipBtn.attr("data-show","false"),r.$statusText.addClass("hidden"))}),(0,ie.default)(".attribute-form input[type=radio]").each(function(){r.variantFilters.push({Id:Number.parseInt(this.getAttribute("data-attribute"),10),Name:this.getAttribute("data-name"),Value:this.value,ViewId:this.getAttribute("data-view-id")})}),this.$productInfo.on("click",".box",M=>{r4.call(r,M)}),this.$productInfo.on("keydown",".box",M=>{M.keyCode===xe.enter&&r4.call(r)}),this.$productInfo.on("keydown",".slick-next, .slick-prev",function(M){((0,ie.default)(this).hasClass("slick-next")&&M.shiftKey&&M.key==="Tab"||(0,ie.default)(this).hasClass("slick-prev")&&!M.shiftKey&&M.key==="Tab")&&(M.preventDefault(),(0,ie.default)('.attribute-form input[type="radio"]:checked')[0]?.focus())}),this.$attrRow.each(function(){let M=0;if((0,ie.default)(this).find(".variant").each(function(){M+=(0,ie.default)(this).outerWidth()}),!(0,ie.default)(".attributes-section").hasClass("expand-attr")){let F=window.innerWidth<=768?300:700;M>F&&nz.call(r,(0,ie.default)(this))}}),this.$readmore.click(function(){(0,ie.default)(this).toggleClass("show")});let s=(0,ie.default)(this.$el.find(".btn-wrapper").first()),a=(0,ie.default)(this.$buyNowButton),o=()=>{let M=window.location.origin,Q=window.location.href.substring(M.length).split("/").filter(Boolean),j=Q[0]==="p"?null:Q[0],H=`${M}${j===null?"":`/${j}`}/cart/checkout/`;window.location.href=H};(0,ie.default)(".checkout-now").on("click",()=>{o()});let l=(0,ie.default)("#cart-review-modal");l.find(".postal-code").each(function(){let M=(0,ie.default)(this),F=M.parents(".estimate-text").first().find("span").first(),ne=F.siblings("form").first();M.on("click",()=>{F.toggleClass("hidden",!0),ne.toggleClass("hidden",!1)}),ne.on("submit",Q=>{Q.preventDefault(),Q.stopImmediatePropagation();let j=(0,ie.default)("html").find("input[name=__RequestVerificationToken]").val(),H=ne.find("input").first().val();k(null),ub(H,j,!1),F.toggleClass("hidden",!1),ne.toggleClass("hidden",!0)})});let c=of(l),h=()=>{(0,ie.default)("body").append(l),c(!0),l.show(),Ur(l).focus(),(0,ie.default)("#modalOverlay").show()},f=()=>{c(!1),r.$el.append(l),l.hide(),(0,ie.default)("#modalOverlay").hide()};(0,ie.default)(".cart-review-modal-overlay, .cancel-now, .close-cart-review-modal").on("click keydown",M=>
277{(M.type==="click"||M.type==="keydown"&&M.key==="Enter")&&f()});let v=(0,ie.default)(".postal-code").text(),p=(0,ie.default)(".total-items-qty").text(),T=(0,ie.default)(".total-items-value").text(),g=(0,ie.default)(".estimated-shipping-value").text(),b=(0,ie.default)(".estimated-tax-value").text(),S=(0,ie.default)(".cart-total-value").text(),x=(0,ie.default)(".summary-row .new-tooltip-wrapper"),E={shipping:[],tax:[]};x.each(function(M){let F=(0,Cl.createTooltip)({wrapperElement:(0,ie.default)(this),openByDefault:!1,popupPosition:Cl.POSITION.TOP,trianglePosition:Cl.TRIANGLE_POSITION.END});M%2!==1?E.shipping.push(F):E.tax.push(F)});let k=(M=null)=>{let F=(0,ie.default)(".summary-row .savings-value").filter(ne=>ne%2===1);if(M!==null){(0,ie.default)(".postal-code").text(M.PostalCode),(0,ie.default)(".total-items-qty").text(`${M.TotalQuantity} ${M.TotalQuantity>1?" items":" item"}`),(0,ie.default)(".total-items-value").text(M.SubTotal),M.TotalSaving==="$0.00"?F.each(function(){(0,ie.default)(this).parent().hide()}):F.each(function(){(0,ie.default)(this).parent().show(),(0,ie.default)(this).text(M.TotalSaving)}),(0,ie.default)(".estimated-shipping-value").text(M.ShippingAfterDiscount),(0,ie.default)(".estimated-tax-value").text(M.Tax),(0,ie.default)(".cart-total-value").text(M.Total);for(let j of E.shipping)M.ShippingTooltip&&j.setContent(M.ShippingTooltip);for(let j of E.tax)M.EstimatedTaxMessage&&j.setContent(M.EstimatedTaxMessage);let ne=(0,ie.default)(".cart-review-modal-right-content.desktop");ne.length>0&&(ne.attr("data-gtm-item-total",M.SubTotal.replace(/[^\d.]/g,"")),ne.attr("data-gtm-total",M.Total.replace(/[^\d.]/g,"")),ne.attr("data-gtm-qty",M.TotalQuantity));let Q=(0,ie.default)(".cart-review-modal-right-content.mobile");Q.length>0&&(Q.attr("data-gtm-item-total",M.SubTotal.replace(/[^\d.]/g,"")),Q.attr("data-gtm-total",M.Total.replace(/[^\d.]/g,"")),Q.attr("data-gtm-qty",M.TotalQuantity));return}(0,ie.default)(".postal-code").text(v),(0,ie.default)(".total-items-qty").text(p),(0,ie.default)(".total-items-value").text(T),F.each(function(){(0,ie.default)(this).parent().hide()}),(0,ie.default)(".estimated-shipping-value").text(g),(0,ie.default)(".estimated-tax-value").text(b),(0,ie.default)(".cart-total-value").text(S)},A=async M=>{if(!(M.Items??[]).length)return;let F=window.location.origin,j=window.location.href.substring(F.length).split("/").filter(Boolean),H=j[0]==="p"?null:j[0],W=`${F}${H===null?"":`/${H}`}/cart/checkout/GetCartSummary`;try{let ae=await fetch(W);if(ae.ok){let se=await ae.json();k(se);let ge=(0,ie.default)(".cart-review-modal-left-content .items-list ul");ge.empty();let ce=await ed("trash.svg");for(let ue of se.Items??[]){let ye=ue.TotalDiscountedPrice,Te=ue.SalePrice,Se=(0,ie.default)(`
278                    <li class="cart-item" 
279						data-id="${ue.Code}" 
280						data-gtm-name="${ue.Name}"
281						data-gtm-id ="${ue.Code}"
282						data-gtm-category="${ue.PrimaryCategory}"
283						data-gtm-price ="${ue.DataLayerPrice}"
284						data-gtm-sku="${ue.Code}">
285
286                        <div class="thumbnail">
287                            ${ue.Url?`<a href="${ue.Url}" role="menuitem"><img src="${ue.ThumbImage}" alt="${ue.Name}"></a>`:`<img src="${ue.ThumbImage}" alt="${ue.Name}">`}
288                        </div>
289                        <div class="info">
290                            <div class="title">
291                                ${ue.Url?`<a href="${ue.Url}" role="menuitem">${ue.Name}</a>`:`<span>${ue.Name}</span>`}
292                            </div>
293                            <div class="details">
294                                <div class="qty-price">
295                                    <span>${se.ViewCartQtyText} ${ue.Quantity}</span>
296                                    <span class="price ${Te?"on-sale":""}">${ye}</span>
297                                </div>
298                                <div class="remove" data-gtm-remove-from-cart-pdp>
299                                    ${ce}
300                                    <button>Remove</button>
301                                </div>
302                            </div>
303                        </div>
304                    </li>
305                    <hr />
306                    `);Se.on("click",".remove",()=>{let me=(0,ie.default)("html").find("input[name=__RequestVerificationToken]").val();os(ue.Code,me,!1)}),ge.append(Se)}}else console.error("Fetch error: ",ae.status)}catch(ae){console.error("Error fetching cart summary:",ae)}},N;wi(M=>{let F=a.attr("data-hidebuynow");if((F===void 0||F.toLowerCase()==="false")&&a.toggleClass("hidden",!(this.$isInStock&&!this.isPreOrder)),a.hasClass("hidden")?this.$addToCartBlock.removeClass("has-buy-now-button"):this.$addToCartBlock.has("has-buy-now-button")&&this.$addToCartBlock.addClass("has-buy-now-button"),a.attr("disabled",!(this.$isInStock&&!this.isPreOrder)),N=M,(0,ie.default)('input[name="enableQTYSelectorVOne"]').val()==="VersionOneEnabled"){let ne=this.$skuWrapper.attr("data-variant-code");ne&&(o4(ne,M),l4(ne,M))}A(M),(M.Items??[]).length===0&&f()});
306let I=(0,ie.default)("#LoadingModal");a.on("click",async M=>{M.preventDefault(),I.attr("data-state","on"),sessionStorage.setItem("checkoutTypeSrc","buy_now");let F=r.$skuWrapper.attr("data-variant-code"),ne=(0,ie.default)("#AddToCartQuantity").val(),Q=(N?.Items??[]).length===0,j=(0,ie.default)("html").find("input[name=__RequestVerificationToken]").val(),H=Js(F,ne,j,!1,""),W=!Q;if(await H,!W)return o();I.attr("data-state","off"),h()})},gz=r=>{let e=(0,ie.default)(".commerce-connector-widget");if(!r||!r.EAN||!r.CommerceConnectorHasStores){e.addClass("hide-commerce-connector-btn");return}e.removeClass("hide-commerce-connector-btn"),(0,ie.default)("[data-ean]").attr("data-ean",r.EAN??""),(0,ie.default)("[data-code]").attr("data-code",r.VariantCode??"")},vz=r=>{let e=(0,ie.default)(".ps-widget");if(!r||!r.IsWhereToBuy||r.CommerceConnectorEnabledForMarket){e.addClass("hidden");return}e.removeClass("hidden"),"PriceSpider"in window&&PriceSpider.rebind()};function u4(){let r=document.querySelector('input[name="enableQTYSelectorVOne"]'),e=r?r.value==="VersionOneEnabled":!1,t=document.querySelector("#OutOfStock"),n=t&&window.getComputedStyle(t).display!=="none"&&!t.hidden;if(e)document.querySelectorAll(".outOfCart, .quantity.versionOneEnabled").forEach(a=>a.classList.toggle("hidden",n));else{let s=document.querySelector(".quantity-fieldset");s&&s.classList.toggle("hidden",n)}}document.addEventListener("DOMContentLoaded",function(){u4()});var c4=function(r){if(this.$html=(0,ie.default)("html"),this.$el=(0,ie.default)(r),this.$productInfo=this.$el.find(".Product-info"),this.$viewAllText=this.$productInfo.find("#ViewAllText").text(),this.$productInfo.length<1)return!1;this.$webservice=fz({webServiceUrl:this.$el.attr("data-webservice")}),this.$attrRow=this.$productInfo.find(".attr-btns"),this.$attribute=this.$productInfo.find(".box"),this.$tooltip=this.$productInfo.find(".tooltip"),this.$price=this.$productInfo.find(".price"),this.$readmore=this.$productInfo.find(".read-more"),this.$onHandInventory=this.$productInfo.attr("data-onhand"),this.$hasBackorder=this.$productInfo.attr("data-hasbackorder")==="true",this.$isPartialBackorder=this.$productInfo.attr("partial-backorder")==="false",this.$productQuantityDropdown=this.$productInfo.find(".AddToCartQuantity"),this.$productAddToCartButton=this.$productInfo.find("#AddToCart"),this.productAddToCartButtonText=this.$productAddToCartButton.text(),this.$productOutOfStockButton=this.$productInfo.find("#OutOfStock"),this.$buyNowButton=this.$productInfo.find(".buy-now-btn"),this.$productDescription=this.$productInfo.find("#ProductDescription"),this.$availableInventory=0,this.variantFilters=[],this.variantSelectors=window.variantSelectors,this.$statusText=this.$productInfo.find(".availability"),this.$skuWrapper=this.$productInfo.find(".sku"),this.$productId=this.$el.attr("data-product"),this.statusTextVal=this.$statusText.text(),this.$addToCartBlock=this.$productInfo.find(".add-to-cart-btn-block"),this.$isInStock=this.$addToCartBlock.attr("data-instock")==="True",this.buttonStatus="",this.requestAQuoteBtnUrl="",this.$tooltipInfo=this.$productInfo.find(".tooltip-wrapper").find(".tooltip-info"),this.$tooltipBtn=this.$productInfo.find(".tooltip-wrapper").find(".tooltip"),this.isPreOrder=this.$addToCartBlock.attr("data-ispreorder")==="True",this.$isEndOfLife=!1,this.$eolSection=(0,ie.default)("#EndOfLifeMainSection"),this.handlebarsSource=(0,ie.default)("#endOfLifeTemplate").html(),this.handlebarsTemplate=s4.default.compile(this.handlebarsSource),this.$resalePartnerOfferingSection=this.$productInfo.find(".resalePartnerOfferingSection"),this.$resalePartnerOfferbtns=this.$productInfo.find(".resalePartnerOfferbtns"),mz.call(this),cz.call(this),(0,ie.default)(".attr-btns").find("label.box").removeAttr("tabIndex")};(0,n4.default)(c4);d4.exports=c4});var _4=pe((bce,b4)=>{O();R();L();var dt=Z(Ae()),p4=Z(Cy()),pce=Z(sn()),cb=Z(Fr());Tt();ml();lr();qs();var m4=Z(En()),g4=function(){let r=this.$sliderWrapper.find(".zoom-image"),e=this.$sliderWrapper.find(".large-image"),t=this.$featuredSlider;if(new cb.default(e,[{mediaQuery:"(min-width: 0)",attrName:"data-desktop"}],{blankClass:""}),r.length<1)return!1;r.each(function(){let n=(0,dt.default)(this),s=n.parents(".item").first().find(".zoom-image-buttons").first(),a=s.find(".plus"),o=s.find(".minus");function l(){(0,dt.default)(this).hasClass("loaded")||(new cb.default(r,[{mediaQuery:nt.gtSmall,attrName:"data-desktop"},{attrName:"data-widescreen"}],{blankClass:""}),(0,dt.default)(this).addClass("loaded"))}(0,dt.default)(this).hover(l);let u=50,c=50,h=15;a.on("click",()=>{l(),n.removeClass("inactive"),n.css("background-position","$50% 50%"),t.slick("slickSetOption","accessibility",!1)}),(0,dt.default)(document).on("keydown",f=>{if(n.hasClass("inactive"))return;if(f.keyCode===xe.escape){o.click();return}if([xe.upArrow,xe.rightArrow,xe.downArrow,xe.leftArrow].includes(f.keyCode)){switch(f.preventDefault(),f.keyCode){case xe.upArrow:c=Math.max(0,c-h);break;
306case xe.rightArrow:u=Math.min(100,u+h);break;case xe.downArrow:c=Math.min(100,c+h);break;case xe.leftArrow:u=Math.max(0,u-h);break}n.css("background-position",`${u}% ${c}%`)}}),(0,dt.default)(this).mousemove(function(f){let v=f.currentTarget,p=f.offsetX/v.offsetWidth*100,T=f.offsetY/v.offsetHeight*100;(0,dt.default)(this).removeClass("inactive"),v.style.backgroundPosition=`${p}% ${T}%`}),(0,dt.default)(this).mouseleave(function(){(0,dt.default)(this).addClass("inactive")}),o.on("click",()=>{n.addClass("inactive"),t.slick("slickSetOption","accessibility",!0)})})},v4=function(){this.$sliderWrapper.find(".trigger-video-modal").each(function(){let e=(0,dt.default)(this).siblings(".Product-video-modal");di((0,dt.default)(this),e,"body")})},yz=function(){this.$featuredSlider.slick("unslick"),this.$featuredThumbnails.length>0&&this.$featuredThumbnails.slick("unslick")},y4=function(){let r=(0,dt.default)('html[data-brand="SWL"] .Quickview-controller').length>0;(0,dt.default)('html[data-brand="PWR"]').length>0||(0,dt.default)('html[data-brand="LCD"]').length>0||(0,dt.default)('html[data-mvp="true"]').length>0?(this.$featuredSlider.slick({slidesToShow:1,slidesToScroll:1,arrows:!1,infinite:!1,asNavFor:this.$featuredThumbnails}),this.$featuredThumbnails.slick({slidesToShow:5,slidesToScroll:1,asNavFor:this.$featuredSlider,dots:!1,centerMode:!1,focusOnSelect:!0,vertical:r,arrows:!0,infinite:!1,verticalSwiping:r,responsive:[{breakpoint:1100,settings:{slidesToShow:4,slidesToScroll:1}},{breakpoint:749,settings:{slidesToShow:5,slidesToScroll:1}},{breakpoint:500,settings:{slidesToShow:4,slidesToScroll:1}}]}),(0,dt.default)(".featured-thumbnails .slick-prev").addClass("hidden"),(0,dt.default)("html").on("click",".featured-thumbnails .slick-arrow",()=>{let t=(0,dt.default)(".featured-thumbnails .slick-next"),n=(0,dt.default)(".featured-thumbnails .slick-prev"),s=this.$el.find(".featured-thumbnails .slick-slide").length-1,a=this.$el.find(".slick-current").index();a===s?t.addClass("hidden"):t.removeClass("hidden"),a===0?n.addClass("hidden"):n.removeClass("hidden")}),(0,dt.default)("html").on("click",".featured-thumbnails .slick-slide",()=>{let t=(0,dt.default)(".featured-thumbnails .slick-next"),n=(0,dt.default)(".featured-thumbnails .slick-prev"),s=this.$el.find(".featured-thumbnails .slick-slide").length-1,a=this.$el.find(".slick-current").index();a===s?t.addClass("hidden"):t.removeClass("hidden"),a===0?n.addClass("hidden"):n.removeClass("hidden")})):(this.$featuredSlider.slick({slidesToShow:1,slidesToScroll:1,arrows:!1,infinite:!1,asNavFor:this.$featuredThumbnails,responsive:[{breakpoint:500,settings:{infinite:!0,variableWidth:!1,slidesToShow:1,slidesToScroll:1,arrows:!0,centerMode:!0}}]}),this.$featuredThumbnails.slick({slidesToShow:5,slidesToScroll:1,asNavFor:this.$featuredSlider,dots:!1,centerMode:!1,focusOnSelect:!0,vertical:!0,arrows:!0,infinite:!1,verticalSwiping:!0,responsive:[{breakpoint:1100,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:749,settings:{slidesToShow:3,slidesToScroll:3}}]})),this.$featuredThumbnails.find(".slick-slide").eq(0).attr("aria-current","true"),this.$featuredThumbnails.on("beforeChange",(t,n,s,a)=>{let o=(0,dt.default)(n.$slides[s]),l=(0,dt.default)(n.$slides[a]);(0,dt.default)(o).attr("aria-current","false"),(0,dt.default)(l).attr("aria-current","true")});let e=()=>window.matchMedia(nt.ltSmall).matches;e()&&this.$imgWrap.on("click",function(){e()&&(console.log((0,dt.default)(this)),(0,dt.default)(this.parentElement).hasClass("trigger-video-modal")===!1&&bz(this))}),this.slidersCreated=!0};function bz(r){let e=document.getElementById("fullscreenModal");e&&e.remove();let t=document.createElement("div");t.classList.add("modal"),t.id="fullscreenModal";let n=document.createElement("div");n.innerHTML=`<a class='Close' href='#' role='button'>
307										<div class='close-btn'></div>
308										<span class='sr-only'></span>
309								</a>`,n.onclick=_z;let s=document.createElement("div");s.classList.add("modal-content"),s.id="modalContent",s.innerHTML=r.outerHTML,(0,dt.default)(s.getElementsByClassName("large-image")).removeClass("hidden"),t.appendChild(n),t.appendChild(s),document.body.appendChild(t),document.body.classList.add("modal-open")}function _z(){let r=document.getElementById("fullscreenModal");r&&r.remove(),console.log("close"),document.body.style.transform="scale(1)",document.body.style.transformOrigin="0 0",document.documentElement.style.zoom="100%",document.body.classList.remove("modal-open")}var Tz=function(r){if(this.$featuredThumbnails.length<1)return!1;this.$featuredThumbnails.html("");let e="",t=1;r.forEach((s,a)=>{s.videoThumb?e+=`<div class="item">
310                <div class="thumb">
311                    <span class="play-icon-small">
312                        <img src="${s.thumbImage}" alt="Product Video ${t++}">
313                    </span>
314                </div> 
315            </div>`:e+=`<div class="item">
316                <button class="thumb" type="button">
317                    <img class="lazy-load" data-src="${nm(s.thumbImage,"65px","65px")}">
318                </button>
319            </div>`});let n=(0,dt.default)(e);n.find("img.lazy-load").each(function(){qi(this)}),this.$featuredThumbnails.append(n)},Sz=function(r){this.$featuredSlider.html("");let e="",t=0;for(let n of r){let s=n.videoThumb,a=n.zoomImage;if(t++,s)e+=`<div class="item">
320                    <div class="video" role="img">
321                        <a href="#" class="play-icon trigger-video-modal" tabindex="0">
322                            <img src="${n.largeImage}" alt="Product Video ${t}">
323                        </a>
324                        <div class="CustomModal Product-video-modal" data-state="off">
325                        <a class="Close" href="#">
326                                <div class="close-btn">Close</div>
327                                <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
328                                    <title>Icon/Close</title>
329                                    <path fill="#757575" d="M24,43.2 C13.4136,43.2 4.8,34.5864 4.8,24 C4.8,13.4136 13.4136,4.8 24,4.8 C34.5864,4.8 43.2,13.4136 43.2,24 C43.2,34.5864 34.5864,43.2 24,43.2 M24,0 C10.7664,0 0,10.7664 0,24 C0,37.236 10.7664,48 24,48 C37.2336,48 48,37.236 48,24 C48,10.7664 37.2336,0 24,0 M29.5032,15.1032 L24,20.6064 L18.4968,15.1032 L15.1032,18.4968 L20.6064,24 L15.1032,29.5032 L18.4968,32.8968 L24,27.3936 L29.5032,32.8968 L32.8968,29.5032 L27.3936,24 L32.8968,18.4968 L29.5032,15.1032 Z"></path>
330                                </svg>
331                              <span class="sr-only">Close modal</span>
332                            </a>
333                            <video controls>
334                                <source src="${n.videoSrc}" type="video/mp4">
335                                Your browser does not support HTML5 video.
336                            </video>                  
337                        </div>
338                    </div>
339                </div>`;else if(a){let o=tc.getSiteBrand().key,l=["LCD","PWR"].includes(o);e+=`<div class="item" style="position: relative;">
340                    <div class="img-wrap">
341                        <figure class="zoom-image inactive" data-desktop="${n.zoomImage}">
342                            <img
343                            src="${nm(n.largeImage,"560px","560px")}"
344                            alt="">
345                        </figure>
346                    </div>
347                    <div class="zoom-image-buttons" role="application">
348                        ${l||(0,dt.default)('html[data-mvp="true"]').length>0?`
349                            <button class="plus" tabindex="0" aria-label="Click to Zoom in with Arrow Keys">+</button>
350                            <button class="minus" tabindex="0" aria-label="Click to Zoom out with Arrow Keys">-</button>
351                            `:`
352                            <button class="minus" tabindex="0" aria-label="Click to Zoom out with Arrow Keys">-</button>
353                            <button class="plus" tabindex="0" aria-label="Click to Zoom in with Arrow Keys">+</button>
354                            `}
355                    </div>
356                </div>`}else e+=`<div class="item">
357                    <div class="img-wrap">
358                        <figure>
359                            <img src="${n.largeImage}" alt="Product Image ${t}">
360                        </figure>
361                    </div>
362                </div>`}this.$featuredSlider.append(e)},xz=function(r){this.slidersCreated&&yz.call(this),Tz.call(this,r),Sz.call(this,r),g4.call(this),v4.call(this),y4.call(this)};document.addEventListener("DOMContentLoaded",()=>{let r=(0,dt.default)(".accordion-mobile-closed");r.length&&window.matchMedia(nt.ltMedium).matches&&new p4.default(r).contract(0)});var db=function(r){if(this.$el=(0,dt.default)(r),this.$webservice=this.$el.attr("data-webservice"),this.$sliderWrapper=this.$el.find(".Product-featured-slider"),this.$sliderWrapper.length<1)return!1;this.$featuredSlider=this.$sliderWrapper.find(".featured-slider"),this.$featuredThumbnails=this.$sliderWrapper.find(".featured-thumbnails"),this.slidersCreated=!1,this.$imgWrap=this.$sliderWrapper.find(".large-image"),y4.call(this),g4.call(this),v4.call(this)};(0,m4.default)(db);db.prototype.updateProductImages=xz;b4.exports=db});var E4=pe((xce,C4)=>{O();R();L();var Za=Z(Ae()),T4=Z(Ja()),S4=Z(lc()),x4=Z(vp());function wz(r){if(!this.sliderTemplate||!this.$productSliderWrapper)return;if(this.$productSliderWrapper.removeClass("isOpen"),this.$productSliderWrapper.off("click"),!r||!r.accessories||!r.accessories.length){this.$accessoriesMenuButton.addClass("hidden"),this.$productSliderWrapper.addClass("hidden");return}this.$accessoriesMenuButton.removeClass("hidden"),this.$productSliderWrapper.removeClass("hidden");let e=this.sliderTemplate(r.accessories);this.$productSliderWrapper.html(e),new x4.default((0,Za.default)(this.$productSliderWrapper)),this.$productSliderWrapper.find(".Accordion").each(function(){new S4.default(this)})}function w4(r){if(this.$el=(0,Za.default)(r),(0,Za.default)("#AccessoryProductSliderTemplate").length){let e=(0,Za.default)("#AccessoryProductSliderTemplate").html();this.sliderTemplate=T4.default.compile(e)}this.$productSliderWrapper=(0,Za.default)("#Product-slider"),this.$accessoriesMenuButton=(0,Za.default)("#AccessoriesMenu")}w4.prototype.updateHtml=wz;C4.exports=w4});var yp,hb=Ze(()=>{O();R();L();
362yp=r=>{let e=$(r);if(e.length<1)return null;let t=e.find(".slider:not(.slick-initialized)");if(t.length<1)return null;let n=()=>{t.slick({infinite:!1,mobileFirst:!0,slidesToShow:1,slidesToScroll:1,lazyLoad:"ondemand",arrows:!0,dots:!1,responsive:[{breakpoint:1400,settings:{slidesToShow:5}},{breakpoint:1024,settings:{slidesToShow:5}},{breakpoint:750,settings:{slidesToShow:3}},{breakpoint:500,settings:{slidesToShow:2}}]})};n(),e.find(".target").on("click",()=>{t.slick("unslick"),n()})}});var I4=pe((Oce,D4)=>{O();R();L();var El=Z(Ae()),k4=Z(Ja()),A4=Z(lc());hb();function Cz(r){if(!this.sliderTemplate||!this.$productSliderWrapper||!r.alsoConsiderItems.length)return this.$productSliderWrapper.parent().toggleClass("hidden",!0);let e=this.sliderTemplate(r.alsoConsiderItems);this.$productSliderWrapper.html(e),this.$productSliderWrapper.parent().toggleClass("hidden",!1),yp((0,El.default)(this.$productSliderWrapper)),this.$productSliderWrapper.find(".Accordion").each(function(){new A4.default(this)})}function P4(r){if(this.$el=(0,El.default)(r),(0,El.default)("#RecommendedProductSliderTemplate").length){let e=(0,El.default)("#RecommendedProductSliderTemplate").html();this.sliderTemplate=k4.default.compile(e)}this.$productSliderWrapper=(0,El.default)(".recommended-slider")}P4.prototype.updateHtml=Cz;D4.exports=P4});var L4=pe((Bce,O4)=>{O();R();L();var bp=Z(Ae());qs();var Ez=function(r){this.$el=(0,bp.default)(r),this.$videoLink=this.$el.find(".open-modal"),this.$videoLink.each(function(){var e=(0,bp.default)(this).siblings(".Feature-image-video-modal");di((0,bp.default)(this),e,"body")})};O4.exports=Ez});var R4,N4=Ze(()=>{O();R();L();R4=r=>{let e=document.querySelectorAll(r);if(!e.length)return null;let t=[];return e.forEach(n=>{let s=n.querySelector(".toggle-button"),a=n.querySelector(".content-text");var o=$("#showMore").data("show"),l=$("#showMore").data("hide");let u=!1;if(!s||!a)return;let c=()=>{u=!u,a.classList.toggle("expanded",u),s.textContent=u?l:o};s.addEventListener("click",c),t.push({toggleContent:c})}),t}});var M4,B4,$4=Ze(()=>{O();R();L();M4=Z(Fr());Tt();B4=()=>{document.querySelector(".Featured-image-acco")&&new M4.default(".Featured-image-acco .image",[{mediaQuery:nt.ltSmall,attrName:"data-mobile"},{attrName:"data-desktop"}],{blankClass:"hidden"})}});var V4=pe((tde,H4)=>{O();R();L();var Le=Z(Ae()),U4=Z(En()),pi=Z(Ja()),q4=Z(L4());hb();ud();N4();$4();J0();le.options.autoSetup=!1;pi.default.registerHelper("if_eq",function(r,e,t){return r==e?t.fn(this):t.inverse(this)});pi.default.registerHelper("contains",function(r,e,t){return r=pi.default.escapeExpression(r),e=pi.default.escapeExpression(e),e.indexOf(r)>-1?t.fn(this):t.inverse(this)});pi.default.registerHelper("notContains",function(r,e,t){return r=pi.default.escapeExpression(r),e=pi.default.escapeExpression(e),e.indexOf(r)===-1?t.fn(this):t.inverse(this)});var kz=function(r){if(!this.isQuickView){if(r.hasAllFeatureTypes){if("extendedFeatures"in r&&Array.isArray(r.extendedFeatures)){let l=Array.from(r.extendedFeatures).map(u=>{if(u.ImageUrl){let c=new URL(u.ImageUrl);c.searchParams.set("width","400px"),c.searchParams.set("height","400px"),u.ImageUrl=c.toString()}return u});r.extendedFeatures=l}let a=this.featuresTemplate(r);this.$featuresSection.length&&(this.$featuresSection.html(a),R4(".featured-content-container"));let o=this.extendedFeaturesTemplate(r);this.$extendedFeaturesSection.length&&this.$extendedFeaturesSection.html(o),this.$featuresMenu.removeClass("hidden"),this.$productFeaturesContainer.removeClass("hidden"),this.featuredContentContainers=(0,Le.default)(".featured-content-container"),this.featuredContentContainers.length>0&&((0,Le.default)(this.featuredContentContainers[0]).hasClass("featured-content-position-below-fold")?this.$featuresMenu.removeClass("hidden"):this.$featuresMenu.addClass("hidden"))}else this.$featuresSection.html(""),this.$featuresMenu.addClass("hidden"),this.$productFeaturesContainer.addClass("hidden");if(r.hasVariantEpiserverContent){var e=this.variantEpiContentTemplate(r);this.$variantEpiContentSection.html(e),(0,Le.default)(".FeatureImage").length>0&&(0,Le.default)(".FeatureImage").each(function(){new q4.default(this)}),(0,Le.default)(".Featured-image-acco").each(function(){B4(this)}),wa(),this.$variantEpiContentSection.removeClass("hidden")}else this.$variantEpiContentSection.html(""),this.$variantEpiContentSection.addClass("hidden");if(r.hasProductPromotionEpiserverContent){var t=this.productPromotionEpiContentTemplate(r);this.$promotionEpiContentSection.html(t)}else this.$promotionEpiContentSection.empty();if(r.hasSpecifications){var n=this.specsTemplate(r);this.$specsSection.html(n),this.$specsMenu.removeClass("hidden"),this.$productSpecsContainer.removeClass("hidden")}else this.$specsSection.html(""),this.$specsMenu.addClass("hidden"),this.$productSpecsContainer.addClass("hidden")}if(r.hasProductMedia&&this.productMediaHandlebars&&this.productMediaTemplate&&this.$productMediaSection){var s=this.productMediaTemplate(r);this.$productMediaSection.html(s),this.$productMediaMenu.removeClass("hidden"),this.$productMediaContainer.removeClass("hidden")}else!r.hasProductMedia&&this.productMediaHandlebars&&this.productMediaTemplate&&this.$productMediaSection&&(this.$productMediaSection.html(""),this.$productMediaMenu.addClass("hidden"),this.$productMediaContainer.addClass("hidden"));this.$productTitle&&this.$productTitle.text(r.name),!this.isQuickView&&this.$productBreadcrumbsSegment&&this.$productBreadcrumbsSegment.text(r.name),this.multipleColumnDisplayBlock=(0,Le.default)(".Multiple-column-display-block"),this.multipleColumnDisplayBlock&&(Az(),Pz(),Dz())},fb=function(r,e){this.$featuresMenu=(0,Le.default)("#FeaturesMenu"),this.$specsMenu=(0,Le.default)("#SpecsMenu"),this.$productMediaMenu=(0,Le.default)("#ProductMediaMenu"),this.isQuickView=e,(0,Le.default)("#ProductMediaTemplate").length&&(this.productMediaHandlebars=(0,Le.default)("#ProductMediaTemplate").html(),this.productMediaTemplate=pi.default.compile(this.productMediaHandlebars)),(0,Le.default)(".recommended-slider").each(function(){yp((0,Le.default)(this))}),this.featuresHandlebars=(0,Le.default)("#FeaturesTemplate").html(),this.featuresHandlebars&&(this.featuresTemplate=pi.default.compile(this.featuresHandlebars)),this.extendedFeaturesHandlebars=(0,Le.default)("#ExtendedFeaturesTemplate").html(),this.extendedFeaturesHandlebars&&(this.extendedFeaturesTemplate=pi.default.compile(this.extendedFeaturesHandlebars)),this.specsHandlebars=(0,Le.default)("#SpecsTemplate").html(),this.specsHandlebars&&(this.specsTemplate=pi.default.compile(this.specsHandlebars)),this.variantEpiContentHandlebars=(0,Le.default)("#VariantEpiContentTemplate").html(),this.variantEpiContentHandlebars&&(this.variantEpiContentTemplate=pi.default.compile(this.variantEpiContentHandlebars)),this.$variantEpiContentSection=(0,Le.default)("#epi-content-section"),this.productPromotionEpiContentHandlebars=(0,Le.default)("#ProductPromotionEpiContentTemplate").html(),this.productPromotionEpiContentHandlebars&&(this.productPromotionEpiContentTemplate=pi.default.compile(this.productPromotionEpiContentHandlebars)),this.$promotionEpiContentSection=(0,Le.default)("#promotion-content-section"),this.$productMediaSection=(0,Le.default)("#product-media-section"),this.$featuresSection=(0,Le.default)(".product-features-show-more"),this.$extendedFeaturesSection=(0,Le.default)(".extended-features-section"),this.$specsSection=(0,Le.default)("#specs-section"),this.$productFeaturesContainer=(0,Le.default)("#Product-features"),this.$productSpecsContainer=(0,Le.default)("#Product-specs"),this.$productAccessoriesContainer=(0,Le.default)("#Product-slider"),this.$productRecommendedContainer=(0,Le.default)(".recommended-slider"),this.$productMediaContainer=(0,Le.default)("#Support-block"),this.$productTitle=r.find(".title,.product-title"),this.$productBreadcrumbsSegment=(0,Le.default)(".Breadcrumbs span.item"),(0,Le.default)(this.$productAccessoriesContainer).length&&(0,Le.default)(document).ready(()=>{var t=(0,Le.default)("#Product-slider .product a.product-link");(0,Le.default)(t).each(function(n){(0,Le.default)(this).click(()=>{setTimeout(()=>{(0,Le.default)(".Product-featured-slider h1.title").focus()},500)})})})},F4=r=>{let e=(0,Le.default)((0,Le.default)(r)[0]);if(e.length<=0||!e.is(":visible"))return 0;let t=e.outerHeight(!0),n=(0,Le.default)(window).height(),s=e[0].getBoundingClientRect(),a=s.top,o=s.bottom;return Math.max(0,a>0?Math.min(t,n-a):Math.min(o,n))};function Az(){(0,Le.default)(".transcript-toggle").each(function(){let r=(0,Le.default)(this);r.off("click.transcript"),r.on("click.transcript",function(e){e.preventDefault(),e.stopImmediatePropagation();let t=r.attr("aria-expanded")==="true",n=(0,Le.default)("#"+r.attr("aria-controls"));r.attr("aria-expanded",(!t).toString()),t?(r.attr("aria-expanded","fal
362se"),n.css("max-height",n[0].scrollHeight+"px"),requestAnimationFrame(()=>{requestAnimationFrame(()=>{n.css("max-height","0px"),n.removeClass("is-open"),n.attr("tabindex","-1")})}),n.one("transitioned",()=>{n.attr("hidden",!0)})):(r.attr("aria-expanded","true"),n.removeAttr("hidden"),requestAnimationFrame(()=>{n.addClass("is-open"),n.attr("tabindex","0"),n.css("max-height",n[0].scrollHeight+"px")}),n.one("transitioned",()=>{r.attr("aria-expanded")==="true"&&n.css("max-height","none")}))})})}var Pz=function(){(0,Le.default)(".video-js").each(async function(){let e=(0,Le.default)(this),t=(0,Le.default)(this).parents(".video-js-container").first(),n=e.parents(".hero-carousel-block").first().length>0,s=e.attr("data-play-in-modal")==="true"&&!n,a=(e.attr("data-autoplay")==="true"||n)&&!s,o=e.attr("data-muted")==="true"||n,l=n,u=e.attr("data-is-decorative")==="true",c=t.hasClass("is-decorative"),h=!u&&!l;o&&e.attr("muted",!0);let f=e.attr("data-fallback-image-url"),v={sources:[{src:e.attr("data-src")}],preload:"auto",controls:h,fluid:!0,nativeTextTracks:!0},p=le(this,v);if(l){let g=e.parent(),b=(0,Le.default)(`<button
363            type = "button
364            tabindex="0"
365            class="ada-play-pause playing"
366            ></button>`),S=!0;b.on("click",()=>{S?(p.pause(),b.toggleClass("playing",!1)):(p.play(),b.toggleClass("playing",!0)),S=!S});let x=(0,Le.default)(p.el());x.css("position","relative"),x.append(b)}else u&&(!c||c)&&p.ready(()=>{p.controls(!1),p.controlBar.hide(),(0,Le.default)(p.el()).find(".vjs-big-play-button").hide();let g=(0,Le.default)(p.el()),b="";c?b=(0,Le.default)(`<button 
367                class="decorative-play-pause 
368                vjs-play-control vjs-control vjs-button"
369                aria-label="pause video" tabindex="-1">
370                <span class="vjs-control-text">Pause video</span>
371                </button>`):c||(b=(0,Le.default)(`<button 
372                class="decorative-play-pause 
373                vjs-play-control vjs-control vjs-button"
374                aria-label="pause video">
375                <span class="vjs-control-text">Pause video</span>
376                </button>`)),g.append(b);let S=()=>{p.paused()?b.removeClass("vjs-playing").addClass("vjs-paused").attr("aria-label","Play video").find(".vjs-control-text").text("Play Video"):b.removeClass("vjs-paused").addClass("vjs-playing").attr("aria-label","Pause video").find(".vjs-control-text").text("Paused Video")};b.on("click",x=>{x.stopPropagation(),p.paused()?p.play():p.pause()}),(0,Le.default)(p.el()).on("click",x=>{(0,Le.default)(x.target).closest(".decorative-play-pause").length||(p.paused()?p.play():p.pause())}),p.on("play",S),p.on("pause",S),S()});let T=()=>{if(f.trim().length!==0)return t.html((0,Le.default)(`<img class="fallback-image" src="${f}" alt="Video not available" />`))};if(p.on("error",T),a){try{setTimeout(()=>{p.play()},500)}catch(g){console.error("Error playing video",g),T()}p.on("ended",()=>{try{p.play()}catch(g){console.error("Error playing video",g),T()}})}if(s){let g=e.clone(),b=le(g[0],v),S=g.parent();S.toggleClass("video-js",!0);let x=(0,Le.default)('<div class="overlay vjs-overlay"></div>').css({position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.55)",zIndex:9999,display:"none"}).appendTo("body"),E=(0,Le.default)('<button class="close-button">Close</button>').css({position:"fixed",top:"-30px",right:"0",zIndex:1e4}),k=A=>{if([!0,!1].includes(A)?A:p.paused()){p.initChildren(),x.show();let I=window.innerWidth<=768?.9:.5,M=window.innerWidth*I,F=M*(p.videoHeight()/p.videoWidth());S.appendTo(x).css({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1e4,width:M,height:F,paddingTop:"0"}),b.play(),S.focus(),(0,Le.default)(document).on("keydown.modalEscape",ne=>{ne.key==="Escape"&&k(!1)}),S.append(E)}else{let I=F4(t)>0;x.hide(),b.initChildren(),E.detach(),I||(0,Le.default)("html, body").animate({scrollTop:Math.max(0,t.offset().top-F4((0,Le.default)("header"))-25)},800),(0,Le.default)(document).off("keydown.modalEscape")}};p.on("play",()=>k(!0)),x.on("click",A=>{(0,Le.default)(A.target).is(".overlay")&&k(!1)}),E.on("click",()=>k(!1)),b.on("ended",()=>{k(!1)})}})},Dz=function(){let r=(0,Le.default)(".Multiple-column-display-block").find(".column-container").find("video");if(!r)return;let e=(0,Le.default)(".Multiple-column-display-block").find(".column-container");if(e.length>0&&(0,Le.default)(".video-js-container").length>0){let n=e.first().height();if(n>0){(n>305||(0,Le.default)(window).width()>420)&&(n=305);let s=n-50;r.each(function(){(0,Le.default)(this).attr("height",s),(0,Le.default)(this).attr("width",s*1.7)})}}(0,Le.default)(".Hero-banner").find("video").each(function(){let n=(0,Le.default)(".Hero-banner").height();(0,Le.default)(window).width()<=420&&(n=227,(0,Le.default)(this).attr("height",n),(0,Le.default)(this).attr("width",n*1.7)),(0,Le.default)(this).attr("height",n),(0,Le.default)(this).attr("width",n*1.7)})};(0,U4.default)(fb);fb.prototype.updateHtml=kz;H4.exports=fb});var j4,z4=Ze(()=>{O();R();L();j4=()=>{dataLayer.push({event:"pageview"})}});var W4,G4,Q4,K4,X4,Y4,_p,pb=Ze(()=>{O();R();L();W4=Z(Ae()),G4=Z(h4()),Q4=Z(_4()),K4=Z(E4()),X4=Z(I4()),Y4=Z(V4());z4();sm();_p=(r,e=!1)=>{let t=(0,W4.default)(r);if(t.length!==1)return null;let n=new Q4.default(t),s=new G4.default(t),a=new K4.default(t),o=new X4.default(t),l=new Y4.default(t,e);s.on("updateHtml",u=>{l.updateHtml(u),vo(),!e&&u.contentUrl&&window.history&&(window.history.replaceState({},"",u.contentUrl),j4()),e||(a.updateHtml(u),o.updateHtml(u))}),s.on("updateProductImages",u=>{n.updateProductImages(u)})}});var mb=pe((gde,e3)=>{O();R();L();var yc=Z(Ae()),J4=Z(Ja());qs();function Iz(){this.dataPromise.then(r=>{this.$modalHtml&&this.$modalHtml.length>0?(this.$modalHtml.html(this.template(r)),this.$modal.open()):(this.$modalHtml=(0,yc.default)("<div/>").addClass("commerce-connector-modal").addClass("Modal").data(r),this.$modalHtml.html(this.template(r)),this.$modal=di(this.$button,this.$modalHtml,"body",!0)),this.closeModal()})}function Oz(){this.$modalHtml.find(".close-icon").click(()=>{this.$modalHtml.length&&this.$modal.close()})}function Lz(){var r={eanNumbers:this.ean,code:this.code,language:this.language};this.dataPromise=new Promise((e,t)=>
376{yc.default.get("/api/CommerceConnector/ProductAvailability",r).done(e).fail(t)})}function Rz(){this.ean=this.$button.attr("data-ean"),this.code=this.$button.attr("data-code"),this.ean===void 0&&(this.ean=null),this.language=this.$button.attr("data-language"),!(this.code&&this.language)&&this.$button.addClass("hide-commerce-connector-btn")}function Z4(r){this.$button=(0,yc.default)(r),this.syncVariantData(),this.$button.click(()=>{this.syncVariantData(),this.template=J4.default.compile((0,yc.default)("#CommerceConnectorWidgetTemplate").html()),this.getData(),this.initModal()})}Z4.prototype={getData:Lz,initModal:Iz,closeModal:Oz,syncVariantData:Rz};e3.exports=Z4});var vp=pe((Cde,i3)=>{O();R();L();var lt=Z(Ae()),_de=Z(sn()),t3=Z(CD());pb();var r3=Z(mb());qs();ml();Tt();var Nz=(()=>{let r=function(){let c=tc.getSiteBrand().key==="FST",h=tc.getSiteBrand().key==="PWR",f=(0,lt.default)(".cart-slider").length>0;h?(0,lt.default)(".js-product-slider").length>0?((0,lt.default)("body").data("template")==="Product-detail-template"&&this.isRecommendationSlider===!1&&(0,lt.default)(".js-product-slider").addClass("container"),this.$slider.slick({infinite:!1,mobileFirst:!0,slidesToShow:1,slidesToScroll:1,lazyLoad:"ondemand",arrows:!0,dots:!1,responsive:[{breakpoint:1400,settings:{slidesToShow:5}},{breakpoint:1260,settings:{slidesToShow:4}},{breakpoint:927,settings:{slidesToShow:3}},{breakpoint:748,settings:{slidesToShow:2}},{breakpoint:500,settings:{slidesToShow:1}}]})):(0,lt.default)(this.$slider).slick({infinite:!1,slidesToShow:f?4:5,slidesToScroll:f?4:5,variableWidth:!1,centerMode:!1,responsive:[{breakpoint:1200,settings:{slidesToShow:f?4:5,slidesToScroll:f?4:5}},{breakpoint:1e3,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:800,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:540,settings:{slidesToShow:1,slidesToScroll:1}}]}).on("afterChange",(p,T)=>{let b=(0,lt.default)(T.$slides).filter((S,x)=>(0,lt.default)(x).hasClass("slick-active")).first();setTimeout(()=>{Ur(b,!0).focus()},300)}):(0,lt.default)(".js-product-slider").length>0?((0,lt.default)("body").data("template")==="Product-detail-template"&&this.isRecommendationSlider===!1&&(0,lt.default)(".js-product-slider").addClass("container"),this.$slider.slick({infinite:!1,mobileFirst:!0,slidesToShow:1,slidesToScroll:1,lazyLoad:"ondemand",arrows:!0,dots:!1,responsive:[{breakpoint:1400,settings:{slidesToShow:5}},{breakpoint:1024,settings:{slidesToShow:5}},{breakpoint:750,settings:{slidesToShow:3}},{breakpoint:500,settings:{slidesToShow:2}}]})):(0,lt.default)(this.$slider).slick({infinite:!1,slidesToShow:f?4:5,slidesToScroll:f?4:5,variableWidth:!1,centerMode:!1,responsive:[{breakpoint:1200,settings:{slidesToShow:f?4:5,slidesToScroll:f?4:5}},{breakpoint:970,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:540,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:499,settings:{slidesToShow:1,slidesToScroll:1,variableWidth:!0,centerMode:c}}]}).on("afterChange",(p,T)=>{let b=(0,lt.default)(T.$slides).filter((S,x)=>(0,lt.default)(x).hasClass("slick-active")).first();setTimeout(()=>{Ur(b,!0).focus()},300)})},e=function(){this.status==="isClosed"&&(this.status="isOpen",this.$productContainer.slideToggle(),this.$el.addClass("isOpen"))},t=function(){this.$productContainer.slideToggle(),this.$el.removeClass("isOpen"),this.status="isClosed",this.$el.find(".active").removeClass("active")},n=function(u){let c=this.$el.find(".product-container .product-block"),f=u.parents(".slick-track").find(".slick-slide"),v=u.parents(".slick-slide"),p=u.parents(".slick-slide").index();if(p===this.index&&v.hasClass("active"))return this.$productContainer.slideToggle(),this.$el.removeClass("isOpen"),this.status="isClosed",v.removeClass("active"),!1;f.each((T,g)=>{let S=g.querySelector(".product").getAttribute("data-productid");(0,lt.default)(g).hasClass("active")&&T!==p&&(0,lt.default)(g).removeClass("active"),T===p&&((0,lt.default)(g).hasClass("active")?((0,lt.default)(g).removeClass("active"),e.call(this)):((0,lt.default)(g).addClass("active"),o.call(this,S,c),e.call(this)))}),this.index=p},s=function(u){let c=this,h=(0,lt.default)("body .product-container-modal .product-block");di(u,"#Product-mobile-modal","body"),u.click(function(){let f=(0,lt.default)(this).attr("data-productid");o.call(c,f,h)})},a=u=>{_p(u);let c=u.find(".lazy-load"),h=u.find(".video-lazy-load");c.each(function(){qi(this);let f=(0,lt.default)(this).closest(".slick-slide"),v=(0,lt.default)(this).parents("div.thumb");f.attr("tabindex","-1"),f.attr("aria-hidden","true"),v.attr("tabindex","-1"),v.attr("aria-hidden","true")}),h.each(function(){qi(this,!0);let f=(0,lt.default)(this).closest(".slick-slide"),v=(0,lt.default)(this).parents("div.thumb");f.attr("tabindex","-1"),f.attr("aria-hidden","true"),v.attr("tabindex","-1"),v.attr("aria-hidden","true")})},o=function(u,c){lt.default.ajax({url:`${this.$webservice}?productID=${u}`}).done(h=>{c.html(h);let f=c.find(".commerce-connector-widget");f.length>0&&new r3.default(f);let v=c.find(".Product-info-wrapper");a.call(this,v),(0,lt.default)("includes-request-quote").each(function(){new t3.default((0,lt.default)(this))}),typeof window.PriceSpider=="object"&&window.PriceSpider.rebind()}).then(()=>
376{if(c.find(".pr-snippet-rating-decimal").html()==="0.0")c.find(".reviews-block").css("display","none");else{let h=c.find(".reviews-block").attr("data-productlink"),f=c.find(".pr-snippet-stars-container"),v=c.find(".pr-snippet-review-count");f.click(()=>{window.location.href=h}),v.click(()=>{window.location.href=h})}})},l=function(){let u=this;r.call(this),this.$el.find(".target").on("click",function(){(0,lt.default)(this).attr("aria-expanded")==="true"&&(u.$slider.slick("unslick"),r.call(u)),(0,lt.default)(this).attr("aria-expanded")==="true"&&u.$product.each(function(){s.call(u,(0,lt.default)(this))})}),this.$el.hasClass("accessories")&&(u.$el.on("click",".product-link",function(c){c.preventDefault(),(0,lt.default)(window).width()>750&&n.call(u,(0,lt.default)(this))}),u.$el.on("click",".choose-options",function(c){c.preventDefault(),(0,lt.default)(window).width()>750&&n.call(u,(0,lt.default)(this))}),u.$el.on("click",".desktop-close-btn",()=>{t.call(u)}),(0,lt.default)(window).resize(()=>{u.status==="isOpen"&&t.call(u),(0,lt.default)(window).width()<=749&&u.$product.each(function(){s.call(u,(0,lt.default)(this))})}))};return function(u){if(this.$el=(0,lt.default)(u),this.$slider=this.$el.find(".slider"),this.$slider.length<1)return!1;this.$product=this.$el.find(".product"),this.$webservice=this.$el.attr("data-webservice"),this.$productContainer=this.$el.find(".product-container"),this.$productSlider=this.$el.find(".Product-slider"),this.isRecommendationSlider=this.$el.hasClass("recommendation-slider"),this.status="isClosed",this.index=0,l.call(this)}})();i3.exports=function(r){new Nz(r)}});var f4={};Wl(f4,{FreeShippingEligibility:()=>h3,addProduct:()=>Js,addProducts:()=>Jz,addPromotion:()=>rW,emptyCart:()=>Zz,loadCart:()=>_c,onCartError:()=>sW,onCartUpdated:()=>wi,removeProduct:()=>os,removeProducts:()=>eW,removePromotion:()=>tW,saveForLater:()=>nW,updatePostalCode:()=>ub,updateQuantity:()=>vb,updateShippingMethod:()=>iW});function Kz(r,e,t){Gt.default.ajax({type:"GET",url:zz,data:{cartName:r,isSaveLaterRefresh:e},success:n=>{e?((0,Gt.default)("#SaveForLaterView").html(n),Xz(),(0,Gt.default)(".js-product-slider").each(function(){new s3.default((0,Gt.default)(this))})):((0,Gt.default)("#Cart").html(n),(0,Gt.default)(".Cart-wrapper").toggleClass("no-items",!1)),(0,Gt.default)(".lazy-load").each(function(){qi(this)})},failure:n=>{t&&console.log(n.responseText)},error:n=>{t&&console.log(n.responseText)}})}function Xz(){let r=document.getElementById("SaveForLaterView");r&&r.querySelectorAll("img[data-src]").forEach(e=>{!e.hasAttribute("src")&&e.hasAttribute("data-src")&&(e.src=e.getAttribute("data-src"),e.classList.add("loaded"))})}var Gt,n3,s3,a3,o3,bc,kt,Mz,l3,Bz,u3,$z,Fz,Uz,qz,Hz,Vz,jz,c3,zz,d3,gb,Wz,Gz,Qz,Ci,Yz,h3,Js,Jz,Zz,os,eW,vb,tW,rW,ub,iW,nW,_c,wi,sW,ls=Ze(()=>{O();R();L();Gt=Z(Ae());lr();n3=Z(SD()),s3=Z(vp());ml();a3="cartUpdated",o3="cartError",bc=window.cartEventHandler||Ts(),kt=window.helixCartConfig||{isDebugEnabled:!0},Mz="/ProductCatalog/AddToCart",l3=`${kt.baseUrl}addProduct`,Bz=`${kt.baseUrl}addProducts`,u3=`${kt.baseUrl}getCart/`,$z=`${kt.baseUrl}removeProduct`,Fz=`${kt.baseUrl}removeProducts`,Uz=`${kt.baseUrl}updateQuantity`,qz=`${kt.baseUrl}removePromotion`,Hz=`${kt.baseUrl}addPromotion`,Vz=`${kt.baseUrl}updatePostalCode`,jz=`${kt.baseUrl}updateShippingMethod`,c3=`${kt.baseUrl}save`,zz=`${kt.baseUrl}refreshWishlist`,d3=`${kt.baseUrl}removeCart`,gb=document.querySelector("body"),Wz=gb.dataset.template==="Product-detail-template",Gz=gb.dataset.template==="Category-template",Qz=gb.dataset.template==="Search-template";window.cartEventHandler=bc;Ci=({url:r,data:e,openCartMenuOnUpdate:t,csrfToken:n,method:s})=>{let a=r===d3,o=n??(0,Gt.default)("html").find("input[name=__RequestVerificationToken]").val(),l={url:r,data:e,cache:!1,headers:{"X-CSRF-Token":o},type:s,dataType:"json"},u=Gt.default.ajax(l);return r!==u3&&(0,Gt.default)("body").toggleClass("refreshing-rates",!0),u.done(c=>{if((0,Gt.default)("body").toggleClass("refreshing-rates",!1),a){window.location.reload();return}if(c.CurrentBrand==="EAP"&&c.ItemCount===0&&(0,Gt.default)("body").find(".empty-cart-button").hide(),kt.isDebugEnabled&&console.log(c),(Gz||Wz||Qz)&&c.HasValidationMessage){let v=c.ProductID,p=(0,Gt.default)('input[type="hidden"][name="productId"]').filter(function(){return(0,Gt.default)(this).val().trim().toLowerCase()===v.trim().toLowerCase()});if(p.length===0)return;let T=p.closest(".add-to-cart-btn-block");if(T.length===0)return;
376let g=T.find(".error-message.cart-item-error");g.length===0&&(g=(0,Gt.default)('<div class="error-message cart-item-error"></div>'),T.append(g)),g.html(`${c.ValidationMessage}`).addClass("show")}if(c.CartChangeResult&&c.CartChangeResult.CrossSiteCarts!==null&&c.CartChangeResult.CrossSiteCarts.length>0)for(let v of c.CartChangeResult.CrossSiteCarts)v.CartUrl&&window.open(`${v.CartUrl}?crossproduct=${btoa(JSON.stringify(v.Items))}`,"_blank");if(!kt.cartEnabled){window.location.href=c;return}let h=c.CartModel||c;Yz(h),h3(h),bc.emit(a3,{...h,openCartMenuOnUpdate:t??!0});let f=(0,Gt.default)('body[data-template="product-campaign-template"]');if(h.IsUpsell&&f.length>0||h.IsUpsell&&h.IsGlobalUpsell){let v=(0,Gt.default)("#Upsell-modal").attr("data-state");(v==="off"||v===void 0)&&new n3.default(h)}window.location.href.includes("cart")&&(r===c3?Kz(e.cartName,!0,kt.isDebugEnabled):r===l3&&(window.location=location.href))}),u.fail((c,h,f)=>{if((0,Gt.default)("body").toggleClass("refreshing-rates",!1),kt.isDebugEnabled){let v=c.responseJSON||c;console.log(v)}bc.emit(o3,c)}),u};Yz=r=>{let e=r.Items,t=r.ShippingMethod!==null?r.ShippingMethod.IsFreeShipping:!1;for(let n=0;n<e.length;
376n++){let s=(0,Gt.default)(`#${e[n].Code}`),a=e[n],o=`<div id="${a.Code}" class="col pricing-details-align">`;s!==null&&(a.IsPromotionApplied&&a.PromoDetails.length>0?(o=o.concat(`<div>${a.TotalDiscountedPrice}</div>`),a.IsBusinessUser||(a.Quantity>1?o=o.concat(`<div class="item-pricing" data-gtm-product-price="${a.ItemPrice}">Reg. <strike class="strike-through">${a.ItemPrice}</strike> ea.</div>`):o=o.concat(`<div class="item-pricing" data-gtm-product-price="${a.ItemPrice}">Reg. <strike class="strike-through">${a.ItemPrice}</strike></div>`)),a.PromoDetails.length>0&&(a.PromoDetails[0].PromoCode!==null||a.PromoDetails[0].PromoCode!==void 0?o=o.concat(`<div class="promo-item">${a.PromoDetails[0].PromoCode} - ${a.PromoDetails[0].TotalSavedAmount} off</div>`):o=o.concat(`<div class="promo-item">${a.PromoDetails[0].TotalSavedAmount} off</div>`))):(o=o.concat(`<div class="total-price">${a.TotalItemPrice}</div>`),a.SalePrice?a.Quantity>1?o=o.concat(`<div class="item-pricing">Reg. <strike class="strike-through">${a.Price}</strike> ea.</div>`):o=o.concat(`<div class="item-pricing">Reg. <strike class="strike-through">${a.Price}</strike></div>`):a.Quantity>1&&(o=o.concat(`<div class="unit-price" data-gtm-product-price="${a.ItemPrice}">${a.ItemPrice} ea.</div>`))),(t||a.PromoDetails.length<1&&r.IsGlobalPromotionApplied&&r.EligibleProductsForFreeShipping.includes(a.Code))&&(o=o.concat('<div class="promo-item">Free Shipping</div>'))),o=o.concat("</div>"),s.replaceWith(o)}},h3=r=>{let e=(0,Gt.default)(".free-shipping-eligible-block"),t=(0,Gt.default)(".free-shipping-message");if(e!==null&&e.length>0)if(!r.ShowFreeShippingMessage)e.toggleClass("hidden",!0);else if(r.IsEligibleForGlobalShippingPromotion&&r.FreeShippingMessage!==""&&r.GlobalShippingPromotionRemainingAmount!==null&&!r.IsGlobalPromotionApplied){e.toggleClass("hidden",!1);let n=`<div class="free-shipping-message">
377                    ${r.FreeShippingMessage.replace("{0}",r.GlobalShippingPromotionRemainingAmount)}
378                </div>`;t.replaceWith(n)}else if(r.ShowFreeShippingMessage&&r.IsGlobalPromotionApplied&&r.FreeShippingNoticeAppliedDescription!==null){e.toggleClass("hidden",!1);let n=`<div class="free-shipping-message">
379                                    ${r.FreeShippingNoticeAppliedDescription}
380                                  </div>`;t.replaceWith(n)}else r.FreeShippingNoticeAppliedDescription===""||r.FreeShippingNoticeAppliedDescription,e.toggleClass("hidden",!0)},Js=(r,e,t,n,s,a)=>{if(kt.cartEnabled){let l={cartName:kt.cartName,code:r,quantity:Number.parseInt(e),fromSaveForLater:s,recommendatonId:a};return Ci({url:l3,data:l,openCartMenuOnUpdate:n,csrfToken:t,method:"POST"})}return Ci({url:Mz,data:{qty:e,productId:r,passRedirect:!0},openCartMenuOnUpdate:!1,csrfToken:t,method:"POST"})},Jz=(r,e,t)=>{let n={cartName:kt.cartName,products:r};return Ci({url:Bz,data:n,openCartMenuOnUpdate:t,csrfToken:e,method:"POST"})},Zz=(r,e)=>{let t={cartName:kt.cartName};return Ci({url:d3,data:t,openCartMenuOnUpdate:e,csrfToken:r,method:"POST"})},os=(r,e,t)=>{let n={cartName:kt.cartName,code:r};return Ci({url:$z,data:n,openCartMenuOnUpdate:t,csrfToken:e,method:"POST"})},eW=(r,e,t)=>{let n={cartName:kt.cartName,products:r};return Ci({url:Fz,data:n,openCartMenuOnUpdate:t,csrfToken:e,method:"POST"})},vb=({code:r,quantity:e,csrfToken:t,openCartMenuOnUpdate:n})=>{let s={cartName:kt.cartName,code:r,quantity:e};return Ci({url:Uz,data:s,openCartMenuOnUpdate:n,csrfToken:t,method:"POST"})},tW=(r,e,t,n,s,a,o,l,u,c)=>{let h={cartName:kt.cartName,shippingMethodId:e,postalCode:t,addressLineOne:n,addressLineTwo:s,city:o,region:a,countryCode:l,code:r};return Ci({url:qz,data:h,csrfToken:u,openCartMenuOnUpdate:c,method:"POST"})},rW=(r,e,t,n,s,a,o,l,u,c,h)=>{let f={cartName:kt.cartName,shippingMethodId:e,postalCode:t,addressLineOne:n,addressLineTwo:s,city:o,region:a,countryCode:l,code:r,gCaptchaResponse:h,template:(0,Gt.default)("body").attr("data-template")};return Ci({url:Hz,data:f,csrfToken:u,openCartMenuOnUpdate:c,method:"POST"})},ub=(r,e,t)=>{let n={cartName:kt.cartName,postalCode:r};return Ci({url:Vz,data:n,csrfToken:e,openCartMenuOnUpdate:t,method:"POST"})},iW=(r,e,t,n,s,a,o,l,u,c,h,f)=>
380{let v={cartName:kt.cartName,taxTotal:t,shippingTotal:n,originalShippingTotal:s,shippingMethod:r,postalCode:a,addressLineOne:o,addressLineTwo:l,city:c,region:u,countryCode:h};return Ci({url:jz,data:v,csrfToken:e,openCartMenuOnUpdate:f,method:"POST"})},nW=(r,e,t)=>{let n={cartName:kt.cartName,code:r};return Ci({url:c3,data:n,openCartMenuOnUpdate:t,csrfToken:e,method:"POST"})},_c=()=>{let r={cartName:kt.cartName};return Ci({url:u3,data:r,openCartMenuOnUpdate:!1,csrfToken:void 0,method:"GET"})},wi=r=>{bc.on(a3,r)},sW=r=>{bc.on(o3,r)}});var Ude,Hde,dW,m3,g3,v3,y3=Ze(()=>{O();R();L();Ude=Z(Ae()),Hde=window.console||{log:()=>{},warn:()=>{}},dW=window.helixCartConfig||{isDebugEnabled:!0},m3=r=>r&&r.length?`${r}
381`:"",g3=r=>{let e,t="",n;for(n=0;n<r.length;n++)e=r[n],t+=m3(e);if(t.length===0){let s=dW.DefaultValidationMessage;(!s||s.length===0)&&(s="Something unexpected happened; please review your cart."),t=m3(s)}return t},v3=r=>{let e=typeof r,t=e==="string",n=e==="object"&&e.length>0,s;t?s=g3([r]):n&&(s=g3(r))}});function b3(r){if(!r)return;let e=document.querySelectorAll(".Product-info-wrapper"),t=document.querySelectorAll(".Category-item"),n=document.querySelectorAll(".simple-display");[...e,...t,...n].forEach(a=>{let o=a.querySelector('input[type="hidden"][name="productId"]');if(!o||o.value!==r)return;let u=a.querySelector(".rounded-quantity-input");if(u&&(u.value=0,$(u).data("fromCartSync",!0),u.dispatchEvent(new Event("change",{bubbles:!0})),!fW)){let c=$(a).find(".cart-item-error");c.length>0&&c.empty().removeClass("show")}})}var hW,fW,_3=Ze(()=>{O();R();L();hW=document.querySelector("body"),fW=hW.dataset.template==="Cart-template"});var C3=pe((Yde,w3)=>{O();R();L();var T3=Z(Ae()),S3=Z(Ut()),pW=new S3.default;function x3(){window.dataLayer===void 0&&(window.dataLayer=[])}function mW(r){if((0,T3.default)("body").data("template")==="Checkout-order-placed"){let e=pW.getDataAttributeFromChildNode(document,"data-gtm-total");dataLayer.push({transactionTotal:e?Number.parseFloat(e.replace(/[^\d.]/g,"")):0})}else dataLayer.push({transactionTotal:r?Number.parseFloat(r.replace(/[^\d.]/g,"")):0})}x3.prototype.updateTransactionTotal=mW;w3.exports=x3});var L3=pe((che,O3)=>{O();R();L();var vt=Z(Ae());Tt();lr();y3();_m();Sm();_3();ls();var P3=Z(C3()),gW=ld(),Sc=(0,vt.default)('input[name="enableQTYSelectorVOne"]').val(),A3="",vW=new P3.default,us=null,xc=null,eo=!1,In=!1,D3=window.helixCartConfig||{isDebugEnabled:!0},yW=(0,vt.default)('body[data-template="Cart-template"], body[data-template="Checkout-page"]'),bW=function(){yW.length>0&&(A3="removeDivOnCartAndCheckoutPage")},_W=async(r,e,t,n,s,a,o,l,u,c,h)=>{let f=await ed("trash.svg");return t=t.replace(/"/g,""),(0,vt.default)(`
382        <li class="cart-item" data-onHand="${c}" data-id="${r}" data-gtm-product-name='${t}' data-gtm-product-category="${n}" data-gtm-product-sku="${s}" data-gtm-product-price="${o}" data-gtm-product-quantity="${a}">
383            <div class="thumbnail">
384                ${u?`<a href="${u}"><img src="${e}" alt="${t}" data-gtm-internal-link="navigation_link"></a>`:`<img src="${e}" alt="${t}">`}
385            </div>
386            <div class="info">
387                <div class="title">
388                    ${u?`<a href="${u}" data-gtm-internal-link="navigation_link">${t}</a>`:`<span>${t}</span>`}
389                </div>
390                <div class="details">
391                    <div class="qty-price">
392                        <span class="item-qty" aria-live="polite">${h} ${a}</span>
393                        <span class="price ${l?"on-sale":""}">${o}</span>
394                    </div>
395                    <div class="remove ${A3}">
396                        ${f}
397                        <button aria-label="Remove ${t} from cart" data-gtm-mini-cart-remove>Remove</button>
398                    </div>
399                </div>
400            </div>
401        </li>
402    `)},_b=[],E3=0,TW=async function(r,e){if(r===void 0)return;let t=r.Items??[],n=r.SubTotal,s=r.ViewCartQtyText,a=r.TotalQuantity,o=t.length;this.$cartList.find("li").not(".empty-cart-message").each(function(){(0,vt.default)(this).remove()});for(let c of t){if(_b.includes(c.Code))continue;console.log(c);let h=await _W(c.Code,c.ThumbImage,c.Name,c.PrimaryCategory,c.Sku,c.Quantity,c.TotalDiscountedPrice,c.SalePrice,c.Url,c.AvailableOnHandInventory,s);this.$cartList.append(h)}let l={};this.$cartList.find("li").not(".empty-cart-message").each(function(){let c=(0,vt.default)(this).data("id");l[c]?(0,vt.default)(this).remove():l[c]=!0}),this.$cartList.find("a[href][data-gtm-internal-link]").each(function(){Tm(this)}),_b.length=0,vW.updateTransactionTotal(n),this.$cartList.toggleClass("has-items",o>0),this.$cartList.toggleClass("has-over-two-items",o>2),this.$cartList.attr("data-cart-total",r.Total),this.$emptyCartMessage.toggle(o===0),this.$carttotal.toggle(o!==0),this.$viewCartBtn.toggle(o!==0),this.$checkoutBtn.toggle(o!==0),this.$total.text(n),this.$count.text(a),this.$submenu.toggleClass("cart-is-empty",o===0),o===0?((0,vt.default)(this.$headerTitle).attr("style","display: block;"),(0,vt.default)(this.$headerTitleAddedNewItem).attr("style","display: none;")):((0,vt.default)(this.$headerTitle).attr("style","display: none;"),(0,vt.default)(this.$headerTitleAddedNewItem).attr("style","display: block;"));let u=E3<a&&a!==0;if(E3=a,e&&xW.call(this,D3.secondsToKeepCartMenuOpen,u),!r.CartChangeResult||r.CartChangeResult.Success===!0)return"";v3(r.CartChangeResult.ValidationMessages)},I3=function(){Tb("Mini cart dialog collapsed",0),(0,vt.default)(this.$headerTitleAddedNewItem).attr("style","display: none;"),(0,vt.default)(this.$headerTitle).attr("style","display: block;"),this.$el.removeClass("active"),setTimeout(()=>{requestAnimationFrame(()=>{let r=null;if(us&&document.contains(us)&&!(Sc==="VersionOneEnabled"&&eo||In)&&(r=us),!r&&xc){let e=document.querySelector(`input[name="productId"][value="${xc}"]`);if(e){let t=e.closest(".Product-info-wrapper, .Category-item, .simple-display");if(Sc==="VersionOneEnabled")if(In)r=t?.querySelector(".js-add-to-cart");else if(eo){let n=t?.querySelector('.qty-button[data-quantity="minus"]');n&&(r=n)}else r=us;else r=t?.querySelector(".js-add-to-cart")}}r||(r=document.querySelector(".js-add-to-cart, .qty-button")),r&&r.focus(),In=!1,eo=!1})},500)},k3;function Tb(r){let e=document.querySelector("[ada-message]");e&&(clearTimeout(k3),e.textContent="",e.setAttribute("aria-live","off"),k3=setTimeout(()=>{e.setAttribute("aria-live","assertive"),setTimeout(()=>{e.textContent=r},50)},50))}function SW(r){(0,vt.default)(document).off("keydown.firstTab"),(0,vt.default)(document).on("keydown.firstTab",function(e){if(e.key!=="Tab"||!r.closest(".active").length)return;let t=r[0];if(document.activeElement!==t)return;let n=r.find('button, [href], input, select, textarea, [tabindex]:not
402([tabindex="-1"])');n.length&&(e.preventDefault(),e.shiftKey?n.last()[0].focus():n.first()[0].focus())})}var xW=function(r,e=!1){if(D3.openCartOnUpdate!==!0)return;this.$el.addClass("active"),Tb("Mini cart dialog expanded."),this.$el.find(".close-btn").removeAttr("aria-expanded"),setTimeout(()=>{let n=this.$submenu;n.attr({role:"dialog","aria-describedby":"sub-menu-content"}),n.attr("tabindex","-1")[0].focus(),this.$el.find(".close-btn").removeAttr("aria-expanded"),SW(n),n.off("keydown.esc").on("keydown.esc",s=>{s.key==="Escape"&&(s.preventDefault(),s.stopPropagation(),setTimeout(()=>{I3.call(this)},400))})},150),e&&((0,vt.default)(this.$headerTitle).attr("style","display: none;"),(0,vt.default)(this.$headerTitleAddedNewItem).attr("style","display: block;"));let t="UtilityNav-isOpen";!r||r<=0||(0,vt.default)("html").addClass(t)};function wW(r){new MutationObserver(()=>{r.hasClass("active")||setTimeout(()=>{requestAnimationFrame(()=>{let t=null;if(us&&document.contains(us)&&!(Sc==="VersionOneEnabled"&&eo||In)&&(t=us),!t&&xc){let n=document.querySelector(`input[name="productId"][value="${xc}"]`);if(n){let s=n.closest(".Product-info-wrapper, .Category-item, .simple-display");if(Sc==="VersionOneEnabled")if(In)t=s?.querySelector(".js-add-to-cart");else if(eo){let a=s?.querySelector('.qty-button[data-quantity="minus"]');a&&(t=a)}else t=us;else t=s?.querySelector(".js-add-to-cart")}}t||(t=document.querySelector(".js-add-to-cart, .qty-button")),t&&t.focus(),In=!1,eo=!1})},150)}).observe(r[0],{attributes:!0,attributeFilter:["class"]})}var CW=function(){wi(r=>{let e=r.CartChangeResult!==null,t=(0,vt.default)('body[data-template="Cart-template"]').length>0;TW.call(this,r,r.openCartMenuOnUpdate&&e&&!t)}),(0,vt.default)(this.$checkoutBtn).on("click",r=>{sessionStorage.setItem("checkoutTypeSrc","minicart")}),(0,vt.default)(this.$closeBtn).on("click keydown",r=>{(r.type==="click"||r.key==="Enter"||r.key===" ")&&(r.preventDefault(),I3.call(this))}),bW.call(),this.$el.on("click",".remove",function(r){if(!(0,vt.default)(this).is(".remove"))return;r.preventDefault(),r.stopImmediatePropagation(),(0,vt.default)("#LoadingModal").length>0&&(0,vt.default)("#LoadingModal").attr("data-state","on");let e=(0,vt.default)(this).parents(".cart-item").first(),t=e.attr("data-id");gW.sendRemoveDatalayer(e),_b.push(t),e.remove(),os(t).then(n=>{let s=e.attr("data-gtm-product-name");Tb(`${s} removed from Cart`),Sc==="VersionOneEnabled"&&b3(t)}),setTimeout(function(){(0,vt.default)("#LoadingModal").length>0&&(0,vt.default)("#LoadingModal").attr("data-state","off")},1e3)}),(0,vt.default)(document).on("click",".js-add-to-cart, .qty-button",function(){let r=(0,vt.default)(this);if(eo=r.hasClass("js-add-to-cart"),r.hasClass("qty-button")&&r.data("quantity")==="minus"){let s=r.closest(".Product-info-wrapper, .Category-item, .simple-display").find(".rounded-quantity-input");parseFloat(s.val())===1?In=!0:In=!1}else In=!1;us=this;let t=r.closest(".Product-info-wrapper, .Category-item, .simple-display").find('input[type="hidden"][name="productId"]');t.length&&(xc=t.val())}),(0,vt.default)(document).on("blur",".rounded-quantity-input",function(){parseFloat((0,vt.default)(this).val())<=0&&(In=!0)})},EW=function(r){this.$el=(0,vt.default)(r),this.$headerTitle=this.$el.find(".cart-popup-header > .title"),this.$headerTitleAddedNewItem=this.$el.find(".cart-popup-header > .added-title"),this.$closeBtn=this.$el.find(".close-btn"),this.$submenu=this.$el.find(".sub-menu"),this.$emptyCartMessage=this.$el.find(".empty-cart-message"),this.$cartList=this.$el.find(".cart-items"),this.$viewCartBtn=this.$el.find(".cart-actions .view-cart"),this.$checkoutBtn=this.$el.find(".cart-actions .checkout"),this.$total=this.$el.find(".cart-total .total"),this.$carttotal=this.$el.find(".cart-total"),this.$count=this.$el.find("button .count").first(),CW.call(this),_c(),wW(this.$el)};O3.exports=EW});var Cb=pe((phe,M3)=>{"use strict";O();R();L();var wc=En();wc="default"in wc?wc.default:wc;var ea={};ea.typeof=function(r){return r&&typeof Symbol<"u"&&r.constructor===Symbol?"symbol":typeof r};var Ei=wc({}),Sp=typeof history.pushState<"u",Sb={},Tp=void 0,Hr=void 0,to=function r(e,t){if((e===null||(typeof e>"u"?"undefined":ea.typeof(e))!=="object")&&(e={}),t===null||(typeof t>"u"?"undefined":ea.typeof(t))!=="object")return e;Object.keys(t).forEach(function(o){e[o]=ea.typeof(t[o])==="object"&&t[o]!==null?r({},t[o]):t[o]});for(var n=arguments.length,s=Array(n>2?n-2:0),a=2;a<n;a++)s[a-2]=arguments[a];return s.length?(s.unshift(e),r.apply(this,s)):e}
402,N3=function(e){Tp&&Object.keys(Tp).forEach(function(t){if(typeof e[t]=="string")switch(Tp[t]){case"object":e[t]=JSON.parse(e[t]);break;case"boolean":e[t]=!!e[t];break;case"number":e[t]=Number(e[t]);break;case"float":e[t]=parseFloat(e[t]);break;case"int":e[t]=parseInt(e[t],10);break}})},xb=function(){var e=to({},Sb);return location.search.substring(1).split("&").forEach(function(t){var n=t.split("=");n.length>1&&(e[n[0]]=decodeURIComponent(n[1]))}),N3(e),e},R3=function(){if(window.location.pathname)return window.location.pathname;var e=window.location.href,t=e.indexOf("?");return t===-1?e:e.substring(0,t)},wb=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var a=n.length?to.apply(void 0,[{},Hr].concat(n)):Hr,o=Object.keys(a);if(o.length===0)return R3();var l=o.map(function(u){var c=a[u],h="";if(c!==Sb[u])switch(typeof c>"u"?"undefined":ea.typeof(c)){case"object":h=c===null?"":JSON.stringify(c);break;case"number":case"boolean":h=String(c);break;case"string":h=c;break}return h&&u+"="+encodeURIComponent(h)}).filter(function(u){return u}).join(e?"&amp;":"&");return l?"?"+l:R3()},kW=function(){var r=!1;return document.readyState==="complete"?r=!0:window.addEventListener("load",function(){setTimeout(function(){r=!0},0)}),function(){r&&(Hr=xb(),Ei.emit("pop"))}}();Sp&&window.addEventListener("popstate",kW);Hr=xb();Ei.update=function(){Hr=xb()};Ei.setDefaults=function(r){Sb=r,Hr=to({},r,Hr)};Ei.setTypes=function(r){Tp=r,N3(Hr)};Ei.getValue=function(r){return ea.typeof(Hr[r])==="object"&&Hr[r]!==null?to({},Hr[r]):Hr[r]};Ei.toString=wb;Ei.push=function(r,e){if((typeof r>"u"?"undefined":ea.typeof(r))==="object"){var t=to(Hr,r);Sp&&history.pushState(t,e||null,wb()),Ei.emit("push")}};Ei.replace=function(r,e){if((typeof r>"u"?"undefined":ea.typeof(r))==="object"){var t=to(Hr,r);Sp&&history.replaceState(t,e||null,wb()),Ei.emit("replace")}};Ei.clone=function(){for(var r=arguments.length,e=Array(r),t=0;t<r;t++)e[t]=arguments[t];return to.apply(void 0,[{},Hr].concat(e))};Ei.clear=function(){var r=arguments.length<=0||arguments[0]===void 0?"push":arguments[0],e=arguments.length<=1||arguments[1]===void 0?void 0:arguments[1];Hr={},!(!Sp||["replace","push"].indexOf(r)===-1)&&this[r]({},e)};M3.exports=Ei});var kb,Eb,AW,bhe,PW,B3=Ze(()=>{O();R();L();ls();kb=document.querySelector("body"),Eb=kb.dataset.template==="Cart-template",AW=kb.dataset.template==="Product-detail-template",bhe=kb.dataset.template==="Category-template",PW=document.body.dataset.template==="Account-list";if(Eb||AW){let e=function(a,o){return a.replace(/{(.*?)}/g,(l,u)=>o[u]!==void 0?o[u]:"")},t=function(a,o){let l=a.querySelector(".v2-announcement")||document.querySelector(".add-to-cart-btn-block .v2-announcement");l&&(l.textContent="",l.setAttribute("aria-live","off"),setTimeout(()=>{l.setAttribute("aria-live","polite"),l.textContent=o},50))},n=function(a){let o=a.closest(".cart-item");if(o&&o.dataset.productName)return o.dataset.productName;let l=a.closest("[data-product-name]");if(l&&l.dataset.productName)return l.dataset.productName;let u=document.querySelector(".title");return u?u.textContent.trim():r.defaultProduct},s=function(a,o){let l=a.closest(".viewcart-quantity-fieldset")||a.closest(".quantity-fieldset");if(!l)return;let u=n(l),c=parseInt(a.value,10);if((isNaN(c)||c<0)&&(c=0),a.setAttribute("aria-valuenow",c),c===0){t(l,e(r?.remove?.trim()||"Quantity decreased to 0 for product {product}",{product:u})),setTimeout(()=>{t(l,e(r?.removedFromCart?.trim()||"Cart updated. {product} removed from the cart",{product:u}))},500);return}let h="";o==="increase"?h=e(r?.increase?.trim()||"Quantity increased to {qty} for product {product}",{qty:c,product:u}):o==="decrease"?h=e(r?.decrease?.trim()||"Quantity decreased to {qty} for product {product}",{qty:c,product:u}):h=e(r?.update?.trim()||"Quantity is {qty} for product {product}",{qty:c,product:u}),t(l,h),Eb&&setTimeout(()=>{t(l,e(r?.cartUpdate?.trim()||"CartUpdated with {qty} Quantity for product {product}",{qty:c,product:u}))},500)},r=JSON.parse(document.getElementById("message-Management").textContent);document.addEventListener("click",function(a){let o=a.target.closest(".qty-button");if(!o)return;let l=o.closest(".viewcart-quantity-fieldset")||o.closest(".quantity-fieldset");if(!l)return;let u=l.querySelector(".rounded-quantity-input");if(!u)return;let c=parseInt(u.value,10);isNaN(c)&&(c=0),o.dataset.quantity==="plus"&&(u.value=c,s(u,"increase")),o.dataset.quantity==="minus"&&(u.value=c,s(u,"decrease"))}),document.addEventListener("keydown",function(a){(a.key==="Enter"||a.key===" ")&&a.target.classList.contains("qty-button")&&(a.preventDefault(),a.target.click())}),document.addEventListener("blur",function(a){a.target.classList.contains("rounded-quantity-input")&&s(a.target,"update")},!0),Eb&&wi(()=>{document.querySelectorAll(".viewcart-quantity-fieldset").forEach(a=>{let o=a.querySelector(".rounded-quantity-input");if(!o)return;let l=n(a),u=parseInt(o.value,10)||0;t(a,e(r?.cartUpdate?.trim()||"CartUpdated with {qty} Quantity for product {product}",{qty:u,product:l}))})})}if(document.body.dataset.template==="Cart-template"){let e=function(){if(!r)return;let{productId:s,type:a}=r,o=document.querySelector(`.cart-item[data-id="${s}"]`);if(!o)return;let l=null;a==="input"?l=o.querySelector(".rounded-quantity-input"):l=o.querySelector(`.qty-button[data-quantity="${a}"]`),l&&setTimeout(()=>{l.focus({preventScroll:!0})},50),r=null},r=null;document.addEventListener("click",function(s){let a=s.target.closest(".qty-button");a&&(r={productId:a.closest(".cart-item")?.getAttribute("data-id"),type:a.getAttribute("data-quantity")})}),document.addEventListener("keydown",function(s){if(s.key==="Enter"||s.key===" "){let a=s.target.closest(".qty-button");a&&(r={productId:a.closest(".cart-item")?.getAttribute("data-id"),type:a.getAttribute("data-quantity")})}}),document.addEventListener("focusin",function(s){let a=s.target.closest(".rounded-quantity-input");a&&(r={productId:a.closest(".cart-item")?.getAttribute("data-id"),type:"input"})}),document.addEventListener("change",function(s){let a=s.target.closest(".rounded-quantity-input");a&&(r={productId:a.closest(".cart-item")?.getAttribute("data-id"),type:"input"})});let t=document.querySelector("#CheckoutOrderSummary");t&&new MutationObserver(()=>{e()}).observe(t,{childList:!0,subtree:!0});let n=document.getElementById("summaryPostalCode");n&&n.addEventListener("focus",function(){r&&e()})}if(PW){let e=function(n,s){let a=n.querySelector(".qty-status");a&&(a.textContent="",a.setAttribute("aria-live","off"),setTimeout(()=>{a.setAttribute("aria-live","assertive"),a.textContent=s},50))},t=function(n){let a=n.closest(".product-item")?.querySelector(".title a");return a?a.textContent.trim():"Product"};$(".Reorder-list-block").attr("data-listname")==="WishList"&&console.log("WishList"),document.addEventListener("click",function(n){let s=n.target.closest(".increment, .decrement");
402if(!s)return;let a=s.closest(".Counter");if(!a)return;let o=a.querySelector(".qtyInput");if(!o)return;let l=parseInt(o.value,10);isNaN(l)&&(l=0);let u=t(a);if(s.classList.contains("increment")){let c=l;e(a,`Quantity increased to ${c} for ${u}`),setTimeout(()=>{o.value=c},30)}if(s.classList.contains("decrement")){let c=l;e(a,`Quantity decreased to ${c} for ${u}`),setTimeout(()=>{o.value=c},30)}}),document.addEventListener("keydown",function(n){(n.key==="Enter"||n.key===" ")&&n.target.closest(".increment, .decrement")&&(n.preventDefault(),n.target.click())}),document.addEventListener("change",function(n){let s=n.target.closest(".qtyInput");if(!s)return;let a=s.closest(".Counter");if(!a)return;let o=parseInt(s.value,10);(isNaN(o)||o<1)&&(o=1,s.value=1),document.addEventListener("click",function(u){let c=u.target.closest(".reorder-btn");if(!c)return;let h=c.closest(".product-item");if(!h)return;let f=h.querySelector(".Counter");if(!f)return;let v=f.querySelector(".qtyInput"),p=f.querySelector(".qty-status");if(!v||!p)return;let T=parseInt(v.value,10)||1,g=h.querySelector(".title a"),b=g?g.textContent.trim():"Product";setTimeout(()=>{p.textContent="",p.setAttribute("aria-live","off"),setTimeout(()=>{p.setAttribute("aria-live","assertive"),p.textContent=`${b} added to cart with quantity ${T}`},50)},400)});let l=t(a);e(a,`Quantity count updated to ${o} for ${l}`)})}});var U3=pe((Ehe,F3)=>{O();R();L();var ki=Z(Ae());ls();B3();Yl();var $3=window.helixCartConfig||{isDebugEnabled:!0},DW=(0,ki.default)('input[name="enableQTYSelectorVOne"]').val(),IW=function(){var r=this;this.formData={productId:r.$skuElem.getAttribute("data-variant-code"),qty:r.$qty},this.$attributes.each(function(){if((0,ki.default)(this).is(":checked")){let e=(0,ki.default)(this).attr("name"),t=(0,ki.default)(this).val();r.formData[e]=t}})},OW=function(){var r=!0,e=[];
402if(this.$attributesForm.length){var t=this.$attributesForm[0].elements;if(t)for(var n=0;n<t.length;n++){var s=t[n];if(s.type==="radio"){var a=(0,ki.default)(s).data("attribute");if(e.indexOf(a)===-1){var o=document.getElementById(a);o!==null&&(s.checked?(o.classList.add("hidden"),e.push(a),r=!0):(o.classList.remove("hidden"),r=!1))}}}}let u=new URLSearchParams(window.location.search).get("recommendationId");if(r&&this.formData.productId&&!$3.cartEnabled)this.formData.passRedirect=!0,ki.default.ajax({method:"POST",url:this.$cartForm.attr("action"),data:this.formData,headers:{"X-CSRF-Token":this.csrfToken}}).done(c=>{window.location.href=c});else if(r&&this.formData.productId&&$3.cartEnabled){let f=function(v){let p=document.querySelector(`.cart-item[data-id="${v}"]`);return p&&parseInt(p.getAttribute("data-gtm-product-quantity"),10)||0},c=this.formData.productId,h=f(c)||0;Js(this.formData.productId,this.formData.qty,this.csrfToken,!0,!1,u).then(v=>{let p=document.querySelector(".Product-info-wrapper"),T=Number(this.formData.qty);T>0&&mo(p,"Add to cart",{oldQty:h,currentQty:T});let g=document.querySelector(".title")?.textContent.trim(),S=JSON.parse(document.getElementById("message-Management").textContent).adddtocart.replace("{product}",g),x=document.getElementById("v2-announcement");x&&(x.textContent="",x.setAttribute("aria-live","off"),setTimeout(()=>{x.setAttribute("aria-live","polite"),x.textContent=S},100)),v.EnableQtySelectorNew&&((0,ki.default)(".defaultButton").addClass("toggleDisplay"),(0,ki.default)(".qtySelectorVOne").removeClass("toggleDisplay"))}).catch(v=>{showError("Something went wrong. Please try again.")})}};function LW(r){let e=r.find(".rounded-quantity-input");return e.length&&Number(e.attr("min"))||1}var RW=function(r){if(r.preventDefault(),DW==="VersionOneEnabled"){let e=this.$cartForm.find(".add-to-cart-btn-block .qty"),t=LW(this.$cartForm);e.val(t),this.$qty=t}else this.$qty=this.$cartForm.find(".add-to-cart-btn-block .qty").val();IW.call(this),OW.call(this)},NW=function(r,e,t){this.$html=(0,ki.default)("html"),this.$cartForm=(0,ki.default)(r),this.$attributesForm=(0,ki.default)(e),this.$skuElem=this.$attributesForm.find(".sku")[0]||this.$cartForm.find(".sku")[0],this.$qty=0,this.$displaySku=(0,ki.default)(this.$skuElem).find(".id").text(),this.$attributes=this.$attributesForm.find('input[type="radio"]'),this.formData={},this.$qtyCount=this.$html.find("header .nav-icons-block .nav-list .cart .count"),this.$cartList=this.$html.find("header .cart-list"),this.csrfToken=this.$cartForm.find("input[name=__RequestVerificationToken]").val(),RW.call(this,t)};F3.exports=NW});var H3=pe((Ihe,q3)=>{O();R();L();var Lt=Z(Ae());Tt();var Al=(0,Lt.default)('body[data-template="Account-details"]').length>0,kl=(0,Lt.default)('body[data-template="Account-history"]').length>0,MW=function(){let r=this;if(this.$el.click(function(e){e.preventDefault(),Ab.call(r,(0,Lt.default)(this))}),this.$el.keydown(function(e){e.keyCode===xe.enter&&(e.preventDefault(),Ab.call(r,(0,Lt.default)(this)))}),Al){let e=[xe.downArrow,xe.tab],t=[xe.escape],n=o=>e.includes(o.keyCode)&&!o.shiftKey,s=o=>o.keyCode===xe.upArrow||o.keyCode===xe.tab&&o.shiftKey,a=o=>t.includes(o.keyCode);this.$el.each(function(){let o=(0,Lt.default)(this).parents(".tooltip-wrapper").first();o.on("keydown",function(l){let u=o.find(".tooltip-info").attr("aria-hidden")==="false";if(a(l)){if(!u)return;l.preventDefault();let c=(0,Lt.default)(this).find("button").first();Ab.call(r,c),c.focus()}if(u){let c=s(l),h=n(l);if(c||h){l.preventDefault();let{prev:f,next:v}=wr((0,Lt.default)(l.target),o);c?f.focus():v.focus()}}})})}},Ab=r=>{let e=r.parents(".tooltip-wrapper"),t=e.find(".tooltip-info"),n=t.attr("aria-hidden"),s=e.find(".attr-name").outerWidth()-3,a=t.find(".tooltip-triangle"),o=e.find("button.tooltip");a.css("left",s),t.keydown(function(u){u.keyCode===xe.escape&&(u.preventDefault(),t.attr("aria-hidden","true"),t.attr("tabindex","-1"),(0,Lt.default)(".tooltip-info a").attr("tabindex","-1"),kl||Al?setTimeout(function(){o.focus()},100):o.attr("aria-label","View more information tooltip collapsed").focus())});let l=(0,Lt.default)(".tooltip-wrapper").find(".tooltip-info").attr("aria-hidden","false");if((0,Lt.default)(l).each(function(){(0,Lt.default)(this).attr("aria-hidden","true"),(0,Lt.default)(".tooltip-info").attr("tabindex","-1"),(0,Lt.default)(".tooltip-info a").attr("tabindex","-1"),(kl||Al)&&setTimeout(function(){(0,Lt.default)("button.tooltip").attr("aria-label","View more information")},100)}),n==="true"){if(t.attr("aria-hidden","false"),t.attr("tabindex","0").focus(),(0,Lt.default)(".tooltip-info a").attr("tabindex","0"),kl||Al||o.attr("aria-label","Hide more information"),t.keydown(function(u){u.keyCode===xe.tab&&u.preventDefault()}),kl||Al){t.find(".row .label, .row .price").each(function(){(0,Lt.default)(this).attr("aria-hidden",!1),(0,Lt.default)(this).attr("tabindex",-1)});let u=t.find(".row > div"),c=[],h=0,f=0,v=25;for(let g=0;g<u.length;g+=2){let b=(0,Lt.default)(u).get(g),S=(0,Lt.default)(u).get(g+1);if((0,Lt.default)(b).is(".label")&&(0,Lt.default)(S).is(".price")){c.push(b.innerHTML+S.innerHTML);let x=(0,Lt.default)(b).parent().outerWidth(!0);x>h&&(h=x);let E=(0,Lt.default)(b).outerHeight(!0);f+=E}}let p=`${h+v+4}px`,T=`${f+v-4}px`;t.css({width:p,height:T}),kl&&a.css({top:"25.5px"})}}else t.attr("aria-hidden","true"),t.attr("tabindex","-1"),(0,Lt.default)(".tooltip-info a").attr("tabindex","-1"),setTimeout(function(){o.attr("aria-label","View more information")},100),(kl||Al)&&t.find(".row .label, .row .price").each(function(){(0,Lt.default)(this).attr("aria-hidden",!0),(0,Lt.default)(this).attr("tabindex",-1)})},BW=function(r){this.$el=(0,Lt.default)(r),MW.call(this)};(0,Lt.default)(".tooltip-info a").attr("tabindex","-1");q3.exports=BW});var G3=pe((qhe,W3)=>{O();R();L();var Pl=Z(Ae()),z3=Z(Fr());Tt();var FW=()=>{(0,Pl.default)(".Support-page").length>0&&(new z3.default(".Hero .image",[{mediaQuery:nt.gtLarge,attrName:"data-desktop"}],{blankClass:"hidden"}),(()=>{if((0,Pl.default)("body").find(".level-2")){let e=(0,Pl.default)(".Nav-items"),t=(0,Pl.default)(".Nav-items .list-block");(0,Pl.default)(".Nav-items .toggle-menu").on("click",()=>{e.toggleClass("is-open"),t.slideToggle()})}})())};W3.exports=()=>{new FW}});var Y3=pe((Whe,X3)=>{O();R();L();
402var Cr=Z(Ae()),Ib=Z(Fr());Tt();var Q3=function(){this.$tabItem.each(function(){(0,Cr.default)(this).removeClass("active"),(0,Cr.default)(this).attr("aria-selected","false"),(0,Cr.default)(this).attr("tabindex","-1")})},K3=function(r){this.$tabGroup.each(function(){(0,Cr.default)(this).attr("id")===r?(0,Cr.default)(this).addClass("active"):(0,Cr.default)(this).removeClass("active")})},UW=function(){let r=this;new Ib.default(this.$featuredImage,[{mediaQuery:"(min-width: 0)",attrName:"data-image"}],{blankClass:""}),new Ib.default(this.$articleThumbs,[{mediaQuery:"(min-width: 0)",attrName:"data-image"}],{blankClass:""}),this.$tabItem.on("click",function(e){e.preventDefault();let t=(0,Cr.default)(this).attr("aria-controls");K3.call(r,t),Q3.call(r),(0,Cr.default)(this).addClass("active"),(0,Cr.default)(this).attr("aria-selected","true"),(0,Cr.default)(this).attr("tabindex","0")}),this.$tabItem.on("keydown",function(e){let t=(0,Cr.default)(this).attr("aria-controls"),n=t.split("-")[1];if([xe.spaceBar,xe.enter].includes(e.keyCode)&&(e.preventDefault(),K3.call(r,t),Q3.call(r),(0,Cr.default)(this).addClass("active"),(0,Cr.default)(this).attr("aria-selected","true"),(0,Cr.default)(this).attr("tabindex","0")),e.keyCode===xe.leftArrow){let s=(0,Cr.default)(`#tab-controller-${Number.parseInt(n)-1}`);s.length===1&&s.focus()}else if(e.keyCode===xe.rightArrow){let s=(0,Cr.default)(`#tab-controller-${Number.parseInt(n)+1}`);s.length===1&&s.focus()}})},qW=function(r){this.$el=(0,Cr.default)(r),this.$tabItem=this.$el.find(".tab-item"),this.$tabGroup=this.$el.find(".tab-group"),this.$featuredImage=this.$el.find(".featured-pin .image"),this.$articleThumbs=this.$el.find("article .thumb"),UW.call(this)};X3.exports=qW});var iO=pe((dfe,rO)=>{O();R();L();var an=Z(Ae()),eO=Z(Fr()),lfe=Z(sn());Tt();lr();var HW=function(){var r=this;this.$items.each(function(e){(0,an.default)(this).removeClass("large"),(0,an.default)(this).removeClass("small"),r.itemsAmount===2?(0,an.default)(this).addClass("large"):r.itemsAmount===3?(0,an.default)(this).addClass("small"):r.itemsAmount===4?(0,an.default)(this).addClass("large"):r.itemsAmount===5?e<2?(0,an.default)(this).addClass("large"):(0,an.default)(this).addClass("small"):(0,an.default)(this).addClass("small")})},VW=function(){this.$el.find(".slider").slick({slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!1,infinite:!1,variableWidth:!0,mobileFirst:!0})},tO=function(){this.mediaQuery.matches&&!this.$slider.hasClass("slick-initialized")?VW.call(this):!this.mediaQuery.matches&&this.$slider.hasClass("slick-initialized")&&this.$slider.slick("unslick")},jW=function(){(0,an.default)(window).on("resize",vi(tO.bind(this),150)),new eO.default(this.$image,[{mediaQuery:"(min-width: 0)",attrName:"data-thumb"}],{blankClass:""}),HW.call(this)},zW=function(r){this.$el=(0,an.default)(r),this.$slider=this.$el.find(".slider"),this.$items=this.$slider.find(".item"),this.itemsAmount=this.$el.find(".slider .item").length,this.$image=this.$el.find(".image"),this.mediaQuery=window.matchMedia(nt.ltMedium),jW.call(this),tO.call(this)};rO.exports=zW});var cO=pe((Tfe,uO)=>{O();R();L();var oO=Z(Ae()),lO=Z(Fr());Tt();var WW=()=>{new lO.default(".Page-banner-block .image",[{mediaQuery:nt.ltSmall,attrName:"data-mobile"},{attrName:"data-desktop"}],{blankClass:"hidden"})},GW=function(r){this.$el=(0,oO.default)(r),WW.call(this)};uO.exports=GW});var mO=pe((Dfe,pO)=>{"use strict";O();R();L();function QW(r){if(typeof window<"u"&&!("requestAnimationFrame"in window))return r;var e=null;return function(){for(var t=arguments.length,n=Array(t),s=0;s<t;s++)n[s]=arguments[s];e!==null&&cancelAnimationFrame(e),e=requestAnimationFrame(function(){r.apply(void 0,n),e=null})}}pO.exports=QW});var CO=pe((spe,wO)=>{O();R();L();var Lb=Z(Ae()),rpe=Z(sn());Tt();lr();var eG=function(){this.$slider.slick({infinite:!1,variableWidth:!0,mobileFirst:!0,centerMode:!0,responsive:[{breakpoint:750,settings:"unslick"},{breakpoint:749,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:499,settings:{slidesToShow:1,slidesToScroll:1}}]})},xO=function(){!this.mediaQuery.matches&&!this.$slider.hasClass("slick-initialized")&&eG.call(this)},tG=function(){(0,Lb.default)(window).on("resize",vi(xO.bind(this),150))},rG=function(r){this.$el=(0,Lb.default)(r),this.$slider=this.$el.find(".column-container"),this.mediaQuery=window.matchMedia(nt.gtMedium),xO.call(this),tG.call(this)};wO.exports=rG});var kO=pe((upe,EO)=>{O();R();L();var xp=Z(Ae()),iG=function(){this.$el.on("submit",function(r){r.preventDefault();let t=(0,xp.default)(this).find('input[type="search"]').val().trim();if(t.length>0){let n=encodeURIComponent(t);window.location.href=(0,xp.default)(this).attr("action")+"?search="+n}})},nG=function(r){this.$el=(0,xp.default)(r),iG.call(this)};EO.exports=nG});var OO=pe((ppe,IO)=>{O();R();L();var wp=Z(Ae()),AO=Z(av()),PO=Z(En());Tt();var sG=function(){wp.default.ajax({url:this.webservice,method:"GET",success:(r,e,t)=>{console.log(r)}})},aG=function(){this.modal.open();let r=this.$el[0],e,t=()=>{e=es(r),e.length<=0?requestAnimationFrame(t):e.first().focus()};requestAnimationFrame(t)}
402,DO=function(){this.modal.close(),this.emit("promoModalClosed")},oG=function(){let r=this;this.$closeBtn.click(e=>{e.preventDefault(),DO.call(r)}),this.$el.on("keydown",function(e){let n=[xe.downArrow,xe.tab,xe.rightArrow].includes(e.keyCode)&&!e.shiftKey,s=e.keyCode===xe.upArrow||e.keyCode===xe.leftArrow||e.keyCode===xe.tab&&e.shiftKey;if(e.keyCode===xe.escape){e.preventDefault(),r.$closeBtn.click();return}if(s||n){e.preventDefault();let o=e.target,l=(0,wp.default)(this),{next:u,prev:c}=wr(o,l);s?c.focus():n&&u.focus()}})},Rb=function(r){if(this.$el=(0,wp.default)(r),this.$closeBtn=this.$el.find(".Close"),this.modal=AO.default.create(this.$el),this.webservice=this.$el.data("webservice"),window.location.host==="localhost:4500"||window.location.host==="ftp.c2experience.com"){console.log("Promotional Modal is turned off in the JS.");return}aG.call(this),oG.call(this),sG.call(this)};(0,PO.default)(Rb);Rb.prototype.close=DO;IO.exports=Rb;window.onload=function(){let r=document.querySelector(".Promotional-modal");r&&setTimeout(()=>{r.classList.add("show")},300)}});var MO=pe((bpe,NO)=>{O();R();L();var kc=Z(Ae());Tt();var lG=function(){kc.default.ajax({url:this.webservice,method:"GET",success:(r,e,t)=>{console.log(r)}})},LO=function(){this.$el.addClass("active"),lG.call(this);let r=this.$el[0],e,t=()=>{e=es(r),e.length<=0?requestAnimationFrame(t):e.first().focus()};requestAnimationFrame(t)},uG=function(){let r=this;this.$promotionalModal.length<1&&LO.call(this),this.$closeBtn.click(e=>{e.preventDefault(),r.$el.removeClass("active")}),this.$el.on("keydown",function(e){let n=[xe.downArrow,xe.tab,xe.rightArrow].includes(e.keyCode)&&!e.shiftKey,s=e.keyCode===xe.upArrow||e.keyCode===xe.leftArrow||e.keyCode===xe.tab&&e.shiftKey;if(e.keyCode===xe.escape){e.preventDefault(),r.$closeBtn.click();return}if(s||n){e.preventDefault();let o=e.target,l=(0,kc.default)(this),{next:u,prev:c}=wr(o,l);s?c.focus():n&&u.focus()}})},RO=function(r){if(this.$promotionalModal=(0,kc.default)("html").find(".Promotional-modal"),this.$el=(0,kc.default)(r),this.$closeBtn=this.$el.find(".Close"),this.webservice=this.$el.data("webservice"),window.location.host==="localhost:4500"||window.location.host==="ftp.c2experience.com"){console.log("Promotional Corner is turned off in the JS.");return}uG.call(this)};RO.prototype.open=LO;NO.exports=RO});var WO=pe((Rpe,zO)=>{O();R();L();var ra=Z(Ae());qs();pb();ls();var VO=()=>{let r=(0,ra.default)("html").find(".quick-view"),e;r.each(function(){e=di((0,ra.default)(this),"#Quickview-modal","body")}),e&&e.close&&wi(e.close.bind(e))},pG=r=>{_p(r,!0)},mG=function(r,e){ra.default.ajax({url:this.$quickViewWebservice+"?productID="+r}).done(t=>{e.html(t);let n=e.find(".Product-info-wrapper");pG.call(this,n)})},gG=function(){let r=this;this.$html.on("click",".quick-view",function(){let e=(0,ra.default)("body #Quickview-modal .product-block"),t=(0,ra.default)(this).parents(".Quick-view-item").attr("data-id");mG.call(r,t,e)})},jO=function(r){this.$html=(0,ra.default)("html"),this.$el=(0,ra.default)(r),!(this.$el.length<1)&&(this.$quickViewWebservice=this.$el.attr("data-quickview-webservice"),VO.call(this),gG.call(this))};jO.prototype.initQuickViewModal=VO;zO.exports=jO});var ZO=pe((Fpe,JO)=>{O();R();L();var at=Z(Ae()),Hb=Z(Ja()),KO=Z(En()),so=Z(Cb()),XO=Z(Fr());Tt();var Ub=24;Hb.default.registerHelper("ifEquals",function(r,e,t){return r===e?t.fn(this):t.inverse(this)});var Pc=function(r){let e=this;e.$categoryControllerContainer.addClass("loading"),this.sendData.attributeSelections=[],this.$filter.not(".price-checkbox").each(function(){(0,at.default)(this).is(":checked")&&e.sendData.attributeSelections.push({Id:Number.parseInt((0,at.default)(this).parents("fieldset.filter-box-group").data("filter-id")),Value:(0,at.default)(this).val()})}),at.default.ajax({url:this.$dataWebservice,method:"POST",dataType:"json",data:this.sendData}).done(t=>{e.$categoryControllerContainer.removeClass("loading"),typeof t!="object"&&(t={LoadMore:!1,NextResultSetCount:0,TotalResults:0,Results:[]}),r==="append"?(_G.call(e,t),e.currentPage++):(TG.call(e,t),e.currentPage=1),bG.call(e,t),vG.call(e,t),yG.call(e,t),kG.call(e),e.emit("initQuickViewModal")})},vG=function(r){if(this.$el.find("span.total-result-count").html(r.TotalResults),!!r.FacetHits){for(let n of this.$filter){let s=n.name,a=(0,at.default)(n).siblings(".hits");r.FacetHits[s]?((0,at.default)(n.parentElement).removeClass("empty-filter"),n.disabled=!1):n.checked||((0,at.default)(n.parentElement).addClass("empty-filter"),n.disabled=!0);let o=r.FacetHits[s]||0;a.attr("data-hits",o),a.html(`(${o})`),this.$activeList.find(`li.item .filter-btn[data-name='${s}'] .hits`).html(`(${o})`)}for(let n of this.$filterGroups){var t=(0,at.default)(n).find(".checkbox-label:not(.empty-filter)").length;if(t){(0,at.default)(n).removeClass("empty-group");continue}(0,at.default)(n).addClass("empty-group")}}},yG=function(r){r.LoadMore?this.$el.find(".category-more").show():this.$el.find(".category-more").hide()},bG=function(r){this.totalResultCount=r.TotalResults},_G=function(r){let e=this.handlebarsTemplate(r);this.$categoryResults.append(e)},TG=function(r){let e=this.handlebarsTemplate(r);this.$categoryResults.html(e)},qb=function(){this.$box.each(function(){(0,at.default)(this).attr("data-status","closed")})},GO=function(){this.$el.find(".all-row").attr("data-status")==="open"?this.$allRow.attr("data-status","closed"):this.$allRow.attr("data-status","open"),this.$allRow.slideToggle()},SG=function(){let r=this.$activeList.find("li.item");this.$input.each(function(){(0,at.default)(this)[0].checked===!0&&((0,at.default)(this)[0].checked=!1)}),r.each(function(){(0,at.default)(this).remove()}),Vb.call(this)},xG=function(r){this.sendData.sort=this.$sort.val(),this.sendData.page=1,this.sendData.resultCount=this.$categoryResults.children(".Dated-goods-category-item").length,so.default.replace({srt:this.sendData.sort}),so.default.replace({rslt:this.sendData.resultCount}),r&&r.call(this)},wG=function(r){this.$input.each(function(){(0,at.default)(this).attr("name")===r&&((0,at.default)(this)[0].checked=!1)})},Fb=function(r){var e=[];this.$activeList.find("li.item").each(function(){e.push((0,at.default)(this).find("button").attr("data-name"))}),this.sendData.page=1,this.sendData.resultCount=Ub,so.default.replace({flt:e.join()}),so.default.replace({rslt:this.sendData.resultCount}),r&&r.call(this)},Vb=function(){this.$activeList.find("li.item").length>0?this.$activeList.attr("data-status","active"):this.$activeList.attr("data-status","inactive")},QO=function(r){this.$el.find("li.item").each(function(){(0,at.default)(this).find("button").attr("data-name")===r&&(0,at.default)(this).remove()}),Vb.call(this)}
402,CG=function(r,e,t){this.$activeList.append(`
403		<li class="item">
404			<button class="filter-btn" data-name="${r}">
405				<span class="icon">
406					<svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
407					    <title>Close</title>
408					    <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
409					        <g id="Category/Dated-Goods/Filters-Menu/Desktop-Selected-Filters" transform="translate(-90.000000, -117.000000)" fill="#66224A" fill-rule="nonzero">
410					            <g id="Group-2">
411					                <polygon id="Close" points="100 118.009524 98.9904762 117 95 120.990476 91.0095238 117 90 118.009524 93.9904762 122 90 125.990476 91.0095238 127 95 123.009524 98.9904762 127 100 125.990476 96.0095238 122"></polygon>
412					            </g>
413					        </g>
414					    </g>
415					</svg>
416				</span>
417				${e}
418				<span class="hits">(${t})</span>
419			</button>
420		</li>
421	`),Vb.call(this)},EG=function(){let r=this;this.$box.each(function(){let e=(0,at.default)(this);(0,at.default)(this).find(".placeholder").on("click",function(){let n=(0,at.default)(this).parents(".box").attr("data-status");qb.call(r),n==="closed"?e.attr("data-status","open"):e.attr("data-status","closed")})})},kG=()=>{new XO.default(".Category-promo.bg-image",[{mediaQuery:nt.ltSmall,attrName:"data-mobile"},{attrName:"data-desktop"}],{blankClass:"hidden"})},AG=function(){let r=this;this.$viewAllBtn.on("click",function(e){e.preventDefault(),(0,at.default)(this).attr("data-status")==="open"?((0,at.default)(this).attr("data-status","closed"),GO.call(r)):((0,at.default)(this).attr("data-status","open"),GO.call(r)),qb.call(r)}),this.$html.on("click",".filter-btn",function(e){e.preventDefault();let t=(0,at.default)(this).attr("data-name");wG.call(r,t),QO.call(r,t),Fb.call(r,Pc.bind(r,"replace"))}),this.$input.on("click",function(){let e=(0,at.default)(this).attr("value"),t=(0,at.default)(this).parent("label").find(".hits").attr("data-hits")[0],n=(0,at.default)(this).attr("name");(0,at.default)(this)[0].checked?CG.call(r,n,e,t):QO.call(r,n),Fb.call(r,Pc.bind(r,"replace"))}),this.$clearBtn.on("click",e=>{e.preventDefault(),SG.call(r),Fb.call(r,Pc.bind(r,"replace"))}),(0,at.default)(document).click(e=>{(0,at.default)(e.target).closest(".box").length||qb.call(r)}),this.$nextResultsBtn.click(()=>{r.sendData.page++;var e=r.$categoryResults.children(".Dated-goods-category-item").length+r.nextResultCount;so.default.replace({rslt:e>r.totalResultCount?r.totalResultCount:e}),Pc.call(r,"append")}),this.$sort.change(()=>{xG.call(r,Pc.bind(r,"replace"))})},YO=function(r){this.$html=(0,at.default)("html"),this.$el=(0,at.default)(r),!(this.$el.length<1)&&(this.$dataWebservice=this.$el.attr("data-webservice"),this.currentCategory=this.$el.data("category"),this.$form=this.$el.find("#Category-filters"),this.$input=this.$el.find("input"),this.$filter=this.$form.find('input[type="checkbox"]:not(.price-checkbox)'),this.$filterGroups=this.$form.find(".select-box.box"),this.$box=this.$el.find(".box"),this.$viewAllBtn=this.$el.find(".view-all-btn"),this.$allRow=this.$el.find(".all-row"),this.$activeList=this.$el.find(".active-list"),this.$clearBtn=this.$activeList.find(".clear-btn"),this.data={},this.$csrfToken=this.$el.find("input[name=__RequestVerificationToken]").val(),this.$sort=(0,at.default)(".CategorySortBy"),this.originalSortValue=so.default.getValue("srt")||this.$sort.val(),this.$nextResultsBtn=(0,at.default)("#DataCategoryNextButton"),this.nextResultCount=this.$nextResultsBtn.data("result-count")||Ub,this.totalResultCount=(0,at.default)("#nav-category-more").data("totalresults"),this.$categoryResults=(0,at.default)("#DataCategoryResults"),this.$categoryControllerContainer=(0,at.default)(".category-controller"),this.handlebarsSource=(0,at.default)("#DataCategoryResultsTemplate").html(),this.handlebarsTemplate=Hb.default.compile(this.handlebarsSource),this.currentPage=Math.ceil(this.$categoryResults.children(".Dated-goods-category-item").length/Ub),this.sendData={categoryId:this.currentCategory,attributeSelections:{},resultCount:this.nextResultCount,page:this.currentPage,sort:this.originalSortValue},this.$sort.val(this.originalSortValue),AG.call(this),EG.call(this))};(0,KO.default)(YO);JO.exports=YO});var sL=pe((jpe,nL)=>{O();R();L();var Dc=Z(Ae()),Vpe=Z(sn()),Lp=Z(Fr()),tL=Z(En()),PG=function(){this.$el.find(".slider").slick("unslick")},rL=function(){this.$el.find(".slider:not(.slick-initialized)").slick({slidesToShow:3,slidesToScroll:3,arrows:!0,dots:!0,infinite:!1,responsive:[{breakpoint:1380,settings:{arrows:!1}
421},{breakpoint:1e3,settings:{slidesToShow:2,slidesToScroll:2,arrows:!1}},{breakpoint:750,settings:{slidesToShow:1,slidesToScroll:1,variableWidth:!0,dots:!1,arrows:!1}}]})},eL=function(r){let e=this.$el.attr("data-status"),t=r;e==="open"?(this.$el.attr("data-status","closed"),rL.call(this),this.$el.css("background-color",""),this.emit("initQuickViewModal")):(this.$el.attr("data-status","open"),PG.call(this),this.$el.css("background-color",t))},DG=r=>{let e=r,t=e.find(".step-view");console.log(t),e.parents(".item").attr("data-status","active"),t.slideToggle()},IG=function(){this.$el.find(".item").each(function(){(0,Dc.default)(this).removeAttr("data-status")})},OG=function(){var r=this;new Lp.default(this.$featuredImage,[{mediaQuery:"(min-width: 0)",attrName:"data-featured"}],{blankClass:""}),new Lp.default(this.$thumbs,[{mediaQuery:"(min-width: 0)",attrName:"data-thumb"}],{blankClass:""}),new Lp.default(this.$stepFeaturedImage,[{mediaQuery:"(min-width: 0)",attrName:"data-featured"}],{blankClass:""}),this.$el.on("click",".collections-btn",function(e){e.preventDefault();let t=(0,Dc.default)(this).attr("data-color");eL.call(r,t),DG.call(r,(0,Dc.default)(this))}),this.$el.on("click",".close-btn",()=>{eL.call(r),IG.call(r)})},iL=function(r){this.$el=(0,Dc.default)(r),!(this.$el.length<1)&&(this.$items=this.$el.find(".item"),this.$featuredImage=this.$el.find(".featured-image"),this.$thumbs=this.$el.find(".thumb"),this.$stepFeaturedImage=this.$el.find(".featured-item .image"),OG.call(this),rL.call(this))};(0,tL.default)(iL);nL.exports=iL});O();R();L();var Fe=Z(Ae());O();R();L();var Kt=Z(Ae()),J2=r=>{setTimeout(()=>{requestAnimationFrame(()=>{let e=r.attr("href"),t=20,n=(0,Kt.default)("header").outerHeight(),s=(0,Kt.default)(".Page-navigation-menu").length?(0,Kt.default)(".Page-navigation-menu").outerHeight():0,a=(0,Kt.default)(".Site-alert").length>0?(0,Kt.default)(".Site-alert").outerHeight():0,o=n+a+t;s>0&&(o-=n);let l=0;e!=="#"&&e!==void 0&&(l=(0,Kt.default)(e).offset().top-o,(0,Kt.default)(".details-block").length&&((0,Kt.default)(".details-block .panel").attr("aria-hidden","false"),(0,Kt.default)(e).addClass("active"),(0,Kt.default)(".details-block").length&&((0,Kt.default)(".details-block.active .target h2").focus(),(0,Kt.default)(".details-block .panel").attr("aria-hidden","false"),(0,Kt.default)(".details-block .target").removeAttr("tabindex").attr("aria-expanded","true")))),(0,Kt.default)("html, body").animate({scrollTop:l},800,()=>{r.addClass("active")})})},50)},Z2=()=>{(0,Kt.default)(".smooth-scroll").removeClass("active")};(0,Kt.default)(".smooth-scroll").each(function(){(0,Kt.default)(this).click(function(r){r.preventDefault(),Z2(),J2((0,Kt.default)(this))})});(0,Kt.default)('.RTF a[href^="#"]').each(function(){(0,Kt.default)(this).click(function(r){r.preventDefault(),Z2(),J2((0,Kt.default)(this))})});O();R();L();O();R();L();(function(r){"use strict";typeof define=="function"&&define.amd?define(["jquery"],r):r(jQuery)})(function(r){"use strict";return r.ui=r.ui||{},r.ui.version="1.14.2"});O();R();L();(function(r){"use strict";typeof define=="function"&&define.amd?define(["jquery","./version"],r):r(jQuery)})(function(r){"use strict";return r.ui.focusable=function(e,t){var n,s,a,o,l,u=e.nodeName.toLowerCase();return u==="area"?(n=e.parentNode,s=n.name,!e.href||!s||n.nodeName.toLowerCase()!=="map"?!1:(a=r("img[usemap='#"+s+"']"),a.length>0&&a.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(u)?(o=!e.disabled,o&&(l=r(e).closest("fieldset")[0],l&&(o=!l.disabled))):u==="a"?o=e.href||t:o=t,o&&r(e).is(":visible")&&r(e).css("visibility")==="visible")},r.extend(r.expr.pseudos,{focusable:function(e){return r.ui.focusable(e,r.attr(e,"tabindex")!=null)}}),r.ui.focusable});O();R();L();(function(r){"use strict";typeof define=="function"&&define.amd?define(["jquery","./version","./focusable"],r):r(jQuery)})(function(r){"use strict";return r.extend(r.expr.pseudos,{tabbable:function(e){var t=r.attr(e,"tabindex"),n=t!=null;return(!n||t>=0)&&r.ui.focusable(e,n)}})});var DQ=Z(e1());O();R();L();var Yi=Z(Ae()),mT=Z(r1()),gT=Z(Ut());Yl();O();R();L();var l1=Z(Ut()),rr=r=>{let e=new l1.default,t=e.getUserData();dataLayer.push({loginStatus:t.isLoggedIn,emailSubscriber:t.emailSubscriber,pageType:r,pageCountry:e.getCookie("Country"),breadcrumb:e.getBreadcrumbs(),userId:t.userId,userStatus:t.userStatus,pageCategory:r,categoryId:e.getDataAttributeFromChildNode(document,"data-gtm-category-name")})};O();R();L();var go=Z(Ae()),u1=Z(Ut());lr();var td=new u1.default,ga={merchantGroupId:"",merchantId:"",locale:"",marketingOptIn:!0,userEmail:td.getDataAttributeFromChildNode(document,"data-gtm-user-email"),userFirstName:td.getDataAttributeFromChildNode(document,"data-gtm-user-first-name"),userLastName:td.getDataAttributeFromChildNode(document,"data-gtm-user-last-name"),orderId:td.getDataAttributeFromChildNode(document,"data-gtm-order-id"),orderItems:[]},C5=()=>{(0,go.default)("#CheckoutOrderSummary .products-listing .specs").each(function(){let e=(0,go.default)(this).attr("data-gtm-page-id"),t=(0,go.default)(this).find(".name").attr("data-gtm-product-name"),n=(0,go.default)(this).find(".spn-qty").attr("data-gtm-qty"),s=(0,go.default)(this).find(".price").attr("data-gtm-product-price");ga.orderItems.push({page_id:e||"",product_name:t||"",quantity:n||0,unit_price:s||0})})},c1=()=>
421{if(ga.merchantGroupId=dn("pr_merchant_group"),ga.merchantId=dn("pr_merchant_id"),ga.locale=dn("pr_locale"),C5(),typeof POWERREVIEWS>"u"){console.log("POWERREVIEWS Tracker is unavailable");return}if(POWERREVIEWS.tracker===void 0){console.log("POWERREVIEWS Tracker is unavailable");return}if(!ga.userEmail){console.log("POWERREVIEWS Username not provided");return}let r=POWERREVIEWS.tracker.createTracker({maerchantGroupId:ga.merchantGroupId});try{r.trackCheckout(ga)}catch(e){console.error("Error on tracking checkout",e)}};O();R();L();var d1=Z(Ae()),h1=Z(Ut()),f1=()=>{let r=new h1.default;(0,d1.default)(document).on("click","[data-gtm-product-click-trigger]",function(){let e=r.findAncestorWithAttribute(this,"data-gtm-product");if(!e)return;let t=document.querySelector("html").getAttribute("data-gtm-currency"),n=r.getDataAttributeFromChildNode(e,"data-gtm-product-id")?.trim()||r.getDataAttributeFromChildNode(e,"data-gtm-leadvariant-id"),s=r.getDataAttributeFromChildNode(e,"data-gtm-product-name"),a=r.getDataAttributeFromChildNode(e,"data-gtm-category-name"),o=r.getDataAttributeFromChildNode(document,"data-brand"),l=r.getDataAttributeFromChildNode(e,"data-gtm-product-variant"),u=r.getDataAttributeFromChildNode(e,"data-gtm-product-price"),c=r.getDataAttributeFromChildNode(e,"data-gtm-product-position"),h=r.getDataAttributeFromChildNode(e,"data-out-of-stock"),f;h!=null?f=h.toLowerCase()==="true":f=" ";let v=r.getDataAttributeFromChildNode(document,"data-item-list-id"),p=r.getDataAttributeFromChildNode(document,"data-item-list-name"),T=1,g=parseFloat(u)||0;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"select_item",ecommerce:{currency:t,item_list_id:v,item_list_name:p,items:[{item_id:n,item_name:s,item_category:a,item_brand:o,item_variant:l,price:g,index:c,quantity:T,is_out_of_stock:f}]}})})};sm();O();R();L();var yo=Z(Ae()),m1=Z(Ut()),am=new m1.default,bo=[],om=[],g1="",v1="",y1="",_o=()=>{g1=am.getDataAttributeFromChildNode(document,"data-brand");let r=(0,yo.default)(".impression-item").first();y1=am.getDataAttributeFromChildNode(document,"data-item-list-id"),v1=am.getDataAttributeFromChildNode(document,"data-item-list-name"),um(),lm(),E5()},E5=()=>{let r=!0,e;window.addEventListener("scroll",()=>{r===!1?(e&&window.clearTimeout(e),e=window.setTimeout(()=>{um(),lm()},1e3)):(r=!1,um(),lm())})},lm=()=>{bo.length>0&&k5()},um=()=>{var r=(0,yo.default)(window).height(),e=(0,yo.default)(document).scrollTop(),t=e,n=e+r,s=(0,yo.default)(".impression-item");s.each(function(a){let o=(0,yo.default)(this),l=o.offset().top,u=l+o.height();if(l>=t&&l<n||u>=t&&u<n){let c=o.attr("data-gtm-product-name"),h=o.attr("data-gtm-product-id")?.trim()||o.attr("data-gtm-leadvariant-id"),f=parseFloat(o.find(".pricing").attr("data-gtm-product-price"))||0,v=o.attr("data-gtm-product-position"),p=o.attr("data-out-of-stock"),T;p!=null?T=p.toLowerCase()==="true":T=" ";let b={item_id:h,item_name:c,item_category:o.attr("data-gtm-category-name"),item_brand:g1,item_variant:h||"",price:f,index:v,quantity:1,is_out_of_stock:T},S=bo.map(E=>E.item_name).indexOf(c),x=om.map(E=>E.item_name).indexOf(c);S===-1&&x===-1&&bo.push(b)}})},k5=()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"view_item_list",ecommerce:{currency:document.querySelector("html")?.getAttribute("data-gtm-currency"),item_list_id:y1,item_list_name:v1,items:bo}}),om=om.concat(bo),bo=[]};O();R();L();var ni=Z(Ae()),S1=Z(cm()),x1=Z(Ut());lr();var $5=new S1.default,Xi=new x1.default,F5="default",U5=document.referrer===""||sessionStorage.getItem("checkoutTypeSrc")===null?F5:sessionStorage.getItem("checkoutTypeSrc"),q5=()=>{let r="",e=(0,ni.default)("[data-gtm-coupon-code]");return e.each(function(t){let n=(0,ni.default)(this).attr("data-gtm-coupon-code");r+=t===e.length-1?n:`${n} || `}),r},H5=()=>{let r=[],e=(0,ni.default)("#CheckoutOrderSummary .products-listing .specs"),t=Xi.getDataAttributeFromChildNode(document,"data-brand");return e.each(function(){let n=(0,ni.default)(this).find(".name").attr("data-gtm-product-name"),s=n;s=n.replace(/"/g,"");let a=(0,ni.default)(this).find(".spn-display-sku").attr("data-gtm-product-id"),o=Number.parseInt((0,ni.default)(this).find(".spn-qty").attr("data-gtm-qty"))||0,l=Number.parseFloat((0,ni.default)(this).find(".price").attr("data-gtm-product-price")),u=(0,ni.default)(this).attr("data-category-name"),c=(0,ni.default)(this).attr("data-onhand");(c===null||c==="")&&(c=Xi.getDataAttributeFromChildNode(parent,"data-onhand"));let h=!1,f=(0,ni.default)(this).attr("data-hasbackorder")==="true";Number.parseInt(c)<o&&(h=!0),r.push({item_id:a||"",item_name:s||"",item_category:u,item_brand:t,item_variant:a||"",price:l||0,quantity:o||0,is_out_of_stock:h})}),r},V5=r=>{for(let e of r){let t=document.querySelector(`#CheckoutOrderSummary .products-listing .specs[data-gtm-page-id="${e.
421id}"]`),n=(0,ni.default)(t).attr("data-hasbackorder")??"",s=(0,ni.default)(t).attr("data-backorder-availability-date")??"";n==="true"&&s!==""&&dataLayer.push({event:"purchase_oos",oos_item_name:e.name,oos_item_id:e.id,oos_item_category:(0,ni.default)(t).attr("data-category-name")??"",oos_item_price:e.price,oos_item_sku:e.id,oos_expected_in_stock_date:s,oos_days_until_in_stock:po(s)})}},w1=r=>{if(window.location.hash!=="#purchased")return;Xi.removeHash();let e=Xi.getUserData(),t=e.customerType;console.log("customerFlag : "+t);let n="not_specified";t&&(t==="0"?n="new":t==="1"&&(n="current")),dataLayer.push({loginStatus:e.isLoggedIn,emailSubscriber:e.emailSubscriber,pageType:r,pageCountry:Xi.getCookie("Country"),breadcrumb:Xi.getBreadcrumbs(),userId:e.userId,userStatus:e.userStatus,userLoginStatus:e.isLoggedIn,userCity:e.city,userState:e.state,userCountry:e.country,userEmail:e.userEmail,userPhone:e.userPhone,userFirstName:e.userFirstName,userLastName:e.userLastName,userStreet:e.userStreet,userZipcode:e.userZipcode,pageCategory:r,categoryId:Xi.getDataAttributeFromChildNode(document,"data-gtm-category-name"),customer_type:n});let s=H5(),a=q5(),o=document.querySelector("html").getAttribute("data-gtm-currency"),l=Xi.getDataAttributeFromChildNode(document,"data-gtm-order-id"),u=Number.parseFloat(Xi.getDataAttributeFromChildNode(document,"data-gtm-total")),c=Number.parseFloat(Xi.getDataAttributeFromChildNode(document,"data-gtm-tax")),h=Number.parseFloat(Xi.getDataAttributeFromChildNode(document,"data-gtm-shipping"));dataLayer.push({event:"purchase",ecommerce:{currency:o,transaction_id:l,value:u,tax:c,shipping:h,coupon:a||null,checkout_type:U5,items:s}}),V5(s),$5.sendDiscountsPurchasedToDataLayer(a)};O();R();L();var Jl=Z(Ae()),k1=Z(Ut());lr();var ur=new k1.default,j5=document.querySelector("body"),C1=j5.dataset.template==="Cart-template",E1=(r,e)=>{let t=ur.getDataAttributeFromChildNode(r,"data-onhand"),n=ur.getDataAttributeFromChildNode(r,"data-hasbackorder"),s=ur.getDataAttributeFromChildNode(r,"data-backorder-availability-date"),a=ur.getDataAttributeFromChildNode(r,"data-gtm-product-name");a=a.replace(/"/g,""),e>Number.parseInt(t)&&n==="true"&&s!==""&&dataLayer.push({event:"add_to_cart_oos",oos_item_name:a,oos_item_id:ur.getDataAttributeFromChildNode(r,"data-gtm-product-id"),oos_item_category:ur.getDataAttributeFromChildNode(document,"data-gtm-category-name"),oos_item_price:ur.getDataAttributeFromChildNode(r,"data-gtm-product-price"),oos_item_sku:ur.getDataAttributeFromChildNode(r,"data-gtm-variant-id"),oos_date_expected_in_stock:s,oos_days_until_in_stock:po(s)})},Ss=r=>{let e=(0,Jl.default)(r).first();if(e.length!==1)return null;let t=e[0],n=0;if(ur.getDataAttributeFromChildNode(t,"data-state")==="largeQuantity"){let o=t.querySelector(".item-quantity-edit")?.querySelector("span")?.innerHTML;o!==void 0&&(n=o)}else{let o=t.querySelector("[data-gtm-product-quantity]");o&&(o.options!==void 0?n=o.options[o.selectedIndex].value:o.tagName==="INPUT"&&(n=o.value))}let a=(o,l)=>{let u="",c="",h=null,f=(0,Jl.default)(o).data("oldQty"),v=Number(f!==void 0?f:n),p=ur.getDataAttributeFromChildNode(document,"data-gtm-category-name");if(p===null&&(p=(0,Jl.default)(".Breadcrumbs > .container > a:last").innerHtml),Number.parseInt(l)>Number.parseInt(v)&&(u="add_to_cart",c="add",h=l-v),Number.parseInt(l)<Number.parseInt(v)&&(u="remove_from_cart",c="remove",h=v-l),n=l,h!==null){let T=ur.findAncestorWithAttribute(o,"data-gtm-product");if(!T){console.error("GTM parent not found ",o);return}let g=ur.getDataAttributeFromChildNode(T,"data-onhand"),b=ur.getDataAttributeFromChildNode(T,"data-gtm-product-price"),S=+Number(b).toFixed(2),x="regular_cart";C1&&l<1&&(l=1,setTimeout(()=>{a(T,l)},100));let E=0;u==="add_to_cart"&&(E=+(b*h).toFixed(2)),u==="remove_from_cart"&&(E=+(b*h).toFixed(2));let k=!1;(l>Number.parseInt(g)||Number.parseInt(g)===0)&&(k=!0);let A=ur.getDataAttributeFromChildNode(T,"data-gtm-product-name");A=A.replace(/"/g,""),dataLayer.push({event:`${u}`,ecommerce:{currency:document.querySelector("html").getAttribute("data-gtm-currency"),value:E,items:[{item_id:ur.getDataAttributeFromChildNode(T,"data-gtm-product-id"),item_name:A,item_category:p,item_brand:ur.getDataAttributeFromChildNode(document,"data-brand"),item_variant:ur.getDataAttributeFromChildNode(T,"data-gtm-product-id"),price:S,quantity:h,...u==="remove_from_cart"&&{checkoutType:x},is_out_of_stock:k}]}}),u==="add_to_cart"&&c==="add"&&E1(T,l)}};return e.on("moq-adjusted","[data-gtm-product-quantity]",function(o,l){a((0,Jl.default)(this)[0],l)}),e.on("change","[data-gtm-cart-item-qty]",function(){let o=0;this.options!==void 0?o=o=this.options[this.selectedIndex].value:this.tagName==="INPUT"&&(o=this.value),o!==null&&!Number.isNaN(o)&&a(this,o)}),e.on("click","[data-gtm-quantity-button]",function(){let o=1,l=ur.findAnce
421storWithAttribute(this,"data-gtm-product");l.querySelector("[data-gtm-quantity-text]")!==null?o=l.querySelector("[data-gtm-quantity-text]").value:l.querySelector("[data-gtm-product-quantity]")!==null&&(o=l.querySelector("[data-gtm-product-quantity]").value);let u=ur.getDataAttributeFromChildNode(this,"data-increment-qty");if(u!==void 0&&Number.parseInt(u)>0){let c=ur.getDataAttributeFromChildNode(this,"data-quantity");c!==void 0&&(c==="plus"?o=Number.parseInt(o)+Number.parseInt(u):c==="minus"&&(o=Number.parseInt(o)-Number.parseInt(u)))}a(this,o)}),{OutOfStockPush:E1}};O();R();L();var rd=Z(Ae()),A1=Z(Ut()),Fn=new A1.default,P1=()=>{let r=null,e=null,t=null;(0,rd.default)(document).on("click","[data-gtm-remove-from-cart-trigger]",function(){r=this,e=(0,rd.default)(this),t=document}),(0,rd.default)(document).on("click",".confirm-remove-cart-item",()=>{let n=1,s="regular_cart",a=Fn.findAncestorWithAttribute(r,"data-gtm-product");if(!a)return;let o=Fn.getDataAttributeFromChildNode(a,"data-state"),l=Number.parseInt(Fn.getDataAttributeFromChildNode(a,"data-increment-qty"));if(o==="largeQuantity"){let v=a.querySelector("[aria-valuenow]");v&&(n=v.getAttribute("aria-valuenow"))}else{let v=a.querySelector("[aria-valuenow]");v&&(v.options!==void 0?n=parseInt(v.options[v.selectedIndex].value,10):v.tagName==="INPUT"&&(n=parseInt(v.value,10)))}l>1&&(n=Number.parseInt(n)+Number.parseInt(l)-n);let u=Fn.getDataAttributeFromChildNode(a,"data-gtm-category-name");if(!u){let v=t.querySelector(".Breadcrumbs > .container > a:last-child");v&&(u=v.textContent.trim())}let c=!1,h=a.getAttribute("data-onhand");c=Number.parseInt(h)<Number(n);let f=parseFloat(Fn.getDataAttributeFromChildNode(a,"data-gtm-product-price"))||0;formattedPrice=+f.toFixed(2),constFormattedPriceValue=+(f*n).toFixed(2),dataLayer.push({event:"remove_from_cart",ecommerce:{currency:document.querySelector("html")?.getAttribute("data-gtm-currency")||"USD",value:constFormattedPriceValue,items:[{item_id:Fn.getDataAttributeFromChildNode(a,"data-gtm-product-id"),item_name:Fn.getDataAttributeFromChildNode(a,"data-gtm-product-name"),item_brand:Fn.getDataAttributeFromChildNode(document,"data-brand"),item_category:u,item_variant:Fn.getDataAttributeFromChildNode(a,"data-gtm-variant-id"),price:formattedPrice,quantity:n,checkout_type:s,product_OOO:c}]}}),dataLayer.push({event:"internal_link_click",link_type:"cart",link_text:e.children().text().trim(),link_url:""})})};var vT=Z(cm()),yT=Z(M1()),bT=Z(H1());O();R();L();var nd=Z(Ae()),V1=Z(Ut()),pm=()=>{let r=new V1.default;(0,nd.default)(document).on("click","[data-gtm-save-for-later-trigger]",function(){let e=r.findAncestorWithAttribute(this,"data-gtm-product"),t=1;if(r.getDataAttributeFromChildNode(e,"data-state")==="largeQuantity"){let s=e.querySelector(".item-quantity-edit")?.querySelector("span")?.innerHTML;s!==void 0&&(t=s)}else{let s=e.querySelector("[data-gtm-product-quantity]");s.options!==void 0?t=s.options[s.selectedIndex].value:s.tagName==="INPUT"&&(t=s.value)}dataLayer.push({ecommerce:null}),dataLayer.push({event:"add_to_wishlist",ecommerce:{currency:document.querySelector("html").getAttribute("data-gtm-currency"),items:[{item_name:r.getDataAttributeFromChildNode(e,"data-gtm-product-name"),item_id:r.getDataAttributeFromChildNode(e,"data-gtm-product-id"),affiliation:"Online Store",quantity:t,price:r.getDataAttributeFromChildNode(e,"data-gtm-product-price"),item_category:r.getDataAttributeFromChildNode(e,"data-gtm-category-name"),brand:r.getDataAttributeFromChildNode(document,"data-brand"),variant:r.getDataAttributeFromChildNode(e,"data-gtm-variant-id"),item_list_name:"Saved Cart"}]}}),dataLayer.push({event:"internal_link_click",link_type:"cart",link_text:(0,nd.default)(this).children().text(),link_url:""})}),(0,nd.default)("[data-gtm-add-to-wishlist-trigger]").on("click",function(){let e=r.findAncestorWithAttribute(this,"data-gtm-product"),t=1;dataLayer.push({ecommerce:null}),dataLayer.push({event:"add_to_wishlist",ecommerce:{currency:document.querySelector("html").getAttribute("data-gtm-currency"),items:[{item_name:r.getDataAttributeFromChildNode(e,"data-gtm-product-name"),item_id:r.getDataAttributeFromChildNode(e,"data-gtm-product-id"),affiliation:"Online Store",quantity:t,price:r.getDataAttributeFromChildNode(e,"data-gtm-product-price"),item_category:r.getDataAttributeFromChildNode(e,"data-gtm-category-name"),brand:r.getDataAttributeFromChildNode(document,"data-brand"),variant:r.getDataAttributeFromChildNode(e,"data-gtm-variant-id"),item_list_name:r.getDataAttributeFromChildNode(document,"data-wishlist-name")}]}})})};O();R();L();var mm=Z(Ae()),j1=()=>{(0,mm.default)(document).on("click","[data-gtm-edit-trigger]",function(){dataLayer.push({event:"internal_link_click",link_type:"cart",link_text:(0,mm.default)(this).children().text(),link_url:""})})};O();R();L();var Un=Z(Ae()),sd=r=>{(0,Un.default)(document).find("[data-gtm-user-trust-links-trigger]").on("click",function(){r==="Cart-template"&&dataLayer.push({event:"internal_link_click",link_type:"cart",link_text:(0,Un.default)(this).text(),link_url:window.location.origin+(0,Un.default)(this).attr("href")}),r==="Checkout-page"&&dataLayer.push({event:"internal_link_click",link_type:"checkout",link_text:(0,Un.default)(this).text(),link_url:window.location.origin+(0,Un.default)(this).attr("href")}),r==="Checkout-order-placed"&&dataLayer.push({event:"internal_link_click",link_type:"order_confirmation",link_text:Un.default.trim((0,Un.default)(this).text()),link_url:window.location.origin+(0,Un.default)(this).attr("href")})})};O();R();L();var ba=Z(Ae()),gm=r=>{(0,ba.default)(document).on("click","[data-gtm-help-live-chat-trigger]",function(){r==="Cart-template"&&dataLayer.push({event:"internal_link_click",link_type:"cart",link_text:(0,ba.default)(this).text(),link_url:""}),r==="Checkout-page"&&dataLayer.push({event:"internal_link_click",link_type:"checkout",link_text:(0,ba.default)(this).text(),link_url:""})}),(0,ba.default)(document).on("click","[data-gtm-help-phone-number-trigger]",function(){r==="Cart-template"&&dataLayer.push({event:"internal_link_click",link_type:"cart",link_text:"Phone Number",link_url:(0,ba.default)(this).text()}),r==="Checkout-page"&&dataLayer.push({event:"internal_link_click",link_type:"checkout",link_text:"Phone Number",link_url:(0,ba.default)(this).text()})})};O();R();L();var vm=Z(Ae()),z1=()=>{(0,vm.default)(document).find("[data-gtm-contact-method-email-trigger]").on("click",()=>{dataLayer.push({event:"internal_link_click",link_type:"order_confirmation",link_text:"Contact Method: Email",link_url:""})}),(0,vm.default)(document).find("[data-gtm-contact-method-phone-trigger]").on("click",()=>{dataLayer.push({event:"internal_link_click",link_type:"order_confirmation",link_text:"Contact Method: Call",link_url:""})})};O();R();L();
421var _a=Z(Ae()),W1=Z(Ut()),ym=new W1.default,G1=()=>{(0,_a.default)(document).on("click","[data-gtm-checkout-trigger]",()=>{let r=tR();dataLayer.push({ecommerce:null}),dataLayer.push({event:"proceed_to_checkout",ecommerce:{currency:document.querySelector("html").getAttribute("data-gtm-currency"),items:[r]}})})},tR=()=>{let r=[],e=(0,_a.default)("#CheckoutCartItems li[data-gtm-product]"),t=ym.getDataAttributeFromChildNode(document,"data-brand");return e.each(function(){let n=ym.getDataAttributeFromChildNode(this,"data-gtm-product-name"),s=(0,_a.default)(this).attr("data-gtm-product-id"),a=(0,_a.default)(this).attr("data-gtm-category-name"),o=(0,_a.default)(this).attr("data-gtm-variant-id"),l=(0,_a.default)(this).attr("data-gtm-product-price"),u=ym.findAncestorWithAttribute(this,"data-gtm-product"),c=1;if(u!==null){let h=u.querySelector("[data-gtm-product-quantity]");h!==null&&h.options!==void 0?c=h.options[h.selectedIndex].value:h!==null&&(c=h)}r.push({item_name:n||"",item_id:s||"",quantity:c||0,price:l||0,brand:t,variant:o,item_category:a})}),r};O();R();L();var Ta=Z(Ae()),Q1=Z(Ut()),ad=new Q1.default,K1=()=>{if(!window.location.pathname.includes("cart"))return;let r=rR(),e=r.reduce((t,n)=>Number(t+n.price*n.quantity),0);window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:null}),dataLayer.push({event:"view_cart",ecommerce:{currency:document.querySelector("html")?.getAttribute("data-gtm-currency")||"USD",value:+Number(e).toFixed(2),items:r}})},rR=()=>{let r=[],e=(0,Ta.default)("#CheckoutCartItems li[data-gtm-product]"),t=ad.getDataAttributeFromChildNode(document,"data-brand")||"";return e.each(function(){let n=ad.getDataAttributeFromChildNode(this,"data-gtm-product-name")||"",s=(0,Ta.default)(this).attr("data-gtm-product-id")||"";n=n.replace(/"/g,"");let a=(0,Ta.default)(this).attr("data-gtm-category-name")||"",o=(0,Ta.default)(this).attr("data-gtm-variant-id")||"",l=parseFloat((0,Ta.default)(this).attr("data-gtm-product-price"))||0,u=parseFloat(Number(l).toFixed(2)),c=ad.findAncestorWithAttribute(this,"data-gtm-product"),h=(0,Ta.default)(this).attr("data-onhand")||0,f=1;if(c!==null)if(ad.getDataAttributeFromChildNode(c,"data-state")==="largeQuantity"){let T=c.querySelector(".item-quantity-edit span")?.innerHTML;T!==void 0&&(f=parseInt(T,10)||1)}else{let T=c.querySelector("[data-gtm-product-quantity]");T&&T.options!==void 0?f=parseInt(T.options[T.selectedIndex].value,10)||1:(T&&T.tagName==="INPUT"||T)&&(f=parseInt(T.value,10)||1)}let v=Number.parseInt(h)<Number(f);r.push({item_id:s,item_name:n,item_category:a,item_brand:t,item_variant:o,price:u,quantity:f,is_out_of_stock:v})}),r};O();R();L();var ir=Z(Ae()),X1=Z(Ut()),od=()=>{let r=new X1.default,e=document.querySelector("html").getAttribute("data-gtm-currency"),t=(0,ir.default)("[data-gtm-product]")[0],n=r.getDataAttributeFromChildNode(t,"data-gtm-product-name"),s=r.getDataAttributeFromChildNode(t,"data-gtm-product-id"),a=r.getDataAttributeFromChildNode(t,"data-gtm-product-price"),o=r.getDataAttributeFromChildNode(t,"data-gtm-variant-id"),l=r.getDataAttributeFromChildNode(t,"data-gtm-category-name");(l===null||l==="")&&(l=(0,ir.default)(".Breadcrumbs > .container > a:last").innerHtml);let u=r.getDataAttributeFromChildNode(document,"data-onhand"),c=r.getDataAttributeFromChildNode(document,"data-hasbackorder");(0,ir.default)(document).on("click","[gtm-variant-selector]",function(){(0,ir.default)("html").attr("data-brand")==="PWR"&&(n=r.getDataAttributeFromChildNode(t,"data-gtm-product-name")),dataLayer.push({event:"product_variant_selected",product_name:n,variant_type:this.getAttribute("data-name"),variant_name:this.getAttribute("value")})}),(0,ir.default)(document).on("click","[gtm-product-interaction]",function(){let f=this.getAttribute("class"),v,p=this.getAttribute("gtm-product-interaction");f==="view-all"&&(v="Product Variant - View All"),h(v,p)}),(0,ir.default)(".smooth-scroll").on("click",function(){h("In-Page Sticky Navigation",this.getAttribute("gtm-product-interaction"))}),(0,ir.default)(document).on("click","[download]",function(){h("Download",this.getAttribute("data-gtm-custom-event-label"))}),(0,ir.default)(document).on("click",".slick-next",()=>{h("View More Images","")}),(0,ir.default)(document).on("click",".pr-snippet-write-review-link",()=>{h("Write the First Review","")}),(0,ir.default)(document).on("click",".pr-snippet-review-count",()=>{h("No Reviews","")}),(0,ir.default)(document).on("click","#pr-question-form-link",function(){this.getAttribute("aria-expanded")==="true"&&h("Ask a Question","")}),(0,ir.default)(document).on("click",".pr-qa-search-btn",function(){let f=this.previousSibling.value;h("Q&A - Search",f)}),(0,ir.default)(document).on("click",".pr-qa-display-show-more-questions",()=>{h("Show more Q&A","")});function h(f,v){dataLayer.push({event:"product_interaction",product_name:n,link_type:"product_interaction",link_text:f,link_url:v})}(0,ir.default)(document).on("click","[data-gtm-buy-now-pdp]",()=>{dataLayer.push({event:"buy_now_pdp",item_name:n,item_id:s,item_category:l,item_price:a,item_sku:o})}),(0,ir.default)(document).on("click","[data-gtm-remove-from-cart-pdp]",function(){let f=(0,ir.default)(this).parents(".cart-item").first();dataLayer.push({event:"remove_from_cart_pdp",item_name:f.attr("data-gtm-name"),item_id:f.attr("data-gtm-id"),item_category:f.attr("data-gtm-category"),item_price:f.attr("data-gtm-price"),item_sku:f.attr("data-gtm-sku")})}),(0,ir.default)(document).on("click","[data-gtm-checkout-now-pdp]",()=>
421{let f=(0,ir.default)(".cart-review-modal-right-content.desktop");dataLayer.push({event:"checkout_now_pdp",currency:e,item_total:f.attr("data-gtm-item-total"),cart_total:f.attr("data-gtm-total"),cart_item_quantity:f.attr("data-gtm-qty")})}),(0,ir.default)(document).on("click","[data-gtm-cancel-checkout-pdp]",()=>{let f=(0,ir.default)(".cart-review-modal-right-content.desktop");dataLayer.push({event:"cancel_checkout_pdp",currency:e,item_total:f.attr("data-gtm-item-total"),cart_total:f.attr("data-gtm-total"),cart_item_quantity:f.attr("data-gtm-qty")})}),Number.parseInt(u)<1&&c==="false"&&a!==""&&dataLayer.push({event:"view_item_oos",oos_item_name:n,oos_item_id:s,oos_item_category:l,oos_item_price:a,oos_item_sku:o})};O();R();L();var bm=Z(Ae()),Y1=()=>{(0,bm.default)(document).on("submit",".pr-war",()=>{bm.default.ajax({type:"post",data:"",success:()=>{let r=document.querySelector(".pr-underline").innerText,e=document.querySelector(".pr-alert-danger");if(e!==null){let t="",n=e.querySelector(".pr-alert_list")?.children??null;for(i=0;i<n.length;i++)t=t.concat(n[i].innerText,i<n.length-1?", ":"");dataLayer.push({event:"product_reviewed_error",product_name:r,error_type:t})}else{let t=document.querySelectorAll(".pr-star-v4-100-filled").length;dataLayer.push({event:"product_reviewed",product_name:r,review_rating:t})}}})})};O();R();L();var Sa=Z(Ae()),Z1=Z(Ut()),J1=new Z1.default,eT=()=>{let r=J1.getDataAttributeFromChildNode(document,"data-brand"),e=(0,Sa.default)("[data-gtm-product]")[0],t="";e!==void 0&&(t=J1.getDataAttributeFromChildNode(e,"data-gtm-product-name")),r==="KEN"?((0,Sa.default)(document).on("click","#cl-chat-launcher",()=>{n(),(0,Sa.default)(".cl-end-chat").on("click",()=>{(0,Sa.default)(".confirm").on("click",()=>{a()})})}),(0,Sa.default)(document).on("click","#cl-send-box",()=>{document.querySelector("#cl-chat-input").value!==""&&s()})):(0,Sa.default)(document).on("click",".chat-button",()=>{n()});function n(){dataLayer.push({event:"chat_open",product_name:t,timestamp:new Date})}function s(){dataLayer.push({event:"chat_submit",product_name:t,timestamp:new Date})}function a(){dataLayer.push({event:"chat_close",product_name:t,timestamp:new Date})}};var _T=Z(nT());O();R();L();var Nt=Z(Ae()),sT=Z(Ut()),sR=new sT.default,aT=()=>{let r=document.querySelector("html").getAttribute("data-gtm-currency");if(document.querySelector("form.reorder-form")!==null){let e=(0,Nt.default)("form.reorder-form");e.on("click","[data-gtm-reorder-find-me]",t=>{var n=e.find("input[required]");n.each(function(){if(this.value===""){dataLayer.push({event:"renew_order_find_me_error",error_type:this.name+" - This field is empty"});return}})}),(0,Nt.default)("html").on("submit","form.reorder-form",()=>{dataLayer.push({event:"renew_order_find_me"});var t=e.find("input[required]");t.each(function(){localStorage.setItem(this.name,this.value)})})}((0,Nt.default)("body").data("template")==="Account-history"||(0,Nt.default)("body").data("template")==="Account-details")&&(localStorage.getItem("lastName")!==null&&localStorage.getItem("orderHistorySearch")!==null&&Number.parseInt((0,Nt.default)(".order-history-block").attr("data-total"))===0&&(dataLayer.push({event:"no_order_found"}),localStorage.removeItem("lastName"),localStorage.removeItem("orderHistorySearch")),document.querySelectorAll(".reorder-block").length>0&&(0,Nt.default)(document).on("click",".reorder-block",function(){let e=sR.findAncestorWithAttribute(this,"data-gtm-has-renewal"),t=e.getAttribute("data-gtm-has-renewal")==="true",n=e.getAttribute("data-gtm-product-name"),s=e.getAttribute("data-gtm-product-price");t||dataLayer.push({event:"reorder_item",product_name:n,currency:r,price:s})}),document.querySelector(".confirm-renewal-item")!==null&&(0,Nt.default)(document).on("click",".confirm-renewal-item",function(){dataLayer.push({event:"reorder_item",product_name:this.getAttribute("data-product-name"),currency:r,price:this.getAttribute("data-product-price")})}),document.querySelectorAll(".Renew-order-btn").length!==null&&(0,Nt.default)(document).on("click",".Renew-order-btn",function(){let t=((0,Nt.default)(".Account-details").length>0?(0,Nt.default)(".Account-details").find(".Details-block .order"):(0,Nt.default)(this).parents(".order")).find('.product-item[data-reorder="true"][data-gtm-has-renewal="false"]');if(t.length>0){let s="",a=0;for(var n=0;n<t.length;n++){let o=Number.parseInt((0,Nt.default)(t[n]).find("input.qty").val()),l=Number.parseFloat((0,Nt.default)(t[n]).attr("data-gtm-product-price"));a+=l*o,!(n<=2)&&(n+1==t.length?s+=(0,Nt.default)(t[n]).attr("data-gtm-product-name"):s+=(0,Nt.default)(t[n]).attr("data-gtm-product-name")+"::")}dataLayer.push({event:"renew_order",product_name_1:(0,Nt.default)(t[0]).attr("data-gtm-product-name")??"",product_name_2:(0,Nt.default)(t[1]).attr("data-gtm-product-name")??"",product_name_3:(0,Nt.default)(t[2]).attr("data-gtm-product-name")??"",product_name_4:s,currency:r,price:a.toFixed(2)})}}),document.querySelector(".confirm-renewal-order")!==null&&(0,Nt.default)(document).on("click",".confirm-renewal-order",()=>
421{let e=document.querySelectorAll(".renewal-order-form input[type=hidden]");if(e.length>0){let n="",s=0;for(var t=0;t<e.length;t++){let a=Number.parseInt((0,Nt.default)(e[t]).attr("data-quantity")),o=Number.parseFloat((0,Nt.default)(e[t]).attr("data-product-price"));s+=o*a,!(t<=2)&&(t+1==e.length?n+=(0,Nt.default)(e[t]).attr("data-product-name"):n+=(0,Nt.default)(e[t]).attr("data-product-name")+"::")}dataLayer.push({event:"renew_order",product_name_1:(0,Nt.default)(e[0]).attr("data-product-name")??"",product_name_2:(0,Nt.default)(e[1]).attr("data-product-name")??"",product_name_3:(0,Nt.default)(e[2]).attr("data-product-name")??"",product_name_4:n,currency:r,price:s.toFixed(2)})}}))};O();R();L();var fn=Z(Ae()),oT=Z(Ut());Yl();var lT=()=>{let r=new oT.default,e=document.querySelector("html").getAttribute("data-gtm-currency");(0,fn.default)(document).on("click",".renew-list-btn[data-status=false]",function(){let t=Xl();(0,fn.default)(this).attr("data-status")==="false"&&(0,fn.default)(this).attr("data-status","true");let s=(0,fn.default)(".Active-reorder-list .Reorder-list").find('.product-item[data-reorder="true"][data-gtm-has-renewal="false"]');if(s.length>0){let o="",l=0;for(var a=0;a<s.length;a++){(0,fn.default)(s[a]).attr("data-gtm-has-renewal","true"),t.addToCartPush(s[a],"Renew List");let u=Number.parseInt((0,fn.default)(s[a]).find("input.qty").val()),c=Number.parseFloat(r.getDataAttributeFromChildNode(s[a],"data-gtm-product-price"));l+=c*u,!(a<=2)&&(a+1===s.length?o+=r.getDataAttributeFromChildNode(s[a],"data-gtm-product-name"):o+=`${r.getDataAttributeFromChildNode(s[a],"data-gtm-product-name")}::`)}dataLayer.push({event:"renew_list",product_name_1:s[0]!==void 0?r.getDataAttributeFromChildNode(s[0],"data-gtm-product-name"):"",product_name_2:s[1]!==void 0?r.getDataAttributeFromChildNode(s[1],"data-gtm-product-name"):"",product_name_3:s[2]!==void 0?r.getDataAttributeFromChildNode(s[2],"data-gtm-product-name"):"",product_name_4:o,currency:e,price:l.toFixed(2)})}}),(0,fn.default)(document).on("click","[data-gtm-reorder-wishlist]",function(){try{let t=Xl(),n=(0,fn.default)(this).attr("data-gtm-reorder-wishlist"),s=JSON.parse(n||"[]");if(s.length>0){let a="",o=0,l=(0,fn.default)(this).attr("data-wishlist-name");for(let u=0;u<s.length;u++)t.addToCartDatalayerPush(null,s[u].DisplayName,s[u].Sku,s[u].PlacedPrice,s[u].Quantity,s[u].Sku,s[u].CategoryName,l,"Reorder List",s[u].data_onhand),o+=s[u].PlacedPrice*s[u].Quantity,u>2&&(a+=s[u].DisplayName,u+1<s.length&&(a+="::"));dataLayer.push({event:"reorder_list",product_name_1:s[0]?.DisplayName||"",product_name_2:s[1]?.DisplayName||"",product_name_3:s[2]?.DisplayName||"",product_name_4:a,currency:document.querySelector("html").getAttribute("data-gtm-currency"),price:o.toFixed(2)})}}catch(t){console.error("Error in reorder handler:",t)}})};_m();Sm();ud();window.dataLayer===void 0&&(window.dataLayer=[]);var oR=new vT.default,So=(0,Yi.default)('input[name="enableQTYSelectorVOne"]').val(),lR=new gT.default,cr="";switch((0,Yi.default)("body").data("template")){case"Home-template":rr("Home"),_o(),cr="Home";break;case"Category-template":rr("PLP"),_o(),cr="PLP",So==="VersionOneEnabled"&&(0,Yi.default)(".Category-item.impression-item").each(function(){Ss(this)});break;case"Category-cam-template":rr("PLP"),_o(),cr="PLP",So==="VersionOneEnabled"&&(0,Yi.default)(".Category-item.impression-item").each(function(){Ss(this)});break;case"Search-template":rr("Search Results"),_o(),cr="Search Results",So==="VersionOneEnabled"&&(0,Yi.default)(".Search-slider.simpleSlider").each(function(){Ss(this)});break;case"Product-detail-template":rr("PDP"),vo(),_o(),od(),cr="PDP",So==="VersionOneEnabled"&&(0,Yi.default)(".Product-info-wrapper").each(function(){Ss(this)});break;case"Product-detail-cam-template":rr("PDP"),vo(),od(),cr="PDP",So==="VersionOneEnabled"&&(0,Yi.default)(".Product-info-wrapper").each(function(){Ss(this)});break;case"Product-detail-mead-template":rr("PDP"),vo(),od(),cr="PDP",So==="VersionOneEnabled"&&(0,Yi.default)(".Product-info-wrapper").each(function(){Ss(this)});break;
421case"Cart-template":rr("Cart"),cr="Cart",(0,Yi.default)(".cart-item").length>0&&(0,Yi.default)(".cart-item").each(function(){Ss(this)}),pm(),j1(),sd("Cart-template"),gm("Cart-template"),G1(),K1();break;case"Checkout-page":rr("Checkout"),cr="Checkout",sd("Checkout-page"),gm("Checkout-page");break;case"Checkout-order-placed":rr("Order Confirmation"),cr="Order Confirmation",w1(cr),c1(),sd("Checkout-order-placed"),z1();break;case"Country-Selection-template":rr("Country Selection"),cr="Country Selection";break;case"Error-template":rr("Error"),oR.sendErrorToDataLayer(),cr="Error";break;case"General-detail-template":{rr("General"),document.querySelector("#Customer-write-review")!==null&&Y1(),cr="General";break}case"Storytelling-template":rr("Storytelling"),cr="Storytelling";break;case"Address-book-template":case"account-bulk-order":case"Account-overview-template":case"Account-details":case"Account-history":case"Account-list":case"Account-login-template":case"Account-organization-application":case"Account-selfservice-template":case"Account-settings-template":case"Tax-exempt-template":rr("Account"),cr="Account",pm(),lT();break;case"Blog-detail-template":case"Blog-template":rr("Blog"),cr="Blog";break;case"Contact-template":rr("Contact"),cr="Contact";break;case"News-index-template":rr("News"),cr="News";break;case"Support-page":rr("Support"),cr="Support";break;default:rr("Universal");break}var pT=lR.getDataAttributeFromChildNode(document,"data-user-email");pT&&dataLayer.push({HashedEmail:(0,mT.default)(pT)});new yT.default;f1();Xl();P1();new bT.default;eT();document.querySelector("[data-gtm-epi-form-submit]")!==null&&(0,_T.default)();aT();ld();hT();wa();O();R();L();var rt=Z(Ae());J0();le.options.autoSetup=!1;var CE=r=>{let e=(0,rt.default)((0,rt.default)(r)[0]);if(e.length<=0||!e.is(":visible"))return 0;let t=e.outerHeight(!0),n=(0,rt.default)(window).height(),s=e[0].getBoundingClientRect(),a=s.top,o=s.bottom;return Math.max(0,a>0?Math.min(t,n-a):Math.min(o,n))},xF=()=>{let r=(0,rt.default)(".video-js");r&&(Z0(),r.each(async function(){let e=(0,rt.default)(this),t=(0,rt.default)(this).parents(".video-js-container").first(),n=e.parents(".hero-carousel-block").first().length>0,s=e.attr("data-play-in-modal")==="true"&&!n,a=(e.attr("data-autoplay")==="true"||n)&&!s,o=e.attr("data-muted")==="true"||n,l=n,u=e.attr("data-is-decorative")==="true",c=t.hasClass("is-decorative"),h=!u&&!l;o&&e.attr("muted",!0);let f=e.attr("data-fallback-image-url"),v={sources:[{src:e.attr("data-src")}],preload:"auto",controls:h,fluid:!0,nativeTextTracks:!0},p=le(this,v);if(l){let g=e.parent(),b=(0,rt.default)(`<button
422                type = "button
423                tabindex="0"
424                class="ada-play-pause playing" aria-label="Pause Video"
425                ></button>`),S=!0;b.on("click",()=>{S?(p.pause(),b.attr("aria-label","Play Video"),b.toggleClass("playing",!1)):(p.play(),b.attr("aria-label","Pause Video"),b.toggleClass("playing",!0)),S=!S});let x=(0,rt.default)(p.el());x.css("position","relative");let E=g.closest(".Hero-banner"),k=(0,rt.default)(p.el()).find(".vjs-tech");if(E.length&&!E.hasClass("original-aspect-ratio")){let A=E.outerHeight(),N=k.outerHeight(),I=k.outerHeight();b.removeClass("desktop tablet mobile").addClass(window.innerWidth>=1025?"desktop":window.innerWidth>=768?"tablet":"mobile");let M;window.innerWidth>=1025?M=A-100:window.innerWidth>=750?M=N-120:M=I-70,b.css({position:"absolute",top:M,right:50,zIndex:10})}x.append(b)}else u&&(!c||c)&&p.ready(()=>{p.controls(!1),p.controlBar.hide(),(0,rt.default)(p.el()).find(".vjs-big-play-button").hide();let g=(0,rt.default)(p.el()),b="";c?b=(0,rt.default)(`<button 
426                        class="decorative-play-pause 
427                        vjs-play-control vjs-control vjs-button"
428                        aria-label="pause video" tabindex="-1">
429                        <span class="vjs-control-text">Pause video</span>
430                        </button>`):c||(b=(0,rt.default)(`<button 
431                        class="decorative-play-pause 
432                        vjs-play-control vjs-control vjs-button"
433                        aria-label="pause video">
434                        <span class="vjs-control-text">Pause video</span>
435                        </button>`)),g.append(b);let S=()=>{p.paused()?b.removeClass("vjs-playing").addClass("vjs-paused").attr("aria-label","Play video").find(".vjs-control-text").text("Play Video"):b.removeClass("vjs-paused").addClass("vjs-playing").attr("aria-label","Pause video").find(".vjs-control-text").text("Paused Video")};b.on("click",x=>{x.stopPropagation(),p.paused()?p.play():p.pause()}),(0,rt.default)(p.el()).on("click",x=>{(0,rt.default)(x.target).closest(".decorative-play-pause").length||(p.paused()?p.play():p.pause())}),p.on("play",S),p.on("pause",S),S()});let T=()=>{if(f.trim().length!==0)return t.html((0,rt.default)(`<img class="fallback-image" src="${f}" alt="Video not available" />`))};if(p.on("error",T),a){try{setTimeout(()=>{p.play()},500)}catch(g){console.error("Error playing video",g),T()}p.on("ended",()=>{try{p.play()}catch(g){console.error("Error playing video",g),T()}})}if(s){let g=e.clone(),b=le(g[0],v),S=g.parent();S.toggleClass("video-js",!0);let x=(0,rt.default)('<div class="overlay vjs-overlay"></div>').css({position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.55)",zIndex:9999,display:"none"}).appendTo("body"),E=(0,rt.default)('<button class="close-button">Close</button>').css({position:"fixed",top:"-30px",right:"0",zIndex:1e4}),k=A=>{if([!0,!1].includes(A)?A:p.paused()){p.initChildren(),x.show();let I=window.innerWidth<=768?.9:.5,M=window.innerWidth*I,F=M*(p.videoHeight()/p.videoWidth());S.appendTo(x).css({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1e4,width:M,height:F,paddingTop:"0"}),b.play(),S.focus(),(0,rt.default)(document).on("keydown.modalEscape",ne=>{ne.key==="Escape"&&k(!1)}),S.append(E)}else{let I=CE(t)>0;x.hide(),b.initChildren(),E.detach(),I||(0,rt.default)("html, body").animate({scrollTop:Math.max(0,t.offset().top-CE((0,rt.default)("header"))-25)},800),(0,rt.default)(document).off("keydown.modalEscape")}};p.on("play",()=>k(!0)),x.on("click",A=>{(0,rt.default)(A.target).is(".overlay")&&k(!1)}),E.on("click",()=>k(!1)),b.on("ended",()=>{k(!1)})}}),(0,rt.default)(".transcript-toggle").on("click",function(e){e.preventDefault()}))};(0,rt.default)(window).on("load",function(){xF()});(0,rt.default)(document).ready(()=>{let r=(0,rt.default)(".Multiple-column-display-block").find(".column-container").find("video");if(!r)return;let e=(0,rt.default)(".Multiple-column-display-block").find(".column-container");if(e.length>0&&(0,rt.default)(".video-js-container").length>0){let n=e.first().height();if(n>0){(n>305||(0,rt.default)(window).width()>420)&&(n=305);let s=n-50;r.each(function(){(0,rt.default)(this).attr("height",s),(0,rt.default)(this).attr("width",s*1.7)})}}(0,rt.default)(".Hero-banner").find("video").each(function(){let n=(0,rt.default)(".Hero-banner").height();(0,rt.default)(window).width()<=420&&(n=227,(0,rt.default)(this).attr("height",n),(0,rt.default)(this).attr("width",n*1.7)),(0,rt.default)(this).attr("height",n),(0,rt.default)(this).attr("width",n*1.7)})});var Z0=()=>{(0,rt.default)(".transcript-toggle").each(function(){let r=(0,rt.default)(this);r.off("click.transcript"),r.on("click.transcript",function(e){e.preventDefault(),e.stopImmediatePropagation();let t=r.attr("aria-expanded")==="true",n=(0,rt.default)("#"+r.attr("aria-controls"));r.attr("aria-expanded",(!t).toString()),t?(r.attr("aria-expanded","false"),n.css("max-height",n[0].scrollHeight+"px"),requestAnimationFrame(()=>{requestAnimationFrame(()=>{n.css("max-height","0px"),n.removeClass("is-open"),n.attr("tabindex","-1")})}),n.one("transitioned",()=>{n.attr("hidden",!0)})):(r.attr("aria-expanded","true"),n.removeAttr("hidden"),requestAnimationFrame(()=>{n.addClass("is-open"),n.attr("tabindex","0"),n.css("max-height",n[0].scrollHeight+"px")}),n.one("transitioned",()=>{r.attr("aria-expanded")==="true"&&n.css("max-height","none")}))})})};(0,rt.default)(".transcript-toggle").on("keydown",function(r){(r.key===" "||r.key==="Spacebar")&&(r.preventDefault(),(0,rt.default)(this).trigger("click"))});var dL=Z(qE());O();R();L();var hi=Z(Ae());Tt();var uv=r=>{var e=r.offset(),t=100,n=e.top-t;(0,hi.default)("html, body").animate({scrollTop:n},1e3)},HE=()=>{(0,hi.default)(document).ready(()=>
435{if((0,hi.default)(".CustomEpiForms.ValidationFail").length>0){var r=(0,hi.default)(".CustomEpiForms.ValidationFail").first();uv(r)}if((0,hi.default)(".CustomEpiForms .Form__Success__Message").length>0){var e=(0,hi.default)(".Form__Success__Message").first(),r=e.parents(".CustomEpiForms");uv(r)}let t={FormChoice:{isType:o=>o.is(".FormChoice"),getLabel:o=>o.find("legend").first(),isRequired:o=>o.attr("required")!==void 0,getTooltipTitle:o=>o.attr("title")??"",getId:o=>o.attr("id")},FormTextbox:{isType:o=>o.is(".FormTextbox"),getLabel:o=>o.find("label").first(),isRequired:o=>{let l=o.find("input").first();if(l.length>0)return l.attr("required")!==void 0;let u=o.find("textarea").first();if(u.length>0)return u.attr("required")!==void 0},getTooltipTitle:o=>{let l=o.find("input").first();if(l.length>0)return l.attr("title")??"";let u=o.find("textarea").first();if(u.length>0)return u.attr("title")??""}},FormRange:{isType:o=>o.is(".FormRange"),getLabel:o=>o.find("label").first(),isRequired:o=>!1,getTooltipTitle:o=>o.find(".FormRange__Input").first().attr("title")??""},FormSelection:{isType:o=>o.is(".FormSelection"),getLabel:o=>o.find("label").first(),isRequired:o=>o.find("select").first().attr("required")!==void 0,getTooltipTitle:o=>o.find("select").first().attr("title")??""},FormFileUpload:{isType:o=>o.is(".FormFileUpload"),getLabel:o=>o.find("label").first(),isRequired:o=>o.find("input").first().attr("required")!==void 0,getTooltipTitle:o=>o.find("input").first().attr("title")??""}};(0,hi.default)("div.Form__Element").each(function(){let o=(0,hi.default)(this),l;for(let p of Object.values(t))if(p.isType(o)){l=p;break}if(!l)return;let u=l.getLabel(o),c=l.isRequired(o),h=l.getTooltipTitle(o),v=(0,hi.default)(this).find(".Form__Element__Caption").text().trim()??"View more information";if(c&&u.append("<span> * </span>"),h){u.attr("aria-hidden",!0),o.css("position","relative");let p=h,T=(0,hi.default)(`
436                <button
437                    tabindex="0"
438                    class="tooltip"
439                    aria-label="More Info About ${v}"
440                    aria-expanded="false"
441                    >
442                        ?
443                </button>
444                    `),g=(0,hi.default)(`
445                    <div
446                        class="tooltip-info"
447                        aria-hidden="true"
448                        style="display: none;"
449                        >
450                            <span>
451                                <p>
452                                    ${p}
453                                </p>
454                            </span>
455                            <div class="tooltip-triangle"></div>
456                    </div>
457                    `);u.append(T),u.append(g);let b=g.find("p").first(),S=(x=void 0)=>{let E=g.css("display")=="block";[!0,!1].includes(x)||(x=!E),x?(g.attr("tabindex","-1"),g.attr("aria-hidden",!1),T.attr("aria-expanded",!0),b.focus(),b.attr("tabindex",0).focus()):(g.attr("aria-hidden",!0),T.attr("aria-expanded",!1),T.focus()),g.css("display",x?"block":"none")};T.on("click",x=>{x.preventDefault(),S()}),b.on("keydown",x=>{if(x.preventDefault(),x.keyCode===xe.escape){S(!1);let E=document.querySelector(".CustomModal.Contact-methods-email-modal");if(!E)return;let k=E.getAttribute("data-state");if(!k)return;k==="on"&&x.stopPropagation()}}),T.on("keydown",x=>{if(x.keyCode===xe.escape){x.preventDefault(),S(!1);let E=document.querySelector(".CustomModal.Contact-methods-email-modal");if(!E)return;let k=E.getAttribute("data-state");if(!k)return;k==="on"&&x.stopPropagation()}})}a()}),(0,hi.default)("form.EPiServerForms").each(function(){let o=(0,hi.default)(this);o.find('button[type="submit"]').on("click",()=>{let u=o.find(".Form__Status__Message,.ValidationFail").first();u.length&&uv(u)})});function a(){let o=".tooltip-info",l='p[tabindex="0"]';function u(h){let f=h.closest("label");f&&f.getAttribute("aria-hidden")==="true"&&f.setAttribute("aria-hidden","false");let v=h.querySelector(l);v&&(requestAnimationFrame(()=>{v.focus({preventScroll:!0})}),v.addEventListener("keydown",p=>{if(p.key==="Tab"&&(h.setAttribute("aria-hidden","true"),f)){let T=f.nextElementSibling;T&&T.focus({preventScroll:!0})}}),document.addEventListener("mousedown",p=>{if(!h.contains(p.target)){h.setAttribute("aria-hidden","true");let T=f.querySelector("button.tooltip");T&&requestAnimationFrame(()=>{T.focus({preventScroll:!0})})}}))}let c=new MutationObserver(h=>{for(let f of h)if(f.type==="attributes"&&f.attributeName==="aria-hidden"){let v=f.target;v.getAttribute("aria-hidden")==="false"&&u(v)}});
457document.querySelectorAll(o).forEach(h=>{c.observe(h,{attributes:!0})})}})};ml();O();R();L();var sc=Z(Ae()),VE=()=>{(0,sc.default)(document).ready(()=>{(0,sc.default)("a").each(function(){(0,sc.default)(this).attr("target")==="_blank"&&(0,sc.default)(this).attr("rel","nofollow noopener noreferrer")})})};O();R();L();var gl=Z(Ae());function jE(r){if(!r)return r;let e=(0,gl.default)(r);return e.data("hitId")&&e.data("trackId")?r:jE(r.parentElement)}(0,gl.default)("body").click(r=>{let e=jE(r.target);if(!e)return;let t=(0,gl.default)(e),n={hitId:t.data("hitId"),trackId:t.data("trackId"),query:t.data("query"),tags:t.data("tags")};!n.hitId||!n.trackId||gl.default.get(`/api/globalSearch/TrackClick?${gl.default.param(n)}`)});var hL=Z(qP()),fL=Z(lc());O();R();L();var ar=Z(Ae());O();R();L();var ri=Z(Ae());Tt();lr();var oD=r=>{let e=(0,ri.default)(r);if(e.length!==1)return null;let t="UtilityNav-isOpen",n=Ts(e),s=e.find(".nav-item"),a=e.find(".sub-menu"),o=(0,ri.default)("html"),l=()=>{s.filter(".active").each(function(){(0,ri.default)(this).toggleClass("active",!1);let c=es((0,ri.default)(this)).first();c.attr("aria-expanded",!1),c.focus()}),o.toggleClass(t,!1)},u=c=>{l(),o.toggleClass(t,!0),n.emit("menuOpened",t),c.parent("li").toggleClass("active",!0),c.attr("aria-expanded",!0),setTimeout(()=>{es((0,ri.default)(c).siblings(".sub-menu")).first().focus()},300)};return s.each(function(){(0,ri.default)(this).find("button").on("click",function(h){if((0,ri.default)(this).attr("href")&&(0,ri.default)(this).attr("href").length>0&&(0,ri.default)(this).attr("href")!=="#")return;h.preventDefault();let f=(0,ri.default)(this);if(f.parent().is(".active"))return l();u(f)})}),(0,ri.default)(document).on("focusin click",c=>{(0,ri.default)(c.target).closest(".nav-icons-block")?.length<1&&o.hasClass(t)&&l()}),a.each(function(){let c=(0,ri.default)(this),h=c.siblings("button");c.add(h).on("keydown",f=>{let v=(0,ri.default)(f.target),p=[xe.enter,xe.spaceBar,xe.downArrow],T=[xe.escape],g=[xe.tab,xe.downArrow,xe.rightArrow],b=[xe.upArrow,xe.leftArrow],S=N=>T.includes(N.keyCode),x=N=>g.includes(N.keyCode)&&!N.shiftKey,E=N=>b.includes(N.keyCode)||N.keyCode===xe.tab&&N.shiftKey,k=x(f),A=E(f);if(h.is('[aria-expanded="true"]')){if(S(f)){l();return}if(A||k){f.preventDefault();let{prev:N,next:I}=wr(v,c,!0,h);A?N.focus():I.focus()}}else{if(S(f)){l();return}if(p.includes(f.keyCode)){f.preventDefault(),u(v);return}if(A||k){f.preventDefault();let{prev:N,next:I}=wr(v,void 0,!1,h);A?N.focus():I.focus()}}})}),{...n,close:l}};O();R();L();var ht=Z(Ae());Tt();lr();var lD=r=>{let e=(0,ht.default)(r);if(e.length!==1)return null;let t=Ts(e),n=(0,ht.default)("html"),s=(0,ht.default)("header"),a=(0,ht.default)("header .menu-btn > a"),o=e.find(".icon-toggle"),l=e.find(".icon-toggle_buton"),u=e.find(".previous"),c=e.find(".nav-list"),h=e.find(".item"),f=h.filter(".level-1"),v=h.filter(":not(.level-1)"),p=h.filter(".account"),T=h.filter(".language"),g="PrimaryNav-isOpen",b=()=>n.hasClass(g),S=()=>window.matchMedia(nt.gtLarge).matches,x=()=>!S(),E=()=>h.filter(":not(.active)"),k=()=>h.filter(".active"),A=()=>k().last(),N=()=>k().first(),I=!1;S()&&function(j){j.data("__pointerFixApplied")||(j.data("__pointerFixApplied",!0),j[0].addEventListener("pointerup",H=>{if(H.button!==0)return;let W=H.target.closest("a");!W||!j[0].contains(W)||(H.preventDefault(),!W.__pointerHandled&&(W.__pointerHandled=!0,W.click(),setTimeout(()=>{W.__pointerHandled=!1},0)))},!1))}(e);let M=()=>{if(!b()||!S())return;let Q=s.outerHeight(!0),j=s.offset().top+Q,H=(0,ht.default)(window).scrollTop(),W=s.is(".Nav-isFixed"),ae=(W?Q:j)-(W?0:H);f.each(function(){(0,ht.default)(this).find(".tier").first().css("top",ae)})},F=(Q,j=null)=>{let H=[!0,!1].includes(Q)?Q:!b(),W=x();if(n.toggleClass(g,H),j===null||j.length===0)h.each(function(){(0,ht.default)(this).is(".level-1")?((0,ht.default)(this).toggleClass("active",H),(0,ht.default)(this).attr("aria-expanded",H)):(0,ht.default)(this).toggleClass("active",!1)}),c.css("transform",""),p[0]?.style.removeProperty("width"),T[0]?.style.removeProperty("width"),p.find("a").first()[0]?.style.removeProperty("margin-left"),T.find("a").first()[0]?.style.removeProperty("margin-left"),p.find("a").first()[0]?.style.removeProperty("margin-right"),T.find("a").first()[0]?.style.removeProperty("margin-right"),p.find(".tier").each(function(){(0,ht.default)(this).toggleClass("active",!1)}),T.find(".tier").each(function(){(0,ht.default)(this).toggleClass("active",!1)}),p.find(".previous").each(function(){(0,ht.default)(this).toggleClass("active",!1)}),T.find(".previous").each(function(){(0,ht.default)(this).toggleClass("active",!1)});else{let se=(0,ht.default)(j).parents(".item").add(j).index(j);if(h.each(function(){let ge=(0,ht.default)(this),ue=(ge.is(j)||ge.has(j).length>0)&&H;ge.toggleClass("active",ue),ge.is(".level-1")&&ge.attr("aria-expanded",ue),ue||(ge.find(".tier").each(function(){(0,ht.default)(this).toggleClass("active",!1)}),ge.find(".previous").each(function(){(0,ht.default)(this).toggleClass("active",!1)}))}),W){let ge=-(c.outerWidth(!0)*(se+1)),ce=j.find(".tier").first(),ue=j.find(".previous").first(),ye=j.parents(".item").find(".previous"),Te=ce.find("ul").first().children();ye.each(function(){(0,ht.default)(this).toggleClass("active",!1)}),ue.toggleClass("active",!0),ce.toggleClass("active",!0),Te.each(function(){(0,ht.default)(this).toggleClass("active",!0)}),c.css("transform",`translateX(${ge}px)`),(j.is(p)||j.is(T))&&(j[0].style.setProperty("width","200%","important"),j.find("a").first()[0].style.setProperty("margin-left","0","important"),j.find("a").first()[0].style.setProperty("margin-right","0","important"))}}H?(M(),t.emit("menuOpened",H)):(ne(!1),t.emit("menuClosed",H))},ne=of(e,void 0,(0,ht.default)(".Header .search-utility-wrap").children(":not(.menu-btn)").add(".Header .Utility-block .logo"));return a.on("click keydown",Q=>
457{if(Q.type==="keydown"&&Q.keyCode!==xe.enter)return;Q.preventDefault();let j=!b();F(j),j&&ne(j),a.attr("aria-expanded",j),(0,ht.default)("#MainContent").attr("aria-hidden",j),(0,ht.default)("#FooterContent").attr("aria-hidden",j)}),o.on("click",function(Q){Q.preventDefault();let H=(0,ht.default)(this).parents(".item").first();F(!0,H)}),l.on("click",function(Q){Q.preventDefault();let H=(0,ht.default)(this).parents(".item").first();F(!0,H)}),u.on("click",function(Q){Q.preventDefault();let H=(0,ht.default)(this).parents(".item").first().parents(".item").first();F(!0,H)}),f.each(function(){let Q=(0,ht.default)(this),j=Q.find("a").first(),H=Q.prev(".item:not(.account):not(.language)"),W=Q.next(".item:not(.account):not(.language)");j.on("mouseenter",ae=>{S()&&(I=!1,ae.preventDefault(),F(!0,Q))}),j.on("keydown",ae=>{if(!S()||(I=!0,![xe.enter,xe.spaceBar,xe.downArrow,xe.escape].includes(ae.keyCode)))return;let se=Q.hasClass("active"),ge=!se;if(!(!(Q.find(".tier").length>0)&&ae.keyCode===xe.enter)){if(ae.keyCode===xe.downArrow&&se===!0){ae.preventDefault(),Ur(Q.find(".tier").first(),!1).focus();return}if(ae.preventDefault(),ge===!1||ae.keyCode===xe.escape){Q.attr("aria-expanded",!1),F(!1);let ue=Q.find("> a, > button").first();ue&&ue.length&&document.activeElement!==ue[0]&&ue.focus()}else F(!0,Q),setTimeout(()=>{let ue=Ur(Q.find(".tier").first(),!1);ue&&ue.length&&ue.focus()},0)}}),j.on("keydown",ae=>{if(!S()||![xe.tab,xe.rightArrow,xe.leftArrow].includes(ae.keyCode))return;I=!0,ae.preventDefault();let ge=!(!ae.keyCode===xe.leftArrow||ae.keyCode===xe.rightArrow||ae.keyCode===xe.tab&&!ae.shiftKey),ce=ge?H:W;F(!1),Ur(ce.length?ce:wr(Ur(Q,!0))[ge?"prev":"next"],!0).focus()})}),v.each(function(){if(!S())return;let Q=(0,ht.default)(this),j=Q.find("a").first(),H=Q.parents(".item.level-1").first(),W=H.prev(".item.level-1:not(.account):not(.language)"),ae=H.next(".item.level-1:not(.account):not(.language)");j.on("mouseenter",se=>{S()&&(I=!1)}),j.on("keydown",se=>{I=!0;let ge=[xe.rightArrow,xe.downArrow].includes(se.keyCode),ce=[xe.leftArrow,xe.upArrow].includes(se.keyCode),ue=se.keyCode===xe.escape,ye=se.keyCode===xe.tab,Te=ye&&!se.shiftKey,Se=ye&&se.shiftKey,me=se.keyCode===xe.enter,Ce=se.keyCode===xe.spaceBar;if(me){let Ie=Q.find(".arrow-right").first();if(Ie&&Ie.length){se.preventDefault(),se.stopImmediatePropagation(),activatePanel(Ie[0]);return}return}if(Ce){let Ie=document.activeElement,Pe=(0,ht.default)(Ie).closest("a");if(Pe.length&&Pe.attr("href")){se.preventDefault(),se.stopImmediatePropagation(),Pe[0].click();return}navigateSpaceInSubmenu(Ie)&&(se.preventDefault(),se.stopImmediatePropagation())}if(ye){let Ie=se.shiftKey?"prev":"next",Pe=wr(j,H.find(".tier").first(),!0)[Ie];if(Pe&&Pe.length){se.preventDefault(),Pe.focus();return}}if(ce||ge||ue||Te||Se){if(se.preventDefault(),ue){F(!1);let Pe=H.find("a").first();if(Pe&&Pe.length){Pe.focus();return}return Ur(H,!0).focus()}if(Se||Te){F(!1);let Pe=Ur(Se?W:ae,!0);return Ur(Pe.length?Pe:wr(Ur(H,!0))[Se?"prev":"next"],!0).focus()}wr(j,H.find(".tier").first(),!0)[ge?"next":"prev"].focus()}})}),(0,ht.default)(document).on("mousemove.megaMenuGuard pointermove.megaMenuGuard",Q=>{if(!S()||!b())return;let j=Q.target;e[0].contains(j)||s[0].contains(j)||(I=!1,F(!1))}),M(),(0,ht.default)(window).on("resize",vi(()=>{F(!1)},500)),(0,ht.default)(window).on("scroll",M),{...t,close:()=>F(!1),getIsOpen:b,getActiveItems:k,getNonActiveItems:E,getMostSpecificActiveItem:A,getLeastSpecificActiveItem:N,getItems:()=>h,alignDesktopMegaMenuToHeader:M}};O();R();L();var ft=Z(Ae());Tt();lr();var uD=Z(lc()),Py=(r,e)=>`<li><a href="${r}">${e}</a></li>`,bH=(r,e,t,n)=>`<li>
458            <a href="${r}">
459                <div class="thumb"><img src="${t}" alt=""></div>    
460                <div class="name">${e}</div>
461            </a>
462        </li>`,Dy=(r,e)=>{e&&(r.data("hitId",e.HitId),r.data("trackId",e.TrackId),r.data("query",e.Query),r.data("tags",e.Tags))},Lf=r=>{r.find("li").each(function(){(0,ft.default)(this).remove()})};(0,ft.default)(document).ready(()=>{(0,ft.default)('.Accordion .target[role="tab"]').attr("tabindex",0).off("click"),(0,ft.default)('.search-box input[type="search"]').on("keyup",()=>{(0,ft.default)(".quick-links").addClass("hidden"),(0,ft.default)(".Search-dropdown-menu").find(".main-wrapper").removeClass("hidden"),setTimeout(()=>{(0,ft.default)('.recommended-products .panel[role="tabpanel"]').attr("aria-hidden",!1),(0,ft.default)('.related-articles .panel[role="tabpanel"]').attr("aria-hidden",!1),(0,ft.default)('.site-pages .panel[role="tabpanel"]').attr("aria-hidden",!1)},3e3)})});var Rf=(r=null)=>{if(!r)return;let e=(0,ft.default)(r);if(e.length!==1)return null;let t=Ts(e),n=e.find("button.mobile-search-btn"),s=e.find(".Search-dropdown-menu"),a=e.find("#announce"),o=e.find('.search-box input[type="search"]'),l=e.find('.search-box button[type="reset"]'),u=e.find(".search-box button.close-search"),c=s.attr("data-webservice"),h=e.find("button.close-btn"),f=e.find("#SiteSearch"),v=e.find(".quick-links");if(h.on("click",()=>{o.val(""),ue(""),N(!1),A(!1)}),f.on("click",me=>{v.length>0&&!v.hasClass("hidden")&&(s.removeClass("hidden"),s.find(".main-wrapper").addClass("hidden"))}),c.trim()==="")return null;let p=0,T=s.find(".suggestions .list").text(),g=s.find(".recommended-products .list").text(),b=s.find(".related-articles .list").text(),S=s.find(".site-pages .list").text(),x=e.find(".search-box"),E="white";x&&(E=x.css("background-color")||"white");let k=(0,ft.default)(`
463        <div style="
464            width: 25px;
465            height: 25px;
466			background-color: ${E};
467            position: absolute;
468            transform: rotate(45deg);
469            top: -5px;
470            z-index: -1;
471        "></div>
472    `);e.find("#mobile-search").append(k);let A=(me=null)=>{let Ce=[!0,!1].includes(me)?me:!s.hasClass("hidden");return s.toggleClass("hidden",!Ce),Ce?t.emit("menuContainerOpened"):t.emit("menuContainerClosed"),Ce},N=(me=null)=>
472{let Ce=e.hasClass("active"),Ie=[!0,!1].includes(me)?me:!Ce;return Ce===Ie||(Ie===!0?t.emit("menuOpened"):(t.emit("menuClosed"),(0,ft.default)(".quick-links").removeClass("hidden")),e.toggleClass("active",Ie)),Ie},I=()=>{p<1&&e.find(".Accordion").each(function(){new uD.default((0,ft.default)(this))}),window.matchMedia(nt.gtLarge).matches&&((0,ft.default)(".Search-dropdown-menu .Accordion").removeAttr("aria-multiselectable").removeAttr("role"),(0,ft.default)(".Search-dropdown-menu .Accordion .target").off("click").removeAttr("aria-expanded").removeAttr("role").removeAttr("tabindex"),(0,ft.default)(".Search-dropdown-menu .Accordion .panel").removeAttr("aria-hidden").removeAttr("role")),p++},M=s.find(".suggestions .list"),F=s.find(".recommended-products .list"),ne=s.find(".related-articles .list"),Q=s.find(".site-pages .list"),j=s.find(".view-all"),H=s.find(".view-all-site-pages"),W=s.find(".see-all-recommended-products"),ae=s.find(".see-all-recommended-products-text"),se=()=>{Lf(M),Lf(F),Lf(ne),Lf(Q),W[0].style.display="none",M.closest(".suggestions").removeClass("hidden")},ge=({suggestions:me=[],recommendedProducts:Ce=[],relatedArticles:Ie=[],sitePages:Pe=[],viewSitePagesUrl:We="",viewRelatedArticlesUrl:et="",recommendedProductsUrl:Ye="",recommendedProductsSeeAllText:Je=""})=>{se(),a.text("Results - ");let st=[];me.length>0?(st.push(M),me.map(Be=>{let je=Py(Be.url,Be.title);M.append(je)}),(0,ft.default)(".suggestions ul").removeAttr("role"),st.push(M.children("li")),a.append(`${me.length} Suggestions, `)):((0,ft.default)(".suggestions ul").attr("role","presentation"),M.append(`<li class="noResults" role="presentation">${T}</li>`),a.append(`${T}, `)),Ce.length>0?(st.push(F),Ce.map(Be=>{let je=(0,ft.default)(bH(Be.Url,Be.Title,Be.ImageMobileSource,Be.ImageAlt));F.append(je),Dy(je,Be.Tracking)}),st.push(F.children("li")),(0,ft.default)(".recommended-products ul").removeAttr("role"),a.append(`${Ce.length} Recommended Products, `)):((0,ft.default)(".recommended-products ul").attr("role","presentation"),F.append(`<li class="noResults" role="presentation">${g}</li>`),a.append(`${g}, `)),Ie&&Ie.length>0?(st.push(ne),Ie.map(Be=>{let je=(0,ft.default)(Py(Be.Url,Be.Title));ne.append(je),Dy(je,Be.Tracking)}),st.push(ne.children("li")),(0,ft.default)(".related-articles ul").removeAttr("role"),a.append(`${Ie.length} Related Articles, `)):((0,ft.default)(".related-articles ul").attr("role","presentation"),ne.append(`<li class="noResults">${b}</li> `),a.append(`${b}, `)),Pe.length>0?(st.push(Q),Pe.map(Be=>{let je=(0,ft.default)(Py(Be.Url,Be.Title));Q.append(je),Dy(je,Be.Tracking)}),st.push(Q.children("li")),(0,ft.default)(".site-pages ul").removeAttr("role"),a.append(`${Pe.length} Site Pages`)):((0,ft.default)(".site-pages ul").attr("role","presentation"),Q.append(`<li class="noResults">${S}</li> `),a.append(S)),Pe.length>0&&me.length==0&&M.closest(".suggestions").addClass("hidden"),j.attr("href",et),H.attr("href",We),a.append(" "),W.attr("href",Ye),W[0].style.display="block",ae.text(Je)},ce=async(me="")=>{if(me.trim()==="")return[null,{suggestions:[],recommendedProducts:[],relatedArticles:[],sitePages:[]}];let Ce=`${c}?query=${encodeURIComponent(me)}`;try{return[null,await(await fetch(Ce,{method:"GET"})).json()]}catch(Ie){return[Ie,null]}},ue=async(me="")=>{se(),I();let Ce=await ce(me);if(Ce[0]!==null)return;let Ie=Ce[1];ge(Ie),I()};o.on("focus",()=>{N(!0)});let ye;o.on("input",function(){clearTimeout(ye);let me=(0,ft.default)(this).val();if(o.each(function(){(0,ft.default)(this).val(me)}),me.trim()===""){A(!1);return}N(!0),A(!0),ye=setTimeout(()=>ue(me),500)}),l.on("click",me=>{me.preventDefault(),o.val(""),ue(""),N(!1),A(!1),(0,ft.default)("button.mobile-search-btn").focus()}),u.on("click",()=>{o.val(""),ue(""),N(!1),A(!1)}),n.on("click",me=>{N()?(0,ft.default)("html .Header").find("input.mobile-search").focus():A(!1),me.stopImmediatePropagation()});let Te=()=>{let me=n.offset();if(!me)return;let Ce=n.outerWidth(),Ie=me.left+Ce/2,Pe=k.outerWidth(),We=Ie-Pe/2;k.css("left",We+4)};return Te(),(0,ft.default)(window).on("resize",()=>{Te()}),{...t,close:()=>{N(!1),A(!1)},isOpen:()=>e.hasClass("active")}};lr();Tt();O();R();L();var is=Z(Ae());lr();Tt();var cD=()=>{let r=(0,is.default)(".Header");if(r.length!==1)return null;let e=(0,is.default)("body");if(e.attr("data-template")==="Product-detail-template"&&window.matchMedia(nt.gtLarge).matches)return null;let t=r,n=t.outerHeight(!0);t.toggleClass("Nav-isFluid",!0);let s=(0,is.default)(window).width(),a=t.hasClass("Nav-isFixed"),o=()=>{t.toggleClass("Nav-isFluid",!1),t.toggleClass("Nav-isFixed",!0),e.css("padding-top",n),a=!0},l=()=>{t.toggleClass("Nav-isFluid",!0),t.toggleClass("Nav-isFixed",!1),e.css("padding-top","0"),a=!1},u=()=>{(0,is.default)(window).scrollTop()>250&&!a&&!t.hasClass("Nav-isOpen")&&o(),a&&(0,is.default)(window).scrollTop()===0&&l()},c=()=>{let h=(0,is.default)(window).width();if(h===s)return!1;
472s=h,u()};(0,is.default)(window).on("scroll",u),(0,is.default)(window).on("resize",vi(c,150))};var dD=()=>{let r=oD("#UtilityNav"),e=Rf(".Search-menu"),t=lD("header .Nav-block nav"),n=(0,ar.default)(".language-menu-item"),s="SearchMenu-isOpen";(0,ar.default)(".search-view-icon").length?s+=" search-view-icon":(0,ar.default)(".search-view-expanded").length&&(s+=" search-view-expanded");let a="SearchMenu-container-isOpen",o=(0,ar.default)(`
473        <div style="background-color: rgba(0, 0, 0, 55%);display: none; width: 100vw; min-height: 100%; position: fixed; top: 0; left: 0;z-index:900;">
474
475        </div>`);(0,ar.default)("body").append(o);let l=(0,ar.default)("header .Nav-block"),u=(0,ar.default)("header .search-utility-wrap ");e.on("menuOpened",()=>{(0,ar.default)("html").toggleClass(s,!0);let c=h=>{let f=e.el.find(".search-box"),v=e.el.find(".Search-dropdown-menu"),p=v.is(h.target),T=v.has(h.target).length>0,g=f.is(h.target),b=f.has(h.target).length>0;!(p||T)&&!(g||b)&&e.close()};r.close(),t.close(),window.matchMedia(nt.ltLarge).matches&&o.css("display","block"),(0,ar.default)(document).on("click",h=>{c(h),(0,ar.default)(document).off("click",c)}),(0,ar.default)("#MainContent").attr("aria-hidden",!0),(0,ar.default)("#FooterContent").attr("aria-hidden",!1)}),e.on("menuClosed",()=>{(0,ar.default)("html").toggleClass(s,!1),o.css("display","none"),(0,ar.default)("#MainContent").attr("aria-hidden",!1),(0,ar.default)("#FooterContent").attr("aria-hidden",!1)}),e.on("menuContainerOpened",()=>{(0,ar.default)("html").toggleClass(a,!0)}),e.on("menuContainerClosed",()=>{(0,ar.default)("html").toggleClass(a,!1)}),r.on("menuOpened",()=>{e.close(),t.close()}),(0,ar.default)(window).on("resize",()=>{window.matchMedia(nt.ltLarge).matches&&e.isOpen()?o.css("display","block"):o.css("display","none")}),(0,ar.default)(n).each(function(){let c=(0,ar.default)(this);c.on("click",h=>{h.preventDefault();let f=c.attr("data-language-code");i1("Language",f),fo("pr_api_key"),fo("pr_locale"),fo("pr_merchant_group"),fo("pr_merchant_id"),fo("pr_review_url"),window.location.href=c.attr("href")})}),t.on("menuOpened",()=>{window.matchMedia(nt.ltMedium).matches?(l.css("width","0"),l.css("flex","0"),u.after(l)):(l.css("width",""),l.css("flex",""),u.before(l))}),t.on("menuClosed",()=>{l.css("width",""),l.css("flex",""),u.before(l)}),cD()};var ome=Z(Iy()),pL=Z(bD());O();R();L();var Zs=Z(Ae());ls();Yl();var yb=r=>!r||r.length===0,bb=(0,Zs.default)('input[name="enableQTYSelectorVOne"]').val(),f3=document.querySelector("body"),aW=f3.dataset.template==="Category-template",oW=f3.dataset.template==="Search-template",Tc={};_c();var lW=function(r,e){var t=new Date;t.setFullYear(t.getFullYear()+1),document.cookie=`${r}=${e};path=/;Secure;expires=`+t.toGMTString()+";"},p3=(r,e)=>{let t=r.find(".recommendation-button");if(bb==="VersionOneEnabled"&&t.length===0)return;let n=(0,Zs.default)(r),s=n.find("[name=productId]").val(),a=n.find("[name=productId]").attr("data-value");if(yb(s)&&(s=n.find("[name=refCode]").val(),yb(s)&&(s=n.find("[name=code]").val(),yb(s)&&(s=n.find(".sku").attr("data-variant-code")))),n.find("[name=recommendatonId]").length){let v=n.find("[name=recommendatonId]").val();lW("EPiServer_Commerce_RecommendationId",v)}let o=n.find("[name=qty]").val(),l=n.find("input[name=__RequestVerificationToken]").val();e.preventDefault();let u=(0,Zs.default)(".save-for-later-items"),c=n.find("[name=recommendatonId]").val(),h=f(a)||0;function f(v){let p=document.querySelector(`.cart-item[data-id="${v}"]`);return p&&parseInt(p.getAttribute("data-gtm-product-quantity"),10)||0}Js(s,o,l,!0,u.length>0,c).then(()=>{let v=n.closest("[data-gtm-product]")[0]||n.closest(".Category-item")[0],p=Number(o);p>0&&mo(v,"Add to cart",{oldQty:h,currentQty:p})}).catch(()=>{showError("Something went wrong. Please try again.")}),u&&u.length>0&&u.find(".line-item").each(function(){(0,Zs.default)(this).attr("data-product")===s&&(n.find(".js-add-to-cart").attr("value","Added to Cart"),n.find(".js-add-to-cart").attr("disabled",!0),(0,Zs.default)("#LoadingModal").length>0&&(0,Zs.default)("#LoadingModal").attr("data-state","on"))})};function uW(r){let e=(0,Zs.default)(r),t=e.closest("form.add-to-cart-form");if(t.length===0)return null;let n;if(e.closest(".Category-item").length)n=e.closest(".Category-item");else if(e.closest(".Product-info-wrapper").length)n=e.closest(".Product-info-wrapper");else if(e.closest(".product.impression-item").length)n=e.closest(".product.impression-item");else return null;let s=n.find(".col.quantity.versionOneEnabled .qtySelectorVOne"),a=s.find(".rounded-quantity-input");if(a.length===0)return null;let o=parseInt(a.attr("min"),10)||1,l=t.find('[name="productId"]').val(),u=t.find('input[name="__RequestVerificationToken"]').val();return{container:n[0],form:t[0],qtySelector:s[0],qtyInput:a[0],minQty:o,productId:l,csrfToken:u}}document.addEventListener("click",function(r){if(bb!=="VersionOneEnabled")return;let e=document.getElementById("message-Management");
475if(e&&e.textContent.trim())try{multilingual=JSON.parse(e.textContent)}catch(o){console.error("Invalid JSON in message-Management",o)}formatMessage=function(o,l){return(o||"").replace(/{(.*?)}/g,(u,c)=>l[c]!==void 0?l[c]:"")},announce=function(o){let l=document.querySelector("[ada-message]");l&&(l.textContent="",setTimeout(()=>{l.textContent=o},100))},getProductNameFromCard=function(o){return o.closest(".Category-item")?.querySelector(".name")?.innerText?.trim()||"Product"};let t=r.target.closest(".defaultButton.outOfCart")||r.target.closest(".defaultButton.productInCart");if(!t)return;let n=uW(t);if(!n)return;r.preventDefault();let s=n.minQty;n.qtyInput.value=s,n.container.querySelectorAll('[name="qty"]').forEach(o=>{o.value=s}),n.form.querySelectorAll(".defaultButton").forEach(o=>{o.classList.add("toggleDisplay")}),n.qtySelector.classList.remove("toggleDisplay");let a=getProductNameFromCard(t);announce(formatMessage(multilingual?.productAddedToCart?.trim()||"{qty} quantity of product {product} added to cart",{product:a,qty:s})),Tc[n.productId]={container:n.container,productName:a},(aW||oW)&&Js(n.productId,s,n.csrfToken,!0).then(()=>{let o=n.container.closest("[data-gtm-product]")||n.container;mo(o,"Add to cart")})});wi(r=>{if(bb!=="VersionOneEnabled"||!r)return;let e=Array.isArray(r.Items)?r.Items:[];Object.keys(Tc).forEach(t=>{let n=Tc[t];if(!n||!n.container)return;if(e.some(a=>String(a.Code)===String(t)&&Number(a.Quantity)>0)){let o=e.find(l=>String(l.Code)===String(t))?.Quantity||0;announce(formatMessage(multilingual?.cartUpdate?.trim()||"CartUpdated with {qty} Quantity for product {product}",{product:n.productName,qty:o})),delete Tc[t];return}else cW(n.container),delete Tc[t]})});function cW(r){if(!r)return;r.dataset.skipErrorClearOnce="true";let e=r.querySelector(".rounded-quantity-input");e&&(e.dataset.skipRemoveProduct="true",e.value="",e.dispatchEvent(new Event("change",{bubbles:!0})))}var mL=Z(L3());O();R();L();var Re=Z(Ae()),Pb=Z(Cb()),Db=Z(U3()),V3=Z(H3());var $W=mb(),j3=()=>{let r=(0,Re.default)('body[data-template="Product-detail-template"], body[data-template="Product-detail-cam-template"]');if((0,Re.default)('body[data-template="Category-cam-template"]').length>0?(()=>{let e=Pb.default.getValue("request_form"),t=(0,Re.default)("body").find(".includes-request-quote"),n=t.find(".opening-block");(0,Re.default)("html").on("click",".product-detail-add-to-cart",function(s){let a=(0,Re.default)(this).parents(".Product-info"),o=(0,Re.default)(a).find(".add-to-cart-form"),l=(0,Re.default)(a).find(".attributes-section");new Db.default(o,l,s)}),t.length>0&&e==="true"&&(n.css("display","none"),t.addClass("show"))})():r.length>0&&((()=>{let e=Pb.default.getValue("request_form"),t=(0,Re.default)("body").find(".includes-request-quote"),n=t.find(".opening-block"),s=t.find(".form-block.quote-only");(0,Re.default)("html").on("click",".product-detail-add-to-cart",function(a){let o=(0,Re.default)(this).parents(".Product-info"),l=(0,Re.default)(o).find(".add-to-cart-form"),u=(0,Re.default)(o).find(".attributes-section");new Db.default(l,u,a)}),t.length>0&&e==="true"&&(n.css("display","none"),t.addClass("show"),s.removeClass("hidden"))})(),(()=>{setTimeout(()=>{(0,Re.default)(".heading-section .pr-snippet-review-count").attr("role","link").attr("tabIndex","0").css("cursor","pointer").css("text-decoration","underline")},1500);let e=()=>{let t=(0,Re.default)("header").outerHeight(),n=(0,Re.default)("#Customer-reviews").offset().top-t;(0,Re.default)("html, body").animate({scrollTop:n},800)};(0,Re.default)("html").on("keyup",".heading-section .pr-snippet-review-count",t=>{event.which===13&&(0,Re.default)(".heading-section .pr-snippet-review-count").click()}),(0,Re.default)("html").on("click",".heading-section .pr-snippet-review-count",function(t){t.preventDefault(),(0,Re.default)(this).parents(".js-product-slider").length===0&&(e((0,Re.default)(this)),(0,Re.default)("#review-display-focus-target").focus())}),(0,Re.default)("html").on("click",".heading-section .pr-snippet-stars",function(t){t.preventDefault(),(0,Re.default)(this).parents(".js-product-slider").length===0&&e((0,Re.default)(this))})})()),(0,Re.default)(".tooltip-wrapper").length>0){let e=(0,Re.default)(".tooltip-wrapper").find(".tooltip");e&&new V3.default(e)}};(0,Re.default)(document).ready(()=>{(0,Re.default)(".details-block").length&&((0,Re.default)(".details-block .panel").each(function(){(0,Re.default)(this).is("#product-media-section")||(0,Re.default)(this).attr("aria-hidden","false")}),(0,Re.default)(".product-detail-mvp .target").removeAttr("tabindex").attr("aria-expanded","true"))});(0,Re.default)(".commerce-connector-widget").length>0&&new $W((0,Re.default)(".commerce-connector-widget"));(0,Re.default)(document).ready(()=>{let r=document.getElementsByClassName("brandResaleModal")[0];openresalemodalbtn=document.getElementsByClassName("openresalePartnerModalBtn"),(0,Re.default)(document).on("click",".openresalePartnerModalBtn",function(e){e.preventDefault(),(0,Re.default)(".brandResaleModal").show(),(0,Re.default)(".brandResaleModal").focus()}),(0,Re.default)(document).on("keydown",function(e){if(e.key==="Escape"&&((0,Re.default)(".brandResaleModal").hide(),(0,Re.default)(".openresalePartnerModalBtn").focus()),e.key==="Enter"){if(!r||!openresalemodalbtn)return;e.preventDefault();let t=window.getComputedStyle(r);t.display==="none"||t.visibility==="hidden"?((0,Re.default)(".brandResaleModal").show(),(0,Re.default)(".brandResaleModal").focus()):((0,Re.default)(".brandResaleModal").hide(),(0,Re.default)(".openresalePartnerModalBtn").focus())}}),document.addEventListener("click",function(e){e.target.closest(".closeresalePartnerModalBtn")&&(e.preventDefault(),r&&((0,Re.default)(".brandResaleModal").hide(),(0,Re.default)(".openresalePartnerModalBtn").focus()))}),(0,Re.default)("#brandResaleModal").on("click",function(e){(0,Re.default)(e.target).is("#brandResaleModalDialog")&&((0,Re.default)(".brandResaleModal").hide(),(0,Re.default)(".openresalePartnerModalBtn").focus())}),r.addEventListener("keydown",e=>{if(e.key!=="Tab")return;let t=r.querySelectorAll("a"),n=t[0],s=t[t.length-1];e.shiftKey&&document.activeElement===n&&(e.preventDefault(),s.focus()),!e.shiftKey&&document.activeElement===s&&(e.preventDefault(),n.focus())})});(0,Re.default)(document).ready(function(){let e=window.matchMedia("(max-width: 767px)").matches?"data-mobile":"data-desktop";(0,Re.default)(".accordion-panel").hide().removeClass("active"),(0,Re.default)(".accordion-header").removeClass("active").attr("aria-expanded","fal
475se"),(0,Re.default)(".accordion-item").each(function(){(0,Re.default)(this).attr(e)==="true"&&((0,Re.default)(this).find(".accordion-panel").show().addClass("active"),(0,Re.default)(this).find(".accordion-header").addClass("active").attr("aria-expanded","true"))});function t(n){let s=(0,Re.default)(n).next(".accordion-panel"),a=(0,Re.default)(n).attr("aria-expanded")==="true";s.slideToggle(),(0,Re.default)(n).toggleClass("active").attr("aria-expanded",!a),s.toggleClass("active")}(0,Re.default)(".accordion-header").on("click",function(){t(this),(0,Re.default)(this).closest(".accordion-item.active").removeClass("active")}),(0,Re.default)(".accordion-header").on("keydown",function(n){(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),t(this))})});(0,Re.default)(document).on("click",'a[href^="#"]',function(r){if((0,Re.default)(this).closest(".video-js-wrapper").length){r.preventDefault(),r.stopImmediatePropagation(),Z0();return}let e=(0,Re.default)(this).attr("href"),t=(0,Re.default)(e);if(!t.length||t.hasClass("accordian-item")||!window.matchMedia("(min-width: 768px)").matches)return;r.preventDefault();let s=t.find(".accordion-header"),a=s.next(".accordion-panel"),o=t.attr("data-desktop"),l=t.attr("aria-expanded")==="true";(o==="false"||o==="true"&&!l)&&(a.slideDown(),s.addClass("active").attr("aria-expanded","true"),a.addClass("active")),s.hasClass("active")||(s.addClass("active"),s.attr("aria-expanded","true"))});(0,Re.default)(document).ready(function(){(function(){function r(n){let s=n.cloneNode(!0);s.removeAttribute("onclick"),s.removeAttribute("tabindex"),s.removeAttribute("aria-live"),s.removeAttribute("role"),s.setAttribute("role","text")}let e=document.querySelector(".heading-section"),t=document.querySelector(".two-column");(e||t)&&r(e)})()});var gL=Z(Iy()),vL=Z(G3()),yL=Z(Y3());O();R();L();var Cc=Z(Ae());O();R();L();(function(r){var e=0,t={iframe:"iframe",popup:"popup"},n={strict:"strict",loose:"loose",html5:"html5"},s={mode:t.iframe,standard:n.html5,popHt:500,popWd:400,popX:200,popY:200,popTitle:"",popClose:!1,extraCss:"",extraHead:"",retainAttr:["id","class","style"]},a={};r.fn.printArea=function(l){r.extend(a,s,l),e++;var u="printArea_";r("[id^="+u+"]").remove(),a.id=u+e;var c=r(this),h=o.getPrintWindow();o.write(h.doc,c),setTimeout(function(){o.print(h)},1e3)};var o={print:function(l){var u=l.win;r(l.doc).ready(function(){u.focus(),u.print(),a.mode==t.popup&&a.popClose&&setTimeout(function(){u.close()},2e3)})},write:function(l,u){l.open(),l.write(o.docType()+"<html>"+o.getHead()+o.getBody(u)+"</html>"),l.close()},docType:function(){if(a.mode==t.iframe)return"";if(a.standard==n.html5)return"<!DOCTYPE html>";var l=a.standard==n.loose?" Transitional":"",u=a.standard==n.loose?"loose":"strict";return'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01'+l+'//EN" "http://www.w3.org/TR/html4/'+u+'.dtd">'},getHead:function(){var l="",u="";return a.extraHead&&a.extraHead.replace(/([^,]+)/g,function(c){l+=c}),r(document).find("link").filter(function(){var c=r(this).attr("rel");return r.type(c)!=="undefined"&&c.toLowerCase()=="stylesheet"}).filter(function(){var c=r(this).attr("media");return r.type(c)==="undefined"||c==""||c.toLowerCase()=="print"||c.toLowerCase()=="all"}).each(function(){u+='<link type="text/css" rel="stylesheet" href="'+r(this).attr("href")+'" >'}),a.extraCss&&a.extraCss.replace(/([^,\s]+)/g,function(c){u+='<link type="text/css" rel="stylesheet" href="'+c+'">'}),"<head><title>"+a.popTitle+"</title>"+l+u+"</head>"},getBody:function(l){var u="",c=a.retainAttr;return l.each(function(){for(var h=o.getFormData(r(this)),f="",v=0;v<c.length;v++){var p=r(h).attr(c[v]);p&&(f+=(f.length>0?" ":"")+c[v]+"='"+p+"'")}u+="<div "+f+">"+r(h).html()+"</div>"}),"<body>"+u+"</body>"},getFormData:function(l){var u=l.clone(),c=r("input,select,textarea",u);return r("input,select,textarea",l).each(function(h){var f=r(this).attr("type");r.type(f)==="undefined"&&(f=r(this).is("select")?"select":r(this).is("textarea")?"textarea":"");var v=c.eq(h);f=="radio"||f=="checkbox"?v.attr("checked",r(this).is(":checked")):f=="text"||f==""?v.attr("value",r(this).val()):f=="select"?r(this).find("option").each(function(p){r(this).is(":selected")&&r("option",v).eq(p).attr("selected",!0)}):f=="textarea"&&v.text(r(this).val())}),u},getPrintWindow:function(){switch(a.mode){case t.iframe:var l=new o.Iframe;return{win:l.contentWindow||l,doc:l.doc};case t.popup:var u=new o.Popup;return{win:u,doc:u.doc}}},Iframe:function(){var l=a.id,u="border:0;position:absolute;width:0px;height:0px;right:0px;top:0px;",c;try{c=document.createElement("iframe"),document.body.appendChild(c),r(c).attr({style:u,id:l,src:"#"+new Date().getTime()}),c.doc=null,c.doc=c.contentDocument?c.contentDocument:c.contentWindow?c.contentWindow.document:c.document}catch(h){throw h+". iframes may not be supported in this browser."}if(c.doc==null)throw"Cannot find document.";return c},Popup:function(){var l="location=yes,statusbar=no,directories=no,menubar=no,titlebar=no,toolbar=no,dependent=no";l+=",width="+a.popWd+",height="+a.popHt,l+=",resizable=yes,screenX="+a.popX+",screenY="+a.popY+",personalbar=no,scrollbars=yes";var u=window.open("","_blank",l);return u.doc=u.document,u}}})(jQuery);var J3=()=>{(0,Cc.default)('body[data-template="Print-cart-template"]').length>0&&(0,Cc.default)(".print-btn").each(function(){(0,Cc.default)(this).on("click",()=>{(0,Cc.default)("#printcart").printArea()})})};O();R();L();var Z3=r=>{let t=r.querySelector(".mobile-dropdown").querySelectorAll("li");t[0].addEventListener("click",()=>{for(let n=0;n<t.length;n++)t[n].classList.toggle("open")})};var bL=Z(iO());O();R();L();var nO=Z(Ae()),sO=Z(Fr()),mfe=Z(sn()),aO=r=>{let e=(0,nO.default)(r);if(e.length!==1)return null;
475let t=e.find(".slider"),n=e.find(".image");new sO.default(n,[{mediaQuery:"(min-width: 0)",attrName:"data-thumb"}],{blankClass:""}),t.slick({slidesToShow:5,slidesToScroll:5,arrows:!0,dots:!1,infinite:!1,responsive:[{breakpoint:1400,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:750,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:500,settings:{slidesToShow:1,slidesToScroll:1}}]})};var _L=Z(cO());O();R();L();var dO=Z(Ae());ml();var hO=Z(Fr()),fO=r=>{let e=(0,dO.default)(r);if(e.length!==1)return null;let t=e.find(".featured-thumbnail"),n=e.find(".video-btn"),s=e.find(".featured-video"),a=!1;n.on("click",()=>{e.attr("data-show-status")==="false"?e.attr("data-show-status","true"):e.attr("data-show-status","false"),a||(qi(s,!0),a=!0)}),new hO.default(t,[{mediaQuery:"(min-width: 0)",attrName:"data-thumb"}],{blankClass:""})};O();R();L();var Ob=Z(Ae()),Rfe=Z(sn());Tt();var gO=Z(mO()),KW=function(){this.$slider.slick({infinite:!1,variableWidth:!0,mobileFirst:!0,centerMode:!0,responsive:[{breakpoint:750,settings:"unslick"},{breakpoint:749,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:499,settings:{slidesToShow:1,slidesToScroll:1}}]})},vO=function(){!this.mediaQuery.matches&&!this.$slider.hasClass("slick-initialized")&&KW.call(this)},XW=function(){(0,Ob.default)(window).on("resize",(0,gO.default)(vO.bind(this),150))},YW=function(r){this.$el=(0,Ob.default)(r),this.$slider=this.$el.find(".column-container"),this.mediaQuery=window.matchMedia(nt.gtMedium),vO.call(this),XW.call(this)},yO=r=>new YW(r);O();R();L();var on=Z(Ae());Tt();var JW=function(){let r=this,e=[xe.enter,xe.spaceBar],t=[xe.escape],n=[xe.tab,xe.downArrow,xe.rightArrow],s=[xe.upArrow,xe.leftArrow],a=v=>e.includes(v.keyCode),o=v=>t.includes(v.keyCode),l=v=>n.includes(v.keyCode)&&!v.shiftKey,u=v=>s.includes(v.keyCode)||v.keyCode===xe.tab&&v.shiftKey,c=v=>window.matchMedia(nt.ltLarge).matches,h=()=>{if(r.$additionalBrandsDropdownList.length<=0)return;let v=r.$additionalBrandsContainer.offset(),p=r.$additionalBrandsContainer.outerHeight();c()?r.$additionalBrandsDropdownList.css({top:`${v.top+p}px`,left:0}):r.$additionalBrandsDropdownList.css({top:`${v.top+p}px`,left:`${v.left}px`})},f=(v,p=!0)=>{let T=r.$additionalBrandsContainer.is(".active");[!0,!1].includes(v)||(v=!T),r.$additionalBrandsContainer.toggleClass("active",v),r.$additionalBrandsDropdownButton.attr("aria-expanded",v),r.$additionalStripeOptionsContainers.each(function(){(0,on.default)(this).css("display",v?"block":"none")}),v?(T&&r.$additionalBrandsDropdownList.detach().insertAfter(r.$stripe),h()):T||r.$additionalBrandsDropdownList.detach().appendTo(r.$additionalBrandsContainer),p&&r.$additionalBrandsDropdownButton.focus()};r.$stripeOptions.on("keydown",function(v){let p=u(v),T=l(v),g=(0,on.default)(this),b=r.$stripe;if(o(v)&&(v.preventDefault(),wr(r.$stripeOptions.last(),document.body).next.focus()),p||T){v.preventDefault();let{prev:S,next:x}=wr(g,b);p&&S.focus(),T&&(r.$additionalBrandsContainer.is(".active")&&g.is(r.$stripeOptions.last())?r.$additionalStripeOptions.first().focus():x.focus())}}),r.$additionalBrandsDropdownButton.on("click",()=>{f()}),r.$additionalBrandsContainer.on("keydown",v=>{if((0,on.default)(v.target).is(r.$additionalBrandsDropdownButton)&&a(v))return v.preventDefault(),f();if(o(v)&&r.$additionalBrandsContainer.is(".active"))return v.preventDefault(),v.stopImmediatePropagation(),f(!1)}),r.$additionalStripeOptions.on("keydown",v=>{if(o(v)&&r.$additionalBrandsContainer.is(".active"))return v.preventDefault(),v.stopImmediatePropagation(),f(!1);let p=(0,on.default)(v.target),T=l(v),g=u(v),{prev:b,next:S}=wr(p,r.$additionalBrandsDropdownList);(g||T)&&(v.preventDefault(),g&&b.focus(),T&&S.focus())}),(0,on.default)(window).on("resize",h),r.$additionalBrandsDropdownList.on("focusout",function(v){let p=(0,on.default)(v.relatedTarget);if(!p.length||!iv(p,(0,on.default)(this),!1))return f(!1,!1)}),r.$additionalBrandsDropdownList.on("mouseleave",function(v){let p=(0,on.default)(v.relatedTarget);if(!p.length||!iv(p,(0,on.default)(this),!1))return f(!1,!1)})},ZW=function(){this.$stripe=(0,on.default)(".multi-brand-site-stripe").first(),this.$additionalBrandsContainer=this.$stripe.find(".multi-brand-site-stripe-additional-brands").first(),this.$additionalBrandsDropdownButton=this.$additionalBrandsContainer.find(".site-stripe-dropdown-button").first(),this.$stripeOptions=this.$stripe.find(".level-1 > a, .multi-brand-site-stripe-additional-brands > button"),this.$additionalBrandsDropdownList=this.$additionalBrandsContainer.find(".site-stripe-dropdown-list").first(),this.$additionalStripeOptionsContainers=this.$additionalBrandsDropdownList.find(".level-2"),this.$additionalStripeOptions=this.$additionalBrandsDropdownList.find(".level-2 > a"),JW.call(this)},bO=()=>new ZW;O();R();L();var Ec=Z(Ae());Tt();var _O=r=>{let e=(0,Ec.default)(r);if(e.length!==1)return null;let t="accordian-open",n=e.find(".language-link"),s=rv({collection:n}),a=o=>{let l=[!0,!1].includes(o)?o:e.attr("aria-expanded")!=="true";e.toggleClass(t,l),e.attr("aria-expanded",l),l&&setTimeout(()=>{n.first().focus()},100)};e.on("click",a),(0,Ec.default)(document).on("keydown",o=>{let l=o.target,u=e[0]===l,c=Ec.default.contains(e[0],l),h=[xe.enter,xe.spaceBar],f=[xe.downArrow,xe.rightArrow],v=[xe.leftArrow,xe.upArrow],p=h.includes(o.keyCode),T=o.keyCode===xe.escape,g=f.includes(o.keyCode)||o.keyCode===xe.tab&&!o.shift
475Key,b=v.includes(o.keyCode)||o.keyCode===xe.tab&&o.shiftKey;if(T&&(o.preventDefault(),a(!1),c&&e.focus()),p&&u&&(o.preventDefault(),a()),c&&(b||g)){let{prev:S,next:x}=s((0,Ec.default)(l));o.preventDefault(),b&&S.focus(),g&&x.focus()}})};O();R();L();var TO=Z(Fr());Tt();var SO=()=>{document.querySelector(".Featured-image-acco")&&new TO.default(".Featured-image-acco .image",[{mediaQuery:nt.ltMedium,attrName:"data-mobile"},{attrName:"data-desktop"}],{blankClass:"hidden"})};var jb=Z(CO()),TL=Z(vp()),zb=Z(kO());O();R();L();var Ac=Z(Ae()),BO=Z(OO()),$O=Z(MO()),FO=()=>{let r=(0,Ac.default)(".Promotional-modal").length>0?new BO.default((0,Ac.default)(".Promotional-modal")):null,e=(0,Ac.default)(".Promotional-corner").length>0?new $O.default((0,Ac.default)(".Promotional-corner")):null;r!==null&&r.on("promoModalClosed",()=>{e!==null&&e.open()})};O();R();L();ls();var Dp=document.querySelector("body"),no=Dp.dataset.template==="Cart-template",cs=Dp.dataset.template==="Product-detail-template",hs=Dp.dataset.template==="Category-template",fs=Dp.dataset.template==="Search-template",Nb=no,Ap=$('input[name="__RequestVerificationToken"]').val(),io=$('input[name="enableQTYSelectorVOne"]').val(),On={};try{if(hs||fs||cs||no){let r=document.getElementById("message-Management");r&&r.textContent.trim()&&(On=JSON.parse(r.textContent))}}catch(r){console.warn("Multilingual JSON error:",r)}function ta(r,e){return r?r.replace(/{(.*?)}/g,(t,n)=>e[n]!==void 0?e[n]:""):""}var UO={};function Dl(r){return r.closest("fieldset").find("legend").text().trim().replace("Quantity for","").trim()}function cG(r){return r.closest(".addToCartBtnGroup").find("[aria-live]")}function ds(r,e){let t=Ip(r);if(UO[t]===e)return;UO[t]=e;let n=cG(r);n.length&&(n.text(""),setTimeout(()=>{n.text(e)},50))}var Pp={},Vi={};wi(r=>{Object.keys(Pp).forEach(e=>{if(Pp[e]===!0){hG(e);let t=$(`input[name="productId"][value="${e}"]`).closest(".plus-minus-input").find(".rounded-quantity-input");if(t.length){let s=Dl(t);ds(t,ta(On?.cartUpdate?.trim()||"{qty} Quantity.",{product:s,qty:t.val()}))}let n=Vi[e];if(n){if(n.action==="addToCart"){if(n.skipFirstCartUpdate===!0){delete Vi[e];return}let s=$(`input[name="productId"][value="${e}"]`).closest(".addToCartBtnGroup").find("[data-gtm-product-quantity]");s.data("oldQty",n.oldQty),s.data("lastQty",n.newQty),s.trigger("moq-adjusted",[n.newQty])}else if(n.action==="removeFromCart"){let s=$(`input[name="productId"][value="${e}"]`).closest(".qty-fieldset").find("[data-gtm-product-quantity]");s.length&&(s.data("oldQty",n.oldQty),s.data("lastQty",n.newQty),s.trigger("moq-adjusted",[n.newQty]))}delete Vi[e]}}})});function dG(){let r=$("#LoadingModal");if(!r.length)return null;let e=r.clone(!1);return e.removeAttr("id").attr("data-state","off").attr("aria-busy","false").attr("role","status").attr("aria-live","polite").addClass("qty-loading-instance"),e}function Mb(r,e){Pp[e]=!0;let t;hs?t=r.closest(".Category-item"):cs?t=r.closest(".Product-info-wrapper"):fs&&(t=r.closest(".simple-display"));let n=t.find(".qtySelectorVOne");if(!n.length)return;let s=n.find(".qty-loading-instance");if(!s.length){if(s=dG(),!s)return;n.append(s)}n.addClass("is-loading"),s.attr("data-state","on").attr("aria-busy","true");let a=r.closest(".plus-minus-input").find(".rounded-quantity-input");ds(a,On.updatingCart)}function hG(r){Pp[r]=!1,$(".Product-info-wrapper").each(function(){let e=$(this);if((e.find(".sku").attr("data-variant-code")||e.find('input[name="productId"]').val())===r){let n=e.find(".qtySelectorVOne"),s=n.find(".qty-loading-instance");n.removeClass("is-loading"),s.attr("data-state","off").attr("aria-busy","false")}}),$(`input[name="productId"][value="${r}"]`).closest(".Category-item").each(function(){let e=$(this).find(".qtySelectorVOne"),t=e.find(".qty-loading-instance");e.removeClass("is-loading"),t.attr("data-state","off").attr("aria-busy","false")}),$(`input[name="productId"][value="${r}"]`).closest(".simple-display").each(function(){let e=$(this).find(".qtySelectorVOne"),t=e.find(".qty-loading-instance");e.removeClass("is-loading"),t.attr("data-state","off").attr("aria-busy","false")})}var ro={},fG=300,Cp={};function Bb(r,e){Cp[r]=e,ro[r]&&clearTimeout(ro[r]),ro[r]=setTimeout(()=>{vb({code:r,quantity:Cp[r],csrfToken:Ap,openCartMenuOnUpdate:!0}),delete ro[r],delete Cp[r]},fG)}function Ep(r){let e;if(hs?e=r.closest(".Category-item"):cs?e=r.closest(".Product-info-wrapper"):fs&&(e=r.closest(".simple-display")),!e||!e.length)return;let t=e.find(".attributes-section");bundlePage=r.closest(".Product-info").find(".CurrentPage").val(),(t.length===0||hs||fs||bundlePage==="BundleDetail")&&(e.find(".col.quantity.versionOneEnabled .qtySelectorVOne").addClass("toggleDisplay"),e.find(".defaultButton.productInCart").removeClass("toggleDisplay"))}function qO(r){let e;hs?e=r.closest(".Category-item"):cs?e=r.closest(".Product-info-wrapper .Product-info")??r.closest(".Product-info-wrapper"):fs?e=r.closest(".simple-display"):no&&(e=r.closest(".Cart-items .cart-item"));let t=e instanceof jQuery?e[0]:e;if(!t)return{dataOnhand:0,dataHasBackOrder:!1,backOrderQty:0,maxAllowedItemQty:0};let n=Number(t.getAttribute("data-onhand")||0),s=t.getAttribute("data-hasbackorder")==="true",a=Number.parseInt(t.getAttribute("data-bckorderqty")||0),o=Number.parseInt(t.getAttribute("data-max-qty"));return{dataOnhand:n,dataHasBackOrder:s,backOrderQty:a,maxAllowedItemQty:o}}function HO(r,e,t,n,s,a){let o=e+(s?t:0);if(e===0&&o===0)return 0;if(a==="BundleDetail")if(s){if(r>o&&o<=n)return o;if(r<=o&&o<=n||r<=o&&o>n&&r<=n)return r;if(r<=o&&o>n&&r>n||r>o&&o>n&&r>n)return n;if(r>o&&o>n&&r<=n)return r}else{if(r>e&&e<=n)return e;if(r<=e&&e<=n||r<=e&&e>n&&r<=n)return r;if(r<=e&&e>n&&r>n||r>e&&e>n&&r>n)return n;if(r>e&&e>n&&r<=n)return r}else if(s){if(r>o&&o<=n)return o;if(r<=o&&o<=n||r<=o&&o>n&&r<=n)return r;if(r<=o&&o>n&&r>n||r>o&&o>n&&r>n)return n;if(r>o&&o>n&&r<=n)return r}else{if(r>e&&e<=n)return e;if(r<=e&&e<=n||r<=e&&e>n&&r<=n)return r;if(r<=e&&e>n&&r>n||r>e&&e>n&&r>n)return n;if(r>e&&e>n&&r<=n)return r}}function Ip(r){return hs||fs?r.closest("form.add-to-cart-form").find('input[name="productId"]').val():cs&&io==="VersionOneEnabled"&&$(".sku").attr("data-variant-code")||$('input[name="productId"]').val()}function kp(r){r&&(ro[r]&&(clearTimeout(ro[r]),delete ro[r]),delete Cp[r])}function $b(r,e){if(!no)return;let t=Number(r.attr("min"))||1,n=r.closest(".input-group.plus-minus-input").find('button[data-quantity="minus"]');e>t?n.attr("data-gtm-quantity-button",""):n.removeAttr("data-gtm-quantity-button")}$(function(){$(".rounded-quantity-input").each(function(){let r=$(this),e=Number(r.val());Op(r,e)})});$("body").on("focus",".rounded-quantity-input",function(){$(this).data("oldQty",Number($(this).val()));let r=$(this),e=Number(r.val());Op(r,e)});$("body").on("change",".rounded-quantity-input",function(){let r=$(this),e=Ip(r);if(io==="VersionOneEnabled"&&r.data("fromCartSync")===!0){r.removeData("fromCartSync"),delete r.data.fromCartSync,Ep(r),kp(e);return}let n=r.closest(".Category-item, .Product-info-wrapper, .product.ompression-item")[0];
475if(n?.dataset?.skipErrorClearOnce==="true")delete n.dataset.skipErrorClearOnce;else if(!no){let h=$(this).closest(".add-to-cart-btn-block").find(".cart-item-error");h.length>0&&h.empty().removeClass("show")}let s=Number(r.val()),a=Number(r.attr("min")),o=Number(r.attr("data-increment-qty")),l=Number(r.val()),u=a;_keyTimer=setTimeout(function(){if(clearTimeout(_keyTimer),l>a)if(a===1&&o===1||l===a+o)u=l;else if(l<a+o)s=u=a+o;else if((l-a)%o===0)u=l;else if(s<l)u=s;else{let v=a+o;for(;v<l;)v+=o;s=u=v}let c,h=l;if(io==="VersionOneEnabled"){if(h>0){Number(l)<a&&Number(l)>0&&(s=u=a),cs?c=r.closest(".Product-info").find(".CurrentPage").val():hs?r.closest(".Category-item").find(".flag").hasClass("bundled")&&(c="BundleDetail"):fs&&r.closest(".simple-display").find(".flag").hasClass("bundled")&&(c="BundleDetail");let{dataOnhand:v,dataHasBackOrder:p,backOrderQty:T,maxAllowedItemQty:g}=qO(r);if(u=HO(s,v,T,g,p,c),u<=0){Ep(r),kp(e),os(e,Ap,!0,!1);return}r.val(Number.parseInt(u)),Mb(r,e),Vi[e]={action:u>Number(r.data("oldQty"))?"addToCart":"removeFromCart",oldQty:Number(r.data("oldQty")),newQty:Number(u),element:r},Bb(e,s),r.attr("value",u),r.attr("aria-valuenow",u)}else if(h<=0){if(r[0].dataset.skipRemoveProduct==="true"){delete r[0].dataset.skipRemoveProduct;return}let v=Dl(r);ds(r,ta(On?.remove?.trim()||"Quantity decreased to 0 for product {product}",{product:v})),setTimeout(()=>{ds(r,ta(On?.removedFromCart?.trim()||"Cart updated. {product} removed from the cart",{product:v}))},300),setTimeout(()=>{Ep(r);let p=r;Vi[e]={action:"removeFromCart",oldQty:Number(r.data("oldQty")),element:p},kp(e),os(e,Ap,!0,!1).done(()=>{let T=Vi[e];T&&(T.element.data("oldQty",T.oldQty),T.element.trigger("moq-adjusted",[0]),delete Vi[e])})},500);return}}else l<a&&(u=a),r.val(Number.parseInt(u)),$b(r,u);let f=Dl(r);if(ds(r,ta(On?.update?.trim()||"Quantity changed to {qty} for product {product}",{product:f,qty:u})),(cs||hs||fs)&&io!=="VersionOneEnabled"&&cs&&$(this).parents(".plus-minus-input").first().find(".rounded-quantity-input").first().trigger("change"),Nb){let p=r.parent().parent().children().first();p.find(`option[value="${u}"]`).length===0&&p.append(`<option value="${u}">${u}</option>`),p.val(u),p.trigger("change")}},1e3)});function Op(r,e){r.attr("aria-label",`${e} Quantity.`),r.attr("aria-valuenow",e)}$("body").on("click",'[data-quantity="minus"]',function(r){if(r.preventDefault(),!no){let u=$(this).closest(".add-to-cart-btn-block").find(".cart-item-error");u.length>0&&u.empty().removeClass("show")}let e=$(this).closest(".plus-minus-input").find(".rounded-quantity-input"),t=Ip(e),n=Number($(this).attr("data-increment-qty")),s=e.val(),a=Number(e.val())-n;$b(e,a);let o=Number(e.attr("min"));if(Op(e,a),io==="VersionOneEnabled"){if(a<=0){let u=Dl(e);ds(e,ta(On?.remove?.trim()||"Quantity decreased to 0 for product {product}",{product:u})),setTimeout(()=>{ds(e,ta(On?.removedFromCart?.trim()||"Cart updated. {product} removed from the cart",{product:u}))},300);let c=e;Vi[t]={action:"removeFromCart",oldQty:Number(s),element:c},setTimeout(()=>{Ep(e),kp(t),os(t,Ap,!0,!1).done(()=>{let h=Vi[t];h&&(h.element.data("oldQty",h.oldQty),h.element.trigger("moq-adjusted",[0]),delete Vi[t])})},500);return}e.val(a),e.attr("value",a),e.attr("aria-valuenow",a),Mb(e,t),Bb(t,a),Vi[t]={action:"removeFromCart",oldQty:s,newQty:a};let l=Dl(e);ds(e,ta(On?.decrease?.trim()||"Quantity decreased to {qty} for product {product}",{product:l,qty:a}))}else a<=0?(isNaN(a)||a<o)&&(a=o):e.val(a);if(Nb){let u=$(this).parent().parent().parent().children().first();u.find(`option[value="${a}"]`).length===0&&u.append(`<option value="${a}">${a}</option>`),u.val(a),u.trigger("change")}});$("body").on("click",'[data-quantity="plus"]',function(r){if(r.preventDefault(),!no){let c=$(this).closest(".add-to-cart-btn-block").find(".cart-item-error");c.length>0&&c.empty().removeClass("show")}let e=$(this).closest(".plus-minus-input").find(".rounded-quantity-input"),t=Ip(e),n=e.val(),s=Number($(this).attr("data-increment-qty")),a=Number(e.val())+s;Op(e,a);let o;if(io==="VersionOneEnabled"){cs?o=$(this).closest(".Product-info").find(".CurrentPage").val():hs?$(this).closest(".Category-item").find(".flag").hasClass("bundled")&&(o="BundleDetail"):fs&&$(this).closest(".simple-display").find(".flag").hasClass("bundled")&&(o="BundleDetail");let{dataOnhand:u,dataHasBackOrder:c,backOrderQty:h,maxAllowedItemQty:f}=qO($(this));quantity=HO(a,u,h,f,c,o),e.val(quantity),Mb($(this),t),Bb(t,a),Vi[t]={action:"addToCart",oldQty:Number(n),newQty:Number(quantity),element:e},e.attr("value",quantity),e.attr("aria-valuenow",quantity)}else e.val(a),$b(e,a);if(Nb){let c=$(this).parent().parent().parent().children().first();c.find(`option[value="${a}
475"]`).length===0&&c.append(`<option value="${a}">${a}</option>`),c.val(a),c.trigger("change")}let l=Dl(e);ds(e,ta(On?.increase?.trim()||"Quantity increased to {qty} for product {product}",{product:l,qty:a}))});io==="VersionOneEnabled"&&$("body").on("keypress",".rounded-quantity-input",function(r){(r.which<48||r.which>57)&&r.preventDefault()});window.addEventListener("pageshow",function(r){r.persisted&&window.location.reload()});O();R();L();var aL=Z(Ae()),oL=Z(WO()),lL=Z(ZO()),uL=Z(sL()),cL=Z(Fr());Tt();var LG=(()=>{var r=()=>{let e=new lL.default((0,aL.default)("#Category-products-dated-goods")),t=new uL.default(".Featured-collections"),n=new oL.default(".Quickview-controller");e.on("initQuickViewModal",()=>{n.initQuickViewModal()}),t.on("initQuickViewModal",()=>{n.initQuickViewModal()}),new cL.default(".Category-promo.bg-image",[{mediaQuery:nt.ltSmall,attrName:"data-mobile"},{attrName:"data-desktop"}],{blankClass:"hidden"})};return function(){r.call(this)}})();new LG;dD();(0,Fe.default)("#desktop-search").length>0&&new zb.default("#desktop-search");(0,Fe.default)("#mobile-search").length>0&&new zb.default("#mobile-search");SO();(0,Fe.default)(function(){(0,Fe.default)(".js-product-slider").each(function(){new TL.default((0,Fe.default)(this))})});FO();bO();HE();(0,Fe.default)(".lazy-load").each(function(){qi(this)});(0,Fe.default)(".video-lazy-load").each(function(){qi(this,!0)});VE();(0,Fe.default)("#NewsletterForm").length>0&&new hL.default("#NewsletterForm");(0,Fe.default)(".Accordion").length>0&&(0,Fe.default)(".Accordion").each(function(){new fL.default(this)});(0,Fe.default)(".Hero-banner").length>0&&new gL.default(".Hero-banner");(0,Fe.default)(".Support-page").length>0&&new vL.default(".Support-page");(0,Fe.default)("#location-notification").length>0&&new pL.default("#location-notification");(0,Fe.default)("#UtilityNav > li.cart").length>0&&new mL.default("#UtilityNav > li.cart");(0,Fe.default)(".Page-search-menu").length>0&&(0,Fe.default)(".Page-search-menu").each(function(){Rf((0,Fe.default)(this))});(0,Fe.default)(".Page-banner-block").each(function(){new _L.default(this)});(0,Fe.default)(".Language-selector-accordion").each(function(){_O((0,Fe.default)(this))});(0,Fe.default)(".Multiple-column-display-block").each(function(){yO(this)});(0,Fe.default)("table.DataTable").wrap('<div class="Responsive-Table"></div>');(0,Fe.default)("table").wrap('<div class="Responsive-Table"></div>');navigator.userAgent.match(/Trident.*rv:11\./)&&(0,Fe.default)("body").addClass("ie11");Fe.default.ajax({url:"/Chat/InContactChat/",method:"GET",success:r=>{r.error?console.log(r.error):(0,Fe.default)("body").append(r)}});(0,Fe.default)(document).on("click",".js-add-to-cart",function(r){let e=(0,Fe.default)(this).parents(".add-to-cart-form");p3(e,r)});(0,Fe.default)("html").on("click",".add-to-cart-btn-block select.qty",r=>r.preventDefault());j3();(0,Fe.default)(".Featured-blog-feed").each(function(){new yL.default(this)});(0,Fe.default)(".MVP-hero-banner").each(function(){new dL.default(this)});(0,Fe.default)(".Section-navigation").each(function(){Z3(this)});J3();(0,Fe.default)(".Shop-categories").each(function(){new bL.default(this)});(0,Fe.default)(".Video-block").each(function(){fO((0,Fe.default)(this))});(0,Fe.default)(".Category-slider").each(function(){aO(this)});(0,Fe.default)(".Image-grid-block").length>0&&(0,Fe.default)(".Image-grid-block").each(function(){new jb.default(this)});(0,Fe.default)(".Icon-grid-block").length>0&&(0,Fe.default)(".Icon-grid-block").each(function(){new jb.default(this)});(0,Fe.default)(".add-btn").on("click",()=>{(0,Fe.default)(".Modal .Close").blur(),(0,Fe.default)("#MainContent").attr("aria-hidden",(0,Fe.default)("#MainContent").attr("aria-hidden")==="true"?"false":"true"),(0,Fe.default)("#FooterContent").attr("aria-hidden",(0,Fe.default)("#FooterContent").attr("aria-hidden")==="true"?"false":"true")});(0,Fe.default)(".Modal .Close, .CustomModal .Close").on("click",function(){(0,Fe.default)("#MainContent").attr("aria-hidden",(0,Fe.default)("#MainContent").attr("aria-hidden")==="true"?"false":"true"),(0,Fe.default)("#FooterContent").attr("aria-hidden",(0,Fe.default)("#FooterContent").attr("aria-hidden")==="true"?"false":"true");let r=(0,Fe.default)(this).parents(".Modal").first(),e=(0,Fe.default)(this).parents(".CustomModal").first(),t=r.length?r:e;t.attr("aria-hidden",t.attr("aria-hidden")==="true"?"false":"true")});function RG(r){let e=r.textContent.trim().split(/\s+/),t=document.createElement(r.tagName);t.style.visibility="hidden",t.style.fontSize=getComputedStyle(r).fontSize,document.body.appendChild(t);let n=parseFloat(getComputedStyle(r).lineHeight)*1.1,s=parseFloat(getComputedStyle(r).paddingTop),a=parseFloat(getComputedStyle(r).paddingBottom),o=parseFloat(getComputedStyle(r).fontSize);n||(n=o*1.4);let l=!1;for(let u of e){if(t.textContent=u,r.appendChild(t),t.offsetHeight-a-s>n){l=!0;break}r.removeChild(t)}return t.remove(),l}var NG=16,MG=()=>
475{document.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(e=>{let t=parseFloat(getComputedStyle(e).fontSize);for(;t>NG&&RG(e);)console.log(e.outerText),t-=.5,e.style.setProperty("font-size",`${t}px`,"important")})},BG=()=>window.innerWidth<=768;BG()&&document.addEventListener("DOMContentLoaded",MG);window.addEventListener("DOMContentLoaded",function(){let r=document.querySelector(".mobile-search"),e=document.querySelector(".reset-input");function t(){r.value.length>0?(e.style.display="block",document.querySelector(".Search-dropdown-menu").classList.remove("hidden")):(e.style.display="none",document.querySelector(".Search-dropdown-menu").classList.add("hidden"))}t(),r.addEventListener("input",t),e.addEventListener("click",()=>{r.value="",t(),r.focus()})});window.addEventListener("DOMContentLoaded",function(){let r=document.querySelector(".desktop-search"),e=document.querySelector(".desktop-reset-input");function t(){r.value.length>0?(e.style.display="block",document.querySelector(".Search-dropdown-menu").classList.remove("hidden")):(e.style.display="none",document.querySelector(".Search-dropdown-menu").classList.add("hidden"))}t(),r.addEventListener("input",t),e.addEventListener("click",()=>{r.value="",t(),r.focus()})});function $G(r,e){let t=new Date;t.setFullYear(t.getFullYear()+1),document.cookie=`${r}=${e};Secure;path=/;expires=${t.toGMTString()};`}var FG=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);$G("viewport",FG);(0,Fe.default)(document).ready(()=>{(0,Fe.default)('body[data-template="Product-detail-template"]').length>0&&(0,Fe.default)(".Overlay").attr("data-state","off")});})();
476/*  media-query-images
477 *  version: 1.0.3
478 *  https://github.com/cuth/media-query-images
479 *  @preserve
480 */
481/*! Bundled license information:
482
483@jspm/core/nodelibs/browser/chunk-DtuTasat.js:
484  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
485
486jquery-touchswipe/jquery.touchSwipe.min.js:
487  (*!
488   * @fileOverview TouchSwipe - jQuery Plugin
489   * @version 1.6.18
490   *
491   * @author Matt Bryson http://www.github.com/mattbryson
492   * @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
493   * @see http://labs.rampinteractive.co.uk/touchSwipe/
494   * @see http://plugins.jquery.com/project/touchSwipe
495   * @license
496   * Copyright (c) 2010-2015 Matt Bryson
497   * Dual licensed under the MIT or GPL Version 2 licenses.
498   *
499   *)
500
501@videojs/xhr/lib/index.js:
502  (**
503   * @license
504   * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
505   * Copyright (c) 2014 David Björklund
506   * Available under the MIT license
507   * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
508   *)
509
510m3u8-parser/dist/m3u8-parser.es.js:
511  (*! @name m3u8-parser @version 7.2.0 @license Apache-2.0 *)
512
513mpd-parser/dist/mpd-parser.es.js:
514  (*! @name mpd-parser @version 1.4.0 @license Apache-2.0 *)
515
516video.js/dist/video.es.js:
517  (**
518   * @license
519   * Video.js 8.24.1 <http://videojs.com/>
520   * Copyright 2010-present Video.js contributors
521   * Available under Apache License Version 2.0
522   * <https://github.com/videojs/video.js/blob/main/LICENSE>
523   *
524   * Includes vtt.js <https://github.com/mozilla/vtt.js>
525   * Available under Apache License Version 2.0
526   * <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
527   *)
528  (*! @name videojs-contrib-quality-levels @version 4.1.0 @license Apache-2.0 *)
529  (*! @name @videojs/http-streaming @version 3.17.5 @license Apache-2.0 *)
530  (*! @name pkcs7 @version 1.0.4 @license Apache-2.0 *)
531  (*! @name aes-decrypter @version 4.0.2 @license Apache-2.0 *)
532
533modal-handler/cjs/modal-handler.js:
534  (*!
535   * modal-handler
536   * https://github.com/TheC2Group/modal-handler
537   * @version 3.2.5
538   * @license MIT (c) The C2 Group (c2experience.com)
539   *)
540
541c2-accordion/cjs/accordion.js:
542  (*!
543   * c2-accordion
544   * https://github.com/TheC2Group/accordion
545   * @version 2.8.4
546   * @license MIT (c) The C2 Group (c2experience.com)
547   *)
548
549c2-tabs/cjs/tabs.js:
550  (*!
551   * c2-tabs
552   * https://github.com/TheC2Group/tabs
553   * @version 2.3.1
554   * @license MIT (c) The C2 Group (c2experience.com)
555   *)
556
557amdefine/amdefine.js:
558  (** vim: et:ts=4:sw=4:sts=4
559   * @license amdefine 1.0.1 Copyright (c) 2011-2016, The Dojo Foundation All Rights Reserved.
560   * Available via the MIT or new BSD license.
561   * see: http://github.com/jrburke/amdefine for details
562   *)
563
564jquery-ui/ui/focusable.js:
565  (*!
566   * jQuery UI Focusable 1.14.2
567   * https://jqueryui.com
568   *
569   * Copyright OpenJS Foundation and other contributors
570   * Released under the MIT license.
571   * https://jquery.org/license
572   *)
573
574jquery-ui/ui/tabbable.js:
575  (*!
576   * jQuery UI Tabbable 1.14.2
577   * https://jqueryui.com
578   *
579   * Copyright OpenJS Foundation and other contributors
580   * Released under the MIT license.
581   * https://jquery.org/license
582   *)
583*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.