UNPKG

@runeya/runeya

Version:

Monitor processes as a stack

2 lines (1 loc) 12.6 kB
var bt=typeof global=="object"&&global&&global.Object===Object&&global,Ct=typeof self=="object"&&self&&self.Object===Object&&self,f=bt||Ct||Function("return this")(),T=f.Symbol,dt=Object.prototype,Et=dt.hasOwnProperty,It=dt.toString,w=T?T.toStringTag:void 0;function Mt(t){var e=Et.call(t,w),r=t[w];try{t[w]=void 0;var n=!0}catch{}var u=It.call(t);return n&&(e?t[w]=r:delete t[w]),u}var Ft=Object.prototype,Dt=Ft.toString;function Ut(t){return Dt.call(t)}var Bt="[object Null]",zt="[object Undefined]",W=T?T.toStringTag:void 0;function x(t){return t==null?t===void 0?zt:Bt:W&&W in Object(t)?Mt(t):Ut(t)}function P(t){return t!=null&&typeof t=="object"}var L=Array.isArray;function E(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function aa(t){return t}var Gt="[object AsyncFunction]",Lt="[object Function]",Nt="[object GeneratorFunction]",Rt="[object Proxy]";function ht(t){if(!E(t))return!1;var e=x(t);return e==Lt||e==Nt||e==Gt||e==Rt}var F=f["__core-js_shared__"],q=function(){var t=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Vt(t){return!!q&&q in t}var Ht=Function.prototype,Kt=Ht.toString;function j(t){if(t!=null){try{return Kt.call(t)}catch{}try{return t+""}catch{}}return""}var Wt=/[\\^$.*+?()[\]{}|]/g,qt=/^\[object .+?Constructor\]$/,Xt=Function.prototype,Yt=Object.prototype,Jt=Xt.toString,Zt=Yt.hasOwnProperty,Qt=RegExp("^"+Jt.call(Zt).replace(Wt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kt(t){if(!E(t)||Vt(t))return!1;var e=ht(t)?Qt:qt;return e.test(j(t))}function te(t,e){return t==null?void 0:t[e]}function _(t,e){var r=te(t,e);return kt(r)?r:void 0}var U=_(f,"WeakMap"),X=Object.create,ee=function(){function t(){}return function(e){if(!E(e))return{};if(X)return X(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),Y=function(){try{var t=_(Object,"defineProperty");return t({},"",{}),t}catch{}}();function re(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var ne=9007199254740991,ae=/^(?:0|[1-9]\d*)$/;function oe(t,e){var r=typeof t;return e=e??ne,!!e&&(r=="number"||r!="symbol"&&ae.test(t))&&t>-1&&t%1==0&&t<e}function ie(t,e,r){e=="__proto__"&&Y?Y(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function yt(t,e){return t===e||t!==t&&e!==e}var se=Object.prototype,ce=se.hasOwnProperty;function ue(t,e,r){var n=t[e];(!(ce.call(t,e)&&yt(n,r))||r===void 0&&!(e in t))&&ie(t,e,r)}var fe=9007199254740991;function jt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=fe}function pe(t){return t!=null&&jt(t.length)&&!ht(t)}var le=Object.prototype;function _t(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||le;return t===r}function ge(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var be="[object Arguments]";function J(t){return P(t)&&x(t)==be}var Tt=Object.prototype,de=Tt.hasOwnProperty,he=Tt.propertyIsEnumerable,ye=J(function(){return arguments}())?J:function(t){return P(t)&&de.call(t,"callee")&&!he.call(t,"callee")};function je(){return!1}var vt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Z=vt&&typeof module=="object"&&module&&!module.nodeType&&module,_e=Z&&Z.exports===vt,Q=_e?f.Buffer:void 0,Te=Q?Q.isBuffer:void 0,$t=Te||je,ve="[object Arguments]",$e="[object Array]",me="[object Boolean]",we="[object Date]",Ae="[object Error]",Oe="[object Function]",Se="[object Map]",xe="[object Number]",Pe="[object Object]",Ce="[object RegExp]",Ee="[object Set]",Ie="[object String]",Me="[object WeakMap]",Fe="[object ArrayBuffer]",De="[object DataView]",Ue="[object Float32Array]",Be="[object Float64Array]",ze="[object Int8Array]",Ge="[object Int16Array]",Le="[object Int32Array]",Ne="[object Uint8Array]",Re="[object Uint8ClampedArray]",Ve="[object Uint16Array]",He="[object Uint32Array]",o={};o[Ue]=o[Be]=o[ze]=o[Ge]=o[Le]=o[Ne]=o[Re]=o[Ve]=o[He]=!0;o[ve]=o[$e]=o[Fe]=o[me]=o[De]=o[we]=o[Ae]=o[Oe]=o[Se]=o[xe]=o[Pe]=o[Ce]=o[Ee]=o[Ie]=o[Me]=!1;function Ke(t){return P(t)&&jt(t.length)&&!!o[x(t)]}function N(t){return function(e){return t(e)}}var mt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,A=mt&&typeof module=="object"&&module&&!module.nodeType&&module,We=A&&A.exports===mt,D=We&&bt.process,v=function(){try{var t=A&&A.require&&A.require("util").types;return t||D&&D.binding&&D.binding("util")}catch{}}(),k=v&&v.isTypedArray,qe=k?N(k):Ke,Xe=Object.prototype,Ye=Xe.hasOwnProperty;function Je(t,e){var r=L(t),n=!r&&ye(t),u=!r&&!n&&$t(t),s=!r&&!n&&!u&&qe(t),i=r||n||u||s,g=i?ge(t.length,String):[],d=g.length;for(var c in t)(e||Ye.call(t,c))&&!(i&&(c=="length"||u&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||oe(c,d)))&&g.push(c);return g}function wt(t,e){return function(r){return t(e(r))}}var Ze=wt(Object.keys,Object),Qe=Object.prototype,ke=Qe.hasOwnProperty;function tr(t){if(!_t(t))return Ze(t);var e=[];for(var r in Object(t))ke.call(t,r)&&r!="constructor"&&e.push(r);return e}function er(t){return pe(t)?Je(t):tr(t)}var O=_(Object,"create");function rr(){this.__data__=O?O(null):{},this.size=0}function nr(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ar="__lodash_hash_undefined__",or=Object.prototype,ir=or.hasOwnProperty;function sr(t){var e=this.__data__;if(O){var r=e[t];return r===ar?void 0:r}return ir.call(e,t)?e[t]:void 0}var cr=Object.prototype,ur=cr.hasOwnProperty;function fr(t){var e=this.__data__;return O?e[t]!==void 0:ur.call(e,t)}var pr="__lodash_hash_undefined__";function lr(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=O&&e===void 0?pr:e,this}function y(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}y.prototype.clear=rr;y.prototype.delete=nr;y.prototype.get=sr;y.prototype.has=fr;y.prototype.set=lr;function gr(){this.__data__=[],this.size=0}function I(t,e){for(var r=t.length;r--;)if(yt(t[r][0],e))return r;return-1}var br=Array.prototype,dr=br.splice;function hr(t){var e=this.__data__,r=I(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():dr.call(e,r,1),--this.size,!0}function yr(t){var e=this.__data__,r=I(e,t);return r<0?void 0:e[r][1]}function jr(t){return I(this.__data__,t)>-1}function _r(t,e){var r=this.__data__,n=I(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function l(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=gr;l.prototype.delete=hr;l.prototype.get=yr;l.prototype.has=jr;l.prototype.set=_r;var S=_(f,"Map");function Tr(){this.size=0,this.__data__={hash:new y,map:new(S||l),string:new y}}function vr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function M(t,e){var r=t.__data__;return vr(e)?r[typeof e=="string"?"string":"hash"]:r.map}function $r(t){var e=M(this,t).delete(t);return this.size-=e?1:0,e}function mr(t){return M(this,t).get(t)}function wr(t){return M(this,t).has(t)}function Ar(t,e){var r=M(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function $(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}$.prototype.clear=Tr;$.prototype.delete=$r;$.prototype.get=mr;$.prototype.has=wr;$.prototype.set=Ar;function Or(t,e){for(var r=-1,n=e.length,u=t.length;++r<n;)t[u+r]=e[r];return t}var Sr=wt(Object.getPrototypeOf,Object);function xr(){this.__data__=new l,this.size=0}function Pr(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function Cr(t){return this.__data__.get(t)}function Er(t){return this.__data__.has(t)}var Ir=200;function Mr(t,e){var r=this.__data__;if(r instanceof l){var n=r.__data__;if(!S||n.length<Ir-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new $(n)}return r.set(t,e),this.size=r.size,this}function m(t){var e=this.__data__=new l(t);this.size=e.size}m.prototype.clear=xr;m.prototype.delete=Pr;m.prototype.get=Cr;m.prototype.has=Er;m.prototype.set=Mr;var At=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tt=At&&typeof module=="object"&&module&&!module.nodeType&&module,Fr=tt&&tt.exports===At,et=Fr?f.Buffer:void 0,rt=et?et.allocUnsafe:void 0;function Dr(t,e){if(e)return t.slice();var r=t.length,n=rt?rt(r):new t.constructor(r);return t.copy(n),n}function Ur(t,e){for(var r=-1,n=t==null?0:t.length,u=0,s=[];++r<n;){var i=t[r];e(i,r,t)&&(s[u++]=i)}return s}function Br(){return[]}var zr=Object.prototype,Gr=zr.propertyIsEnumerable,nt=Object.getOwnPropertySymbols,Lr=nt?function(t){return t==null?[]:(t=Object(t),Ur(nt(t),function(e){return Gr.call(t,e)}))}:Br;function Nr(t,e,r){var n=e(t);return L(t)?n:Or(n,r(t))}function Rr(t){return Nr(t,er,Lr)}var B=_(f,"DataView"),z=_(f,"Promise"),G=_(f,"Set"),at="[object Map]",Vr="[object Object]",ot="[object Promise]",it="[object Set]",st="[object WeakMap]",ct="[object DataView]",Hr=j(B),Kr=j(S),Wr=j(z),qr=j(G),Xr=j(U),p=x;(B&&p(new B(new ArrayBuffer(1)))!=ct||S&&p(new S)!=at||z&&p(z.resolve())!=ot||G&&p(new G)!=it||U&&p(new U)!=st)&&(p=function(t){var e=x(t),r=e==Vr?t.constructor:void 0,n=r?j(r):"";if(n)switch(n){case Hr:return ct;case Kr:return at;case Wr:return ot;case qr:return it;case Xr:return st}return e});var Yr=Object.prototype,Jr=Yr.hasOwnProperty;function Zr(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Jr.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var ut=f.Uint8Array;function R(t){var e=new t.constructor(t.byteLength);return new ut(e).set(new ut(t)),e}function Qr(t,e){var r=R(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var kr=/\w*$/;function tn(t){var e=new t.constructor(t.source,kr.exec(t));return e.lastIndex=t.lastIndex,e}var ft=T?T.prototype:void 0,pt=ft?ft.valueOf:void 0;function en(t){return pt?Object(pt.call(t)):{}}function rn(t,e){var r=e?R(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var nn="[object Boolean]",an="[object Date]",on="[object Map]",sn="[object Number]",cn="[object RegExp]",un="[object Set]",fn="[object String]",pn="[object Symbol]",ln="[object ArrayBuffer]",gn="[object DataView]",bn="[object Float32Array]",dn="[object Float64Array]",hn="[object Int8Array]",yn="[object Int16Array]",jn="[object Int32Array]",_n="[object Uint8Array]",Tn="[object Uint8ClampedArray]",vn="[object Uint16Array]",$n="[object Uint32Array]";function mn(t,e,r){var n=t.constructor;switch(e){case ln:return R(t);case nn:case an:return new n(+t);case gn:return Qr(t);case bn:case dn:case hn:case yn:case jn:case _n:case Tn:case vn:case $n:return rn(t,r);case on:return new n;case sn:case fn:return new n(t);case cn:return tn(t);case un:return new n;case pn:return en(t)}}function wn(t){return typeof t.constructor=="function"&&!_t(t)?ee(Sr(t)):{}}var An="[object Map]";function On(t){return P(t)&&p(t)==An}var lt=v&&v.isMap,Sn=lt?N(lt):On,xn="[object Set]";function Pn(t){return P(t)&&p(t)==xn}var gt=v&&v.isSet,Cn=gt?N(gt):Pn,En=1,Ot="[object Arguments]",In="[object Array]",Mn="[object Boolean]",Fn="[object Date]",Dn="[object Error]",St="[object Function]",Un="[object GeneratorFunction]",Bn="[object Map]",zn="[object Number]",xt="[object Object]",Gn="[object RegExp]",Ln="[object Set]",Nn="[object String]",Rn="[object Symbol]",Vn="[object WeakMap]",Hn="[object ArrayBuffer]",Kn="[object DataView]",Wn="[object Float32Array]",qn="[object Float64Array]",Xn="[object Int8Array]",Yn="[object Int16Array]",Jn="[object Int32Array]",Zn="[object Uint8Array]",Qn="[object Uint8ClampedArray]",kn="[object Uint16Array]",ta="[object Uint32Array]",a={};a[Ot]=a[In]=a[Hn]=a[Kn]=a[Mn]=a[Fn]=a[Wn]=a[qn]=a[Xn]=a[Yn]=a[Jn]=a[Bn]=a[zn]=a[xt]=a[Gn]=a[Ln]=a[Nn]=a[Rn]=a[Zn]=a[Qn]=a[kn]=a[ta]=!0;a[Dn]=a[St]=a[Vn]=!1;function C(t,e,r,n,u,s){var i,g=e&En;if(i!==void 0)return i;if(!E(t))return t;var d=L(t);if(d)i=Zr(t);else{var c=p(t),V=c==St||c==Un;if($t(t))return Dr(t,g);if(c==xt||c==Ot||V&&!u)i=V?{}:wn(t);else{if(!a[c])return u?t:{};i=mn(t,c,g)}}s||(s=new m);var H=s.get(t);if(H)return H;s.set(t,i),Cn(t)?t.forEach(function(b){i.add(C(b,e,r,b,t,s))}):Sn(t)&&t.forEach(function(b,h){i.set(h,C(b,e,r,h,t,s))});var Pt=Rr,K=d?void 0:Pt(t);return re(K||t,function(b,h){K&&(h=b,b=t[h]),ue(i,h,C(b,e,r,h,t,s))}),i}var ea=1,ra=4;function oa(t){return C(t,ea|ra)}function na(t){return function(e,r,n){for(var u=-1,s=Object(e),i=n(e),g=i.length;g--;){var d=i[++u];if(r(s[d],d,s)===!1)break}return e}}var ia=na();export{er as A,jt as B,$ as M,m as S,ut as U,ue as a,ie as b,E as c,Y as d,pe as e,oe as f,yt as g,_t as h,aa as i,Je as j,P as k,x as l,Sr as m,$t as n,qe as o,L as p,Dr as q,rn as r,ye as s,ht as t,wn as u,ia as v,oa as w,T as x,Rr as y,p as z};