plyr/dist/plyr.polyfilled.min.js
2020-08-30 16:10:25 +10:00

5 lines
188 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"object"==typeof navigator&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):(e="undefined"!=typeof globalThis?globalThis:e||self).Plyr=t()}(this,(function(){"use strict";!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,i;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i=n.preventDefault,n.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}();var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),r=function(e){try{return!!e()}catch(e){return!0}},a=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,l={f:s&&!o.call({1:2},1)?function(e){var t=s(this,e);return!!t&&t.enumerable}:o},c=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},u={}.toString,h=function(e){return u.call(e).slice(8,-1)},f="".split,d=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==h(e)?f.call(e,""):Object(e)}:Object,p=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},m=function(e){return d(p(e))},g=function(e){return"object"==typeof e?null!==e:"function"==typeof e},v=function(e,t){if(!g(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!g(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!g(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!g(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,b=function(e,t){return y.call(e,t)},w=i.document,k=g(w)&&g(w.createElement),T=function(e){return k?w.createElement(e):{}},S=!a&&!r((function(){return 7!=Object.defineProperty(T("div"),"a",{get:function(){return 7}}).a})),E=Object.getOwnPropertyDescriptor,A={f:a?E:function(e,t){if(e=m(e),t=v(t,!0),S)try{return E(e,t)}catch(e){}if(b(e,t))return c(!l.f.call(e,t),e[t])}},P=function(e){if(!g(e))throw TypeError(String(e)+" is not an object");return e},C=Object.defineProperty,x={f:a?C:function(e,t,n){if(P(e),t=v(t,!0),P(n),S)try{return C(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},O=a?function(e,t,n){return x.f(e,t,c(1,n))}:function(e,t,n){return e[t]=n,e},I=function(e,t){try{O(i,e,t)}catch(n){i[e]=t}return t},j="__core-js_shared__",L=i[j]||I(j,{}),M=Function.toString;"function"!=typeof L.inspectSource&&(L.inspectSource=function(e){return M.call(e)});var N,R,_,U=L.inspectSource,D=i.WeakMap,F="function"==typeof D&&/native code/.test(U(D)),q=t((function(e){(e.exports=function(e,t){return L[e]||(L[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),H=0,B=Math.random(),V=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++H+B).toString(36)},z=q("keys"),W=function(e){return z[e]||(z[e]=V(e))},K={},$=i.WeakMap;if(F){var Y=new $,G=Y.get,X=Y.has,Q=Y.set;N=function(e,t){return Q.call(Y,e,t),t},R=function(e){return G.call(Y,e)||{}},_=function(e){return X.call(Y,e)}}else{var J=W("state");K[J]=!0,N=function(e,t){return O(e,J,t),t},R=function(e){return b(e,J)?e[J]:{}},_=function(e){return b(e,J)}}var Z,ee={set:N,get:R,has:_,enforce:function(e){return _(e)?R(e):N(e,{})},getterFor:function(e){return function(t){var n;if(!g(t)||(n=R(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},te=t((function(e){var t=ee.get,n=ee.enforce,r=String(String).split("String");(e.exports=function(e,t,a,o){var s=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof a&&("string"!=typeof t||b(a,"name")||O(a,"name",t),n(a).source=r.join("string"==typeof t?t:"")),e!==i?(s?!c&&e[t]&&(l=!0):delete e[t],l?e[t]=a:O(e,t,a)):l?e[t]=a:I(t,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||U(this)}))})),ne=i,ie=function(e){return"function"==typeof e?e:void 0},re=function(e,t){return arguments.length<2?ie(ne[e])||ie(i[e]):ne[e]&&ne[e][t]||i[e]&&i[e][t]},ae=Math.ceil,oe=Math.floor,se=function(e){return isNaN(e=+e)?0:(e>0?oe:ae)(e)},le=Math.min,ce=function(e){return e>0?le(se(e),9007199254740991):0},ue=Math.max,he=Math.min,fe=function(e,t){var n=se(e);return n<0?ue(n+t,0):he(n,t)},de=function(e){return function(t,n,i){var r,a=m(t),o=ce(a.length),s=fe(i,o);if(e&&n!=n){for(;o>s;)if((r=a[s++])!=r)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},pe={includes:de(!0),indexOf:de(!1)},me=pe.indexOf,ge=function(e,t){var n,i=m(e),r=0,a=[];for(n in i)!b(K,n)&&b(i,n)&&a.push(n);for(;t.length>r;)b(i,n=t[r++])&&(~me(a,n)||a.push(n));return a},ve=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ye=ve.concat("length","prototype"),be={f:Object.getOwnPropertyNames||function(e){return ge(e,ye)}},we={f:Object.getOwnPropertySymbols},ke=re("Reflect","ownKeys")||function(e){var t=be.f(P(e)),n=we.f;return n?t.concat(n(e)):t},Te=function(e,t){for(var n=ke(t),i=x.f,r=A.f,a=0;a<n.length;a++){var o=n[a];b(e,o)||i(e,o,r(t,o))}},Se=/#|\.prototype\./,Ee=function(e,t){var n=Pe[Ae(e)];return n==xe||n!=Ce&&("function"==typeof t?r(t):!!t)},Ae=Ee.normalize=function(e){return String(e).replace(Se,".").toLowerCase()},Pe=Ee.data={},Ce=Ee.NATIVE="N",xe=Ee.POLYFILL="P",Oe=Ee,Ie=A.f,je=function(e,t){var n,r,a,o,s,l=e.target,c=e.global,u=e.stat;if(n=c?i:u?i[l]||I(l,{}):(i[l]||{}).prototype)for(r in t){if(o=t[r],a=e.noTargetGet?(s=Ie(n,r))&&s.value:n[r],!Oe(c?r:l+(u?".":"#")+r,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;Te(o,a)}(e.sham||a&&a.sham)&&O(o,"sham",!0),te(n,r,o,e)}},Le=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())})),Me=Le&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ne=Array.isArray||function(e){return"Array"==h(e)},Re=function(e){return Object(p(e))},_e=Object.keys||function(e){return ge(e,ve)},Ue=a?Object.defineProperties:function(e,t){P(e);for(var n,i=_e(t),r=i.length,a=0;r>a;)x.f(e,n=i[a++],t[n]);return e},De=re("document","documentElement"),Fe=W("IE_PROTO"),qe=function(){},He=function(e){return"<script>"+e+"</"+"script>"},Be=function(){try{Z=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Be=Z?function(e){e.write(He("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Z):((t=T("iframe")).style.display="none",De.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(He("document.F=Object")),e.close(),e.F);for(var n=ve.length;n--;)delete Be.prototype[ve[n]];return Be()};K[Fe]=!0;var Ve=Object.create||function(e,t){var n;return null!==e?(qe.prototype=P(e),n=new qe,qe.prototype=null,n[Fe]=e):n=Be(),void 0===t?n:Ue(n,t)},ze=be.f,We={}.toString,Ke="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$e={f:function(e){return Ke&&"[object Window]"==We.call(e)?function(e){try{return ze(e)}catch(e){return Ke.slice()}}(e):ze(m(e))}},Ye=q("wks"),Ge=i.Symbol,Xe=Me?Ge:Ge&&Ge.withoutSetter||V,Qe=function(e){return b(Ye,e)||(Le&&b(Ge,e)?Ye[e]=Ge[e]:Ye[e]=Xe("Symbol."+e)),Ye[e]},Je={f:Qe},Ze=x.f,et=function(e){var t=ne.Symbol||(ne.Symbol={});b(t,e)||Ze(t,e,{value:Je.f(e)})},tt=x.f,nt=Qe("toStringTag"),it=function(e,t,n){e&&!b(e=n?e:e.prototype,nt)&&tt(e,nt,{configurable:!0,value:t})},rt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},at=function(e,t,n){if(rt(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}},ot=Qe("species"),st=function(e,t){var n;return Ne(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Ne(n.prototype)?g(n)&&null===(n=n[ot])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},lt=[].push,ct=function(e){var t=1==e,n=2==e,i=3==e,r=4==e,a=6==e,o=5==e||a;return function(s,l,c,u){for(var h,f,p=Re(s),m=d(p),g=at(l,c,3),v=ce(m.length),y=0,b=u||st,w=t?b(s,v):n?b(s,0):void 0;v>y;y++)if((o||y in m)&&(f=g(h=m[y],y,p),e))if(t)w[y]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:lt.call(w,h)}else if(r)return!1;return a?-1:i||r?r:w}},ut={forEach:ct(0),map:ct(1),filter:ct(2),some:ct(3),every:ct(4),find:ct(5),findIndex:ct(6)},ht=ut.forEach,ft=W("hidden"),dt="Symbol",pt=Qe("toPrimitive"),mt=ee.set,gt=ee.getterFor(dt),vt=Object.prototype,yt=i.Symbol,bt=re("JSON","stringify"),wt=A.f,kt=x.f,Tt=$e.f,St=l.f,Et=q("symbols"),At=q("op-symbols"),Pt=q("string-to-symbol-registry"),Ct=q("symbol-to-string-registry"),xt=q("wks"),Ot=i.QObject,It=!Ot||!Ot.prototype||!Ot.prototype.findChild,jt=a&&r((function(){return 7!=Ve(kt({},"a",{get:function(){return kt(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=wt(vt,t);i&&delete vt[t],kt(e,t,n),i&&e!==vt&&kt(vt,t,i)}:kt,Lt=function(e,t){var n=Et[e]=Ve(yt.prototype);return mt(n,{type:dt,tag:e,description:t}),a||(n.description=t),n},Mt=Me?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof yt},Nt=function(e,t,n){e===vt&&Nt(At,t,n),P(e);var i=v(t,!0);return P(n),b(Et,i)?(n.enumerable?(b(e,ft)&&e[ft][i]&&(e[ft][i]=!1),n=Ve(n,{enumerable:c(0,!1)})):(b(e,ft)||kt(e,ft,c(1,{})),e[ft][i]=!0),jt(e,i,n)):kt(e,i,n)},Rt=function(e,t){P(e);var n=m(t),i=_e(n).concat(Ft(n));return ht(i,(function(t){a&&!_t.call(n,t)||Nt(e,t,n[t])})),e},_t=function(e){var t=v(e,!0),n=St.call(this,t);return!(this===vt&&b(Et,t)&&!b(At,t))&&(!(n||!b(this,t)||!b(Et,t)||b(this,ft)&&this[ft][t])||n)},Ut=function(e,t){var n=m(e),i=v(t,!0);if(n!==vt||!b(Et,i)||b(At,i)){var r=wt(n,i);return!r||!b(Et,i)||b(n,ft)&&n[ft][i]||(r.enumerable=!0),r}},Dt=function(e){var t=Tt(m(e)),n=[];return ht(t,(function(e){b(Et,e)||b(K,e)||n.push(e)})),n},Ft=function(e){var t=e===vt,n=Tt(t?At:m(e)),i=[];return ht(n,(function(e){!b(Et,e)||t&&!b(vt,e)||i.push(Et[e])})),i};if(Le||(te((yt=function(){if(this instanceof yt)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=V(e),n=function(e){this===vt&&n.call(At,e),b(this,ft)&&b(this[ft],t)&&(this[ft][t]=!1),jt(this,t,c(1,e))};return a&&It&&jt(vt,t,{configurable:!0,set:n}),Lt(t,e)}).prototype,"toString",(function(){return gt(this).tag})),te(yt,"withoutSetter",(function(e){return Lt(V(e),e)})),l.f=_t,x.f=Nt,A.f=Ut,be.f=$e.f=Dt,we.f=Ft,Je.f=function(e){return Lt(Qe(e),e)},a&&(kt(yt.prototype,"description",{configurable:!0,get:function(){return gt(this).description}}),te(vt,"propertyIsEnumerable",_t,{unsafe:!0}))),je({global:!0,wrap:!0,forced:!Le,sham:!Le},{Symbol:yt}),ht(_e(xt),(function(e){et(e)})),je({target:dt,stat:!0,forced:!Le},{for:function(e){var t=String(e);if(b(Pt,t))return Pt[t];var n=yt(t);return Pt[t]=n,Ct[n]=t,n},keyFor:function(e){if(!Mt(e))throw TypeError(e+" is not a symbol");if(b(Ct,e))return Ct[e]},useSetter:function(){It=!0},useSimple:function(){It=!1}}),je({target:"Object",stat:!0,forced:!Le,sham:!a},{create:function(e,t){return void 0===t?Ve(e):Rt(Ve(e),t)},defineProperty:Nt,defineProperties:Rt,getOwnPropertyDescriptor:Ut}),je({target:"Object",stat:!0,forced:!Le},{getOwnPropertyNames:Dt,getOwnPropertySymbols:Ft}),je({target:"Object",stat:!0,forced:r((function(){we.f(1)}))},{getOwnPropertySymbols:function(e){return we.f(Re(e))}}),bt){var qt=!Le||r((function(){var e=yt();return"[null]"!=bt([e])||"{}"!=bt({a:e})||"{}"!=bt(Object(e))}));je({target:"JSON",stat:!0,forced:qt},{stringify:function(e,t,n){for(var i,r=[e],a=1;arguments.length>a;)r.push(arguments[a++]);if(i=t,(g(t)||void 0!==e)&&!Mt(e))return Ne(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!Mt(t))return t}),r[1]=t,bt.apply(null,r)}})}yt.prototype[pt]||O(yt.prototype,pt,yt.prototype.valueOf),it(yt,dt),K[ft]=!0;var Ht=x.f,Bt=i.Symbol;if(a&&"function"==typeof Bt&&(!("description"in Bt.prototype)||void 0!==Bt().description)){var Vt={},zt=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof zt?new Bt(e):void 0===e?Bt():Bt(e);return""===e&&(Vt[t]=!0),t};Te(zt,Bt);var Wt=zt.prototype=Bt.prototype;Wt.constructor=zt;var Kt=Wt.toString,$t="Symbol(test)"==String(Bt("test")),Yt=/^Symbol\((.*)\)[^)]+$/;Ht(Wt,"description",{configurable:!0,get:function(){var e=g(this)?this.valueOf():this,t=Kt.call(e);if(b(Vt,e))return"";var n=$t?t.slice(7,-1):t.replace(Yt,"$1");return""===n?void 0:n}}),je({global:!0,forced:!0},{Symbol:zt})}et("iterator");var Gt=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))},Xt=Object.defineProperty,Qt={},Jt=function(e){throw e},Zt=function(e,t){if(b(Qt,e))return Qt[e];t||(t={});var n=[][e],i=!!b(t,"ACCESSORS")&&t.ACCESSORS,o=b(t,0)?t[0]:Jt,s=b(t,1)?t[1]:void 0;return Qt[e]=!!n&&!r((function(){if(i&&!a)return!0;var e={length:-1};i?Xt(e,1,{enumerable:!0,get:Jt}):e[1]=1,n.call(e,o,s)}))},en=ut.forEach,tn=Gt("forEach"),nn=Zt("forEach"),rn=tn&&nn?[].forEach:function(e){return en(this,e,arguments.length>1?arguments[1]:void 0)};je({target:"Array",proto:!0,forced:[].forEach!=rn},{forEach:rn});var an=pe.indexOf,on=[].indexOf,sn=!!on&&1/[1].indexOf(1,-0)<0,ln=Gt("indexOf"),cn=Zt("indexOf",{ACCESSORS:!0,1:0});je({target:"Array",proto:!0,forced:sn||!ln||!cn},{indexOf:function(e){return sn?on.apply(this,arguments)||0:an(this,e,arguments.length>1?arguments[1]:void 0)}});var un=Qe("unscopables"),hn=Array.prototype;null==hn[un]&&x.f(hn,un,{configurable:!0,value:Ve(null)});var fn,dn,pn,mn=function(e){hn[un][e]=!0},gn={},vn=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),yn=W("IE_PROTO"),bn=Object.prototype,wn=vn?Object.getPrototypeOf:function(e){return e=Re(e),b(e,yn)?e[yn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?bn:null},kn=Qe("iterator"),Tn=!1;[].keys&&("next"in(pn=[].keys())?(dn=wn(wn(pn)))!==Object.prototype&&(fn=dn):Tn=!0),null==fn&&(fn={}),b(fn,kn)||O(fn,kn,(function(){return this}));var Sn={IteratorPrototype:fn,BUGGY_SAFARI_ITERATORS:Tn},En=Sn.IteratorPrototype,An=function(){return this},Pn=function(e,t,n){var i=t+" Iterator";return e.prototype=Ve(En,{next:c(1,n)}),it(e,i,!1),gn[i]=An,e},Cn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return P(n),function(e){if(!g(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(i),t?e.call(n,i):n.__proto__=i,n}}():void 0),xn=Sn.IteratorPrototype,On=Sn.BUGGY_SAFARI_ITERATORS,In=Qe("iterator"),jn="keys",Ln="values",Mn="entries",Nn=function(){return this},Rn=function(e,t,n,i,r,a,o){Pn(n,t,i);var s,l,c,u=function(e){if(e===r&&m)return m;if(!On&&e in d)return d[e];switch(e){case jn:case Ln:case Mn:return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",f=!1,d=e.prototype,p=d[In]||d["@@iterator"]||r&&d[r],m=!On&&p||u(r),g="Array"==t&&d.entries||p;if(g&&(s=wn(g.call(new e)),xn!==Object.prototype&&s.next&&(wn(s)!==xn&&(Cn?Cn(s,xn):"function"!=typeof s[In]&&O(s,In,Nn)),it(s,h,!0))),r==Ln&&p&&p.name!==Ln&&(f=!0,m=function(){return p.call(this)}),d[In]!==m&&O(d,In,m),gn[t]=m,r)if(l={values:u(Ln),keys:a?m:u(jn),entries:u(Mn)},o)for(c in l)(On||f||!(c in d))&&te(d,c,l[c]);else je({target:t,proto:!0,forced:On||f},l);return l},_n="Array Iterator",Un=ee.set,Dn=ee.getterFor(_n),Fn=Rn(Array,"Array",(function(e,t){Un(this,{type:_n,target:m(e),index:0,kind:t})}),(function(){var e=Dn(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");gn.Arguments=gn.Array,mn("keys"),mn("values"),mn("entries");var qn=[].join,Hn=d!=Object,Bn=Gt("join",",");je({target:"Array",proto:!0,forced:Hn||!Bn},{join:function(e){return qn.call(m(this),void 0===e?",":e)}});var Vn,zn,Wn=function(e,t,n){var i=v(t);i in e?x.f(e,i,c(0,n)):e[i]=n},Kn=re("navigator","userAgent")||"",$n=i.process,Yn=$n&&$n.versions,Gn=Yn&&Yn.v8;Gn?zn=(Vn=Gn.split("."))[0]+Vn[1]:Kn&&(!(Vn=Kn.match(/Edge\/(\d+)/))||Vn[1]>=74)&&(Vn=Kn.match(/Chrome\/(\d+)/))&&(zn=Vn[1]);var Xn=zn&&+zn,Qn=Qe("species"),Jn=function(e){return Xn>=51||!r((function(){var t=[];return(t.constructor={})[Qn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Zn=Jn("slice"),ei=Zt("slice",{ACCESSORS:!0,0:0,1:2}),ti=Qe("species"),ni=[].slice,ii=Math.max;je({target:"Array",proto:!0,forced:!Zn||!ei},{slice:function(e,t){var n,i,r,a=m(this),o=ce(a.length),s=fe(e,o),l=fe(void 0===t?o:t,o);if(Ne(a)&&("function"!=typeof(n=a.constructor)||n!==Array&&!Ne(n.prototype)?g(n)&&null===(n=n[ti])&&(n=void 0):n=void 0,n===Array||void 0===n))return ni.call(a,s,l);for(i=new(void 0===n?Array:n)(ii(l-s,0)),r=0;s<l;s++,r++)s in a&&Wn(i,r,a[s]);return i.length=r,i}});var ri={};ri[Qe("toStringTag")]="z";var ai="[object z]"===String(ri),oi=Qe("toStringTag"),si="Arguments"==h(function(){return arguments}()),li=ai?h:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),oi))?n:si?h(t):"Object"==(i=h(t))&&"function"==typeof t.callee?"Arguments":i},ci=ai?{}.toString:function(){return"[object "+li(this)+"]"};ai||te(Object.prototype,"toString",ci,{unsafe:!0});var ui=function(){var e=P(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function hi(e,t){return RegExp(e,t)}var fi={UNSUPPORTED_Y:r((function(){var e=hi("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:r((function(){var e=hi("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},di=RegExp.prototype.exec,pi=String.prototype.replace,mi=di,gi=function(){var e=/a/,t=/b*/g;return di.call(e,"a"),di.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),vi=fi.UNSUPPORTED_Y||fi.BROKEN_CARET,yi=void 0!==/()??/.exec("")[1];(gi||yi||vi)&&(mi=function(e){var t,n,i,r,a=this,o=vi&&a.sticky,s=ui.call(a),l=a.source,c=0,u=e;return o&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),n=new RegExp("^(?:"+l+")",s)),yi&&(n=new RegExp("^"+l+"$(?!\\s)",s)),gi&&(t=a.lastIndex),i=di.call(o?n:a,u),o?i?(i.input=i.input.slice(c),i[0]=i[0].slice(c),i.index=a.lastIndex,a.lastIndex+=i[0].length):a.lastIndex=0:gi&&i&&(a.lastIndex=a.global?i.index+i[0].length:t),yi&&i&&i.length>1&&pi.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i});var bi=mi;je({target:"RegExp",proto:!0,forced:/./.exec!==bi},{exec:bi});var wi="toString",ki=RegExp.prototype,Ti=ki.toString,Si=r((function(){return"/a/b"!=Ti.call({source:"a",flags:"b"})})),Ei=Ti.name!=wi;(Si||Ei)&&te(RegExp.prototype,wi,(function(){var e=P(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in ki)?ui.call(e):n)}),{unsafe:!0});var Ai=function(e){return function(t,n){var i,r,a=String(p(t)),o=se(n),s=a.length;return o<0||o>=s?e?"":void 0:(i=a.charCodeAt(o))<55296||i>56319||o+1===s||(r=a.charCodeAt(o+1))<56320||r>57343?e?a.charAt(o):i:e?a.slice(o,o+2):r-56320+(i-55296<<10)+65536}},Pi={codeAt:Ai(!1),charAt:Ai(!0)},Ci=Pi.charAt,xi="String Iterator",Oi=ee.set,Ii=ee.getterFor(xi);Rn(String,"String",(function(e){Oi(this,{type:xi,string:String(e),index:0})}),(function(){var e,t=Ii(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=Ci(n,i),t.index+=e.length,{value:e,done:!1})}));var ji=Qe("species"),Li=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Mi="$0"==="a".replace(/./,"$0"),Ni=Qe("replace"),Ri=!!/./[Ni]&&""===/./[Ni]("a","$0"),_i=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ui=function(e,t,n,i){var a=Qe(e),o=!r((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=o&&!r((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ji]=function(){return n},n.flags="",n[a]=/./[a]),n.exec=function(){return t=!0,null},n[a](""),!t}));if(!o||!s||"replace"===e&&(!Li||!Mi||Ri)||"split"===e&&!_i){var l=/./[a],c=n(a,""[e],(function(e,t,n,i,r){return t.exec===bi?o&&!r?{done:!0,value:l.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:Mi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ri}),u=c[0],h=c[1];te(String.prototype,e,u),te(RegExp.prototype,a,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)})}i&&O(RegExp.prototype[a],"sham",!0)},Di=Pi.charAt,Fi=function(e,t,n){return t+(n?Di(e,t).length:1)},qi=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==h(e))throw TypeError("RegExp#exec called on incompatible receiver");return bi.call(e,t)},Hi=Math.max,Bi=Math.min,Vi=Math.floor,zi=/\$([$&'`]|\d\d?|<[^>]*>)/g,Wi=/\$([$&'`]|\d\d?)/g;Ui("replace",2,(function(e,t,n,i){var r=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=i.REPLACE_KEEPS_$0,o=r?"$":"$0";return[function(n,i){var r=p(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!r&&a||"string"==typeof i&&-1===i.indexOf(o)){var l=n(t,e,this,i);if(l.done)return l.value}var c=P(e),u=String(this),h="function"==typeof i;h||(i=String(i));var f=c.global;if(f){var d=c.unicode;c.lastIndex=0}for(var p=[];;){var m=qi(c,u);if(null===m)break;if(p.push(m),!f)break;""===String(m[0])&&(c.lastIndex=Fi(u,ce(c.lastIndex),d))}for(var g,v="",y=0,b=0;b<p.length;b++){m=p[b];for(var w=String(m[0]),k=Hi(Bi(se(m.index),u.length),0),T=[],S=1;S<m.length;S++)T.push(void 0===(g=m[S])?g:String(g));var E=m.groups;if(h){var A=[w].concat(T,k,u);void 0!==E&&A.push(E);var C=String(i.apply(void 0,A))}else C=s(w,u,k,T,E,i);k>=y&&(v+=u.slice(y,k)+C,y=k+w.length)}return v+u.slice(y)}];function s(e,n,i,r,a,o){var s=i+e.length,l=r.length,c=Wi;return void 0!==a&&(a=Re(a),c=zi),t.call(o,c,(function(t,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(s);case"<":c=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>l){var h=Vi(u/10);return 0===h?t:h<=l?void 0===r[h-1]?o.charAt(1):r[h-1]+o.charAt(1):t}c=r[u-1]}return void 0===c?"":c}))}}));var Ki=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Ui("search",1,(function(e,t,n){return[function(t){var n=p(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var r=P(e),a=String(this),o=r.lastIndex;Ki(o,0)||(r.lastIndex=0);var s=qi(r,a);return Ki(r.lastIndex,o)||(r.lastIndex=o),null===s?-1:s.index}]}));var $i=Qe("match"),Yi=function(e){var t;return g(e)&&(void 0!==(t=e[$i])?!!t:"RegExp"==h(e))},Gi=Qe("species"),Xi=function(e,t){var n,i=P(e).constructor;return void 0===i||null==(n=P(i)[Gi])?t:rt(n)},Qi=[].push,Ji=Math.min,Zi=4294967295,er=!r((function(){return!RegExp(Zi,"y")}));Ui("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(p(this)),r=void 0===n?Zi:n>>>0;if(0===r)return[];if(void 0===e)return[i];if(!Yi(e))return t.call(i,e,r);for(var a,o,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,h=new RegExp(e.source,c+"g");(a=bi.call(h,i))&&!((o=h.lastIndex)>u&&(l.push(i.slice(u,a.index)),a.length>1&&a.index<i.length&&Qi.apply(l,a.slice(1)),s=a[0].length,u=o,l.length>=r));)h.lastIndex===a.index&&h.lastIndex++;return u===i.length?!s&&h.test("")||l.push(""):l.push(i.slice(u)),l.length>r?l.slice(0,r):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=p(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,e,this,r,i!==t);if(a.done)return a.value;var o=P(e),s=String(this),l=Xi(o,RegExp),c=o.unicode,u=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(er?"y":"g"),h=new l(er?o:"^(?:"+o.source+")",u),f=void 0===r?Zi:r>>>0;if(0===f)return[];if(0===s.length)return null===qi(h,s)?[s]:[];for(var d=0,p=0,m=[];p<s.length;){h.lastIndex=er?p:0;var g,v=qi(h,er?s:s.slice(p));if(null===v||(g=Ji(ce(h.lastIndex+(er?0:p)),s.length))===d)p=Fi(s,p,c);else{if(m.push(s.slice(d,p)),m.length===f)return m;for(var y=1;y<=v.length-1;y++)if(m.push(v[y]),m.length===f)return m;p=d=g}}return m.push(s.slice(d)),m}]}),!er);var tr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var nr in tr){var ir=i[nr],rr=ir&&ir.prototype;if(rr&&rr.forEach!==rn)try{O(rr,"forEach",rn)}catch(e){rr.forEach=rn}}var ar=Qe("iterator"),or=Qe("toStringTag"),sr=Fn.values;for(var lr in tr){var cr=i[lr],ur=cr&&cr.prototype;if(ur){if(ur[ar]!==sr)try{O(ur,ar,sr)}catch(e){ur[ar]=sr}if(ur[or]||O(ur,or,lr),tr[lr])for(var hr in Fn)if(ur[hr]!==Fn[hr])try{O(ur,hr,Fn[hr])}catch(e){ur[hr]=Fn[hr]}}}var fr=Qe("iterator"),dr=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t.delete("b"),n+=i+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[fr]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),pr=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},mr=Object.assign,gr=Object.defineProperty,vr=!mr||r((function(){if(a&&1!==mr({b:1},mr(gr({},"a",{enumerable:!0,get:function(){gr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=mr({},e)[n]||_e(mr({},t)).join("")!=i}))?function(e,t){for(var n=Re(e),i=arguments.length,r=1,o=we.f,s=l.f;i>r;)for(var c,u=d(arguments[r++]),h=o?_e(u).concat(o(u)):_e(u),f=h.length,p=0;f>p;)c=h[p++],a&&!s.call(u,c)||(n[c]=u[c]);return n}:mr,yr=function(e,t,n,i){try{return i?t(P(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&P(r.call(e)),t}},br=Qe("iterator"),wr=Array.prototype,kr=function(e){return void 0!==e&&(gn.Array===e||wr[br]===e)},Tr=Qe("iterator"),Sr=function(e){if(null!=e)return e[Tr]||e["@@iterator"]||gn[li(e)]},Er=function(e){var t,n,i,r,a,o,s=Re(e),l="function"==typeof this?this:Array,c=arguments.length,u=c>1?arguments[1]:void 0,h=void 0!==u,f=Sr(s),d=0;if(h&&(u=at(u,c>2?arguments[2]:void 0,2)),null==f||l==Array&&kr(f))for(n=new l(t=ce(s.length));t>d;d++)o=h?u(s[d],d):s[d],Wn(n,d,o);else for(a=(r=f.call(s)).next,n=new l;!(i=a.call(r)).done;d++)o=h?yr(r,u,[i.value,d],!0):i.value,Wn(n,d,o);return n.length=d,n},Ar=2147483647,Pr=/[^\0-\u007E]/,Cr=/[.\u3002\uFF0E\uFF61]/g,xr="Overflow: input needs wider integers to process",Or=Math.floor,Ir=String.fromCharCode,jr=function(e){return e+22+75*(e<26)},Lr=function(e,t,n){var i=0;for(e=n?Or(e/700):e>>1,e+=Or(e/t);e>455;i+=36)e=Or(e/35);return Or(i+36*e/(e+38))},Mr=function(e){var t,n,i=[],r=(e=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&r)<<10)+(1023&a)+65536):(t.push(r),n--)}else t.push(r)}return t}(e)).length,a=128,o=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&i.push(Ir(n));var l=i.length,c=l;for(l&&i.push("-");c<r;){var u=Ar;for(t=0;t<e.length;t++)(n=e[t])>=a&&n<u&&(u=n);var h=c+1;if(u-a>Or((Ar-o)/h))throw RangeError(xr);for(o+=(u-a)*h,a=u,t=0;t<e.length;t++){if((n=e[t])<a&&++o>Ar)throw RangeError(xr);if(n==a){for(var f=o,d=36;;d+=36){var p=d<=s?1:d>=s+26?26:d-s;if(f<p)break;var m=f-p,g=36-p;i.push(Ir(jr(p+m%g))),f=Or(m/g)}i.push(Ir(jr(f))),s=Lr(o,h,c==l),o=0,++c}}++o,++a}return i.join("")},Nr=function(e,t,n){for(var i in t)te(e,i,t[i],n);return e},Rr=function(e){var t=Sr(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return P(t.call(e))},_r=re("fetch"),Ur=re("Headers"),Dr=Qe("iterator"),Fr="URLSearchParams",qr="URLSearchParamsIterator",Hr=ee.set,Br=ee.getterFor(Fr),Vr=ee.getterFor(qr),zr=/\+/g,Wr=Array(4),Kr=function(e){return Wr[e-1]||(Wr[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},$r=function(e){try{return decodeURIComponent(e)}catch(t){return e}},Yr=function(e){var t=e.replace(zr," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(Kr(n--),$r);return t}},Gr=/[!'()~]|%20/g,Xr={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Qr=function(e){return Xr[e]},Jr=function(e){return encodeURIComponent(e).replace(Gr,Qr)},Zr=function(e,t){if(t)for(var n,i,r=t.split("&"),a=0;a<r.length;)(n=r[a++]).length&&(i=n.split("="),e.push({key:Yr(i.shift()),value:Yr(i.join("="))}))},ea=function(e){this.entries.length=0,Zr(this.entries,e)},ta=function(e,t){if(e<t)throw TypeError("Not enough arguments")},na=Pn((function(e,t){Hr(this,{type:qr,iterator:Rr(Br(e).entries),kind:t})}),"Iterator",(function(){var e=Vr(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n})),ia=function(){pr(this,ia,Fr);var e,t,n,i,r,a,o,s,l,c=arguments.length>0?arguments[0]:void 0,u=this,h=[];if(Hr(u,{type:Fr,entries:h,updateURL:function(){},updateSearchParams:ea}),void 0!==c)if(g(c))if("function"==typeof(e=Sr(c)))for(n=(t=e.call(c)).next;!(i=n.call(t)).done;){if((o=(a=(r=Rr(P(i.value))).next).call(r)).done||(s=a.call(r)).done||!a.call(r).done)throw TypeError("Expected sequence with length 2");h.push({key:o.value+"",value:s.value+""})}else for(l in c)b(c,l)&&h.push({key:l,value:c[l]+""});else Zr(h,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},ra=ia.prototype;Nr(ra,{append:function(e,t){ta(arguments.length,2);var n=Br(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){ta(arguments.length,1);for(var t=Br(this),n=t.entries,i=e+"",r=0;r<n.length;)n[r].key===i?n.splice(r,1):r++;t.updateURL()},get:function(e){ta(arguments.length,1);for(var t=Br(this).entries,n=e+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){ta(arguments.length,1);for(var t=Br(this).entries,n=e+"",i=[],r=0;r<t.length;r++)t[r].key===n&&i.push(t[r].value);return i},has:function(e){ta(arguments.length,1);for(var t=Br(this).entries,n=e+"",i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(e,t){ta(arguments.length,1);for(var n,i=Br(this),r=i.entries,a=!1,o=e+"",s=t+"",l=0;l<r.length;l++)(n=r[l]).key===o&&(a?r.splice(l--,1):(a=!0,n.value=s));a||r.push({key:o,value:s}),i.updateURL()},sort:function(){var e,t,n,i=Br(this),r=i.entries,a=r.slice();for(r.length=0,n=0;n<a.length;n++){for(e=a[n],t=0;t<n;t++)if(r[t].key>e.key){r.splice(t,0,e);break}t===n&&r.push(e)}i.updateURL()},forEach:function(e){for(var t,n=Br(this).entries,i=at(e,arguments.length>1?arguments[1]:void 0,3),r=0;r<n.length;)i((t=n[r++]).value,t.key,this)},keys:function(){return new na(this,"keys")},values:function(){return new na(this,"values")},entries:function(){return new na(this,"entries")}},{enumerable:!0}),te(ra,Dr,ra.entries),te(ra,"toString",(function(){for(var e,t=Br(this).entries,n=[],i=0;i<t.length;)e=t[i++],n.push(Jr(e.key)+"="+Jr(e.value));return n.join("&")}),{enumerable:!0}),it(ia,Fr),je({global:!0,forced:!dr},{URLSearchParams:ia}),dr||"function"!=typeof _r||"function"!=typeof Ur||je({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,i,r=[e];return arguments.length>1&&(g(t=arguments[1])&&(n=t.body,li(n)===Fr&&((i=t.headers?new Ur(t.headers):new Ur).has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=Ve(t,{body:c(0,String(n)),headers:c(0,i)}))),r.push(t)),_r.apply(this,r)}});var aa,oa={URLSearchParams:ia,getState:Br},sa=Pi.codeAt,la=i.URL,ca=oa.URLSearchParams,ua=oa.getState,ha=ee.set,fa=ee.getterFor("URL"),da=Math.floor,pa=Math.pow,ma="Invalid scheme",ga="Invalid host",va="Invalid port",ya=/[A-Za-z]/,ba=/[\d+-.A-Za-z]/,wa=/\d/,ka=/^(0x|0X)/,Ta=/^[0-7]+$/,Sa=/^\d+$/,Ea=/^[\dA-Fa-f]+$/,Aa=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Pa=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Ca=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,xa=/[\u0009\u000A\u000D]/g,Oa=function(e,t){var n,i,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return ga;if(!(n=ja(t.slice(1,-1))))return ga;e.host=n}else if(Fa(e)){if(t=function(e){var t,n,i=[],r=e.toLowerCase().replace(Cr,".").split(".");for(t=0;t<r.length;t++)n=r[t],i.push(Pr.test(n)?"xn--"+Mr(n):n);return i.join(".")}(t),Aa.test(t))return ga;if(null===(n=Ia(t)))return ga;e.host=n}else{if(Pa.test(t))return ga;for(n="",i=Er(t),r=0;r<i.length;r++)n+=Ua(i[r],Ma);e.host=n}},Ia=function(e){var t,n,i,r,a,o,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(t=l.length)>4)return e;for(n=[],i=0;i<t;i++){if(""==(r=l[i]))return e;if(a=10,r.length>1&&"0"==r.charAt(0)&&(a=ka.test(r)?16:8,r=r.slice(8==a?1:2)),""===r)o=0;else{if(!(10==a?Sa:8==a?Ta:Ea).test(r))return e;o=parseInt(r,a)}n.push(o)}for(i=0;i<t;i++)if(o=n[i],i==t-1){if(o>=pa(256,5-t))return null}else if(o>255)return null;for(s=n.pop(),i=0;i<n.length;i++)s+=n[i]*pa(256,3-i);return s},ja=function(e){var t,n,i,r,a,o,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,h=0,f=function(){return e.charAt(h)};if(":"==f()){if(":"!=e.charAt(1))return;h+=2,u=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=n=0;n<4&&Ea.test(f());)t=16*t+parseInt(f(),16),h++,n++;if("."==f()){if(0==n)return;if(h-=n,c>6)return;for(i=0;f();){if(r=null,i>0){if(!("."==f()&&i<4))return;h++}if(!wa.test(f()))return;for(;wa.test(f());){if(a=parseInt(f(),10),null===r)r=a;else{if(0==r)return;r=10*r+a}if(r>255)return;h++}l[c]=256*l[c]+r,2!=++i&&4!=i||c++}if(4!=i)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;l[c++]=t}else{if(null!==u)return;h++,u=++c}}if(null!==u)for(o=c-u,c=7;0!=c&&o>0;)s=l[c],l[c--]=l[u+o-1],l[u+--o]=s;else if(8!=c)return;return l},La=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=da(e/256);return t.join(".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,a=0;a<8;a++)0!==e[a]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=a),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},Ma={},Na=vr({},Ma,{" ":1,'"':1,"<":1,">":1,"`":1}),Ra=vr({},Na,{"#":1,"?":1,"{":1,"}":1}),_a=vr({},Ra,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Ua=function(e,t){var n=sa(e,0);return n>32&&n<127&&!b(t,e)?e:encodeURIComponent(e)},Da={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Fa=function(e){return b(Da,e.scheme)},qa=function(e){return""!=e.username||""!=e.password},Ha=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Ba=function(e,t){var n;return 2==e.length&&ya.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},Va=function(e){var t;return e.length>1&&Ba(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},za=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Ba(t[0],!0)||t.pop()},Wa=function(e){return"."===e||"%2e"===e.toLowerCase()},Ka={},$a={},Ya={},Ga={},Xa={},Qa={},Ja={},Za={},eo={},to={},no={},io={},ro={},ao={},oo={},so={},lo={},co={},uo={},ho={},fo={},po=function(e,t,n,i){var r,a,o,s,l,c=n||Ka,u=0,h="",f=!1,d=!1,p=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(Ca,"")),t=t.replace(xa,""),r=Er(t);u<=r.length;){switch(a=r[u],c){case Ka:if(!a||!ya.test(a)){if(n)return ma;c=Ya;continue}h+=a.toLowerCase(),c=$a;break;case $a:if(a&&(ba.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return ma;h="",c=Ya,u=0;continue}if(n&&(Fa(e)!=b(Da,h)||"file"==h&&(qa(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(Fa(e)&&Da[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?c=ao:Fa(e)&&i&&i.scheme==e.scheme?c=Ga:Fa(e)?c=Za:"/"==r[u+1]?(c=Xa,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=uo)}break;case Ya:if(!i||i.cannotBeABaseURL&&"#"!=a)return ma;if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,c=fo;break}c="file"==i.scheme?ao:Qa;continue;case Ga:if("/"!=a||"/"!=r[u+1]){c=Qa;continue}c=eo,u++;break;case Xa:if("/"==a){c=to;break}c=co;continue;case Qa:if(e.scheme=i.scheme,a==aa)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&Fa(e))c=Ja;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",c=ho;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),c=co;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",c=fo}break;case Ja:if(!Fa(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,c=co;continue}c=to}else c=eo;break;case Za:if(c=eo,"/"!=a||"/"!=h.charAt(u+1))continue;u++;break;case eo:if("/"!=a&&"\\"!=a){c=to;continue}break;case to:if("@"==a){f&&(h="%40"+h),f=!0,o=Er(h);for(var m=0;m<o.length;m++){var g=o[m];if(":"!=g||p){var v=Ua(g,_a);p?e.password+=v:e.username+=v}else p=!0}h=""}else if(a==aa||"/"==a||"?"==a||"#"==a||"\\"==a&&Fa(e)){if(f&&""==h)return"Invalid authority";u-=Er(h).length+1,h="",c=no}else h+=a;break;case no:case io:if(n&&"file"==e.scheme){c=so;continue}if(":"!=a||d){if(a==aa||"/"==a||"?"==a||"#"==a||"\\"==a&&Fa(e)){if(Fa(e)&&""==h)return ga;if(n&&""==h&&(qa(e)||null!==e.port))return;if(s=Oa(e,h))return s;if(h="",c=lo,n)return;continue}"["==a?d=!0:"]"==a&&(d=!1),h+=a}else{if(""==h)return ga;if(s=Oa(e,h))return s;if(h="",c=ro,n==io)return}break;case ro:if(!wa.test(a)){if(a==aa||"/"==a||"?"==a||"#"==a||"\\"==a&&Fa(e)||n){if(""!=h){var y=parseInt(h,10);if(y>65535)return va;e.port=Fa(e)&&y===Da[e.scheme]?null:y,h=""}if(n)return;c=lo;continue}return va}h+=a;break;case ao:if(e.scheme="file","/"==a||"\\"==a)c=oo;else{if(!i||"file"!=i.scheme){c=co;continue}if(a==aa)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",c=ho;else{if("#"!=a){Va(r.slice(u).join(""))||(e.host=i.host,e.path=i.path.slice(),za(e)),c=co;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",c=fo}}break;case oo:if("/"==a||"\\"==a){c=so;break}i&&"file"==i.scheme&&!Va(r.slice(u).join(""))&&(Ba(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),c=co;continue;case so:if(a==aa||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&Ba(h))c=co;else if(""==h){if(e.host="",n)return;c=lo}else{if(s=Oa(e,h))return s;if("localhost"==e.host&&(e.host=""),n)return;h="",c=lo}continue}h+=a;break;case lo:if(Fa(e)){if(c=co,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=aa&&(c=co,"/"!=a))continue}else e.fragment="",c=fo;else e.query="",c=ho;break;case co:if(a==aa||"/"==a||"\\"==a&&Fa(e)||!n&&("?"==a||"#"==a)){if(".."===(l=(l=h).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(za(e),"/"==a||"\\"==a&&Fa(e)||e.path.push("")):Wa(h)?"/"==a||"\\"==a&&Fa(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Ba(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==aa||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",c=ho):"#"==a&&(e.fragment="",c=fo)}else h+=Ua(a,Ra);break;case uo:"?"==a?(e.query="",c=ho):"#"==a?(e.fragment="",c=fo):a!=aa&&(e.path[0]+=Ua(a,Ma));break;case ho:n||"#"!=a?a!=aa&&("'"==a&&Fa(e)?e.query+="%27":e.query+="#"==a?"%23":Ua(a,Ma)):(e.fragment="",c=fo);break;case fo:a!=aa&&(e.fragment+=Ua(a,Na))}u++}},mo=function(e){var t,n,i=pr(this,mo,"URL"),r=arguments.length>1?arguments[1]:void 0,o=String(e),s=ha(i,{type:"URL"});if(void 0!==r)if(r instanceof mo)t=fa(r);else if(n=po(t={},String(r)))throw TypeError(n);if(n=po(s,o,null,t))throw TypeError(n);var l=s.searchParams=new ca,c=ua(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},a||(i.href=vo.call(i),i.origin=yo.call(i),i.protocol=bo.call(i),i.username=wo.call(i),i.password=ko.call(i),i.host=To.call(i),i.hostname=So.call(i),i.port=Eo.call(i),i.pathname=Ao.call(i),i.search=Po.call(i),i.searchParams=Co.call(i),i.hash=xo.call(i))},go=mo.prototype,vo=function(){var e=fa(this),t=e.scheme,n=e.username,i=e.password,r=e.host,a=e.port,o=e.path,s=e.query,l=e.fragment,c=t+":";return null!==r?(c+="//",qa(e)&&(c+=n+(i?":"+i:"")+"@"),c+=La(r),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},yo=function(){var e=fa(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Fa(e)?t+"://"+La(e.host)+(null!==n?":"+n:""):"null"},bo=function(){return fa(this).scheme+":"},wo=function(){return fa(this).username},ko=function(){return fa(this).password},To=function(){var e=fa(this),t=e.host,n=e.port;return null===t?"":null===n?La(t):La(t)+":"+n},So=function(){var e=fa(this).host;return null===e?"":La(e)},Eo=function(){var e=fa(this).port;return null===e?"":String(e)},Ao=function(){var e=fa(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Po=function(){var e=fa(this).query;return e?"?"+e:""},Co=function(){return fa(this).searchParams},xo=function(){var e=fa(this).fragment;return e?"#"+e:""},Oo=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&Ue(go,{href:Oo(vo,(function(e){var t=fa(this),n=String(e),i=po(t,n);if(i)throw TypeError(i);ua(t.searchParams).updateSearchParams(t.query)})),origin:Oo(yo),protocol:Oo(bo,(function(e){var t=fa(this);po(t,String(e)+":",Ka)})),username:Oo(wo,(function(e){var t=fa(this),n=Er(String(e));if(!Ha(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=Ua(n[i],_a)}})),password:Oo(ko,(function(e){var t=fa(this),n=Er(String(e));if(!Ha(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=Ua(n[i],_a)}})),host:Oo(To,(function(e){var t=fa(this);t.cannotBeABaseURL||po(t,String(e),no)})),hostname:Oo(So,(function(e){var t=fa(this);t.cannotBeABaseURL||po(t,String(e),io)})),port:Oo(Eo,(function(e){var t=fa(this);Ha(t)||(""==(e=String(e))?t.port=null:po(t,e,ro))})),pathname:Oo(Ao,(function(e){var t=fa(this);t.cannotBeABaseURL||(t.path=[],po(t,e+"",lo))})),search:Oo(Po,(function(e){var t=fa(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",po(t,e,ho)),ua(t.searchParams).updateSearchParams(t.query)})),searchParams:Oo(Co),hash:Oo(xo,(function(e){var t=fa(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",po(t,e,fo)):t.fragment=null}))}),te(go,"toJSON",(function(){return vo.call(this)}),{enumerable:!0}),te(go,"toString",(function(){return vo.call(this)}),{enumerable:!0}),la){var Io=la.createObjectURL,jo=la.revokeObjectURL;Io&&te(mo,"createObjectURL",(function(e){return Io.apply(la,arguments)})),jo&&te(mo,"revokeObjectURL",(function(e){return jo.apply(la,arguments)}))}function Lo(e){return(Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function No(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ro(e,t,n){return t&&No(e.prototype,t),n&&No(e,n),e}function _o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach((function(t){_o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fo(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(e,t)||Bo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ho(e){return function(e){if(Array.isArray(e))return Vo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Bo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bo(e,t){if(e){if("string"==typeof e)return Vo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vo(e,t):void 0}}function Vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}it(mo,"URL"),je({global:!0,forced:!dr,sham:!a},{URL:mo}),function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},i=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},r=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set&&"function"==typeof t.prototype.entries}catch(e){return!1}})()||function(){var r=function e(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var n=Lo(t);if("undefined"===n);else if("string"===n)""!==t&&this._fromString(t);else if(t instanceof e){var i=this;t.forEach((function(e,t){i.append(t,e)}))}else{if(null===t||"object"!==n)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var r=0;r<t.length;r++){var a=t[r];if("[object Array]"!==Object.prototype.toString.call(a)&&2===a.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(a[0],a[1])}else for(var o in t)t.hasOwnProperty(o)&&this.append(o,t[o])}},a=r.prototype;a.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},a.delete=function(e){delete this._entries[e]},a.get=function(e){return e in this._entries?this._entries[e][0]:null},a.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},a.has=function(e){return e in this._entries},a.set=function(e,t){this._entries[e]=[String(t)]},a.forEach=function(e,t){var n;for(var i in this._entries)if(this._entries.hasOwnProperty(i)){n=this._entries[i];for(var r=0;r<n.length;r++)e.call(t,n[r],i,this)}},a.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},a.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},a.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(a[Symbol.iterator]=a.entries),a.toString=function(){var e=[];return this.forEach((function(t,n){e.push(i(n)+"="+i(t))})),e.join("&")},e.URLSearchParams=r}();var a=e.URLSearchParams.prototype;"function"!=typeof a.sort&&(a.sort=function(){var e=this,t=[];this.forEach((function(n,i){t.push([i,n]),e._entries||e.delete(i)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof a._fromString&&Object.defineProperty(a,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var i,a=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<a.length;n++)i=a[n].split("="),this.append(r(i[0]),i.length>1?r(i[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var i,r=document;if(n&&(void 0===e.location||n!==e.location.href)){(i=(r=document.implementation.createHTMLDocument("")).createElement("base")).href=n,r.head.appendChild(i);try{if(0!==i.href.indexOf(n))throw new Error(i.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var a=r.createElement("a");a.href=t,i&&(r.body.appendChild(a),a.href=a.href);var o=r.createElement("input");if(o.type="url",o.value=t,":"===a.protocol||!/:/.test(a.href)||!o.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:a});var s=new e.URLSearchParams(this.search),l=!0,c=!0,u=this;["append","delete","set"].forEach((function(e){var t=s[e];s[e]=function(){t.apply(s,arguments),l&&(c=!1,u.search=s.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var h=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==h&&(h=this.search,c&&(l=!1,this.searchParams._fromString(this.search),l=!0))}})},i=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(i,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(i,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(i,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e);var zo=Qe("isConcatSpreadable"),Wo=9007199254740991,Ko="Maximum allowed index exceeded",$o=Xn>=51||!r((function(){var e=[];return e[zo]=!1,e.concat()[0]!==e})),Yo=Jn("concat"),Go=function(e){if(!g(e))return!1;var t=e[zo];return void 0!==t?!!t:Ne(e)};je({target:"Array",proto:!0,forced:!$o||!Yo},{concat:function(e){var t,n,i,r,a,o=Re(this),s=st(o,0),l=0;for(t=-1,i=arguments.length;t<i;t++)if(Go(a=-1===t?o:arguments[t])){if(l+(r=ce(a.length))>Wo)throw TypeError(Ko);for(n=0;n<r;n++,l++)n in a&&Wn(s,l,a[n])}else{if(l>=Wo)throw TypeError(Ko);Wn(s,l++,a)}return s.length=l,s}});var Xo=ut.filter,Qo=Jn("filter"),Jo=Zt("filter");je({target:"Array",proto:!0,forced:!Qo||!Jo},{filter:function(e){return Xo(this,e,arguments.length>1?arguments[1]:void 0)}});var Zo=ut.find,es="find",ts=!0,ns=Zt(es);es in[]&&Array(1).find((function(){ts=!1})),je({target:"Array",proto:!0,forced:ts||!ns},{find:function(e){return Zo(this,e,arguments.length>1?arguments[1]:void 0)}}),mn(es);var is=Qe("iterator"),rs=!1;try{var as=0,os={next:function(){return{done:!!as++}},return:function(){rs=!0}};os[is]=function(){return this},Array.from(os,(function(){throw 2}))}catch(e){}var ss=function(e,t){if(!t&&!rs)return!1;var n=!1;try{var i={};i[is]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n},ls=!ss((function(e){Array.from(e)}));je({target:"Array",stat:!0,forced:ls},{from:Er});var cs=pe.includes,us=Zt("indexOf",{ACCESSORS:!0,1:0});je({target:"Array",proto:!0,forced:!us},{includes:function(e){return cs(this,e,arguments.length>1?arguments[1]:void 0)}}),mn("includes");var hs=ut.map,fs=Jn("map"),ds=Zt("map");je({target:"Array",proto:!0,forced:!fs||!ds},{map:function(e){return hs(this,e,arguments.length>1?arguments[1]:void 0)}});var ps=function(e,t,n){var i,r;return Cn&&"function"==typeof(i=t.constructor)&&i!==n&&g(r=i.prototype)&&r!==n.prototype&&Cn(e,r),e},ms="\t\n\v\f\r    \u2028\u2029\ufeff",gs="["+ms+"]",vs=RegExp("^"+gs+gs+"*"),ys=RegExp(gs+gs+"*$"),bs=function(e){return function(t){var n=String(p(t));return 1&e&&(n=n.replace(vs,"")),2&e&&(n=n.replace(ys,"")),n}},ws={start:bs(1),end:bs(2),trim:bs(3)},ks=be.f,Ts=A.f,Ss=x.f,Es=ws.trim,As="Number",Ps=i.Number,Cs=Ps.prototype,xs=h(Ve(Cs))==As,Os=function(e){var t,n,i,r,a,o,s,l,c=v(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=Es(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(o=(a=c.slice(2)).length,s=0;s<o;s++)if((l=a.charCodeAt(s))<48||l>r)return NaN;return parseInt(a,i)}return+c};if(Oe(As,!Ps(" 0o1")||!Ps("0b1")||Ps("+0x1"))){for(var Is,js=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof js&&(xs?r((function(){Cs.valueOf.call(n)})):h(n)!=As)?ps(new Ps(Os(t)),n,js):Os(t)},Ls=a?ks(Ps):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Ms=0;Ls.length>Ms;Ms++)b(Ps,Is=Ls[Ms])&&!b(js,Is)&&Ss(js,Is,Ts(Ps,Is));js.prototype=Cs,Cs.constructor=js,te(i,As,js)}var Ns=r((function(){_e(1)}));je({target:"Object",stat:!0,forced:Ns},{keys:function(e){return _e(Re(e))}});var Rs=function(e){if(Yi(e))throw TypeError("The method doesn't accept regular expressions");return e},_s=Qe("match"),Us=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[_s]=!1,"/./"[e](t)}catch(e){}}return!1};je({target:"String",proto:!0,forced:!Us("includes")},{includes:function(e){return!!~String(p(this)).indexOf(Rs(e),arguments.length>1?arguments[1]:void 0)}});var Ds=!r((function(){return Object.isExtensible(Object.preventExtensions({}))})),Fs=t((function(e){var t=x.f,n=V("meta"),i=0,r=Object.isExtensible||function(){return!0},a=function(e){t(e,n,{value:{objectID:"O"+ ++i,weakData:{}}})},o=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!g(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!b(e,n)){if(!r(e))return"F";if(!t)return"E";a(e)}return e[n].objectID},getWeakData:function(e,t){if(!b(e,n)){if(!r(e))return!0;if(!t)return!1;a(e)}return e[n].weakData},onFreeze:function(e){return Ds&&o.REQUIRED&&r(e)&&!b(e,n)&&a(e),e}};K[n]=!0})),qs=(Fs.REQUIRED,Fs.fastKey,Fs.getWeakData,Fs.onFreeze,t((function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,n,i,r,a){var o,s,l,c,u,h,f,d=at(n,i,r?2:1);if(a)o=e;else{if("function"!=typeof(s=Sr(e)))throw TypeError("Target is not iterable");if(kr(s)){for(l=0,c=ce(e.length);c>l;l++)if((u=r?d(P(f=e[l])[0],f[1]):d(e[l]))&&u instanceof t)return u;return new t(!1)}o=s.call(e)}for(h=o.next;!(f=h.call(o)).done;)if("object"==typeof(u=yr(o,d,f.value,r))&&u&&u instanceof t)return u;return new t(!1)}).stop=function(e){return new t(!0,e)}}))),Hs=Fs.getWeakData,Bs=ee.set,Vs=ee.getterFor,zs=ut.find,Ws=ut.findIndex,Ks=0,$s=function(e){return e.frozen||(e.frozen=new Ys)},Ys=function(){this.entries=[]},Gs=function(e,t){return zs(e.entries,(function(e){return e[0]===t}))};Ys.prototype={get:function(e){var t=Gs(this,e);if(t)return t[1]},has:function(e){return!!Gs(this,e)},set:function(e,t){var n=Gs(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ws(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}};var Xs={getConstructor:function(e,t,n,i){var r=e((function(e,a){pr(e,r,t),Bs(e,{type:t,id:Ks++,frozen:void 0}),null!=a&&qs(a,e[i],e,n)})),a=Vs(t),o=function(e,t,n){var i=a(e),r=Hs(P(t),!0);return!0===r?$s(i).set(t,n):r[i.id]=n,e};return Nr(r.prototype,{delete:function(e){var t=a(this);if(!g(e))return!1;var n=Hs(e);return!0===n?$s(t).delete(e):n&&b(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!g(e))return!1;var n=Hs(e);return!0===n?$s(t).has(e):n&&b(n,t.id)}}),Nr(r.prototype,n?{get:function(e){var t=a(this);if(g(e)){var n=Hs(e);return!0===n?$s(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return o(this,e,t)}}:{add:function(e){return o(this,e,!0)}}),r}},Qs=(t((function(e){var t,n=ee.enforce,a=!i.ActiveXObject&&"ActiveXObject"in i,o=Object.isExtensible,s=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},l=e.exports=function(e,t,n){var a=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),s=a?"set":"add",l=i[e],c=l&&l.prototype,u=l,h={},f=function(e){var t=c[e];te(c,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!g(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!g(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!g(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(Oe(e,"function"!=typeof l||!(o||c.forEach&&!r((function(){(new l).entries().next()})))))u=n.getConstructor(t,e,a,s),Fs.REQUIRED=!0;else if(Oe(e,!0)){var d=new u,p=d[s](o?{}:-0,1)!=d,m=r((function(){d.has(1)})),v=ss((function(e){new l(e)})),y=!o&&r((function(){for(var e=new l,t=5;t--;)e[s](t,t);return!e.has(-0)}));v||((u=t((function(t,n){pr(t,u,e);var i=ps(new l,t,u);return null!=n&&qs(n,i[s],i,a),i}))).prototype=c,c.constructor=u),(m||y)&&(f("delete"),f("has"),a&&f("get")),(y||p)&&f(s),o&&c.clear&&delete c.clear}return h[e]=u,je({global:!0,forced:u!=l},h),it(u,e),o||n.setStrong(u,e,a),u}("WeakMap",s,Xs);if(F&&a){t=Xs.getConstructor(s,"WeakMap",!0),Fs.REQUIRED=!0;var c=l.prototype,u=c.delete,h=c.has,f=c.get,d=c.set;Nr(c,{delete:function(e){if(g(e)&&!o(e)){var i=n(this);return i.frozen||(i.frozen=new t),u.call(this,e)||i.frozen.delete(e)}return u.call(this,e)},has:function(e){if(g(e)&&!o(e)){var i=n(this);return i.frozen||(i.frozen=new t),h.call(this,e)||i.frozen.has(e)}return h.call(this,e)},get:function(e){if(g(e)&&!o(e)){var i=n(this);return i.frozen||(i.frozen=new t),h.call(this,e)?f.call(this,e):i.frozen.get(e)}return f.call(this,e)},set:function(e,i){if(g(e)&&!o(e)){var r=n(this);r.frozen||(r.frozen=new t),h.call(this,e)?d.call(this,e,i):r.frozen.set(e,i)}else d.call(this,e,i);return this}})}})),ut.every),Js=Gt("every"),Zs=Zt("every");je({target:"Array",proto:!0,forced:!Js||!Zs},{every:function(e){return Qs(this,e,arguments.length>1?arguments[1]:void 0)}}),je({target:"Object",stat:!0,forced:Object.assign!==vr},{assign:vr});var el=ws.trim;je({target:"String",proto:!0,forced:function(e){return r((function(){return!!ms[e]()||"…"!="…"[e]()||ms[e].name!==e}))}("trim")},{trim:function(){return el(this)}});var tl=ut.some,nl=Gt("some"),il=Zt("some");je({target:"Array",proto:!0,forced:!nl||!il},{some:function(e){return tl(this,e,arguments.length>1?arguments[1]:void 0)}});var rl="".repeat||function(e){var t=String(p(this)),n="",i=se(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n},al=1..toFixed,ol=Math.floor,sl=function(e,t,n){return 0===t?n:t%2==1?sl(e,t-1,n*e):sl(e*e,t/2,n)},ll=al&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r((function(){al.call({})}));je({target:"Number",proto:!0,forced:ll},{toFixed:function(e){var t,n,i,r,a=function(e){if("number"!=typeof e&&"Number"!=h(e))throw TypeError("Incorrect invocation");return+e}(this),o=se(e),s=[0,0,0,0,0,0],l="",c="0",u=function(e,t){for(var n=-1,i=t;++n<6;)i+=e*s[n],s[n]=i%1e7,i=ol(i/1e7)},f=function(e){for(var t=6,n=0;--t>=0;)n+=s[t],s[t]=ol(n/e),n=n%e*1e7},d=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==s[e]){var n=String(s[e]);t=""===t?n:t+rl.call("0",7-n.length)+n}return t};if(o<0||o>20)throw RangeError("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return String(a);if(a<0&&(l="-",a=-a),a>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(a*sl(2,69,1))-69)<0?a*sl(2,-t,1):a/sl(2,t,1),n*=4503599627370496,(t=52-t)>0){for(u(0,n),i=o;i>=7;)u(1e7,0),i-=7;for(u(sl(10,i,1),0),i=t-1;i>=23;)f(1<<23),i-=23;f(1<<i),u(1,1),f(2),c=d()}else u(0,n),u(1<<-t,0),c=d()+rl.call("0",o);return c=o>0?l+((r=c.length)<=o?"0."+rl.call("0",o-r)+c:c.slice(0,r-o)+"."+c.slice(r-o)):l+c}});var cl=l.f,ul=function(e){return function(t){for(var n,i=m(t),r=_e(i),o=r.length,s=0,l=[];o>s;)n=r[s++],a&&!cl.call(i,n)||l.push(e?[n,i[n]]:i[n]);return l}},hl={entries:ul(!0),values:ul(!1)},fl=hl.entries;je({target:"Object",stat:!0},{entries:function(e){return fl(e)}});var dl=hl.values;je({target:"Object",stat:!0},{values:function(e){return dl(e)}}),je({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var pl=A.f,ml=r((function(){pl(1)}));function gl(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yl(Object(n),!0).forEach((function(t){vl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}je({target:"Object",stat:!0,forced:!a||ml,sham:!a},{getOwnPropertyDescriptor:function(e,t){return pl(m(e),t)}}),je({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(e){for(var t,n,i=m(e),r=A.f,a=ke(i),o={},s=0;a.length>s;)void 0!==(n=r(i,t=a[s++]))&&Wn(o,t,n);return o}}),Ui("match",1,(function(e,t,n){return[function(t){var n=p(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var r=P(e),a=String(this);if(!r.global)return qi(r,a);var o=r.unicode;r.lastIndex=0;for(var s,l=[],c=0;null!==(s=qi(r,a));){var u=String(s[0]);l[c]=u,""===u&&(r.lastIndex=Fi(a,ce(r.lastIndex),o)),c++}return 0===c?null:l}]}));var wl={addCSS:!0,thumbWidth:15,watch:!0};function kl(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var Tl=function(e){return null!=e?e.constructor:null},Sl=function(e,t){return!!(e&&t&&e instanceof t)},El=function(e){return null==e},Al=function(e){return Tl(e)===Object},Pl=function(e){return Tl(e)===String},Cl=function(e){return Array.isArray(e)},xl=function(e){return Sl(e,NodeList)},Ol=Pl,Il=Cl,jl=xl,Ll=function(e){return Sl(e,Element)},Ml=function(e){return Sl(e,Event)},Nl=function(e){return El(e)||(Pl(e)||Cl(e)||xl(e))&&!e.length||Al(e)&&!Object.keys(e).length};function Rl(e,t){if(1>t){var n=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}var _l,Ul,Dl,Fl=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),Ll(t)?this.element=t:Ol(t)&&(this.element=document.querySelector(t)),Ll(this.element)&&Nl(this.element.rangeTouch)&&(this.config=bl({},wl,{},n),this.init())}return function(e,t,n){t&&gl(e.prototype,t),n&&gl(e,n)}(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[n](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!Ml(t))return null;var n,i=t.target,r=t.changedTouches[0],a=parseFloat(i.getAttribute("min"))||0,o=parseFloat(i.getAttribute("max"))||100,s=parseFloat(i.getAttribute("step"))||1,l=i.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(n=100/l.width*(r.clientX-l.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*c:50<n&&(n+=2*(n-50)*c),a+Rl(n/100*(o-a),s)}},{key:"set",value:function(t){e.enabled&&Ml(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(Nl(t)||Ol(t)?i=Array.from(document.querySelectorAll(Ol(t)?t:'input[type="range"]')):Ll(t)?i=[t]:jl(t)?i=Array.from(t):Il(t)&&(i=t.filter(Ll)),Nl(i))return null;var r=bl({},wl,{},n);if(Ol(t)&&r.watch){var a=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){Ll(n)&&kl(n,t)&&new e(n,r)}))}))}));a.observe(document.body,{childList:!0,subtree:!0})}return i.map((function(t){return new e(t,n)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),ql=i.Promise,Hl=Qe("species"),Bl=function(e){var t=re(e),n=x.f;a&&t&&!t[Hl]&&n(t,Hl,{configurable:!0,get:function(){return this}})},Vl=/(iphone|ipod|ipad).*applewebkit/i.test(Kn),zl=i.location,Wl=i.setImmediate,Kl=i.clearImmediate,$l=i.process,Yl=i.MessageChannel,Gl=i.Dispatch,Xl=0,Ql={},Jl="onreadystatechange",Zl=function(e){if(Ql.hasOwnProperty(e)){var t=Ql[e];delete Ql[e],t()}},ec=function(e){return function(){Zl(e)}},tc=function(e){Zl(e.data)},nc=function(e){i.postMessage(e+"",zl.protocol+"//"+zl.host)};Wl&&Kl||(Wl=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Ql[++Xl]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},_l(Xl),Xl},Kl=function(e){delete Ql[e]},"process"==h($l)?_l=function(e){$l.nextTick(ec(e))}:Gl&&Gl.now?_l=function(e){Gl.now(ec(e))}:Yl&&!Vl?(Dl=(Ul=new Yl).port2,Ul.port1.onmessage=tc,_l=at(Dl.postMessage,Dl,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||r(nc)||"file:"===zl.protocol?_l=Jl in T("script")?function(e){De.appendChild(T("script")).onreadystatechange=function(){De.removeChild(this),Zl(e)}}:function(e){setTimeout(ec(e),0)}:(_l=nc,i.addEventListener("message",tc,!1)));var ic,rc,ac,oc,sc,lc,cc,uc,hc={set:Wl,clear:Kl},fc=A.f,dc=hc.set,pc=i.MutationObserver||i.WebKitMutationObserver,mc=i.process,gc=i.Promise,vc="process"==h(mc),yc=fc(i,"queueMicrotask"),bc=yc&&yc.value;bc||(ic=function(){var e,t;for(vc&&(e=mc.domain)&&e.exit();rc;){t=rc.fn,rc=rc.next;try{t()}catch(e){throw rc?oc():ac=void 0,e}}ac=void 0,e&&e.enter()},vc?oc=function(){mc.nextTick(ic)}:pc&&!Vl?(sc=!0,lc=document.createTextNode(""),new pc(ic).observe(lc,{characterData:!0}),oc=function(){lc.data=sc=!sc}):gc&&gc.resolve?(cc=gc.resolve(void 0),uc=cc.then,oc=function(){uc.call(cc,ic)}):oc=function(){dc.call(i,ic)});var wc,kc,Tc,Sc,Ec=bc||function(e){var t={fn:e,next:void 0};ac&&(ac.next=t),rc||(rc=t,oc()),ac=t},Ac=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=rt(t),this.reject=rt(n)},Pc={f:function(e){return new Ac(e)}},Cc=function(e,t){if(P(e),g(t)&&t.constructor===e)return t;var n=Pc.f(e);return(0,n.resolve)(t),n.promise},xc=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Oc=hc.set,Ic=Qe("species"),jc="Promise",Lc=ee.get,Mc=ee.set,Nc=ee.getterFor(jc),Rc=ql,_c=i.TypeError,Uc=i.document,Dc=i.process,Fc=re("fetch"),qc=Pc.f,Hc=qc,Bc="process"==h(Dc),Vc=!!(Uc&&Uc.createEvent&&i.dispatchEvent),zc="unhandledrejection",Wc=Oe(jc,(function(){if(!(U(Rc)!==String(Rc))){if(66===Xn)return!0;if(!Bc&&"function"!=typeof PromiseRejectionEvent)return!0}if(Xn>=51&&/native code/.test(Rc))return!1;var e=Rc.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Ic]=t,!(e.then((function(){}))instanceof t)})),Kc=Wc||!ss((function(e){Rc.all(e).catch((function(){}))})),$c=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},Yc=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;Ec((function(){for(var r=t.value,a=1==t.state,o=0;i.length>o;){var s,l,c,u=i[o++],h=a?u.ok:u.fail,f=u.resolve,d=u.reject,p=u.domain;try{h?(a||(2===t.rejection&&Jc(e,t),t.rejection=1),!0===h?s=r:(p&&p.enter(),s=h(r),p&&(p.exit(),c=!0)),s===u.promise?d(_c("Promise-chain cycle")):(l=$c(s))?l.call(s,f,d):f(s)):d(r)}catch(e){p&&!c&&p.exit(),d(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Xc(e,t)}))}},Gc=function(e,t,n){var r,a;Vc?((r=Uc.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),i.dispatchEvent(r)):r={promise:t,reason:n},(a=i["on"+e])?a(r):e===zc&&function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Xc=function(e,t){Oc.call(i,(function(){var n,i=t.value;if(Qc(t)&&(n=xc((function(){Bc?Dc.emit("unhandledRejection",i,e):Gc(zc,e,i)})),t.rejection=Bc||Qc(t)?2:1,n.error))throw n.value}))},Qc=function(e){return 1!==e.rejection&&!e.parent},Jc=function(e,t){Oc.call(i,(function(){Bc?Dc.emit("rejectionHandled",e):Gc("rejectionhandled",e,t.value)}))},Zc=function(e,t,n,i){return function(r){e(t,n,r,i)}},eu=function(e,t,n,i){t.done||(t.done=!0,i&&(t=i),t.value=n,t.state=2,Yc(e,t,!0))},tu=function(e,t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(e===n)throw _c("Promise can't be resolved itself");var r=$c(n);r?Ec((function(){var i={done:!1};try{r.call(n,Zc(tu,e,i,t),Zc(eu,e,i,t))}catch(n){eu(e,i,n,t)}})):(t.value=n,t.state=1,Yc(e,t,!1))}catch(n){eu(e,{done:!1},n,t)}}};Wc&&(Rc=function(e){pr(this,Rc,jc),rt(e),wc.call(this);var t=Lc(this);try{e(Zc(tu,this,t),Zc(eu,this,t))}catch(e){eu(this,t,e)}},(wc=function(e){Mc(this,{type:jc,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Nr(Rc.prototype,{then:function(e,t){var n=Nc(this),i=qc(Xi(this,Rc));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=Bc?Dc.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&Yc(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),kc=function(){var e=new wc,t=Lc(e);this.promise=e,this.resolve=Zc(tu,e,t),this.reject=Zc(eu,e,t)},Pc.f=qc=function(e){return e===Rc||e===Tc?new kc(e):Hc(e)},"function"==typeof ql&&(Sc=ql.prototype.then,te(ql.prototype,"then",(function(e,t){var n=this;return new Rc((function(e,t){Sc.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Fc&&je({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Cc(Rc,Fc.apply(i,arguments))}}))),je({global:!0,wrap:!0,forced:Wc},{Promise:Rc}),it(Rc,jc,!1),Bl(jc),Tc=re(jc),je({target:jc,stat:!0,forced:Wc},{reject:function(e){var t=qc(this);return t.reject.call(void 0,e),t.promise}}),je({target:jc,stat:!0,forced:Wc},{resolve:function(e){return Cc(this,e)}}),je({target:jc,stat:!0,forced:Kc},{all:function(e){var t=this,n=qc(t),i=n.resolve,r=n.reject,a=xc((function(){var n=rt(t.resolve),a=[],o=0,s=1;qs(e,(function(e){var l=o++,c=!1;a.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,a[l]=e,--s||i(a))}),r)})),--s||i(a)}));return a.error&&r(a.value),n.promise},race:function(e){var t=this,n=qc(t),i=n.reject,r=xc((function(){var r=rt(t.resolve);qs(e,(function(e){r.call(t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var nu,iu=A.f,ru="".startsWith,au=Math.min,ou=Us("startsWith"),su=!(ou||(nu=iu(String.prototype,"startsWith"),!nu||nu.writable));je({target:"String",proto:!0,forced:!su&&!ou},{startsWith:function(e){var t=String(p(this));Rs(e);var n=ce(au(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return ru?ru.call(t,i,n):t.slice(n,n+i.length)===i}});var lu,cu,uu,hu=function(e){return null!=e?e.constructor:null},fu=function(e,t){return Boolean(e&&t&&e instanceof t)},du=function(e){return null==e},pu=function(e){return hu(e)===Object},mu=function(e){return hu(e)===String},gu=function(e){return hu(e)===Function},vu=function(e){return Array.isArray(e)},yu=function(e){return fu(e,NodeList)},bu=function(e){return du(e)||(mu(e)||vu(e)||yu(e))&&!e.length||pu(e)&&!Object.keys(e).length},wu=du,ku=pu,Tu=function(e){return hu(e)===Number&&!Number.isNaN(e)},Su=mu,Eu=function(e){return hu(e)===Boolean},Au=gu,Pu=vu,Cu=yu,xu=function(e){return fu(e,Element)},Ou=function(e){return fu(e,Event)},Iu=function(e){return fu(e,KeyboardEvent)},ju=function(e){return fu(e,TextTrack)||!du(e)&&mu(e.kind)},Lu=function(e){return fu(e,Promise)&&gu(e.then)},Mu=function(e){if(fu(e,window.URL))return!0;if(!mu(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!bu(new URL(t).hostname)}catch(e){return!1}},Nu=bu,Ru=(lu=document.createElement("span"),cu={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},uu=Object.keys(cu).find((function(e){return void 0!==lu.style[e]})),!!Su(uu)&&cu[uu]);function _u(e,t){setTimeout((function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}var Uu={isIE:
/* @cc_on!@ */
!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)},Du=function(e){return function(t,n,i,r){rt(n);var a=Re(t),o=d(a),s=ce(a.length),l=e?s-1:0,c=e?-1:1;if(i<2)for(;;){if(l in o){r=o[l],l+=c;break}if(l+=c,e?l<0:s<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=c)l in o&&(r=n(r,o[l],l,a));return r}},Fu={left:Du(!1),right:Du(!0)}.left,qu=Gt("reduce"),Hu=Zt("reduce",{1:0});function Bu(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function Vu(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(!n.length)return e;var r=n.shift();return ku(r)?(Object.keys(r).forEach((function(t){ku(r[t])?(Object.keys(e).includes(t)||Object.assign(e,_o({},t,{})),Vu(e[t],r[t])):Object.assign(e,_o({},t,r[t]))})),Vu.apply(void 0,[e].concat(n))):e}function zu(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach((function(e,n){var i=n>0?t.cloneNode(!0):t,r=e.parentNode,a=e.nextSibling;i.appendChild(e),a?r.insertBefore(i,a):r.appendChild(i)}))}function Wu(e,t){xu(e)&&!Nu(t)&&Object.entries(t).filter((function(e){var t=qo(e,2)[1];return!wu(t)})).forEach((function(t){var n=qo(t,2),i=n[0],r=n[1];return e.setAttribute(i,r)}))}function Ku(e,t,n){var i=document.createElement(e);return ku(t)&&Wu(i,t),Su(n)&&(i.innerText=n),i}function $u(e,t,n,i){xu(t)&&t.appendChild(Ku(e,n,i))}function Yu(e){Cu(e)||Pu(e)?Array.from(e).forEach(Yu):xu(e)&&xu(e.parentNode)&&e.parentNode.removeChild(e)}function Gu(e){if(xu(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function Xu(e,t){return xu(t)&&xu(t.parentNode)&&xu(e)?(t.parentNode.replaceChild(e,t),e):null}function Qu(e,t){if(!Su(e)||Nu(e))return{};var n={},i=Vu({},t);return e.split(",").forEach((function(e){var t=e.trim(),r=t.replace(".",""),a=t.replace(/[[\]]/g,"").split("="),o=qo(a,1)[0],s=a.length>1?a[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":Su(i.class)?n.class="".concat(i.class," ").concat(r):n.class=r;break;case"#":n.id=t.replace("#","");break;case"[":n[o]=s}})),Vu(i,n)}function Ju(e,t){if(xu(e)){var n=t;Eu(n)||(n=!e.hidden),e.hidden=n}}function Zu(e,t,n){if(Cu(e))return Array.from(e).map((function(e){return Zu(e,t,n)}));if(xu(e)){var i="toggle";return void 0!==n&&(i=n?"add":"remove"),e.classList[i](t),e.classList.contains(t)}return!1}function eh(e,t){return xu(e)&&e.classList.contains(t)}function th(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function nh(e){return this.elements.container.querySelectorAll(e)}function ih(e){return this.elements.container.querySelector(e)}function rh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];xu(e)&&(e.focus({preventScroll:!0}),t&&Zu(e,this.config.classNames.tabFocus))}je({target:"Array",proto:!0,forced:!qu||!Hu},{reduce:function(e){return Fu(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var ah,oh={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},sh={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,n){var i=Uu.isIPhone&&n&&sh.playsinline,r=sh[e]||"html5"!==t;return{api:r,ui:r&&sh.rangeInput&&("video"!==e||!Uu.isIPhone||i)}},pip:!(Uu.isIPhone||!Au(Ku("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Ku("video").disablePictureInPicture)),airplay:Au(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(Nu(e))return!1;var t=qo(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(oh).includes(n)&&(n+='; codecs="'.concat(oh[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(ah=document.createElement("input"),ah.type="range","range"===ah.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==Ru,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},lh=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function ch(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener"in e&&!Nu(t)&&Au(n)){var s=t.split(" "),l=o;lh&&(l={passive:a,capture:o}),s.forEach((function(t){i&&i.eventListeners&&r&&i.eventListeners.push({element:e,type:t,callback:n,options:l}),e[r?"addEventListener":"removeEventListener"](t,n,l)}))}}function uh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];ch.call(this,e,t,n,!0,i,r)}function hh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];ch.call(this,e,t,n,!1,i,r)}function fh(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=function o(){hh(e,n,o,r,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(t,l)};ch.call(this,e,n,o,!0,r,a)}function dh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(xu(e)&&!Nu(t)){var r=new CustomEvent(t,{bubbles:n,detail:Do(Do({},i),{},{plyr:this})});e.dispatchEvent(r)}}function ph(){this&&this.eventListeners&&(this.eventListeners.forEach((function(e){var t=e.element,n=e.type,i=e.callback,r=e.options;t.removeEventListener(n,i,r)})),this.eventListeners=[])}function mh(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):uh.call(e,e.elements.container,"ready",t)})).then((function(){}))}function gh(e){Lu(e)&&e.then(null,(function(){}))}function vh(e){return!!(Pu(e)||Su(e)&&e.includes(":"))&&(Pu(e)?e:e.split(":")).map(Number).every(Tu)}function yh(e){if(!Pu(e)||!e.every(Tu))return null;var t=qo(e,2),n=t[0],i=t[1],r=function e(t,n){return 0===n?t:e(n,t%n)}(n,i);return[n/r,i/r]}function bh(e){var t=function(e){return vh(e)?e.split(":").map(Number):null},n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!Nu(this.embed)&&Pu(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var i=this.media;n=yh([i.videoWidth,i.videoHeight])}return n}function wh(e){if(!this.isVideo)return{};var t=this.elements.wrapper,n=bh.call(this,e),i=qo(Pu(n)?n:[0,0],2),r=100/i[0]*i[1];if(t.style.paddingBottom="".concat(r,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var a=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),o=(a-r)/(a/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(o,"%)")}else this.isHTML5&&t.classList.toggle(this.config.classNames.videoFixedRatio,null!==n);return{padding:r,ratio:n}}var kh={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var n=t.getAttribute("type");return!!Nu(n)||sh.mime.call(e,n)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:kh.getSources.call(this).map((function(e){return Number(e.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var e=this;e.options.speed=e.config.speed.options,Nu(this.config.ratio)||wh.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=kh.getSources.call(e).find((function(t){return t.getAttribute("src")===e.source}));return t&&Number(t.getAttribute("size"))},set:function(t){if(e.quality!==t){if(e.config.quality.forced&&Au(e.config.quality.onChange))e.config.quality.onChange(t);else{var n=kh.getSources.call(e).find((function(e){return Number(e.getAttribute("size"))===t}));if(!n)return;var i=e.media,r=i.currentTime,a=i.paused,o=i.preload,s=i.readyState,l=i.playbackRate;e.media.src=n.getAttribute("src"),("none"!==o||s)&&(e.once("loadedmetadata",(function(){e.speed=l,e.currentTime=r,a||gh(e.play())})),e.media.load())}dh.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(Yu(kh.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Th(e){return Pu(e)?e.filter((function(t,n){return e.indexOf(t)===n})):e}var Sh=x.f,Eh=be.f,Ah=ee.set,Ph=Qe("match"),Ch=i.RegExp,xh=Ch.prototype,Oh=/a/g,Ih=/a/g,jh=new Ch(Oh)!==Oh,Lh=fi.UNSUPPORTED_Y;if(a&&Oe("RegExp",!jh||Lh||r((function(){return Ih[Ph]=!1,Ch(Oh)!=Oh||Ch(Ih)==Ih||"/a/i"!=Ch(Oh,"i")})))){for(var Mh=function(e,t){var n,i=this instanceof Mh,r=Yi(e),a=void 0===t;if(!i&&r&&e.constructor===Mh&&a)return e;jh?r&&!a&&(e=e.source):e instanceof Mh&&(a&&(t=ui.call(e)),e=e.source),Lh&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var o=ps(jh?new Ch(e,t):Ch(e,t),i?this:xh,Mh);return Lh&&n&&Ah(o,{sticky:n}),o},Nh=function(e){e in Mh||Sh(Mh,e,{configurable:!0,get:function(){return Ch[e]},set:function(t){Ch[e]=t}})},Rh=Eh(Ch),_h=0;Rh.length>_h;)Nh(Rh[_h++]);xh.constructor=Mh,Mh.prototype=xh,te(i,"RegExp",Mh)}function Uh(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Nu(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return n[t].toString()}))}Bl("RegExp");var Dh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString())},Fh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toString().replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))};function qh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return t=Dh(t,"-"," "),t=Dh(t,"_"," "),t=Fh(t),Dh(t," ","")}function Hh(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}var Bh={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Vh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Nu(e)||Nu(t))return"";var n=Bu(t.i18n,e);if(Nu(n))return Object.keys(Bh).includes(e)?Bh[e]:"";var i={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(i).forEach((function(e){var t=qo(e,2),i=t[0],r=t[1];n=Dh(n,i,r)})),n},zh=function(){function e(t){Mo(this,e),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return Ro(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(Nu(n))return null;var i=JSON.parse(n);return Su(t)&&t.length?i[t]:i}},{key:"set",value:function(t){if(e.supported&&this.enabled&&ku(t)){var n=this.get();Nu(n)&&(n={}),Vu(n,t),window.localStorage.setItem(this.key,JSON.stringify(n))}}}],[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;var e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}}]),e}();function Wh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(n,i){try{var r=new XMLHttpRequest;if(!("withCredentials"in r))return;r.addEventListener("load",(function(){if("text"===t)try{n(JSON.parse(r.responseText))}catch(e){n(r.responseText)}else n(r.response)})),r.addEventListener("error",(function(){throw new Error(r.status)})),r.open("GET",e,!0),r.responseType=t,r.send()}catch(e){i(e)}}))}function Kh(e,t){if(Su(e)){var n="cache",i=Su(t),r=function(){return null!==document.getElementById(t)},a=function(e,t){e.innerHTML=t,i&&r()||document.body.insertAdjacentElement("afterbegin",e)};if(!i||!r()){var o=zh.supported,s=document.createElement("div");if(s.setAttribute("hidden",""),i&&s.setAttribute("id",t),o){var l=window.localStorage.getItem("".concat(n,"-").concat(t));if(null!==l){var c=JSON.parse(l);a(s,c.content)}}Wh(e).then((function(e){Nu(e)||(o&&window.localStorage.setItem("".concat(n,"-").concat(t),JSON.stringify({content:e})),a(s,e))})).catch((function(){}))}}}var $h=Math.ceil,Yh=Math.floor;je({target:"Math",stat:!0},{trunc:function(e){return(e>0?Yh:$h)(e)}});var Gh=function(e){return Math.trunc(e/60/60%60,10)},Xh=function(e){return Math.trunc(e/60%60,10)},Qh=function(e){return Math.trunc(e%60,10)};function Jh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Tu(e))return Jh(void 0,t,n);var i=function(e){return"0".concat(e).slice(-2)},r=Gh(e),a=Xh(e),o=Qh(e);return r=t||r>0?"".concat(r,":"):"","".concat(n&&e>0?"-":"").concat(r).concat(i(a),":").concat(i(o))}var Zh={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||Uu.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=ih.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:nh.call(this,this.config.selectors.buttons.play),pause:ih.call(this,this.config.selectors.buttons.pause),restart:ih.call(this,this.config.selectors.buttons.restart),rewind:ih.call(this,this.config.selectors.buttons.rewind),fastForward:ih.call(this,this.config.selectors.buttons.fastForward),mute:ih.call(this,this.config.selectors.buttons.mute),pip:ih.call(this,this.config.selectors.buttons.pip),airplay:ih.call(this,this.config.selectors.buttons.airplay),settings:ih.call(this,this.config.selectors.buttons.settings),captions:ih.call(this,this.config.selectors.buttons.captions),fullscreen:ih.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=ih.call(this,this.config.selectors.progress),this.elements.inputs={seek:ih.call(this,this.config.selectors.inputs.seek),volume:ih.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:ih.call(this,this.config.selectors.display.buffer),currentTime:ih.call(this,this.config.selectors.display.currentTime),duration:ih.call(this,this.config.selectors.display.duration)},xu(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var n="http://www.w3.org/2000/svg",i=Zh.getIconUrl.call(this),r="".concat(i.cors?"":i.url,"#").concat(this.config.iconPrefix),a=document.createElementNS(n,"svg");Wu(a,Vu(t,{"aria-hidden":"true",focusable:"false"}));var o=document.createElementNS(n,"use"),s="".concat(r,"-").concat(e);return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",s),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),a.appendChild(o),a},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Vh(e,this.config),i=Do(Do({},t),{},{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")});return Ku("span",i,n)},createBadge:function(e){if(Nu(e))return null;var t=Ku("span",{class:this.config.classNames.menu.value});return t.appendChild(Ku("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=this,i=Vu({},t),r=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(e=qh(e)).charAt(0).toLowerCase()+e.slice(1)}(e),a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(e){Object.keys(i).includes(e)&&(a[e]=i[e],delete i[e])})),"button"!==a.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some((function(e){return e===n.config.classNames.control}))||Vu(i,{class:"".concat(i.class," ").concat(this.config.classNames.control)}):i.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":i.class+=" ".concat(this.config.classNames.control,"--overlaid"),r="play",a.label="play",a.icon="play";break;default:Nu(a.label)&&(a.label=r),Nu(a.icon)&&(a.icon=e)}var o=Ku(a.element);return a.toggle?(o.appendChild(Zh.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),o.appendChild(Zh.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),o.appendChild(Zh.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),o.appendChild(Zh.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(o.appendChild(Zh.createIcon.call(this,a.icon)),o.appendChild(Zh.createLabel.call(this,a.label))),Vu(i,Qu(this.config.selectors.buttons[r],i)),Wu(o,i),"play"===r?(Pu(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(o)):this.elements.buttons[r]=o,o},createRange:function(e,t){var n=Ku("input",Vu(Qu(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Vh(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,Zh.updateRangeFill.call(this,n),Fl.setup(n),n},createProgress:function(e,t){var n=Ku("progress",Vu(Qu(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(Ku("span",null,"0"));var i={played:"played",buffer:"buffered"}[e],r=i?Vh(i,this.config):"";n.innerText="% ".concat(r.toLowerCase())}return this.elements.display[e]=n,n},createTime:function(e,t){var n=Qu(this.config.selectors.display[e],t),i=Ku("div",Vu(n,{class:"".concat(n.class?n.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":Vh(e,this.config)}),"00:00");return this.elements.display[e]=i,i},bindMenuItemShortcuts:function(e,t){var n=this;uh.call(this,e,"keydown keyup",(function(i){if([32,38,39,40].includes(i.which)&&(i.preventDefault(),i.stopPropagation(),"keydown"!==i.type)){var r,a=th(e,'[role="menuitemradio"]');if(!a&&[32,39].includes(i.which))Zh.showMenuPanel.call(n,t,!0);else 32!==i.which&&(40===i.which||a&&39===i.which?(r=e.nextElementSibling,xu(r)||(r=e.parentNode.firstElementChild)):(r=e.previousElementSibling,xu(r)||(r=e.parentNode.lastElementChild)),rh.call(n,r,!0))}}),!1),uh.call(this,e,"keyup",(function(e){13===e.which&&Zh.focusFirstMenuItem.call(n,null,!0)}))},createMenuItem:function(e){var t=this,n=e.value,i=e.list,r=e.type,a=e.title,o=e.badge,s=void 0===o?null:o,l=e.checked,c=void 0!==l&&l,u=Qu(this.config.selectors.inputs[r]),h=Ku("button",Vu(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":c,value:n})),f=Ku("span");f.innerHTML=a,xu(s)&&f.appendChild(s),h.appendChild(f),Object.defineProperty(h,"checked",{enumerable:!0,get:function(){return"true"===h.getAttribute("aria-checked")},set:function(e){e&&Array.from(h.parentNode.children).filter((function(e){return th(e,'[role="menuitemradio"]')})).forEach((function(e){return e.setAttribute("aria-checked","false")})),h.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(h,"click keyup",(function(e){if(!Iu(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),h.checked=!0,r){case"language":t.currentTrack=Number(n);break;case"quality":t.quality=n;break;case"speed":t.speed=parseFloat(n)}Zh.showMenuPanel.call(t,"home",Iu(e))}}),r,!1),Zh.bindMenuItemShortcuts.call(this,h,r),i.appendChild(h)},formatTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Tu(e))return e;var n=Gh(this.duration)>0;return Jh(e,n,t)},updateTimeDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];xu(e)&&Tu(t)&&(e.innerText=Zh.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(xu(this.elements.inputs.volume)&&Zh.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),xu(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;xu(e)&&(e.value=t,Zh.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&Ou(e)){var n=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":n=function(e,t){return 0===e||0===t||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===e.type&&Zh.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(e,n){var i=Tu(n)?n:0,r=xu(e)?e:t.elements.display.buffer;if(xu(r)){r.value=i;var a=r.getElementsByTagName("span")[0];xu(a)&&(a.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=Ou(e)?e.target:e;if(xu(t)&&"range"===t.getAttribute("type")){if(th(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var n=Zh.formatTime(this.currentTime),i=Zh.formatTime(this.duration),r=Vh("seekLabel",this.config);t.setAttribute("aria-valuetext",r.replace("{currentTime}",n).replace("{duration}",i))}else if(th(t,this.config.selectors.inputs.volume)){var a=100*t.value;t.setAttribute("aria-valuenow",a),t.setAttribute("aria-valuetext","".concat(a.toFixed(1),"%"))}else t.setAttribute("aria-valuenow",t.value);Uu.isWebkit&&t.style.setProperty("--value","".concat(t.value/t.max*100,"%"))}},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&xu(this.elements.inputs.seek)&&xu(this.elements.display.seekTooltip)&&0!==this.duration){var n="".concat(this.config.classNames.tooltip,"--visible"),i=function(e){return Zu(t.elements.display.seekTooltip,n,e)};if(this.touch)i(!1);else{var r=0,a=this.elements.progress.getBoundingClientRect();if(Ou(e))r=100/a.width*(e.pageX-a.left);else{if(!eh(this.elements.display.seekTooltip,n))return;r=parseFloat(this.elements.display.seekTooltip.style.left,10)}r<0?r=0:r>100&&(r=100),Zh.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*r),this.elements.display.seekTooltip.style.left="".concat(r,"%"),Ou(e)&&["mouseenter","mouseleave"].includes(e.type)&&i("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!xu(this.elements.display.duration)&&this.config.invertTime;Zh.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||Zh.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return Ju(this.elements.display.currentTime,!0),void Ju(this.elements.progress,!0);xu(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=xu(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&Zh.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&Zh.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Zh.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){Ju(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,n){var i=this.elements.settings.panels[e],r=null,a=t;if("captions"===e)r=this.currentTrack;else{if(r=Nu(n)?this[e]:n,Nu(r)&&(r=this.config[e].default),!Nu(this.options[e])&&!this.options[e].includes(r))return void this.debug.warn("Unsupported value of '".concat(r,"' for ").concat(e));if(!this.config[e].options.includes(r))return void this.debug.warn("Disabled value of '".concat(r,"' for ").concat(e))}if(xu(a)||(a=i&&i.querySelector('[role="menu"]')),xu(a)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Zh.getLabel.call(this,e,r);var o=a&&a.querySelector('[value="'.concat(r,'"]'));xu(o)&&(o.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?Vh("normal",this.config):"".concat(t,"&times;");case"quality":if(Tu(t)){var n=Vh("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return Fh(t);case"captions":return nf.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(xu(this.elements.settings.panels.quality)){var n="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');Pu(e)&&(this.options.quality=Th(e).filter((function(e){return t.config.quality.options.includes(e)})));var r=!Nu(this.options.quality)&&this.options.quality.length>1;if(Zh.toggleMenuButton.call(this,n,r),Gu(i),Zh.checkMenu.call(this),r){var a=function(e){var n=Vh("qualityBadge.".concat(e),t.config);return n.length?Zh.createBadge.call(t,n):null};this.options.quality.sort((function(e,n){var i=t.config.quality.options;return i.indexOf(e)>i.indexOf(n)?1:-1})).forEach((function(e){Zh.createMenuItem.call(t,{value:e,list:i,type:n,title:Zh.getLabel.call(t,"quality",e),badge:a(e)})})),Zh.updateSetting.call(this,n,i)}}},setCaptionsMenu:function(){var e=this;if(xu(this.elements.settings.panels.captions)){var t="captions",n=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=nf.getTracks.call(this),r=Boolean(i.length);if(Zh.toggleMenuButton.call(this,t,r),Gu(n),Zh.checkMenu.call(this),r){var a=i.map((function(t,i){return{value:i,checked:e.captions.toggled&&e.currentTrack===i,title:nf.getLabel.call(e,t),badge:t.language&&Zh.createBadge.call(e,t.language.toUpperCase()),list:n,type:"language"}}));a.unshift({value:-1,checked:!this.captions.toggled,title:Vh("disabled",this.config),list:n,type:"language"}),a.forEach(Zh.createMenuItem.bind(this)),Zh.updateSetting.call(this,t,n)}}},setSpeedMenu:function(){var e=this;if(xu(this.elements.settings.panels.speed)){var t="speed",n=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(t){return t>=e.minimumSpeed&&t<=e.maximumSpeed}));var i=!Nu(this.options.speed)&&this.options.speed.length>1;Zh.toggleMenuButton.call(this,t,i),Gu(n),Zh.checkMenu.call(this),i&&(this.options.speed.forEach((function(i){Zh.createMenuItem.call(e,{value:i,list:n,type:t,title:Zh.getLabel.call(e,"speed",i)})})),Zh.updateSetting.call(this,t,n))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!Nu(e)&&Object.values(e).some((function(e){return!e.hidden}));Ju(this.elements.settings.menu,!t)},focusFirstMenuItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var n=e;xu(n)||(n=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var i=n.querySelector('[role^="menuitem"]');rh.call(this,i,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(xu(t)&&xu(n)){var i=t.hidden,r=i;if(Eu(e))r=e;else if(Iu(e)&&27===e.which)r=!1;else if(Ou(e)){var a=Au(e.composedPath)?e.composedPath()[0]:e.target,o=t.contains(a);if(o||!o&&e.target!==n&&r)return}n.setAttribute("aria-expanded",r),Ju(t,!r),Zu(this.elements.container,this.config.classNames.menu.open,r),r&&Iu(e)?Zh.focusFirstMenuItem.call(this,null,!0):r||i||rh.call(this,n,Iu(e))}},getMenuSize:function(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var n=t.scrollWidth,i=t.scrollHeight;return Yu(t),{width:n,height:i}},showMenuPanel:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(xu(i)){var r=i.parentNode,a=Array.from(r.children).find((function(e){return!e.hidden}));if(sh.transitions&&!sh.reducedMotion){r.style.width="".concat(a.scrollWidth,"px"),r.style.height="".concat(a.scrollHeight,"px");var o=Zh.getMenuSize.call(this,i),s=function t(n){n.target===r&&["width","height"].includes(n.propertyName)&&(r.style.width="",r.style.height="",hh.call(e,r,Ru,t))};uh.call(this,r,Ru,s),r.style.width="".concat(o.width,"px"),r.style.height="".concat(o.height,"px")}Ju(a,!0),Ju(i,!1),Zh.focusFirstMenuItem.call(this,i,n)}},setDownloadUrl:function(){var e=this.elements.buttons.download;xu(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,n=Zh.bindMenuItemShortcuts,i=Zh.createButton,r=Zh.createProgress,a=Zh.createRange,o=Zh.createTime,s=Zh.setQualityMenu,l=Zh.setSpeedMenu,c=Zh.showMenuPanel;this.elements.controls=null,Pu(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var u=Ku("div",Qu(this.config.selectors.controls.wrapper));this.elements.controls=u;var h={class:"plyr__controls__item"};return Th(Pu(this.config.controls)?this.config.controls:[]).forEach((function(s){if("restart"===s&&u.appendChild(i.call(t,"restart",h)),"rewind"===s&&u.appendChild(i.call(t,"rewind",h)),"play"===s&&u.appendChild(i.call(t,"play",h)),"fast-forward"===s&&u.appendChild(i.call(t,"fast-forward",h)),"progress"===s){var l=Ku("div",{class:"".concat(h.class," plyr__progress__container")}),f=Ku("div",Qu(t.config.selectors.progress));if(f.appendChild(a.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),f.appendChild(r.call(t,"buffer")),t.config.tooltips.seek){var d=Ku("span",{class:t.config.classNames.tooltip},"00:00");f.appendChild(d),t.elements.display.seekTooltip=d}t.elements.progress=f,l.appendChild(t.elements.progress),u.appendChild(l)}if("current-time"===s&&u.appendChild(o.call(t,"currentTime",h)),"duration"===s&&u.appendChild(o.call(t,"duration",h)),"mute"===s||"volume"===s){var p=t.elements.volume;if(xu(p)&&u.contains(p)||(p=Ku("div",Vu({},h,{class:"".concat(h.class," plyr__volume").trim()})),t.elements.volume=p,u.appendChild(p)),"mute"===s&&p.appendChild(i.call(t,"mute")),"volume"===s&&!Uu.isIos){var m={max:1,step:.05,value:t.config.volume};p.appendChild(a.call(t,"volume",Vu(m,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===s&&u.appendChild(i.call(t,"captions",h)),"settings"===s&&!Nu(t.config.settings)){var g=Ku("div",Vu({},h,{class:"".concat(h.class," plyr__menu").trim(),hidden:""}));g.appendChild(i.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var v=Ku("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=Ku("div"),b=Ku("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=Ku("div",{role:"menu"});b.appendChild(w),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach((function(i){var r=Ku("button",Vu(Qu(t.config.selectors.buttons.settings),{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));n.call(t,r,i),uh.call(t,r,"click",(function(){c.call(t,i,!1)}));var a=Ku("span",null,Vh(i,t.config)),o=Ku("span",{class:t.config.classNames.menu.value});o.innerHTML=e[i],a.appendChild(o),r.appendChild(a),w.appendChild(r);var s=Ku("div",{id:"plyr-settings-".concat(e.id,"-").concat(i),hidden:""}),l=Ku("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});l.appendChild(Ku("span",{"aria-hidden":!0},Vh(i,t.config))),l.appendChild(Ku("span",{class:t.config.classNames.hidden},Vh("menuBack",t.config))),uh.call(t,s,"keydown",(function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),c.call(t,"home",!0))}),!1),uh.call(t,l,"click",(function(){c.call(t,"home",!1)})),s.appendChild(l),s.appendChild(Ku("div",{role:"menu"})),y.appendChild(s),t.elements.settings.buttons[i]=r,t.elements.settings.panels[i]=s})),v.appendChild(y),g.appendChild(v),u.appendChild(g),t.elements.settings.popup=v,t.elements.settings.menu=g}if("pip"===s&&sh.pip&&u.appendChild(i.call(t,"pip",h)),"airplay"===s&&sh.airplay&&u.appendChild(i.call(t,"airplay",h)),"download"===s){var k=Vu({},h,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(k.download="");var T=t.config.urls.download;!Mu(T)&&t.isEmbed&&Vu(k,{icon:"logo-".concat(t.provider),label:t.provider}),u.appendChild(i.call(t,"download",k))}"fullscreen"===s&&u.appendChild(i.call(t,"fullscreen",h))})),this.isHTML5&&s.call(this,kh.getQualityOptions.call(this)),l.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=Zh.getIconUrl.call(this);t.cors&&Kh(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var i={id:this.id,seektime:this.config.seekTime,title:this.config.title},r=!0;Au(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),xu(this.config.controls)||Su(this.config.controls)?n=this.config.controls:(n=Zh.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:nf.getLabel.call(this)}),r=!1);var a,o;if(r&&Su(this.config.controls)&&(a=n,Object.entries(i).forEach((function(e){var t=qo(e,2),n=t[0],i=t[1];a=Dh(a,"{".concat(n,"}"),i)})),n=a),Su(this.config.selectors.controls.container)&&(o=document.querySelector(this.config.selectors.controls.container)),xu(o)||(o=this.elements.container),o[xu(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),xu(this.elements.controls)||Zh.findElements.call(this),!Nu(this.elements.buttons)){var s=function(t){var n=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return eh(t,n)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Zu(t,n,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){Pu(e)||Cu(e)?Array.from(e).filter(Boolean).forEach(s):s(e)}))}if(Uu.isEdge&&_u(o),this.config.tooltips.controls){var l=this.config,c=l.classNames,u=l.selectors,h="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(c.hidden),f=nh.call(this,h);Array.from(f).forEach((function(t){Zu(t,e.config.classNames.hidden,!1),Zu(t,e.config.classNames.tooltip,!0)}))}}};function ef(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;if(t){var i=document.createElement("a");i.href=n,n=i.href}try{return new URL(n)}catch(e){return null}}function tf(e){var t=new URLSearchParams;return ku(e)&&Object.entries(e).forEach((function(e){var n=qo(e,2),i=n[0],r=n[1];t.set(i,r)})),t}var nf={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!sh.textTracks)Pu(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Zh.setCaptionsMenu.call(this);else{if(xu(this.elements.captions)||(this.elements.captions=Ku("div",Qu(this.config.selectors.captions)),function(e,t){xu(e)&&xu(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),Uu.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach((function(e){var t=e.getAttribute("src"),n=ef(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&Wh(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){Yu(e)}))}))}var t=Th((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(e){return e.split("-")[0]}))),n=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();if("auto"===n)n=qo(t,1)[0];var i=this.storage.get("captions");if(Eu(i)||(i=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:i,language:n,languages:t}),this.isHTML5){var r=this.config.captions.update?"addtrack removetrack":"removetrack";uh.call(this,this.media.textTracks,r,nf.update.bind(this))}setTimeout(nf.update.bind(this),0)}},update:function(){var e=this,t=nf.getTracks.call(this,!0),n=this.captions,i=n.active,r=n.language,a=n.meta,o=n.currentTrackNode,s=Boolean(t.find((function(e){return e.language===r})));this.isHTML5&&this.isVideo&&t.filter((function(e){return!a.get(e)})).forEach((function(t){e.debug.log("Track added",t),a.set(t,{default:"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),uh.call(e,t,"cuechange",(function(){return nf.updateCues.call(e)}))})),(s&&this.language!==r||!t.includes(o))&&(nf.setLanguage.call(this,r),nf.toggle.call(this,i&&s)),Zu(this.elements.container,this.config.classNames.captions.enabled,!Nu(t)),Pu(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Zh.setCaptionsMenu.call(this)},toggle:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,r=this.config.classNames.captions.active,a=wu(e)?!i:e;if(a!==i){if(n||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!n){var o=nf.getTracks.call(this),s=nf.findTrack.call(this,[this.captions.language].concat(Ho(this.captions.languages)),!0);return this.captions.language=s.language,void nf.set.call(this,o.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),Zu(this.elements.container,r,a),this.captions.toggled=a,Zh.updateSetting.call(this,"captions"),dh.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout((function(){a&&t.captions.toggled&&(t.captions.currentTrackNode.mode="hidden")}))}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=nf.getTracks.call(this);if(-1!==e)if(Tu(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var i=n[e],r=i||{},a=r.language;this.captions.currentTrackNode=i,Zh.updateSetting.call(this,"captions"),t||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),dh.call(this,this.media,"languagechange")}nf.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&nf.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else nf.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Su(e)){var n=e.toLowerCase();this.captions.language=n;var i=nf.getTracks.call(this),r=nf.findTrack.call(this,[n]);nf.set.call(this,i.indexOf(r),t)}else this.debug.warn("Invalid language argument",e)},getTracks:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Array.from((this.media||{}).textTracks||[]);return n.filter((function(n){return!e.isHTML5||t||e.captions.meta.has(n)})).filter((function(e){return["captions","subtitles"].includes(e.kind)}))},findTrack:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=nf.getTracks.call(this),a=function(e){return Number((n.captions.meta.get(e)||{}).default)},o=Array.from(r).sort((function(e,t){return a(t)-a(e)}));return e.every((function(e){return!(t=o.find((function(t){return t.language===e})))})),t||(i?o[0]:void 0)},getCurrentTrack:function(){return nf.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!ju(t)&&sh.textTracks&&this.captions.toggled&&(t=nf.getCurrentTrack.call(this)),ju(t)?Nu(t.label)?Nu(t.language)?Vh("enabled",this.config):e.language.toUpperCase():t.label:Vh("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(xu(this.elements.captions))if(wu(e)||Array.isArray(e)){var t=e;if(!t){var n=nf.getCurrentTrack.call(this);t=Array.from((n||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(Hh)}var i=t.map((function(e){return e.trim()})).join("\n");if(i!==this.elements.captions.innerHTML){Gu(this.elements.captions);var r=Ku("span",Qu(this.config.selectors.caption));r.innerHTML=i,this.elements.captions.appendChild(r),dh.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},rf={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.1/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/v2/video/{0}.json"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,premium:!1,referrerPolicy:null},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1}},af="picture-in-picture",of="inline",sf={html5:"html5",youtube:"youtube",vimeo:"vimeo"},lf="audio",cf="video";var uf=function(){},hf=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Mo(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return Ro(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):uf}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):uf}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):uf}}]),e}(),ff=function(){function e(t){var n=this;Mo(this,e),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,this.player.elements.fullscreen=t.config.fullscreen.container&&function(e,t){return(Element.prototype.closest||function(){var e=this;do{if(th.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,t.config.fullscreen.container),uh.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){n.onChange()})),uh.call(this.player,this.player.elements.container,"dblclick",(function(e){xu(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)||n.toggle()})),uh.call(this,this.player.elements.container,"keydown",(function(e){return n.trapFocus(e)})),this.update()}return Ro(e,[{key:"onChange",value:function(){if(this.enabled){var e=this.player.elements.buttons.fullscreen;xu(e)&&(e.pressed=this.active);var t=this.target===this.player.media?this.target:this.player.elements.container;dh.call(this.player,t,this.active?"enterfullscreen":"exitfullscreen",!0)}}},{key:"toggleFallback",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=e?"hidden":"",Zu(this.target,this.player.config.classNames.fullscreen.fallback,e),Uu.isIos){var t=document.head.querySelector('meta[name="viewport"]'),n="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var i=Su(t.content)&&t.content.includes(n);e?(this.cleanupViewport=!i,i||(t.content+=",".concat(n))):this.cleanupViewport&&(t.content=t.content.split(",").filter((function(e){return e.trim()!==n})).join(","))}this.onChange()}},{key:"trapFocus",value:function(e){if(!Uu.isIos&&this.active&&"Tab"===e.key&&9===e.keyCode){var t=document.activeElement,n=nh.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),i=qo(n,1)[0],r=n[n.length-1];t!==r||e.shiftKey?t===i&&e.shiftKey&&(r.focus(),e.preventDefault()):(i.focus(),e.preventDefault())}}},{key:"update",value:function(){var t;this.enabled?(t=this.forceFallback?"Fallback (forced)":e.native?"Native":"Fallback",this.player.debug.log("".concat(t," fullscreen enabled"))):this.player.debug.log("Fullscreen not supported and fallback disabled");Zu(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(Uu.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!e.native||this.forceFallback?this.toggleFallback(!0):this.prefix?Nu(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen({navigationUI:"hide"}))}},{key:"exit",value:function(){if(this.enabled)if(Uu.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),gh(this.player.play());else if(!e.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!Nu(this.prefix)){var t="moz"===this.prefix?"Cancel":"Exit";document["".concat(this.prefix).concat(t).concat(this.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"usingNative",get:function(){return e.native&&!this.forceFallback}},{key:"enabled",get:function(){return(e.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!e.native||this.forceFallback)return eh(this.target,this.player.config.classNames.fullscreen.fallback);var t=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}},{key:"target",get:function(){return Uu.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(Au(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!Au(document["".concat(t,"ExitFullscreen")])&&!Au(document["".concat(t,"CancelFullScreen")]))&&(e=t,!0)})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}(),df=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1};function pf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(n,i){var r=new Image,a=function(){delete r.onload,delete r.onerror,(r.naturalWidth>=t?n:i)(r)};Object.assign(r,{onload:a,onerror:a,src:e})}))}je({target:"Math",stat:!0},{sign:df});var mf={addStyleHook:function(){Zu(this.elements.container,this.config.selectors.container.replace(".",""),!0),Zu(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void mf.toggleNativeControls.call(this,!0);xu(this.elements.controls)||(Zh.inject.call(this),this.listeners.controls()),mf.toggleNativeControls.call(this),this.isHTML5&&nf.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Zh.updateVolume.call(this),Zh.timeUpdate.call(this),mf.checkPlaying.call(this),Zu(this.elements.container,this.config.classNames.pip.supported,sh.pip&&this.isHTML5&&this.isVideo),Zu(this.elements.container,this.config.classNames.airplay.supported,sh.airplay&&this.isHTML5),Zu(this.elements.container,this.config.classNames.isIos,Uu.isIos),Zu(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){dh.call(e,e.media,"ready")}),0),mf.setTitle.call(this),this.poster&&mf.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&Zh.durationUpdate.call(this)},setTitle:function(){var e=Vh("play",this.config);if(Su(this.config.title)&&!Nu(this.config.title)&&(e+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(t){t.setAttribute("aria-label",e)})),this.isEmbed){var t=ih.call(this,"iframe");if(!xu(t))return;var n=Nu(this.config.title)?"video":this.config.title,i=Vh("frameTitle",this.config);t.setAttribute("title",i.replace("{title}",n))}},togglePoster:function(e){Zu(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),mh.call(this).then((function(){return pf(e)})).catch((function(n){throw e===t.poster&&mf.togglePoster.call(t,!1),n})).then((function(){if(e!==t.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(e,"')"),backgroundSize:""}),mf.togglePoster.call(t,!0),e})))},checkPlaying:function(e){var t=this;Zu(this.elements.container,this.config.classNames.playing,this.playing),Zu(this.elements.container,this.config.classNames.paused,this.paused),Zu(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(e){Object.assign(e,{pressed:t.playing}),e.setAttribute("aria-label",Vh(t.playing?"pause":"play",t.config))})),Ou(e)&&"timeupdate"===e.type||mf.toggleControls.call(this)},checkLoading:function(e){var t=this;this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){Zu(t.elements.container,t.config.classNames.loading,t.loading),mf.toggleControls.call(t)}),this.loading?250:0)},toggleControls:function(e){var t=this.elements.controls;if(t&&this.config.hideControls){var n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||n))}},migrateStyles:function(){var e=this;Object.values(Do({},this.media.style)).filter((function(e){return!Nu(e)&&Su(e)&&e.startsWith("--plyr")})).forEach((function(t){e.elements.container.style.setProperty(t,e.media.style.getPropertyValue(t)),e.media.style.removeProperty(t)})),Nu(this.media.style)&&this.media.removeAttribute("style")}},gf=function(){function e(t){Mo(this,e),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return Ro(e,[{key:"handleKey",value:function(e){var t=this.player,n=t.elements,i=e.keyCode?e.keyCode:e.which,r="keydown"===e.type,a=r&&i===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&Tu(i)){if(r){var o=document.activeElement;if(xu(o)){var s=t.config.selectors.editable;if(o!==n.inputs.seek&&th(o,s))return;if(32===e.which&&th(o,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(e.preventDefault(),e.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:a||(t.currentTime=t.duration/10*(i-48));break;case 32:case 75:a||gh(t.togglePlay());break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:a||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:a||t.toggleCaptions();break;case 76:t.loop=!t.loop}27===i&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}}},{key:"toggleMenu",value:function(e){Zh.toggleMenu.call(this.player,e)}},{key:"firstTouch",value:function(){var e=this.player,t=e.elements;e.touch=!0,Zu(t.container,e.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(e){var t=this.player,n=t.elements;if(clearTimeout(this.focusTimer),"keydown"!==e.type||9===e.which){"keydown"===e.type&&(this.lastKeyDown=e.timeStamp);var i,r=e.timeStamp-this.lastKeyDown<=20;if("focus"!==e.type||r)i=t.config.classNames.tabFocus,Zu(nh.call(t,".".concat(i)),i,!1),"focusout"!==e.type&&(this.focusTimer=setTimeout((function(){var e=document.activeElement;n.container.contains(e)&&Zu(document.activeElement,t.config.classNames.tabFocus,!0)}),10))}}},{key:"global",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.player;t.config.keyboard.global&&ch.call(t,window,"keydown keyup",this.handleKey,e,!1),ch.call(t,document.body,"click",this.toggleMenu,e),fh.call(t,document.body,"touchstart",this.firstTouch),ch.call(t,document.body,"keydown focus blur focusout",this.setTabFocus,e,!1,!0)}},{key:"container",value:function(){var e=this.player,t=e.config,n=e.elements,i=e.timers;!t.keyboard.global&&t.keyboard.focused&&uh.call(e,n.container,"keydown keyup",this.handleKey,!1),uh.call(e,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var r=n.controls;r&&"enterfullscreen"===t.type&&(r.pressed=!1,r.hover=!1);var a=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(mf.toggleControls.call(e,!0),a=e.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout((function(){return mf.toggleControls.call(e,!1)}),a)}));var r=function(t){if(!t)return wh.call(e);var i=n.container.getBoundingClientRect(),r=i.width,a=i.height;return wh.call(e,"".concat(r,":").concat(a))},a=function(){clearTimeout(i.resized),i.resized=setTimeout(r,50)};uh.call(e,n.container,"enterfullscreen exitfullscreen",(function(t){var i=e.fullscreen,o=i.target,s=i.usingNative;if(o===n.container&&(e.isEmbed||!Nu(e.config.ratio))){var l="enterfullscreen"===t.type,c=r(l);c.padding;!function(t,n,i){if(e.isVimeo&&!e.config.vimeo.premium){var r=e.elements.wrapper.firstChild,a=qo(t,2)[1],o=qo(bh.call(e),2),s=o[0],l=o[1];r.style.maxWidth=i?"".concat(a/l*s,"px"):null,r.style.margin=i?"0 auto":null}}(c.ratio,0,l),s||(l?uh.call(e,window,"resize",a):hh.call(e,window,"resize",a))}}))}},{key:"media",value:function(){var e=this,t=this.player,n=t.elements;if(uh.call(t,t.media,"timeupdate seeking seeked",(function(e){return Zh.timeUpdate.call(t,e)})),uh.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(e){return Zh.durationUpdate.call(t,e)})),uh.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),uh.call(t,t.media,"progress playing seeking seeked",(function(e){return Zh.updateProgress.call(t,e)})),uh.call(t,t.media,"volumechange",(function(e){return Zh.updateVolume.call(t,e)})),uh.call(t,t.media,"playing play pause ended emptied timeupdate",(function(e){return mf.checkPlaying.call(t,e)})),uh.call(t,t.media,"waiting canplay seeked playing",(function(e){return mf.checkLoading.call(t,e)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var i=ih.call(t,".".concat(t.config.classNames.video));if(!xu(i))return;uh.call(t,n.container,"click",(function(r){([n.container,i].includes(r.target)||i.contains(r.target))&&(t.touch&&t.config.hideControls||(t.ended?(e.proxy(r,t.restart,"restart"),e.proxy(r,(function(){gh(t.play())}),"play")):e.proxy(r,(function(){gh(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&uh.call(t,n.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),uh.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),uh.call(t,t.media,"ratechange",(function(){Zh.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),uh.call(t,t.media,"qualitychange",(function(e){Zh.updateSetting.call(t,"quality",null,e.detail.quality)})),uh.call(t,t.media,"ready qualitychange",(function(){Zh.setDownloadUrl.call(t)}));var r=t.config.events.concat(["keyup","keydown"]).join(" ");uh.call(t,t.media,r,(function(e){var i=e.detail,r=void 0===i?{}:i;"error"===e.type&&(r=t.media.error),dh.call(t,n.container,e.type,!0,r)}))}},{key:"proxy",value:function(e,t,n){var i=this.player,r=i.config.listeners[n],a=!0;Au(r)&&(a=r.call(i,e)),!1!==a&&Au(t)&&t.call(i,e)}},{key:"bind",value:function(e,t,n,i){var r=this,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.player,s=o.config.listeners[i],l=Au(s);uh.call(o,e,t,(function(e){return r.proxy(e,n,i)}),a&&!l)}},{key:"controls",value:function(){var e=this,t=this.player,n=t.elements,i=Uu.isIE?"change":"input";if(n.buttons.play&&Array.from(n.buttons.play).forEach((function(n){e.bind(n,"click",(function(){gh(t.togglePlay())}),"play")})),this.bind(n.buttons.restart,"click",t.restart,"restart"),this.bind(n.buttons.rewind,"click",t.rewind,"rewind"),this.bind(n.buttons.fastForward,"click",t.forward,"fastForward"),this.bind(n.buttons.mute,"click",(function(){t.muted=!t.muted}),"mute"),this.bind(n.buttons.captions,"click",(function(){return t.toggleCaptions()})),this.bind(n.buttons.download,"click",(function(){dh.call(t,t.media,"download")}),"download"),this.bind(n.buttons.fullscreen,"click",(function(){t.fullscreen.toggle()}),"fullscreen"),this.bind(n.buttons.pip,"click",(function(){t.pip="toggle"}),"pip"),this.bind(n.buttons.airplay,"click",t.airplay,"airplay"),this.bind(n.buttons.settings,"click",(function(e){e.stopPropagation(),e.preventDefault(),Zh.toggleMenu.call(t,e)}),null,!1),this.bind(n.buttons.settings,"keyup",(function(e){var n=e.which;[13,32].includes(n)&&(13!==n?(e.preventDefault(),e.stopPropagation(),Zh.toggleMenu.call(t,e)):Zh.focusFirstMenuItem.call(t,null,!0))}),null,!1),this.bind(n.settings.menu,"keydown",(function(e){27===e.which&&Zh.toggleMenu.call(t,e)})),this.bind(n.inputs.seek,"mousedown mousemove",(function(e){var t=n.progress.getBoundingClientRect(),i=100/t.width*(e.pageX-t.left);e.currentTarget.setAttribute("seek-value",i)})),this.bind(n.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(e){var n=e.currentTarget,i=e.keyCode?e.keyCode:e.which,r="play-on-seeked";if(!Iu(e)||39===i||37===i){t.lastSeekTime=Date.now();var a=n.hasAttribute(r),o=["mouseup","touchend","keyup"].includes(e.type);a&&o?(n.removeAttribute(r),gh(t.play())):!o&&t.playing&&(n.setAttribute(r,""),t.pause())}})),Uu.isIos){var r=nh.call(t,'input[type="range"]');Array.from(r).forEach((function(t){return e.bind(t,i,(function(e){return _u(e.target)}))}))}this.bind(n.inputs.seek,i,(function(e){var n=e.currentTarget,i=n.getAttribute("seek-value");Nu(i)&&(i=n.value),n.removeAttribute("seek-value"),t.currentTime=i/n.max*t.duration}),"seek"),this.bind(n.progress,"mouseenter mouseleave mousemove",(function(e){return Zh.updateSeekTooltip.call(t,e)})),this.bind(n.progress,"mousemove touchmove",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.startMove(e)})),this.bind(n.progress,"mouseleave touchend click",(function(){var e=t.previewThumbnails;e&&e.loaded&&e.endMove(!1,!0)})),this.bind(n.progress,"mousedown touchstart",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.startScrubbing(e)})),this.bind(n.progress,"mouseup touchend",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.endScrubbing(e)})),Uu.isWebkit&&Array.from(nh.call(t,'input[type="range"]')).forEach((function(n){e.bind(n,"input",(function(e){return Zh.updateRangeFill.call(t,e.target)}))})),t.config.toggleInvert&&!xu(n.display.duration)&&this.bind(n.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,Zh.timeUpdate.call(t))})),this.bind(n.inputs.volume,i,(function(e){t.volume=e.target.value}),"volume"),this.bind(n.controls,"mouseenter mouseleave",(function(e){n.controls.hover=!t.touch&&"mouseenter"===e.type})),n.fullscreen&&Array.from(n.fullscreen.children).filter((function(e){return!e.contains(n.container)})).forEach((function(i){e.bind(i,"mouseenter mouseleave",(function(e){n.controls.hover=!t.touch&&"mouseenter"===e.type}))})),this.bind(n.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){n.controls.pressed=["mousedown","touchstart"].includes(e.type)})),this.bind(n.controls,"focusin",(function(){var i=t.config,r=t.timers;Zu(n.controls,i.classNames.noTransition,!0),mf.toggleControls.call(t,!0),setTimeout((function(){Zu(n.controls,i.classNames.noTransition,!1)}),0);var a=e.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout((function(){return mf.toggleControls.call(t,!1)}),a)})),this.bind(n.inputs.volume,"wheel",(function(e){var n=e.webkitDirectionInvertedFromDevice,i=qo([e.deltaX,-e.deltaY].map((function(e){return n?-e:e})),2),r=i[0],a=i[1],o=Math.sign(Math.abs(r)>Math.abs(a)?r:a);t.increaseVolume(o/50);var s=t.media.volume;(1===o&&s<1||-1===o&&s>0)&&e.preventDefault()}),"volume",!1)}}]),e}(),vf=Jn("splice"),yf=Zt("splice",{ACCESSORS:!0,0:0,1:2}),bf=Math.max,wf=Math.min,kf=9007199254740991,Tf="Maximum allowed length exceeded";je({target:"Array",proto:!0,forced:!vf||!yf},{splice:function(e,t){var n,i,r,a,o,s,l=Re(this),c=ce(l.length),u=fe(e,c),h=arguments.length;if(0===h?n=i=0:1===h?(n=0,i=c-u):(n=h-2,i=wf(bf(se(t),0),c-u)),c+n-i>kf)throw TypeError(Tf);for(r=st(l,i),a=0;a<i;a++)(o=u+a)in l&&Wn(r,a,l[o]);if(r.length=i,n<i){for(a=u;a<c-i;a++)s=a+n,(o=a+i)in l?l[s]=l[o]:delete l[s];for(a=c;a>c-i+n;a--)delete l[a-1]}else if(n>i)for(a=c-i;a>u;a--)s=a+n-1,(o=a+i-1)in l?l[s]=l[o]:delete l[s];for(a=0;a<n;a++)l[a+u]=arguments[a+2];return l.length=c-i+n,r}});var Sf=t((function(e,t){e.exports=function(){var e=function(){},t={},n={},i={};function r(e,t){e=e.push?e:[e];var r,a,o,s=[],l=e.length,c=l;for(r=function(e,n){n.length&&s.push(e),--c||t(s)};l--;)a=e[l],(o=n[a])?r(a,o):(i[a]=i[a]||[]).push(r)}function a(e,t){if(e){var r=i[e];if(n[e]=t,r)for(;r.length;)r[0](e,t),r.splice(0,1)}}function o(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function s(t,n,i,r){var a,o,l=document,c=i.async,u=(i.numRetries||0)+1,h=i.before||e,f=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(f)?((o=l.createElement("link")).rel="stylesheet",o.href=d,(a="hideFocus"in o)&&o.relList&&(a=0,o.rel="preload",o.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(f)?(o=l.createElement("img")).src=d:((o=l.createElement("script")).src=t,o.async=void 0===c||c),o.onload=o.onerror=o.onbeforeload=function(e){var l=e.type[0];if(a)try{o.sheet.cssText.length||(l="e")}catch(e){18!=e.code&&(l="e")}if("e"==l){if((r+=1)<u)return s(t,n,i,r)}else if("preload"==o.rel&&"style"==o.as)return o.rel="stylesheet";n(t,l,e.defaultPrevented)},!1!==h(t,o)&&l.head.appendChild(o)}function l(e,t,n){var i,r,a=(e=e.push?e:[e]).length,o=a,l=[];for(i=function(e,n,i){if("e"==n&&l.push(e),"b"==n){if(!i)return;l.push(e)}--a||t(l)},r=0;r<o;r++)s(e[r],i,n)}function c(e,n,i){var r,s;if(n&&n.trim&&(r=n),s=(r?i:n)||{},r){if(r in t)throw"LoadJS";t[r]=!0}function c(t,n){l(e,(function(e){o(s,e),t&&o({success:t,error:n},e),a(r,e)}),s)}if(s.returnPromise)return new Promise(c);c()}return c.ready=function(e,t){return r(e,(function(e){o(t,e)})),c},c.done=function(e){a(e,[])},c.reset=function(){t={},n={},i={}},c.isDefined=function(e){return e in t},c}()}));function Ef(e){return new Promise((function(t,n){Sf(e,{success:t,error:n})}))}function Af(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,dh.call(this,this.media,e?"play":"pause"))}var Pf={setup:function(){var e=this;Zu(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,wh.call(e),ku(window.Vimeo)?Pf.ready.call(e):Ef(e.config.urls.vimeo.sdk).then((function(){Pf.ready.call(e)})).catch((function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)}))},ready:function(){var e=this,t=this,n=t.config.vimeo,i=n.premium,r=n.referrerPolicy,a=Fo(n,["premium","referrerPolicy"]);i&&Object.assign(a,{controls:!1,sidedock:!1});var o=tf(Do({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},a)),s=t.media.getAttribute("src");Nu(s)&&(s=t.media.getAttribute(t.config.attributes.embed.id));var l,c=Nu(l=s)?null:Tu(Number(l))?l:l.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:l,u=Ku("iframe"),h=Uh(t.config.urls.vimeo.iframe,c,o);u.setAttribute("src",h),u.setAttribute("allowfullscreen",""),u.setAttribute("allow","autoplay,fullscreen,picture-in-picture"),Nu(r)||u.setAttribute("referrerPolicy",r);var f=t.poster;if(i)u.setAttribute("data-poster",f),t.media=Xu(u,t.media);else{var d=Ku("div",{class:t.config.classNames.embedContainer,"data-poster":f});d.appendChild(u),t.media=Xu(d,t.media)}Wh(Uh(t.config.urls.vimeo.api,c),"json").then((function(e){if(!Nu(e)){var n=new URL(e[0].thumbnail_large);n.pathname="".concat(n.pathname.split("_")[0],".jpg"),mf.setPoster.call(t,n.href).catch((function(){}))}})),t.embed=new window.Vimeo.Player(u,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=function(){return Af.call(t,!0),t.embed.play()},t.media.pause=function(){return Af.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var p=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return p},set:function(e){var n=t.embed,i=t.media,r=t.paused,a=t.volume,o=r&&!n.hasPlayed;i.seeking=!0,dh.call(t,i,"seeking"),Promise.resolve(o&&n.setVolume(0)).then((function(){return n.setCurrentTime(e)})).then((function(){return o&&n.pause()})).then((function(){return o&&n.setVolume(a)})).catch((function(){}))}});var m=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return m},set:function(e){t.embed.setPlaybackRate(e).then((function(){m=e,dh.call(t,t.media,"ratechange")})).catch((function(){t.options.speed=[1]}))}});var g=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return g},set:function(e){t.embed.setVolume(e).then((function(){g=e,dh.call(t,t.media,"volumechange")}))}});var v=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return v},set:function(e){var n=!!Eu(e)&&e;t.embed.setVolume(n?0:t.config.volume).then((function(){v=n,dh.call(t,t.media,"volumechange")}))}});var y,b=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return b},set:function(e){var n=Eu(e)?e:t.config.loop.active;t.embed.setLoop(n).then((function(){b=n}))}}),t.embed.getVideoUrl().then((function(e){y=e,Zh.setDownloadUrl.call(t)})).catch((function(t){e.debug.warn(t)})),Object.defineProperty(t.media,"currentSrc",{get:function(){return y}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then((function(n){var i=qo(n,2),r=i[0],a=i[1];t.embed.ratio=[r,a],wh.call(e)})),t.embed.setAutopause(t.config.autopause).then((function(e){t.config.autopause=e})),t.embed.getVideoTitle().then((function(n){t.config.title=n,mf.setTitle.call(e)})),t.embed.getCurrentTime().then((function(e){p=e,dh.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((function(e){t.media.duration=e,dh.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((function(e){t.media.textTracks=e,nf.setup.call(t)})),t.embed.on("cuechange",(function(e){var n=e.cues,i=(void 0===n?[]:n).map((function(e){return function(e){var t=document.createDocumentFragment(),n=document.createElement("div");return t.appendChild(n),n.innerHTML=e,t.firstChild.innerText}(e.text)}));nf.updateCues.call(t,i)})),t.embed.on("loaded",(function(){(t.embed.getPaused().then((function(e){Af.call(t,!e),e||dh.call(t,t.media,"playing")})),xu(t.embed.element)&&t.supported.ui)&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(function(){dh.call(t,t.media,"waiting")})),t.embed.on("bufferend",(function(){dh.call(t,t.media,"playing")})),t.embed.on("play",(function(){Af.call(t,!0),dh.call(t,t.media,"playing")})),t.embed.on("pause",(function(){Af.call(t,!1)})),t.embed.on("timeupdate",(function(e){t.media.seeking=!1,p=e.seconds,dh.call(t,t.media,"timeupdate")})),t.embed.on("progress",(function(e){t.media.buffered=e.percent,dh.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&dh.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((function(e){e!==t.media.duration&&(t.media.duration=e,dh.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(function(){t.media.seeking=!1,dh.call(t,t.media,"seeked")})),t.embed.on("ended",(function(){t.media.paused=!0,dh.call(t,t.media,"ended")})),t.embed.on("error",(function(e){t.media.error=e,dh.call(t,t.media,"error")})),setTimeout((function(){return mf.build.call(t)}),0)}};function Cf(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,dh.call(this,this.media,e?"play":"pause"))}function xf(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var Of={setup:function(){var e=this;if(Zu(this.elements.wrapper,this.config.classNames.embed,!0),ku(window.YT)&&Au(window.YT.Player))Of.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){Au(t)&&t(),Of.ready.call(e)},Ef(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;Wh(Uh(this.config.urls.youtube.api,e)).then((function(e){if(ku(e)){var n=e.title,i=e.height,r=e.width;t.config.title=n,mf.setTitle.call(t),t.embed.ratio=[r,i]}wh.call(t)})).catch((function(){wh.call(t)}))},ready:function(){var e=this,t=e.media&&e.media.getAttribute("id");if(Nu(t)||!t.startsWith("youtube-")){var n=e.media.getAttribute("src");Nu(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));var i,r,a=Nu(i=n)?null:i.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:i,o=(r=e.provider,"".concat(r,"-").concat(Math.floor(1e4*Math.random()))),s=Ku("div",{id:o,"data-poster":e.poster});e.media=Xu(s,e.media);var l=function(e){return"https://i.ytimg.com/vi/".concat(a,"/").concat(e,"default.jpg")};pf(l("maxres"),121).catch((function(){return pf(l("sd"),121)})).catch((function(){return pf(l("hq"))})).then((function(t){return mf.setPoster.call(e,t.src)})).then((function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})).catch((function(){}));var c=e.config.youtube;e.embed=new window.YT.Player(o,{videoId:a,host:xf(c),playerVars:Vu({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},c),events:{onError:function(t){if(!e.media.error){var n=t.data,i={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured";e.media.error={code:n,message:i},dh.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var n=t.target;e.media.playbackRate=n.getPlaybackRate(),dh.call(e,e.media,"ratechange")},onReady:function(t){if(!Au(e.media.play)){var n=t.target;Of.getTitle.call(e,a),e.media.play=function(){Cf.call(e,!0),n.playVideo()},e.media.pause=function(){Cf.call(e,!1),n.pauseVideo()},e.media.stop=function(){n.stopVideo()},e.media.duration=n.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(n.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,dh.call(e,e.media,"seeking"),n.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return n.getPlaybackRate()},set:function(e){n.setPlaybackRate(e)}});var i=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return i},set:function(t){i=t,n.setVolume(100*i),dh.call(e,e.media,"volumechange")}});var r=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return r},set:function(t){var i=Eu(t)?t:r;r=i,n[i?"mute":"unMute"](),dh.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return n.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var o=n.getAvailablePlaybackRates();e.options.speed=o.filter((function(t){return e.config.speed.options.includes(t)})),e.supported.ui&&e.media.setAttribute("tabindex",-1),dh.call(e,e.media,"timeupdate"),dh.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((function(){e.media.buffered=n.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&dh.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),dh.call(e,e.media,"canplaythrough"))}),200),setTimeout((function(){return mf.build.call(e)}),50)}},onStateChange:function(t){var n=t.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(t.data)&&(e.media.seeking=!1,dh.call(e,e.media,"seeked")),t.data){case-1:dh.call(e,e.media,"timeupdate"),e.media.buffered=n.getVideoLoadedFraction(),dh.call(e,e.media,"progress");break;case 0:Cf.call(e,!1),e.media.loop?(n.stopVideo(),n.playVideo()):dh.call(e,e.media,"ended");break;case 1:e.config.autoplay||!e.media.paused||e.embed.hasPlayed?(Cf.call(e,!0),dh.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){dh.call(e,e.media,"timeupdate")}),50),e.media.duration!==n.getDuration()&&(e.media.duration=n.getDuration(),dh.call(e,e.media,"durationchange"))):e.media.pause();break;case 2:e.muted||e.embed.unMute(),Cf.call(e,!1);break;case 3:dh.call(e,e.media,"waiting")}dh.call(e,e.elements.container,"statechange",!1,{code:t.data})}}})}}},If={setup:function(){this.media?(Zu(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Zu(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Zu(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Ku("div",{class:this.config.classNames.video}),zu(this.media,this.elements.wrapper),this.elements.poster=Ku("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?kh.setup.call(this):this.isYouTube?Of.setup.call(this):this.isVimeo&&Pf.setup.call(this)):this.debug.warn("No media element found!")}},jf=function(){function e(t){var n=this;Mo(this,e),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(e,t){n.on("loaded",e),n.on("error",t)})),this.load()}return Ro(e,[{key:"load",value:function(){var e=this;this.enabled&&(ku(window.google)&&ku(window.google.ima)?this.ready():Ef(this.player.config.urls.googleIMA.sdk).then((function(){e.ready()})).catch((function(){e.trigger("error",new Error("Google IMA SDK failed to load"))})))}},{key:"ready",value:function(){var e,t=this;this.enabled||((e=this).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then((function(){t.clearSafetyTimer("onAdsManagerLoaded()")})),this.listeners(),this.setupIMA()}},{key:"setupIMA",value:function(){var e=this;this.elements.container=Ku("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return e.onAdsManagerLoaded(t)}),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)}),!1),this.requestAds()}},{key:"requestAds",value:function(){var e=this.player.elements.container;try{var t=new google.ima.AdsRequest;t.adTagUrl=this.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(t)}catch(e){this.onAdError(e)}}},{key:"pollCountdown",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");var n=function(){var t=Jh(Math.max(e.manager.getRemainingTime(),0)),n="".concat(Vh("advertisement",e.player.config)," - ").concat(t);e.elements.container.setAttribute("data-badge-text",n)};this.countdownTimer=setInterval(n,100)}},{key:"onAdsManagerLoaded",value:function(e){var t=this;if(this.enabled){var n=new google.ima.AdsRenderingSettings;n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.enablePreloading=!0,this.manager=e.getAdsManager(this.player,n),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return t.onAdError(e)})),Object.keys(google.ima.AdEvent.Type).forEach((function(e){t.manager.addEventListener(google.ima.AdEvent.Type[e],(function(e){return t.onAdEvent(e)}))})),this.trigger("loaded")}}},{key:"addCuePoints",value:function(){var e=this;Nu(this.cuePoints)||this.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<e.player.duration){var n=e.player.elements.progress;if(xu(n)){var i=100/e.player.duration*t,r=Ku("span",{class:e.player.config.classNames.cues});r.style.left="".concat(i.toString(),"%"),n.appendChild(r)}}}))}},{key:"onAdEvent",value:function(e){var t=this,n=this.player.elements.container,i=e.getAd(),r=e.getAdData();switch(function(e){dh.call(t.player,t.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),i.isLinear()||(i.width=n.offsetWidth,i.height=n.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:r.adError&&this.player.debug.warn("Non-fatal ad error: ".concat(r.adError.getMessage()))}}},{key:"onAdError",value:function(e){this.cancel(),this.player.debug.warn("Ads error",e)}},{key:"listeners",value:function(){var e,t=this,n=this.player.elements.container;this.player.on("canplay",(function(){t.addCuePoints()})),this.player.on("ended",(function(){t.loader.contentComplete()})),this.player.on("timeupdate",(function(){e=t.player.currentTime})),this.player.on("seeked",(function(){var n=t.player.currentTime;Nu(t.cuePoints)||t.cuePoints.forEach((function(i,r){e<i&&i<n&&(t.manager.discardAdBreak(),t.cuePoints.splice(r,1))}))})),window.addEventListener("resize",(function(){t.manager&&t.manager.resize(n.offsetWidth,n.offsetHeight,google.ima.ViewMode.NORMAL)}))}},{key:"play",value:function(){var e=this,t=this.player.elements.container;this.managerPromise||this.resumeContent(),this.managerPromise.then((function(){e.manager.setVolume(e.player.volume),e.elements.displayContainer.initialize();try{e.initialized||(e.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),e.manager.start()),e.initialized=!0}catch(t){e.onAdError(t)}})).catch((function(){}))}},{key:"resumeContent",value:function(){this.elements.container.style.zIndex="",this.playing=!1,gh(this.player.media.play())}},{key:"pauseContent",value:function(){this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}},{key:"cancel",value:function(){this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}},{key:"loadAds",value:function(){var e=this;this.managerPromise.then((function(){e.manager&&e.manager.destroy(),e.managerPromise=new Promise((function(t){e.on("loaded",t),e.player.debug.log(e.manager)})),e.initialized=!1,e.requestAds()})).catch((function(){}))}},{key:"trigger",value:function(e){for(var t=this,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var a=this.events[e];Pu(a)&&a.forEach((function(e){Au(e)&&e.apply(t,i)}))}},{key:"on",value:function(e,t){return Pu(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this}},{key:"startSafetyTimer",value:function(e,t){var n=this;this.player.debug.log("Safety timer invoked from: ".concat(t)),this.safetyTimer=setTimeout((function(){n.cancel(),n.clearSafetyTimer("startSafetyTimer()")}),e)}},{key:"clearSafetyTimer",value:function(e){wu(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!Nu(e.publisherId)||Mu(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;if(Mu(e.tagUrl))return e.tagUrl;var t={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(tf(t))}}]),e}(),Lf=ut.findIndex,Mf="findIndex",Nf=!0,Rf=Zt(Mf);Mf in[]&&Array(1).findIndex((function(){Nf=!1})),je({target:"Array",proto:!0,forced:Nf||!Rf},{findIndex:function(e){return Lf(this,e,arguments.length>1?arguments[1]:void 0)}}),mn(Mf);var _f=Math.min,Uf=[].lastIndexOf,Df=!!Uf&&1/[1].lastIndexOf(1,-0)<0,Ff=Gt("lastIndexOf"),qf=Zt("indexOf",{ACCESSORS:!0,1:0}),Hf=Df||!Ff||!qf?function(e){if(Df)return Uf.apply(this,arguments)||0;var t=m(this),n=ce(t.length),i=n-1;for(arguments.length>1&&(i=_f(i,se(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:Uf;je({target:"Array",proto:!0,forced:Hf!==[].lastIndexOf},{lastIndexOf:Hf});var Bf=function(e,t){var n={};return e>t.width/t.height?(n.width=t.width,n.height=1/e*t.width):(n.height=t.height,n.width=e*t.height),n},Vf=function(){function e(t){Mo(this,e),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return Ro(e,[{key:"load",value:function(){var e=this;this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then((function(){e.enabled&&(e.render(),e.determineContainerAutoSizing(),e.loaded=!0)}))}},{key:"getThumbnails",value:function(){var e=this;return new Promise((function(t){var n=e.player.config.previewThumbnails.src;if(Nu(n))throw new Error("Missing previewThumbnails.src config attribute");var i=function(){e.thumbnails.sort((function(e,t){return e.height-t.height})),e.player.debug.log("Preview thumbnails",e.thumbnails),t()};if(Au(n))n((function(t){e.thumbnails=t,i()}));else{var r=(Su(n)?[n]:n).map((function(t){return e.getThumbnail(t)}));Promise.all(r).then(i)}}))}},{key:"getThumbnail",value:function(e){var t=this;return new Promise((function(n){Wh(e).then((function(i){var r,a,o={frames:(r=i,a=[],r.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(e){var t={};e.split(/\r\n|\n|\r/).forEach((function(e){if(Tu(t.startTime)){if(!Nu(e.trim())&&Nu(t.text)){var n=e.trim().split("#xywh="),i=qo(n,1);if(t.text=i[0],n[1]){var r=qo(n[1].split(","),4);t.x=r[0],t.y=r[1],t.w=r[2],t.h=r[3]}}}else{var a=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);a&&(t.startTime=60*Number(a[1]||0)*60+60*Number(a[2])+Number(a[3])+Number("0.".concat(a[4])),t.endTime=60*Number(a[6]||0)*60+60*Number(a[7])+Number(a[8])+Number("0.".concat(a[9])))}})),t.text&&a.push(t)})),a),height:null,urlPrefix:""};o.frames[0].text.startsWith("/")||o.frames[0].text.startsWith("http://")||o.frames[0].text.startsWith("https://")||(o.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var s=new Image;s.onload=function(){o.height=s.naturalHeight,o.width=s.naturalWidth,t.thumbnails.push(o),n()},s.src=o.urlPrefix+o.frames[0].text}))}))}},{key:"startMove",value:function(e){if(this.loaded&&Ou(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t=this.player.elements.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);this.seekTime=this.player.media.duration*(n/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.innerText=Jh(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(e){(wu(e.button)||!1===e.button||0===e.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var e=this;this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):fh.call(this.player,this.player.media,"timeupdate",(function(){e.mouseDown||e.toggleScrubbingContainer(!1)}))}},{key:"listeners",value:function(){var e=this;this.player.on("play",(function(){e.toggleThumbContainer(!1,!0)})),this.player.on("seeked",(function(){e.toggleThumbContainer(!1)})),this.player.on("timeupdate",(function(){e.lastTime=e.player.media.currentTime}))}},{key:"render",value:function(){this.elements.thumb.container=Ku("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=Ku("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var e=Ku("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=Ku("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(e),xu(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=Ku("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}},{key:"destroy",value:function(){this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}},{key:"showImageAtCurrentTime",value:function(){var e=this;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();var t=this.thumbnails[0].frames.findIndex((function(t){return e.seekTime>=t.startTime&&e.seekTime<=t.endTime})),n=t>=0,i=0;this.mouseDown||this.toggleThumbContainer(n),n&&(this.thumbnails.forEach((function(n,r){e.loadedImages.includes(n.frames[t].text)&&(i=r)})),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(i)))}},{key:"loadImage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.showingThumb,i=this.thumbnails[t],r=i.urlPrefix,a=i.frames[n],o=i.frames[n].text,s=r+o;if(this.currentImageElement&&this.currentImageElement.dataset.filename===o)this.showImage(this.currentImageElement,a,t,n,o,!1),this.currentImageElement.dataset.index=n,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);var l=new Image;l.src=s,l.dataset.index=n,l.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log("Loading image: ".concat(s)),l.onload=function(){return e.showImage(l,a,t,n,o,!0)},this.loadingImage=l,this.removeOldImages(l)}}},{key:"showImage",value:function(e,t,n,i,r){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.player.debug.log("Showing thumb: ".concat(r,". num: ").concat(i,". qual: ").concat(n,". newimg: ").concat(a)),this.setImageSizeAndOffset(e,t),a&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(i,!0).then(this.preloadNearby(i,!1)).then(this.getHigherQuality(n,e,t,r))}},{key:"removeOldImages",value:function(e){var t=this;Array.from(this.currentImageContainer.children).forEach((function(n){if("img"===n.tagName.toLowerCase()){var i=t.usingSprites?500:1e3;if(n.dataset.index!==e.dataset.index&&!n.dataset.deleting){n.dataset.deleting=!0;var r=t.currentImageContainer;setTimeout((function(){r.removeChild(n),t.player.debug.log("Removing thumb: ".concat(n.dataset.filename))}),i)}}}))}},{key:"preloadNearby",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(i){setTimeout((function(){var r=t.thumbnails[0].frames[e].text;if(t.showingThumbFilename===r){var a;a=n?t.thumbnails[0].frames.slice(e):t.thumbnails[0].frames.slice(0,e).reverse();var o=!1;a.forEach((function(e){var n=e.text;if(n!==r&&!t.loadedImages.includes(n)){o=!0,t.player.debug.log("Preloading thumb filename: ".concat(n));var a=t.thumbnails[0].urlPrefix+n,s=new Image;s.src=a,s.onload=function(){t.player.debug.log("Preloaded thumb filename: ".concat(n)),t.loadedImages.includes(n)||t.loadedImages.push(n),i()}}})),o||i()}}),300)}))}},{key:"getHigherQuality",value:function(e,t,n,i){var r=this;if(e<this.thumbnails.length-1){var a=t.naturalHeight;this.usingSprites&&(a=n.h),a<this.thumbContainerHeight&&setTimeout((function(){r.showingThumbFilename===i&&(r.player.debug.log("Showing higher quality thumb for: ".concat(i)),r.loadImage(e+1))}),300)}}},{key:"toggleThumbContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"toggleScrubbingContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"determineContainerAutoSizing",value:function(){(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}},{key:"setThumbContainerSizeAndPos",value:function(){if(this.sizeSpecifiedInCSS){if(this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20){var e=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width="".concat(e,"px")}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){var t=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(t,"px")}}else{var n=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px"),this.elements.thumb.imageContainer.style.width="".concat(n,"px")}this.setThumbContainerPos()}},{key:"setThumbContainerPos",value:function(){var e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),n=this.elements.thumb.container,i=t.left-e.left+10,r=t.right-e.left-n.clientWidth-10,a=this.mousePosX-e.left-n.clientWidth/2;a<i&&(a=i),a>r&&(a=r),n.style.left="".concat(a,"px")}},{key:"setScrubbingContainerSize",value:function(){var e=Bf(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}),t=e.width,n=e.height;this.elements.scrubbing.container.style.width="".concat(t,"px"),this.elements.scrubbing.container.style.height="".concat(n,"px")}},{key:"setImageSizeAndOffset",value:function(e,t){if(this.usingSprites){var n=this.thumbContainerHeight/t.h;e.style.height="".concat(e.naturalHeight*n,"px"),e.style.width="".concat(e.naturalWidth*n,"px"),e.style.left="-".concat(t.x*n,"px"),e.style.top="-".concat(t.y*n,"px")}}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?Bf(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}]),e}(),zf={insertElements:function(e,t){var n=this;Su(t)?$u(e,this.media,{src:t}):Pu(t)&&t.forEach((function(t){$u(e,n.media,t)}))},change:function(e){var t=this;Bu(e,"sources.length")?(kh.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],Yu(t.media),t.media=null,xu(t.elements.container)&&t.elements.container.removeAttribute("class");var n=e.sources,i=e.type,r=qo(n,1)[0],a=r.provider,o=void 0===a?sf.html5:a,s=r.src,l="html5"===o?i:"div",c="html5"===o?{}:{src:s};Object.assign(t,{provider:o,type:i,supported:sh.check(i,o,t.config.playsinline),media:Ku(l,c)}),t.elements.container.appendChild(t.media),Eu(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),Nu(e.poster)||(t.poster=e.poster),t.config.loop.active&&t.media.setAttribute("loop",""),t.config.muted&&t.media.setAttribute("muted",""),t.config.playsinline&&t.media.setAttribute("playsinline","")),mf.addStyleHook.call(t),t.isHTML5&&zf.insertElements.call(t,"source",n),t.config.title=e.title,If.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&zf.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&mf.build.call(t),t.isHTML5&&t.media.load(),Nu(e.previewThumbnails)||(Object.assign(t.config.previewThumbnails,e.previewThumbnails),t.previewThumbnails&&t.previewThumbnails.loaded&&(t.previewThumbnails.destroy(),t.previewThumbnails=null),t.config.previewThumbnails.enabled&&(t.previewThumbnails=new Vf(t))),t.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};var Wf,Kf=function(){function e(t,n){var i=this;if(Mo(this,e),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=sh.touch,this.media=t,Su(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||Cu(this.media)||Pu(this.media))&&(this.media=this.media[0]),this.config=Vu({},rf,e.defaults,n||{},function(){try{return JSON.parse(i.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new hf(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",sh),!wu(this.media)&&xu(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(sh.check().api){var r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;var a=this.media.tagName.toLowerCase(),o=null,s=null;switch(a){case"div":if(o=this.media.querySelector("iframe"),xu(o)){if(s=ef(o.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?sf.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?sf.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=o,this.elements.container.className="",s.search.length){var l=["1","true"];l.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(Nu(this.provider)||!Object.keys(sf).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=cf;break;case"video":case"audio":this.type=a,this.provider=sf.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=sh.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new gf(this),this.storage=new zh(this),this.media.plyr=this,xu(this.elements.container)||(this.elements.container=Ku("div",{tabindex:0}),zu(this.media,this.elements.container)),mf.migrateStyles.call(this),mf.addStyleHook.call(this),If.setup.call(this),this.config.debug&&uh.call(this,this.elements.container,this.config.events.join(" "),(function(e){i.debug.log("event: ".concat(e.type))})),this.fullscreen=new ff(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&mf.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new jf(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return gh(i.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Vf(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return Ro(e,[{key:"play",value:function(){var e=this;return Au(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then((function(){return e.ads.play()})).catch((function(){return gh(e.media.play())})),this.media.play()):null}},{key:"pause",value:function(){return this.playing&&Au(this.media.pause)?this.media.pause():null}},{key:"togglePlay",value:function(e){return(Eu(e)?e:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):Au(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(e){this.currentTime-=Tu(e)?e:this.config.seekTime}},{key:"forward",value:function(e){this.currentTime+=Tu(e)?e:this.config.seekTime}},{key:"increaseVolume",value:function(e){var t=this.media.muted?0:this.volume;this.volume=t+(Tu(e)?e:0)}},{key:"decreaseVolume",value:function(e){this.increaseVolume(-e)}},{key:"toggleCaptions",value:function(e){nf.toggle.call(this,e,!1)}},{key:"airplay",value:function(){sh.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){if(this.supported.ui&&!this.isAudio){var t=eh(this.elements.container,this.config.classNames.hideControls),n=void 0===e?void 0:!e,i=Zu(this.elements.container,this.config.classNames.hideControls,n);if(i&&Pu(this.config.controls)&&this.config.controls.includes("settings")&&!Nu(this.config.settings)&&Zh.toggleMenu.call(this,!1),i!==t){var r=i?"controlshidden":"controlsshown";dh.call(this,this.media,r)}return!i}return!1}},{key:"on",value:function(e,t){uh.call(this,this.elements.container,e,t)}},{key:"once",value:function(e,t){fh.call(this,this.elements.container,e,t)}},{key:"off",value:function(e,t){hh(this.elements.container,e,t)}},{key:"destroy",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ready){var i=function(){document.body.style.overflow="",t.embed=null,n?(Object.keys(t.elements).length&&(Yu(t.elements.buttons.play),Yu(t.elements.captions),Yu(t.elements.controls),Yu(t.elements.wrapper),t.elements.buttons.play=null,t.elements.captions=null,t.elements.controls=null,t.elements.wrapper=null),Au(e)&&e()):(ph.call(t),kh.cancelRequests.call(t),Xu(t.elements.original,t.elements.container),dh.call(t,t.elements.original,"destroyed",!0),Au(e)&&e.call(t.elements.original),t.ready=!1,setTimeout((function(){t.elements=null,t.media=null}),200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(mf.toggleNativeControls.call(this,!0),i()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&Au(this.embed.destroy)&&this.embed.destroy(),i()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(i),setTimeout(i,200))}}},{key:"supports",value:function(e){return sh.mime.call(this,e)}},{key:"isHTML5",get:function(){return this.provider===sf.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===sf.youtube}},{key:"isVimeo",get:function(){return this.provider===sf.vimeo}},{key:"isVideo",get:function(){return this.type===cf}},{key:"isAudio",get:function(){return this.type===lf}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",set:function(e){if(this.duration){var t=Tu(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var e=this.media.buffered;return Tu(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,n=Tu(t)&&t!==1/0?t:0;return e||n}},{key:"volume",set:function(e){var t=e;Su(t)&&(t=Number(t)),Tu(t)||(t=this.storage.get("volume")),Tu(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!Nu(e)&&this.muted&&t>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){var t=e;Eu(t)||(t=this.storage.get("muted")),Eu(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t},get:function(){return Boolean(this.media.muted)}},{key:"hasAudio",get:function(){return!this.isHTML5||(!!this.isAudio||(Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)))}},{key:"speed",set:function(e){var t=this,n=null;Tu(e)&&(n=e),Tu(n)||(n=this.storage.get("speed")),Tu(n)||(n=this.config.speed.selected);var i=this.minimumSpeed,r=this.maximumSpeed;n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(e,t),n)}(n,i,r),this.config.speed.selected=n,setTimeout((function(){t.media.playbackRate=n}),0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,Ho(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,Ho(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(e){var t=this.config.quality,n=this.options.quality;if(n.length){var i=[!Nu(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(Tu),r=!0;if(!n.includes(i)){var a=function(e,t){return Pu(e)&&e.length?e.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e})):null}(n,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(a," instead")),i=a,r=!1}t.selected=i,this.media.quality=i,r&&this.storage.set({quality:i})}},get:function(){return this.media.quality}},{key:"loop",set:function(e){var t=Eu(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(e){zf.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return Mu(e)?e:this.source},set:function(e){Mu(e)&&(this.config.urls.download=e,Zh.setDownloadUrl.call(this))}},{key:"poster",set:function(e){this.isVideo?mf.setPoster.call(this,e,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")},get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=yh(bh.call(this));return Pu(e)?e.join(":"):e},set:function(e){this.isVideo?Su(e)&&vh(e)?(this.config.ratio=e,wh.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",set:function(e){var t=Eu(e)?e:this.config.autoplay;this.config.autoplay=t},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){nf.set.call(this,e,!1)},get:function(){var e=this.captions,t=e.toggled,n=e.currentTrack;return t?n:-1}},{key:"language",set:function(e){nf.setLanguage.call(this,e,!1)},get:function(){return(nf.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){if(sh.pip){var t=Eu(e)?e:!this.pip;Au(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?af:of),Au(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}},get:function(){return sh.pip?Nu(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===af:null}}],[{key:"supported",value:function(e,t,n){return sh.check(e,t,n)}},{key:"loadSprite",value:function(e,t){return Kh(e,t)}},{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return Su(t)?i=Array.from(document.querySelectorAll(t)):Cu(t)?i=Array.from(t):Pu(t)&&(i=t.filter(xu)),Nu(i)?null:i.map((function(t){return new e(t,n)}))}}]),e}();return Kf.defaults=(Wf=rf,JSON.parse(JSON.stringify(Wf))),Kf}));
//# sourceMappingURL=plyr.polyfilled.min.js.map