(function(){var e=function(e){var t=this,n=function(){e.fn.triggerAsync=function(t,n,r,i){typeof n=="function"&&(r=n,n=undefined);if(this[0]){var s=e.Event(t),o=s.preventDefault;s.preventDefault=function(){o.apply(this,arguments),i&&i(this)},e.event.trigger({type:t,_success:r},n,this[0])}else r.call(this);return this};var t={},n=/\.(.*)$/,r=e.event;r.special["default"]={add:function(e){t[e.namespace.replace(n,"")]=!0},setup:function(){return!0}};var i=r.trigger;r.trigger=function(n,r,s,o){var u=n.type||n,a=[],n=typeof n=="object"?n[e.expando]?n:new e.Event(u,n):new e.Event(u),f=i.call(e.event,n,r,s,o);return!o&&!n.isDefaultPrevented()&&n.type.indexOf("default")!==0&&(i("default."+n.type,r,s),n._success&&n._success(n)),n.isPaused&&n.isPaused()&&(n.isDefaultPrevented=n.pausedState.isDefaultPrevented,n.isPropagationStopped=n.pausedState.isPropagationStopped),f}};n(),t.resolveWith(n)};dispatch("mvc/event.default").containing(e).to("Foundry/2.1 Modules")})();