Comparing version 0.2.1 to 0.2.2
@@ -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=131)}([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(36)("wks"),o=n(24),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(18),u=n(10),c=n(9),a=function(t,e,n){var s,f,l,p=t&a.F,h=t&a.G,v=t&a.S,d=t&a.P,y=t&a.B,g=t&a.W,m=h?o:o[e]||(o[e]={}),b=m.prototype,_=h?r:v?r[e]:(r[e]||{}).prototype;for(s in h&&(n=e),n)(f=!p&&_&&void 0!==_[s])&&c(m,s)||(l=f?_[s]:n[s],m[s]=h&&"function"!=typeof _[s]?n[s]:y&&f?i(l,r):g&&_[s]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((m.virtual||(m.virtual={}))[s]=l,t&a.R&&b&&!b[s]&&u(b,s,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(4),o=n(64),i=n(39),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(125),o=n(41);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,n){var r=n(7),o=n(26);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(51);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(68);t.exports=function(t){return function(){var e=this,n=arguments;return new r(function(o,i){var u=t.apply(e,n);function c(t,e){try{var n=u[t](e),c=n.value}catch(t){return void i(t)}n.done?o(c):r.resolve(c).then(a,s)}function a(t){c("next",t)}function s(t){c("throw",t)}a()})}}},function(t,e,n){t.exports=n(101)},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){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(27);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=!0},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default: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){e.f={}.propertyIsEnumerable},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=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(62),o=n(35);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(20);Object.defineProperty(e,"__esModule",{value:!0}),e.Node=void 0;var o=r(n(14)),i=r(n(13)),u=r(n(12)),c=r(n(33)),a=r(n(30)),s=r(n(11)),f=r(n(29)),l=r(n(21)),p=r(n(75)),h=r(n(45)),v={},d=function(t){function e(t,n,r){var o;return(0,u.default)(this,e),(o=(0,c.default)(this,(0,a.default)(e).call(this)))._id=t,o._target=n,o._origin=r,o._handlers={},o._sender=null,o._receiver=null,v[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 v}}]),(0,s.default)(e,[{key:"log",value:function(t){var e=new h.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(79),o=n(76);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){var r=n(86),o=n(46);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(1),o=n(0),i=n(19),u=n(32),c=n(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},function(t,e,n){e.f=n(2)},function(t,e,n){var r=n(50),o=n(21);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e,n){"use strict";var r=n(27);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){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(19)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(36)("keys"),o=n(24);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(4),o=n(126),i=n(35),u=n(37)("IE_PROTO"),c=function(){},a=function(){var t,e=n(40)("iframe"),r=i.length;for(e.style.display="none",n(60).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(6);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(6),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},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(20);Object.defineProperty(e,"__esModule",{value:!0}),e.Sender=void 0;var o=r(n(71)),i=r(n(14)),u=r(n(13)),c=r(n(12)),a=r(n(11)),s=function(){function t(e){(0,c.default)(this,t),this._node=e,this._msgId=0}var e,n,r;return(0,a.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,c=arguments;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>1&&void 0!==c[1]?c[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,c=r.origin,a=(0,o.default)({type:t,from:i,id:e,payload:n});u.postMessage(a,c)}}]),t}();e.Sender=s},function(t,e,n){"use strict";var r=n(20);Object.defineProperty(e,"__esModule",{value:!0}),e.Receiver=void 0;var o=r(n(50)),i=r(n(14)),u=r(n(13)),c=r(n(12)),a=r(n(11)),s=r(n(51)),f=r(n(45)),l=r(n(73)),p=r(n(72)),h=n(28),v=["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},m=function(){function t(e){(0,c.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,a.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)&&!v.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,c,a,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,c=o.args,h.Node.instances.hasOwnProperty(r)){t.next=3;break}return t.abrupt("return");case 3:return a=h.Node.instances[r],s=null,f=null,t.prev=6,t.next=9,this._node.handle(u,c,a);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,a._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,c,a,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:c=this._dfds[n],a=c.resolve,s=c.reject,delete this._dfds[n],null!=o?s(g(o)):a(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=m},function(t,e,n){(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(74))},function(t,e,n){t.exports=n(82)},function(t,e,n){var r=n(22),o=n(26),i=n(8),u=n(39),c=n(9),a=n(64),s=Object.getOwnPropertyDescriptor;e.f=n(5)?s:function(t,e){if(t=i(t),e=u(e,!0),a)try{return s(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(62),o=n(35).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(97),o=n(95);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){t.exports=n(99)},function(t,e,n){var r=n(4),o=n(6),i=n(34);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(18),c=n(113),a=n(60),s=n(40),f=n(1),l=f.process,p=f.setImmediate,h=f.clearImmediate,v=f.MessageChannel,d=f.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){m.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++y]=function(){c("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete g[t]},"process"==n(15)(l)?r=function(t){l.nextTick(u(m,t,1))}:d&&d.now?r=function(t){d.now(u(m,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=b,r=u(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):r="onreadystatechange"in s("script")?function(t){a.appendChild(s("script")).onreadystatechange=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){var r=n(4),o=n(27),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,n){var r=n(15),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,n){n(122);for(var r=n(1),o=n(10),i=n(16),u=n(2)("toStringTag"),c="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(","),a=0;a<c.length;a++){var s=c[a],f=r[s],l=f&&f.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,e,n){var r=n(41);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(9),o=n(58),i=n(37)("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(42),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(9),o=n(8),i=n(124)(!1),u=n(37)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,s=[];for(n in c)n!=u&&r(c,n)&&s.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){t.exports=n(10)},function(t,e,n){t.exports=!n(5)&&!n(17)(function(){return 7!=Object.defineProperty(n(40)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var r=n(19),o=n(3),i=n(63),u=n(10),c=n(16),a=n(127),s=n(23),f=n(59),l=n(2)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,d,y,g){a(n,e,v);var m,b,_,w=function(t){if(!p&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",O="values"==d,j=!1,P=t.prototype,E=P[l]||P["@@iterator"]||d&&P[d],S=E||w(d),k=d?O?w("entries"):S:void 0,T="Array"==e&&P.entries||E;if(T&&(_=f(T.call(new t)))!==Object.prototype&&_.next&&(s(_,x,!0),r||"function"==typeof _[l]||u(_,l,h)),O&&E&&"values"!==E.name&&(j=!0,S=function(){return E.call(this)}),r&&!g||!p&&!j&&P[l]||u(P,l,S),c[e]=S,c[x]=h,d)if(m={values:O?S:w("values"),keys:y?S:w("keys"),entries:k},g)for(b in m)b in P||i(P,b,m[b]);else o(o.P+o.F*(p||j),e,m);return m}},function(t,e,n){"use strict";var r=n(128)(!0);n(65)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e){},function(t,e,n){t.exports=n(129)},function(t,e,n){"use strict";var r=n(20);Object.defineProperty(e,"__esModule",{value:!0}),e.Slave=void 0;var o=r(n(14)),i=r(n(13)),u=r(n(12)),c=r(n(11)),a=r(n(33)),s=r(n(30)),f=r(n(29)),l=r(n(21)),p=n(28),h=n(44),v=n(43),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,a.default)(this,(0,s.default)(e).call(this,t,r,o)))._init(new v.Sender((0,l.default)((0,l.default)(n))),new h.Receiver((0,l.default)((0,l.default)(n)))),n}var n,r;return(0,f.default)(e,t),(0,c.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(70)},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t?function t(e,n){var r;r=Array.isArray(e)?[]:{};n.push(e);Object.keys(e).forEach(function(o){var i=e[o];"function"!=typeof i&&(i&&"object"==typeof i?-1!==n.indexOf(e[o])?r[o]="[Circular]":r[o]=t(e[o],n.slice(0)):r[o]=i)});"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";t.exports=(()=>{const t={};return t.promise=new Promise((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){"use strict";n.r(e),n.d(e,"defineEventAttribute",function(){return y}),n.d(e,"EventTarget",function(){return m});const r=new WeakMap,o=new WeakMap;function i(t){const e=r.get(t);return console.assert(null!=e,"'this' is expected an Event object, but got",t),e}function u(t,e){r.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});const n=Object.keys(e);for(let t=0;t<n.length;++t){const e=n[t];e in this||Object.defineProperty(this,e,c(e))}}function c(t){return{get(){return i(this).event[t]},set(e){i(this).event[t]=e},configurable:!0,enumerable:!0}}function a(t){return{value(){const e=i(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function s(t){if(null==t||t===Object.prototype)return u;let e=o.get(t);return null==e&&(e=function(t,e){const n=Object.keys(e);if(0===n.length)return t;function r(e,n){t.call(this,e,n)}r.prototype=Object.create(t.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(let o=0;o<n.length;++o){const i=n[o];if(!(i in t.prototype)){const t="function"==typeof Object.getOwnPropertyDescriptor(e,i).value;Object.defineProperty(r.prototype,i,t?a(i):c(i))}}return r}(s(Object.getPrototypeOf(t)),t),o.set(t,e)),e}function f(t){return i(t).stopped}function l(t,e){i(t).passiveListener=e}u.prototype={get type(){return i(this).event.type},get target(){return i(this).eventTarget},get currentTarget(){return i(this).currentTarget},composedPath(){const t=i(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 i(this).eventPhase},stopPropagation(){const t=i(this);"function"==typeof t.event.stopPropagation&&t.event.stopPropagation()},stopImmediatePropagation(){const t=i(this);t.stopped=!0,"function"==typeof t.event.stopImmediatePropagation&&t.event.stopImmediatePropagation()},get bubbles(){return Boolean(i(this).event.bubbles)},get cancelable(){return Boolean(i(this).event.cancelable)},preventDefault(){const t=i(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 i(this).canceled},get composed(){return Boolean(i(this).event.composed)},get timeStamp(){return i(this).timeStamp}},Object.defineProperty(u.prototype,"constructor",{value:u,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(u.prototype,window.Event.prototype),o.set(window.Event.prototype,u));const p=new WeakMap,h=3;function v(t){return null!==t&&"object"==typeof t}function d(t){const e=p.get(t);if(null==e)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function y(t,e){Object.defineProperty(t,`on${e}`,function(t){return{get(){let e=d(this).get(t);for(;null!=e;){if(e.listenerType===h)return e.listener;e=e.next}return null},set(e){"function"==typeof e||v(e)||(e=null);const n=d(this);let r=null,o=n.get(t);for(;null!=o;)o.listenerType===h?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){const o={listener:e,listenerType:h,passive:!1,once:!1,next:null};null===r?n.set(t,o):r.next=o}},configurable:!0,enumerable:!0}}(e))}function g(t){function e(){m.call(this)}e.prototype=Object.create(m.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let n=0;n<t.length;++n)y(e.prototype,t[n]);return e}function m(){if(!(this instanceof m)){if(1===arguments.length&&Array.isArray(arguments[0]))return g(arguments[0]);if(arguments.length>0){const t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return g(t)}throw new TypeError("Cannot call a class as a function")}p.set(this,new Map)}m.prototype={addEventListener(t,e,n){if(null==e)return!1;if("function"!=typeof e&&!v(e))throw new TypeError("'listener' should be a function or an object.");const r=d(this),o=v(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};let c=r.get(t);if(void 0===c)return r.set(t,u),!0;let a=null;for(;null!=c;){if(c.listener===e&&c.listenerType===i)return!1;a=c,c=c.next}return a.next=u,!0},removeEventListener(t,e,n){if(null==e)return!1;const r=d(this),o=(v(n)?Boolean(n.capture):Boolean(n))?1:2;let i=null,u=r.get(t);for(;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(t){if(null==t||"string"!=typeof t.type)throw new TypeError('"event.type" should be a string.');const e=d(this),n=t.type;let r=e.get(n);if(null==r)return!0;const o=function(t,e){return new(s(Object.getPrototypeOf(e)))(t,e)}(this,t);let u=null;for(;null!=r&&(r.once?null!==u?u.next=r.next:null!==r.next?e.set(n,r.next):e.delete(n):u=r,l(o,r.passive?r.listener:null),"function"==typeof r.listener?r.listener.call(this,o):r.listenerType!==h&&"function"==typeof r.listener.handleEvent&&r.listener.handleEvent(o),!f(o));)r=r.next;return l(o,null),function(t,e){i(t).eventPhase=e}(o,0),function(t,e){i(t).currentTarget=e}(o,null),!o.defaultPrevented}},Object.defineProperty(m.prototype,"constructor",{value:m,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(m.prototype,window.EventTarget.prototype),e.default=m},function(t,e,n){var r=n(46);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(38)})},function(t,e,n){n(77);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){t.exports=n(78)},function(t,e,n){var r=n(6),o=n(4),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(18)(Function.call,n(47).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(80).set})},function(t,e,n){n(81),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){var r=n(3),o=n(0),i=n(17);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(58),o=n(59);n(83)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){n(84),t.exports=n(0).Object.getPrototypeOf},function(t,e,n){t.exports=n(85)},function(t,e,n){n(31)("observable")},function(t,e,n){n(31)("asyncIterator")},function(t,e,n){var r=n(8),o=n(48).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);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(25),o=n(49),i=n(22);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,c=n(t),a=i.f,s=0;c.length>s;)a.call(t,u=c[s++])&&e.push(u);return e}},function(t,e,n){var r=n(24)("meta"),o=n(6),i=n(9),u=n(7).f,c=0,a=Object.isExtensible||function(){return!0},s=!n(17)(function(){return a(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++c,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(!a(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return s&&l.NEED&&a(t)&&!i(t,r)&&f(t),t}}},function(t,e,n){"use strict";var r=n(1),o=n(9),i=n(5),u=n(3),c=n(63),a=n(92).KEY,s=n(17),f=n(36),l=n(23),p=n(24),h=n(2),v=n(32),d=n(31),y=n(91),g=n(90),m=n(4),b=n(6),_=n(8),w=n(39),x=n(26),O=n(38),j=n(89),P=n(47),E=n(7),S=n(25),k=P.f,T=E.f,L=j.f,M=r.Symbol,N=r.JSON,A=N&&N.stringify,R=h("_hidden"),F=h("toPrimitive"),C={}.propertyIsEnumerable,I=f("symbol-registry"),G=f("symbols"),B=f("op-symbols"),D=Object.prototype,W="function"==typeof M,H=r.QObject,J=!H||!H.prototype||!H.prototype.findChild,U=i&&s(function(){return 7!=O(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=k(D,e);r&&delete D[e],T(t,e,n),r&&t!==D&&T(D,e,r)}:T,V=function(t){var e=G[t]=O(M.prototype);return e._k=t,e},q=W&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},K=function(t,e,n){return t===D&&K(B,e,n),m(t),e=w(e,!0),m(n),o(G,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=O(n,{enumerable:x(0,!1)})):(o(t,R)||T(t,R,x(1,{})),t[R][e]=!0),U(t,e,n)):T(t,e,n)},Y=function(t,e){m(t);for(var n,r=y(e=_(e)),o=0,i=r.length;i>o;)K(t,n=r[o++],e[n]);return t},z=function(t){var e=C.call(this,t=w(t,!0));return!(this===D&&o(G,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(G,t)||o(this,R)&&this[R][t])||e)},Q=function(t,e){if(t=_(t),e=w(e,!0),t!==D||!o(G,e)||o(B,e)){var n=k(t,e);return!n||!o(G,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=L(_(t)),r=[],i=0;n.length>i;)o(G,e=n[i++])||e==R||e==a||r.push(e);return r},X=function(t){for(var e,n=t===D,r=L(n?B:_(t)),i=[],u=0;r.length>u;)!o(G,e=r[u++])||n&&!o(D,e)||i.push(G[e]);return i};W||(c((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===D&&e.call(B,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),U(this,t,x(1,n))};return i&&J&&U(D,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",function(){return this._k}),P.f=Q,E.f=K,n(48).f=j.f=$,n(22).f=z,n(49).f=X,i&&!n(19)&&c(D,"propertyIsEnumerable",z,!0),v.f=function(t){return V(h(t))}),u(u.G+u.W+u.F*!W,{Symbol:M});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)h(Z[tt++]);for(var et=S(h.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(!q(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):Y(O(t),e)},defineProperty:K,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:X}),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],(b(e)||void 0!==t)&&!q(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,A.apply(N,r)}}),M.prototype[F]||n(10)(M.prototype,F,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(93),n(67),n(88),n(87),t.exports=n(0).Symbol},function(t,e,n){t.exports=n(94)},function(t,e,n){n(66),n(57),t.exports=n(32).f("iterator")},function(t,e,n){t.exports=n(96)},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(98);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",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",s="object"==typeof t,f=e.regeneratorRuntime;if(f)s&&(t.exports=f);else{(f=e.regeneratorRuntime=s?t.exports:{}).wrap=_;var l="suspendedStart",p="suspendedYield",h="executing",v="completed",d={},y={};y[u]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(M([])));m&&m!==r&&o.call(m,u)&&(y=m);var b=j.prototype=x.prototype=Object.create(y);O.prototype=b.constructor=j,j.constructor=O,j[a]=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,j):(t.__proto__=j,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(b),t},f.awrap=function(t){return{__await:t}},P(E.prototype),E.prototype[c]=function(){return this},f.AsyncIterator=E,f.async=function(t,e,n,r){var o=new E(_(t,e,n,r));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},P(b),b[a]="Generator",b[u]=function(){return this},b.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 c.type="throw",c.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],c=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var a=o.call(u,"catchLoc"),s=o.call(u,"finallyLoc");if(a&&s){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(a){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 _(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,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===h)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return N()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var c=S(u,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var a=w(t,e,n);if("normal"===a.type){if(r=n.done?v:p,a.arg===d)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(r=v,n.method="throw",n.arg=a.arg)}}}(t,n,u),i}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function x(){}function O(){}function j(){}function P(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,u){var c=w(t[n],t,r);if("throw"!==c.type){var a=c.arg,s=a.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){a.value=t,i(a)},u)}u(c.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=w(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 k(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(k,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(100),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e,n){var r=n(25),o=n(8),i=n(22).f;t.exports=function(t){return function(e){for(var n,u=o(e),c=r(u),a=c.length,s=0,f=[];a>s;)i.call(u,n=c[s++])&&f.push(t?[n,u[n]]:u[n]);return f}}},function(t,e,n){var r=n(3),o=n(102)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(103),t.exports=n(0).Object.values},function(t,e,n){t.exports=n(104)},function(t,e,n){"use strict";var r=n(3),o=n(34),i=n(53);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(55),c=n(52);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 c(e,t()).then(function(){return n})}:t,n?function(n){return c(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){"use strict";var r=n(1),o=n(0),i=n(7),u=n(5),c=n(2)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];u&&e&&!e[c]&&i.f(e,c,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(10);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(1),o=n(54).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,c=r.Promise,a="process"==n(15)(u);t.exports=function(){var t,e,n,s=function(){var r,o;for(a&&(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(a)n=function(){u.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var f=c.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(56),o=n(2)("iterator"),i=n(16);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(16),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(4);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(18),o=n(116),i=n(115),u=n(4),c=n(61),a=n(114),s={},f={};(e=t.exports=function(t,e,n,l,p){var h,v,d,y,g=p?function(){return t}:a(t),m=r(n,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=c(t.length);h>b;b++)if((y=e?m(u(v=t[b])[0],v[1]):m(t[b]))===s||y===f)return y}else for(d=g.call(t);!(v=d.next()).done;)if((y=o(d,m,v.value,e))===s||y===f)return y}).BREAK=s,e.RETURN=f},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){"use strict";var r,o,i,u,c=n(19),a=n(1),s=n(18),f=n(56),l=n(3),p=n(6),h=n(27),v=n(118),d=n(117),y=n(55),g=n(54).set,m=n(112)(),b=n(34),_=n(53),w=n(111),x=n(52),O=a.TypeError,j=a.process,P=j&&j.versions,E=P&&P.v8||"",S=a.Promise,k="process"==f(j),T=function(){},L=o=b.f,M=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(2)("species")]=function(t){t(T,T)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==E.indexOf("6.6")&&-1===w.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;m(function(){for(var r=t._v,o=1==t._s,i=0,u=function(e){var n,i,u,c=o?e.ok:e.fail,a=e.resolve,s=e.reject,f=e.domain;try{c?(o||(2==t._h&&C(t),t._h=1),!0===c?n=r:(f&&f.enter(),n=c(r),f&&(f.exit(),u=!0)),n===e.promise?s(O("Promise-chain cycle")):(i=N(n))?i.call(n,a,s):a(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(a,function(){var e,n,r,o=t._v,i=F(t);if(i&&(e=_(function(){k?j.emit("unhandledRejection",o,t):(n=a.onunhandledrejection)?n({promise:t,reason:o}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=k||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(a,function(){var e;k?j.emit("rejectionHandled",t):(e=a.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))?m(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){v(this,S,"Promise","_h"),h(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(110)(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=k?j.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)},b.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(109)("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*(c||!M),"Promise",{resolve:function(t){return x(c&&this===u?S:this,t)}}),l(l.S+l.F*!(M&&n(108)(function(t){S.all(t).catch(T)})),"Promise",{all:function(t){var e=this,n=L(e),r=n.resolve,o=n.reject,i=_(function(){var n=[],i=0,u=1;d(t,!1,function(t){var c=i++,a=!1;n.push(void 0),u++,e.resolve(t).then(function(t){a||(a=!0,n[c]=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=_(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var r=n(121),o=n(120),i=n(16),u=n(8);t.exports=n(65)(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(42),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(61),i=n(123);t.exports=function(t){return function(e,n,u){var c,a=r(e),s=o(a.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(7),o=n(4),i=n(25);t.exports=n(5)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,a=0;c>a;)r.f(t,n=u[a++],e[n]);return t}},function(t,e,n){"use strict";var r=n(38),o=n(26),i=n(23),u={};n(10)(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(42),o=n(41);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),a=r(n),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}}},function(t,e,n){n(67),n(66),n(57),n(119),n(107),n(106),t.exports=n(0).Promise},function(t,e,n){"use strict";var r=n(20);Object.defineProperty(e,"__esModule",{value:!0}),e.Master=void 0;var o=r(n(68)),i=r(n(105)),u=r(n(14)),c=r(n(13)),a=r(n(12)),s=r(n(11)),f=r(n(33)),l=r(n(30)),p=r(n(29)),h=r(n(21)),v=n(28),d=n(44),y=n(43),g=function(t){function e(t,n,r,o){var i;return(0,a.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,h.default)((0,h.default)(i))),t.receiver),i}var n;return(0,p.default)(e,t),(0,s.default)(e,[{key:"send",value:(n=(0,c.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}(v.Node),m=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,a.default)(this,e),(t=(0,f.default)(this,(0,l.default)(e).call(this,"",n,r)))._slaves={},t._init(null,new d.Receiver((0,h.default)((0,h.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,c.default)(u.default.mark(function t(e){var n,r,c,a,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(c=t.sent,a={},s=0;s<r.length;++s)a[r[s].id]=c[s];return t.abrupt("return",a);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}(v.Node);e.Master=m},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(130),o=n(69)}])}); | ||
!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=131)}([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(36)("wks"),o=n(24),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(19),u=n(10),c=n(9),a=function(t,e,n){var s,f,l,p=t&a.F,h=t&a.G,v=t&a.S,d=t&a.P,y=t&a.B,g=t&a.W,m=h?o:o[e]||(o[e]={}),b=m.prototype,_=h?r:v?r[e]:(r[e]||{}).prototype;for(s in h&&(n=e),n)(f=!p&&_&&void 0!==_[s])&&c(m,s)||(l=f?_[s]:n[s],m[s]=h&&"function"!=typeof _[s]?n[s]:y&&f?i(l,r):g&&_[s]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((m.virtual||(m.virtual={}))[s]=l,t&a.R&&b&&!b[s]&&u(b,s,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(4),o=n(65),i=n(39),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(125),o=n(41);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,n){var r=n(7),o=n(26);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){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){var r=n(52);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(43);t.exports=function(t){return function(){var e=this,n=arguments;return new r(function(o,i){var u=t.apply(e,n);function c(t,e){try{var n=u[t](e),c=n.value}catch(t){return void i(t)}n.done?o(c):r.resolve(c).then(a,s)}function a(t){c("next",t)}function s(t){c("throw",t)}a()})}}},function(t,e,n){t.exports=n(101)},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){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(27);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=!0},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){e.f={}.propertyIsEnumerable},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=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(63),o=n(35);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(11);Object.defineProperty(e,"__esModule",{value:!0}),e.Node=void 0;var o=r(n(15)),i=r(n(14)),u=r(n(13)),c=r(n(33)),a=r(n(30)),s=r(n(12)),f=r(n(29)),l=r(n(21)),p=r(n(75)),h=r(n(46)),v={},d=function(t){function e(t,n,r){var o;return(0,u.default)(this,e),(o=(0,c.default)(this,(0,a.default)(e).call(this)))._id=t,o._target=n,o._origin=r,o._handlers={},o._sender=null,o._receiver=null,v[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 v}}]),(0,s.default)(e,[{key:"log",value:function(t){var e=new h.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(79),o=n(76);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){var r=n(86),o=n(47);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(1),o=n(0),i=n(20),u=n(32),c=n(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},function(t,e,n){e.f=n(2)},function(t,e,n){var r=n(51),o=n(21);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e,n){"use strict";var r=n(27);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){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(20)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(36)("keys"),o=n(24);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(4),o=n(126),i=n(35),u=n(37)("IE_PROTO"),c=function(){},a=function(){var t,e=n(40)("iframe"),r=i.length;for(e.style.display="none",n(61).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(6);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(6),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},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){t.exports=n(129)},function(t,e,n){"use strict";var r=n(11);Object.defineProperty(e,"__esModule",{value:!0}),e.Sender=void 0;var o=r(n(71)),i=r(n(15)),u=r(n(14)),c=r(n(13)),a=r(n(12)),s=function(){function t(e){(0,c.default)(this,t),this._node=e,this._msgId=0}var e,n,r;return(0,a.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,c=arguments;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>1&&void 0!==c[1]?c[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,c=r.origin,a=(0,o.default)({type:t,from:i,id:e,payload:n});u.postMessage(a,c)}}]),t}();e.Sender=s},function(t,e,n){"use strict";var r=n(11);Object.defineProperty(e,"__esModule",{value:!0}),e.Receiver=void 0;var o=r(n(51)),i=r(n(15)),u=r(n(14)),c=r(n(13)),a=r(n(12)),s=r(n(52)),f=r(n(46)),l=r(n(73)),p=r(n(72)),h=n(28),v=["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},m=function(){function t(e){(0,c.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,a.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)&&!v.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,c,a,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,c=o.args,h.Node.instances.hasOwnProperty(r)){t.next=3;break}return t.abrupt("return");case 3:return a=h.Node.instances[r],s=null,f=null,t.prev=6,t.next=9,this._node.handle(u,c,a);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,a._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,c,a,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:c=this._dfds[n],a=c.resolve,s=c.reject,delete this._dfds[n],null!=o?s(g(o)):a(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=m},function(t,e,n){(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(74))},function(t,e,n){t.exports=n(82)},function(t,e,n){var r=n(22),o=n(26),i=n(8),u=n(39),c=n(9),a=n(65),s=Object.getOwnPropertyDescriptor;e.f=n(5)?s:function(t,e){if(t=i(t),e=u(e,!0),a)try{return s(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(63),o=n(35).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(97),o=n(95);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){t.exports=n(99)},function(t,e,n){var r=n(4),o=n(6),i=n(34);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(19),c=n(113),a=n(61),s=n(40),f=n(1),l=f.process,p=f.setImmediate,h=f.clearImmediate,v=f.MessageChannel,d=f.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){m.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++y]=function(){c("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete g[t]},"process"==n(16)(l)?r=function(t){l.nextTick(u(m,t,1))}:d&&d.now?r=function(t){d.now(u(m,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=b,r=u(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):r="onreadystatechange"in s("script")?function(t){a.appendChild(s("script")).onreadystatechange=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){var r=n(4),o=n(27),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,n){var r=n(16),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,n){n(122);for(var r=n(1),o=n(10),i=n(17),u=n(2)("toStringTag"),c="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(","),a=0;a<c.length;a++){var s=c[a],f=r[s],l=f&&f.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,e,n){var r=n(41);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(9),o=n(59),i=n(37)("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(42),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(9),o=n(8),i=n(124)(!1),u=n(37)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,s=[];for(n in c)n!=u&&r(c,n)&&s.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){t.exports=n(10)},function(t,e,n){t.exports=!n(5)&&!n(18)(function(){return 7!=Object.defineProperty(n(40)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var r=n(20),o=n(3),i=n(64),u=n(10),c=n(17),a=n(127),s=n(23),f=n(60),l=n(2)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,d,y,g){a(n,e,v);var m,b,_,w=function(t){if(!p&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",O="values"==d,j=!1,P=t.prototype,E=P[l]||P["@@iterator"]||d&&P[d],S=E||w(d),k=d?O?w("entries"):S:void 0,T="Array"==e&&P.entries||E;if(T&&(_=f(T.call(new t)))!==Object.prototype&&_.next&&(s(_,x,!0),r||"function"==typeof _[l]||u(_,l,h)),O&&E&&"values"!==E.name&&(j=!0,S=function(){return E.call(this)}),r&&!g||!p&&!j&&P[l]||u(P,l,S),c[e]=S,c[x]=h,d)if(m={values:O?S:w("values"),keys:y?S:w("keys"),entries:k},g)for(b in m)b in P||i(P,b,m[b]);else o(o.P+o.F*(p||j),e,m);return m}},function(t,e,n){"use strict";var r=n(128)(!0);n(66)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e){},function(t,e,n){"use strict";var r=n(11);Object.defineProperty(e,"__esModule",{value:!0}),e.Slave=void 0;var o=r(n(15)),i=r(n(14)),u=r(n(13)),c=r(n(12)),a=r(n(33)),s=r(n(30)),f=r(n(29)),l=r(n(21)),p=n(28),h=n(45),v=n(44),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,a.default)(this,(0,s.default)(e).call(this,t,r,o)))._init(new v.Sender((0,l.default)((0,l.default)(n))),new h.Receiver((0,l.default)((0,l.default)(n)))),n}var n,r;return(0,f.default)(e,t),(0,c.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(70)},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t?function t(e,n){var r;r=Array.isArray(e)?[]:{};n.push(e);Object.keys(e).forEach(function(o){var i=e[o];"function"!=typeof i&&(i&&"object"==typeof i?-1!==n.indexOf(e[o])?r[o]="[Circular]":r[o]=t(e[o],n.slice(0)):r[o]=i)});"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(11)(n(43));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){"use strict";n.r(e),n.d(e,"defineEventAttribute",function(){return y}),n.d(e,"EventTarget",function(){return m});const r=new WeakMap,o=new WeakMap;function i(t){const e=r.get(t);return console.assert(null!=e,"'this' is expected an Event object, but got",t),e}function u(t,e){r.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});const n=Object.keys(e);for(let t=0;t<n.length;++t){const e=n[t];e in this||Object.defineProperty(this,e,c(e))}}function c(t){return{get(){return i(this).event[t]},set(e){i(this).event[t]=e},configurable:!0,enumerable:!0}}function a(t){return{value(){const e=i(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function s(t){if(null==t||t===Object.prototype)return u;let e=o.get(t);return null==e&&(e=function(t,e){const n=Object.keys(e);if(0===n.length)return t;function r(e,n){t.call(this,e,n)}r.prototype=Object.create(t.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(let o=0;o<n.length;++o){const i=n[o];if(!(i in t.prototype)){const t="function"==typeof Object.getOwnPropertyDescriptor(e,i).value;Object.defineProperty(r.prototype,i,t?a(i):c(i))}}return r}(s(Object.getPrototypeOf(t)),t),o.set(t,e)),e}function f(t){return i(t).stopped}function l(t,e){i(t).passiveListener=e}u.prototype={get type(){return i(this).event.type},get target(){return i(this).eventTarget},get currentTarget(){return i(this).currentTarget},composedPath(){const t=i(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 i(this).eventPhase},stopPropagation(){const t=i(this);"function"==typeof t.event.stopPropagation&&t.event.stopPropagation()},stopImmediatePropagation(){const t=i(this);t.stopped=!0,"function"==typeof t.event.stopImmediatePropagation&&t.event.stopImmediatePropagation()},get bubbles(){return Boolean(i(this).event.bubbles)},get cancelable(){return Boolean(i(this).event.cancelable)},preventDefault(){const t=i(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 i(this).canceled},get composed(){return Boolean(i(this).event.composed)},get timeStamp(){return i(this).timeStamp}},Object.defineProperty(u.prototype,"constructor",{value:u,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(u.prototype,window.Event.prototype),o.set(window.Event.prototype,u));const p=new WeakMap,h=3;function v(t){return null!==t&&"object"==typeof t}function d(t){const e=p.get(t);if(null==e)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function y(t,e){Object.defineProperty(t,`on${e}`,function(t){return{get(){let e=d(this).get(t);for(;null!=e;){if(e.listenerType===h)return e.listener;e=e.next}return null},set(e){"function"==typeof e||v(e)||(e=null);const n=d(this);let r=null,o=n.get(t);for(;null!=o;)o.listenerType===h?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){const o={listener:e,listenerType:h,passive:!1,once:!1,next:null};null===r?n.set(t,o):r.next=o}},configurable:!0,enumerable:!0}}(e))}function g(t){function e(){m.call(this)}e.prototype=Object.create(m.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let n=0;n<t.length;++n)y(e.prototype,t[n]);return e}function m(){if(!(this instanceof m)){if(1===arguments.length&&Array.isArray(arguments[0]))return g(arguments[0]);if(arguments.length>0){const t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return g(t)}throw new TypeError("Cannot call a class as a function")}p.set(this,new Map)}m.prototype={addEventListener(t,e,n){if(null==e)return!1;if("function"!=typeof e&&!v(e))throw new TypeError("'listener' should be a function or an object.");const r=d(this),o=v(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};let c=r.get(t);if(void 0===c)return r.set(t,u),!0;let a=null;for(;null!=c;){if(c.listener===e&&c.listenerType===i)return!1;a=c,c=c.next}return a.next=u,!0},removeEventListener(t,e,n){if(null==e)return!1;const r=d(this),o=(v(n)?Boolean(n.capture):Boolean(n))?1:2;let i=null,u=r.get(t);for(;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(t){if(null==t||"string"!=typeof t.type)throw new TypeError('"event.type" should be a string.');const e=d(this),n=t.type;let r=e.get(n);if(null==r)return!0;const o=function(t,e){return new(s(Object.getPrototypeOf(e)))(t,e)}(this,t);let u=null;for(;null!=r&&(r.once?null!==u?u.next=r.next:null!==r.next?e.set(n,r.next):e.delete(n):u=r,l(o,r.passive?r.listener:null),"function"==typeof r.listener?r.listener.call(this,o):r.listenerType!==h&&"function"==typeof r.listener.handleEvent&&r.listener.handleEvent(o),!f(o));)r=r.next;return l(o,null),function(t,e){i(t).eventPhase=e}(o,0),function(t,e){i(t).currentTarget=e}(o,null),!o.defaultPrevented}},Object.defineProperty(m.prototype,"constructor",{value:m,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(m.prototype,window.EventTarget.prototype),e.default=m},function(t,e,n){var r=n(47);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(38)})},function(t,e,n){n(77);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){t.exports=n(78)},function(t,e,n){var r=n(6),o=n(4),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(19)(Function.call,n(48).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(80).set})},function(t,e,n){n(81),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){var r=n(3),o=n(0),i=n(18);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(59),o=n(60);n(83)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){n(84),t.exports=n(0).Object.getPrototypeOf},function(t,e,n){t.exports=n(85)},function(t,e,n){n(31)("observable")},function(t,e,n){n(31)("asyncIterator")},function(t,e,n){var r=n(8),o=n(49).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(16);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(25),o=n(50),i=n(22);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,c=n(t),a=i.f,s=0;c.length>s;)a.call(t,u=c[s++])&&e.push(u);return e}},function(t,e,n){var r=n(24)("meta"),o=n(6),i=n(9),u=n(7).f,c=0,a=Object.isExtensible||function(){return!0},s=!n(18)(function(){return a(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++c,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(!a(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return s&&l.NEED&&a(t)&&!i(t,r)&&f(t),t}}},function(t,e,n){"use strict";var r=n(1),o=n(9),i=n(5),u=n(3),c=n(64),a=n(92).KEY,s=n(18),f=n(36),l=n(23),p=n(24),h=n(2),v=n(32),d=n(31),y=n(91),g=n(90),m=n(4),b=n(6),_=n(8),w=n(39),x=n(26),O=n(38),j=n(89),P=n(48),E=n(7),S=n(25),k=P.f,T=E.f,L=j.f,M=r.Symbol,N=r.JSON,A=N&&N.stringify,R=h("_hidden"),F=h("toPrimitive"),C={}.propertyIsEnumerable,I=f("symbol-registry"),G=f("symbols"),B=f("op-symbols"),D=Object.prototype,W="function"==typeof M,H=r.QObject,J=!H||!H.prototype||!H.prototype.findChild,U=i&&s(function(){return 7!=O(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=k(D,e);r&&delete D[e],T(t,e,n),r&&t!==D&&T(D,e,r)}:T,V=function(t){var e=G[t]=O(M.prototype);return e._k=t,e},q=W&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},K=function(t,e,n){return t===D&&K(B,e,n),m(t),e=w(e,!0),m(n),o(G,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=O(n,{enumerable:x(0,!1)})):(o(t,R)||T(t,R,x(1,{})),t[R][e]=!0),U(t,e,n)):T(t,e,n)},Y=function(t,e){m(t);for(var n,r=y(e=_(e)),o=0,i=r.length;i>o;)K(t,n=r[o++],e[n]);return t},z=function(t){var e=C.call(this,t=w(t,!0));return!(this===D&&o(G,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(G,t)||o(this,R)&&this[R][t])||e)},Q=function(t,e){if(t=_(t),e=w(e,!0),t!==D||!o(G,e)||o(B,e)){var n=k(t,e);return!n||!o(G,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=L(_(t)),r=[],i=0;n.length>i;)o(G,e=n[i++])||e==R||e==a||r.push(e);return r},X=function(t){for(var e,n=t===D,r=L(n?B:_(t)),i=[],u=0;r.length>u;)!o(G,e=r[u++])||n&&!o(D,e)||i.push(G[e]);return i};W||(c((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===D&&e.call(B,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),U(this,t,x(1,n))};return i&&J&&U(D,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",function(){return this._k}),P.f=Q,E.f=K,n(49).f=j.f=$,n(22).f=z,n(50).f=X,i&&!n(20)&&c(D,"propertyIsEnumerable",z,!0),v.f=function(t){return V(h(t))}),u(u.G+u.W+u.F*!W,{Symbol:M});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)h(Z[tt++]);for(var et=S(h.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(!q(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):Y(O(t),e)},defineProperty:K,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:X}),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],(b(e)||void 0!==t)&&!q(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,A.apply(N,r)}}),M.prototype[F]||n(10)(M.prototype,F,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(93),n(68),n(88),n(87),t.exports=n(0).Symbol},function(t,e,n){t.exports=n(94)},function(t,e,n){n(67),n(58),t.exports=n(32).f("iterator")},function(t,e,n){t.exports=n(96)},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(98);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",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",s="object"==typeof t,f=e.regeneratorRuntime;if(f)s&&(t.exports=f);else{(f=e.regeneratorRuntime=s?t.exports:{}).wrap=_;var l="suspendedStart",p="suspendedYield",h="executing",v="completed",d={},y={};y[u]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(M([])));m&&m!==r&&o.call(m,u)&&(y=m);var b=j.prototype=x.prototype=Object.create(y);O.prototype=b.constructor=j,j.constructor=O,j[a]=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,j):(t.__proto__=j,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(b),t},f.awrap=function(t){return{__await:t}},P(E.prototype),E.prototype[c]=function(){return this},f.AsyncIterator=E,f.async=function(t,e,n,r){var o=new E(_(t,e,n,r));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},P(b),b[a]="Generator",b[u]=function(){return this},b.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 c.type="throw",c.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],c=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var a=o.call(u,"catchLoc"),s=o.call(u,"finallyLoc");if(a&&s){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(a){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 _(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,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===h)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return N()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var c=S(u,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var a=w(t,e,n);if("normal"===a.type){if(r=n.done?v:p,a.arg===d)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(r=v,n.method="throw",n.arg=a.arg)}}}(t,n,u),i}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function x(){}function O(){}function j(){}function P(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,u){var c=w(t[n],t,r);if("throw"!==c.type){var a=c.arg,s=a.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){a.value=t,i(a)},u)}u(c.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=w(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 k(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(k,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(100),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e,n){var r=n(25),o=n(8),i=n(22).f;t.exports=function(t){return function(e){for(var n,u=o(e),c=r(u),a=c.length,s=0,f=[];a>s;)i.call(u,n=c[s++])&&f.push(t?[n,u[n]]:u[n]);return f}}},function(t,e,n){var r=n(3),o=n(102)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(103),t.exports=n(0).Object.values},function(t,e,n){t.exports=n(104)},function(t,e,n){"use strict";var r=n(3),o=n(34),i=n(54);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(56),c=n(53);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 c(e,t()).then(function(){return n})}:t,n?function(n){return c(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){"use strict";var r=n(1),o=n(0),i=n(7),u=n(5),c=n(2)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];u&&e&&!e[c]&&i.f(e,c,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(10);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(1),o=n(55).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,c=r.Promise,a="process"==n(16)(u);t.exports=function(){var t,e,n,s=function(){var r,o;for(a&&(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(a)n=function(){u.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var f=c.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(57),o=n(2)("iterator"),i=n(17);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(17),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(4);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(19),o=n(116),i=n(115),u=n(4),c=n(62),a=n(114),s={},f={};(e=t.exports=function(t,e,n,l,p){var h,v,d,y,g=p?function(){return t}:a(t),m=r(n,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=c(t.length);h>b;b++)if((y=e?m(u(v=t[b])[0],v[1]):m(t[b]))===s||y===f)return y}else for(d=g.call(t);!(v=d.next()).done;)if((y=o(d,m,v.value,e))===s||y===f)return y}).BREAK=s,e.RETURN=f},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){"use strict";var r,o,i,u,c=n(20),a=n(1),s=n(19),f=n(57),l=n(3),p=n(6),h=n(27),v=n(118),d=n(117),y=n(56),g=n(55).set,m=n(112)(),b=n(34),_=n(54),w=n(111),x=n(53),O=a.TypeError,j=a.process,P=j&&j.versions,E=P&&P.v8||"",S=a.Promise,k="process"==f(j),T=function(){},L=o=b.f,M=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(2)("species")]=function(t){t(T,T)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==E.indexOf("6.6")&&-1===w.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;m(function(){for(var r=t._v,o=1==t._s,i=0,u=function(e){var n,i,u,c=o?e.ok:e.fail,a=e.resolve,s=e.reject,f=e.domain;try{c?(o||(2==t._h&&C(t),t._h=1),!0===c?n=r:(f&&f.enter(),n=c(r),f&&(f.exit(),u=!0)),n===e.promise?s(O("Promise-chain cycle")):(i=N(n))?i.call(n,a,s):a(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(a,function(){var e,n,r,o=t._v,i=F(t);if(i&&(e=_(function(){k?j.emit("unhandledRejection",o,t):(n=a.onunhandledrejection)?n({promise:t,reason:o}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=k||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(a,function(){var e;k?j.emit("rejectionHandled",t):(e=a.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))?m(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){v(this,S,"Promise","_h"),h(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(110)(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=k?j.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)},b.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(109)("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*(c||!M),"Promise",{resolve:function(t){return x(c&&this===u?S:this,t)}}),l(l.S+l.F*!(M&&n(108)(function(t){S.all(t).catch(T)})),"Promise",{all:function(t){var e=this,n=L(e),r=n.resolve,o=n.reject,i=_(function(){var n=[],i=0,u=1;d(t,!1,function(t){var c=i++,a=!1;n.push(void 0),u++,e.resolve(t).then(function(t){a||(a=!0,n[c]=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=_(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var r=n(121),o=n(120),i=n(17),u=n(8);t.exports=n(66)(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(42),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(62),i=n(123);t.exports=function(t){return function(e,n,u){var c,a=r(e),s=o(a.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(16);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(7),o=n(4),i=n(25);t.exports=n(5)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,a=0;c>a;)r.f(t,n=u[a++],e[n]);return t}},function(t,e,n){"use strict";var r=n(38),o=n(26),i=n(23),u={};n(10)(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(42),o=n(41);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),a=r(n),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}}},function(t,e,n){n(68),n(67),n(58),n(119),n(107),n(106),t.exports=n(0).Promise},function(t,e,n){"use strict";var r=n(11);Object.defineProperty(e,"__esModule",{value:!0}),e.Master=void 0;var o=r(n(43)),i=r(n(105)),u=r(n(15)),c=r(n(14)),a=r(n(13)),s=r(n(12)),f=r(n(33)),l=r(n(30)),p=r(n(29)),h=r(n(21)),v=n(28),d=n(45),y=n(44),g=function(t){function e(t,n,r,o){var i;return(0,a.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,h.default)((0,h.default)(i))),t.receiver),i}var n;return(0,p.default)(e,t),(0,s.default)(e,[{key:"send",value:(n=(0,c.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}(v.Node),m=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,a.default)(this,e),(t=(0,f.default)(this,(0,l.default)(e).call(this,"",n,r)))._slaves={},t._init(null,new d.Receiver((0,h.default)((0,h.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,c.default)(u.default.mark(function t(e){var n,r,c,a,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(c=t.sent,a={},s=0;s<r.length;++s)a[r[s].id]=c[s];return t.abrupt("return",a);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}(v.Node);e.Master=m},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(130),o=n(69)}])}); |
{ | ||
"name": "burrata", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Robust, developer-friendly postMessage.", | ||
@@ -30,3 +30,7 @@ "repository": "https://github.com/timdp/burrata", | ||
"test:lint": "yarn run standard", | ||
"test:e2e": "yarn run clean:coverage && yarn run karma start --single-run" | ||
"test:e2e": "yarn run clean:coverage && yarn run karma start && yarn run karma start --mode=cover", | ||
"dev": "yarn run karma start --no-single-run", | ||
"benchmark": "yarn run karma start --mode=benchmark", | ||
"format": "yarn run prettier-standard '{src,test}/**/*.js'", | ||
"precommit": "yarn run lint-staged" | ||
}, | ||
@@ -47,4 +51,6 @@ "dependencies": { | ||
"coveralls": "^3.0.1", | ||
"delay": "^3.0.0", | ||
"dirty-chai": "^2.0.1", | ||
"es6-error": "^4.1.1", | ||
"husky": "^0.14.3", | ||
"istanbul-instrumenter-loader": "^3.0.1", | ||
@@ -56,2 +62,3 @@ "karma": "^2.0.3", | ||
"karma-dirty-chai": "^2.0.0", | ||
"karma-firefox-launcher": "^1.1.0", | ||
"karma-junit-reporter": "^1.2.0", | ||
@@ -62,3 +69,6 @@ "karma-mocha": "^1.3.0", | ||
"karma-webpack": "^3.0.0", | ||
"lint-staged": "^7.2.0", | ||
"mocha": "^5.2.0", | ||
"numeral": "^2.0.6", | ||
"prettier-standard": "^8.0.1", | ||
"rimraf": "^2.6.2", | ||
@@ -70,2 +80,10 @@ "standard": "^11.0.1", | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"@babel/preset-env" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-transform-runtime" | ||
] | ||
}, | ||
"standard": { | ||
@@ -82,3 +100,11 @@ "globals": [ | ||
] | ||
}, | ||
"lint-staged": { | ||
"linters": { | ||
"{src,test}/**/*.js": [ | ||
"prettier-standard", | ||
"git add" | ||
] | ||
} | ||
} | ||
} |
@@ -48,3 +48,4 @@ import { Node } from './node' | ||
const responses = await Promise.all( | ||
slaves.map(slave => slave.send(type, args))) | ||
slaves.map(slave => slave.send(type, args)) | ||
) | ||
const result = {} | ||
@@ -51,0 +52,0 @@ for (let i = 0; i < slaves.length; ++i) { |
@@ -61,12 +61,14 @@ import CustomEvent from 'custom-event' | ||
} catch (err) {} | ||
if (data == null || typeof data !== 'object' || | ||
REQUIRED_DATA_PROPERTIES.some(name => (data[name] == null)) || | ||
!this._commands.hasOwnProperty(data.type)) { | ||
if ( | ||
data == null || | ||
typeof data !== 'object' || | ||
REQUIRED_DATA_PROPERTIES.some(name => data[name] == null) || | ||
!this._commands.hasOwnProperty(data.type) | ||
) { | ||
// TODO Warn | ||
return | ||
} | ||
this._commands[data.type](data, evt.source) | ||
.catch(err => { | ||
this._dispatchError(new Error(`Failed to process ${data.type}: ${err}`)) | ||
}) | ||
this._commands[data.type](data, evt.source).catch(err => { | ||
this._dispatchError(new Error(`Failed to process ${data.type}: ${err}`)) | ||
}) | ||
} | ||
@@ -73,0 +75,0 @@ |
Sorry, the diff of this file is too big to display
301551
1985
31