index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
presto-player
/
dist
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/presto-player/dist/809.js
"use strict";(self.webpackChunk_presto_player_presto_player=self.webpackChunk_presto_player_presto_player||[]).push([[809],{2136:function(e,t,i){i.d(t,{a:function(){return b},b:function(){return g},c:function(){return Fe},d:function(){return De},e:function(){return k},f:function(){return _},g:function(){return ze},i:function(){return Oe},l:function(){return v},p:function(){return w},r:function(){return Ze},s:function(){return Re},t:function(){return y}});var r=i(3324),n=i(136),o=i(2963),a=i(1120),l=i(9062),s=i(4942),c=i(5671),u=i(3144),d=i(1002);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,r=(0,a.Z)(e);if(t){var n=(0,a.Z)(this).constructor;i=Reflect.construct(r,arguments,n)}else i=r.apply(this,arguments);return(0,o.Z)(this,i)}}function h(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function f(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?h(Object(i),!0).forEach((function(t){(0,s.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function y(e){var t=e.current,i=e.duration,r=e.showAfter,n=void 0===r?null:r;if(0===n)return!0;if(null===n||!i)return!1;if(t===n)return!0;var o=t/i*100;return 99.9<o&&(o=100),o>=n}function v(e){if(e){var t,i,r;if(e.match(/^rgb/)){var n=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);t=n[1],i=n[2],r=n[3]}else{var o=+("0x"+e.slice(1).replace(e.length<5&&/./g,"$&$&"));t=o>>16,i=o>>8&255,r=255&o}return Math.sqrt(t*t*.299+i*i*.587+r*r*.114)>127.5?"light":"dark"}}function g(e){var t,i=e.split(":");return i.length>1&&(t=60*parseInt(i[0])),parseInt(i[1])+parseInt(t)}function m(){var e=navigator.userAgent||navigator.vendor;return/windows phone/i.test(e)?"Windows Phone":/android/i.test(e)?"Android":"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)?"iOS":"unknown"}function b(){return"iOS"===m()}function _(){return"Android"===m()&&(e=window.navigator.standalone,t=window.navigator.userAgent.toLowerCase(),i=/safari/.test(t),!(/iphone|ipod|ipad/.test(t)?!e&&i||e||i:!t.includes("wv")));var e,t,i}function w(e){var t=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);return t?[t[1],t[2],t[3],"1"]:(t=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*((0.)?\d+)\s*\)$/i))?[t[1],t[2],t[3],t[4]]:void 0}function k(e){var t,i,r,n,o;if("unknown"!==m()&&!(null===(i=null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.blockAttributes)||void 0===i?void 0:i.playsInline)&&("function"==typeof(null===(r=null==e?void 0:e.media)||void 0===r?void 0:r.webkitExitFullScreen)&&(null==e||e.media.webkitExitFullScreen()),"function"==typeof(null===(n=null==e?void 0:e.embed)||void 0===n?void 0:n.exitFullscreen)&&(null===(o=null==e?void 0:e.embed)||void 0===o||o.exitFullscreen()),"youtube"===e.provider)){var a=e.currentTime;e.currentTime=e.duration,e.once("playing",(function(){e.currentTime=a}))}}var x=function(e){return null!=e?e.constructor:null},T=function(e){return null==e},P=function(e){return x(e)===Object},S=function(e){return x(e)===String},C=T,A=P,E=S,L=function(e){return T(e)||(S(e)||function(e){return Array.isArray(e)}(e)||function(e){return function(e,t){return Boolean(e&&t&&e instanceof t)}(e,NodeList)}(e))&&!e.length||P(e)&&!Object.keys(e).length};function M(e){return Array.isArray?Array.isArray(e):"[object Array]"===R(e)}function I(e){return"string"==typeof e}function O(e){return"number"==typeof e}function z(e){return"object"===(0,d.Z)(e)}function j(e){return null!=e}function N(e){return!e.trim().length}function R(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Z=function(e){return"Invalid value for key ".concat(e)},D=function(e){return"Pattern length exceeds max of ".concat(e,".")},F=Object.prototype.hasOwnProperty,V=function(){function e(t){var i=this;(0,c.Z)(this,e),this._keys=[],this._keyMap={};var r=0;t.forEach((function(e){var t=B(e);r+=t.weight,i._keys.push(t),i._keyMap[t.id]=t,r+=t.weight})),this._keys.forEach((function(e){e.weight/=r}))}return(0,u.Z)(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function B(e){var t=null,i=null,r=null,n=1,o=null;if(I(e)||M(e))r=e,t=H(e),i=q(e);else{if(!F.call(e,"name"))throw new Error("Missing ".concat("name"," property in key"));var a=e.name;if(r=a,F.call(e,"weight")&&(n=e.weight)<=0)throw new Error(function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")}(a));t=H(a),i=q(a),o=e.getFn}return{path:t,id:i,weight:n,src:r,getFn:o}}function H(e){return M(e)?e:e.split(".")}function q(e){return M(e)?e.join("."):e}var W={useExtendedSearch:!1,getFn:function(e,t){var i=[],r=!1;return function e(t,n,o){if(j(t))if(n[o]){var a=t[n[o]];if(!j(a))return;if(o===n.length-1&&(I(a)||O(a)||function(e){return!0===e||!1===e||function(e){return z(e)&&null!==e}(e)&&"[object Boolean]"==R(e)}(a)))i.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(M(a)){r=!0;for(var l=0,s=a.length;l<s;l+=1)e(a[l],n,o+1)}else n.length&&e(a,n,o+1)}else i.push(t)}(e,I(t)?t.split("."):t,0),r?i:i[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},U=f(f(f(f({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}}),{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1}),{location:0,threshold:.6,distance:100}),W),$=/[^ ]+/g;function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=new Map,r=Math.pow(10,t);return{get:function(t){var n=t.match($).length;if(i.has(n))return i.get(n);var o=1/Math.pow(n,.5*e),a=parseFloat(Math.round(o*r)/r);return i.set(n,a),a},clear:function(){i.clear()}}}var Y=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.getFn,r=void 0===i?U.getFn:i,n=t.fieldNormWeight,o=void 0===n?U.fieldNormWeight:n;(0,c.Z)(this,e),this.norm=Q(o,3),this.getFn=r,this.isCreated=!1,this.setIndexRecords()}return(0,u.Z)(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,i){e._keysMap[t.id]=i}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,I(this.docs[0])?this.docs.forEach((function(t,i){e._addString(t,i)})):this.docs.forEach((function(t,i){e._addObject(t,i)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();I(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,i=this.size();t<i;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(e,t){return e[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(e,t){if(j(e)&&!N(e)){var i={v:e,i:t,n:this.norm.get(e)};this.records.push(i)}}},{key:"_addObject",value:function(e,t){var i=this,r={i:t,$:{}};this.keys.forEach((function(t,n){var o=t.getFn?t.getFn(e):i.getFn(e,t.path);if(j(o))if(M(o)){for(var a=[],l=[{nestedArrIndex:-1,value:o}];l.length;){var s=l.pop(),c=s.nestedArrIndex,u=s.value;if(j(u))if(I(u)&&!N(u)){var d={v:u,i:c,n:i.norm.get(u)};a.push(d)}else M(u)&&u.forEach((function(e,t){l.push({nestedArrIndex:t,value:e})}))}r.$[n]=a}else if(I(o)&&!N(o)){var p={v:o,n:i.norm.get(o)};r.$[n]=p}})),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function K(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.getFn,n=void 0===r?U.getFn:r,o=i.fieldNormWeight,a=void 0===o?U.fieldNormWeight:o,l=new Y({getFn:n,fieldNormWeight:a});return l.setKeys(e.map(B)),l.setSources(t),l.create(),l}function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.errors,r=void 0===i?0:i,n=t.currentLocation,o=void 0===n?0:n,a=t.expectedLocation,l=void 0===a?0:a,s=t.distance,c=void 0===s?U.distance:s,u=t.ignoreLocation,d=void 0===u?U.ignoreLocation:u,p=r/e.length;if(d)return p;var h=Math.abs(l-o);return c?p+h/c:h?1:p}function J(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.minMatchCharLength,i=[],r=-1,n=-1,o=0,a=e.length;o<a;o+=1){var l=e[o];l&&-1===r?r=o:l||-1===r||((n=o-1)-r+1>=t&&i.push([r,n]),r=-1)}return e[o-1]&&o-r>=t&&i.push([r,o-1]),i}var G=32;function ee(e){for(var t={},i=0,r=e.length;i<r;i+=1){var n=e.charAt(i);t[n]=(t[n]||0)|1<<r-i-1}return t}var te=function(){function e(t){var i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.location,o=void 0===n?U.location:n,a=r.threshold,l=void 0===a?U.threshold:a,s=r.distance,u=void 0===s?U.distance:s,d=r.includeMatches,p=void 0===d?U.includeMatches:d,h=r.findAllMatches,f=void 0===h?U.findAllMatches:h,y=r.minMatchCharLength,v=void 0===y?U.minMatchCharLength:y,g=r.isCaseSensitive,m=void 0===g?U.isCaseSensitive:g,b=r.ignoreLocation,_=void 0===b?U.ignoreLocation:b;if((0,c.Z)(this,e),this.options={location:o,threshold:l,distance:u,includeMatches:p,findAllMatches:f,minMatchCharLength:v,isCaseSensitive:m,ignoreLocation:_},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var w=function(e,t){i.chunks.push({pattern:e,alphabet:ee(e),startIndex:t})},k=this.pattern.length;if(k>G){for(var x=0,T=k%G,P=k-T;x<P;)w(this.pattern.substr(x,G),x),x+=G;if(T){var S=k-G;w(this.pattern.substr(S),S)}}else w(this.pattern,0)}}return(0,u.Z)(e,[{key:"searchIn",value:function(e){var t=this.options,i=t.isCaseSensitive,r=t.includeMatches;if(i||(e=e.toLowerCase()),this.pattern===e){var n={isMatch:!0,score:0};return r&&(n.indices=[[0,e.length-1]]),n}var o=this.options,a=o.location,s=o.distance,c=o.threshold,u=o.findAllMatches,d=o.minMatchCharLength,p=o.ignoreLocation,h=[],f=0,y=!1;this.chunks.forEach((function(t){var i=t.pattern,n=t.alphabet,o=t.startIndex,v=function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=r.location,o=void 0===n?U.location:n,a=r.distance,l=void 0===a?U.distance:a,s=r.threshold,c=void 0===s?U.threshold:s,u=r.findAllMatches,d=void 0===u?U.findAllMatches:u,p=r.minMatchCharLength,h=void 0===p?U.minMatchCharLength:p,f=r.includeMatches,y=void 0===f?U.includeMatches:f,v=r.ignoreLocation,g=void 0===v?U.ignoreLocation:v;if(t.length>G)throw new Error(D(G));for(var m,b=t.length,_=e.length,w=Math.max(0,Math.min(o,_)),k=c,x=w,T=h>1||y,P=T?Array(_):[];(m=e.indexOf(t,x))>-1;){var S=X(t,{currentLocation:m,expectedLocation:w,distance:l,ignoreLocation:g});if(k=Math.min(S,k),x=m+b,T)for(var C=0;C<b;)P[m+C]=1,C+=1}x=-1;for(var A=[],E=1,L=b+_,M=1<<b-1,I=0;I<b;I+=1){for(var O=0,z=L;O<z;)X(t,{errors:I,currentLocation:w+z,expectedLocation:w,distance:l,ignoreLocation:g})<=k?O=z:L=z,z=Math.floor((L-O)/2+O);L=z;var j=Math.max(1,w-z+1),N=d?_:Math.min(w+z,_)+b,R=Array(N+2);R[N+1]=(1<<I)-1;for(var Z=N;Z>=j;Z-=1){var F=Z-1,V=i[e.charAt(F)];if(T&&(P[F]=+!!V),R[Z]=(R[Z+1]<<1|1)&V,I&&(R[Z]|=(A[Z+1]|A[Z])<<1|1|A[Z+1]),R[Z]&M&&(E=X(t,{errors:I,currentLocation:F,expectedLocation:w,distance:l,ignoreLocation:g}))<=k){if(k=E,(x=F)<=w)break;j=Math.max(1,2*w-x)}}if(X(t,{errors:I+1,currentLocation:w,expectedLocation:w,distance:l,ignoreLocation:g})>k)break;A=R}var B={isMatch:x>=0,score:Math.max(.001,E)};if(T){var H=J(P,h);H.length?y&&(B.indices=H):B.isMatch=!1}return B}(e,i,n,{location:a+o,distance:s,threshold:c,findAllMatches:u,minMatchCharLength:d,includeMatches:r,ignoreLocation:p}),g=v.isMatch,m=v.score,b=v.indices;g&&(y=!0),f+=m,g&&b&&(h=[].concat((0,l.Z)(h),(0,l.Z)(b)))}));var v={isMatch:y,score:y?f/this.chunks.length:1};return y&&r&&(v.indices=h),v}}]),e}(),ie=function(){function e(t){(0,c.Z)(this,e),this.pattern=t}return(0,u.Z)(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return re(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return re(e,this.singleRegex)}}]),e}();function re(e,t){var i=e.match(t);return i?i[1]:null}var ne=function(e){(0,n.Z)(i,e);var t=p(i);function i(e){return(0,c.Z)(this,i),t.call(this,e)}return(0,u.Z)(i,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),i}(ie),oe=function(e){(0,n.Z)(i,e);var t=p(i);function i(e){return(0,c.Z)(this,i),t.call(this,e)}return(0,u.Z)(i,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),i}(ie),ae=function(e){(0,n.Z)(i,e);var t=p(i);function i(e){return(0,c.Z)(this,i),t.call(this,e)}return(0,u.Z)(i,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),i}(ie),le=function(e){(0,n.Z)(i,e);var t=p(i);function i(e){return(0,c.Z)(this,i),t.call(this,e)}return(0,u.Z)(i,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),i}(ie),se=function(e){(0,n.Z)(i,e);var t=p(i);function i(e){return(0,c.Z)(this,i),t.call(this,e)}return(0,u.Z)(i,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),i}(ie),ce=function(e){(0,n.Z)(i,e);var t=p(i);function i(e){return(0,c.Z)(this,i),t.call(this,e)}return(0,u.Z)(i,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),i}(ie),ue=function(e){(0,n.Z)(i,e);var t=p(i);function i(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.location,a=void 0===o?U.location:o,l=n.threshold,s=void 0===l?U.threshold:l,u=n.distance,d=void 0===u?U.distance:u,p=n.includeMatches,h=void 0===p?U.includeMatches:p,f=n.findAllMatches,y=void 0===f?U.findAllMatches:f,v=n.minMatchCharLength,g=void 0===v?U.minMatchCharLength:v,m=n.isCaseSensitive,b=void 0===m?U.isCaseSensitive:m,_=n.ignoreLocation,w=void 0===_?U.ignoreLocation:_;return(0,c.Z)(this,i),(r=t.call(this,e))._bitapSearch=new te(e,{location:a,threshold:s,distance:d,includeMatches:h,findAllMatches:y,minMatchCharLength:g,isCaseSensitive:b,ignoreLocation:w}),r}return(0,u.Z)(i,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),i}(ie),de=function(e){(0,n.Z)(i,e);var t=p(i);function i(e){return(0,c.Z)(this,i),t.call(this,e)}return(0,u.Z)(i,[{key:"search",value:function(e){for(var t,i=0,r=[],n=this.pattern.length;(t=e.indexOf(this.pattern,i))>-1;)i=t+n,r.push([t,i-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),i}(ie),pe=[ne,de,ae,le,ce,se,oe,ue],he=pe.length,fe=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;function ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var i=e.trim().split(fe).filter((function(e){return e&&!!e.trim()})),r=[],n=0,o=i.length;n<o;n+=1){for(var a=i[n],l=!1,s=-1;!l&&++s<he;){var c=pe[s],u=c.isMultiMatch(a);u&&(r.push(new c(u,t)),l=!0)}if(!l)for(s=-1;++s<he;){var d=pe[s],p=d.isSingleMatch(a);if(p){r.push(new d(p,t));break}}}return r}))}var ve=new Set([ue.type,de.type]),ge=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.isCaseSensitive,n=void 0===r?U.isCaseSensitive:r,o=i.includeMatches,a=void 0===o?U.includeMatches:o,l=i.minMatchCharLength,s=void 0===l?U.minMatchCharLength:l,u=i.ignoreLocation,d=void 0===u?U.ignoreLocation:u,p=i.findAllMatches,h=void 0===p?U.findAllMatches:p,f=i.location,y=void 0===f?U.location:f,v=i.threshold,g=void 0===v?U.threshold:v,m=i.distance,b=void 0===m?U.distance:m;(0,c.Z)(this,e),this.query=null,this.options={isCaseSensitive:n,includeMatches:a,minMatchCharLength:s,findAllMatches:h,ignoreLocation:d,location:y,threshold:g,distance:b},this.pattern=n?t:t.toLowerCase(),this.query=ye(this.pattern,this.options)}return(0,u.Z)(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var i=this.options,r=i.includeMatches;e=i.isCaseSensitive?e:e.toLowerCase();for(var n=0,o=[],a=0,s=0,c=t.length;s<c;s+=1){var u=t[s];o.length=0,n=0;for(var d=0,p=u.length;d<p;d+=1){var h=u[d],f=h.search(e),y=f.isMatch,v=f.indices,g=f.score;if(!y){a=0,n=0,o.length=0;break}if(n+=1,a+=g,r){var m=h.constructor.type;ve.has(m)?o=[].concat((0,l.Z)(o),(0,l.Z)(v)):o.push(v)}}if(n){var b={isMatch:!0,score:a/n};return r&&(b.indices=o),b}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(e,t){return t.useExtendedSearch}}]),e}(),me=[];function be(e,t){for(var i=0,r=me.length;i<r;i+=1){var n=me[i];if(n.condition(e,t))return new n(e,t)}return new te(e,t)}var _e="$and",we="$path",ke="$val",xe=function(e){return!(!e[_e]&&!e.$or)},Te=function(e){return!!e[we]},Pe=function(e){return!M(e)&&z(e)&&!xe(e)},Se=function(e){return(0,s.Z)({},_e,Object.keys(e).map((function(t){return(0,s.Z)({},t,e[t])})))};function Ce(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.auto,n=void 0===r||r,o=function e(i){var r=Object.keys(i),o=Te(i);if(!o&&r.length>1&&!xe(i))return e(Se(i));if(Pe(i)){var a=o?i[we]:r[0],l=o?i[ke]:i[a];if(!I(l))throw new Error(Z(a));var s={keyId:q(a),pattern:l};return n&&(s.searcher=be(l,t)),s}var c={children:[],operator:r[0]};return r.forEach((function(t){var r=i[t];M(r)&&r.forEach((function(t){c.children.push(e(t))}))})),c};return xe(e)||(e=Se(e)),o(e)}function Ae(e,t){var i=t.ignoreFieldNorm,r=void 0===i?U.ignoreFieldNorm:i;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var i=e.key,n=e.norm,o=e.score,a=i?i.weight:null;t*=Math.pow(0===o&&a?Number.EPSILON:o,(a||1)*(r?1:n))})),e.score=t}))}function Ee(e,t){var i=e.matches;t.matches=[],j(i)&&i.forEach((function(e){if(j(e.indices)&&e.indices.length){var i={indices:e.indices,value:e.value};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)}}))}function Le(e,t){t.score=e.score}function Me(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.includeMatches,n=void 0===r?U.includeMatches:r,o=i.includeScore,a=void 0===o?U.includeScore:o,l=[];return n&&l.push(Ee),a&&l.push(Le),e.map((function(e){var i=e.idx,r={item:t[i],refIndex:i};return l.length&&l.forEach((function(t){t(e,r)})),r}))}var Ie=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;(0,c.Z)(this,e),this.options=f(f({},U),i),this.options.useExtendedSearch,this._keyStore=new V(this.options.keys),this.setCollection(t,r)}return(0,u.Z)(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof Y))throw new Error("Incorrect 'index' type");this._myIndex=t||K(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){j(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],i=0,r=this._docs.length;i<r;i+=1){var n=this._docs[i];e(n,i)&&(this.removeAt(i),i-=1,r-=1,t.push(n))}return t}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.limit,r=void 0===i?-1:i,n=this.options,o=n.includeMatches,a=n.includeScore,l=n.shouldSort,s=n.sortFn,c=n.ignoreFieldNorm,u=I(e)?I(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Ae(u,{ignoreFieldNorm:c}),l&&u.sort(s),O(r)&&r>-1&&(u=u.slice(0,r)),Me(u,this._docs,{includeMatches:o,includeScore:a})}},{key:"_searchStringList",value:function(e){var t=be(e,this.options),i=this._myIndex.records,r=[];return i.forEach((function(e){var i=e.v,n=e.i,o=e.n;if(j(i)){var a=t.searchIn(i),l=a.isMatch,s=a.score,c=a.indices;l&&r.push({item:i,idx:n,matches:[{score:s,value:i,norm:o,indices:c}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,i=Ce(e,this.options),r=function e(i,r,n){if(!i.children){var o=i.keyId,a=i.searcher,s=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:a});return s&&s.length?[{idx:n,item:r,matches:s}]:[]}for(var c=[],u=0,d=i.children.length;u<d;u+=1){var p=e(i.children[u],r,n);if(p.length)c.push.apply(c,(0,l.Z)(p));else if(i.operator===_e)return[]}return c},n=this._myIndex.records,o={},a=[];return n.forEach((function(e){var t=e.$,n=e.i;if(j(t)){var s=r(i,t,n);s.length&&(o[n]||(o[n]={idx:n,item:t,matches:[]},a.push(o[n])),s.forEach((function(e){var t,i=e.matches;(t=o[n].matches).push.apply(t,(0,l.Z)(i))})))}})),a}},{key:"_searchObjectList",value:function(e){var t=this,i=be(e,this.options),r=this._myIndex,n=r.keys,o=r.records,a=[];return o.forEach((function(e){var r=e.$,o=e.i;if(j(r)){var s=[];n.forEach((function(e,n){s.push.apply(s,(0,l.Z)(t._findMatches({key:e,value:r[n],searcher:i})))})),s.length&&a.push({idx:o,item:r,matches:s})}})),a}},{key:"_findMatches",value:function(e){var t=e.key,i=e.value,r=e.searcher;if(!j(i))return[];var n=[];if(M(i))i.forEach((function(e){var i=e.v,o=e.i,a=e.n;if(j(i)){var l=r.searchIn(i),s=l.isMatch,c=l.score,u=l.indices;s&&n.push({score:c,key:t,value:i,idx:o,norm:a,indices:u})}}));else{var o=i.v,a=i.n,l=r.searchIn(o),s=l.isMatch,c=l.score,u=l.indices;s&&n.push({score:c,key:t,value:o,norm:a,indices:u})}return n}}]),e}();function Oe(e){return"string"==typeof e&&e.includes(".m3u8")}function ze(e){for(var t=[];e.parentNode&&"body"!=e.parentNode.nodeName.toLowerCase();)e=e.parentNode,t.push(e);return t}function je(e,t,i){var n=document.createElement(e);return A(t)&&function(e,t){var i;null!==(i=e)&&"object"===(0,d.Z)(i)&&1===i.nodeType&&"object"===(0,d.Z)(i.style)&&"object"===(0,d.Z)(i.ownerDocument)&&!L(t)&&Object.entries(t).filter((function(e){var t=(0,r.Z)(e,2)[1];return!C(t)})).forEach((function(t){var i=(0,r.Z)(t,2),n=i[0],o=i[1];return e.setAttribute(n,o)}))}(n,t),E(i)&&(n.innerText=i),n}Ie.version="6.6.2",Ie.createIndex=K,Ie.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.getFn,r=void 0===i?U.getFn:i,n=t.fieldNormWeight,o=void 0===n?U.fieldNormWeight:n,a=e.keys,l=e.records,s=new Y({getFn:r,fieldNormWeight:o});return s.setKeys(a),s.setIndexRecords(l),s},Ie.config=U,Ie.parseQuery=Ce,function(){me.push.apply(me,arguments)}(ge);var Ne=function(e){return e?["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,i){return e[i]&&(t[i]=e[i]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))}):null};function Re(e,t){var i,r,n,o;if(e&&(null===(i=null==e?void 0:e.media)||void 0===i?void 0:i.textTracks)&&0!==(null===(n=null===(r=null==e?void 0:e.media)||void 0===r?void 0:r.textTracks)||void 0===n?void 0:n.length)){var a,l=e.media.textTracks,s=(null===(o=e.config.preset)||void 0===o?void 0:o.search)||"";if(a=-1===e.captions.currentTrack?function(e){if(e){var t=localStorage.getItem("presto-player-"+e.id+"-cues");return L(t)?"":JSON.parse(t)}}(e):l[e.captions.currentTrack],L(a))return[];var c=Ne(a);return L(c)?[]:function(e,t,i){if(!E(e))return[];if(L(t))return[];if(L(i))return[];var r=function(e,t,i){if(L(t))return[];if(L(i))return[];if(!E(e))return[];var r=Object.assign(Object.assign(Object.assign({},null==i?void 0:i.minMatchCharLength),null==i?void 0:i.threshold),{shouldSort:!1,includeMatches:!0,threshold:.3,keys:["text"]});return null!==t&&t&&0!==t.length?new Ie(t,r).search(e):[]}(e,t,i);return r&&Array.prototype.map.call(r,(function(e){return{time:Math.ceil(e.item.startTime),label:""}}))}(t,null==c?void 0:c.cues,s)}}function Ze(e){var t;if(e&&(null==e?void 0:e.elements)&&(null===(t=null==e?void 0:e.elements)||void 0===t?void 0:t.progress)){var i=e.elements.progress.querySelectorAll(".plyr__progress__marker");if(!L(i))for(var r=0;r<i.length;r++)i[r].remove()}}function De(e,t){if(e&&(Ze(e),null==t?void 0:t.length)){var i=document.createDocumentFragment(),r=document.createDocumentFragment();t.forEach((function(t){var i=je("span",{class:"plyr__progress__marker"},""),n="".concat(t.time/e.duration*100,"%");i.addEventListener("click",(function(){e.currentTime=t.time})),i.style.left=n,r.appendChild(i)})),i.appendChild(r),e.elements.markers={points:r,tip:null},e.elements.progress.appendChild(i)}}function Fe(e){var t,i,r,n,o,a;if((null===(i=null===(t=null==e?void 0:e.config.preset)||void 0===t?void 0:t.search)||void 0===i?void 0:i.enabled)&&(null===(n=null===(r=null==e?void 0:e.media)||void 0===r?void 0:r.textTracks)||void 0===n?void 0:n.length)&&0!==(null===(a=null===(o=null==e?void 0:e.media)||void 0===o?void 0:o.textTracks)||void 0===a?void 0:a.length)&&-1===(null==e?void 0:e.currentTrack)){e.toggleCaptions(!0);var l=setInterval((function(){var t,i=null===(t=e.media.textTracks[0])||void 0===t?void 0:t.cues;(null==i?void 0:i.length)>0&&(function(e){var t,i,r,n,o;if(e&&(null===(t=null==e?void 0:e.media)||void 0===t?void 0:t.textTracks)&&0!==(null===(r=null===(i=null==e?void 0:e.media)||void 0===i?void 0:i.textTracks)||void 0===r?void 0:r.length)){var a=(null===(o=null===(n=null==e?void 0:e.media)||void 0===n?void 0:n.textTracks)||void 0===o?void 0:o[0])?Ne(e.media.textTracks[0]):{};L(a)||localStorage.setItem("presto-player-"+e.id+"-cues",JSON.stringify(a))}}(e),e.toggleCaptions(!1),clearInterval(l))}),200)}}},8116:function(e,t,i){i.d(t,{f:function(){return r}});var r=function(e,t,r){var n=function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}({minFontSize:-1/0,maxFontSize:1/0,container:e},r),o=function(e){var r=t||1,o=function(){var t;e.style.fontSize=Math.max(Math.min(((null==n||null===(t=n.container)||void 0===t?void 0:t.clientWidth)||0)/(10*r),parseFloat(n.maxFontSize)),parseFloat(n.minFontSize))+"px"};if(o(),"ResizeObserver"in window==0)var a=i.e(809).then(i.bind(i,4723)).then((function(){window.ResizeObserver=a.ResizeObserver,new ResizeObserver(o).observe(n.container)}));else new ResizeObserver(o).observe(n.container)};if(e.length)for(var a=0;a<e.length;a++)o(e[a]);else o(e);return e}},2013:function(e,t,i){i.r(t),i.d(t,{default:function(){return u}});var r=i(4942),n=i(5861),o=i(1284),a=i.n(o),l=i(7149);function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function c(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){(0,r.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}i(1368),i(2136);var u=function(e){var t=e.config,i=e.selector,r=e.src,o=e.preload;return new Promise(function(){var e=(0,n.Z)(a().mark((function e(n,s){var u,d,p;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.Hls){e.next=6;break}case 1:if(window.hasOwnProperty("Hls")){e.next=6;break}return e.next=4,new Promise((function(e){return setTimeout(e,50)}));case 4:e.next=1;break;case 6:if(!window.Hls.isSupported()){e.next=16;break}return d=!["metadata","none"].includes(o),null!==(u=wp)&&void 0!==u&&u.blocks&&(d=!0),(p=new window.Hls({autoStartLoad:d})).loadSource(r),p.on(window.Hls.Events.LEVEL_SWITCHED,(function(e,t){var r=i.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span");p.autoLevelEnabled?r.innerHTML="AUTO (".concat(p.levels[t.level].height,"p)"):r.innerHTML="AUTO"})),p.on(window.Hls.Events.MANIFEST_PARSED,(function(e,r){var o=p.levels.map((function(e){return e.height}));o.unshift(0);var a=(o||[]).findIndex((function(e){var t,i;return e===parseInt(null===(t=window)||void 0===t||null===(i=t.prestoPlayer)||void 0===i?void 0:i.hls_start_level)}));p.startLevel=a?a-1:2,t.quality={default:0,options:o,forced:!0,onChange:function(e){0===e?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(t,i){t.height===e&&(console.log("Found quality match with "+e),prestoHLS.currentLevel=i)}))}},p.attachMedia(i),window.prestoHLS=p;var s=new l.P(i,c({},t));return s.hls=p,s.on("waiting",(function e(){p.startLoad(-1),s.off("waiting",e)})),s.on("languagechange",(function(){setTimeout((function(){return p.subtitleTrack=s.currentTrack}),50)})),n(s)})),e.abrupt("return");case 16:if(!i.canPlayType("application/vnd.apple.mpegurl")){e.next=18;break}return e.abrupt("return",n(new l.P(i,c({},t))));case 18:return e.abrupt("return",n(new l.P(i,c({},t))));case 19:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}())}},5980:function(e,t,i){i.r(t),i.d(t,{default:function(){return n}});var r=i(7149),n=(i(1368),i(2136),function(e){var t,i,n,o,a,l,s,c,u,d;"undefined"!=typeof learndash_video_data&&"presto"===(null===(t=learndash_video_data)||void 0===t?void 0:t.videos_found_provider)&&((0,r.r)(e,!0),window.learndash_video_data.videos_auto_complete="on"===(null===(i=prestoPlayer)||void 0===i||null===(n=i.learndash)||void 0===n?void 0:n.lesson_video_auto_complete),window.learndash_video_data.videos_hide_complete_button="AFTER"===(null===(o=learndash_video_data)||void 0===o?void 0:o.videos_shown)&&"on"===(null===(a=prestoPlayer)||void 0===a||null===(l=a.learndash)||void 0===l?void 0:l.lesson_video_hide_complete_button),window.learndash_video_data.videos_auto_complete_delay=null===(s=prestoPlayer)||void 0===s||null===(c=s.learndash)||void 0===c?void 0:c.lesson_video_auto_complete_delay,window.learndash_video_data.videos_auto_complete_delay_message=null===(u=prestoPlayer)||void 0===u||null===(d=u.learndash)||void 0===d?void 0:d.videos_auto_complete_delay_message,window.learndash_video_data.video_track_path="/",jQuery((function(){"1"===learndash_video_data.video_debug&&console.log("PRESTO: init"),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').length&&("1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(true)"),LearnDash_disable_assets(!0),LearnDash_watchPlayers(),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').forEach((function(e,t){console.log({element:e});var i="presto-player__wrapper-player-"+t,r=e.getAttribute("id");void 0!==r&&""!=r||(r=i,e.setAttribute("id",r)),ld_video_players[i]={},ld_video_players[i].player_key=i,ld_video_players[i].player_type=learndash_video_data.videos_found_provider,ld_video_players[i].player_id=r,ld_video_players[i].player_wrapper=e.closest("presto-player"),void 0!==ld_video_players[i].player_wrapper?ld_video_players[i].player_cookie_key=ld_video_players[i].player_wrapper.getAttribute("data-video-cookie-key"):ld_video_players[i].player_cookie_key="",ld_video_players[i].player_cookie_values=LearnDash_Video_Progress_initSettings(ld_video_players[i]),"complete"===LearnDash_Video_Progress_getSetting(ld_video_players[i],"video_state")?(LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()):(wp.hooks.addAction("presto.playerTimeUpdate","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[i],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[i],"video_time",e.currentTime),e.duration&&e.duration===e.currentTime&&(LearnDash_Video_Progress_setSetting(ld_video_players[i],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd())})),wp.hooks.addAction("presto.playerPlaying","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[i],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[i],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[i],"video_state","play")})),wp.hooks.addAction("presto.playerPause","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is paused"),LearnDash_Video_Progress_setSetting(ld_video_players[i],"video_time",e.currentTime),console.log(e.duration),console.log(e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[i],"video_state","pause")})),wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: video ended"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: setting 'video_state' to 'complete'"),LearnDash_Video_Progress_setSetting(ld_video_players[i],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[i],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()})))})))})))})},9097:function(e,t,i){i.r(t),i.d(t,{default:function(){return u},onEndedVideo:function(){return c},onPauseVideo:function(){return l},onPlayingVideo:function(){return s}});var r=function(e){e.preventDefault()};function n(e){var t=jQuery(".llms-complete-lesson-form"),i=jQuery('.llms-complete-lesson-form button[type="submit"]'),n=jQuery("#llms_start_quiz, #llms-start-assignment");!0===e?(t.off("submit",r),i.removeAttr("disabled"),n.removeClass("llms-av-disabled").off("click",r)):(t.on("submit",r),i.attr("disabled","disabled"),n.addClass("llms-av-disabled").on("click",r))}var o=function(e){return{ts:e.currentTime,duration:e.duration,url:e.source,provider:e.provider,id:e.config.id}},a=function(e,t){llms.tracking.addEvent("video."+e,{meta:t})};var l=function(e){var t=e.detail.plyr,i=o(t);a("paused",i)},s=function(e){var t=e.detail.plyr,i=o(t),r=i.ts<1?"started":"played";a(r,i)},c=function(e,t,i){var r=e.detail.plyr,l=o(r);a("ended",l),function(e,t){LLMS.Ajax.call({data:{action:"llms_av_video_ended",id:t.post_id,nonce:t.nonce},beforeSend:function(){LLMS.Spinner.start(e)},error:function(t,i,r){LLMS.Spinner.stop(e),console.error(t.responseText+" ("+r+" "+i+")"),console.log(t)},success:function(t){LLMS.Spinner.stop(e),null!=t&&t.html&&(e.append(t.html),function(e){var t,i=e.find(".llms-av-pv--seconds");setInterval((function(){1==(t=1*i.text()-1)&&i.closest("a")[0].click(),t>=0&&i.text(t)}),1e3)}(e))}})}(t,i),n(!0)};function u(e){var t,i,r={},o=(null===(t=llms)||void 0===t||null===(i=t.tracking)||void 0===i?void 0:i.getSettings())||null;null!=o&&o.av&&(r=o.av),r.require_video_completion&&!r.video_completed&&n(!1);var a=jQuery(".presto-block-video");e.on("pause",l),e.on("playing",s),e.on("ended",(function(e){return c(e,a,r)}))}},578:function(e,t,i){i.r(t),i.d(t,{presto_action_bar_ui:function(){return a},presto_youtube_subscribe_button:function(){return l}});var r=i(5671),n=i(3144),o=i(1368),a=function(){function e(t){(0,r.Z)(this,e),(0,o.r)(this,t),this.open=void 0}return(0,n.Z)(e,[{key:"render",value:function(){return(0,o.h)("div",{key:"b45af8959832ecc2f240622497174cd70f17015d",class:{bar:!0,"bar--open":this.open}},(0,o.h)("span",{key:"96010998372b90e5afba2316b9b71b3efb0e7502",part:"content",class:"bar__content"},(0,o.h)("slot",{key:"c166254469403bf9b24479697f11fda494246dcb"})),(0,o.h)("span",{key:"94a877081d27b5b19dd68419ca1b0694ef25053c",part:"button",class:"bar__button"},(0,o.h)("slot",{key:"de591a41e84782ef5b9dcdc06c5ee06e22e1b024",name:"button"})))}}]),e}();a.style=":host{display:block;overflow:hidden}.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;background:var(--presto-action-bar-background, #1d1d1d);color:#fff;padding:0 var(--presto-action-bar-padding, 6px);line-height:1em;font-size:16px;margin-top:-100%;transition:margin var(--presto-action-bar-animation-speed, 0.5s) ease-in-out;transform:translate3d(0);border-radius:0px 0px var(--presto-player-border-radius) var(--presto-player-border-radius)}.bar.bar--open{margin-top:0}.bar__button{margin:var(--presto-action-bar-padding, 6px);display:flex;align-items:center}.bar__content{margin:var(--presto-action-bar-padding, 6px);width:100%;text-align:center}@media screen and (min-width: 480px){.bar__content{width:auto}}";var l=function(){function e(t){(0,r.Z)(this,e),(0,o.r)(this,t),this.channel=void 0,this.layout="default",this.showCount=void 0}return(0,n.Z)(e,[{key:"waitForApi",value:function(e){var t=setInterval((function(){var i;(null===(i=null===window||void 0===window?void 0:window.gapi)||void 0===i?void 0:i.ytsubscribe)&&(clearInterval(t),e())}),50)}},{key:"componentDidLoad",value:function(){var e=this,t=document.createElement("script");t.type="text/javascript",t.async=!1,t.src="https://apis.google.com/js/platform.js";var i=document.getElementsByTagName("script")[0];i&&i.parentNode.insertBefore(t,i),this.waitForApi((function(){window.gapi.ytsubscribe.render(e.textInput,{channelId:e.channel,layout:e.layout,count:e.showCount?"default":"hidden"})}))}},{key:"render",value:function(){var e=this;return(0,o.h)("div",{key:"5891adca82eb9dfda8db90ca5b11dac0cfdc58ed",class:"g-ytsubscribe",ref:function(t){return e.textInput=t}})}}]),e}();l.style=":host{display:block}"},2626:function(e,t,i){i.r(t),i.d(t,{presto_action_bar:function(){return v},presto_action_bar_controller:function(){return g},presto_audio:function(){return m},presto_bunny:function(){return b},presto_business_skin:function(){return _},presto_cta_overlay:function(){return w},presto_cta_overlay_controller:function(){return k},presto_dynamic_overlay_ui:function(){return x},presto_dynamic_overlays:function(){return T},presto_email_overlay:function(){return P},presto_email_overlay_controller:function(){return S},presto_modern_skin:function(){return C},presto_muted_overlay:function(){return A},presto_search_bar:function(){return E},presto_stacked_skin:function(){return L},presto_vimeo:function(){return M},presto_youtube:function(){return I}});var r=i(1002),n=i(136),o=i(9611),a=i(5861),l=i(4942),s=i(5671),c=i(3144),u=i(1284),d=i.n(u),p=i(1368),h=i(2136),f=i(8116);function y(){y=function(e,t){return new i(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function i(e,r,n){var a=new RegExp(e,r);return t.set(a,n||t.get(e)),(0,o.Z)(a,i.prototype)}function a(e,i){var r=t.get(i);return Object.keys(r).reduce((function(t,i){var n=r[i];if("number"==typeof n)t[i]=e[n];else{for(var o=0;void 0===e[n[o]]&&o+1<n.length;)o++;t[i]=e[n[o]]}return t}),Object.create(null))}return(0,n.Z)(i,RegExp),i.prototype.exec=function(t){var i=e.exec.call(this,t);if(i){i.groups=a(i,this);var r=i.indices;r&&(r.groups=a(r,this))}return i},i.prototype[Symbol.replace]=function(i,n){if("string"==typeof n){var o=t.get(this);return e[Symbol.replace].call(this,i,n.replace(/\$<([^>]+)>/g,(function(e,t){var i=o[t];return"$"+(Array.isArray(i)?i.join("$"):i)})))}if("function"==typeof n){var l=this;return e[Symbol.replace].call(this,i,(function(){var e=arguments;return"object"!=(0,r.Z)(e[e.length-1])&&(e=[].slice.call(e)).push(a(e,l)),n.apply(this,e)}))}return e[Symbol.replace].call(this,i,n)},y.apply(this,arguments)}var v=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.player=void 0,this.config=void 0,this.direction=void 0,this.youtube=void 0,this.currentTime=void 0,this.duration=void 0,this.ended=void 0}return(0,c.Z)(e,[{key:"componentWillLoad",value:function(){var e=this;this.player&&(this.player.on("ended",(function(){return e.setEnded()})),this.player.on("timeupdate",(function(t){return e.setCurrentTime(t)})))}},{key:"setEnded",value:function(){this.ended=!0}},{key:"setCurrentTime",value:function(e){var t,i;this.currentTime=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.plyr.currentTime,this.duration=null===(i=null==e?void 0:e.detail)||void 0===i?void 0:i.plyr.duration}},{key:"disconnectedCallback",value:function(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}},{key:"render",value:function(){return(0,p.h)("presto-action-bar-controller",{key:"68bb051b0412e81363952dffec787ffceeff0899",ended:this.ended,config:this.config,currentTime:this.currentTime,duration:this.duration,direction:this.direction,youtube:this.youtube})}},{key:"el",get:function(){return(0,p.g)(this)}}]),e}();v.style=":host{display:block}";var g=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.actionBarStateChange=(0,p.c)(this,"actionBarStateChange",7),this.ended=void 0,this.config=void 0,this.currentTime=void 0,this.duration=void 0,this.direction=void 0,this.youtube=void 0,this.show=!1,this.youtubeRenderKey=1,this.percentagePassed=0}return(0,c.Z)(e,[{key:"componentWillLoad",value:function(){this.handleDuration()}},{key:"handleDuration",value:function(){this.handleTime()}},{key:"handleEnded",value:function(e){var t;if(e){if(100!==(null===(t=null==this?void 0:this.config)||void 0===t?void 0:t.percentage_start))return;this.show=!0}}},{key:"handlePercentagePassed",value:function(){this.percentagePassed=this.currentTime/this.duration*100}},{key:"handleTime",value:function(){this.checkTime()}},{key:"checkTime",value:function(){var e,t;(null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.blocks)?this.show=!0:this.show=(0,h.t)({current:this.currentTime,duration:this.duration,showAfter:null===(t=this.config)||void 0===t?void 0:t.percentage_start})}},{key:"handleButtonCountChange",value:function(e,t){(null==e?void 0:e.button_count)!==(null==t?void 0:t.button_count)&&this.youtubeRenderKey++,(null==e?void 0:e.enabled)&&this.handleDuration()}},{key:"youtubeButton",value:function(){var e,t,i,r;if("youtube"===(null===(e=this.config)||void 0===e?void 0:e.button_type)&&(null===(t=this.youtube)||void 0===t?void 0:t.channelId))return(0,p.h)("presto-youtube-subscribe-button",{key:this.youtubeRenderKey,channel:null===(i=this.youtube)||void 0===i?void 0:i.channelId,showCount:null===(r=this.config)||void 0===r?void 0:r.button_count})}},{key:"customButton",value:function(){var e,t,i,r,n,o,a,l,s,c,u;if("custom"===(null===(e=this.config)||void 0===e?void 0:e.button_type))return(0,p.h)("presto-player-button",{type:"primary",size:"small",href:null===(i=null===(t=this.config)||void 0===t?void 0:t.button_link)||void 0===i?void 0:i.url,target:(null===(n=null===(r=this.config)||void 0===r?void 0:r.button_link)||void 0===n?void 0:n.opensInNewTab)?"_blank":"_self",style:Object.assign(Object.assign({"--presto-player-button-border-radius":"".concat(null===(o=this.config)||void 0===o?void 0:o.button_radius,"px")},(null===(a=this.config)||void 0===a?void 0:a.button_color)?{"--presto-player-button-color":"".concat(null===(l=this.config)||void 0===l?void 0:l.button_color)}:{}),(null===(s=this.config)||void 0===s?void 0:s.button_text_color)?{"--presto-player-button-text":"".concat(null===(c=this.config)||void 0===c?void 0:c.button_text_color)}:{})},null===(u=this.config)||void 0===u?void 0:u.button_text)}},{key:"handleCtaStateChange",value:function(e){this.actionBarStateChange.emit(e)}},{key:"render",value:function(){var e,t;return(0,p.h)("presto-action-bar-ui",{key:"843046d7ae74eb23df6f6bafa018987c12f61df7",open:this.show,style:{"--presto-action-bar-background":(null===(e=this.config)||void 0===e?void 0:e.background_color)||"#1d1d1d"}},null===(t=this.config)||void 0===t?void 0:t.text,(0,p.h)("div",{key:"3dd88ff01aeb1df74303758c5b640d29e48fe1a2",slot:"button"},this.youtubeButton(),this.customButton()))}},{key:"el",get:function(){return(0,p.g)(this)}}],[{key:"watchers",get:function(){return{duration:["handleDuration","handlePercentagePassed"],ended:["handleEnded"],currentTime:["handlePercentagePassed","handleTime"],config:["handleButtonCountChange"],show:["handleCtaStateChange"]}}}]),e}();g.style=":host{display:block}";var m=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.playVideo=(0,p.c)(this,"playVideo",7),this.pauseVideo=(0,p.c)(this,"pauseVideo",7),this.getRef=void 0,this.autoplay=void 0,this.src=void 0,this.preload=void 0,this.poster=void 0,this.player=void 0,this.preset=void 0,this.tracks=void 0,this.provider=void 0,this.mediaTitle=void 0,this.audioAttributes=void 0,this.width=void 0}return(0,c.Z)(e,[{key:"renderPosterImage",value:function(){if(this.poster)return(0,p.h)("div",{class:"presto-audio__poster"},(0,p.h)("img",{src:this.poster}))}},{key:"hasPosterArea",value:function(){var e;return!!this.poster||!!(null===(e=this.preset)||void 0===e?void 0:e["play-large"])}},{key:"renderMobilePoster",value:function(){var e;return(0,p.h)("div",{class:"presto-audio__poster-wrapper-mobile"},!!(null===(e=this.preset)||void 0===e?void 0:e["play-large"])&&this.renderLargePlay("presto-audio__large-play-button is-relative"),(0,p.h)("div",{class:"presto-audio__mobile-title"},this.mediaTitle))}},{key:"renderLargePlay",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"presto-audio__large-play-button";return(0,p.h)("div",{class:t,onClick:function(){e.player.playing?e.pauseVideo.emit():e.playVideo.emit()}},(0,p.h)("svg",{class:"presto-audio__icon-play",width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.h)("path",{d:"M15.5588 9.00005L0.117662 17.915L0.117662 0.0850823L15.5588 9.00005Z"})),(0,p.h)("svg",{class:"presto-audio__icon-pause",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.h)("rect",{width:"5",height:"17"}),(0,p.h)("rect",{x:"12",width:"5",height:"17"})))}},{key:"componentDidLoad",value:function(){var e=this;"ResizeObserver"in window&&new ResizeObserver((function(t){t.forEach((function(t){return e.width=t.contentRect.width}))})).observe(this.el)}},{key:"render",value:function(){var e,t,i,r,n,o=this;return(0,p.h)("div",{key:"b9d4dc94569cc875faa3ca027f261435c5f16176",ref:function(e){return o.el=e},class:{"presto-audio__wrapper":!0,"has-poster":!!this.poster,"has-play-large":!!(null===(e=this.preset)||void 0===e?void 0:e["play-large"]),"is-playing":null===(t=this.player)||void 0===t?void 0:t.playing,"has-light-background":"light"===(0,h.l)(null===(i=this.preset)||void 0===i?void 0:i.background_color),"has-dark-background":"dark"===(0,h.l)(null===(r=this.preset)||void 0===r?void 0:r.background_color),"breakpoint-small":this.width<520,"skin-stacked":this.width<520,"breakpoint-large":this.width>=520}},this.hasPosterArea()&&(0,p.h)("div",{key:"c44d629e4005fefe173117449ca46fd38d668f37",class:"presto-audio__poster-wrapper"},!!(null===(n=this.preset)||void 0===n?void 0:n["play-large"])&&(0,p.h)("div",{key:"d5e7bcf6adaf2d1682a637a51a7e5927dfdfeba5",class:"presto-audio__large-play-wrapper"},this.renderLargePlay()),this.renderPosterImage()),this.hasPosterArea()&&this.renderMobilePoster(),(0,p.h)("div",{key:"8cd1d93e0847b492b9bd4bfbcc6f79489531f64a",class:"presto-audio__controls-wrapper"},(0,p.h)("div",{key:"c20d37014383c5a7897d504168697043a5e52385",class:"presto-audio__title"},this.mediaTitle),(0,p.h)("audio",Object.assign({key:"c17bc3d36bcda183e46e8a0a1c44a4c5ce35a4df",part:"audio-player",ref:this.getRef,autoplay:this.autoplay,preload:this.preload,"data-poster":this.poster},this.audioAttributes),(0,p.h)("source",{key:"9d69389fe7894d6f6823d55ce0a433c9d0d39952",src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((function(e){return(0,p.h)("track",{kind:"captions",label:(null==e?void 0:e.label)?e.label:"Captions",src:null==e?void 0:e.src,srclang:(null==e?void 0:e.srcLang)?null==e?void 0:e.srcLang:"en"})})))))}}]),e}();m.style=":host{display:block}.presto-audio__wrapper{border-radius:var(--presto-player-border-radius, 0px)}.presto-audio__wrapper .plyr--audio .plyr__controls{padding:0}.presto-audio__wrapper .plyr--audio .plyr__control.plyr__tab-focus,.presto-audio__wrapper .plyr--audio .plyr__control:hover,.presto-audio__wrapper .plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-controls-background);color:var(--plyr-audio-control-color)}.presto-audio__wrapper{display:flex;background:var(--plyr-audio-controls-background, #fff)}.presto-audio__controls-wrapper{padding:calc(var(--plyr-control-spacing, 10px) * 2);flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0}.has-poster .presto-audio__controls-wrapper{padding:calc(var(--plyr-control-spacing, 10px) * 3)}.has-play-large:not(.has-poster) .presto-audio__controls-wrapper{padding-left:0}.presto-audio__title,.presto-audio__mobile-title{font-size:18px;font-weight:500;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--plyr-audio-control-color)}.presto-audio__title{margin:calc(var(--plyr-control-spacing, 10px) / 2);margin-top:0;text-wrap:wrap}.presto-audio__poster-wrapper{position:relative;width:100px;min-height:100px;flex:0 0 100px}.presto-audio__poster-wrapper img{border-radius:var(--presto-player-border-radius, 0px) 0 0 var(--presto-player-border-radius, 0px);width:100%;height:100%;object-fit:cover;aspect-ratio:1;display:block}.has-poster .presto-audio__poster-wrapper{width:140px;height:140px;flex:0 0 140px}.presto-audio__poster{width:100%;height:100%}.presto-audio__large-play-button{user-select:none;cursor:pointer;position:absolute;display:flex;align-items:center;justify-content:center;top:50%;left:50%;transform:translate(-50%, -50%);width:50px;height:50px;color:white;border-radius:100%;background:var(--plyr-audio-control-color);color:var(--plyr-audio-controls-background)}.presto-audio__large-play-button.is-relative{position:relative;top:auto;left:auto;transform:none}.has-light-background.has-poster .presto-audio__large-play-button{background:var(--plyr-audio-controls-background);color:var(--plyr-audio-control-color)}.has-dark-background.has-poster .presto-audio__large-play-button{background:var(--plyr-audio-control-color);color:var(--plyr-audio-controls-background)}.presto-audio__icon-play,.presto-audio__icon-pause{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);fill:currentColor;display:block;transition:opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;margin:0 auto;text-align:center}.presto-audio__icon-pause{opacity:0;visibility:hidden}.presto-audio__wrapper.is-playing .presto-audio__icon-pause{opacity:1;visibility:visible}.presto-audio__icon-play{margin-left:2px;opacity:1;visibility:visible}.presto-audio__wrapper.is-playing .presto-audio__icon-play{opacity:0;visibility:hidden}.presto-audio__poster-wrapper-mobile{display:none;min-width:0}.presto-audio__poster-wrapper-mobile .presto-audio__large-play-button{flex:0 0 50px}.presto-audio__wrapper.breakpoint-small{flex-direction:column}.presto-audio__wrapper.breakpoint-small .presto-audio__controls-wrapper{padding:calc(var(--plyr-control-spacing, 10px) * 2)}.presto-audio__wrapper.breakpoint-small.has-poster .presto-audio__title{text-align:center;margin:calc(var(--plyr-control-spacing, 10px) * 1.5)}.presto-audio__wrapper.breakpoint-small.has-poster .presto-audio__poster-wrapper{margin:30px auto auto auto;overflow:hidden;border-radius:var(--presto-player-border-radius, 0px);width:225px;height:225px;flex:0 0 225px}.presto-audio__wrapper.breakpoint-small.has-play-large:not(.has-poster) .presto-audio__poster-wrapper,.presto-audio__wrapper.breakpoint-small.has-play-large:not(.has-poster) .presto-audio__title{display:none}.presto-audio__wrapper.breakpoint-small.has-play-large:not(.has-poster) .presto-audio__poster-wrapper-mobile{display:flex;align-items:center;gap:1em;margin-bottom:calc(var(--plyr-control-spacing, 10px) * -1);padding:calc(var(--plyr-control-spacing, 10px) * 2) calc(var(--plyr-control-spacing, 10px) * 2) 0 calc(var(--plyr-control-spacing, 10px) * 2)}.skin-stacked.presto-sticky-audio .presto-audio__wrapper{height:115px}.skin-stacked.presto-sticky-audio .has-poster .presto-audio__controls-wrapper{padding:20px}.skin-stacked.presto-sticky-audio .has-poster .presto-audio__poster-wrapper{width:115px;height:115px;flex:0 0 115px}.presto-sticky-audio .presto-audio__wrapper{height:100px}.presto-sticky-audio .has-poster .presto-audio__controls-wrapper{padding:20px}.presto-sticky-audio .has-poster .presto-audio__poster-wrapper{width:100px;height:100px;flex:0 0 100px}.action-bar-active .presto-audio__wrapper{border-radius:var(--presto-player-border-radius) var(--presto-player-border-radius) 0px 0px}@media screen and (max-width: 782px){.presto-sticky-audio .presto-audio__poster-wrapper-mobile{display:flex;align-items:center;gap:1em;margin-bottom:calc(var(--plyr-control-spacing, 10px) * -1);padding:calc(var(--plyr-control-spacing, 10px) * 2) calc(var(--plyr-control-spacing, 10px) * 2) 0 calc(var(--plyr-control-spacing, 10px) * 2)}.presto-sticky-audio .presto-audio__poster-wrapper,.presto-sticky-audio .presto-audio__title{display:none}.presto-sticky-audio .presto-audio__wrapper{height:140px}.presto-sticky-audio .has-poster .presto-audio__controls-wrapper{padding:0px}.presto-sticky-audio .presto-audio__poster-wrapper-mobile .presto-audio__large-play-button{flex:0 0 40px;height:40px}}";var b=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.getRef=void 0,this.autoplay=void 0,this.src=void 0,this.preload=void 0,this.poster=void 0,this.player=void 0,this.tracks=void 0,this.playsinline=void 0,this.provider=void 0,this.thumbnail=void 0,this.previewUrl=void 0,this.videoAttributes=void 0}return(0,c.Z)(e,[{key:"componentWillLoad",value:function(){this.poster=this.poster||this.thumbnail}},{key:"render",value:function(){return(0,p.h)("presto-video",{key:"082574ecb3f6ba1e4de1adfa13483c49acb20aff",getRef:this.getRef,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks,videoAttributes:this.videoAttributes})}}]),e}(),_=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t)}return(0,c.Z)(e,[{key:"render",value:function(){return(0,p.h)(p.H,{key:"43b7781a757d117be4457ee9fec35756fe48d025"},(0,p.h)("slot",{key:"39cd2e2e479e5959ba8980ba74c72faa006ed867"}))}}]),e}();_.style='.skin-business.presto-player__wrapper.rewind-inactive .plyr__controls .plyr__controls__item:nth-child(2)::before{border-radius:var(--plyr-control-radius, 3px) 0px 0px var(--plyr-control-radius, 3px)}.skin-business.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 16px) * -4))}.skin-business.presto-player__wrapper .presto-player-progress__marker{border-radius:0;width:15px;height:15px;border-width:1px}.skin-business.presto-player__wrapper .plyr__control[data-plyr]:hover:not([role*=menuitem]):not(.plyr__control--back),.skin-business.presto-player__wrapper .plyr__control[data-plyr]:focus:not([role*=menuitem]):not(.plyr__control--back),.skin-business.presto-player__wrapper .plyr__control[data-plyr]:active:not([role*=menuitem]):not(.plyr__control--back){background-color:transparent;color:var(--plyr-color-main)}.skin-business.presto-player__wrapper .plyr__control[data-plyr]:hover:not([role*=menuitem]):not(.plyr__control--back)[data-plyr=play],.skin-business.presto-player__wrapper .plyr__control[data-plyr]:focus:not([role*=menuitem]):not(.plyr__control--back)[data-plyr=play],.skin-business.presto-player__wrapper .plyr__control[data-plyr]:active:not([role*=menuitem]):not(.plyr__control--back)[data-plyr=play]{background-color:var(--plyr-color-main);color:white}.skin-business.presto-player__wrapper .plyr__control--overlaid[data-plyr=play]{border-radius:4px;background:#000000;opacity:75%}.skin-business.presto-player__wrapper .plyr__control--overlaid[data-plyr=play]:hover{background-color:var(--plyr-color-main);color:white;opacity:100%}.skin-business.presto-player__wrapper .plyr__volume input[type=range]{cursor:pointer}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fast-forward]{border-radius:0px}.skin-business.presto-player__wrapper .plyr__progress{margin:0px 20px 0 5px}.skin-business.presto-player__wrapper .plyr__progress input[type=range]{height:32px;border-radius:0px;cursor:pointer}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker):first-child::before{border-radius:var(--plyr-control-radius, 3px) 0px 0px var(--plyr-control-radius, 3px)}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker):last-child::before{border-radius:0px var(--plyr-control-radius, 3px) var(--plyr-control-radius, 3px) 0px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item.plyr__control[data-plyr=play]{order:-1;margin-right:5px;padding:11px 20px 11px 20px;top:-4px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item.plyr__control[data-plyr=play]::before{border-radius:4px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=rewind]::before{border-radius:var(--plyr-control-radius, 3px) 0px 0px var(--plyr-control-radius, 3px)}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not([data-plyr=play]){margin:0}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen]{padding:4px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen] svg{height:24px;width:24px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker){position:relative}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker).plyr__time{height:32px;padding-top:4.5px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker)::before{content:"";background:#000000;position:absolute;top:0px;left:0;right:0;bottom:0px;opacity:0.76;z-index:-1}.skin-business.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-runnable-track{box-shadow:none;color:var(--plyr-color-main);height:9px;outline:1px solid rgba(135, 135, 135, 0.6509803922);outline-offset:2px;border-radius:0px}.skin-business.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-thumb{visibility:hidden}.skin-business.presto-player__wrapper .plyr__progress__buffer::-webkit-progress-value{position:relative;border-radius:0px;height:9px;top:-2px}.skin-business.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background-color:transparent}@media screen and (max-width: 480px){.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item.plyr__time{padding:1.5%}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=play]{padding:8px;top:0px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen] svg{width:22px}}';var w=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.player=void 0,this.direction=void 0,this.preset=void 0,this.i18n=void 0,this.provider=void 0,this.currentTime=void 0,this.duration=void 0,this.ended=void 0}return(0,c.Z)(e,[{key:"componentWillLoad",value:function(){var e=this;this.player&&(this.player.on("ended",(function(){return e.setEnded()})),this.player.on("timeupdate",(function(t){return e.setCurrentTime(t)})))}},{key:"setEnded",value:function(){this.ended=!0}},{key:"setCurrentTime",value:function(e){var t,i;this.currentTime=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.plyr.currentTime,this.duration=null===(i=null==e?void 0:e.detail)||void 0===i?void 0:i.plyr.duration}},{key:"disconnectedCallback",value:function(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}},{key:"render",value:function(){var e;return(0,p.h)("presto-cta-overlay-controller",{key:"8ee64dc818a0256e6674c9c2b0f33916374c89fa",ended:this.ended,currentTime:this.currentTime,duration:this.duration,direction:this.direction,cta:null===(e=this.preset)||void 0===e?void 0:e.cta,i18n:this.i18n,provider:this.provider})}}]),e}();w.style=":host{display:block}";var k=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.playVideo=(0,p.c)(this,"playVideo",7),this.pauseVideo=(0,p.c)(this,"pauseVideo",7),this.restartVideo=(0,p.c)(this,"restartVideo",7),this.ctaStateChange=(0,p.c)(this,"ctaStateChange",7),this.ended=void 0,this.currentTime=void 0,this.duration=void 0,this.direction=void 0,this.cta=void 0,this.i18n=void 0,this.provider=void 0,this.enabled=void 0,this.show=void 0,this.loading=void 0,this.error=void 0,this.skipped=void 0,this.percentagePassed=0}return(0,c.Z)(e,[{key:"componentWillLoad",value:function(){this.handleDuration()}},{key:"handleEnded",value:function(e){var t;if(e){if(100!==(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.percentage))return;this.show=!0}}},{key:"handleDuration",value:function(){var e;this.enabled=!this.skipped&&(null===(e=null==this?void 0:this.cta)||void 0===e?void 0:e.enabled),this.handleTime()}},{key:"handlePercentagePassed",value:function(){this.percentagePassed=this.currentTime/this.duration*100}},{key:"handleEnabled",value:function(){this.show&&(this.skipped||this.pauseVideo.emit(!0))}},{key:"handleTime",value:function(){var e;this.enabled&&(this.skipped||100!==(null===(e=null==this?void 0:this.cta)||void 0===e?void 0:e.percentage)&&this.checkTime())}},{key:"checkTime",value:function(){var e;this.show=(0,h.t)({current:this.currentTime,duration:this.duration,showAfter:(null===(e=null==this?void 0:this.cta)||void 0===e?void 0:e.percentage)||0})}},{key:"skip",value:function(){this.skipped=!0,this.show=!1,this.playVideo.emit()}},{key:"rewatch",value:function(){this.ended=!1,this.show=!1,this.restartVideo.emit()}},{key:"handleCtaStateChange",value:function(e){this.ctaStateChange.emit(e)}},{key:"render",value:function(){var e,t,i,r,n,o,a,l,s,c,u,d,h,f,y=this;if(this.show)return(0,p.h)("presto-cta-overlay-ui",{style:Object.assign(Object.assign(Object.assign({"--presto-player-button-border-radius":"".concat(null===(e=null==this?void 0:this.cta)||void 0===e?void 0:e.button_radius,"px")},(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.background_opacity)?{"--presto-player-cta-background-opacity":"".concat((null===(i=null==this?void 0:this.cta)||void 0===i?void 0:i.background_opacity)/100)}:{}),(null===(r=null==this?void 0:this.cta)||void 0===r?void 0:r.button_color)?{"--presto-player-button-color":"".concat(null===(n=null==this?void 0:this.cta)||void 0===n?void 0:n.button_color)}:{}),(null===(o=null==this?void 0:this.cta)||void 0===o?void 0:o.button_text_color)?{"--presto-player-button-text":"".concat(null===(a=null==this?void 0:this.cta)||void 0===a?void 0:a.button_text_color)}:{}),direction:this.direction,class:"cta-overlay",i18n:this.i18n,headline:null===(l=null==this?void 0:this.cta)||void 0===l?void 0:l.headline,"bottom-text":null===(s=null==this?void 0:this.cta)||void 0===s?void 0:s.bottom_text,"show-button":null===(c=null==this?void 0:this.cta)||void 0===c?void 0:c.show_button,buttonLink:null===(u=null==this?void 0:this.cta)||void 0===u?void 0:u.button_link,allowSkip:!this.ended&&(null===(d=null==this?void 0:this.cta)||void 0===d?void 0:d.show_skip),allowRewatch:this.ended&&(null===(h=null==this?void 0:this.cta)||void 0===h?void 0:h.show_rewatch),"button-text":null===(f=null==this?void 0:this.cta)||void 0===f?void 0:f.button_text,onSkip:function(){return y.skip()},onRewatch:function(){return y.rewatch()},provider:this.provider})}}],[{key:"watchers",get:function(){return{ended:["handleEnded"],duration:["handleDuration","handlePercentagePassed"],currentTime:["handlePercentagePassed","handleEnabled","handleTime"],show:["handleCtaStateChange"]}}}]),e}();k.style=":host{display:block}";var x=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.href=void 0,this.target=void 0,this.position="top-right"}return(0,c.Z)(e,[{key:"closestElement",value:function(e,t){return t&&t!=document&&t!=window&&t.closest(e)||t&&this.closestElement(e,t.getRootNode().host)}},{key:"componentDidLoad",value:function(){var e=this.closestElement("presto-player",this.el);(0,f.f)(this.text,3,{maxFontSize:16,minFontSize:10,container:e})}},{key:"render",value:function(){var e=this,t=this.href?"a":"span";return(0,p.h)(t,{key:"aba93930fd5449cfccd632ecd9983841c5333d9f",class:{"overlay-text":!0,"overlay--top-left":"top-left"===this.position,"overlay--top-right":"top-right"===this.position},href:this.href,target:this.target,part:"overlay-text",ref:function(t){return e.text=t}},(0,p.h)("slot",{key:"be2b2aa9b5c71e613ccef9e62f828451964649fe"}))}},{key:"el",get:function(){return(0,p.g)(this)}}]),e}();x.style=":host{display:block}.overlay-text{text-decoration:none;display:inline-block;user-select:none;line-height:1;opacity:var(--presto-dynamic-overlay-opacity, 1);font-size:var(--presto-dynamic-overlay-font-size, 18px);padding:var(--presto-dynamic-overlay-padding, 0.65em 0.85em);font-weight:var(--presto-dynamic-overlay-font-weight, 500);border-radius:var(--presto-dynamic-overlay-radius, 0.25em);background:var(--presto-dynamic-overlay-background, rgba(0, 0, 0, 0.8));color:var(--presto-dynamic-overlay-color, #fff);opacity:var(--presto-dynamic-overlay-opacity, 1);word-break:break-word}a.overlay-text{cursor:pointer}";var T=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.reloadComponent=(0,p.c)(this,"reloadComponent",7),this.watermarkRef={left:null,right:null},this.refs={},this.overlays=void 0,this.player=void 0,this.preset=void 0,this.enabled=void 0,this.currentTime=void 0,this.destroy=!1}return(0,c.Z)(e,[{key:"componentDidLoad",value:function(){var e=this;this.player&&this.player.on("timeupdate",(function(t){e.currentTime=t.detail.plyr.currentTime,e.checkValidity()}))}},{key:"checkValidity",value:function(){var e,t,i,r,n,o,a,l,s,c,u=this;this.player.playing&&((null===(e=null==this?void 0:this.overlays)||void 0===e?void 0:e.length)||(null===(i=null===(t=this.preset)||void 0===t?void 0:t.watermark)||void 0===i?void 0:i.enabled))&&((null===(r=this.container)||void 0===r?void 0:r.offsetParent)&&(null===(n=this.topLeft)||void 0===n?void 0:n.offsetParent)&&(null===(o=this.topRight)||void 0===o?void 0:o.offsetParent)||this.reloadComponent.emit(),Object.keys(this.refs||{}).forEach((function(e){var t=u.refs[e],i=t.overlay,r=t.component;u.checkComponent(r,i.text,(function(){return u.reloadComponent.emit()}))})),this.shouldShowWatermark("top-left")&&this.watermarkRef.left&&this.checkComponent(this.watermarkRef.left,null===(l=null===(a=this.preset)||void 0===a?void 0:a.watermark)||void 0===l?void 0:l.text,(function(){return u.reloadComponent.emit()})),this.shouldShowWatermark("top-right")&&this.watermarkRef.right&&this.checkComponent(this.watermarkRef.right,null===(c=null===(s=this.preset)||void 0===s?void 0:s.watermark)||void 0===c?void 0:c.text,(function(){return u.reloadComponent.emit()})))}},{key:"checkComponent",value:function(e,t,i){if(!(null==e?void 0:e.offsetParent))return i();if(!e.shadowRoot.querySelector("slot"))return i();if(this.player&&this.player.playing){var r=e.shadowRoot.querySelector("slot").assignedNodes()[0];if(r){if(r.parentElement.innerHTML!=t)return i();var n=getComputedStyle(r.parentElement.shadowRoot.querySelector(".overlay-text"));if(parseInt(n.fontSize,10)<10)return i();var o=(0,h.p)(n.color);if("1"!==(null==o?void 0:o[3]))return i()}}}},{key:"shouldShowOverlay",value:function(e){if(void 0!==this.currentTime)return!(this.currentTime<(0,h.b)(null==e?void 0:e.startTime)||this.currentTime>(0,h.b)(null==e?void 0:e.endTime))}},{key:"renderOverlay",value:function(e){var t,i,r=this;return(0,p.h)("presto-dynamic-overlay-ui",{class:{visible:this.shouldShowOverlay(e)},ref:function(t){return r.refs[e.id]={overlay:e,component:t}},key:e.id,position:e.position,href:null===(t=null==e?void 0:e.link)||void 0===t?void 0:t.url,target:(null===(i=null==e?void 0:e.link)||void 0===i?void 0:i.opensInNewTab)?"_blank":"_self",innerHTML:this.shouldShowOverlay(e)?e.text:"",style:{"--presto-dynamic-overlay-color":(null==e?void 0:e.color)||"#fff","--presto-dynamic-overlay-background":(null==e?void 0:e.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null==e?void 0:e.opacity)?(e.opacity/100).toString():"1"}})}},{key:"shouldShowWatermark",value:function(e){var t,i,r;if(!(null===(i=null===(t=this.preset)||void 0===t?void 0:t.watermark)||void 0===i?void 0:i.enabled))return!1;var n=null===(r=this.preset)||void 0===r?void 0:r.watermark;return"randomize"===n.position?Math.floor((this.player.currentTime||0)/10)%2==0?"top-left"===e:"top-right"===e:n.position===e||!n.position&&"top-right"===e}},{key:"render",value:function(){var e,t,i,r,n,o,a,l,s,c,u,d=this;if(this.enabled&&((null===(e=null==this?void 0:this.overlays)||void 0===e?void 0:e.length)||(null===(i=null===(t=this.preset)||void 0===t?void 0:t.watermark)||void 0===i?void 0:i.enabled)))return(0,p.h)("div",{class:"overlays",ref:function(e){return d.container=e}},(0,p.h)("div",{class:"top-left",ref:function(e){return d.topLeft=e}},!!this.shouldShowWatermark("top-left")&&(0,p.h)("presto-dynamic-overlay-ui",{ref:function(e){return d.watermarkRef.left=e},style:{"--presto-dynamic-overlay-color":(null===(r=this.preset.watermark)||void 0===r?void 0:r.color)||"#fff","--presto-dynamic-overlay-background":(null===(n=this.preset.watermark)||void 0===n?void 0:n.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null===(o=this.preset.watermark)||void 0===o?void 0:o.opacity)?(this.preset.watermark.opacity/100).toString():"1"},class:"visible",position:"top-left",innerHTML:this.preset.watermark.text}),!!(null===(a=null==this?void 0:this.overlays)||void 0===a?void 0:a.length)&&this.overlays.map((function(e){return"top-left"!==e.position?"":d.renderOverlay(e)}))),(0,p.h)("div",{class:"top-right",ref:function(e){return d.topRight=e}},!!this.shouldShowWatermark("top-right")&&(0,p.h)("presto-dynamic-overlay-ui",{ref:function(e){return d.watermarkRef.right=e},style:{"--presto-dynamic-overlay-color":(null===(l=this.preset.watermark)||void 0===l?void 0:l.color)||"#fff","--presto-dynamic-overlay-background":(null===(s=this.preset.watermark)||void 0===s?void 0:s.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null===(c=this.preset.watermark)||void 0===c?void 0:c.opacity)?(this.preset.watermark.opacity/100).toString():"1"},class:"visible",position:"top-right",innerHTML:this.preset.watermark.text}),!!(null===(u=null==this?void 0:this.overlays)||void 0===u?void 0:u.length)&&this.overlays.map((function(e){return"top-right"!==e.position?"":d.renderOverlay(e)}))))}},{key:"el",get:function(){return(0,p.g)(this)}}]),e}();T.style=".top-left,.top-right{position:absolute;display:block;padding:20px;max-width:45%;z-index:20;display:flex;flex-direction:column;flex-wrap:wrap}.top-left{top:0;left:0}.top-right{top:0;right:0;align-items:flex-end}presto-dynamic-overlay-ui{overflow:hidden;height:0;opacity:0;transition:height 0ms 400ms, opacity 400ms 0ms}presto-dynamic-overlay-ui.visible{margin-bottom:10px;height:auto;opacity:1;transition:height 0ms 0ms, opacity 500ms 0ms}";var P=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.player=void 0,this.direction=void 0,this.preset=void 0,this.videoId=void 0,this.i18n=void 0,this.provider=void 0,this.currentTime=void 0,this.duration=void 0,this.ended=void 0}return(0,c.Z)(e,[{key:"componentWillLoad",value:function(){var e=this;this.player&&(this.player.on("ended",(function(){return e.setEnded()})),this.player.on("timeupdate",(function(t){return e.setCurrentTime(t)})))}},{key:"setEnded",value:function(){this.ended=!0}},{key:"setCurrentTime",value:function(e){var t,i;this.currentTime=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.plyr.currentTime,this.duration=null===(i=null==e?void 0:e.detail)||void 0===i?void 0:i.plyr.duration}},{key:"disconnectedCallback",value:function(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}},{key:"render",value:function(){var e,t;return(0,p.h)("presto-email-overlay-controller",{key:"ccdb3335179aced53bfe8ba1c0f4594e5aa6051c",ended:this.ended,currentTime:this.currentTime,videoId:this.videoId,duration:this.duration,direction:this.direction,presetId:null===(e=this.preset)||void 0===e?void 0:e.id,emailCollection:null===(t=this.preset)||void 0===t?void 0:t.email_collection,i18n:this.i18n,provider:this.provider})}}]),e}();P.style=":host{display:block}";var S=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.playVideo=(0,p.c)(this,"playVideo",7),this.pauseVideo=(0,p.c)(this,"pauseVideo",7),this.restartVideo=(0,p.c)(this,"restartVideo",7),this.emailStateChange=(0,p.c)(this,"emailStateChange",7),this.ended=void 0,this.currentTime=void 0,this.duration=void 0,this.direction=void 0,this.emailCollection=void 0,this.i18n=void 0,this.videoId=void 0,this.presetId=void 0,this.provider=void 0,this.enabled=void 0,this.show=void 0,this.loading=void 0,this.error=void 0,this.percentagePassed=0}var t,i;return(0,c.Z)(e,[{key:"setStorage",value:function(e){window.localStorage.setItem("presto.videos.email_collection",JSON.stringify((0,l.Z)({},this.videoId,e)))}},{key:"getStorage",value:function(){return window.localStorage.getItem("presto.videos.email_collection")}},{key:"componentWillLoad",value:function(){this.handleDuration()}},{key:"handleDuration",value:function(){var e;this.enabled=!this.getStorage()&&(null===(e=null==this?void 0:this.emailCollection)||void 0===e?void 0:e.enabled),this.handleTimeCheck()}},{key:"handleTimeCheck",value:function(){this.enabled&&(this.getStorage()||this.checkTime())}},{key:"handleShowChange",value:function(){this.show&&this.pauseVideo.emit(!0)}},{key:"checkTime",value:function(){var e;this.show=(0,h.t)({current:this.currentTime,duration:this.duration,showAfter:(null===(e=null==this?void 0:this.emailCollection)||void 0===e?void 0:e.percentage)||0})}},{key:"getNonce",value:(i=(0,a.Z)(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",fetch("".concat(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl,"?action=presto_refresh_progress_nonce")));case 1:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"submit",value:(t=(0,a.Z)(d().mark((function e(t){var i,r,n,o,a,l,s,c,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.loading=!0,this.error="",e.next=4,this.getNonce();case 4:return r=e.sent,e.next=7,r.json();case 7:return n=e.sent,o=n.data,e.prev=9,e.next=12,fetch(null===(i=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===i?void 0:i.ajaxurl,{method:"post",body:new URLSearchParams(Object.assign({action:"presto_player_email_submit",nonce:o,preset_id:this.presetId,video_id:this.videoId,provider:this.provider},(null==t?void 0:t.detail)||{}))});case 12:return a=e.sent,e.next=15,a.json();case 15:if(l=e.sent,s=l.success,c=l.data,!s){e.next=24;break}this.setStorage("collected"),this.show=!1,this.playVideo.emit(),e.next=25;break;case 24:throw c;case 25:e.next=31;break;case 27:e.prev=27,e.t0=e.catch(9),(u=null===e.t0||void 0===e.t0?void 0:e.t0[0])&&"string"==typeof u&&(this.error=u);case 31:return e.prev=31,this.loading=!1,e.finish(31);case 34:case"end":return e.stop()}}),e,this,[[9,27,31,34]])}))),function(_x){return t.apply(this,arguments)})},{key:"skip",value:function(){this.setStorage("skipped"),this.show=!1,this.playVideo.emit()}},{key:"handleEmailStateChange",value:function(e){this.emailStateChange.emit(e)}},{key:"render",value:function(){var e,t,i,r,n,o,a,l,s=this;if(this.show)return(0,p.h)("presto-email-overlay-ui",{style:Object.assign(Object.assign({},(null===(e=null==this?void 0:this.emailCollection)||void 0===e?void 0:e.button_color)?{"--presto-player-button-color":"".concat(null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.button_color)}:{}),(null===(i=null==this?void 0:this.emailCollection)||void 0===i?void 0:i.button_text_color)?{"--presto-player-button-text":"".concat(null===(r=null==this?void 0:this.emailCollection)||void 0===r?void 0:r.button_text_color)}:{}),direction:this.direction,class:"email-overlay",headline:null===(n=null==this?void 0:this.emailCollection)||void 0===n?void 0:n.headline,bottomText:null===(o=null==this?void 0:this.emailCollection)||void 0===o?void 0:o.bottom_text,allowSkip:null===(a=null==this?void 0:this.emailCollection)||void 0===a?void 0:a.allow_skip,buttonText:null===(l=null==this?void 0:this.emailCollection)||void 0===l?void 0:l.button_text,isLoading:this.loading,errorMessage:this.error,onSubmitForm:function(e){return s.submit(e)},onSkip:function(){return s.skip()},i18n:this.i18n,provider:this.provider})}}],[{key:"watchers",get:function(){return{duration:["handleDuration"],currentTime:["handleTimeCheck","handleShowChange"],show:["handleEmailStateChange"]}}}]),e}();S.style=":host{display:block}";var C=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t)}return(0,c.Z)(e,[{key:"render",value:function(){return(0,p.h)(p.H,{key:"b14a9f10f17e2032587add142c35e83a09362b9b"},(0,p.h)("slot",{key:"190b1db447aede7bf8822a363c90d2ed0e98e0f1"}))}}]),e}();C.style='.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid{border-radius:2px;padding:3% 5%;max-width:135px;max-height:90px;box-sizing:content-box;position:absolute !important;top:50% !important;opacity:100%}.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid svg{height:31px;width:37px}.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid:hover,.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{opacity:0.8;background:var(--plyr-color-main)}.skin-modern.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 9px) * -4))}.skin-modern.presto-player__wrapper .plyr--video .plyr__controls{padding:0px}.skin-modern.presto-player__wrapper .plyr--video .plyr__controls::before{content:"";background:var(--plyr-color-main);position:absolute;top:0;left:0;right:0;bottom:0;opacity:0.75}.skin-modern.presto-player__wrapper .plyr__controls__item{z-index:1}.skin-modern.presto-player__wrapper .plyr__controls__item.plyr__control:not(.presto-player-progress__marker):not([role*=menuitem]):not(.plyr__control--back){height:36px;border-radius:0px}.skin-modern.presto-player__wrapper .plyr__controls__item.plyr__control:not(.presto-player-progress__marker):not([role*=menuitem]):not(.plyr__control--back):focus{background-color:transparent;color:white}.skin-modern.presto-player__wrapper .plyr__controls__item.presto-player-progress__marker{z-index:2}.skin-modern.presto-player__wrapper .plyr__controls__item.plyr__menu{height:36px}.skin-modern.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{height:2px;color:white}.skin-modern.presto-player__wrapper .presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{height:2px}.skin-modern.presto-player__wrapper .plyr--video .plyr__progress__buffer{height:2px;top:11px}.skin-modern.presto-player__wrapper .plyr__progress input[type=range]{cursor:pointer}.skin-modern.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-thumb{top:1px;height:var(--plyr-range-thumb-height, 8px);width:var(--plyr-range-thumb-height, 8px);box-shadow:0px 0px 5px white}.skin-modern.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.5)}.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item{margin:0px}.skin-modern.presto-player__wrapper .plyr__volume{width:auto}.skin-modern.presto-player__wrapper .plyr__volume input[type=range]{width:55px}.skin-modern.presto-player__wrapper .plyr__volume input[type=range]{cursor:pointer}.skin-modern.presto-player__wrapper .presto-player__muted-overlay .plyr__control.plyr__control--overlaid{border-radius:2px}.skin-modern.presto-player__wrapper .presto-player__muted-overlay .plyr__control.plyr__control--overlaid svg{height:40px;width:50px}.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=rewind] svg,.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fast-forward] svg,.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen] svg{width:22px;height:22px}@media screen and (max-width: 480px){.skin-modern.presto-player__wrapper .plyr__control--overlaid svg{height:18px;width:16px}}';var A=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.playVideo=(0,p.c)(this,"playVideo",7),this.mutedPreview=void 0,this.mutedOverlay=void 0,this.preset=void 0}return(0,c.Z)(e,[{key:"render",value:function(){var e,t,i,r,n,o,a,l,s,c=this;return(0,p.h)("div",{key:"d65899750134c7f2e369720c2d035c27825e1ce4",class:"presto-player__muted-overlay",onClick:function(){c.mutedPreview=!1,c.playVideo.emit()}},(null===(e=this.preset)||void 0===e?void 0:e["play-large"])&&(0,p.h)("div",{key:"231db6abba50bbe06312e3c6a162c651cb1408a8",class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},(0,p.h)("svg",{key:"4bd21f713381abfafbcab0e26e7af9fefd3c10de",id:"plyr-play",viewBox:"0 0 18 18"},(0,p.h)("path",{key:"6ffa3046759503f5a46a7f6fcaef328494868811",d:"M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"})),(0,p.h)("span",{key:"c00867bba01ae310176b7609bcb3cfb4218ef125",class:"plyr__sr-only"},"Play")),(null===(t=this.mutedOverlay)||void 0===t?void 0:t.enabled)&&(null===(i=this.mutedOverlay)||void 0===i?void 0:i.src)?(0,p.h)("div",{class:"presto-player__overlay is-image",part:"muted-overlay-image",style:{width:"".concat((null===(r=this.mutedOverlay)||void 0===r?void 0:r.width)||50,"%"),left:"".concat(100*((null===(o=null===(n=this.mutedOverlay)||void 0===n?void 0:n.focalPoint)||void 0===o?void 0:o.x)||.5),"%"),top:"".concat(100*((null===(l=null===(a=this.mutedOverlay)||void 0===a?void 0:a.focalPoint)||void 0===l?void 0:l.y)||.5),"%")}},(0,p.h)("img",{src:null===(s=this.mutedOverlay)||void 0===s?void 0:s.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}}]),e}();A.style=":host{display:block}";var E=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.value=void 0,this.player=void 0,this.markers=void 0,this.currentMarkerLocation=-1}return(0,c.Z)(e,[{key:"onSearch",value:function(e){if(this.value=e.detail,""===this.value)(0,h.r)(this.player),this.markers=[];else{var t=(0,h.s)(this.player,this.value);this.player.config.markers={enabled:!0,points:t},this.markers=t,(0,h.d)(this.player,t)}}},{key:"onPreviousNav",value:function(){this.currentMarkerLocation-1<0?this.currentMarkerLocation=this.markers.length-1:this.currentMarkerLocation--,this.player.currentTime=this.markers[this.currentMarkerLocation].time}},{key:"onFocusChange",value:function(e){var t,i;!0===(null==e?void 0:e.detail)?this.player.config.hideControls=!1:this.player.config.hideControls=(null===(i=null===(t=this.player.config)||void 0===t?void 0:t.preset)||void 0===i?void 0:i.auto_hide)||!1}},{key:"onNextNav",value:function(){this.currentMarkerLocation+1>this.markers.length-1?this.currentMarkerLocation=0:this.currentMarkerLocation++,this.player.currentTime=this.markers[this.currentMarkerLocation].time}},{key:"render",value:function(){var e,t,i,r,n,o,a,l,s=this;if(!this.player)return"";if(!(null===(i=null===(t=null===(e=this.player)||void 0===e?void 0:e.media)||void 0===t?void 0:t.textTracks)||void 0===i?void 0:i.length)||0===(null===(o=null===(n=null===(r=this.player)||void 0===r?void 0:r.media)||void 0===n?void 0:n.textTracks)||void 0===o?void 0:o.length))return"";var c=null===(a=this.player.config.preset.search)||void 0===a?void 0:a.placeholder;return(0,p.h)("presto-search-bar-ui",{value:this.value,hasNavigation:(null===(l=this.markers)||void 0===l?void 0:l.length)>1,placeholder:c,onNextNav:function(){return s.onNextNav()},onPreviousNav:function(){return s.onPreviousNav()},onSearch:function(e){return s.onSearch(e)},onFocusChange:function(e){return s.onFocusChange(e)}})}}]),e}(),L=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t)}return(0,c.Z)(e,[{key:"render",value:function(){return(0,p.h)(p.H,{key:"1f879dbd91a7b1b49bcdc94b3299000023a9f914"},(0,p.h)("slot",{key:"69281f1405ff6ffdad92b63969811c0a6ac8be1f"}))}}]),e}();L.style=".skin-stacked .plyr__controls{flex-wrap:wrap}.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.skin-stacked .plyr__controls{justify-content:flex-start}.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:50%}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}";var M=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.src=void 0,this.poster=void 0,this.player=void 0,this.getRef=void 0}return(0,c.Z)(e,[{key:"getId",value:function(e){var t=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/.exec(e||"");return(null==t?void 0:t[5])||""}},{key:"parseHash",value:function(e){var t=y(/^.*(?:vimeo.com\/|video\/)(?:\d+)(?:\?.*&*h=|\/)+([\d,a-f]+)/,{hash:1}),i=e.match(t);return i?i.groups.hash:null}},{key:"render",value:function(){if(this.src)return(0,h.f)()?(0,p.h)("div",{class:"presto-iframe-fallback-container"},(0,p.h)("iframe",{src:"https://player.vimeo.com/video/".concat(this.getId(this.src),"?h=").concat(this.parseHash(this.src),"&loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media"),allowFullScreen:!0,allowTransparency:!0,allow:"autoplay",style:{width:"100%"},class:"presto-fallback-iframe"})):(0,p.h)("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"vimeo","data-plyr-embed-id":this.getId(this.src),"data-plyr-embed-hash":this.parseHash(this.src)})}}]),e}();M.style=":host{display:block}";var I=function(){function e(t){(0,s.Z)(this,e),(0,p.r)(this,t),this.reload=(0,p.c)(this,"reload",7),this.src=void 0,this.poster=void 0,this.lazyLoad=void 0,this.player=void 0,this.getRef=void 0,this.reloadPlayer=void 0,this.isWebView=void 0}return(0,c.Z)(e,[{key:"handlePlayerChange",value:function(){this.player&&(this.fixes(),this.setPoster())}},{key:"fixes",value:function(){var e=this;this.player.once("statechange",(function(t){var i,r,n,o,a;1===t.detail.code&&((null===(a=null===(o=null===(n=null===(r=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.plyr)||void 0===r?void 0:r.config)||void 0===n?void 0:n.blockAttributes)||void 0===o?void 0:o.mutedPreview)||void 0===a?void 0:a.enabled)||(e.player.muted=!1))}))}},{key:"getId",value:function(e){var t,i=(e||"").match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return i&&11===(null===(t=null==i?void 0:i[2])||void 0===t?void 0:t.length)?i[2]:null}},{key:"loadPlayer",value:function(){this.lazyLoad=!1,this.reloadPlayer=!0}},{key:"componentDidRender",value:function(){this.reloadPlayer&&(this.reloadPlayer=!1,this.reload.emit("play"))}},{key:"setWebView",value:function(){var e,t=null===(e=window.navigator)||void 0===e?void 0:e.standalone,i=window.navigator.userAgent.toLowerCase(),r=/safari/.test(i),n=/iphone|ipod|ipad/.test(i);this.isWebView=n?!t&&!r:i.includes("wv")}},{key:"loadImage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(i,r){var n=new Image,o=function(){delete n.onload,delete n.onerror,(n.naturalWidth>=t?i:r)(e)};Object.assign(n,{onload:o,onerror:o,src:e})}))}},{key:"setPoster",value:function(){var e=this;if(!this.player.poster){var t=function(t){return"https://i.ytimg.com/vi/".concat(e.getId(e.src),"/").concat(t,"default.jpg")};this.loadImage(t("maxres"),121).catch((function(){return e.loadImage(t("sd"),121)})).catch((function(){return e.loadImage(t("hq"),121)})).then((function(t){return e.player.poster=t})).catch((function(){}))}}},{key:"componentWillLoad",value:function(){this.setWebView(),this.lazyLoad&&(0,h.a)()&&(this.lazyLoad=!1)}},{key:"render",value:function(){var e=this;return this.isWebView?(0,p.h)("div",{class:"fallback-container"},(0,p.h)("iframe",{src:this.src,allowFullScreen:!0,allowtransparency:!0,allow:"autoplay"})):this.lazyLoad?(0,p.h)("div",null,(0,p.h)("presto-video",{part:"video",getRef:this.getRef,src:"",provider:"youtube"}),(0,p.h)("div",{class:"presto-player__play-cover",onClick:function(){return e.loadPlayer()}})):(0,p.h)("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"youtube","data-plyr-embed-id":this.getId(this.src)})}}],[{key:"watchers",get:function(){return{player:["handlePlayerChange"]}}}]),e}();I.style=":host{display:block}.fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.fallback-container iframe,.fallback-container object,.fallback-container embed{position:absolute;top:0;left:0;width:100%;height:100%}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0 !important;padding-bottom:56.25%;position:relative}}"},3285:function(e,t,i){i.r(t),i.d(t,{presto_cta_overlay_ui:function(){return l}});var r=i(5671),n=i(3144),o=i(1368),a=i(8116),l=function(){function e(t){(0,r.Z)(this,e),(0,o.r)(this,t),this.skip=(0,o.c)(this,"skip",7),this.rewatch=(0,o.c)(this,"rewatch",7),this.headline=void 0,this.defaultHeadline=void 0,this.bottomText=void 0,this.showButton=void 0,this.buttonText=void 0,this.buttonType=void 0,this.buttonLink=void 0,this.allowRewatch=void 0,this.allowSkip=void 0,this.direction=void 0,this.i18n=void 0,this.provider=void 0,this.type=void 0,this.isAudioProvider=void 0}return(0,n.Z)(e,[{key:"componentDidLoad",value:function(){var e=this.type||this.provider;this.isAudioProvider="audio"===e,(0,a.f)(this.textInput,3,{maxFontSize:!0===this.isAudioProvider?15:20,minFontSize:8})}},{key:"handleCTAClick",value:function(e){var t;(null===(t=this.buttonLink)||void 0===t?void 0:t.url)&&(e.preventDefault(),e.stopPropagation(),this.handleLink())}},{key:"handleLink",value:function(){var e,t,i;(null===(e=this.buttonLink)||void 0===e?void 0:e.opensInNewTab)?window.open(null===(t=this.buttonLink)||void 0===t?void 0:t.url,"_blank"):window.location.href=null===(i=this.buttonLink)||void 0===i?void 0:i.url}},{key:"render",value:function(){var e,t,i,r,n,a=this;return(0,o.h)("div",{key:"a1e3d863a9dd9e85626e1667edf27f2ade3c253a",class:"wrapper",ref:function(e){return a.textInput=e}},(0,o.h)("div",{key:"1f432dff813e53ab62d24b587dea40c8d0b734fa",onClick:function(e){return a.handleCTAClick(e)},class:"overlay ".concat("rtl"===this.direction?"rtl":""," ").concat((null===(e=this.buttonLink)||void 0===e?void 0:e.url)?"has-link":"")},(0,o.h)("div",{key:"46a7df3774e82c9175b55c97b993f24ff07ccdb1",class:this.isAudioProvider?"content is-centered":"content"},(0,o.h)("h1",{key:"e94d920c1dc24ab999de23778b8176e0305d3731",part:"cta-headline"},this.headline||this.defaultHeadline),this.bottomText&&(0,o.h)("p",{key:"ff14def8afc4a67741ea33b0c3b31bcbc86be73a",class:this.isAudioProvider&&"is-small",part:"cta-bottom-text",innerHTML:this.bottomText}),this.showButton&&(0,o.h)("presto-player-button",{key:"842dc763f9cc56bccead8b26233f8417116c99ec",full:!0,onClick:function(e){return a.handleCTAClick(e)},part:"cta-button",href:null===(t=null==this?void 0:this.buttonLink)||void 0===t?void 0:t.url,target:(null===(i=null==this?void 0:this.buttonLink)||void 0===i?void 0:i.opensInNewTab)?"_blank":"_self",class:"button",type:"primary"},this.buttonText))),!!this.allowRewatch&&(0,o.h)("div",{key:"5a62eb399fe702af41a0cf1cf1c8d5b5312d752e",class:"rewatch",onClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),a.rewatch.emit()}},(0,o.h)("svg",{key:"48686a3db77f770638bcb6158c8b2259ba917428",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-corner-up-left"},(0,o.h)("polyline",{key:"ede217473eecc81dde6497ef51f39d6b82608fbc",points:"9 14 4 9 9 4"}),(0,o.h)("path",{key:"bbdd7a09ee2c18cef2a48dda546965b7a3a55f33",d:"M20 20v-7a4 4 0 0 0-4-4H4"})),null===(r=null==this?void 0:this.i18n)||void 0===r?void 0:r.rewatch),!!this.allowSkip&&(0,o.h)("div",{key:"56eb1ebc96960b37d63c75cef159bf1bba291006",class:"skip",onClick:function(e){e.preventDefault(),a.skip.emit()}},null===(n=null==this?void 0:this.i18n)||void 0===n?void 0:n.skip," →"))}}]),e}();l.style=':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999;user-select:none}*{box-sizing:border-box}a{color:#fff}.wrapper{height:100%;position:relative;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif)}.overlay{position:relative;display:flex;align-items:center;justify-content:center;padding:48px;height:100%}.overlay.has-link{cursor:pointer}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-cta-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-cta-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.content{width:80%;max-width:600px}.content *~*{margin-top:22px}button{background:var(--plyr-color-main, #000);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;color:#fff;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-cta-border-radius, 0) var(--presto-player-cta-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:rgb(255, 255, 255) 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}h1{font-size:1.5em;font-weight:500;margin:0;line-height:1.1em}.skip,.rewatch{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}.rewatch{display:inline-flex;align-items:center;right:auto;left:0}.rewatch .icon{margin-right:5px}p{font-size:0.85em;margin:0;margin-top:1.5em;line-height:1.4em;opacity:0.75}p.is-small{font-size:0.85em;margin:1.5em 0px 0px;line-height:0.1em;opacity:0.75}.is-centered{text-align:center}'},1871:function(e,t,i){i.r(t),i.d(t,{presto_email_overlay_ui:function(){return l},presto_player_spinner:function(){return s}});var r=i(5671),n=i(3144),o=i(1368),a=i(8116),l=function(){function e(t){(0,r.Z)(this,e),(0,o.r)(this,t),this.submitForm=(0,o.c)(this,"submitForm",7),this.skip=(0,o.c)(this,"skip",7),this.headline=void 0,this.bottomText=void 0,this.buttonText=void 0,this.allowSkip=void 0,this.borderRadius=void 0,this.isLoading=void 0,this.errorMessage=void 0,this.direction=void 0,this.i18n=void 0,this.provider=void 0,this.type=void 0,this.email=void 0,this.isAudioProvider=void 0}return(0,n.Z)(e,[{key:"handleSubmit",value:function(e){this.submitForm.emit({email:this.email}),e.preventDefault()}},{key:"componentDidLoad",value:function(){var e=this.type||this.provider;this.isAudioProvider="audio"===e,(0,a.f)(this.textInput,3,{maxFontSize:this.isAudioProvider?15:20,minFontSize:8})}},{key:"handleChange",value:function(e){this.email=e.target.value}},{key:"render",value:function(){var e,t,i,r,n=this;return(0,o.h)("div",{key:"b8e118c613aa8700448994aed04447b6464a119b",class:"overlay ".concat("rtl"===this.direction?"rtl":""),ref:function(e){return n.textInput=e}},(0,o.h)("div",{key:"5a14ca9fa2b25515cea4da5466a933912ad9a9ed",class:"content"},(0,o.h)("h1",{key:"bd756aebf1015cdd0b4efd84f81f282edd9d93ba",class:this.isAudioProvider&&"is-small"},this.headline||(null===(e=null==this?void 0:this.i18n)||void 0===e?void 0:e.emailDefaultHeadline)),this.isLoading?(0,o.h)("presto-player-spinner",null):(0,o.h)("form",{onSubmit:function(e){return n.handleSubmit(e)}},(0,o.h)("input",{type:"email",placeholder:null===(t=null==this?void 0:this.i18n)||void 0===t?void 0:t.emailPlaceholder,value:this.email,onInput:function(e){return n.handleChange(e)},required:!0}),(0,o.h)("button",{type:"submit"},this.buttonText||(null===(i=null==this?void 0:this.i18n)||void 0===i?void 0:i.play))),this.errorMessage&&(0,o.h)("p",{key:"6c5bbc81394175cda1efcc160b170159cc079c74",class:"error"},this.errorMessage),this.bottomText&&(0,o.h)("p",{key:"47891a20de1cb0c9ac22339348d683394a3529bd",innerHTML:this.bottomText,class:this.isAudioProvider&&"is-small"}),!!this.allowSkip&&(0,o.h)("div",{key:"338e4db6407a69a42f5a7b6ae03baa50646cd23b",class:"skip",onClick:function(){n.skip.emit()}},null===(r=null==this?void 0:this.i18n)||void 0===r?void 0:r.skip," →")))}}]),e}();l.style=':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999}*{box-sizing:border-box}a{color:#fff}.overlay{position:relative;display:flex;align-items:center;text-align:center;justify-content:center;padding:48px;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif);height:100%}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-email-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-email-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.overlay.rtl form{flex-direction:row-reverse}.content{width:20em}form{display:flex;align-items:stretch;justify-content:center}input{background:#fff;border:none;font-size:0.8em;line-height:20px;padding:6px 8px;border-radius:0;border-width:1px;border-style:solid;border-color:transparent;border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius);flex:1}@media screen and (min-width: 700px){input{padding:10px 14px}}input:focus{border-color:var(--plyr-color-main, #000);z-index:1}input:focus,input:hover{outline:none}.rtl input{border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}button{background-color:var(--presto-player-button-color, var(--plyr-color-main));border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-text, #fff);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:rgb(255, 255, 255) 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}.rtl button{border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius)}h1{font-size:1.5em;font-weight:500;margin:0 0 22px 0;max-width:600px;line-height:1.1em}h1.is-small{margin-bottom:1em;font-size:1.1em}.skip{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}p{font-size:0.7em;margin:0;margin-top:1.5em}p.is-small{font-size:0.9em;margin-top:1em}';var s=function(){function e(t){(0,r.Z)(this,e),(0,o.r)(this,t)}return(0,n.Z)(e,[{key:"render",value:function(){return(0,o.h)("span",{key:"159a7d02b47ee7031c1848d0a2c050127e9a584b",part:"base",class:"spinner","aria-busy":"true","aria-live":"polite"})}}]),e}();s.style=":host{position:relative;box-sizing:border-box;--track-color:#0d131e20;--indicator-color:var(--plyr-color-main);--stroke-width:2px;display:inline-flex}:host *,:host *:before,:host *:after{box-sizing:inherit}.spinner{display:inline-block;width:1em;height:1em;border-radius:50%;border:solid var(--stroke-width) var(--track-color);border-top-color:var(--indicator-color);border-right-color:var(--indicator-color);animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}"},5657:function(e,t,i){i.r(t),i.d(t,{presto_player_button:function(){return s}});var r=i(5671),n=i(3144),o=i(9062),a=i(1368),l=function(e,t){return(0,o.Z)(t)},s=function(){function e(t){(0,r.Z)(this,e),(0,a.r)(this,t),this.prestoBlur=(0,a.c)(this,"prestoBlur",7),this.prestoFocus=(0,a.c)(this,"prestoFocus",7),this.hasFocus=!1,this.hasLabel=!1,this.hasPrefix=!1,this.hasSuffix=!1,this.type="default",this.size="medium",this.full=!1,this.disabled=!1,this.submit=!1,this.name=void 0,this.value=void 0,this.href=void 0,this.target=void 0,this.download=void 0}return(0,n.Z)(e,[{key:"componentWillLoad",value:function(){this.handleSlotChange()}},{key:"click",value:function(){this.button.click()}},{key:"focus",value:function(e){this.button.focus(e)}},{key:"blur",value:function(){this.button.blur()}},{key:"handleSlotChange",value:function(){this.hasLabel=!!this.button.children,this.hasPrefix=!!this.button.querySelector('[slot="prefix"]'),this.hasSuffix=!!this.button.querySelector('[slot="suffix"]')}},{key:"handleBlur",value:function(){this.hasFocus=!1,this.prestoBlur.emit()}},{key:"handleFocus",value:function(){this.hasFocus=!0,this.prestoFocus.emit()}},{key:"handleClick",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"render",value:function(){var e=this,t=!!this.href,i=(0,a.h)(l,{key:"a1223d99990109dd0933f199264bb4be616ae461"},(0,a.h)("span",{key:"0dc42065359f05c51e7df754df60b7fe99140ebf",part:"prefix",class:"button__prefix"},(0,a.h)("slot",{key:"f5746b73fe41e5206a172a07e759b72bd9887d17",onSlotchange:function(){return e.handleSlotChange()},name:"prefix"})),(0,a.h)("span",{key:"217de38a9136f490d087aa39b19bc9c3f2f03bb3",part:"label",class:"button__label"},(0,a.h)("slot",{key:"c9d812d8ad49baae33d56cb1eba668b9fda4eae9",onSlotchange:function(){return e.handleSlotChange()}})),(0,a.h)("span",{key:"c79032d5bb75c350326aaa585a7a7d57e8e86a33",part:"suffix",class:"button__suffix"},(0,a.h)("slot",{key:"985a53a6db25e20d71a54ca7fa23ad14f0d6ec14",onSlotchange:function(){return e.handleSlotChange()},name:"suffix"}))),r=(0,a.h)("button",{key:"d36e8cf5ea37ce43ee6bd73c1aebae7e21629395",part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},disabled:this.disabled,type:this.submit?"submit":"button",name:this.name,value:this.value,onBlur:function(){return e.handleBlur},onFocus:function(){return e.handleFocus},onClick:function(){return e.handleClick}},i),n=(0,a.h)("a",{key:"047c56c16ad4d62f5f57227b0842c8b28001953c",part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},href:this.href,target:this.target,download:this.download,rel:this.target?"noreferrer noopener":void 0,role:"button","aria-disabled":this.disabled?"true":"false",tabindex:this.disabled?"-1":"0",onBlur:function(){return e.handleBlur},onFocus:function(){return e.handleFocus},onClick:function(){return e.handleClick}},i);return t?n:r}},{key:"button",get:function(){return(0,a.g)(this)}}]),e}();s.style=":host{display:inline-block;width:auto;cursor:pointer}:host([full]){display:block}.button{display:inline-flex;align-items:stretch;justify-content:center;width:100%;border-style:solid;border-width:var(--presto-player-button-border-width);font-family:var(--plyr-font-family, inherit);font-weight:var(--presto-player-button-font-weight, 500);text-decoration:none;user-select:none;white-space:nowrap;vertical-align:middle;padding:0;transition:var(--presto--player-transition-fast, 150ms) background-color, var(--presto-player-transition-fast, 150ms) color, var(--presto-player-transition-fast, 150ms) border, var(--presto--player-transition-fast, 150ms) box-shadow;cursor:inherit;border-radius:var(--presto-player-button-border-radius, 0.25em)}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button.button--disabled{opacity:0.5;cursor:not-allowed}.button.button--disabled *{pointer-events:none}.button ::slotted(.presto--icon){pointer-events:none}.button__prefix,.button__suffix{flex:0 0 auto;display:flex;align-items:center}.button__label{display:flex;align-items:center}.button__label ::slotted(presto-icon){vertical-align:-2px}.button.button--default{background-color:var(--presto-player-color-white, #fff);border-color:var(--presto-player-color-gray-300, #d1d5db);color:var(--presto-player-color-gray-600, #4b5563)}.button.button--default:hover:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:0.75}.button.button--default:focus:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--default:active:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--primary{background-color:var(--presto-player-button-color, var(--plyr-color-main));border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-text, #fff)}.button.button--primary:hover:not(.button--disabled){opacity:0.9}.button.button--primary:focus:not(.button--disabled){opacity:1}.button.button--primary:active:not(.button--disabled){opacity:1}.button--text{background-color:transparent;border-color:transparent;color:var(--presto-player-button-color, var(--plyr-color-main))}.button--text:hover:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.8}.button--text:focus:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--text:active:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--small{font-size:var(--presto-player-button-font-size-small, 0.875em);height:var(--presto-player-button-height-small, 1.875em);line-height:calc(var(--presto-player-button-height-small, 1.875em) - var(--presto-player-button-border-width, 1px) * 2)}.button--medium{font-size:var(--presto-player-button-font-size-medium, 1em);height:var(--presto-player-button-height-medium, 2.5em);line-height:calc(var(--presto-player-button-height-medium, 2.5em) - var(--presto-player-button-border-width, 1px) * 2)}.button--large{font-size:var(--presto-player-button-font-size-large, 1.25em);height:var(--presto-player-button-height-large, 3.125em);line-height:calc(var(--presto-player-button-height-large, 3.125em) - var(--presto-player-button-border-width, 1px) * 2)}.button--full{display:block}.button--has-label.button--small .button__label{padding:0 var(--presto-player-button-spacing-small, 0.75em)}.button--has-label.button--medium .button__label{padding:0 var(--presto-player-button-spacing-medium, 1em)}.button--has-label.button--large .button__label{padding:0 var(--presto-player-button-spacing-large, 1.25em)}.button--has-prefix.button--small{padding-left:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-prefix.button--small .button__label{padding-left:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-prefix.button--medium{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--medium .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--large{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--large .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--small,.button--caret.button--small{padding-right:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-suffix.button--small .button__label,.button--caret.button--small .button__label{padding-right:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-suffix.button--medium,.button--caret.button--medium{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--medium .button__label,.button--caret.button--medium .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--large,.button--caret.button--large{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--large .button__label,.button--caret.button--large .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75em)}"},4992:function(e,t,i){i.r(t),i.d(t,{presto_player_skeleton:function(){return a}});var r=i(5671),n=i(3144),o=i(1368),a=function(){function e(t){(0,r.Z)(this,e),(0,o.r)(this,t),this.effect="sheen"}return(0,n.Z)(e,[{key:"render",value:function(){return(0,o.h)("div",{key:"0216868b617cb29e8d330467d6e53b7e951b433f",part:"base",class:{skeleton:!0,"skeleton--pulse":"pulse"===this.effect,"skeleton--sheen":"sheen"===this.effect},"aria-busy":"true","aria-live":"polite"},(0,o.h)("div",{key:"16d4cc096efc3652130b78a59a4f42df139e094f",part:"indicator",class:"skeleton__indicator"}))}}]),e}();a.style=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--border-radius:var(--presto-player-border-radius-pill);--color:#e5e7eb;--sheen-color:#f3f4f6;display:block;position:relative}.skeleton{display:flex;width:100%;height:100%;min-height:1rem}.skeleton__indicator{flex:1 1 auto;background:var(--color);border-radius:var(--border-radius)}.skeleton--sheen .skeleton__indicator{background:linear-gradient(270deg, var(--sheen-color), var(--color), var(--color), var(--sheen-color));background-size:400% 100%;background-size:400% 100%;animation:sheen 8s ease-in-out infinite}.skeleton--pulse .skeleton__indicator{animation:pulse 2s ease-in-out 0.5s infinite}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}"},7149:function(e,t,i){i.d(t,{P:function(){return me},a:function(){return ke},b:function(){return Pe},c:function(){return Se},d:function(){return Ce},r:function(){return z}});var r,n,o,a,l,s,c,u,d,p=i(5861),h=i(5987),f=i(9062),y=i(5671),v=i(3144),g=i(3324),m=i(4942),b=i(1002),_=i(1284),w=i.n(_),k=i(1368),x=i(2136),T=["premium","referrerPolicy"];function P(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return S(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?S(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(l)throw o}}}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=e[i];return r}function C(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function A(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?C(Object(i),!0).forEach((function(t){(0,m.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):C(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self&&self;var E,L={exports:{}};E=L,"object"==("undefined"==typeof navigator?"undefined":(0,b.Z)(navigator))&&(E.exports=function(){function e(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=(0,b.Z)(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!=(0,b.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,b.Z)(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function t(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var o={addCSS:!0,thumbWidth:15,watch:!0};function a(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var l=function(e){return null!=e?e.constructor:null},s=function(e,t){return!!(e&&t&&e instanceof t)},c=function(e){return l(e)===String},u=function(e){return Array.isArray(e)},d=function(e){return s(e,NodeList)},p=c,_=u,w=d,k=function(e){return s(e,Element)},x=function(e){return s(e,Event)},P=function(e){return function(e){return null==e}(e)||(c(e)||u(e)||d(e))&&!e.length||function(e){return l(e)===Object}(e)&&!Object.keys(e).length};var S=function(){function e(t,i){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),k(t)?this.element=t:p(t)&&(this.element=document.querySelector(t)),k(this.element)&&P(this.element.rangeTouch)&&(this.config=n({},o,{},i),this.init())}return function(e,i,r){i&&t(e.prototype,i),r&&t(e,r)}(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,i=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[i](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!x(t))return null;var i,r=t.target,n=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>(i=100/s.width*(n.clientX-s.left))?i=0:100<i&&(i=100),50>i?i-=(100-2*i)*c:50<i&&(i+=2*(i-50)*c),o+function(e,t){if(1>t){var i=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(i))}return Math.round(e/t)*t}(i/100*(a-o),l)}},{key:"set",value:function(t){e.enabled&&x(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var i=new Event(t,{bubbles:!0});e.dispatchEvent(i)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(P(t)||p(t)?r=Array.from(document.querySelectorAll(p(t)?t:'input[type="range"]')):k(t)?r=[t]:w(t)?r=Array.from(t):_(t)&&(r=t.filter(k)),P(r))return null;var l=n({},o,{},i);if(p(t)&&l.watch){var s=new MutationObserver((function(i){Array.from(i).forEach((function(i){Array.from(i.addedNodes).forEach((function(i){k(i)&&a(i,t)&&new e(i,l)}))}))}));s.observe(document.body,{childList:!0,subtree:!0})}return r.map((function(t){return new e(t,i)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),C=function(e){return null!=e?e.constructor:null},E=function(e,t){return Boolean(e&&t&&e instanceof t)},L=function(e){return null==e},M=function(e){return C(e)===Object},I=function(e){return C(e)===String},O=function(e){return"function"==typeof e},z=function(e){return Array.isArray(e)},j=function(e){return E(e,NodeList)},N=function(e){return L(e)||(I(e)||z(e)||j(e))&&!e.length||M(e)&&!Object.keys(e).length},R=L,Z=M,D=function(e){return C(e)===Number&&!Number.isNaN(e)},F=I,V=function(e){return C(e)===Boolean},B=O,H=z,q=j,W=function(e){return null!==e&&"object"==(0,b.Z)(e)&&1===e.nodeType&&"object"==(0,b.Z)(e.style)&&"object"==(0,b.Z)(e.ownerDocument)},U=function(e){return E(e,Event)},$=function(e){return E(e,KeyboardEvent)},Q=function(e){return E(e,TextTrack)||!L(e)&&I(e.kind)},Y=function(e){if(E(e,window.URL))return!0;if(!I(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!N(new URL(t).hostname)}catch(e){return!1}},K=N,X=function(){var e=document.createElement("span"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i=Object.keys(t).find((function(t){return void 0!==e.style[t]}));return!!F(i)&&t[i]}();function J(e,t){setTimeout((function(){try{e.hidden=!0,e.hidden=!1}catch(e){}}),t)}var G={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,isIos:/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function ee(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function te(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];if(!i.length)return e;var n=i.shift();return Z(n)?(Object.keys(n).forEach((function(t){Z(n[t])?(Object.keys(e).includes(t)||Object.assign(e,(0,m.Z)({},t,{})),te(e[t],n[t])):Object.assign(e,(0,m.Z)({},t,n[t]))})),te.apply(void 0,[e].concat(i))):e}function ie(e,t){var i=e.length?e:[e];Array.from(i).reverse().forEach((function(e,i){var r=i>0?t.cloneNode(!0):t,n=e.parentNode,o=e.nextSibling;r.appendChild(e),o?n.insertBefore(r,o):n.appendChild(r)}))}function re(e,t){W(e)&&!K(t)&&Object.entries(t).filter((function(e){var t=(0,g.Z)(e,2)[1];return!R(t)})).forEach((function(t){var i=(0,g.Z)(t,2),r=i[0],n=i[1];return e.setAttribute(r,n)}))}function ne(e,t,i){var r=document.createElement(e);return Z(t)&&re(r,t),F(i)&&(r.innerText=i),r}function oe(e,t,i,r){W(t)&&t.appendChild(ne(e,i,r))}function ae(e){q(e)||H(e)?Array.from(e).forEach(ae):W(e)&&W(e.parentNode)&&e.parentNode.removeChild(e)}function le(e){if(W(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function se(e,t){return W(t)&&W(t.parentNode)&&W(e)?(t.parentNode.replaceChild(e,t),e):null}function ce(e,t){if(!F(e)||K(e))return{};var i={},r=te({},t);return e.split(",").forEach((function(e){var t=e.trim(),n=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),a=(0,g.Z)(o,1)[0],l=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":F(r.class)?i.class="".concat(r.class," ").concat(n):i.class=n;break;case"#":i.id=t.replace("#","");break;case"[":i[a]=l}})),te(r,i)}function ue(e,t){if(W(e)){var i=t;V(i)||(i=!e.hidden),e.hidden=i}}function de(e,t,i){if(q(e))return Array.from(e).map((function(e){return de(e,t,i)}));if(W(e)){var r="toggle";return void 0!==i&&(r=i?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function pe(e,t){return W(e)&&e.classList.contains(t)}function he(e,t){var i=Element.prototype;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function fe(e){return this.elements.container.querySelectorAll(e)}function ye(e){return this.elements.container.querySelector(e)}function ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];W(e)&&(e.focus({preventScroll:!0}),t&&de(e,this.config.classNames.tabFocus))}var ge={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},me={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,i){var r=G.isIPhone&&i&&me.playsinline,n=me[e]||"html5"!==t;return{api:n,ui:n&&me.rangeInput&&("video"!==e||!G.isIPhone||r)}},pip:!(G.isIPhone||!B(ne("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||ne("video").disablePictureInPicture)),airplay:B(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(K(e))return!1;var t=e.split("/"),i=(0,g.Z)(t,1)[0],r=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(ge).includes(r)&&(r+='; codecs="'.concat(ge[e],'"'));try{return Boolean(r&&this.media.canPlayType(r).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!==X,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},be=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 _e(e,t,i){var r=this,n=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&&!K(t)&&B(i)){var l=t.split(" "),s=a;be&&(s={passive:o,capture:a}),l.forEach((function(t){r&&r.eventListeners&&n&&r.eventListeners.push({element:e,type:t,callback:i,options:s}),e[n?"addEventListener":"removeEventListener"](t,i,s)}))}}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_e.call(this,e,t,i,!0,r,n)}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_e.call(this,e,t,i,!1,r,n)}function xe(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=function a(){for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];ke(e,i,a,n,o),r.apply(t,s)};_e.call(this,e,i,a,!0,n,o)}function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(W(e)&&!K(t)){var n=new CustomEvent(t,{bubbles:i,detail:A(A({},r),{},{plyr:this})});e.dispatchEvent(n)}}function Pe(){this&&this.eventListeners&&(this.eventListeners.forEach((function(e){var t=e.element,i=e.type,r=e.callback,n=e.options;t.removeEventListener(i,r,n)})),this.eventListeners=[])}function Se(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):we.call(e,e.elements.container,"ready",t)})).then((function(){}))}function Ce(e){(function(e){return E(e,Promise)&&O(e.then)})(e)&&e.then(null,(function(){}))}function Ae(e){return H(e)?e.filter((function(t,i){return e.indexOf(t)===i})):e}function Ee(e,t){return H(e)&&e.length?e.reduce((function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e})):null}function Le(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}var Me=[[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 i=(0,g.Z)(t,2),r=i[0],n=i[1];return A(A({},e),{},(0,m.Z)({},r/n,[r,n]))}),{});function Ie(e){return!!(H(e)||F(e)&&e.includes(":"))&&(H(e)?e:e.split(":")).map(Number).every(D)}function Oe(e){if(!H(e)||!e.every(D))return null;var t=(0,g.Z)(e,2),i=t[0],r=t[1],n=function e(t,i){return 0===i?t:e(i,t%i)}(i,r);return[i/n,r/n]}function ze(e){var t=function(e){return Ie(e)?e.split(":").map(Number):null},i=t(e);if(null===i&&(i=t(this.config.ratio)),null===i&&!K(this.embed)&&H(this.embed.ratio)&&(i=this.embed.ratio),null===i&&this.isHTML5){var r=this.media;i=[r.videoWidth,r.videoHeight]}return Oe(i)}function je(e){if(!this.isVideo)return{};var t=this.elements.wrapper,i=ze.call(this,e);if(!H(i))return{};var r=Oe(i),n=(0,g.Z)(r,2),o=n[0],a=n[1],l=100/o*a;if(Le("aspect-ratio: ".concat(o,"/").concat(a))?t.style.aspectRatio="".concat(o,"/").concat(a):t.style.paddingBottom="".concat(l,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var s=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),c=(s-l)/(s/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(c,"%)")}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:l,ratio:i}}function Ne(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,r=e/t,n=Ee(Object.keys(Me),r);return Math.abs(n-r)<=i?Me[n]:[e,t]}var Re={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var i=t.getAttribute("type");return!!K(i)||me.mime.call(e,i)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:Re.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,K(this.config.ratio)||je.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=Re.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&&B(e.config.quality.onChange))e.config.quality.onChange(t);else{var i=Re.getSources.call(e).find((function(e){return Number(e.getAttribute("size"))===t}));if(!i)return;var r=e.media,n=r.currentTime,_n=r.paused,o=r.preload,a=r.readyState,l=r.playbackRate;e.media.src=i.getAttribute("src"),("none"!==o||a)&&(e.once("loadedmetadata",(function(){e.speed=l,e.currentTime=n,_n||Ce(e.play())})),e.media.load())}Te.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(ae(Re.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Ze(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return K(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return i[t].toString()}))}var De=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())},Fe=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 Ve(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}var Be={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},He=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(K(e)||K(t))return"";var i=ee(t.i18n,e);if(K(i))return Object.keys(Be).includes(e)?Be[e]:"";var r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach((function(e){var t=(0,g.Z)(e,2),r=t[0],n=t[1];i=De(i,r,n)})),i},qe=function(){function t(i){var r=this;(0,y.Z)(this,t),e(this,"get",(function(e){if(!t.supported||!r.enabled)return null;var i=window.localStorage.getItem(r.key);if(K(i))return null;var n=JSON.parse(i);return F(e)&&e.length?n[e]:n})),e(this,"set",(function(e){if(t.supported&&r.enabled&&Z(e)){var i=r.get();K(i)&&(i={}),te(i,e);try{window.localStorage.setItem(r.key,JSON.stringify(i))}catch(e){}}})),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}return(0,v.Z)(t,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}}}]),t}();function We(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(i,r){try{var n=new XMLHttpRequest;if(!("withCredentials"in n))return;n.addEventListener("load",(function(){if("text"===t)try{i(JSON.parse(n.responseText))}catch(e){i(n.responseText)}else i(n.response)})),n.addEventListener("error",(function(){throw new Error(n.status)})),n.open("GET",e,!0),n.responseType=t,n.send()}catch(e){r(e)}}))}function Ue(e,t,i){if(F(e)){var r="cache",n=F(t),o=function(){return null!==document.getElementById(t)},a=function(e,t){e.innerHTML=t,n&&o()||i.appendChild(e)};if(!n||!o()){var l=qe.supported,s=document.createElement("div");if(s.setAttribute("hidden",""),n&&s.setAttribute("id",t),l){var c=window.localStorage.getItem("".concat(r,"-").concat(t));if(null!==c){var u=JSON.parse(c);a(s,u.content)}}We(e).then((function(e){if(!K(e)){if(l)try{window.localStorage.setItem("".concat(r,"-").concat(t),JSON.stringify({content:e}))}catch(e){}a(s,e)}})).catch((function(){}))}}}var $e=function(e){return Math.trunc(e/60/60%60,10)};function Qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!D(e))return Qe(void 0,t,i);var r,n=function(e){return"0".concat(e).slice(-2)},o=$e(e),a=(r=e,Math.trunc(r/60%60,10)),l=function(e){return Math.trunc(e%60,10)}(e);return o=t||o>0?"".concat(o,":"):"","".concat(i&&e>0?"-":"").concat(o).concat(n(a),":").concat(n(l))}var Ye={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,i=e.host!==t||G.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:i}},findElements:function(){try{return this.elements.controls=ye.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:fe.call(this,this.config.selectors.buttons.play),pause:ye.call(this,this.config.selectors.buttons.pause),restart:ye.call(this,this.config.selectors.buttons.restart),rewind:ye.call(this,this.config.selectors.buttons.rewind),fastForward:ye.call(this,this.config.selectors.buttons.fastForward),mute:ye.call(this,this.config.selectors.buttons.mute),pip:ye.call(this,this.config.selectors.buttons.pip),airplay:ye.call(this,this.config.selectors.buttons.airplay),settings:ye.call(this,this.config.selectors.buttons.settings),captions:ye.call(this,this.config.selectors.buttons.captions),fullscreen:ye.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=ye.call(this,this.config.selectors.progress),this.elements.inputs={seek:ye.call(this,this.config.selectors.inputs.seek),volume:ye.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:ye.call(this,this.config.selectors.display.buffer),currentTime:ye.call(this,this.config.selectors.display.currentTime),duration:ye.call(this,this.config.selectors.display.duration)},W(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var i="http://www.w3.org/2000/svg",r=Ye.getIconUrl.call(this),n="".concat(r.cors?"":r.url,"#").concat(this.config.iconPrefix),o=document.createElementNS(i,"svg");re(o,te(t,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(i,"use"),l="".concat(n,"-").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]:{},i=He(e,this.config);return ne("span",A(A({},t),{},{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),i)},createBadge:function(e){if(K(e))return null;var t=ne("span",{class:this.config.classNames.menu.value});return t.appendChild(ne("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var i=this,r=te({},t),n=function(){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=De(e,"-"," "),e=De(e,"_"," "),e=Fe(e),De(e," ","")}(e),e.charAt(0).toLowerCase()+e.slice(1)}(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===i.config.classNames.control}))||te(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"),n="play",o.label="play",o.icon="play";break;default:K(o.label)&&(o.label=n),K(o.icon)&&(o.icon=e)}var a=ne(o.element);return o.toggle?(a.appendChild(Ye.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(Ye.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(Ye.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(Ye.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(Ye.createIcon.call(this,o.icon)),a.appendChild(Ye.createLabel.call(this,o.label))),te(r,ce(this.config.selectors.buttons[n],r)),re(a,r),"play"===n?(H(this.elements.buttons[n])||(this.elements.buttons[n]=[]),this.elements.buttons[n].push(a)):this.elements.buttons[n]=a,a},createRange:function(e,t){var i=ne("input",te(ce(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":He(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=i,Ye.updateRangeFill.call(this,i),S.setup(i),i},createProgress:function(e,t){var i=ne("progress",te(ce(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){i.appendChild(ne("span",null,"0"));var r={played:"played",buffer:"buffered"}[e],n=r?He(r,this.config):"";i.innerText="% ".concat(n.toLowerCase())}return this.elements.display[e]=i,i},createTime:function(e,t){var i=ce(this.config.selectors.display[e],t),r=ne("div",te(i,{class:"".concat(i.class?i.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":He(e,this.config)}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts:function(e,t){var i=this;we.call(this,e,"keydown keyup",(function(r){if(["Space","ArrowUp","ArrowDown","ArrowRight"].includes(r.key)&&(r.preventDefault(),r.stopPropagation(),"keydown"!==r.type)){var n,o=he(e,'[role="menuitemradio"]');!o&&["Space","ArrowRight"].includes(r.key)?Ye.showMenuPanel.call(i,t,!0):"Space"!==r.key&&("ArrowDown"===r.key||o&&"ArrowRight"===r.key?(n=e.nextElementSibling,W(n)||(n=e.parentNode.firstElementChild)):(n=e.previousElementSibling,W(n)||(n=e.parentNode.lastElementChild)),ve.call(i,n,!0))}}),!1),we.call(this,e,"keyup",(function(e){"Return"===e.key&&Ye.focusFirstMenuItem.call(i,null,!0)}))},createMenuItem:function(e){var t=this,i=e.value,r=e.list,n=e.type,o=e.title,a=e.badge,l=void 0===a?null:a,s=e.checked,c=void 0!==s&&s,u=ce(this.config.selectors.inputs[n]),d=ne("button",te(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":c,value:i})),p=ne("span");p.innerHTML=o,W(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 he(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(!$(e)||"Space"===e.key){switch(e.preventDefault(),e.stopPropagation(),d.checked=!0,n){case"language":t.currentTrack=Number(i);break;case"quality":t.quality=i;break;case"speed":t.speed=parseFloat(i)}Ye.showMenuPanel.call(t,"home",$(e))}}),n,!1),Ye.bindMenuItemShortcuts.call(this,d,n),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 D(e)?Qe(e,$e(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,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];W(e)&&D(t)&&(e.innerText=Ye.formatTime(t,i))},updateVolume:function(){this.supported.ui&&(W(this.elements.inputs.volume)&&Ye.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),W(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;W(e)&&(e.value=t,Ye.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&U(e)){var i,r,n=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=this.currentTime,r=this.duration,n=0===i||0===r||Number.isNaN(i)||Number.isNaN(r)?0:(i/r*100).toFixed(2),"timeupdate"===e.type&&Ye.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(e,i){var r=D(i)?i:0,n=W(e)?e:t.elements.display.buffer;if(W(n)){n.value=r;var o=n.getElementsByTagName("span")[0];W(o)&&(o.childNodes[0].nodeValue=r)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=U(e)?e.target:e;if(W(t)&&"range"===t.getAttribute("type")){if(he(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var i=Ye.formatTime(this.currentTime),r=Ye.formatTime(this.duration),n=He("seekLabel",this.config);t.setAttribute("aria-valuetext",n.replace("{currentTime}",i).replace("{duration}",r))}else if(he(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);G.isWebkit&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip:function(e){var t,i;if(this.config.tooltips.seek&&W(this.elements.inputs.seek)&&W(this.elements.display.seekTooltip)&&0!==this.duration){var r=this.elements.display.seekTooltip,n="".concat(this.config.classNames.tooltip,"--visible"),o=function(e){return de(r,n,e)};if(this.touch)o(!1);else{var a=0,l=this.elements.progress.getBoundingClientRect();if(U(e))a=100/l.width*(e.pageX-l.left);else{if(!pe(r,n))return;a=parseFloat(r.style.left,10)}a<0?a=0:a>100&&(a=100);var s=this.duration/100*a;r.innerText=Ye.formatTime(s);var c=null===(t=this.config.markers)||void 0===t||null===(i=t.points)||void 0===i?void 0:i.find((function(e){return e.time===Math.round(s)}));c?(r.insertAdjacentHTML("afterbegin","".concat(c.label,"<br>")),r.classList.add("plyr__tooltip--label")):r.classList.remove("plyr__tooltip--label"),r.style.left="".concat(a,"%"),U(e)&&["mouseenter","mouseleave"].includes(e.type)&&o("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!W(this.elements.display.duration)&&this.config.invertTime;Ye.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||Ye.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return ue(this.elements.display.currentTime,!0),void ue(this.elements.progress,!0);W(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=W(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&Ye.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&Ye.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&Ye.setMarkers.call(this),Ye.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){ue(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,i){var r=this.elements.settings.panels[e],n=null,o=t;if("captions"===e)n=this.currentTrack;else{if(n=K(i)?this[e]:i,K(n)&&(n=this.config[e].default),!K(this.options[e])&&!this.options[e].includes(n))return void this.debug.warn("Unsupported value of '".concat(n,"' for ").concat(e));if(!this.config[e].options.includes(n))return void this.debug.warn("Disabled value of '".concat(n,"' for ").concat(e))}if(W(o)||(o=r&&r.querySelector('[role="menu"]')),W(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Ye.getLabel.call(this,e,n);var a=o&&o.querySelector('[value="'.concat(n,'"]'));W(a)&&(a.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?He("normal",this.config):"".concat(t,"×");case"quality":if(D(t)){if(0===t)return He("auto",this.config);var i=He("qualityLabel.".concat(t),this.config);return i.length?i:"".concat(t,"p")}return Fe(t);case"captions":return Je.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(W(this.elements.settings.panels.quality)){var i="quality",r=this.elements.settings.panels.quality.querySelector('[role="menu"]');H(e)&&(this.options.quality=Ae(e).filter((function(e){return t.config.quality.options.includes(e)})));var n=!K(this.options.quality)&&this.options.quality.length>1;if(Ye.toggleMenuButton.call(this,i,n),le(r),Ye.checkMenu.call(this),n){var o=function(e){var i=He("qualityBadge.".concat(e),t.config);return i.length?Ye.createBadge.call(t,i):null};this.options.quality.sort((function(e,i){var r=t.config.quality.options;return r.indexOf(e)>r.indexOf(i)?1:-1})).forEach((function(e){Ye.createMenuItem.call(t,{value:e,list:r,type:i,title:Ye.getLabel.call(t,"quality",e),badge:o(e)})})),Ye.updateSetting.call(this,i,r)}}},setCaptionsMenu:function(){var e=this;if(W(this.elements.settings.panels.captions)){var t="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),r=Je.getTracks.call(this),n=Boolean(r.length);if(Ye.toggleMenuButton.call(this,t,n),le(i),Ye.checkMenu.call(this),n){var o=r.map((function(t,r){return{value:r,checked:e.captions.toggled&&e.currentTrack===r,title:Je.getLabel.call(e,t),badge:t.language&&Ye.createBadge.call(e,t.language.toUpperCase()),list:i,type:"language"}}));o.unshift({value:-1,checked:!this.captions.toggled,title:He("disabled",this.config),list:i,type:"language"}),o.forEach(Ye.createMenuItem.bind(this)),Ye.updateSetting.call(this,t,i)}}},setSpeedMenu:function(){var e=this;if(W(this.elements.settings.panels.speed)){var t="speed",i=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=!K(this.options.speed)&&this.options.speed.length>1;Ye.toggleMenuButton.call(this,t,r),le(i),Ye.checkMenu.call(this),r&&(this.options.speed.forEach((function(r){Ye.createMenuItem.call(e,{value:r,list:i,type:t,title:Ye.getLabel.call(e,"speed",r)})})),Ye.updateSetting.call(this,t,i))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!K(e)&&Object.values(e).some((function(e){return!e.hidden}));ue(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 i=e;W(i)||(i=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var r=i.querySelector('[role^="menuitem"]');ve.call(this,r,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,i=this.elements.buttons.settings;if(W(t)&&W(i)){var r=t.hidden,n=r;if(V(e))n=e;else if($(e)&&"Escape"===e.key)n=!1;else if(U(e)){var o=B(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(o);if(a||!a&&e.target!==i&&n)return}i.setAttribute("aria-expanded",n),ue(t,!n),de(this.elements.container,this.config.classNames.menu.open,n),n&&$(e)?Ye.focusFirstMenuItem.call(this,null,!0):n||r||ve.call(this,i,$(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 i=t.scrollWidth,r=t.scrollHeight;return ae(t),{width:i,height:r}},showMenuPanel:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(W(r)){var n=r.parentNode,o=Array.from(n.children).find((function(e){return!e.hidden}));if(me.transitions&&!me.reducedMotion){n.style.width="".concat(o.scrollWidth,"px"),n.style.height="".concat(o.scrollHeight,"px");var a=Ye.getMenuSize.call(this,r),l=function t(i){i.target===n&&["width","height"].includes(i.propertyName)&&(n.style.width="",n.style.height="",ke.call(e,n,X,t))};we.call(this,n,X,l),n.style.width="".concat(a.width,"px"),n.style.height="".concat(a.height,"px")}ue(o,!0),ue(r,!1),Ye.focusFirstMenuItem.call(this,r,i)}},setDownloadUrl:function(){var e=this.elements.buttons.download;W(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,i=Ye.bindMenuItemShortcuts,r=Ye.createButton,n=Ye.createProgress,o=Ye.createRange,a=Ye.createTime,l=Ye.setQualityMenu,s=Ye.setSpeedMenu,c=Ye.showMenuPanel;this.elements.controls=null,H(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(r.call(this,"play-large"));var u=ne("div",ce(this.config.selectors.controls.wrapper));this.elements.controls=u;var d={class:"plyr__controls__item"};return Ae(H(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=ne("div",{class:"".concat(d.class," plyr__progress__container")}),p=ne("div",ce(t.config.selectors.progress));if(p.appendChild(o.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),p.appendChild(n.call(t,"buffer")),t.config.tooltips.seek){var h=ne("span",{class:t.config.classNames.tooltip},"00:00");p.appendChild(h),t.elements.display.seekTooltip=h}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 f=t.elements.volume;if(W(f)&&u.contains(f)||(f=ne("div",te({},d,{class:"".concat(d.class," plyr__volume").trim()})),t.elements.volume=f,u.appendChild(f)),"mute"===l&&f.appendChild(r.call(t,"mute")),"volume"===l&&!G.isIos){var y={max:1,step:.05,value:t.config.volume};f.appendChild(o.call(t,"volume",te(y,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===l&&u.appendChild(r.call(t,"captions",d)),"settings"===l&&!K(t.config.settings)){var v=ne("div",te({},d,{class:"".concat(d.class," plyr__menu").trim(),hidden:""}));v.appendChild(r.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var g=ne("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),m=ne("div"),b=ne("div",{id:"plyr-settings-".concat(e.id,"-home")}),_=ne("div",{role:"menu"});b.appendChild(_),m.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach((function(r){var n=ne("button",te(ce(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:""}));i.call(t,n,r),we.call(t,n,"click",(function(){c.call(t,r,!1)}));var o=ne("span",null,He(r,t.config)),a=ne("span",{class:t.config.classNames.menu.value});a.innerHTML=e[r],o.appendChild(a),n.appendChild(o),_.appendChild(n);var l=ne("div",{id:"plyr-settings-".concat(e.id,"-").concat(r),hidden:""}),s=ne("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});s.appendChild(ne("span",{"aria-hidden":!0},He(r,t.config))),s.appendChild(ne("span",{class:t.config.classNames.hidden},He("menuBack",t.config))),we.call(t,l,"keydown",(function(e){"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),c.call(t,"home",!0))}),!1),we.call(t,s,"click",(function(){c.call(t,"home",!1)})),l.appendChild(s),l.appendChild(ne("div",{role:"menu"})),m.appendChild(l),t.elements.settings.buttons[r]=n,t.elements.settings.panels[r]=l})),g.appendChild(m),v.appendChild(g),u.appendChild(v),t.elements.settings.popup=g,t.elements.settings.menu=v}if("pip"===l&&me.pip&&u.appendChild(r.call(t,"pip",d)),"airplay"===l&&me.airplay&&u.appendChild(r.call(t,"airplay",d)),"download"===l){var w=te({},d,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(w.download="");var k=t.config.urls.download;!Y(k)&&t.isEmbed&&te(w,{icon:"logo-".concat(t.provider),label:t.provider}),u.appendChild(r.call(t,"download",w))}"fullscreen"===l&&u.appendChild(r.call(t,"fullscreen",d))})),this.isHTML5&&l.call(this,Re.getQualityOptions.call(this)),s.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=Ye.getIconUrl.call(this);t.cors&&Ue(t.url,"sprite-plyr",this.elements.container)}this.id=Math.floor(1e4*Math.random());var i=null;this.elements.controls=null;var r,n={id:this.id,seektime:this.config.seekTime,title:this.config.title},o=!0;if(B(this.config.controls)&&(this.config.controls=this.config.controls.call(this,n)),this.config.controls||(this.config.controls=[]),W(this.config.controls)||F(this.config.controls)?i=this.config.controls:(i=Ye.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Je.getLabel.call(this)}),o=!1),o&&F(this.config.controls)&&(i=function(e){var t=e;return Object.entries(n).forEach((function(e){var i=(0,g.Z)(e,2),r=i[0],n=i[1];t=De(t,"{".concat(r,"}"),n)})),t}(i)),F(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),W(r)||(r=this.elements.container),r[W(i)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",i),W(this.elements.controls)||Ye.findElements.call(this),!K(this.elements.buttons)){var a=function(t){var i=e.config.classNames.controlPressed;t.setAttribute("aria-pressed","false"),Object.defineProperty(t,"pressed",{configurable:!0,enumerable:!0,get:function(){return pe(t,i)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];de(t,i,e),t.setAttribute("aria-pressed",e?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){H(e)||q(e)?Array.from(e).filter(Boolean).forEach(a):a(e)}))}if(G.isEdge&&J(r),this.config.tooltips.controls){var l=this.config,s=l.classNames,c=l.selectors,u="".concat(c.controls.wrapper," ").concat(c.labels," .").concat(s.hidden),d=fe.call(this,u);Array.from(d).forEach((function(t){de(t,e.config.classNames.hidden,!1),de(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(e){}},setMarkers:function(){var e,t,i=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<i.duration}));if(null!=r&&r.length){var n=document.createDocumentFragment(),o=document.createDocumentFragment(),a=null,l="".concat(this.config.classNames.tooltip,"--visible"),s=function(e){return de(a,l,e)};r.forEach((function(e){var t=ne("span",{class:i.config.classNames.marker},""),r=e.time/i.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(){i.currentTime=e.time})),t.style.left=r,o.appendChild(t)})),n.appendChild(o),this.config.tooltips.seek||(a=ne("span",{class:this.config.classNames.tooltip},""),n.appendChild(a)),this.elements.markers={points:o,tip:a},this.elements.progress.appendChild(n)}}}};function Ke(e){var t=e;if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var i=document.createElement("a");i.href=t,t=i.href}try{return new URL(t)}catch(e){return null}}function Xe(e){var t=new URLSearchParams;return Z(e)&&Object.entries(e).forEach((function(e){var i=(0,g.Z)(e,2),r=i[0],n=i[1];t.set(r,n)})),t}var Je={setup:function(){var e;if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!me.textTracks)H(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Ye.setCaptionsMenu.call(this);else{var t,i;if(W(this.elements.captions)||(this.elements.captions=ne("div",ce(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),t=this.elements.captions,i=this.elements.wrapper,W(t)&&W(i)&&i.parentNode.insertBefore(t,i.nextSibling)),G.isIE&&window.URL){var r=this.media.querySelectorAll("track");Array.from(r).forEach((function(e){var t=e.getAttribute("src"),i=Ke(t);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&We(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){ae(e)}))}))}var n=Ae((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(e){return e.split("-")[0]}))),o=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===o&&(e=n,o=(0,g.Z)(e,1)[0]);var a=this.storage.get("captions");if(V(a)||(a=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:a,language:o,languages:n}),this.isHTML5){var l=this.config.captions.update?"addtrack removetrack":"removetrack";we.call(this,this.media.textTracks,l,Je.update.bind(this))}setTimeout(Je.update.bind(this),0)}},update:function(){var e=this,t=Je.getTracks.call(this,!0),i=this.captions,r=i.active,n=i.language,o=i.meta,a=i.currentTrackNode,l=Boolean(t.find((function(e){return e.language===n})));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"),we.call(e,t,"cuechange",(function(){return Je.updateCues.call(e)}))})),(l&&this.language!==n||!t.includes(a))&&(Je.setLanguage.call(this,n),Je.toggle.call(this,r&&l)),this.elements&&de(this.elements.container,this.config.classNames.captions.enabled,!K(t)),H(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Ye.setCaptionsMenu.call(this)},toggle:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var r=this.captions.toggled,n=this.config.classNames.captions.active,o=R(e)?!r:e;if(o!==r){if(i||(this.captions.active=o,this.storage.set({captions:o})),!this.language&&o&&!i){var a=Je.getTracks.call(this),l=Je.findTrack.call(this,[this.captions.language].concat((0,f.Z)(this.captions.languages)),!0);return this.captions.language=l.language,void Je.set.call(this,a.indexOf(l))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=o),de(this.elements.container,n,o),this.captions.toggled=o,Ye.updateSetting.call(this,"captions"),Te.call(this,this.media,o?"captionsenabled":"captionsdisabled")}setTimeout((function(){o&&t.captions.toggled&&t.captions.currentTrackNode&&(t.captions.currentTrackNode.mode="hidden")}))}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=Je.getTracks.call(this);if(-1!==e)if(D(e))if(e in i){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var r=i[e],n=(r||{}).language;this.captions.currentTrackNode=r,Ye.updateSetting.call(this,"captions"),t||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),Te.call(this,this.media,"languagechange")}Je.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&Je.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else Je.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(F(e)){var i=e.toLowerCase();this.captions.language=i;var r=Je.getTracks.call(this),n=Je.findTrack.call(this,[i]);Je.set.call(this,r.indexOf(n),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(i){return!e.isHTML5||t||e.captions.meta.has(i)})).filter((function(e){return["captions","subtitles"].includes(e.kind)}))},findTrack:function(e){var t,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Je.getTracks.call(this),o=function(e){return Number((i.captions.meta.get(e)||{}).default)},a=Array.from(n).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 Je.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!Q(t)&&me.textTracks&&this.captions.toggled&&(t=Je.getCurrentTrack.call(this)),Q(t)?K(t.label)?K(t.language)?He("enabled",this.config):e.language.toUpperCase():t.label:He("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(W(this.elements.captions))if(R(e)||Array.isArray(e)){var t=e;if(!t){var i=Je.getCurrentTrack.call(this);t=Array.from((i||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(Ve)}var r=t.map((function(e){return e.trim()})).join("\n");if(r!==this.elements.captions.innerHTML){le(this.elements.captions);var n=ne("span",ce(this.config.selectors.caption));n.innerHTML=r,this.elements.captions.appendChild(n),Te.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},Ge={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.3/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"},auto:"AUTO"},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",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",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:[]}},et="picture-in-picture",tt={html5:"html5",youtube:"youtube",vimeo:"vimeo"},it="video",rt=function(){},nt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,y.Z)(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return(0,v.Z)(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):rt}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):rt}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):rt}}]),e}(),ot=function(){function t(i){var r=this;(0,y.Z)(this,t),e(this,"onChange",(function(){if(r.enabled){var e=r.player.elements.buttons.fullscreen;W(e)&&(e.pressed=r.active);var t=r.target===r.player.media?r.target:r.player.elements.container;Te.call(r.player,t,r.active?"enterfullscreen":"exitfullscreen",!0)}})),e(this,"toggleFallback",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?r.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(r.scrollPosition.x,r.scrollPosition.y),document.body.style.overflow=e?"hidden":"",de(r.target,r.player.config.classNames.fullscreen.fallback,e),G.isIos){var t=document.head.querySelector('meta[name="viewport"]'),i="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var n=F(t.content)&&t.content.includes(i);e?(r.cleanupViewport=!n,n||(t.content+=",".concat(i))):r.cleanupViewport&&(t.content=t.content.split(",").filter((function(e){return e.trim()!==i})).join(","))}r.onChange()})),e(this,"trapFocus",(function(e){if(!G.isIos&&r.active&&"Tab"===e.key){var t=document.activeElement,i=fe.call(r.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),n=(0,g.Z)(i,1)[0],o=i[i.length-1];t!==o||e.shiftKey?t===n&&e.shiftKey&&(o.focus(),e.preventDefault()):(n.focus(),e.preventDefault())}})),e(this,"update",(function(){var e;r.enabled?(e=r.forceFallback?"Fallback (forced)":t.native?"Native":"Fallback",r.player.debug.log("".concat(e," fullscreen enabled"))):r.player.debug.log("Fullscreen not supported and fallback disabled"),de(r.player.elements.container,r.player.config.classNames.fullscreen.enabled,r.enabled)})),e(this,"enter",(function(){r.enabled&&(G.isIos&&r.player.config.fullscreen.iosNative?r.player.isVimeo?r.player.embed.requestFullscreen():r.target.webkitEnterFullscreen():!t.native||r.forceFallback?r.toggleFallback(!0):r.prefix?K(r.prefix)||r.target["".concat(r.prefix,"Request").concat(r.property)]():r.target.requestFullscreen({navigationUI:"hide"}))})),e(this,"exit",(function(){if(r.enabled)if(G.isIos&&r.player.config.fullscreen.iosNative)r.target.webkitExitFullscreen(),Ce(r.player.play());else if(!t.native||r.forceFallback)r.toggleFallback(!1);else if(r.prefix){if(!K(r.prefix)){var e="moz"===r.prefix?"Cancel":"Exit";document["".concat(r.prefix).concat(e).concat(r.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),e(this,"toggle",(function(){r.active?r.exit():r.enter()})),this.player=i,this.prefix=t.prefix,this.property=t.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===i.config.fullscreen.fallback,this.player.elements.fullscreen=i.config.fullscreen.container&&function(e,t){return(Element.prototype.closest||function(){var e=this;do{if(he.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,i.config.fullscreen.container),we.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){r.onChange()})),we.call(this.player,this.player.elements.container,"dblclick",(function(e){if(!W(r.player.elements.controls)||!r.player.elements.controls.contains(e.target)){var t=r.player.elements.container.querySelector("presto-search-bar-ui");W(t)&&t.contains(e.target)||r.player.listeners.proxy(e,r.toggle,"fullscreen")}})),we.call(this,this.player.elements.container,"keydown",(function(e){return r.trapFocus(e)})),this.update()}return(0,v.Z)(t,[{key:"usingNative",get:function(){return t.native&&!this.forceFallback}},{key:"enabled",get:function(){return(t.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!t.native||this.forceFallback)return pe(this.target,this.player.config.classNames.fullscreen.fallback);var e=this.prefix?this.target.getRootNode()["".concat(this.prefix).concat(this.property,"Element")]:this.target.getRootNode().fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}},{key:"target",get:function(){return G.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(B(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!B(document["".concat(t,"ExitFullscreen")])&&!B(document["".concat(t,"CancelFullScreen")])||(e=t,0))})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),t}();function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(i,r){var n=new Image,o=function(){delete n.onload,delete n.onerror,(n.naturalWidth>=t?i:r)(n)};Object.assign(n,{onload:o,onerror:o,src:e})}))}var lt={addStyleHook:function(){de(this.elements.container,this.config.selectors.container.replace(".",""),!0),de(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 lt.toggleNativeControls.call(this,!0);W(this.elements.controls)||(Ye.inject.call(this),this.listeners.controls()),lt.toggleNativeControls.call(this),this.isHTML5&&Je.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Ye.updateVolume.call(this),Ye.timeUpdate.call(this),Ye.durationUpdate.call(this),lt.checkPlaying.call(this),de(this.elements.container,this.config.classNames.pip.supported,me.pip&&this.isHTML5&&this.isVideo),de(this.elements.container,this.config.classNames.airplay.supported,me.airplay&&this.isHTML5),de(this.elements.container,this.config.classNames.isIos,G.isIos),de(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){Te.call(e,e.media,"ready")}),0),lt.setTitle.call(this),this.poster&<.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&Ye.durationUpdate.call(this),this.config.mediaMetadata&&Ye.setMediaMetadata.call(this)},setTitle:function(){var e=He("play",this.config);if(F(this.config.title)&&!K(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=ye.call(this,"iframe");if(!W(t))return;var i=K(this.config.title)?"video":this.config.title,r=He("frameTitle",this.config);t.setAttribute("title",r.replace("{title}",i))}},togglePoster:function(e){de(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?(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),Se.call(this).then((function(){return at(e)})).catch((function(i){throw e===t.poster&<.togglePoster.call(t,!1),i})).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:""}),lt.togglePoster.call(t,!0),e}))):Promise.reject(new Error("Poster already set"))},checkPlaying:function(e){var t=this;de(this.elements.container,this.config.classNames.playing,this.playing),de(this.elements.container,this.config.classNames.paused,this.paused),de(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",He(t.playing?"pause":"play",t.config))})),U(e)&&"timeupdate"===e.type||lt.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(){de(t.elements.container,t.config.classNames.loading,t.loading),lt.toggleControls.call(t)}),this.loading?250:0)},toggleControls:function(e){var t=this.elements.controls;if(t&&this.config.hideControls){var i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||i))}},migrateStyles:function(){var e=this;Object.values(A({},this.media.style)).filter((function(e){return!K(e)&&F(e)&&e.startsWith("--plyr")})).forEach((function(t){e.elements.container.style.setProperty(t,e.media.style.getPropertyValue(t)),e.media.style.removeProperty(t)})),K(this.media.style)&&this.media.removeAttribute("style")}},st=function(){function t(i){var r=this;(0,y.Z)(this,t),e(this,"firstTouch",(function(){var e=r.player,t=e.elements;e.touch=!0,de(t.container,e.config.classNames.isTouch,!0)})),e(this,"setTabFocus",(function(e){var t=r.player,i=t.elements,n=e.key,o=e.type,a=e.timeStamp;if(clearTimeout(r.focusTimer),"keydown"!==o||"Tab"===n){"keydown"===o&&(r.lastKeyDown=a);var l=a-r.lastKeyDown<=20;("focus"!==o||l)&&(function(){var e=t.config.classNames.tabFocus;de(fe.call(t,".".concat(e)),e,!1)}(),"focusout"!==o&&(r.focusTimer=setTimeout((function(){var e=document.activeElement;i.container.contains(e)&&de(document.activeElement,t.config.classNames.tabFocus,!0)}),10)))}})),e(this,"global",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=r.player;t.config.keyboard.global&&_e.call(t,window,"keydown keyup",r.handleKey,e,!1),_e.call(t,document.body,"click",r.toggleMenu,e),xe.call(t,document.body,"touchstart",r.firstTouch),_e.call(t,document.body,"keydown focus blur focusout",r.setTabFocus,e,!1,!0)})),e(this,"container",(function(){var e=r.player,t=e.config,i=e.elements,n=e.timers;!t.keyboard.global&&t.keyboard.focused&&we.call(e,i.container,"keydown keyup",r.handleKey,!1),we.call(e,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var r=i.controls;r&&"enterfullscreen"===t.type&&(r.pressed=!1,r.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(lt.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout((function(){return lt.toggleControls.call(e,!1)}),o)}));var o=function(){if(e.isVimeo&&!e.config.vimeo.premium){var t=i.wrapper,r=e.fullscreen.active,n=ze.call(e),o=(0,g.Z)(n,2),a=o[0],l=o[1],s=Le("aspect-ratio: ".concat(a," / ").concat(l));if(r){var c=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],u=c[1],d=c[0]/u>a/l;s?(t.style.width=d?"auto":"100%",t.style.height=d?"100%":"auto"):(t.style.maxWidth=d?u/l*a+"px":null,t.style.margin=d?"0 auto":null)}else s?(t.style.width=null,t.style.height=null):(t.style.maxWidth=null,t.style.margin=null)}},a=function(){clearTimeout(n.resized),n.resized=setTimeout(o,50)};we.call(e,i.container,"enterfullscreen exitfullscreen",(function(t){e.fullscreen.target===i.container&&(!e.isEmbed&&K(e.config.ratio)||(o(),("enterfullscreen"===t.type?we:ke).call(e,window,"resize",a)))}))})),e(this,"media",(function(){var e=r.player,t=e.elements;if(we.call(e,e.media,"timeupdate seeking seeked",(function(t){return Ye.timeUpdate.call(e,t)})),we.call(e,e.media,"durationchange loadeddata loadedmetadata",(function(t){return Ye.durationUpdate.call(e,t)})),we.call(e,e.media,"ended",(function(){e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())})),we.call(e,e.media,"progress playing seeking seeked",(function(t){return Ye.updateProgress.call(e,t)})),we.call(e,e.media,"volumechange",(function(t){return Ye.updateVolume.call(e,t)})),we.call(e,e.media,"playing play pause ended emptied timeupdate",(function(t){return lt.checkPlaying.call(e,t)})),we.call(e,e.media,"waiting canplay seeked playing",(function(t){return lt.checkLoading.call(e,t)})),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){var i=ye.call(e,".".concat(e.config.classNames.video));if(!W(i))return;we.call(e,t.container,"click",(function(n){([t.container,i].includes(n.target)||i.contains(n.target))&&(e.touch&&e.config.hideControls||(e.ended?(r.proxy(n,e.restart,"restart"),r.proxy(n,(function(){Ce(e.play())}),"play")):r.proxy(n,(function(){Ce(e.togglePlay())}),"play")))}))}e.supported.ui&&e.config.disableContextMenu&&we.call(e,t.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),we.call(e,e.media,"volumechange",(function(){e.storage.set({volume:e.volume,muted:e.muted})})),we.call(e,e.media,"ratechange",(function(){Ye.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})})),we.call(e,e.media,"qualitychange",(function(t){Ye.updateSetting.call(e,"quality",null,t.detail.quality)})),we.call(e,e.media,"ready qualitychange",(function(){Ye.setDownloadUrl.call(e)}));var n=e.config.events.concat(["keyup","keydown"]).join(" ");we.call(e,e.media,n,(function(i){var r=i.detail,n=void 0===r?{}:r;"error"===i.type&&(n=e.media.error),Te.call(e,t.container,i.type,!0,n)}))})),e(this,"proxy",(function(e,t,i){var n=r.player,o=n.config.listeners[i],a=!0;B(o)&&(a=o.call(n,e)),!1!==a&&B(t)&&t.call(n,e)})),e(this,"bind",(function(e,t,i,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=r.player,l=a.config.listeners[n],s=B(l);we.call(a,e,t,(function(e){return r.proxy(e,i,n)}),o&&!s)})),e(this,"controls",(function(){var e=r.player,t=e.elements,i=G.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach((function(t){r.bind(t,"click",(function(){Ce(e.togglePlay())}),"play")})),r.bind(t.buttons.restart,"click",e.restart,"restart"),r.bind(t.buttons.rewind,"click",(function(){e.lastSeekTime=Date.now(),e.rewind()}),"rewind"),r.bind(t.buttons.fastForward,"click",(function(){e.lastSeekTime=Date.now(),e.forward()}),"fastForward"),r.bind(t.buttons.mute,"click",(function(){e.muted=!e.muted}),"mute"),r.bind(t.buttons.captions,"click",(function(){return e.toggleCaptions()})),r.bind(t.buttons.download,"click",(function(){Te.call(e,e.media,"download")}),"download"),r.bind(t.buttons.fullscreen,"click",(function(){e.fullscreen.toggle()}),"fullscreen"),r.bind(t.buttons.pip,"click",(function(){e.pip="toggle"}),"pip"),r.bind(t.buttons.airplay,"click",e.airplay,"airplay"),r.bind(t.buttons.settings,"click",(function(t){t.stopPropagation(),t.preventDefault(),Ye.toggleMenu.call(e,t)}),null,!1),r.bind(t.buttons.settings,"keyup",(function(t){["Space","Enter"].includes(t.key)&&("Enter"!==t.key?(t.preventDefault(),t.stopPropagation(),Ye.toggleMenu.call(e,t)):Ye.focusFirstMenuItem.call(e,null,!0))}),null,!1),r.bind(t.settings.menu,"keydown",(function(t){"Escape"===t.key&&Ye.toggleMenu.call(e,t)})),r.bind(t.inputs.seek,"mousedown mousemove",(function(e){var i=t.progress.getBoundingClientRect(),r=100/i.width*(e.pageX-i.left);e.currentTarget.setAttribute("seek-value",r)})),r.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(t){var i=t.currentTarget,r="play-on-seeked";if(!$(t)||["ArrowLeft","ArrowRight"].includes(t.key)){e.lastSeekTime=Date.now();var n=i.hasAttribute(r),o=["mouseup","touchend","keyup"].includes(t.type);n&&o?(i.removeAttribute(r),Ce(e.play())):!o&&e.playing&&(i.setAttribute(r,""),e.pause())}})),G.isIos){var n=fe.call(e,'input[type="range"]');Array.from(n).forEach((function(e){return r.bind(e,i,(function(e){return J(e.target)}))}))}r.bind(t.inputs.seek,i,(function(t){var i=t.currentTarget,r=i.getAttribute("seek-value");K(r)&&(r=i.value),i.removeAttribute("seek-value"),e.currentTime=r/i.max*e.duration}),"seek"),r.bind(t.progress,"mouseenter mouseleave mousemove",(function(t){return Ye.updateSeekTooltip.call(e,t)})),r.bind(t.progress,"mousemove touchmove",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.startMove(t)})),r.bind(t.progress,"mouseleave touchend click",(function(){var t=e.previewThumbnails;t&&t.loaded&&t.endMove(!1,!0)})),r.bind(t.progress,"mousedown touchstart",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.startScrubbing(t)})),r.bind(t.progress,"mouseup touchend",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.endScrubbing(t)})),G.isWebkit&&Array.from(fe.call(e,'input[type="range"]')).forEach((function(t){r.bind(t,"input",(function(t){return Ye.updateRangeFill.call(e,t.target)}))})),e.config.toggleInvert&&!W(t.display.duration)&&r.bind(t.display.currentTime,"click",(function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,Ye.timeUpdate.call(e))})),r.bind(t.inputs.volume,i,(function(t){e.volume=t.target.value}),"volume"),r.bind(t.controls,"mouseenter mouseleave",(function(i){t.controls.hover=!e.touch&&"mouseenter"===i.type})),t.fullscreen&&Array.from(t.fullscreen.children).filter((function(e){return!e.contains(t.container)})).forEach((function(i){r.bind(i,"mouseenter mouseleave",(function(i){t.controls&&(t.controls.hover=!e.touch&&"mouseenter"===i.type)}))})),r.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){t.controls.pressed=["mousedown","touchstart"].includes(e.type)})),r.bind(t.controls,"focusin",(function(){var i=e.config,n=e.timers;de(t.controls,i.classNames.noTransition,!0),lt.toggleControls.call(e,!0),setTimeout((function(){de(t.controls,i.classNames.noTransition,!1)}),0);var o=r.touch?3e3:4e3;clearTimeout(n.controls),n.controls=setTimeout((function(){return lt.toggleControls.call(e,!1)}),o)})),r.bind(t.inputs.volume,"wheel",(function(t){var i=t.webkitDirectionInvertedFromDevice,r=[t.deltaX,-t.deltaY].map((function(e){return i?-e:e})),n=(0,g.Z)(r,2),o=n[0],a=n[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=i,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return(0,v.Z)(t,[{key:"handleKey",value:function(e){var t,i=this.player,r=i.elements,n=e.key,o=e.type,a=e.altKey,l=e.ctrlKey,s=e.metaKey,c=e.shiftKey,u="keydown"===o,d=u&&n===this.lastKey;if(!(a||l||s||c)&&n)if(u){var p=document.activeElement;if(W(p)){var h=i.config.selectors.editable;if(p!==r.inputs.seek&&he(p,h))return;if("Space"===e.key&&he(p,'button, [role^="menuitem"]'))return}switch(["Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(n)&&(e.preventDefault(),e.stopPropagation()),n){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d||(t=parseInt(n,10),i.currentTime=i.duration/10*t);break;case"Space":case"k":d||Ce(i.togglePlay());break;case"ArrowUp":i.increaseVolume(.1);break;case"ArrowDown":i.decreaseVolume(.1);break;case"m":d||(i.muted=!i.muted);break;case"ArrowRight":i.forward();break;case"ArrowLeft":i.rewind();break;case"f":i.fullscreen.toggle();break;case"c":d||i.toggleCaptions();break;case"l":i.loop=!i.loop}"Escape"===n&&!i.fullscreen.usingNative&&i.fullscreen.active&&i.fullscreen.toggle(),this.lastKey=n}else this.lastKey=null}},{key:"toggleMenu",value:function(e){Ye.toggleMenu.call(this.player,e)}}]),t}(),ct=function(e,t){return function(e,t){e.exports=function(){var e=function(){},t={},i={},r={};function n(e,t){e=e.push?e:[e];var n,o,a,l=[],s=e.length,c=s;for(n=function(e,i){i.length&&l.push(e),--c||t(l)};s--;)o=e[s],(a=i[o])?n(o,a):(r[o]=r[o]||[]).push(n)}function o(e,t){if(e){var n=r[e];if(i[e]=t,n)for(;n.length;)n[0](e,t),n.splice(0,1)}}function a(t,i){t.call&&(t={success:t}),i.length?(t.error||e)(i):(t.success||e)(t)}function l(t,i,r,n){var o,a,s=document,c=r.async,u=(r.numRetries||0)+1,d=r.before||e,p=t.replace(/[\?|#].*$/,""),h=t.replace(/^(css|img)!/,"");n=n||0,/(^css!|\.css$)/.test(p)?((a=s.createElement("link")).rel="stylesheet",a.href=h,(o="hideFocus"in a)&&a.relList&&(o=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(p)?(a=s.createElement("img")).src=h:((a=s.createElement("script")).src=t,a.async=void 0===c||c),a.onload=a.onerror=a.onbeforeload=function(e){var s=e.type[0];if(o)try{a.sheet.cssText.length||(s="e")}catch(e){18!=e.code&&(s="e")}if("e"==s){if((n+=1)<u)return l(t,i,r,n)}else if("preload"==a.rel&&"style"==a.as)return a.rel="stylesheet";i(t,s,e.defaultPrevented)},!1!==d(t,a)&&s.head.appendChild(a)}function s(e,t,i){var r,n,o=(e=e.push?e:[e]).length,a=o,s=[];for(r=function(e,i,r){if("e"==i&&s.push(e),"b"==i){if(!r)return;s.push(e)}--o||t(s)},n=0;n<a;n++)l(e[n],r,i)}function c(e,i,r){var n,l;if(i&&i.trim&&(n=i),l=(n?r:i)||{},n){if(n in t)throw"LoadJS";t[n]=!0}function c(t,i){s(e,(function(e){a(l,e),t&&a({success:t,error:i},e),o(n,e)}),l)}if(l.returnPromise)return new Promise(c);c()}return c.ready=function(e,t){return n(e,(function(e){a(t,e)})),c},c.done=function(e){o(e,[])},c.reset=function(){t={},i={},r={}},c.isDefined=function(e){return e in t},c}()}(t={exports:{}}),t.exports}();function ut(e){return new Promise((function(t,i){ct(e,{success:t,error:i})}))}function dt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Te.call(this,this.media,e?"play":"pause"))}var pt={setup:function(){var e=this;de(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,je.call(e),Z(window.Vimeo)?pt.ready.call(e):ut(e.config.urls.vimeo.sdk).then((function(){pt.ready.call(e)})).catch((function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)}))},ready:function(){var e=this,t=this,i=t.config.vimeo,r=i.premium,n=i.referrerPolicy,o=(0,h.Z)(i,T),a=t.media.getAttribute("src"),l="";K(a)?(a=t.media.getAttribute(t.config.attributes.embed.id),l=t.media.getAttribute(t.config.attributes.embed.hash)):l=function(e){var t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return t&&5===t.length?t[4]:null}(a);var s=l?{h:l}:{};r&&Object.assign(o,{controls:!1,sidedock:!1});var c,u=Xe(A(A({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},s),o)),d=K(c=a)?null:D(Number(c))?c:c.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:c,p=ne("iframe"),f=Ze(t.config.urls.vimeo.iframe,d,u);if(p.setAttribute("src",f),p.setAttribute("allowfullscreen",""),p.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),K(n)||p.setAttribute("referrerPolicy",n),r||!i.customControls)p.setAttribute("data-poster",t.poster),t.media=se(p,t.media);else{var y=ne("div",{class:t.config.classNames.embedContainer,"data-poster":t.poster});y.appendChild(p),t.media=se(y,t.media)}i.customControls||We(Ze(t.config.urls.vimeo.api,f)).then((function(e){!K(e)&&e.thumbnail_url&<.setPoster.call(t,e.thumbnail_url).catch((function(){}))})),t.embed=new window.Vimeo.Player(p,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=function(){return dt.call(t,!0),t.embed.play()},t.media.pause=function(){return dt.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var v=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return v},set:function(e){var i=t.embed,r=t.media,n=t.paused,o=t.volume,a=n&&!i.hasPlayed;r.seeking=!0,Te.call(t,r,"seeking"),Promise.resolve(a&&i.setVolume(0)).then((function(){return i.setCurrentTime(e)})).then((function(){return a&&i.pause()})).then((function(){return a&&i.setVolume(o)})).catch((function(){}))}});var m=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return m},set:function(e){t.embed.setPlaybackRate(e).then((function(){m=e,Te.call(t,t.media,"ratechange")})).catch((function(){t.options.speed=[1]}))}});var b=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return b},set:function(e){t.embed.setVolume(e).then((function(){b=e,Te.call(t,t.media,"volumechange")}))}});var _=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return _},set:function(e){var i=!!V(e)&&e;t.embed.setVolume(i?0:t.config.volume).then((function(){_=i,Te.call(t,t.media,"volumechange")}))}});var w,k=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return k},set:function(e){var i=V(e)?e:t.config.loop.active;t.embed.setLoop(i).then((function(){k=i}))}}),t.embed.getVideoUrl().then((function(e){w=e,Ye.setDownloadUrl.call(t)})).catch((function(t){e.debug.warn(t)})),Object.defineProperty(t.media,"currentSrc",{get:function(){return w}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then((function(i){var r=(0,g.Z)(i,2),n=r[0],o=r[1];t.embed.ratio=Ne(n,o),je.call(e)})),t.embed.setAutopause(t.config.autopause).then((function(e){t.config.autopause=e})),t.embed.getVideoTitle().then((function(i){t.config.title=i,lt.setTitle.call(e)})),t.embed.getCurrentTime().then((function(e){v=e,Te.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((function(e){t.media.duration=e,Te.call(t,t.media,"durationchange")})),t.embed.on("loaded",(function(){t.embed.getPaused().then((function(e){dt.call(t,!e),e||Te.call(t,t.media,"playing")})),W(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(function(){Te.call(t,t.media,"waiting")})),t.embed.on("bufferend",(function(){Te.call(t,t.media,"playing")})),t.embed.on("play",(function(){dt.call(t,!0),Te.call(t,t.media,"playing")})),t.embed.on("pause",(function(){dt.call(t,!1)})),t.embed.on("timeupdate",(function(e){t.media.seeking=!1,v=e.seconds,Te.call(t,t.media,"timeupdate")})),t.embed.on("progress",(function(e){t.media.buffered=e.percent,Te.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&Te.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((function(e){e!==t.media.duration&&(t.media.duration=e,Te.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(function(){t.media.seeking=!1,Te.call(t,t.media,"seeked")})),t.embed.on("ended",(function(){t.media.paused=!0,Te.call(t,t.media,"ended")})),t.embed.on("error",(function(e){t.media.error=e,Te.call(t,t.media,"error")})),i.customControls&&setTimeout((function(){return lt.build.call(t)}),0)}};function ht(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Te.call(this,this.media,e?"play":"pause"))}function ft(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var yt={setup:function(){var e=this;if(de(this.elements.wrapper,this.config.classNames.embed,!0),Z(window.YT)&&B(window.YT.Player))yt.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){B(t)&&t(),yt.ready.call(e)},ut(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;We(Ze(this.config.urls.youtube.api,e)).then((function(e){if(Z(e)){var i=e.title,r=e.height,n=e.width;t.config.title=i,lt.setTitle.call(t),t.embed.ratio=Ne(n,r)}je.call(t)})).catch((function(){je.call(t)}))},ready:function(){var e=this,t=e.config.youtube,i=e.media&&e.media.getAttribute("id");if(K(i)||!i.startsWith("youtube-")){var r=e.media.getAttribute("src");K(r)&&(r=e.media.getAttribute(this.config.attributes.embed.id));var n,o=K(n=r)?null:n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:n,a=ne("div",{id:"".concat(e.provider,"-").concat(Math.floor(1e4*Math.random())),"data-poster":t.customControls?e.poster:void 0});if(e.media=se(a,e.media),t.customControls){var l=function(e){return"https://i.ytimg.com/vi/".concat(o,"/").concat(e,"default.jpg")};at(l("maxres"),121).catch((function(){return at(l("sd"),121)})).catch((function(){return at(l("hq"))})).then((function(t){return lt.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:o,host:ft(t),playerVars:te({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError:function(t){if(!e.media.error){var i=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."}[i]||"An unknown error occured";e.media.error={code:i,message:r},Te.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var i=t.target;e.media.playbackRate=i.getPlaybackRate(),Te.call(e,e.media,"ratechange")},onReady:function(i){if(!B(e.media.play)){var r=i.target;yt.getTitle.call(e,o),e.media.play=function(){ht.call(e,!0),r.playVideo()},e.media.pause=function(){ht.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,Te.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 n=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return n},set:function(t){n=t,r.setVolume(100*n),Te.call(e,e.media,"volumechange")}});var a=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return a},set:function(t){var i=V(t)?t:a;a=i,r[i?"mute":"unMute"](),r.setVolume(100*n),Te.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),Te.call(e,e.media,"timeupdate"),Te.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)&&Te.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),Te.call(e,e.media,"canplaythrough"))}),200),t.customControls&&setTimeout((function(){return lt.build.call(e)}),50)}},onStateChange:function(i){var r=i.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(i.data)&&(e.media.seeking=!1,Te.call(e,e.media,"seeked")),i.data){case-1:Te.call(e,e.media,"timeupdate"),e.media.buffered=r.getVideoLoadedFraction(),Te.call(e,e.media,"progress");break;case 0:ht.call(e,!1),e.media.loop?(r.stopVideo(),r.playVideo()):Te.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(ht.call(e,!0),Te.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){Te.call(e,e.media,"timeupdate")}),50),e.media.duration!==r.getDuration()&&(e.media.duration=r.getDuration(),Te.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),ht.call(e,!1);break;case 3:Te.call(e,e.media,"waiting")}Te.call(e,e.elements.container,"statechange",!1,{code:i.data})}}})}}},vt={setup:function(){this.media?(de(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),de(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&de(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=ne("div",{class:this.config.classNames.video}),ie(this.media,this.elements.wrapper),this.elements.poster=ne("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Re.setup.call(this):this.isYouTube?yt.setup.call(this):this.isVimeo&&pt.setup.call(this)):this.debug.warn("No media element found!")}},gt=function(){function t(i){var r=this;(0,y.Z)(this,t),e(this,"load",(function(){r.enabled&&(Z(window.google)&&Z(window.google.ima)?r.ready():ut(r.player.config.urls.googleIMA.sdk).then((function(){r.ready()})).catch((function(){r.trigger("error",new Error("Google IMA SDK failed to load"))})))})),e(this,"ready",(function(){var e;r.enabled||((e=r).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),r.startSafetyTimer(12e3,"ready()"),r.managerPromise.then((function(){r.clearSafetyTimer("onAdsManagerLoaded()")})),r.listeners(),r.setupIMA()})),e(this,"setupIMA",(function(){r.elements.container=ne("div",{class:r.player.config.classNames.ads}),r.player.elements.container.appendChild(r.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(r.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(r.player.config.playsinline),r.elements.displayContainer=new google.ima.AdDisplayContainer(r.elements.container,r.player.media),r.loader=new google.ima.AdsLoader(r.elements.displayContainer),r.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(e){return r.onAdsManagerLoaded(e)}),!1),r.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return r.onAdError(e)}),!1),r.requestAds()})),e(this,"requestAds",(function(){var e=r.player.elements.container;try{var t=new google.ima.AdsRequest;t.adTagUrl=r.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!r.player.muted),r.loader.requestAds(t)}catch(e){r.onAdError(e)}})),e(this,"pollCountdown",(function(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]))return clearInterval(r.countdownTimer),void r.elements.container.removeAttribute("data-badge-text");r.countdownTimer=setInterval((function(){var e=Qe(Math.max(r.manager.getRemainingTime(),0)),t="".concat(He("advertisement",r.player.config)," - ").concat(e);r.elements.container.setAttribute("data-badge-text",t)}),100)})),e(this,"onAdsManagerLoaded",(function(e){if(r.enabled){var t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,r.manager=e.getAdsManager(r.player,t),r.cuePoints=r.manager.getCuePoints(),r.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return r.onAdError(e)})),Object.keys(google.ima.AdEvent.Type).forEach((function(e){r.manager.addEventListener(google.ima.AdEvent.Type[e],(function(e){return r.onAdEvent(e)}))})),r.trigger("loaded")}})),e(this,"addCuePoints",(function(){K(r.cuePoints)||r.cuePoints.forEach((function(e){if(0!==e&&-1!==e&&e<r.player.duration){var t=r.player.elements.progress;if(W(t)){var i=100/r.player.duration*e,n=ne("span",{class:r.player.config.classNames.cues});n.style.left="".concat(i.toString(),"%"),t.appendChild(n)}}}))})),e(this,"onAdEvent",(function(e){var t=r.player.elements.container,i=e.getAd(),n=e.getAdData();switch(function(e){Te.call(r.player,r.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:r.trigger("loaded"),r.pollCountdown(!0),i.isLinear()||(i.width=t.offsetWidth,i.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:r.manager.setVolume(r.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:r.player.ended?r.loadAds():r.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:r.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:r.pollCountdown(),r.resumeContent();break;case google.ima.AdEvent.Type.LOG:n.adError&&r.player.debug.warn("Non-fatal ad error: ".concat(n.adError.getMessage()))}})),e(this,"onAdError",(function(e){r.cancel(),r.player.debug.warn("Ads error",e)})),e(this,"listeners",(function(){var e,t=r.player.elements.container;r.player.on("canplay",(function(){r.addCuePoints()})),r.player.on("ended",(function(){r.loader.contentComplete()})),r.player.on("timeupdate",(function(){e=r.player.currentTime})),r.player.on("seeked",(function(){var t=r.player.currentTime;K(r.cuePoints)||r.cuePoints.forEach((function(i,n){e<i&&i<t&&(r.manager.discardAdBreak(),r.cuePoints.splice(n,1))}))})),window.addEventListener("resize",(function(){r.manager&&r.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)}))})),e(this,"play",(function(){var e=r.player.elements.container;r.managerPromise||r.resumeContent(),r.managerPromise.then((function(){r.manager.setVolume(r.player.volume),r.elements.displayContainer.initialize();try{r.initialized||(r.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),r.manager.start()),r.initialized=!0}catch(e){r.onAdError(e)}})).catch((function(){}))})),e(this,"resumeContent",(function(){r.elements.container.style.zIndex="",r.playing=!1,Ce(r.player.media.play())})),e(this,"pauseContent",(function(){r.elements.container.style.zIndex=3,r.playing=!0,r.player.media.pause()})),e(this,"cancel",(function(){r.initialized&&r.resumeContent(),r.trigger("error"),r.loadAds()})),e(this,"loadAds",(function(){r.managerPromise.then((function(){r.manager&&r.manager.destroy(),r.managerPromise=new Promise((function(e){r.on("loaded",e),r.player.debug.log(r.manager)})),r.initialized=!1,r.requestAds()})).catch((function(){}))})),e(this,"trigger",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];var o=r.events[e];H(o)&&o.forEach((function(e){B(e)&&e.apply(r,i)}))})),e(this,"on",(function(e,t){return H(r.events[e])||(r.events[e]=[]),r.events[e].push(t),r})),e(this,"startSafetyTimer",(function(e,t){r.player.debug.log("Safety timer invoked from: ".concat(t)),r.safetyTimer=setTimeout((function(){r.cancel(),r.clearSafetyTimer("startSafetyTimer()")}),e)})),e(this,"clearSafetyTimer",(function(e){R(r.safetyTimer)||(r.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(r.safetyTimer),r.safetyTimer=null)})),this.player=i,this.config=i.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){r.on("loaded",e),r.on("error",t)})),this.load()}return(0,v.Z)(t,[{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!K(e.publisherId)||Y(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;return Y(e.tagUrl)?e.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(Xe({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId}))}}]),t}();function mt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(e,t),i)}var bt,_t=function(e){var t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(e){var i={};e.split(/\r\n|\n|\r/).forEach((function(e){if(D(i.startTime)){if(!K(e.trim())&&K(i.text)){var t,r,n,o=e.trim().split("#xywh=");t=(0,g.Z)(o,1),i.text=t[0],o[1]&&(r=o[1].split(","),n=(0,g.Z)(r,4),i.x=n[0],i.y=n[1],i.w=n[2],i.h=n[3])}}else{var a=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);a&&(i.startTime=60*Number(a[1]||0)*60+60*Number(a[2])+Number(a[3])+Number("0.".concat(a[4])),i.endTime=60*Number(a[6]||0)*60+60*Number(a[7])+Number(a[8])+Number("0.".concat(a[9])))}})),i.text&&t.push(i)})),t},wt=function(e,t){var i={};return e>t.width/t.height?(i.width=t.width,i.height=1/e*t.width):(i.height=t.height,i.width=e*t.height),i},kt=function(){function t(i){var r=this;(0,y.Z)(this,t),e(this,"load",(function(){r.player.elements.display.seekTooltip&&(r.player.elements.display.seekTooltip.hidden=r.enabled),r.enabled&&r.getThumbnails().then((function(){r.enabled&&(r.render(),r.determineContainerAutoSizing(),r.loaded=!0)}))})),e(this,"getThumbnails",(function(){return new Promise((function(e){var t=r.player.config.previewThumbnails.src;if(K(t))throw new Error("Missing previewThumbnails.src config attribute");var i=function(){r.thumbnails.sort((function(e,t){return e.height-t.height})),r.player.debug.log("Preview thumbnails",r.thumbnails),e()};if(B(t))t((function(e){r.thumbnails=e,i()}));else{var n=(F(t)?[t]:t).map((function(e){return r.getThumbnail(e)}));Promise.all(n).then(i)}}))})),e(this,"getThumbnail",(function(e){return new Promise((function(t){We(e).then((function(i){var n={frames:_t(i),height:null,urlPrefix:""};n.frames[0].text.startsWith("/")||n.frames[0].text.startsWith("http://")||n.frames[0].text.startsWith("https://")||(n.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var o=new Image;o.onload=function(){n.height=o.naturalHeight,n.width=o.naturalWidth,r.thumbnails.push(n),t()},o.src=n.urlPrefix+n.frames[0].text}))}))})),e(this,"startMove",(function(e){if(r.loaded&&U(e)&&["touchmove","mousemove"].includes(e.type)&&r.player.media.duration){if("touchmove"===e.type)r.seekTime=r.player.media.duration*(r.player.elements.inputs.seek.value/100);else{var t,i,n=r.player.elements.progress.getBoundingClientRect(),o=100/n.width*(e.pageX-n.left);r.seekTime=r.player.media.duration*(o/100),r.seekTime<0&&(r.seekTime=0),r.seekTime>r.player.media.duration-1&&(r.seekTime=r.player.media.duration-1),r.mousePosX=e.pageX,r.elements.thumb.time.innerText=Qe(r.seekTime);var a=null===(t=r.player.config.markers)||void 0===t||null===(i=t.points)||void 0===i?void 0:i.find((function(e){return e.time===Math.round(r.seekTime)}));a&&r.elements.thumb.time.insertAdjacentHTML("afterbegin","".concat(a.label,"<br>"))}r.showImageAtCurrentTime()}})),e(this,"endMove",(function(){r.toggleThumbContainer(!1,!0)})),e(this,"startScrubbing",(function(e){(R(e.button)||!1===e.button||0===e.button)&&(r.mouseDown=!0,r.player.media.duration&&(r.toggleScrubbingContainer(!0),r.toggleThumbContainer(!1,!0),r.showImageAtCurrentTime()))})),e(this,"endScrubbing",(function(){r.mouseDown=!1,Math.ceil(r.lastTime)===Math.ceil(r.player.media.currentTime)?r.toggleScrubbingContainer(!1):xe.call(r.player,r.player.media,"timeupdate",(function(){r.mouseDown||r.toggleScrubbingContainer(!1)}))})),e(this,"listeners",(function(){r.player.on("play",(function(){r.toggleThumbContainer(!1,!0)})),r.player.on("seeked",(function(){r.toggleThumbContainer(!1)})),r.player.on("timeupdate",(function(){r.lastTime=r.player.media.currentTime}))})),e(this,"render",(function(){r.elements.thumb.container=ne("div",{class:r.player.config.classNames.previewThumbnails.thumbContainer}),r.elements.thumb.imageContainer=ne("div",{class:r.player.config.classNames.previewThumbnails.imageContainer}),r.elements.thumb.container.appendChild(r.elements.thumb.imageContainer);var e=ne("div",{class:r.player.config.classNames.previewThumbnails.timeContainer});r.elements.thumb.time=ne("span",{},"00:00"),e.appendChild(r.elements.thumb.time),r.elements.thumb.imageContainer.appendChild(e),W(r.player.elements.progress)&&r.player.elements.progress.appendChild(r.elements.thumb.container),r.elements.scrubbing.container=ne("div",{class:r.player.config.classNames.previewThumbnails.scrubbingContainer}),r.player.elements.wrapper.appendChild(r.elements.scrubbing.container)})),e(this,"destroy",(function(){r.elements.thumb.container&&r.elements.thumb.container.remove(),r.elements.scrubbing.container&&r.elements.scrubbing.container.remove()})),e(this,"showImageAtCurrentTime",(function(){r.mouseDown?r.setScrubbingContainerSize():r.setThumbContainerSizeAndPos();var e=r.thumbnails[0].frames.findIndex((function(e){return r.seekTime>=e.startTime&&r.seekTime<=e.endTime})),t=e>=0,i=0;r.mouseDown||r.toggleThumbContainer(t),t&&(r.thumbnails.forEach((function(t,n){r.loadedImages.includes(t.frames[e].text)&&(i=n)})),e!==r.showingThumb&&(r.showingThumb=e,r.loadImage(i)))})),e(this,"loadImage",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=r.showingThumb,i=r.thumbnails[e],n=i.urlPrefix,o=i.frames[t],a=i.frames[t].text,l=n+a;if(r.currentImageElement&&r.currentImageElement.dataset.filename===a)r.showImage(r.currentImageElement,o,e,t,a,!1),r.currentImageElement.dataset.index=t,r.removeOldImages(r.currentImageElement);else{r.loadingImage&&r.usingSprites&&(r.loadingImage.onload=null);var s=new Image;s.src=l,s.dataset.index=t,s.dataset.filename=a,r.showingThumbFilename=a,r.player.debug.log("Loading image: ".concat(l)),s.onload=function(){return r.showImage(s,o,e,t,a,!0)},r.loadingImage=s,r.removeOldImages(s)}})),e(this,"showImage",(function(e,t,i,n,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];r.player.debug.log("Showing thumb: ".concat(o,". num: ").concat(n,". qual: ").concat(i,". newimg: ").concat(a)),r.setImageSizeAndOffset(e,t),a&&(r.currentImageContainer.appendChild(e),r.currentImageElement=e,r.loadedImages.includes(o)||r.loadedImages.push(o)),r.preloadNearby(n,!0).then(r.preloadNearby(n,!1)).then(r.getHigherQuality(i,e,t,o))})),e(this,"removeOldImages",(function(e){Array.from(r.currentImageContainer.children).forEach((function(t){if("img"===t.tagName.toLowerCase()){var i=r.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;var n=r.currentImageContainer;setTimeout((function(){n.removeChild(t),r.player.debug.log("Removing thumb: ".concat(t.dataset.filename))}),i)}}}))})),e(this,"preloadNearby",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(i){setTimeout((function(){var n=r.thumbnails[0].frames[e].text;if(r.showingThumbFilename===n){var o;o=t?r.thumbnails[0].frames.slice(e):r.thumbnails[0].frames.slice(0,e).reverse();var a=!1;o.forEach((function(e){var t=e.text;if(t!==n&&!r.loadedImages.includes(t)){a=!0,r.player.debug.log("Preloading thumb filename: ".concat(t));var o=r.thumbnails[0].urlPrefix+t,l=new Image;l.src=o,l.onload=function(){r.player.debug.log("Preloaded thumb filename: ".concat(t)),r.loadedImages.includes(t)||r.loadedImages.push(t),i()}}})),a||i()}}),300)}))})),e(this,"getHigherQuality",(function(e,t,i,n){if(e<r.thumbnails.length-1){var o=t.naturalHeight;r.usingSprites&&(o=i.h),o<r.thumbContainerHeight&&setTimeout((function(){r.showingThumbFilename===n&&(r.player.debug.log("Showing higher quality thumb for: ".concat(n)),r.loadImage(e+1))}),300)}})),e(this,"toggleThumbContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=r.player.config.classNames.previewThumbnails.thumbContainerShown;r.elements.thumb.container.classList.toggle(i,e),!e&&t&&(r.showingThumb=null,r.showingThumbFilename=null)})),e(this,"toggleScrubbingContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=r.player.config.classNames.previewThumbnails.scrubbingContainerShown;r.elements.scrubbing.container.classList.toggle(t,e),e||(r.showingThumb=null,r.showingThumbFilename=null)})),e(this,"determineContainerAutoSizing",(function(){(r.elements.thumb.imageContainer.clientHeight>20||r.elements.thumb.imageContainer.clientWidth>20)&&(r.sizeSpecifiedInCSS=!0)})),e(this,"setThumbContainerSizeAndPos",(function(){var e=r.elements.thumb.imageContainer;if(r.sizeSpecifiedInCSS){if(e.clientHeight>20&&e.clientWidth<20){var t=Math.floor(e.clientHeight*r.thumbAspectRatio);e.style.width="".concat(t,"px")}else if(e.clientHeight<20&&e.clientWidth>20){var i=Math.floor(e.clientWidth/r.thumbAspectRatio);e.style.height="".concat(i,"px")}}else{var n=Math.floor(r.thumbContainerHeight*r.thumbAspectRatio);e.style.height="".concat(r.thumbContainerHeight,"px"),e.style.width="".concat(n,"px")}r.setThumbContainerPos()})),e(this,"setThumbContainerPos",(function(){var e=r.player.elements.progress.getBoundingClientRect(),t=r.player.elements.container.getBoundingClientRect(),i=r.elements.thumb.container,n=t.left-e.left+10,o=t.right-e.left-i.clientWidth-10,a=r.mousePosX-e.left-i.clientWidth/2,l=mt(a,n,o);i.style.left="".concat(l,"px"),i.style.setProperty("--preview-arrow-offset",a-l+"px")})),e(this,"setScrubbingContainerSize",(function(){var e=wt(r.thumbAspectRatio,{width:r.player.media.clientWidth,height:r.player.media.clientHeight}),t=e.width,i=e.height;r.elements.scrubbing.container.style.width="".concat(t,"px"),r.elements.scrubbing.container.style.height="".concat(i,"px")})),e(this,"setImageSizeAndOffset",(function(e,t){if(r.usingSprites){var i=r.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*i+"px",e.style.width=e.naturalWidth*i+"px",e.style.left="-".concat(t.x*i,"px"),e.style.top="-".concat(t.y*i,"px")}})),this.player=i,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return(0,v.Z)(t,[{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?wt(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}}]),t}(),xt={insertElements:function(e,t){var i=this;F(t)?oe(e,this.media,{src:t}):H(t)&&t.forEach((function(t){oe(e,i.media,t)}))},change:function(e){var t=this;ee(e,"sources.length")?(Re.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],ae(t.media),t.media=null,W(t.elements.container)&&t.elements.container.removeAttribute("class");var i=e.sources,r=e.type,n=(0,g.Z)(i,1)[0],o=n.provider,a=void 0===o?tt.html5:o,l=n.src,s="html5"===a?r:"div",c="html5"===a?{}:{src:l};Object.assign(t,{provider:a,type:r,supported:me.check(r,a,t.config.playsinline),media:ne(s,c)}),t.elements.container.appendChild(t.media),V(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),K(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","")),lt.addStyleHook.call(t),t.isHTML5&&xt.insertElements.call(t,"source",i),t.config.title=e.title,vt.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&xt.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&<.build.call(t),t.isHTML5&&t.media.load(),K(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")}},Tt=function(){function t(i,r){var n=this;if((0,y.Z)(this,t),e(this,"play",(function(){return B(n.media.play)?(n.ads&&n.ads.enabled&&n.ads.managerPromise.then((function(){return n.ads.play()})).catch((function(){return Ce(n.media.play())})),n.media.play()):null})),e(this,"pause",(function(){return n.playing&&B(n.media.pause)?n.media.pause():null})),e(this,"togglePlay",(function(e){return(V(e)?e:!n.playing)?n.play():n.pause()})),e(this,"stop",(function(){n.isHTML5?(n.pause(),n.restart()):B(n.media.stop)&&n.media.stop()})),e(this,"restart",(function(){n.currentTime=0})),e(this,"rewind",(function(e){n.currentTime-=D(e)?e:n.config.seekTime})),e(this,"forward",(function(e){n.currentTime+=D(e)?e:n.config.seekTime})),e(this,"increaseVolume",(function(e){var t=n.media.muted?0:n.volume;n.volume=t+(D(e)?e:0)})),e(this,"decreaseVolume",(function(e){n.increaseVolume(-e)})),e(this,"airplay",(function(){me.airplay&&n.media.webkitShowPlaybackTargetPicker()})),e(this,"toggleControls",(function(e){if(n.supported.ui&&!n.isAudio){var t=pe(n.elements.container,n.config.classNames.hideControls),i=void 0===e?void 0:!e,r=de(n.elements.container,n.config.classNames.hideControls,i);if(r&&H(n.config.controls)&&n.config.controls.includes("settings")&&!K(n.config.settings)&&Ye.toggleMenu.call(n,!1),r!==t){var o=r?"controlshidden":"controlsshown";Te.call(n,n.media,o)}return!r}return!1})),e(this,"on",(function(e,t){we.call(n,n.elements.container,e,t)})),e(this,"once",(function(e,t){xe.call(n,n.elements.container,e,t)})),e(this,"off",(function(e,t){ke(n.elements.container,e,t)})),e(this,"destroy",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n.ready){var i=function(){document.body.style.overflow="",n.embed=null,t?(Object.keys(n.elements).length&&(ae(n.elements.buttons.play),ae(n.elements.captions),ae(n.elements.controls),ae(n.elements.wrapper),n.elements.buttons.play=null,n.elements.captions=null,n.elements.controls=null,n.elements.wrapper=null),B(e)&&e()):(Pe.call(n),Re.cancelRequests.call(n),se(n.elements.original,n.elements.container),Te.call(n,n.elements.original,"destroyed",!0),B(e)&&e.call(n.elements.original),n.ready=!1,setTimeout((function(){n.elements=null,n.media=null}),200))};n.stop(),clearTimeout(n.timers.loading),clearTimeout(n.timers.controls),clearTimeout(n.timers.resized),n.isHTML5?(lt.toggleNativeControls.call(n,!0),i()):n.isYouTube?(clearInterval(n.timers.buffering),clearInterval(n.timers.playing),null!==n.embed&&B(n.embed.destroy)&&n.embed.destroy(),i()):n.isVimeo&&(null!==n.embed&&n.embed.unload().then(i),setTimeout(i,200))}})),e(this,"supports",(function(e){return me.mime.call(n,e)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=me.touch,this.media=i,F(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||q(this.media)||H(this.media))&&(this.media=this.media[0]),this.config=te({},Ge,t.defaults,r||{},function(){try{return JSON.parse(n.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new nt(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",me),!R(this.media)&&W(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(me.check().api){var o=this.media.cloneNode(!0);o.autoplay=!1,this.elements.original=o;var a=this.media.tagName.toLowerCase(),l=null,s=null;switch(a){case"div":if(l=this.media.querySelector("iframe"),W(l)){if(s=Ke(l.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?tt.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?tt.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(K(this.provider)||!Object.values(tt).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=it;break;case"video":case"audio":this.type=a,this.provider=tt.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=me.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new st(this),this.storage=new qe(this),this.media.plyr=this,W(this.elements.container)||(this.elements.container=ne("div",{tabindex:0}),ie(this.media,this.elements.container)),lt.migrateStyles.call(this),lt.addStyleHook.call(this),vt.setup.call(this),this.config.debug&&we.call(this,this.elements.container,this.config.events.join(" "),(function(e){n.debug.log("event: ".concat(e.type))})),this.fullscreen=new ot(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&<.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new gt(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Ce(n.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(0,v.Z)(t,[{key:"isHTML5",get:function(){return this.provider===tt.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===tt.youtube}},{key:"isVimeo",get:function(){return this.provider===tt.vimeo}},{key:"isVideo",get:function(){return this.type===it}},{key:"isAudio",get:function(){return"audio"===this.type}},{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=D(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 D(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,i=D(t)&&t!==1/0?t:0;return e||i}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(e){var t=e;F(t)&&(t=Number(t)),D(t)||(t=this.storage.get("volume")),D(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!K(e)&&this.muted&&t>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(e){var t=e;V(t)||(t=this.storage.get("muted")),V(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,i=null;D(e)&&(i=e),D(i)||(i=this.storage.get("speed")),D(i)||(i=this.config.speed.selected);var r=this.minimumSpeed,n=this.maximumSpeed;i=mt(i,r,n),this.config.speed.selected=i,setTimeout((function(){t.media&&(t.media.playbackRate=i)}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,(0,f.Z)(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,(0,f.Z)(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(e){var t=this.config.quality,i=this.options.quality;if(i.length){var r=[!K(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(D),n=!0;if(!i.includes(r)){var o=Ee(i,r);this.debug.warn("Unsupported quality option: ".concat(r,", using ").concat(o," instead")),r=o,n=!1}t.selected=r,this.media.quality=r,n&&this.storage.set({quality:r})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(e){var t=V(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){xt.change.call(this,e)}},{key:"download",get:function(){var e=this.config.urls.download;return Y(e)?e:this.source},set:function(e){Y(e)&&(this.config.urls.download=e,Ye.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?lt.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=Oe(ze.call(this));return H(e)?e.join(":"):e},set:function(e){this.isVideo?F(e)&&Ie(e)?(this.config.ratio=Oe(e),je.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=V(e)?e:this.config.autoplay}},{key:"toggleCaptions",value:function(e){Je.toggle.call(this,e,!1)}},{key:"currentTrack",get:function(){var e=this.captions,t=e.toggled,i=e.currentTrack;return t?i:-1},set:function(e){Je.set.call(this,e,!1),Je.setup.call(this)}},{key:"language",get:function(){return(Je.getCurrentTrack.call(this)||{}).language},set:function(e){Je.setLanguage.call(this,e,!1)}},{key:"pip",get:function(){return me.pip?K(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===et:null},set:function(e){if(me.pip){var t=V(e)?e:!this.pip;B(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?et:"inline"),B(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,i){return me.check(e,t,i)}},{key:"loadSprite",value:function(e,t){return Ue(e,t)}},{key:"setup",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return F(e)?r=Array.from(document.querySelectorAll(e)):q(e)?r=Array.from(e):H(e)&&(r=e.filter(W)),K(r)?null:r.map((function(e){return new t(e,i)}))}}]),t}();return Tt.defaults=(bt=Ge,JSON.parse(JSON.stringify(bt))),Tt}());var M=L.exports;function I(e){e.on("timeupdate",(function(){return function(e){var t,i;null!=e&&null!==(t=e.config)&&void 0!==t&&null!==(i=t.mutedPreview)&&void 0!==i&&i.enabled||function(e){var t;0!==e.currentTime&&null!=e&&null!==(t=e.config)&&void 0!==t&&t.save_player_position&&localStorage.setItem("player-progress-".concat(O(e)),e.currentTime)}(e)}(e)})),e.on("ready",(function(){return z(e)})),e.on("loadeddata",(function(){return z(e)})),e.on("ended",(function(){return function(e){localStorage.removeItem("player-progress-".concat(O(e)))}(e)}))}function O(e){var t,i;return null==e||null===(t=e.config)||void 0===t||null===(i=t.blockAttributes)||void 0===i?void 0:i.id}function z(e){var t,i,r;if(null!=e&&null!==(t=e.config)&&void 0!==t&&t.save_player_position&&(null==e||null===(i=e.config)||void 0===i||null===(r=i.mutedPreview)||void 0===r||!r.enabled)){var n=function(e){return parseFloat(localStorage.getItem("player-progress-".concat(O(e))))}(e);return e.hls&&n>=0&&e.hls.startLoad(n),e.duration&&(n=Math.min(n,e.duration)),!n||n<1?0:(e.currentTime=n,null!=e&&e.isVimeo&&setTimeout((function(){e.embed.setCurrentTime(n||0)}),0),n)}}var j,N=(null===(r=window)||void 0===r||null===(n=r.prestoPlayer)||void 0===n||null===(o=n.i18n)||void 0===o?void 0:o.hide_chapters)||"Hide Chapters",R=(null===(a=window)||void 0===a||null===(l=a.prestoPlayer)||void 0===l||null===(s=l.i18n)||void 0===s?void 0:s.show_chapters)||"Show Chapters",Z='<button class="plyr__controls__item plyr__control" type="button" data-plyr="chapters">\n<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-list">\n <line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line>\n <line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line>\n <line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>\n</svg>\n<span class="label--pressed plyr__tooltip" role="tooltip">'.concat(N,'</span>\n<span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(R,"</span>\n</button>\n"),D='\n<div class="presto-player-toc__wrapper">\n <div class="presto-player-toc__cover" data-player-toc-cover></div>\n <div class="presto-player-toc">\n <div class="presto-player-toc__title">'.concat((null===(c=window)||void 0===c||null===(u=c.prestoPlayer)||void 0===u||null===(d=u.i18n)||void 0===d?void 0:d.chapters)||"Chapters",'</div>\n <div class="presto-player-toc__list" data-player-toc></div>\n </div>\n</div>');function F(e){var t,i,r,n,o,a,l,s,c,u,d,p,h,y=0,v={},g={},m=null,_=0;if("undefined"!=typeof jQuery)if(n=e.detail.plyr,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e.length)return e;var t={};return e.forEach((function(e){var i,r=e.time.split(":");r.length>1&&(i=60*parseInt(r[0]));var n=parseInt(r[1])+parseInt(i);t[n]=e})),t}((null===(t=n)||void 0===t||null===(i=t.config)||void 0===i?void 0:i.chapters)||[]),"html5"!==n.provider||n.duration){if(r&&Object.keys(r).length){o=jQuery(n.elements.container).closest(".presto-player__wrapper").find(".plyr");var w=(h=jQuery(n.elements.controls)).find(".plyr__time");w=w.length?w:h.find(".plyr__progress__container"),(c=o.find('[data-plyr="chapters"]')).length||(c=jQuery(Z).insertAfter(w)),(l=o.find(".presto-player-toc__wrapper")).length||(l=jQuery(D).appendTo(o)),u=l.find("[data-player-toc-cover]"),s=l.find("[data-player-toc]"),a=o.find(".plyr__progress__container");var k,x=jQuery('<div class="presto-player__chapters"></div>').appendTo(a);d=jQuery('<div class="presto-player__chapter-markers"></div>').appendTo(x),k=0,s.find(".presto-player-toc__chapter").length||(Object.keys(r).forEach((function(e){k++;var t=r[e],i=jQuery(function(e){var t=e.name,i=void 0===t?"Untitled":t,r=e.order,n=void 0===r?1:r,o=e.highlight;return'<div class="presto-player-toc__chapter '.concat(void 0!==o&&o?"is-highlighted":"",'" data-chapter-item>\n \n <span class="presto-player-toc__order">\n ').concat(n,'\n </span>\n <span class="presto-player-toc__name">\n ').concat(i,"\n </div>\n</div>")}({name:t.title,order:k})).appendTo(s);i.data("presto-player-timestamp",e),v[e]=i,i.on("click",(function(){n.currentTime=parseFloat(e),n.playing||(n.play(),n.once("playing",(function(){setTimeout((function(){n.pause()}),50)}))),S(!1)}))})),p=l.find("[data-chapter-item]")),P(),c.off("click"),c.on("click",S),T(),n.off("timeupdate"),n.on("timeupdate",T),m=window.setInterval((function(){_++,n.duration&&(P(),window.clearInterval(m)),_>50&&window.clearInterval(m)}),100),u.off("click"),u.on("click",(function(){return S(!1)})),s.off("mouseleave"),s.on("mouseleave",(function e(){if(n.playing){var t=setTimeout((function(){S(!1),s.off("mouseleave",e)}),2e3);s.on("mouseenter",(function(){clearTimeout(t)}))}}))}}else n.on("loadedmetadata",F);function T(){y=n.currentTime;var e=Object.keys(r).filter((function(e){return e<=y})).map((function(e){return parseInt(e,10)})),t=Math.max.apply(Math,(0,f.Z)(e));p&&p.removeClass("is-highlighted"),jQuery(v[t||0]).addClass("is-highlighted")}function P(){n.duration&&(Object.keys(r).forEach((function(e){if(parseInt(e)&&!d.find("[data-timestamp=".concat(e,"]")).length){var t=r[e],i=parseInt(e)/n.duration*100,o=jQuery((a={position:i,name:"".concat(t.title)},l=a.position,s=a.name,c=void 0===s?"":s,'<div class="presto-player-progress__marker plyr__controls__item plyr__control" style="left: '.concat(void 0===l?0:l,'%" data-timeline-marker>\n <span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(c,"</span>\n </div>"))).prependTo(d);o.attr("data-timestamp",e),o.data("timestamp",e),g[e]=o,o.on("click",(function(t){n.currentTime=parseInt(e),n.play()}))}var a,l,s,c})),l.find("[data-timeline-marker]"))}function S(e){void 0!==(0,b.Z)(e)?l.toggleClass("is-showing",e):l.toggleClass("is-showing")}}function V(e){"undefined"!=typeof jQuery&&(j=e,jQuery(j.elements.container).closest(".presto-player__wrapper"),j.on("ready",F),j.on("controlshidden",B),j.on("controlsshown",H))}function B(e){var t,i,r;"undefined"!=typeof jQuery&&jQuery(null==e||null===(t=e.detail)||void 0===t||null===(i=t.plyr)||void 0===i||null===(r=i.elements)||void 0===r?void 0:r.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}function H(e){var t,i,r;"undefined"!=typeof jQuery&&jQuery(null==e||null===(t=e.detail)||void 0===t||null===(i=t.plyr)||void 0===i||null===(r=i.elements)||void 0===r?void 0:r.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}function q(e){var t,i;return A(A(A({video_current_time:parseInt((null==e?void 0:e.currentTime)||0),video_provider:(null==e?void 0:e.provider)||"html5"},null!=e&&e.duration?{video_duration:parseInt(null==e?void 0:e.duration)}:{}),null!=e&&e.source?{video_url:null==e?void 0:e.source}:{}),null!=e&&null!==(t=e.config)&&void 0!==t&&t.title?{video_title:null==e||null===(i=e.config)||void 0===i?void 0:i.title}:{})}function W(e){var t,i;null!=e&&null!==(t=e.config)&&void 0!==t&&t.hasPlayed||(e.config.hasPlayed=!0,null===(i=window)||void 0===i||i.gtag("event","Play",q(e)))}function U(e){var t;null===(t=window)||void 0===t||t.gtag("event","Pause",q(e))}function $(e){var t,i;null!=e&&null!==(t=e.config)&&void 0!==t&&t.hasLoaded||(e.config.hasLoaded=!0,null===(i=window)||void 0===i||i.gtag("event","Player Load",q(e)))}var Q,Y={25:!1,50:!1,75:!1,100:!1};function K(e){if(e.currentTime){var t=parseFloat(e.currentTime)/parseFloat(e.duration)*100;Object.keys(Y).forEach((function(i){var r;!Y[i]&&t>=parseInt(i)&&(Y[i]=!0,null===(r=window)||void 0===r||r.gtag("event","".concat(i," Percent Played"),q(e)))}))}}var X="presto-player.analytics",J="",G=0;function ee(e){var t,i;(Q=e).config.analytics&&null!==(t=window)&&void 0!==t&&null!==(i=t.wp)&&void 0!==i&&i.hooks&&(wp.hooks.hasAction("presto.nonceRefreshed",X)||wp.hooks.addAction("presto.nonceRefreshed",X,(function(e){J=e})),wp.hooks.hasAction("presto.playerPlay",X)||wp.hooks.addAction("presto.playerPlay",X,te),wp.hooks.hasAction("presto.playerEnded",X)||wp.hooks.addAction("presto.playerEnded",X,te),wp.hooks.hasAction("presto.playerHidden",X)||wp.hooks.addAction("presto.playerHidden",X,te),wp.hooks.hasAction("presto.playerPause",X)||wp.hooks.addAction("presto.playerPause",X,te),wp.hooks.hasAction("presto.playerSeeked",X)||wp.hooks.addAction("presto.playerSeeked",X,te))}function te(e){isNaN(null==e?void 0:e.currentTime)||ie(function(e){var t,i;return e.currentTime>G&&(G=e.currentTime),e.currentTime>=e.duration&&(G=e.duration),A(A(A({video_current_time:parseInt(G),video_provider:(null==e?void 0:e.provider)||"html5"},null!=e&&e.duration?{video_duration:parseInt(null==e?void 0:e.duration)}:{}),null!=e&&e.source?{video_url:null==e?void 0:e.source}:{}),null!=e&&null!==(t=e.config)&&void 0!==t&&t.title?{video_title:null==e||null===(i=e.config)||void 0===i?void 0:i.title}:{})}(e))}function ie(e){var t,i,r,n,o,a,l,s;if(J){var c,u,d=new FormData;d.append("action","presto_player_progress"),d.append("duration",null==e?void 0:e.video_current_time),d.append("video_id",null===(t=Q)||void 0===t||null===(i=t.config)||void 0===i?void 0:i.id),d.append("nonce",J),null!==(r=window)&&void 0!==r&&null!==(n=r.prestoPlayer)&&void 0!==n&&n.debug_navigator?"undefined"!=typeof jQuery&&jQuery.ajax({type:"POST",url:null===(o=window)||void 0===o||null===(a=o.prestoPlayer)||void 0===a?void 0:a.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress",duration:null==e?void 0:e.video_current_time,video_id:null===(l=Q)||void 0===l||null===(s=l.config)||void 0===s?void 0:s.id,nonce:J}}):navigator.sendBeacon(null===(c=window)||void 0===c||null===(u=c.prestoPlayer)||void 0===u?void 0:u.ajaxurl,d)}}function re(e){var t,i,r;null!==(t=window)&&void 0!==t&&null!==(i=t.prestoPlayer)&&void 0!==i&&i.isPremium&&(null!==(r=window)&&void 0!==r&&r.gtag&&(wp.hooks.addAction("presto.playerPlay","presto-player",W),wp.hooks.addAction("presto.playerPause","presto-player",U),wp.hooks.addAction("presto.playerReady","presto-player",$),wp.hooks.addAction("presto.playerTimeUpdate","presto-player",K)),ee(e))}var ne=function(e){e.on("ready",(function(){var t,i,r,n;null==e||null===(t=e.config)||void 0===t||!t.logo||null!=e&&null!==(i=e.config)&&void 0!==i&&i.logo_added||"undefined"!=typeof jQuery&&(e.isAudio||(jQuery('<img src="'.concat(null==e||null===(r=e.config)||void 0===r?void 0:r.logo,'" class="presto-player__logo is-bottom-right" part="logo">')).insertBefore(null==e||null===(n=e.elements)||void 0===n?void 0:n.controls),e.config.logo_added=!0))}))};function oe(e){var t;null!=e&&null!==(t=e.config)&&void 0!==t&&t.poster&&(e.poster=e.config.poster)}var ae=function(e){var t,i;null!==(t=window)&&void 0!==t&&null!==(i=t.wp)&&void 0!==i&&i.hooks&&(e.on("ready",(function(){le("Ready",e)})),e.on("play",(function(){le("Play",e)})),e.on("playing",(function(){le("Playing",e)})),e.on("pause",(function(){le("Pause",e)})),e.on("ended",(function(){le("Ended",e)})),e.on("seeked",(function(){le("Seeked",e)})),e.on("timeupdate",(function(){le("TimeUpdate",e)})),e.on("enterfullscreen",(function(){le("EnterFullScreen",e)})),e.on("exitfullscreen",(function(){le("ExitFullScreen",e)})),document.addEventListener("visibilitychange",(function(){le("hidden"===document.visibilityState?"Hidden":"Visible",e)})),e.on("statechange",(function(t){var i;switch(null==t||null===(i=t.detail)||void 0===i?void 0:i.code){case 0:le("Ended",e);break;case 1:le("Play",e);break;case 2:le("Pause",e)}})))};function le(e,t){window.wp.hooks.doAction("presto.player".concat(e),t)}var se,ce="presto-player.progress",ue=Date.now(),de=function(e){var t,i;if(e.automations){(null===(i=null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.hooks)||void 0===i?void 0:i.hasAction("presto.nonceRefreshed",ce))||window.wp.hooks.addAction("presto.nonceRefreshed",ce,(function(e){se=e})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerTimeUpdate","presto-player",n),null===window||void 0===window||window.wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){return n(e,100)}));var r={0:!1,10:!1,20:!1,30:!1,40:!1,50:!1,60:!1,70:!1,80:!1,90:!1,100:!1}}function n(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;se&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.ajaxProgress)&&(i||(i=parseFloat(e.currentTime)/parseFloat(e.duration)*100),e.watched=e.watched||{},Object.keys(r).forEach((function(t){var r,n,o,a,l,s,c,u,d,p=parseInt(t);if(!e.watched[p]&&i>=p){e.watched[p]=!0;var h=new FormData;if(h.append("action","presto_player_progress_percent"),h.append("id",null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.id),h.append("percent",p.toString()),h.append("visit_time",ue.toString()),h.append("nonce",se),(null===(n=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===n?void 0:n.debug)&&console.log("".concat(p," percent watched.")),null===(o=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===o?void 0:o.debug_navigator)window.jQuery.ajax({type:"POST",url:null===(u=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===u?void 0:u.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress_percent",id:null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.id,visit_time:ue,percent:p,nonce:se}});else{var f=navigator.sendBeacon(null===(a=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===a?void 0:a.ajaxurl,h);(null===(l=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===l?void 0:l.debug)&&(f?console.log("Successfully queued progress:",{id:null===(s=null==e?void 0:e.config)||void 0===s?void 0:s.id,percent:p,visit_time:ue,nonce:se}):console.log("Failed to queue progress",{id:null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.id,percent:p,visit_time:ue,nonce:se}))}}})))}},pe=!1,he=!1;function fe(e){return e.status>=200&&e.status<300?Promise.resolve(e):Promise.reject(new Error(e.statusText))}var ye=function(e){var t,i;(e.config.analytics||e.config.automations)&&(null===(i=null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.hooks)||void 0===i||i.addAction("presto.playerPlaying","presto-player",(function(){null===window||void 0===window||window.wp.hooks.doAction("presto.playerGetNonce")})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerGetNonce","presto-player",(function(){var e;pe||he||(he=!0,fetch("".concat(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.ajaxurl,"?action=presto_refresh_progress_nonce")).then(fe).then((function(e){return e.json()})).then((function(e){var t=e.data;null===window||void 0===window||window.wp.hooks.doAction("presto.nonceRefreshed",t),pe=!0})).catch((function(e){console.log("Request failed",e)})).finally((function(){he=!1})))})))},ve=function(e){var t=window.navigator.userAgent;if(t.match(/iPad/i)||t.match(/iPhone/i)){var i=function(e,t){for(var i,r,n,o=null==e||null===(i=e.elements)||void 0===i||null===(r=i.container)||void 0===r||null===(n=r.getRootNode())||void 0===n?void 0:n.host;(null!=o?o.nodeType:void 0)===Node.ELEMENT_NODE&&"BODY"!==o.tagName&&"HTML"!==o.tagName;)t?o.classList.add("presto-player-fullscreen-open"):o.classList.remove("presto-player-fullscreen-open"),o=o.parentNode};wp.hooks.addAction("presto.playerEnterFullScreen","presto-player",(function(){var t;null!=e&&null!==(t=e.fullscreen)&&void 0!==t&&t.active&&i(e,!0)})),wp.hooks.addAction("presto.playerExitFullScreen","presto-player",(function(){var t;null!=e&&null!==(t=e.fullscreen)&&void 0!==t&&t.active||i(e,!1)}))}},ge=function(){var e=(0,p.Z)(w().mark((function e(t){var r,n,o,a,l,s,c,u;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof jQuery){e.next=2;break}return e.abrupt("return");case 2:if("ResizeObserver"in window!=0){e.next=7;break}return e.next=5,i.e(809).then(i.bind(i,4723));case 5:c=e.sent,window.ResizeObserver=c.ResizeObserver;case 7:if(u=new ResizeObserver((function(e){var t,i=P(e);try{for(i.s();!(t=i.n()).done;){var r=t.value,n=r.contentRect;jQuery(r.target).find(".plyr__menu__container").css({maxHeight:"".concat(Math.max(n.height-48,200),"px")})}}catch(e){i.e(e)}finally{i.f()}})),null!=t&&null!==(r=t.elements)&&void 0!==r&&null!==(n=r.container)&&void 0!==n&&null!==(o=n.getRootNode())&&void 0!==o&&o.firstChild){e.next=10;break}return e.abrupt("return");case 10:if(u.observe(null==t||null===(a=t.elements)||void 0===a||null===(l=a.container)||void 0===l||null===(s=l.getRootNode())||void 0===s?void 0:s.firstChild),t){e.next=13;break}return e.abrupt("return");case 13:t.on("playing",(function(){var e,i,r,n,o=null==t||null===(e=t.elements)||void 0===e||null===(i=e.container)||void 0===i?void 0:i.getRootNode().firstChild.getBoundingClientRect();jQuery(null==t||null===(r=t.elements)||void 0===r||null===(n=r.container)||void 0===n?void 0:n.getRootNode()).find(".plyr__menu__container").css({maxHeight:"".concat(Math.max(o.height-48,200),"px")})}));case 14:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}();function me(e){var t,r,n,o,a,l,s,c,u,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=(null===(t=window)||void 0===t||null===(r=t.parent)||void 0===r||null===(n=r.prestoPlayer)||void 0===n?void 0:n.plugin_url)||(null===(o=window)||void 0===o||null===(a=o.prestoPlayer)||void 0===a?void 0:a.plugin_url),f=A(A(A({},p),h?{iconUrl:"".concat(h,"img/")+"".concat(null!=p&&null!==(l=p.preset)&&void 0!==l&&l.skin?p.preset.skin:"default")+".svg"}:{}),{chapters:(null==p?void 0:p.chapters)||[],controls:(null==p?void 0:p.controls)||[],settings:Object.keys((null==p?void 0:p.settings)||{}).length?p.settings:{}}),y=new M(e,f);return"undefined"!=typeof learndash_video_data&&i.e(809).then(i.bind(i,5980)).then((function(e){(0,e.default)(y)})),"undefined"!=typeof _tutorobject&&i.e(809).then(i.bind(i,6578)).then((function(e){(0,e.default)(y)})),void 0!==window.llms&&!0===(null===(u=prestoPlayer)||void 0===u||null===(d=u.lifter)||void 0===d?void 0:d.isLesson)&&i.e(809).then(i.bind(i,9097)).then((function(e){(0,e.default)(y)})),ae(y),ve(y),ge(y),ne(y),oe(y),V(y),null!==(s=window)&&void 0!==s&&null!==(c=s.prestoPlayer)&&void 0!==c&&c.isAdmin||(ye(y),de(f),I(y),re(y)),y}var be=function(e){var t=e.config,r=e.selector,n=e.src,o=e.preload;return n&&(0,x.i)(n)?r&&r.canPlayType("application/vnd.apple.mpegurl")&&(0,x.a)()?_e({config:t,selector:r}):i.e(809).then(i.bind(i,2013)).then((function(e){return(0,e.default)({config:t,selector:r,src:n,preload:o})})):_e({config:t,selector:r})},_e=function(e){var t=e.config,i=e.selector;return new Promise((function(e){return e(new me(i,A({},t)))}))},we=function(e,t){if(t){var i=document.createElement("style");e.shadowRoot.append(i),i.appendChild(document.createTextNode(t))}},ke=function(){function e(t){(0,y.Z)(this,e),(0,k.r)(this,t),this.loaded=(0,k.c)(this,"loaded",7),this.currentMediaPlayer=(0,k.c)(this,"currentMediaPlayer",7),this.playerReady=(0,k.c)(this,"playerReady",7),this.playedMedia=(0,k.c)(this,"playedMedia",7),this.pausedMedia=(0,k.c)(this,"pausedMedia",7),this.endedMedia=(0,k.c)(this,"endedMedia",7),this.components={cta:null,email:null,overlays:null,search:null},this.video_id=void 0,this.iconUrl=void 0,this.src=void 0,this.bunny=void 0,this.branding=void 0,this.config=void 0,this.preset=void 0,this.chapters=void 0,this.overlays=void 0,this.blockAttributes=void 0,this.tracks=void 0,this.analytics=void 0,this.automations=void 0,this.provider=void 0,this.provider_video_id=void 0,this.actionBar=void 0,this.youtube=void 0,this.type=void 0,this.autoplay=void 0,this.preload=void 0,this.poster=void 0,this.playsinline=void 0,this.isAdmin=!1,this.direction=void 0,this.css=void 0,this.currentTime=void 0,this.mediaTitle=void 0,this.classes=void 0,this.videoAttributes=void 0,this.audioAttributes=void 0,this.search=void 0,this.markers=void 0,this.player=void 0,this.playerEl=void 0,this.shouldLazyLoad=void 0,this.mutedPreview=void 0,this.duration=void 0,this.isSticky=void 0,this.videoHeight=void 0,this.playClass=void 0,this.previouslyPlaying=!1,this.ctaActive=!1,this.emailActive=!1,this.actionBarActive=!1,this.ready=void 0}var t,i,r,n,o,a,l,s,c,u,d,h,g,m,b;return(0,v.Z)(e,[{key:"play",value:(b=(0,p.Z)(w().mark((function e(){var t,i=arguments;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=i.length>0&&void 0!==i[0]&&i[0],this.shouldLazyLoad=!1,t&&(this.mutedPreview=!1),this.player.play();case 4:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"goToAndPlay",value:(m=(0,p.Z)(w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.player.play(),this.player.currentTime=t;case 2:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"handleScroll",value:function(e){e.detail.id!==this.player.id&&(this.mutedPreview||this.pause())}},{key:"restart",value:(g=(0,p.Z)(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.shouldLazyLoad=!1,e.abrupt("return",this.player.restart());case 2:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"pause",value:(h=(0,p.Z)(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.pause());case 1:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"stop",value:(d=(0,p.Z)(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.stop());case 1:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"fullscreenToggle",value:(u=(0,p.Z)(w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.fullscreen.toggle(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"on",value:(c=(0,p.Z)(w().mark((function e(t,i){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.on(t,i));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"once",value:(s=(0,p.Z)(w().mark((function e(t,i){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.once(t,i));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"off",value:(l=(0,p.Z)(w().mark((function e(t,i){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.off(t,i));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"handleCurrentTimeChange",value:(a=(0,p.Z)(w().mark((function e(t){var i=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.player||!Number.isInteger(t)){e.next=7;break}if(this.player.duration&&(this.player.currentTime=Math.min(this.player.currentTime,this.player.duration)),!this.shouldLazyLoad){e.next=6;break}return this.shouldLazyLoad=!1,e.next=6,new Promise((function(e){setTimeout((0,p.Z)(w().mark((function t(){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.initialize();case 2:e();case 3:case"end":return t.stop()}}),t)}))),50)}));case 6:this.player.embed&&!this.player.playing?(this.player.currentTime=t,this.player.muted=!0,this.player.play(),this.player.once("timeupdate",(function(){i.player.pause(),i.player.currentTime=t,i.player.muted=!1}))):this.player.currentTime=t;case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"handleStickyChange",value:function(){var e=this;(0,x.g)(this.el).forEach((function(t){var i;null===(i=null==t?void 0:t.classList)||void 0===i||i.toggle("presto-sticky-parent",e.isSticky)}))}},{key:"getConfig",value:function(){return Object.assign(Object.assign(Object.assign({},function(e){var t,i,r,n=e.preset,o=void 0===n?{}:n,a=e.chapters,l=e.branding,s=e.src,c=e.analytics,u=e.automations,d=e.autoplay,p=e.blockAttributes,h=void 0===p?{}:p,y=e.provider,v=void 0===y?"":y,g=e.provider_video_id,m=void 0===g?"":g,b=e.youtube,_=e.type,w=e.i18n,k=e.storage,x=void 0===k?{enabled:!e.isAdmin,key:"presto-player-".concat(o.id)}:k,T=["settings"],P=(0,f.Z)(["youtube","vimeo"].includes(v)?["pip"]:[]),S=["play-large","rewind","play","fast-forward","progress","current-time","mute","volume","captions","settings","pip","fullscreen"].filter((function(e){return((null==o?void 0:o[e])||T.includes(e))&&!P.includes(e)})),C=Object.assign(Object.assign(Object.assign(Object.assign({id:null==h?void 0:h.id,title:(null==h?void 0:h.title)||"",blockAttributes:Object.assign(Object.assign({},h),{type:_}),src:s,ajaxProgress:!0,analytics:c,preset:o,automations:u,mutedPreview:{enabled:null===(t=null==h?void 0:h.mutedPreview)||void 0===t?void 0:t.enabled},loop:{active:"loop"===(null==o?void 0:o.on_video_end)},chapters:a,controls:S,settings:["captions","quality","loop"].concat((0,f.Z)((null==o?void 0:o.speed)?["speed"]:[])),hideControls:null==o?void 0:o.auto_hide,captions:{active:null==o?void 0:o.captions_enabled,language:"auto",update:!1},logo:null==l?void 0:l.logo,logo_width:null==l?void 0:l.logo_width,hide_logo:null==o?void 0:o.hide_logo,lazy_load_youtube:null==o?void 0:o.lazy_load_youtube,save_player_position:!!(null==o?void 0:o.save_player_position),sticky_scroll:null==o?void 0:o.sticky_scroll,play_video_viewport:null==o?void 0:o.play_video_viewport,autoplay:!(!d||(null===(i=window.wp)||void 0===i?void 0:i.blocks))},v?{provider:v}:{}),m?{provider_video_id:m}:{}),(null==h?void 0:h.poster)?{poster:h.poster}:{}),{invertTime:!(null==o?void 0:o.show_time_elapsed),storage:x,keyboard:{focused:!1,global:!1},resetOnEnd:!!(null==o?void 0:o.reset_on_end),vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,premium:!1,playsinline:!!(null==h?void 0:h.playsInline)},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!!(null==b?void 0:b.noCookie),playsinline:!!(null==h?void 0:h.playsInline)},tooltips:{controls:!0,seek:!0},i18n:w});return(null===(r=null===window||void 0===window?void 0:window.wp)||void 0===r?void 0:r.hooks)&&(C=window.wp.hooks.applyFilters("presto.playerSettings",C)),C}({preset:this.preset,chapters:this.chapters,branding:this.branding,analytics:!!this.analytics,automations:!!this.automations,autoplay:!this.isAdmin&&!!this.autoplay,blockAttributes:this.blockAttributes,provider:this.provider,youtube:this.youtube,provider_video_id:this.provider_video_id,i18n:this.i18n,search:this.search})),{markers:{enabled:!0,points:[]}}),this.iconUrl?{iconUrl:this.iconUrl}:{})}},{key:"getPlayerData",value:function(){return{selector:this.playerEl,src:this.src||"",preload:this.preload,provider:this.provider,config:this.getConfig(),isAdmin:this.isAdmin}}},{key:"createPlayer",value:(o=(0,p.Z)(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be(this.getPlayerData());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"handlePlayerElementChange",value:function(){var e;!function(e){var t=e.src,i=e.el,r=e.preload,n=e.currentTime;if((!i||!i.getAttribute("hls_loaded"))&&["metadata","none"].includes(r)&&(0,x.i)(t)){if(n>0)return i.style.height=null,i.style.paddingBottom=null,void i.setAttribute("hls_loaded","1");i.style.height="0px",i.style.paddingBottom="56.25%"}}({src:this.src,el:this.playerEl,preload:this.preload,currentTime:null===(e=null==this?void 0:this.player)||void 0===e?void 0:e.currentTime})}},{key:"handleMutedPreview",value:function(e,t){var i,r,n,o,a,l,s,c=this;this.player&&!this.isAdmin&&(!e&&t&&this.player.once("timeupdate",(function(){var e,t;c.player.loop="loop"===(null===(e=c.preset)||void 0===e?void 0:e.on_video_end),c.player.toggleCaptions(null===(t=null==c?void 0:c.preset)||void 0===t?void 0:t.captions_enabled)})),(null===(n=null===(r=null===(i=this.originalConfig)||void 0===i?void 0:i.blockAttributes)||void 0===r?void 0:r.mutedPreview)||void 0===n?void 0:n.enabled)&&function(e){var t=e.player,i=e.mutedPreview,r=e.captions,n=e.progress,o=e.savePosition,a=e.onPlay,l=window.navigator.userAgent;if(!l.match(/iPad/i)&&!l.match(/iPhone/i)){t.config.mutedPreview.enabled=i,t.muted=i,t.loop=i,t.config.ajaxProgress=!i&&n,t.config.save_player_position=!i&&o;try{t.toggleCaptions(!!i&&!!r)}catch(e){}return setTimeout((function(){z(t)||t.restart(),setTimeout((function(){t.muted=i,a()}),50)}),0),t}console.log("ios device, do not do muted autoplay")}({player:this.player,mutedPreview:this.mutedPreview,captions:!!(null===(a=null===(o=this.blockAttributes)||void 0===o?void 0:o.mutedPreview)||void 0===a?void 0:a.captions),progress:null===(l=this.originalConfig)||void 0===l?void 0:l.ajaxProgress,savePosition:null===(s=this.originalConfig)||void 0===s?void 0:s.save_player_position,onPlay:function(){return c.play()}}))}},{key:"onPlayerReady",value:function(){var e,t,i,r=this;this.observer&&(this.observer.disconnect(),this.observer.observe(this.el)),this.duration=this.player.duration;var n=window.navigator.userAgent;!!n.match(/iPad/i)||!!n.match(/iPhone/i)||(this.mutedPreview=null===(t=null===(e=this.blockAttributes)||void 0===e?void 0:e.mutedPreview)||void 0===t?void 0:t.enabled),this.renderDynamicOverlays(),this.renderVideoCTA(),this.renderEmailOverlay(),this.renderSearchBar(),this.player.on("timeupdate loadedmetadata",(function(){r.duration=r.player.duration,r.renderDynamicOverlays()})),(0,x.i)(this.src)&&this.player.once("playing",(function(){r.playerEl.style.height=null,r.playerEl.style.paddingBottom=null,r.playerEl.setAttribute("hls_loaded","1")})),this.player.on("playing",(function(){return r.playClass="presto-player--playing"})),this.player.on("pause",(function(){return r.playClass="presto-player--paused"})),this.player.on("ended",(function(){return r.playClass="presto-player--ended"})),this.player.on("playing",(function(e){return!r.mutedPreview&&r.currentMediaPlayer.emit(e.detail.plyr)})),this.player.on("playing",(function(e){return r.playedMedia.emit(e.detail.plyr)})),this.player.on("pause",(function(e){return r.pausedMedia.emit(e.detail.plyr)})),this.player.on("ended",(function(e){return r.endedMedia.emit(e.detail.plyr)})),"go-to-start"===(null===(i=this.preset)||void 0===i?void 0:i.on_video_end)&&this.player.on("ended",(function(){r.restart(),"youtube"===r.provider&&r.stop()})),(0,x.c)(this.player),setTimeout((function(){r.playerReady.emit(r.player),r.ready=!0}),100)}},{key:"handlePlayerEvents",value:function(e){var t=this;e.on("ready",(function(e){t.player=e.detail.plyr,t.onPlayerReady()}))}},{key:"handleLazyLoadChange",value:function(){var e=this;"youtube"!==this.provider||this.shouldLazyLoad||this.isAdmin||setTimeout((function(){e.onReload("play")}),50)}},{key:"shouldLazyLoadVideo",value:function(){var e,t,i;return"youtube"===this.provider&&!this.autoplay&&!(null===(t=null===(e=this.blockAttributes)||void 0===e?void 0:e.mutedPreview)||void 0===t?void 0:t.enabled)&&!!(null===(i=this.preset)||void 0===i?void 0:i.lazy_load_youtube)}},{key:"componentWillLoad",value:function(){var e,t,i,r=null===(e=this.el.children)||void 0===e?void 0:e[0];r&&r.classList&&r.classList.contains("presto-iframe-fallback-container")&&r.remove(),this.shouldLazyLoad=this.shouldLazyLoadVideo(),this.i18n=(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.i18n)||(null===(i=null===window||void 0===window?void 0:window.prestoPlayerAdmin)||void 0===i?void 0:i.i18n),this.originalConfig||(this.originalConfig=this.getConfig()),this.trackIntersection()}},{key:"componentDidLoad",value:(n=(0,p.Z)(w().mark((function e(){var t=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout((function(){t.initialize(),t.loaded.emit(!0)}),0);case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"initialize",value:(r=(0,p.Z)(w().mark((function e(){var t;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createPlayer();case 2:return t=e.sent,this.handlePlayerEvents(t),this.syncVideoHeight(),we(this.el,this.css),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"renderSkins",value:function(){var e,t,i;return"modern"===(null===(e=this.preset)||void 0===e?void 0:e.skin)?(0,k.h)("presto-modern-skin",null):"business"===(null===(t=this.preset)||void 0===t?void 0:t.skin)?(0,k.h)("presto-business-skin",null):"stacked"===(null===(i=this.preset)||void 0===i?void 0:i.skin)?(0,k.h)("presto-stacked-skin",null):void 0}},{key:"onReload",value:(i=(0,p.Z)(w().mark((function e(t){var i,r=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initialize();case 2:i=e.sent,"play"==t&&i.on("ready",(function(){r.play(),i.muted=!0,i.muted=!1,i.off("ready",r.play)}));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"syncVideoHeight",value:(t=(0,p.Z)(w().mark((function e(){var t=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:new ResizeObserver((function(){t.isSticky||(t.videoHeight=t.el.getBoundingClientRect().height)})).observe(this.el);case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"handleRestartVideo",value:function(){var e=this;this.player.once("timeupdate",(function(){setTimeout((function(){return e.play()}),500)})),this.player.restart()}},{key:"handlePlayVideo",value:function(){this.play()}},{key:"handlePauseVideo",value:function(e){this.pause(),e.detail&&(0,x.e)(this.player)}},{key:"playVideoOnlyInViewport",value:function(){var e;!this.isAdmin&&(null===(e=this.preset)||void 0===e?void 0:e.play_video_viewport)&&this.player&&("visible"===document.visibilityState?this.observer.observe(this.el):(this.player.playing&&(this.previouslyPlaying=!0),this.pause(),this.observer.disconnect()))}},{key:"trackIntersection",value:function(){var e=this;this.observer=new IntersectionObserver((function(t){e.handleVisibilityIntersection(null==t?void 0:t[0])})),this.observer.observe(this.el)}},{key:"handleVisibilityIntersection",value:function(e){e&&(this.handleStickyScroll(e),this.handleVisibilityPlayChange(e))}},{key:"handleStickyScroll",value:function(e){var t,i,r=this;if(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll)if(this.isAdmin||this.mutedPreview||!(null===(i=null==this?void 0:this.player)||void 0===i?void 0:i.playing))this.isSticky=!1;else{var n=e.boundingClientRect;if(this.isSticky=n.height<-n.top,"visible"===document.visibilityState&&this.isSticky&&this.player){var o=function e(){window.removeEventListener("scroll",e),r.player.paused&&(r.isSticky=!1)};this.player.once("pause",(function(){window.addEventListener("scroll",o)}))}}}},{key:"handleVisibilityPlayChange",value:function(e){var t,i,r,n=this;if(!this.isAdmin&&(null===(t=this.preset)||void 0===t?void 0:t.play_video_viewport)&&(!this.player&&this.originalConfig.autoplay&&(this.previouslyPlaying=!0,this.autoplay=!!(null==e?void 0:e.isIntersecting)),this.player)){if(null==e?void 0:e.isIntersecting)return this.originalConfig.autoplay&&(this.autoplay=!0),this.previouslyPlaying&&this.play(),void(this.previouslyPlaying=!1);if("visible"!==document.visibilityState||!this.isSticky){if(null===(r=null===(i=this.blockAttributes)||void 0===i?void 0:i.mutedPreview)||void 0===r?void 0:r.enabled)return this.previouslyPlaying=!0,this.pause(),void this.player.once("playing",(function(){n.previouslyPlaying=!0,n.pause()}));this.player.playing&&(this.previouslyPlaying=!0),this.pause()}}}},{key:"renderMutedOverlay",value:function(){var e,t=this;if(this.player&&this.mutedPreview&&!this.isAdmin)return(0,k.h)("presto-muted-overlay",{mutedOverlay:null===(e=this.player.config.blockAttributes)||void 0===e?void 0:e.mutedOverlay,preset:this.preset,onPlayVideo:function(){t.mutedPreview=!1,t.play()}})}},{key:"renderVideo",value:function(){var e,t=this;switch(this.provider){case"vimeo":return(0,k.h)("presto-vimeo",{player:this.player,getRef:function(e){return t.playerEl=e},poster:this.poster,src:this.src});case"youtube":return(0,k.h)("presto-youtube",{onReload:function(e){return t.onReload(null==e?void 0:e.detail)},player:this.player,getRef:function(e){return t.playerEl=e},lazyLoad:this.shouldLazyLoad,poster:this.poster,src:this.src});case"bunny":return(0,k.h)("presto-bunny",{thumbnail:null===(e=null==this?void 0:this.bunny)||void 0===e?void 0:e.thumbnail,getRef:function(e){return t.playerEl=e},player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks,videoAttributes:this.videoAttributes});case"audio":return(0,k.h)("presto-audio",{getRef:function(e){return t.playerEl=e},player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,preset:this.preset,src:this.src,tracks:this.tracks,mediaTitle:this.mediaTitle,audioAttributes:this.audioAttributes});default:return(0,k.h)("presto-video",{getRef:function(e){return t.playerEl=e},player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks,videoAttributes:this.videoAttributes})}}},{key:"renderVideoCTA",value:function(){var e,t,i,r;(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.isPremium)&&(this.isAdmin||(null===(i=null===(t=this.preset)||void 0===t?void 0:t.cta)||void 0===i?void 0:i.enabled)&&((null===(r=this.components.cta)||void 0===r?void 0:r.offsetParent)||"audio"!==this.provider&&(this.components.cta=document.createElement("presto-cta-overlay"),this.components.cta.direction=this.direction,this.components.cta.player=this.player,this.components.cta.preset=this.preset,this.components.cta.i18n=this.i18n,this.player.elements.container.append(this.components.cta))))}},{key:"renderAudioCTA",value:function(){var e,t;if("audio"===this.provider&&this.player&&(null===(t=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===t?void 0:t.enabled))return(0,k.h)("presto-cta-overlay",{direction:this.direction,player:this.player,preset:this.preset,i18n:this.i18n,provider:this.provider})}},{key:"renderEmailOverlay",value:function(){var e,t,i;!(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.isPremium)||this.isAdmin||(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.logged_in)||(null===(i=this.components.email)||void 0===i?void 0:i.offsetParent)||"audio"!==this.provider&&(this.components.email=document.createElement("presto-email-overlay"),this.components.email.direction=this.direction,this.components.email.player=this.player,this.components.email.preset=this.preset,this.components.email.i18n=this.i18n,this.components.email.videoId=this.video_id,this.player.elements.container.append(this.components.email))}},{key:"renderAudioEmail",value:function(){var e,t;if("audio"===this.provider&&this.player&&(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.isPremium)&&!this.isAdmin&&!(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.logged_in))return(0,k.h)("presto-email-overlay",{direction:this.direction,player:this.player,preset:this.preset,i18n:this.i18n,provider:this.provider})}},{key:"renderActionBar",value:function(){var e,t;if((null===(t=null===(e=this.preset)||void 0===e?void 0:e.action_bar)||void 0===t?void 0:t.enabled)&&this.player)return(0,k.h)("presto-action-bar",{config:this.preset.action_bar,player:null==this?void 0:this.player,youtube:this.youtube})}},{key:"renderSearchBar",value:function(){var e,t;(null===(t=null===(e=this.preset)||void 0===e?void 0:e.search)||void 0===t?void 0:t.enabled)&&(this.components.search=document.createElement("presto-search-bar"),this.components.search.player=this.player,this.player.elements.container.append(this.components.search))}},{key:"stickyPositionClass",value:function(){var e,t;return this.isSticky?(null===(e=this.preset)||void 0===e?void 0:e.sticky_scroll_position)?"presto-sticky--".concat(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll_position.replace(/\s+/g,"-")):"presto-sticky--bottom-right":""}},{key:"renderDynamicOverlays",value:function(){var e,t,i,r,n,o,a,l=this;this.player&&((null===(e=null==this?void 0:this.overlaysComponent)||void 0===e?void 0:e.offsetParent)||(this.overlaysComponent=document.createElement("presto-dynamic-overlays"),this.overlaysComponent.addEventListener("reloadComponent",(function(){l.overlaysComponent.remove(),l.overlaysComponent=document.createElement("presto-dynamic-overlays")}),{once:!0})),this.overlaysComponent.style.cssText="display: block !important; opacity: 1 !important; visibility: visible !important;",this.overlaysComponent.overlays=this.overlays,this.overlaysComponent.preset=this.preset,this.overlaysComponent.player=this.player,this.overlaysComponent.enabled=!(null===(r=null===(i=null===(t=this.player)||void 0===t?void 0:t.config)||void 0===i?void 0:i.mutedPreview)||void 0===r?void 0:r.enabled),(null===(n=null==this?void 0:this.overlaysComponent)||void 0===n?void 0:n.offsetParent)||null===(a=null===(o=this.player.elements)||void 0===o?void 0:o.wrapper)||void 0===a||a.append(this.overlaysComponent))}},{key:"handleCtaStateChange",value:function(e){this.ctaActive=e.detail}},{key:"handleEmailStateChange",value:function(e){this.emailActive=e.detail}},{key:"handleActionBarStateChange",value:function(e){this.actionBarActive=e.detail}},{key:"render",value:function(){var e,t,i,r,n,o,a,l;return(0,k.h)(k.H,{key:"34c7815fe160d80b5d6e099c8342909f7210bd7f",style:{height:this.isSticky?"".concat(this.videoHeight,"px"):"auto"},class:{ready:this.ready}},(0,k.h)("div",{key:"2a92320b9593bddaf4c0469d30f5b4b304c426cf",part:"wrapper",dir:this.direction,class:"presto-player__wrapper fitvidsignore\n presto-video-id-".concat(this.video_id,"\n ").concat(this.isSticky?"audio"===this.provider?"presto-sticky-audio":"presto-sticky":"","\n ").concat("audio"!==this.provider?this.stickyPositionClass():"","\n ").concat("rtl"===this.direction?"rtl":"","\n ").concat(!0===this.ctaActive?"cta-active":"","\n ").concat(!0===this.emailActive?"email-active":"","\n ").concat(!0===this.actionBarActive&&(null===(t=null===(e=this.preset)||void 0===e?void 0:e.action_bar)||void 0===t?void 0:t.enabled)?"action-bar-active":"","\n ").concat(!!(null===(i=this.preset)||void 0===i?void 0:i.skin)&&"skin-".concat(null===(r=this.preset)||void 0===r?void 0:r.skin),"\n ").concat((null===(n=this.preset)||void 0===n?void 0:n.hide_youtube)?"hide-youtube-ui":"","\n ").concat((null===(o=this.preset)||void 0===o?void 0:o.caption_style)?"caption-style-".concat(null===(a=this.preset)||void 0===a?void 0:a.caption_style):"","\n ").concat(this.mutedPreview?"is-muted-overlay":"","\n ").concat(this.playClass?this.playClass:"","\n ").concat((null===(l=this.preset)||void 0===l?void 0:l.play)&&!this.preset.rewind?"rewind-inactive":"","\n ").concat(this.classes||"")},(0,k.h)("div",{key:"e0210d49bfe357e8bae2e8ad5681edb23d12e63a"},(0,k.h)("slot",{key:"40251660b6d31d09a4fa3da602b277b186c25577",name:"player-start"}),(0,k.h)("slot",{key:"474eafa7fb0c589b17094ee113cdb82671295800",name:"player-before-video"}),this.renderVideo(),(0,k.h)("slot",{key:"c44be1f518b25590885ad72bfe8d99a53b73da82",name:"player-after-video"}),this.renderActionBar(),this.renderMutedOverlay(),this.renderAudioCTA(),this.renderAudioEmail(),this.renderSkins(),(0,k.h)("slot",{key:"7b25e6d1aa444ff3fed746564823f2cde77f17f2",name:"player-end"}))))}},{key:"el",get:function(){return(0,k.g)(this)}}],[{key:"watchers",get:function(){return{currentTime:["handleCurrentTimeChange"],isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],player:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"],overlays:["renderDynamicOverlays"],preset:["renderDynamicOverlays"]}}}]),e}();ke.style='@charset "UTF-8";@keyframes plyr-progress{to{background-position:var(--plyr-progress-loading-size, 25px) 0}}@keyframes plyr-popup{0%{opacity:0.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{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:var(--plyr-font-family, inherit);font-variant-numeric:tabular-nums;font-weight:var(--plyr-font-weight-regular, 400);line-height:var(--plyr-line-height, 1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow 0.3s ease;z-index:0}.plyr video,.plyr audio,.plyr iframe{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:var(--plyr-badge-background, hsl(216, 15%, 34%));border-radius:var(--plyr-badge-border-radius, 2px);color:var(--plyr-badge-text-color, #fff);font-size:var(--plyr-font-size-badge, 9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in 0.3s ease;bottom:0;display:none;font-size:var(--plyr-font-size-small, 13px);left:0;padding:var(--plyr-control-spacing, 10px);position:absolute;text-align:center;transition:transform 0.4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width: 480px){.plyr__captions{font-size:var(--plyr-font-size-base, 15px);padding:calc(var(--plyr-control-spacing, 10px) * 2)}}@media (min-width: 768px){.plyr__captions{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(calc(var(--plyr-control-spacing, 10px) * -4))}.plyr__caption{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));border-radius:2px;box-decoration-break:clone;color:var(--plyr-captions-text-color, #fff);line-height:185%;padding:0.2em 0.5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:var(--plyr-control-radius, 3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(var(--plyr-control-spacing, 10px) * 0.7);position:relative;transition:all 0.3s ease}.plyr__control svg{display:block;fill:currentColor;height:var(--plyr-control-icon-size, 18px);pointer-events:none;width:var(--plyr-control-icon-size, 18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, hsl(198, 100%, 50%)))) dotted 3px;outline-offset:2px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,.plyr__control.plyr__control--pressed .label--not-pressed{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: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:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item.plyr__time{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:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=captions],.plyr [data-plyr=pip],.plyr [data-plyr=airplay],.plyr [data-plyr=fullscreen]{display:none}.plyr--captions-enabled [data-plyr=captions],.plyr--pip-supported [data-plyr=pip],.plyr--airplay-supported [data-plyr=airplay],.plyr--fullscreen-enabled [data-plyr=fullscreen]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform 0.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 0.2s ease;background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-menu-radius, 4px);bottom:100%;box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-menu-color, hsl(216, 15%, 34%));font-size:var(--plyr-font-size-base, 15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)}.plyr__menu__container::after{border:var(--plyr-menu-arrow-size, 4px) solid transparent;border-top-color:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));content:"";height:0;position:absolute;right:calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.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:var(--plyr-menu-color, hsl(216, 15%, 34%));display:flex;font-size:var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));padding:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5) calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);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:var(--plyr-menu-item-arrow-size, 4px) solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:var(--plyr-menu-arrow-color, hsl(216, 15%, 52%));right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:var(--plyr-font-weight-regular, 400);margin:calc(var(--plyr-control-spacing, 10px) * 0.7);margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);position:relative;width:calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:var(--plyr-menu-arrow-color, hsl(216, 15%, 52%));left:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back::before{background:var(--plyr-menu-back-border-color, hsl(216, 15%, 88%));box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);content:"";height:1px;left:0;margin-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container .plyr__control[role=menuitemradio]::before,.plyr__menu__container .plyr__control[role=menuitemradio]::after{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0, 0, 0, 0.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform 0.3s ease, opacity 0.3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, hsl(198, 100%, 50%))))}.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].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35, 40, 47, 0.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2px) * -1);overflow:hidden;padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{appearance:none;background:transparent;border:0;border-radius:calc(var(--plyr-range-thumb-height, 13px) * 2);color:var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, hsl(198, 100%, 50%))));display:block;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 0.3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background-image:linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);appearance:none;margin-top:calc((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2 * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px)}.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);margin-top:0}.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].plyr__tab-focus::-webkit-slider-runnable-track{outline:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, hsl(198, 100%, 50%)))) dotted 3px;outline-offset:2px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, hsl(198, 100%, 50%)))) dotted 3px;outline-offset:2px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, hsl(198, 100%, 50%)))) dotted 3px;outline-offset:2px}.plyr__poster{background-color:var(--plyr-video-background, var(--plyr-video-background, rgb(0, 0, 0)));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity 0.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:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__time+.plyr__time::before{content:"⁄";margin-right:var(--plyr-control-spacing, 10px)}@media (max-width: 767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 5px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-tooltip-color, hsl(216, 15%, 34%));font-size:var(--plyr-font-size-small, 13px);font-weight:var(--plyr-font-weight-regular, 400);left:50%;line-height:1.3;margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:hover .plyr__tooltip,.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%, 0) 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:translate(0, 10px) scale(0.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:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0, 10px) scale(0.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible{transform:translate(0, 0) scale(1)}.plyr__progress{left:calc(var(--plyr-range-thumb-height, 13px) * 0.5);margin-right:var(--plyr-range-thumb-height, 13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(var(--plyr-range-thumb-height, 13px) * -0.5);margin-right:calc(var(--plyr-range-thumb-height, 13px) * -0.5);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:120px;overflow-wrap:break-word}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:var(--plyr-range-track-height, 5px);left:0;margin-top:calc((var(--plyr-range-track-height, 5px) / 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width 0.2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);background-repeat:repeat-x;background-size:var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr__progress__marker{background-color:var(--plyr-progress-marker-background, #fff);border-radius:1px;height:var(--plyr-range-track-height, 5px);position:absolute;top:50%;transform:translate(-50%, -50%);width:var(--plyr-progress-marker-width, 3px);z-index:3}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(var(--plyr-control-spacing, 10px) / 2);margin-right:calc(var(--plyr-control-spacing, 10px) / 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:var(--plyr-audio-controls-background, #fff);border-radius:inherit;color:var(--plyr-audio-control-color, hsl(216, 15%, 34%));padding:var(--plyr-control-spacing, 10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, hsl(198, 100%, 50%))));color:var(--plyr-audio-control-color-hover, #fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--audio .plyr__progress__buffer{color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr--video{background:var(--plyr-video-background, var(--plyr-video-background, rgb(0, 0, 0)));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:var(--plyr-video-background, var(--plyr-video-background, rgb(0, 0, 0)));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:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:var(--plyr-video-control-color, #fff);left:0;padding:calc(var(--plyr-control-spacing, 10px) / 2);padding-top:calc(var(--plyr-control-spacing, 10px) * 2);position:absolute;right:0;transition:opacity 0.4s ease-in-out, transform 0.4s ease-in-out;z-index:3}@media (min-width: 480px){.plyr--video .plyr__controls{padding:var(--plyr-control-spacing, 10px);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.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, hsl(198, 100%, 50%))));color:var(--plyr-video-control-color-hover, #fff)}.plyr__control--overlaid{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, hsl(198, 100%, 50%))));border:0;border-radius:100%;color:var(--plyr-video-control-color, #fff);display:none;left:50%;opacity:0.9;padding:calc(var(--plyr-control-spacing, 10px) * 1.5);position:absolute;top:50%;transform:translate(-50%, -50%);transition:0.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:hover,.plyr__control--overlaid:focus{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:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--video .plyr__progress__buffer{color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr:fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;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: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:hsl(216, 15%, 16%);border-radius:2px;bottom:var(--plyr-control-spacing, 10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:var(--plyr-control-spacing, 10px);z-index:3}.plyr__ads:empty::after{display:none}.plyr__cues{background:currentColor;display:block;height:var(--plyr-range-track-height, 5px);left:0;opacity:0.8;position:absolute;top:50%;transform:translateY(-50%);width:3px;z-index:3}.plyr__preview-thumb{background-color:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 5px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:3px;pointer-events:none;position:absolute;transform:translate(0, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0, 0) scale(1)}.plyr__preview-thumb::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:calc(50% + var(--preview-arrow-offset));position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:hsl(216, 15%, 79%);border-radius:calc(var(--plyr-tooltip-radius, 5px) - 1px);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 1px rgba(0, 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:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:calc(var(--plyr-tooltip-radius, 5px) - 1px);border-bottom-right-radius:calc(var(--plyr-tooltip-radius, 5px) - 1px);bottom:0;left:0;line-height:1.1;padding:20px 6px 6px;position:absolute;right:0;z-index:3}.plyr__preview-thumb__time-container span{color:#fff;font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.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;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none !important}.plyr__sr-only{clip:rect(1px, 1px, 1px, 1px);overflow:hidden;border:0 !important;height:1px !important;padding:0 !important;position:absolute !important;width:1px !important}.plyr [hidden]{display:none !important}video,iframe{max-width:100%}:host{position:relative;display:flex}*:focus-visible{outline:2px solid var(--presto-player-focus-outline, white) !important}.plyr--html5 .plyr__video-wrapper,.plyr--youtube .plyr__video-wrapper{height:100%}.plyr__video-wrapper{z-index:1}.presto-player__wrapper{position:relative;flex:1;display:flex;flex-direction:column;justify-content:center;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";width:100%}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper .plyr__progress__marker{height:14px}.presto-player__wrapper img{max-width:100%}.presto-player__wrapper .plyr{border-radius:var(--presto-player-border-radius)}.presto-player__wrapper .plyr.plyr--video.plyr--menu-open{overflow:hidden}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{top:50%;transform:translateY(-50%)}.presto-player__wrapper .plyr--fullscreen-fallback.plyr{border-radius:0 !important}.presto-player__wrapper .plyr--fullscreen-fallback.plyr iframe{border-radius:0 !important}.presto-player__wrapper .plyr__menu__container{overflow:auto}.presto-player__wrapper .plyr__menu__container:after{display:none}.presto-player__wrapper img{border:none}.presto-player__wrapper video{margin:auto}.presto-player__wrapper iframe{height:100%}.presto-player__wrapper .plyr--video .plyr__control:active,.presto-player__wrapper .plyr--video .plyr__control:focus{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .plyr__poster{background-size:cover;z-index:2}.presto-player__wrapper .plyr__tooltip--label br{display:none}.presto-player__wrapper .presto-player__logo{margin:0;display:block;position:absolute;z-index:3;opacity:0.5;object-fit:contain;transition:bottom 0.4s ease-in-out;max-width:var(--presto-player-logo-width, 75px)}.presto-player__wrapper .presto-player__logo.is-bottom-right{left:auto;right:20px;top:auto;bottom:60px}.presto-player__wrapper .presto-player__logo.is-bottom-left{left:20px;right:auto;top:auto;bottom:60px}@media screen and (min-width: 380px){.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-left,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-left{bottom:20px}}.presto-player__wrapper presto-search-bar{transition:opacity 0.3s ease, transform 0.3s ease}.presto-player__wrapper.presto-player--hide-controls presto-search-bar{opacity:0;transform:translateY(-100%)}.presto-player__wrapper .presto-player-progress__marker{width:16px;height:16px;padding:0;border:2px solid rgba(255, 255, 255, 0.5);position:absolute;border-radius:9999px;bottom:calc(50% - 8px);z-index:9;margin-left:-8px !important}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__poster{display:none}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__control.plyr__control--overlaid{display:none}.presto-player__wrapper .presto-player__wrapper .plyr__control--overlaid{z-index:4}.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{background:inherit;border:none;outline:0;position:absolute;top:50%;transform:translate(-50%, -50%)}.presto-player__wrapper .plyr__controls__item.plyr__progress__container{position:relative}.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{box-shadow:none}.presto-player__wrapper .plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75)))}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--video .plyr__controls{padding-bottom:calc(var(--plyr-control-spacing, 10px) + env(safe-area-inset-bottom))}.presto-player__wrapper .presto-player-toc{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";line-height:1.4;position:absolute;top:auto;right:0;left:0;bottom:0;max-height:100%;max-width:100%;background:rgba(255, 255, 255, 0.9);background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));left:auto;padding:20px 15px;border-radius:4px;width:100%;z-index:9;box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:#4a5464;color:var(--plyr-menu-color, #4a5464);font-size:15px;font-size:var(--plyr-font-size-base, 15px);white-space:nowrap;z-index:3;display:flex;flex-direction:column;transition:bottom 0.25s ease}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc{right:20px;bottom:60px;width:300px;max-height:calc(100% - 80px);max-width:calc(100vw - 70px)}}.presto-player__wrapper .presto-player-toc__wrapper{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out}.presto-player__wrapper .presto-player-toc__wrapper.is-showing{visibility:visible;opacity:1}.presto-player__wrapper .presto-player-toc__cover{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3}.presto-player__wrapper .presto-player-toc__list{flex:1;overflow:auto}.presto-player__wrapper .presto-player-toc__title{font-size:12px;font-weight:bold;margin-bottom:10px;margin-left:10px;margin-right:10px;display:none}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc__title{display:block}}.presto-player__wrapper .presto-player-toc__name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.presto-player__wrapper .presto-player-toc__chapter{padding:12px;border-radius:3px;cursor:pointer;line-height:1;display:flex;align-items:center;transition:background-color 0.4s ease, color 0.4s ease;margin-bottom:2px;position:relative}.presto-player__wrapper .presto-player-toc__chapter:last-child{margin-bottom:0}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted,.presto-player__wrapper .presto-player-toc__chapter:hover{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted{padding-right:30px}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted:after{background:rgba(255, 255, 255, 0.5);content:"";display:block;flex-shrink:0;height:8px;width:8px;margin-right:10px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;border-radius:9999px;position:absolute;right:7px}.presto-player__wrapper .presto-player-toc__order{margin-right:12px;opacity:0.5}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper.rtl .presto-player-toc__order{order:2;margin-left:12px;margin-right:0}.presto-player__wrapper.rtl .presto-player-toc__name{direction:rtl}.presto-player__wrapper.action-bar-active .presto-audio__poster img{border-bottom-left-radius:0px}.presto-player__wrapper .presto-player-error{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.9);color:#fff;display:flex;align-items:center;justify-content:center;z-index:10;text-align:center}.presto-player__wrapper .presto-player-error__title{font-size:18px;font-weight:bold;margin-bottom:8px}.presto-player__wrapper .presto-player-error__description{opacity:0.75}.presto-player__wrapper.hide-youtube-ui .plyr__video-embed iframe{top:-50%;height:200%}.presto-player__wrapper .plyr--vimeo.plyr--playing .plyr__video-embed__container{pointer-events:none}.presto-player__wrapper .plyr__control--overlaid{border-radius:6px;padding-left:26px;padding-right:26px;position:absolute !important;top:50% !important}.presto-player__wrapper.presto-player--hide-scrim .plyr__controls{background:transparent}.presto-player__wrapper presto-audio .presto-player-toc{max-height:350px}.presto-player__wrapper presto-action-bar{position:relative;z-index:1}.presto-sticky-parent{z-index:99998}.presto-sticky-audio{position:fixed;z-index:3000;width:100vw;bottom:0px;right:0px;left:0px}@media screen and (min-width: 960px){.presto-sticky{--presto-sticky-space:15px;position:fixed;z-index:3000;max-width:var(--presto-sticky-width, 380px);width:100vw}.presto-sticky .plyr__controls,.presto-sticky .presto-player-toc__wrapper,.presto-sticky presto-action-bar,.presto-sticky .presto-player__logo{display:none}.presto-sticky--top-left{top:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--top-center{top:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--top-right{top:var(--presto-sticky-space);right:var(--presto-sticky-space)}.presto-sticky--center-left{top:0;bottom:0;margin:auto 0;left:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--center-center{top:0;bottom:0;right:0;left:0;margin:auto;display:flex;align-items:center}.presto-sticky--center-right{top:0;bottom:0;margin:auto 0;right:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--bottom-left{bottom:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--bottom-center{bottom:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--bottom-right{bottom:var(--presto-sticky-space);right:var(--presto-sticky-space)}}.presto-player__overlay{position:absolute;top:50%;left:50%;z-index:3}.presto-player__muted-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:none;align-items:center;justify-content:center}.presto-player__muted-overlay .plyr__control--overlaid{display:block;opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay{cursor:pointer}.presto-player__wrapper.is-muted-overlay.presto-player--playing .presto-player__muted-overlay{display:flex}.presto-player__wrapper.is-muted-overlay .plyr--playing .presto-player__muted-overlay .plyr__control--overlaid{opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay .presto-player__logo{display:none}.presto-player__wrapper.is-muted-overlay .plyr__controls{display:none}.presto-player__wrapper.is-muted-overlay .plyr .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(0) !important}.presto-player__wrapper.rtl .plyr__captions{direction:rtl}.presto-player__wrapper .plyr__captions{z-index:1}.presto-player__wrapper.caption-style-full .plyr__captions{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));padding-top:0;padding-bottom:0}.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 13px) * -4))}.presto-player__wrapper.caption-style-full.skin-stacked .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 17px) * -4))}.presto-player__play-cover{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.presto-player__chapters{width:100%;position:absolute;top:0;height:100%}.presto-player__chapter-markers{margin:0 8px;height:100%;position:relative}.presto-player-progress__marker.plyr__controls__item.plyr__control:hover{border:0;background:#fff}.presto-iframe-fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.presto-iframe-fallback-container embed,.presto-iframe-fallback-container iframe,.presto-iframe-fallback-container object{position:absolute;top:0;left:0;width:100%;height:100%}@media (min-aspect-ratio: 16/9){.hide-youtube-ui presto-youtube .plyr:fullscreen .plyr__video-wrapper{width:177.7777777778vh}}.cta-email-active,.cta-email-active .presto-audio__wrapper{min-height:140px}.cta-active,.email-active,.cta-active .presto-audio__wrapper,.email-active .presto-audio__wrapper{min-height:140px}.action-bar-active .plyr{border-radius:var(--presto-player-border-radius) var(--presto-player-border-radius) 0px 0px}presto-search-bar{position:absolute;top:0;left:0;right:0;height:70px;background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0)));z-index:1}presto-search-bar-ui{position:absolute;top:15px;right:23px}';var xe=function(){return(0,k.h)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",class:"presto-icon-pause"},(0,k.h)("path",{d:"M5 16v-12h3v12h-3zM12 4h3v12h-3v-12z"}))},Te=function(){return(0,k.h)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",class:"presto-icon-play"},(0,k.h)("path",{d:"M5 4l10 6-10 6v-12z"}))},Pe=function(){function e(t){(0,y.Z)(this,e),(0,k.r)(this,t),this.triggerPlay=(0,k.c)(this,"triggerPlay",7),this.triggerPause=(0,k.c)(this,"triggerPause",7),this.active=!1,this.playing=!1}return(0,v.Z)(e,[{key:"render",value:function(){var e=this;return(0,k.h)("div",{key:"49e846bdd8e8032f874150021aaef59755817bfb",class:{playlist__item:!0,"playlist__item-is--active":this.active,"playlist__item-is--playing":this.playing},onClick:function(){e.playing?e.triggerPause.emit():e.triggerPlay.emit()}},(0,k.h)("div",{key:"030b3f66de76f741178b03447486563ced819381",class:"playlist__title-wrap"},(0,k.h)("div",{key:"4b1a2c717681406314c607871dee8113bd247ddc",class:"playlist__play-icon"},this.playing?(0,k.h)(xe,null):(0,k.h)(Te,null)),(0,k.h)("slot",{key:"b7b5d6369aa926ec829952f25e4007496367a993",name:"item-title"})),(0,k.h)("div",{key:"d515ddcb7caae30569b4669cb8880cb3e410ebc6",class:"playlist__time"},(0,k.h)("slot",{key:"ff8aceb7144b46b5f762e8b22bb3a3c51a40571f",name:"item-duration"})))}}]),e}();Pe.style=":host{display:block;cursor:pointer}::slotted(*){font-size:14px}.playlist__item{display:flex;justify-content:space-between;align-items:center;padding:6px;transition:background-color 0.25s ease;color:var(--presto-playlist-text-color, var(--plyr-audio-control-color, #4a5464));user-select:none;border-radius:8px}.playlist__item:hover{background-color:rgba(0, 0, 0, 0.05)}.playlist__item.playlist__item-is--active{background-color:var(--presto-playlist-highlight-color, var(--plyr-color-main, #2e4cd9));padding:6px;color:var(--playlist-highlight-text-color, #fff);border-radius:8px}.playlist__item.playlist__item-is--active .playlist__title-wrap>div{background-color:var(--playlist-highlight-text-color, #fff)}.playlist__item.playlist__item-is--active svg{fill:var(--presto-playlist-highlight-color, var(--plyr-color-main, #2e4cd9))}.playlist__item svg{fill:currentColor}.playlist__item .presto-icon-play path{transform:translateX(1px)}.playlist__title-wrap{display:flex;justify-content:center;align-items:center;gap:14px}.playlist__play-icon{display:flex;padding:2px;border-radius:50%;background:rgba(180, 184, 199, 0.25)}.playlist__time{opacity:0.8;font-size:12px;padding:0 4px}";var Se=function(){function e(t){(0,y.Z)(this,e),(0,k.r)(this,t),this.rewatch=(0,k.c)(this,"rewatch",7),this.next=(0,k.c)(this,"next",7),this.nextItemTitle=void 0,this.nextItemString=void 0,this.transitionDuration=5,this.isLastItem=!1,this.animating=!1,this.show=!1}return(0,v.Z)(e,[{key:"handleShow",value:function(){var e=this;this.show&&!this.isLastItem?(setTimeout((function(){e.animating=!0}),200),this.timeout=setTimeout((function(){e.show&&e.handleNext()}),1e3*(this.transitionDuration||5)+200)):this.animating=!1}},{key:"handleRewatch",value:function(){this.rewatch.emit()}},{key:"handleNext",value:function(){this.next.emit()}},{key:"disconnectedCallback",value:function(){clearTimeout(this.timeout)}},{key:"handleAnimatingChange",value:function(e){e||clearTimeout(this.timeout)}},{key:"render",value:function(){var e,t,i,r,n,o,a=this;if(!this.show)return(0,k.h)(k.H,null,(0,k.h)("div",{style:{display:"none"}}));var l=(null===(t=null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.i18n)||void 0===t?void 0:t.upNext)||"Up Nexts",s=(null===(r=null===(i=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===i?void 0:i.i18n)||void 0===r?void 0:r.startOver)||"Start Over",c=(null===(o=null===(n=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===n?void 0:n.i18n)||void 0===o?void 0:o.rewatch)||"Rewatch";return(0,k.h)("div",{class:"playlist__overlay",onClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),a.animating=!1}},(0,k.h)("div",{class:"playlist__overlay-wrap"},this.isLastItem?(0,k.h)("p",null,s,":"):(0,k.h)("p",null,l,":"),(0,k.h)("h2",null,this.nextItemTitle),(0,k.h)("div",{class:"playlist__overlay-buttons"},(0,k.h)("button",{class:"previous",onClick:function(){return a.handleRewatch()}},(0,k.h)("svg",{width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,k.h)("path",{d:"M15 0V9L8 4.5L15 0Z",fill:"white"}),(0,k.h)("path",{d:"M7 0V9L0 4.5L7 0Z",fill:"white"})),c),(0,k.h)("button",{class:{next:!0,"fill-button":this.animating},onClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),a.handleNext()}},(0,k.h)("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,k.h)("path",{d:"M0 0V12L9.5 6L0 0Z",fill:"black"})),this.isLastItem?s:"Next "+((null==this?void 0:this.nextItemString)||"Video")))))}}],[{key:"watchers",get:function(){return{show:["handleShow"],animating:["handleAnimatingChange"]}}}]),e}();Se.style=":host{display:block;cursor:pointer}.playlist__overlay{color:#fff;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);z-index:999}.playlist__overlay h2,.playlist__overlay p{margin:0;padding:0;line-height:1}.playlist__overlay h2{margin-bottom:0.4em}.playlist__overlay .playlist__overlay-wrap{top:0;position:absolute;padding:25px;left:0;display:grid;gap:1em}.playlist__overlay .playlist__overlay-buttons{display:flex;gap:13px}.playlist__overlay .playlist__overlay-buttons button{background:rgba(255, 255, 255, 0.8);border-radius:5px;padding:10px 12px;border:1px solid #ffffff;font-weight:500;font-size:13px;line-height:15px;display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer}.playlist__overlay .playlist__overlay-buttons button.previous{background-color:transparent;border:1px solid #ffffff;margin-right:10px;color:#ffffff}.playlist__overlay .playlist__overlay-buttons button.next{background:linear-gradient(to right, rgb(255, 255, 255) 50%, rgba(255, 255, 255, 0.8) 50%);background-size:200% 100%;background-position:right bottom}.playlist__overlay .playlist__overlay-buttons button.next.fill-button{transition:all var(--playlist-transition-duration, 5s) ease-out;background-position:left bottom}.playlist__overlay .playlist__overlay-buttons button.next.disabled{background-color:transparent;border:1px solid #ffffff;color:#ffffff;background:none}";var Ce=function(){function e(t){(0,y.Z)(this,e),(0,k.r)(this,t)}return(0,v.Z)(e,[{key:"render",value:function(){return(0,k.h)("div",{key:"e491b728a12bbe88b47ab93e76eaea8237dd3cea",class:"playlist__base",part:"base"},(0,k.h)("div",{key:"672c71c6e0b425ea093c4395cb86f106cc4f2785",class:"playlist"},(0,k.h)("div",{key:"f785f31695ada6ffa3cc62413d8f739605ceb9e7",class:"playlist__preview"},(0,k.h)("slot",{key:"636b6374490405d59b2c6d1f226942e1d75056dc",name:"preview"})),(0,k.h)("div",{key:"f3b0fac78923018568c53b7d8dd753a012f86332",class:"playlist__info"},(0,k.h)("div",{key:"d343092dda7a695530dee464a9f72fcd0f4a2738",class:"playlist__heading"},(0,k.h)("div",{key:"70cd1f9a9d8f0b4ad972e9886dbced212492b52f",class:"playlist__heading-title"},(0,k.h)("slot",{key:"949df1a54f703e886e8204407b3b651088bfcc01",name:"title"})),(0,k.h)("div",{key:"c1969328b820129132fdb0045864440c568d24fe",class:"playlist__heading-count"},(0,k.h)("slot",{key:"47a163b788d1619ad130bd6ef62855681699d914",name:"count"}))),(0,k.h)("div",{key:"e368d3e86d468053bdb754f326c6b2386f12e568",class:"playlist__info--inner"},(0,k.h)("div",{key:"42976f9e474ec11c7dce1664449f380791a4995a",class:"playlist__list"},(0,k.h)("slot",{key:"f3265b3ed5c8e08ed1e796cbce1b17fb165ce545",name:"list"}))))))}}]),e}();Ce.style=":host {\n display: block;\n background: transparent !important;\n}\n\n.playlist__base {\n container-type: inline-size;\n}\n\n::slotted([provider=audio]) {\n flex: 1;\n box-sizing: border-box;\n flex: 0 0 100%;\n min-height: 300px;\n}\n\n.playlist {\n display: flex;\n justify-content: stretch;\n align-items: stretch;\n border-radius: var(--presto-playlist-border-radius, 8px);\n overflow: hidden;\n border-width: var(--presto-playlist-border-width, 1px);\n border-style: solid;\n border-color: var(--presto-playlist-border-color, #ddd);\n background: var(--presto-playlist-background-color, #fff);\n position: relative;\n}\n.playlist__base {\n user-select: none;\n}\n.playlist__preview {\n position: relative;\n flex: 1;\n}\n.playlist__info {\n border-radius: 8px;\n overflow-y: scroll;\n min-width: 300px;\n max-width: 350px;\n width: 30%;\n display: flex;\n flex-direction: column;\n overflow: auto;\n}\n.playlist__info--inner {\n flex: 1 1 1px;\n overflow: auto;\n margin: 30px;\n margin-top: 0;\n margin-right: 15px;\n padding-right: 15px;\n height: fit-content;\n min-height: 175px;\n /* Track */\n /* Handle */\n /* Handle on hover */\n}\n.playlist__info--inner .playlist__list {\n gap: var(--presto-playlist-gap, 10px);\n display: flex;\n flex-direction: column;\n}\n.playlist__info--inner::-webkit-scrollbar {\n width: 6px;\n}\n.playlist__info--inner::-webkit-scrollbar-track {\n background: #ddd;\n border-radius: 5px;\n}\n.playlist__info--inner::-webkit-scrollbar-thumb {\n background: #888;\n border-radius: 5px;\n}\n.playlist__info--inner::-webkit-scrollbar-thumb:hover {\n background: #aaa;\n border-radius: 5px;\n}\n.playlist__heading {\n display: flex;\n justify-content: space-between;\n padding: 25px 30px 16px;\n}\n.playlist__heading-title {\n font-size: 16px;\n font-weight: 500;\n color: var(--presto-playlist-text-color);\n}\n.playlist__heading-count {\n color: var(--presto-playlist-text-color, var(--plyr-audio-control-color, #b1b1b1));\n font-size: 12px;\n}\n\n/** Container query! */\n@container (max-width: 782px) {\n .playlist {\n flex-direction: column;\n }\n .playlist__info {\n max-width: none;\n min-height: none;\n width: 100%;\n }\n .playlist__info--inner {\n flex: 1;\n height: fit-content;\n max-height: 200px;\n min-height: min-content;\n }\n .playlist__preview {\n min-height: 200px;\n }\n ::slotted([provider=audio]) {\n padding: 30px;\n min-height: 200px;\n padding-bottom: 0;\n flex: 1;\n }\n}\n/** Older browsers fallback */\n@media (max-width: 782px) {\n .playlist {\n flex-direction: column;\n }\n .playlist__info {\n max-width: none;\n min-height: none;\n width: 100%;\n }\n .playlist__info--inner {\n flex: 1;\n height: fit-content;\n max-height: 200px;\n min-height: min-content;\n }\n}"},2361:function(e,t,i){i.r(t),i.d(t,{presto_player:function(){return r.a},presto_playlist_item:function(){return r.b},presto_playlist_overlay:function(){return r.c},presto_playlist_ui:function(){return r.d}});var r=i(7149);i(1368),i(2136)},1928:function(e,t,i){i.r(t),i.d(t,{presto_playlist:function(){return a}});var r=i(5671),n=i(3144),o=i(1368),a=function(){function e(t){(0,r.Z)(this,e),(0,o.r)(this,t),this.items=void 0,this.heading=void 0,this.listTextSingular=void 0,this.listTextPlural=void 0,this.transitionDuration=5,this.currentPlaylistItem=void 0,this.currentPlyr=void 0,this.playing=!1}return(0,n.Z)(e,[{key:"rewatch",value:function(){this.handlePlay()}},{key:"next",value:function(){this.handleNext()}},{key:"handleCurrentPlay",value:function(e,t){var i;e&&(this.addOverlay(),this.currentPlyr.elements.container.getRootNode().host.style=this.currentPlaylistItem.config.styles,void 0!==t&&("youtube"===this.currentPlyr.provider&&!this.currentPlyr.muted&&(null===(i=this.currentPlyr)||void 0===i?void 0:i.embed)&&this.currentPlyr.embed.unMute(),this.currentPlyr.play()))}},{key:"addOverlay",value:function(){var e,t;this.overlay=document.createElement("presto-playlist-overlay"),this.overlay.nextItemTitle=this.getNextItemTitle(),this.overlay.isLastItem=this.isLastItem(),this.overlay.nextItemString=(null==this?void 0:this.listTextSingular)||"Video",this.overlay.transitionDuration=this.transitionDuration,null===(t=null===(e=this.currentPlyr.elements)||void 0===e?void 0:e.container)||void 0===t||t.closest(".presto-player__wrapper").append(this.overlay)}},{key:"componentWillLoad",value:function(){var e;this.currentPlaylistItem=(null===(e=null==this?void 0:this.items)||void 0===e?void 0:e[0])||null}},{key:"handleItemClick",value:function(e){this.overlay&&(this.overlay.show=!1),this.el.style.height=this.el.offsetHeight+"px",this.el.style.width=this.el.offsetWidth+"px",this.currentPlaylistItem=e}},{key:"handleNext",value:function(){this.overlay.show=!1,this.currentPlaylistItem=this.getNextItem()||this.currentPlaylistItem}},{key:"handlePlay",value:function(){this.overlay&&(this.overlay.show=!1),this.currentPlyr.play()}},{key:"handlePause",value:function(){this.overlay.show=!1,this.currentPlyr.pause()}},{key:"getNextItem",value:function(){var e,t,i,r,n;if(this.isLastItem())return this.items[0];for(var o=0;o<(null===(e=this.items)||void 0===e?void 0:e.length);o++)if((null===(t=this.items[o])||void 0===t?void 0:t.id)===(null===(i=this.currentPlaylistItem)||void 0===i?void 0:i.id)&&(null===(r=this.items)||void 0===r?void 0:r.length)!==o+1){n=this.items[o+1];break}return n}},{key:"isLastItem",value:function(){var e,t,i,r=(null===(e=this.items)||void 0===e?void 0:e.length)-1;return(null===(t=this.items[r])||void 0===t?void 0:t.id)===(null===(i=this.currentPlaylistItem)||void 0===i?void 0:i.id)}},{key:"getNextItemTitle",value:function(){var e,t=this.getNextItem();return void 0!==t?(null==t?void 0:t.title)||(null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.title):""}},{key:"render",value:function(){var e,t,i,r,n,a,l,s,c,u=this;if(!(null===(e=this.items)||void 0===e?void 0:e.length))return"";var d=this.listTextSingular?this.listTextSingular:"Video",p=this.listTextPlural?this.listTextPlural:"Videos";return(0,o.h)("presto-playlist-ui",null,(null===(t=this.currentPlaylistItem.config)||void 0===t?void 0:t.src)?(0,o.h)("presto-player",Object.assign({slot:"preview",src:null===(i=this.currentPlaylistItem.config)||void 0===i?void 0:i.src},this.currentPlaylistItem.config,{video_id:null===(r=this.currentPlaylistItem.config)||void 0===r?void 0:r.id,id:"presto-player-".concat(null===(n=this.currentPlaylistItem.config)||void 0===n?void 0:n.id),"media-title":null===(a=this.currentPlaylistItem.config)||void 0===a?void 0:a.title,class:null===(l=this.currentPlaylistItem.config)||void 0===l?void 0:l.playerClass,key:null===(s=this.currentPlaylistItem.config)||void 0===s?void 0:s.id,provider:null===(c=this.currentPlaylistItem.config)||void 0===c?void 0:c.provider,onPlayerReady:function(e){u.currentPlyr=e.detail,u.el.style.height=null,u.el.style.width=null},onPlayedMedia:function(){return u.playing=!0},onPausedMedia:function(){return u.playing=!1},onEndedMedia:function(){return u.overlay.show=!0}})):(0,o.h)("slot",{name:"unauthorized",slot:"preview"}),(0,o.h)("div",{slot:"title"},this.heading||"Playlist"),(0,o.h)("div",{slot:"count"},this.items.length," ",this.items.length>1?p:d),this.items.map((function(e){var t,i,r,n;return(0,o.h)("presto-playlist-item",{slot:"list",onClick:function(){return u.handleItemClick(e)},active:(null===(t=u.currentPlaylistItem)||void 0===t?void 0:t.id)===(null==e?void 0:e.id),playing:(null===(i=u.currentPlaylistItem)||void 0===i?void 0:i.id)===(null==e?void 0:e.id)&&u.playing,class:(null===(r=u.currentPlaylistItem)||void 0===r?void 0:r.id)===(null==e?void 0:e.id)?"active":"",key:null==e?void 0:e.id,onTriggerPause:function(){return u.handlePause()},onTriggerPlay:function(){return u.handlePlay()}},(0,o.h)("span",{slot:"item-title"},(0,o.h)("span",null,(null==e?void 0:e.title)||(null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.title))),(0,o.h)("span",{slot:"item-duration"},(0,o.h)("span",null,null==e?void 0:e.duration)))})))}},{key:"el",get:function(){return(0,o.g)(this)}}],[{key:"watchers",get:function(){return{currentPlyr:["handleCurrentPlay"]}}}]),e}();a.style=":host{display:block;overflow:hidden}presto-player{opacity:0;visibility:hidden;transition:0.35s opacity, 0.35s visibility}presto-player.ready{opacity:1;visibility:visible}"},9458:function(e,t,i){i.r(t),i.d(t,{presto_search_bar_ui:function(){return u}});var r=i(5671),n=i(3144),o=i(1368),a=function(){return(0,o.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,o.h)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,o.h)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))},l=function(){return(0,o.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,o.h)("polyline",{points:"9 18 15 12 9 6"}))},s=function(){return(0,o.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,o.h)("polyline",{points:"15 18 9 12 15 6"}))},c=function(){return(0,o.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"search-bar-icon"},(0,o.h)("circle",{cx:"11",cy:"11",r:"8"}),(0,o.h)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))},u=function(){function e(t){(0,r.Z)(this,e),(0,o.r)(this,t),this.previousNav=(0,o.c)(this,"previousNav",7),this.nextNav=(0,o.c)(this,"nextNav",7),this.search=(0,o.c)(this,"search",7),this.focusChange=(0,o.c)(this,"focusChange",7),this.value=void 0,this.placeholder=void 0,this.hasNavigation=void 0,this.focused=void 0,this.placeholderWidth=void 0}return(0,n.Z)(e,[{key:"handleSearch",value:function(e){e.preventDefault(),this.value=e.target.value}},{key:"handleFocus",value:function(){this.focused=!0}},{key:"handleBlur",value:function(){this.value||(this.focused=!1)}},{key:"componentDidLoad",value:function(){this.handlePlaceholderSize()}},{key:"handlePlaceholderSize",value:function(){var e=this;setTimeout((function(){e.placeholderWidth=e.placeholderElement.offsetWidth}),50)}},{key:"handleValueChange",value:function(){this.search.emit(this.value)}},{key:"watchPropHandler",value:function(e){this.focusChange.emit(e)}},{key:"handleClick",value:function(){var e=this;this.focused=!0,setTimeout((function(){e.input.focus()}),50)}},{key:"handleClear",value:function(e){return e.preventDefault(),e.stopImmediatePropagation(),this.value="",this.focused=!1,!1}},{key:"handleNext",value:function(e){e.stopImmediatePropagation(),e.preventDefault(),this.nextNav.emit()}},{key:"handlePrevious",value:function(e){e.stopImmediatePropagation(),e.preventDefault(),this.previousNav.emit()}},{key:"render",value:function(){var e=this;return(0,o.h)("div",{key:"d7b960d71649846a8f0e27257ee80e0b6800d94e",class:{"search-bar":!0,"search-bar--is-active":this.focused||!!this.value,"search-bar--has-navigation":this.hasNavigation},onClick:function(){return e.handleClick()}},(0,o.h)("span",{key:"b1944c3644e89bc074bdafaa560cfac3dd4a8281",class:"search-bar__search-icon search-bar__icon"},(0,o.h)(c,{key:"8028bc5c605cfd0eae9cbfe811ffcada85768ab6"})),(0,o.h)("div",{key:"e7524109687bfa22fd10cdecd6a71ed8432d7671",class:"search-bar__placeholder",ref:function(t){return e.placeholderElement=t},"aria-hidden":!0},this.placeholder),(0,o.h)("input",{key:"1b0da4f3908d2129c7b28214b0fcc5422c4db607",type:"text",value:this.value,placeholder:this.placeholder,ref:function(t){return e.input=t},style:{width:(this.placeholderWidth||0)+"px"},onInput:function(t){return e.handleSearch(t)},onFocus:function(){return e.handleFocus()},onBlur:function(){return e.handleBlur()}}),(0,o.h)("span",{key:"89db2bd52d7672558f3f8b30c0e6c52d834eb4d9",class:"search-bar__controls"},(0,o.h)("span",{key:"c4187fee0a2268d95dfbaa27507cb76236b28c97",class:"search-bar__control-prev",onClick:function(t){return e.handlePrevious(t)}},(0,o.h)(s,{key:"5ba6a4a8a221e43842ced26e9c2f0b61075a1aac"})),(0,o.h)("span",{key:"76aa40f03ee80a7a486b88d7e3a55ecb3cbb62cb",class:"search-bar__control-next",onClick:function(t){return e.handleNext(t)}},(0,o.h)(l,{key:"b8bc259fdcc0e3c06c0b0dafad7512d2897c9b22"})),(0,o.h)("div",{key:"e64666fb5be8412a8dead167c5b0c28fa02c8b1f",class:"search-bar__control-clear",onClick:function(t){return e.handleClear(t)}},(0,o.h)(a,{key:"e871f7e8b626e28500368cf46faf05ee4a4aed93"}))))}}],[{key:"watchers",get:function(){return{placeholder:["handlePlaceholderSize"],value:["handleValueChange"],focused:["watchPropHandler"]}}}]),e}();u.style=':host{display:block}.search-bar{position:relative;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif);font-size:16px;color:#ddd;z-index:1;display:flex;align-items:center;gap:10px}.search-bar>*{height:41px}.search-bar__controls{display:flex;align-items:stretch;position:absolute;right:0}.search-bar__controls svg{display:block;width:25px;height:25px}.search-bar__placeholder{height:0;font-weight:bold;visibility:hidden;position:absolute;transition:none;white-space:nowrap}.search-bar input{z-index:1;box-sizing:border-box;background:transparent;border:none;color:#fff;font-size:16px;transition:width 0.25s ease;outline:none;padding:0}.search-bar input::placeholder{color:#fff}.search-bar__control-prev,.search-bar__control-next,.search-bar__control-clear{opacity:0;visibility:hidden;transition:0.3s cubic-bezier(0.165, 0.84, 0.44, 1);transform-origin:center center;padding:0;border:0;background:0;cursor:pointer;display:flex;flex-direction:column;justify-content:center;z-index:1}.search-bar__control-clear{transform:scale(0.5)}.search-bar--is-active input{width:300px !important;padding-right:26px}.search-bar--is-active.search-bar--has-navigation .search-bar__control-prev,.search-bar--is-active.search-bar--has-navigation .search-bar__control-next{opacity:1;visibility:visible}.search-bar--is-active.search-bar--has-navigation input{padding-right:80px}.search-bar--is-active .search-bar__control-clear{transform:scale(1);opacity:1;visibility:visible;cursor:pointer}.search-bar__icon{width:20px;height:20px;flex-grow:0;flex-shrink:0;cursor:pointer}.search-bar__icon svg{width:20px;height:20px}'},4317:function(e,t,i){i.r(t),i.d(t,{presto_timestamp:function(){return a}});var r=i(5671),n=i(3144),o=i(1368),a=function(){function e(t){(0,r.Z)(this,e),(0,o.r)(this,t),this.time=void 0}return(0,n.Z)(e,[{key:"handleClick",value:function(e){e.preventDefault();var t=document.body.querySelector("presto-player");t&&t.goToAndPlay(this.timeToSeconds(this.time))}},{key:"timeToSeconds",value:function(e){var t,i=e.split(":");return i.length>1&&(t=60*parseInt(i[0])),parseInt(i[1])+parseInt(t)}},{key:"render",value:function(){var e=this;return(0,o.h)("a",{key:"643d2582416f86c927486f331bbb21fa631fc59b",href:"#",class:"presto-timestamp",onClick:function(t){return e.handleClick(t)}},(0,o.h)("slot",{key:"6367df80d3a83fdc2acf7d1b7af9eca0525495f5"},this.time))}}]),e}();a.style=":host{display:inline}"},5704:function(e,t,i){i.r(t),i.d(t,{presto_video_curtain_ui:function(){return a}});var r=i(5671),n=i(3144),o=i(1368),a=function(){function e(t){(0,r.Z)(this,e),(0,o.r)(this,t),this.actionUrl=void 0}return(0,n.Z)(e,[{key:"render",value:function(){return(0,o.h)("div",{key:"214b7d2ff86907b338e86701b16faad9796309c8",class:"curtain",part:"base"},(0,o.h)("div",{key:"dc88fa462b01a7290e428562f6a6ee960d0b4c09",class:"content",part:"curtain-content"},(0,o.h)("slot",{key:"aa77802be0eac039a9f5cc6c3ebf6200c0896937"})))}}]),e}();a.style=':host{font-size:16px}.curtain{position:relative;font-family:var(--presto-curtain-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");background-color:var(--presto-curtain-background-color, #000);text-align:var(--presto-curtain-text-align, center);color:var(--presto-curtain-text-color, #fff);padding-bottom:var(--presto-curtain-size, 56.25%);font-size:var(--presto-curtain-font-size, 1.5em)}::slotted(:not(:first-child)){margin-top:14px}.content{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:48px}'},4178:function(e,t,i){i.r(t),i.d(t,{presto_video:function(){return a}});var r=i(5671),n=i(3144),o=i(1368),a=function(){function e(t){(0,r.Z)(this,e),(0,o.r)(this,t),this.getRef=void 0,this.autoplay=void 0,this.src=void 0,this.preload=void 0,this.poster=void 0,this.player=void 0,this.tracks=void 0,this.playsinline=void 0,this.provider=void 0,this.videoAttributes=void 0}return(0,n.Z)(e,[{key:"render",value:function(){return(0,o.h)("video",Object.assign({key:"f8942eef52dd555ddaaad75cdff70dea9e18488a",class:{"presto-player__player":!0,"plyr__video-embed":["youtube","vimeo"].includes(this.provider)},part:"video",ref:this.getRef,autoplay:this.autoplay,preload:this.preload,"data-poster":this.poster,playsinline:this.playsinline},this.videoAttributes),(0,o.h)("source",{key:"ab9be0a15b7d9a4df81e19b6518eb60d074ff580",src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((function(e){return(0,o.h)("track",{kind:"captions",label:(null==e?void 0:e.label)?e.label:"Captions",src:null==e?void 0:e.src,srclang:(null==e?void 0:e.srcLang)?null==e?void 0:e.srcLang:"en"})})))}}]),e}();a.style=":host{display:block}"},4723:function(e,t,i){i.r(t),i.d(t,{ResizeObserver:function(){return F},ResizeObserverEntry:function(){return x},ResizeObserverSize:function(){return s}});var r,n=[],o="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var a,l=function(e){return Object.freeze(e)},s=function(e,t){this.inlineSize=e,this.blockSize=t,l(this)},c=function(){function e(e,t,i,r){return this.x=e,this.y=t,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,l(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),u=function(e){return e instanceof SVGElement&&"getBBox"in e},d=function(e){if(u(e)){var t=e.getBBox(),i=t.width,r=t.height;return!i&&!r}var n=e,o=n.offsetWidth,a=n.offsetHeight;return!(o||a||e.getClientRects().length)},p=function(e){var t;if(e instanceof Element)return!0;var i=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(i&&e instanceof i.Element)},h="undefined"!=typeof window?window:{},f=new WeakMap,y=/auto|scroll/,v=/^tb|vertical/,g=/msie|trident/i.test(h.navigator&&h.navigator.userAgent),m=function(e){return parseFloat(e||"0")},b=function(e,t,i){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===i&&(i=!1),new s((i?t:e)||0,(i?e:t)||0)},_=l({devicePixelContentBoxSize:b(),borderBoxSize:b(),contentBoxSize:b(),contentRect:new c(0,0,0,0)}),w=function(e,t){if(void 0===t&&(t=!1),f.has(e)&&!t)return f.get(e);if(d(e))return f.set(e,_),_;var i=getComputedStyle(e),r=u(e)&&e.ownerSVGElement&&e.getBBox(),n=!g&&"border-box"===i.boxSizing,o=v.test(i.writingMode||""),a=!r&&y.test(i.overflowY||""),s=!r&&y.test(i.overflowX||""),p=r?0:m(i.paddingTop),h=r?0:m(i.paddingRight),w=r?0:m(i.paddingBottom),k=r?0:m(i.paddingLeft),x=r?0:m(i.borderTopWidth),T=r?0:m(i.borderRightWidth),P=r?0:m(i.borderBottomWidth),S=k+h,C=p+w,A=(r?0:m(i.borderLeftWidth))+T,E=x+P,L=s?e.offsetHeight-E-e.clientHeight:0,M=a?e.offsetWidth-A-e.clientWidth:0,I=n?S+A:0,O=n?C+E:0,z=r?r.width:m(i.width)-I-M,j=r?r.height:m(i.height)-O-L,N=z+S+M+A,R=j+C+L+E,Z=l({devicePixelContentBoxSize:b(Math.round(z*devicePixelRatio),Math.round(j*devicePixelRatio),o),borderBoxSize:b(N,R,o),contentBoxSize:b(z,j,o),contentRect:new c(k,p,z,j)});return f.set(e,Z),Z},k=function(e,t,i){var n=w(e,i),o=n.borderBoxSize,a=n.contentBoxSize,l=n.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return l;case r.BORDER_BOX:return o;default:return a}},x=function(e){var t=w(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=l([t.borderBoxSize]),this.contentBoxSize=l([t.contentBoxSize]),this.devicePixelContentBoxSize=l([t.devicePixelContentBoxSize])},T=function(e){if(d(e))return 1/0;for(var t=0,i=e.parentNode;i;)t+=1,i=i.parentNode;return t},P=function(){var e=1/0,t=[];n.forEach((function(i){if(0!==i.activeTargets.length){var r=[];i.activeTargets.forEach((function(t){var i=new x(t.target),n=T(t.target);r.push(i),t.lastReportedSize=k(t.target,t.observedBox),n<e&&(e=n)})),t.push((function(){i.callback.call(i.observer,r,i.observer)})),i.activeTargets.splice(0,i.activeTargets.length)}}));for(var i=0,r=t;i<r.length;i++)(0,r[i])();return e},S=function(e){n.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(i){i.isActive()&&(T(i.target)>e?t.activeTargets.push(i):t.skippedTargets.push(i))}))}))},C=[],A=0,E={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],M=function(e){return void 0===e&&(e=0),Date.now()+e},I=!1,O=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!I){I=!0;var i,r=M(e);i=function(){var i=!1;try{i=function(){var e,t=0;for(S(t);n.some((function(e){return e.activeTargets.length>0}));)t=P(),S(t);return n.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:o}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=o),window.dispatchEvent(e)),t>0}()}finally{if(I=!1,e=r-M(),!A)return;i?t.run(1e3):e>0?t.run(e):t.start()}},function(e){if(!a){var t=0,i=document.createTextNode("");new MutationObserver((function(){return C.splice(0).forEach((function(e){return e()}))})).observe(i,{characterData:!0}),a=function(){i.textContent="".concat(t?t--:t++)}}C.push(e),a()}((function(){requestAnimationFrame(i)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,E)};document.body?t():h.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach((function(t){return h.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach((function(t){return h.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),z=function(e){!A&&e>0&&O.start(),!(A+=e)&&O.stop()},j=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=k(this.target,this.observedBox,!0);return e=this.target,u(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),N=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},R=new WeakMap,Z=function(e,t){for(var i=0;i<e.length;i+=1)if(e[i].target===t)return i;return-1},D=function(){function e(){}return e.connect=function(e,t){var i=new N(e,t);R.set(e,i)},e.observe=function(e,t,i){var r=R.get(e),o=0===r.observationTargets.length;Z(r.observationTargets,t)<0&&(o&&n.push(r),r.observationTargets.push(new j(t,i&&i.box)),z(1),O.schedule())},e.unobserve=function(e,t){var i=R.get(e),r=Z(i.observationTargets,t),o=1===i.observationTargets.length;r>=0&&(o&&n.splice(n.indexOf(i),1),i.observationTargets.splice(r,1),z(-1))},e.disconnect=function(e){var t=this,i=R.get(e);i.observationTargets.slice().forEach((function(i){return t.unobserve(e,i.target)})),i.activeTargets.splice(0,i.activeTargets.length)},e}(),F=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");D.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");D.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");D.unobserve(this,e)},e.prototype.disconnect=function(){D.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},6578:function(e,t,i){function r(e){var t=function(e,t){var r,n=i().post_id,o={action:"sync_video_playback",currentTime:e.currentTime,duration:e.duration,post_id:n};o[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];var a=o;t&&(a=Object.assign(o,t)),jQuery.post(null===(r=_tutorobject)||void 0===r?void 0:r.ajaxurl,a)},i=function(){var e=jQuery("#tutor_video_tracking_information").val();return e?JSON.parse(e):{}},r=0;e.on("timeupdate",(function(e){var i=e.detail.plyr;r/4>=30&&(t(i),r=0),r++})),e.on("ended",(function(e){var r=i(),n=e.detail.plyr;t(n,{is_ended:!0}),r.autoload_next_course_content&&function(){var e,t;if(_tutorobject.nonce_key&&null!==(e=_tutorobject)&&void 0!==e&&e.ajaxurl){var r={action:"autoload_next_course_content",post_id:i().post_id};r[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key],jQuery.post(null===(t=_tutorobject)||void 0===t?void 0:t.ajaxurl,r).done((function(e){var t;null!=e&&e.success&&null!=e&&null!==(t=e.data)&&void 0!==t&&t.next_url&&(location.href=e.data.next_url)}))}}()}))}i.r(t),i.d(t,{default:function(){return r}})},3878:function(e,t,i){function r(e){if(Array.isArray(e))return e}i.d(t,{Z:function(){return r}})},7326:function(e,t,i){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i.d(t,{Z:function(){return r}})},5861:function(e,t,i){function r(e,t,i,r,n,o,a){try{var l=e[o](a),s=l.value}catch(e){return void i(e)}l.done?t(s):Promise.resolve(s).then(r,n)}function n(e){return function(){var t=this,i=arguments;return new Promise((function(n,o){var a=e.apply(t,i);function l(e){r(a,n,o,l,s,"next",e)}function s(e){r(a,n,o,l,s,"throw",e)}l(void 0)}))}}i.d(t,{Z:function(){return n}})},5671:function(e,t,i){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i.d(t,{Z:function(){return r}})},3144:function(e,t,i){i.d(t,{Z:function(){return o}});var r=i(7343);function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(0,r.Z)(n.key),n)}}function o(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:function(e,t,i){i.d(t,{Z:function(){return n}});var r=i(7343);function n(e,t,i){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},1120:function(e,t,i){function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}i.d(t,{Z:function(){return r}})},136:function(e,t,i){i.d(t,{Z:function(){return n}});var r=i(9611);function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},1902:function(e,t,i){function r(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var r,n,_x,o,a=[],_n=!0,l=!1;try{if(_x=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;_n=!1}else for(;!(_n=(r=_x.call(i)).done)&&(a.push(r.value),a.length!==t);_n=!0);}catch(e){l=!0,n=e}finally{try{if(!_n&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(l)throw n}}return a}}i.d(t,{Z:function(){return r}})},5267:function(e,t,i){function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}i.d(t,{Z:function(){return r}})},5987:function(e,t,i){i.d(t,{Z:function(){return n}});var r=i(3366);function n(e,t){if(null==e)return{};var i,n,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}},3366:function(e,t,i){function r(e,t){if(null==e)return{};var i,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)i=o[r],t.indexOf(i)>=0||(n[i]=e[i]);return n}i.d(t,{Z:function(){return r}})},2963:function(e,t,i){i.d(t,{Z:function(){return o}});var r=i(1002),n=i(7326);function o(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,n.Z)(e)}},9611:function(e,t,i){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}i.d(t,{Z:function(){return r}})},3324:function(e,t,i){i.d(t,{Z:function(){return l}});var r=i(3878),n=i(1902),o=i(181),a=i(5267);function l(e,t){return(0,r.Z)(e)||(0,n.Z)(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},5512:function(e,t,i){i.d(t,{Z:function(){return n}});var r=i(1002);function n(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==(0,r.Z)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},7343:function(e,t,i){i.d(t,{Z:function(){return o}});var r=i(1002),n=i(5512);function o(e){var t=(0,n.Z)(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}}}]);