module.exports = "(function(e,i,t){var n=t(5894),_=t(7358),l=t(4438);e.exports={initialize:function(){this.__state={},n.each(l.Lifecycle,n.bind((function(e){this.__state[e]=[]}),this)),this.on(_.ADD_CLEANUP_FN,this.__addCleanupFn),this.on(_.CLEAR_CLEANUP_FN,this.__clearCleanupFn)},getCleanupFns:function(e){if(__INVARIANT__&&!this.__state[e])throw new Error(\"Invalid lifecycle \"+e);return n.cloneDeep(this.__state[e])},__addCleanupFn:function(e){if(__INVARIANT__&&!this.__state[e.lifecycle])throw new Error(\"Invalid lifecycle \"+e.lifecycle);this.__state[e.lifecycle].push(e.cleanupFn),this.emitChange()},__clearCleanupFn:function(e){var i=this.__state[e.lifecycle];if(__INVARIANT__&&!i)throw new Error(\"Invalid lifecycle \"+e.lifecycle);if(e.cleanupFn){var t=i.indexOf(e.cleanupFn);t>-1&&(i.splice(t,1),this.emitChange())}else this.__state[e.lifecycle]=[],this.emitChange()}}})";