text: !function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.signals=n()}}(function(){return function n(e,r,o){function t(l,u){if(!r[l]){if(!e[l]){var f="function"==typeof require&&require;if(!u&&f)return f(l,!0);if(i)return i(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var a=r[l]={exports:{}};e[l][0].call(a.exports,function(n){var r=e[l][1][n];return t(r?r:n)},a,a.exports,n,e,r,o)}return r[l].exports}for(var i="function"==typeof require&&require,l=0;l<o.length;l++)t(o[l]);return t}({1:[function(n,e,r){r.signal=n("./lib/signal")},{"./lib/signal":2}],2:[function(n,e,r){function o(n){function e(n,e,o){isNaN(e)||(o=e,e=void 0),isNaN(o)&&(o=1e3);var l=function(){var r=[].slice.call(arguments);return n.apply(e,r)};l.priority=o,r.push(l),r.sort(t);var u={disconnect:function(){if(n){n=null;var e=r.indexOf(l);r.splice(e,1),l=null}}};return i.push(u),u}var r=[],i=[],l=!1,u=!1;return n=String(n||"")||"Unknown",e.emit=function(){var n,e;l=!0,n=[].slice.call(arguments);for(var t=r.length-1;t>=0&&!e;t-=1)e=o.CANCEL===r[t].apply(void 0,n);return l=!1,u&&(u=!1,this.disconnectAll()),!e},e.unlock=function(){return e},e.lock=function(r){function o(){return e.apply(void 0,[].slice.call(arguments))}if(!r)throw new Error("["+n+"] Cannot lock a signal with a falsy key.");return o.emit=function(){throw new Error("["+n+"] Cannot emit a locked signal.")},o.unlock=function(o){if(o===r)return e;throw new Error("["+n+"] Failed to unlock locked signal.")},o.lock=function(){throw new Error("["+n+"] Cannot lock a locked signal.")},o},e.disconnectAll=function(){if(l||u)u=!0;else for(;i.length;)i.pop().disconnect();return e},e}function t(n,e){return n.priority-e.priority}o.CANCEL={},e.exports=o},{}]},{},[1])(1)});
  //# sourceMappingURL=signals.min.js.map