vis-network
Version:
A dynamic, browser-based visualization library.
26 lines • 838 kB
JavaScript
/**
* vis-network - network
* http://visjs.org/
*
* A dynamic, browser-based visualization library.
*
* @version 6.3.1
* @date 2019-10-29T23:06:18Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2018-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).vis=t.vis||{})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(t,e){return t(e={exports:{}},e.exports),e.exports}function A(t){return t&&t.default||t}var i,I,C,n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),r=function(t){try{return!!t()}catch(t){return!0}},s=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),a={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,h={f:d&&!a.call({1:2},1)?function(t){var e=d(this,t);return!!e&&e.enumerable}:a},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},c={}.toString,u=function(t){return c.call(t).slice(8,-1)},f="".split,p=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?f.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return p(v(t))},y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!y(t))return t;var g,A;if(e&&"function"==typeof(g=t.toString)&&!y(A=g.call(t)))return A;if("function"==typeof(g=t.valueOf)&&!y(A=g.call(t)))return A;if(!e&&"function"==typeof(g=t.toString)&&!y(A=g.call(t)))return A;throw TypeError("Can't convert object to primitive value")},w={}.hasOwnProperty,x=function(t,e){return w.call(t,e)},k=o.document,D=y(k)&&y(k.createElement),O=function(t){return D?k.createElement(t):{}},N=!s&&!r((function(){return 7!=Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a})),M=Object.getOwnPropertyDescriptor,E={f:s?M:function(t,e){if(t=m(t),e=b(e,!0),N)try{return M(t,e)}catch(t){}if(x(t,e))return l(!h.f.call(t,e),t[e])}},T=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},Z=Object.defineProperty,R={f:s?Z:function(t,e,g){if(T(t),e=b(e,!0),T(g),N)try{return Z(t,e,g)}catch(t){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(t[e]=g.value),t}},S=s?function(t,e,g){return R.f(t,e,l(1,g))}:function(t,e,g){return t[e]=g,t},G=function(t,e){try{S(o,t,e)}catch(g){o[t]=e}return e},B=o["__core-js_shared__"]||G("__core-js_shared__",{}),F=g((function(t){(t.exports=function(t,e){return B[t]||(B[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.3.4",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),Y=F("native-function-to-string",Function.toString),L=o.WeakMap,W="function"==typeof L&&/native code/.test(Y.call(L)),_=0,Q=Math.random(),z=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++_+Q).toString(36)},P=F("keys"),j=function(t){return P[t]||(P[t]=z(t))},V={},U=o.WeakMap;if(W){var X=new U,H=X.get,J=X.has,K=X.set;i=function(t,e){return K.call(X,t,e),e},I=function(t){return H.call(X,t)||{}},C=function(t){return J.call(X,t)}}else{var q=j("state");V[q]=!0,i=function(t,e){return S(t,q,e),e},I=function(t){return x(t,q)?t[q]:{}},C=function(t){return x(t,q)}}var $,tt={set:i,get:I,has:C,enforce:function(t){return C(t)?I(t):i(t,{})},getterFor:function(t){return function(e){var g;if(!y(e)||(g=I(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return g}}},et=g((function(t){var e=tt.get,g=tt.enforce,A=String(Y).split("toString");F("inspectSource",(function(t){return Y.call(t)})),(t.exports=function(t,e,i,I){var C=!!I&&!!I.unsafe,n=!!I&&!!I.enumerable,r=!!I&&!!I.noTargetGet;"function"==typeof i&&("string"!=typeof e||x(i,"name")||S(i,"name",e),g(i).source=A.join("string"==typeof e?e:"")),t!==o?(C?!r&&t[e]&&(n=!0):delete t[e],n?t[e]=i:S(t,e,i)):n?t[e]=i:G(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Y.call(this)}))})),gt=o,At=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?At(gt[t])||At(o[t]):gt[t]&>[t][e]||o[t]&&o[t][e]},It=Math.ceil,Ct=Math.floor,nt=function(t){return isNaN(t=+t)?0:(t>0?Ct:It)(t)},ot=Math.min,rt=function(t){return t>0?ot(nt(t),9007199254740991):0},st=Math.max,at=Math.min,dt=function(t,e){var g=nt(t);return g<0?st(g+e,0):at(g,e)},ht=function(t){return function(e,g,A){var i,I=m(e),C=rt(I.length),n=dt(A,C);if(t&&g!=g){for(;C>n;)if((i=I[n++])!=i)return!0}else for(;C>n;n++)if((t||n in I)&&I[n]===g)return t||n||0;return!t&&-1}},lt={includes:ht(!0),indexOf:ht(!1)},ct=lt.indexOf,ut=function(t,e){var g,A=m(t),i=0,I=[];for(g in A)!x(V,g)&&x(A,g)&&I.push(g);for(;e.length>i;)x(A,g=e[i++])&&(~ct(I,g)||I.push(g));return I},ft=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pt=ft.concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return ut(t,pt)}},mt={f:Object.getOwnPropertySymbols},yt=it("Reflect","ownKeys")||function(t){var e=vt.f(T(t)),g=mt.f;return g?e.concat(g(t)):e},bt=function(t,e){for(var g=yt(e),A=R.f,i=E.f,I=0;I<g.length;I++){var C=g[I];x(t,C)||A(t,C,i(e,C))}},wt=/#|\.prototype\./,xt=function(t,e){var g=Dt[kt(t)];return g==Nt||g!=Ot&&("function"==typeof e?r(e):!!e)},kt=xt.normalize=function(t){return String(t).replace(wt,".").toLowerCase()},Dt=xt.data={},Ot=xt.NATIVE="N",Nt=xt.POLYFILL="P",Mt=xt,Et=E.f,Tt=function(t,e){var g,A,i,I,C,n=t.target,r=t.global,s=t.stat;if(g=r?o:s?o[n]||G(n,{}):(o[n]||{}).prototype)for(A in e){if(I=e[A],i=t.noTargetGet?(C=Et(g,A))&&C.value:g[A],!Mt(r?A:n+(s?".":"#")+A,t.forced)&&void 0!==i){if(typeof I==typeof i)continue;bt(I,i)}(t.sham||i&&i.sham)&&S(I,"sham",!0),et(g,A,I,t)}},Zt=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())})),Rt=o.Symbol,St=F("wks"),Gt=function(t){return St[t]||(St[t]=Zt&&Rt[t]||(Zt?Rt:z)("Symbol."+t))},Bt=Gt("toStringTag"),Ft="Arguments"==u(function(){return arguments}()),Yt=function(t){var e,g,A;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(g=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Bt))?g:Ft?u(e):"Object"==(A=u(e))&&"function"==typeof e.callee?"Arguments":A},Lt=function(t){return Object(v(t))},Wt=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),_t=j("IE_PROTO"),Qt=Object.prototype,zt=Wt?Object.getPrototypeOf:function(t){return t=Lt(t),x(t,_t)?t[_t]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Qt:null},Pt=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,g={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(g,[]),e=g instanceof Array}catch(t){}return function(g,A){return T(g),function(t){if(!y(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(A),e?t.call(g,A):g.__proto__=A,g}}():void 0),jt=R.f,Vt=o.DataView,Ut=Vt&&Vt.prototype,Xt=o.Int8Array,Ht=Xt&&Xt.prototype,Jt=o.Uint8ClampedArray,Kt=Jt&&Jt.prototype,qt=Xt&&zt(Xt),$t=Ht&&zt(Ht),te=Object.prototype,ee=te.isPrototypeOf,ge=Gt("toStringTag"),Ae=z("TYPED_ARRAY_TAG"),ie=!(!o.ArrayBuffer||!Vt),Ie=ie&&!!Pt&&"Opera"!==Yt(o.opera),Ce=!1,ne={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},oe=function(t){return y(t)&&x(ne,Yt(t))};for($ in ne)o[$]||(Ie=!1);if((!Ie||"function"!=typeof qt||qt===Function.prototype)&&(qt=function(){throw TypeError("Incorrect invocation")},Ie))for($ in ne)o[$]&&Pt(o[$],qt);if((!Ie||!$t||$t===te)&&($t=qt.prototype,Ie))for($ in ne)o[$]&&Pt(o[$].prototype,$t);if(Ie&&zt(Kt)!==$t&&Pt(Kt,$t),s&&!x($t,ge))for($ in Ce=!0,jt($t,ge,{get:function(){return y(this)?this[Ae]:void 0}}),ne)o[$]&&S(o[$],Ae,$);ie&&Pt&&zt(Ut)!==te&&Pt(Ut,te);var re={NATIVE_ARRAY_BUFFER:ie,NATIVE_ARRAY_BUFFER_VIEWS:Ie,TYPED_ARRAY_TAG:Ce&&Ae,aTypedArray:function(t){if(oe(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(Pt){if(ee.call(qt,t))return t}else for(var e in ne)if(x(ne,$)){var g=o[e];if(g&&(t===g||ee.call(g,t)))return t}throw TypeError("Target is not a typed array constructor")},exportProto:function(t,e,g){if(s){if(g)for(var A in ne){var i=o[A];i&&x(i.prototype,t)&&delete i.prototype[t]}$t[t]&&!g||et($t,t,g?e:Ie&&Ht[t]||e)}},exportStatic:function(t,e,g){var A,i;if(s){if(Pt){if(g)for(A in ne)(i=o[A])&&x(i,t)&&delete i[t];if(qt[t]&&!g)return;try{return et(qt,t,g?e:Ie&&Xt[t]||e)}catch(t){}}for(A in ne)!(i=o[A])||i[t]&&!g||et(i,t,e)}},isView:function(t){var e=Yt(t);return"DataView"===e||x(ne,e)},isTypedArray:oe,TypedArray:qt,TypedArrayPrototype:$t},se=function(t,e,g){for(var A in e)et(t,A,e[A],g);return t},ae=function(t,e,g){if(!(t instanceof e))throw TypeError("Incorrect "+(g?g+" ":"")+"invocation");return t},de=function(t){if(void 0===t)return 0;var e=nt(t),g=rt(e);if(e!==g)throw RangeError("Wrong length or index");return g},he=function(t){for(var e=Lt(this),g=rt(e.length),A=arguments.length,i=dt(A>1?arguments[1]:void 0,g),I=A>2?arguments[2]:void 0,C=void 0===I?g:dt(I,g);C>i;)e[i++]=t;return e},le=R.f,ce=Gt("toStringTag"),ue=function(t,e,g){t&&!x(t=g?t:t.prototype,ce)&&le(t,ce,{configurable:!0,value:e})},fe=re.NATIVE_ARRAY_BUFFER,pe=vt.f,ve=R.f,me=tt.get,ye=tt.set,be=o.ArrayBuffer,we=be,xe=o.DataView,ke=o.Math,De=o.RangeError,Oe=ke.abs,Ne=ke.pow,Me=ke.floor,Ee=ke.log,Te=ke.LN2,Ze=function(t,e,g){var A,i,I,C=new Array(g),n=8*g-e-1,o=(1<<n)-1,r=o>>1,s=23===e?Ne(2,-24)-Ne(2,-77):0,a=t<0||0===t&&1/t<0?1:0,d=0;for((t=Oe(t))!=t||t===1/0?(i=t!=t?1:0,A=o):(A=Me(Ee(t)/Te),t*(I=Ne(2,-A))<1&&(A--,I*=2),(t+=A+r>=1?s/I:s*Ne(2,1-r))*I>=2&&(A++,I/=2),A+r>=o?(i=0,A=o):A+r>=1?(i=(t*I-1)*Ne(2,e),A+=r):(i=t*Ne(2,r-1)*Ne(2,e),A=0));e>=8;C[d++]=255&i,i/=256,e-=8);for(A=A<<e|i,n+=e;n>0;C[d++]=255&A,A/=256,n-=8);return C[--d]|=128*a,C},Re=function(t,e){var g,A=t.length,i=8*A-e-1,I=(1<<i)-1,C=I>>1,n=i-7,o=A-1,r=t[o--],s=127&r;for(r>>=7;n>0;s=256*s+t[o],o--,n-=8);for(g=s&(1<<-n)-1,s>>=-n,n+=e;n>0;g=256*g+t[o],o--,n-=8);if(0===s)s=1-C;else{if(s===I)return g?NaN:r?-1/0:1/0;g+=Ne(2,e),s-=C}return(r?-1:1)*g*Ne(2,s-e)},Se=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Ge=function(t){return[255&t]},Be=function(t){return[255&t,t>>8&255]},Fe=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Ye=function(t){return Ze(t,23,4)},Le=function(t){return Ze(t,52,8)},We=function(t,e){ve(t.prototype,e,{get:function(){return me(this)[e]}})},_e=function(t,e,g,A){var i=de(+g),I=me(t);if(i+e>I.byteLength)throw De("Wrong index");var C=me(I.buffer).bytes,n=i+I.byteOffset,o=C.slice(n,n+e);return A?o:o.reverse()},Qe=function(t,e,g,A,i,I){var C=de(+g),n=me(t);if(C+e>n.byteLength)throw De("Wrong index");for(var o=me(n.buffer).bytes,r=C+n.byteOffset,s=A(+i),a=0;a<e;a++)o[r+a]=s[I?a:e-a-1]};if(fe){if(!r((function(){be(1)}))||!r((function(){new be(-1)}))||r((function(){return new be,new be(1.5),new be(NaN),"ArrayBuffer"!=be.name}))){for(var ze,Pe=(we=function(t){return ae(this,we),new be(de(t))}).prototype=be.prototype,je=pe(be),Ve=0;je.length>Ve;)(ze=je[Ve++])in we||S(we,ze,be[ze]);Pe.constructor=we}var Ue=new xe(new we(2)),Xe=xe.prototype.setInt8;Ue.setInt8(0,2147483648),Ue.setInt8(1,2147483649),!Ue.getInt8(0)&&Ue.getInt8(1)||se(xe.prototype,{setInt8:function(t,e){Xe.call(this,t,e<<24>>24)},setUint8:function(t,e){Xe.call(this,t,e<<24>>24)}},{unsafe:!0})}else we=function(t){ae(this,we,"ArrayBuffer");var e=de(t);ye(this,{bytes:he.call(new Array(e),0),byteLength:e}),s||(this.byteLength=e)},xe=function(t,e,g){ae(this,xe,"DataView"),ae(t,we,"DataView");var A=me(t).byteLength,i=nt(e);if(i<0||i>A)throw De("Wrong offset");if(i+(g=void 0===g?A-i:rt(g))>A)throw De("Wrong length");ye(this,{buffer:t,byteLength:g,byteOffset:i}),s||(this.buffer=t,this.byteLength=g,this.byteOffset=i)},s&&(We(we,"byteLength"),We(xe,"buffer"),We(xe,"byteLength"),We(xe,"byteOffset")),se(xe.prototype,{getInt8:function(t){return _e(this,1,t)[0]<<24>>24},getUint8:function(t){return _e(this,1,t)[0]},getInt16:function(t){var e=_e(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=_e(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Se(_e(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Se(_e(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Re(_e(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Re(_e(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Qe(this,1,t,Ge,e)},setUint8:function(t,e){Qe(this,1,t,Ge,e)},setInt16:function(t,e){Qe(this,2,t,Be,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Qe(this,2,t,Be,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Qe(this,4,t,Fe,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Qe(this,4,t,Fe,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Qe(this,4,t,Ye,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Qe(this,8,t,Le,e,arguments.length>2?arguments[2]:void 0)}});ue(we,"ArrayBuffer"),ue(xe,"DataView");var He={ArrayBuffer:we,DataView:xe},Je=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Ke=Gt("species"),qe=function(t,e){var g,A=T(t).constructor;return void 0===A||null==(g=T(A)[Ke])?e:Je(g)},$e=He.ArrayBuffer,tg=He.DataView,eg=$e.prototype.slice,gg=r((function(){return!new $e(2).slice(1,void 0).byteLength}));Tt({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:gg},{slice:function(t,e){if(void 0!==eg&&void 0===e)return eg.call(T(this),t);for(var g=T(this).byteLength,A=dt(t,g),i=dt(void 0===e?g:e,g),I=new(qe(this,$e))(rt(i-A)),C=new tg(this),n=new tg(I),o=0;A<i;)n.setUint8(o++,C.getUint8(A++));return I}}),Tt({global:!0,forced:!re.NATIVE_ARRAY_BUFFER},{DataView:He.DataView});var Ag={};Ag[Gt("toStringTag")]="z";var ig="[object z]"!==String(Ag)?function(){return"[object "+Yt(this)+"]"}:Ag.toString,Ig=Object.prototype;ig!==Ig.toString&&et(Ig,"toString",ig,{unsafe:!0}),"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.circle=function(t,e,g){this.beginPath(),this.arc(t,e,g,0,2*Math.PI,!1),this.closePath()},CanvasRenderingContext2D.prototype.square=function(t,e,g){this.beginPath(),this.rect(t-g,e-g,2*g,2*g),this.closePath()},CanvasRenderingContext2D.prototype.triangle=function(t,e,g){this.beginPath(),e+=.275*(g*=1.15);var A=2*g,i=A/2,I=Math.sqrt(3)/6*A,C=Math.sqrt(A*A-i*i);this.moveTo(t,e-(C-I)),this.lineTo(t+i,e+I),this.lineTo(t-i,e+I),this.lineTo(t,e-(C-I)),this.closePath()},CanvasRenderingContext2D.prototype.triangleDown=function(t,e,g){this.beginPath(),e-=.275*(g*=1.15);var A=2*g,i=A/2,I=Math.sqrt(3)/6*A,C=Math.sqrt(A*A-i*i);this.moveTo(t,e+(C-I)),this.lineTo(t+i,e-I),this.lineTo(t-i,e-I),this.lineTo(t,e+(C-I)),this.closePath()},CanvasRenderingContext2D.prototype.star=function(t,e,g){this.beginPath(),e+=.1*(g*=.82);for(var A=0;A<10;A++){var i=A%2==0?1.3*g:.5*g;this.lineTo(t+i*Math.sin(2*A*Math.PI/10),e-i*Math.cos(2*A*Math.PI/10))}this.closePath()},CanvasRenderingContext2D.prototype.diamond=function(t,e,g){this.beginPath(),this.lineTo(t,e+g),this.lineTo(t+g,e),this.lineTo(t,e-g),this.lineTo(t-g,e),this.closePath()},CanvasRenderingContext2D.prototype.roundRect=function(t,e,g,A,i){var I=Math.PI/180;g-2*i<0&&(i=g/2),A-2*i<0&&(i=A/2),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+g-i,e),this.arc(t+g-i,e+i,i,270*I,360*I,!1),this.lineTo(t+g,e+A-i),this.arc(t+g-i,e+A-i,i,0,90*I,!1),this.lineTo(t+i,e+A),this.arc(t+i,e+A-i,i,90*I,180*I,!1),this.lineTo(t,e+i),this.arc(t+i,e+i,i,180*I,270*I,!1),this.closePath()},CanvasRenderingContext2D.prototype.ellipse_vis=function(t,e,g,A){var i=g/2*.5522848,I=A/2*.5522848,C=t+g,n=e+A,o=t+g/2,r=e+A/2;this.beginPath(),this.moveTo(t,r),this.bezierCurveTo(t,r-I,o-i,e,o,e),this.bezierCurveTo(o+i,e,C,r-I,C,r),this.bezierCurveTo(C,r+I,o+i,n,o,n),this.bezierCurveTo(o-i,n,t,r+I,t,r),this.closePath()},CanvasRenderingContext2D.prototype.database=function(t,e,g,A){var i=A*(1/3),I=g/2*.5522848,C=i/2*.5522848,n=t+g,o=e+i,r=t+g/2,s=e+i/2,a=e+(A-i/2),d=e+A;this.beginPath(),this.moveTo(n,s),this.bezierCurveTo(n,s+C,r+I,o,r,o),this.bezierCurveTo(r-I,o,t,s+C,t,s),this.bezierCurveTo(t,s-C,r-I,e,r,e),this.bezierCurveTo(r+I,e,n,s-C,n,s),this.lineTo(n,a),this.bezierCurveTo(n,a+C,r+I,d,r,d),this.bezierCurveTo(r-I,d,t,a+C,t,a),this.lineTo(t,s)},CanvasRenderingContext2D.prototype.dashedLine=function(t,e,g,A,i){this.beginPath(),this.moveTo(t,e);for(var I=i.length,C=g-t,n=A-e,o=n/C,r=Math.sqrt(C*C+n*n),s=0,a=!0,d=0,h=+i[0];r>=.1;)(h=+i[s++%I])>r&&(h=r),d=Math.sqrt(h*h/(1+o*o)),t+=d=C<0?-d:d,e+=o*d,!0===a?this.lineTo(t,e):this.moveTo(t,e),r-=h,a=!a},CanvasRenderingContext2D.prototype.hexagon=function(t,e,g){this.beginPath();var A=2*Math.PI/6;this.moveTo(t+g,e);for(var i=1;i<6;i++)this.lineTo(t+g*Math.cos(A*i),e+g*Math.sin(A*i));this.closePath()});var Cg,ng,og=Array.isArray||function(t){return"Array"==u(t)},rg=function(t,e,g){var A=b(e);A in t?R.f(t,A,l(0,g)):t[A]=g},sg=it("navigator","userAgent")||"",ag=o.process,dg=ag&&ag.versions,hg=dg&&dg.v8;hg?ng=(Cg=hg.split("."))[0]+Cg[1]:sg&&(Cg=sg.match(/Chrome\/(\d+)/))&&(ng=Cg[1]);var lg=ng&&+ng,cg=Gt("species"),ug=function(t){return lg>=51||!r((function(){var e=[];return(e.constructor={})[cg]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},fg=Gt("species"),pg=[].slice,vg=Math.max;Tt({target:"Array",proto:!0,forced:!ug("slice")},{slice:function(t,e){var g,A,i,I=m(this),C=rt(I.length),n=dt(t,C),o=dt(void 0===e?C:e,C);if(og(I)&&("function"!=typeof(g=I.constructor)||g!==Array&&!og(g.prototype)?y(g)&&null===(g=g[fg])&&(g=void 0):g=void 0,g===Array||void 0===g))return pg.call(I,n,o);for(A=new(void 0===g?Array:g)(vg(o-n,0)),i=0;n<o;n++,i++)n in I&&rg(A,i,I[n]);return A.length=i,A}});var mg=Gt("species"),yg=function(t,e){var g;return og(t)&&("function"!=typeof(g=t.constructor)||g!==Array&&!og(g.prototype)?y(g)&&null===(g=g[mg])&&(g=void 0):g=void 0),new(void 0===g?Array:g)(0===e?0:e)},bg=Math.max,wg=Math.min;Tt({target:"Array",proto:!0,forced:!ug("splice")},{splice:function(t,e){var g,A,i,I,C,n,o=Lt(this),r=rt(o.length),s=dt(t,r),a=arguments.length;if(0===a?g=A=0:1===a?(g=0,A=r-s):(g=a-2,A=wg(bg(nt(e),0),r-s)),r+g-A>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=yg(o,A),I=0;I<A;I++)(C=s+I)in o&&rg(i,I,o[C]);if(i.length=A,g<A){for(I=s;I<r-A;I++)n=I+g,(C=I+A)in o?o[n]=o[C]:delete o[n];for(I=r;I>r-A+g;I--)delete o[I-1]}else if(g>A)for(I=r-A;I>s;I--)n=I+g-1,(C=I+A-1)in o?o[n]=o[C]:delete o[n];for(I=0;I<g;I++)o[I+s]=arguments[I+2];return o.length=r-A+g,i}});var xg=g((function(t){function e(t){if(t)return function(t){for(var g in e.prototype)t[g]=e.prototype[g];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function g(){this.off(t,g),e.apply(this,arguments)}return g.fn=e,this.on(t,g),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var g,A=this._callbacks["$"+t];if(!A)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<A.length;i++)if((g=A[i])===e||g.fn===e){A.splice(i,1);break}return 0===A.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),g=this._callbacks["$"+t],A=1;A<arguments.length;A++)e[A-1]=arguments[A];if(g){A=0;for(var i=(g=g.slice(0)).length;A<i;++A)g[A].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}})),kg=Object.keys||function(t){return ut(t,ft)},Dg=s?Object.defineProperties:function(t,e){T(t);for(var g,A=kg(e),i=A.length,I=0;i>I;)R.f(t,g=A[I++],e[g]);return t},Og=it("document","documentElement"),Ng=j("IE_PROTO"),Mg=function(){},Eg=function(){var t,e=O("iframe"),g=ft.length;for(e.style.display="none",Og.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Eg=t.F;g--;)delete Eg.prototype[ft[g]];return Eg()},Tg=Object.create||function(t,e){var g;return null!==t?(Mg.prototype=T(t),g=new Mg,Mg.prototype=null,g[Ng]=t):g=Eg(),void 0===e?g:Dg(g,e)};V[Ng]=!0;var Zg=vt.f,Rg={}.toString,Sg="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gg={f:function(t){return Sg&&"[object Window]"==Rg.call(t)?function(t){try{return Zg(t)}catch(t){return Sg.slice()}}(t):Zg(m(t))}},Bg={f:Gt},Fg=R.f,Yg=function(t){var e=gt.Symbol||(gt.Symbol={});x(e,t)||Fg(e,t,{value:Bg.f(t)})},Lg=function(t,e,g){if(Je(t),void 0===e)return t;switch(g){case 0:return function(){return t.call(e)};case 1:return function(g){return t.call(e,g)};case 2:return function(g,A){return t.call(e,g,A)};case 3:return function(g,A,i){return t.call(e,g,A,i)}}return function(){return t.apply(e,arguments)}},Wg=[].push,_g=function(t){var e=1==t,g=2==t,A=3==t,i=4==t,I=6==t,C=5==t||I;return function(n,o,r,s){for(var a,d,h=Lt(n),l=p(h),c=Lg(o,r,3),u=rt(l.length),f=0,v=s||yg,m=e?v(n,u):g?v(n,0):void 0;u>f;f++)if((C||f in l)&&(d=c(a=l[f],f,h),t))if(e)m[f]=d;else if(d)switch(t){case 3:return!0;case 5:return a;case 6:return f;case 2:Wg.call(m,a)}else if(i)return!1;return I?-1:A||i?i:m}},Qg={forEach:_g(0),map:_g(1),filter:_g(2),some:_g(3),every:_g(4),find:_g(5),findIndex:_g(6)},zg=Qg.forEach,Pg=j("hidden"),jg=Gt("toPrimitive"),Vg=tt.set,Ug=tt.getterFor("Symbol"),Xg=Object.prototype,Hg=o.Symbol,Jg=o.JSON,Kg=Jg&&Jg.stringify,qg=E.f,$g=R.f,tA=Gg.f,eA=h.f,gA=F("symbols"),AA=F("op-symbols"),iA=F("string-to-symbol-registry"),IA=F("symbol-to-string-registry"),CA=F("wks"),nA=o.QObject,oA=!nA||!nA.prototype||!nA.prototype.findChild,rA=s&&r((function(){return 7!=Tg($g({},"a",{get:function(){return $g(this,"a",{value:7}).a}})).a}))?function(t,e,g){var A=qg(Xg,e);A&&delete Xg[e],$g(t,e,g),A&&t!==Xg&&$g(Xg,e,A)}:$g,sA=function(t,e){var g=gA[t]=Tg(Hg.prototype);return Vg(g,{type:"Symbol",tag:t,description:e}),s||(g.description=e),g},aA=Zt&&"symbol"==typeof Hg.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Hg},dA=function(t,e,g){t===Xg&&dA(AA,e,g),T(t);var A=b(e,!0);return T(g),x(gA,A)?(g.enumerable?(x(t,Pg)&&t[Pg][A]&&(t[Pg][A]=!1),g=Tg(g,{enumerable:l(0,!1)})):(x(t,Pg)||$g(t,Pg,l(1,{})),t[Pg][A]=!0),rA(t,A,g)):$g(t,A,g)},hA=function(t,e){T(t);var g=m(e),A=kg(g).concat(fA(g));return zg(A,(function(e){s&&!lA.call(g,e)||dA(t,e,g[e])})),t},lA=function(t){var e=b(t,!0),g=eA.call(this,e);return!(this===Xg&&x(gA,e)&&!x(AA,e))&&(!(g||!x(this,e)||!x(gA,e)||x(this,Pg)&&this[Pg][e])||g)},cA=function(t,e){var g=m(t),A=b(e,!0);if(g!==Xg||!x(gA,A)||x(AA,A)){var i=qg(g,A);return!i||!x(gA,A)||x(g,Pg)&&g[Pg][A]||(i.enumerable=!0),i}},uA=function(t){var e=tA(m(t)),g=[];return zg(e,(function(t){x(gA,t)||x(V,t)||g.push(t)})),g},fA=function(t){var e=t===Xg,g=tA(e?AA:m(t)),A=[];return zg(g,(function(t){!x(gA,t)||e&&!x(Xg,t)||A.push(gA[t])})),A};Zt||(et((Hg=function(){if(this instanceof Hg)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=z(t),g=function(t){this===Xg&&g.call(AA,t),x(this,Pg)&&x(this[Pg],e)&&(this[Pg][e]=!1),rA(this,e,l(1,t))};return s&&oA&&rA(Xg,e,{configurable:!0,set:g}),sA(e,t)}).prototype,"toString",(function(){return Ug(this).tag})),h.f=lA,R.f=dA,E.f=cA,vt.f=Gg.f=uA,mt.f=fA,s&&($g(Hg.prototype,"description",{configurable:!0,get:function(){return Ug(this).description}}),et(Xg,"propertyIsEnumerable",lA,{unsafe:!0})),Bg.f=function(t){return sA(Gt(t),t)}),Tt({global:!0,wrap:!0,forced:!Zt,sham:!Zt},{Symbol:Hg}),zg(kg(CA),(function(t){Yg(t)})),Tt({target:"Symbol",stat:!0,forced:!Zt},{for:function(t){var e=String(t);if(x(iA,e))return iA[e];var g=Hg(e);return iA[e]=g,IA[g]=e,g},keyFor:function(t){if(!aA(t))throw TypeError(t+" is not a symbol");if(x(IA,t))return IA[t]},useSetter:function(){oA=!0},useSimple:function(){oA=!1}}),Tt({target:"Object",stat:!0,forced:!Zt,sham:!s},{create:function(t,e){return void 0===e?Tg(t):hA(Tg(t),e)},defineProperty:dA,defineProperties:hA,getOwnPropertyDescriptor:cA}),Tt({target:"Object",stat:!0,forced:!Zt},{getOwnPropertyNames:uA,getOwnPropertySymbols:fA}),Tt({target:"Object",stat:!0,forced:r((function(){mt.f(1)}))},{getOwnPropertySymbols:function(t){return mt.f(Lt(t))}}),Jg&&Tt({target:"JSON",stat:!0,forced:!Zt||r((function(){var t=Hg();return"[null]"!=Kg([t])||"{}"!=Kg({a:t})||"{}"!=Kg(Object(t))}))},{stringify:function(t){for(var e,g,A=[t],i=1;arguments.length>i;)A.push(arguments[i++]);if(g=e=A[1],(y(e)||void 0!==t)&&!aA(t))return og(e)||(e=function(t,e){if("function"==typeof g&&(e=g.call(this,t,e)),!aA(e))return e}),A[1]=e,Kg.apply(Jg,A)}}),Hg.prototype[jg]||S(Hg.prototype,jg,Hg.prototype.valueOf),ue(Hg,"Symbol"),V[Pg]=!0;var pA=R.f,vA=o.Symbol;if(s&&"function"==typeof vA&&(!("description"in vA.prototype)||void 0!==vA().description)){var mA={},yA=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof yA?new vA(t):void 0===t?vA():vA(t);return""===t&&(mA[e]=!0),e};bt(yA,vA);var bA=yA.prototype=vA.prototype;bA.constructor=yA;var wA=bA.toString,xA="Symbol(test)"==String(vA("test")),kA=/^Symbol\((.*)\)[^)]+$/;pA(bA,"description",{configurable:!0,get:function(){var t=y(this)?this.valueOf():this,e=wA.call(t);if(x(mA,t))return"";var g=xA?e.slice(7,-1):e.replace(kA,"$1");return""===g?void 0:g}}),Tt({global:!0,forced:!0},{Symbol:yA})}Yg("iterator");var DA=Gt("isConcatSpreadable"),OA=!r((function(){var t=[];return t[DA]=!1,t.concat()[0]!==t})),NA=ug("concat"),MA=function(t){if(!y(t))return!1;var e=t[DA];return void 0!==e?!!e:og(t)};Tt({target:"Array",proto:!0,forced:!OA||!NA},{concat:function(t){var e,g,A,i,I,C=Lt(this),n=yg(C,0),o=0;for(e=-1,A=arguments.length;e<A;e++)if(I=-1===e?C:arguments[e],MA(I)){if(o+(i=rt(I.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(g=0;g<i;g++,o++)g in I&&rg(n,o,I[g])}else{if(o>=9007199254740991)throw TypeError("Maximum allowed index exceeded");rg(n,o++,I)}return n.length=o,n}});var EA=Qg.filter;Tt({target:"Array",proto:!0,forced:!ug("filter")},{filter:function(t){return EA(this,t,arguments.length>1?arguments[1]:void 0)}});var TA=function(t,e){var g=[][t];return!g||!r((function(){g.call(null,e||function(){throw 1},1)}))},ZA=Qg.forEach,RA=TA("forEach")?function(t){return ZA(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;Tt({target:"Array",proto:!0,forced:[].forEach!=RA},{forEach:RA});var SA=function(t,e,g,A){try{return A?e(T(g)[0],g[1]):e(g)}catch(e){var i=t.return;throw void 0!==i&&T(i.call(t)),e}},GA={},BA=Gt("iterator"),FA=Array.prototype,YA=function(t){return void 0!==t&&(GA.Array===t||FA[BA]===t)},LA=Gt("iterator"),WA=function(t){if(null!=t)return t[LA]||t["@@iterator"]||GA[Yt(t)]},_A=Gt("iterator"),QA=!1;try{var zA=0,PA={next:function(){return{done:!!zA++}},return:function(){QA=!0}};PA[_A]=function(){return this},Array.from(PA,(function(){throw 2}))}catch(t){}var jA=function(t,e){if(!e&&!QA)return!1;var g=!1;try{var A={};A[_A]=function(){return{next:function(){return{done:g=!0}}}},t(A)}catch(t){}return g},VA=!jA((function(t){Array.from(t)}));Tt({target:"Array",stat:!0,forced:VA},{from:function(t){var e,g,A,i,I,C=Lt(t),n="function"==typeof this?this:Array,o=arguments.length,r=o>1?arguments[1]:void 0,s=void 0!==r,a=0,d=WA(C);if(s&&(r=Lg(r,o>2?arguments[2]:void 0,2)),null==d||n==Array&&YA(d))for(g=new n(e=rt(C.length));e>a;a++)rg(g,a,s?r(C[a],a):C[a]);else for(I=(i=d.call(C)).next,g=new n;!(A=I.call(i)).done;a++)rg(g,a,s?SA(i,r,[A.value,a],!0):A.value);return g.length=a,g}});var UA=lt.indexOf,XA=[].indexOf,HA=!!XA&&1/[1].indexOf(1,-0)<0,JA=TA("indexOf");Tt({target:"Array",proto:!0,forced:HA||JA},{indexOf:function(t){return HA?XA.apply(this,arguments)||0:UA(this,t,arguments.length>1?arguments[1]:void 0)}});var KA=Gt("unscopables"),qA=Array.prototype;null==qA[KA]&&S(qA,KA,Tg(null));var $A,ti,ei,gi=function(t){qA[KA][t]=!0},Ai=Gt("iterator"),ii=!1;[].keys&&("next"in(ei=[].keys())?(ti=zt(zt(ei)))!==Object.prototype&&($A=ti):ii=!0),null==$A&&($A={}),x($A,Ai)||S($A,Ai,(function(){return this}));var Ii={IteratorPrototype:$A,BUGGY_SAFARI_ITERATORS:ii},Ci=Ii.IteratorPrototype,ni=function(){return this},oi=Ii.IteratorPrototype,ri=Ii.BUGGY_SAFARI_ITERATORS,si=Gt("iterator"),ai=function(){return this},di=function(t,e,g,A,i,I,C){!function(t,e,g){var A=e+" Iterator";t.prototype=Tg(Ci,{next:l(1,g)}),ue(t,A,!1),GA[A]=ni}(g,e,A);var n,o,r,s=function(t){if(t===i&&u)return u;if(!ri&&t in h)return h[t];switch(t){case"keys":case"values":case"entries":return function(){return new g(this,t)}}return function(){return new g(this)}},a=e+" Iterator",d=!1,h=t.prototype,c=h[si]||h["@@iterator"]||i&&h[i],u=!ri&&c||s(i),f="Array"==e&&h.entries||c;if(f&&(n=zt(f.call(new t)),oi!==Object.prototype&&n.next&&(zt(n)!==oi&&(Pt?Pt(n,oi):"function"!=typeof n[si]&&S(n,si,ai)),ue(n,a,!0))),"values"==i&&c&&"values"!==c.name&&(d=!0,u=function(){return c.call(this)}),h[si]!==u&&S(h,si,u),GA[e]=u,i)if(o={values:s("values"),keys:I?u:s("keys"),entries:s("entries")},C)for(r in o)!ri&&!d&&r in h||et(h,r,o[r]);else Tt({target:e,proto:!0,forced:ri||d},o);return o},hi=tt.set,li=tt.getterFor("Array Iterator"),ci=di(Array,"Array",(function(t,e){hi(this,{type:"Array Iterator",target:m(t),index:0,kind:e})}),(function(){var t=li(this),e=t.target,g=t.kind,A=t.index++;return!e||A>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==g?{value:A,done:!1}:"values"==g?{value:e[A],done:!1}:{value:[A,e[A]],done:!1}}),"values");GA.Arguments=GA.Array,gi("keys"),gi("values"),gi("entries");var ui=[].join,fi=p!=Object,pi=TA("join",",");Tt({target:"Array",proto:!0,forced:fi||pi},{join:function(t){return ui.call(m(this),void 0===t?",":t)}});var vi=Qg.map;Tt({target:"Array",proto:!0,forced:!ug("map")},{map:function(t){return vi(this,t,arguments.length>1?arguments[1]:void 0)}});var mi=Qg.some;Tt({target:"Array",proto:!0,forced:TA("some")},{some:function(t){return mi(this,t,arguments.length>1?arguments[1]:void 0)}});var yi=[].sort,bi=[1,2,3],wi=r((function(){bi.sort(void 0)})),xi=r((function(){bi.sort(null)})),ki=TA("sort");Tt({target:"Array",proto:!0,forced:wi||!xi||ki},{sort:function(t){return void 0===t?yi.call(Lt(this)):yi.call(Lt(this),Je(t))}});var Di="".repeat||function(t){var e=String(v(this)),g="",A=nt(t);if(A<0||A==1/0)throw RangeError("Wrong number of repetitions");for(;A>0;(A>>>=1)&&(e+=e))1&A&&(g+=e);return g},Oi=Math.ceil,Ni=function(t){return function(e,g,A){var i,I,C=String(v(e)),n=C.length,o=void 0===A?" ":String(A),r=rt(g);return r<=n||""==o?C:(i=r-n,(I=Di.call(o,Oi(i/o.length))).length>i&&(I=I.slice(0,i)),t?C+I:I+C)}},Mi={start:Ni(!1),end:Ni(!0)}.start,Ei=Math.abs,Ti=Date.prototype,Zi=Ti.getTime,Ri=Ti.toISOString,Si=r((function(){return"0385-07-25T07:06:39.999Z"!=Ri.call(new Date(-5e13-1))}))||!r((function(){Ri.call(new Date(NaN))}))?function(){if(!isFinite(Zi.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),g=t<0?"-":t>9999?"+":"";return g+Mi(Ei(t),g?6:4,0)+"-"+Mi(this.getUTCMonth()+1,2,0)+"-"+Mi(this.getUTCDate(),2,0)+"T"+Mi(this.getUTCHours(),2,0)+":"+Mi(this.getUTCMinutes(),2,0)+":"+Mi(this.getUTCSeconds(),2,0)+"."+Mi(e,3,0)+"Z"}:Ri;Tt({target:"Date",proto:!0,forced:Date.prototype.toISOString!==Si},{toISOString:Si});var Gi=r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));Tt({target:"Date",proto:!0,forced:Gi},{toJSON:function(t){var e=Lt(this),g=b(e);return"number"!=typeof g||isFinite(g)?e.toISOString():null}});var Bi=Date.prototype,Fi=Bi.toString,Yi=Bi.getTime;new Date(NaN)+""!="Invalid Date"&&et(Bi,"toString",(function(){var t=Yi.call(this);return t==t?Fi.call(this):"Invalid Date"}));var Li=R.f,Wi=Function.prototype,_i=Wi.toString,Qi=/^\s*function ([^ (]*)/;!s||"name"in Wi||Li(Wi,"name",{configurable:!0,get:function(){try{return _i.call(this).match(Qi)[1]}catch(t){return""}}});var zi=function(t,e,g){var A,i;return Pt&&"function"==typeof(A=e.constructor)&&A!==g&&y(i=A.prototype)&&i!==g.prototype&&Pt(t,i),t},Pi="\t\n\v\f\r \u2028\u2029\ufeff",ji="["+Pi+"]",Vi=RegExp("^"+ji+ji+"*"),Ui=RegExp(ji+ji+"*$"),Xi=function(t){return function(e){var g=String(v(e));return 1&t&&(g=g.replace(Vi,"")),2&t&&(g=g.replace(Ui,"")),g}},Hi={start:Xi(1),end:Xi(2),trim:Xi(3)},Ji=vt.f,Ki=E.f,qi=R.f,$i=Hi.trim,tI=o.Number,eI=tI.prototype,gI="Number"==u(Tg(eI)),AI=function(t){var e,g,A,i,I,C,n,o,r=b(t,!1);if("string"==typeof r&&r.length>2)if(43===(e=(r=$i(r)).charCodeAt(0))||45===e){if(88===(g=r.charCodeAt(2))||120===g)return NaN}else if(48===e){switch(r.charCodeAt(1)){case 66:case 98:A=2,i=49;break;case 79:case 111:A=8,i=55;break;default:return+r}for(C=(I=r.slice(2)).length,n=0;n<C;n++)if((o=I.charCodeAt(n))<48||o>i)return NaN;return parseInt(I,A)}return+r};if(Mt("Number",!tI(" 0o1")||!tI("0b1")||tI("+0x1"))){for(var iI,II=function(t){var e=arguments.length<1?0:t,g=this;return g instanceof II&&(gI?r((function(){eI.valueOf.call(g)})):"Number"!=u(g))?zi(new tI(AI(e)),g,II):AI(e)},CI=s?Ji(tI):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),nI=0;CI.length>nI;nI++)x(tI,iI=CI[nI])&&!x(II,iI)&&qi(II,iI,Ki(tI,iI));II.prototype=eI,eI.constructor=II,et(o,"Number",II)}var oI=1..toFixed,rI=Math.floor,sI=function(t,e,g){return 0===e?g:e%2==1?sI(t,e-1,g*t):sI(t*t,e/2,g)},aI=oI&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r((function(){oI.call({})}));Tt({target:"Number",proto:!0,forced:aI},{toFixed:function(t){var e,g,A,i,I=function(t){if("number"!=typeof t&&"Number"!=u(t))throw TypeError("Incorrect invocation");return+t}(this),C=nt(t),n=[0,0,0,0,0,0],o="",r="0",s=function(t,e){for(var g=-1,A=e;++g<6;)A+=t*n[g],n[g]=A%1e7,A=rI(A/1e7)},a=function(t){for(var e=6,g=0;--e>=0;)g+=n[e],n[e]=rI(g/t),g=g%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==n[t]){var g=String(n[t]);e=""===e?g:e+Di.call("0",7-g.length)+g}return e};if(C<0||C>20)throw RangeError("Incorrect fraction digits");if(I!=I)return"NaN";if(I<=-1e21||I>=1e21)return String(I);if(I<0&&(o="-",I=-I),I>1e-21)if(g=(e=function(t){for(var e=0,g=t;g>=4096;)e+=12,g/=4096;for(;g>=2;)e+=1,g/=2;return e}(I*sI(2,69,1))-69)<0?I*sI(2,-e,1):I/sI(2,e,1),g*=4503599627370496,(e=52-e)>0){for(s(0,g),A=C;A>=7;)s(1e7,0),A-=7;for(s(sI(10,A,1),0),A=e-1;A>=23;)a(1<<23),A-=23;a(1<<A),s(1,1),a(2),r=d()}else s(0,g),s(1<<-e,0),r=d()+Di.call("0",C);return r=C>0?o+((i=r.length)<=C?"0."+Di.call("0",C-i)+r:r.slice(0,i-C)+"."+r.slice(i-C)):o+r}});var dI=Object.assign,hI=!dI||r((function(){var t={},e={},g=Symbol();return t[g]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=dI({},t)[g]||"abcdefghijklmnopqrst"!=kg(dI({},e)).join("")}))?function(t,e){for(var g=Lt(t),A=arguments.length,i=1,I=mt.f,C=h.f;A>i;)for(var n,o=p(arguments[i++]),r=I?kg(o).concat(I(o)):kg(o),a=r.length,d=0;a>d;)n=r[d++],s&&!C.call(o,n)||(g[n]=o[n]);return g}:dI;Tt({target:"Object",stat:!0,forced:Object.assign!==hI},{assign:hI}),Tt({target:"Object",stat:!0,forced:!s,sham:!s},{defineProperties:Dg}),Tt({target:"Object",stat:!0,forced:!s,sham:!s},{defineProperty:R.f});var lI=!r((function(){return Object.isExtensible(Object.preventExtensions({}))})),cI=g((function(t){var e=R.f,g=z("meta"),A=0,i=Object.isExtensible||function(){return!0},I=function(t){e(t,g,{value:{objectID:"O"+ ++A,weakData:{}}})},C=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!y(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!x(t,g)){if(!i(t))return"F";if(!e)return"E";I(t)}return t[g].objectID},getWeakData:function(t,e){if(!x(t,g)){if(!i(t))return!0;if(!e)return!1;I(t)}return t[g].weakData},onFreeze:function(t){return lI&&C.REQUIRED&&i(t)&&!x(t,g)&&I(t),t}};V[g]=!0})),uI=(cI.REQUIRED,cI.fastKey,cI.getWeakData,cI.onFreeze,cI.onFreeze),fI=Object.freeze,pI=r((function(){fI(1)}));Tt({target:"Object",stat:!0,forced:pI,sham:!lI},{freeze:function(t){return fI&&y(t)?fI(uI(t)):t}});var vI=E.f,mI=r((function(){vI(1)}));Tt({target:"Object",stat:!0,forced:!s||mI,sham:!s},{getOwnPropertyDescriptor:function(t,e){return vI(m(t),e)}}),Tt({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(t){for(var e,g,A=m(t),i=E.f,I=yt(A),C={},n=0;I.length>n;)void 0!==(g=i(A,e=I[n++]))&&rg(C,e,g);return C}});var yI=Gg.f,bI=r((function(){return!Object.getOwnPropertyNames(1)}));Tt({target:"Object",stat:!0,forced:bI},{getOwnPropertyNames:yI});var wI=r((function(){zt(1)}));Tt({target:"Object",stat:!0,forced:wI,sham:!Wt},{getPrototypeOf:function(t){return zt(Lt(t))}});var xI=Object.isExtensible,kI=r((function(){xI(1)}));Tt({target:"Object",stat:!0,forced:kI},{isExtensible:function(t){return!!y(t)&&(!xI||xI(t))}});var DI=Object.isFrozen,OI=r((function(){DI(1)}));Tt({target:"Object",stat:!0,forced:OI},{isFrozen:function(t){return!y(t)||!!DI&&DI(t)}});var NI=r((function(){kg(1)}));Tt({target:"Object",stat:!0,forced:NI},{keys:function(t){return kg(Lt(t))}});var MI=cI.onFreeze,EI=Object.preventExtensions,TI=r((function(){EI(1)}));Tt({target:"Object",stat:!0,forced:TI,sham:!lI},{preventExtensions:function(t){return EI&&y(t)?EI(MI(t)):t}}),Tt({target:"Object",stat:!0},{setPrototypeOf:Pt});var ZI=h.f,RI=function(t){return function(e){for(var g,A=m(e),i=kg(A),I=i.length,C=0,n=[];I>C;)g=i[C++],s&&!ZI.call(A,g)||n.push(t?[g,A[g]]:A[g]);return n}},SI={entries:RI(!0),values:RI(!1)}.values;Tt({target:"Object",stat:!0},{values:function(t){return SI(t)}});var GI=Hi.trim,BI=o.parseFloat,FI=1/BI(Pi+"-0")!=-1/0?function(t){var e=GI(String(t)),g=BI(e);return 0===g&&"-"==e.charAt(0)?-0:g}:BI;Tt({global:!0,forced:parseFloat!=FI},{parseFloat:FI});var YI=Hi.trim,LI=o.parseInt,WI=/^[+-]?0[Xx]/,_I=8!==LI(Pi+"08")||22!==LI(Pi+"0x16")?function(t,e){var g=YI(String(t));return LI(g,e>>>0||(WI.test(g)?16:10))}:LI;Tt({global:!0,forced:parseInt!=_I},{parseInt:_I});var QI=Gt("match"),zI=function(t){var e;return y(t)&&(void 0!==(e=t[QI])?!!e:"RegExp"==u(t))},PI=function(){var t=T(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},jI=Gt("species"),VI=function(t){var e=it(t),g=R.f;s&&e&&!e[jI]&&g(e,jI,{configurable:!0,get:function(){return this}})},UI=R.f,XI=vt.f,HI=Gt("match"),JI=o.RegExp,KI=JI.prototype,qI=/a/g,$I=/a/g,tC=new JI(qI)!==qI;if(s&&Mt("RegExp",!tC||r((function(){return $I[HI]=!1,JI(qI)!=qI||JI($I)==$I||"/a/i"!=JI(qI,"i")})))){for(var eC=function(t,e){var g=this instanceof eC,A=zI(t),i=void 0===e;return!g&&A&&t.constructor===eC&&i?t:zi(tC?new JI(A&&!i?t.source:t,e):JI((A=t instanceof eC)?t.source:t,A&&i?PI.call(t):e),g?this:KI,eC)},gC=function(t){t in eC||UI(eC,t,{configurable:!0,get:function(){return JI[t]},set:function(e){JI[t]=e}})},AC=XI(JI),iC=0;AC.length>iC;)gC(AC[iC++]);KI.constructor=eC,eC.prototype=KI,et(o,"RegExp",eC)}VI("RegExp");var IC=RegExp.prototype.exec,CC=String.prototype.replace,nC=IC,oC=function(){var t=/a/,e=/b*/g;return IC.call(t,"a"),IC.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),rC=void 0!==/()??/.exec("")[1];(oC||rC)&&(nC=function(t){var e,g,A,i,I=this;return rC&&(g=new RegExp("^"+I.source+"$(?!\\s)",PI.call(I))),oC&&(e=I.lastIndex),A=IC.call(I,t),oC&&A&&(I.lastIndex=I.global?A.index+A[0].length:e),rC&&A&&A.length>1&&CC.call(A[0],g,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(A[i]=void 0)})),A});var sC=nC;Tt({target:"RegExp",proto:!0,forced:/./.exec!==sC},{exec:sC}),s&&"g"!=/./g.flags&&R.f(RegExp.prototype,"flags",{configurable:!0,get:PI});var aC=RegExp.prototype,dC=aC.toString,hC=r((function(){return"/a/b"!=dC.call({source:"a",flags:"b"})})),lC="toString"!=dC.name;(hC||lC)&&et(RegExp.prototype,"toString",(function(){var t=T(this),e=String(t.source),g=t.flags;return"/"+e+"/"+String(void 0===g&&t instanceof RegExp&&!("flags"in aC)?PI.call(t):g)}),{unsafe:!0});var cC=function(t){return function(e,g){var A,i,I=String(v(e)),C=nt(g),n=I.length;return C<0||C>=n?t?"":void 0:(A=I.charCodeAt(C))<55296||A>56319||C+1===n||(i=I.charCodeAt(C+1))<56320||i>57343?t?I.charAt(C):A:t?I.slice(C,C+2):i-56320+(A-55296<<10)+65536}},uC={codeAt:cC(!1),charAt:cC(!0)},fC=uC.charAt,pC=tt.set,vC=tt.getterFor("String Iterator");di(String,"String",(function(t){pC(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=vC(this),g=e.string,A=e.index;return A>=g.length?{value:void 0,done:!0}:(t=fC(g,A),e.index+=t.length,{value:t,done:!1})}));var mC=Gt("species"),yC=!r((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),bC=!r((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var g="ab".split(t);return 2!==g.length||"a"!==g[0]||"b"!==g[1]})),wC=function(t,e,g,A){var i=Gt(t),I=!r((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),C=I&&!r((function(){var e=!1,g=/a/;return"split"===t&&((g={}).constructor={},g.constructor[mC]=function(){return g},g.flags="",g[i]=/./[i]),g.exec=function(){return e=!0,null},g[i](""),!e}));if(!I||!C||"replace"===t&&!yC||"split"===t&&!bC){var n=/./[i],o=g(i,""[t],(function(t,e,g,A,i){return e.exec===sC?I&&!i?{done:!0,value:n.call(e,g,A)}:{done:!0,value:t.call(g,e,A)}:{done:!1}})),s=o[0],a=o[1];et(String.prototype,t,s),et(RegExp.prototype,i,2==e?function(t,e){return a.call(t,this,e)}:function(t){return a.call(t,this)}),A&&S(RegExp.prototype[i],"sham",!0)}},xC=uC.charAt,kC=function(t,e,g){return e+(g?xC(t,e).length:1)},DC=function(t,e){var g=t.exec;if("function"==typeof g){var A=g.call(t,e);if("object"!=typeof A)throw TypeError("RegExp exec method returned something other than an Object or null");return A}if("RegExp"!==u(t))throw TypeError("RegExp#exec called on incompatible receiver");return sC.call(t,e)};wC("match",1,(function(t,e,g){return[function(e){var g=v(this),A=null==e?void 0:e[t];return void 0!==A?A.call(e,g):new RegExp(e)[t](String(g))},function(t){var A=g(e,t,this);if(A.done)return A.value;var i=T(t),I=String(this);if(!i.global)return DC(i,I);var C=i.unicode;i.lastIndex=0;for(var n,o=[],r=0;null!==(n=DC(i,I));){var s=String(n[0]);o[r]=s,""===s&&(i.lastIndex=kC(I,rt(i.lastIndex),C)),r++}return 0===r?null:o}]}));var OC=Math.max,NC=Math.min,MC=Math.floor,EC=/\$([$&'`]|\d\d?|<[^>]*>)/g,TC=/\$([$&'`]|\d\d?)/g;wC("replace",2,(function(t,e,g){return[function(g,A){var i=v(this),I=null==g?void 0:g[t];return void 0!==I?I.call(g,i,A):e.call(String(i),g,A)},function(t,i){var I=g(e,t,this,i);if(I.done)return I.value;var C=T(t),n=String(this),o="function"==typeof i;o||(i=String(i));var r=C.global;if(r){var s=C.unicode;C.lastIndex=0}for(var a=[];;){var d=DC(C,n);if(null===d)break;if(a.push(d),!r)break;""===String(d[0])&&(C.lastIndex=kC(n,rt(C.lastIndex),s))}for(var h,l="",c=0,u=0;u<a.length;u++){d=a[u];for(var f=String(d[0]),p=OC(NC(nt(d.index),n.length),0),v=[],m=1;m<d.length;m++)v.push(void 0===(h=d[m])?h:String(h));var y=d.groups;if(o){var b=[f].concat(v,p,n);void 0!==y&&b.push(y);var w=String(i.apply(void 0,b))}else w=A(f,n,p,v,y,i);p>=c&&(l+=n.slice(c,p)+w,c=p+f.length)}return l+n.slice(c)}];function A(t,g,A,i,I,C){var n=A+t.length,o=i.length,r=TC;return void 0!==I&&(I=Lt(I),r=EC),e.call(C,r,(function(e,C){var r;switch(C.charAt(0)){case"$":return"$";case"&":return t;case"`":return g.slice(0,A);case"'":return g.slice(n);case"<":r=I[C.slice(1,-1)];break;default:var s=+C;if(0===s)return e;if(s>o){var a=MC(s/10);return 0===a?e:a<=o?void 0===i[a-1]?C.charAt(1):i[a-1]+C.charAt(1):e}r=i[s-1]}return void 0===r?"":r}))}}));var ZC=[].push,RC=Math.min,SC=!r((function(){return!RegExp(4294967295,"y")}));wC("split",2,(function(t,e,g){var A;return A="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,g){var A=String(v(this)),i=void 0===g?4294967295:g>>>0;if(0===i)return[];if(void 0===t)return[A];if(!zI(t))return e.call(A,t,i);for(var I,C,n,o=[],r=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,a=new RegExp(t.source,r+"g");(I=sC.call(a,A))&&!((C=a.lastIndex)>s&&(o.push(A.slice(s,I.index)),I.length>1&&I.index<A.length&&ZC.apply(o,I.slice(1)),n=I[0].length,s=C,o.length>=i));)a.lastIndex===I.index&&a.lastIndex++;return s===A.length?!n&&a.test("")||o.push(""):o.push(A.slice(s)),o.length>i?o.slice(0,i):o}:"0".split(void 0,0).length?function(t,g){return void 0===t&&0===g?[]:e.call(this,t,g)}:e,[function(e,g){var i=v(this),I=null==e?void 0:e[t];return void 0!==I?I.call(e,i,g):A.call(String(i),e,g)},function(t,i){var I=g(A,t,this,i,A!==e);if(I.done)return I.value;var C=T(t),n=String(this),o=qe(C,RegExp),r=C.unicode,s=(C.ignoreCase?"i":"")+(C.multiline?"m":"")+(C.unicode?"u":"")+(SC?"y":"g"),a=new o(SC?C:"^(?:"+C.source+")",s),d=void 0===i?4294967295:i>>>0;if(0===d)return[];if(0===n.length)return null===DC(a,n)?[n]:[];for(var h=0,l=0,c=[];l<n.length;){a.lastIndex=SC?l:0;var u,f=DC(a,SC?n:n.slice(l));if(null===f||(u=RC(rt(a.lastIndex+(SC?0:l)),n.length))===h)l=kC(n,l,r);else{if(c.push(n.slice(h,l)),c.length===d)return c;for(var p=1;p<=f.length-1;p++)if(c.push(f[p]),c.length===d)return c;l=h=u}}return c.push(n.slice(h)),c}]}),!SC);var GC=Hi.trim;Tt({target:"String",proto:!0,forced:function(t){return r((function(){return!!Pi[t]()||"
"!="
"[t]()||Pi[t].name!==t}))}("trim")},{trim:function(){return GC(this)}});var BC=re.NATIVE_ARRAY_BUFFER_VIEWS,FC=o.ArrayBuffer,YC=o.Int8Array,LC=!BC||!r((function(){YC(1)}))||!r((function(){new YC(-1)}))||!jA((function(t){new YC,new YC(null),new YC(1.5),new YC(t)}),!0)||r((function(){return 1!==new YC(new FC(2),1,void 0).length})),WC=function(t,e){var g=function(t){var e=nt(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}(t);if(g%e)throw RangeError("Wrong offset");return g},_C=re.aTypedArrayConstructor,QC=function(t){var e,g,A,i,I,C,n=Lt(t),o=arguments.length,r=o>1?arguments[1]:void 0,s=void 0!==r,a=WA(n);if(null!=a&&!YA(a))for(C=(I=a.call(n)).next,n=[];!(i=C.call(I)).done;)n.push(i.value);for(s&&o>2&&(r=Lg(r,arguments[2],2)),g=rt(n.length),A=new(_C(this))(g),e=0;g>e;e++)A[e]=s?r(n[e],e):n[e];return A};g((function(t){var e=vt.f,g=Qg.forEach,A=tt.get,i=tt.set,I=R.f,C=E.f,n=Math.round,r=o.RangeError,a=He.ArrayBuffer,d=He.DataView,h=re.NATIVE_ARRAY_BUFFER_VIEWS,c=re.TYPED_ARRAY_TAG,u=re.TypedArray,f=re.TypedArrayPrototype,p=re.aTypedArrayConstructor,v=re.isTypedArray,m=function(t,e){for(var g=0,A=e.length,i=new(p(t))(A);A>g;)i[g]=e[g++];return i},w=function(t,e){I(t,e,{get:function(){return A(this)[e]}})},k=function(t){var e;return t instanceof a||"ArrayBuffer"==(e=Yt(t))||"SharedArrayBuffer"==e},D=function(t,e){return v(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},O=function(t,e){return D(t,e=b(e,!0))?l(2,t[e]):C(t,e)},N=function(t,e,g){return!(D(t,e=b(e,!0))&&y(g)&&x(g,"value"))||x(g,"get")||x(g,"set")||g.configurable||x(g,"writable")&&!g.writable||x(g,"enumerable")&&!g.enumerable?I(t,e,g):(t[e]=g.value,t)};s?(h||(E.f=O,R.f=N,w(f,"buffer"),w(f,"byteOffset"),w(f,"byteLength"),w(f,"length")),Tt({target:"Object",stat:!0,forced:!h},{getOwnPropertyDescriptor:O,defineProperty:N}),t.exports=function(t,C,s,l){var p=t+(l?"Clamped":"")+"Array",b="get"+t,w="set"+t,x=o[p],D=x,O=D&&D.prototype,N={},M=function(t,e){I(t,e,{get:function(){return function(t,e){var g=A(t);return g.view[b](e*C+g.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,g){var i=A(t);l&&(g=(g=n(g))<0?0:g>255?255:255&g),i.view[w](e*C+i.byteOffset,g,!0)}(this,e,t)},enumerable:!0})};h?LC&&(D=s((function(t,e,g,A){return ae(t,D,p),y(e)?k(e)?void 0!==A?new x(e,WC(g,C),A):void 0!==g?new x(e,WC(g,C)):new x(e):v(e)?m(D,e):QC.call(D,e):new x(de(e))})),Pt&&Pt(D,u),g(e(x),(function(t){t in D||S(D,t,x[t])})),D.prototype=O):(D=s((function(t,e,g,A){ae(t,D,p);var I,n,o,s=0,h=0;if(y(e)){if(!k(e))return v(e)?m(D,e):QC.call(D,e);I=e,h=WC(g,C);var l=e.byteLength;if(void 0===A){if(l%C)throw r("Wrong length");if((n=l-h)<0)throw r("Wrong length")}else if((n=rt(A)*C)+h>l)throw r("Wrong length");o=n/C}else o=de(e),I=new a(n=o*C);for(i(t,{buffer:I,byteOffset:h,byteLength:n,length:o,view:new d(I)});s<o;)M(t,s++)})),Pt&&Pt(D,u),O=D.prototype=Tg(f)),O.constructor!==D&&S(O,"constructor",D),c&&S(O,c,p),N[p]=D,Tt({global:!0,forced:D!=x,sham:!h},N),"BYTES_PER_ELEMENT"in D||S(D,"BYTES_PER_ELEMENT",C),"BYTES_PER_ELEMENT"in O||S(O,"BYTES_PER_ELEMENT",C),VI(p)}):t.exports=function(){}}))("Uint8",1,(function(t){return function(e,g,A){return t(this,e,g,A)}}));var zC=Math.min,PC=[].copyWithin||function(t,e){var g=Lt(this),A=rt(g.length),i=dt(t,A),I=dt(e,A),C=arguments.length>2?arguments[2]:void 0,n=zC((void 0===C?A:dt(C,A))-I,A-i),o=1;for(I<i&&i<I+n&&(o=-1,I+=n-1,i+=n-1);n-- >0;)I in g?g[i]=g[I]:delete g[i],i+=o,I+=o;return