UNPKG

parallel-es

Version:
3 lines 30.7 kB
!function(t){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}var e={};n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},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,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=75)}([function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(32)("wks"),o=e(20),i=e(3).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(3),o=e(0),i=e(24),u=e(12),a=function(t,n,e){var c,f,s,l=t&a.F,p=t&a.G,v=t&a.S,h=t&a.P,y=t&a.B,d=t&a.W,g=p?o:o[n]||(o[n]={}),_=g.prototype,b=p?r:v?r[n]:(r[n]||{}).prototype;p&&(e=n);for(c in e)(f=!l&&b&&void 0!==b[c])&&c in g||(s=f?b[c]:e[c],g[c]=p&&"function"!=typeof b[c]?e[c]:y&&f?i(s,r):d&&b[c]==s?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(s):h&&"function"==typeof s?i(Function.call,s):s,h&&((g.virtual||(g.virtual={}))[c]=s,t&a.R&&_&&!_[c]&&u(_,c,s)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(5),o=e(47),i=e(34),u=Object.defineProperty;n.f=e(6)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(13);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){t.exports=!e(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(48),o=e(25);t.exports=function(t){return r(o(t))}},function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";n.__esModule=!0;var r=e(79),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(4),o=e(16);t.exports=e(6)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports={}},function(t,n,e){var r=e(54),o=e(26);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){t.exports={default:e(85),__esModule:!0}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(25);t.exports=function(t){return Object(r(t))}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){"use strict";function r(t){return a()(t)}function o(t){for(var n=[],e=void 0;!(e=t.next()).done;)n.push(e.value);return n}n.a=r,n.b=o;var i=e(44),u=(e.n(i),e(17)),a=e.n(u)},function(t,n,e){"use strict";n.__esModule=!0;var r=e(40),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return(0,o.default)(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(95);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){t.exports=!0},function(t,n,e){var r=e(5),o=e(111),i=e(26),u=e(31)("IE_PROTO"),a=function(){},c=function(){var t,n=e(46)("iframe"),r=i.length;for(n.style.display="none",e(101).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a.prototype=r(t),e=new a,a.prototype=null,e[u]=t):e=c(),void 0===n?e:o(e,n)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(4).f,o=e(7),i=e(1)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(32)("keys"),o=e(20);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(3),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(13);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(3),o=e(0),i=e(27),u=e(36),a=e(4).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(1)},function(t,n,e){"use strict";var r=e(113)(!0);e(49)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";function r(t){return!!t&&!0===t.______serializedFunctionCall}n.a=r},function(t,n,e){"use strict";function r(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return{functionIds:[t].concat(e),type:2}}function o(t){return{result:t,type:4}}function i(t){var n={},e=!0,r=!1,o=void 0;try{for(var i,u=y()(v()(t));!(e=(i=u.next()).done);e=!0){var a=i.value;n[a]=l()(t[a])}}catch(t){r=!0,o=t}finally{try{!e&&u.return&&u.return()}finally{if(r)throw o}}return{error:n,type:5}}function u(t){return 1===t.type}function a(t){return 0===t.type}function c(t){return 3===t.type}function f(t){return 6===t.type}n.d=r,n.g=o,n.f=i,n.c=u,n.b=a,n.e=c,n.a=f;var s=e(76),l=e.n(s),p=e(80),v=e.n(p),h=e(17),y=e.n(h)},function(t,n,e){t.exports={default:e(84),__esModule:!0}},function(t,n,e){t.exports={default:e(91),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(81),i=r(o),u=e(78),a=r(u),c=e(45),f=r(c);n.default=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+(void 0===n?"undefined":(0,f.default)(n)));t.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(i.default?(0,i.default)(t,n):t.__proto__=n)}},function(t,n,e){"use strict";n.__esModule=!0;var r=e(45),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==(void 0===n?"undefined":(0,o.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){"use strict";n.__esModule=!0;var r=e(40),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=function(t){return Array.isArray(t)?t:(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(83),i=r(o),u=e(82),a=r(u),c="function"==typeof a.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};n.default="function"==typeof a.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,n,e){var r=e(13),o=e(3).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){t.exports=!e(6)&&!e(11)(function(){return 7!=Object.defineProperty(e(46)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){"use strict";var r=e(27),o=e(2),i=e(56),u=e(12),a=e(7),c=e(14),f=e(105),s=e(30),l=e(53),p=e(1)("iterator"),v=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,n,e,y,d,g,_){f(e,n,y);var b,x,m,O=function(t){if(!v&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},w=n+" Iterator",S="values"==d,j=!1,M=t.prototype,E=M[p]||M["@@iterator"]||d&&M[d],k=E||O(d),F=d?S?O("entries"):k:void 0,P="Array"==n?M.entries||E:E;if(P&&(m=l(P.call(new t)))!==Object.prototype&&(s(m,w,!0),r||a(m,p)||u(m,p,h)),S&&E&&"values"!==E.name&&(j=!0,k=function(){return E.call(this)}),r&&!_||!v&&!j&&M[p]||u(M,p,k),c[n]=k,c[w]=h,d)if(b={values:S?k:O("values"),keys:g?k:O("keys"),entries:F},_)for(x in b)x in M||i(M,x,b[x]);else o(o.P+o.F*(v||j),n,b);return b}},function(t,n,e){var r=e(18),o=e(16),i=e(8),u=e(34),a=e(7),c=e(47),f=Object.getOwnPropertyDescriptor;n.f=e(6)?f:function(t,n){if(t=i(t),n=u(n,!0),c)try{return f(t,n)}catch(t){}if(a(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(8),o=e(52).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?a(t):o(r(t))}},function(t,n,e){var r=e(54),o=e(26).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(7),o=e(19),i=e(31)("IE_PROTO"),u=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?u:null}},function(t,n,e){var r=e(7),o=e(8),i=e(97)(!1),u=e(31)("IE_PROTO");t.exports=function(t,n){var e,a=o(t),c=0,f=[];for(e in a)e!=u&&r(a,e)&&f.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~i(f,e)||f.push(e));return f}},function(t,n,e){var r=e(2),o=e(0),i=e(11);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){t.exports=e(12)},function(t,n,e){var r=e(33),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(98),o=e(1)("iterator"),i=e(14);t.exports=e(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){e(117);for(var r=e(3),o=e(12),i=e(14),u=e(1)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var f=a[c],s=r[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}},function(t,n,e){"use strict";e.d(n,"a",function(){return h});var r=e(41),o=e.n(r),i=e(9),u=e.n(i),a=e(10),c=e.n(a),f=e(43),s=e.n(f),l=e(42),p=e.n(l),v=e(73),h=function(t){function n(t){u()(this,n);var e=s()(this,(n.__proto__||o()(n)).call(this,t));return e.functionCache=t,e}return p()(n,t),c()(n,[{key:"postMessage",value:function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n}(function(t){postMessage(t)})},{key:"terminate",value:function(){close()}}]),n}(v.a)},function(t,n,e){"use strict";e.d(n,"a",function(){return s});var r=e(22),o=e.n(r),i=e(9),u=e.n(i),a=e(10),c=e.n(a),f=e(72),s=function(){function t(){u()(this,t),this.cache=new f.a}return c()(t,[{key:"getFunction",value:function(t){return this.cache.get(t.identifier)}},{key:"registerFunction",value:function(t){var n=this.toFunction(t);return this.cache.set(t.id.identifier,n),n}},{key:"registerStaticFunction",value:function(t,n){if(this.has(t))throw new Error("The given function id '"+t.identifier+"' is already used by another function registration, the id needs to be unique.");this.cache.set(t.identifier,n)}},{key:"has",value:function(t){return this.cache.has(t.identifier)}},{key:"toFunction",value:function(t){if(t.name){var n=t.argumentNames.join(", ");return Function.apply(void 0,["return function "+t.name+" ("+n+") { "+t.body+" }; "])()}return Function.apply(void 0,[].concat(o()(t.argumentNames),[t.body]))}}]),t}()},function(t,n,e){"use strict";function r(t){t.registerStaticFunction(o.a.IDENTITY,i.a),t.registerStaticFunction(o.a.FILTER,u.a),t.registerStaticFunction(o.a.MAP,a.a),t.registerStaticFunction(o.a.PARALLEL_JOB_EXECUTOR,c.a),t.registerStaticFunction(o.a.RANGE,f.a),t.registerStaticFunction(o.a.REDUCE,s.a),t.registerStaticFunction(o.a.TO_ITERATOR,l.a)}n.a=r;var o=e(68),i=e(71),u=e(65),a=e(66),c=e(67),f=e(69),s=e(70),l=e(21)},function(t,n,e){"use strict";function r(t,n){return"function"==typeof t.bind?t.bind.apply(t,[void 0].concat(f()(n))):function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(void 0,n.concat(r))}}e.d(n,"a",function(){return l});var o=e(9),i=e.n(o),u=e(10),a=e.n(u),c=e(22),f=e.n(c),s=e(38),l=function(){function t(n){i()(this,t),this.functionLookupTable=n}return a()(t,[{key:"deserializeFunctionCall",value:function(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.functionLookupTable.getFunction(t.functionId);if(!i)throw new Error("The function with the id "+t.functionId.identifier+" could not be retrieved while deserializing the function call. Is the function correctly registered?");var u=t.parameters||[];return o&&(u=u.map(function(t){return e.i(s.a)(t)?n.deserializeFunctionCall(t):t})),r(i,u)}}]),t}()},function(t,n,e){"use strict";function r(t,n){return{_______isFunctionId:!0,identifier:t+"-"+n}}n.a=r},function(t,n,e){"use strict";function r(t,n,e){return{next:function(){for(var r=void 0;!(r=t.next()).done;)if(n(r.value,e))return r;return r}}}n.a=r},function(t,n,e){"use strict";function r(t,n,e){return{next:function(){var r=t.next();return r.done?{done:!0}:{done:r.done,value:n(r.value,e)}}}}n.a=r},function(t,n,e){"use strict";function r(t,n){var r={taskIndex:t.taskIndex,valuesPerTask:t.valuesPerTask},o=!0,i=!1,a=void 0;try{for(var f,l=c()(t.environments);!(o=(f=l.next()).done);o=!0){var p=f.value,v=void 0;v=e.i(s.a)(p)?n.deserializeFunctionCall(p)(r):p,r=u()(r,v)}}catch(t){i=!0,a=t}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}return r}function o(t,n){var o=n.functionCallDeserializer,i=r(t,o),u=o.deserializeFunctionCall(t.generator,!0),a=u(i),s=!0,l=!1,p=void 0;try{for(var v,h=c()(t.operations);!(s=(v=h.next()).done);s=!0){var y=v.value;a=o.deserializeFunctionCall(y.iterator)(a,o.deserializeFunctionCall(y.iteratee),i)}}catch(t){l=!0,p=t}finally{try{!s&&h.return&&h.return()}finally{if(l)throw p}}return e.i(f.b)(a)}n.a=o;var i=e(77),u=e.n(i),a=e(17),c=e.n(a),f=e(21),s=e(38)},function(t,n,e){"use strict";e.d(n,"a",function(){return o});var r=e(64),o={FILTER:e.i(r.a)("parallel",0),IDENTITY:e.i(r.a)("parallel",1),MAP:e.i(r.a)("parallel",2),PARALLEL_JOB_EXECUTOR:e.i(r.a)("parallel",3),RANGE:e.i(r.a)("parallel",4),REDUCE:e.i(r.a)("parallel",5),TIMES:e.i(r.a)("parallel",6),TO_ITERATOR:e.i(r.a)("parallel",7)}},function(t,n,e){"use strict";function r(t,n,e){var r=n-t,o=Math.max(Math.floor(r/(e||1)),0),i=t;return{next:function(){var t=i;return i+=e,0!=o--?{done:!1,value:t}:{done:!0}}}}n.a=r},function(t,n,e){"use strict";function r(t,n,r,i){for(var u=t,a=void 0;!(a=n.next()).done;)u=r(u,a.value,i);return e.i(o.a)([u])}n.a=r;var o=e(21)},function(t,n,e){"use strict";function r(t){return t}n.a=r},function(t,n,e){"use strict";e.d(n,"a",function(){return a});var r=e(9),o=e.n(r),i=e(10),u=e.n(i),a=function(){function t(){o()(this,t),this.data={}}return u()(t,[{key:"get",value:function(t){var n=this.toInternalKey(t);return this.has(t)?this.data[n]:void 0}},{key:"has",value:function(t){return this.hasOwnProperty.call(this.data,this.toInternalKey(t))}},{key:"set",value:function(t,n){this.data[this.toInternalKey(t)]=n}},{key:"clear",value:function(){this.data={}}},{key:"toInternalKey",value:function(t){return"@"+t}}]),t}()},function(t,n,e){"use strict";e.d(n,"a",function(){return f});var r=e(9),o=e.n(r),i=e(10),u=e.n(i),a=e(39),c=e(74),f=function(){function t(n){o()(this,t),this.functionCache=n,this.id=Number.NaN,this.state=new c.a(this)}return u()(t,[{key:"changeState",value:function(t){this.state=t,this.state.enter()}},{key:"onMessage",value:function(t){if(e.i(a.a)(t))this.terminate();else if(!this.state.onMessage(t))throw new Error("Message with type "+t.type+" cannot be handled by "+this)}},{key:"toString",value:function(){return"Slave { id: "+this.id+", state: '"+this.state.name+"' }"}}]),t}()},function(t,n,e){"use strict";e.d(n,"a",function(){return O});var r=e(17),o=e.n(r),i=e(22),u=e.n(i),a=e(44),c=e.n(a),f=e(41),s=e.n(f),l=e(43),p=e.n(l),v=e(42),h=e.n(v),y=e(9),d=e.n(y),g=e(10),_=e.n(g),b=e(63),x=e(39),m=function(){function t(n,e){d()(this,t),this.name=n,this.slave=e}return _()(t,[{key:"enter",value:function(){}},{key:"onMessage",value:function(t){return!1}}]),t}(),O=function(t){function n(t){return d()(this,n),p()(this,(n.__proto__||s()(n)).call(this,"Default",t))}return h()(n,t),_()(n,[{key:"onMessage",value:function(t){return!!e.i(x.b)(t)&&(this.slave.id=t.workerId,this.slave.changeState(new w(this.slave)),!0)}}]),n}(m),w=function(t){function n(t){return d()(this,n),p()(this,(n.__proto__||s()(n)).call(this,"Idle",t))}return h()(n,t),_()(n,[{key:"onMessage",value:function(t){var n=this;if(!e.i(x.c)(t))return!1;var r=t.task,o=r.usedFunctionIds.filter(function(t){return!n.slave.functionCache.has(t)});if(0===o.length)this.slave.changeState(new j(this.slave,r));else{var i=c()(o),a=i[0],f=i.slice(1);this.slave.postMessage(x.d.apply(void 0,[a].concat(u()(f)))),this.slave.changeState(new S(this.slave,r))}return!0}}]),n}(m),S=function(t){function n(t,e){d()(this,n);var r=p()(this,(n.__proto__||s()(n)).call(this,"WaitingForFunctionDefinition",t));return r.task=e,r}return h()(n,t),_()(n,[{key:"onMessage",value:function(t){if(e.i(x.e)(t)){if(t.missingFunctions.length>0){var n=t.missingFunctions.map(function(t){return t.identifier}).join(", ");this.slave.postMessage(e.i(x.f)(new Error("The function ids ["+n+"] could not be resolved by slave "+this.slave.id+"."))),this.slave.changeState(new w(this.slave))}else{var r=!0,i=!1,u=void 0;try{for(var a,c=o()(t.functions);!(r=(a=c.next()).done);r=!0){var f=a.value;this.slave.functionCache.registerFunction(f)}}catch(t){i=!0,u=t}finally{try{!r&&c.return&&c.return()}finally{if(i)throw u}}this.slave.changeState(new j(this.slave,this.task))}return!0}return!1}}]),n}(m),j=function(t){function n(t,e){d()(this,n);var r=p()(this,(n.__proto__||s()(n)).call(this,"Executing",t));return r.task=e,r}return h()(n,t),_()(n,[{key:"enter",value:function(){var t=new b.a(this.slave.functionCache);try{var n=t.deserializeFunctionCall(this.task.main),r=n({functionCallDeserializer:t});this.slave.postMessage(e.i(x.g)(r))}catch(t){this.slave.postMessage(e.i(x.f)(t))}this.slave.changeState(new w(this.slave))}}]),n}(m)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(60),o=e(61),i=e(62),slaveFunctionLookupTable=new o.a;e.i(i.a)(slaveFunctionLookupTable);/** @preserve WORKER_SLAVE_STATIC_FUNCTIONS_PLACEHOLDER */ var u=new r.a(slaveFunctionLookupTable);onmessage=function(t){u.onMessage(t.data)}},function(t,n,e){t.exports={default:e(86),__esModule:!0}},function(t,n,e){t.exports={default:e(87),__esModule:!0}},function(t,n,e){t.exports={default:e(88),__esModule:!0}},function(t,n,e){t.exports={default:e(89),__esModule:!0}},function(t,n,e){t.exports={default:e(90),__esModule:!0}},function(t,n,e){t.exports={default:e(92),__esModule:!0}},function(t,n,e){t.exports={default:e(93),__esModule:!0}},function(t,n,e){t.exports={default:e(94),__esModule:!0}},function(t,n,e){e(37),e(116),t.exports=e(0).Array.from},function(t,n,e){e(59),e(37),t.exports=e(115)},function(t,n,e){var r=e(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,n,e){e(118),t.exports=e(0).Object.assign},function(t,n,e){e(119);var r=e(0).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(120);var r=e(0).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){e(121);var r=e(0).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(122),t.exports=e(0).Object.getPrototypeOf},function(t,n,e){e(123),t.exports=e(0).Object.setPrototypeOf},function(t,n,e){e(125),e(124),e(126),e(127),t.exports=e(0).Symbol},function(t,n,e){e(37),e(59),t.exports=e(36).f("iterator")},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(8),o=e(57),i=e(114);t.exports=function(t){return function(n,e,u){var a,c=r(n),f=o(c.length),s=i(u,f);if(t&&e!=e){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(23),o=e(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),o))?e:i?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){"use strict";var r=e(4),o=e(16);t.exports=function(t,n,e){n in t?r.f(t,n,o(0,e)):t[n]=e}},function(t,n,e){var r=e(15),o=e(29),i=e(18);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,a=e(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&n.push(u);return n}},function(t,n,e){t.exports=e(3).document&&document.documentElement},function(t,n,e){var r=e(14),o=e(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){var r=e(23);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(5);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},function(t,n,e){"use strict";var r=e(28),o=e(16),i=e(30),u={};e(12)(u,e(1)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(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,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:e=!0}},i[r]=function(){return u},t(i)}catch(t){}return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(15),o=e(8);t.exports=function(t,n){for(var e,i=o(t),u=r(i),a=u.length,c=0;a>c;)if(i[e=u[c++]]===n)return e}},function(t,n,e){var r=e(20)("meta"),o=e(13),i=e(7),u=e(4).f,a=0,c=Object.isExtensible||function(){return!0},f=!e(11)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},v=function(t){return f&&h.NEED&&c(t)&&!i(t,r)&&s(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:v}},function(t,n,e){"use strict";var r=e(15),o=e(29),i=e(18),u=e(19),a=e(48),c=Object.assign;t.exports=!c||e(11)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=c({},t)[e]||Object.keys(c({},n)).join("")!=r})?function(t,n){for(var e=u(t),c=arguments.length,f=1,s=o.f,l=i.f;c>f;)for(var p,v=a(arguments[f++]),h=s?r(v).concat(s(v)):r(v),y=h.length,d=0;y>d;)l.call(v,p=h[d++])&&(e[p]=v[p]);return e}:c},function(t,n,e){var r=e(4),o=e(5),i=e(15);t.exports=e(6)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),a=u.length,c=0;a>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(13),o=e(5),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(24)(Function.call,e(50).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n,e){var r=e(33),o=e(25);t.exports=function(t){return function(n,e){var i,u,a=String(o(n)),c=r(e),f=a.length;return c<0||c>=f?t?"":void 0:(i=a.charCodeAt(c),i<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536)}}},function(t,n,e){var r=e(33),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(5),o=e(58);t.exports=e(0).getIterator=function(t){var n=o(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return r(n.call(t))}},function(t,n,e){"use strict";var r=e(24),o=e(2),i=e(19),u=e(104),a=e(102),c=e(57),f=e(99),s=e(58);o(o.S+o.F*!e(106)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,o,l,p=i(t),v="function"==typeof this?this:Array,h=arguments.length,y=h>1?arguments[1]:void 0,d=void 0!==y,g=0,_=s(p);if(d&&(y=r(y,h>2?arguments[2]:void 0,2)),void 0==_||v==Array&&a(_))for(n=c(p.length),e=new v(n);n>g;g++)f(e,g,d?y(p[g],g):p[g]);else for(l=_.call(p),e=new v;!(o=l.next()).done;g++)f(e,g,d?u(l,y,[o.value,g],!0):o.value);return e.length=g,e}})},function(t,n,e){"use strict";var r=e(96),o=e(107),i=e(14),u=e(8);t.exports=e(49)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(2);r(r.S+r.F,"Object",{assign:e(110)})},function(t,n,e){var r=e(2);r(r.S,"Object",{create:e(28)})},function(t,n,e){var r=e(2);r(r.S+r.F*!e(6),"Object",{defineProperty:e(4).f})},function(t,n,e){e(55)("getOwnPropertyNames",function(){return e(51).f})},function(t,n,e){var r=e(19),o=e(53);e(55)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(2);r(r.S,"Object",{setPrototypeOf:e(112).set})},function(t,n){},function(t,n,e){"use strict";var r=e(3),o=e(7),i=e(6),u=e(2),a=e(56),c=e(109).KEY,f=e(11),s=e(32),l=e(30),p=e(20),v=e(1),h=e(36),y=e(35),d=e(108),g=e(100),_=e(103),b=e(5),x=e(8),m=e(34),O=e(16),w=e(28),S=e(51),j=e(50),M=e(4),E=e(15),k=j.f,F=M.f,P=S.f,A=r.Symbol,T=r.JSON,I=T&&T.stringify,C=v("_hidden"),N=v("toPrimitive"),R={}.propertyIsEnumerable,L=s("symbol-registry"),z=s("symbols"),D=s("op-symbols"),J=Object.prototype,K="function"==typeof A,W=r.QObject,U=!W||!W.prototype||!W.prototype.findChild,G=i&&f(function(){return 7!=w(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=k(J,n);r&&delete J[n],F(t,n,e),r&&t!==J&&F(J,n,r)}:F,B=function(t){var n=z[t]=w(A.prototype);return n._k=t,n},Y=K&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},q=function(t,n,e){return t===J&&q(D,n,e),b(t),n=m(n,!0),b(e),o(z,n)?(e.enumerable?(o(t,C)&&t[C][n]&&(t[C][n]=!1),e=w(e,{enumerable:O(0,!1)})):(o(t,C)||F(t,C,O(1,{})),t[C][n]=!0),G(t,n,e)):F(t,n,e)},X=function(t,n){b(t);for(var e,r=g(n=x(n)),o=0,i=r.length;i>o;)q(t,e=r[o++],n[e]);return t},Q=function(t,n){return void 0===n?w(t):X(w(t),n)},H=function(t){var n=R.call(this,t=m(t,!0));return!(this===J&&o(z,t)&&!o(D,t))&&(!(n||!o(this,t)||!o(z,t)||o(this,C)&&this[C][t])||n)},V=function(t,n){if(t=x(t),n=m(n,!0),t!==J||!o(z,n)||o(D,n)){var e=k(t,n);return!e||!o(z,n)||o(t,C)&&t[C][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=P(x(t)),r=[],i=0;e.length>i;)o(z,n=e[i++])||n==C||n==c||r.push(n);return r},$=function(t){for(var n,e=t===J,r=P(e?D:x(t)),i=[],u=0;r.length>u;)!o(z,n=r[u++])||e&&!o(J,n)||i.push(z[n]);return i};K||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===J&&n.call(D,e),o(this,C)&&o(this[C],t)&&(this[C][t]=!1),G(this,t,O(1,e))};return i&&U&&G(J,t,{configurable:!0,set:n}),B(t)},a(A.prototype,"toString",function(){return this._k}),j.f=V,M.f=q,e(52).f=S.f=Z,e(18).f=H,e(29).f=$,i&&!e(27)&&a(J,"propertyIsEnumerable",H,!0),h.f=function(t){return B(v(t))}),u(u.G+u.W+u.F*!K,{Symbol:A});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;tt.length>nt;)v(tt[nt++]);for(var tt=E(v.store),nt=0;tt.length>nt;)y(tt[nt++]);u(u.S+u.F*!K,"Symbol",{for:function(t){return o(L,t+="")?L[t]:L[t]=A(t)},keyFor:function(t){if(Y(t))return d(L,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){U=!0},useSimple:function(){U=!1}}),u(u.S+u.F*!K,"Object",{create:Q,defineProperty:q,defineProperties:X,getOwnPropertyDescriptor:V,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),T&&u(u.S+u.F*(!K||f(function(){var t=A();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Y(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return n=r[1],"function"==typeof n&&(e=n),!e&&_(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!Y(n))return n}),r[1]=n,I.apply(T,r)}}}),A.prototype[N]||e(12)(A.prototype,N,A.prototype.valueOf),l(A,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(35)("asyncIterator")},function(t,n,e){e(35)("observable")}]); //# sourceMappingURL=worker-slave.parallel.js.map