UNPKG

vis-network

Version:

A dynamic, browser-based visualization library.

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