New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flamebird

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flamebird - npm Package Compare versions

Comparing version 1.8.6 to 2.0.0

lib/app/libs/kinka.js

10

CHANGELOG.md

@@ -5,2 +5,12 @@

## [2.0.0] - 01.12.2018
### Changed
- `web` replaced web http-client `axios` to `kinka`
### Fixed
- `web` big line height between lines
- `web` unique task ids
- `web` unique websocket session ids
## [1.8.6]

@@ -7,0 +17,0 @@

2

lib/app/main.js

@@ -1,1 +0,1 @@

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=75)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(32)("wks"),o=n(31),i=n(0).Symbol,c="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(8);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=n(74)},function(t,e,n){var r=n(11),o=n(34);t.exports=n(7)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports={}},function(t,e,n){t.exports=!n(35)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(2),o=n(67),i=n(66),c=Object.defineProperty;e.f=n(7)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(12);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(0),o=n(3),i=n(13),c=n(5),a=n(10),u=function(t,e,n){var s,f,l,p=t&u.F,h=t&u.G,v=t&u.S,d=t&u.P,y=t&u.B,m=t&u.W,g=h?o:o[e]||(o[e]={}),x=g.prototype,w=h?r:v?r[e]:(r[e]||{}).prototype;for(s in h&&(n=e),n)(f=!p&&w&&void 0!==w[s])&&a(g,s)||(l=f?w[s]:n[s],g[s]=h&&"function"!=typeof w[s]?n[s]:y&&f?i(l,r):m&&w[s]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((g.virtual||(g.virtual={}))[s]=l,t&u.R&&x&&!x[s]&&c(x,s,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(72));e.default=function(t){return function(){var e=t.apply(this,arguments);return new r.default(function(t,n){return function o(i,c){try{var a=e[i](c),u=a.value}catch(t){return void n(t)}if(!a.done)return r.default.resolve(u).then(function(t){o("next",t)},function(t){o("throw",t)});t(u)}("next")})}}},function(t,e,n){"use strict";var r=n(12);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},function(t,e,n){var r=n(11).f,o=n(10),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(32)("keys"),o=n(31);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(59),o=n(22);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(8),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(2),o=n(8),i=n(16);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r,o,i,c=n(13),a=n(44),u=n(29),s=n(20),f=n(0),l=f.process,p=f.setImmediate,h=f.clearImmediate,v=f.MessageChannel,d=f.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},x=function(t){g.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++y]=function(){a("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete m[t]},"process"==n(9)(l)?r=function(t){l.nextTick(c(g,t,1))}:d&&d.now?r=function(t){d.now(c(g,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=x,r=c(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):r="onreadystatechange"in s("script")?function(t){u.appendChild(s("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(c(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){var r=n(2),o=n(12),i=n(1)("species");t.exports=function(t,e){var n,c=r(t).constructor;return void 0===c||void 0==(n=r(c)[i])?e:o(n)}},function(t,e,n){var r=n(9),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(3),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(23),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var r=n(21),o=n(14),i=n(65),c=n(5),a=n(6),u=n(64),s=n(17),f=n(56),l=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,d,y,m){u(n,e,v);var g,x,w,_=function(t){if(!p&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},b=e+" Iterator",L="values"==d,S=!1,k=t.prototype,T=k[l]||k["@@iterator"]||d&&k[d],j=T||_(d),O=d?L?_("entries"):j:void 0,P="Array"==e&&k.entries||T;if(P&&(w=f(P.call(new t)))!==Object.prototype&&w.next&&(s(w,b,!0),r||"function"==typeof w[l]||c(w,l,h)),L&&T&&"values"!==T.name&&(S=!0,j=function(){return T.call(this)}),r&&!m||!p&&!S&&k[l]||c(k,l,j),a[e]=j,a[b]=h,d)if(g={values:L?j:_("values"),keys:y?j:_("keys"),entries:O},m)for(x in g)x in k||i(k,x,g[x]);else o(o.P+o.F*(p||S),e,g);return g}},function(t,e,n){"use strict";var r=n(14),o=n(16),i=n(25);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";var r=n(14),o=n(3),i=n(0),c=n(27),a=n(24);r(r.P+r.R,"Promise",{finally:function(t){var e=c(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],c=i[r]();c.next=function(){return{done:n=!0}},i[r]=function(){return c},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(11),c=n(7),a=n(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];c&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(5);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){var r=n(0).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(0),o=n(26).set,i=r.MutationObserver||r.WebKitMutationObserver,c=r.process,a=r.Promise,u="process"==n(9)(c);t.exports=function(){var t,e,n,s=function(){var r,o;for(u&&(r=c.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){c.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var f=a.resolve(void 0);n=function(){f.then(s)}}else n=function(){o.call(r,s)};else{var l=!0,p=document.createTextNode("");new i(s).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(28),o=n(1)("iterator"),i=n(6);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(6),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(2);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(13),o=n(47),i=n(46),c=n(2),a=n(33),u=n(45),s={},f={};(e=t.exports=function(t,e,n,l,p){var h,v,d,y,m=p?function(){return t}:u(t),g=r(n,l,e?2:1),x=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=a(t.length);h>x;x++)if((y=e?g(c(v=t[x])[0],v[1]):g(t[x]))===s||y===f)return y}else for(d=m.call(t);!(v=d.next()).done;)if((y=o(d,g,v.value,e))===s||y===f)return y}).BREAK=s,e.RETURN=f},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){"use strict";var r,o,i,c,a=n(21),u=n(0),s=n(13),f=n(28),l=n(14),p=n(8),h=n(12),v=n(49),d=n(48),y=n(27),m=n(26).set,g=n(43)(),x=n(16),w=n(25),_=n(42),b=n(24),L=u.TypeError,S=u.process,k=S&&S.versions,T=k&&k.v8||"",j=u.Promise,O="process"==f(S),P=function(){},E=o=x.f,A=!!function(){try{var t=j.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(P,P)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==T.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),M=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0,c=function(e){var n,i,c,a=o?e.ok:e.fail,u=e.resolve,s=e.reject,f=e.domain;try{a?(o||(2==t._h&&I(t),t._h=1),!0===a?n=r:(f&&f.enter(),n=a(r),f&&(f.exit(),c=!0)),n===e.promise?s(L("Promise-chain cycle")):(i=M(n))?i.call(n,u,s):u(n)):s(r)}catch(t){f&&!c&&f.exit(),s(t)}};n.length>i;)c(n[i++]);t._c=[],t._n=!1,e&&!t._h&&F(t)})}},F=function(t){m.call(u,function(){var e,n,r,o=t._v,i=C(t);if(i&&(e=w(function(){O?S.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=O||C(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},C=function(t){return 1!==t._h&&0===(t._a||t._c).length},I=function(t){m.call(u,function(){var e;O?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},N=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},G=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw L("Promise can't be resolved itself");(e=M(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,s(G,r,1),s(N,r,1))}catch(t){N.call(r,t)}}):(n._v=t,n._s=1,R(n,!1))}catch(t){N.call({_w:n,_d:!1},t)}}};A||(j=function(t){v(this,j,"Promise","_h"),h(t),r.call(this);try{t(s(G,this,1),s(N,this,1))}catch(t){N.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(41)(j.prototype,{then:function(t,e){var n=E(y(this,j));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(G,t,1),this.reject=s(N,t,1)},x.f=E=function(t){return t===j||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!A,{Promise:j}),n(17)(j,"Promise"),n(40)("Promise"),c=n(3).Promise,l(l.S+l.F*!A,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(a||!A),"Promise",{resolve:function(t){return b(a&&this===c?j:this,t)}}),l(l.S+l.F*!(A&&n(39)(function(t){j.all(t).catch(P)})),"Promise",{all:function(t){var e=this,n=E(e),r=n.resolve,o=n.reject,i=w(function(){var n=[],i=0,c=1;d(t,!1,function(t){var a=i++,u=!1;n.push(void 0),c++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--c||r(n))},o)}),--c||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,o=w(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var r=n(52),o=n(51),i=n(6),c=n(19);t.exports=n(36)(Array,"Array",function(t,e){this._t=c(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){n(53);for(var r=n(0),o=n(5),i=n(6),c=n(1)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var s=a[u],f=r[s],l=f&&f.prototype;l&&!l[c]&&o(l,c,s),i[s]=i.Array}},function(t,e,n){var r=n(22);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(10),o=n(55),i=n(18)("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,n){var r=n(23),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(19),o=n(33),i=n(57);t.exports=function(t){return function(e,n,c){var a,u=r(e),s=o(u.length),f=i(c,s);if(t&&n!=n){for(;s>f;)if((a=u[f++])!=a)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(9);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(10),o=n(19),i=n(58)(!1),c=n(18)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,s=[];for(n in a)n!=c&&r(a,n)&&s.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(60),o=n(30);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(11),o=n(2),i=n(61);t.exports=n(7)?Object.defineProperties:function(t,e){o(t);for(var n,c=i(e),a=c.length,u=0;a>u;)r.f(t,n=c[u++],e[n]);return t}},function(t,e,n){var r=n(2),o=n(62),i=n(30),c=n(18)("IE_PROTO"),a=function(){},u=function(){var t,e=n(20)("iframe"),r=i.length;for(e.style.display="none",n(29).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[c]=t):n=u(),void 0===e?n:o(n,e)}},function(t,e,n){"use strict";var r=n(63),o=n(34),i=n(17),c={};n(5)(c,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(c,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){t.exports=n(5)},function(t,e,n){var r=n(8);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=!n(7)&&!n(35)(function(){return 7!=Object.defineProperty(n(20)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(23),o=n(22);t.exports=function(t){return function(e,n){var i,c,a=String(o(e)),u=r(n),s=a.length;return u<0||u>=s?t?"":void 0:(i=a.charCodeAt(u))<55296||i>56319||u+1===s||(c=a.charCodeAt(u+1))<56320||c>57343?t?a.charAt(u):i:t?a.slice(u,u+2):c-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(68)(!0);n(36)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e){},function(t,e,n){n(70),n(69),n(54),n(50),n(38),n(37),t.exports=n(3).Promise},function(t,e,n){t.exports={default:n(71),__esModule:!0}},function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",s="object"==typeof t,f=e.regeneratorRuntime;if(f)s&&(t.exports=f);else{(f=e.regeneratorRuntime=s?t.exports:{}).wrap=w;var l="suspendedStart",p="suspendedYield",h="executing",v="completed",d={},y={};y[c]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(A([])));g&&g!==r&&o.call(g,c)&&(y=g);var x=S.prototype=b.prototype=Object.create(y);L.prototype=x.constructor=S,S.constructor=L,S[u]=L.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===L||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(x),t},f.awrap=function(t){return{__await:t}},k(T.prototype),T.prototype[a]=function(){return this},f.AsyncIterator=T,f.async=function(t,e,n,r){var o=new T(w(t,e,n,r));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},k(x),x[u]="Generator",x[c]=function(){return this},x.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},f.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return r("end");if(c.tryLoc<=this.prev){var u=o.call(c,"catchLoc"),s=o.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return r(c.catchLoc,!0);if(this.prev<c.finallyLoc)return r(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return r(c.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return r(c.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}}}function w(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),c=new E(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=j(c,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=_(t,e,n);if("normal"===u.type){if(r=n.done?v:p,u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=v,n.method="throw",n.arg=u.arg)}}}(t,n,c),i}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function b(){}function L(){}function S(){}function k(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function T(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,c){var a=_(t[n],t,r);if("throw"!==a.type){var u=a.arg,s=u.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,c)},function(t){e("throw",t,i,c)}):Promise.resolve(s).then(function(t){u.value=t,i(u)},c)}c(a.arg)}(n,r,e,i)})}return e=e?e.then(i,i):i()}}function j(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,j(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=_(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function A(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:M}}function M(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(t,e,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(73),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e,n){"use strict";n.r(e);var r=n(4),o=n.n(r),i=n(15),c=n.n(i);window.global=function(){var t=function(){var t=c()(o.a.mark(function t(e){var n,r,c,a=e.task,u=e.envs,s=e.name;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i.clear(),t.next=3,axios.get("/logs/"+s);case 3:n=t.sent,r=n.data,i.updateDescription(a),i.updateEnvs(u),c=_.map(r,i.createHTMLLog).join(""),setTimeout(function(){i.push(c,!0),i.scrollTo("bottom")},0);case 9:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),e=function(){var t=c()(o.a.mark(function t(){var e,n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,axios.get("/project-version");case 2:e=t.sent,(n=e.data)&&$("header > .title").html(h+createSpan("project-version",n));case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),n=!0,r=void 0,i=void 0,a=void 0,u=void 0,s="Procfile",f=null,l=!1,p=!1,h="flamebird";function v(t){t||(t=a.getActive()),axios.post("/clear-logs/"+t.name),t.logs=[],i.clear(),i.updateDescription(t.task),i.updateEnvs(t.envs)}function d(t){localStorage.setItem("theme",t),"white"!==t&&FileLoader(t+"-theme.css"),document.body.setAttribute("theme",t),r=t}function y(){!l&&window.HotKeys&&(HotKeys.setEnabled(!1),window.HotKeys=null),toggleClass(document.querySelector(".main-button.hot-keys"),"active",l),FileLoader("hot_keys-shortcuts.css",!l),FileLoader("hot_keys.js",!l),l?localStorage.setItem("hotkeys",!0):delete localStorage.hotkeys}function m(){toggleClass(document.querySelector(".main-button.resize"),"active",p),FileLoader("fullscreen.css",!p,{media:"screen and (min-width: 923px)"}),p?localStorage.setItem("fullscreen",!0):delete localStorage.fullscreen}var g=function(t){var e=t.data,r=JSON.parse(e),o=r.name,c=r.isRun,u=r.isStartRunning,s=r.isStopping,f=r.log;if(o){var l=o===a.getActive().name;a.updateTask(o,c,l,u,s),f&&l&&(i.push(f),n&&i.scrollTo("bottom"))}};function x(){$("header > .title").text(h)}return $(document).ready(c()(o.a.mark(function t(){var n,r,c,u;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return d(localStorage.getItem("theme")||"white"),p=!!localStorage.getItem("fullscreen"),m(),l=!!localStorage.getItem("hotkeys"),y(),i=new WebLogger(document.getElementById("task-logs")),t.next=8,axios.get("/info");case 8:n=t.sent,r=n.data,c=r.appName,u=r.commands,(h=c)&&($("title").text(h+" | fb"),$("header > .title").text(h).on("mouseover",e).on("mouseleave",x)),a=window.taskList=new TaskList(document.getElementById("tasks"),u),new WebSocket("ws://"+location.host).onmessage=g;case 17:case"end":return t.stop()}},t,this)}))),{cancelEnvs:function(){$(".envs-log").removeClass("active"),_.each($(".envs-log > input"),function(t){var e=$(t);e.val(f[e.attr("key")])}),a.getActive().envs=_.clone(f),f=null},clearLogs:v,enableEnvsForm:function(){$(".envs-log").addClass("active"),f=_.clone(a.getActive().envs)},handleClickTab:function(t){t!==s&&a.changeTab(t)},openTask:function(e){if(e!==u){var n=a.getTask(e);n.name&&(a.setActive(n),u=e,t(n))}},runAllTasks:function(){_.each(a.getAllFromActiveTab(),function(t){var e=t.isRun,n=t.name,r=t.isActive;e||(a.updateTask(n,e,r,!0,!1),axios.post("/run/"+n))})},runTask:function(e){window.event.stopPropagation();var n=a.getTask(e);n.isStartRunning||n.isRun||(a.setActive(n,!0),e!==u&&(u=e,t(n)),axios.post("/run/"+n.name))},showTaskList:function(){$(document.body).toggleClass("task-list-showed")},stopAllTasks:function(){_.each(a.getAllFromActiveTab(!0),function(t){var e=t.isRun,n=t.name,r=t.isActive;a.updateTask(n,e,r,!1,!0),axios.post("/stop/"+n)})},stopTask:function(t){window.event.stopPropagation();var e=a.getTask(t);!e.isStartRunning&&e.isRun&&(a.updateTask(e.name,!1,e.isActive,!1,!0),axios.post("/stop/"+e.name))},switchTheme:function(){var t="dark"===r?"white":"dark";"white"!==r&&FileLoader(r+"-theme.css",!0),d(t)},getLogger:function(){return i},toggleHotKeys:function(){l=!l,y()},toggleResize:function(){p=!p,m()},triggerScrollWatcher:function(t){i.scrollTo("bottom",!0),n=!n,$(".logs-button.autoscroll").toggleClass("active",n)},updateEnvs:function(){$(".envs-log").removeClass("active");var t=a.getActive();_.each($(".envs-log > input"),function(t){var e=$(t);f[e.attr("key")]=e.val()}),t.envs=_.clone(f),v(t),axios.post("/update-envs",{name:t.name,envs:_.clone(f)}),a.updateTask(t.name,!0,t.isActive,!0,!1),f=null}}}()}]);
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=75)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(32)("wks"),o=n(31),i=n(0).Symbol,c="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(8);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=n(74)},function(t,e,n){var r=n(11),o=n(34);t.exports=n(7)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports={}},function(t,e,n){t.exports=!n(35)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(2),o=n(67),i=n(66),c=Object.defineProperty;e.f=n(7)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(12);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(0),o=n(3),i=n(13),c=n(5),a=n(10),u=function(t,e,n){var s,f,l,p=t&u.F,h=t&u.G,v=t&u.S,d=t&u.P,y=t&u.B,g=t&u.W,m=h?o:o[e]||(o[e]={}),x=m.prototype,w=h?r:v?r[e]:(r[e]||{}).prototype;for(s in h&&(n=e),n)(f=!p&&w&&void 0!==w[s])&&a(m,s)||(l=f?w[s]:n[s],m[s]=h&&"function"!=typeof w[s]?n[s]:y&&f?i(l,r):g&&w[s]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((m.virtual||(m.virtual={}))[s]=l,t&u.R&&x&&!x[s]&&c(x,s,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(72));e.default=function(t){return function(){var e=t.apply(this,arguments);return new r.default(function(t,n){return function o(i,c){try{var a=e[i](c),u=a.value}catch(t){return void n(t)}if(!a.done)return r.default.resolve(u).then(function(t){o("next",t)},function(t){o("throw",t)});t(u)}("next")})}}},function(t,e,n){"use strict";var r=n(12);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},function(t,e,n){var r=n(11).f,o=n(10),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(32)("keys"),o=n(31);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(59),o=n(22);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(8),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(2),o=n(8),i=n(16);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r,o,i,c=n(13),a=n(44),u=n(29),s=n(20),f=n(0),l=f.process,p=f.setImmediate,h=f.clearImmediate,v=f.MessageChannel,d=f.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},x=function(t){m.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++y]=function(){a("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete g[t]},"process"==n(9)(l)?r=function(t){l.nextTick(c(m,t,1))}:d&&d.now?r=function(t){d.now(c(m,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=x,r=c(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):r="onreadystatechange"in s("script")?function(t){u.appendChild(s("script")).onreadystatechange=function(){u.removeChild(this),m.call(t)}}:function(t){setTimeout(c(m,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){var r=n(2),o=n(12),i=n(1)("species");t.exports=function(t,e){var n,c=r(t).constructor;return void 0===c||void 0==(n=r(c)[i])?e:o(n)}},function(t,e,n){var r=n(9),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(3),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(23),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var r=n(21),o=n(14),i=n(65),c=n(5),a=n(6),u=n(64),s=n(17),f=n(56),l=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,d,y,g){u(n,e,v);var m,x,w,_=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},b=e+" Iterator",k="values"==d,L=!1,S=t.prototype,T=S[l]||S["@@iterator"]||d&&S[d],j=T||_(d),O=d?k?_("entries"):j:void 0,P="Array"==e&&S.entries||T;if(P&&(w=f(P.call(new t)))!==Object.prototype&&w.next&&(s(w,b,!0),r||"function"==typeof w[l]||c(w,l,h)),k&&T&&"values"!==T.name&&(L=!0,j=function(){return T.call(this)}),r&&!g||!p&&!L&&S[l]||c(S,l,j),a[e]=j,a[b]=h,d)if(m={values:k?j:_("values"),keys:y?j:_("keys"),entries:O},g)for(x in m)x in S||i(S,x,m[x]);else o(o.P+o.F*(p||L),e,m);return m}},function(t,e,n){"use strict";var r=n(14),o=n(16),i=n(25);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";var r=n(14),o=n(3),i=n(0),c=n(27),a=n(24);r(r.P+r.R,"Promise",{finally:function(t){var e=c(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],c=i[r]();c.next=function(){return{done:n=!0}},i[r]=function(){return c},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(11),c=n(7),a=n(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];c&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(5);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){var r=n(0).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(0),o=n(26).set,i=r.MutationObserver||r.WebKitMutationObserver,c=r.process,a=r.Promise,u="process"==n(9)(c);t.exports=function(){var t,e,n,s=function(){var r,o;for(u&&(r=c.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){c.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var f=a.resolve(void 0);n=function(){f.then(s)}}else n=function(){o.call(r,s)};else{var l=!0,p=document.createTextNode("");new i(s).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(28),o=n(1)("iterator"),i=n(6);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(6),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(2);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(13),o=n(47),i=n(46),c=n(2),a=n(33),u=n(45),s={},f={};(e=t.exports=function(t,e,n,l,p){var h,v,d,y,g=p?function(){return t}:u(t),m=r(n,l,e?2:1),x=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=a(t.length);h>x;x++)if((y=e?m(c(v=t[x])[0],v[1]):m(t[x]))===s||y===f)return y}else for(d=g.call(t);!(v=d.next()).done;)if((y=o(d,m,v.value,e))===s||y===f)return y}).BREAK=s,e.RETURN=f},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){"use strict";var r,o,i,c,a=n(21),u=n(0),s=n(13),f=n(28),l=n(14),p=n(8),h=n(12),v=n(49),d=n(48),y=n(27),g=n(26).set,m=n(43)(),x=n(16),w=n(25),_=n(42),b=n(24),k=u.TypeError,L=u.process,S=L&&L.versions,T=S&&S.v8||"",j=u.Promise,O="process"==f(L),P=function(){},E=o=x.f,A=!!function(){try{var t=j.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(P,P)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==T.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),M=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var n=t._c;m(function(){for(var r=t._v,o=1==t._s,i=0,c=function(e){var n,i,c,a=o?e.ok:e.fail,u=e.resolve,s=e.reject,f=e.domain;try{a?(o||(2==t._h&&I(t),t._h=1),!0===a?n=r:(f&&f.enter(),n=a(r),f&&(f.exit(),c=!0)),n===e.promise?s(k("Promise-chain cycle")):(i=M(n))?i.call(n,u,s):u(n)):s(r)}catch(t){f&&!c&&f.exit(),s(t)}};n.length>i;)c(n[i++]);t._c=[],t._n=!1,e&&!t._h&&F(t)})}},F=function(t){g.call(u,function(){var e,n,r,o=t._v,i=C(t);if(i&&(e=w(function(){O?L.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=O||C(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},C=function(t){return 1!==t._h&&0===(t._a||t._c).length},I=function(t){g.call(u,function(){var e;O?L.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},N=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},G=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw k("Promise can't be resolved itself");(e=M(t))?m(function(){var r={_w:n,_d:!1};try{e.call(t,s(G,r,1),s(N,r,1))}catch(t){N.call(r,t)}}):(n._v=t,n._s=1,R(n,!1))}catch(t){N.call({_w:n,_d:!1},t)}}};A||(j=function(t){v(this,j,"Promise","_h"),h(t),r.call(this);try{t(s(G,this,1),s(N,this,1))}catch(t){N.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(41)(j.prototype,{then:function(t,e){var n=E(y(this,j));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?L.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(G,t,1),this.reject=s(N,t,1)},x.f=E=function(t){return t===j||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!A,{Promise:j}),n(17)(j,"Promise"),n(40)("Promise"),c=n(3).Promise,l(l.S+l.F*!A,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(a||!A),"Promise",{resolve:function(t){return b(a&&this===c?j:this,t)}}),l(l.S+l.F*!(A&&n(39)(function(t){j.all(t).catch(P)})),"Promise",{all:function(t){var e=this,n=E(e),r=n.resolve,o=n.reject,i=w(function(){var n=[],i=0,c=1;d(t,!1,function(t){var a=i++,u=!1;n.push(void 0),c++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--c||r(n))},o)}),--c||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,o=w(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var r=n(52),o=n(51),i=n(6),c=n(19);t.exports=n(36)(Array,"Array",function(t,e){this._t=c(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){n(53);for(var r=n(0),o=n(5),i=n(6),c=n(1)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var s=a[u],f=r[s],l=f&&f.prototype;l&&!l[c]&&o(l,c,s),i[s]=i.Array}},function(t,e,n){var r=n(22);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(10),o=n(55),i=n(18)("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,n){var r=n(23),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(19),o=n(33),i=n(57);t.exports=function(t){return function(e,n,c){var a,u=r(e),s=o(u.length),f=i(c,s);if(t&&n!=n){for(;s>f;)if((a=u[f++])!=a)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(9);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(10),o=n(19),i=n(58)(!1),c=n(18)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,s=[];for(n in a)n!=c&&r(a,n)&&s.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(60),o=n(30);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(11),o=n(2),i=n(61);t.exports=n(7)?Object.defineProperties:function(t,e){o(t);for(var n,c=i(e),a=c.length,u=0;a>u;)r.f(t,n=c[u++],e[n]);return t}},function(t,e,n){var r=n(2),o=n(62),i=n(30),c=n(18)("IE_PROTO"),a=function(){},u=function(){var t,e=n(20)("iframe"),r=i.length;for(e.style.display="none",n(29).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[c]=t):n=u(),void 0===e?n:o(n,e)}},function(t,e,n){"use strict";var r=n(63),o=n(34),i=n(17),c={};n(5)(c,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(c,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){t.exports=n(5)},function(t,e,n){var r=n(8);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=!n(7)&&!n(35)(function(){return 7!=Object.defineProperty(n(20)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(23),o=n(22);t.exports=function(t){return function(e,n){var i,c,a=String(o(e)),u=r(n),s=a.length;return u<0||u>=s?t?"":void 0:(i=a.charCodeAt(u))<55296||i>56319||u+1===s||(c=a.charCodeAt(u+1))<56320||c>57343?t?a.charAt(u):i:t?a.slice(u,u+2):c-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(68)(!0);n(36)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e){},function(t,e,n){n(70),n(69),n(54),n(50),n(38),n(37),t.exports=n(3).Promise},function(t,e,n){t.exports={default:n(71),__esModule:!0}},function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",s="object"==typeof t,f=e.regeneratorRuntime;if(f)s&&(t.exports=f);else{(f=e.regeneratorRuntime=s?t.exports:{}).wrap=w;var l="suspendedStart",p="suspendedYield",h="executing",v="completed",d={},y={};y[c]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(A([])));m&&m!==r&&o.call(m,c)&&(y=m);var x=L.prototype=b.prototype=Object.create(y);k.prototype=x.constructor=L,L.constructor=k,L[u]=k.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,L):(t.__proto__=L,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(x),t},f.awrap=function(t){return{__await:t}},S(T.prototype),T.prototype[a]=function(){return this},f.AsyncIterator=T,f.async=function(t,e,n,r){var o=new T(w(t,e,n,r));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},S(x),x[u]="Generator",x[c]=function(){return this},x.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},f.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return r("end");if(c.tryLoc<=this.prev){var u=o.call(c,"catchLoc"),s=o.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return r(c.catchLoc,!0);if(this.prev<c.finallyLoc)return r(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return r(c.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return r(c.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}}}function w(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),c=new E(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=j(c,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=_(t,e,n);if("normal"===u.type){if(r=n.done?v:p,u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=v,n.method="throw",n.arg=u.arg)}}}(t,n,c),i}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function b(){}function k(){}function L(){}function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function T(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,c){var a=_(t[n],t,r);if("throw"!==a.type){var u=a.arg,s=u.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,c)},function(t){e("throw",t,i,c)}):Promise.resolve(s).then(function(t){u.value=t,i(u)},c)}c(a.arg)}(n,r,e,i)})}return e=e?e.then(i,i):i()}}function j(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,j(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=_(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function A(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:M}}function M(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(t,e,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(73),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e,n){"use strict";n.r(e);var r=n(4),o=n.n(r),i=n(15),c=n.n(i);window.global=function(){var t=function(){var t=c()(o.a.mark(function t(e){var n,r,c,a=e.task,u=e.envs,s=e.id;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i.clear(),t.next=3,kinka.get("/logs/"+s);case 3:n=t.sent,r=n.data,i.updateDescription(a),i.updateEnvs(u),c=_.map(r,i.createHTMLLog).join(""),setTimeout(function(){i.push(c,!0),i.scrollTo("bottom")},0);case 9:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),e=function(){var t=c()(o.a.mark(function t(){var e,n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,kinka.get("/project-version");case 2:e=t.sent,(n=e.data)&&$("header > .title").html(h+createSpan("project-version",n));case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),n=!0,r=void 0,i=void 0,a=void 0,u=void 0,s="Procfile",f=null,l=!1,p=!1,h="flamebird";function v(t){t||(t=a.getActive()),kinka.post("/clear-logs/"+t.id),t.logs=[],i.clear(),i.updateDescription(t.task),i.updateEnvs(t.envs)}function d(t){localStorage.setItem("theme",t),"white"!==t&&FileLoader(t+"-theme.css"),document.body.setAttribute("theme",t),r=t}function y(){!l&&window.HotKeys&&(HotKeys.setEnabled(!1),window.HotKeys=null),toggleClass(document.querySelector(".main-button.hot-keys"),"active",l),FileLoader("hot_keys-shortcuts.css",!l),FileLoader("hot_keys.js",!l),l?localStorage.setItem("hotkeys",!0):delete localStorage.hotkeys}function g(){toggleClass(document.querySelector(".main-button.resize"),"active",p),FileLoader("fullscreen.css",!p,{media:"screen and (min-width: 923px)"}),p?localStorage.setItem("fullscreen",!0):delete localStorage.fullscreen}var m=function(t){var e=t.data,r=JSON.parse(e),o=r.name,c=r.id,u=r.isRun,s=r.isLaunching,f=r.isStopping,l=r.log;if(o){var p=c===a.getActive().id;a.updateTask(c,u,p,s,f),l&&p&&(i.push(l),n&&i.scrollTo("bottom"))}};function x(){$("header > .title").text(h)}return $(document).ready(c()(o.a.mark(function t(){var n,r,c,u;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return d(localStorage.getItem("theme")||"white"),p=!!localStorage.getItem("fullscreen"),g(),l=!!localStorage.getItem("hotkeys"),y(),i=new WebLogger(document.getElementById("task-logs")),t.next=8,kinka.get("/info");case 8:n=t.sent,r=n.data,c=r.appName,u=r.commands,(h=c)&&($("title").text(h+" | fb"),$("header > .title").text(h).on("mouseover",e).on("mouseleave",x)),a=window.taskList=new TaskList(document.getElementById("tasks"),u),new WebSocket("ws://"+location.host).onmessage=m;case 17:case"end":return t.stop()}},t,this)}))),{cancelEnvs:function(){$(".envs-log").removeClass("active"),_.each($(".envs-log > input"),function(t){var e=$(t);e.val(f[e.attr("key")])}),a.getActive().envs=_.clone(f),f=null},clearLogs:v,enableEnvsForm:function(){$(".envs-log").addClass("active"),f=_.clone(a.getActive().envs)},handleClickTab:function(t){t!==s&&a.changeTab(t)},openTask:function(e){if(e!==u){var n=a.getTask(e);n.id&&(a.setActive(n),u=e,t(n))}},runAllTasks:function(){_.each(a.getAllFromActiveTab(),function(t){var e=t.isRun,n=t.id,r=t.isActive;e||(a.updateTask(n,e,r,!0,!1),kinka.post("/run/"+n))})},runTask:function(e){window.event.stopPropagation();var n=a.getTask(e);n.isLaunching||n.isRun||(a.setActive(n,!0),e!==u&&(u=e,t(n)),kinka.post("/run/"+n.id))},showTaskList:function(){$(document.body).toggleClass("task-list-showed")},stopAllTasks:function(){_.each(a.getAllFromActiveTab(!0),function(t){var e=t.isRun,n=t.id,r=t.isActive;a.updateTask(n,e,r,!1,!0),kinka.post("/stop/"+n)})},stopTask:function(t){window.event.stopPropagation();var e=a.getTask(t);!e.isLaunching&&e.isRun&&(a.updateTask(e.id,!1,e.isActive,!1,!0),kinka.post("/stop/"+e.id))},switchTheme:function(){var t="dark"===r?"white":"dark";"white"!==r&&FileLoader(r+"-theme.css",!0),d(t)},getLogger:function(){return i},toggleHotKeys:function(){l=!l,y()},toggleResize:function(){p=!p,g()},triggerScrollWatcher:function(t){i.scrollTo("bottom",!0),n=!n,$(".logs-button.autoscroll").toggleClass("active",n)},updateEnvs:function(){$(".envs-log").removeClass("active");var t=a.getActive();_.each($(".envs-log > input"),function(t){var e=$(t);f[e.attr("key")]=e.val()}),t.envs=_.clone(f),v(t),kinka.post("/update-envs",{id:t.id,envs:_.clone(f)}),a.updateTask(t.id,!0,t.isActive,!0,!1),f=null}}}()}]);

@@ -1,1 +0,1 @@

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=40)}({40:function(e,t){window.HotKeys=function(){var e=!1,t=[81,87,69,82,84,89,85,73,79,80,219,221,65,83,68,70,71,72,74,75,76,186,222,90,88,67,86,66,78,77,188,190,191],n=function(e){e.keyCode=0,e.ctrlKey=!1,e.cancelBubble=!0,e.preventDefault(),e.stopPropagation()};function r(e){var t=e.shiftKey,r=e.keyCode,o=e.target.tagName;if("INPUT"!==o&&"TEXTAREA"!==o){var i=window.global,a=i.stopTask,c=i.runTask,u=i.handleClickTab;if(t){if(82===r){n(e);var s=taskList.getActive(),l=s.isStartRunning,f=s.isRun,d=s.name;return l||(f?a:c)(d),!1}}else 9===r?u("npm"===taskList.getActiveTab()?"procfile":"npm"):$('.task[char-code="'+r+'"]').trigger("click")}}function o(t){(e=t)?window.addEventListener("keydown",r,!1):window.removeEventListener("keydown",r)}function i(e,n){e.setAttribute("char-code",t[n])}return _.each(document.querySelectorAll("#tasks .task"),i),o(!0),{setEnabled:o,isEnabled:function(){return e},connect:i}}()}});
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=40)}({40:function(e,t){window.HotKeys=function(){var e=!1,t=[81,87,69,82,84,89,85,73,79,80,219,221,65,83,68,70,71,72,74,75,76,186,222,90,88,67,86,66,78,77,188,190,191],n=function(e){e.keyCode=0,e.ctrlKey=!1,e.cancelBubble=!0,e.preventDefault(),e.stopPropagation()};function r(e){var t=e.shiftKey,r=e.keyCode,o=e.target.tagName;if("INPUT"!==o&&"TEXTAREA"!==o){var i=window.global,c=i.stopTask,a=i.runTask,u=i.handleClickTab;if(t){if(82===r){n(e);var s=taskList.getActive(),l=s.isLaunching,f=s.isRun,d=s.id;return l||(f?c:a)(d),!1}}else 9===r?u("npm"===taskList.getActiveTab()?"procfile":"npm"):$('.task[char-code="'+r+'"]').trigger("click")}}function o(t){(e=t)?window.addEventListener("keydown",r,!1):window.removeEventListener("keydown",r)}function i(e,n){e.setAttribute("char-code",t[n])}return _.each(document.querySelectorAll("#tasks .task"),i),o(!0),{setEnabled:o,isEnabled:function(){return e},connect:i}}()}});

@@ -1,1 +0,1 @@

!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}({38:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},39:function(e,t,n){(function(e){window.TaskList=function(){var t,n,i={npm:[],procfile:[]},r="procfile",o={npm:null,procfile:null},c={npm:null,procfile:null};function a(){_.forEach(i[r],function(e,n){var i=e.isRun,r=e.isStartRunning,o=e.isActive,c=e.name,a=document.createElement("div");a.classList.add("task","task-num-"+(n+1),i&&"running",r&&"clicked",o&&"active"),a.setAttribute("id",c),a.setAttribute("onclick","global.openTask('"+c+"')"),window.HotKeys&&HotKeys.connect(a,n),a.innerHTML='<i class="fas fa-cog"></i>'+createSpan("task-name",c)+createButton("run-task","play","global.runTask('"+c+"')")+createButton("stop-task","stop","global.stopTask('"+c+"')"),t.appendChild(a)}),setTimeout(function(){c[r]?$("#"+c[r]).trigger("click"):e.getLogger().clear()},0)}function l(e){o[e]&&(o[r].classList.remove("active"),o[r=e].classList.add("active"),n.className="wrapper active-tab-"+r,p(),a())}var u=function(e){return _.find(_.concat.apply(null,_.values(i)),{name:e})};function s(e,t,n,i,r){var o=u(e),c=document.getElementById(e);if(o.isRun=t,o.isStartRunning=!!i,o.isStopping=!!r,n){o.isActive=!0;var a=document.querySelector(".task.active");if(a){var l=a.getAttribute("id");l!==e&&(u(l).isActive=!1,removeClass(a,"active"))}addClass(c,"active")}return toggleClass(c,"stopping",r),toggleClass(c,"running",t),toggleClass(c,"clicked",i),o}function p(){for(;t.lastChild;)t.removeChild(t.lastChild)}function f(e,t,n){c[e.isNPM?"npm":"procfile"]=e.name,s(e.name,e.isRun,!0,void 0===t?e.isStartRunning:t,void 0===n?e.isStopping:n)}return function(e,d){t=e,n=document.querySelector(".wrapper"),o.npm=document.getElementById("npm"),o.procfile=document.getElementById("procfile");var m=_.reduce(d,function(e,t){return e[t.isNPM?"npm":"procfile"].push(t),e},{npm:[],procfile:[]});return i={npm:_.sortBy(m.npm,"name","asc"),procfile:_.sortBy(m.procfile,"name","asc")},c.procfile=i.procfile.length?i.procfile[0].name:null,c.npm=i.npm.length?i.npm[0].name:null,c.procfile?(r="procfile",a()):(l("npm"),o.procfile.remove(),delete o.procfile),{updateTaskList:a,clear:p,changeTab:l,getTask:u,updateTask:s,setActive:f,getActive:function(){return u(c[r])},getActiveTab:function(){return r},getAllFromActiveTab:function(e){return e?_.filter(i[r],function(e){return e.isRun}):i[r]}}}}()}).call(this,n(38))}});
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}({38:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},39:function(e,t,n){(function(e){window.TaskList=function(){var t,n,i={npm:[],procfile:[]},r="procfile",c={npm:null,procfile:null},o={npm:null,procfile:null};function l(){_.forEach(i[r],function(e,n){var i=e.isRun,r=e.isLaunching,c=e.isActive,o=e.name,l=e.id,a=document.createElement("div");a.classList.add("task","task-num-"+(n+1),i&&"running",r&&"clicked",c&&"active"),a.setAttribute("id",l),a.setAttribute("onclick","global.openTask('"+l+"')"),window.HotKeys&&HotKeys.connect(a,n),a.innerHTML='<i class="fas fa-cog"></i>'+createSpan("task-name",o)+createButton("run-task","play","global.runTask('"+l+"')")+createButton("stop-task","stop","global.stopTask('"+l+"')"),t.appendChild(a)}),setTimeout(function(){o[r]?$("#"+o[r]).trigger("click"):e.getLogger().clear()},0)}function a(e){c[e]&&(c[r].classList.remove("active"),c[r=e].classList.add("active"),n.className="wrapper active-tab-"+r,p(),l())}var u=function(e){return _.find(_.concat.apply(null,_.values(i)),{id:e})};function s(e,t,n,i,r){var c=u(e),o=document.getElementById(c.id);if(c.isRun=t,c.isLaunching=!!i,c.isStopping=!!r,n){c.isActive=!0;var l=document.querySelector(".task.active");if(l){var a=l.getAttribute("id");a!==c.id&&(u(a).isActive=!1,removeClass(l,"active"))}addClass(o,"active")}return toggleClass(o,"stopping",r),toggleClass(o,"running",t),toggleClass(o,"clicked",i),c}function p(){for(;t.lastChild;)t.removeChild(t.lastChild)}function f(e,t,n){o[e.isNPM?"npm":"procfile"]=e.id,s(e.id,e.isRun,!0,void 0===t?e.isLaunching:t,void 0===n?e.isStopping:n)}function d(e){return _.sortBy(e,"name","asc")}return function(e,m){t=e,n=document.querySelector(".wrapper"),c.npm=document.getElementById("npm"),c.procfile=document.getElementById("procfile");var g=_.reduce(m,function(e,t){return e[t.isNPM?"npm":"procfile"].push(t),e},{npm:[],procfile:[]});return i={npm:d(g.npm),procfile:d(g.procfile)},o.procfile=i.procfile.length?i.procfile[0].id:null,o.npm=i.npm.length?i.npm[0].id:null,o.procfile?(r="procfile",l()):(a("npm"),c.procfile.remove(),delete c.procfile),{updateTaskList:l,clear:p,changeTab:a,getTask:u,updateTask:s,setActive:f,getActive:function(){return u(o[r])},getActiveTab:function(){return r},getAllFromActiveTab:function(e){return e?_.filter(i[r],function(e){return e.isRun}):i[r]}}}}()}).call(this,n(38))}});

@@ -1,1 +0,1 @@

!function(e){var n={};function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=37)}({37:function(e,n){window.WebLogger=function(e){var n=void 0,t=void 0;function a(t,a){if("bottom"===t){var r=n.scrollHeight;a?e(n).animate({scrollTop:r},"1500"):n.scrollTop=r}"top"===t&&e(n).animate({scrollTop:0},"500")}function r(e){var n=t.ansi_to_html(e.replace(/[\n\r]/g,"<br>").replace(/ /g,"&ensp;"));return n.includes("Warning:")?createSpan("ansi-yellow-fg",n):n.includes("Exited&ensp;Successfully")?createSpan("ended ok",n):n.includes("Exited&ensp;with&ensp;exit&ensp;code&ensp;")?createSpan("ended",n):n.replace(/(<span class="ansi-bright-black-fg">.<\/span>)/g,function(){return createSpan("ansi-bright-black-fg mocha-test",".")}).replace(/(<span class="ansi-red-fg">!<\/span>)/g,function(){return createSpan("ansi-red-fg mocha-test","!")})}function o(e,t){n.insertAdjacentHTML("beforeend",t?e:this.createHTMLLog(e))}function c(){for(;n.lastChild;)n.removeChild(n.lastChild)}function s(e){if(_.keys(e).length){var t=document.createElement("div");t.classList.add("envs-log"),t.innerHTML=_.map(e,function(e,n){return createSpan("ansi-bright-magenta-fg",n)+"="+createEnvsInput(n,e)}).join(", ")+createButton("logs-button","edit","global.enableEnvsForm()")+createButton("logs-button cancel","times","global.cancelEnvs()")+createButton("logs-button apply","check","global.updateEnvs()"),n.appendChild(t)}}function i(e){var t=document.createElement("div");t.classList.add("task-data");var a=document.createElement("span");a.innerText=e,t.appendChild(a),n.appendChild(t)}function l(){toggleClass(this,"flying",this.scrollTop>70)}return function(e){return(n=e).addEventListener("scroll",l),(t=new AnsiUp).use_classes=!0,t.escape_for_html=!1,{scrollTo:a,createHTMLLog:r,push:o,clear:c,updateEnvs:s,updateDescription:i}}}(jQuery)}});
!function(e){var n={};function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=37)}({37:function(e,n){window.WebLogger=function(e){var n=void 0,t=void 0;function a(t,a){if("bottom"===t){var r=n.scrollHeight;a?e(n).animate({scrollTop:r},"1500"):n.scrollTop=r}"top"===t&&e(n).animate({scrollTop:0},"500")}function r(e){var n=t.ansi_to_html(e.replace(/\n/g,"<br>").replace(/ /g,"&ensp;"));return n.includes("Warning:")?createSpan("ansi-yellow-fg",n):n.includes("Exited&ensp;Successfully")?createSpan("ended ok",n):n.includes("Exited&ensp;with&ensp;exit&ensp;code&ensp;")?createSpan("ended",n):n.replace(/(<span class="ansi-bright-black-fg">.<\/span>)/g,function(){return createSpan("ansi-bright-black-fg mocha-test",".")}).replace(/(<span class="ansi-red-fg">!<\/span>)/g,function(){return createSpan("ansi-red-fg mocha-test","!")})}function o(e,t){n.insertAdjacentHTML("beforeend",t?e:this.createHTMLLog(e))}function c(){for(;n.lastChild;)n.removeChild(n.lastChild)}function s(e){if(_.keys(e).length){var t=document.createElement("div");t.classList.add("envs-log"),t.innerHTML=_.map(e,function(e,n){return createSpan("ansi-bright-magenta-fg",n)+"="+createEnvsInput(n,e)}).join(", ")+createButton("logs-button","edit","global.enableEnvsForm()")+createButton("logs-button cancel","times","global.cancelEnvs()")+createButton("logs-button apply","check","global.updateEnvs()"),n.appendChild(t)}}function i(e){var t=document.createElement("div");t.classList.add("task-data");var a=document.createElement("span");a.innerText=e,t.appendChild(a),n.appendChild(t)}function l(){toggleClass(this,"flying",this.scrollTop>70)}return function(e){return(n=e).addEventListener("scroll",l),(t=new AnsiUp).use_classes=!0,t.escape_for_html=!1,{scrollTo:a,createHTMLLog:r,push:o,clear:c,updateEnvs:s,updateDescription:i}}}(jQuery)}});

@@ -11,22 +11,7 @@ const emitter = require('./emitter')

// let LIB_PATHS = null
// const createLibPaths = () => {
// const [utilFormat, utilDir] =
// process.platform === 'win32'
// ? ['.cmd', 'node_modules\\.bin\\']
// : ['', 'node_modules/.bin/']
// LIB_PATHS = _.reduce(
// fs
// .readdirSync(resolve('node_modules/.bin'))
// .filter(file => !file.match(/.*\.cmd$/)),
// (bin, name) => (bin[name] = `${utilDir}${name}${utilFormat}`) && bin,
// {}
// )
// }
let processes = {}
let killAllListenerRefs = {}
function updateTask(name, { isRun, isStartRunning, isStopping, log }) {
let command = getCommandByName(name)
function updateTask(taskId, { isRun, isLaunching, isStopping, log }) {
let command = getCommandById(taskId)
let message = {

@@ -36,5 +21,6 @@ name: command.name,

isNPM: command.isNPM,
id: taskId,
}
if (!_.isUndefined(isStartRunning)) {
message.isStartRunning = isStartRunning
if (!_.isUndefined(isLaunching)) {
message.isLaunching = isLaunching
}

@@ -54,24 +40,36 @@ if (!_.isUndefined(isStopping)) {

function pushLog(name, rawLog, isEnded) {
let log = rawLog.toString()
updateTask(name, { isRun: !isEnded, log })
}
const getCommandById = taskId =>
_.find(storage.get('commands', []), command => command.id === taskId)
const getCommandByName = name =>
_.find(storage.get('commands', []), command => command.name === name)
const removeProcess = name => {
processes[name].pid = null
processes[name] = null
delete processes[name]
const removeProcess = taskId => {
processes[taskId].pid = null
processes[taskId] = null
delete processes[taskId]
if (emitter._events.killall && emitter._events.killall instanceof Array) {
emitter._events.killall.splice(killAllListenerRefs[name], 1)
emitter._events.killall.splice(killAllListenerRefs[taskId], 1)
}
delete killAllListenerRefs[name]
delete killAllListenerRefs[taskId]
}
function killProcess(name) {
if (processes[name]) {
kill(processes[name].pid, 'SIGINT')
removeProcess(name)
// TODO: Saved for future.
// const prettifyLog = (log, { withTime, name } = {}) => {
// let time = ''
// if (withTime) {
// const date = new Date()
// const fixDecimal = decimal => (decimal < 10 ? '0' + decimal : decimal)
// time =
// fixDecimal(date.getHours()) +
// ':' +
// fixDecimal(date.getMinutes()) +
// ':' +
// fixDecimal(date.getSeconds())
// }
// const commonLog = _.compact([name, time]).join(' | ')
// return commonLog ? '| ' + commonLog + ' | ' + log.toString() : log.toString()
// }
function killProcess(taskId) {
if (processes[taskId]) {
kill(processes[taskId].pid, 'SIGINT')
removeProcess(taskId)
}

@@ -82,6 +80,6 @@ }

if (_.isString(command)) {
command = getCommandByName(command)
command = getCommandById(command)
}
updateTask(command.name, { isStopping: true })
killProcess(command.name)
updateTask(command.id, { isStopping: true })
killProcess(command.id)
}

@@ -91,6 +89,6 @@

if (_.isString(command)) {
command = getCommandByName(command)
command = getCommandById(command)
}
const name = command.name
const taskId = command.id
const isWeb = storage.get('actionArgs').web

@@ -104,41 +102,61 @@ const cmdOptions = getCommandLine(

if (isWeb) {
let child = (processes[name] = prog.spawn.apply(prog, cmdOptions))
child.stdout.on('data', rawData => pushLog(name, rawData))
child.stderr.on('data', rawData => pushLog(name, rawData))
let child = (processes[taskId] = prog.spawn.apply(prog, cmdOptions))
updateTask(taskId, { isRun: true })
child.stdout.on('data', rawLog =>
updateTask(taskId, {
log: rawLog.toString(),
isRun: true,
})
)
child.stderr.on('data', rawLog =>
updateTask(taskId, {
log: rawLog.toString(),
isRun: true,
})
)
child.on('close', code => {
killProcess(name)
pushLog(
name,
!code ? 'Exited Successfully' : 'Exited with exit code ' + code,
true
)
killProcess(taskId)
updateTask(taskId, {
isRun: false,
log: !code ? 'Exited Successfully' : 'Exited with exit code ' + code,
})
})
setTimeout(() => updateTask(name, { isRun: true }), 600)
emitter.once('killall', () => killProcess(name))
killAllListenerRefs[name] = emitter.listeners('killall').length - 1
child.on('error', () => {
killProcess(taskId)
updateTask(taskId, {
isRun: false,
log: 'Failed to execute command',
})
})
emitter.once('killall', () => killProcess(taskId))
killAllListenerRefs[taskId] = emitter.listeners('killall').length - 1
} else {
let proc = prog.spawn.apply(prog, cmdOptions)
proc.stdout.on('data', log => process.stdout.write(log.toString()))
proc.stderr.on('data', log => process.stdout.write(log.toString()))
proc.stdout.on('data', log => {
process.stdout.write(log.toString())
})
proc.stderr.on('data', log => {
process.stdout.write(log.toString())
})
}
}
function reRun(name) {
const isStartRunning = true
if (processes[name]) {
kill(processes[name].pid, 'SIGINT', () => {
updateTask(name, { isStartRunning })
setTimeout(() => run(name), 1000)
function reRun(taskId) {
const isLaunching = true
if (processes[taskId]) {
kill(processes[taskId].pid, 'SIGINT', () => {
updateTask(taskId, { isLaunching })
setTimeout(() => run(taskId), 1000)
})
updateTask(name, { isStartRunning })
updateTask(taskId, { isLaunching })
} else {
updateTask(name, { isStartRunning })
run(name)
updateTask(taskId, { isLaunching })
run(taskId)
}
}
function runAll(commands, args) {
function runAll(commands) {
_.each(commands, run)
}
function stopAll(commands, args) {
function stopAll(commands) {
_.each(commands, stop)

@@ -152,5 +170,5 @@ }

module.exports.reRun = reRun
module.exports.getCommandByName = getCommandByName
module.exports.getCommandById = getCommandById
module.exports.getProcesses = function() {
return processes
}

@@ -38,14 +38,14 @@ const express = require('express')

app.post('/update-envs', (req, res) => {
var currentCommand = pw.getCommandByName(req.body.name)
var currentCommand = pw.getCommandById(req.body.id)
currentCommand.logs = []
currentCommand.envs = req.body.envs
pw.reRun(req.body.name)
pw.reRun(req.body.id)
res.send('ok')
})
app.post('/clear-logs/:command', (req, res) => {
pw.getCommandByName(req.params.command).logs = []
app.post('/clear-logs/:taskId', (req, res) => {
pw.getCommandById(req.params.taskId).logs = []
res.send('ok')
})
app.get('/logs/:command', (req, res) =>
res.send(pw.getCommandByName(req.params.command).logs)
app.get('/logs/:taskId', (req, res) =>
res.send(pw.getCommandById(req.params.taskId).logs)
)

@@ -56,8 +56,8 @@ app.get('/project-version', (req, res) => {

})
app.post('/run/:command', (req, res) => {
pw.run(req.params.command)
app.post('/run/:taskId', (req, res) => {
pw.run(req.params.taskId)
res.send('ok')
})
app.post('/stop/:command', (req, res) => {
pw.stop(req.params.command)
app.post('/stop/:taskId', (req, res) => {
pw.stop(req.params.taskId)
res.send('ok')

@@ -64,0 +64,0 @@ })

@@ -5,2 +5,3 @@ var fs = require('fs')

const storage = require('./storage')
const uuidv1 = require('uuid/v1')
const splitStringOnEnvs = require('./envs').splitStringOnEnvs

@@ -30,3 +31,2 @@

let commandCounter = 0
function createCommand(name, commandData, isNPM) {

@@ -40,3 +40,3 @@ const commandInfo = splitStringOnEnvs(commandData)

isRun: false,
index: name + commandCounter++,
id: uuidv1(),
isNPM: !!isNPM,

@@ -57,2 +57,7 @@ }

}
/**
* load task files (package.json or Procfile)
* @param {string} filename
* @param {object} args
*/
function load(filename, args) {

@@ -137,9 +142,2 @@ const tasks = args.tasks && args.tasks.split(',')

}
// _.forEach(words, (word, index) => {
// if (word === 'npm' || word === 'yarn') {
// fixNpmOrYarnTask(index, word, rawTasks, words, fixedTaskData)
// } else {
// fixedTaskData.push(LIB_PATHS[word] || word)
// }
// })
return (command.rawTask = fixedTaskData.join(spaceChar))

@@ -146,0 +144,0 @@ }

const WebSocket = require('ws')
const _ = require('lodash')
const uuidv1 = require('uuid/v1')
let connections = {}
let connectionIDCounter = 0
let sessions = {}
function create(server) {
const ws = new WebSocket.Server({ server })
ws.on('connection', wc => {
wc.send(JSON.stringify({ status: 'ok' }))
let connection = wc
// Store a reference to the connection using an incrementing ID
connection.id = connectionIDCounter++
connections[connection.id] = connection
ws.on('connection', session => {
session.send(JSON.stringify({ status: 'ok' }))
const sessionId = uuidv1()
sessions[sessionId] = session
connection.on('close', function(reasonCode, description) {
delete connections[connection.id]
connection = null
session.on('close', () => {
delete sessions[sessionId]
session = null
})

@@ -24,5 +22,5 @@ })

function send(message) {
_.forEach(connections, connection => {
if (connection.readyState !== 3) {
connection.send(JSON.stringify(message))
_.each(sessions, function(session) {
if (session.readyState !== 3) {
session.send(JSON.stringify(message))
}

@@ -32,3 +30,5 @@ })

module.exports.create = create
module.exports.send = send
module.exports = {
create: create,
send: send,
}
{
"name": "flamebird",
"version": "1.8.6",
"version": "2.0.0",
"description": "wonderful task manager for Procfile-based or npm-based applications",

@@ -53,2 +53,3 @@ "main": "flamebird.js",

"tree-kill": "1.2.0",
"uuid": "3.3.2",
"ws": "5.1.1"

@@ -71,2 +72,3 @@ },

"css-loader": "1.0.0",
"eslint": "4.18.0",
"eslint-config-prettier": "2.9.0",

@@ -79,8 +81,7 @@ "eslint-config-standard": "11.0.0",

"eslint-plugin-standard": "3.0.1",
"eslint": "4.18.0",
"extract-text-webpack-plugin": "4.0.0-beta.0",
"prettier": "1.10.2",
"style-loader": "0.21.0",
"webpack-cli": "2.1.3",
"webpack": "4.8.2"
"webpack": "4.8.2",
"webpack-cli": "2.1.3"
},

@@ -87,0 +88,0 @@ "directories": {

@@ -10,12 +10,4 @@ <div align="center">

<br>
<a href="https://github.com/acacode/flamebird/blob/master/LICENSE">
<img src="https://img.shields.io/badge/license-MIT-red.svg">
</a>
<a href="https://www.npmjs.com/package/flamebird">
<img src="https://img.shields.io/npm/v/flamebird.svg?style=flat">
</a>
<a href="https://travis-ci.org/acacode/flamebird">
<img src="https://travis-ci.org/acacode/flamebird.svg?branch=master">
</a>
<h1>Flamebird.js</h1>
<a href="https://github.com/acacode/flamebird/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-red.svg?style=flat-square"></a><a href="https://www.npmjs.com/package/flamebird"><img src="https://img.shields.io/npm/v/flamebird.svg?style=flat-square"></a><a href="https://travis-ci.org/acacode/flamebird"><img src="https://img.shields.io/travis/acacode/flamebird.svg?style=flat-square"></a><a href="https://npmcharts.com/compare/flamebird?minimal=true"><img src="https://img.shields.io/npm/dm/flamebird.svg?style=flat-square" alt="Downloads per month on npm."></a><a href="https://npmcharts.com/compare/flamebird?minimal=true"><img src="https://img.shields.io/npm/dt/flamebird.svg?style=flat-square" alt="Total downloads on npm."></a>
<h1>Flamebird.js</h1>
<p>

@@ -58,2 +50,2 @@ Flamebird is a nodejs task manager for Procfile-based or npm-based applications

- `-p, --port <PORT>` - sets the server port, by default `5050`
- `-n, --name <NAME>` - sets the project name. Display name of the project in title and header. By default using name of project inside `package.json` otherwise `flamebird`
- `-n, --name <NAME>` - sets the project name. Display name of the project in title and header. By default using name of project inside `package.json` otherwise `flamebird`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc