import PNotify from"./PNotify.js";let _open=PNotify.prototype.open,_close=PNotify.prototype.close;const callbacks=(t,e,o)=>{let s=t?t.get().modules:e.modules,i=s&&s.Callbacks?s.Callbacks:{};return i[o]?i[o]:()=>!0};function setup(t){t.key="Callbacks",t.getCallbacks=callbacks;let e=PNotify.alert,o=PNotify.notice,s=PNotify.info,i=PNotify.success,n=PNotify.error,a=(t,e)=>{callbacks(null,e,"beforeInit")(e);let o=t(e);return callbacks(o,null,"afterInit")(o),o};PNotify.alert=(t=>a(e,t)),PNotify.notice=(t=>a(o,t)),PNotify.info=(t=>a(s,t)),PNotify.success=(t=>a(i,t)),PNotify.error=(t=>a(n,t)),PNotify.modules.Callbacks=t}function create_main_fragment(t,e){return{c:noop,m:noop,p:noop,d:noop}}function PNotifyCallbacks(t){init(this,t),this._state=assign({},t.data),this._intro=!0,this._fragment=create_main_fragment(this,this._state),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function noop(){}function init(t,e){t._handlers=blankObject(),t._bind=e._bind,t.options=e,t.root=e.root||t,t.store=t.root.store||e.store}function assign(t,e){for(var o in e)t[o]=e[o];return t}function destroy(t){this.destroy=noop,this.fire("destroy"),this.set=noop,this._fragment.d(!1!==t),this._fragment=null,this._state={}}function get(){return this._state}function fire(t,e){var o=t in this._handlers&&this._handlers[t].slice();if(o)for(var s=0;s