!function(){"use strict";vare={3921:function(e,t,n){vari={};n.r(i),n.d(i,{addMediaToPlaylist:function(){returnse},addNewPlaylist:function(){returnce},copyEmbedMediaCode:function(){returnne},copyShareLink:function(){returnte},createPlaylist:function(){returnre},deleteComment:function(){returnae},dislikeMedia:function(){return$},likeMedia:function(){returnX},loadMediaData:function(){returnK},removeMedia:function(){returnie},removeMediaFromPlaylist:function(){returnle},reportMedia:function(){returnee},submitComment:function(){returnoe},undislikeMedia:function(){returnQ},unlikeMedia:function(){returnJ}});varo=n(2667),a=(n(5101),n(5466)),r=(n(6116),n(9518)),s=n(3074),l=n.n(s),c=n(920),u=n.n(c),d=n(2276),p=n(2787),f=n(4426),m=n(3811);functionh(e){vart=null,n=e.split(".");if(n.length)switch(n=n[n.length-1]){case"webm":t="audio/webm";break;case"flac":t="audio/flac";break;case"wave":t="audio/wave";break;case"wav":t="audio/wav";break;case"ogg":case"ogg":t="audio/ogg";break;case"mp3":case"mpeg":t="audio/mpeg"}returnt}n(2322),n(9268);vary=n(9688),b=n(5793),g=n(6983),v=n(9450);functionw(e){return(w="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(e)}function_(e,t){for(varn=0;n<t.length;n++){vari=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}functionk(e,t){return(k=Object.setPrototypeOf||function(e,t){returne.__proto__=t,e})(e,t)}functionE(e,t){return!t||"object"!==w(t)&&"function"!=typeoft?P(e):t}functionP(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}functionC(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)})(e)}newv.Z;varO=function(e){!function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(s,e);vart,n,i,o,r=(i=s,o=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnDate.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){vare,t=C(i);if(o){varn=C(this).constructor;e=Reflect.construct(t,arguments,n)}elsee=t.apply(this,arguments);returnE(this,e)});functions(e){vart;!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,s),t=r.call(this,e);varn=d.Z.get("media-data");t.AudioPlayerData={},t.audioStartedPlaying=!1;vari=(0,y.U)(n.original_media_url,f.Z.get("config-site").url);t.videoSources=[{src:i,type:h(i)}],t.videoPoster=n.poster_url,t.videoPoster=t.videoPoster?t.videoPoster:n.thumbnail_url,t.videoPoster=t.videoPoster?(0,y.U)(t.videoPoster,f.Z.get("config-site").url):"",t.updatePlayerVolume=t.updatePlayerVolume.bind(P(t)),t.onAudioEnd=t.onAudioEnd.bind(P(t)),t.onAudioRestart=t.onAudioRestart.bind(P(t)),f.Z.on("switched_media_auto_play",t.onUpdateMediaAutoPlay.bind(P(t))),t.wrapperClick=t.wrapperClick.bind(P(t));varo=newv.Z;returno.update(d.Z.get("media-data").duration),t.durationISO8601=o.ISO8601(),t}returnt=s,(n=[{key:"componentDidMount",value:function(){this.videoSources.length||console.warn("Audio DEBUG:","Audio file doesn't exist"),this.recommendedMedia=d.Z.get("media-data").related_media.length?newg.Z(d.Z.get("media-data").related_media,this.refs.AudioElem.parentNode,this.props.inEmbed):null,this.upNextLoaderView=!this.props.inEmbed&&d.Z.get("media-data").related_media.length?newb.Z(d.Z.get("media-data").related_media[0]):null,document.hasFocus()||"visible"===document.visibilityState?this.initPlayerInstance():(this.initPlayerInstance=this.initPlayerInstance.bind(this),window.addEventListener("focus",this.initPlayerInstance),document.addEventListener("visibilitychange",this