Build 589089stable
Module 848320
699 characters · in c6f8965010d3789c.jsDependencies
Source Raw
function(e,t,n){"use strict";var r,a,o,i,s,l=n(308227),c=n(126726),u=n(241091),d=n(282532).set,p=n(74414),h=n(124673),f=n(610594),m=n(748415),y=n(184110),v=l.MutationObserver||l.WebKitMutationObserver,g=l.document,b=l.process,_=l.Promise,k=c("queueMicrotask");if(!k){var C=new p,w=function(){var e,t;for(y&&(e=b.domain)&&e.exit();t=C.get();)try{t()}catch(e){throw C.head&&r(),e}e&&e.enter()};h||y||m||!v||!g?!f&&_&&_.resolve?((i=_.resolve(void 0)).constructor=_,s=u(i.then,i),r=function(){s(w)}):y?r=function(){b.nextTick(w)}:(d=u(d,l),r=function(){d(w)}):(a=!0,o=g.createTextNode(""),new v(w).observe(o,{characterData:!0}),r=function(){o.data=a=!a}),k=function(e){C.head||r(),C.add(e)}}e.exports=k}