$.mage=$.mage||{},$.fn.mage=function(t,a){return a=a||{},this.each(function(e,n){mage.applyFor(n,a,t)}),this},$.extend($.mage,{init:function(){return mage.apply(),this},redirect:function(e,n,t,a){var i;a=!!a,n=n||"assign",i=function(){window.location[n]("reload"===n?a:e)},(t=t||0)?setTimeout(i,t):i()},isValidSelector:function(e){try{return document.querySelector(e),!0}catch(e){return!1}}}),$("body").on("contentUpdated",function(){mage&&mage.apply()});