-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworker.js
2 lines (2 loc) · 51 KB
/
worker.js
1
2
!function i(s,c,a){function u(e,t){if(!c[e]){if(!s[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(f)return f(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var o=c[e]={exports:{}};s[e][0].call(o.exports,function(t){return u(s[e][1][t]||t)},o,o.exports,i,s,c,a)}return c[e].exports}for(var f="function"==typeof require&&require,t=0;t<a.length;t++)u(a[t]);return u}({1:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],2:[function(t,e,r){var n=t("./_wks")("unscopables"),o=Array.prototype;null==o[n]&&t("./_hide")(o,n,{}),e.exports=function(t){o[n][t]=!0}},{"./_hide":28,"./_wks":83}],3:[function(t,e,r){e.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},{}],4:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":35}],5:[function(t,e,r){"use strict";var f=t("./_to-object"),l=t("./_to-absolute-index"),_=t("./_to-length");e.exports=[].copyWithin||function(t,e,r){var n=f(this),o=_(n.length),i=l(t,o),s=l(e,o),c=2<arguments.length?r:void 0,a=Math.min((void 0===c?o:l(c,o))-s,o-i),u=1;for(s<i&&i<s+a&&(u=-1,s+=a-1,i+=a-1);0<a--;)s in n?n[i]=n[s]:delete n[i],i+=u,s+=u;return n}},{"./_to-absolute-index":69,"./_to-length":73,"./_to-object":74}],6:[function(t,e,r){"use strict";var u=t("./_to-object"),f=t("./_to-absolute-index"),l=t("./_to-length");e.exports=function(t,e,r){for(var n=u(this),o=l(n.length),i=arguments.length,s=f(1<i?e:void 0,o),c=2<i?r:void 0,a=void 0===c?o:f(c,o);s<a;)n[s++]=t;return n}},{"./_to-absolute-index":69,"./_to-length":73,"./_to-object":74}],7:[function(t,e,r){var a=t("./_to-iobject"),u=t("./_to-length"),f=t("./_to-absolute-index");e.exports=function(c){return function(t,e,r){var n,o=a(t),i=u(o.length),s=f(r,i);if(c&&e!=e){for(;s<i;)if((n=o[s++])!=n)return!0}else for(;s<i;s++)if((c||s in o)&&o[s]===e)return c||s||0;return!c&&-1}}},{"./_to-absolute-index":69,"./_to-iobject":72,"./_to-length":73}],8:[function(t,e,r){var b=t("./_ctx"),m=t("./_iobject"),j=t("./_to-object"),w=t("./_to-length"),n=t("./_array-species-create");e.exports=function(l,t){var _=1==l,p=2==l,h=3==l,d=4==l,y=6==l,v=5==l||y,g=t||n;return function(t,e,r){for(var n,o,i=j(t),s=m(i),c=b(e,r,3),a=w(s.length),u=0,f=_?g(t,a):p?g(t,0):void 0;u<a;u++)if((v||u in s)&&(o=c(n=s[u],u,i),l))if(_)f[u]=o;else if(o)switch(l){case 3:return!0;case 5:return n;case 6:return u;case 2:f.push(n)}else if(d)return!1;return y?-1:h||d?d:f}}},{"./_array-species-create":10,"./_ctx":15,"./_iobject":32,"./_to-length":73,"./_to-object":74}],9:[function(t,e,r){var n=t("./_is-object"),o=t("./_is-array"),i=t("./_wks")("species");e.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),n(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},{"./_is-array":34,"./_is-object":35,"./_wks":83}],10:[function(t,e,r){var n=t("./_array-species-constructor");e.exports=function(t,e){return new(n(t))(e)}},{"./_array-species-constructor":9}],11:[function(t,e,r){var o=t("./_cof"),i=t("./_wks")("toStringTag"),s="Arguments"==o(function(){return arguments}());e.exports=function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:s?o(e):"Object"==(n=o(e))&&"function"==typeof e.callee?"Arguments":n}},{"./_cof":12,"./_wks":83}],12:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],13:[function(t,e,r){var n=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},{}],14:[function(t,e,r){"use strict";var n=t("./_object-dp"),o=t("./_property-desc");e.exports=function(t,e,r){e in t?n.f(t,e,o(0,r)):t[e]=r}},{"./_object-dp":47,"./_property-desc":59}],15:[function(t,e,r){var i=t("./_a-function");e.exports=function(n,o,t){if(i(n),void 0===o)return n;switch(t){case 1:return function(t){return n.call(o,t)};case 2:return function(t,e){return n.call(o,t,e)};case 3:return function(t,e,r){return n.call(o,t,e,r)}}return function(){return n.apply(o,arguments)}}},{"./_a-function":1}],16:[function(t,e,r){e.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},{}],17:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":22}],18:[function(t,e,r){var n=t("./_is-object"),o=t("./_global").document,i=n(o)&&n(o.createElement);e.exports=function(t){return i?o.createElement(t):{}}},{"./_global":26,"./_is-object":35}],19:[function(t,e,r){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],20:[function(t,e,r){var c=t("./_object-keys"),a=t("./_object-gops"),u=t("./_object-pie");e.exports=function(t){var e=c(t),r=a.f;if(r)for(var n,o=r(t),i=u.f,s=0;o.length>s;)i.call(t,n=o[s++])&&e.push(n);return e}},{"./_object-gops":52,"./_object-keys":55,"./_object-pie":56}],21:[function(t,e,r){var d=t("./_global"),y=t("./_core"),v=t("./_hide"),g=t("./_redefine"),b=t("./_ctx"),m="prototype",j=function(t,e,r){var n,o,i,s,c=t&j.F,a=t&j.G,u=t&j.S,f=t&j.P,l=t&j.B,_=a?d:u?d[e]||(d[e]={}):(d[e]||{})[m],p=a?y:y[e]||(y[e]={}),h=p[m]||(p[m]={});for(n in a&&(r=e),r)i=((o=!c&&_&&void 0!==_[n])?_:r)[n],s=l&&o?b(i,d):f&&"function"==typeof i?b(Function.call,i):i,_&&g(_,n,i,t&j.U),p[n]!=i&&v(p,n,s),f&&h[n]!=i&&(h[n]=i)};d.core=y,j.F=1,j.G=2,j.S=4,j.P=8,j.B=16,j.W=32,j.U=64,j.R=128,e.exports=j},{"./_core":13,"./_ctx":15,"./_global":26,"./_hide":28,"./_redefine":61}],22:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],23:[function(t,e,r){"use strict";var n=t("./_an-object");e.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{"./_an-object":4}],24:[function(t,e,r){var _=t("./_ctx"),p=t("./_iter-call"),h=t("./_is-array-iter"),d=t("./_an-object"),y=t("./_to-length"),v=t("./core.get-iterator-method"),g={},b={};(r=e.exports=function(t,e,r,n,o){var i,s,c,a,u=o?function(){return t}:v(t),f=_(r,n,e?2:1),l=0;if("function"!=typeof u)throw TypeError(t+" is not iterable!");if(h(u)){for(i=y(t.length);l<i;l++)if((a=e?f(d(s=t[l])[0],s[1]):f(t[l]))===g||a===b)return a}else for(c=u.call(t);!(s=c.next()).done;)if((a=p(c,f,s.value,e))===g||a===b)return a}).BREAK=g,r.RETURN=b},{"./_an-object":4,"./_ctx":15,"./_is-array-iter":33,"./_iter-call":36,"./_to-length":73,"./core.get-iterator-method":84}],25:[function(t,e,r){e.exports=t("./_shared")("native-function-to-string",Function.toString)},{"./_shared":65}],26:[function(t,e,r){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],27:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],28:[function(t,e,r){var n=t("./_object-dp"),o=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":17,"./_object-dp":47,"./_property-desc":59}],29:[function(t,e,r){var n=t("./_global").document;e.exports=n&&n.documentElement},{"./_global":26}],30:[function(t,e,r){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":17,"./_dom-create":18,"./_fails":22}],31:[function(t,e,r){e.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],32:[function(t,e,r){var n=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":12}],33:[function(t,e,r){var n=t("./_iterators"),o=t("./_wks")("iterator"),i=Array.prototype;e.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},{"./_iterators":41,"./_wks":83}],34:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":12}],35:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],36:[function(t,e,r){var i=t("./_an-object");e.exports=function(e,t,r,n){try{return n?t(i(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&i(o.call(e)),t}}},{"./_an-object":4}],37:[function(t,e,r){"use strict";var n=t("./_object-create"),o=t("./_property-desc"),i=t("./_set-to-string-tag"),s={};t("./_hide")(s,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,r){t.prototype=n(s,{next:o(1,r)}),i(t,e+" Iterator")}},{"./_hide":28,"./_object-create":46,"./_property-desc":59,"./_set-to-string-tag":63,"./_wks":83}],38:[function(t,e,r){"use strict";function b(){return this}var m=t("./_library"),j=t("./_export"),w=t("./_redefine"),x=t("./_hide"),k=t("./_iterators"),S=t("./_iter-create"),E=t("./_set-to-string-tag"),O=t("./_object-gpo"),P=t("./_wks")("iterator"),A=!([].keys&&"next"in[].keys()),T="values";e.exports=function(t,e,r,n,o,i,s){S(r,e,n);function c(t){if(!A&&t in h)return h[t];switch(t){case"keys":case T:return function(){return new r(this,t)}}return function(){return new r(this,t)}}var a,u,f,l=e+" Iterator",_=o==T,p=!1,h=t.prototype,d=h[P]||h["@@iterator"]||o&&h[o],y=d||c(o),v=o?_?c("entries"):y:void 0,g="Array"==e&&h.entries||d;if(g&&(f=O(g.call(new t)))!==Object.prototype&&f.next&&(E(f,l,!0),m||"function"==typeof f[P]||x(f,P,b)),_&&d&&d.name!==T&&(p=!0,y=function(){return d.call(this)}),m&&!s||!A&&!p&&h[P]||x(h,P,y),k[e]=y,k[l]=b,o)if(a={values:_?y:c(T),keys:i?y:c("keys"),entries:v},s)for(u in a)u in h||w(h,u,a[u]);else j(j.P+j.F*(A||p),e,a);return a}},{"./_export":21,"./_hide":28,"./_iter-create":37,"./_iterators":41,"./_library":42,"./_object-gpo":53,"./_redefine":61,"./_set-to-string-tag":63,"./_wks":83}],39:[function(t,e,r){var i=t("./_wks")("iterator"),s=!1;try{var n=[7][i]();n.return=function(){s=!0},Array.from(n,function(){throw 2})}catch(t){}e.exports=function(t,e){if(!e&&!s)return!1;var r=!1;try{var n=[7],o=n[i]();o.next=function(){return{done:r=!0}},n[i]=function(){return o},t(n)}catch(t){}return r}},{"./_wks":83}],40:[function(t,e,r){e.exports=function(t,e){return{value:e,done:!!t}}},{}],41:[function(t,e,r){e.exports={}},{}],42:[function(t,e,r){e.exports=!1},{}],43:[function(t,e,r){function n(t){c(t,o,{value:{i:"O"+ ++a,w:{}}})}var o=t("./_uid")("meta"),i=t("./_is-object"),s=t("./_has"),c=t("./_object-dp").f,a=0,u=Object.isExtensible||function(){return!0},f=!t("./_fails")(function(){return u(Object.preventExtensions({}))}),l=e.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,o)){if(!u(t))return"F";if(!e)return"E";n(t)}return t[o].i},getWeak:function(t,e){if(!s(t,o)){if(!u(t))return!0;if(!e)return!1;n(t)}return t[o].w},onFreeze:function(t){return f&&l.NEED&&u(t)&&!s(t,o)&&n(t),t}}},{"./_fails":22,"./_has":27,"./_is-object":35,"./_object-dp":47,"./_uid":79}],44:[function(t,e,r){var c=t("./_global"),a=t("./_task").set,u=c.MutationObserver||c.WebKitMutationObserver,f=c.process,l=c.Promise,_="process"==t("./_cof")(f);e.exports=function(){function t(){var t,e;for(_&&(t=f.domain)&&t.exit();r;){e=r.fn,r=r.next;try{e()}catch(t){throw r?o():n=void 0,t}}n=void 0,t&&t.enter()}var r,n,o;if(_)o=function(){f.nextTick(t)};else if(!u||c.navigator&&c.navigator.standalone)if(l&&l.resolve){var e=l.resolve(void 0);o=function(){e.then(t)}}else o=function(){a.call(c,t)};else{var i=!0,s=document.createTextNode("");new u(t).observe(s,{characterData:!0}),o=function(){s.data=i=!i}}return function(t){var e={fn:t,next:void 0};n&&(n.next=e),r||(r=e,o()),n=e}}},{"./_cof":12,"./_global":26,"./_task":68}],45:[function(t,e,r){"use strict";var o=t("./_a-function");function n(t){var r,n;this.promise=new t(function(t,e){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=t,n=e}),this.resolve=o(r),this.reject=o(n)}e.exports.f=function(t){return new n(t)}},{"./_a-function":1}],46:[function(n,t,e){function o(){}var i=n("./_an-object"),s=n("./_object-dps"),c=n("./_enum-bug-keys"),a=n("./_shared-key")("IE_PROTO"),u="prototype",f=function(){var t,e=n("./_dom-create")("iframe"),r=c.length;for(e.style.display="none",n("./_html").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f[u][c[r]];return f()};t.exports=Object.create||function(t,e){var r;return null!==t?(o[u]=i(t),r=new o,o[u]=null,r[a]=t):r=f(),void 0===e?r:s(r,e)}},{"./_an-object":4,"./_dom-create":18,"./_enum-bug-keys":19,"./_html":29,"./_object-dps":48,"./_shared-key":64}],47:[function(t,e,r){var n=t("./_an-object"),o=t("./_ie8-dom-define"),i=t("./_to-primitive"),s=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":4,"./_descriptors":17,"./_ie8-dom-define":30,"./_to-primitive":75}],48:[function(t,e,r){var s=t("./_object-dp"),c=t("./_an-object"),a=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){c(t);for(var r,n=a(e),o=n.length,i=0;i<o;)s.f(t,r=n[i++],e[r]);return t}},{"./_an-object":4,"./_descriptors":17,"./_object-dp":47,"./_object-keys":55}],49:[function(t,e,r){var n=t("./_object-pie"),o=t("./_property-desc"),i=t("./_to-iobject"),s=t("./_to-primitive"),c=t("./_has"),a=t("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;r.f=t("./_descriptors")?u:function(t,e){if(t=i(t),e=s(e,!0),a)try{return u(t,e)}catch(t){}if(c(t,e))return o(!n.f.call(t,e),t[e])}},{"./_descriptors":17,"./_has":27,"./_ie8-dom-define":30,"./_object-pie":56,"./_property-desc":59,"./_to-iobject":72,"./_to-primitive":75}],50:[function(t,e,r){var n=t("./_to-iobject"),o=t("./_object-gopn").f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(t){return s&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(n(t))}},{"./_object-gopn":51,"./_to-iobject":72}],51:[function(t,e,r){var n=t("./_object-keys-internal"),o=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},{"./_enum-bug-keys":19,"./_object-keys-internal":54}],52:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],53:[function(t,e,r){var n=t("./_has"),o=t("./_to-object"),i=t("./_shared-key")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},{"./_has":27,"./_shared-key":64,"./_to-object":74}],54:[function(t,e,r){var s=t("./_has"),c=t("./_to-iobject"),a=t("./_array-includes")(!1),u=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var r,n=c(t),o=0,i=[];for(r in n)r!=u&&s(n,r)&&i.push(r);for(;e.length>o;)s(n,r=e[o++])&&(~a(i,r)||i.push(r));return i}},{"./_array-includes":7,"./_has":27,"./_shared-key":64,"./_to-iobject":72}],55:[function(t,e,r){var n=t("./_object-keys-internal"),o=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return n(t,o)}},{"./_enum-bug-keys":19,"./_object-keys-internal":54}],56:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],57:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],58:[function(t,e,r){var n=t("./_an-object"),o=t("./_is-object"),i=t("./_new-promise-capability");e.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},{"./_an-object":4,"./_is-object":35,"./_new-promise-capability":45}],59:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],60:[function(t,e,r){var o=t("./_redefine");e.exports=function(t,e,r){for(var n in e)o(t,n,e[n],r);return t}},{"./_redefine":61}],61:[function(t,e,r){var i=t("./_global"),s=t("./_hide"),c=t("./_has"),a=t("./_uid")("src"),n=t("./_function-to-string"),o="toString",u=(""+n).split(o);t("./_core").inspectSource=function(t){return n.call(t)},(e.exports=function(t,e,r,n){var o="function"==typeof r;o&&(c(r,"name")||s(r,"name",e)),t[e]!==r&&(o&&(c(r,a)||s(r,a,t[e]?""+t[e]:u.join(String(e)))),t===i?t[e]=r:n?t[e]?t[e]=r:s(t,e,r):(delete t[e],s(t,e,r)))})(Function.prototype,o,function(){return"function"==typeof this&&this[a]||n.call(this)})},{"./_core":13,"./_function-to-string":25,"./_global":26,"./_has":27,"./_hide":28,"./_uid":79}],62:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_object-dp"),i=t("./_descriptors"),s=t("./_wks")("species");e.exports=function(t){var e=n[t];i&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},{"./_descriptors":17,"./_global":26,"./_object-dp":47,"./_wks":83}],63:[function(t,e,r){var n=t("./_object-dp").f,o=t("./_has"),i=t("./_wks")("toStringTag");e.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},{"./_has":27,"./_object-dp":47,"./_wks":83}],64:[function(t,e,r){var n=t("./_shared")("keys"),o=t("./_uid");e.exports=function(t){return n[t]||(n[t]=o(t))}},{"./_shared":65,"./_uid":79}],65:[function(t,e,r){var n=t("./_core"),o=t("./_global"),i="__core-js_shared__",s=o[i]||(o[i]={});(e.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:t("./_library")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":13,"./_global":26,"./_library":42}],66:[function(t,e,r){var o=t("./_an-object"),i=t("./_a-function"),s=t("./_wks")("species");e.exports=function(t,e){var r,n=o(t).constructor;return void 0===n||null==(r=o(n)[s])?e:i(r)}},{"./_a-function":1,"./_an-object":4,"./_wks":83}],67:[function(t,e,r){var a=t("./_to-integer"),u=t("./_defined");e.exports=function(c){return function(t,e){var r,n,o=String(u(t)),i=a(e),s=o.length;return i<0||s<=i?c?"":void 0:(r=o.charCodeAt(i))<55296||56319<r||i+1===s||(n=o.charCodeAt(i+1))<56320||57343<n?c?o.charAt(i):r:c?o.slice(i,i+2):n-56320+(r-55296<<10)+65536}}},{"./_defined":16,"./_to-integer":71}],68:[function(t,e,r){function n(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}}function o(t){n.call(t.data)}var i,s,c,a=t("./_ctx"),u=t("./_invoke"),f=t("./_html"),l=t("./_dom-create"),_=t("./_global"),p=_.process,h=_.setImmediate,d=_.clearImmediate,y=_.MessageChannel,v=_.Dispatch,g=0,b={},m="onreadystatechange";h&&d||(h=function(t){for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);return b[++g]=function(){u("function"==typeof t?t:Function(t),e)},i(g),g},d=function(t){delete b[t]},"process"==t("./_cof")(p)?i=function(t){p.nextTick(a(n,t,1))}:v&&v.now?i=function(t){v.now(a(n,t,1))}:y?(c=(s=new y).port2,s.port1.onmessage=o,i=a(c.postMessage,c,1)):_.addEventListener&&"function"==typeof postMessage&&!_.importScripts?(i=function(t){_.postMessage(t+"","*")},_.addEventListener("message",o,!1)):i=m in l("script")?function(t){f.appendChild(l("script"))[m]=function(){f.removeChild(this),n.call(t)}}:function(t){setTimeout(a(n,t,1),0)}),e.exports={set:h,clear:d}},{"./_cof":12,"./_ctx":15,"./_dom-create":18,"./_global":26,"./_html":29,"./_invoke":31}],69:[function(t,e,r){var n=t("./_to-integer"),o=Math.max,i=Math.min;e.exports=function(t,e){return(t=n(t))<0?o(t+e,0):i(t,e)}},{"./_to-integer":71}],70:[function(t,e,r){var n=t("./_to-integer"),o=t("./_to-length");e.exports=function(t){if(void 0===t)return 0;var e=n(t),r=o(e);if(e!==r)throw RangeError("Wrong length!");return r}},{"./_to-integer":71,"./_to-length":73}],71:[function(t,e,r){var n=Math.ceil,o=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(0<t?o:n)(t)}},{}],72:[function(t,e,r){var n=t("./_iobject"),o=t("./_defined");e.exports=function(t){return n(o(t))}},{"./_defined":16,"./_iobject":32}],73:[function(t,e,r){var n=t("./_to-integer"),o=Math.min;e.exports=function(t){return 0<t?o(n(t),9007199254740991):0}},{"./_to-integer":71}],74:[function(t,e,r){var n=t("./_defined");e.exports=function(t){return Object(n(t))}},{"./_defined":16}],75:[function(t,e,r){var o=t("./_is-object");e.exports=function(t,e){if(!o(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!o(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!o(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!o(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":35}],76:[function(t,e,r){"use strict";if(t("./_descriptors")){var v=t("./_library"),g=t("./_global"),b=t("./_fails"),m=t("./_export"),j=t("./_typed"),n=t("./_typed-buffer"),h=t("./_ctx"),w=t("./_an-instance"),o=t("./_property-desc"),x=t("./_hide"),i=t("./_redefine-all"),s=t("./_to-integer"),k=t("./_to-length"),S=t("./_to-index"),c=t("./_to-absolute-index"),a=t("./_to-primitive"),u=t("./_has"),E=t("./_classof"),O=t("./_is-object"),d=t("./_to-object"),y=t("./_is-array-iter"),P=t("./_object-create"),A=t("./_object-gpo"),T=t("./_object-gopn").f,L=t("./core.get-iterator-method"),f=t("./_uid"),l=t("./_wks"),_=t("./_array-methods"),p=t("./_array-includes"),M=t("./_species-constructor"),F=t("./es6.array.iterator"),I=t("./_iterators"),R=t("./_iter-detect"),C=t("./_set-species"),N=t("./_array-fill"),U=t("./_array-copy-within"),W=t("./_object-dp"),D=t("./_object-gopd"),V=W.f,B=D.f,G=g.RangeError,K=g.TypeError,z=g.Uint8Array,Y="ArrayBuffer",q="Shared"+Y,H="BYTES_PER_ELEMENT",J="prototype",Q=Array[J],$=n.ArrayBuffer,X=n.DataView,Z=_(0),tt=_(2),et=_(3),rt=_(4),nt=_(5),ot=_(6),it=p(!0),st=p(!1),ct=F.values,at=F.keys,ut=F.entries,ft=Q.lastIndexOf,lt=Q.reduce,_t=Q.reduceRight,pt=Q.join,ht=Q.sort,dt=Q.slice,yt=Q.toString,vt=Q.toLocaleString,gt=l("iterator"),bt=l("toStringTag"),mt=f("typed_constructor"),jt=f("def_constructor"),wt=j.CONSTR,xt=j.TYPED,kt=j.VIEW,St="Wrong length!",Et=_(1,function(t,e){return Lt(M(t,t[jt]),e)}),Ot=b(function(){return 1===new z(new Uint16Array([1]).buffer)[0]}),Pt=!!z&&!!z[J].set&&b(function(){new z(1).set({})}),At=function(t,e){var r=s(t);if(r<0||r%e)throw G("Wrong offset!");return r},Tt=function(t){if(O(t)&&xt in t)return t;throw K(t+" is not a typed array!")},Lt=function(t,e){if(!(O(t)&&mt in t))throw K("It is not a typed array constructor!");return new t(e)},Mt=function(t,e){return Ft(M(t,t[jt]),e)},Ft=function(t,e){for(var r=0,n=e.length,o=Lt(t,n);r<n;)o[r]=e[r++];return o},It=function(t,e,r){V(t,e,{get:function(){return this._d[r]}})},Rt=function(t,e,r){var n,o,i,s,c,a,u=d(t),f=arguments.length,l=1<f?e:void 0,_=void 0!==l,p=L(u);if(null!=p&&!y(p)){for(a=p.call(u),i=[],n=0;!(c=a.next()).done;n++)i.push(c.value);u=i}for(_&&2<f&&(l=h(l,r,2)),n=0,o=k(u.length),s=Lt(this,o);n<o;n++)s[n]=_?l(u[n],n):u[n];return s},Ct=function(){for(var t=0,e=arguments.length,r=Lt(this,e);t<e;)r[t]=arguments[t++];return r},Nt=!!z&&b(function(){vt.call(new z(1))}),Ut=function(){return vt.apply(Nt?dt.call(Tt(this)):Tt(this),arguments)},Wt={copyWithin:function(t,e,r){return U.call(Tt(this),t,e,2<arguments.length?r:void 0)},every:function(t,e){return rt(Tt(this),t,1<arguments.length?e:void 0)},fill:function(t){return N.apply(Tt(this),arguments)},filter:function(t,e){return Mt(this,tt(Tt(this),t,1<arguments.length?e:void 0))},find:function(t,e){return nt(Tt(this),t,1<arguments.length?e:void 0)},findIndex:function(t,e){return ot(Tt(this),t,1<arguments.length?e:void 0)},forEach:function(t,e){Z(Tt(this),t,1<arguments.length?e:void 0)},indexOf:function(t,e){return st(Tt(this),t,1<arguments.length?e:void 0)},includes:function(t,e){return it(Tt(this),t,1<arguments.length?e:void 0)},join:function(t){return pt.apply(Tt(this),arguments)},lastIndexOf:function(t){return ft.apply(Tt(this),arguments)},map:function(t,e){return Et(Tt(this),t,1<arguments.length?e:void 0)},reduce:function(t){return lt.apply(Tt(this),arguments)},reduceRight:function(t){return _t.apply(Tt(this),arguments)},reverse:function(){for(var t,e=this,r=Tt(e).length,n=Math.floor(r/2),o=0;o<n;)t=e[o],e[o++]=e[--r],e[r]=t;return e},some:function(t,e){return et(Tt(this),t,1<arguments.length?e:void 0)},sort:function(t){return ht.call(Tt(this),t)},subarray:function(t,e){var r=Tt(this),n=r.length,o=c(t,n);return new(M(r,r[jt]))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,k((void 0===e?n:c(e,n))-o))}},Dt=function(t,e){return Mt(this,dt.call(Tt(this),t,e))},Vt=function(t,e){Tt(this);var r=At(e,1),n=this.length,o=d(t),i=k(o.length),s=0;if(n<i+r)throw G(St);for(;s<i;)this[r+s]=o[s++]},Bt={entries:function(){return ut.call(Tt(this))},keys:function(){return at.call(Tt(this))},values:function(){return ct.call(Tt(this))}},Gt=function(t,e){return O(t)&&t[xt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Kt=function(t,e){return Gt(t,e=a(e,!0))?o(2,t[e]):B(t,e)},zt=function(t,e,r){return!(Gt(t,e=a(e,!0))&&O(r)&&u(r,"value"))||u(r,"get")||u(r,"set")||r.configurable||u(r,"writable")&&!r.writable||u(r,"enumerable")&&!r.enumerable?V(t,e,r):(t[e]=r.value,t)};wt||(D.f=Kt,W.f=zt),m(m.S+m.F*!wt,"Object",{getOwnPropertyDescriptor:Kt,defineProperty:zt}),b(function(){yt.call({})})&&(yt=vt=function(){return pt.call(this)});var Yt=i({},Wt);i(Yt,Bt),x(Yt,gt,Bt.values),i(Yt,{slice:Dt,set:Vt,constructor:function(){},toString:yt,toLocaleString:Ut}),It(Yt,"buffer","b"),It(Yt,"byteOffset","o"),It(Yt,"byteLength","l"),It(Yt,"length","e"),V(Yt,bt,{get:function(){return this[xt]}}),e.exports=function(t,l,e,i){function _(t,o){V(t,o,{get:function(){return t=o,(e=this._d).v[r](t*l+e.o,Ot);var t,e},set:function(t){return e=o,r=t,n=this._d,i&&(r=(r=Math.round(r))<0?0:255<r?255:255&r),void n.v[s](e*l+n.o,r,Ot);var e,r,n},enumerable:!0})}var p=t+((i=!!i)?"Clamped":"")+"Array",r="get"+t,s="set"+t,h=g[p],c=h||{},n=h&&A(h),o=!h||!j.ABV,a={},u=h&&h[J];o?(h=e(function(t,e,r,n){w(t,h,p,"_d");var o,i,s,c,a=0,u=0;if(O(e)){if(!(e instanceof $||(c=E(e))==Y||c==q))return xt in e?Ft(h,e):Rt.call(h,e);o=e,u=At(r,l);var f=e.byteLength;if(void 0===n){if(f%l)throw G(St);if((i=f-u)<0)throw G(St)}else if(f<(i=k(n)*l)+u)throw G(St);s=i/l}else s=S(e),o=new $(i=s*l);for(x(t,"_d",{b:o,o:u,l:i,e:s,v:new X(o)});a<s;)_(t,a++)}),u=h[J]=P(Yt),x(u,"constructor",h)):b(function(){h(1)})&&b(function(){new h(-1)})&&R(function(t){new h,new h(null),new h(1.5),new h(t)},!0)||(h=e(function(t,e,r,n){var o;return w(t,h,p),O(e)?e instanceof $||(o=E(e))==Y||o==q?void 0!==n?new c(e,At(r,l),n):void 0!==r?new c(e,At(r,l)):new c(e):xt in e?Ft(h,e):Rt.call(h,e):new c(S(e))}),Z(n!==Function.prototype?T(c).concat(T(n)):T(c),function(t){t in h||x(h,t,c[t])}),h[J]=u,v||(u.constructor=h));var f=u[gt],d=!!f&&("values"==f.name||null==f.name),y=Bt.values;x(h,mt,!0),x(u,xt,p),x(u,kt,!0),x(u,jt,h),(i?new h(1)[bt]==p:bt in u)||V(u,bt,{get:function(){return p}}),a[p]=h,m(m.G+m.W+m.F*(h!=c),a),m(m.S,p,{BYTES_PER_ELEMENT:l}),m(m.S+m.F*b(function(){c.of.call(h,1)}),p,{from:Rt,of:Ct}),H in u||x(u,H,l),m(m.P,p,Wt),C(p),m(m.P+m.F*Pt,p,{set:Vt}),m(m.P+m.F*!d,p,Bt),v||u.toString==yt||(u.toString=yt),m(m.P+m.F*b(function(){new h(1).slice()}),p,{slice:Dt}),m(m.P+m.F*(b(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!b(function(){u.toLocaleString.call([1,2])})),p,{toLocaleString:Ut}),I[p]=d?f:y,v||d||x(u,gt,y)}}else e.exports=function(){}},{"./_an-instance":3,"./_array-copy-within":5,"./_array-fill":6,"./_array-includes":7,"./_array-methods":8,"./_classof":11,"./_ctx":15,"./_descriptors":17,"./_export":21,"./_fails":22,"./_global":26,"./_has":27,"./_hide":28,"./_is-array-iter":33,"./_is-object":35,"./_iter-detect":39,"./_iterators":41,"./_library":42,"./_object-create":46,"./_object-dp":47,"./_object-gopd":49,"./_object-gopn":51,"./_object-gpo":53,"./_property-desc":59,"./_redefine-all":60,"./_set-species":62,"./_species-constructor":66,"./_to-absolute-index":69,"./_to-index":70,"./_to-integer":71,"./_to-length":73,"./_to-object":74,"./_to-primitive":75,"./_typed":78,"./_typed-buffer":77,"./_uid":79,"./_wks":83,"./core.get-iterator-method":84,"./es6.array.iterator":86}],77:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_descriptors"),i=t("./_library"),s=t("./_typed"),c=t("./_hide"),a=t("./_redefine-all"),u=t("./_fails"),f=t("./_an-instance"),l=t("./_to-integer"),_=t("./_to-length"),p=t("./_to-index"),h=t("./_object-gopn").f,d=t("./_object-dp").f,y=t("./_array-fill"),v=t("./_set-to-string-tag"),g="ArrayBuffer",b="DataView",m="prototype",j="Wrong index!",w=n[g],x=n[b],k=n.Math,S=n.RangeError,E=n.Infinity,O=w,P=k.abs,A=k.pow,T=k.floor,L=k.log,M=k.LN2,F="byteLength",I="byteOffset",R=o?"_b":"buffer",C=o?"_l":F,N=o?"_o":I;function U(t,e,r){var n,o,i,s=new Array(r),c=8*r-e-1,a=(1<<c)-1,u=a>>1,f=23===e?A(2,-24)-A(2,-77):0,l=0,_=t<0||0===t&&1/t<0?1:0;for((t=P(t))!=t||t===E?(o=t!=t?1:0,n=a):(n=T(L(t)/M),t*(i=A(2,-n))<1&&(n--,i*=2),2<=(t+=1<=n+u?f/i:f*A(2,1-u))*i&&(n++,i/=2),a<=n+u?(o=0,n=a):1<=n+u?(o=(t*i-1)*A(2,e),n+=u):(o=t*A(2,u-1)*A(2,e),n=0));8<=e;s[l++]=255&o,o/=256,e-=8);for(n=n<<e|o,c+=e;0<c;s[l++]=255&n,n/=256,c-=8);return s[--l]|=128*_,s}function W(t,e,r){var n,o=8*r-e-1,i=(1<<o)-1,s=i>>1,c=o-7,a=r-1,u=t[a--],f=127&u;for(u>>=7;0<c;f=256*f+t[a],a--,c-=8);for(n=f&(1<<-c)-1,f>>=-c,c+=e;0<c;n=256*n+t[a],a--,c-=8);if(0===f)f=1-s;else{if(f===i)return n?NaN:u?-E:E;n+=A(2,e),f-=s}return(u?-1:1)*n*A(2,f-e)}function D(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function V(t){return[255&t]}function B(t){return[255&t,t>>8&255]}function G(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function K(t){return U(t,52,8)}function z(t){return U(t,23,4)}function Y(t,e,r){d(t[m],e,{get:function(){return this[r]}})}function q(t,e,r,n){var o=p(+r);if(o+e>t[C])throw S(j);var i=t[R]._b,s=o+t[N],c=i.slice(s,s+e);return n?c:c.reverse()}function H(t,e,r,n,o,i){var s=p(+r);if(s+e>t[C])throw S(j);for(var c=t[R]._b,a=s+t[N],u=n(+o),f=0;f<e;f++)c[a+f]=u[i?f:e-f-1]}if(s.ABV){if(!u(function(){w(1)})||!u(function(){new w(-1)})||u(function(){return new w,new w(1.5),new w(NaN),w.name!=g})){for(var J,Q=(w=function(t){return f(this,w),new O(p(t))})[m]=O[m],$=h(O),X=0;$.length>X;)(J=$[X++])in w||c(w,J,O[J]);i||(Q.constructor=w)}var Z=new x(new w(2)),tt=x[m].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||a(x[m],{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else w=function(t){f(this,w,g);var e=p(t);this._b=y.call(new Array(e),0),this[C]=e},x=function(t,e,r){f(this,x,b),f(t,w,b);var n=t[C],o=l(e);if(o<0||n<o)throw S("Wrong offset!");if(n<o+(r=void 0===r?n-o:_(r)))throw S("Wrong length!");this[R]=t,this[N]=o,this[C]=r},o&&(Y(w,F,"_l"),Y(x,"buffer","_b"),Y(x,F,"_l"),Y(x,I,"_o")),a(x[m],{getInt8:function(t){return q(this,1,t)[0]<<24>>24},getUint8:function(t){return q(this,1,t)[0]},getInt16:function(t,e){var r=q(this,2,t,e);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t,e){var r=q(this,2,t,e);return r[1]<<8|r[0]},getInt32:function(t,e){return D(q(this,4,t,e))},getUint32:function(t,e){return D(q(this,4,t,e))>>>0},getFloat32:function(t,e){return W(q(this,4,t,e),23,4)},getFloat64:function(t,e){return W(q(this,8,t,e),52,8)},setInt8:function(t,e){H(this,1,t,V,e)},setUint8:function(t,e){H(this,1,t,V,e)},setInt16:function(t,e,r){H(this,2,t,B,e,r)},setUint16:function(t,e,r){H(this,2,t,B,e,r)},setInt32:function(t,e,r){H(this,4,t,G,e,r)},setUint32:function(t,e,r){H(this,4,t,G,e,r)},setFloat32:function(t,e,r){H(this,4,t,z,e,r)},setFloat64:function(t,e,r){H(this,8,t,K,e,r)}});v(w,g),v(x,b),c(x[m],s.VIEW,!0),r[g]=w,r[b]=x},{"./_an-instance":3,"./_array-fill":6,"./_descriptors":17,"./_fails":22,"./_global":26,"./_hide":28,"./_library":42,"./_object-dp":47,"./_object-gopn":51,"./_redefine-all":60,"./_set-to-string-tag":63,"./_to-index":70,"./_to-integer":71,"./_to-length":73,"./_typed":78}],78:[function(t,e,r){for(var n,o=t("./_global"),i=t("./_hide"),s=t("./_uid"),c=s("typed_array"),a=s("view"),u=!(!o.ArrayBuffer||!o.DataView),f=u,l=0,_="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(n=o[_[l++]])?(i(n.prototype,c,!0),i(n.prototype,a,!0)):f=!1;e.exports={ABV:u,CONSTR:f,TYPED:c,VIEW:a}},{"./_global":26,"./_hide":28,"./_uid":79}],79:[function(t,e,r){var n=0,o=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},{}],80:[function(t,e,r){var n=t("./_global").navigator;e.exports=n&&n.userAgent||""},{"./_global":26}],81:[function(t,e,r){var n=t("./_global"),o=t("./_core"),i=t("./_library"),s=t("./_wks-ext"),c=t("./_object-dp").f;e.exports=function(t){var e=o.Symbol||(o.Symbol=!i&&n.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:s.f(t)})}},{"./_core":13,"./_global":26,"./_library":42,"./_object-dp":47,"./_wks-ext":82}],82:[function(t,e,r){r.f=t("./_wks")},{"./_wks":83}],83:[function(t,e,r){var n=t("./_shared")("wks"),o=t("./_uid"),i=t("./_global").Symbol,s="function"==typeof i;(e.exports=function(t){return n[t]||(n[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=n},{"./_global":26,"./_shared":65,"./_uid":79}],84:[function(t,e,r){var n=t("./_classof"),o=t("./_wks")("iterator"),i=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},{"./_classof":11,"./_core":13,"./_iterators":41,"./_wks":83}],85:[function(t,e,r){"use strict";var h=t("./_ctx"),n=t("./_export"),d=t("./_to-object"),y=t("./_iter-call"),v=t("./_is-array-iter"),g=t("./_to-length"),b=t("./_create-property"),m=t("./core.get-iterator-method");n(n.S+n.F*!t("./_iter-detect")(function(t){Array.from(t)}),"Array",{from:function(t,e,r){var n,o,i,s,c=d(t),a="function"==typeof this?this:Array,u=arguments.length,f=1<u?e:void 0,l=void 0!==f,_=0,p=m(c);if(l&&(f=h(f,2<u?r:void 0,2)),null==p||a==Array&&v(p))for(o=new a(n=g(c.length));_<n;_++)b(o,_,l?f(c[_],_):c[_]);else for(s=p.call(c),o=new a;!(i=s.next()).done;_++)b(o,_,l?y(s,f,[i.value,_],!0):i.value);return o.length=_,o}})},{"./_create-property":14,"./_ctx":15,"./_export":21,"./_is-array-iter":33,"./_iter-call":36,"./_iter-detect":39,"./_to-length":73,"./_to-object":74,"./core.get-iterator-method":84}],86:[function(t,e,r){"use strict";var n=t("./_add-to-unscopables"),o=t("./_iter-step"),i=t("./_iterators"),s=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":2,"./_iter-define":38,"./_iter-step":40,"./_iterators":41,"./_to-iobject":72}],87:[function(t,e,r){var n=t("./_object-dp").f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||t("./_descriptors")&&n(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},{"./_descriptors":17,"./_object-dp":47}],88:[function(t,e,r){"use strict";var n=t("./_classof"),o={};o[t("./_wks")("toStringTag")]="z",o+""!="[object z]"&&t("./_redefine")(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},{"./_classof":11,"./_redefine":61,"./_wks":83}],89:[function(r,t,e){"use strict";function n(){}function l(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e}function o(f,r){if(!f._n){f._n=!0;var n=f._c;w(function(){for(var a=f._v,u=1==f._s,t=0,e=function(t){var e,r,n,o=u?t.ok:t.fail,i=t.resolve,s=t.reject,c=t.domain;try{o?(u||(2==f._h&&U(f),f._h=1),!0===o?e=a:(c&&c.enter(),e=o(a),c&&(c.exit(),n=!0)),e===t.promise?s(P("Promise-chain cycle")):(r=l(e))?r.call(e,i,s):i(e)):s(a)}catch(t){c&&!n&&c.exit(),s(t)}};n.length>t;)e(n[t++]);f._c=[],f._n=!1,r&&!f._h&&C(f)})}}function i(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()),o(e,!0))}var s,c,a,u,f=r("./_library"),_=r("./_global"),p=r("./_ctx"),h=r("./_classof"),d=r("./_export"),y=r("./_is-object"),v=r("./_a-function"),g=r("./_an-instance"),b=r("./_for-of"),m=r("./_species-constructor"),j=r("./_task").set,w=r("./_microtask")(),x=r("./_new-promise-capability"),k=r("./_perform"),S=r("./_user-agent"),E=r("./_promise-resolve"),O="Promise",P=_.TypeError,A=_.process,T=A&&A.versions,L=T&&T.v8||"",M=_[O],F="process"==h(A),I=c=x.f,R=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[r("./_wks")("species")]=function(t){t(n,n)};return(F||"function"==typeof PromiseRejectionEvent)&&t.then(n)instanceof e&&0!==L.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(t){}}(),C=function(i){j.call(_,function(){var t,e,r,n=i._v,o=N(i);if(o&&(t=k(function(){F?A.emit("unhandledRejection",n,i):(e=_.onunhandledrejection)?e({promise:i,reason:n}):(r=_.console)&&r.error&&r.error("Unhandled promise rejection",n)}),i._h=F||N(i)?2:1),i._a=void 0,o&&t.e)throw t.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},U=function(e){j.call(_,function(){var t;F?A.emit("rejectionHandled",e):(t=_.onrejectionhandled)&&t({promise:e,reason:e._v})})},W=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw P("Promise can't be resolved itself");(r=l(t))?w(function(){var e={_w:n,_d:!1};try{r.call(t,p(W,e,1),p(i,e,1))}catch(t){i.call(e,t)}}):(n._v=t,n._s=1,o(n,!1))}catch(t){i.call({_w:n,_d:!1},t)}}};R||(M=function(t){g(this,M,O,"_h"),v(t),s.call(this);try{t(p(W,this,1),p(i,this,1))}catch(t){i.call(this,t)}},(s=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r("./_redefine-all")(M.prototype,{then:function(t,e){var r=I(m(this,M));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=F?A.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&o(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new s;this.promise=t,this.resolve=p(W,t,1),this.reject=p(i,t,1)},x.f=I=function(t){return t===M||t===u?new a:c(t)}),d(d.G+d.W+d.F*!R,{Promise:M}),r("./_set-to-string-tag")(M,O),r("./_set-species")(O),u=r("./_core")[O],d(d.S+d.F*!R,O,{reject:function(t){var e=I(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(f||!R),O,{resolve:function(t){return E(f&&this===u?M:this,t)}}),d(d.S+d.F*!(R&&r("./_iter-detect")(function(t){M.all(t).catch(n)})),O,{all:function(t){var s=this,e=I(s),c=e.resolve,a=e.reject,r=k(function(){var n=[],o=0,i=1;b(t,!1,function(t){var e=o++,r=!1;n.push(void 0),i++,s.resolve(t).then(function(t){r||(r=!0,n[e]=t,--i||c(n))},a)}),--i||c(n)});return r.e&&a(r.v),e.promise},race:function(t){var e=this,r=I(e),n=r.reject,o=k(function(){b(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},{"./_a-function":1,"./_an-instance":3,"./_classof":11,"./_core":13,"./_ctx":15,"./_export":21,"./_for-of":24,"./_global":26,"./_is-object":35,"./_iter-detect":39,"./_library":42,"./_microtask":44,"./_new-promise-capability":45,"./_perform":57,"./_promise-resolve":58,"./_redefine-all":60,"./_set-species":62,"./_set-to-string-tag":63,"./_species-constructor":66,"./_task":68,"./_user-agent":80,"./_wks":83}],90:[function(t,e,r){t("./_descriptors")&&"g"!=/./g.flags&&t("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:t("./_flags")})},{"./_descriptors":17,"./_flags":23,"./_object-dp":47}],91:[function(e,t,r){"use strict";e("./es6.regexp.flags");function n(t){e("./_redefine")(RegExp.prototype,c,t,!0)}var o=e("./_an-object"),i=e("./_flags"),s=e("./_descriptors"),c="toString",a=/./[c];e("./_fails")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?n(function(){var t=o(this);return"/".concat(t.source,"/","flags"in t?t.flags:!s&&t instanceof RegExp?i.call(t):void 0)}):a.name!=c&&n(function(){return a.call(this)})},{"./_an-object":4,"./_descriptors":17,"./_fails":22,"./_flags":23,"./_redefine":61,"./es6.regexp.flags":90}],92:[function(t,e,r){"use strict";var n=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":38,"./_string-at":67}],93:[function(t,e,r){"use strict";function n(t){var e=q[t]=T(W[B]);return e._k=t,e}function o(t,e){k(t);for(var r,n=w(e=O(e)),o=0,i=n.length;o<i;)et(t,r=n[o++],e[r]);return t}function i(t){var e=z.call(this,t=P(t,!0));return!(this===J&&f(q,t)&&!f(H,t))&&(!(e||!f(this,t)||!f(q,t)||f(this,G)&&this[G][t])||e)}function s(t,e){if(t=O(t),e=P(e,!0),t!==J||!f(q,e)||f(H,e)){var r=C(t,e);return!r||!f(q,e)||f(t,G)&&t[G][e]||(r.enumerable=!0),r}}function c(t){for(var e,r=U(O(t)),n=[],o=0;r.length>o;)f(q,e=r[o++])||e==G||e==h||n.push(e);return n}function a(t){for(var e,r=t===J,n=U(r?H:O(t)),o=[],i=0;n.length>i;)!f(q,e=n[i++])||r&&!f(J,e)||o.push(q[e]);return o}var u=t("./_global"),f=t("./_has"),l=t("./_descriptors"),_=t("./_export"),p=t("./_redefine"),h=t("./_meta").KEY,d=t("./_fails"),y=t("./_shared"),v=t("./_set-to-string-tag"),g=t("./_uid"),b=t("./_wks"),m=t("./_wks-ext"),j=t("./_wks-define"),w=t("./_enum-keys"),x=t("./_is-array"),k=t("./_an-object"),S=t("./_is-object"),E=t("./_to-object"),O=t("./_to-iobject"),P=t("./_to-primitive"),A=t("./_property-desc"),T=t("./_object-create"),L=t("./_object-gopn-ext"),M=t("./_object-gopd"),F=t("./_object-gops"),I=t("./_object-dp"),R=t("./_object-keys"),C=M.f,N=I.f,U=L.f,W=u.Symbol,D=u.JSON,V=D&&D.stringify,B="prototype",G=b("_hidden"),K=b("toPrimitive"),z={}.propertyIsEnumerable,Y=y("symbol-registry"),q=y("symbols"),H=y("op-symbols"),J=Object[B],Q="function"==typeof W&&!!F.f,$=u.QObject,X=!$||!$[B]||!$[B].findChild,Z=l&&d(function(){return 7!=T(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=C(J,e);n&&delete J[e],N(t,e,r),n&&t!==J&&N(J,e,n)}:N,tt=Q&&"symbol"==typeof W.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof W},et=function(t,e,r){return t===J&&et(H,e,r),k(t),e=P(e,!0),k(r),f(q,e)?(r.enumerable?(f(t,G)&&t[G][e]&&(t[G][e]=!1),r=T(r,{enumerable:A(0,!1)})):(f(t,G)||N(t,G,A(1,{})),t[G][e]=!0),Z(t,e,r)):N(t,e,r)};Q||(p((W=function(t){if(this instanceof W)throw TypeError("Symbol is not a constructor!");var e=g(0<arguments.length?t:void 0),r=function(t){this===J&&r.call(H,t),f(this,G)&&f(this[G],e)&&(this[G][e]=!1),Z(this,e,A(1,t))};return l&&X&&Z(J,e,{configurable:!0,set:r}),n(e)})[B],"toString",function(){return this._k}),M.f=s,I.f=et,t("./_object-gopn").f=L.f=c,t("./_object-pie").f=i,F.f=a,l&&!t("./_library")&&p(J,"propertyIsEnumerable",i,!0),m.f=function(t){return n(b(t))}),_(_.G+_.W+_.F*!Q,{Symbol:W});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;rt.length>nt;)b(rt[nt++]);for(var ot=R(b.store),it=0;ot.length>it;)j(ot[it++]);_(_.S+_.F*!Q,"Symbol",{for:function(t){return f(Y,t+="")?Y[t]:Y[t]=W(t)},keyFor:function(t){if(!tt(t))throw TypeError(t+" is not a symbol!");for(var e in Y)if(Y[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),_(_.S+_.F*!Q,"Object",{create:function(t,e){return void 0===e?T(t):o(T(t),e)},defineProperty:et,defineProperties:o,getOwnPropertyDescriptor:s,getOwnPropertyNames:c,getOwnPropertySymbols:a});var st=d(function(){F.f(1)});_(_.S+_.F*st,"Object",{getOwnPropertySymbols:function(t){return F.f(E(t))}}),D&&_(_.S+_.F*(!Q||d(function(){var t=W();return"[null]"!=V([t])||"{}"!=V({a:t})||"{}"!=V(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;o<arguments.length;)n.push(arguments[o++]);if(r=e=n[1],(S(e)||void 0!==t)&&!tt(t))return x(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!tt(e))return e}),n[1]=e,V.apply(D,n)}}),W[B][K]||t("./_hide")(W[B],K,W[B].valueOf),v(W,"Symbol"),v(Math,"Math",!0),v(u.JSON,"JSON",!0)},{"./_an-object":4,"./_descriptors":17,"./_enum-keys":20,"./_export":21,"./_fails":22,"./_global":26,"./_has":27,"./_hide":28,"./_is-array":34,"./_is-object":35,"./_library":42,"./_meta":43,"./_object-create":46,"./_object-dp":47,"./_object-gopd":49,"./_object-gopn":51,"./_object-gopn-ext":50,"./_object-gops":52,"./_object-keys":55,"./_object-pie":56,"./_property-desc":59,"./_redefine":61,"./_set-to-string-tag":63,"./_shared":65,"./_to-iobject":72,"./_to-object":74,"./_to-primitive":75,"./_uid":79,"./_wks":83,"./_wks-define":81,"./_wks-ext":82}],94:[function(t,e,r){t("./_typed-array")("Uint8",1,function(n){return function(t,e,r){return n(this,t,e,r)}},!0)},{"./_typed-array":76}],95:[function(t,e,r){t("./_wks-define")("asyncIterator")},{"./_wks-define":81}],96:[function(t,e,r){for(var n=t("./es6.array.iterator"),o=t("./_object-keys"),i=t("./_redefine"),s=t("./_global"),c=t("./_hide"),a=t("./_iterators"),u=t("./_wks"),f=u("iterator"),l=u("toStringTag"),_=a.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(p),d=0;d<h.length;d++){var y,v=h[d],g=p[v],b=s[v],m=b&&b.prototype;if(m&&(m[f]||c(m,f,_),m[l]||c(m,l,v),a[v]=_,g))for(y in n)m[y]||i(m,y,n[y],!0)}},{"./_global":26,"./_hide":28,"./_iterators":41,"./_object-keys":55,"./_redefine":61,"./_wks":83,"./es6.array.iterator":86}],97:[function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t("core-js/modules/es6.function.name"),Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function i(t,e,r,n){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),this.bundle=e,this.host=r,this.ready=n,this.worker=new Worker(t),this.worker.onerror=function(t){o.host.onErr(t.type,t.filename,t.message)},this.worker.onmessage=function(t){var e=t.data;void 0!==e&&("sync_sleep_message"!==e.type?o.onMessage(e.name,e.props||{}):o.worker.postMessage(e))}}var t,e,r;return t=i,(e=[{key:"sendMessage",value:function(t,e){this.worker.postMessage({name:t,props:e||{}})}},{key:"onMessage",value:function(t,e){switch(t){case"ws-ready":this.sendMessage("wc-run",{bundle:this.bundle}),delete this.bundle;break;case"ws-server-ready":this.ready(),delete this.ready;break;case"ws-frame-set-size":this.host.onFrameSize(e.width,e.height);break;case"ws-update-lines":this.host.onFrameLines(e.lines);break;case"ws-exit":this.worker.terminate(),this.host.onExit();break;case"ws-log":this.host.onLog.apply(this.host,e.args);break;case"ws-warn":this.host.onWarn.apply(this.host,e.args);break;case"ws-err":this.host.onErr.apply(this.host,e.args);break;case"ws-stdout":this.host.onStdout(e.message);break;case"ws-persist":this.host.onPersist(e.bundle);break;default:console.log("Unknown worker message",t)}}},{key:"addKey",value:function(t,e){this.sendMessage("wc-add-key",{key:t,pressed:e})}},{key:"persist",value:function(){this.sendMessage("wc-pack-fs-to-bundle")}},{key:"exit",value:function(){this.sendMessage("wc-exit")}}])&&n(t.prototype,e),r&&n(t,r),i}();r.WorkerClient=o},{"core-js/modules/es6.function.name":87}],98:[function(t,e,r){"use strict";function o(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t))){var e=0,r=function(){};return{s:r,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){s=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t("core-js/modules/web.dom.iterable"),t("core-js/modules/es7.symbol.async-iterator"),t("core-js/modules/es6.symbol"),t("core-js/modules/es6.string.iterator"),t("core-js/modules/es6.array.from"),t("core-js/modules/es6.function.name"),t("core-js/modules/es6.regexp.to-string"),t("core-js/modules/es6.typed.uint8-clamped-array"),t("core-js/modules/es6.promise"),t("core-js/modules/es6.object.to-string"),Object.defineProperty(r,"__esModule",{value:!0});var s=t("./worker-client");r.default=function(t,i,s){return new Promise(function(e,r){try{var n,o=s.onErr;s.onErr=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n=(n||"")+e.join(" ")+"\n"},new a(t,i,s,function(t){void 0!==n?t.exit().then(function(){return r(new Error(n))}).catch(r):(s.onErr=o,e(t))})}catch(t){r(t)}})};var a=function(){function i(t,e,r,n){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),this.width=0,this.height=0,this.rgba=new Uint8ClampedArray,this.logger=r,this.client=new s.WorkerClient(t,e,this,function(){n(o)})}var t,e,r;return t=i,(e=[{key:"onFrameSize",value:function(t,e){this.width==t&&this.height==e||(this.width=t,this.height=e,this.rgba=new Uint8ClampedArray(t*e*4))}},{key:"onFrameLines",value:function(t){var e,r=o(t);try{for(r.s();!(e=r.n()).done;){var n=e.value;this.rgba.set(n.heapu8,n.start*this.width*4)}}catch(t){r.e(t)}finally{r.f()}}},{key:"onPersist",value:function(t){this.persistResolve&&(this.persistResolve(t),delete this.persistPromise,delete this.persistResolve)}},{key:"onLog",value:function(){var t;(t=this.logger).onLog.apply(t,arguments)}},{key:"onWarn",value:function(){var t;(t=this.logger).onWarn.apply(t,arguments)}},{key:"onErr",value:function(){var t;(t=this.logger).onErr.apply(t,arguments)}},{key:"onStdout",value:function(t){this.logger.onStdout(t)}},{key:"onExit",value:function(){this.exitResolve&&(this.exitResolve(),delete this.exitPromise,delete this.exitResolve)}},{key:"fullscreen",value:function(){throw new Error("not implemented")}},{key:"exitFullscreen",value:function(){throw new Error("not implemented")}},{key:"screenshot",value:function(){for(var t=3;t<this.rgba.byteLength;t+=4)this.rgba[t]=255;return Promise.resolve(new ImageData(this.rgba,this.width,this.height))}},{key:"simulateKeyPress",value:function(t){var e=this;this.sendKeyEvent(t,!0),setTimeout(function(){e.sendKeyEvent(t,!1)},16)}},{key:"sendKeyEvent",value:function(t,e){this.client.addKey(t,e)}},{key:"persist",value:function(){var e=this;return void 0!==this.persistPromise||(this.persistPromise=new Promise(function(t){return e.persistResolve=t}),this.client.persist()),this.persistPromise}},{key:"exit",value:function(){var e=this;return void 0!==this.exitPromise||(this.exitPromise=new Promise(function(t){return e.exitResolve=t}),this.client.exit()),this.exitPromise}}])&&n(t.prototype,e),r&&n(t,r),i}()},{"./worker-client":97,"core-js/modules/es6.array.from":85,"core-js/modules/es6.function.name":87,"core-js/modules/es6.object.to-string":88,"core-js/modules/es6.promise":89,"core-js/modules/es6.regexp.to-string":91,"core-js/modules/es6.string.iterator":92,"core-js/modules/es6.symbol":93,"core-js/modules/es6.typed.uint8-clamped-array":94,"core-js/modules/es7.symbol.async-iterator":95,"core-js/modules/web.dom.iterable":96}]},{},[98]);
//# sourceMappingURL=worker.js.map