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

burrata

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

burrata - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0

src/nodes.js

2

dist/burrata.min.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.burrata=e():t.burrata=e()}(window,function(){return 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}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return 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,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=160)}([function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},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(53)("wks"),o=n(34),i=n(1).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,e,n){var r=n(1),o=n(0),i=n(12),u=n(11),a=n(9),c=function(t,e,n){var s,f,l,p=t&c.F,v=t&c.G,h=t&c.S,d=t&c.P,y=t&c.B,g=t&c.W,_=v?o:o[e]||(o[e]={}),m=_.prototype,b=v?r:h?r[e]:(r[e]||{}).prototype;for(s in v&&(n=e),n)(f=!p&&b&&void 0!==b[s])&&a(_,s)||(l=f?b[s]:n[s],_[s]=v&&"function"!=typeof b[s]?n[s]:y&&f?i(l,r):g&&b[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&&((_.virtual||(_.virtual={}))[s]=l,t&c.R&&m&&!m[s]&&u(m,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(6),o=n(85),i=n(58),u=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(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,n){var r=n(56),o=n(61);t.exports=function(t){return r(o(t))}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(7),o=n(36);t.exports=n(5)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(26);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){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){var r=n(12),o=n(149),i=n(148),u=n(6),a=n(55),c=n(147),s={},f={};(e=t.exports=function(t,e,n,l,p){var v,h,d,y,g=p?function(){return t}:c(t),_=r(n,l,e?2:1),m=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(v=a(t.length);v>m;m++)if((y=e?_(u(h=t[m])[0],h[1]):_(t[m]))===s||y===f)return y}else for(d=g.call(t);!(h=d.next()).done;)if((y=o(d,_,h.value,e))===s||y===f)return y}).BREAK=s,e.RETURN=f},function(t,e,n){var r=n(84),o=n(52);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(34)("meta"),o=n(4),i=n(9),u=n(7).f,a=0,c=Object.isExtensible||function(){return!0},s=!n(10)(function(){return c(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return s&&l.NEED&&c(t)&&!i(t,r)&&f(t),t}}},function(t,e,n){var r=n(49);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(t,o.key,o)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){var r=n(64);t.exports=function(t){return function(){var e=this,n=arguments;return new r(function(o,i){var u=t.apply(e,n);function a(t,e){try{var n=u[t](e),a=n.value}catch(t){return void i(t)}n.done?o(a):r.resolve(a).then(c,s)}function c(t){a("next",t)}function s(t){a("throw",t)}c()})}}},function(t,e,n){t.exports=n(136)},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(61);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(7).f,o=n(9),i=n(2)("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){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports={}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=!0},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){var r=n(132),o=n(130);function i(t){return(i="function"==typeof o&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t})(t)}function u(e){return"function"==typeof o&&"symbol"===i(r)?t.exports=u=function(t){return i(t)}:t.exports=u=function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":i(t)},u(e)}t.exports=u},function(t,e,n){var r=n(11);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){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){n(152);for(var r=n(1),o=n(11),i=n(25),u=n(2)("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(","),c=0;c<a.length;c++){var s=a[c],f=r[s],l=f&&f.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},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(6),o=n(155),i=n(52),u=n(54)("IE_PROTO"),a=function(){},c=function(){var t,e=n(59)("iframe"),r=i.length;for(e.style.display="none",n(83).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).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,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[u]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){},function(t,e,n){var r=n(12),o=n(56),i=n(22),u=n(55),a=n(110);t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,v=e||a;return function(e,a,h){for(var d,y,g=i(e),_=o(g),m=r(a,h,3),b=u(_.length),x=0,w=n?v(e,b):c?v(e,0):void 0;b>x;x++)if((p||x in _)&&(y=m(d=_[x],x,g),t))if(n)w[x]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return x;case 2:w.push(d)}else if(f)return!1;return l?-1:s||f?f:w}}},function(t,e,n){"use strict";var r=n(13);Object.defineProperty(e,"__esModule",{value:!0}),e.Node=void 0;var o=r(n(20)),i=r(n(19)),u=r(n(18)),a=r(n(48)),c=r(n(43)),s=r(n(17)),f=r(n(40)),l=r(n(29)),p=r(n(115)),v=r(n(67)),h={},d=function(t){function e(t,n,r){var o;return(0,u.default)(this,e),(o=(0,a.default)(this,(0,c.default)(e).call(this)))._id=t,o._target=n,o._origin=r,o._handlers={},o._sender=null,o._receiver=null,h[t]=(0,l.default)((0,l.default)(o)),o}var n,r;return(0,f.default)(e,t),(0,s.default)(e,null,[{key:"instances",get:function(){return h}}]),(0,s.default)(e,[{key:"log",value:function(t){var e=new v.default("log",{detail:{message:t}});this.dispatchEvent(e)}},{key:"setHandler",value:function(t,e){this._handlers[t]=e}},{key:"handle",value:(r=(0,i.default)(o.default.mark(function t(e,n,r){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this._handlers.hasOwnProperty(e)){t.next=2;break}throw new Error("Unknown command: ".concat(e));case 2:return t.abrupt("return",this._handlers[e](n,r));case 3:case"end":return t.stop()}},t,this)})),function(t,e,n){return r.apply(this,arguments)})},{key:"_init",value:function(t,e){this._sender=t,this._receiver=e}},{key:"_send",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._sender._send(t,e,n)}},{key:"_receive",value:(n=(0,i.default)(o.default.mark(function t(e){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this._receiver._receive(e));case 1:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"id",get:function(){return this._id}},{key:"target",get:function(){return this._target}},{key:"origin",get:function(){return this._origin}},{key:"sender",get:function(){return this._sender}},{key:"receiver",get:function(){return this._receiver}}]),e}(p.default);e.Node=d},function(t,e,n){var r=n(72),o=n(116);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=r(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}},function(t,e,n){t.exports=n(121)},function(t,e,n){var r=n(3),o=n(0),i=n(10);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){var r=n(73),o=n(41);function i(e){return t.exports=i=o?r:function(t){return t.__proto__||r(t)},i(e)}t.exports=i},function(t,e,n){var r=n(21),o=n(36),i=n(8),u=n(58),a=n(9),c=n(85),s=Object.getOwnPropertyDescriptor;e.f=n(5)?s:function(t,e){if(t=i(t),e=u(e,!0),c)try{return s(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(1),o=n(0),i=n(27),u=n(47),a=n(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,n){e.f=n(2)},function(t,e,n){var r=n(30),o=n(29);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e,n){t.exports=n(134)},function(t,e,n){"use strict";var r=n(26);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(24),o=n(2)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,u;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"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(0),o=n(1),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(27)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(53)("keys"),o=n(34);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(62),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){t.exports=n(11)},function(t,e,n){var r=n(4);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){var r=n(4),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){"use strict";var r=n(27),o=n(3),i=n(57),u=n(11),a=n(25),c=n(156),s=n(23),f=n(82),l=n(2)("iterator"),p=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,h,d,y,g){c(n,e,h);var _,m,b,x=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",O="values"==d,E=!1,j=t.prototype,k=j[l]||j["@@iterator"]||d&&j[d],S=k||x(d),P=d?O?x("entries"):S:void 0,T="Array"==e&&j.entries||k;if(T&&(b=f(T.call(new t)))!==Object.prototype&&b.next&&(s(b,w,!0),r||"function"==typeof b[l]||u(b,l,v)),O&&k&&"values"!==k.name&&(E=!0,S=function(){return k.call(this)}),r&&!g||!p&&!E&&j[l]||u(j,l,S),a[e]=S,a[w]=v,d)if(_={values:O?S:x("values"),keys:y?S:x("keys"),entries:P},g)for(m in _)m in j||i(j,m,_[m]);else o(o.P+o.F*(p||E),e,_);return _}},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){"use strict";var r=n(157)(!0);n(60)(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,n){t.exports=n(158)},function(t,e,n){"use strict";var r=n(13);Object.defineProperty(e,"__esModule",{value:!0}),e.Sender=void 0;var o=r(n(88)),i=r(n(20)),u=r(n(19)),a=r(n(18)),c=r(n(17)),s=function(){function t(e){(0,a.default)(this,t),this._node=e,this._msgId=0}var e,n,r;return(0,c.default)(t,[{key:"init",value:(r=(0,u.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this._sendAndReceive("connect"));case 1:case"end":return t.stop()}},t,this)})),function(){return r.apply(this,arguments)})},{key:"send",value:(n=(0,u.default)(i.default.mark(function t(e,n){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this._sendAndReceive("request",{type:e,args:n}));case 1:case"end":return t.stop()}},t,this)})),function(t,e){return n.apply(this,arguments)})},{key:"_sendAndReceive",value:(e=(0,u.default)(i.default.mark(function t(e){var n,r,o,u,a=arguments;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},r=this._msgId++,o="".concat(this._node.id,":").concat(r),u=this._node._receive(o),this._send(e,o,n),t.abrupt("return",u);case 6:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"_send",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._node,i=r.id,u=r.target,a=r.origin,c=(0,o.default)({type:t,from:i,id:e,payload:n});u.postMessage(c,a)}}]),t}();e.Sender=s},function(t,e,n){"use strict";var r=n(13);Object.defineProperty(e,"__esModule",{value:!0}),e.Receiver=void 0;var o=r(n(30)),i=r(n(20)),u=r(n(19)),a=r(n(18)),c=r(n(17)),s=r(n(49)),f=r(n(67)),l=r(n(90)),p=r(n(89)),v=n(39),h=["type","from","id","payload"],d=["name","stack"],y=function(){},g=function(t){var e=new Error(t.message);return d.forEach(function(n){var r=t[n];try{(0,s.default)(e,n,{configurable:!0,enumerable:!1,value:r,writable:!0})}catch(t){}}),e},_=function(){function t(e){(0,a.default)(this,t),this._node=e,this._dfds={},this._onMessage=this._onMessage.bind(this),this._commands={connect:this._handleConnect.bind(this),request:this._handleRequest.bind(this),response:this._handleResponse.bind(this)}}var e,n,r,s;return(0,c.default)(t,[{key:"init",value:function(){window.addEventListener("message",this._onMessage)}},{key:"dispose",value:function(){window.removeEventListener("message",this._onMessage)}},{key:"_receive",value:(s=(0,u.default)(i.default.mark(function t(e){var n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this._dfds.hasOwnProperty(e)||((n=(0,l.default)()).promise.catch(y),this._dfds[e]=n),t.abrupt("return",this._dfds[e].promise);case 2:case"end":return t.stop()}},t,this)})),function(t){return s.apply(this,arguments)})},{key:"_onMessage",value:function(t){var e=this,n=null;try{n=JSON.parse(t.data)}catch(t){}null!=n&&"object"===(0,o.default)(n)&&!h.some(function(t){return null==n[t]})&&this._commands.hasOwnProperty(n.type)&&this._commands[n.type](n,t.source).catch(function(t){e._dispatchError(new Error("Failed to process ".concat(n.type,": ").concat(t)))})}},{key:"_handleConnect",value:(r=(0,u.default)(i.default.mark(function t(e,n){var r,o,u;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e.id,o=e.from,t.prev=1,u=this._node._accept(o,n),t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(1),this._dispatchError(new Error("Failed to accept connection: ".concat(t.t0))),t.abrupt("return");case 9:return this._dispatchEvent("connect",{slave:u}),t.next=12,u._send("response",r);case 12:case"end":return t.stop()}},t,this,[[1,5]])})),function(t,e){return r.apply(this,arguments)})},{key:"_handleRequest",value:(n=(0,u.default)(i.default.mark(function t(e){var n,r,o,u,a,c,s,f;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.id,r=e.from,o=e.payload,u=o.type,a=o.args,v.Node.instances.hasOwnProperty(r)){t.next=3;break}return t.abrupt("return");case 3:return c=v.Node.instances[r],s=null,f=null,t.prev=6,t.next=9,this._node.handle(u,a,c);case 9:s=t.sent,t.next=16;break;case 12:t.prev=12,t.t0=t.catch(6),f={message:""+t.t0};try{f=(0,p.default)(t.t0)}catch(t){}case 16:return t.prev=16,t.next=19,c._send("response",n,{error:f,result:s});case 19:return t.finish(16);case 20:case"end":return t.stop()}},t,this,[[6,12,16,20]])})),function(t){return n.apply(this,arguments)})},{key:"_handleResponse",value:(e=(0,u.default)(i.default.mark(function t(e){var n,r,o,u,a,c,s;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.id,e.from,r=e.payload,o=r.error,u=r.result,this._dfds.hasOwnProperty(n)){t.next=3;break}return t.abrupt("return");case 3:a=this._dfds[n],c=a.resolve,s=a.reject,delete this._dfds[n],null!=o?s(g(o)):c(u);case 6:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"_dispatchError",value:function(t){this._dispatchEvent("error",{error:t})}},{key:"_dispatchEvent",value:function(t,e){this._node.dispatchEvent(new f.default(t,{detail:e}))}}]),t}();e.Receiver=_},function(t,e,n){"use strict";(function(e){var n=e.CustomEvent;t.exports=function(){try{var t=new n("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?n:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,n(91))},function(t,e,n){t.exports=n(100)},function(t,e,n){"use strict";var r=n(3),o=n(26),i=n(12),u=n(14);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,a,c=arguments[1];return o(this),(e=void 0!==c)&&o(c),void 0==t?new this:(n=[],e?(r=0,a=i(c,arguments[2],2),u(t,!1,function(t){n.push(a(t,r++))})):u(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var r=n(1),o=n(3),i=n(16),u=n(10),a=n(11),c=n(31),s=n(14),f=n(32),l=n(4),p=n(23),v=n(7).f,h=n(38)(0),d=n(5);t.exports=function(t,e,n,y,g,_){var m=r[t],b=m,x=g?"set":"add",w=b&&b.prototype,O={};return d&&"function"==typeof b&&(_||w.forEach&&!u(function(){(new b).entries().next()}))?(b=e(function(e,n){f(e,b,t,"_c"),e._c=new m,void 0!=n&&s(n,g,e[x],e)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in w&&(!_||"clear"!=t)&&a(b.prototype,t,function(n,r){if(f(this,b,t),!e&&_&&!l(n))return"get"==t&&void 0;var o=this._c[t](0===n?0:n,r);return e?this:o})}),_||v(b.prototype,"size",{get:function(){return this._c.size}})):(b=y.getConstructor(e,t,g,x),c(b.prototype,n),i.NEED=!0),p(b,t),O[t]=b,o(o.G+o.W+o.F,O),_||y.setStrong(b,t,g),b}},function(t,e,n){t.exports=n(118)},function(t,e,n){t.exports=n(123)},function(t,e,n){var r=n(84),o=n(52).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(7),u=n(5),a=n(2)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];u&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(6),o=n(4),i=n(50);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,u=n(12),a=n(146),c=n(83),s=n(59),f=n(1),l=f.process,p=f.setImmediate,v=f.clearImmediate,h=f.MessageChannel,d=f.Dispatch,y=0,g={},_=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},m=function(t){_.call(t.data)};p&&v||(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},v=function(t){delete g[t]},"process"==n(24)(l)?r=function(t){l.nextTick(u(_,t,1))}:d&&d.now?r=function(t){d.now(u(_,t,1))}:h?(i=(o=new h).port2,o.port1.onmessage=m,r=u(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),_.call(t)}}:function(t){setTimeout(u(_,t,1),0)}),t.exports={set:p,clear:v}},function(t,e,n){var r=n(6),o=n(26),i=n(2)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||void 0==(n=r(u)[i])?e:o(n)}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(9),o=n(22),i=n(54)("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,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(9),o=n(8),i=n(154)(!1),u=n(54)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),c=0,s=[];for(n in a)n!=u&&r(a,n)&&s.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){t.exports=!n(5)&&!n(10)(function(){return 7!=Object.defineProperty(n(59)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var r=n(13);Object.defineProperty(e,"__esModule",{value:!0}),e.Slave=void 0;var o=r(n(20)),i=r(n(19)),u=r(n(18)),a=r(n(17)),c=r(n(48)),s=r(n(43)),f=r(n(40)),l=r(n(29)),p=n(39),v=n(66),h=n(65),d=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.parent,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*";return(0,u.default)(this,e),(n=(0,c.default)(this,(0,s.default)(e).call(this,t,r,o)))._init(new h.Sender((0,l.default)((0,l.default)(n))),new v.Receiver((0,l.default)((0,l.default)(n)))),n}var n,r;return(0,f.default)(e,t),(0,a.default)(e,[{key:"init",value:(r=(0,i.default)(o.default.mark(function t(){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this._receiver.init(),t.next=3,this._sender.init();case 3:case"end":return t.stop()}},t,this)})),function(){return r.apply(this,arguments)})},{key:"dispose",value:function(){this._receiver.dispose()}},{key:"send",value:(n=(0,i.default)(o.default.mark(function t(e){var n,r=arguments;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},t.abrupt("return",this._sender.send(e,n));case 2:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"toString",value:function(){return"Slave#".concat(this.id)}}]),e}(p.Node);e.Slave=d},function(t,e,n){var r=n(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){t.exports=n(87)},function(t,e,n){"use strict";var r=n(13),o=r(n(68)),i=r(n(30));t.exports=function(t){return"object"===(0,i.default)(t)?function t(e,n){var r;r=Array.isArray(e)?[]:{};n.push(e);(0,o.default)(e).forEach(function(o){var u=e[o];"function"!=typeof u&&(u&&"object"===(0,i.default)(u)?-1!==n.indexOf(e[o])?r[o]="[Circular]":r[o]=t(e[o],n.slice(0)):r[o]=u)});"string"==typeof e.name&&(r.name=e.name);"string"==typeof e.message&&(r.message=e.message);"string"==typeof e.stack&&(r.stack=e.stack);return r}(t,[]):"function"==typeof t?"[Function: "+(t.name||"anonymous")+"]":t}},function(t,e,n){"use strict";var r=n(13)(n(64));t.exports=function(){var t={};return t.promise=new r.default(function(e,n){t.resolve=e,t.reject=n}),t}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){n(69)("WeakMap")},function(t,e,n){n(70)("WeakMap")},function(t,e,n){"use strict";var r=n(31),o=n(16).getWeak,i=n(6),u=n(4),a=n(32),c=n(14),s=n(38),f=n(9),l=n(28),p=s(5),v=s(6),h=0,d=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,e){return p(t.a,function(t){return t[0]===e})};y.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=v(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var s=t(function(t,r){a(t,s,e,"_i"),t._t=e,t._i=h++,t._l=void 0,void 0!=r&&c(r,n,t[i],t)});return r(s.prototype,{delete:function(t){if(!u(t))return!1;var n=o(t);return!0===n?d(l(this,e)).delete(t):n&&f(n,this._i)&&delete n[this._i]},has:function(t){if(!u(t))return!1;var n=o(t);return!0===n?d(l(this,e)).has(t):n&&f(n,this._i)}}),s},def:function(t,e,n){var r=o(i(e),!0);return!0===r?d(t).set(e,n):r[t._i]=n,t},ufstore:d}},function(t,e,n){"use strict";var r=n(15),o=n(45),i=n(21),u=n(22),a=n(56),c=Object.assign;t.exports=!c||n(10)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=u(t),c=arguments.length,s=1,f=o.f,l=i.f;c>s;)for(var p,v=a(arguments[s++]),h=f?r(v).concat(f(v)):r(v),d=h.length,y=0;d>y;)l.call(v,p=h[y++])&&(n[p]=v[p]);return n}:c},function(t,e,n){"use strict";var r,o=n(38)(0),i=n(57),u=n(16),a=n(95),c=n(94),s=n(4),f=n(10),l=n(28),p=u.getWeak,v=Object.isExtensible,h=c.ufstore,d={},y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(s(t)){var e=p(t);return!0===e?h(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(l(this,"WeakMap"),t,e)}},_=t.exports=n(71)("WeakMap",y,g,c,!0,!0);f(function(){return 7!=(new _).set((Object.freeze||Object)(d),7).get(d)})&&(a((r=c.getConstructor(y,"WeakMap")).prototype,g),u.NEED=!0,o(["delete","has","get","set"],function(t){var e=_.prototype,n=e[t];i(e,t,function(e,o){if(s(e)&&!v(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)})}))},function(t,e,n){n(37),n(33),n(96),n(93),n(92),t.exports=n(0).WeakMap},function(t,e,n){t.exports=n(97)},function(t,e,n){var r=n(22),o=n(15);n(42)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){n(99),t.exports=n(0).Object.keys},function(t,e,n){var r=n(8),o=n(44).f;n(42)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){n(101);var r=n(0).Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},function(t,e,n){t.exports=n(102)},function(t,e,n){n(69)("Map")},function(t,e,n){n(70)("Map")},function(t,e,n){var r=n(14);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(51),o=n(106);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,e,n){var r=n(3);r(r.P+r.R,"Map",{toJSON:n(107)("Map")})},function(t,e,n){var r=n(4),o=n(75),i=n(2)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(109);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(7).f,o=n(35),i=n(31),u=n(12),a=n(32),c=n(14),s=n(60),f=n(81),l=n(76),p=n(5),v=n(16).fastKey,h=n(28),d=p?"_s":"size",y=function(t,e){var n,r=v(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,s){var f=t(function(t,r){a(t,f,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=r&&c(r,n,t[s],t)});return i(f.prototype,{clear:function(){for(var t=h(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var n=h(this,e),r=y(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[d]--}return!!r},forEach:function(t){h(this,e);for(var n,r=u(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(h(this,e),t)}}),p&&r(f.prototype,"size",{get:function(){return h(this,e)[d]}}),f},def:function(t,e,n){var r,o,i=y(t,e);return i?i.v=n:(t._l=i={i:o=v(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[d]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,e,n){s(t,e,function(t,n){this._t=h(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?f(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,f(1))},n?"entries":"values",!n,!0),l(e)}}},function(t,e,n){"use strict";var r=n(111),o=n(28);t.exports=n(71)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){n(37),n(63),n(33),n(112),n(108),n(105),n(104),t.exports=n(0).Map},function(t,e,n){t.exports=n(113)},function(t,e,n){"use strict";var r=n(13),o=r(n(114)),i=r(n(30)),u=r(n(73)),a=r(n(103)),c=r(n(72)),s=r(n(41)),f=r(n(49)),l=r(n(68)),p=r(n(98));Object.defineProperty(e,"__esModule",{value:!0});var v=new p.default,h=new p.default;function d(t){var e=v.get(t);return console.assert(null!=e,"'this' is expected an Event object, but got",t),e}function y(t,e){v.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var n=(0,l.default)(e),r=0;r<n.length;++r){var o=n[r];o in this||(0,f.default)(this,o,g(o))}}function g(t){return{get:function(){return d(this).event[t]},set:function(e){d(this).event[t]=e},configurable:!0,enumerable:!0}}function _(t){return{value:function(){var e=d(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function m(t){if(null==t||t===Object.prototype)return y;var e=h.get(t);return null==e&&(e=function(t,e){var n=(0,l.default)(e);if(0===n.length)return t;function r(e,n){t.call(this,e,n)}r.prototype=(0,c.default)(t.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(var o=0;o<n.length;++o){var i=n[o];if(!(i in t.prototype)){var u="function"==typeof(0,a.default)(e,i).value;(0,f.default)(r.prototype,i,u?_(i):g(i))}}return r}(m((0,u.default)(t)),t),h.set(t,e)),e}function b(t){return d(t).stopped}function x(t,e){d(t).passiveListener=e}y.prototype={get type(){return d(this).event.type},get target(){return d(this).eventTarget},get currentTarget(){return d(this).currentTarget},composedPath:function(){var t=d(this).currentTarget;return null==t?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return d(this).eventPhase},stopPropagation:function(){var t=d(this);"function"==typeof t.event.stopPropagation&&t.event.stopPropagation()},stopImmediatePropagation:function(){var t=d(this);t.stopped=!0,"function"==typeof t.event.stopImmediatePropagation&&t.event.stopImmediatePropagation()},get bubbles(){return Boolean(d(this).event.bubbles)},get cancelable(){return Boolean(d(this).event.cancelable)},preventDefault:function(){var t=d(this);null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):console.warn("Event#preventDefault() was called from a passive listener:",t.passiveListener)},get defaultPrevented(){return d(this).canceled},get composed(){return Boolean(d(this).event.composed)},get timeStamp(){return d(this).timeStamp}},Object.defineProperty(y.prototype,"constructor",{value:y,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&((0,s.default)(y.prototype,window.Event.prototype),h.set(window.Event.prototype,y));var w=new p.default,O=3;function E(t){return null!==t&&"object"===(0,i.default)(t)}function j(t){var e=w.get(t);if(null==e)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function k(t,e){Object.defineProperty(t,"on".concat(e),function(t){return{get:function(){for(var e=j(this).get(t);null!=e;){if(e.listenerType===O)return e.listener;e=e.next}return null},set:function(e){"function"==typeof e||E(e)||(e=null);for(var n=j(this),r=null,o=n.get(t);null!=o;)o.listenerType===O?null!==r?r.next=o.next:null!==o.next?n.set(t,o.next):n.delete(t):r=o,o=o.next;if(null!==e){var i={listener:e,listenerType:O,passive:!1,once:!1,next:null};null===r?n.set(t,i):r.next=i}},configurable:!0,enumerable:!0}}(e))}function S(t){function e(){P.call(this)}e.prototype=(0,c.default)(P.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(var n=0;n<t.length;++n)k(e.prototype,t[n]);return e}function P(){if(!(this instanceof P)){if(1===arguments.length&&Array.isArray(arguments[0]))return S(arguments[0]);if(arguments.length>0){for(var t=new Array(arguments.length),e=0;e<arguments.length;++e)t[e]=arguments[e];return S(t)}throw new TypeError("Cannot call a class as a function")}w.set(this,new o.default)}P.prototype={addEventListener:function(t,e,n){if(null==e)return!1;if("function"!=typeof e&&!E(e))throw new TypeError("'listener' should be a function or an object.");var r=j(this),o=E(n),i=(o?Boolean(n.capture):Boolean(n))?1:2,u={listener:e,listenerType:i,passive:o&&Boolean(n.passive),once:o&&Boolean(n.once),next:null},a=r.get(t);if(void 0===a)return r.set(t,u),!0;for(var c=null;null!=a;){if(a.listener===e&&a.listenerType===i)return!1;c=a,a=a.next}return c.next=u,!0},removeEventListener:function(t,e,n){if(null==e)return!1;for(var r=j(this),o=(E(n)?Boolean(n.capture):Boolean(n))?1:2,i=null,u=r.get(t);null!=u;){if(u.listener===e&&u.listenerType===o)return null!==i?i.next=u.next:null!==u.next?r.set(t,u.next):r.delete(t),!0;i=u,u=u.next}return!1},dispatchEvent:function(t){if(null==t||"string"!=typeof t.type)throw new TypeError('"event.type" should be a string.');var e=j(this),n=t.type,r=e.get(n);if(null==r)return!0;for(var o=function(t,e){return new(m((0,u.default)(e)))(t,e)}(this,t),i=null;null!=r&&(r.once?null!==i?i.next=r.next:null!==r.next?e.set(n,r.next):e.delete(n):i=r,x(o,r.passive?r.listener:null),"function"==typeof r.listener?r.listener.call(this,o):r.listenerType!==O&&"function"==typeof r.listener.handleEvent&&r.listener.handleEvent(o),!b(o));)r=r.next;return x(o,null),function(t,e){d(t).eventPhase=e}(o,0),function(t,e){d(t).currentTarget=e}(o,null),!o.defaultPrevented}},Object.defineProperty(P.prototype,"constructor",{value:P,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&(0,s.default)(P.prototype,window.EventTarget.prototype),e.defineEventAttribute=k,e.EventTarget=P,e.default=P,t.exports=P,t.exports.EventTarget=t.exports.default=P,t.exports.defineEventAttribute=k},function(t,e,n){var r=n(41);function o(e,n){return t.exports=o=r||function(t,e){return t.__proto__=e,t},o(e,n)}t.exports=o},function(t,e,n){var r=n(3);r(r.S,"Object",{create:n(35)})},function(t,e,n){n(117);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(4),o=n(6),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(12)(Function.call,n(44).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(3);r(r.S,"Object",{setPrototypeOf:n(119).set})},function(t,e,n){n(120),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){var r=n(22),o=n(82);n(42)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){n(122),t.exports=n(0).Object.getPrototypeOf},function(t,e,n){n(46)("observable")},function(t,e,n){n(46)("asyncIterator")},function(t,e,n){var r=n(8),o=n(74).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(15),o=n(45),i=n(21);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),c=i.f,s=0;a.length>s;)c.call(t,u=a[s++])&&e.push(u);return e}},function(t,e,n){"use strict";var r=n(1),o=n(9),i=n(5),u=n(3),a=n(57),c=n(16).KEY,s=n(10),f=n(53),l=n(23),p=n(34),v=n(2),h=n(47),d=n(46),y=n(127),g=n(75),_=n(6),m=n(4),b=n(8),x=n(58),w=n(36),O=n(35),E=n(126),j=n(44),k=n(7),S=n(15),P=j.f,T=k.f,L=E.f,M=r.Symbol,N=r.JSON,A=N&&N.stringify,R=v("_hidden"),F=v("toPrimitive"),C={}.propertyIsEnumerable,I=f("symbol-registry"),G=f("symbols"),D=f("op-symbols"),B=Object.prototype,W="function"==typeof M,J=r.QObject,z=!J||!J.prototype||!J.prototype.findChild,H=i&&s(function(){return 7!=O(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(B,e);r&&delete B[e],T(t,e,n),r&&t!==B&&T(B,e,r)}:T,q=function(t){var e=G[t]=O(M.prototype);return e._k=t,e},U=W&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},V=function(t,e,n){return t===B&&V(D,e,n),_(t),e=x(e,!0),_(n),o(G,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=O(n,{enumerable:w(0,!1)})):(o(t,R)||T(t,R,w(1,{})),t[R][e]=!0),H(t,e,n)):T(t,e,n)},K=function(t,e){_(t);for(var n,r=y(e=b(e)),o=0,i=r.length;i>o;)V(t,n=r[o++],e[n]);return t},Y=function(t){var e=C.call(this,t=x(t,!0));return!(this===B&&o(G,t)&&!o(D,t))&&(!(e||!o(this,t)||!o(G,t)||o(this,R)&&this[R][t])||e)},Q=function(t,e){if(t=b(t),e=x(e,!0),t!==B||!o(G,e)||o(D,e)){var n=P(t,e);return!n||!o(G,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=L(b(t)),r=[],i=0;n.length>i;)o(G,e=n[i++])||e==R||e==c||r.push(e);return r},Z=function(t){for(var e,n=t===B,r=L(n?D:b(t)),i=[],u=0;r.length>u;)!o(G,e=r[u++])||n&&!o(B,e)||i.push(G[e]);return i};W||(a((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(D,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),H(this,t,w(1,n))};return i&&z&&H(B,t,{configurable:!0,set:e}),q(t)}).prototype,"toString",function(){return this._k}),j.f=Q,k.f=V,n(74).f=E.f=X,n(21).f=Y,n(45).f=Z,i&&!n(27)&&a(B,"propertyIsEnumerable",Y,!0),h.f=function(t){return q(v(t))}),u(u.G+u.W+u.F*!W,{Symbol:M});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)v($[tt++]);for(var et=S(v.store),nt=0;et.length>nt;)d(et[nt++]);u(u.S+u.F*!W,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=M(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!W,"Object",{create:function(t,e){return void 0===e?O(t):K(O(t),e)},defineProperty:V,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),N&&u(u.S+u.F*(!W||s(function(){var t=M();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(m(e)||void 0!==t)&&!U(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!U(e))return e}),r[1]=e,A.apply(N,r)}}),M.prototype[F]||n(11)(M.prototype,F,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(128),n(37),n(125),n(124),t.exports=n(0).Symbol},function(t,e,n){t.exports=n(129)},function(t,e,n){n(63),n(33),t.exports=n(47).f("iterator")},function(t,e,n){t.exports=n(131)},function(t,e,n){var r=n(3);r(r.S+r.F*!n(5),"Object",{defineProperty:n(7).f})},function(t,e,n){n(133);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",s="object"==typeof t,f=e.regeneratorRuntime;if(f)s&&(t.exports=f);else{(f=e.regeneratorRuntime=s?t.exports:{}).wrap=b;var l="suspendedStart",p="suspendedYield",v="executing",h="completed",d={},y={};y[u]=function(){return this};var g=Object.getPrototypeOf,_=g&&g(g(M([])));_&&_!==r&&o.call(_,u)&&(y=_);var m=E.prototype=w.prototype=Object.create(y);O.prototype=m.constructor=E,E.constructor=O,E[c]=O.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(m),t},f.awrap=function(t){return{__await:t}},j(k.prototype),k.prototype[a]=function(){return this},f.AsyncIterator=k,f.async=function(t,e,n,r){var o=new k(b(t,e,n,r));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},j(m),m[c]="Generator",m[u]=function(){return this},m.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=M,L.prototype={constructor:L,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(T),!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 u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var c=o.call(u,"catchLoc"),s=o.call(u,"finallyLoc");if(c&&s){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.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 u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(u)},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),T(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;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:M(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}}}function b(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),u=new L(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===v)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return N()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var a=S(u,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=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=v;var c=x(t,e,n);if("normal"===c.type){if(r=n.done?h:p,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(t,n,u),i}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function w(){}function O(){}function E(){}function j(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,u){var a=x(t[n],t,r);if("throw"!==a.type){var c=a.arg,s=c.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,u)},function(t){e("throw",t,i,u)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},u)}u(a.arg)}(n,r,e,i)})}return e=e?e.then(i,i):i()}}function S(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,S(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=x(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 P(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function M(t){if(t){var e=t[u];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:N}}function N(){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(135),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e,n){var r=n(15),o=n(8),i=n(21).f;t.exports=function(t){return function(e){for(var n,u=o(e),a=r(u),c=a.length,s=0,f=[];c>s;)i.call(u,n=a[s++])&&f.push(t?[n,u[n]]:u[n]);return f}}},function(t,e,n){var r=n(3),o=n(137)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(138),t.exports=n(0).Object.values},function(t,e,n){t.exports=n(139)},function(t,e,n){"use strict";var r=n(3),o=n(50),i=n(78);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(3),o=n(0),i=n(1),u=n(80),a=n(77);r(r.P+r.R,"Promise",{finally:function(t){var e=u(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(2)("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],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(1),o=n(79).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,c="process"==n(24)(u);t.exports=function(){var t,e,n,s=function(){var r,o;for(c&&(r=u.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(c)n=function(){u.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(51),o=n(2)("iterator"),i=n(25);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(25),o=n(2)("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(6);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){"use strict";var r,o,i,u,a=n(27),c=n(1),s=n(12),f=n(51),l=n(3),p=n(4),v=n(26),h=n(32),d=n(14),y=n(80),g=n(79).set,_=n(145)(),m=n(50),b=n(78),x=n(144),w=n(77),O=c.TypeError,E=c.process,j=E&&E.versions,k=j&&j.v8||"",S=c.Promise,P="process"==f(E),T=function(){},L=o=m.f,M=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(2)("species")]=function(t){t(T,T)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==k.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var n=t._c;_(function(){for(var r=t._v,o=1==t._s,i=0,u=function(e){var n,i,u,a=o?e.ok:e.fail,c=e.resolve,s=e.reject,f=e.domain;try{a?(o||(2==t._h&&C(t),t._h=1),!0===a?n=r:(f&&f.enter(),n=a(r),f&&(f.exit(),u=!0)),n===e.promise?s(O("Promise-chain cycle")):(i=N(n))?i.call(n,c,s):c(n)):s(r)}catch(t){f&&!u&&f.exit(),s(t)}};n.length>i;)u(n[i++]);t._c=[],t._n=!1,e&&!t._h&&R(t)})}},R=function(t){g.call(c,function(){var e,n,r,o=t._v,i=F(t);if(i&&(e=b(function(){P?E.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=P||F(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},C=function(t){g.call(c,function(){var e;P?E.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},I=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()),A(e,!0))},G=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=N(t))?_(function(){var r={_w:n,_d:!1};try{e.call(t,s(G,r,1),s(I,r,1))}catch(t){I.call(r,t)}}):(n._v=t,n._s=1,A(n,!1))}catch(t){I.call({_w:n,_d:!1},t)}}};M||(S=function(t){h(this,S,"Promise","_h"),v(t),r.call(this);try{t(s(G,this,1),s(I,this,1))}catch(t){I.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(31)(S.prototype,{then:function(t,e){var n=L(y(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&A(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(I,t,1)},m.f=L=function(t){return t===S||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!M,{Promise:S}),n(23)(S,"Promise"),n(76)("Promise"),u=n(0).Promise,l(l.S+l.F*!M,"Promise",{reject:function(t){var e=L(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(a||!M),"Promise",{resolve:function(t){return w(a&&this===u?S:this,t)}}),l(l.S+l.F*!(M&&n(143)(function(t){S.all(t).catch(T)})),"Promise",{all:function(t){var e=this,n=L(e),r=n.resolve,o=n.reject,i=b(function(){var n=[],i=0,u=1;d(t,!1,function(t){var a=i++,c=!1;n.push(void 0),u++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--u||r(n))},o)}),--u||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=L(e),r=n.reject,o=b(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(){}},function(t,e,n){"use strict";var r=n(151),o=n(81),i=n(25),u=n(8);t.exports=n(60)(Array,"Array",function(t,e){this._t=u(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){var r=n(62),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(8),o=n(55),i=n(153);t.exports=function(t){return function(e,n,u){var a,c=r(e),s=o(c.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((a=c[f++])!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(7),o=n(6),i=n(15);t.exports=n(5)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),a=u.length,c=0;a>c;)r.f(t,n=u[c++],e[n]);return t}},function(t,e,n){"use strict";var r=n(35),o=n(36),i=n(23),u={};n(11)(u,n(2)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(62),o=n(61);t.exports=function(t){return function(e,n){var i,u,a=String(o(e)),c=r(n),s=a.length;return c<0||c>=s?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===s||(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,e,n){n(37),n(63),n(33),n(150),n(142),n(141),t.exports=n(0).Promise},function(t,e,n){"use strict";var r=n(13);Object.defineProperty(e,"__esModule",{value:!0}),e.Master=void 0;var o=r(n(64)),i=r(n(140)),u=r(n(20)),a=r(n(19)),c=r(n(18)),s=r(n(17)),f=r(n(48)),l=r(n(43)),p=r(n(40)),v=r(n(29)),h=n(39),d=n(66),y=n(65),g=function(t){function e(t,n,r,o){var i;return(0,c.default)(this,e),(i=(0,f.default)(this,(0,l.default)(e).call(this,n,r,o)))._master=t,i._init(new y.Sender((0,v.default)((0,v.default)(i))),t.receiver),i}var n;return(0,p.default)(e,t),(0,s.default)(e,[{key:"send",value:(n=(0,a.default)(u.default.mark(function t(e){var n,r=arguments;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},t.abrupt("return",this._sender.send(e,n));case 2:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"toString",value:function(){return"Slave#".concat(this.id)}}]),e}(h.Node),_=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*";return(0,c.default)(this,e),(t=(0,f.default)(this,(0,l.default)(e).call(this,"",n,r)))._slaves={},t._init(null,new d.Receiver((0,v.default)((0,v.default)(t)))),t}var n;return(0,p.default)(e,t),(0,s.default)(e,[{key:"init",value:function(){this._receiver.init()}},{key:"dispose",value:function(){this._receiver.dispose(),this._slaves={}}},{key:"toString",value:function(){return"Master"}},{key:"broadcast",value:(n=(0,a.default)(u.default.mark(function t(e){var n,r,a,c,s,f=arguments;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=(0,i.default)(this._slaves),t.next=4,o.default.all(r.map(function(t){return t.send(e,n)}));case 4:for(a=t.sent,c={},s=0;s<r.length;++s)c[r[s].id]=a[s];return t.abrupt("return",c);case 8:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"_accept",value:function(t,e){var n=new g(this,t,e,"*");return this._slaves[t]=n,n}},{key:"slaves",get:function(){return this._slaves}}]),e}(h.Node);e.Master=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Master",{enumerable:!0,get:function(){return r.Master}}),Object.defineProperty(e,"Slave",{enumerable:!0,get:function(){return o.Slave}});var r=n(159),o=n(86)}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.burrata=e():t.burrata=e()}(window,function(){return 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}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return 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,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=165)}([function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},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(1),o=n(0),i=n(13),u=n(12),a=n(10),c=function(t,e,n){var s,f,l,p=t&c.F,v=t&c.G,h=t&c.S,d=t&c.P,y=t&c.B,g=t&c.W,_=v?o:o[e]||(o[e]={}),m=_.prototype,b=v?r:h?r[e]:(r[e]||{}).prototype;for(s in v&&(n=e),n)(f=!p&&b&&void 0!==b[s])&&a(_,s)||(l=f?b[s]:n[s],_[s]=v&&"function"!=typeof b[s]?n[s]:y&&f?i(l,r):g&&b[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&&((_.virtual||(_.virtual={}))[s]=l,t&c.R&&m&&!m[s]&&u(m,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(52)("wks"),o=n(34),i=n(1).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,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(6),o=n(86),i=n(57),u=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(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){return t&&t.__esModule?t:{default:t}}},function(t,e,n){var r=n(55),o=n(60);t.exports=function(t){return r(o(t))}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(7),o=n(36);t.exports=n(5)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(26);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(13),o=n(154),i=n(153),u=n(6),a=n(54),c=n(152),s={},f={};(e=t.exports=function(t,e,n,l,p){var v,h,d,y,g=p?function(){return t}:c(t),_=r(n,l,e?2:1),m=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(v=a(t.length);v>m;m++)if((y=e?_(u(h=t[m])[0],h[1]):_(t[m]))===s||y===f)return y}else for(d=g.call(t);!(h=d.next()).done;)if((y=o(d,_,h.value,e))===s||y===f)return y}).BREAK=s,e.RETURN=f},function(t,e,n){var r=n(85),o=n(51);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(34)("meta"),o=n(4),i=n(10),u=n(7).f,a=0,c=Object.isExtensible||function(){return!0},s=!n(11)(function(){return c(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return s&&l.NEED&&c(t)&&!i(t,r)&&f(t),t}}},function(t,e,n){var r=n(48);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(t,o.key,o)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){var r=n(63);t.exports=function(t){return function(){var e=this,n=arguments;return new r(function(o,i){var u=t.apply(e,n);function a(t,e){try{var n=u[t](e),a=n.value}catch(t){return void i(t)}n.done?o(a):r.resolve(a).then(c,s)}function c(t){a("next",t)}function s(t){a("throw",t)}c()})}}},function(t,e,n){t.exports=n(141)},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(60);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(7).f,o=n(10),i=n(3)("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){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports={}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=!0},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){var r=n(137),o=n(135);function i(t){return(i="function"==typeof o&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t})(t)}function u(e){return"function"==typeof o&&"symbol"===i(r)?t.exports=u=function(t){return i(t)}:t.exports=u=function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":i(t)},u(e)}t.exports=u},function(t,e,n){var r=n(12);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){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){n(157);for(var r=n(1),o=n(12),i=n(25),u=n(3)("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(","),c=0;c<a.length;c++){var s=a[c],f=r[s],l=f&&f.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},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(6),o=n(160),i=n(51),u=n(53)("IE_PROTO"),a=function(){},c=function(){var t,e=n(58)("iframe"),r=i.length;for(e.style.display="none",n(84).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).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,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[u]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){},function(t,e,n){var r=n(13),o=n(55),i=n(22),u=n(54),a=n(115);t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,v=e||a;return function(e,a,h){for(var d,y,g=i(e),_=o(g),m=r(a,h,3),b=u(_.length),x=0,w=n?v(e,b):c?v(e,0):void 0;b>x;x++)if((p||x in _)&&(y=m(d=_[x],x,g),t))if(n)w[x]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return x;case 2:w.push(d)}else if(f)return!1;return l?-1:s||f?f:w}}},function(t,e,n){var r=n(73),o=n(121);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=r(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}},function(t,e,n){t.exports=n(126)},function(t,e,n){var r=n(2),o=n(0),i=n(11);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){var r=n(74),o=n(40);function i(e){return t.exports=i=o?r:function(t){return t.__proto__||r(t)},i(e)}t.exports=i},function(t,e,n){var r=n(21),o=n(36),i=n(9),u=n(57),a=n(10),c=n(86),s=Object.getOwnPropertyDescriptor;e.f=n(5)?s:function(t,e){if(t=i(t),e=u(e,!0),c)try{return s(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(1),o=n(0),i=n(27),u=n(46),a=n(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,n){e.f=n(3)},function(t,e,n){var r=n(30),o=n(29);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e,n){t.exports=n(139)},function(t,e,n){"use strict";var r=n(26);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(24),o=n(3)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,u;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"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(0),o=n(1),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(27)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(52)("keys"),o=n(34);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(61),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){t.exports=n(12)},function(t,e,n){var r=n(4);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){var r=n(4),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){"use strict";var r=n(27),o=n(2),i=n(56),u=n(12),a=n(25),c=n(161),s=n(23),f=n(83),l=n(3)("iterator"),p=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,h,d,y,g){c(n,e,h);var _,m,b,x=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",O="values"==d,E=!1,j=t.prototype,S=j[l]||j["@@iterator"]||d&&j[d],k=S||x(d),P=d?O?x("entries"):k:void 0,T="Array"==e&&j.entries||S;if(T&&(b=f(T.call(new t)))!==Object.prototype&&b.next&&(s(b,w,!0),r||"function"==typeof b[l]||u(b,l,v)),O&&S&&"values"!==S.name&&(E=!0,k=function(){return S.call(this)}),r&&!g||!p&&!E&&j[l]||u(j,l,k),a[e]=k,a[w]=v,d)if(_={values:O?k:x("values"),keys:y?k:x("keys"),entries:P},g)for(m in _)m in j||i(j,m,_[m]);else o(o.P+o.F*(p||E),e,_);return _}},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){"use strict";var r=n(162)(!0);n(59)(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,n){t.exports=n(163)},function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.Sender=void 0;var o=r(n(89)),i=r(n(20)),u=r(n(19)),a=r(n(18)),c=r(n(17)),s=function(){function t(e){(0,a.default)(this,t),this._node=e,this._msgId=0}var e,n,r;return(0,c.default)(t,[{key:"init",value:(r=(0,u.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rawSend("connect");case 2:case"end":return t.stop()}},t,this)})),function(){return r.apply(this,arguments)})},{key:"send",value:(n=(0,u.default)(i.default.mark(function t(e,n){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this._rawSend("request",{type:e,args:n}));case 1:case"end":return t.stop()}},t,this)})),function(t,e){return n.apply(this,arguments)})},{key:"respond",value:function(t,e){this._postMessage("response",t,e)}},{key:"toString",value:function(){return"".concat(this._node,"#Sender")}},{key:"_rawSend",value:(e=(0,u.default)(i.default.mark(function t(e){var n,r,o,u,a=arguments;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},r=this._msgId++,o="".concat(this._node.id,":").concat(r),u=this._node._receive(o),this._postMessage(e,o,n),t.abrupt("return",u);case 6:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"_postMessage",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._node,i=r.ns,u=r.id,a=r.target,c=r.origin,s=(0,o.default)({type:t,from:u,ns:i,id:e,payload:n});a.postMessage(s,c)}}]),t}();e.Sender=s},function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.Receiver=void 0;var o,i,u,a=r(n(95)),c=r(n(30)),s=r(n(20)),f=r(n(19)),l=r(n(18)),p=r(n(17)),v=r(n(92)),h=n(66),d=n(91),y=["type","from","id","payload"],g={},_=function(){function t(e){(0,l.default)(this,t),this._node=e,this._dfds={},this._onMessage=this._onMessage.bind(this)}var e;return(0,p.default)(t,[{key:"init",value:function(){window.addEventListener("message",this._onMessage)}},{key:"dispose",value:function(){window.removeEventListener("message",this._onMessage)}},{key:"receive",value:(e=(0,f.default)(s.default.mark(function t(e){var n;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this._dfds.hasOwnProperty(e)||((n=(0,v.default)()).promise.catch(d.noop),this._dfds[e]=n),t.abrupt("return",this._dfds[e].promise);case 2:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"toString",value:function(){return"".concat(this._node,"#Receiver")}},{key:"_onMessage",value:function(t){var e=this,n=null;try{n=JSON.parse(t.data)}catch(t){}null!=n&&"object"===(0,c.default)(n)&&n.ns===this._node.ns&&function(t){return!y.some(function(e){return null==t[e]})&&g.hasOwnProperty(t.type)}(n)&&g[n.type].call(this,n,t.source).catch(function(t){e._node._dispatchError(new Error("Failed to process ".concat(n.type,": ").concat(t)))})}}]),t}();e.Receiver=_,(0,a.default)(g,{connect:(u=(0,f.default)(s.default.mark(function t(e,n){var r,o,i;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e.id,o=e.from,t.prev=1,i=this._node._accept(o,n),t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(1),this._node._dispatchError(new Error("Failed to accept connection: ".concat(t.t0))),t.abrupt("return");case 9:return this._node._dispatchEvent("connect",{slave:i}),t.next=12,i._respond(r);case 12:case"end":return t.stop()}},t,this,[[1,5]])})),function(t,e){return u.apply(this,arguments)}),request:(i=(0,f.default)(s.default.mark(function t(e){var n,r,o,i,u,a,c,f,l;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.ns,r=e.id,o=e.from,i=e.payload,u=i.type,a=i.args,h.Nodes.has(n,o)){t.next=3;break}return t.abrupt("return");case 3:return c=h.Nodes.get(n,o),f=null,l=null,t.prev=6,t.next=9,this._node._handle(u,a,c);case 9:f=t.sent,t.next=15;break;case 12:t.prev=12,t.t0=t.catch(6),l=(0,d.serializeError)(t.t0);case 15:return t.prev=15,t.next=18,c._respond(r,{error:l,result:f});case 18:return t.finish(15);case 19:case"end":return t.stop()}},t,this,[[6,12,15,19]])})),function(t){return i.apply(this,arguments)}),response:(o=(0,f.default)(s.default.mark(function t(e){var n,r,o,i,u,a,c;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.id,e.from,r=e.payload,o=r.error,i=r.result,this._dfds.hasOwnProperty(n)){t.next=3;break}return t.abrupt("return");case 3:u=this._dfds[n],a=u.resolve,c=u.reject,delete this._dfds[n],null!=o?c((0,d.deserializeError)(o)):a(i);case 6:case"end":return t.stop()}},t,this)})),function(t){return o.apply(this,arguments)})})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Nodes=void 0;var r={},o=function(t,e){return r.hasOwnProperty(t)&&r[t].hasOwnProperty(e)},i={has:o,get:function(t,e){return o(t,e)?r[t][e]:null},set:function(t,e,n){if(o(t,e))throw new Error("Node ".concat(t,":").concat(e," already registered"));r.hasOwnProperty(t)||(r[t]={}),r[t][e]=n}};e.Nodes=i},function(t,e,n){"use strict";var r=n(15),o=n(44),i=n(21),u=n(22),a=n(55),c=Object.assign;t.exports=!c||n(11)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=u(t),c=arguments.length,s=1,f=o.f,l=i.f;c>s;)for(var p,v=a(arguments[s++]),h=f?r(v).concat(f(v)):r(v),d=h.length,y=0;d>y;)l.call(v,p=h[y++])&&(n[p]=v[p]);return n}:c},function(t,e,n){t.exports=n(105)},function(t,e,n){"use strict";var r=n(2),o=n(26),i=n(13),u=n(14);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,a,c=arguments[1];return o(this),(e=void 0!==c)&&o(c),void 0==t?new this:(n=[],e?(r=0,a=i(c,arguments[2],2),u(t,!1,function(t){n.push(a(t,r++))})):u(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(16),u=n(11),a=n(12),c=n(31),s=n(14),f=n(32),l=n(4),p=n(23),v=n(7).f,h=n(38)(0),d=n(5);t.exports=function(t,e,n,y,g,_){var m=r[t],b=m,x=g?"set":"add",w=b&&b.prototype,O={};return d&&"function"==typeof b&&(_||w.forEach&&!u(function(){(new b).entries().next()}))?(b=e(function(e,n){f(e,b,t,"_c"),e._c=new m,void 0!=n&&s(n,g,e[x],e)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in w&&(!_||"clear"!=t)&&a(b.prototype,t,function(n,r){if(f(this,b,t),!e&&_&&!l(n))return"get"==t&&void 0;var o=this._c[t](0===n?0:n,r);return e?this:o})}),_||v(b.prototype,"size",{get:function(){return this._c.size}})):(b=y.getConstructor(e,t,g,x),c(b.prototype,n),i.NEED=!0),p(b,t),O[t]=b,o(o.G+o.W+o.F,O),_||y.setStrong(b,t,g),b}},function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.Node=void 0;var o=r(n(20)),i=r(n(19)),u=r(n(18)),a=r(n(17)),c=r(n(47)),s=r(n(42)),f=r(n(39)),l=r(n(29)),p=r(n(120)),v=r(n(97)),h=n(66),d=function(t){function e(t,n,r,o){var i;return(0,u.default)(this,e),(i=(0,c.default)(this,(0,s.default)(e).call(this)))._ns=t,i._id=n,i._target=r,i._origin=o,i._handlers={},i._sender=null,i._receiver=null,h.Nodes.set(t,n,(0,l.default)((0,l.default)(i))),i}var n,r,p;return(0,f.default)(e,t),(0,a.default)(e,[{key:"log",value:function(t){this._dispatchEvent("log",{message:t})}},{key:"setHandler",value:function(t,e){this._handlers[t]=e}},{key:"_handle",value:(p=(0,i.default)(o.default.mark(function t(e,n,r){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this._handlers.hasOwnProperty(e)){t.next=2;break}throw new Error("Unknown command: ".concat(e));case 2:return t.abrupt("return",this._handlers[e](n,r));case 3:case"end":return t.stop()}},t,this)})),function(t,e,n){return p.apply(this,arguments)})},{key:"_init",value:function(t,e){this._sender=t,this._receiver=e}},{key:"_respond",value:(r=(0,i.default)(o.default.mark(function t(e,n){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this._sender.respond(e,n);case 1:case"end":return t.stop()}},t,this)})),function(t,e){return r.apply(this,arguments)})},{key:"_receive",value:(n=(0,i.default)(o.default.mark(function t(e){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this._receiver.receive(e));case 1:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"_dispatchError",value:function(t){this._dispatchEvent("error",{error:t})}},{key:"_dispatchEvent",value:function(t,e){this.dispatchEvent(new v.default(t,{detail:e}))}},{key:"ns",get:function(){return this._ns}},{key:"id",get:function(){return this._id}},{key:"target",get:function(){return this._target}},{key:"origin",get:function(){return this._origin}}]),e}(p.default);e.Node=d},function(t,e,n){t.exports=n(123)},function(t,e,n){t.exports=n(128)},function(t,e,n){var r=n(85),o=n(51).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(7),u=n(5),a=n(3)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];u&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(6),o=n(4),i=n(49);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,u=n(13),a=n(151),c=n(84),s=n(58),f=n(1),l=f.process,p=f.setImmediate,v=f.clearImmediate,h=f.MessageChannel,d=f.Dispatch,y=0,g={},_=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},m=function(t){_.call(t.data)};p&&v||(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},v=function(t){delete g[t]},"process"==n(24)(l)?r=function(t){l.nextTick(u(_,t,1))}:d&&d.now?r=function(t){d.now(u(_,t,1))}:h?(i=(o=new h).port2,o.port1.onmessage=m,r=u(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),_.call(t)}}:function(t){setTimeout(u(_,t,1),0)}),t.exports={set:p,clear:v}},function(t,e,n){var r=n(6),o=n(26),i=n(3)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||void 0==(n=r(u)[i])?e:o(n)}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(10),o=n(22),i=n(53)("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,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(10),o=n(9),i=n(159)(!1),u=n(53)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),c=0,s=[];for(n in a)n!=u&&r(a,n)&&s.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){t.exports=!n(5)&&!n(11)(function(){return 7!=Object.defineProperty(n(58)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.Slave=void 0;var o=r(n(20)),i=r(n(19)),u=r(n(18)),a=r(n(17)),c=r(n(47)),s=r(n(42)),f=r(n(39)),l=r(n(29)),p=n(72),v=n(65),h=n(64),d=function(t){function e(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.parent,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"*";return(0,u.default)(this,e),(r=(0,c.default)(this,(0,s.default)(e).call(this,t,n,o,i)))._init(new h.Sender((0,l.default)((0,l.default)(r))),new v.Receiver((0,l.default)((0,l.default)(r)))),r}var n,r;return(0,f.default)(e,t),(0,a.default)(e,[{key:"init",value:(r=(0,i.default)(o.default.mark(function t(){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this._receiver.init(),t.next=3,this._sender.init();case 3:case"end":return t.stop()}},t,this)})),function(){return r.apply(this,arguments)})},{key:"dispose",value:function(){this._receiver.dispose()}},{key:"send",value:(n=(0,i.default)(o.default.mark(function t(e,n){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this._sender.send(e,n));case 1:case"end":return t.stop()}},t,this)})),function(t,e){return n.apply(this,arguments)})},{key:"toString",value:function(){return"Slave{ns=".concat(this.ns,",id=").concat(this.id,"}")}}]),e}(p.Node);e.Slave=d},function(t,e,n){var r=n(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){t.exports=n(88)},function(t,e,n){"use strict";var r=n(8),o=r(n(68)),i=r(n(30));t.exports=function(t){return"object"===(0,i.default)(t)?function t(e,n){var r;r=Array.isArray(e)?[]:{};n.push(e);(0,o.default)(e).forEach(function(o){var u=e[o];"function"!=typeof u&&(u&&"object"===(0,i.default)(u)?-1!==n.indexOf(e[o])?r[o]="[Circular]":r[o]=t(e[o],n.slice(0)):r[o]=u)});"string"==typeof e.name&&(r.name=e.name);"string"==typeof e.message&&(r.message=e.message);"string"==typeof e.stack&&(r.stack=e.stack);return r}(t,[]):"function"==typeof t?"[Function: "+(t.name||"anonymous")+"]":t}},function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.deserializeError=e.serializeError=e.noop=void 0;var o=r(n(48)),i=r(n(90)),u=["name","stack"];e.noop=function(){};e.serializeError=function(t){var e={message:""+t};try{e=(0,i.default)(t)}catch(t){}return e};e.deserializeError=function(t){var e=new Error(t.message);return u.forEach(function(n){var r=t[n];try{(0,o.default)(e,n,{configurable:!0,enumerable:!1,value:r,writable:!0})}catch(t){}}),e}},function(t,e,n){"use strict";var r=n(8)(n(63));t.exports=function(){var t={};return t.promise=new r.default(function(e,n){t.resolve=e,t.reject=n}),t}},function(t,e,n){var r=n(2);r(r.S+r.F,"Object",{assign:n(67)})},function(t,e,n){n(93),t.exports=n(0).Object.assign},function(t,e,n){t.exports=n(94)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(e){var n=e.CustomEvent;t.exports=function(){try{var t=new n("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?n:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,n(96))},function(t,e,n){n(69)("WeakMap")},function(t,e,n){n(70)("WeakMap")},function(t,e,n){"use strict";var r=n(31),o=n(16).getWeak,i=n(6),u=n(4),a=n(32),c=n(14),s=n(38),f=n(10),l=n(28),p=s(5),v=s(6),h=0,d=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,e){return p(t.a,function(t){return t[0]===e})};y.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=v(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var s=t(function(t,r){a(t,s,e,"_i"),t._t=e,t._i=h++,t._l=void 0,void 0!=r&&c(r,n,t[i],t)});return r(s.prototype,{delete:function(t){if(!u(t))return!1;var n=o(t);return!0===n?d(l(this,e)).delete(t):n&&f(n,this._i)&&delete n[this._i]},has:function(t){if(!u(t))return!1;var n=o(t);return!0===n?d(l(this,e)).has(t):n&&f(n,this._i)}}),s},def:function(t,e,n){var r=o(i(e),!0);return!0===r?d(t).set(e,n):r[t._i]=n,t},ufstore:d}},function(t,e,n){"use strict";var r,o=n(38)(0),i=n(56),u=n(16),a=n(67),c=n(100),s=n(4),f=n(11),l=n(28),p=u.getWeak,v=Object.isExtensible,h=c.ufstore,d={},y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(s(t)){var e=p(t);return!0===e?h(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(l(this,"WeakMap"),t,e)}},_=t.exports=n(71)("WeakMap",y,g,c,!0,!0);f(function(){return 7!=(new _).set((Object.freeze||Object)(d),7).get(d)})&&(a((r=c.getConstructor(y,"WeakMap")).prototype,g),u.NEED=!0,o(["delete","has","get","set"],function(t){var e=_.prototype,n=e[t];i(e,t,function(e,o){if(s(e)&&!v(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)})}))},function(t,e,n){n(37),n(33),n(101),n(99),n(98),t.exports=n(0).WeakMap},function(t,e,n){t.exports=n(102)},function(t,e,n){var r=n(22),o=n(15);n(41)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){n(104),t.exports=n(0).Object.keys},function(t,e,n){var r=n(9),o=n(43).f;n(41)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){n(106);var r=n(0).Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},function(t,e,n){t.exports=n(107)},function(t,e,n){n(69)("Map")},function(t,e,n){n(70)("Map")},function(t,e,n){var r=n(14);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(50),o=n(111);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,e,n){var r=n(2);r(r.P+r.R,"Map",{toJSON:n(112)("Map")})},function(t,e,n){var r=n(4),o=n(76),i=n(3)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(114);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(7).f,o=n(35),i=n(31),u=n(13),a=n(32),c=n(14),s=n(59),f=n(82),l=n(77),p=n(5),v=n(16).fastKey,h=n(28),d=p?"_s":"size",y=function(t,e){var n,r=v(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,s){var f=t(function(t,r){a(t,f,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=r&&c(r,n,t[s],t)});return i(f.prototype,{clear:function(){for(var t=h(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var n=h(this,e),r=y(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[d]--}return!!r},forEach:function(t){h(this,e);for(var n,r=u(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(h(this,e),t)}}),p&&r(f.prototype,"size",{get:function(){return h(this,e)[d]}}),f},def:function(t,e,n){var r,o,i=y(t,e);return i?i.v=n:(t._l=i={i:o=v(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[d]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,e,n){s(t,e,function(t,n){this._t=h(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?f(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,f(1))},n?"entries":"values",!n,!0),l(e)}}},function(t,e,n){"use strict";var r=n(116),o=n(28);t.exports=n(71)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){n(37),n(62),n(33),n(117),n(113),n(110),n(109),t.exports=n(0).Map},function(t,e,n){t.exports=n(118)},function(t,e,n){"use strict";var r=n(8),o=r(n(119)),i=r(n(30)),u=r(n(74)),a=r(n(108)),c=r(n(73)),s=r(n(40)),f=r(n(48)),l=r(n(68)),p=r(n(103));Object.defineProperty(e,"__esModule",{value:!0});var v=new p.default,h=new p.default;function d(t){var e=v.get(t);return console.assert(null!=e,"'this' is expected an Event object, but got",t),e}function y(t,e){v.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var n=(0,l.default)(e),r=0;r<n.length;++r){var o=n[r];o in this||(0,f.default)(this,o,g(o))}}function g(t){return{get:function(){return d(this).event[t]},set:function(e){d(this).event[t]=e},configurable:!0,enumerable:!0}}function _(t){return{value:function(){var e=d(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function m(t){if(null==t||t===Object.prototype)return y;var e=h.get(t);return null==e&&(e=function(t,e){var n=(0,l.default)(e);if(0===n.length)return t;function r(e,n){t.call(this,e,n)}r.prototype=(0,c.default)(t.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(var o=0;o<n.length;++o){var i=n[o];if(!(i in t.prototype)){var u="function"==typeof(0,a.default)(e,i).value;(0,f.default)(r.prototype,i,u?_(i):g(i))}}return r}(m((0,u.default)(t)),t),h.set(t,e)),e}function b(t){return d(t).stopped}function x(t,e){d(t).passiveListener=e}y.prototype={get type(){return d(this).event.type},get target(){return d(this).eventTarget},get currentTarget(){return d(this).currentTarget},composedPath:function(){var t=d(this).currentTarget;return null==t?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return d(this).eventPhase},stopPropagation:function(){var t=d(this);"function"==typeof t.event.stopPropagation&&t.event.stopPropagation()},stopImmediatePropagation:function(){var t=d(this);t.stopped=!0,"function"==typeof t.event.stopImmediatePropagation&&t.event.stopImmediatePropagation()},get bubbles(){return Boolean(d(this).event.bubbles)},get cancelable(){return Boolean(d(this).event.cancelable)},preventDefault:function(){var t=d(this);null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):console.warn("Event#preventDefault() was called from a passive listener:",t.passiveListener)},get defaultPrevented(){return d(this).canceled},get composed(){return Boolean(d(this).event.composed)},get timeStamp(){return d(this).timeStamp}},Object.defineProperty(y.prototype,"constructor",{value:y,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&((0,s.default)(y.prototype,window.Event.prototype),h.set(window.Event.prototype,y));var w=new p.default,O=3;function E(t){return null!==t&&"object"===(0,i.default)(t)}function j(t){var e=w.get(t);if(null==e)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function S(t,e){Object.defineProperty(t,"on".concat(e),function(t){return{get:function(){for(var e=j(this).get(t);null!=e;){if(e.listenerType===O)return e.listener;e=e.next}return null},set:function(e){"function"==typeof e||E(e)||(e=null);for(var n=j(this),r=null,o=n.get(t);null!=o;)o.listenerType===O?null!==r?r.next=o.next:null!==o.next?n.set(t,o.next):n.delete(t):r=o,o=o.next;if(null!==e){var i={listener:e,listenerType:O,passive:!1,once:!1,next:null};null===r?n.set(t,i):r.next=i}},configurable:!0,enumerable:!0}}(e))}function k(t){function e(){P.call(this)}e.prototype=(0,c.default)(P.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(var n=0;n<t.length;++n)S(e.prototype,t[n]);return e}function P(){if(!(this instanceof P)){if(1===arguments.length&&Array.isArray(arguments[0]))return k(arguments[0]);if(arguments.length>0){for(var t=new Array(arguments.length),e=0;e<arguments.length;++e)t[e]=arguments[e];return k(t)}throw new TypeError("Cannot call a class as a function")}w.set(this,new o.default)}P.prototype={addEventListener:function(t,e,n){if(null==e)return!1;if("function"!=typeof e&&!E(e))throw new TypeError("'listener' should be a function or an object.");var r=j(this),o=E(n),i=(o?Boolean(n.capture):Boolean(n))?1:2,u={listener:e,listenerType:i,passive:o&&Boolean(n.passive),once:o&&Boolean(n.once),next:null},a=r.get(t);if(void 0===a)return r.set(t,u),!0;for(var c=null;null!=a;){if(a.listener===e&&a.listenerType===i)return!1;c=a,a=a.next}return c.next=u,!0},removeEventListener:function(t,e,n){if(null==e)return!1;for(var r=j(this),o=(E(n)?Boolean(n.capture):Boolean(n))?1:2,i=null,u=r.get(t);null!=u;){if(u.listener===e&&u.listenerType===o)return null!==i?i.next=u.next:null!==u.next?r.set(t,u.next):r.delete(t),!0;i=u,u=u.next}return!1},dispatchEvent:function(t){if(null==t||"string"!=typeof t.type)throw new TypeError('"event.type" should be a string.');var e=j(this),n=t.type,r=e.get(n);if(null==r)return!0;for(var o=function(t,e){return new(m((0,u.default)(e)))(t,e)}(this,t),i=null;null!=r&&(r.once?null!==i?i.next=r.next:null!==r.next?e.set(n,r.next):e.delete(n):i=r,x(o,r.passive?r.listener:null),"function"==typeof r.listener?r.listener.call(this,o):r.listenerType!==O&&"function"==typeof r.listener.handleEvent&&r.listener.handleEvent(o),!b(o));)r=r.next;return x(o,null),function(t,e){d(t).eventPhase=e}(o,0),function(t,e){d(t).currentTarget=e}(o,null),!o.defaultPrevented}},Object.defineProperty(P.prototype,"constructor",{value:P,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&(0,s.default)(P.prototype,window.EventTarget.prototype),e.defineEventAttribute=S,e.EventTarget=P,e.default=P,t.exports=P,t.exports.EventTarget=t.exports.default=P,t.exports.defineEventAttribute=S},function(t,e,n){var r=n(40);function o(e,n){return t.exports=o=r||function(t,e){return t.__proto__=e,t},o(e,n)}t.exports=o},function(t,e,n){var r=n(2);r(r.S,"Object",{create:n(35)})},function(t,e,n){n(122);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(4),o=n(6),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(13)(Function.call,n(43).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(2);r(r.S,"Object",{setPrototypeOf:n(124).set})},function(t,e,n){n(125),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){var r=n(22),o=n(83);n(41)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){n(127),t.exports=n(0).Object.getPrototypeOf},function(t,e,n){n(45)("observable")},function(t,e,n){n(45)("asyncIterator")},function(t,e,n){var r=n(9),o=n(75).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(15),o=n(44),i=n(21);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),c=i.f,s=0;a.length>s;)c.call(t,u=a[s++])&&e.push(u);return e}},function(t,e,n){"use strict";var r=n(1),o=n(10),i=n(5),u=n(2),a=n(56),c=n(16).KEY,s=n(11),f=n(52),l=n(23),p=n(34),v=n(3),h=n(46),d=n(45),y=n(132),g=n(76),_=n(6),m=n(4),b=n(9),x=n(57),w=n(36),O=n(35),E=n(131),j=n(43),S=n(7),k=n(15),P=j.f,T=S.f,M=E.f,L=r.Symbol,N=r.JSON,A=N&&N.stringify,F=v("_hidden"),R=v("toPrimitive"),C={}.propertyIsEnumerable,I=f("symbol-registry"),G=f("symbols"),D=f("op-symbols"),B=Object.prototype,W="function"==typeof L,z=r.QObject,J=!z||!z.prototype||!z.prototype.findChild,H=i&&s(function(){return 7!=O(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(B,e);r&&delete B[e],T(t,e,n),r&&t!==B&&T(B,e,r)}:T,U=function(t){var e=G[t]=O(L.prototype);return e._k=t,e},V=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},K=function(t,e,n){return t===B&&K(D,e,n),_(t),e=x(e,!0),_(n),o(G,e)?(n.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),n=O(n,{enumerable:w(0,!1)})):(o(t,F)||T(t,F,w(1,{})),t[F][e]=!0),H(t,e,n)):T(t,e,n)},q=function(t,e){_(t);for(var n,r=y(e=b(e)),o=0,i=r.length;i>o;)K(t,n=r[o++],e[n]);return t},Y=function(t){var e=C.call(this,t=x(t,!0));return!(this===B&&o(G,t)&&!o(D,t))&&(!(e||!o(this,t)||!o(G,t)||o(this,F)&&this[F][t])||e)},Q=function(t,e){if(t=b(t),e=x(e,!0),t!==B||!o(G,e)||o(D,e)){var n=P(t,e);return!n||!o(G,e)||o(t,F)&&t[F][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=M(b(t)),r=[],i=0;n.length>i;)o(G,e=n[i++])||e==F||e==c||r.push(e);return r},Z=function(t){for(var e,n=t===B,r=M(n?D:b(t)),i=[],u=0;r.length>u;)!o(G,e=r[u++])||n&&!o(B,e)||i.push(G[e]);return i};W||(a((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(D,n),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),H(this,t,w(1,n))};return i&&J&&H(B,t,{configurable:!0,set:e}),U(t)}).prototype,"toString",function(){return this._k}),j.f=Q,S.f=K,n(75).f=E.f=X,n(21).f=Y,n(44).f=Z,i&&!n(27)&&a(B,"propertyIsEnumerable",Y,!0),h.f=function(t){return U(v(t))}),u(u.G+u.W+u.F*!W,{Symbol:L});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)v($[tt++]);for(var et=k(v.store),nt=0;et.length>nt;)d(et[nt++]);u(u.S+u.F*!W,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=L(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),u(u.S+u.F*!W,"Object",{create:function(t,e){return void 0===e?O(t):q(O(t),e)},defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),N&&u(u.S+u.F*(!W||s(function(){var t=L();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(m(e)||void 0!==t)&&!V(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!V(e))return e}),r[1]=e,A.apply(N,r)}}),L.prototype[R]||n(12)(L.prototype,R,L.prototype.valueOf),l(L,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(133),n(37),n(130),n(129),t.exports=n(0).Symbol},function(t,e,n){t.exports=n(134)},function(t,e,n){n(62),n(33),t.exports=n(46).f("iterator")},function(t,e,n){t.exports=n(136)},function(t,e,n){var r=n(2);r(r.S+r.F*!n(5),"Object",{defineProperty:n(7).f})},function(t,e,n){n(138);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",s="object"==typeof t,f=e.regeneratorRuntime;if(f)s&&(t.exports=f);else{(f=e.regeneratorRuntime=s?t.exports:{}).wrap=b;var l="suspendedStart",p="suspendedYield",v="executing",h="completed",d={},y={};y[u]=function(){return this};var g=Object.getPrototypeOf,_=g&&g(g(L([])));_&&_!==r&&o.call(_,u)&&(y=_);var m=E.prototype=w.prototype=Object.create(y);O.prototype=m.constructor=E,E.constructor=O,E[c]=O.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(m),t},f.awrap=function(t){return{__await:t}},j(S.prototype),S.prototype[a]=function(){return this},f.AsyncIterator=S,f.async=function(t,e,n,r){var o=new S(b(t,e,n,r));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},j(m),m[c]="Generator",m[u]=function(){return this},m.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=L,M.prototype={constructor:M,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(T),!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 u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var c=o.call(u,"catchLoc"),s=o.call(u,"finallyLoc");if(c&&s){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.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 u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(u)},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),T(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;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}}}function b(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),u=new M(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===v)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return N()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var a=k(u,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=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=v;var c=x(t,e,n);if("normal"===c.type){if(r=n.done?h:p,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(t,n,u),i}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function w(){}function O(){}function E(){}function j(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function S(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,u){var a=x(t[n],t,r);if("throw"!==a.type){var c=a.arg,s=c.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,u)},function(t){e("throw",t,i,u)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},u)}u(a.arg)}(n,r,e,i)})}return e=e?e.then(i,i):i()}}function k(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,k(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=x(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 P(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function L(t){if(t){var e=t[u];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:N}}function N(){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(140),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e,n){var r=n(15),o=n(9),i=n(21).f;t.exports=function(t){return function(e){for(var n,u=o(e),a=r(u),c=a.length,s=0,f=[];c>s;)i.call(u,n=a[s++])&&f.push(t?[n,u[n]]:u[n]);return f}}},function(t,e,n){var r=n(2),o=n(142)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(143),t.exports=n(0).Object.values},function(t,e,n){t.exports=n(144)},function(t,e,n){"use strict";var r=n(2),o=n(49),i=n(79);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(2),o=n(0),i=n(1),u=n(81),a=n(78);r(r.P+r.R,"Promise",{finally:function(t){var e=u(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(3)("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],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(1),o=n(80).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,c="process"==n(24)(u);t.exports=function(){var t,e,n,s=function(){var r,o;for(c&&(r=u.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(c)n=function(){u.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(50),o=n(3)("iterator"),i=n(25);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(25),o=n(3)("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(6);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){"use strict";var r,o,i,u,a=n(27),c=n(1),s=n(13),f=n(50),l=n(2),p=n(4),v=n(26),h=n(32),d=n(14),y=n(81),g=n(80).set,_=n(150)(),m=n(49),b=n(79),x=n(149),w=n(78),O=c.TypeError,E=c.process,j=E&&E.versions,S=j&&j.v8||"",k=c.Promise,P="process"==f(E),T=function(){},M=o=m.f,L=!!function(){try{var t=k.resolve(1),e=(t.constructor={})[n(3)("species")]=function(t){t(T,T)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==S.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var n=t._c;_(function(){for(var r=t._v,o=1==t._s,i=0,u=function(e){var n,i,u,a=o?e.ok:e.fail,c=e.resolve,s=e.reject,f=e.domain;try{a?(o||(2==t._h&&C(t),t._h=1),!0===a?n=r:(f&&f.enter(),n=a(r),f&&(f.exit(),u=!0)),n===e.promise?s(O("Promise-chain cycle")):(i=N(n))?i.call(n,c,s):c(n)):s(r)}catch(t){f&&!u&&f.exit(),s(t)}};n.length>i;)u(n[i++]);t._c=[],t._n=!1,e&&!t._h&&F(t)})}},F=function(t){g.call(c,function(){var e,n,r,o=t._v,i=R(t);if(i&&(e=b(function(){P?E.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=P||R(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},C=function(t){g.call(c,function(){var e;P?E.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},I=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()),A(e,!0))},G=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=N(t))?_(function(){var r={_w:n,_d:!1};try{e.call(t,s(G,r,1),s(I,r,1))}catch(t){I.call(r,t)}}):(n._v=t,n._s=1,A(n,!1))}catch(t){I.call({_w:n,_d:!1},t)}}};L||(k=function(t){h(this,k,"Promise","_h"),v(t),r.call(this);try{t(s(G,this,1),s(I,this,1))}catch(t){I.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(31)(k.prototype,{then:function(t,e){var n=M(y(this,k));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&A(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(I,t,1)},m.f=M=function(t){return t===k||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!L,{Promise:k}),n(23)(k,"Promise"),n(77)("Promise"),u=n(0).Promise,l(l.S+l.F*!L,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(a||!L),"Promise",{resolve:function(t){return w(a&&this===u?k:this,t)}}),l(l.S+l.F*!(L&&n(148)(function(t){k.all(t).catch(T)})),"Promise",{all:function(t){var e=this,n=M(e),r=n.resolve,o=n.reject,i=b(function(){var n=[],i=0,u=1;d(t,!1,function(t){var a=i++,c=!1;n.push(void 0),u++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--u||r(n))},o)}),--u||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,o=b(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(){}},function(t,e,n){"use strict";var r=n(156),o=n(82),i=n(25),u=n(9);t.exports=n(59)(Array,"Array",function(t,e){this._t=u(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){var r=n(61),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(9),o=n(54),i=n(158);t.exports=function(t){return function(e,n,u){var a,c=r(e),s=o(c.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((a=c[f++])!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(7),o=n(6),i=n(15);t.exports=n(5)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),a=u.length,c=0;a>c;)r.f(t,n=u[c++],e[n]);return t}},function(t,e,n){"use strict";var r=n(35),o=n(36),i=n(23),u={};n(12)(u,n(3)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(61),o=n(60);t.exports=function(t){return function(e,n){var i,u,a=String(o(e)),c=r(n),s=a.length;return c<0||c>=s?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===s||(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,e,n){n(37),n(62),n(33),n(155),n(147),n(146),t.exports=n(0).Promise},function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.Master=void 0;var o=r(n(63)),i=r(n(145)),u=r(n(20)),a=r(n(19)),c=r(n(18)),s=r(n(17)),f=r(n(47)),l=r(n(42)),p=r(n(39)),v=r(n(29)),h=n(72),d=n(65),y=n(64),g=function(t){function e(t,n,r,o){var i;return(0,c.default)(this,e),(i=(0,f.default)(this,(0,l.default)(e).call(this,t.ns,n,r,o)))._master=t,i._init(new y.Sender((0,v.default)((0,v.default)(i))),t._receiver),i}var n;return(0,p.default)(e,t),(0,s.default)(e,[{key:"send",value:(n=(0,a.default)(u.default.mark(function t(e){var n,r=arguments;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},t.abrupt("return",this._sender.send(e,n));case 2:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"toString",value:function(){return"Slave{ns=".concat(this.ns,",id=").concat(this.id,"}")}}]),e}(h.Node),_=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*";return(0,c.default)(this,e),(t=(0,f.default)(this,(0,l.default)(e).call(this,n,"",r,o)))._slaves={},t._init(null,new d.Receiver((0,v.default)((0,v.default)(t)))),t}var n;return(0,p.default)(e,t),(0,s.default)(e,[{key:"init",value:function(){this._receiver.init()}},{key:"dispose",value:function(){this._receiver.dispose(),this._slaves={}}},{key:"toString",value:function(){return"Master{ns=".concat(this.ns,"}")}},{key:"broadcast",value:(n=(0,a.default)(u.default.mark(function t(e){var n,r,a,c,s,f=arguments;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=(0,i.default)(this._slaves),t.next=4,o.default.all(r.map(function(t){return t.send(e,n)}));case 4:for(a=t.sent,c={},s=0;s<r.length;++s)c[r[s].id]=a[s];return t.abrupt("return",c);case 8:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"_accept",value:function(t,e){var n=new g(this,t,e,"*");return this._slaves[t]=n,n}},{key:"slaves",get:function(){return this._slaves}}]),e}(h.Node);e.Master=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Master",{enumerable:!0,get:function(){return r.Master}}),Object.defineProperty(e,"Slave",{enumerable:!0,get:function(){return o.Slave}});var r=n(164),o=n(87)}])});
{
"name": "burrata",
"version": "0.2.3",
"version": "0.3.0",
"description": "Robust, developer-friendly postMessage.",

@@ -29,8 +29,8 @@ "repository": "https://github.com/timdp/burrata",

"test": "yarn run test:lint && yarn run test:e2e",
"test:lint": "yarn run standard",
"test:lint": "yarn run standard '*.js' '{src,test,scripts,demo}/**/*.js'",
"test:e2e": "yarn run clean:coverage && yarn run karma start",
"test:cover": "yarn run karma start --mode=cover",
"dev": "yarn run karma start --no-single-run",
"dev": "yarn run karma start --mode=dev",
"benchmark": "yarn run karma start --mode=benchmark",
"format": "yarn run prettier-standard '{src,test}/**/*.js'",
"format": "yarn run prettier-standard '*.js' '{src,test,scripts,demo}/**/*.js'",
"precommit": "yarn run lint-staged"

@@ -89,2 +89,3 @@ },

"globals": [
"localStorage",
"performance",

@@ -102,5 +103,9 @@ "describe",

"linters": {
"{src,test,scripts}/**/*.js": [
"*.js": [
"prettier-standard",
"git add"
],
"{src,test,scripts,demo}/**/*.js": [
"prettier-standard",
"git add"
]

@@ -107,0 +112,0 @@ }

@@ -16,3 +16,4 @@ # Burrata

```js
const master = new burrata.Master()
const ns = 'testing' // Pick a namespace.
const master = new burrata.Master(ns)

@@ -32,5 +33,5 @@ // Register the "echo" command, which sends back the value of the "msg" arg.

```js
// Choose a unique ID for this slave.
const id = '123'
const slave = new burrata.Slave(id)
const ns = 'testing' // The same namespace as for the master.
const id = '123' // A unique ID for this slave.
const slave = new burrata.Slave(ns, id)

@@ -37,0 +38,0 @@ // Connect to master.

@@ -7,5 +7,5 @@ import { Node } from './node'

constructor (master, id, target, origin) {
super(id, target, origin)
super(master.ns, id, target, origin)
this._master = master
this._init(new Sender(this), master.receiver)
this._init(new Sender(this), master._receiver)
}

@@ -18,3 +18,3 @@

toString () {
return `Slave#${this.id}`
return `Slave{ns=${this.ns},id=${this.id}}`
}

@@ -24,4 +24,4 @@ }

class Master extends Node {
constructor (target = window, origin = '*') {
super('', target, origin)
constructor (ns = '', target = window, origin = '*') {
super(ns, '', target, origin)
this._slaves = {}

@@ -45,3 +45,3 @@ this._init(null, new Receiver(this))

toString () {
return 'Master'
return `Master{ns=${this.ns}}`
}

@@ -48,0 +48,0 @@

import EventTarget from 'event-target-shim'
import CustomEvent from 'custom-event'
import { Nodes } from './nodes'
const instances = {}
class Node extends EventTarget {
static get instances () {
return instances
}
constructor (id, target, origin) {
constructor (ns, id, target, origin) {
super()
this._ns = ns
this._id = id

@@ -19,5 +15,9 @@ this._target = target

this._receiver = null
instances[id] = this
Nodes.set(ns, id, this)
}
get ns () {
return this._ns
}
get id () {

@@ -35,17 +35,4 @@ return this._id

get sender () {
return this._sender
}
get receiver () {
return this._receiver
}
log (message) {
const evt = new CustomEvent('log', {
detail: {
message
}
})
this.dispatchEvent(evt)
this._dispatchEvent('log', { message })
}

@@ -57,3 +44,3 @@

async handle (type, args, source) {
async _handle (type, args, source) {
if (!this._handlers.hasOwnProperty(type)) {

@@ -70,11 +57,19 @@ throw new Error(`Unknown command: ${type}`)

_send (type, id, payload = {}) {
this._sender._send(type, id, payload)
async _respond (id, response) {
this._sender.respond(id, response)
}
async _receive (id) {
return this._receiver._receive(id)
return this._receiver.receive(id)
}
_dispatchError (error) {
this._dispatchEvent('error', { error })
}
_dispatchEvent (type, detail) {
this.dispatchEvent(new CustomEvent(type, { detail }))
}
}
export { Node }

@@ -1,26 +0,12 @@

import CustomEvent from 'custom-event'
import defer from 'p-defer'
import serializeError from 'serialize-error'
import { Node } from './node'
import { Nodes } from './nodes'
import { serializeError, deserializeError, noop } from './util'
const REQUIRED_DATA_PROPERTIES = ['type', 'from', 'id', 'payload']
const ERROR_PROPERTIES = ['name', 'stack']
const noop = () => {}
const commands = {}
const hydrateError = error => {
const err = new Error(error.message)
ERROR_PROPERTIES.forEach(name => {
const value = error[name]
try {
Object.defineProperty(err, name, {
configurable: true,
enumerable: false,
value,
writable: true
})
} catch (_) {}
})
return err
}
const isValidMessage = data =>
!REQUIRED_DATA_PROPERTIES.some(name => data[name] == null) &&
commands.hasOwnProperty(data.type)

@@ -32,7 +18,2 @@ class Receiver {

this._onMessage = this._onMessage.bind(this)
this._commands = {
connect: this._handleConnect.bind(this),
request: this._handleRequest.bind(this),
response: this._handleResponse.bind(this)
}
}

@@ -48,3 +29,3 @@

async _receive (id) {
async receive (id) {
if (!this._dfds.hasOwnProperty(id)) {

@@ -58,6 +39,10 @@ const dfd = defer()

_onMessage (evt) {
toString () {
return `${this._node}#Receiver`
}
_onMessage (event) {
let data = null
try {
data = JSON.parse(evt.data)
data = JSON.parse(event.data)
} catch (err) {}

@@ -67,14 +52,19 @@ if (

typeof data !== 'object' ||
REQUIRED_DATA_PROPERTIES.some(name => data[name] == null) ||
!this._commands.hasOwnProperty(data.type)
data.ns !== this._node.ns ||
!isValidMessage(data)
) {
// TODO Warn
// TODO Handle
return
}
this._commands[data.type](data, evt.source).catch(err => {
this._dispatchError(new Error(`Failed to process ${data.type}: ${err}`))
const command = commands[data.type]
command.call(this, data, event.source).catch(error => {
this._node._dispatchError(
new Error(`Failed to process ${data.type}: ${error}`)
)
})
}
}
async _handleConnect ({ id, from }, source) {
Object.assign(commands, {
async connect ({ id, from }, source) {
let slave

@@ -84,32 +74,31 @@ try {

} catch (err) {
this._dispatchError(new Error(`Failed to accept connection: ${err}`))
this._node._dispatchError(
new Error(`Failed to accept connection: ${err}`)
)
return
}
this._dispatchEvent('connect', { slave })
await slave._send('response', id)
}
this._node._dispatchEvent('connect', { slave })
await slave._respond(id)
},
async _handleRequest ({ id, from, payload: { type, args } }) {
if (!Node.instances.hasOwnProperty(from)) {
// TODO Warn
async request ({ ns, id, from, payload: { type, args } }) {
if (!Nodes.has(ns, from)) {
// TODO Handle
return
}
const node = Node.instances[from]
const source = Nodes.get(ns, from)
let result = null
let error = null
try {
result = await this._node.handle(type, args, node)
result = await this._node._handle(type, args, source)
} catch (err) {
error = { message: '' + err }
try {
error = serializeError(err)
} catch (_) {}
error = serializeError(err)
} finally {
await node._send('response', id, { error, result })
await source._respond(id, { error, result })
}
}
},
async _handleResponse ({ id, from, payload: { error, result } }) {
async response ({ id, from, payload: { error, result } }) {
if (!this._dfds.hasOwnProperty(id)) {
// TODO Warn
// TODO Handle
return

@@ -120,3 +109,3 @@ }

if (error != null) {
reject(hydrateError(error))
reject(deserializeError(error))
} else {

@@ -126,12 +115,4 @@ resolve(result)

}
})
_dispatchError (error) {
this._dispatchEvent('error', { error })
}
_dispatchEvent (type, detail) {
this._node.dispatchEvent(new CustomEvent(type, { detail }))
}
}
export { Receiver }

@@ -8,20 +8,28 @@ class Sender {

async init () {
return this._sendAndReceive('connect')
await this._rawSend('connect')
}
async send (type, args) {
return this._sendAndReceive('request', { type, args })
return this._rawSend('request', { type, args })
}
async _sendAndReceive (command, payload = {}) {
respond (id, response) {
this._postMessage('response', id, response)
}
toString () {
return `${this._node}#Sender`
}
async _rawSend (type, payload = {}) {
const msgId = this._msgId++
const id = `${this._node.id}:${msgId}`
const receiving = this._node._receive(id)
this._send(command, id, payload)
this._postMessage(type, id, payload)
return receiving
}
_send (type, id, payload = {}) {
const { id: from, target, origin } = this._node
const msg = JSON.stringify({ type, from, id, payload })
_postMessage (type, id, payload = {}) {
const { ns, id: from, target, origin } = this._node
const msg = JSON.stringify({ type, from, ns, id, payload })
target.postMessage(msg, origin)

@@ -28,0 +36,0 @@ }

@@ -6,4 +6,4 @@ import { Node } from './node'

class Slave extends Node {
constructor (id, target = window.parent, origin = '*') {
super(id, target, origin)
constructor (ns, id, target = window.parent, origin = '*') {
super(ns, id, target, origin)
this._init(new Sender(this), new Receiver(this))

@@ -21,3 +21,3 @@ }

async send (type, args = {}) {
async send (type, args) {
return this._sender.send(type, args)

@@ -27,3 +27,3 @@ }

toString () {
return `Slave#${this.id}`
return `Slave{ns=${this.ns},id=${this.id}}`
}

@@ -30,0 +30,0 @@ }

Sorry, the diff of this file is too big to display

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