index-legacy-6bb68277.js 172 KB

1
  1. !function(){var e=["premium","referrerPolicy"];function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(M){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),l=new S(r||[]);return i(a,"_invoke",{value:x(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(M){return{type:"throw",arg:M}}}e.wrap=u;var p={};function m(){}function h(){}function g(){}var y={};c(y,a,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(E([])));v&&v!==n&&r.call(v,a)&&(y=v);var w=g.prototype=m.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,l){var s=d(e[i],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==f(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function x(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=A(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function A(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,A(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:h,configurable:!0}),h.displayName=c(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(k.prototype),c(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,s,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function n(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,i)}function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,i=u}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||d(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 d(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===f(t)?t:String(t)}function f(e){return f="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},f(e)}System.register(["./index-legacy-64376843.js","./toolsValidate-legacy-0cd59584.js","./index-legacy-ec204863.js","./index-legacy-86b38a8e.js"],(function(a,s){"use strict";var d,p,h,g,y,b,v,w,_,k,x,A,T,C,S,E,P,M,L,N,I,O,j=document.createElement("style");return j.textContent='@charset "UTF-8";._overlayPreview_5k51b_1{--van-overlay-background: rgba(0, 0, 0, .9) !important}._imagePreview_5k51b_4{--van-image-preview-close-icon-size: .85333rem;--van-image-preview-index-line-height: .85333rem}._imagePreview_5k51b_4 .van-image-preview__cover{right:var(--van-image-preview-close-icon-margin);left:initial;font-size:.85333rem}._imagePreview_5k51b_4 .van-image-preview__index{z-index:var(--van-image-preview-close-icon-z-index)}._video-container_1hxfx_1{position:relative;width:100%;--plyr-color-main: var(--k-primary)}._video-container_1hxfx_1 video{width:100%}._video-container_1hxfx_1 .video-back{position:absolute;left:.53333rem;top:.53333rem;color:#fff;z-index:99;font-size:.64rem;width:.8rem;height:.8rem;background-color:rgba(0,0,0,.5);border-radius:50%;padding:.10667rem .13333rem .10667rem .08rem}._video-container_1hxfx_1 .plyr__poster{background-size:cover}._video-container_1hxfx_1 .plyr__control--overlaid{border:.02667rem solid #fff;background-color:rgba(0,0,0,.2)!important}._video-container_1hxfx_1 .plyr--video .plyr__control:hover{background-color:transparent!important}._video-container_1hxfx_1 ._video_1hxfx_1{position:relative}._loadingVideo_1hxfx_35{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0,0,0,.9);z-index:10}@keyframes plyr-progress{to{background-position:.66667rem 0;background-position:var(--plyr-progress-loading-size,25px) 0}}@keyframes plyr-popup{0%{opacity:.5;transform:translateY(.26667rem)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{0%{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:inherit;font-family:var(--plyr-font-family,inherit);font-variant-numeric:tabular-nums;font-weight:400;font-weight:var(--plyr-font-weight-regular,400);line-height:1.7;line-height:var(--plyr-line-height,1.7);max-width:100%;min-width:5.33333rem;position:relative;text-shadow:none;transition:box-shadow .3s ease;z-index:0}.plyr audio,.plyr iframe,.plyr video{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui :after,.plyr--full-ui :before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:#4a5464;background:var(--plyr-badge-background,#4a5464);border-radius:.05333rem;border-radius:var(--plyr-badge-border-radius,2px);color:#fff;color:var(--plyr-badge-text-color,#fff);font-size:.24rem;font-size:var(--plyr-font-size-badge,9px);line-height:1;padding:.08rem .10667rem}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in .3s ease;bottom:0;display:none;font-size:.34667rem;font-size:var(--plyr-font-size-small,13px);left:0;padding:.26667rem;padding:var(--plyr-control-spacing,10px);position:absolute;text-align:center;transition:transform .4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width:480px){.plyr__captions{font-size:.4rem;font-size:var(--plyr-font-size-base,15px);padding:.53333rem;padding:calc(var(--plyr-control-spacing, 10px)*2)}}@media (min-width:768px){.plyr__captions{font-size:.48rem;font-size:var(--plyr-font-size-large,18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(-1.06667rem);transform:translateY(calc(var(--plyr-control-spacing, 10px)*-4))}.plyr__caption{background:#000c;background:var(--plyr-captions-background,#000c);border-radius:.05333rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#fff;color:var(--plyr-captions-text-color,#fff);line-height:185%;padding:.2em .5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:#0000;border:0;border-radius:.10667rem;border-radius:var(--plyr-control-radius,4px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:.18667rem;padding:calc(var(--plyr-control-spacing, 10px)*.7);position:relative;transition:all .3s ease}.plyr__control svg{fill:currentColor;display:block;height:.48rem;height:var(--plyr-control-icon-size,18px);pointer-events:none;width:.48rem;width:var(--plyr-control-icon-size,18px)}.plyr__control:focus{outline:0}.plyr__control:focus-visible{outline:.05333rem dashed #00b2ff;outline:.05333rem dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:.05333rem}a.plyr__control{text-decoration:none}.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control.plyr__control--pressed .label--not-pressed,.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,a.plyr__control:after,a.plyr__control:before{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:.06667rem;margin-left:calc(var(--plyr-control-spacing, 10px)/4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:.06667rem;padding-left:calc(var(--plyr-control-spacing, 10px)/4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 .13333rem;padding:0 calc(var(--plyr-control-spacing, 10px)/2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time,.plyr__controls .plyr__controls__item.plyr__time:first-child{padding-left:0}.plyr [data-plyr=airplay],.plyr [data-plyr=captions],.plyr [data-plyr=fullscreen],.plyr [data-plyr=pip],.plyr__controls:empty{display:none}.plyr--airplay-supported [data-plyr=airplay],.plyr--captions-enabled [data-plyr=captions],.plyr--fullscreen-enabled [data-plyr=fullscreen],.plyr--pip-supported [data-plyr=pip]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform .3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup .2s ease;background:#ffffffe6;background:var(--plyr-menu-background,#ffffffe6);border-radius:.21333rem;border-radius:var(--plyr-menu-radius,8px);bottom:100%;box-shadow:0 .02667rem .05333rem rgba(0,0,0,.15);box-shadow:var(--plyr-menu-shadow,0 1px 2px #00000026);color:#4a5464;color:var(--plyr-menu-color,#4a5464);font-size:.4rem;font-size:var(--plyr-font-size-base,15px);margin-bottom:.26667rem;position:absolute;right:-.08rem;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.plyr__menu__container:after{border:.10667rem solid #0000;border-top-color:rgba(255,255,255,.9);border:var(--plyr-menu-arrow-size,4px) solid #0000;border-top-color:var(--plyr-menu-background,#ffffffe6);content:"";height:0;position:absolute;right:.37333rem;right:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7 - var(--plyr-menu-arrow-size, 4px)/2);top:100%;width:0}.plyr__menu__container [role=menu]{padding:.18667rem;padding:calc(var(--plyr-control-spacing, 10px)*.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:.05333rem}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:#4a5464;color:var(--plyr-menu-color,#4a5464);display:flex;font-size:.34667rem;font-size:var(--plyr-font-size-menu,var(--plyr-font-size-small,13px));padding:.12444rem .28rem;padding:calc(var(--plyr-control-spacing, 10px)*.7/1.5) calc(var(--plyr-control-spacing, 10px)*.7*1.5);-webkit-user-select:none;user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control:after{border:.10667rem solid #0000;border:var(--plyr-menu-item-arrow-size,4px) solid #0000;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:.74667rem;padding-right:calc(var(--plyr-control-spacing, 10px)*.7*4)}.plyr__menu__container .plyr__control--forward:after{border-left-color:#728197;border-left-color:var(--plyr-menu-arrow-color,#728197);right:.17333rem;right:calc(var(--plyr-control-spacing, 10px)*.7*1.5 - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward:focus-visible:after,.plyr__menu__container .plyr__control--forward:hover:after{border-left-color:initial}.plyr__menu__container .plyr__control--back{font-weight:400;font-weight:var(--plyr-font-weight-regular,400);margin:.18667rem;margin:calc(var(--plyr-control-spacing, 10px)*.7);margin-bottom:.09333rem;margin-bottom:calc(var(--plyr-control-spacing, 10px)*.7/2);padding-left:.74667rem;padding-left:calc(var(--plyr-control-spacing, 10px)*.7*4);position:relative;width:calc(100% - .37333rem);width:calc(100% - var(--plyr-control-spacing, 10px)*.7*2)}.plyr__menu__container .plyr__control--back:after{border-right-color:#728197;border-right-color:var(--plyr-menu-arrow-color,#728197);left:.17333rem;left:calc(var(--plyr-control-spacing, 10px)*.7*1.5 - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back:before{background:#dcdfe5;background:var(--plyr-menu-back-border-color,#dcdfe5);box-shadow:0 .02667rem #fff;box-shadow:0 .02667rem 0 var(--plyr-menu-back-border-shadow-color,#fff);content:"";height:.02667rem;left:0;margin-top:.09333rem;margin-top:calc(var(--plyr-control-spacing, 10px)*.7/2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back:focus-visible:after,.plyr__menu__container .plyr__control--back:hover:after{border-right-color:initial}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:.18667rem;padding-left:calc(var(--plyr-control-spacing, 10px)*.7)}.plyr__menu__container .plyr__control[role=menuitemradio]:after,.plyr__menu__container .plyr__control[role=menuitemradio]:before{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]:before{background:#0000001a;content:"";display:block;flex-shrink:0;height:.42667rem;margin-right:.26667rem;margin-right:var(--plyr-control-spacing,10px);transition:all .3s ease;width:.42667rem}.plyr__menu__container .plyr__control[role=menuitemradio]:after{background:#fff;border:0;height:.16rem;left:.32rem;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:.16rem}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:before{background:#00b2ff;background:var(--plyr-control-toggle-checked-background,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio]:focus-visible:before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover:before{background:#23282f1a}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:-.13333rem;margin-right:calc(var(--plyr-control-spacing, 10px)*.7*-1 - -.05333rem);overflow:hidden;padding-left:.65333rem;padding-left:calc(var(--plyr-control-spacing, 10px)*.7*3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;appearance:none;background:#0000;border:0;border-radius:.69333rem;border-radius:calc(var(--plyr-range-thumb-height, 13px)*2);color:#00b2ff;color:var(--plyr-range-fill-background,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));display:block;height:.50667rem;height:calc(var(--plyr-range-thumb-active-shadow-width, 3px)*2 + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:#0000;background-image:linear-gradient(90deg,currentColor 0,#0000 0);background-image:linear-gradient(to right,currentColor var(--value,0),#0000 var(--value,0));border:0;border-radius:.06667rem;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:.13333rem;height:var(--plyr-range-track-height,5px);-webkit-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-webkit-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 .02667rem .02667rem rgba(35,40,47,.15),0 0 0 .02667rem rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:.34667rem;height:var(--plyr-range-thumb-height,13px);margin-top:-.10667rem;margin-top:calc((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px))/2*-1);position:relative;-webkit-transition:all .2s ease;transition:all .2s ease;width:.34667rem;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-track{background:#0000;border:0;border-radius:.06667rem;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:.13333rem;height:var(--plyr-range-track-height,5px);-moz-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 .02667rem .02667rem rgba(35,40,47,.15),0 0 0 .02667rem rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:.34667rem;height:var(--plyr-range-thumb-height,13px);position:relative;-moz-transition:all .2s ease;transition:all .2s ease;width:.34667rem;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:.06667rem;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:.13333rem;height:var(--plyr-range-track-height,5px)}.plyr--full-ui input[type=range]::-ms-track{color:rgba(0,0,0,0)}.plyr--full-ui input[type=range]::-ms-fill-upper,.plyr--full-ui input[type=range]::-ms-track{background:#0000;border:0;border-radius:.06667rem;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:.13333rem;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:#0000;background:currentColor;border:0;border-radius:.06667rem;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:.13333rem;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 .02667rem .02667rem rgba(35,40,47,.15),0 0 0 .02667rem rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:.34667rem;height:var(--plyr-range-thumb-height,13px);margin-top:0;position:relative;-ms-transition:all .2s ease;transition:all .2s ease;width:.34667rem;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]:focus-visible::-webkit-slider-runnable-track{outline:.05333rem dashed #00b2ff;outline:.05333rem dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:.05333rem}.plyr--full-ui input[type=range]:focus-visible::-moz-range-track{outline:.05333rem dashed #00b2ff;outline:.05333rem dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:.05333rem}.plyr--full-ui input[type=range]:focus-visible::-ms-track{outline:.05333rem dashed #00b2ff;outline:.05333rem dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:.05333rem}.plyr__poster{background-color:#000;background-color:var(--plyr-video-background,var(--plyr-video-background,#000));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:.34667rem;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px))}.plyr__time+.plyr__time:before{content:"⁄";margin-right:.26667rem;margin-right:var(--plyr-control-spacing,10px)}@media (max-width:767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:#fff;background:var(--plyr-tooltip-background,#fff);border-radius:.13333rem;border-radius:var(--plyr-tooltip-radius,5px);bottom:100%;box-shadow:0 .02667rem .05333rem rgba(0,0,0,.15);box-shadow:var(--plyr-tooltip-shadow,0 1px 2px #00000026);color:#4a5464;color:var(--plyr-tooltip-color,#4a5464);font-size:.34667rem;font-size:var(--plyr-font-size-small,13px);font-weight:400;font-weight:var(--plyr-font-weight-regular,400);left:50%;line-height:1.3;margin-bottom:.26667rem;margin-bottom:calc(var(--plyr-control-spacing, 10px)/2*2);opacity:0;padding:.13333rem .2rem;padding:calc(var(--plyr-control-spacing, 10px)/2) calc(var(--plyr-control-spacing, 10px)/2*1.5);pointer-events:none;position:absolute;transform:translate(-50%,.26667rem) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2}.plyr__tooltip:before{border-left:.10667rem solid #0000;border-left:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-right:.10667rem solid #0000;border-right:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-top:.10667rem solid #fff;border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,#fff);bottom:-.10667rem;bottom:calc(var(--plyr-tooltip-arrow-size, 4px)*-1);content:"";height:0;left:50%;position:absolute;transform:translate(-50%);width:0;z-index:2}.plyr .plyr__control:focus-visible .plyr__tooltip,.plyr .plyr__control:hover .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translateY(.26667rem) scale(.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip:before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip:before{left:.42667rem;left:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7)}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translateY(.26667rem) scale(.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip:before{left:auto;right:.42667rem;right:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7);transform:translate(50%)}.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip{transform:translate(0) scale(1)}.plyr__progress{left:.17333rem;left:calc(var(--plyr-range-thumb-height, 13px)*.5);margin-right:.34667rem;margin-right:var(--plyr-range-thumb-height,13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:-.17333rem;margin-left:calc(var(--plyr-range-thumb-height, 13px)*-.5);margin-right:-.17333rem;margin-right:calc(var(--plyr-range-thumb-height, 13px)*-.5);width:calc(100% + .34667rem);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{left:0;max-width:3.2rem;overflow-wrap:break-word}.plyr__progress__buffer{-webkit-appearance:none;background:#0000;border:0;border-radius:2.66667rem;height:.13333rem;height:var(--plyr-range-track-height,5px);left:0;margin-top:-.06667rem;margin-top:calc((var(--plyr-range-track-height, 5px)/2)*-1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:#0000}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:2.66667rem;min-width:.13333rem;min-width:var(--plyr-range-track-height,5px);-webkit-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:2.66667rem;min-width:.13333rem;min-width:var(--plyr-range-track-height,5px);-moz-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-ms-fill{border-radius:2.66667rem;-ms-transition:width .2s ease;transition:width .2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg,#23282f99 25%,#0000 0,#0000 50%,#23282f99 0,#23282f99 75%,#0000 0,#0000);background-image:linear-gradient(-45deg,var(--plyr-progress-loading-background,#23282f99) 25%,#0000 25%,#0000 50%,var(--plyr-progress-loading-background,#23282f99) 50%,var(--plyr-progress-loading-background,#23282f99) 75%,#0000 75%,#0000);background-repeat:repeat-x;background-size:.66667rem .66667rem;background-size:var(--plyr-progress-loading-size,25px) var(--plyr-progress-loading-size,25px);color:rgba(0,0,0,0)}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-progress-buffered-background,#ffffff40)}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-progress-buffered-background,#c1c8d199)}.plyr__progress__marker{background-color:#fff;background-color:var(--plyr-progress-marker-background,#fff);border-radius:.02667rem;height:.13333rem;height:var(--plyr-range-track-height,5px);position:absolute;top:50%;transform:translate(-50%,-50%);width:.08rem;width:var(--plyr-progress-marker-width,3px);z-index:3}.plyr__volume{align-items:center;display:flex;position:relative}.plyr__volume input[type=range]{margin-left:.13333rem;margin-left:calc(var(--plyr-control-spacing, 10px)/2);margin-right:.13333rem;margin-right:calc(var(--plyr-control-spacing, 10px)/2);max-width:2.4rem;min-width:1.6rem;position:relative;z-index:2}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:#fff;background:var(--plyr-audio-controls-background,#fff);border-radius:inherit;color:#4a5464;color:var(--plyr-audio-control-color,#4a5464);padding:.26667rem;padding:var(--plyr-control-spacing,10px)}.plyr--audio .plyr__control:focus-visible,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:#00b2ff;background:var(--plyr-audio-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));color:#fff;color:var(--plyr-audio-control-color-hover,#fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:0 .02667rem .02667rem rgba(35,40,47,.15),0 0 0 .02667rem rgba(35,40,47,.2),0 0 0 .08rem rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:0 .02667rem .02667rem rgba(35,40,47,.15),0 0 0 .02667rem rgba(35,40,47,.2),0 0 0 .08rem rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:0 .02667rem .02667rem rgba(35,40,47,.15),0 0 0 .02667rem rgba(35,40,47,.2),0 0 0 .08rem rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--audio .plyr__progress__buffer{color:rgba(193,200,209,.6);color:var(--plyr-audio-progress-buffered-background,#c1c8d199)}.plyr--video{overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));border-radius:inherit;height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio:16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:linear-gradient(#0000,#000000bf);background:var(--plyr-video-controls-background,linear-gradient(#0000,#000000bf));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:#fff;color:var(--plyr-video-control-color,#fff);left:0;padding:.13333rem;padding:calc(var(--plyr-control-spacing, 10px)/2);padding-top:.53333rem;padding-top:calc(var(--plyr-control-spacing, 10px)*2);position:absolute;right:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out;z-index:3}@media (min-width:480px){.plyr--video .plyr__controls{padding:.26667rem;padding:var(--plyr-control-spacing,10px);padding-top:.93333rem;padding-top:calc(var(--plyr-control-spacing, 10px)*3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control:focus-visible,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:#00b2ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));color:#fff;color:var(--plyr-video-control-color-hover,#fff)}.plyr__control--overlaid{background:#00b2ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));border:0;border-radius:100%;color:#fff;color:var(--plyr-video-control-color,#fff);display:none;left:50%;opacity:.9;padding:.4rem;padding:calc(var(--plyr-control-spacing, 10px)*1.5);position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:2}.plyr__control--overlaid svg{left:.05333rem;position:relative}.plyr__control--overlaid:focus,.plyr__control--overlaid:hover{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:0 .02667rem .02667rem rgba(35,40,47,.15),0 0 0 .02667rem rgba(35,40,47,.2),0 0 0 .08rem rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:0 .02667rem .02667rem rgba(35,40,47,.15),0 0 0 .02667rem rgba(35,40,47,.2),0 0 0 .08rem rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:0 .02667rem .02667rem rgba(35,40,47,.15),0 0 0 .02667rem rgba(35,40,47,.2),0 0 0 .08rem rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--video .plyr__progress__buffer{color:rgba(255,255,255,.25);color:var(--plyr-video-progress-buffered-background,#ffffff40)}.plyr:-webkit-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:fullscreen video{height:100%}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:.56rem;font-size:var(--plyr-font-size-xlarge,21px)}.plyr:fullscreen .plyr__captions{font-size:.56rem;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0!important;bottom:0;height:100%;left:0;margin:0;position:fixed;right:0;top:0;width:100%;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:.56rem;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads:after{background:#23282f;border-radius:.05333rem;bottom:.26667rem;bottom:var(--plyr-control-spacing,10px);color:#fff;content:attr(data-badge-text);font-size:.29333rem;padding:.05333rem .16rem;pointer-events:none;position:absolute;right:.26667rem;right:var(--plyr-control-spacing,10px);z-index:3}.plyr__ads:empty:after{display:none}.plyr__cues{background:currentColor;display:block;height:.13333rem;height:var(--plyr-range-track-height,5px);left:0;opacity:.8;position:absolute;top:50%;transform:translateY(-50%);width:.08rem;z-index:3}.plyr__preview-thumb{background-color:#fff;background-color:var(--plyr-tooltip-background,#fff);border-radius:.21333rem;border-radius:var(--plyr-menu-radius,8px);bottom:100%;box-shadow:0 .02667rem .05333rem rgba(0,0,0,.15);box-shadow:var(--plyr-tooltip-shadow,0 1px 2px #00000026);margin-bottom:.26667rem;margin-bottom:calc(var(--plyr-control-spacing, 10px)/2*2);opacity:0;padding:.08rem;pointer-events:none;position:absolute;transform:translateY(.26667rem) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0) scale(1)}.plyr__preview-thumb:before{border-left:.10667rem solid #0000;border-left:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-right:.10667rem solid #0000;border-right:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-top:.10667rem solid #fff;border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,#fff);bottom:-.10667rem;bottom:calc(var(--plyr-tooltip-arrow-size, 4px)*-1);content:"";height:0;left:calc(50% + var(--preview-arrow-offset));position:absolute;transform:translate(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:.18667rem;border-radius:calc(var(--plyr-menu-radius, 8px) - .02667rem);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img,.plyr__preview-thumb__image-container:after{height:100%;left:0;position:absolute;top:0;width:100%}.plyr__preview-thumb__image-container:after{border-radius:inherit;box-shadow:inset 0 0 0 .02667rem rgba(0,0,0,.15);content:"";pointer-events:none}.plyr__preview-thumb__image-container img{max-height:none;max-width:none}.plyr__preview-thumb__time-container{background:linear-gradient(#0000,#000000bf);background:var(--plyr-video-controls-background,linear-gradient(#0000,#000000bf));border-bottom-left-radius:.18667rem;border-bottom-left-radius:calc(var(--plyr-menu-radius, 8px) - .02667rem);border-bottom-right-radius:.18667rem;border-bottom-right-radius:calc(var(--plyr-menu-radius, 8px) - .02667rem);bottom:0;left:0;line-height:1.1;padding:.53333rem .16rem .16rem;position:absolute;right:0;z-index:3}.plyr__preview-thumb__time-container span{color:#fff;font-size:.34667rem;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px))}.plyr__preview-scrubbing{bottom:0;filter:blur(.02667rem);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;-o-object-fit:contain;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none!important}.plyr__sr-only{clip:rect(.02667rem,.02667rem,.02667rem,.02667rem);border:0!important;height:.02667rem!important;overflow:hidden;padding:0!important;position:absolute!important;width:.02667rem!important}.plyr [hidden]{display:none!important}\n',document.head.appendChild(j),{setters:[function(e){d=e.d,p=e.L,h=e.g,g=e.a7,y=e.h,b=e.O,v=e.i,w=e.o,_=e.w,k=e.P,x=e.F,A=e.I,T=e.s,C=e.X,S=e.a3,E=e.a4,P=e.a5,M=e.a6},function(e){L=e.c},function(e){N=e.b,I=e.c},function(e){O=e.I}],execute:function(){var s="_overlayPreview_5k51b_1",j="_imagePreview_5k51b_4",z="_video-container_1hxfx_1",D="_video_1hxfx_1",H="_loadingVideo_1hxfx_35";function F(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var U={addCSS:!0,thumbWidth:15,watch:!0};var W=function(e){return null!=e?e.constructor:null},Y=function(e,t){return!!(e&&t&&e instanceof t)},K=function(e){return null==e},G=function(e){return W(e)===Object},X=function(e){return W(e)===String},J=function(e){return Array.isArray(e)},Q=function(e){return Y(e,NodeList)},$=X,Z=J,ee=Q,te=function(e){return Y(e,Element)},ne=function(e){return Y(e,Event)},re=function(e){return K(e)||(X(e)||J(e)||Q(e))&&!e.length||G(e)&&!Object.keys(e).length};function ie(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 oe,ae,le,se=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),te(t)?this.element=t:$(t)&&(this.element=document.querySelector(t)),te(this.element)&&re(this.element.rangeTouch)&&(this.config=V({},U,{},n),this.init())}return function(e,t,n){t&&B(e.prototype,t),n&&B(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||!ne(t))return null;var n,r=t.target,i=t.changedTouches[0],o=parseFloat(r.getAttribute("min"))||0,a=parseFloat(r.getAttribute("max"))||100,l=parseFloat(r.getAttribute("step"))||1,s=r.getBoundingClientRect(),c=100/s.width*(this.config.thumbWidth/2)/100;return 0>(n=100/s.width*(i.clientX-s.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*c:50<n&&(n+=2*(n-50)*c),o+ie(n/100*(a-o),l)}},{key:"set",value:function(t){e.enabled&&ne(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]:{},r=null;if(re(t)||$(t)?r=Array.from(document.querySelectorAll($(t)?t:'input[type="range"]')):te(t)?r=[t]:ee(t)?r=Array.from(t):Z(t)&&(r=t.filter(te)),re(r))return null;var i=V({},U,{},n);if($(t)&&i.watch){var o=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){te(n)&&function(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}(n,t)&&new e(n,i)}))}))}));o.observe(document.body,{childList:!0,subtree:!0})}return r.map((function(t){return new e(t,n)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),ce=function(e){return null!=e?e.constructor:null},ue=function(e,t){return Boolean(e&&t&&e instanceof t)},de=function(e){return null==e},pe=function(e){return ce(e)===Object},me=function(e){return ce(e)===String},he=function(e){return"function"==typeof e},fe=function(e){return Array.isArray(e)},ge=function(e){return ue(e,NodeList)},ye=function(e){return de(e)||(me(e)||fe(e)||ge(e))&&!e.length||pe(e)&&!Object.keys(e).length},be={nullOrUndefined:de,object:pe,number:function(e){return ce(e)===Number&&!Number.isNaN(e)},string:me,boolean:function(e){return ce(e)===Boolean},function:he,array:fe,weakMap:function(e){return ue(e,WeakMap)},nodeList:ge,element:function(e){return null!==e&&"object"==f(e)&&1===e.nodeType&&"object"==f(e.style)&&"object"==f(e.ownerDocument)},textNode:function(e){return ce(e)===Text},event:function(e){return ue(e,Event)},keyboardEvent:function(e){return ue(e,KeyboardEvent)},cue:function(e){return ue(e,window.TextTrackCue)||ue(e,window.VTTCue)},track:function(e){return ue(e,TextTrack)||!de(e)&&me(e.kind)},promise:function(e){return ue(e,Promise)&&he(e.then)},url:function(e){if(ue(e,window.URL))return!0;if(!me(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!ye(new URL(t).hostname)}catch(e){return!1}},empty:ye},ve=(oe=document.createElement("span"),ae={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},le=Object.keys(ae).find((function(e){return void 0!==oe.style[e]})),!!be.string(le)&&ae[le]);function we(e,t){setTimeout((function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}var _e={isIE:Boolean(window.document.documentMode),isEdge:/Edge/g.test(navigator.userAgent),isWebKit:"WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),isIPhone:/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,isIPadOS:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,isIos:/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function ke(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function xe(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var i=n.shift();return be.object(i)?(Object.keys(i).forEach((function(t){be.object(i[t])?(Object.keys(e).includes(t)||Object.assign(e,m({},t,{})),xe(e[t],i[t])):Object.assign(e,m({},t,i[t]))})),xe.apply(void 0,[e].concat(n))):e}function Ae(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach((function(e,n){var r=n>0?t.cloneNode(!0):t,i=e.parentNode,o=e.nextSibling;r.appendChild(e),o?i.insertBefore(r,o):i.appendChild(r)}))}function Te(e,t){be.element(e)&&!be.empty(t)&&Object.entries(t).filter((function(e){var t=u(e,2)[1];return!be.nullOrUndefined(t)})).forEach((function(t){var n=u(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)}))}function Ce(e,t,n){var r=document.createElement(e);return be.object(t)&&Te(r,t),be.string(n)&&(r.innerText=n),r}function Se(e,t,n,r){be.element(t)&&t.appendChild(Ce(e,n,r))}function Ee(e){be.nodeList(e)||be.array(e)?Array.from(e).forEach(Ee):be.element(e)&&be.element(e.parentNode)&&e.parentNode.removeChild(e)}function Pe(e){if(be.element(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function Me(e,t){return be.element(t)&&be.element(t.parentNode)&&be.element(e)?(t.parentNode.replaceChild(e,t),e):null}function Le(e,t){if(!be.string(e)||be.empty(e))return{};var n={},r=xe({},t);return e.split(",").forEach((function(e){var t=e.trim(),i=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),a=u(o,1)[0],l=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":be.string(r.class)?n.class="".concat(r.class," ").concat(i):n.class=i;break;case"#":n.id=t.replace("#","");break;case"[":n[a]=l}})),xe(r,n)}function Ne(e,t){if(be.element(e)){var n=t;be.boolean(n)||(n=!e.hidden),e.hidden=n}}function Ie(e,t,n){if(be.nodeList(e))return Array.from(e).map((function(e){return Ie(e,t,n)}));if(be.element(e)){var r="toggle";return void 0!==n&&(r=n?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function Oe(e,t){return be.element(e)&&e.classList.contains(t)}function je(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 ze(e){return this.elements.container.querySelectorAll(e)}function De(e){return this.elements.container.querySelector(e)}function He(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];be.element(e)&&e.focus({preventScroll:!0,focusVisible:t})}var Fe={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Be={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t){var n=Be[e]||"html5"!==t;return{api:n,ui:n&&Be.rangeInput}},pip:!(_e.isIPhone||!be.function(Ce("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Ce("video").disablePictureInPicture)),airplay:be.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(be.empty(e))return!1;var t=u(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(Fe).includes(n)&&(n+='; codecs="'.concat(Fe[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var e=document.createElement("input");return e.type="range","range"===e.type}(),touch:"ontouchstart"in document.documentElement,transitions:!1!==ve,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Re=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 qe(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener"in e&&!be.empty(t)&&be.function(n)){var l=t.split(" "),s=a;Re&&(s={passive:o,capture:a}),l.forEach((function(t){r&&r.eventListeners&&i&&r.eventListeners.push({element:e,type:t,callback:n,options:s}),e[i?"addEventListener":"removeEventListener"](t,n,s)}))}}function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];qe.call(this,e,t,n,!0,r,i)}function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];qe.call(this,e,t,n,!1,r,i)}function We(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];qe.call(this,e,n,(function a(){for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];Ue(e,n,a,i,o),r.apply(t,s)}),!0,i,o)}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(be.element(e)&&!be.empty(t)){var i=new CustomEvent(t,{bubbles:n,detail:c(c({},r),{},{plyr:this})});e.dispatchEvent(i)}}function Ke(){this&&this.eventListeners&&(this.eventListeners.forEach((function(e){var t=e.element,n=e.type,r=e.callback,i=e.options;t.removeEventListener(n,r,i)})),this.eventListeners=[])}function Ge(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):Ve.call(e,e.elements.container,"ready",t)})).then((function(){}))}function Xe(e){be.promise(e)&&e.then(null,(function(){}))}function Je(e){return be.array(e)?e.filter((function(t,n){return e.indexOf(t)===n})):e}function Qe(e,t){return be.array(e)&&e.length?e.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e})):null}function $e(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}var Ze=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((function(e,t){var n=u(t,2),r=n[0],i=n[1];return c(c({},e),{},m({},r/i,[r,i]))}),{});function et(e){return!!(be.array(e)||be.string(e)&&e.includes(":"))&&(be.array(e)?e:e.split(":")).map(Number).every(be.number)}function tt(e){if(!be.array(e)||!e.every(be.number))return null;var t=u(e,2),n=t[0],r=t[1],i=function e(t,n){return 0===n?t:e(n,t%n)}(n,r);return[n/i,r/i]}function nt(e){var t=function(e){return et(e)?e.split(":").map(Number):null},n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!be.empty(this.embed)&&be.array(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var r=this.media;n=[r.videoWidth,r.videoHeight]}return tt(n)}function rt(e){if(!this.isVideo)return{};var t=this.elements.wrapper,n=nt.call(this,e);if(!be.array(n))return{};var r=u(tt(n),2),i=r[0],o=r[1],a=100/i*o;if($e("aspect-ratio: ".concat(i,"/").concat(o))?t.style.aspectRatio="".concat(i,"/").concat(o):t.style.paddingBottom="".concat(a,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var l=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),s=(l-a)/(l/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(s,"%)")}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:a,ratio:n}}function it(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,r=e/t,i=Qe(Object.keys(Ze),r);return Math.abs(i-r)<=n?Ze[i]:[e,t]}var ot={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var n=t.getAttribute("type");return!!be.empty(n)||Be.mime.call(e,n)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:ot.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,be.empty(this.config.ratio)||rt.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=ot.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&&be.function(e.config.quality.onChange))e.config.quality.onChange(t);else{var n=ot.getSources.call(e).find((function(e){return Number(e.getAttribute("size"))===t}));if(!n)return;var r=e.media,i=r.currentTime,o=r.paused,a=r.preload,l=r.readyState,s=r.playbackRate;e.media.src=n.getAttribute("src"),("none"!==a||l)&&(e.once("loadedmetadata",(function(){e.speed=s,e.currentTime=i,o||Xe(e.play())})),e.media.load())}Ye.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(Ee(ot.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function at(e){return"".concat(e,"-").concat(Math.floor(1e4*Math.random()))}function lt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return be.empty(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return n[t].toString()}))}var st=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString())},ct=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}))};function ut(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return e=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return e=st(e,"-"," "),e=st(e,"_"," "),e=ct(e),st(e," ","")}(e),e.charAt(0).toLowerCase()+e.slice(1)}function dt(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}var pt={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},mt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(be.empty(e)||be.empty(t))return"";var n=ke(t.i18n,e);if(be.empty(n))return Object.keys(pt).includes(e)?pt[e]:"";var r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach((function(e){var t=u(e,2),r=t[0],i=t[1];n=st(n,r,i)})),n},ht=function(){function e(t){var n=this;o(this,e),F(this,"get",(function(t){if(!e.supported||!n.enabled)return null;var r=window.localStorage.getItem(n.key);if(be.empty(r))return null;var i=JSON.parse(r);return be.string(t)&&t.length?i[t]:i})),F(this,"set",(function(t){if(e.supported&&n.enabled&&be.object(t)){var r=n.get();be.empty(r)&&(r={}),xe(r,t);try{window.localStorage.setItem(n.key,JSON.stringify(r))}catch(t){}}})),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return l(e,null,[{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 ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(n,r){try{var i=new XMLHttpRequest;if(!("withCredentials"in i))return;i.addEventListener("load",(function(){if("text"===t)try{n(JSON.parse(i.responseText))}catch(e){n(i.responseText)}else n(i.response)})),i.addEventListener("error",(function(){throw new Error(i.status)})),i.open("GET",e,!0),i.responseType=t,i.send()}catch(e){r(e)}}))}function gt(e,t){if(be.string(e)){var n="cache",r=be.string(t),i=function(){return null!==document.getElementById(t)},o=function(e,t){e.innerHTML=t,r&&i()||document.body.insertAdjacentElement("afterbegin",e)};if(!r||!i()){var a=ht.supported,l=document.createElement("div");if(l.setAttribute("hidden",""),r&&l.setAttribute("id",t),a){var s=window.localStorage.getItem("".concat(n,"-").concat(t));if(null!==s){var c=JSON.parse(s);o(l,c.content)}}ft(e).then((function(e){if(!be.empty(e)){if(a)try{window.localStorage.setItem("".concat(n,"-").concat(t),JSON.stringify({content:e}))}catch(e){}o(l,e)}})).catch((function(){}))}}}var yt=function(e){return Math.trunc(e/60/60%60,10)};function bt(){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(!be.number(e))return bt(void 0,t,n);var r=function(e){return"0".concat(e).slice(-2)},i=yt(e),o=function(e){return Math.trunc(e/60%60,10)}(e),a=function(e){return Math.trunc(e%60,10)}(e);return i=t||i>0?"".concat(i,":"):"","".concat(n&&e>0?"-":"").concat(i).concat(r(o),":").concat(r(a))}var vt={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,n=e.host!==t||_e.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements:function(){try{return this.elements.controls=De.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:ze.call(this,this.config.selectors.buttons.play),pause:De.call(this,this.config.selectors.buttons.pause),restart:De.call(this,this.config.selectors.buttons.restart),rewind:De.call(this,this.config.selectors.buttons.rewind),fastForward:De.call(this,this.config.selectors.buttons.fastForward),mute:De.call(this,this.config.selectors.buttons.mute),pip:De.call(this,this.config.selectors.buttons.pip),airplay:De.call(this,this.config.selectors.buttons.airplay),settings:De.call(this,this.config.selectors.buttons.settings),captions:De.call(this,this.config.selectors.buttons.captions),fullscreen:De.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=De.call(this,this.config.selectors.progress),this.elements.inputs={seek:De.call(this,this.config.selectors.inputs.seek),volume:De.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:De.call(this,this.config.selectors.display.buffer),currentTime:De.call(this,this.config.selectors.display.currentTime),duration:De.call(this,this.config.selectors.display.duration)},be.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(oe){return this.debug.warn("It looks like there is a problem with your custom controls HTML",oe),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var n="http://www.w3.org/2000/svg",r=vt.getIconUrl.call(this),i="".concat(r.cors?"":r.url,"#").concat(this.config.iconPrefix),o=document.createElementNS(n,"svg");Te(o,xe(t,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(n,"use"),l="".concat(i,"-").concat(e);return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",l),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),o.appendChild(a),o},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=mt(e,this.config);return Ce("span",c(c({},t),{},{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),n)},createBadge:function(e){if(be.empty(e))return null;var t=Ce("span",{class:this.config.classNames.menu.value});return t.appendChild(Ce("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=this,r=xe({},t),i=ut(e),o={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(e){Object.keys(r).includes(e)&&(o[e]=r[e],delete r[e])})),"button"!==o.element||Object.keys(r).includes("type")||(r.type="button"),Object.keys(r).includes("class")?r.class.split(" ").some((function(e){return e===n.config.classNames.control}))||xe(r,{class:"".concat(r.class," ").concat(this.config.classNames.control)}):r.class=this.config.classNames.control,e){case"play":o.toggle=!0,o.label="play",o.labelPressed="pause",o.icon="play",o.iconPressed="pause";break;case"mute":o.toggle=!0,o.label="mute",o.labelPressed="unmute",o.icon="volume",o.iconPressed="muted";break;case"captions":o.toggle=!0,o.label="enableCaptions",o.labelPressed="disableCaptions",o.icon="captions-off",o.iconPressed="captions-on";break;case"fullscreen":o.toggle=!0,o.label="enterFullscreen",o.labelPressed="exitFullscreen",o.icon="enter-fullscreen",o.iconPressed="exit-fullscreen";break;case"play-large":r.class+=" ".concat(this.config.classNames.control,"--overlaid"),i="play",o.label="play",o.icon="play";break;default:be.empty(o.label)&&(o.label=i),be.empty(o.icon)&&(o.icon=e)}var a=Ce(o.element);return o.toggle?(a.appendChild(vt.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(vt.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(vt.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(vt.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(vt.createIcon.call(this,o.icon)),a.appendChild(vt.createLabel.call(this,o.label))),xe(r,Le(this.config.selectors.buttons[i],r)),Te(a,r),"play"===i?(be.array(this.elements.buttons[i])||(this.elements.buttons[i]=[]),this.elements.buttons[i].push(a)):this.elements.buttons[i]=a,a},createRange:function(e,t){var n=Ce("input",xe(Le(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":mt(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,vt.updateRangeFill.call(this,n),se.setup(n),n},createProgress:function(e,t){var n=Ce("progress",xe(Le(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(Ce("span",null,"0"));var r={played:"played",buffer:"buffered"}[e],i=r?mt(r,this.config):"";n.innerText="% ".concat(i.toLowerCase())}return this.elements.display[e]=n,n},createTime:function(e,t){var n=Le(this.config.selectors.display[e],t),r=Ce("div",xe(n,{class:"".concat(n.class?n.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":mt(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts:function(e,t){var n=this;Ve.call(this,e,"keydown keyup",(function(r){if([" ","ArrowUp","ArrowDown","ArrowRight"].includes(r.key)&&(r.preventDefault(),r.stopPropagation(),"keydown"!==r.type)){var i,o=je(e,'[role="menuitemradio"]');if(!o&&[" ","ArrowRight"].includes(r.key))vt.showMenuPanel.call(n,t,!0);else" "!==r.key&&("ArrowDown"===r.key||o&&"ArrowRight"===r.key?(i=e.nextElementSibling,be.element(i)||(i=e.parentNode.firstElementChild)):(i=e.previousElementSibling,be.element(i)||(i=e.parentNode.lastElementChild)),He.call(n,i,!0))}}),!1),Ve.call(this,e,"keyup",(function(e){"Return"===e.key&&vt.focusFirstMenuItem.call(n,null,!0)}))},createMenuItem:function(e){var t=this,n=e.value,r=e.list,i=e.type,o=e.title,a=e.badge,l=void 0===a?null:a,s=e.checked,c=void 0!==s&&s,u=Le(this.config.selectors.inputs[i]),d=Ce("button",xe(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":c,value:n})),p=Ce("span");p.innerHTML=o,be.element(l)&&p.appendChild(l),d.appendChild(p),Object.defineProperty(d,"checked",{enumerable:!0,get:function(){return"true"===d.getAttribute("aria-checked")},set:function(e){e&&Array.from(d.parentNode.children).filter((function(e){return je(e,'[role="menuitemradio"]')})).forEach((function(e){return e.setAttribute("aria-checked","false")})),d.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(d,"click keyup",(function(e){if(!be.keyboardEvent(e)||" "===e.key){switch(e.preventDefault(),e.stopPropagation(),d.checked=!0,i){case"language":t.currentTrack=Number(n);break;case"quality":t.quality=n;break;case"speed":t.speed=parseFloat(n)}vt.showMenuPanel.call(t,"home",be.keyboardEvent(e))}}),i,!1),vt.bindMenuItemShortcuts.call(this,d,i),r.appendChild(d)},formatTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return be.number(e)?bt(e,yt(this.duration)>0,t):e},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];be.element(e)&&be.number(t)&&(e.innerText=vt.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(be.element(this.elements.inputs.volume)&&vt.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),be.element(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;be.element(e)&&(e.value=t,vt.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&be.event(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&&vt.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(e,n){var r=be.number(n)?n:0,i=be.element(e)?e:t.elements.display.buffer;if(be.element(i)){i.value=r;var o=i.getElementsByTagName("span")[0];be.element(o)&&(o.childNodes[0].nodeValue=r)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=be.event(e)?e.target:e;if(be.element(t)&&"range"===t.getAttribute("type")){if(je(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var n=vt.formatTime(this.currentTime),r=vt.formatTime(this.duration),i=mt("seekLabel",this.config);t.setAttribute("aria-valuetext",i.replace("{currentTime}",n).replace("{duration}",r))}else if(je(t,this.config.selectors.inputs.volume)){var o=100*t.value;t.setAttribute("aria-valuenow",o),t.setAttribute("aria-valuetext","".concat(o.toFixed(1),"%"))}else t.setAttribute("aria-valuenow",t.value);(_e.isWebKit||_e.isIPadOS)&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip:function(e){var t,n;if(this.config.tooltips.seek&&be.element(this.elements.inputs.seek)&&be.element(this.elements.display.seekTooltip)&&0!==this.duration){var r=this.elements.display.seekTooltip,i="".concat(this.config.classNames.tooltip,"--visible"),o=function(e){return Ie(r,i,e)};if(this.touch)o(!1);else{var a=0,l=this.elements.progress.getBoundingClientRect();if(be.event(e))a=100/l.width*(e.pageX-l.left);else{if(!Oe(r,i))return;a=parseFloat(r.style.left,10)}a<0?a=0:a>100&&(a=100);var s=this.duration/100*a;r.innerText=vt.formatTime(s);var c=null===(t=this.config.markers)||void 0===t||null===(n=t.points)||void 0===n?void 0:n.find((function(e){return e.time===Math.round(s)}));c&&r.insertAdjacentHTML("afterbegin","".concat(c.label,"<br>")),r.style.left="".concat(a,"%"),be.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&o("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!be.element(this.elements.display.duration)&&this.config.invertTime;vt.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||vt.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return Ne(this.elements.display.currentTime,!0),void Ne(this.elements.progress,!0);be.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=be.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&vt.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&vt.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&vt.setMarkers.call(this),vt.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){Ne(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,n){var r=this.elements.settings.panels[e],i=null,o=t;if("captions"===e)i=this.currentTrack;else{if(i=be.empty(n)?this[e]:n,be.empty(i)&&(i=this.config[e].default),!be.empty(this.options[e])&&!this.options[e].includes(i))return void this.debug.warn("Unsupported value of '".concat(i,"' for ").concat(e));if(!this.config[e].options.includes(i))return void this.debug.warn("Disabled value of '".concat(i,"' for ").concat(e))}if(be.element(o)||(o=r&&r.querySelector('[role="menu"]')),be.element(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=vt.getLabel.call(this,e,i);var a=o&&o.querySelector('[value="'.concat(i,'"]'));be.element(a)&&(a.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?mt("normal",this.config):"".concat(t,"&times;");case"quality":if(be.number(t)){var n=mt("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return ct(t);case"captions":return kt.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(be.element(this.elements.settings.panels.quality)){var n="quality",r=this.elements.settings.panels.quality.querySelector('[role="menu"]');be.array(e)&&(this.options.quality=Je(e).filter((function(e){return t.config.quality.options.includes(e)})));var i=!be.empty(this.options.quality)&&this.options.quality.length>1;if(vt.toggleMenuButton.call(this,n,i),Pe(r),vt.checkMenu.call(this),i){var o=function(e){var n=mt("qualityBadge.".concat(e),t.config);return n.length?vt.createBadge.call(t,n):null};this.options.quality.sort((function(e,n){var r=t.config.quality.options;return r.indexOf(e)>r.indexOf(n)?1:-1})).forEach((function(e){vt.createMenuItem.call(t,{value:e,list:r,type:n,title:vt.getLabel.call(t,"quality",e),badge:o(e)})})),vt.updateSetting.call(this,n,r)}}},setCaptionsMenu:function(){var e=this;if(be.element(this.elements.settings.panels.captions)){var t="captions",n=this.elements.settings.panels.captions.querySelector('[role="menu"]'),r=kt.getTracks.call(this),i=Boolean(r.length);if(vt.toggleMenuButton.call(this,t,i),Pe(n),vt.checkMenu.call(this),i){var o=r.map((function(t,r){return{value:r,checked:e.captions.toggled&&e.currentTrack===r,title:kt.getLabel.call(e,t),badge:t.language&&vt.createBadge.call(e,t.language.toUpperCase()),list:n,type:"language"}}));o.unshift({value:-1,checked:!this.captions.toggled,title:mt("disabled",this.config),list:n,type:"language"}),o.forEach(vt.createMenuItem.bind(this)),vt.updateSetting.call(this,t,n)}}},setSpeedMenu:function(){var e=this;if(be.element(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 r=!be.empty(this.options.speed)&&this.options.speed.length>1;vt.toggleMenuButton.call(this,t,r),Pe(n),vt.checkMenu.call(this),r&&(this.options.speed.forEach((function(r){vt.createMenuItem.call(e,{value:r,list:n,type:t,title:vt.getLabel.call(e,"speed",r)})})),vt.updateSetting.call(this,t,n))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!be.empty(e)&&Object.values(e).some((function(e){return!e.hidden}));Ne(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;be.element(n)||(n=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var r=n.querySelector('[role^="menuitem"]');He.call(this,r,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(be.element(t)&&be.element(n)){var r=t.hidden,i=r;if(be.boolean(e))i=e;else if(be.keyboardEvent(e)&&"Escape"===e.key)i=!1;else if(be.event(e)){var o=be.function(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(o);if(a||!a&&e.target!==n&&i)return}n.setAttribute("aria-expanded",i),Ne(t,!i),Ie(this.elements.container,this.config.classNames.menu.open,i),i&&be.keyboardEvent(e)?vt.focusFirstMenuItem.call(this,null,!0):i||r||He.call(this,n,be.keyboardEvent(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,r=t.scrollHeight;return Ee(t),{width:n,height:r}},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],r=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(be.element(r)){var i=r.parentNode,o=Array.from(i.children).find((function(e){return!e.hidden}));if(Be.transitions&&!Be.reducedMotion){i.style.width="".concat(o.scrollWidth,"px"),i.style.height="".concat(o.scrollHeight,"px");var a=vt.getMenuSize.call(this,r);Ve.call(this,i,ve,(function t(n){n.target===i&&["width","height"].includes(n.propertyName)&&(i.style.width="",i.style.height="",Ue.call(e,i,ve,t))})),i.style.width="".concat(a.width,"px"),i.style.height="".concat(a.height,"px")}Ne(o,!0),Ne(r,!1),vt.focusFirstMenuItem.call(this,r,n)}},setDownloadUrl:function(){var e=this.elements.buttons.download;be.element(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,n=vt.bindMenuItemShortcuts,r=vt.createButton,i=vt.createProgress,o=vt.createRange,a=vt.createTime,l=vt.setQualityMenu,s=vt.setSpeedMenu,c=vt.showMenuPanel;this.elements.controls=null,be.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(r.call(this,"play-large"));var u=Ce("div",Le(this.config.selectors.controls.wrapper));this.elements.controls=u;var d={class:"plyr__controls__item"};return Je(be.array(this.config.controls)?this.config.controls:[]).forEach((function(l){if("restart"===l&&u.appendChild(r.call(t,"restart",d)),"rewind"===l&&u.appendChild(r.call(t,"rewind",d)),"play"===l&&u.appendChild(r.call(t,"play",d)),"fast-forward"===l&&u.appendChild(r.call(t,"fast-forward",d)),"progress"===l){var s=Ce("div",{class:"".concat(d.class," plyr__progress__container")}),p=Ce("div",Le(t.config.selectors.progress));if(p.appendChild(o.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),p.appendChild(i.call(t,"buffer")),t.config.tooltips.seek){var m=Ce("span",{class:t.config.classNames.tooltip},"00:00");p.appendChild(m),t.elements.display.seekTooltip=m}t.elements.progress=p,s.appendChild(t.elements.progress),u.appendChild(s)}if("current-time"===l&&u.appendChild(a.call(t,"currentTime",d)),"duration"===l&&u.appendChild(a.call(t,"duration",d)),"mute"===l||"volume"===l){var h=t.elements.volume;if(be.element(h)&&u.contains(h)||(h=Ce("div",xe({},d,{class:"".concat(d.class," plyr__volume").trim()})),t.elements.volume=h,u.appendChild(h)),"mute"===l&&h.appendChild(r.call(t,"mute")),"volume"===l&&!_e.isIos&&!_e.isIPadOS){var f={max:1,step:.05,value:t.config.volume};h.appendChild(o.call(t,"volume",xe(f,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===l&&u.appendChild(r.call(t,"captions",d)),"settings"===l&&!be.empty(t.config.settings)){var g=Ce("div",xe({},d,{class:"".concat(d.class," plyr__menu").trim(),hidden:""}));g.appendChild(r.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var y=Ce("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),b=Ce("div"),v=Ce("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=Ce("div",{role:"menu"});v.appendChild(w),b.appendChild(v),t.elements.settings.panels.home=v,t.config.settings.forEach((function(r){var i=Ce("button",xe(Le(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,i,r),Ve.call(t,i,"click",(function(){c.call(t,r,!1)}));var o=Ce("span",null,mt(r,t.config)),a=Ce("span",{class:t.config.classNames.menu.value});a.innerHTML=e[r],o.appendChild(a),i.appendChild(o),w.appendChild(i);var l=Ce("div",{id:"plyr-settings-".concat(e.id,"-").concat(r),hidden:""}),s=Ce("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});s.appendChild(Ce("span",{"aria-hidden":!0},mt(r,t.config))),s.appendChild(Ce("span",{class:t.config.classNames.hidden},mt("menuBack",t.config))),Ve.call(t,l,"keydown",(function(e){"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),c.call(t,"home",!0))}),!1),Ve.call(t,s,"click",(function(){c.call(t,"home",!1)})),l.appendChild(s),l.appendChild(Ce("div",{role:"menu"})),b.appendChild(l),t.elements.settings.buttons[r]=i,t.elements.settings.panels[r]=l})),y.appendChild(b),g.appendChild(y),u.appendChild(g),t.elements.settings.popup=y,t.elements.settings.menu=g}if("pip"===l&&Be.pip&&u.appendChild(r.call(t,"pip",d)),"airplay"===l&&Be.airplay&&u.appendChild(r.call(t,"airplay",d)),"download"===l){var _=xe({},d,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(_.download="");var k=t.config.urls.download;!be.url(k)&&t.isEmbed&&xe(_,{icon:"logo-".concat(t.provider),label:t.provider}),u.appendChild(r.call(t,"download",_))}"fullscreen"===l&&u.appendChild(r.call(t,"fullscreen",d))})),this.isHTML5&&l.call(this,ot.getQualityOptions.call(this)),s.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=vt.getIconUrl.call(this);t.cors&&gt(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var r,i={id:this.id,seektime:this.config.seekTime,title:this.config.title},o=!0;if(be.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),be.element(this.config.controls)||be.string(this.config.controls)?n=this.config.controls:(n=vt.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:kt.getLabel.call(this)}),o=!1),o&&be.string(this.config.controls)&&(n=function(e){var t=e;return Object.entries(i).forEach((function(e){var n=u(e,2),r=n[0],i=n[1];t=st(t,"{".concat(r,"}"),i)})),t}(n)),be.string(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),be.element(r)||(r=this.elements.container),r[be.element(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),be.element(this.elements.controls)||vt.findElements.call(this),!be.empty(this.elements.buttons)){var a=function(t){var n=e.config.classNames.controlPressed;t.setAttribute("aria-pressed","false"),Object.defineProperty(t,"pressed",{configurable:!0,enumerable:!0,get:function(){return Oe(t,n)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ie(t,n,e),t.setAttribute("aria-pressed",e?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){be.array(e)||be.nodeList(e)?Array.from(e).filter(Boolean).forEach(a):a(e)}))}if(_e.isEdge&&we(r),this.config.tooltips.controls){var l=this.config,s=l.classNames,c=l.selectors,d="".concat(c.controls.wrapper," ").concat(c.labels," .").concat(s.hidden),p=ze.call(this,d);Array.from(p).forEach((function(t){Ie(t,e.config.classNames.hidden,!1),Ie(t,e.config.classNames.tooltip,!0)}))}},setMediaMetadata:function(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch(oe){}},setMarkers:function(){var e,t,n=this;if(this.duration&&!this.elements.markers){var r=null===(e=this.config.markers)||void 0===e||null===(t=e.points)||void 0===t?void 0:t.filter((function(e){var t=e.time;return t>0&&t<n.duration}));if(null!=r&&r.length){var i=document.createDocumentFragment(),o=document.createDocumentFragment(),a=null,l="".concat(this.config.classNames.tooltip,"--visible"),s=function(e){return Ie(a,l,e)};r.forEach((function(e){var t=Ce("span",{class:n.config.classNames.marker},""),r=e.time/n.duration*100+"%";a&&(t.addEventListener("mouseenter",(function(){e.label||(a.style.left=r,a.innerHTML=e.label,s(!0))})),t.addEventListener("mouseleave",(function(){s(!1)}))),t.addEventListener("click",(function(){n.currentTime=e.time})),t.style.left=r,o.appendChild(t)})),i.appendChild(o),this.config.tooltips.seek||(a=Ce("span",{class:this.config.classNames.tooltip},""),i.appendChild(a)),this.elements.markers={points:o,tip:a},this.elements.progress.appendChild(i)}}}};function wt(e){var t=e;if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var n=document.createElement("a");n.href=t,t=n.href}try{return new URL(t)}catch(e){return null}}function _t(e){var t=new URLSearchParams;return be.object(e)&&Object.entries(e).forEach((function(e){var n=u(e,2),r=n[0],i=n[1];t.set(r,i)})),t}var kt={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Be.textTracks)be.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&vt.setCaptionsMenu.call(this);else{if(be.element(this.elements.captions)||(this.elements.captions=Ce("div",Le(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),function(e,t){be.element(e)&&be.element(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),_e.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach((function(e){var t=e.getAttribute("src"),n=wt(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&ft(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){Ee(e)}))}))}var t=Je((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();"auto"===n&&(n=u(t,1)[0]);var r=this.storage.get("captions");if(be.boolean(r)||(r=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:r,language:n,languages:t}),this.isHTML5){var i=this.config.captions.update?"addtrack removetrack":"removetrack";Ve.call(this,this.media.textTracks,i,kt.update.bind(this))}setTimeout(kt.update.bind(this),0)}},update:function(){var e=this,t=kt.getTracks.call(this,!0),n=this.captions,r=n.active,i=n.language,o=n.meta,a=n.currentTrackNode,l=Boolean(t.find((function(e){return e.language===i})));this.isHTML5&&this.isVideo&&t.filter((function(e){return!o.get(e)})).forEach((function(t){e.debug.log("Track added",t),o.set(t,{default:"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),Ve.call(e,t,"cuechange",(function(){return kt.updateCues.call(e)}))})),(l&&this.language!==i||!t.includes(a))&&(kt.setLanguage.call(this,i),kt.toggle.call(this,r&&l)),this.elements&&Ie(this.elements.container,this.config.classNames.captions.enabled,!be.empty(t)),be.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&vt.setCaptionsMenu.call(this)},toggle:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var r=this.captions.toggled,o=this.config.classNames.captions.active,a=be.nullOrUndefined(e)?!r:e;if(a!==r){if(n||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!n){var l=kt.getTracks.call(this),s=kt.findTrack.call(this,[this.captions.language].concat(i(this.captions.languages)),!0);return this.captions.language=s.language,void kt.set.call(this,l.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),Ie(this.elements.container,o,a),this.captions.toggled=a,vt.updateSetting.call(this,"captions"),Ye.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=kt.getTracks.call(this);if(-1!==e)if(be.number(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var r=n[e],i=(r||{}).language;this.captions.currentTrackNode=r,vt.updateSetting.call(this,"captions"),t||(this.captions.language=i,this.storage.set({language:i})),this.isVimeo&&this.embed.enableTextTrack(i),Ye.call(this,this.media,"languagechange")}kt.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&kt.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else kt.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(be.string(e)){var n=e.toLowerCase();this.captions.language=n;var r=kt.getTracks.call(this),i=kt.findTrack.call(this,[n]);kt.set.call(this,r.indexOf(i),t)}else this.debug.warn("Invalid language argument",e)},getTracks:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).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,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=kt.getTracks.call(this),o=function(e){return Number((n.captions.meta.get(e)||{}).default)},a=Array.from(i).sort((function(e,t){return o(t)-o(e)}));return e.every((function(e){return t=a.find((function(t){return t.language===e})),!t})),t||(r?a[0]:void 0)},getCurrentTrack:function(){return kt.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!be.track(t)&&Be.textTracks&&this.captions.toggled&&(t=kt.getCurrentTrack.call(this)),be.track(t)?be.empty(t.label)?be.empty(t.language)?mt("enabled",this.config):e.language.toUpperCase():t.label:mt("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(be.element(this.elements.captions))if(be.nullOrUndefined(e)||Array.isArray(e)){var t=e;if(!t){var n=kt.getCurrentTrack.call(this);t=Array.from((n||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(dt)}var r=t.map((function(e){return e.trim()})).join("\n");if(r!==this.elements.captions.innerHTML){Pe(this.elements.captions);var i=Ce("span",Le(this.config.selectors.caption));i.innerHTML=r,this.elements.captions.appendChild(i),Ye.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},xt={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.7.8/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/oembed.json?url={0}"},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",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",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"},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",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},At="picture-in-picture",Tt="inline",Ct={html5:"html5",youtube:"youtube",vimeo:"vimeo"},St="audio",Et="video";var Pt=function(){},Mt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return l(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Pt}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Pt}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Pt}}]),e}(),Lt=function(){function e(t){var n=this;o(this,e),F(this,"onChange",(function(){if(n.supported){var e=n.player.elements.buttons.fullscreen;be.element(e)&&(e.pressed=n.active);var t=n.target===n.player.media?n.target:n.player.elements.container;Ye.call(n.player,t,n.active?"enterfullscreen":"exitfullscreen",!0)}})),F(this,"toggleFallback",(function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r?n.scrollPosition={x:null!==(e=window.scrollX)&&void 0!==e?e:0,y:null!==(t=window.scrollY)&&void 0!==t?t:0}:window.scrollTo(n.scrollPosition.x,n.scrollPosition.y),document.body.style.overflow=r?"hidden":"",Ie(n.target,n.player.config.classNames.fullscreen.fallback,r),_e.isIos){var i=document.head.querySelector('meta[name="viewport"]'),o="viewport-fit=cover";i||(i=document.createElement("meta")).setAttribute("name","viewport");var a=be.string(i.content)&&i.content.includes(o);r?(n.cleanupViewport=!a,a||(i.content+=",".concat(o))):n.cleanupViewport&&(i.content=i.content.split(",").filter((function(e){return e.trim()!==o})).join(","))}n.onChange()})),F(this,"trapFocus",(function(e){if(!_e.isIos&&!_e.isIPadOS&&n.active&&"Tab"===e.key){var t=document.activeElement,r=ze.call(n.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),i=u(r,1)[0],o=r[r.length-1];t!==o||e.shiftKey?t===i&&e.shiftKey&&(o.focus(),e.preventDefault()):(i.focus(),e.preventDefault())}})),F(this,"update",(function(){var t;n.supported?(t=n.forceFallback?"Fallback (forced)":e.nativeSupported?"Native":"Fallback",n.player.debug.log("".concat(t," fullscreen enabled"))):n.player.debug.log("Fullscreen not supported and fallback disabled");Ie(n.player.elements.container,n.player.config.classNames.fullscreen.enabled,n.supported)})),F(this,"enter",(function(){n.supported&&(_e.isIos&&n.player.config.fullscreen.iosNative?n.player.isVimeo?n.player.embed.requestFullscreen():n.target.webkitEnterFullscreen():!e.nativeSupported||n.forceFallback?n.toggleFallback(!0):n.prefix?be.empty(n.prefix)||n.target["".concat(n.prefix,"Request").concat(n.property)]():n.target.requestFullscreen({navigationUI:"hide"}))})),F(this,"exit",(function(){if(n.supported)if(_e.isIos&&n.player.config.fullscreen.iosNative)n.player.isVimeo?n.player.embed.exitFullscreen():n.target.webkitEnterFullscreen(),Xe(n.player.play());else if(!e.nativeSupported||n.forceFallback)n.toggleFallback(!1);else if(n.prefix){if(!be.empty(n.prefix)){var t="moz"===n.prefix?"Cancel":"Exit";document["".concat(n.prefix).concat(t).concat(n.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),F(this,"toggle",(function(){n.active?n.exit():n.enter()})),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(je.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),Ve.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){n.onChange()})),Ve.call(this.player,this.player.elements.container,"dblclick",(function(e){be.element(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)||n.player.listeners.proxy(e,n.toggle,"fullscreen")})),Ve.call(this,this.player.elements.container,"keydown",(function(e){return n.trapFocus(e)})),this.update()}return l(e,[{key:"useNative",get:function(){return e.nativeSupported&&!this.forceFallback}},{key:"supported",get:function(){return[this.player.config.fullscreen.enabled,this.player.isVideo,e.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||e.nativeSupported||!_e.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}},{key:"active",get:function(){if(!this.supported)return!1;if(!e.nativeSupported||this.forceFallback)return Oe(this.target,this.player.config.classNames.fullscreen.fallback);var t=this.prefix?this.target.getRootNode()["".concat(this.prefix).concat(this.property,"Element")]:this.target.getRootNode().fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}},{key:"target",get:function(){var e;return _e.isIos&&this.player.config.fullscreen.iosNative?this.player.media:null!==(e=this.player.elements.fullscreen)&&void 0!==e?e:this.player.elements.container}}],[{key:"nativeSupported",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(be.function(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!be.function(document["".concat(t,"ExitFullscreen")])&&!be.function(document["".concat(t,"CancelFullScreen")])||(e=t,0))})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}();function Nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(n,r){var i=new Image,o=function(){delete i.onload,delete i.onerror,(i.naturalWidth>=t?n:r)(i)};Object.assign(i,{onload:o,onerror:o,src:e})}))}var It={addStyleHook:function(){Ie(this.elements.container,this.config.selectors.container.replace(".",""),!0),Ie(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&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 It.toggleNativeControls.call(this,!0);be.element(this.elements.controls)||(vt.inject.call(this),this.listeners.controls()),It.toggleNativeControls.call(this),this.isHTML5&&kt.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,vt.updateVolume.call(this),vt.timeUpdate.call(this),vt.durationUpdate.call(this),It.checkPlaying.call(this),Ie(this.elements.container,this.config.classNames.pip.supported,Be.pip&&this.isHTML5&&this.isVideo),Ie(this.elements.container,this.config.classNames.airplay.supported,Be.airplay&&this.isHTML5),Ie(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){Ye.call(e,e.media,"ready")}),0),It.setTitle.call(this),this.poster&&It.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&vt.durationUpdate.call(this),this.config.mediaMetadata&&vt.setMediaMetadata.call(this)},setTitle:function(){var e=mt("play",this.config);if(be.string(this.config.title)&&!be.empty(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=De.call(this,"iframe");if(!be.element(t))return;var n=be.empty(this.config.title)?"video":this.config.title,r=mt("frameTitle",this.config);t.setAttribute("title",r.replace("{title}",n))}},togglePoster:function(e){Ie(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this;return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),Ge.call(this).then((function(){return Nt(e)})).catch((function(n){throw e===t.poster&&It.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:""}),It.togglePoster.call(t,!0),e})))},checkPlaying:function(e){var t=this;Ie(this.elements.container,this.config.classNames.playing,this.playing),Ie(this.elements.container,this.config.classNames.paused,this.paused),Ie(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",mt(t.playing?"pause":"play",t.config))})),be.event(e)&&"timeupdate"===e.type||It.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(){Ie(t.elements.container,t.config.classNames.loading,t.loading),It.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(c({},this.media.style)).filter((function(e){return!be.empty(e)&&be.string(e)&&e.startsWith("--plyr")})).forEach((function(t){e.elements.container.style.setProperty(t,e.media.style.getPropertyValue(t)),e.media.style.removeProperty(t)})),be.empty(this.media.style)&&this.media.removeAttribute("style")}},Ot=function(){function e(t){var n=this;o(this,e),F(this,"firstTouch",(function(){var e=n.player,t=e.elements;e.touch=!0,Ie(t.container,e.config.classNames.isTouch,!0)})),F(this,"global",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=n.player;t.config.keyboard.global&&qe.call(t,window,"keydown keyup",n.handleKey,e,!1),qe.call(t,document.body,"click",n.toggleMenu,e),We.call(t,document.body,"touchstart",n.firstTouch)})),F(this,"container",(function(){var e=n.player,t=e.config,r=e.elements,i=e.timers;!t.keyboard.global&&t.keyboard.focused&&Ve.call(e,r.container,"keydown keyup",n.handleKey,!1),Ve.call(e,r.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var n=r.controls;n&&"enterfullscreen"===t.type&&(n.pressed=!1,n.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(It.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout((function(){return It.toggleControls.call(e,!1)}),o)}));var o=function(){if(e.isVimeo&&!e.config.vimeo.premium){var t=r.wrapper,n=e.fullscreen.active,i=u(nt.call(e),2),o=i[0],a=i[1],l=$e("aspect-ratio: ".concat(o," / ").concat(a));if(n){var s=u([Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],2),c=s[0],d=s[1],p=c/d>o/a;l?(t.style.width=p?"auto":"100%",t.style.height=p?"100%":"auto"):(t.style.maxWidth=p?d/a*o+"px":null,t.style.margin=p?"0 auto":null)}else l?(t.style.width=null,t.style.height=null):(t.style.maxWidth=null,t.style.margin=null)}},a=function(){clearTimeout(i.resized),i.resized=setTimeout(o,50)};Ve.call(e,r.container,"enterfullscreen exitfullscreen",(function(t){e.fullscreen.target===r.container&&(!e.isEmbed&&be.empty(e.config.ratio)||(o(),("enterfullscreen"===t.type?Ve:Ue).call(e,window,"resize",a)))}))})),F(this,"media",(function(){var e=n.player,t=e.elements;if(Ve.call(e,e.media,"timeupdate seeking seeked",(function(t){return vt.timeUpdate.call(e,t)})),Ve.call(e,e.media,"durationchange loadeddata loadedmetadata",(function(t){return vt.durationUpdate.call(e,t)})),Ve.call(e,e.media,"ended",(function(){e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())})),Ve.call(e,e.media,"progress playing seeking seeked",(function(t){return vt.updateProgress.call(e,t)})),Ve.call(e,e.media,"volumechange",(function(t){return vt.updateVolume.call(e,t)})),Ve.call(e,e.media,"playing play pause ended emptied timeupdate",(function(t){return It.checkPlaying.call(e,t)})),Ve.call(e,e.media,"waiting canplay seeked playing",(function(t){return It.checkLoading.call(e,t)})),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){var r=De.call(e,".".concat(e.config.classNames.video));if(!be.element(r))return;Ve.call(e,t.container,"click",(function(i){([t.container,r].includes(i.target)||r.contains(i.target))&&(e.touch&&e.config.hideControls||(e.ended?(n.proxy(i,e.restart,"restart"),n.proxy(i,(function(){Xe(e.play())}),"play")):n.proxy(i,(function(){Xe(e.togglePlay())}),"play")))}))}e.supported.ui&&e.config.disableContextMenu&&Ve.call(e,t.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),Ve.call(e,e.media,"volumechange",(function(){e.storage.set({volume:e.volume,muted:e.muted})})),Ve.call(e,e.media,"ratechange",(function(){vt.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})})),Ve.call(e,e.media,"qualitychange",(function(t){vt.updateSetting.call(e,"quality",null,t.detail.quality)})),Ve.call(e,e.media,"ready qualitychange",(function(){vt.setDownloadUrl.call(e)}));var i=e.config.events.concat(["keyup","keydown"]).join(" ");Ve.call(e,e.media,i,(function(n){var r=n.detail,i=void 0===r?{}:r;"error"===n.type&&(i=e.media.error),Ye.call(e,t.container,n.type,!0,i)}))})),F(this,"proxy",(function(e,t,r){var i=n.player,o=i.config.listeners[r],a=!0;be.function(o)&&(a=o.call(i,e)),!1!==a&&be.function(t)&&t.call(i,e)})),F(this,"bind",(function(e,t,r,i){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=n.player,l=a.config.listeners[i],s=be.function(l);Ve.call(a,e,t,(function(e){return n.proxy(e,r,i)}),o&&!s)})),F(this,"controls",(function(){var e=n.player,t=e.elements,r=_e.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach((function(t){n.bind(t,"click",(function(){Xe(e.togglePlay())}),"play")})),n.bind(t.buttons.restart,"click",e.restart,"restart"),n.bind(t.buttons.rewind,"click",(function(){e.lastSeekTime=Date.now(),e.rewind()}),"rewind"),n.bind(t.buttons.fastForward,"click",(function(){e.lastSeekTime=Date.now(),e.forward()}),"fastForward"),n.bind(t.buttons.mute,"click",(function(){e.muted=!e.muted}),"mute"),n.bind(t.buttons.captions,"click",(function(){return e.toggleCaptions()})),n.bind(t.buttons.download,"click",(function(){Ye.call(e,e.media,"download")}),"download"),n.bind(t.buttons.fullscreen,"click",(function(){e.fullscreen.toggle()}),"fullscreen"),n.bind(t.buttons.pip,"click",(function(){e.pip="toggle"}),"pip"),n.bind(t.buttons.airplay,"click",e.airplay,"airplay"),n.bind(t.buttons.settings,"click",(function(t){t.stopPropagation(),t.preventDefault(),vt.toggleMenu.call(e,t)}),null,!1),n.bind(t.buttons.settings,"keyup",(function(t){[" ","Enter"].includes(t.key)&&("Enter"!==t.key?(t.preventDefault(),t.stopPropagation(),vt.toggleMenu.call(e,t)):vt.focusFirstMenuItem.call(e,null,!0))}),null,!1),n.bind(t.settings.menu,"keydown",(function(t){"Escape"===t.key&&vt.toggleMenu.call(e,t)})),n.bind(t.inputs.seek,"mousedown mousemove",(function(e){var n=t.progress.getBoundingClientRect(),r=100/n.width*(e.pageX-n.left);e.currentTarget.setAttribute("seek-value",r)})),n.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(t){var n=t.currentTarget,r="play-on-seeked";if(!be.keyboardEvent(t)||["ArrowLeft","ArrowRight"].includes(t.key)){e.lastSeekTime=Date.now();var i=n.hasAttribute(r),o=["mouseup","touchend","keyup"].includes(t.type);i&&o?(n.removeAttribute(r),Xe(e.play())):!o&&e.playing&&(n.setAttribute(r,""),e.pause())}})),_e.isIos){var i=ze.call(e,'input[type="range"]');Array.from(i).forEach((function(e){return n.bind(e,r,(function(e){return we(e.target)}))}))}n.bind(t.inputs.seek,r,(function(t){var n=t.currentTarget,r=n.getAttribute("seek-value");be.empty(r)&&(r=n.value),n.removeAttribute("seek-value"),e.currentTime=r/n.max*e.duration}),"seek"),n.bind(t.progress,"mouseenter mouseleave mousemove",(function(t){return vt.updateSeekTooltip.call(e,t)})),n.bind(t.progress,"mousemove touchmove",(function(t){var n=e.previewThumbnails;n&&n.loaded&&n.startMove(t)})),n.bind(t.progress,"mouseleave touchend click",(function(){var t=e.previewThumbnails;t&&t.loaded&&t.endMove(!1,!0)})),n.bind(t.progress,"mousedown touchstart",(function(t){var n=e.previewThumbnails;n&&n.loaded&&n.startScrubbing(t)})),n.bind(t.progress,"mouseup touchend",(function(t){var n=e.previewThumbnails;n&&n.loaded&&n.endScrubbing(t)})),_e.isWebKit&&Array.from(ze.call(e,'input[type="range"]')).forEach((function(t){n.bind(t,"input",(function(t){return vt.updateRangeFill.call(e,t.target)}))})),e.config.toggleInvert&&!be.element(t.display.duration)&&n.bind(t.display.currentTime,"click",(function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,vt.timeUpdate.call(e))})),n.bind(t.inputs.volume,r,(function(t){e.volume=t.target.value}),"volume"),n.bind(t.controls,"mouseenter mouseleave",(function(n){t.controls.hover=!e.touch&&"mouseenter"===n.type})),t.fullscreen&&Array.from(t.fullscreen.children).filter((function(e){return!e.contains(t.container)})).forEach((function(r){n.bind(r,"mouseenter mouseleave",(function(n){t.controls&&(t.controls.hover=!e.touch&&"mouseenter"===n.type)}))})),n.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){t.controls.pressed=["mousedown","touchstart"].includes(e.type)})),n.bind(t.controls,"focusin",(function(){var r=e.config,i=e.timers;Ie(t.controls,r.classNames.noTransition,!0),It.toggleControls.call(e,!0),setTimeout((function(){Ie(t.controls,r.classNames.noTransition,!1)}),0);var o=n.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout((function(){return It.toggleControls.call(e,!1)}),o)})),n.bind(t.inputs.volume,"wheel",(function(t){var n=t.webkitDirectionInvertedFromDevice,r=[t.deltaX,-t.deltaY].map((function(e){return n?-e:e})),i=u(r,2),o=i[0],a=i[1],l=Math.sign(Math.abs(o)>Math.abs(a)?o:a);e.increaseVolume(l/50);var s=e.media.volume;(1===l&&s<1||-1===l&&s>0)&&t.preventDefault()}),"volume",!1)})),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.firstTouch=this.firstTouch.bind(this)}return l(e,[{key:"handleKey",value:function(e){var t,n=this.player,r=n.elements,i=e.key,o=e.type,a=e.altKey,l=e.ctrlKey,s=e.metaKey,c=e.shiftKey,u="keydown"===o,d=u&&i===this.lastKey;if(!(a||l||s||c)&&i)if(u){var p=document.activeElement;if(be.element(p)){var m=n.config.selectors.editable;if(p!==r.inputs.seek&&je(p,m))return;if(" "===e.key&&je(p,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(i)&&(e.preventDefault(),e.stopPropagation()),i){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d||(t=parseInt(i,10),n.currentTime=n.duration/10*t);break;case" ":case"k":d||Xe(n.togglePlay());break;case"ArrowUp":n.increaseVolume(.1);break;case"ArrowDown":n.decreaseVolume(.1);break;case"m":d||(n.muted=!n.muted);break;case"ArrowRight":n.forward();break;case"ArrowLeft":n.rewind();break;case"f":n.fullscreen.toggle();break;case"c":d||n.toggleCaptions();break;case"l":n.loop=!n.loop}"Escape"===i&&!n.fullscreen.usingNative&&n.fullscreen.active&&n.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(e){vt.toggleMenu.call(this.player,e)}}]),e}();var jt=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(){var e=function(){},t={},n={},r={};function i(e,t){if(e){var i=r[e];if(n[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function o(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function a(t,n,r,i){var o,l,s=document,c=r.async,u=(r.numRetries||0)+1,d=r.before||e,p=t.replace(/[\?|#].*$/,""),m=t.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(p)?((l=s.createElement("link")).rel="stylesheet",l.href=m,(o="hideFocus"in l)&&l.relList&&(o=0,l.rel="preload",l.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(p)?(l=s.createElement("img")).src=m:((l=s.createElement("script")).src=t,l.async=void 0===c||c),l.onload=l.onerror=l.onbeforeload=function(e){var s=e.type[0];if(o)try{l.sheet.cssText.length||(s="e")}catch(e){18!=e.code&&(s="e")}if("e"==s){if((i+=1)<u)return a(t,n,r,i)}else if("preload"==l.rel&&"style"==l.as)return l.rel="stylesheet";n(t,s,e.defaultPrevented)},!1!==d(t,l)&&s.head.appendChild(l)}function l(e,t,n){var r,i,o=(e=e.push?e:[e]).length,l=o,s=[];for(r=function(e,n,r){if("e"==n&&s.push(e),"b"==n){if(!r)return;s.push(e)}--o||t(s)},i=0;i<l;i++)a(e[i],r,n)}function s(e,n,r){var a,s;if(n&&n.trim&&(a=n),s=(a?r:n)||{},a){if(a in t)throw"LoadJS";t[a]=!0}function c(t,n){l(e,(function(e){o(s,e),t&&o({success:t,error:n},e),i(a,e)}),s)}if(s.returnPromise)return new Promise(c);c()}return s.ready=function(e,t){return function(e,t){e=e.push?e:[e];var i,o,a,l=[],s=e.length,c=s;for(i=function(e,n){n.length&&l.push(e),--c||t(l)};s--;)o=e[s],(a=n[o])?i(o,a):(r[o]=r[o]||[]).push(i)}(e,(function(e){o(t,e)})),s},s.done=function(e){i(e,[])},s.reset=function(){t={},n={},r={}},s.isDefined=function(e){return e in t},s}()}));function zt(e){return new Promise((function(t,n){jt(e,{success:t,error:n})}))}function Dt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Ye.call(this,this.media,e?"play":"pause"))}var Ht={setup:function(){var e=this;Ie(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,rt.call(e),be.object(window.Vimeo)?Ht.ready.call(e):zt(e.config.urls.vimeo.sdk).then((function(){Ht.ready.call(e)})).catch((function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)}))},ready:function(){var t=this,n=this,i=n.config.vimeo,o=i.premium,a=i.referrerPolicy,l=r(i,e),s=n.media.getAttribute("src"),d="";be.empty(s)?(s=n.media.getAttribute(n.config.attributes.embed.id),d=n.media.getAttribute(n.config.attributes.embed.hash)):d=function(e){var t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return t&&5===t.length?t[4]:null}(s);var p=d?{h:d}:{};o&&Object.assign(l,{controls:!1,sidedock:!1});var m=_t(c(c({loop:n.config.loop.active,autoplay:n.autoplay,muted:n.muted,gesture:"media",playsinline:n.config.playsinline},p),l)),h=function(e){return be.empty(e)?null:be.number(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}(s),f=Ce("iframe"),g=lt(n.config.urls.vimeo.iframe,h,m);if(f.setAttribute("src",g),f.setAttribute("allowfullscreen",""),f.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),be.empty(a)||f.setAttribute("referrerPolicy",a),o||!i.customControls)f.setAttribute("data-poster",n.poster),n.media=Me(f,n.media);else{var y=Ce("div",{class:n.config.classNames.embedContainer,"data-poster":n.poster});y.appendChild(f),n.media=Me(y,n.media)}i.customControls||ft(lt(n.config.urls.vimeo.api,g)).then((function(e){!be.empty(e)&&e.thumbnail_url&&It.setPoster.call(n,e.thumbnail_url).catch((function(){}))})),n.embed=new window.Vimeo.Player(f,{autopause:n.config.autopause,muted:n.muted}),n.media.paused=!0,n.media.currentTime=0,n.supported.ui&&n.embed.disableTextTrack(),n.media.play=function(){return Dt.call(n,!0),n.embed.play()},n.media.pause=function(){return Dt.call(n,!1),n.embed.pause()},n.media.stop=function(){n.pause(),n.currentTime=0};var b=n.media.currentTime;Object.defineProperty(n.media,"currentTime",{get:function(){return b},set:function(e){var t=n.embed,r=n.media,i=n.paused,o=n.volume,a=i&&!t.hasPlayed;r.seeking=!0,Ye.call(n,r,"seeking"),Promise.resolve(a&&t.setVolume(0)).then((function(){return t.setCurrentTime(e)})).then((function(){return a&&t.pause()})).then((function(){return a&&t.setVolume(o)})).catch((function(){}))}});var v=n.config.speed.selected;Object.defineProperty(n.media,"playbackRate",{get:function(){return v},set:function(e){n.embed.setPlaybackRate(e).then((function(){v=e,Ye.call(n,n.media,"ratechange")})).catch((function(){n.options.speed=[1]}))}});var w=n.config.volume;Object.defineProperty(n.media,"volume",{get:function(){return w},set:function(e){n.embed.setVolume(e).then((function(){w=e,Ye.call(n,n.media,"volumechange")}))}});var _=n.config.muted;Object.defineProperty(n.media,"muted",{get:function(){return _},set:function(e){var t=!!be.boolean(e)&&e;n.embed.setMuted(!!t||n.config.muted).then((function(){_=t,Ye.call(n,n.media,"volumechange")}))}});var k,x=n.config.loop;Object.defineProperty(n.media,"loop",{get:function(){return x},set:function(e){var t=be.boolean(e)?e:n.config.loop.active;n.embed.setLoop(t).then((function(){x=t}))}}),n.embed.getVideoUrl().then((function(e){k=e,vt.setDownloadUrl.call(n)})).catch((function(e){t.debug.warn(e)})),Object.defineProperty(n.media,"currentSrc",{get:function(){return k}}),Object.defineProperty(n.media,"ended",{get:function(){return n.currentTime===n.duration}}),Promise.all([n.embed.getVideoWidth(),n.embed.getVideoHeight()]).then((function(e){var r=u(e,2),i=r[0],o=r[1];n.embed.ratio=it(i,o),rt.call(t)})),n.embed.setAutopause(n.config.autopause).then((function(e){n.config.autopause=e})),n.embed.getVideoTitle().then((function(e){n.config.title=e,It.setTitle.call(t)})),n.embed.getCurrentTime().then((function(e){b=e,Ye.call(n,n.media,"timeupdate")})),n.embed.getDuration().then((function(e){n.media.duration=e,Ye.call(n,n.media,"durationchange")})),n.embed.getTextTracks().then((function(e){n.media.textTracks=e,kt.setup.call(n)})),n.embed.on("cuechange",(function(e){var t=e.cues,r=(void 0===t?[]:t).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)}));kt.updateCues.call(n,r)})),n.embed.on("loaded",(function(){n.embed.getPaused().then((function(e){Dt.call(n,!e),e||Ye.call(n,n.media,"playing")})),be.element(n.embed.element)&&n.supported.ui&&n.embed.element.setAttribute("tabindex",-1)})),n.embed.on("bufferstart",(function(){Ye.call(n,n.media,"waiting")})),n.embed.on("bufferend",(function(){Ye.call(n,n.media,"playing")})),n.embed.on("play",(function(){Dt.call(n,!0),Ye.call(n,n.media,"playing")})),n.embed.on("pause",(function(){Dt.call(n,!1)})),n.embed.on("timeupdate",(function(e){n.media.seeking=!1,b=e.seconds,Ye.call(n,n.media,"timeupdate")})),n.embed.on("progress",(function(e){n.media.buffered=e.percent,Ye.call(n,n.media,"progress"),1===parseInt(e.percent,10)&&Ye.call(n,n.media,"canplaythrough"),n.embed.getDuration().then((function(e){e!==n.media.duration&&(n.media.duration=e,Ye.call(n,n.media,"durationchange"))}))})),n.embed.on("seeked",(function(){n.media.seeking=!1,Ye.call(n,n.media,"seeked")})),n.embed.on("ended",(function(){n.media.paused=!0,Ye.call(n,n.media,"ended")})),n.embed.on("error",(function(e){n.media.error=e,Ye.call(n,n.media,"error")})),i.customControls&&setTimeout((function(){return It.build.call(n)}),0)}};function Ft(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Ye.call(this,this.media,e?"play":"pause"))}function Bt(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var Rt={setup:function(){var e=this;if(Ie(this.elements.wrapper,this.config.classNames.embed,!0),be.object(window.YT)&&be.function(window.YT.Player))Rt.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){be.function(t)&&t(),Rt.ready.call(e)},zt(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;ft(lt(this.config.urls.youtube.api,e)).then((function(e){if(be.object(e)){var n=e.title,r=e.height,i=e.width;t.config.title=n,It.setTitle.call(t),t.embed.ratio=it(i,r)}rt.call(t)})).catch((function(){rt.call(t)}))},ready:function(){var e=this,t=e.config.youtube,n=e.media&&e.media.getAttribute("id");if(be.empty(n)||!n.startsWith("youtube-")){var r=e.media.getAttribute("src");be.empty(r)&&(r=e.media.getAttribute(this.config.attributes.embed.id));var i=function(e){return be.empty(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}(r),o=Ce("div",{id:at(e.provider),"data-poster":t.customControls?e.poster:void 0});if(e.media=Me(o,e.media),t.customControls){var a=function(e){return"https://i.ytimg.com/vi/".concat(i,"/").concat(e,"default.jpg")};Nt(a("maxres"),121).catch((function(){return Nt(a("sd"),121)})).catch((function(){return Nt(a("hq"))})).then((function(t){return It.setPoster.call(e,t.src)})).then((function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}e.embed=new window.YT.Player(e.media,{videoId:i,host:Bt(t),playerVars:xe({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError:function(t){if(!e.media.error){var n=t.data,r={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 occurred";e.media.error={code:n,message:r},Ye.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var n=t.target;e.media.playbackRate=n.getPlaybackRate(),Ye.call(e,e.media,"ratechange")},onReady:function(n){if(!be.function(e.media.play)){var r=n.target;Rt.getTitle.call(e,i),e.media.play=function(){Ft.call(e,!0),r.playVideo()},e.media.pause=function(){Ft.call(e,!1),r.pauseVideo()},e.media.stop=function(){r.stopVideo()},e.media.duration=r.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(r.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,Ye.call(e,e.media,"seeking"),r.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return r.getPlaybackRate()},set:function(e){r.setPlaybackRate(e)}});var o=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return o},set:function(t){o=t,r.setVolume(100*o),Ye.call(e,e.media,"volumechange")}});var a=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return a},set:function(t){var n=be.boolean(t)?t:a;a=n,r[n?"mute":"unMute"](),r.setVolume(100*o),Ye.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return r.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var l=r.getAvailablePlaybackRates();e.options.speed=l.filter((function(t){return e.config.speed.options.includes(t)})),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),Ye.call(e,e.media,"timeupdate"),Ye.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((function(){e.media.buffered=r.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&Ye.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),Ye.call(e,e.media,"canplaythrough"))}),200),t.customControls&&setTimeout((function(){return It.build.call(e)}),50)}},onStateChange:function(n){var r=n.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(n.data)&&(e.media.seeking=!1,Ye.call(e,e.media,"seeked")),n.data){case-1:Ye.call(e,e.media,"timeupdate"),e.media.buffered=r.getVideoLoadedFraction(),Ye.call(e,e.media,"progress");break;case 0:Ft.call(e,!1),e.media.loop?(r.stopVideo(),r.playVideo()):Ye.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(Ft.call(e,!0),Ye.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){Ye.call(e,e.media,"timeupdate")}),50),e.media.duration!==r.getDuration()&&(e.media.duration=r.getDuration(),Ye.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),Ft.call(e,!1);break;case 3:Ye.call(e,e.media,"waiting")}Ye.call(e,e.elements.container,"statechange",!1,{code:n.data})}}})}}},qt={setup:function(){this.media?(Ie(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Ie(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Ie(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Ce("div",{class:this.config.classNames.video}),Ae(this.media,this.elements.wrapper),this.elements.poster=Ce("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?ot.setup.call(this):this.isYouTube?Rt.setup.call(this):this.isVimeo&&Ht.setup.call(this)):this.debug.warn("No media element found!")}},Vt=function(){function e(t){var n=this;o(this,e),F(this,"load",(function(){n.enabled&&(be.object(window.google)&&be.object(window.google.ima)?n.ready():zt(n.player.config.urls.googleIMA.sdk).then((function(){n.ready()})).catch((function(){n.trigger("error",new Error("Google IMA SDK failed to load"))})))})),F(this,"ready",(function(){var e;n.enabled||((e=n).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),n.startSafetyTimer(12e3,"ready()"),n.managerPromise.then((function(){n.clearSafetyTimer("onAdsManagerLoaded()")})),n.listeners(),n.setupIMA()})),F(this,"setupIMA",(function(){n.elements.container=Ce("div",{class:n.player.config.classNames.ads}),n.player.elements.container.appendChild(n.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(n.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(n.player.config.playsinline),n.elements.displayContainer=new google.ima.AdDisplayContainer(n.elements.container,n.player.media),n.loader=new google.ima.AdsLoader(n.elements.displayContainer),n.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(e){return n.onAdsManagerLoaded(e)}),!1),n.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return n.onAdError(e)}),!1),n.requestAds()})),F(this,"requestAds",(function(){var e=n.player.elements.container;try{var t=new google.ima.AdsRequest;t.adTagUrl=n.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!n.player.muted),n.loader.requestAds(t)}catch(e){n.onAdError(e)}})),F(this,"pollCountdown",(function(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]))return clearInterval(n.countdownTimer),void n.elements.container.removeAttribute("data-badge-text");n.countdownTimer=setInterval((function(){var e=bt(Math.max(n.manager.getRemainingTime(),0)),t="".concat(mt("advertisement",n.player.config)," - ").concat(e);n.elements.container.setAttribute("data-badge-text",t)}),100)})),F(this,"onAdsManagerLoaded",(function(e){if(n.enabled){var t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,n.manager=e.getAdsManager(n.player,t),n.cuePoints=n.manager.getCuePoints(),n.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return n.onAdError(e)})),Object.keys(google.ima.AdEvent.Type).forEach((function(e){n.manager.addEventListener(google.ima.AdEvent.Type[e],(function(e){return n.onAdEvent(e)}))})),n.trigger("loaded")}})),F(this,"addCuePoints",(function(){be.empty(n.cuePoints)||n.cuePoints.forEach((function(e){if(0!==e&&-1!==e&&e<n.player.duration){var t=n.player.elements.progress;if(be.element(t)){var r=100/n.player.duration*e,i=Ce("span",{class:n.player.config.classNames.cues});i.style.left="".concat(r.toString(),"%"),t.appendChild(i)}}}))})),F(this,"onAdEvent",(function(e){var t=n.player.elements.container,r=e.getAd(),i=e.getAdData();switch(function(e){Ye.call(n.player,n.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:n.trigger("loaded"),n.pollCountdown(!0),r.isLinear()||(r.width=t.offsetWidth,r.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:n.manager.setVolume(n.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:n.player.ended?n.loadAds():n.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:n.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:n.pollCountdown(),n.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&n.player.debug.warn("Non-fatal ad error: ".concat(i.adError.getMessage()))}})),F(this,"onAdError",(function(e){n.cancel(),n.player.debug.warn("Ads error",e)})),F(this,"listeners",(function(){var e,t=n.player.elements.container;n.player.on("canplay",(function(){n.addCuePoints()})),n.player.on("ended",(function(){n.loader.contentComplete()})),n.player.on("timeupdate",(function(){e=n.player.currentTime})),n.player.on("seeked",(function(){var t=n.player.currentTime;be.empty(n.cuePoints)||n.cuePoints.forEach((function(r,i){e<r&&r<t&&(n.manager.discardAdBreak(),n.cuePoints.splice(i,1))}))})),window.addEventListener("resize",(function(){n.manager&&n.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)}))})),F(this,"play",(function(){var e=n.player.elements.container;n.managerPromise||n.resumeContent(),n.managerPromise.then((function(){n.manager.setVolume(n.player.volume),n.elements.displayContainer.initialize();try{n.initialized||(n.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),n.manager.start()),n.initialized=!0}catch(e){n.onAdError(e)}})).catch((function(){}))})),F(this,"resumeContent",(function(){n.elements.container.style.zIndex="",n.playing=!1,Xe(n.player.media.play())})),F(this,"pauseContent",(function(){n.elements.container.style.zIndex=3,n.playing=!0,n.player.media.pause()})),F(this,"cancel",(function(){n.initialized&&n.resumeContent(),n.trigger("error"),n.loadAds()})),F(this,"loadAds",(function(){n.managerPromise.then((function(){n.manager&&n.manager.destroy(),n.managerPromise=new Promise((function(e){n.on("loaded",e),n.player.debug.log(n.manager)})),n.initialized=!1,n.requestAds()})).catch((function(){}))})),F(this,"trigger",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var o=n.events[e];be.array(o)&&o.forEach((function(e){be.function(e)&&e.apply(n,r)}))})),F(this,"on",(function(e,t){return be.array(n.events[e])||(n.events[e]=[]),n.events[e].push(t),n})),F(this,"startSafetyTimer",(function(e,t){n.player.debug.log("Safety timer invoked from: ".concat(t)),n.safetyTimer=setTimeout((function(){n.cancel(),n.clearSafetyTimer("startSafetyTimer()")}),e)})),F(this,"clearSafetyTimer",(function(e){be.nullOrUndefined(n.safetyTimer)||(n.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(n.safetyTimer),n.safetyTimer=null)})),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 l(e,[{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!be.empty(e.publisherId)||be.url(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;return be.url(e.tagUrl)?e.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(_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}))}}]),e}();function Ut(){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)}var Wt=function(e){var t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(e){var n={};e.split(/\r\n|\n|\r/).forEach((function(e){if(be.number(n.startTime)){if(!be.empty(e.trim())&&be.empty(n.text)){var t,r,i=e.trim().split("#xywh=");t=u(i,1),n.text=t[0],i[1]&&(r=u(i[1].split(","),4),n.x=r[0],n.y=r[1],n.w=r[2],n.h=r[3])}}else{var o=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})/);o&&(n.startTime=60*Number(o[1]||0)*60+60*Number(o[2])+Number(o[3])+Number("0.".concat(o[4])),n.endTime=60*Number(o[6]||0)*60+60*Number(o[7])+Number(o[8])+Number("0.".concat(o[9])))}})),n.text&&t.push(n)})),t},Yt=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},Kt=function(){function e(t){var n=this;o(this,e),F(this,"load",(function(){n.player.elements.display.seekTooltip&&(n.player.elements.display.seekTooltip.hidden=n.enabled),n.enabled&&n.getThumbnails().then((function(){n.enabled&&(n.render(),n.determineContainerAutoSizing(),n.listeners(),n.loaded=!0)}))})),F(this,"getThumbnails",(function(){return new Promise((function(e){var t=n.player.config.previewThumbnails.src;if(be.empty(t))throw new Error("Missing previewThumbnails.src config attribute");var r=function(){n.thumbnails.sort((function(e,t){return e.height-t.height})),n.player.debug.log("Preview thumbnails",n.thumbnails),e()};if(be.function(t))t((function(e){n.thumbnails=e,r()}));else{var i=(be.string(t)?[t]:t).map((function(e){return n.getThumbnail(e)}));Promise.all(i).then(r)}}))})),F(this,"getThumbnail",(function(e){return new Promise((function(t){ft(e).then((function(r){var i={frames:Wt(r),height:null,urlPrefix:""};i.frames[0].text.startsWith("/")||i.frames[0].text.startsWith("http://")||i.frames[0].text.startsWith("https://")||(i.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var o=new Image;o.onload=function(){i.height=o.naturalHeight,i.width=o.naturalWidth,n.thumbnails.push(i),t()},o.src=i.urlPrefix+i.frames[0].text}))}))})),F(this,"startMove",(function(e){if(n.loaded&&be.event(e)&&["touchmove","mousemove"].includes(e.type)&&n.player.media.duration){if("touchmove"===e.type)n.seekTime=n.player.media.duration*(n.player.elements.inputs.seek.value/100);else{var t,r,i=n.player.elements.progress.getBoundingClientRect(),o=100/i.width*(e.pageX-i.left);n.seekTime=n.player.media.duration*(o/100),n.seekTime<0&&(n.seekTime=0),n.seekTime>n.player.media.duration-1&&(n.seekTime=n.player.media.duration-1),n.mousePosX=e.pageX,n.elements.thumb.time.innerText=bt(n.seekTime);var a=null===(t=n.player.config.markers)||void 0===t||null===(r=t.points)||void 0===r?void 0:r.find((function(e){return e.time===Math.round(n.seekTime)}));a&&n.elements.thumb.time.insertAdjacentHTML("afterbegin","".concat(a.label,"<br>"))}n.showImageAtCurrentTime()}})),F(this,"endMove",(function(){n.toggleThumbContainer(!1,!0)})),F(this,"startScrubbing",(function(e){(be.nullOrUndefined(e.button)||!1===e.button||0===e.button)&&(n.mouseDown=!0,n.player.media.duration&&(n.toggleScrubbingContainer(!0),n.toggleThumbContainer(!1,!0),n.showImageAtCurrentTime()))})),F(this,"endScrubbing",(function(){n.mouseDown=!1,Math.ceil(n.lastTime)===Math.ceil(n.player.media.currentTime)?n.toggleScrubbingContainer(!1):We.call(n.player,n.player.media,"timeupdate",(function(){n.mouseDown||n.toggleScrubbingContainer(!1)}))})),F(this,"listeners",(function(){n.player.on("play",(function(){n.toggleThumbContainer(!1,!0)})),n.player.on("seeked",(function(){n.toggleThumbContainer(!1)})),n.player.on("timeupdate",(function(){n.lastTime=n.player.media.currentTime}))})),F(this,"render",(function(){n.elements.thumb.container=Ce("div",{class:n.player.config.classNames.previewThumbnails.thumbContainer}),n.elements.thumb.imageContainer=Ce("div",{class:n.player.config.classNames.previewThumbnails.imageContainer}),n.elements.thumb.container.appendChild(n.elements.thumb.imageContainer);var e=Ce("div",{class:n.player.config.classNames.previewThumbnails.timeContainer});n.elements.thumb.time=Ce("span",{},"00:00"),e.appendChild(n.elements.thumb.time),n.elements.thumb.imageContainer.appendChild(e),be.element(n.player.elements.progress)&&n.player.elements.progress.appendChild(n.elements.thumb.container),n.elements.scrubbing.container=Ce("div",{class:n.player.config.classNames.previewThumbnails.scrubbingContainer}),n.player.elements.wrapper.appendChild(n.elements.scrubbing.container)})),F(this,"destroy",(function(){n.elements.thumb.container&&n.elements.thumb.container.remove(),n.elements.scrubbing.container&&n.elements.scrubbing.container.remove()})),F(this,"showImageAtCurrentTime",(function(){n.mouseDown?n.setScrubbingContainerSize():n.setThumbContainerSizeAndPos();var e=n.thumbnails[0].frames.findIndex((function(e){return n.seekTime>=e.startTime&&n.seekTime<=e.endTime})),t=e>=0,r=0;n.mouseDown||n.toggleThumbContainer(t),t&&(n.thumbnails.forEach((function(t,i){n.loadedImages.includes(t.frames[e].text)&&(r=i)})),e!==n.showingThumb&&(n.showingThumb=e,n.loadImage(r)))})),F(this,"loadImage",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=n.showingThumb,r=n.thumbnails[e],i=r.urlPrefix,o=r.frames[t],a=r.frames[t].text,l=i+a;if(n.currentImageElement&&n.currentImageElement.dataset.filename===a)n.showImage(n.currentImageElement,o,e,t,a,!1),n.currentImageElement.dataset.index=t,n.removeOldImages(n.currentImageElement);else{n.loadingImage&&n.usingSprites&&(n.loadingImage.onload=null);var s=new Image;s.src=l,s.dataset.index=t,s.dataset.filename=a,n.showingThumbFilename=a,n.player.debug.log("Loading image: ".concat(l)),s.onload=function(){return n.showImage(s,o,e,t,a,!0)},n.loadingImage=s,n.removeOldImages(s)}})),F(this,"showImage",(function(e,t,r,i,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];n.player.debug.log("Showing thumb: ".concat(o,". num: ").concat(i,". qual: ").concat(r,". newimg: ").concat(a)),n.setImageSizeAndOffset(e,t),a&&(n.currentImageContainer.appendChild(e),n.currentImageElement=e,n.loadedImages.includes(o)||n.loadedImages.push(o)),n.preloadNearby(i,!0).then(n.preloadNearby(i,!1)).then(n.getHigherQuality(r,e,t,o))})),F(this,"removeOldImages",(function(e){Array.from(n.currentImageContainer.children).forEach((function(t){if("img"===t.tagName.toLowerCase()){var r=n.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;var i=n.currentImageContainer;setTimeout((function(){i.removeChild(t),n.player.debug.log("Removing thumb: ".concat(t.dataset.filename))}),r)}}}))})),F(this,"preloadNearby",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(r){setTimeout((function(){var i=n.thumbnails[0].frames[e].text;if(n.showingThumbFilename===i){var o;o=t?n.thumbnails[0].frames.slice(e):n.thumbnails[0].frames.slice(0,e).reverse();var a=!1;o.forEach((function(e){var t=e.text;if(t!==i&&!n.loadedImages.includes(t)){a=!0,n.player.debug.log("Preloading thumb filename: ".concat(t));var o=n.thumbnails[0].urlPrefix+t,l=new Image;l.src=o,l.onload=function(){n.player.debug.log("Preloaded thumb filename: ".concat(t)),n.loadedImages.includes(t)||n.loadedImages.push(t),r()}}})),a||r()}}),300)}))})),F(this,"getHigherQuality",(function(e,t,r,i){if(e<n.thumbnails.length-1){var o=t.naturalHeight;n.usingSprites&&(o=r.h),o<n.thumbContainerHeight&&setTimeout((function(){n.showingThumbFilename===i&&(n.player.debug.log("Showing higher quality thumb for: ".concat(i)),n.loadImage(e+1))}),300)}})),F(this,"toggleThumbContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.player.config.classNames.previewThumbnails.thumbContainerShown;n.elements.thumb.container.classList.toggle(r,e),!e&&t&&(n.showingThumb=null,n.showingThumbFilename=null)})),F(this,"toggleScrubbingContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=n.player.config.classNames.previewThumbnails.scrubbingContainerShown;n.elements.scrubbing.container.classList.toggle(t,e),e||(n.showingThumb=null,n.showingThumbFilename=null)})),F(this,"determineContainerAutoSizing",(function(){(n.elements.thumb.imageContainer.clientHeight>20||n.elements.thumb.imageContainer.clientWidth>20)&&(n.sizeSpecifiedInCSS=!0)})),F(this,"setThumbContainerSizeAndPos",(function(){var e=n.elements.thumb.imageContainer;if(n.sizeSpecifiedInCSS){if(e.clientHeight>20&&e.clientWidth<20){var t=Math.floor(e.clientHeight*n.thumbAspectRatio);e.style.width="".concat(t,"px")}else if(e.clientHeight<20&&e.clientWidth>20){var r=Math.floor(e.clientWidth/n.thumbAspectRatio);e.style.height="".concat(r,"px")}}else{var i=Math.floor(n.thumbContainerHeight*n.thumbAspectRatio);e.style.height="".concat(n.thumbContainerHeight,"px"),e.style.width="".concat(i,"px")}n.setThumbContainerPos()})),F(this,"setThumbContainerPos",(function(){var e=n.player.elements.progress.getBoundingClientRect(),t=n.player.elements.container.getBoundingClientRect(),r=n.elements.thumb.container,i=t.left-e.left+10,o=t.right-e.left-r.clientWidth-10,a=n.mousePosX-e.left-r.clientWidth/2,l=Ut(a,i,o);r.style.left="".concat(l,"px"),r.style.setProperty("--preview-arrow-offset",a-l+"px")})),F(this,"setScrubbingContainerSize",(function(){var e=Yt(n.thumbAspectRatio,{width:n.player.media.clientWidth,height:n.player.media.clientHeight}),t=e.width,r=e.height;n.elements.scrubbing.container.style.width="".concat(t,"px"),n.elements.scrubbing.container.style.height="".concat(r,"px")})),F(this,"setImageSizeAndOffset",(function(e,t){if(n.usingSprites){var r=n.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*r+"px",e.style.width=e.naturalWidth*r+"px",e.style.left="-".concat(t.x*r,"px"),e.style.top="-".concat(t.y*r,"px")}})),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return l(e,[{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?Yt(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}(),Gt={insertElements:function(e,t){var n=this;be.string(t)?Se(e,this.media,{src:t}):be.array(t)&&t.forEach((function(t){Se(e,n.media,t)}))},change:function(e){var t=this;ke(e,"sources.length")?(ot.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],Ee(t.media),t.media=null,be.element(t.elements.container)&&t.elements.container.removeAttribute("class");var n=e.sources,r=e.type,i=u(n,1)[0],o=i.provider,a=void 0===o?Ct.html5:o,l=i.src,s="html5"===a?r:"div",c="html5"===a?{}:{src:l};Object.assign(t,{provider:a,type:r,supported:Be.check(r,a,t.config.playsinline),media:Ce(s,c)}),t.elements.container.appendChild(t.media),be.boolean(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),be.empty(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","")),It.addStyleHook.call(t),t.isHTML5&&Gt.insertElements.call(t,"source",n),t.config.title=e.title,qt.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&Gt.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&It.build.call(t),t.isHTML5&&t.media.load(),be.empty(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 Kt(t))),t.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},Xt=function(){function e(t,n){var r=this;if(o(this,e),F(this,"play",(function(){return be.function(r.media.play)?(r.ads&&r.ads.enabled&&r.ads.managerPromise.then((function(){return r.ads.play()})).catch((function(){return Xe(r.media.play())})),r.media.play()):null})),F(this,"pause",(function(){return r.playing&&be.function(r.media.pause)?r.media.pause():null})),F(this,"togglePlay",(function(e){return(be.boolean(e)?e:!r.playing)?r.play():r.pause()})),F(this,"stop",(function(){r.isHTML5?(r.pause(),r.restart()):be.function(r.media.stop)&&r.media.stop()})),F(this,"restart",(function(){r.currentTime=0})),F(this,"rewind",(function(e){r.currentTime-=be.number(e)?e:r.config.seekTime})),F(this,"forward",(function(e){r.currentTime+=be.number(e)?e:r.config.seekTime})),F(this,"increaseVolume",(function(e){var t=r.media.muted?0:r.volume;r.volume=t+(be.number(e)?e:0)})),F(this,"decreaseVolume",(function(e){r.increaseVolume(-e)})),F(this,"airplay",(function(){Be.airplay&&r.media.webkitShowPlaybackTargetPicker()})),F(this,"toggleControls",(function(e){if(r.supported.ui&&!r.isAudio){var t=Oe(r.elements.container,r.config.classNames.hideControls),n=void 0===e?void 0:!e,i=Ie(r.elements.container,r.config.classNames.hideControls,n);if(i&&be.array(r.config.controls)&&r.config.controls.includes("settings")&&!be.empty(r.config.settings)&&vt.toggleMenu.call(r,!1),i!==t){var o=i?"controlshidden":"controlsshown";Ye.call(r,r.media,o)}return!i}return!1})),F(this,"on",(function(e,t){Ve.call(r,r.elements.container,e,t)})),F(this,"once",(function(e,t){We.call(r,r.elements.container,e,t)})),F(this,"off",(function(e,t){Ue(r.elements.container,e,t)})),F(this,"destroy",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r.ready){var n=function(){document.body.style.overflow="",r.embed=null,t?(Object.keys(r.elements).length&&(Ee(r.elements.buttons.play),Ee(r.elements.captions),Ee(r.elements.controls),Ee(r.elements.wrapper),r.elements.buttons.play=null,r.elements.captions=null,r.elements.controls=null,r.elements.wrapper=null),be.function(e)&&e()):(Ke.call(r),ot.cancelRequests.call(r),Me(r.elements.original,r.elements.container),Ye.call(r,r.elements.original,"destroyed",!0),be.function(e)&&e.call(r.elements.original),r.ready=!1,setTimeout((function(){r.elements=null,r.media=null}),200))};r.stop(),clearTimeout(r.timers.loading),clearTimeout(r.timers.controls),clearTimeout(r.timers.resized),r.isHTML5?(It.toggleNativeControls.call(r,!0),n()):r.isYouTube?(clearInterval(r.timers.buffering),clearInterval(r.timers.playing),null!==r.embed&&be.function(r.embed.destroy)&&r.embed.destroy(),n()):r.isVimeo&&(null!==r.embed&&r.embed.unload().then(n),setTimeout(n,200))}})),F(this,"supports",(function(e){return Be.mime.call(r,e)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Be.touch,this.media=t,be.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||be.nodeList(this.media)||be.array(this.media))&&(this.media=this.media[0]),this.config=xe({},xt,e.defaults,n||{},function(){try{return JSON.parse(r.media.getAttribute("data-plyr-config"))}catch(t){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 Mt(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Be),!be.nullOrUndefined(this.media)&&be.element(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Be.check().api){var i=this.media.cloneNode(!0);i.autoplay=!1,this.elements.original=i;var a=this.media.tagName.toLowerCase(),l=null,s=null;switch(a){case"div":if(l=this.media.querySelector("iframe"),be.element(l)){if(s=wt(l.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?Ct.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?Ct.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=l,this.elements.container.className="",s.search.length){var c=["1","true"];c.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),c.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=c.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(be.empty(this.provider)||!Object.values(Ct).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Et;break;case"video":case"audio":this.type=a,this.provider=Ct.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=Be.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new Ot(this),this.storage=new ht(this),this.media.plyr=this,be.element(this.elements.container)||(this.elements.container=Ce("div"),Ae(this.media,this.elements.container)),It.migrateStyles.call(this),It.addStyleHook.call(this),qt.setup.call(this),this.config.debug&&Ve.call(this,this.elements.container,this.config.events.join(" "),(function(e){r.debug.log("event: ".concat(e.type))})),this.fullscreen=new Lt(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&It.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Vt(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Xe(r.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Kt(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 l(e,[{key:"isHTML5",get:function(){return this.provider===Ct.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===Ct.youtube}},{key:"isVimeo",get:function(){return this.provider===Ct.vimeo}},{key:"isVideo",get:function(){return this.type===Et}},{key:"isAudio",get:function(){return this.type===St}},{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",get:function(){return Number(this.media.currentTime)},set:function(e){if(this.duration){var t=be.number(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}}},{key:"buffered",get:function(){var e=this.media.buffered;return be.number(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=be.number(t)&&t!==1/0?t:0;return e||n}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(e){var t=e;be.string(t)&&(t=Number(t)),be.number(t)||(t=this.storage.get("volume")),be.number(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!be.empty(e)&&this.muted&&t>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(e){var t=e;be.boolean(t)||(t=this.storage.get("muted")),be.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}},{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",get:function(){return Number(this.media.playbackRate)},set:function(e){var t=this,n=null;be.number(e)&&(n=e),be.number(n)||(n=this.storage.get("speed")),be.number(n)||(n=this.config.speed.selected);var r=this.minimumSpeed,i=this.maximumSpeed;n=Ut(n,r,i),this.config.speed.selected=n,setTimeout((function(){t.media&&(t.media.playbackRate=n)}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,i(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,i(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(e){var t=this.config.quality,n=this.options.quality;if(n.length){var r=[!be.empty(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(be.number),i=!0;if(!n.includes(r)){var o=Qe(n,r);this.debug.warn("Unsupported quality option: ".concat(r,", using ").concat(o," instead")),r=o,i=!1}t.selected=r,this.media.quality=r,i&&this.storage.set({quality:r})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(e){var t=be.boolean(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}},{key:"source",get:function(){return this.media.currentSrc},set:function(e){Gt.change.call(this,e)}},{key:"download",get:function(){var e=this.config.urls.download;return be.url(e)?e:this.source},set:function(e){be.url(e)&&(this.config.urls.download=e,vt.setDownloadUrl.call(this))}},{key:"poster",get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null},set:function(e){this.isVideo?It.setPoster.call(this,e,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=tt(nt.call(this));return be.array(e)?e.join(":"):e},set:function(e){this.isVideo?be.string(e)&&et(e)?(this.config.ratio=tt(e),rt.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",get:function(){return Boolean(this.config.autoplay)},set:function(e){this.config.autoplay=be.boolean(e)?e:this.config.autoplay}},{key:"toggleCaptions",value:function(e){kt.toggle.call(this,e,!1)}},{key:"currentTrack",get:function(){var e=this.captions,t=e.toggled,n=e.currentTrack;return t?n:-1},set:function(e){kt.set.call(this,e,!1),kt.setup.call(this)}},{key:"language",get:function(){return(kt.getCurrentTrack.call(this)||{}).language},set:function(e){kt.setLanguage.call(this,e,!1)}},{key:"pip",get:function(){return Be.pip?be.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===At:null},set:function(e){if(Be.pip){var t=be.boolean(e)?e:!this.pip;be.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?At:Tt),be.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}}},{key:"setPreviewThumbnails",value:function(e){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,e),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Kt(this))}}],[{key:"supported",value:function(e,t){return Be.check(e,t)}},{key:"loadSprite",value:function(e,t){return gt(e,t)}},{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return be.string(t)?r=Array.from(document.querySelectorAll(t)):be.nodeList(t)?r=Array.from(t):be.array(t)&&(r=t.filter(be.element)),be.empty(r)?null:r.map((function(t){return new e(t,n)}))}}]),e}();Xt.defaults=function(e){return JSON.parse(JSON.stringify(e))}(xt);var Jt=d({name:"m-video",props:{setting:{type:Object,default:function(){return{}}},controls:Boolean,height:String,src:{type:String,default:""},poster:{type:String,default:""},styleValue:{type:Object,default:function(){return{}}},preload:{type:String,default:"auto"},currentTime:{type:Boolean,default:!0},playsinline:{type:Boolean,default:!0},preLoading:{type:Boolean,default:!0}},emits:["exitfullscreen","play"],data:function(){return{player:null,loading:!0}},mounted:function(){this.loading=this.preLoading,this._init()},methods:{_init:function(){var e=this,t=["play-large","play","progress","captions","fullscreen"];this.currentTime&&t.push("current-time");var n=c(c({controls:t},this.setting),{},{invertTime:!1});p().iPhone&&(n.fullscreen={enabled:!0,fallback:"force",iosNative:!0}),this.player=new Xt(this.$refs.video,n),this.player.elements.container&&(this.player.elements.container.style.height=this.height||"210px"),"none"===this.preload&&(this.loading=!1),this.player.on("loadedmetadata",(function(){e.loading=!1,e.domPlayVisibility(!1)})),this.player.on("play",(function(){e.$emit("play",e.player)})),this.player.on("enterfullscreen",(function(){console.log("fullscreen");var t=document.createElement("i");t.id="fullscreen-back",t.className="van-icon van-icon-arrow-left video-back",t.addEventListener("click",(function(){e.player.fullscreen.exit()})),console.log(document.getElementsByClassName("plyr")),document.getElementsByClassName("plyr")[0].appendChild(t)})),this.player.on("exitfullscreen",(function(){console.log("exitfullscreen");var t=document.getElementById("fullscreen-back");t&&t.remove(),e.$emit("exitfullscreen")}))},domPlayVisibility:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.querySelector(".plyr__controls"),n=document.querySelector(".plyr__control--overlaid");e?(null==t||t.setAttribute("style","display:none"),null==n||n.setAttribute("style","display:none")):(null==t||t.removeAttribute("style"),setTimeout((function(){null==n||n.removeAttribute("style")}),200))},onStop:function(){this.player.stop()}},unmounted:function(){var e;null===(e=this.player)||void 0===e||e.destroy()},render:function(){return h("div",{class:z},[h("video",{ref:"video",class:D,src:this.src,playsinline:this.playsinline,poster:this.poster,preload:this.preload,style:c({},this.styleValue)},null),this.loading&&h("div",{class:H,style:{height:this.height||"210px"}},[h(g,{size:36,color:"#FF8057",vertical:!0,style:{height:"100%",justifyContent:"center"}},{default:function(){return[y("加载中...")]}})])])}});a("M",d({name:"m-image-preview",props:{show:{tyep:Boolean,default:!1},images:{type:Array,default:function(){return[]}},showIndex:{type:Boolean,default:!0},startPosition:{type:Number,default:0},loop:{type:Boolean,default:!1},showDownload:{type:Boolean,default:!0},teleport:{type:String,default:""}},emits:["update:show"],setup:function(e,r){var i=r.emit,o=b({show:!1,index:e.startPosition+1,saveLoading:!1}),a=function(){var e,r=(e=t().mark((function e(n){var r,i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.saveLoading){e.next=2;break}return e.abrupt("return");case 2:return o.saveLoading=!0,S({message:"下载中...",forbidClick:!0}),e.prev=4,e.next=7,E({api:"saveFile",content:{img:n,type:L(n,"image")?"image":"video"}});case 7:"success"===(null==(i=e.sent)||null===(r=i.content)||void 0===r?void 0:r.status)?P("保存成功"):M("保存失败"),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(4);case 13:o.saveLoading=!1;case 14:case"end":return e.stop()}}),e,null,[[4,11]])})),function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function l(e){n(a,i,o,l,s,"next",e)}function s(e){n(a,i,o,l,s,"throw",e)}l(void 0)}))});return function(e){return r.apply(this,arguments)}}(),l=v([]),c=function(e){l.value.forEach((function(t,n){n!==e&&(null==t||t.onStop())}))};return w((function(){o.show=e.show})),_((function(){return e.show}),(function(){o.show=e.show,o.index=e.startPosition+1})),_((function(){return e.startPosition}),(function(){o.index=e.startPosition+1})),w((function(){})),function(){var t;return h(k,{teleport:e.teleport,show:o.show,"onUpdate:show":function(e){return o.show=e},"overlay-class":s,class:["van-image-preview",j]},{default:function(){return[o.show?h(x,null,[h(A,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAOVBMVEUAAAAAAADv7+80NDQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADj4+PZ2dkAAAAAAABkZGT////w1mHvAAAAEnRSTlNMANxYRiQFOj8xKhkMzLxCHWlXlmF+AAABS0lEQVRYw6WX2ZLCIBBFzyiLBLKY///YcSynUEk6yz2PVu4pMKTp5meFkH2KowM3xuRzWHtuWVC6G1/curJXEPwr3Th8MAQ17ljF+bAlmBwmbjIFJbJJLOuC7NiBy2uCjp10y4LEbtKSIHKA2AoSBsYaMPZv0n0KMofJ74LiOIwrb4LICWIVTJxi+hcExylceAk8J/FPgbmA7SUgLAD8U9DWn3s/XPniOvT3tkb9CQoN/Txfrl/5yzz3NJSHoKNhmKuh5udh6UBTd/D5+MNg/FD3QADLYOchkLENdp6MxzbYeTwJ22DnSURsg50nMmIb7DwjDttg52vcMFh5kAXyFuQ/UX6N8kGSj7L8Mcmfs1pQ5JImF1W1rMsXi3y1qZerfL2rDYba4shNltrmqY2m2urKzbbe7usDhz7y6EOXPvbpg6c++urDtzz+/wLKehSFlfKj2AAAAABJRU5ErkJggg==",class:"van-image-preview__close-icon van-image-preview__close-icon--top-left van-haptics-feedback",style:{top:T.navBarHeight?T.navBarHeight+"px":"var(--van-padding-md)"},onClick:function(){c(-1),i("update:show",!1)}},null),h("div",{class:"van-image-preview__index",style:{top:T.navBarHeight?T.navBarHeight+"px":"var(--van-padding-md)"}},[o.index,y(" / "),e.images.length]),e.showDownload&&p().isApp?h(A,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAaVBMVEUAAAAAAAB1dXUAAAAAAAAAAADV1dXV1dUAAAAAAAAAAAAAAAAAAAD7+/t6enqqqqoAAAAAAAAAAAAAAAD9/f37+/v09PSLi4tnZ2cAAADR0dHNzc3y8vLl5eW/v7+cnJxwcHA+Pj7///+d7TGsAAAAInRSTlNMAG9GJAW4tT87MSoZ9HOOQh0PCvn253tqNrOu482ghm1bnhpUjAAAAcZJREFUWMOl19mSgyAQheGTADMgTKLG7JON93/IIY6Waxul/8pFKhW+Ki4UGisi5WRiUgGI1CTSKep/40BuNXppm88FlNQYTUs1A1BSgEzUBA1kApOJbBLYGXzM7GjACcxIOAqwmJkdBxLMLhkDzljQeQgkWFTSBywWZruAw+JcG9iJ5YDYtQADotPhcAKRaYAMVBfvr6DKakDRG/jy/pvehKoAiTgA8h9QIhYQqgQkYgHIEtDxgH4DOeIB5AGwHMAGQHMAvYICB4CC4wEOkgdIUC+Sx7MNPB/UiwWm//xdj9VTtG2ArfcXhI7X/rNpkKLbwRcvADcfhBoI6/0NwKvwB3RLIdAt/HcNYP3zFkqgXP9T/hi+oJsAxgFsSuENlOs3GAdAALXwGz7VegIgtlALoXo9tYWUAhohrCeBFIYGglCtpwGDhAaCsPd+v8EEkEBOATju90dMARKOBppowEHxAIWV5gC6fKUxABuAfABs10TbAZAPX+v+Q70dDA+WYnp9gXZy5Gi7TwrFfeRoW0lEJpvjPSqhmgtGVFn7ihORYV+yuNc87kWTe9VlX7b5133+wMEfefhDF3/s4w+e/NGXP3yzx/8/aHIywATB/+4AAAAASUVORK5CYII=",class:"van-image-preview__close-icon van-image-preview__close-icon--top-right van-haptics-feedback",style:{top:T.navBarHeight?T.navBarHeight+"px":"var(--van-padding-md)"},onClick:function(){console.log(o.index,"index",e.images[o.index-1]),a(e.images[o.index-1])}},null):"",h(N,{autoplay:0,loop:!1,class:"van-image-preview__swipe",showIndicators:!1,initialSwipe:e.startPosition,onChange:function(e){o.index=e+1,c(e)},lazyRender:!0},(n=t=e.images.map((function(e,t){return h(I,{class:"van-image-preview__swipe-item",onClick:function(){c(-1),i("update:show",!1)}},{default:function(){return[L(e,"image")?h(O,{class:"van-image-preview__image",src:e},null):h("div",{class:"van-image-preview__image",onClick:function(e){e.stopPropagation(),e.preventDefault()}},[h(Jt,{ref:function(e){return l.value[t]=e},src:e,onPlay:function(){return c(t)},preLoading:!1},null)])]}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!C(n)?t:{default:function(){return[t]}}))]):""];var n}})}}}))}}}))}();