!function(d){"use strict";const n=function(){const e=new WeakMap;function n(){e.set(this,{$container:null,id:0}),this._init()}return n.prototype={_init:function(){this._buildDOM()},_buildDOM:function(){var n=e.get(this);n.$container=d("<div>").addClass("mcmd-notify-container"),d("body").append(n.$container)},_animationEvent:function(){var n,i=document.createElement("fakeelement"),t={animation:"animationend",MSAnimationEnd:"msAnimationEnd",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(n in t)if(void 0!==i.style[n])return t[n];return null},_getNotify:function(n){return(n=e.get(this).$container.find(`.mcmd-notify[data-id='${n}']`)).length?n:null},_showNotify:function(n,i,t){setTimeout(this.close.bind(this,i),t||4e3)},_removeNotify:function(n){n.remove()},show:function(n,i,t){var o=e.get(this),i=d("<div>").addClass("mcmd-notify").addClass(i).attr({"data-id":++o.id}),n=d("<div>").addClass("mcmd-title").html(n);return i.append(n),o.$container.append(i),i.removeClass("mcmd-fx-show mcmd-fx-hide"),i.addClass("mcmd-fx-show"),i.one(this._animationEvent(),this._showNotify.bind(this,i,o.id,t)),o.id},close:function(n){(n=this._getNotify(n))&&(n.removeClass("mcmd-fx-show mcmd-fx-hide"),n.addClass("mcmd-fx-hide"),n.one(this._animationEvent(),this._removeNotify.bind(this,n)))}},n}();window.MEDIACOMMANDER=window.MEDIACOMMANDER||{},window.MEDIACOMMANDER.PLUGINS=window.MEDIACOMMANDER.PLUGINS||{},window.MEDIACOMMANDER.PLUGINS.NOTIFY=function(){return new n}}(jQuery);