module.exports = "(function(e,t,n){var r=n(5894),o=n(5077),c=n(5035),a=n(2686);function u(e,t){if(!r.isFunction(e.value))throw new Error(\"Custom code must be a function\");this.change=e}u.prototype.apply=function(){var e=o();try{a.apply(this.change.value),e.resolve()}catch(t){e.reject(t)}return e},__UNDO_CHANGES_UPON_VIEW_DEACTIVATION__&&(u.prototype.undo=function(){return o().resolve(c.changeState.IGNORED)}),e.exports=function(e){e.registerChangeApplier(c.changeType.CUSTOM_CODE,u)}})";