vis-network
Version:
A dynamic, browser-based visualization library.
26 lines • 375 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(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vis-util"),require("keycharm"),require("vis-data")):"function"==typeof define&&define.amd?define(["exports","vis-util","keycharm","vis-data"],t):t((e=e||self).vis=e.vis||{},e.vis,e.keycharm,e.vis)}(this,(function(e,t,i,o){"use strict";var n="default"in t?t.default:t;i=i&&i.hasOwnProperty("default")?i.default:i,"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.circle=function(e,t,i){this.beginPath(),this.arc(e,t,i,0,2*Math.PI,!1),this.closePath()},CanvasRenderingContext2D.prototype.square=function(e,t,i){this.beginPath(),this.rect(e-i,t-i,2*i,2*i),this.closePath()},CanvasRenderingContext2D.prototype.triangle=function(e,t,i){this.beginPath(),t+=.275*(i*=1.15);var o=2*i,n=o/2,s=Math.sqrt(3)/6*o,r=Math.sqrt(o*o-n*n);this.moveTo(e,t-(r-s)),this.lineTo(e+n,t+s),this.lineTo(e-n,t+s),this.lineTo(e,t-(r-s)),this.closePath()},CanvasRenderingContext2D.prototype.triangleDown=function(e,t,i){this.beginPath(),t-=.275*(i*=1.15);var o=2*i,n=o/2,s=Math.sqrt(3)/6*o,r=Math.sqrt(o*o-n*n);this.moveTo(e,t+(r-s)),this.lineTo(e+n,t-s),this.lineTo(e-n,t-s),this.lineTo(e,t+(r-s)),this.closePath()},CanvasRenderingContext2D.prototype.star=function(e,t,i){this.beginPath(),t+=.1*(i*=.82);for(var o=0;o<10;o++){var n=o%2==0?1.3*i:.5*i;this.lineTo(e+n*Math.sin(2*o*Math.PI/10),t-n*Math.cos(2*o*Math.PI/10))}this.closePath()},CanvasRenderingContext2D.prototype.diamond=function(e,t,i){this.beginPath(),this.lineTo(e,t+i),this.lineTo(e+i,t),this.lineTo(e,t-i),this.lineTo(e-i,t),this.closePath()},CanvasRenderingContext2D.prototype.roundRect=function(e,t,i,o,n){var s=Math.PI/180;i-2*n<0&&(n=i/2),o-2*n<0&&(n=o/2),this.beginPath(),this.moveTo(e+n,t),this.lineTo(e+i-n,t),this.arc(e+i-n,t+n,n,270*s,360*s,!1),this.lineTo(e+i,t+o-n),this.arc(e+i-n,t+o-n,n,0,90*s,!1),this.lineTo(e+n,t+o),this.arc(e+n,t+o-n,n,90*s,180*s,!1),this.lineTo(e,t+n),this.arc(e+n,t+n,n,180*s,270*s,!1),this.closePath()},CanvasRenderingContext2D.prototype.ellipse_vis=function(e,t,i,o){var n=i/2*.5522848,s=o/2*.5522848,r=e+i,a=t+o,h=e+i/2,d=t+o/2;this.beginPath(),this.moveTo(e,d),this.bezierCurveTo(e,d-s,h-n,t,h,t),this.bezierCurveTo(h+n,t,r,d-s,r,d),this.bezierCurveTo(r,d+s,h+n,a,h,a),this.bezierCurveTo(h-n,a,e,d+s,e,d),this.closePath()},CanvasRenderingContext2D.prototype.database=function(e,t,i,o){var n=o*(1/3),s=i/2*.5522848,r=n/2*.5522848,a=e+i,h=t+n,d=e+i/2,l=t+n/2,c=t+(o-n/2),u=t+o;this.beginPath(),this.moveTo(a,l),this.bezierCurveTo(a,l+r,d+s,h,d,h),this.bezierCurveTo(d-s,h,e,l+r,e,l),this.bezierCurveTo(e,l-r,d-s,t,d,t),this.bezierCurveTo(d+s,t,a,l-r,a,l),this.lineTo(a,c),this.bezierCurveTo(a,c+r,d+s,u,d,u),this.bezierCurveTo(d-s,u,e,c+r,e,c),this.lineTo(e,l)},CanvasRenderingContext2D.prototype.dashedLine=function(e,t,i,o,n){this.beginPath(),this.moveTo(e,t);for(var s=n.length,r=i-e,a=o-t,h=a/r,d=Math.sqrt(r*r+a*a),l=0,c=!0,u=0,p=+n[0];d>=.1;)(p=+n[l++%s])>d&&(p=d),u=Math.sqrt(p*p/(1+h*h)),e+=u=r<0?-u:u,t+=h*u,!0===c?this.lineTo(e,t):this.moveTo(e,t),d-=p,c=!c},CanvasRenderingContext2D.prototype.hexagon=function(e,t,i){this.beginPath();var o=2*Math.PI/6;this.moveTo(e+i,t);for(var n=1;n<6;n++)this.lineTo(e+i*Math.cos(o*n),t+i*Math.sin(o*n));this.closePath()});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t){return e(t={exports:{}},t.exports),t.exports}function a(e){return e&&e.default||e}var h,d,l,c=function(e){return e&&e.Math==Math&&e},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof s&&s)||Function("return this")(),p=function(e){try{return!!e()}catch(e){return!0}},f=!p((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),v={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,y={f:g&&!v.call({1:2},1)?function(e){var t=g(this,e);return!!t&&t.enumerable}:v},m=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},b={}.toString,w=function(e){return b.call(e).slice(8,-1)},k="".split,_=p((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==w(e)?k.call(e,""):Object(e)}:Object,x=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},E=function(e){return _(x(e))},O=function(e){return"object"==typeof e?null!==e:"function"==typeof e},C=function(e,t){if(!O(e))return e;var i,o;if(t&&"function"==typeof(i=e.toString)&&!O(o=i.call(e)))return o;if("function"==typeof(i=e.valueOf)&&!O(o=i.call(e)))return o;if(!t&&"function"==typeof(i=e.toString)&&!O(o=i.call(e)))return o;throw TypeError("Can't convert object to primitive value")},S={}.hasOwnProperty,T=function(e,t){return S.call(e,t)},D=u.document,M=O(D)&&O(D.createElement),I=function(e){return M?D.createElement(e):{}},P=!f&&!p((function(){return 7!=Object.defineProperty(I("div"),"a",{get:function(){return 7}}).a})),F=Object.getOwnPropertyDescriptor,B={f:f?F:function(e,t){if(e=E(e),t=C(t,!0),P)try{return F(e,t)}catch(e){}if(T(e,t))return m(!y.f.call(e,t),e[t])}},N=function(e){if(!O(e))throw TypeError(String(e)+" is not an object");return e},z=Object.defineProperty,A={f:f?z:function(e,t,i){if(N(e),t=C(t,!0),N(i),P)try{return z(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},R=f?function(e,t,i){return A.f(e,t,m(1,i))}:function(e,t,i){return e[t]=i,e},j=function(e,t){try{R(u,e,t)}catch(i){u[e]=t}return t},L=u["__core-js_shared__"]||j("__core-js_shared__",{}),H=r((function(e){(e.exports=function(e,t){return L[e]||(L[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.3.4",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),W=H("native-function-to-string",Function.toString),V=u.WeakMap,q="function"==typeof V&&/native code/.test(W.call(V)),U=0,Y=Math.random(),X=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++U+Y).toString(36)},G=H("keys"),K=function(e){return G[e]||(G[e]=X(e))},$={},Z=u.WeakMap;if(q){var J=new Z,Q=J.get,ee=J.has,te=J.set;h=function(e,t){return te.call(J,e,t),t},d=function(e){return Q.call(J,e)||{}},l=function(e){return ee.call(J,e)}}else{var ie=K("state");$[ie]=!0,h=function(e,t){return R(e,ie,t),t},d=function(e){return T(e,ie)?e[ie]:{}},l=function(e){return T(e,ie)}}var oe,ne,se={set:h,get:d,has:l,enforce:function(e){return l(e)?d(e):h(e,{})},getterFor:function(e){return function(t){var i;if(!O(t)||(i=d(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}}},re=r((function(e){var t=se.get,i=se.enforce,o=String(W).split("toString");H("inspectSource",(function(e){return W.call(e)})),(e.exports=function(e,t,n,s){var r=!!s&&!!s.unsafe,a=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||T(n,"name")||R(n,"name",t),i(n).source=o.join("string"==typeof t?t:"")),e!==u?(r?!h&&e[t]&&(a=!0):delete e[t],a?e[t]=n:R(e,t,n)):a?e[t]=n:j(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||W.call(this)}))})),ae=u,he=function(e){return"function"==typeof e?e:void 0},de=function(e,t){return arguments.length<2?he(ae[e])||he(u[e]):ae[e]&&ae[e][t]||u[e]&&u[e][t]},le=Math.ceil,ce=Math.floor,ue=function(e){return isNaN(e=+e)?0:(e>0?ce:le)(e)},pe=Math.min,fe=function(e){return e>0?pe(ue(e),9007199254740991):0},ve=Math.max,ge=Math.min,ye=function(e,t){var i=ue(e);return i<0?ve(i+t,0):ge(i,t)},me=function(e){return function(t,i,o){var n,s=E(t),r=fe(s.length),a=ye(o,r);if(e&&i!=i){for(;r>a;)if((n=s[a++])!=n)return!0}else for(;r>a;a++)if((e||a in s)&&s[a]===i)return e||a||0;return!e&&-1}},be={includes:me(!0),indexOf:me(!1)},we=be.indexOf,ke=function(e,t){var i,o=E(e),n=0,s=[];for(i in o)!T($,i)&&T(o,i)&&s.push(i);for(;t.length>n;)T(o,i=t[n++])&&(~we(s,i)||s.push(i));return s},_e=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xe=_e.concat("length","prototype"),Ee={f:Object.getOwnPropertyNames||function(e){return ke(e,xe)}},Oe={f:Object.getOwnPropertySymbols},Ce=de("Reflect","ownKeys")||function(e){var t=Ee.f(N(e)),i=Oe.f;return i?t.concat(i(e)):t},Se=function(e,t){for(var i=Ce(t),o=A.f,n=B.f,s=0;s<i.length;s++){var r=i[s];T(e,r)||o(e,r,n(t,r))}},Te=/#|\.prototype\./,De=function(e,t){var i=Ie[Me(e)];return i==Fe||i!=Pe&&("function"==typeof t?p(t):!!t)},Me=De.normalize=function(e){return String(e).replace(Te,".").toLowerCase()},Ie=De.data={},Pe=De.NATIVE="N",Fe=De.POLYFILL="P",Be=De,Ne=B.f,ze=function(e,t){var i,o,n,s,r,a=e.target,h=e.global,d=e.stat;if(i=h?u:d?u[a]||j(a,{}):(u[a]||{}).prototype)for(o in t){if(s=t[o],n=e.noTargetGet?(r=Ne(i,o))&&r.value:i[o],!Be(h?o:a+(d?".":"#")+o,e.forced)&&void 0!==n){if(typeof s==typeof n)continue;Se(s,n)}(e.sham||n&&n.sham)&&R(s,"sham",!0),re(i,o,s,e)}},Ae=Array.isArray||function(e){return"Array"==w(e)},Re=function(e,t,i){var o=C(t);o in e?A.f(e,o,m(0,i)):e[o]=i},je=!!Object.getOwnPropertySymbols&&!p((function(){return!String(Symbol())})),Le=u.Symbol,He=H("wks"),We=function(e){return He[e]||(He[e]=je&&Le[e]||(je?Le:X)("Symbol."+e))},Ve=de("navigator","userAgent")||"",qe=u.process,Ue=qe&&qe.versions,Ye=Ue&&Ue.v8;Ye?ne=(oe=Ye.split("."))[0]+oe[1]:Ve&&(oe=Ve.match(/Chrome\/(\d+)/))&&(ne=oe[1]);var Xe=ne&&+ne,Ge=We("species"),Ke=function(e){return Xe>=51||!p((function(){var t=[];return(t.constructor={})[Ge]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$e=We("species"),Ze=[].slice,Je=Math.max;ze({target:"Array",proto:!0,forced:!Ke("slice")},{slice:function(e,t){var i,o,n,s=E(this),r=fe(s.length),a=ye(e,r),h=ye(void 0===t?r:t,r);if(Ae(s)&&("function"!=typeof(i=s.constructor)||i!==Array&&!Ae(i.prototype)?O(i)&&null===(i=i[$e])&&(i=void 0):i=void 0,i===Array||void 0===i))return Ze.call(s,a,h);for(o=new(void 0===i?Array:i)(Je(h-a,0)),n=0;a<h;a++,n++)a in s&&Re(o,n,s[a]);return o.length=n,o}});var Qe=function(e){return Object(x(e))},et=We("species"),tt=function(e,t){var i;return Ae(e)&&("function"!=typeof(i=e.constructor)||i!==Array&&!Ae(i.prototype)?O(i)&&null===(i=i[et])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===t?0:t)},it=Math.max,ot=Math.min;ze({target:"Array",proto:!0,forced:!Ke("splice")},{splice:function(e,t){var i,o,n,s,r,a,h=Qe(this),d=fe(h.length),l=ye(e,d),c=arguments.length;if(0===c?i=o=0:1===c?(i=0,o=d-l):(i=c-2,o=ot(it(ue(t),0),d-l)),d+i-o>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(n=tt(h,o),s=0;s<o;s++)(r=l+s)in h&&Re(n,s,h[r]);if(n.length=o,i<o){for(s=l;s<d-o;s++)a=s+i,(r=s+o)in h?h[a]=h[r]:delete h[a];for(s=d;s>d-o+i;s--)delete h[s-1]}else if(i>o)for(s=d-o;s>l;s--)a=s+i-1,(r=s+o-1)in h?h[a]=h[r]:delete h[a];for(s=0;s<i;s++)h[s+l]=arguments[s+2];return h.length=d-o+i,n}});var nt=r((function(e){function t(e){if(e)return function(e){for(var i in t.prototype)e[i]=t.prototype[i];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function i(){this.off(e,i),t.apply(this,arguments)}return i.fn=t,this.on(e,i),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,o=this._callbacks["$"+e];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var n=0;n<o.length;n++)if((i=o[n])===t||i.fn===t){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),i=this._callbacks["$"+e],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(i){o=0;for(var n=(i=i.slice(0)).length;o<n;++o)i[o].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}})),st=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},rt=function(e,t,i){if(st(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,o){return e.call(t,i,o)};case 3:return function(i,o,n){return e.call(t,i,o,n)}}return function(){return e.apply(t,arguments)}},at=[].push,ht=function(e){var t=1==e,i=2==e,o=3==e,n=4==e,s=6==e,r=5==e||s;return function(a,h,d,l){for(var c,u,p=Qe(a),f=_(p),v=rt(h,d,3),g=fe(f.length),y=0,m=l||tt,b=t?m(a,g):i?m(a,0):void 0;g>y;y++)if((r||y in f)&&(u=v(c=f[y],y,p),e))if(t)b[y]=u;else if(u)switch(e){case 3:return!0;case 5:return c;case 6:return y;case 2:at.call(b,c)}else if(n)return!1;return s?-1:o||n?n:b}},dt={forEach:ht(0),map:ht(1),filter:ht(2),some:ht(3),every:ht(4),find:ht(5),findIndex:ht(6)},lt=function(e,t){var i=[][e];return!i||!p((function(){i.call(null,t||function(){throw 1},1)}))},ct=dt.forEach,ut=lt("forEach")?function(e){return ct(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach;ze({target:"Array",proto:!0,forced:[].forEach!=ut},{forEach:ut});var pt=Object.keys||function(e){return ke(e,_e)},ft=f?Object.defineProperties:function(e,t){N(e);for(var i,o=pt(t),n=o.length,s=0;n>s;)A.f(e,i=o[s++],t[i]);return e},vt=de("document","documentElement"),gt=K("IE_PROTO"),yt=function(){},mt=function(){var e,t=I("iframe"),i=_e.length;for(t.style.display="none",vt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),mt=e.F;i--;)delete mt.prototype[_e[i]];return mt()},bt=Object.create||function(e,t){var i;return null!==e?(yt.prototype=N(e),i=new yt,yt.prototype=null,i[gt]=e):i=mt(),void 0===t?i:ft(i,t)};$[gt]=!0;var wt=We("unscopables"),kt=Array.prototype;null==kt[wt]&&R(kt,wt,bt(null));var _t=function(e){kt[wt][e]=!0},xt=be.includes;ze({target:"Array",proto:!0},{includes:function(e){return xt(this,e,arguments.length>1?arguments[1]:void 0)}}),_t("includes");var Et=be.indexOf,Ot=[].indexOf,Ct=!!Ot&&1/[1].indexOf(1,-0)<0,St=lt("indexOf");ze({target:"Array",proto:!0,forced:Ct||St},{indexOf:function(e){return Ct?Ot.apply(this,arguments)||0:Et(this,e,arguments.length>1?arguments[1]:void 0)}});var Tt=A.f,Dt=Function.prototype,Mt=Dt.toString,It=/^\s*function ([^ (]*)/;!f||"name"in Dt||Tt(Dt,"name",{configurable:!0,get:function(){try{return Mt.call(this).match(It)[1]}catch(e){return""}}});var Pt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),t=i instanceof Array}catch(e){}return function(i,o){return N(i),function(e){if(!O(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(o),t?e.call(i,o):i.__proto__=o,i}}():void 0),Ft=function(e,t,i){var o,n;return Pt&&"function"==typeof(o=t.constructor)&&o!==i&&O(n=o.prototype)&&n!==i.prototype&&Pt(e,n),e},Bt="\t\n\v\f\r \u2028\u2029\ufeff",Nt="["+Bt+"]",zt=RegExp("^"+Nt+Nt+"*"),At=RegExp(Nt+Nt+"*$"),Rt=function(e){return function(t){var i=String(x(t));return 1&e&&(i=i.replace(zt,"")),2&e&&(i=i.replace(At,"")),i}},jt={start:Rt(1),end:Rt(2),trim:Rt(3)},Lt=Ee.f,Ht=B.f,Wt=A.f,Vt=jt.trim,qt=u.Number,Ut=qt.prototype,Yt="Number"==w(bt(Ut)),Xt=function(e){var t,i,o,n,s,r,a,h,d=C(e,!1);if("string"==typeof d&&d.length>2)if(43===(t=(d=Vt(d)).charCodeAt(0))||45===t){if(88===(i=d.charCodeAt(2))||120===i)return NaN}else if(48===t){switch(d.charCodeAt(1)){case 66:case 98:o=2,n=49;break;case 79:case 111:o=8,n=55;break;default:return+d}for(r=(s=d.slice(2)).length,a=0;a<r;a++)if((h=s.charCodeAt(a))<48||h>n)return NaN;return parseInt(s,o)}return+d};if(Be("Number",!qt(" 0o1")||!qt("0b1")||qt("+0x1"))){for(var Gt,Kt=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof Kt&&(Yt?p((function(){Ut.valueOf.call(i)})):"Number"!=w(i))?Ft(new qt(Xt(t)),i,Kt):Xt(t)},$t=f?Lt(qt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Zt=0;$t.length>Zt;Zt++)T(qt,Gt=$t[Zt])&&!T(Kt,Gt)&&Wt(Kt,Gt,Ht(qt,Gt));Kt.prototype=Ut,Ut.constructor=Kt,re(u,"Number",Kt)}var Jt=function(){var e=N(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Qt=RegExp.prototype.exec,ei=String.prototype.replace,ti=Qt,ii=function(){var e=/a/,t=/b*/g;return Qt.call(e,"a"),Qt.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),oi=void 0!==/()??/.exec("")[1];(ii||oi)&&(ti=function(e){var t,i,o,n,s=this;return oi&&(i=new RegExp("^"+s.source+"$(?!\\s)",Jt.call(s))),ii&&(t=s.lastIndex),o=Qt.call(s,e),ii&&o&&(s.lastIndex=s.global?o.index+o[0].length:t),oi&&o&&o.length>1&&ei.call(o[0],i,(function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(o[n]=void 0)})),o});var ni=ti;ze({target:"RegExp",proto:!0,forced:/./.exec!==ni},{exec:ni});var si=We("match"),ri=function(e){var t;return O(e)&&(void 0!==(t=e[si])?!!t:"RegExp"==w(e))},ai=function(e){if(ri(e))throw TypeError("The method doesn't accept regular expressions");return e},hi=We("match");ze({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[hi]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~String(x(this)).indexOf(ai(e),arguments.length>1?arguments[1]:void 0)}});var di=We("species"),li=!p((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),ci=!p((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),ui=function(e,t,i,o){var n=We(e),s=!p((function(){var t={};return t[n]=function(){return 7},7!=""[e](t)})),r=s&&!p((function(){var t=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[di]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return t=!0,null},i[n](""),!t}));if(!s||!r||"replace"===e&&!li||"split"===e&&!ci){var a=/./[n],h=i(n,""[e],(function(e,t,i,o,n){return t.exec===ni?s&&!n?{done:!0,value:a.call(t,i,o)}:{done:!0,value:e.call(i,t,o)}:{done:!1}})),d=h[0],l=h[1];re(String.prototype,e,d),re(RegExp.prototype,n,2==t?function(e,t){return l.call(e,this,t)}:function(e){return l.call(e,this)}),o&&R(RegExp.prototype[n],"sham",!0)}},pi=We("species"),fi=function(e){return function(t,i){var o,n,s=String(x(t)),r=ue(i),a=s.length;return r<0||r>=a?e?"":void 0:(o=s.charCodeAt(r))<55296||o>56319||r+1===a||(n=s.charCodeAt(r+1))<56320||n>57343?e?s.charAt(r):o:e?s.slice(r,r+2):n-56320+(o-55296<<10)+65536}},vi={codeAt:fi(!1),charAt:fi(!0)},gi=vi.charAt,yi=function(e,t,i){return t+(i?gi(e,t).length:1)},mi=function(e,t){var i=e.exec;if("function"==typeof i){var o=i.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==w(e))throw TypeError("RegExp#exec called on incompatible receiver");return ni.call(e,t)},bi=[].push,wi=Math.min,ki=!p((function(){return!RegExp(4294967295,"y")}));ui("split",2,(function(e,t,i){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(e,i){var o=String(x(this)),n=void 0===i?4294967295:i>>>0;if(0===n)return[];if(void 0===e)return[o];if(!ri(e))return t.call(o,e,n);for(var s,r,a,h=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,d+"g");(s=ni.call(c,o))&&!((r=c.lastIndex)>l&&(h.push(o.slice(l,s.index)),s.length>1&&s.index<o.length&&bi.apply(h,s.slice(1)),a=s[0].length,l=r,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return l===o.length?!a&&c.test("")||h.push(""):h.push(o.slice(l)),h.length>n?h.slice(0,n):h}:"0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:t.call(this,e,i)}:t,[function(t,i){var n=x(this),s=null==t?void 0:t[e];return void 0!==s?s.call(t,n,i):o.call(String(n),t,i)},function(e,n){var s=i(o,e,this,n,o!==t);if(s.done)return s.value;var r=N(e),a=String(this),h=function(e,t){var i,o=N(e).constructor;return void 0===o||null==(i=N(o)[pi])?t:st(i)}(r,RegExp),d=r.unicode,l=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(ki?"y":"g"),c=new h(ki?r:"^(?:"+r.source+")",l),u=void 0===n?4294967295:n>>>0;if(0===u)return[];if(0===a.length)return null===mi(c,a)?[a]:[];for(var p=0,f=0,v=[];f<a.length;){c.lastIndex=ki?f:0;var g,y=mi(c,ki?a:a.slice(f));if(null===y||(g=wi(fe(c.lastIndex+(ki?0:f)),a.length))===p)f=yi(a,f,d);else{if(v.push(a.slice(p,f)),v.length===u)return v;for(var m=1;m<=y.length-1;m++)if(v.push(y[m]),v.length===u)return v;f=p=g}}return v.push(a.slice(p)),v}]}),!ki);var _i={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var xi in _i){var Ei=u[xi],Oi=Ei&&Ei.prototype;if(Oi&&Oi.forEach!==ut)try{R(Oi,"forEach",ut)}catch(e){Oi.forEach=ut}}function Ci(e){return Ii=e,function(){var e={};Pi=0,void(Fi=Ii.charAt(0)),Ui(),"strict"===Bi&&(e.strict=!0,Ui());"graph"!==Bi&&"digraph"!==Bi||(e.type=Bi,Ui());Ni===Di.IDENTIFIER&&(e.id=Bi,Ui());if("{"!=Bi)throw Zi("Angle bracket { expected");if(Ui(),Yi(e),"}"!=Bi)throw Zi("Angle bracket } expected");if(Ui(),""!==Bi)throw Zi("End of file expected");return Ui(),delete e.node,delete e.edge,delete e.graph,e}()}var Si={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},Ti=Object.create(Si);Ti.color="color.color",Ti.style="dashes";var Di={NULL:0,DELIMITER:1,IDENTIFIER:2,UNKNOWN:3},Mi={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},Ii="",Pi=0,Fi="",Bi="",Ni=Di.NULL;function zi(){Pi++,Fi=Ii.charAt(Pi)}function Ai(){return Ii.charAt(Pi+1)}var Ri=/[a-zA-Z_0-9.:#]/;function ji(e){return Ri.test(e)}function Li(e,t){if(e||(e={}),t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Hi(e,t,i){for(var o=t.split("."),n=e;o.length;){var s=o.shift();o.length?(n[s]||(n[s]={}),n=n[s]):n[s]=i}}function Wi(e,t){for(var i,o,n=null,s=[e],r=e;r.parent;)s.push(r.parent),r=r.parent;if(r.nodes)for(i=0,o=r.nodes.length;i<o;i++)if(t.id===r.nodes[i].id){n=r.nodes[i];break}for(n||(n={id:t.id},e.node&&(n.attr=Li(n.attr,e.node))),i=s.length-1;i>=0;i--){var a=s[i];a.nodes||(a.nodes=[]),-1===a.nodes.indexOf(n)&&a.nodes.push(n)}t.attr&&(n.attr=Li(n.attr,t.attr))}function Vi(e,t){if(e.edges||(e.edges=[]),e.edges.push(t),e.edge){var i=Li({},e.edge);t.attr=Li(i,t.attr)}}function qi(e,t,i,o,n){var s={from:t,to:i,type:o};return e.edge&&(s.attr=Li({},e.edge)),s.attr=Li(s.attr||{},n),null!=n&&n.hasOwnProperty("arrows")&&null!=n.arrows&&(s.arrows={to:{enabled:!0,type:n.arrows.type}},n.arrows=null),s}function Ui(){for(Ni=Di.NULL,Bi="";" "===Fi||"\t"===Fi||"\n"===Fi||"\r"===Fi;)zi();do{var e=!1;if("#"===Fi){for(var t=Pi-1;" "===Ii.charAt(t)||"\t"===Ii.charAt(t);)t--;if("\n"===Ii.charAt(t)||""===Ii.charAt(t)){for(;""!=Fi&&"\n"!=Fi;)zi();e=!0}}if("/"===Fi&&"/"===Ai()){for(;""!=Fi&&"\n"!=Fi;)zi();e=!0}if("/"===Fi&&"*"===Ai()){for(;""!=Fi;){if("*"===Fi&&"/"===Ai()){zi(),zi();break}zi()}e=!0}for(;" "===Fi||"\t"===Fi||"\n"===Fi||"\r"===Fi;)zi()}while(e);if(""!==Fi){var i=Fi+Ai();if(Mi[i])return Ni=Di.DELIMITER,Bi=i,zi(),void zi();if(Mi[Fi])return Ni=Di.DELIMITER,Bi=Fi,void zi();if(ji(Fi)||"-"===Fi){for(Bi+=Fi,zi();ji(Fi);)Bi+=Fi,zi();return"false"===Bi?Bi=!1:"true"===Bi?Bi=!0:isNaN(Number(Bi))||(Bi=Number(Bi)),void(Ni=Di.IDENTIFIER)}if('"'===Fi){for(zi();""!=Fi&&('"'!=Fi||'"'===Fi&&'"'===Ai());)'"'===Fi?(Bi+=Fi,zi()):"\\"===Fi&&"n"===Ai()?(Bi+="\n",zi()):Bi+=Fi,zi();if('"'!=Fi)throw Zi('End of string " expected');return zi(),void(Ni=Di.IDENTIFIER)}for(Ni=Di.UNKNOWN;""!=Fi;)Bi+=Fi,zi();throw new SyntaxError('Syntax error in part "'+Ji(Bi,30)+'"')}Ni=Di.DELIMITER}function Yi(e){for(;""!==Bi&&"}"!=Bi;)Xi(e),";"===Bi&&Ui()}function Xi(e){var t=Gi(e);if(t)Ki(e,t);else if(!function(e){if("node"===Bi)return Ui(),e.node=$i(),"node";if("edge"===Bi)return Ui(),e.edge=$i(),"edge";if("graph"===Bi)return Ui(),e.graph=$i(),"graph";return null}(e)){if(Ni!=Di.IDENTIFIER)throw Zi("Identifier expected");var i=Bi;if(Ui(),"="===Bi){if(Ui(),Ni!=Di.IDENTIFIER)throw Zi("Identifier expected");e[i]=Bi,Ui()}else!function(e,t){var i={id:t},o=$i();o&&(i.attr=o);Wi(e,i),Ki(e,t)}(e,i)}}function Gi(e){var t=null;if("subgraph"===Bi&&((t={}).type="subgraph",Ui(),Ni===Di.IDENTIFIER&&(t.id=Bi,Ui())),"{"===Bi){if(Ui(),t||(t={}),t.parent=e,t.node=e.node,t.edge=e.edge,t.graph=e.graph,Yi(t),"}"!=Bi)throw Zi("Angle bracket } expected");Ui(),delete t.node,delete t.edge,delete t.graph,delete t.parent,e.subgraphs||(e.subgraphs=[]),e.subgraphs.push(t)}return t}function Ki(e,t){for(;"->"===Bi||"--"===Bi;){var i,o=Bi;Ui();var n=Gi(e);if(n)i=n;else{if(Ni!=Di.IDENTIFIER)throw Zi("Identifier or subgraph expected");Wi(e,{id:i=Bi}),Ui()}Vi(e,qi(e,t,i,o,$i())),t=i}}function $i(){for(var e,t,i=null,o={dashed:!0,solid:!1,dotted:[1,5]},n={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},s=new Array,r=new Array;"["===Bi;){for(Ui(),i={};""!==Bi&&"]"!=Bi;){if(Ni!=Di.IDENTIFIER)throw Zi("Attribute name expected");var a=Bi;if(Ui(),"="!=Bi)throw Zi("Equal sign = expected");if(Ui(),Ni!=Di.IDENTIFIER)throw Zi("Attribute value expected");var h=Bi;"style"===a&&(h=o[h]),"arrowhead"===a&&(a="arrows",h={to:{enabled:!0,type:n[h]}}),"arrowtail"===a&&(a="arrows",h={from:{enabled:!0,type:n[h]}}),s.push({attr:i,name:a,value:h}),r.push(a),Ui(),","==Bi&&Ui()}if("]"!=Bi)throw Zi("Bracket ] expected");Ui()}if(r.includes("dir")){var d={arrows:{}};for(e=0;e<s.length;e++)if("arrows"===s[e].name)if(null!=s[e].value.to)d.arrows.to=e;else{if(null==s[e].value.from)throw Zi("Invalid value of arrows");d.arrows.from=e}else"dir"===s[e].name&&(d.dir=e);var l,c,u=s[d.dir].value;if(!r.includes("arrows"))if("both"===u)s.push({attr:s[d.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),d.arrows.to=s.length-1,s.push({attr:s[d.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),d.arrows.from=s.length-1;else if("forward"===u)s.push({attr:s[d.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),d.arrows.to=s.length-1;else if("back"===u)s.push({attr:s[d.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),d.arrows.from=s.length-1;else{if("none"!==u)throw Zi('Invalid dir type "'+u+'"');s.push({attr:s[d.dir].attr,name:"arrows",value:""}),d.arrows.to=s.length-1}if("both"===u)d.arrows.to&&d.arrows.from?(c=s[d.arrows.to].value.to.type,l=s[d.arrows.from].value.from.type,s[d.arrows.to]={attr:s[d.arrows.to].attr,name:s[d.arrows.to].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}},s.splice(d.arrows.from,1)):d.arrows.to?(c=s[d.arrows.to].value.to.type,l="arrow",s[d.arrows.to]={attr:s[d.arrows.to].attr,name:s[d.arrows.to].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}):d.arrows.from&&(c="arrow",l=s[d.arrows.from].value.from.type,s[d.arrows.from]={attr:s[d.arrows.from].attr,name:s[d.arrows.from].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}});else if("back"===u)d.arrows.to&&d.arrows.from?(c="",l=s[d.arrows.from].value.from.type,s[d.arrows.from]={attr:s[d.arrows.from].attr,name:s[d.arrows.from].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}):d.arrows.to?(c="",l="arrow",d.arrows.from=d.arrows.to,s[d.arrows.from]={attr:s[d.arrows.from].attr,name:s[d.arrows.from].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}):d.arrows.from&&(c="",l=s[d.arrows.from].value.from.type,s[d.arrows.to]={attr:s[d.arrows.from].attr,name:s[d.arrows.from].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}),s[d.arrows.from]={attr:s[d.arrows.from].attr,name:s[d.arrows.from].name,value:{from:{enabled:!0,type:s[d.arrows.from].value.from.type}}};else if("none"===u){var p;s[p=d.arrows.to?d.arrows.to:d.arrows.from]={attr:s[p].attr,name:s[p].name,value:""}}else{if("forward"!==u)throw Zi('Invalid dir type "'+u+'"');d.arrows.to&&d.arrows.from?(c=s[d.arrows.to].value.to.type,l="",s[d.arrows.to]={attr:s[d.arrows.to].attr,name:s[d.arrows.to].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}):d.arrows.to?(c=s[d.arrows.to].value.to.type,l="",s[d.arrows.to]={attr:s[d.arrows.to].attr,name:s[d.arrows.to].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}):d.arrows.from&&(c="arrow",l="",d.arrows.to=d.arrows.from,s[d.arrows.to]={attr:s[d.arrows.to].attr,name:s[d.arrows.to].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}),s[d.arrows.to]={attr:s[d.arrows.to].attr,name:s[d.arrows.to].name,value:{to:{enabled:!0,type:s[d.arrows.to].value.to.type}}}}s.splice(d.dir,1)}if(r.includes("penwidth")){var f=[];for(t=s.length,e=0;e<t;e++)"width"!==s[e].name&&("penwidth"===s[e].name&&(s[e].name="width"),f.push(s[e]));s=f}for(t=s.length,e=0;e<t;e++)Hi(s[e].attr,s[e].name,s[e].value);return i}function Zi(e){return new SyntaxError(e+', got "'+Ji(Bi,30)+'" (char '+Pi+")")}function Ji(e,t){return e.length<=t?e:e.substr(0,27)+"..."}function Qi(e,t,i){for(var o=t.split("."),n=o.pop(),s=e,r=0;r<o.length;r++){var a=o[r];a in s||(s[a]={}),s=s[a]}return s[n]=i,e}function eo(e,t){var i={};for(var o in e)if(e.hasOwnProperty(o)){var n=t[o];Array.isArray(n)?n.forEach((function(t){Qi(i,t,e[o])})):Qi(i,"string"==typeof n?n:o,e[o])}return i}var to=Ci,io=function(e){var t=Ci(e),i={nodes:[],edges:[],options:{}};if(t.nodes&&t.nodes.forEach((function(e){var t={id:e.id,label:String(e.label||e.id)};Li(t,eo(e.attr,Si)),t.image&&(t.shape="image"),i.nodes.push(t)})),t.edges){var o=function(e){var t={from:e.from,to:e.to};return Li(t,eo(e.attr,Ti)),null==t.arrows&&"->"===e.type&&(t.arrows="to"),t};t.edges.forEach((function(e){var t,n,s,r,a;t=e.from instanceof Object?e.from.nodes:{id:e.from},n=e.to instanceof Object?e.to.nodes:{id:e.to},e.from instanceof Object&&e.from.edges&&e.from.edges.forEach((function(e){var t=o(e);i.edges.push(t)})),s=t,r=n,a=function(t,n){var s=qi(i,t.id,n.id,e.type,e.attr),r=o(s);i.edges.push(r)},Array.isArray(s)?s.forEach((function(e){Array.isArray(r)?r.forEach((function(t){a(e,t)})):a(e,r)})):Array.isArray(r)?r.forEach((function(e){a(s,e)})):a(s,r),e.to instanceof Object&&e.to.edges&&e.to.edges.forEach((function(e){var t=o(e);i.edges.push(t)}))}))}return t.attr&&(i.options=t.attr),i},oo={parseDOT:to,DOTToGraph:io},no=Object.freeze({__proto__:null,default:oo,__moduleExports:oo,parseDOT:to,DOTToGraph:io}),so=dt.map;ze({target:"Array",proto:!0,forced:!Ke("map")},{map:function(e){return so(this,e,arguments.length>1?arguments[1]:void 0)}});var ro=/"/g,ao=function(e,t,i,o){var n=String(x(e)),s="<"+t;return""!==i&&(s+=" "+i+'="'+String(o).replace(ro,""")+'"'),s+">"+n+"</"+t+">"},ho=function(e){return p((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function lo(e,t){var i={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};null!=t&&(null!=t.fixed&&(i.nodes.fixed=t.fixed),null!=t.parseColor&&(i.nodes.parseColor=t.parseColor),null!=t.inheritColor&&(i.edges.inheritColor=t.inheritColor));var o=e.edges.map((function(e){var t={from:e.source,id:e.id,to:e.target};return null!=e.attributes&&(t.attributes=e.attributes),null!=e.label&&(t.label=e.label),null!=e.attributes&&null!=e.attributes.title&&(t.title=e.attributes.title),"Directed"===e.type&&(t.arrows="to"),e.color&&!1===i.edges.inheritColor&&(t.color=e.color),t}));return{nodes:e.nodes.map((function(e){var t={id:e.id,fixed:i.nodes.fixed&&null!=e.x&&null!=e.y};return null!=e.attributes&&(t.attributes=e.attributes),null!=e.label&&(t.label=e.label),null!=e.size&&(t.size=e.size),null!=e.attributes&&null!=e.attributes.title&&(t.title=e.attributes.title),null!=e.title&&(t.title=e.title),null!=e.x&&(t.x=e.x),null!=e.y&&(t.y=e.y),null!=e.color&&(!0===i.nodes.parseColor?t.color=e.color:t.color={background:e.color,border:e.color,highlight:{background:e.color,border:e.color},hover:{background:e.color,border:e.color}}),t})),edges:o}}ze({target:"String",proto:!0,forced:ho("fixed")},{fixed:function(){return ao(this,"tt","","")}});var co=Object.freeze({__proto__:null,parseGephi:lo}),uo=Object.freeze({__proto__:null,default:void 0}),po=We("isConcatSpreadable"),fo=!p((function(){var e=[];return e[po]=!1,e.concat()[0]!==e})),vo=Ke("concat"),go=function(e){if(!O(e))return!1;var t=e[po];return void 0!==t?!!t:Ae(e)};ze({target:"Array",proto:!0,forced:!fo||!vo},{concat:function(e){var t,i,o,n,s,r=Qe(this),a=tt(r,0),h=0;for(t=-1,o=arguments.length;t<o;t++)if(s=-1===t?r:arguments[t],go(s)){if(h+(n=fe(s.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<n;i++,h++)i in s&&Re(a,h,s[i])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Re(a,h++,s)}return a.length=h,a}});var yo=dt.filter;ze({target:"Array",proto:!0,forced:!Ke("filter")},{filter:function(e){return yo(this,e,arguments.length>1?arguments[1]:void 0)}});var mo=[].join,bo=_!=Object,wo=lt("join",",");ze({target:"Array",proto:!0,forced:bo||wo},{join:function(e){return mo.call(E(this),void 0===e?",":e)}});var ko=[].sort,_o=[1,2,3],xo=p((function(){_o.sort(void 0)})),Eo=p((function(){_o.sort(null)})),Oo=lt("sort");ze({target:"Array",proto:!0,forced:xo||!Eo||Oo},{sort:function(e){return void 0===e?ko.call(Qe(this)):ko.call(Qe(this),st(e))}});var Co=Date.prototype,So=Co.toString,To=Co.getTime;new Date(NaN)+""!="Invalid Date"&&re(Co,"toString",(function(){var e=To.call(this);return e==e?So.call(this):"Invalid Date"}));var Do=Object.assign,Mo=!Do||p((function(){var e={},t={},i=Symbol();return e[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=Do({},e)[i]||"abcdefghijklmnopqrst"!=pt(Do({},t)).join("")}))?function(e,t){for(var i=Qe(e),o=arguments.length,n=1,s=Oe.f,r=y.f;o>n;)for(var a,h=_(arguments[n++]),d=s?pt(h).concat(s(h)):pt(h),l=d.length,c=0;l>c;)a=d[c++],f&&!r.call(h,a)||(i[a]=h[a]);return i}:Do;ze({target:"Object",stat:!0,forced:Object.assign!==Mo},{assign:Mo});var Io=p((function(){pt(1)}));ze({target:"Object",stat:!0,forced:Io},{keys:function(e){return pt(Qe(e))}});var Po=Math.max,Fo=Math.min,Bo=Math.floor,No=/\$([$&'`]|\d\d?|<[^>]*>)/g,zo=/\$([$&'`]|\d\d?)/g;ui("replace",2,(function(e,t,i){return[function(i,o){var n=x(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,n,o):t.call(String(n),i,o)},function(e,n){var s=i(t,e,this,n);if(s.done)return s.value;var r=N(e),a=String(this),h="function"==typeof n;h||(n=String(n));var d=r.global;if(d){var l=r.unicode;r.lastIndex=0}for(var c=[];;){var u=mi(r,a);if(null===u)break;if(c.push(u),!d)break;""===String(u[0])&&(r.lastIndex=yi(a,fe(r.lastIndex),l))}for(var p,f="",v=0,g=0;g<c.length;g++){u=c[g];for(var y=String(u[0]),m=Po(Fo(ue(u.index),a.length),0),b=[],w=1;w<u.length;w++)b.push(void 0===(p=u[w])?p:String(p));var k=u.groups;if(h){var _=[y].concat(b,m,a);void 0!==k&&_.push(k);var x=String(n.apply(void 0,_))}else x=o(y,a,m,b,k,n);m>=v&&(f+=a.slice(v,m)+x,v=m+y.length)}return f+a.slice(v)}];function o(e,i,o,n,s,r){var a=o+e.length,h=n.length,d=zo;return void 0!==s&&(s=Qe(s),d=No),t.call(r,d,(function(t,r){var d;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return i.slice(0,o);case"'":return i.slice(a);case"<":d=s[r.slice(1,-1)];break;default:var l=+r;if(0===l)return t;if(l>h){var c=Bo(l/10);return 0===c?t:c<=h?void 0===n[c-1]?r.charAt(1):n[c-1]+r.charAt(1):t}d=n[l-1]}return void 0===d?"":d}))}}));var Ao=jt.trim;function Ro(e){return(Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lo(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ho(e,t,i){return t&&Lo(e.prototype,t),i&&Lo(e,i),e}function Wo(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Vo(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function qo(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Vo(i,!0).forEach((function(t){Wo(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Vo(i).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Uo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xo(e,t)}function Yo(e){return(Yo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xo(e,t){return(Xo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Go(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ko(e,t,i){return(Ko="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Yo(e)););return e}(e,t);if(o){var n=Object.getOwnPropertyDescriptor(o,t);return n.get?n.get.call(i):n.value}})(e,t,i||e)}function $o(e){throw new Error('"'+e+'" is read-only')}function Zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var i=[],o=!0,n=!1,s=void 0;try{for(var r,a=e[Symbol.iterator]();!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){n=!0,s=e}finally{try{o||null==a.return||a.return()}finally{if(n)throw s}}return i}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Jo(){return(Jo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}function Qo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function en(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}ze({target:"String",proto:!0,forced:function(e){return p((function(){return!!Bt[e]()||"
"!="
"[e]()||Bt[e].name!==e}))}("trim")},{trim:function(){return Ao(this)}});var tn,on="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var n in o)o.hasOwnProperty(n)&&(t[n]=o[n])}return t}:Object.assign,nn=["","webkit","Moz","MS","ms","o"],sn="undefined"==typeof document?{style:{}}:document.createElement("div"),rn="function",an=Math.round,hn=Math.abs,dn=Date.now;function ln(e,t){for(var i,o,n=t[0].toUpperCase()+t.slice(1),s=0;s<nn.length;){if((o=(i=nn[s])?i+n:t)in e)return o;s++}}tn="undefined"==typeof window?{}:window;var cn=ln(sn.style,"touchAction"),un=void 0!==cn;var pn="auto",fn="manipulation",vn="none",gn="pan-x",yn="pan-y",mn=function(){if(!un)return!1;var e={},t=tn.CSS&&tn.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return e[i]=!t||tn.CSS.supports("touch-action",i)})),e}(),bn="ontouchstart"in tn,wn=void 0!==ln(tn,"PointerEvent"),kn=bn&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),_n="touch",xn="mouse",En=25,On=1,Cn=2,Sn=4,Tn=8,Dn=1,Mn=2,In=4,Pn=8,Fn=16,Bn=Mn|In,Nn=Pn|Fn,zn=Bn|Nn,An=["x","y"],Rn=["clientX","clientY"];function jn(e,t,i){var o;if(e)if(e.forEach)e.forEach(t,i);else if(void 0!==e.length)for(o=0;o<e.length;)t.call(i,e[o],o,e),o++;else for(o in e)e.hasOwnProperty(o)&&t.call(i,e[o],o,e)}function Ln(e,t){return Ro(e)===rn?e.apply(t&&t[0]||void 0,t):e}function Hn(e,t){return e.indexOf(t)>-1}var Wn=function(){function e(e,t){this.manager=e,this.set(t)}var t=e.prototype;return t.set=function(e){"compute"===e&&(e=this.compute()),un&&this.manager.element.style&&mn[e]&&(this.manager.element.style[cn]=e),this.actions=e.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var e=[];return jn(this.manager.recognizers,(function(t){Ln(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(Hn(e,vn))return vn;var t=Hn(e,gn),i=Hn(e,yn);return t&&i?vn:t||i?t?gn:yn:Hn(e,fn)?fn:pn}(e.join(" "))},t.preventDefaults=function(e){var t=e.srcEvent,i=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var o=this.actions,n=Hn(o,vn)&&!mn[vn],s=Hn(o,yn)&&!mn[yn],r=Hn(o,gn)&&!mn[gn];if(n){var a=1===e.pointers.length,h=e.distance<2,d=e.deltaTime<250;if(a&&h&&d)return}if(!r||!s)return n||s&&i&Bn||r&&i&Nn?this.preventSrc(t):void 0}},t.preventSrc=function(e){this.manager.session.prevented=!0,e.preventDefault()},e}();function Vn(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function qn(e){var t=e.length;if(1===t)return{x:an(e[0].clientX),y:an(e[0].clientY)};for(var i=0,o=0,n=0;n<t;)i+=e[n].clientX,o+=e[n].clientY,n++;return{x:an(i/t),y:an(o/t)}}function Un(e){for(var t=[],i=0;i<e.pointers.length;)t[i]={clientX:an(e.pointers[i].clientX),clientY:an(e.pointers[i].clientY)},i++;return{timeStamp:dn(),pointers:t,center:qn(t),deltaX:e.deltaX,deltaY:e.deltaY}}function Yn(e,t,i){i||(i=An);var o=t[i[0]]-e[i[0]],n=t[i[1]]-e[i[1]];return Math.sqrt(o*o+n*n)}function Xn(e,t,i){i||(i=An);var o=t[i[0]]-e[i[0]],n=t[i[1]]-e[i[1]];return 180*Math.atan2(n,o)/Math.PI}function Gn(e,t){return e===t?Dn:hn(e)>=hn(t)?e<0?Mn:In:t<0?Pn:Fn}function Kn(e,t,i){return{x:t/e||0,y:i/e||0}}function $n(e,t){var i=e.session,o=t.pointers,n=o.length;i.firstInput||(i.firstInput=Un(t)),n>1&&!i.firstMultiple?i.firstMultiple=Un(t):1===n&&(i.firstMultiple=!1);var s=i.firstInput,r=i.firstMultiple,a=r?r.center:s.center,h=t.center=qn(o);t.timeStamp=dn(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=Xn(a,h),t.distance=Yn(a,h),function(e,t){var i=t.center,o=e.offsetDelta||{},n=e.prevDelta||{},s=e.prevInput||{};t.eventType!==On&&s.eventType!==Sn||(n=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},o=e.offsetDelta={x:i.x,y:i.y}),t.deltaX=n.x+(i.x-o.x),t.deltaY=n.y+(i.y-o.y)}(i,t),t.offsetDirection=Gn(t.deltaX,t.deltaY);var d,l,c=Kn(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=hn(c.x)>hn(c.y)?c.x:c.y,t.scale=r?(d=r.pointers,Yn((l=o)[0],l[1],Rn)/Yn(d[0],d[1],Rn)):1,t.rotation=r?function(e,t){return Xn(t[1],t[0],Rn)+Xn(e[1],e[0],Rn)}(r.pointers,o):0,t.maxPointers=i.prevInput?t.pointers.length>i.prevInput.maxPointers?t.pointers.length:i.prevInput.maxPointers:t.pointers.length,function(e,t){var i,o,n,s,r=e.lastInterval||t,a=t.timeStamp-r.timeStamp;if(t.eventType!==Tn&&(a>En||void 0===r.velocity)){var h=t.deltaX-r.deltaX,d=t.deltaY-r.deltaY,l=Kn(a,h,d);o=l.x,n=l.y,i=hn(l.x)>hn(l.y)?l.x:l.y,s=Gn(h,d),e.lastInterval=t}else i=r.velocity,o=r.velocityX,n=r.velocityY,s=r.direction;t.velocity=i,t.velocityX=o,t.velocityY=n,t.direction=s}(i,t);var u=e.element;Vn(t.srcEvent.target,u)&&(u=t.srcEvent.target),t.target=u}function Zn(e,t,i){var o=i.pointers.length,n=i.changedPointers.length,s=t&On&&o-n==0,r=t&(Sn|Tn)&&o-n==0;i.isFirst=!!s,i.isFinal=!!r,s&&(e.session={}),i.eventType=t,$n(e,i),e.emit("hammer.input",i),e.recognize(i),e.session.prevInput=i}function Jn(e){return e.trim().split(/\s+/g)}function Qn(e,t,i){jn(Jn(t),(function(t){e.addEventListener(t,i,!1)}))}function es(e,t,i){jn(Jn(t),(function(t){e.removeEventListener(t,i,!1)}))}function ts(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var is=function(){function e(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){Ln(e.options.enable,[e])&&i.handler(t)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&Qn(this.element,this.evEl,this.domHandler),this.evTarget&&Qn(this.target,this.evTarget,this.domHandler),this.evWin&&Qn(ts(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&es(this.element,this.evEl,this.domHandler),this.evTarget&&es(this.target,this.evTarget,this.domHandler),this.evWin&&es(ts(this.element),this.evWin,this.domHandler)},e}();function os(e,t,i){if(e.indexOf&&!i)return e.indexOf(t);for(var o=0;o<e.length;){if(i&&e[o][i]==t||!i&&e[o]===t)return o;o++}return-1}var ns={pointerdown:On,pointermove:Cn,pointerup:Sn,pointercancel:Tn,pointerout:Tn},ss={2:_n,3:"pen",4:xn,5:"kinect"},rs="pointerdown",as="pointermove pointerup pointercancel";tn.MSPointerEvent&&!tn.PointerEvent&&(rs="MSPointerDown",as="MSPointerMove MSPointerUp MSPointerCancel");var hs=function(e){function t(){var i,o=t.prototype;return o.evEl=rs,o.evWin=as,(i=e.apply(this,arguments)||this).store=i.manager.session.pointerEvents=[],i}return Qo(t,e),t.prototype.handler=function(e){var t=this.store,i=!1,o=e.type.toLowerCase().replace("ms",""),n=ns[o],s=ss[e.pointerType]||e.pointerType,r=s===_n,a=os(t,e.pointerId,"pointerId");n&On&&(0===e.button||r)?a<0&&(t.push(e),a=t.length-1):n&(Sn|Tn)&&(i=!0),a<0||(t[a]=e,this.callback(this.manager,n,{pointers:t,changedPointers:[e],pointerType:s,srcEvent:e}),i&&t.splice(a,1))},t}(is);function ds(e){return Array.prototype.slice.call(e,0)}function ls(e,t,i){for(var o=[],n=[],s=0;s<e.length;){var r=t?e[s][t]:e[s];os(n,r)<0&&o.push(e[s]),n[s]=r,s++}return i&&(o=t?o.sort((function(e,i){return e[t]>i[t]})):o.sort()),o}var cs={touchstart:On,touchmove:Cn,touchend:Sn,touchcancel:Tn},us="touchstart touchmove touchend touchcancel",ps=function(e){function t(){var i;return t.prototype.evTarget=us,(i=e.apply(this,arguments)||this).targetIds={},i}return Qo(t,e),t.prototype.handler=function(e){var t=cs[e.type],i=fs.call(this,e,t);i&&this.callback(this.manager,t,{pointers:i[0],changedPointers:i[1],pointerType:_n,srcEvent:e})},t}(is);function fs(e,t){var i,o,n=ds(e.touches),s=this.targetIds;if(t&(On|Cn)&&1===n.length)return s[n[0].identifier]=!0,[n,n];var r=ds(e.changedTouches),a=[],h=this.target;if(o=n.filter((function(e){return Vn(e.target,h)})),t===On)for(i=0;i<o.length;)s[o[i].identifier]=!0,i++;for(i=0;i<r.length;)s[r[i].identifier]&&a.push(r[i]),t&(Sn|Tn)&&delete s[r[i].identifier],i++;return a.length?[ls(o.concat(a),"identifier",!0),a]:void 0}var vs={mousedown:On,mousemove:Cn,mouseup:Sn},gs="mousedown",ys="mousemove mouseup",ms=function(e){function t(){var i,o=t.prototype;return o.evEl=gs,o.evWin=ys,(i=e.apply(this,arguments)||this).pressed=!1,i}return Qo(t,e),t.prototype.handler=function(e){var t=vs[e.type];t&On&&0===e.button&&(this.pressed=!0),t&Cn&&1!==e.which&&(t=Sn),this.pressed&&(t&Sn&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:xn,srcEvent:e}))},t}(is),bs=2500,ws=25;function ks(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var i={x:t.clientX,y:t.clientY},o=this.lastTouches;this.lastTouches.push(i);setTimeout((function(){var e=o.indexOf(i);e>-1&&o.splice(e,1)}),bs)}}function _s(e,t){e&On?(this.primaryTouch=t.changedPointers[0].identifier,ks.call(this,t)):e&(Sn|Tn)&&ks.call(this,t)}function xs(e){for(var t=e.srcEvent.clientX,i=e.srcEvent.clientY,o=0;o<this.lastTouches.length;o++){var n=this.lastTouches[o],s=Math.abs(t-n.x),r=Math.abs(i-n.y);if(s<=ws&&r<=ws)return!0}return!1}var Es=function(){return function(e){function t(t,i){var o;return(o=e.call(this,t,i)||this).handler=function(e,t,i){var n=i.pointerType===_n,s=i.pointerType===xn;if(!(s&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)_s.call(en(en(o)),t,i);else if(s&&xs.call(en(en(o)),i))return;o.callback(e,t,i)}},o.touch=new ps(o.manager,o.handler),o.mouse=new ms(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}return Qo(t,e),t.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(is)}();function Os(e,t,i){return!!Array.isArray(e)&&(jn(e,i[t],i),!0)}var Cs=1,Ss=2,Ts=4,Ds=8,Ms=Ds,Is=16,Ps=1;function Fs(e,t){var i=t.manager;return i?i.get(e):e}function Bs(e){return e&Is?"cancel":e&Ds?"end":e&Ts?"move":e&Ss?"start":""}var Ns=function(){function e(e){void 0===e&&(e={}),this.options=Jo({enable:!0},e),this.id=Ps++,this.manager=null,this.state=Cs,this.simultaneous={},this.requireFail=[]}var t=e.prototype;return t.set=function(e){return on(this.options,e),this.manager&&this.man