Comparing version 0.1.0 to 0.1.1
@@ -1,1 +0,1 @@ | ||
var burrata=function(t){"use strict";var e=Math.ceil,n=Math.floor,s=function(t){return isNaN(t=+t)?0:(0<t?n:e)(t)},a=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,e){return t(e={exports:{}},e.exports),e.exports}var d=o(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),y=o(function(t){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)}),u=(y.version,function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}),_=function(r,o,t){if(u(r),void 0===o)return r;switch(t){case 1:return function(t){return r.call(o,t)};case 2:return function(t,e){return r.call(o,t,e)};case 3:return function(t,e,n){return r.call(o,t,e,n)}}return function(){return r.apply(o,arguments)}},l=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t){if(!l(t))throw TypeError(t+" is not an object!");return t},h=function(t){try{return!!t()}catch(t){return!0}},p=!h(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),i=d.document,c=l(i)&&l(i.createElement),f=function(t){return c?i.createElement(t):{}},v=!p&&!h(function(){return 7!=Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a}),m=function(t,e){if(!l(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!l(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!l(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!l(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},w=Object.defineProperty,b={f:p?Object.defineProperty:function(t,e,n){if(g(t),e=m(e,!0),g(n),v)try{return w(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}},O=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},E=p?function(t,e,n){return b.f(t,e,O(1,n))}:function(t,e,n){return t[e]=n,t},x={}.hasOwnProperty,k=function(t,e){return x.call(t,e)},S="prototype",j=function(t,e,n){var r,o,i,u=t&j.F,a=t&j.G,c=t&j.S,s=t&j.P,f=t&j.B,l=t&j.W,h=a?y:y[e]||(y[e]={}),p=h[S],v=a?d:c?d[e]:(d[e]||{})[S];for(r in a&&(n=e),n)(o=!u&&v&&void 0!==v[r])&&k(h,r)||(i=o?v[r]:n[r],h[r]=a&&"function"!=typeof v[r]?n[r]:f&&o?_(i,d):l&&v[r]==i?function(r){var t=function(t,e,n){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,e)}return new r(t,e,n)}return r.apply(this,arguments)};return t[S]=r[S],t}(i):s&&"function"==typeof i?_(Function.call,i):i,s&&((h.virtual||(h.virtual={}))[r]=i,t&j.R&&p&&!p[r]&&E(p,r,i)))};j.F=1,j.G=2,j.S=4,j.P=8,j.B=16,j.W=32,j.U=64,j.R=128;var P,T=j,L=E,M={},A={}.toString,N=function(t){return A.call(t).slice(8,-1)},F=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==N(t)?t.split(""):Object(t)},R=function(t){return F(a(t))},C=Math.min,I=function(t){return 0<t?C(s(t),9007199254740991):0},D=Math.max,G=Math.min,B=o(function(t){var e="__core-js_shared__",n=d[e]||(d[e]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:y.version,mode:"pure",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),W=0,J=Math.random(),z=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++W+J).toString(36))},H=B("keys"),K=function(t){return H[t]||(H[t]=z(t))},q=(P=!1,function(t,e,n){var r,o,i,u=R(t),a=I(u.length),c=(o=a,(r=s(r=n))<0?D(r+o,0):G(r,o));if(P&&e!=e){for(;c<a;)if((i=u[c++])!=i)return!0}else for(;c<a;c++)if((P||c in u)&&u[c]===e)return P||c||0;return!P&&-1}),U=K("IE_PROTO"),V=function(t,e){var n,r=R(t),o=0,i=[];for(n in r)n!=U&&k(r,n)&&i.push(n);for(;e.length>o;)k(r,n=e[o++])&&(~q(i,n)||i.push(n));return i},Y="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Q=Object.keys||function(t){return V(t,Y)},X=p?Object.defineProperties:function(t,e){g(t);for(var n,r=Q(e),o=r.length,i=0;i<o;)b.f(t,n=r[i++],e[n]);return t},Z=d.document,$=Z&&Z.documentElement,tt=K("IE_PROTO"),et=function(){},nt="prototype",rt=function(){var t,e=f("iframe"),n=Y.length;for(e.style.display="none",$.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),rt=t.F;n--;)delete rt[nt][Y[n]];return rt()},ot=Object.create||function(t,e){var n;return null!==t?(et[nt]=g(t),n=new et,et[nt]=null,n[tt]=t):n=rt(),void 0===e?n:X(n,e)},it=o(function(t){var e=B("wks"),n=d.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:z)("Symbol."+t))}).store=e}),ut=b.f,at=it("toStringTag"),ct=function(t,e,n){t&&!k(t=n?t:t.prototype,at)&&ut(t,at,{configurable:!0,value:e})},st={};E(st,it("iterator"),function(){return this});var ft,lt=function(t){return Object(a(t))},ht=K("IE_PROTO"),pt=Object.prototype,vt=Object.getPrototypeOf||function(t){return t=lt(t),k(t,ht)?t[ht]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?pt:null},dt=it("iterator"),yt=!([].keys&&"next"in[].keys()),gt="values",mt=function(){return this},_t=function(t,e,n,r,o,i,u){var a,c,s;c=e,s=r,(a=n).prototype=ot(st,{next:O(1,s)}),ct(a,c+" Iterator");var f,l,h,p=function(t){if(!yt&&t in g)return g[t];switch(t){case"keys":case gt:return function(){return new n(this,t)}}return function(){return new n(this,t)}},v=e+" Iterator",d=o==gt,y=!1,g=t.prototype,m=g[dt]||g["@@iterator"]||o&&g[o],_=m||p(o),w=o?d?p("entries"):_:void 0,b="Array"==e&&g.entries||m;if(b&&(h=vt(b.call(new t)))!==Object.prototype&&h.next&&ct(h,v,!0),d&&m&&m.name!==gt&&(y=!0,_=function(){return m.call(this)}),u&&(yt||y||!g[dt])&&E(g,dt,_),M[e]=_,M[v]=mt,o)if(f={values:d?_:p(gt),keys:i?_:p("keys"),entries:w},u)for(l in f)l in g||L(g,l,f[l]);else T(T.P+T.F*(yt||y),e,f);return f},wt=(ft=!0,function(t,e){var n,r,o=String(a(t)),i=s(e),u=o.length;return i<0||u<=i?ft?"":void 0:(n=o.charCodeAt(i))<55296||56319<n||i+1===u||(r=o.charCodeAt(i+1))<56320||57343<r?ft?o.charAt(i):n:ft?o.slice(i,i+2):r-56320+(n-55296<<10)+65536});_t(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=wt(e,n),this._i+=t.length,{value:t,done:!1})});var bt=function(t,e){return{value:e,done:!!t}};_t(Array,"Array",function(t,e){this._t=R(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,bt(1)):bt(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values");M.Arguments=M.Array;for(var Ot=it("toStringTag"),Et="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(","),xt=0;xt<Et.length;xt++){var kt=Et[xt],St=d[kt],jt=St&&St.prototype;jt&&!jt[Ot]&&E(jt,Ot,kt),M[kt]=M.Array}var Pt,Tt,Lt,Mt=it("toStringTag"),At="Arguments"==N(function(){return arguments}()),Nt=function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Mt))?n:At?N(e):"Object"==(r=N(e))&&"function"==typeof e.callee?"Arguments":r},Ft=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t},Rt=function(e,t,n,r){try{return r?t(g(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&g(o.call(e)),t}},Ct=it("iterator"),It=Array.prototype,Dt=it("iterator"),Gt=y.getIteratorMethod=function(t){if(null!=t)return t[Dt]||t["@@iterator"]||M[Nt(t)]},Bt=o(function(t){var p={},v={},e=t.exports=function(t,e,n,r,o){var i,u,a,c,s,f=o?function(){return t}:Gt(t),l=_(n,r,e?2:1),h=0;if("function"!=typeof f)throw TypeError(t+" is not iterable!");if(void 0===(s=f)||M.Array!==s&&It[Ct]!==s){for(a=f.call(t);!(u=a.next()).done;)if((c=Rt(a,l,u.value,e))===p||c===v)return c}else for(i=I(t.length);h<i;h++)if((c=e?l(g(u=t[h])[0],u[1]):l(t[h]))===p||c===v)return c};e.BREAK=p,e.RETURN=v}),Wt=it("species"),Jt=function(t,e){var n,r=g(t).constructor;return void 0===r||null==(n=g(r)[Wt])?e:u(n)},zt=d.process,Ht=d.setImmediate,Kt=d.clearImmediate,qt=d.MessageChannel,Ut=d.Dispatch,Vt=0,Yt={},Qt="onreadystatechange",Xt=function(){var t=+this;if(Yt.hasOwnProperty(t)){var e=Yt[t];delete Yt[t],e()}},Zt=function(t){Xt.call(t.data)};Ht&&Kt||(Ht=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Yt[++Vt]=function(){!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])}t.apply(n,e)}("function"==typeof t?t:Function(t),e)},Pt(Vt),Vt},Kt=function(t){delete Yt[t]},"process"==N(zt)?Pt=function(t){zt.nextTick(_(Xt,t,1))}:Ut&&Ut.now?Pt=function(t){Ut.now(_(Xt,t,1))}:qt?(Lt=(Tt=new qt).port2,Tt.port1.onmessage=Zt,Pt=_(Lt.postMessage,Lt,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(Pt=function(t){d.postMessage(t+"","*")},d.addEventListener("message",Zt,!1)):Pt=Qt in f("script")?function(t){$.appendChild(f("script"))[Qt]=function(){$.removeChild(this),Xt.call(t)}}:function(t){setTimeout(_(Xt,t,1),0)});var $t={set:Ht,clear:Kt},te=$t.set,ee=d.MutationObserver||d.WebKitMutationObserver,ne=d.process,re=d.Promise,oe="process"==N(ne);function ie(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=u(n),this.reject=u(r)}var ue={f:function(t){return new ie(t)}},ae=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},ce=d.navigator,se=ce&&ce.userAgent||"",fe=function(t,e){if(g(t),l(e)&&e.constructor===t)return e;var n=ue.f(t);return(0,n.resolve)(e),n.promise},le=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:E(t,r,e[r]);return t},he=it("species"),pe=function(t){var e="function"==typeof y[t]?y[t]:d[t];p&&e&&!e[he]&&b.f(e,he,{configurable:!0,get:function(){return this}})},ve=it("iterator"),de=!1;try{[7][ve]().return=function(){de=!0}}catch(t){}var ye,ge,me,_e,we=$t.set,be=function(){var n,r,o,t=function(){var t,e;for(oe&&(t=ne.domain)&&t.exit();n;){e=n.fn,n=n.next;try{e()}catch(t){throw n?o():r=void 0,t}}r=void 0,t&&t.enter()};if(oe)o=function(){ne.nextTick(t)};else if(!ee||d.navigator&&d.navigator.standalone)if(re&&re.resolve){var e=re.resolve(void 0);o=function(){e.then(t)}}else o=function(){te.call(d,t)};else{var i=!0,u=document.createTextNode("");new ee(t).observe(u,{characterData:!0}),o=function(){u.data=i=!i}}return function(t){var e={fn:t,next:void 0};r&&(r.next=e),n||(n=e,o()),r=e}}(),Oe="Promise",Ee=d.TypeError,xe=d.process,ke=xe&&xe.versions,Se=ke&&ke.v8||"",je=d[Oe],Pe="process"==Nt(xe),Te=function(){},Le=ge=ue.f,Me=!!function(){try{var t=je.resolve(1),e=(t.constructor={})[it("species")]=function(t){t(Te,Te)};return(Pe||"function"==typeof PromiseRejectionEvent)&&t.then(Te)instanceof e&&0!==Se.indexOf("6.6")&&-1===se.indexOf("Chrome/66")}catch(t){}}(),Ae=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},Ne=function(f,n){if(!f._n){f._n=!0;var r=f._c;be(function(){for(var c=f._v,s=1==f._s,t=0,e=function(t){var e,n,r,o=s?t.ok:t.fail,i=t.resolve,u=t.reject,a=t.domain;try{o?(s||(2==f._h&&Ce(f),f._h=1),!0===o?e=c:(a&&a.enter(),e=o(c),a&&(a.exit(),r=!0)),e===t.promise?u(Ee("Promise-chain cycle")):(n=Ae(e))?n.call(e,i,u):i(e)):u(c)}catch(t){a&&!r&&a.exit(),u(t)}};r.length>t;)e(r[t++]);f._c=[],f._n=!1,n&&!f._h&&Fe(f)})}},Fe=function(i){we.call(d,function(){var t,e,n,r=i._v,o=Re(i);if(o&&(t=ae(function(){Pe?xe.emit("unhandledRejection",r,i):(e=d.onunhandledrejection)?e({promise:i,reason:r}):(n=d.console)&&n.error&&n.error("Unhandled promise rejection",r)}),i._h=Pe||Re(i)?2:1),i._a=void 0,o&&t.e)throw t.v})},Re=function(t){return 1!==t._h&&0===(t._a||t._c).length},Ce=function(e){we.call(d,function(){var t;Pe?xe.emit("rejectionHandled",e):(t=d.onrejectionhandled)&&t({promise:e,reason:e._v})})},Ie=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()),Ne(e,!0))},De=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw Ee("Promise can't be resolved itself");(n=Ae(t))?be(function(){var e={_w:r,_d:!1};try{n.call(t,_(De,e,1),_(Ie,e,1))}catch(t){Ie.call(e,t)}}):(r._v=t,r._s=1,Ne(r,!1))}catch(t){Ie.call({_w:r,_d:!1},t)}}};Me||(je=function(t){Ft(this,je,Oe,"_h"),u(t),ye.call(this);try{t(_(De,this,1),_(Ie,this,1))}catch(t){Ie.call(this,t)}},(ye=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=le(je.prototype,{then:function(t,e){var n=Le(Jt(this,je));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=Pe?xe.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Ne(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),me=function(){var t=new ye;this.promise=t,this.resolve=_(De,t,1),this.reject=_(Ie,t,1)},ue.f=Le=function(t){return t===je||t===_e?new me(t):ge(t)}),T(T.G+T.W+T.F*!Me,{Promise:je}),ct(je,Oe),pe(Oe),_e=y[Oe],T(T.S+T.F*!Me,Oe,{reject:function(t){var e=Le(this);return(0,e.reject)(t),e.promise}}),T(T.S+!0*T.F,Oe,{resolve:function(t){return fe(this===_e?je:this,t)}}),T(T.S+T.F*!(Me&&function(t,e){if(!e&&!de)return!1;var n=!1;try{var r=[7],o=r[ve]();o.next=function(){return{done:n=!0}},r[ve]=function(){return o},t(r)}catch(t){}return n}(function(t){je.all(t).catch(Te)})),Oe,{all:function(t){var u=this,e=Le(u),a=e.resolve,c=e.reject,n=ae(function(){var r=[],o=0,i=1;Bt(t,!1,function(t){var e=o++,n=!1;r.push(void 0),i++,u.resolve(t).then(function(t){n||(n=!0,r[e]=t,--i||a(r))},c)}),--i||a(r)});return n.e&&c(n.v),e.promise},race:function(t){var e=this,n=Le(e),r=n.reject,o=ae(function(){Bt(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}}),T(T.P+T.R,"Promise",{finally:function(e){var n=Jt(this,y.Promise||d.Promise),t="function"==typeof e;return this.then(t?function(t){return fe(n,e()).then(function(){return t})}:e,t?function(t){return fe(n,e()).then(function(){throw t})}:e)}}),T(T.S,"Promise",{try:function(t){var e=ue.f(this),n=ae(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}});var Ge,Be=y.Promise,We={f:{}.propertyIsEnumerable},Je=We.f,ze=(Ge=!1,function(t){for(var e,n=R(t),r=Q(n),o=r.length,i=0,u=[];i<o;)Je.call(n,e=r[i++])&&u.push(Ge?[e,n[e]]:n[e]);return u});T(T.S,"Object",{values:function(t){return ze(t)}});var He=y.Object.values,Ke=o(function(M){!function(t){var c,e=Object.prototype,s=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag",u=t.regeneratorRuntime;if(u)M.exports=u;else{(u=t.regeneratorRuntime=M.exports).wrap=m;var l="suspendedStart",h="suspendedYield",p="executing",v="completed",d={},a={};a[o]=function(){return this};var f=Object.getPrototypeOf,y=f&&f(f(T([])));y&&y!==e&&s.call(y,o)&&(a=y);var g=O.prototype=w.prototype=Object.create(a);b.prototype=g.constructor=O,O.constructor=b,O[i]=b.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,i in t||(t[i]="GeneratorFunction")),t.prototype=Object.create(g),t},u.awrap=function(t){return{__await:t}},E(x.prototype),x.prototype[r]=function(){return this},u.AsyncIterator=x,u.async=function(t,e,n,r){var o=new x(m(t,e,n,r));return u.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},E(g),g[i]="Generator",g[o]=function(){return this},g.toString=function(){return"[object Generator]"},u.keys=function(n){var r=[];for(var t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},u.values=T,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return i.type="throw",i.arg=n,r.next=t,e&&(r.method="next",r.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var u=s.call(o,"catchLoc"),a=s.call(o,"finallyLoc");if(u&&a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},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;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=c),d}}}function m(t,e,n,r){var i,u,a,c,o=e&&e.prototype instanceof w?e:w,s=Object.create(o.prototype),f=new P(r||[]);return s._invoke=(i=t,u=n,a=f,c=l,function(t,e){if(c===p)throw new Error("Generator is already running");if(c===v){if("throw"===t)throw e;return L()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){var r=k(n,a);if(r){if(r===d)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(c===l)throw c=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);c=p;var o=_(i,u,a);if("normal"===o.type){if(c=a.done?v:h,o.arg===d)continue;return{value:o.arg,done:a.done}}"throw"===o.type&&(c=v,a.method="throw",a.arg=o.arg)}}),s}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function w(){}function b(){}function O(){}function E(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function x(c){var e;this._invoke=function(n,r){function t(){return new Promise(function(t,e){!function e(t,n,r,o){var i=_(c[t],c,n);if("throw"!==i.type){var u=i.arg,a=u.value;return a&&"object"==typeof a&&s.call(a,"__await")?Promise.resolve(a.__await).then(function(t){e("next",t,r,o)},function(t){e("throw",t,r,o)}):Promise.resolve(a).then(function(t){u.value=t,r(u)},o)}o(i.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function k(t,e){var n=t.iterator[e.method];if(n===c){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=c,k(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=_(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=c),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(s.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=c,t.done=!0,t};return r.next=r}}return{next:L}}function L(){return{value:c,done:!0}}}(function(){return this}()||Function("return this")())}),qe=function(){return this}()||Function("return this")(),Ue=qe.regeneratorRuntime&&0<=Object.getOwnPropertyNames(qe).indexOf("regeneratorRuntime"),Ve=Ue&&qe.regeneratorRuntime;qe.regeneratorRuntime=void 0;var Ye=Ke;if(Ue)qe.regeneratorRuntime=Ve;else try{delete qe.regeneratorRuntime}catch(t){qe.regeneratorRuntime=void 0}var Qe=Ye;var Xe=function(r){return function(){var t=this,n=arguments;return new Be(function(o,i){var u=r.apply(t,n);function e(t,e){try{var n=u[t](e),r=n.value}catch(t){return void i(t)}n.done?o(r):Be.resolve(r).then(a,c)}function a(t){e("next",t)}function c(t){e("throw",t)}a()})}};var Ze=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};T(T.S+T.F*!p,"Object",{defineProperty:b.f});var $e=y.Object,tn=function(t,e,n){return $e.defineProperty(t,e,n)};function en(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),tn(t,r.key,r)}}var nn=function(t,e,n){return e&&en(t.prototype,e),n&&en(t,n),t},rn={f:it},on=rn.f("iterator"),un=o(function(t){var n=z("meta"),e=b.f,r=0,o=Object.isExtensible||function(){return!0},i=!h(function(){return o(Object.preventExtensions({}))}),u=function(t){e(t,n,{value:{i:"O"+ ++r,w:{}}})},a=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!l(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!k(t,n)){if(!o(t))return"F";if(!e)return"E";u(t)}return t[n].i},getWeak:function(t,e){if(!k(t,n)){if(!o(t))return!0;if(!e)return!1;u(t)}return t[n].w},onFreeze:function(t){return i&&a.NEED&&o(t)&&!k(t,n)&&u(t),t}}}),an=(un.KEY,un.NEED,un.fastKey,un.getWeak,un.onFreeze,b.f),cn=function(t){var e=y.Symbol||(y.Symbol={});"_"==t.charAt(0)||t in e||an(e,t,{value:rn.f(t)})},sn={f:Object.getOwnPropertySymbols},fn=Array.isArray||function(t){return"Array"==N(t)},ln=Y.concat("length","prototype"),hn={f:Object.getOwnPropertyNames||function(t){return V(t,ln)}},pn=hn.f,vn={}.toString,dn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yn={f:function(t){return dn&&"[object Window]"==vn.call(t)?function(t){try{return pn(t)}catch(t){return dn.slice()}}(t):pn(R(t))}},gn=Object.getOwnPropertyDescriptor,mn={f:p?gn:function(t,e){if(t=R(t),e=m(e,!0),v)try{return gn(t,e)}catch(t){}if(k(t,e))return O(!We.f.call(t,e),t[e])}},_n=un.KEY,wn=mn.f,bn=b.f,On=yn.f,En=d.Symbol,xn=d.JSON,kn=xn&&xn.stringify,Sn="prototype",jn=it("_hidden"),Pn=it("toPrimitive"),Tn={}.propertyIsEnumerable,Ln=B("symbol-registry"),Mn=B("symbols"),An=B("op-symbols"),Nn=Object[Sn],Fn="function"==typeof En,Rn=d.QObject,Cn=!Rn||!Rn[Sn]||!Rn[Sn].findChild,In=p&&h(function(){return 7!=ot(bn({},"a",{get:function(){return bn(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=wn(Nn,e);r&&delete Nn[e],bn(t,e,n),r&&t!==Nn&&bn(Nn,e,r)}:bn,Dn=function(t){var e=Mn[t]=ot(En[Sn]);return e._k=t,e},Gn=Fn&&"symbol"==typeof En.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof En},Bn=function(t,e,n){return t===Nn&&Bn(An,e,n),g(t),e=m(e,!0),g(n),k(Mn,e)?(n.enumerable?(k(t,jn)&&t[jn][e]&&(t[jn][e]=!1),n=ot(n,{enumerable:O(0,!1)})):(k(t,jn)||bn(t,jn,O(1,{})),t[jn][e]=!0),In(t,e,n)):bn(t,e,n)},Wn=function(t,e){g(t);for(var n,r=function(t){var e=Q(t),n=sn.f;if(n)for(var r,o=n(t),i=We.f,u=0;o.length>u;)i.call(t,r=o[u++])&&e.push(r);return e}(e=R(e)),o=0,i=r.length;o<i;)Bn(t,n=r[o++],e[n]);return t},Jn=function(t){var e=Tn.call(this,t=m(t,!0));return!(this===Nn&&k(Mn,t)&&!k(An,t))&&(!(e||!k(this,t)||!k(Mn,t)||k(this,jn)&&this[jn][t])||e)},zn=function(t,e){if(t=R(t),e=m(e,!0),t!==Nn||!k(Mn,e)||k(An,e)){var n=wn(t,e);return!n||!k(Mn,e)||k(t,jn)&&t[jn][e]||(n.enumerable=!0),n}},Hn=function(t){for(var e,n=On(R(t)),r=[],o=0;n.length>o;)k(Mn,e=n[o++])||e==jn||e==_n||r.push(e);return r},Kn=function(t){for(var e,n=t===Nn,r=On(n?An:R(t)),o=[],i=0;r.length>i;)!k(Mn,e=r[i++])||n&&!k(Nn,e)||o.push(Mn[e]);return o};Fn||(L((En=function(){if(this instanceof En)throw TypeError("Symbol is not a constructor!");var e=z(0<arguments.length?arguments[0]:void 0),n=function(t){this===Nn&&n.call(An,t),k(this,jn)&&k(this[jn],e)&&(this[jn][e]=!1),In(this,e,O(1,t))};return p&&Cn&&In(Nn,e,{configurable:!0,set:n}),Dn(e)})[Sn],"toString",function(){return this._k}),mn.f=zn,b.f=Bn,hn.f=yn.f=Hn,We.f=Jn,sn.f=Kn,rn.f=function(t){return Dn(it(t))}),T(T.G+T.W+T.F*!Fn,{Symbol:En});for(var qn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Un=0;qn.length>Un;)it(qn[Un++]);for(var Vn=Q(it.store),Yn=0;Vn.length>Yn;)cn(Vn[Yn++]);T(T.S+T.F*!Fn,"Symbol",{for:function(t){return k(Ln,t+="")?Ln[t]:Ln[t]=En(t)},keyFor:function(t){if(!Gn(t))throw TypeError(t+" is not a symbol!");for(var e in Ln)if(Ln[e]===t)return e},useSetter:function(){Cn=!0},useSimple:function(){Cn=!1}}),T(T.S+T.F*!Fn,"Object",{create:function(t,e){return void 0===e?ot(t):Wn(ot(t),e)},defineProperty:Bn,defineProperties:Wn,getOwnPropertyDescriptor:zn,getOwnPropertyNames:Hn,getOwnPropertySymbols:Kn}),xn&&T(T.S+T.F*(!Fn||h(function(){var t=En();return"[null]"!=kn([t])||"{}"!=kn({a:t})||"{}"!=kn(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],(l(e)||void 0!==t)&&!Gn(t))return fn(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Gn(e))return e}),r[1]=e,kn.apply(xn,r)}}),En[Sn][Pn]||E(En[Sn],Pn,En[Sn].valueOf),ct(En,"Symbol"),ct(Math,"Math",!0),ct(d.JSON,"JSON",!0),cn("asyncIterator"),cn("observable");var Qn=y.Symbol,Xn=o(function(e){function n(t){return(n="function"==typeof Qn&&"symbol"==typeof on?function(t){return typeof t}:function(t){return t&&"function"==typeof Qn&&t.constructor===Qn&&t!==Qn.prototype?"symbol":typeof t})(t)}function r(t){return"function"==typeof Qn&&"symbol"===n(on)?e.exports=r=function(t){return n(t)}:e.exports=r=function(t){return t&&"function"==typeof Qn&&t.constructor===Qn&&t!==Qn.prototype?"symbol":n(t)},r(t)}e.exports=r});var Zn=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var $n=function(t,e){return!e||"object"!==Xn(e)&&"function"!=typeof e?Zn(t):e},tr=function(t,e){var n=(y.Object||{})[t]||Object[t],r={};r[t]=e(n),T(T.S+T.F*h(function(){n(1)}),"Object",r)};tr("getPrototypeOf",function(){return function(t){return vt(lt(t))}});var er=y.Object.getPrototypeOf,nr=function(t,e){if(g(t),!l(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},rr={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=_(Function.call,mn.f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return nr(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:nr};T(T.S,"Object",{setPrototypeOf:rr.set});var or=y.Object.setPrototypeOf,ir=o(function(e){function n(t){return e.exports=n=or?er:function(t){return t.__proto__||er(t)},n(t)}e.exports=n});T(T.S,"Object",{create:ot});var ur=y.Object,ar=function(t,e){return ur.create(t,e)},cr=o(function(n){function r(t,e){return n.exports=r=or||function(t,e){return t.__proto__=e,t},r(t,e)}n.exports=r});var sr,fr=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=ar(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cr(t,e)},lr=function(t,e){if(!l(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t},hr=b.f,pr=un.fastKey,vr=p?"_s":"size",dr=function(t,e){var n,r=pr(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n},yr={getConstructor:function(t,i,n,r){var o=t(function(t,e){Ft(t,o,i,"_i"),t._t=i,t._i=ot(null),t._f=void 0,t._l=void 0,t[vr]=0,null!=e&&Bt(e,n,t[r],t)});return le(o.prototype,{clear:function(){for(var t=lr(this,i),e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[vr]=0},delete:function(t){var e=lr(this,i),n=dr(e,t);if(n){var r=n.n,o=n.p;delete e._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),e._f==n&&(e._f=r),e._l==n&&(e._l=o),e[vr]--}return!!n},forEach:function(t){lr(this,i);for(var e,n=_(t,1<arguments.length?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!dr(lr(this,i),t)}}),p&&hr(o.prototype,"size",{get:function(){return lr(this,i)[vr]}}),o},def:function(t,e,n){var r,o,i=dr(t,e);return i?i.v=n:(t._l=i={i:o=pr(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[vr]++,"F"!==o&&(t._i[o]=i)),t},getEntry:dr,setStrong:function(t,n,e){_t(t,n,function(t,e){this._t=lr(t,n),this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?bt(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,bt(1))},e?"entries":"values",!e,!0),pe(n)}},gr=it("species"),mr=function(t,e){return fn(n=t)&&("function"!=typeof(r=n.constructor)||r!==Array&&!fn(r.prototype)||(r=void 0),l(r)&&null===(r=r[gr])&&(r=void 0)),new(void 0===r?Array:r)(e);var n,r},_r=function(l,t){var h=1==l,p=2==l,v=3==l,d=4==l,y=6==l,g=5==l||y,m=t||mr;return function(t,e,n){for(var r,o,i=lt(t),u=F(i),a=_(e,n,3),c=I(u.length),s=0,f=h?m(t,c):p?m(t,0):void 0;s<c;s++)if((g||s in u)&&(o=a(r=u[s],s,i),l))if(h)f[s]=o;else if(o)switch(l){case 3:return!0;case 5:return r;case 6:return s;case 2:f.push(r)}else if(d)return!1;return y?-1:v||d?d:f}},wr=b.f,br=_r(0),Or=function(n,t,e,r,o,i){var u=d[n],a=u,c=o?"set":"add",s=a&&a.prototype,f={};return p&&"function"==typeof a&&(i||s.forEach&&!h(function(){(new a).entries().next()}))?(a=t(function(t,e){Ft(t,a,n,"_c"),t._c=new u,null!=e&&Bt(e,o,t[c],t)}),br("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(r){var o="add"==r||"set"==r;r in s&&(!i||"clear"!=r)&&E(a.prototype,r,function(t,e){if(Ft(this,a,r),!o&&i&&!l(t))return"get"==r&&void 0;var n=this._c[r](0===t?0:t,e);return o?this:n})}),i||wr(a.prototype,"size",{get:function(){return this._c.size}})):(a=r.getConstructor(t,n,o,c),le(a.prototype,e),un.NEED=!0),ct(a,n),f[n]=a,T(T.G+T.W+T.F,f),i||r.setStrong(a,n,o),a};Or("Map",function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},{get:function(t){var e=yr.getEntry(lr(this,"Map"),t);return e&&e.v},set:function(t,e){return yr.def(lr(this,"Map"),0===t?0:t,e)}},yr,!0);T(T.P+T.R,"Map",{toJSON:(sr="Map",function(){if(Nt(this)!=sr)throw TypeError(sr+"#toJSON isn't generic");return Bt(this,!(e=[]),e.push,e,t),e;var t,e})});var Er=function(t){T(T.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})};Er("Map");var xr=function(t){T(T.S,t,{from:function(t){var e,n,r,o,i=arguments[1];return u(this),(e=void 0!==i)&&u(i),null==t?new this:(n=[],e?(r=0,o=_(i,arguments[2],2),Bt(t,!1,function(t){n.push(o(t,r++))})):Bt(t,!1,n.push,n),new this(n))}})};xr("Map");var kr=y.Map,Sr=mn.f;tr("getOwnPropertyDescriptor",function(){return function(t,e){return Sr(R(t),e)}});var jr=y.Object,Pr=function(t,e){return jr.getOwnPropertyDescriptor(t,e)};tr("keys",function(){return function(t){return Q(lt(t))}});var Tr=y.Object.keys,Lr=Object.assign,Mr=!Lr||h(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=Lr({},t)[n]||Object.keys(Lr({},e)).join("")!=r})?function(t,e){for(var n=lt(t),r=arguments.length,o=1,i=sn.f,u=We.f;o<r;)for(var a,c=F(arguments[o++]),s=i?Q(c).concat(i(c)):Q(c),f=s.length,l=0;l<f;)u.call(c,a=s[l++])&&(n[a]=c[a]);return n}:Lr,Ar=un.getWeak,Nr=_r(5),Fr=_r(6),Rr=0,Cr=function(t){return t._l||(t._l=new Ir)},Ir=function(){this.a=[]},Dr=function(t,e){return Nr(t.a,function(t){return t[0]===e})};Ir.prototype={get:function(t){var e=Dr(this,t);if(e)return e[1]},has:function(t){return!!Dr(this,t)},set:function(t,e){var n=Dr(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(e){var t=Fr(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}};var Gr={getConstructor:function(t,n,r,o){var i=t(function(t,e){Ft(t,i,n,"_i"),t._t=n,t._i=Rr++,t._l=void 0,null!=e&&Bt(e,r,t[o],t)});return le(i.prototype,{delete:function(t){if(!l(t))return!1;var e=Ar(t);return!0===e?Cr(lr(this,n)).delete(t):e&&k(e,this._i)&&delete e[this._i]},has:function(t){if(!l(t))return!1;var e=Ar(t);return!0===e?Cr(lr(this,n)).has(t):e&&k(e,this._i)}}),i},def:function(t,e,n){var r=Ar(g(e),!0);return!0===r?Cr(t).set(e,n):r[t._i]=n,t},ufstore:Cr};o(function(t){var i,e=_r(0),n="WeakMap",r=un.getWeak,u=Object.isExtensible,o=Gr.ufstore,a={},c=function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},s={get:function(t){if(l(t)){var e=r(t);return!0===e?o(lr(this,n)).get(t):e?e[this._i]:void 0}},set:function(t,e){return Gr.def(lr(this,n),t,e)}},f=t.exports=Or(n,c,s,Gr,!0,!0);h(function(){return 7!=(new f).set((Object.freeze||Object)(a),7).get(a)})&&(i=Gr.getConstructor(c,n),Mr(i.prototype,s),un.NEED=!0,e(["delete","has","get","set"],function(r){var t=f.prototype,o=t[r];L(t,r,function(t,e){if(l(t)&&!u(t)){this._f||(this._f=new i);var n=this._f[r](t,e);return"set"==r?this:n}return o.call(this,t,e)})}))});Er("WeakMap"),xr("WeakMap");var Br,Wr=y.WeakMap,Jr=o(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=new Wr,n=new Wr;function f(t){var e=i.get(t);return console.assert(null!=e,"'this' is expected an Event object, but got",t),e}function r(t,e){i.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var n=Tr(e),r=0;r<n.length;++r){var o=n[r];o in this||tn(this,o,a(o))}}function a(e){return{get:function(){return f(this).event[e]},set:function(t){f(this).event[e]=t},configurable:!0,enumerable:!0}}function c(e){return{value:function(){var t=f(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function l(t){if(null==t||t===Object.prototype)return r;var e=n.get(t);return null==e&&(e=function(n,t){var e=Tr(t);if(0===e.length)return n;function r(t,e){n.call(this,t,e)}r.prototype=ar(n.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(var o=0;o<e.length;++o){var i=e[o];if(!(i in n.prototype)){var u="function"==typeof Pr(t,i).value;tn(r.prototype,i,u?c(i):a(i))}}return r}(l(er(t)),t),n.set(t,e)),e}function h(t,e){f(t).passiveListener=e}r.prototype={get type(){return f(this).event.type},get target(){return f(this).eventTarget},get currentTarget(){return f(this).currentTarget},composedPath:function(){var t=f(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 f(this).eventPhase},stopPropagation:function(){var t=f(this);"function"==typeof t.event.stopPropagation&&t.event.stopPropagation()},stopImmediatePropagation:function(){var t=f(this);t.stopped=!0,"function"==typeof t.event.stopImmediatePropagation&&t.event.stopImmediatePropagation()},get bubbles(){return Boolean(f(this).event.bubbles)},get cancelable(){return Boolean(f(this).event.cancelable)},preventDefault:function(){var t=f(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 f(this).canceled},get composed(){return Boolean(f(this).event.composed)},get timeStamp(){return f(this).timeStamp}},Object.defineProperty(r.prototype,"constructor",{value:r,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(or(r.prototype,window.Event.prototype),n.set(window.Event.prototype,r));var o=new Wr,p=3;function s(t){return null!==t&&"object"===Xn(t)}function v(t){var e=o.get(t);if(null==e)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function u(t,e){var i;Object.defineProperty(t,"on".concat(e),(i=e,{get:function(){for(var t=v(this).get(i);null!=t;){if(t.listenerType===p)return t.listener;t=t.next}return null},set:function(t){"function"==typeof t||s(t)||(t=null);for(var e=v(this),n=null,r=e.get(i);null!=r;)r.listenerType===p?null!==n?n.next=r.next:null!==r.next?e.set(i,r.next):e.delete(i):n=r,r=r.next;if(null!==t){var o={listener:t,listenerType:p,passive:!1,once:!1,next:null};null===n?e.set(i,o):n.next=o}},configurable:!0,enumerable:!0}))}function d(t){function e(){y.call(this)}e.prototype=ar(y.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(var n=0;n<t.length;++n)u(e.prototype,t[n]);return e}function y(){if(!(this instanceof y)){if(1===arguments.length&&Array.isArray(arguments[0]))return d(arguments[0]);if(0<arguments.length){for(var t=new Array(arguments.length),e=0;e<arguments.length;++e)t[e]=arguments[e];return d(t)}throw new TypeError("Cannot call a class as a function")}o.set(this,new kr)}y.prototype={addEventListener:function(t,e,n){if(null==e)return!1;if("function"!=typeof e&&!s(e))throw new TypeError("'listener' should be a function or an object.");var r=v(this),o=s(n),i=(o?Boolean(n.capture):Boolean(n))?1:2,u={listener:e,listenerType:i,passive:o&&Boolean(n.passive),once:o&&Boolean(n.once),next:null},a=r.get(t);if(void 0===a)return r.set(t,u),!0;for(var c=null;null!=a;){if(a.listener===e&&a.listenerType===i)return!1;a=(c=a).next}return c.next=u,!0},removeEventListener:function(t,e,n){if(null==e)return!1;for(var r=v(this),o=(s(n)?Boolean(n.capture):Boolean(n))?1:2,i=null,u=r.get(t);null!=u;){if(u.listener===e&&u.listenerType===o)return null!==i?i.next=u.next:null!==u.next?r.set(t,u.next):r.delete(t),!0;u=(i=u).next}return!1},dispatchEvent:function(t){if(null==t||"string"!=typeof t.type)throw new TypeError('"event.type" should be a string.');var e=v(this),n=t.type,r=e.get(n);if(null==r)return!0;for(var o,i,u,a,c=(o=this,new(l(er(i=t)))(o,i)),s=null;null!=r&&(r.once?null!==s?s.next=r.next:null!==r.next?e.set(n,r.next):e.delete(n):s=r,h(c,r.passive?r.listener:null),"function"==typeof r.listener?r.listener.call(this,c):r.listenerType!==p&&"function"==typeof r.listener.handleEvent&&r.listener.handleEvent(c),!f(c).stopped);)r=r.next;return h(c,null),u=0,f(c).eventPhase=u,a=null,f(c).currentTarget=a,!c.defaultPrevented}},Object.defineProperty(y.prototype,"constructor",{value:y,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&or(y.prototype,window.EventTarget.prototype),e.defineEventAttribute=u,e.EventTarget=y,e.default=y,t.exports=y,t.exports.EventTarget=t.exports.default=y,t.exports.defineEventAttribute=u}),zr=(Br=Jr)&&Br.__esModule&&Object.prototype.hasOwnProperty.call(Br,"default")?Br.default:Br,Hr=(Jr.defineEventAttribute,Jr.EventTarget,r.CustomEvent);var Kr=function(){try{var t=new Hr("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?Hr:"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},qr={},Ur=function(t){function o(t,e,n){var r;return Ze(this,o),(r=$n(this,ir(o).call(this)))._id=t,r._target=e,r._origin=n,r._handlers={},r._sender=null,r._receiver=null,qr[t]=Zn(Zn(r)),r}var e,r;return fr(o,zr),nn(o,null,[{key:"instances",get:function(){return qr}}]),nn(o,[{key:"log",value:function(t){var e=new Kr("log",{detail:{message:t}});this.dispatchEvent(e)}},{key:"setHandler",value:function(t,e){this._handlers[t]=e}},{key:"handle",value:(r=Xe(Qe.mark(function t(e,n,r){return Qe.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=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this._sender._send(t,e,n)}},{key:"_receive",value:(e=Xe(Qe.mark(function t(e){return Qe.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 e.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}}]),o}(),Vr=function(){var n={};return n.promise=new Be(function(t,e){n.resolve=t,n.reject=e}),n},Yr=function(t){return"object"==typeof t?function n(r,o){var i;i=Array.isArray(r)?[]:{};o.push(r);Object.keys(r).forEach(function(t){var e=r[t];"function"!=typeof e&&(e&&"object"==typeof e?-1!==o.indexOf(r[t])?i[t]="[Circular]":i[t]=n(r[t],o.slice(0)):i[t]=e)});"string"==typeof r.name&&(i.name=r.name);"string"==typeof r.message&&(i.message=r.message);"string"==typeof r.stack&&(i.stack=r.stack);return i}(t,[]):"function"==typeof t?"[Function: "+(t.name||"anonymous")+"]":t};var Qr=function(){function e(t){Ze(this,e),this._node=t,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 n,r,o,i;return nn(e,[{key:"init",value:function(){window.addEventListener("message",this._onMessage)}},{key:"dispose",value:function(){window.removeEventListener("message",this._onMessage)}},{key:"_receive",value:(i=Xe(Qe.mark(function t(e){return Qe.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this._dfds.hasOwnProperty(e)||(this._dfds[e]=Vr()),t.abrupt("return",this._dfds[e].promise);case 2:case"end":return t.stop()}},t,this)})),function(t){return i.apply(this,arguments)})},{key:"_onMessage",value:function(t){var e=null;try{e=JSON.parse(t.data)}catch(t){}null!=e&&null!=e.type&&this._commands.hasOwnProperty(e.type)&&null!=e.from&&null!=e.id&&null!=e.payload&&this._commands[e.type](e,t.source)}},{key:"_handleConnect",value:(o=Xe(Qe.mark(function t(e,n){var r,o,i,u;return Qe.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e.id,o=e.from,(i=this._node._accept(o,n))._send("response",r),u=new Kr("connect",{detail:{slave:i}}),this._node.dispatchEvent(u);case 5:case"end":return t.stop()}},t,this)})),function(t,e){return o.apply(this,arguments)})},{key:"_handleRequest",value:(r=Xe(Qe.mark(function t(e){var n,r,o,i,u,a,c,s;return Qe.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.id,r=e.from,o=e.payload,i=o.type,u=o.args,Ur.instances.hasOwnProperty(r)){t.next=3;break}return t.abrupt("return");case 3:return a=Ur.instances[r],s=c=null,t.prev=6,t.next=9,this._node.handle(i,u,a);case 9:c=t.sent,t.next=16;break;case 12:t.prev=12,t.t0=t.catch(6),s={message:""+t.t0};try{s=Yr(t.t0)}catch(t){}case 16:return t.prev=16,a._send("response",n,{error:s,result:c}),t.finish(16);case 19:case"end":return t.stop()}},t,this,[[6,12,16,19]])})),function(t){return r.apply(this,arguments)})},{key:"_handleResponse",value:(n=Xe(Qe.mark(function t(e){var n,r,o,i,u,a,c,s;return Qe.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.id,e.from,r=e.payload,o=r.error,i=r.result,this._dfds.hasOwnProperty(n)){t.next=3;break}return t.abrupt("return");case 3:u=this._dfds[n],a=u.resolve,c=u.reject,delete this._dfds[n],null!=o?(s=new Error(o.message),["name","stack"].forEach(function(t){var e=o[t];try{tn(s,t,{configurable:!0,enumerable:!1,value:e,writable:!0})}catch(t){}}),c(s)):a(i);case 6:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})}]),e}(),Xr=y.JSON||(y.JSON={stringify:JSON.stringify}),Zr=function(t){return Xr.stringify.apply(Xr,arguments)},$r=0,to=function(){function e(t){Ze(this,e),this._node=t,this._id=$r++,this._msgId=0}var n,r,t;return nn(e,[{key:"init",value:(t=Xe(Qe.mark(function t(){return Qe.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 t.apply(this,arguments)})},{key:"send",value:(r=Xe(Qe.mark(function t(e,n){return Qe.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 r.apply(this,arguments)})},{key:"_sendAndReceive",value:(n=Xe(Qe.mark(function t(e){var n,r,o,i,u=arguments;return Qe.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=1<u.length&&void 0!==u[1]?u[1]:{},r=this._msgId++,o="".concat(this._id,":").concat(r),i=this._node._receive(o),this._send(e,o,n),t.abrupt("return",i);case 6:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"_send",value:function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=this._node,o=r.id,i=r.target,u=r.origin,a=Zr({type:t,from:o,id:e,payload:n});i.postMessage(a,u)}}]),e}(),eo=function(t){function o(t,e,n){var r;return Ze(this,o),(r=$n(this,ir(o).call(this,e,n,"*")))._master=t,r._init(new to(Zn(Zn(r))),t.receiver),r}var e;return fr(o,Ur),nn(o,[{key:"send",value:(e=Xe(Qe.mark(function t(e){var n,r=arguments;return Qe.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=1<r.length&&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 e.apply(this,arguments)})},{key:"toString",value:function(){return"Slave#".concat(this.id)}}]),o}(),no=function(t){function n(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;return Ze(this,n),(t=$n(this,ir(n).call(this,"",e,"*")))._slaves={},t._init(null,new Qr(Zn(Zn(t)))),t}var e;return fr(n,Ur),nn(n,[{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:(e=Xe(Qe.mark(function t(e){var n,r,o,i,u,a=arguments;return Qe.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=1<a.length&&void 0!==a[1]?a[1]:{},r=He(this._slaves),t.next=4,Be.all(r.map(function(t){return t.send(e,n)}));case 4:for(o=t.sent,i={},u=0;u<r.length;++u)i[r[u].id]=o[u];return t.abrupt("return",i);case 8:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"_accept",value:function(t,e){var n=new eo(this,t,e);return this._slaves[t]=n}},{key:"slaves",get:function(){return this._slaves}}]),n}(),ro=function(t){function o(t){var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window.parent,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"*";return Ze(this,o),(e=$n(this,ir(o).call(this,t,n,r)))._init(new to(Zn(Zn(e))),new Qr(Zn(Zn(e)))),e}var e,n;return fr(o,Ur),nn(o,[{key:"init",value:(n=Xe(Qe.mark(function t(){return Qe.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 n.apply(this,arguments)})},{key:"dispose",value:function(){this._receiver.dispose()}},{key:"send",value:(e=Xe(Qe.mark(function t(e){var n,r=arguments;return Qe.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=1<r.length&&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 e.apply(this,arguments)})},{key:"toString",value:function(){return"Slave#".concat(this.id)}}]),o}();return t.Master=no,t.Slave=ro,t}({}); | ||
var burrata=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(63),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(50);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(67);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(61),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(74)),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(78),o=n(75);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(85),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(97),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(59).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(70)),i=r(n(14)),u=r(n(13)),c=r(n(12)),a=r(n(11)),s=0,f=function(){function t(e){(0,c.default)(this,t),this._node=e,this._id=s++,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._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=f},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(45)),f=r(n(72)),l=r(n(71)),p=n(28),h=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,h;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:(h=(0,u.default)(i.default.mark(function t(e){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this._dfds.hasOwnProperty(e)||(this._dfds[e]=(0,f.default)()),t.abrupt("return",this._dfds[e].promise);case 2:case"end":return t.stop()}},t,this)})),function(t){return h.apply(this,arguments)})},{key:"_onMessage",value:function(t){var e=null;try{e=JSON.parse(t.data)}catch(t){}null!=e&&null!=e.type&&this._commands.hasOwnProperty(e.type)&&null!=e.from&&null!=e.id&&null!=e.payload&&this._commands[e.type](e,t.source)}},{key:"_handleConnect",value:(r=(0,u.default)(i.default.mark(function t(e,n){var r,o,u,c;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e.id,o=e.from,(u=this._node._accept(o,n))._send("response",r),c=new s.default("connect",{detail:{slave:u}}),this._node.dispatchEvent(c);case 5:case"end":return t.stop()}},t,this)})),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,p.Node.instances.hasOwnProperty(r)){t.next=3;break}return t.abrupt("return");case 3:return a=p.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,l.default)(t.t0)}catch(t){}case 16:return t.prev=16,a._send("response",n,{error:f,result:s}),t.finish(16);case 19:case"end":return t.stop()}},t,this,[[6,12,16,19]])})),function(t){return n.apply(this,arguments)})},{key:"_handleResponse",value:(e=(0,u.default)(i.default.mark(function t(e){var n,r,u,c,a,s,f,l;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.id,e.from,r=e.payload,u=r.error,c=r.result,this._dfds.hasOwnProperty(n)){t.next=3;break}return t.abrupt("return");case 3:a=this._dfds[n],s=a.resolve,f=a.reject,delete this._dfds[n],null!=u?(l=new Error(u.message),["name","stack"].forEach(function(t){var e=u[t];try{(0,o.default)(l,t,{configurable:!0,enumerable:!1,value:e,writable:!0})}catch(t){}}),f(l)):s(c);case 6:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})}]),t}();e.Receiver=h},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(73))},function(t,e,n){t.exports=n(81)},function(t,e,n){var r=n(22),o=n(26),i=n(8),u=n(39),c=n(9),a=n(63),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(61),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){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(59),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(57),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(62),u=n(10),c=n(16),a=n(127),s=n(23),f=n(58),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,S=P[l]||P["@@iterator"]||d&&P[d],E=S||w(d),k=d?O?w("entries"):E:void 0,T="Array"==e&&P.entries||S;if(T&&(_=f(T.call(new t)))!==Object.prototype&&_.next&&(s(_,x,!0),r||"function"==typeof _[l]||u(_,l,h)),O&&S&&"values"!==S.name&&(j=!0,E=function(){return S.call(this)}),r&&!g||!p&&!j&&P[l]||u(P,l,E),c[e]=E,c[x]=h,d)if(m={values:O?E:w("values"),keys:y?E: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(64)(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(69)},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(76);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){t.exports=n(77)},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(79).set})},function(t,e,n){n(80),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(57),o=n(58);n(82)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){n(83),t.exports=n(0).Object.getPrototypeOf},function(t,e,n){t.exports=n(84)},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(62),a=n(91).KEY,s=n(17),f=n(36),l=n(23),p=n(24),h=n(2),v=n(32),d=n(31),y=n(90),g=n(89),m=n(4),b=n(6),_=n(8),w=n(39),x=n(26),O=n(38),j=n(88),P=n(47),S=n(7),E=n(25),k=P.f,T=S.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,S.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=E(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(92),n(66),n(87),n(86),t.exports=n(0).Symbol},function(t,e,n){t.exports=n(93)},function(t,e,n){n(65),n(56),t.exports=n(32).f("iterator")},function(t,e,n){t.exports=n(95)},function(t,e,n){var r=n(96),o=n(94);function i(t){return(i="function"==typeof o&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t})(t)}function u(e){return"function"==typeof o&&"symbol"===i(r)?t.exports=u=function(t){return i(t)}:t.exports=u=function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":i(t)},u(e)}t.exports=u},function(t,e,n){var r=n(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(S.prototype),S.prototype[c]=function(){return this},f.AsyncIterator=S,f.async=function(t,e,n,r){var o=new S(_(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=E(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 S(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 E(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,E(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(52);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(54),c=n(51);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(53).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(55),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(60),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(55),l=n(3),p=n(6),h=n(27),v=n(118),d=n(117),y=n(54),g=n(53).set,m=n(112)(),b=n(34),_=n(52),w=n(111),x=n(51),O=a.TypeError,j=a.process,P=j&&j.versions,S=P&&P.v8||"",E=a.Promise,k="process"==f(j),T=function(){},L=o=b.f,M=!!function(){try{var t=E.resolve(1),e=(t.constructor={})[n(2)("species")]=function(t){t(T,T)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==S.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||(E=function(t){v(this,E,"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)(E.prototype,{then:function(t,e){var n=L(y(this,E));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===E||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!M,{Promise:E}),n(23)(E,"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?E:this,t)}}),l(l.S+l.F*!(M&&n(108)(function(t){E.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(64)(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(60),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(66),n(65),n(56),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(67)),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){var o;return(0,a.default)(this,e),(o=(0,f.default)(this,(0,l.default)(e).call(this,n,r,"*")))._master=t,o._init(new y.Sender((0,h.default)((0,h.default)(o))),t.receiver),o}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;return(0,a.default)(this,e),(t=(0,f.default)(this,(0,l.default)(e).call(this,"",n,"*")))._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(68)}]); |
{ | ||
"name": "burrata", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Robust, developer-friendly postMessage.", | ||
@@ -22,12 +22,10 @@ "repository": "https://github.com/timdp/burrata", | ||
"scripts": { | ||
"prepublishOnly": "yarn run build", | ||
"prepublishOnly": "yarn test && yarn run clean && yarn run build", | ||
"clean": "yarn run clean:dist && yarn run clean:coverage", | ||
"clean:dist": "yarn run rimraf dist", | ||
"clean:coverage": "yarn run rimraf dist", | ||
"build": "yarn run clean:dist && yarn run build:bundle && yarn run build:minify", | ||
"build:bundle": "yarn run rollup -c", | ||
"build:minify": "yarn run uglifyjs -c -m -o dist/burrata.min.js dist/burrata.js", | ||
"test": "yarn run build && yarn run test:lint && yarn run test:e2e", | ||
"build": "yarn run webpack", | ||
"test": "yarn run test:lint && yarn run test:e2e", | ||
"test:lint": "yarn run standard", | ||
"test:e2e": "yarn run clean:coverage && yarn run karma start --single-run" | ||
"test:e2e": "yarn run clean:coverage && NODE_ENV=test yarn run karma start --single-run" | ||
}, | ||
@@ -63,10 +61,5 @@ "dependencies": { | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.60.7", | ||
"rollup-load-plugins": "^0.3.0", | ||
"rollup-plugin-babel": "^4.0.0-beta.5", | ||
"rollup-plugin-commonjs": "^9.1.3", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"standard": "^11.0.1", | ||
"uglify-js": "^3.4.0", | ||
"webpack": "^4.12.0" | ||
"webpack": "^4.12.0", | ||
"webpack-cli": "^3.0.8" | ||
}, | ||
@@ -73,0 +66,0 @@ "standard": { |
Sorry, the diff of this file is too big to display
297205
24
1949