@appscode/ui-builder
Version:
## Motivation
1 lines • 1.23 kB
JavaScript
import{al as e,U as t,ag as n,f as a,o,am as s,an as i,_ as r}from"./wrapper-5d451278.js";var c,p,d,f=/(iphone|ipod|ipad).*applewebkit/i.test(e),l=t.location,m=t.setImmediate,u=t.clearImmediate,h=t.process,g=t.MessageChannel,v=t.Dispatch,w=0,y={},I=function(e){if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},b=function(e){return function(){I(e)}},M=function(e){I(e.data)},C=function(e){t.postMessage(e+"",l.protocol+"//"+l.host)};m&&u||(m=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++w]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},c(w),w},u=function(e){delete y[e]},"process"==n(h)?c=function(e){h.nextTick(b(e))}:v&&v.now?c=function(e){v.now(b(e))}:g&&!f?(d=(p=new g).port2,p.port1.onmessage=M,c=a(d.postMessage,d,1)):!t.addEventListener||"function"!=typeof postMessage||t.importScripts||o(C)||"file:"===l.protocol?c="onreadystatechange"in s("script")?function(e){i.appendChild(s("script")).onreadystatechange=function(){i.removeChild(this),I(e)}}:function(e){setTimeout(b(e),0)}:(c=C,t.addEventListener("message",M,!1)));var k={set:m,clear:u};r({global:!0,bind:!0,enumerable:!0,forced:!t.setImmediate||!t.clearImmediate},{setImmediate:k.set,clearImmediate:k.clear});