UNPKG

tradingraph

Version:

Based on rpiontik chart https://github.com/rpiontik/crypto-chart

1 lines 29.2 kB
(function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="da2a")})({"01f9":function(t,n,e){"use strict";var r=e("2d00"),i=e("5ca1"),o=e("2aba"),a=e("32e9"),u=e("84f2"),c=e("41a0"),f=e("7f20"),s=e("38fd"),l=e("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),h="@@iterator",d="keys",v="values",y=function(){return this};t.exports=function(t,n,e,g,b,w,m){c(e,n,g);var x,S,P,A=function(t){if(!p&&t in L)return L[t];switch(t){case d:return function(){return new e(this,t)};case v:return function(){return new e(this,t)}}return function(){return new e(this,t)}},E=n+" Iterator",O=b==v,_=!1,L=t.prototype,T=L[l]||L[h]||b&&L[b],k=T||A(b),j=b?O?A("entries"):k:void 0,M="Array"==n&&L.entries||T;if(M&&(P=s(M.call(new t)),P!==Object.prototype&&P.next&&(f(P,E,!0),r||"function"==typeof P[l]||a(P,l,y))),O&&T&&T.name!==v&&(_=!0,k=function(){return T.call(this)}),r&&!m||!p&&!_&&L[l]||a(L,l,k),u[n]=k,u[E]=y,b)if(x={values:O?k:A(v),keys:w?k:A(d),entries:j},m)for(S in x)S in L||o(L,S,x[S]);else i(i.P+i.F*(p||_),n,x);return x}},"09fa":function(t,n,e){var r=e("4588"),i=e("9def");t.exports=function(t){if(void 0===t)return 0;var n=r(t),e=i(n);if(n!==e)throw RangeError("Wrong length!");return e}},"0a49":function(t,n,e){var r=e("9b43"),i=e("626a"),o=e("4bf8"),a=e("9def"),u=e("cd1c");t.exports=function(t,n){var e=1==t,c=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l,h=n||u;return function(n,u,d){for(var v,y,g=o(n),b=i(g),w=r(u,d,3),m=a(b.length),x=0,S=e?h(n,m):c?h(n,0):void 0;m>x;x++)if((p||x in b)&&(v=b[x],y=w(v,x,g),t))if(e)S[x]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:S.push(v)}else if(s)return!1;return l?-1:f||s?s:S}}},"0d58":function(t,n,e){var r=e("ce10"),i=e("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"0f88":function(t,n,e){var r,i=e("7726"),o=e("32e9"),a=e("ca5a"),u=a("typed_array"),c=a("view"),f=!(!i.ArrayBuffer||!i.DataView),s=f,l=0,p=9,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(l<p)(r=i[h[l++]])?(o(r.prototype,u,!0),o(r.prototype,c,!0)):s=!1;t.exports={ABV:f,CONSTR:s,TYPED:u,VIEW:c}},1169:function(t,n,e){var r=e("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"11e9":function(t,n,e){var r=e("52a7"),i=e("4630"),o=e("6821"),a=e("6a99"),u=e("69a8"),c=e("c69a"),f=Object.getOwnPropertyDescriptor;n.f=e("9e1e")?f:function(t,n){if(t=o(t),n=a(n,!0),c)try{return f(t,n)}catch(t){}if(u(t,n))return i(!r.f.call(t,n),t[n])}},1495:function(t,n,e){var r=e("86cc"),i=e("cb7c"),o=e("0d58");t.exports=e("9e1e")?Object.defineProperties:function(t,n){i(t);var e,a=o(n),u=a.length,c=0;while(u>c)r.f(t,e=a[c++],n[e]);return t}},"230e":function(t,n,e){var r=e("d3f4"),i=e("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,n,e){var r=e("2d95"),i=e("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=a(n=Object(t),i))?e:o?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},"27ee":function(t,n,e){var r=e("23c6"),i=e("2b4c")("iterator"),o=e("84f2");t.exports=e("8378").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"2aba":function(t,n,e){var r=e("7726"),i=e("32e9"),o=e("69a8"),a=e("ca5a")("src"),u="toString",c=Function[u],f=(""+c).split(u);e("8378").inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,u){var c="function"==typeof e;c&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(c&&(o(e,a)||i(e,a,t[n]?""+t[n]:f.join(String(n)))),t===r?t[n]=e:u?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,u,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(t,n,e){var r=e("cb7c"),i=e("1495"),o=e("e11e"),a=e("613b")("IE_PROTO"),u=function(){},c="prototype",f=function(){var t,n=e("230e")("iframe"),r=o.length,i="<",a=">";n.style.display="none",e("fab2").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),f=t.F;while(r--)delete f[c][o[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(u[c]=r(t),e=new u,u[c]=null,e[a]=t):e=f(),void 0===n?e:i(e,n)}},"2b4c":function(t,n,e){var r=e("5537")("wks"),i=e("ca5a"),o=e("7726").Symbol,a="function"==typeof o,u=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};u.store=r},"2d00":function(t,n){t.exports=!1},"2d95":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},"2f21":function(t,n,e){"use strict";var r=e("79e5");t.exports=function(t,n){return!!t&&r(function(){n?t.call(null,function(){},1):t.call(null)})}},"32e9":function(t,n,e){var r=e("86cc"),i=e("4630");t.exports=e("9e1e")?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},"33a4":function(t,n,e){var r=e("84f2"),i=e("2b4c")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},"36bd":function(t,n,e){"use strict";var r=e("4bf8"),i=e("77f1"),o=e("9def");t.exports=function(t){var n=r(this),e=o(n.length),a=arguments.length,u=i(a>1?arguments[1]:void 0,e),c=a>2?arguments[2]:void 0,f=void 0===c?e:i(c,e);while(f>u)n[u++]=t;return n}},"38fd":function(t,n,e){var r=e("69a8"),i=e("4bf8"),o=e("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,n,e){"use strict";var r=e("2aeb"),i=e("4630"),o=e("7f20"),a={};e("32e9")(a,e("2b4c")("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(a,{next:i(1,e)}),o(t,n+" Iterator")}},"456d":function(t,n,e){var r=e("4bf8"),i=e("0d58");e("5eda")("keys",function(){return function(t){return i(r(t))}})},4588:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},4630:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},"4bf8":function(t,n,e){var r=e("be13");t.exports=function(t){return Object(r(t))}},"52a7":function(t,n){n.f={}.propertyIsEnumerable},5537:function(t,n,e){var r=e("8378"),i=e("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,n){return a[t]||(a[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"55dd":function(t,n,e){"use strict";var r=e("5ca1"),i=e("d8e8"),o=e("4bf8"),a=e("79e5"),u=[].sort,c=[1,2,3];r(r.P+r.F*(a(function(){c.sort(void 0)})||!a(function(){c.sort(null)})||!e("2f21")(u)),"Array",{sort:function(t){return void 0===t?u.call(o(this)):u.call(o(this),i(t))}})},"5ca1":function(t,n,e){var r=e("7726"),i=e("8378"),o=e("32e9"),a=e("2aba"),u=e("9b43"),c="prototype",f=function(t,n,e){var s,l,p,h,d=t&f.F,v=t&f.G,y=t&f.S,g=t&f.P,b=t&f.B,w=v?r:y?r[n]||(r[n]={}):(r[n]||{})[c],m=v?i:i[n]||(i[n]={}),x=m[c]||(m[c]={});for(s in v&&(e=n),e)l=!d&&w&&void 0!==w[s],p=(l?w:e)[s],h=b&&l?u(p,r):g&&"function"==typeof p?u(Function.call,p):p,w&&a(w,s,p,t&f.U),m[s]!=p&&o(m,s,h),g&&x[s]!=p&&(x[s]=p)};r.core=i,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},"5cc5":function(t,n,e){var r=e("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:e=!0}},o[r]=function(){return a},t(o)}catch(t){}return e}},"5eda":function(t,n,e){var r=e("5ca1"),i=e("8378"),o=e("79e5");t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],a={};a[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",a)}},"613b":function(t,n,e){var r=e("5537")("keys"),i=e("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,n,e){var r=e("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"63d9":function(t,n,e){e("ec30")("Float32",4,function(t){return function(n,e,r){return t(this,n,e,r)}})},6821:function(t,n,e){var r=e("626a"),i=e("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"6a99":function(t,n,e){var r=e("d3f4");t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7726:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},"77f1":function(t,n,e){var r=e("4588"),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},"79e5":function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7a56":function(t,n,e){"use strict";var r=e("7726"),i=e("86cc"),o=e("9e1e"),a=e("2b4c")("species");t.exports=function(t){var n=r[t];o&&n&&!n[a]&&i.f(n,a,{configurable:!0,get:function(){return this}})}},"7f20":function(t,n,e){var r=e("86cc").f,i=e("69a8"),o=e("2b4c")("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},8378:function(t,n){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)},"84f2":function(t,n){t.exports={}},"86cc":function(t,n,e){var r=e("cb7c"),i=e("c69a"),o=e("6a99"),a=Object.defineProperty;n.f=e("9e1e")?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return a(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},9093:function(t,n,e){var r=e("ce10"),i=e("e11e").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"9b43":function(t,n,e){var r=e("d8e8");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},"9c29":function(t,n,e){e("ec30")("Uint32",4,function(t){return function(n,e,r){return t(this,n,e,r)}})},"9c6c":function(t,n,e){var r=e("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&e("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9def":function(t,n,e){var r=e("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,n,e){t.exports=!e("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},ac6a:function(t,n,e){for(var r=e("cadf"),i=e("0d58"),o=e("2aba"),a=e("7726"),u=e("32e9"),c=e("84f2"),f=e("2b4c"),s=f("iterator"),l=f("toStringTag"),p=c.Array,h={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},d=i(h),v=0;v<d.length;v++){var y,g=d[v],b=h[g],w=a[g],m=w&&w.prototype;if(m&&(m[s]||u(m,s,p),m[l]||u(m,l,g),c[g]=p,b))for(y in r)m[y]||o(m,y,r[y],!0)}},ba92:function(t,n,e){"use strict";var r=e("4bf8"),i=e("77f1"),o=e("9def");t.exports=[].copyWithin||function(t,n){var e=r(this),a=o(e.length),u=i(t,a),c=i(n,a),f=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===f?a:i(f,a))-c,a-u),l=1;c<u&&u<c+s&&(l=-1,c+=s-1,u+=s-1);while(s-- >0)c in e?e[u]=e[c]:delete e[u],u+=l,c+=l;return e}},be13:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,n,e){var r=e("6821"),i=e("9def"),o=e("77f1");t.exports=function(t){return function(n,e,a){var u,c=r(n),f=i(c.length),s=o(a,f);if(t&&e!=e){while(f>s)if(u=c[s++],u!=u)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},c69a:function(t,n,e){t.exports=!e("9e1e")&&!e("79e5")(function(){return 7!=Object.defineProperty(e("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},cadf:function(t,n,e){"use strict";var r=e("9c6c"),i=e("d53b"),o=e("84f2"),a=e("6821");t.exports=e("01f9")(Array,"Array",function(t,n){this._t=a(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,n,e){var r=e("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,n,e){var r=e("e853");t.exports=function(t,n){return new(r(t))(n)}},ce10:function(t,n,e){var r=e("69a8"),i=e("6821"),o=e("c366")(!1),a=e("613b")("IE_PROTO");t.exports=function(t,n){var e,u=i(t),c=0,f=[];for(e in u)e!=a&&r(u,e)&&f.push(e);while(n.length>c)r(u,e=n[c++])&&(~o(f,e)||f.push(e));return f}},d3f4:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},d8e8:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},da2a:function(t,n,e){"use strict";e.r(n);e("ac6a"),e("456d"),e("55dd"),e("63d9"),e("9c29");function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function i(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,n,e){return n&&i(t.prototype,n),e&&i(t,e),t}var a=function(){function t(){r(this,t),this.data={treeReady:!1,rawBinary:[],rawParsed:[],rawAverageBinary:[],rawAverageParsed:[],firstEntry:0,lastResolution:0,start:null,width:null,tree:[]},this.params={empty:!1,candleWidths:[],defaultExposition:30,fileSizes:{},resolutions:[],packetSize:0,dataRequestPending:!1,isInitialLoading:!1},this.requestInitialParams()}return o(t,[{key:"requestInitialParams",value:function(){this.sendMessage("REQUEST_PARAMS",{inner:["candleWidths"],outer:["fileSizes","resolutions","packetSize"]})}},{key:"initialLoading",value:function(t){var n=this.params.fileSizes[t],e=this.rebaseExposition(n,n),r=this.rebaseOffset(n-e,n);this.params.dataRequestPending=!0,this.params.isInitialLoading=!0,this.sendMessage("REQUEST_DATA",{offset:r,end:n-1,resolution:t})}},{key:"rebaseOffset",value:function(t,n){return t<0?0:t>n-1?n-1:t}},{key:"rebaseExposition",value:function(t,n){return t>n?n:t}},{key:"append",value:function(t){this.params.dataRequestPending=!1,this.appendedData=["candleData"],this.data.rawBinary=t,this.data.rawParsed=this.parseChartData(this.data.rawBinary),!0===this.params.isInitialLoading&&(this.appendedData.push("averageData"),this.data.averageBinary=t,this.data.averageParsed=this.data.rawParsed.slice(),this.params.isInitialLoading=!1),this.sendMessage("APPENDED",{type:this.appendedData})}},{key:"parseEntity",value:function(t){return{timestamp:new Uint32Array(t,0,1)[0],volume:new Float32Array(t,4,1)[0],open:new Float32Array(t,8,1)[0],high:new Float32Array(t,12,1)[0],low:new Float32Array(t,16,1)[0],close:new Float32Array(t,20,1)[0],average:new Float32Array(t,24,1)[0]}}},{key:"parseChartData",value:function(t){for(var n=[],e=0,r=0;e<t.byteLength;e+=this.params.packetSize,r++)n[r]=this.parseEntity(t.slice(e,e+this.params.packetSize));return n}},{key:"renderAverage",value:function(t,n){var e=this.data.averageParsed.length;if(e){var r=t/e,i={minTimestamp:this.data.averageParsed[0].timestamp,maxTimestamp:this.data.averageParsed[e-1].timestamp,path:[]},o=this.data.averageParsed.slice().sort(function(t,n){return t.average-n.average}),a=o[e-1].average,u=o[0].average,c=n/(a-u);i.path.push("M6 ".concat(c*(a-this.data.averageParsed[0].average)));for(var f=1;f<e;f++)i.path.push("L".concat(r*f," ").concat(c*(a-this.data.averageParsed[f].average)));this.sendMessage("RENDERED",{data:i,type:"average"})}}},{key:"setParams",value:function(t){var n=this;Object.keys(t).map(function(e){n.params[e]=t[e]}),this.data.treeReady=!1}},{key:"messageHandler",value:function(t){switch(t.data.task){case"SET_PARAMS":this.setParams(t.data.params),Object.keys(this.params.fileSizes).length>0&&this.params.resolutions.length>0&&this.params.fileSizes[this.params.resolutions[this.params.resolutions.length-1]]>0&&this.params.packetSize&&!this.params.dataRequestPending&&!this.data.rawBinary.length&&this.initialLoading(this.params.resolutions[this.params.resolutions.length-1]);break;case"APPEND":this.append(t.data.data);break;case"RENDER":switch(t.data.type){case"average":this.renderAverage(t.data.params);default:break}default:break}}},{key:"sendMessage",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;postMessage({type:t,body:n})}}]),t}(),u=new a;onmessage=function(t){u.messageHandler(t)}},dcbc:function(t,n,e){var r=e("2aba");t.exports=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}},e11e:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e853:function(t,n,e){var r=e("d3f4"),i=e("1169"),o=e("2b4c")("species");t.exports=function(t){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&(n=n[o],null===n&&(n=void 0))),void 0===n?Array:n}},ebd6:function(t,n,e){var r=e("cb7c"),i=e("d8e8"),o=e("2b4c")("species");t.exports=function(t,n){var e,a=r(t).constructor;return void 0===a||void 0==(e=r(a)[o])?n:i(e)}},ec30:function(t,n,e){"use strict";if(e("9e1e")){var r=e("2d00"),i=e("7726"),o=e("79e5"),a=e("5ca1"),u=e("0f88"),c=e("ed0b"),f=e("9b43"),s=e("f605"),l=e("4630"),p=e("32e9"),h=e("dcbc"),d=e("4588"),v=e("9def"),y=e("09fa"),g=e("77f1"),b=e("6a99"),w=e("69a8"),m=e("23c6"),x=e("d3f4"),S=e("4bf8"),P=e("33a4"),A=e("2aeb"),E=e("38fd"),O=e("9093").f,_=e("27ee"),L=e("ca5a"),T=e("2b4c"),k=e("0a49"),j=e("c366"),M=e("ebd6"),I=e("cadf"),F=e("84f2"),R=e("5cc5"),D=e("7a56"),N=e("36bd"),U=e("ba92"),B=e("86cc"),C=e("11e9"),V=B.f,W=C.f,z=i.RangeError,G=i.TypeError,q=i.Uint8Array,H="ArrayBuffer",Y="Shared"+H,Q="BYTES_PER_ELEMENT",J="prototype",K=Array[J],X=c.ArrayBuffer,Z=c.DataView,$=k(0),tt=k(2),nt=k(3),et=k(4),rt=k(5),it=k(6),ot=j(!0),at=j(!1),ut=I.values,ct=I.keys,ft=I.entries,st=K.lastIndexOf,lt=K.reduce,pt=K.reduceRight,ht=K.join,dt=K.sort,vt=K.slice,yt=K.toString,gt=K.toLocaleString,bt=T("iterator"),wt=T("toStringTag"),mt=L("typed_constructor"),xt=L("def_constructor"),St=u.CONSTR,Pt=u.TYPED,At=u.VIEW,Et="Wrong length!",Ot=k(1,function(t,n){return jt(M(t,t[xt]),n)}),_t=o(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),Lt=!!q&&!!q[J].set&&o(function(){new q(1).set({})}),Tt=function(t,n){var e=d(t);if(e<0||e%n)throw z("Wrong offset!");return e},kt=function(t){if(x(t)&&Pt in t)return t;throw G(t+" is not a typed array!")},jt=function(t,n){if(!(x(t)&&mt in t))throw G("It is not a typed array constructor!");return new t(n)},Mt=function(t,n){return It(M(t,t[xt]),n)},It=function(t,n){var e=0,r=n.length,i=jt(t,r);while(r>e)i[e]=n[e++];return i},Ft=function(t,n,e){V(t,n,{get:function(){return this._d[e]}})},Rt=function(t){var n,e,r,i,o,a,u=S(t),c=arguments.length,s=c>1?arguments[1]:void 0,l=void 0!==s,p=_(u);if(void 0!=p&&!P(p)){for(a=p.call(u),r=[],n=0;!(o=a.next()).done;n++)r.push(o.value);u=r}for(l&&c>2&&(s=f(s,arguments[2],2)),n=0,e=v(u.length),i=jt(this,e);e>n;n++)i[n]=l?s(u[n],n):u[n];return i},Dt=function(){var t=0,n=arguments.length,e=jt(this,n);while(n>t)e[t]=arguments[t++];return e},Nt=!!q&&o(function(){gt.call(new q(1))}),Ut=function(){return gt.apply(Nt?vt.call(kt(this)):kt(this),arguments)},Bt={copyWithin:function(t,n){return U.call(kt(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return et(kt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(kt(this),arguments)},filter:function(t){return Mt(this,tt(kt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(kt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return it(kt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){$(kt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(kt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(kt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ht.apply(kt(this),arguments)},lastIndexOf:function(t){return st.apply(kt(this),arguments)},map:function(t){return Ot(kt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return lt.apply(kt(this),arguments)},reduceRight:function(t){return pt.apply(kt(this),arguments)},reverse:function(){var t,n=this,e=kt(n).length,r=Math.floor(e/2),i=0;while(i<r)t=n[i],n[i++]=n[--e],n[e]=t;return n},some:function(t){return nt(kt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return dt.call(kt(this),t)},subarray:function(t,n){var e=kt(this),r=e.length,i=g(t,r);return new(M(e,e[xt]))(e.buffer,e.byteOffset+i*e.BYTES_PER_ELEMENT,v((void 0===n?r:g(n,r))-i))}},Ct=function(t,n){return Mt(this,vt.call(kt(this),t,n))},Vt=function(t){kt(this);var n=Tt(arguments[1],1),e=this.length,r=S(t),i=v(r.length),o=0;if(i+n>e)throw z(Et);while(o<i)this[n+o]=r[o++]},Wt={entries:function(){return ft.call(kt(this))},keys:function(){return ct.call(kt(this))},values:function(){return ut.call(kt(this))}},zt=function(t,n){return x(t)&&t[Pt]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Gt=function(t,n){return zt(t,n=b(n,!0))?l(2,t[n]):W(t,n)},qt=function(t,n,e){return!(zt(t,n=b(n,!0))&&x(e)&&w(e,"value"))||w(e,"get")||w(e,"set")||e.configurable||w(e,"writable")&&!e.writable||w(e,"enumerable")&&!e.enumerable?V(t,n,e):(t[n]=e.value,t)};St||(C.f=Gt,B.f=qt),a(a.S+a.F*!St,"Object",{getOwnPropertyDescriptor:Gt,defineProperty:qt}),o(function(){yt.call({})})&&(yt=gt=function(){return ht.call(this)});var Ht=h({},Bt);h(Ht,Wt),p(Ht,bt,Wt.values),h(Ht,{slice:Ct,set:Vt,constructor:function(){},toString:yt,toLocaleString:Ut}),Ft(Ht,"buffer","b"),Ft(Ht,"byteOffset","o"),Ft(Ht,"byteLength","l"),Ft(Ht,"length","e"),V(Ht,wt,{get:function(){return this[Pt]}}),t.exports=function(t,n,e,c){c=!!c;var f=t+(c?"Clamped":"")+"Array",l="get"+t,h="set"+t,d=i[f],g=d||{},b=d&&E(d),w=!d||!u.ABV,S={},P=d&&d[J],_=function(t,e){var r=t._d;return r.v[l](e*n+r.o,_t)},L=function(t,e,r){var i=t._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[h](e*n+i.o,r,_t)},T=function(t,n){V(t,n,{get:function(){return _(this,n)},set:function(t){return L(this,n,t)},enumerable:!0})};w?(d=e(function(t,e,r,i){s(t,d,f,"_d");var o,a,u,c,l=0,h=0;if(x(e)){if(!(e instanceof X||(c=m(e))==H||c==Y))return Pt in e?It(d,e):Rt.call(d,e);o=e,h=Tt(r,n);var g=e.byteLength;if(void 0===i){if(g%n)throw z(Et);if(a=g-h,a<0)throw z(Et)}else if(a=v(i)*n,a+h>g)throw z(Et);u=a/n}else u=y(e),a=u*n,o=new X(a);p(t,"_d",{b:o,o:h,l:a,e:u,v:new Z(o)});while(l<u)T(t,l++)}),P=d[J]=A(Ht),p(P,"constructor",d)):o(function(){d(1)})&&o(function(){new d(-1)})&&R(function(t){new d,new d(null),new d(1.5),new d(t)},!0)||(d=e(function(t,e,r,i){var o;return s(t,d,f),x(e)?e instanceof X||(o=m(e))==H||o==Y?void 0!==i?new g(e,Tt(r,n),i):void 0!==r?new g(e,Tt(r,n)):new g(e):Pt in e?It(d,e):Rt.call(d,e):new g(y(e))}),$(b!==Function.prototype?O(g).concat(O(b)):O(g),function(t){t in d||p(d,t,g[t])}),d[J]=P,r||(P.constructor=d));var k=P[bt],j=!!k&&("values"==k.name||void 0==k.name),M=Wt.values;p(d,mt,!0),p(P,Pt,f),p(P,At,!0),p(P,xt,d),(c?new d(1)[wt]==f:wt in P)||V(P,wt,{get:function(){return f}}),S[f]=d,a(a.G+a.W+a.F*(d!=g),S),a(a.S,f,{BYTES_PER_ELEMENT:n}),a(a.S+a.F*o(function(){g.of.call(d,1)}),f,{from:Rt,of:Dt}),Q in P||p(P,Q,n),a(a.P,f,Bt),D(f),a(a.P+a.F*Lt,f,{set:Vt}),a(a.P+a.F*!j,f,Wt),r||P.toString==yt||(P.toString=yt),a(a.P+a.F*o(function(){new d(1).slice()}),f,{slice:Ct}),a(a.P+a.F*(o(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!o(function(){P.toLocaleString.call([1,2])})),f,{toLocaleString:Ut}),F[f]=j?k:M,r||j||p(P,bt,M)}}else t.exports=function(){}},ed0b:function(t,n,e){"use strict";var r=e("7726"),i=e("9e1e"),o=e("2d00"),a=e("0f88"),u=e("32e9"),c=e("dcbc"),f=e("79e5"),s=e("f605"),l=e("4588"),p=e("9def"),h=e("09fa"),d=e("9093").f,v=e("86cc").f,y=e("36bd"),g=e("7f20"),b="ArrayBuffer",w="DataView",m="prototype",x="Wrong length!",S="Wrong index!",P=r[b],A=r[w],E=r.Math,O=r.RangeError,_=r.Infinity,L=P,T=E.abs,k=E.pow,j=E.floor,M=E.log,I=E.LN2,F="buffer",R="byteLength",D="byteOffset",N=i?"_b":F,U=i?"_l":R,B=i?"_o":D;function C(t,n,e){var r,i,o,a=new Array(e),u=8*e-n-1,c=(1<<u)-1,f=c>>1,s=23===n?k(2,-24)-k(2,-77):0,l=0,p=t<0||0===t&&1/t<0?1:0;for(t=T(t),t!=t||t===_?(i=t!=t?1:0,r=c):(r=j(M(t)/I),t*(o=k(2,-r))<1&&(r--,o*=2),t+=r+f>=1?s/o:s*k(2,1-f),t*o>=2&&(r++,o/=2),r+f>=c?(i=0,r=c):r+f>=1?(i=(t*o-1)*k(2,n),r+=f):(i=t*k(2,f-1)*k(2,n),r=0));n>=8;a[l++]=255&i,i/=256,n-=8);for(r=r<<n|i,u+=n;u>0;a[l++]=255&r,r/=256,u-=8);return a[--l]|=128*p,a}function V(t,n,e){var r,i=8*e-n-1,o=(1<<i)-1,a=o>>1,u=i-7,c=e-1,f=t[c--],s=127&f;for(f>>=7;u>0;s=256*s+t[c],c--,u-=8);for(r=s&(1<<-u)-1,s>>=-u,u+=n;u>0;r=256*r+t[c],c--,u-=8);if(0===s)s=1-a;else{if(s===o)return r?NaN:f?-_:_;r+=k(2,n),s-=a}return(f?-1:1)*r*k(2,s-n)}function W(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function z(t){return[255&t]}function G(t){return[255&t,t>>8&255]}function q(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function H(t){return C(t,52,8)}function Y(t){return C(t,23,4)}function Q(t,n,e){v(t[m],n,{get:function(){return this[e]}})}function J(t,n,e,r){var i=+e,o=h(i);if(o+n>t[U])throw O(S);var a=t[N]._b,u=o+t[B],c=a.slice(u,u+n);return r?c:c.reverse()}function K(t,n,e,r,i,o){var a=+e,u=h(a);if(u+n>t[U])throw O(S);for(var c=t[N]._b,f=u+t[B],s=r(+i),l=0;l<n;l++)c[f+l]=s[o?l:n-l-1]}if(a.ABV){if(!f(function(){P(1)})||!f(function(){new P(-1)})||f(function(){return new P,new P(1.5),new P(NaN),P.name!=b})){P=function(t){return s(this,P),new L(h(t))};for(var X,Z=P[m]=L[m],$=d(L),tt=0;$.length>tt;)(X=$[tt++])in P||u(P,X,L[X]);o||(Z.constructor=P)}var nt=new A(new P(2)),et=A[m].setInt8;nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||c(A[m],{setInt8:function(t,n){et.call(this,t,n<<24>>24)},setUint8:function(t,n){et.call(this,t,n<<24>>24)}},!0)}else P=function(t){s(this,P,b);var n=h(t);this._b=y.call(new Array(n),0),this[U]=n},A=function(t,n,e){s(this,A,w),s(t,P,w);var r=t[U],i=l(n);if(i<0||i>r)throw O("Wrong offset!");if(e=void 0===e?r-i:p(e),i+e>r)throw O(x);this[N]=t,this[B]=i,this[U]=e},i&&(Q(P,R,"_l"),Q(A,F,"_b"),Q(A,R,"_l"),Q(A,D,"_o")),c(A[m],{getInt8:function(t){return J(this,1,t)[0]<<24>>24},getUint8:function(t){return J(this,1,t)[0]},getInt16:function(t){var n=J(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=J(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return W(J(this,4,t,arguments[1]))},getUint32:function(t){return W(J(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return V(J(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return V(J(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){K(this,1,t,z,n)},setUint8:function(t,n){K(this,1,t,z,n)},setInt16:function(t,n){K(this,2,t,G,n,arguments[2])},setUint16:function(t,n){K(this,2,t,G,n,arguments[2])},setInt32:function(t,n){K(this,4,t,q,n,arguments[2])},setUint32:function(t,n){K(this,4,t,q,n,arguments[2])},setFloat32:function(t,n){K(this,4,t,Y,n,arguments[2])},setFloat64:function(t,n){K(this,8,t,H,n,arguments[2])}});g(P,b),g(A,w),u(A[m],a.VIEW,!0),n[b]=P,n[w]=A},f605:function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},fab2:function(t,n,e){var r=e("7726").document;t.exports=r&&r.documentElement}});