vis-network
Version:
A dynamic, browser-based visualization library.
26 lines • 617 kB
JavaScript
/**
* vis-network - network
* http://visjs.org/
*
* A dynamic, browser-based visualization library.
*
* @version 6.3.1
* @date 2019-10-29T23:07:20Z
*
* @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.
*/
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function i(t,e){return t(e={exports:{}},e.exports),e.exports}var n,o,r,s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof t&&t)||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},d=!h((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),l={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,c={f:u&&!l.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:l},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},p={}.toString,v=function(t){return p.call(t).slice(8,-1)},g="".split,y=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==v(t)?g.call(t,""):Object(t)}:Object,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return y(m(t))},_=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,e){if(!_(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!_(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!_(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!_(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},k={}.hasOwnProperty,x=function(t,e){return k.call(t,e)},S=a.document,O=_(S)&&_(S.createElement),D=function(t){return O?S.createElement(t):{}},M=!d&&!h((function(){return 7!=Object.defineProperty(D("div"),"a",{get:function(){return 7}}).a})),E=Object.getOwnPropertyDescriptor,T={f:d?E:function(t,e){if(t=b(t),e=w(e,!0),M)try{return E(t,e)}catch(t){}if(x(t,e))return f(!c.f.call(t,e),t[e])}},C=function(t){if(!_(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,I={f:d?P:function(t,e,i){if(C(t),e=w(e,!0),C(i),M)try{return P(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},N=d?function(t,e,i){return I.f(t,e,f(1,i))}:function(t,e,i){return t[e]=i,t},F=function(t,e){try{N(a,t,e)}catch(i){a[t]=e}return e},A=a["__core-js_shared__"]||F("__core-js_shared__",{}),R=i((function(t){(t.exports=function(t,e){return A[t]||(A[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.3.4",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),Y=R("native-function-to-string",Function.toString),j=a.WeakMap,z="function"==typeof j&&/native code/.test(Y.call(j)),L=0,B=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++L+B).toString(36)},W=R("keys"),V=function(t){return W[t]||(W[t]=H(t))},U={},G=a.WeakMap;if(z){var q=new G,Z=q.get,X=q.has,$=q.set;n=function(t,e){return $.call(q,t,e),e},o=function(t){return Z.call(q,t)||{}},r=function(t){return X.call(q,t)}}else{var K=V("state");U[K]=!0,n=function(t,e){return N(t,K,e),e},o=function(t){return x(t,K)?t[K]:{}},r=function(t){return x(t,K)}}var J,Q={set:n,get:o,has:r,enforce:function(t){return r(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!_(e)||(i=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},tt=i((function(t){var e=Q.get,i=Q.enforce,n=String(Y).split("toString");R("inspectSource",(function(t){return Y.call(t)})),(t.exports=function(t,e,o,r){var s=!!r&&!!r.unsafe,h=!!r&&!!r.enumerable,d=!!r&&!!r.noTargetGet;"function"==typeof o&&("string"!=typeof e||x(o,"name")||N(o,"name",e),i(o).source=n.join("string"==typeof e?e:"")),t!==a?(s?!d&&t[e]&&(h=!0):delete t[e],h?t[e]=o:N(t,e,o)):h?t[e]=o:F(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Y.call(this)}))})),et=a,it=function(t){return"function"==typeof t?t:void 0},nt=function(t,e){return arguments.length<2?it(et[t])||it(a[t]):et[t]&&et[t][e]||a[t]&&a[t][e]},ot=Math.ceil,rt=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?rt:ot)(t)},at=Math.min,ht=function(t){return t>0?at(st(t),9007199254740991):0},dt=Math.max,lt=Math.min,ut=function(t,e){var i=st(t);return i<0?dt(i+e,0):lt(i,e)},ct=function(t){return function(e,i,n){var o,r=b(e),s=ht(r.length),a=ut(n,s);if(t&&i!=i){for(;s>a;)if((o=r[a++])!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},ft={includes:ct(!0),indexOf:ct(!1)},pt=ft.indexOf,vt=function(t,e){var i,n=b(t),o=0,r=[];for(i in n)!x(U,i)&&x(n,i)&&r.push(i);for(;e.length>o;)x(n,i=e[o++])&&(~pt(r,i)||r.push(i));return r},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yt=gt.concat("length","prototype"),mt={f:Object.getOwnPropertyNames||function(t){return vt(t,yt)}},bt={f:Object.getOwnPropertySymbols},_t=nt("Reflect","ownKeys")||function(t){var e=mt.f(C(t)),i=bt.f;return i?e.concat(i(t)):e},wt=function(t,e){for(var i=_t(e),n=I.f,o=T.f,r=0;r<i.length;r++){var s=i[r];x(t,s)||n(t,s,o(e,s))}},kt=/#|\.prototype\./,xt=function(t,e){var i=Ot[St(t)];return i==Mt||i!=Dt&&("function"==typeof e?h(e):!!e)},St=xt.normalize=function(t){return String(t).replace(kt,".").toLowerCase()},Ot=xt.data={},Dt=xt.NATIVE="N",Mt=xt.POLYFILL="P",Et=xt,Tt=T.f,Ct=function(t,e){var i,n,o,r,s,h=t.target,d=t.global,l=t.stat;if(i=d?a:l?a[h]||F(h,{}):(a[h]||{}).prototype)for(n in e){if(r=e[n],o=t.noTargetGet?(s=Tt(i,n))&&s.value:i[n],!Et(d?n:h+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;wt(r,o)}(t.sham||o&&o.sham)&&N(r,"sham",!0),tt(i,n,r,t)}},Pt=!!Object.getOwnPropertySymbols&&!h((function(){return!String(Symbol())})),It=a.Symbol,Nt=R("wks"),Ft=function(t){return Nt[t]||(Nt[t]=Pt&&It[t]||(Pt?It:H)("Symbol."+t))},At=Ft("toStringTag"),Rt="Arguments"==v(function(){return arguments}()),Yt=function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),At))?i:Rt?v(e):"Object"==(n=v(e))&&"function"==typeof e.callee?"Arguments":n},jt=function(t){return Object(m(t))},zt=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Lt=V("IE_PROTO"),Bt=Object.prototype,Ht=zt?Object.getPrototypeOf:function(t){return t=jt(t),x(t,Lt)?t[Lt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Bt:null},Wt=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return C(i),function(t){if(!_(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),Vt=I.f,Ut=a.DataView,Gt=Ut&&Ut.prototype,qt=a.Int8Array,Zt=qt&&qt.prototype,Xt=a.Uint8ClampedArray,$t=Xt&&Xt.prototype,Kt=qt&&Ht(qt),Jt=Zt&&Ht(Zt),Qt=Object.prototype,te=Qt.isPrototypeOf,ee=Ft("toStringTag"),ie=H("TYPED_ARRAY_TAG"),ne=!(!a.ArrayBuffer||!Ut),oe=ne&&!!Wt&&"Opera"!==Yt(a.opera),re=!1,se={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ae=function(t){return _(t)&&x(se,Yt(t))};for(J in se)a[J]||(oe=!1);if((!oe||"function"!=typeof Kt||Kt===Function.prototype)&&(Kt=function(){throw TypeError("Incorrect invocation")},oe))for(J in se)a[J]&&Wt(a[J],Kt);if((!oe||!Jt||Jt===Qt)&&(Jt=Kt.prototype,oe))for(J in se)a[J]&&Wt(a[J].prototype,Jt);if(oe&&Ht($t)!==Jt&&Wt($t,Jt),d&&!x(Jt,ee))for(J in re=!0,Vt(Jt,ee,{get:function(){return _(this)?this[ie]:void 0}}),se)a[J]&&N(a[J],ie,J);ne&&Wt&&Ht(Gt)!==Qt&&Wt(Gt,Qt);var he={NATIVE_ARRAY_BUFFER:ne,NATIVE_ARRAY_BUFFER_VIEWS:oe,TYPED_ARRAY_TAG:re&&ie,aTypedArray:function(t){if(ae(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(Wt){if(te.call(Kt,t))return t}else for(var e in se)if(x(se,J)){var i=a[e];if(i&&(t===i||te.call(i,t)))return t}throw TypeError("Target is not a typed array constructor")},exportProto:function(t,e,i){if(d){if(i)for(var n in se){var o=a[n];o&&x(o.prototype,t)&&delete o.prototype[t]}Jt[t]&&!i||tt(Jt,t,i?e:oe&&Zt[t]||e)}},exportStatic:function(t,e,i){var n,o;if(d){if(Wt){if(i)for(n in se)(o=a[n])&&x(o,t)&&delete o[t];if(Kt[t]&&!i)return;try{return tt(Kt,t,i?e:oe&&qt[t]||e)}catch(t){}}for(n in se)!(o=a[n])||o[t]&&!i||tt(o,t,e)}},isView:function(t){var e=Yt(t);return"DataView"===e||x(se,e)},isTypedArray:ae,TypedArray:Kt,TypedArrayPrototype:Jt},de=function(t,e,i){for(var n in e)tt(t,n,e[n],i);return t},le=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t},ue=function(t){if(void 0===t)return 0;var e=st(t),i=ht(e);if(e!==i)throw RangeError("Wrong length or index");return i},ce=function(t){for(var e=jt(this),i=ht(e.length),n=arguments.length,o=ut(n>1?arguments[1]:void 0,i),r=n>2?arguments[2]:void 0,s=void 0===r?i:ut(r,i);s>o;)e[o++]=t;return e},fe=I.f,pe=Ft("toStringTag"),ve=function(t,e,i){t&&!x(t=i?t:t.prototype,pe)&&fe(t,pe,{configurable:!0,value:e})},ge=he.NATIVE_ARRAY_BUFFER,ye=mt.f,me=I.f,be=Q.get,_e=Q.set,we=a.ArrayBuffer,ke=we,xe=a.DataView,Se=a.Math,Oe=a.RangeError,De=Se.abs,Me=Se.pow,Ee=Se.floor,Te=Se.log,Ce=Se.LN2,Pe=function(t,e,i){var n,o,r,s=new Array(i),a=8*i-e-1,h=(1<<a)-1,d=h>>1,l=23===e?Me(2,-24)-Me(2,-77):0,u=t<0||0===t&&1/t<0?1:0,c=0;for((t=De(t))!=t||t===1/0?(o=t!=t?1:0,n=h):(n=Ee(Te(t)/Ce),t*(r=Me(2,-n))<1&&(n--,r*=2),(t+=n+d>=1?l/r:l*Me(2,1-d))*r>=2&&(n++,r/=2),n+d>=h?(o=0,n=h):n+d>=1?(o=(t*r-1)*Me(2,e),n+=d):(o=t*Me(2,d-1)*Me(2,e),n=0));e>=8;s[c++]=255&o,o/=256,e-=8);for(n=n<<e|o,a+=e;a>0;s[c++]=255&n,n/=256,a-=8);return s[--c]|=128*u,s},Ie=function(t,e){var i,n=t.length,o=8*n-e-1,r=(1<<o)-1,s=r>>1,a=o-7,h=n-1,d=t[h--],l=127&d;for(d>>=7;a>0;l=256*l+t[h],h--,a-=8);for(i=l&(1<<-a)-1,l>>=-a,a+=e;a>0;i=256*i+t[h],h--,a-=8);if(0===l)l=1-s;else{if(l===r)return i?NaN:d?-1/0:1/0;i+=Me(2,e),l-=s}return(d?-1:1)*i*Me(2,l-e)},Ne=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Fe=function(t){return[255&t]},Ae=function(t){return[255&t,t>>8&255]},Re=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Ye=function(t){return Pe(t,23,4)},je=function(t){return Pe(t,52,8)},ze=function(t,e){me(t.prototype,e,{get:function(){return be(this)[e]}})},Le=function(t,e,i,n){var o=ue(+i),r=be(t);if(o+e>r.byteLength)throw Oe("Wrong index");var s=be(r.buffer).bytes,a=o+r.byteOffset,h=s.slice(a,a+e);return n?h:h.reverse()},Be=function(t,e,i,n,o,r){var s=ue(+i),a=be(t);if(s+e>a.byteLength)throw Oe("Wrong index");for(var h=be(a.buffer).bytes,d=s+a.byteOffset,l=n(+o),u=0;u<e;u++)h[d+u]=l[r?u:e-u-1]};if(ge){if(!h((function(){we(1)}))||!h((function(){new we(-1)}))||h((function(){return new we,new we(1.5),new we(NaN),"ArrayBuffer"!=we.name}))){for(var He,We=(ke=function(t){return le(this,ke),new we(ue(t))}).prototype=we.prototype,Ve=ye(we),Ue=0;Ve.length>Ue;)(He=Ve[Ue++])in ke||N(ke,He,we[He]);We.constructor=ke}var Ge=new xe(new ke(2)),qe=xe.prototype.setInt8;Ge.setInt8(0,2147483648),Ge.setInt8(1,2147483649),!Ge.getInt8(0)&&Ge.getInt8(1)||de(xe.prototype,{setInt8:function(t,e){qe.call(this,t,e<<24>>24)},setUint8:function(t,e){qe.call(this,t,e<<24>>24)}},{unsafe:!0})}else ke=function(t){le(this,ke,"ArrayBuffer");var e=ue(t);_e(this,{bytes:ce.call(new Array(e),0),byteLength:e}),d||(this.byteLength=e)},xe=function(t,e,i){le(this,xe,"DataView"),le(t,ke,"DataView");var n=be(t).byteLength,o=st(e);if(o<0||o>n)throw Oe("Wrong offset");if(o+(i=void 0===i?n-o:ht(i))>n)throw Oe("Wrong length");_e(this,{buffer:t,byteLength:i,byteOffset:o}),d||(this.buffer=t,this.byteLength=i,this.byteOffset=o)},d&&(ze(ke,"byteLength"),ze(xe,"buffer"),ze(xe,"byteLength"),ze(xe,"byteOffset")),de(xe.prototype,{getInt8:function(t){return Le(this,1,t)[0]<<24>>24},getUint8:function(t){return Le(this,1,t)[0]},getInt16:function(t){var e=Le(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Le(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Ne(Le(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Ne(Le(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Ie(Le(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Ie(Le(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Be(this,1,t,Fe,e)},setUint8:function(t,e){Be(this,1,t,Fe,e)},setInt16:function(t,e){Be(this,2,t,Ae,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Be(this,2,t,Ae,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Be(this,4,t,Re,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Be(this,4,t,Re,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Be(this,4,t,Ye,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Be(this,8,t,je,e,arguments.length>2?arguments[2]:void 0)}});ve(ke,"ArrayBuffer"),ve(xe,"DataView");var Ze={ArrayBuffer:ke,DataView:xe},Xe=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},$e=Ft("species"),Ke=function(t,e){var i,n=C(t).constructor;return void 0===n||null==(i=C(n)[$e])?e:Xe(i)},Je=Ze.ArrayBuffer,Qe=Ze.DataView,ti=Je.prototype.slice,ei=h((function(){return!new Je(2).slice(1,void 0).byteLength}));Ct({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ei},{slice:function(t,e){if(void 0!==ti&&void 0===e)return ti.call(C(this),t);for(var i=C(this).byteLength,n=ut(t,i),o=ut(void 0===e?i:e,i),r=new(Ke(this,Je))(ht(o-n)),s=new Qe(this),a=new Qe(r),h=0;n<o;)a.setUint8(h++,s.getUint8(n++));return r}}),Ct({global:!0,forced:!he.NATIVE_ARRAY_BUFFER},{DataView:Ze.DataView});var ii={};ii[Ft("toStringTag")]="z";var ni="[object z]"!==String(ii)?function(){return"[object "+Yt(this)+"]"}:ii.toString,oi=Object.prototype;ni!==oi.toString&&tt(oi,"toString",ni,{unsafe:!0}),"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.circle=function(t,e,i){this.beginPath(),this.arc(t,e,i,0,2*Math.PI,!1),this.closePath()},CanvasRenderingContext2D.prototype.square=function(t,e,i){this.beginPath(),this.rect(t-i,e-i,2*i,2*i),this.closePath()},CanvasRenderingContext2D.prototype.triangle=function(t,e,i){this.beginPath(),e+=.275*(i*=1.15);var n=2*i,o=n/2,r=Math.sqrt(3)/6*n,s=Math.sqrt(n*n-o*o);this.moveTo(t,e-(s-r)),this.lineTo(t+o,e+r),this.lineTo(t-o,e+r),this.lineTo(t,e-(s-r)),this.closePath()},CanvasRenderingContext2D.prototype.triangleDown=function(t,e,i){this.beginPath(),e-=.275*(i*=1.15);var n=2*i,o=n/2,r=Math.sqrt(3)/6*n,s=Math.sqrt(n*n-o*o);this.moveTo(t,e+(s-r)),this.lineTo(t+o,e-r),this.lineTo(t-o,e-r),this.lineTo(t,e+(s-r)),this.closePath()},CanvasRenderingContext2D.prototype.star=function(t,e,i){this.beginPath(),e+=.1*(i*=.82);for(var n=0;n<10;n++){var o=n%2==0?1.3*i:.5*i;this.lineTo(t+o*Math.sin(2*n*Math.PI/10),e-o*Math.cos(2*n*Math.PI/10))}this.closePath()},CanvasRenderingContext2D.prototype.diamond=function(t,e,i){this.beginPath(),this.lineTo(t,e+i),this.lineTo(t+i,e),this.lineTo(t,e-i),this.lineTo(t-i,e),this.closePath()},CanvasRenderingContext2D.prototype.roundRect=function(t,e,i,n,o){var r=Math.PI/180;i-2*o<0&&(o=i/2),n-2*o<0&&(o=n/2),this.beginPath(),this.moveTo(t+o,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,270*r,360*r,!1),this.lineTo(t+i,e+n-o),this.arc(t+i-o,e+n-o,o,0,90*r,!1),this.lineTo(t+o,e+n),this.arc(t+o,e+n-o,o,90*r,180*r,!1),this.lineTo(t,e+o),this.arc(t+o,e+o,o,180*r,270*r,!1),this.closePath()},CanvasRenderingContext2D.prototype.ellipse_vis=function(t,e,i,n){var o=i/2*.5522848,r=n/2*.5522848,s=t+i,a=e+n,h=t+i/2,d=e+n/2;this.beginPath(),this.moveTo(t,d),this.bezierCurveTo(t,d-r,h-o,e,h,e),this.bezierCurveTo(h+o,e,s,d-r,s,d),this.bezierCurveTo(s,d+r,h+o,a,h,a),this.bezierCurveTo(h-o,a,t,d+r,t,d),this.closePath()},CanvasRenderingContext2D.prototype.database=function(t,e,i,n){var o=n*(1/3),r=i/2*.5522848,s=o/2*.5522848,a=t+i,h=e+o,d=t+i/2,l=e+o/2,u=e+(n-o/2),c=e+n;this.beginPath(),this.moveTo(a,l),this.bezierCurveTo(a,l+s,d+r,h,d,h),this.bezierCurveTo(d-r,h,t,l+s,t,l),this.bezierCurveTo(t,l-s,d-r,e,d,e),this.bezierCurveTo(d+r,e,a,l-s,a,l),this.lineTo(a,u),this.bezierCurveTo(a,u+s,d+r,c,d,c),this.bezierCurveTo(d-r,c,t,u+s,t,u),this.lineTo(t,l)},CanvasRenderingContext2D.prototype.dashedLine=function(t,e,i,n,o){this.beginPath(),this.moveTo(t,e);for(var r=o.length,s=i-t,a=n-e,h=a/s,d=Math.sqrt(s*s+a*a),l=0,u=!0,c=0,f=+o[0];d>=.1;)(f=+o[l++%r])>d&&(f=d),c=Math.sqrt(f*f/(1+h*h)),t+=c=s<0?-c:c,e+=h*c,!0===u?this.lineTo(t,e):this.moveTo(t,e),d-=f,u=!u},CanvasRenderingContext2D.prototype.hexagon=function(t,e,i){this.beginPath();var n=2*Math.PI/6;this.moveTo(t+i,e);for(var o=1;o<6;o++)this.lineTo(t+i*Math.cos(n*o),e+i*Math.sin(n*o));this.closePath()});var ri=i((function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];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 i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),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 i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((i=n[o])===e||i.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){n=0;for(var o=(i=i.slice(0)).length;n<o;++n)i[n].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}}));"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function si(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function ai(t,e){return t(e={exports:{}},e.exports),e.exports}var hi=ai((function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),di=ai((function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)})),li=(di.version,ai((function(t){var e=hi["__core-js_shared__"]||(hi["__core-js_shared__"]={});(t.exports=function(t,i){return e[t]||(e[t]=void 0!==i?i:{})})("versions",[]).push({version:di.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}))),ui=0,ci=Math.random(),fi=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++ui+ci).toString(36))},pi=ai((function(t){var e=li("wks"),i=hi.Symbol,n="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=n&&i[t]||(n?i:fi)("Symbol."+t))}).store=e})),vi={f:pi},gi=function(t){return"object"==typeof t?null!==t:"function"==typeof t},yi=function(t){if(!gi(t))throw TypeError(t+" is not an object!");return t},mi=function(t){try{return!!t()}catch(t){return!0}},bi=!mi((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),_i=hi.document,wi=gi(_i)&&gi(_i.createElement),ki=function(t){return wi?_i.createElement(t):{}},xi=!bi&&!mi((function(){return 7!=Object.defineProperty(ki("div"),"a",{get:function(){return 7}}).a})),Si=function(t,e){if(!gi(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!gi(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!gi(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!gi(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},Oi=Object.defineProperty,Di={f:bi?Object.defineProperty:function(t,e,i){if(yi(t),e=Si(e,!0),yi(i),xi)try{return Oi(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},Mi=Di.f,Ei=function(t){var e=di.Symbol||(di.Symbol=hi.Symbol||{});"_"==t.charAt(0)||t in e||Mi(e,t,{value:vi.f(t)})};Ei("asyncIterator");var Ti={}.hasOwnProperty,Ci=function(t,e){return Ti.call(t,e)},Pi=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ii=bi?function(t,e,i){return Di.f(t,e,Pi(1,i))}:function(t,e,i){return t[e]=i,t},Ni=li("native-function-to-string",Function.toString),Fi=ai((function(t){var e=fi("src"),i=(""+Ni).split("toString");di.inspectSource=function(t){return Ni.call(t)},(t.exports=function(t,n,o,r){var s="function"==typeof o;s&&(Ci(o,"name")||Ii(o,"name",n)),t[n]!==o&&(s&&(Ci(o,e)||Ii(o,e,t[n]?""+t[n]:i.join(String(n)))),t===hi?t[n]=o:r?t[n]?t[n]=o:Ii(t,n,o):(delete t[n],Ii(t,n,o)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[e]||Ni.call(this)}))})),Ai=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},Ri=function(t,e,i){if(Ai(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}},Yi=function(t,e,i){var n,o,r,s,a=t&Yi.F,h=t&Yi.G,d=t&Yi.S,l=t&Yi.P,u=t&Yi.B,c=h?hi:d?hi[e]||(hi[e]={}):(hi[e]||{}).prototype,f=h?di:di[e]||(di[e]={}),p=f.prototype||(f.prototype={});for(n in h&&(i=e),i)r=((o=!a&&c&&void 0!==c[n])?c:i)[n],s=u&&o?Ri(r,hi):l&&"function"==typeof r?Ri(Function.call,r):r,c&&Fi(c,n,r,t&Yi.U),f[n]!=r&&Ii(f,n,s),l&&p[n]!=r&&(p[n]=r)};hi.core=di,Yi.F=1,Yi.G=2,Yi.S=4,Yi.P=8,Yi.B=16,Yi.W=32,Yi.U=64,Yi.R=128;var ji,zi=Yi,Li=ai((function(t){var e=fi("meta"),i=Di.f,n=0,o=Object.isExtensible||function(){return!0},r=!mi((function(){return o(Object.preventExtensions({}))})),s=function(t){i(t,e,{value:{i:"O"+ ++n,w:{}}})},a=t.exports={KEY:e,NEED:!1,fastKey:function(t,i){if(!gi(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Ci(t,e)){if(!o(t))return"F";if(!i)return"E";s(t)}return t[e].i},getWeak:function(t,i){if(!Ci(t,e)){if(!o(t))return!0;if(!i)return!1;s(t)}return t[e].w},onFreeze:function(t){return r&&a.NEED&&o(t)&&!Ci(t,e)&&s(t),t}}})),Bi=(Li.KEY,Li.NEED,Li.fastKey,Li.getWeak,Li.onFreeze,Di.f),Hi=pi("toStringTag"),Wi=function(t,e,i){t&&!Ci(t=i?t:t.prototype,Hi)&&Bi(t,Hi,{configurable:!0,value:e})},Vi={}.toString,Ui=function(t){return Vi.call(t).slice(8,-1)},Gi=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==Ui(t)?t.split(""):Object(t)},qi=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Zi=function(t){return Gi(qi(t))},Xi=Math.ceil,$i=Math.floor,Ki=function(t){return isNaN(t=+t)?0:(t>0?$i:Xi)(t)},Ji=Math.min,Qi=function(t){return t>0?Ji(Ki(t),9007199254740991):0},tn=Math.max,en=Math.min,nn=li("keys"),on=function(t){return nn[t]||(nn[t]=fi(t))},rn=(ji=!1,function(t,e,i){var n,o=Zi(t),r=Qi(o.length),s=function(t,e){return(t=Ki(t))<0?tn(t+e,0):en(t,e)}(i,r);if(ji&&e!=e){for(;r>s;)if((n=o[s++])!=n)return!0}else for(;r>s;s++)if((ji||s in o)&&o[s]===e)return ji||s||0;return!ji&&-1}),sn=on("IE_PROTO"),an=function(t,e){var i,n=Zi(t),o=0,r=[];for(i in n)i!=sn&&Ci(n,i)&&r.push(i);for(;e.length>o;)Ci(n,i=e[o++])&&(~rn(r,i)||r.push(i));return r},hn="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),dn=Object.keys||function(t){return an(t,hn)},ln={f:Object.getOwnPropertySymbols},un={f:{}.propertyIsEnumerable},cn=Array.isArray||function(t){return"Array"==Ui(t)},fn=function(t){return Object(qi(t))},pn=bi?Object.defineProperties:function(t,e){yi(t);for(var i,n=dn(e),o=n.length,r=0;o>r;)Di.f(t,i=n[r++],e[i]);return t},vn=hi.document,gn=vn&&vn.documentElement,yn=on("IE_PROTO"),mn=function(){},bn=function(){var t,e=ki("iframe"),i=hn.length;for(e.style.display="none",gn.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),bn=t.F;i--;)delete bn.prototype[hn[i]];return bn()},_n=Object.create||function(t,e){var i;return null!==t?(mn.prototype=yi(t),i=new mn,mn.prototype=null,i[yn]=t):i=bn(),void 0===e?i:pn(i,e)},wn=hn.concat("length","prototype"),kn={f:Object.getOwnPropertyNames||function(t){return an(t,wn)}},xn=kn.f,Sn={}.toString,On="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Dn={f:function(t){return On&&"[object Window]"==Sn.call(t)?function(t){try{return xn(t)}catch(t){return On.slice()}}(t):xn(Zi(t))}},Mn=Object.getOwnPropertyDescriptor,En={f:bi?Mn:function(t,e){if(t=Zi(t),e=Si(e,!0),xi)try{return Mn(t,e)}catch(t){}if(Ci(t,e))return Pi(!un.f.call(t,e),t[e])}},Tn=Li.KEY,Cn=En.f,Pn=Di.f,In=Dn.f,Nn=hi.Symbol,Fn=hi.JSON,An=Fn&&Fn.stringify,Rn=pi("_hidden"),Yn=pi("toPrimitive"),jn={}.propertyIsEnumerable,zn=li("symbol-registry"),Ln=li("symbols"),Bn=li("op-symbols"),Hn=Object.prototype,Wn="function"==typeof Nn&&!!ln.f,Vn=hi.QObject,Un=!Vn||!Vn.prototype||!Vn.prototype.findChild,Gn=bi&&mi((function(){return 7!=_n(Pn({},"a",{get:function(){return Pn(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Cn(Hn,e);n&&delete Hn[e],Pn(t,e,i),n&&t!==Hn&&Pn(Hn,e,n)}:Pn,qn=function(t){var e=Ln[t]=_n(Nn.prototype);return e._k=t,e},Zn=Wn&&"symbol"==typeof Nn.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Nn},Xn=function(t,e,i){return t===Hn&&Xn(Bn,e,i),yi(t),e=Si(e,!0),yi(i),Ci(Ln,e)?(i.enumerable?(Ci(t,Rn)&&t[Rn][e]&&(t[Rn][e]=!1),i=_n(i,{enumerable:Pi(0,!1)})):(Ci(t,Rn)||Pn(t,Rn,Pi(1,{})),t[Rn][e]=!0),Gn(t,e,i)):Pn(t,e,i)},$n=function(t,e){yi(t);for(var i,n=function(t){var e=dn(t),i=ln.f;if(i)for(var n,o=i(t),r=un.f,s=0;o.length>s;)r.call(t,n=o[s++])&&e.push(n);return e}(e=Zi(e)),o=0,r=n.length;r>o;)Xn(t,i=n[o++],e[i]);return t},Kn=function(t){var e=jn.call(this,t=Si(t,!0));return!(this===Hn&&Ci(Ln,t)&&!Ci(Bn,t))&&(!(e||!Ci(this,t)||!Ci(Ln,t)||Ci(this,Rn)&&this[Rn][t])||e)},Jn=function(t,e){if(t=Zi(t),e=Si(e,!0),t!==Hn||!Ci(Ln,e)||Ci(Bn,e)){var i=Cn(t,e);return!i||!Ci(Ln,e)||Ci(t,Rn)&&t[Rn][e]||(i.enumerable=!0),i}},Qn=function(t){for(var e,i=In(Zi(t)),n=[],o=0;i.length>o;)Ci(Ln,e=i[o++])||e==Rn||e==Tn||n.push(e);return n},to=function(t){for(var e,i=t===Hn,n=In(i?Bn:Zi(t)),o=[],r=0;n.length>r;)!Ci(Ln,e=n[r++])||i&&!Ci(Hn,e)||o.push(Ln[e]);return o};Wn||(Fi((Nn=function(){if(this instanceof Nn)throw TypeError("Symbol is not a constructor!");var t=fi(arguments.length>0?arguments[0]:void 0),e=function(i){this===Hn&&e.call(Bn,i),Ci(this,Rn)&&Ci(this[Rn],t)&&(this[Rn][t]=!1),Gn(this,t,Pi(1,i))};return bi&&Un&&Gn(Hn,t,{configurable:!0,set:e}),qn(t)}).prototype,"toString",(function(){return this._k})),En.f=Jn,Di.f=Xn,kn.f=Dn.f=Qn,un.f=Kn,ln.f=to,bi&&Fi(Hn,"propertyIsEnumerable",Kn,!0),vi.f=function(t){return qn(pi(t))}),zi(zi.G+zi.W+zi.F*!Wn,{Symbol:Nn});for(var eo="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),io=0;eo.length>io;)pi(eo[io++]);for(var no=dn(pi.store),oo=0;no.length>oo;)Ei(no[oo++]);zi(zi.S+zi.F*!Wn,"Symbol",{for:function(t){return Ci(zn,t+="")?zn[t]:zn[t]=Nn(t)},keyFor:function(t){if(!Zn(t))throw TypeError(t+" is not a symbol!");for(var e in zn)if(zn[e]===t)return e},useSetter:function(){Un=!0},useSimple:function(){Un=!1}}),zi(zi.S+zi.F*!Wn,"Object",{create:function(t,e){return void 0===e?_n(t):$n(_n(t),e)},defineProperty:Xn,defineProperties:$n,getOwnPropertyDescriptor:Jn,getOwnPropertyNames:Qn,getOwnPropertySymbols:to});var ro=mi((function(){ln.f(1)}));function so(t){return(so="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ao(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function ho(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function lo(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}zi(zi.S+zi.F*ro,"Object",{getOwnPropertySymbols:function(t){return ln.f(fn(t))}}),Fn&&zi(zi.S+zi.F*(!Wn||mi((function(){var t=Nn();return"[null]"!=An([t])||"{}"!=An({a:t})||"{}"!=An(Object(t))}))),"JSON",{stringify:function(t){for(var e,i,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(gi(e)||void 0!==t)&&!Zn(t))return cn(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!Zn(e))return e}),n[1]=e,An.apply(Fn,n)}}),Nn.prototype[Yn]||Ii(Nn.prototype,Yn,Nn.prototype.valueOf),Wi(Nn,"Symbol"),Wi(Math,"Math",!0),Wi(hi.JSON,"JSON",!0);var uo,co,fo,po;uo="keys",co=function(){return function(t){return dn(fn(t))}},fo=(di.Object||{})[uo]||Object[uo],(po={})[uo]=co(fo),zi(zi.S+zi.F*mi((function(){fo(1)})),"Object",po);var vo=function(){var t=yi(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};bi&&"g"!=/./g.flags&&Di.f(RegExp.prototype,"flags",{configurable:!0,get:vo});var go=/./.toString,yo=function(t){Fi(RegExp.prototype,"toString",t,!0)};mi((function(){return"/a/b"!=go.call({source:"a",flags:"b"})}))?yo((function(){var t=yi(this);return"/".concat(t.source,"/","flags"in t?t.flags:!bi&&t instanceof RegExp?vo.call(t):void 0)})):"toString"!=go.name&&yo((function(){return go.call(this)}));var mo=function(t){return function(e,i){var n,o,r=String(qi(e)),s=Ki(i),a=r.length;return s<0||s>=a?t?"":void 0:(n=r.charCodeAt(s))<55296||n>56319||s+1===a||(o=r.charCodeAt(s+1))<56320||o>57343?t?r.charAt(s):n:t?r.slice(s,s+2):o-56320+(n-55296<<10)+65536}}(!0),bo=function(t,e,i){return e+(i?mo(t,e).length:1)},_o=pi("toStringTag"),wo="Arguments"==Ui(function(){return arguments}()),ko=function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),_o))?i:wo?Ui(e):"Object"==(n=Ui(e))&&"function"==typeof e.callee?"Arguments":n},xo=RegExp.prototype.exec,So=function(t,e){var i=t.exec;if("function"==typeof i){var n=i.call(t,e);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==ko(t))throw new TypeError("RegExp#exec called on incompatible receiver");return xo.call(t,e)},Oo=RegExp.prototype.exec,Do=String.prototype.replace,Mo=Oo,Eo=function(){var t=/a/,e=/b*/g;return Oo.call(t,"a"),Oo.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),To=void 0!==/()??/.exec("")[1];(Eo||To)&&(Mo=function(t){var e,i,n,o,r=this;return To&&(i=new RegExp("^"+r.source+"$(?!\\s)",vo.call(r))),Eo&&(e=r.lastIndex),n=Oo.call(r,t),Eo&&n&&(r.lastIndex=r.global?n.index+n[0].length:e),To&&n&&n.length>1&&Do.call(n[0],i,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var Co=Mo;zi({target:"RegExp",proto:!0,forced:Co!==/./.exec},{exec:Co});var Po=pi("species"),Io=!mi((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),No=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}(),Fo=function(t,e,i){var n=pi(t),o=!mi((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),r=o?!mi((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[Po]=function(){return i}),i[n](""),!e})):void 0;if(!o||!r||"replace"===t&&!Io||"split"===t&&!No){var s=/./[n],a=i(qi,n,""[t],(function(t,e,i,n,r){return e.exec===Co?o&&!r?{done:!0,value:s.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),h=a[0],d=a[1];Fi(String.prototype,t,h),Ii(RegExp.prototype,n,2==e?function(t,e){return d.call(t,this,e)}:function(t){return d.call(t,this)})}},Ao=Math.max,Ro=Math.min,Yo=Math.floor,jo=/\$([$&`']|\d\d?|<[^>]*>)/g,zo=/\$([$&`']|\d\d?)/g;Fo("replace",2,(function(t,e,i,n){return[function(n,o){var r=t(this),s=null==n?void 0:n[e];return void 0!==s?s.call(n,r,o):i.call(String(r),n,o)},function(t,e){var r=n(i,t,this,e);if(r.done)return r.value;var s=yi(t),a=String(this),h="function"==typeof e;h||(e=String(e));var d=s.global;if(d){var l=s.unicode;s.lastIndex=0}for(var u=[];;){var c=So(s,a);if(null===c)break;if(u.push(c),!d)break;""===String(c[0])&&(s.lastIndex=bo(a,Qi(s.lastIndex),l))}for(var f,p="",v=0,g=0;g<u.length;g++){c=u[g];for(var y=String(c[0]),m=Ao(Ro(Ki(c.index),a.length),0),b=[],_=1;_<c.length;_++)b.push(void 0===(f=c[_])?f:String(f));var w=c.groups;if(h){var k=[y].concat(b,m,a);void 0!==w&&k.push(w);var x=String(e.apply(void 0,k))}else x=o(y,a,m,b,w,e);m>=v&&(p+=a.slice(v,m)+x,v=m+y.length)}return p+a.slice(v)}];function o(t,e,n,o,r,s){var a=n+t.length,h=o.length,d=zo;return void 0!==r&&(r=fn(r),d=jo),i.call(s,d,(function(i,s){var d;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(a);case"<":d=r[s.slice(1,-1)];break;default:var l=+s;if(0===l)return i;if(l>h){var u=Yo(l/10);return 0===u?i:u<=h?void 0===o[u-1]?s.charAt(1):o[u-1]+s.charAt(1):i}d=o[l-1]}return void 0===d?"":d}))}}));var Lo=pi("unscopables"),Bo=Array.prototype;null==Bo[Lo]&&Ii(Bo,Lo,{});var Ho=function(t){Bo[Lo][t]=!0},Wo=function(t,e){return{value:e,done:!!t}},Vo={},Uo={};Ii(Uo,pi("iterator"),(function(){return this}));var Go=function(t,e,i){t.prototype=_n(Uo,{next:Pi(1,i)}),Wi(t,e+" Iterator")},qo=on("IE_PROTO"),Zo=Object.prototype,Xo=Object.getPrototypeOf||function(t){return t=fn(t),Ci(t,qo)?t[qo]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Zo:null},$o=pi("iterator"),Ko=!([].keys&&"next"in[].keys()),Jo=function(){return this},Qo=function(t,e,i,n,o,r,s){Go(i,e,n);var a,h,d,l=function(t){if(!Ko&&t in p)return p[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},u=e+" Iterator",c="values"==o,f=!1,p=t.prototype,v=p[$o]||p["@@iterator"]||o&&p[o],g=v||l(o),y=o?c?l("entries"):g:void 0,m="Array"==e&&p.entries||v;if(m&&(d=Xo(m.call(new t)))!==Object.prototype&&d.next&&(Wi(d,u,!0),"function"!=typeof d[$o]&&Ii(d,$o,Jo)),c&&v&&"values"!==v.name&&(f=!0,g=function(){return v.call(this)}),(Ko||f||!p[$o])&&Ii(p,$o,g),Vo[e]=g,Vo[u]=Jo,o)if(a={values:c?g:l("values"),keys:r?g:l("keys"),entries:y},s)for(h in a)h in p||Fi(p,h,a[h]);else zi(zi.P+zi.F*(Ko||f),e,a);return a}(Array,"Array",(function(t,e){this._t=Zi(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,Wo(1)):Wo(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values");Vo.Arguments=Vo.Array,Ho("keys"),Ho("values"),Ho("entries");for(var tr=pi("iterator"),er=pi("toStringTag"),ir=Vo.Array,nr={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},or=dn(nr),rr=0;rr<or.length;rr++){var sr,ar=or[rr],hr=nr[ar],dr=hi[ar],lr=dr&&dr.prototype;if(lr&&(lr[tr]||Ii(lr,tr,ir),lr[er]||Ii(lr,er,ar),Vo[ar]=ir,hr))for(sr in Qo)lr[sr]||Fi(lr,sr,Qo[sr],!0)}var ur={};ur[pi("toStringTag")]="z",ur+""!="[object z]"&&Fi(Object.prototype,"toString",(function(){return"[object "+ko(this)+"]"}),!0);var cr,fr=un.f,pr=(cr=!1,function(t){for(var e,i=Zi(t),n=dn(i),o=n.length,r=0,s=[];o>r;)e=n[r++],bi&&!fr.call(i,e)||s.push(cr?[e,i[e]]:i[e]);return s});zi(zi.S,"Object",{values:function(t){return pr(t)}});var vr=pi("match"),gr=pi("species"),yr=Math.min,mr=[].push,br=!mi((function(){RegExp(4294967295,"y")}));Fo("split",2,(function(t,e,i,n){var o;return o="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,e){var n,o,r=String(this);if(void 0===t&&0===e)return[];if(!gi(n=t)||(void 0!==(o=n[vr])?!o:"RegExp"!=Ui(n)))return i.call(r,t,e);for(var s,a,h,d=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,c=void 0===e?4294967295:e>>>0,f=new RegExp(t.source,l+"g");(s=Co.call(f,r))&&!((a=f.lastIndex)>u&&(d.push(r.slice(u,s.index)),s.length>1&&s.index<r.length&&mr.apply(d,s.slice(1)),h=s[0].length,u=a,d.length>=c));)f.lastIndex===s.index&&f.lastIndex++;return u===r.length?!h&&f.test("")||d.push(""):d.push(r.slice(u)),d.length>c?d.slice(0,c):d}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var r=t(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,r,n):o.call(String(r),i,n)},function(t,e){var r=n(o,t,this,e,o!==i);if(r.done)return r.value;var s=yi(t),a=String(this),h=function(t,e){var i,n=yi(t).constructor;return void 0===n||null==(i=yi(n)[gr])?e:Ai(i)}(s,RegExp),d=s.unicode,l=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(br?"y":"g"),u=new h(br?s:"^(?:"+s.source+")",l),c=void 0===e?4294967295:e>>>0;if(0===c)return[];if(0===a.length)return null===So(u,a)?[a]:[];for(var f=0,p=0,v=[];p<a.length;){u.lastIndex=br?p:0;var g,y=So(u,br?a:a.slice(p));if(null===y||(g=yr(Qi(u.lastIndex+(br?0:p)),a.length))===f)p=bo(a,p,d);else{if(v.push(a.slice(f,p)),v.length===c)return v;for(var m=1;m<=y.length-1;m++)if(v.push(y[m]),v.length===c)return v;p=f=g}}return v.push(a.slice(f)),v}]}));var _r=Object.assign,wr=!_r||mi((function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=_r({},t)[i]||Object.keys(_r({},e)).join("")!=n}))?function(t,e){for(var i=fn(t),n=arguments.length,o=1,r=ln.f,s=un.f;n>o;)for(var a,h=Gi(arguments[o++]),d=r?dn(h).concat(r(h)):dn(h),l=d.length,u=0;l>u;)a=d[u++],bi&&!s.call(h,a)||(i[a]=h[a]);return i}:_r;zi(zi.S+zi.F,"Object",{assign:wr});var kr=function(t,e){if(yi(t),!gi(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},xr={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=Ri(Function.call,En.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return kr(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:kr}.set,Sr=function(t,e,i){var n,o=e.constructor;return o!==i&&"function"==typeof o&&(n=o.prototype)!==i.prototype&&gi(n)&&xr&&xr(t,n),t},Or="\t\n\v\f\r \u2028\u2029\ufeff",Dr="["+Or+"]",Mr=RegExp("^"+Dr+Dr+"*"),Er=RegExp(Dr+Dr+"*$"),Tr=function(t,e,i){var n={},o=mi((function(){return!!Or[t]()||"
"!="
"[t]()})),r=n[t]=o?e(Cr):Or[t];i&&(n[i]=r),zi(zi.P+zi.F*o,"String",n)},Cr=Tr.trim=function(t,e){return t=String(qi(t)),1&e&&(t=t.replace(Mr,"")),2&e&&(t=t.replace(Er,"")),t},Pr=Tr,Ir=kn.f,Nr=En.f,Fr=Di.f,Ar=Pr.trim,Rr=hi.Number,Yr=Rr,jr=Rr.prototype,zr="Number"==Ui(_n(jr)),Lr="trim"in String.prototype,Br=function(t){var e=Si(t,!1);if("string"==typeof e&&e.length>2){var i,n,o,r=(e=Lr?e.trim():Ar(e,3)).charCodeAt(0);if(43===r||45===r){if(88===(i=e.charCodeAt(2))||120===i)return NaN}else if(48===r){switch(e.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+e}for(var s,a=e.slice(2),h=0,d=a.length;h<d;h++)if((s=a.charCodeAt(h))<48||s>o)return NaN;return parseInt(a,n)}}return+e};if(!Rr(" 0o1")||!Rr("0b1")||Rr("+0x1")){Rr=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof Rr&&(zr?mi((function(){jr.valueOf.call(i)})):"Number"!=Ui(i))?Sr(new Yr(Br(e)),i,Rr):Br(e)};for(var Hr,Wr=bi?Ir(Yr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Vr=0;Wr.length>Vr;Vr++)Ci(Yr,Hr=Wr[Vr])&&!Ci(Rr,Hr)&&Fr(Rr,Hr,Nr(Yr,Hr));Rr.prototype=jr,jr.constructor=Rr,Fi(hi,"Number",Rr)}for(var Ur=ai((function(t,e){t.exports=function(){var e,i;function n(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var i in e)l(e,i)&&(t[i]=e[i]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,i,n){return Ie(t,e,i,n,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=f(t),n=i.call(e.parsedDateParts,(function(t){return null!=t})),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function v(t){var e=c(NaN);return null!=t?u(f(e),t):f(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var g=n.momentProperties=[];function y(t,e){var i,n,o;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=f(e)),s(e._locale)||(t._locale=e._locale),g.length>0)for(i=0;i<g.length;i++)s(o=e[n=g[i]])||(t[n]=o);return t}var m=!1;function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===m&&(m=!0,n.updateOffset(this),m=!1)}function _(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=w(e)),i}function x(t,e,i){var n,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(n=0;n<o;n++)(i&&t[n]!==e[n]||!i&&k(t[n])!==k(e[n]))&&s++;return s+r}function S(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function O(t,e){var i=!0;return u((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),i){for(var o,r=[],s=0;s<arguments.length;s++){if(o="","object"==typeof arguments[s]){for(var a in o+="\n["+s+"] ",arguments[0])o+=a+": "+arguments[0][a]+", ";o=o.slice(0,-2)}else o=arguments[s];r.push(o)}S(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var D,M={};function E(t,e){null!=n.deprecationHandler&&n.deprecationHandler(t,e),M[t]||(S(e),M[t]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t,e){var i,n=u({},t);for(i in e)l(e,i)&&(r(t[i])&&r(e[i])?(n[i]={},u(n[i],t[i]),u(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)l(t,i)&&!l(e,i)&&r(t[i])&&(n[i]=u({},n[i]));return n}function P(t){null!=t&&this.set(t)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)l(t,e)&&i.push(e);return i};var I={};function N(t,e){var i=t.toLowerCase();I[i]=I[i+"s"]=I[e]=t}function F(t){return"string"==typeof t?I[t]||I[t.toLowerCase()]:void 0}function A(t){var e,i,n={};for(i in t)l(t,i)&&(e=F(i))&&(n[e]=t[i]);return n}var R={};function Y(t,e){R[t]=e}function j(t,e,i){var n=""+Math.abs(t),o=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}var z=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},H={};function W(t,e,i,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),t&&(H[t]=o),e&&(H[e[0]]=function(){return j(o.apply(this,arguments),e[1],e[2])}),i&&(H[i]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function V(t,e){return t.isValid()?(e=U(e,t.localeData()),B[e]=B[e]||function(t){var e,i,n,o=t.match(z);for(e=0,i=o.length;e<i;e++)H[o[e]]?o[e]=H[o[e]]:o[e]=(n=o[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,r="";for(n=0;n<i;n++)r+=T(o[n])?o[n].call(e,t):o[n];return r}}(e),B[e](t)):t.localeData().invalidDate()}function U(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(L.lastIndex=0;i>=0&&L.test(t);)t=t.replace(L,n),L.lastIndex=0,i-=1;return t}var G=/\d/,q=/\d\d/,Z=/\d{3}/,X=/\d{4}/,$=/[+-]?\d{6}/,K=/\d\d?/,J=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,et=/\d{1,4}/,it=/[+-]?\d{1,6}/,nt=/\d+/,ot=/[+-]?\d+/,rt=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,at=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ht={};function dt(t,e,i){ht[t]=T(e)?e:function(t,n){return t&&i?i:e}}function lt(t,e){return l(ht,t)?ht[t](e._strict,e._locale):new RegExp(ut(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,o){return e||i||n||o}))))}function ut(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ct={};function ft(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),a(e)&&(n=function(t,i){i[e]=k(t)}),i=0;i<t.length;i++)ct[t[i]]=n}function pt(t,e){ft(t,(function(t,i,n,o){n._w=n._w||{},e(t,n._w,n,o)}))}function vt(t,e,i){null!=e&&l(ct,t)&&ct[t](e,i._a,i,t)}var gt=0,yt=1,mt=2,bt=3,_t=4,wt=5,kt=6,xt=7,St=8;function Ot(t){return Dt(t)?366:365}function Dt(t){return t%4==0&&t%100!=0||t%400==0}W("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),W(0,["YY",2],0,(function(){return this.year()%100})),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),N("year","y"),Y("year",1),dt("Y",ot),dt("YY",K,q),dt("YYYY",et,X),dt("YYYYY",it,$),dt("YYYYYY",it,$),ft(["YYYYY","YYYYYY"],gt),ft("YYYY",(function(t,e){e[gt]=2===t.length?n.parseTwoDigitYear(t):k(t)})),ft("YY",(function(t,e){e[gt]=n.parseTwoDigitYear(t)})),ft("Y",(function(t,e){e[gt]=parseInt(t,10)})),n.parseTwoDigitYear=function(t){return k(t)+(k(t)>68?1900:2e3)};var Mt,Et=Tt("FullYear",!0);function Tt(t,e){return function(i){return null!=i?(Pt(this,t,i),n.updateOffset(this,e),this):Ct(this,t)}}function Ct(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Pt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&Dt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),It(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function It(t,e){if(isNaN(t)||isNaN(e))return NaN;var i,n=(e%(i=12)+i)%i;return t+=(e-n)/12,1===n?Dt(t)?29:28:31-n%7%2}Mt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},W("M",["MM",2],"Mo",(function(){return this.month()+1})),W("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),W("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),N("month","M"),Y("month",8),dt("M",K),dt("MM",K,q),dt("MMM",(function(t,e){return e.monthsShortRegex(t)})),dt("MMMM",(function(t,e){return e.monthsRegex(t)})),ft(["M","MM"],(function(t,e){e[yt]=k(t)-1})),ft(["MMM","MMMM"],(function(t,e,i,n){var o=i._locale.monthsParse(t,n,i._strict);null!=o?e[yt]=o:f(i).invalidMonth=t}));var Nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ft="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),At="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Rt(t,e,i){var n,o,r,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return i?"MMM"===e?-1!