Module 314144

1,101 characters · in 29609.b896f2d9d6398168.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";var r,o,i,a,u=n(860511),s=n(985848),l=n(221015),c=n(339626),f=n(210140),d=n(503628),h=n(469520),p=n(192819),m=n(447280),v=n(627),y=n(705333),g=n(13570),b=u.setImmediate,w=u.clearImmediate,_=u.process,D=u.Dispatch,k=u.Function,E=u.MessageChannel,x=u.String,C=0,S={},A="onreadystatechange";d(function(){r=u.location});var O=function(e){if(f(S,e)){var t=S[e];delete S[e],t()}},B=function(e){return function(){O(e)}},T=function(e){O(e.data)},F=function(e){u.postMessage(x(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){v(arguments.length,1);var t=c(e)?e:k(e),n=p(arguments,1);return S[++C]=function(){s(t,void 0,n)},o(C),C},w=function(e){delete S[e]},g?o=function(e){_.nextTick(B(e))}:D&&D.now?o=function(e){D.now(B(e))}:E&&!y?(a=(i=new E).port2,i.port1.onmessage=T,o=l(a.postMessage,a)):u.addEventListener&&c(u.postMessage)&&!u.importScripts&&r&&"file:"!==r.protocol&&!d(F)?(o=F,u.addEventListener("message",T,!1)):o=A in m("script")?function(e){h.appendChild(m("script"))[A]=function(){h.removeChild(this),O(e)}}:function(e){setTimeout(B(e),0)}),e.exports={set:b,clear:w}}