UNPKG

@marklogic-community/grove-react-visjs-graph

Version:
63 lines 782 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("grove-react-visjs-graph",[],e):"object"==typeof exports?exports["grove-react-visjs-graph"]=e():t["grove-react-visjs-graph"]=e()}(window,function(){return function(t){var e={};function i(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(o,n,function(e){return t[e]}.bind(null,n));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=35)}([function(t,e,i){t.exports=i(9)()},function(t,e,i){"use strict";t.exports=i(7)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=function(t,e){var i=t[1]||"",o=t[3];if(!o)return i;if(e&&"function"==typeof btoa){var n=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(o),s=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[i].concat(s).concat([n]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},n=0;n<this.length;n++){var s=this[n][0];"number"==typeof s&&(o[s]=!0)}for(n=0;n<t.length;n++){var r=t[n];"number"==typeof r[0]&&o[r[0]]||(i&&!r[2]?r[2]=i:i&&(r[2]="("+r[2]+") and ("+i+")"),e.push(r))}},e}},function(t,e,i){var o={},n=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),s=function(t){var e={};return function(t,i){if("function"==typeof t)return t();if(void 0===e[t]){var o=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,i);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}}(),r=null,a=0,h=[],d=i(30);function l(t,e){for(var i=0;i<t.length;i++){var n=t[i],s=o[n.id];if(s){s.refs++;for(var r=0;r<s.parts.length;r++)s.parts[r](n.parts[r]);for(;r<n.parts.length;r++)s.parts.push(m(n.parts[r],e))}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(m(n.parts[r],e));o[n.id]={id:n.id,refs:1,parts:a}}}}function u(t,e){for(var i=[],o={},n=0;n<t.length;n++){var s=t[n],r=e.base?s[0]+e.base:s[0],a={css:s[1],media:s[2],sourceMap:s[3]};o[r]?o[r].parts.push(a):i.push(o[r]={id:r,parts:[a]})}return i}function c(t,e){var i=s(t.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=h[h.length-1];if("top"===t.insertAt)o?o.nextSibling?i.insertBefore(e,o.nextSibling):i.appendChild(e):i.insertBefore(e,i.firstChild),h.push(e);else if("bottom"===t.insertAt)i.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var n=s(t.insertAt.before,i);i.insertBefore(e,n)}}function p(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=h.indexOf(t);e>=0&&h.splice(e,1)}function f(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var o=function(){0;return i.nc}();o&&(t.attrs.nonce=o)}return v(e,t.attrs),c(t,e),e}function v(t,e){Object.keys(e).forEach(function(i){t.setAttribute(i,e[i])})}function m(t,e){var i,o,n,s;if(e.transform&&t.css){if(!(s=e.transform(t.css)))return function(){};t.css=s}if(e.singleton){var h=a++;i=r||(r=f(e)),o=y.bind(null,i,h,!1),n=y.bind(null,i,h,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",v(e,t.attrs),c(t,e),e}(e),o=function(t,e,i){var o=i.css,n=i.sourceMap,s=void 0===e.convertToAbsoluteUrls&&n;(e.convertToAbsoluteUrls||s)&&(o=d(o));n&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var r=new Blob([o],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(r),a&&URL.revokeObjectURL(a)}.bind(null,i,e),n=function(){p(i),i.href&&URL.revokeObjectURL(i.href)}):(i=f(e),o=function(t,e){var i=e.css,o=e.media;o&&t.setAttribute("media",o);if(t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}.bind(null,i),n=function(){p(i)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else n()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=n()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var i=u(t,e);return l(i,e),function(t){for(var n=[],s=0;s<i.length;s++){var r=i[s];(a=o[r.id]).refs--,n.push(a)}t&&l(u(t,e),e);for(s=0;s<n.length;s++){var a;if(0===(a=n[s]).refs){for(var h=0;h<a.parts.length;h++)a.parts[h]();delete o[a.id]}}}};var g=function(){var t=[];return function(e,i){return t[e]=i,t.filter(Boolean).join("\n")}}();function y(t,e,i,o){var n=i?"":o.css;if(t.styleSheet)t.styleSheet.cssText=g(e,n);else{var s=document.createTextNode(n),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(s,r[e]):t.appendChild(s)}}},function(t,e,i){(function(t,i){var o=200,n="__lodash_hash_undefined__",s=1,r=2,a=9007199254740991,h="[object Arguments]",d="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",c="[object Date]",p="[object Error]",f="[object Function]",v="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Null]",b="[object Object]",w="[object Proxy]",_="[object RegExp]",x="[object Set]",k="[object String]",S="[object Symbol]",D="[object Undefined]",O="[object ArrayBuffer]",C="[object DataView]",E=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[h]=T[d]=T[O]=T[u]=T[C]=T[c]=T[p]=T[f]=T[m]=T[g]=T[b]=T[_]=T[x]=T[k]=T["[object WeakMap]"]=!1;var P="object"==typeof t&&t&&t.Object===Object&&t,I="object"==typeof self&&self&&self.Object===Object&&self,N=P||I||Function("return this")(),z="object"==typeof e&&e&&!e.nodeType&&e,A=z&&"object"==typeof i&&i&&!i.nodeType&&i,R=A&&A.exports===z,L=R&&P.process,j=function(){try{return L&&L.binding&&L.binding("util")}catch(t){}}(),F=j&&j.isTypedArray;function B(t,e){for(var i=-1,o=null==t?0:t.length;++i<o;)if(e(t[i],i,t))return!0;return!1}function H(t,e){return t.has(e)}function W(t){var e=-1,i=Array(t.size);return t.forEach(function(t,o){i[++e]=[o,t]}),i}function Y(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i}var G=Array.prototype,U=Function.prototype,V=Object.prototype,q=N["__core-js_shared__"],X=U.toString,Z=V.hasOwnProperty,K=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),$=V.toString,J=RegExp("^"+X.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=R?N.Buffer:void 0,tt=N.Symbol,et=N.Uint8Array,it=V.propertyIsEnumerable,ot=G.splice,nt=tt?tt.toStringTag:void 0,st=Object.getOwnPropertySymbols,rt=Q?Q.isBuffer:void 0,at=function(t,e){return function(i){return t(e(i))}}(Object.keys,Object),ht=Rt(N,"DataView"),dt=Rt(N,"Map"),lt=Rt(N,"Promise"),ut=Rt(N,"Set"),ct=Rt(N,"WeakMap"),pt=Rt(Object,"create"),ft=Bt(ht),vt=Bt(dt),mt=Bt(lt),gt=Bt(ut),yt=Bt(ct),bt=tt?tt.prototype:void 0,wt=bt?bt.valueOf:void 0;function _t(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function xt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function kt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function St(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new kt;++e<i;)this.add(t[e])}function Dt(t){var e=this.__data__=new xt(t);this.size=e.size}function Ot(t,e){var i=Yt(t),o=!i&&Wt(t),n=!i&&!o&&Gt(t),s=!i&&!o&&!n&&Zt(t),r=i||o||n||s,a=r?function(t,e){for(var i=-1,o=Array(t);++i<t;)o[i]=e(i);return o}(t.length,String):[],h=a.length;for(var d in t)!e&&!Z.call(t,d)||r&&("length"==d||n&&("offset"==d||"parent"==d)||s&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||Ft(d,h))||a.push(d);return a}function Ct(t,e){for(var i=t.length;i--;)if(Ht(t[i][0],e))return i;return-1}function Et(t){return null==t?void 0===t?D:y:nt&&nt in Object(t)?function(t){var e=Z.call(t,nt),i=t[nt];try{t[nt]=void 0;var o=!0}catch(t){}var n=$.call(t);o&&(e?t[nt]=i:delete t[nt]);return n}(t):function(t){return $.call(t)}(t)}function Mt(t){return Xt(t)&&Et(t)==h}function Tt(t,e,i,o,n){return t===e||(null==t||null==e||!Xt(t)&&!Xt(e)?t!=t&&e!=e:function(t,e,i,o,n,a){var l=Yt(t),f=Yt(e),v=l?d:jt(t),y=f?d:jt(e),w=(v=v==h?b:v)==b,D=(y=y==h?b:y)==b,E=v==y;if(E&&Gt(t)){if(!Gt(e))return!1;l=!0,w=!1}if(E&&!w)return a||(a=new Dt),l||Zt(t)?Nt(t,e,i,o,n,a):function(t,e,i,o,n,a,h){switch(i){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O:return!(t.byteLength!=e.byteLength||!a(new et(t),new et(e)));case u:case c:case g:return Ht(+t,+e);case p:return t.name==e.name&&t.message==e.message;case _:case k:return t==e+"";case m:var d=W;case x:var l=o&s;if(d||(d=Y),t.size!=e.size&&!l)return!1;var f=h.get(t);if(f)return f==e;o|=r,h.set(t,e);var v=Nt(d(t),d(e),o,n,a,h);return h.delete(t),v;case S:if(wt)return wt.call(t)==wt.call(e)}return!1}(t,e,v,i,o,n,a);if(!(i&s)){var M=w&&Z.call(t,"__wrapped__"),T=D&&Z.call(e,"__wrapped__");if(M||T){var P=M?t.value():t,I=T?e.value():e;return a||(a=new Dt),n(P,I,i,o,a)}}if(!E)return!1;return a||(a=new Dt),function(t,e,i,o,n,r){var a=i&s,h=zt(t),d=h.length,l=zt(e).length;if(d!=l&&!a)return!1;for(var u=d;u--;){var c=h[u];if(!(a?c in e:Z.call(e,c)))return!1}var p=r.get(t);if(p&&r.get(e))return p==e;var f=!0;r.set(t,e),r.set(e,t);for(var v=a;++u<d;){c=h[u];var m=t[c],g=e[c];if(o)var y=a?o(g,m,c,e,t,r):o(m,g,c,t,e,r);if(!(void 0===y?m===g||n(m,g,i,o,r):y)){f=!1;break}v||(v="constructor"==c)}if(f&&!v){var b=t.constructor,w=e.constructor;b!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(f=!1)}return r.delete(t),r.delete(e),f}(t,e,i,o,n,a)}(t,e,i,o,Tt,n))}function Pt(t){return!(!qt(t)||function(t){return!!K&&K in t}(t))&&(Ut(t)?J:E).test(Bt(t))}function It(t){if(!function(t){var e=t&&t.constructor,i="function"==typeof e&&e.prototype||V;return t===i}(t))return at(t);var e=[];for(var i in Object(t))Z.call(t,i)&&"constructor"!=i&&e.push(i);return e}function Nt(t,e,i,o,n,a){var h=i&s,d=t.length,l=e.length;if(d!=l&&!(h&&l>d))return!1;var u=a.get(t);if(u&&a.get(e))return u==e;var c=-1,p=!0,f=i&r?new St:void 0;for(a.set(t,e),a.set(e,t);++c<d;){var v=t[c],m=e[c];if(o)var g=h?o(m,v,c,e,t,a):o(v,m,c,t,e,a);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!B(e,function(t,e){if(!H(f,e)&&(v===t||n(v,t,i,o,a)))return f.push(e)})){p=!1;break}}else if(v!==m&&!n(v,m,i,o,a)){p=!1;break}}return a.delete(t),a.delete(e),p}function zt(t){return function(t,e,i){var o=e(t);return Yt(t)?o:function(t,e){for(var i=-1,o=e.length,n=t.length;++i<o;)t[n+i]=e[i];return t}(o,i(t))}(t,Kt,Lt)}function At(t,e){var i=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?i["string"==typeof e?"string":"hash"]:i.map}function Rt(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return Pt(i)?i:void 0}_t.prototype.clear=function(){this.__data__=pt?pt(null):{},this.size=0},_t.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},_t.prototype.get=function(t){var e=this.__data__;if(pt){var i=e[t];return i===n?void 0:i}return Z.call(e,t)?e[t]:void 0},_t.prototype.has=function(t){var e=this.__data__;return pt?void 0!==e[t]:Z.call(e,t)},_t.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=pt&&void 0===e?n:e,this},xt.prototype.clear=function(){this.__data__=[],this.size=0},xt.prototype.delete=function(t){var e=this.__data__,i=Ct(e,t);return!(i<0||(i==e.length-1?e.pop():ot.call(e,i,1),--this.size,0))},xt.prototype.get=function(t){var e=this.__data__,i=Ct(e,t);return i<0?void 0:e[i][1]},xt.prototype.has=function(t){return Ct(this.__data__,t)>-1},xt.prototype.set=function(t,e){var i=this.__data__,o=Ct(i,t);return o<0?(++this.size,i.push([t,e])):i[o][1]=e,this},kt.prototype.clear=function(){this.size=0,this.__data__={hash:new _t,map:new(dt||xt),string:new _t}},kt.prototype.delete=function(t){var e=At(this,t).delete(t);return this.size-=e?1:0,e},kt.prototype.get=function(t){return At(this,t).get(t)},kt.prototype.has=function(t){return At(this,t).has(t)},kt.prototype.set=function(t,e){var i=At(this,t),o=i.size;return i.set(t,e),this.size+=i.size==o?0:1,this},St.prototype.add=St.prototype.push=function(t){return this.__data__.set(t,n),this},St.prototype.has=function(t){return this.__data__.has(t)},Dt.prototype.clear=function(){this.__data__=new xt,this.size=0},Dt.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Dt.prototype.get=function(t){return this.__data__.get(t)},Dt.prototype.has=function(t){return this.__data__.has(t)},Dt.prototype.set=function(t,e){var i=this.__data__;if(i instanceof xt){var n=i.__data__;if(!dt||n.length<o-1)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new kt(n)}return i.set(t,e),this.size=i.size,this};var Lt=st?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var i=-1,o=null==t?0:t.length,n=0,s=[];++i<o;){var r=t[i];e(r,i,t)&&(s[n++]=r)}return s}(st(t),function(e){return it.call(t,e)}))}:function(){return[]},jt=Et;function Ft(t,e){return!!(e=null==e?a:e)&&("number"==typeof t||M.test(t))&&t>-1&&t%1==0&&t<e}function Bt(t){if(null!=t){try{return X.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ht(t,e){return t===e||t!=t&&e!=e}(ht&&jt(new ht(new ArrayBuffer(1)))!=C||dt&&jt(new dt)!=m||lt&&"[object Promise]"!=jt(lt.resolve())||ut&&jt(new ut)!=x||ct&&"[object WeakMap]"!=jt(new ct))&&(jt=function(t){var e=Et(t),i=e==b?t.constructor:void 0,o=i?Bt(i):"";if(o)switch(o){case ft:return C;case vt:return m;case mt:return"[object Promise]";case gt:return x;case yt:return"[object WeakMap]"}return e});var Wt=Mt(function(){return arguments}())?Mt:function(t){return Xt(t)&&Z.call(t,"callee")&&!it.call(t,"callee")},Yt=Array.isArray;var Gt=rt||function(){return!1};function Ut(t){if(!qt(t))return!1;var e=Et(t);return e==f||e==v||e==l||e==w}function Vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function qt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Xt(t){return null!=t&&"object"==typeof t}var Zt=F?function(t){return function(e){return t(e)}}(F):function(t){return Xt(t)&&Vt(t.length)&&!!T[Et(t)]};function Kt(t){return function(t){return null!=t&&Vt(t.length)&&!Ut(t)}(t)?Ot(t):It(t)}i.exports=function(t,e){return Tt(t,e)}}).call(this,i(11),i(2)(t))},function(t,e,i){(function(t){var e=i(12);(void 0!==t&&null!==t?t:{}).exports=this.mlvisjs=e}).call(this,i(2)(t))},function(t,e,i){"use strict"; /** @license React v16.5.0 * react.production.min.js * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var o=i(8),n="function"==typeof Symbol&&Symbol.for,s=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,h=n?Symbol.for("react.strict_mode"):60108,d=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112;n&&Symbol.for("react.placeholder");var f="function"==typeof Symbol&&Symbol.iterator;function v(t){for(var e=arguments.length-1,i="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=0;o<e;o++)i+="&args[]="+encodeURIComponent(arguments[o+1]);!function(t,e,i,o,n,s,r,a){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[i,o,n,s,r,a],d=0;(t=Error(e.replace(/%s/g,function(){return h[d++]}))).name="Invariant Violation"}throw t.framesToPop=1,t}}(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",i)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function y(t,e,i){this.props=t,this.context=e,this.refs=g,this.updater=i||m}function b(){}function w(t,e,i){this.props=t,this.context=e,this.refs=g,this.updater=i||m}y.prototype.isReactComponent={},y.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&v("85"),this.updater.enqueueSetState(this,t,e,"setState")},y.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},b.prototype=y.prototype;var _=w.prototype=new b;_.constructor=w,o(_,y.prototype),_.isPureReactComponent=!0;var x={current:null,currentDispatcher:null},k=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function D(t,e,i){var o=void 0,n={},r=null,a=null;if(null!=e)for(o in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(r=""+e.key),e)k.call(e,o)&&!S.hasOwnProperty(o)&&(n[o]=e[o]);var h=arguments.length-2;if(1===h)n.children=i;else if(1<h){for(var d=Array(h),l=0;l<h;l++)d[l]=arguments[l+2];n.children=d}if(t&&t.defaultProps)for(o in h=t.defaultProps)void 0===n[o]&&(n[o]=h[o]);return{$$typeof:s,type:t,key:r,ref:a,props:n,_owner:x.current}}function O(t){return"object"==typeof t&&null!==t&&t.$$typeof===s}var C=/\/+/g,E=[];function M(t,e,i,o){if(E.length){var n=E.pop();return n.result=t,n.keyPrefix=e,n.func=i,n.context=o,n.count=0,n}return{result:t,keyPrefix:e,func:i,context:o,count:0}}function T(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>E.length&&E.push(t)}function P(t,e,i){return null==t?0:function t(e,i,o,n){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var h=!1;if(null===e)h=!0;else switch(a){case"string":case"number":h=!0;break;case"object":switch(e.$$typeof){case s:case r:h=!0}}if(h)return o(n,e,""===i?"."+I(e,0):i),1;if(h=0,i=""===i?".":i+":",Array.isArray(e))for(var d=0;d<e.length;d++){var l=i+I(a=e[d],d);h+=t(a,l,o,n)}else if(l=null===e||"object"!=typeof e?null:"function"==typeof(l=f&&e[f]||e["@@iterator"])?l:null,"function"==typeof l)for(e=l.call(e),d=0;!(a=e.next()).done;)h+=t(a=a.value,l=i+I(a,d++),o,n);else"object"===a&&v("31","[object Object]"==(o=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":o,"");return h}(t,"",e,i)}function I(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}(t.key):e.toString(36)}function N(t,e){t.func.call(t.context,e,t.count++)}function z(t,e,i){var o=t.result,n=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?A(t,o,i,function(t){return t}):null!=t&&(O(t)&&(t=function(t,e){return{$$typeof:s,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,n+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(C,"$&/")+"/")+i)),o.push(t))}function A(t,e,i,o,n){var s="";null!=i&&(s=(""+i).replace(C,"$&/")+"/"),P(t,z,e=M(e,s,o,n)),T(e)}var R={Children:{map:function(t,e,i){if(null==t)return t;var o=[];return A(t,o,null,e,i),o},forEach:function(t,e,i){if(null==t)return t;P(t,N,e=M(null,null,e,i)),T(e)},count:function(t){return P(t,function(){return null},null)},toArray:function(t){var e=[];return A(t,e,null,function(t){return t}),e},only:function(t){return O(t)||v("143"),t}},createRef:function(){return{current:null}},Component:y,PureComponent:w,createContext:function(t,e){return void 0===e&&(e=null),(t={$$typeof:u,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,Provider:null,Consumer:null,unstable_read:null}).Provider={$$typeof:l,_context:t},t.Consumer=t,t.unstable_read=function(t,e){var i=x.currentDispatcher;return null===i&&v("277"),i.readContext(t,e)}.bind(null,t),t},forwardRef:function(t){return{$$typeof:p,render:t}},Fragment:a,StrictMode:h,unstable_AsyncMode:c,unstable_Profiler:d,createElement:D,cloneElement:function(t,e,i){(null===t||void 0===t)&&v("267",t);var n=void 0,r=o({},t.props),a=t.key,h=t.ref,d=t._owner;if(null!=e){void 0!==e.ref&&(h=e.ref,d=x.current),void 0!==e.key&&(a=""+e.key);var l=void 0;for(n in t.type&&t.type.defaultProps&&(l=t.type.defaultProps),e)k.call(e,n)&&!S.hasOwnProperty(n)&&(r[n]=void 0===e[n]&&void 0!==l?l[n]:e[n])}if(1===(n=arguments.length-2))r.children=i;else if(1<n){l=Array(n);for(var u=0;u<n;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:s,type:t.type,key:a,ref:h,props:r,_owner:d}},createFactory:function(t){var e=D.bind(null,t);return e.type=t,e},isValidElement:O,version:"16.5.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:x,assign:o}},L={default:R},j=L&&R||L;t.exports=j.default||j},function(t,e,i){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var o=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,r,a=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),h=1;h<arguments.length;h++){for(var d in i=Object(arguments[h]))n.call(i,d)&&(a[d]=i[d]);if(o){r=o(i);for(var l=0;l<r.length;l++)s.call(i,r[l])&&(a[r[l]]=i[r[l]])}}return a}},function(t,e,i){"use strict";var o=i(10);function n(){}t.exports=function(){function t(t,e,i,n,s,r){if(r!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var i={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return i.checkPropTypes=n,i.PropTypes=i,i}},function(t,e,i){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){(function(t){if(void 0===e)var e={};e["ml-visjs-graph.js/mlvisjs-graph.html"]='<div class="row mlvisjs-graph default-style">\n <div class="col-md-12 graph-controls">\n <form class="form-inline">\n <div class="checkbox physics-enabled">\n <label>\n <input type="checkbox" name="physicsEnabled" checked="checked">\n Enable Physics\n </label>\n </div>\n <div class="form-group layout">\n <label class="sr-only" class="form-control" for="layout"> Layout: </label>\n <select name="layout">\n <option value="standard">Standard</option>\n <option value="hierarchyTop">Hierarchy - Top</option>\n <option value="hierarchyBottom">Hierarchy - Bottom</option>\n <option value="hierarchyLeft">Hierarchy - Left</option>\n <option value="hierarchyRight">Hierarchy - Right</option>\n </select>\n </div>\n </form>\n </div>\n <vis-network class="col-md-12"></vis-network>\n</div>\n';var o=o||i(13),n=function(){"use strict";var t=["afterDrawing","animationFinished","beforeDrawing","blurEdge","blurNode","click","configChange","deselectEdge","deselectNode","doubleClick","dragEnd","dragging","dragStart","hidePopup","hold","hoverEdge","hoverNode","initRedraw","oncontext","release","resize","select","selectEdge","selectNode","showPopup","stabilizationIterationsDone","stabilizationProgress","stabilized","startStabilizing","zoom"],i={layout:{hierarchical:!1,randomSeed:2},manipulation:{enabled:!1},interaction:{navigationButtons:!0},height:"500px",nodes:{size:30,borderWidth:2,shadow:!0,borderWidthSelected:6,color:{background:"white"},font:{size:12}},physics:{enabled:!0,solver:"forceAtlas2Based",forceAtlas2Based:{gravitationalConstant:-200,centralGravity:.01,springLength:100,springConstant:.08,damping:.4,avoidOverlap:0},maxVelocity:150,minVelocity:6,stabilization:{enabled:!0,iterations:1e3,updateInterval:100,onlyDynamicEdges:!1,fit:!1},timestep:.5,adaptiveTimestep:!0},edges:{width:2,shadow:!0,arrows:{to:{enabled:!0,scaleFactor:.75}},font:{size:10,align:"top"},smooth:{type:"curvedCW",roundness:.1}}},n={NW:"#848484",NE:"#428484",SW:"#844284",SE:"#848442",N:"#424284",E:"#428442",S:"#844242",W:"#424242"},s=function(t){if(!o||!o.DataSet||!o.Network)throw"Error: vis.DataSet and vis.Network not found, required by mlvisjs";this.container=t;var e=new o.DataSet,s=new o.DataSet,r={nodes:e,edges:s};this.nodes=e,this.edges=s,this.options=d(i),this.orbColors=d(n),this.physics=!0,this.solver="forceAtlas2Based",this.network=new o.Network(this.container,r,d(this.options)),this.setEvents(),this.setLayout(),this.setPhysics(),this.setSolver()};s.prototype={setData:function(t,e,i,n){var s,r,a;if(arguments.length>0){if(this.nodes&&t)s=this.nodes.getIds(),r=t.map(function(t){return t.id}),a=s.filter(function(t){return!r.includes(t)}),this.nodes.remove(a),this.nodes.update(t),e&&this.nodes.setOptions(d(e));else if(t)throw"Error: nodes DataSet not initialized";if(this.edges&&i)s=this.edges.getIds(),r=i.map(function(t){return t.id}),a=s.filter(function(t){return!r.includes(t)}),this.edges.remove(a),this.edges.update(i),n&&this.edges.setOptions(d(n));else if(i)throw"Error: edges DataSet not initialized"}else{var h={nodes:t=new o.DataSet,edges:i=new o.DataSet};this.nodes=t,this.edges=i,e&&this.nodes.setOptions(d(e)),n&&this.edges.setOptions(d(n)),this.network&&(this.network.setData(h),this.network.fit())}},setEvents:function(e){var i,o=this;o.network&&(0===arguments.length&&t.forEach(function(t){o.network.off(t)}),(e=e||{}).stabilized=e.stabilized||function(){},e.afterDrawing=e.afterDrawing||function(){},a(e,function(t,e){if(function(t){return"function"==typeof t}(t))switch(String(e)){case"click":o.network.on(e,function(e){i=!1,window.setTimeout(function(){i||t.call(o,e)},300)});break;case"doubleClick":o.network.on(e,function(e){i=!0,t.call(o,e)});break;case"afterDrawing":o.network.on(e,function(e){var i=e,n=o.network.getPositions();o.nodes.forEach(function(t){var e=n[t.id];if(e){t.orbs=t.orbs||{};var s=t.edgeCount||t.linkCount;s&&s>0&&!t.orbs.NW&&(t.orbs.NW={label:""+s}),a(t.orbs,function(t,n){var s=e.x,r=e.y;n.match(/W/)?s-=n.match(/[NS]/)?22:30:n.match(/E/)&&(s+=n.match(/[NS]/)?22:30),n.match(/N/)?r-=n.match(/[WE]/)?22:30:n.match(/S/)&&(r+=n.match(/[WE]/)?22:30);var a=t.label,d=t.font||"10px Ludica",l=a&&h(a,d)||{width:t.width||10,height:t.height||10},u=Math.round((t.width||Math.max(l.width,l.height)||10)/2)+2,c=t.lineStyle||"white",p=t.background||o.orbColors[n],f=t.lineWidth||1,v=t.textColor||"white";if(i.strokeStyle=c,i.fillStyle=p,i.lineWidth=f,i.circle(s,r,Math.max(u,10)),i.fill(),i.stroke(),a)i.font=d,i.fillStyle=v,i.fillText(a,s,r-l.height/3);else if(t.image){var m=new Image;m.src=t.image,i.drawImage(m,s-l.width/2,r-l.height/2,l.width,l.height)}})}}),t.call(o,e)});break;case"onload":t(o);break;default:o.network.on(e,t)}}))},setOptions:function(t){var e=this;void 0!==t?(e.options=e.options||d(i),Object.keys(t).forEach(function(i){var o=t[i];"object"!=typeof o||null===o||Array.isArray(o)?e.options[i]=o:(e.options[i]=e.options[i]||{},Object.keys(o).forEach(function(t){var n=o[t];e.options[i][t]=d(n)}))})):e.options=d(i),e.network&&e.network.setOptions(d(e.options))},setOrbColors:function(t){var e=this;void 0!==t?a(t,function(t,i){e.orbColors[i]=t}):e.orbColors=d(n),e.network&&e.network.redraw()},setPhysics:function(t){this.physics=void 0===t||t,this.network&&(this.options.physics=this.options.physics||{},this.options.physics.enabled=this.physics,this.network.setOptions({physics:{enabled:this.physics}}),this.physics&&this.network.stabilize())},setSolver:function(t){this.solver=void 0!==t?t:"forceAtlas2Based",this.options.physics=this.options.physics||{},this.options.physics.solver=this.solver,this.options.layout=this.options.layout||{},this.options.layout.hierarchical=this.options.layout.hierarchical||{},this.options.layout.hierarchical.enabled="hierarchicalRepulsion"===this.solver,this.network&&(this.network.setOptions({physics:{solver:this.solver},layout:{hierarchical:{enabled:"hierarchicalRepulsion"===this.solver}}}),this.network.stabilize())},setLayout:function(t){this.layout=void 0!==t?t:"standard",this.options.layout=this.options.layout||{},this.options.layout.hierarchical=this.options.layout.hierarchical||{},"standard"===this.layout?this.options.layout.hierarchical.enabled=!1:"hierarchyTop"===this.layout?(this.solver="hierarchicalRepulsion",this.options.layout.hierarchical={enabled:!0,direction:"UD",sortMethod:"directed"},this.options.edges&&this.options.edges.smooth&&"vertical"===this.options.edges.smooth.type&&(this.options.edges.smooth.type="horizontal")):"hierarchyBottom"===this.layout?(this.solver="hierarchicalRepulsion",this.options.layout.hierarchical={enabled:!0,direction:"DU",sortMethod:"directed"},this.options.edges&&this.options.edges.smooth&&"vertical"===this.options.edges.smooth.type&&(this.options.edges.smooth.type="horizontal")):"hierarchyLeft"===this.layout?(this.solver="hierarchicalRepulsion",this.options.layout.hierarchical={enabled:!0,direction:"LR",sortMethod:"directed"},this.options.edges&&this.options.edges.smooth&&"horizontal"===this.options.edges.smooth.type&&(this.options.edges.smooth.type="vertical")):"hierarchyRight"===this.layout&&(this.solver="hierarchicalRepulsion",this.options.layout.hierarchical={enabled:!0,direction:"RL",sortMethod:"directed"},this.options.edges&&this.options.edges.smooth&&"horizontal"===this.options.edges.smooth.type&&(this.options.edges.smooth.type="vertical")),this.options.physics=this.options.physics||{},this.options.physics.solver=this.solver,this.network&&(this.network.setOptions({physics:{solver:this.solver},layout:{hierarchical:d(this.options.layout.hierarchical)},edges:{smooth:d(this.options.edges.smooth)}}),this.network.stabilize())}};var r=function(t,i,o,n,r){var a=this;a.container=t,a.templateUri=i||"ml-visjs-graph.js/mlvisjs-graph.html",a.templateCache=o;var h=function(t,e){t.innerHTML=e;var i=t.getElementsByTagName("vis-network");if(1===i.length){a.network=new s(i[0]);var o=t.querySelectorAll('input[name="physicsEnabled"]');1===o.length?(o[0].checked=a.network.physics,o[0].onchange=function(t){t.preventDefault(),a.network.setPhysics(o[0].checked)}):o.length>1?r("Only one physicsEnabled input supported in the graph template"):r("No physicsEnabled input found in the graph template");var h=t.querySelectorAll('select[name="layout"]');1===h.length?(h[0].value=a.network.layout,h[0].onchange=function(t){t.preventDefault(),a.network.setLayout(h[0].value)}):h.length>1?r("Only one layout selector supported in the graph template"):r("No layout selector found in the graph template"),n(a)}else i.length>1?r("Only one vis-network supported in the graph template"):r("No vis-network found in the graph template")};a.template=o&&o.get(a.templateUri),a.template?h(a.container,a.template):"ml-visjs-graph.js/mlvisjs-graph.html"===a.templateUri?(a.template=e["ml-visjs-graph.js/mlvisjs-graph.html"],a.templateCache&&a.templateCache.put(a.templateUri,a.template),h(a.container,a.template)):function(t,e,i){var o=new XMLHttpRequest;o.open("GET",t,!0),o.onreadystatechange=function(){4===o.readyState&&(o.status>=200&&o.status<400?e(o.responseText):i(o.responseText))},o.send(null)}(a.templateUri,function(t){a.template=t,a.templateCache&&a.templateCache.put(a.templateUri,a.template),h(a.container,a.template)},function(t){r(t)})};return r.prototype={setPhysics:function(t){var e=this.container.querySelectorAll('input[name="physicsEnabled"]');1===e.length&&(e[0].checked=t,this.network&&this.network.setPhysics(t))},setLayout:function(t){var e=this.container.querySelectorAll('select[name="layout"]');1===e.length&&(e[0].value=t,this.network&&this.network.setLayout(t))},setStyling:function(t){this.styling=t;var e=this.container.firstElementChild;e.className=e.className.split(" ").filter(function(t){return t.indexOf("-style")<0}).join(" ")+" "+t+"-style"}},{Network:s,Graph:r};function a(t,e,i){var o;if(t)for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t);return t}function h(t,e){void 0===h.e&&(h.e=document.createElement("span")),h.e.style.font=e,h.e.innerText=t,document.body.appendChild(h.e);var i={width:h.e.offsetWidth,height:h.e.offsetHeight};return document.body.removeChild(h.e),i}function d(t){return Array.isArray(t)?t.map(function(t){return d(t)}):"object"==typeof t&&null!==t?Object.keys(t).reduce(function(e,i){return e[i]=d(t[i]),e},{}):t}}();(void 0!==t&&null!==t?t:{}).exports=this.mlvisjs=n}).call(this,i(2)(t))},function(t,e,i){"use strict"; /** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 4.21.0 * @date 2017-10-12 * * @license * Copyright (C) 2011-2017 Almende B.V, http://almende.com * * Vis.js is dual licensed under both * * * The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * * The MIT License * http://opensource.org/licenses/MIT * * Vis.js may be distributed under either license. */ /** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 4.21.0 * @date 2017-10-12 * * @license * Copyright (C) 2011-2017 Almende B.V, http://almende.com * * Vis.js is dual licensed under both * * * The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * * The MIT License * http://opensource.org/licenses/MIT * * Vis.js may be distributed under either license. */ !function(e,i){t.exports=i()}(0,function(){return function(t){var e={};function i(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=123)}([function(t,e,i){e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,i){e.__esModule=!0;var o=function(t){return t&&t.__esModule?t:{default:t}}(i(169));e.default=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,o.default)(t,n.key,n)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}()},function(t,e,i){var o=a(i(77)),n=a(i(29)),s=a(i(8)),r=a(i(6));function a(t){return t&&t.__esModule?t:{default:t}}var h=i(9),d=i(157);function l(t,e,i,o){var n=!1;!0===o&&(n=null===e[i]&&void 0!==t[i]),n?delete t[i]:t[i]=e[i]}e.isNumber=function(t){return t instanceof Number||"number"==typeof t},e.recursiveDOMDelete=function(t){if(t)for(;!0===t.hasChildNodes();)e.recursiveDOMDelete(t.firstChild),t.removeChild(t.firstChild)},e.giveRange=function(t,e,i,o){if(e==t)return.5;var n=1/(e-t);return Math.max(0,(o-t)*n)},e.isString=function(t){return t instanceof String||"string"==typeof t},e.isDate=function(t){if(t instanceof Date)return!0;if(e.isString(t)){if(u.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},e.randomUUID=function(){return d.v4()},e.assignAllKeys=function(t,e){for(var i in t)t.hasOwnProperty(i)&&"object"!==(0,r.default)(t[i])&&(t[i]=e)},e.fillIfDefined=function(t,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in t)void 0!==i[n]&&(null===i[n]||"object"!==(0,r.default)(i[n])?l(t,i,n,o):"object"===(0,r.default)(t[n])&&e.fillIfDefined(t[n],i[n],o))},e.extend=function(t,e){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var n in o)o.hasOwnProperty(n)&&(t[n]=o[n])}return t},e.selectiveExtend=function(t,e,i){if(!Array.isArray(t))throw new Error("Array with property names expected as first argument");for(var o=2;o<arguments.length;o++)for(var n=arguments[o],s=0;s<t.length;s++){var r=t[s];n&&n.hasOwnProperty(r)&&(e[r]=n[r])}return e},e.selectiveDeepExtend=function(t,i,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(o))throw new TypeError("Arrays are not supported by deepExtend");for(var s=0;s<t.length;s++){var r=t[s];if(o.hasOwnProperty(r))if(o[r]&&o[r].constructor===Object)void 0===i[r]&&(i[r]={}),i[r].constructor===Object?e.deepExtend(i[r],o[r],!1,n):l(i,o,r,n);else{if(Array.isArray(o[r]))throw new TypeError("Arrays are not supported by deepExtend");l(i,o,r,n)}}return i},e.selectiveNotDeepExtend=function(t,i,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(o))throw new TypeError("Arrays are not supported by deepExtend");for(var s in o)if(o.hasOwnProperty(s)&&-1===t.indexOf(s))if(o[s]&&o[s].constructor===Object)void 0===i[s]&&(i[s]={}),i[s].constructor===Object?e.deepExtend(i[s],o[s]):l(i,o,s,n);else if(Array.isArray(o[s])){i[s]=[];for(var r=0;r<o[s].length;r++)i[s].push(o[s][r])}else l(i,o,s,n);return i},e.deepExtend=function(t,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var s in i)if(i.hasOwnProperty(s)||!0===o)if(i[s]&&i[s].constructor===Object)void 0===t[s]&&(t[s]={}),t[s].constructor===Object?e.deepExtend(t[s],i[s],o):l(t,i,s,n);else if(Array.isArray(i[s])){t[s]=[];for(var r=0;r<i[s].length;r++)t[s].push(i[s][r])}else l(t,i,s,n);return t},e.equalArray=function(t,e){if(t.length!=e.length)return!1;for(var i=0,o=t.length;i<o;i++)if(t[i]!=e[i])return!1;return!0},e.convert=function(t,i){var o;if(void 0!==t){if(null===t)return null;if(!i)return t;if("string"!=typeof i&&!(i instanceof String))throw new Error("Type must be a string");switch(i){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return e.isString(t)&&!isNaN(Date.parse(t))?h(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(e.isNumber(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(h.isMoment(t))return new Date(t.valueOf());if(e.isString(t))return(o=u.exec(t))?new Date(Number(o[1])):h(new Date(t)).toDate();throw new Error("Cannot convert object of type "+e.getType(t)+" to type Date");case"Moment":if(e.isNumber(t))return h(t);if(t instanceof Date)return h(t.valueOf());if(h.isMoment(t))return h(t);if(e.isString(t))return o=u.exec(t),h(o?Number(o[1]):t);throw new Error("Cannot convert object of type "+e.getType(t)+" to type Date");case"ISODate":if(e.isNumber(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(h.isMoment(t))return t.toDate().toISOString();if(e.isString(t))return(o=u.exec(t))?new Date(Number(o[1])).toISOString():h(t).format();throw new Error("Cannot convert object of type "+e.getType(t)+" to type ISODate");case"ASPDate":if(e.isNumber(t))return"/Date("+t+")/";if(t instanceof Date)return"/Date("+t.valueOf()+")/";if(e.isString(t))return"/Date("+((o=u.exec(t))?new Date(Number(o[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+e.getType(t)+" to type ASPDate");default:throw new Error('Unknown type "'+i+'"')}}};var u=/^\/?Date\((\-?\d+)/i;e.getType=function(t){var e=void 0===t?"undefined":(0,r.default)(t);return"object"==e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Array.isArray(t)?"Array":t instanceof Date?"Date":"Object":"number"==e?"Number":"boolean"==e?"Boolean":"string"==e?"String":void 0===e?"undefined":e},e.copyAndExtendArray=function(t,e){for(var i=[],o=0;o<t.length;o++)i.push(t[o]);return i.push(e),i},e.copyArray=function(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i]);return e},e.getAbsoluteLeft=function(t){return t.getBoundingClientRect().left},e.getAbsoluteRight=function(t){return t.getBoundingClientRect().right},e.getAbsoluteTop=function(t){return t.getBoundingClientRect().top},e.addClassName=function(t,e){var i=t.className.split(" "),o=e.split(" ");i=i.concat(o.filter(function(t){return i.indexOf(t)<0})),t.className=i.join(" ")},e.removeClassName=function(t,e){var i=t.className.split(" "),o=e.split(" ");i=i.filter(function(t){return o.indexOf(t)<0}),t.className=i.join(" ")},e.forEach=function(t,e){var i,o;if(Array.isArray(t))for(i=0,o=t.length;i<o;i++)e(t[i],i,t);else for(i in t)t.hasOwnProperty(i)&&e(t[i],i,t)},e.toArray=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(t[i]);return e},e.updateProperty=function(t,e,i){return t[e]!==i&&(t[e]=i,!0)},e.throttle=function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame(function(){e=!1,t()}))}},e.addEventListener=function(t,e,i,o){t.addEventListener?(void 0===o&&(o=!1),"mousewheel"===e&&navigator.userAgent.indexOf("Firefox")>=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,o)):t.attachEvent("on"+e,i)},e.removeEventListener=function(t,e,i,o){t.removeEventListener?(void 0===o&&(o=!1),"mousewheel"===e&&navigator.userAgent.indexOf("Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,o)):t.detachEvent("on"+e,i)},e.preventDefault=function(t){t||(t=window.event),t.preventDefault?t.preventDefault():t.returnValue=!1},e.getTarget=function(t){var e;return t||(t=window.event),t.target?e=t.target:t.srcElement&&(e=t.srcElement),void 0!=e.nodeType&&3==e.nodeType&&(e=e.parentNode),e},e.hasParent=function(t,e){for(var i=t;i;){if(i===e)return!0;i=i.parentNode}return!1},e.option={},e.option.asBoolean=function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},e.option.asNumber=function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},e.option.asString=function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},e.option.asSize=function(t,i){return"function"==typeof t&&(t=t()),e.isString(t)?t:e.isNumber(t)?t+"px":i||null},e.option.asElement=function(t,e){return"function"==typeof t&&(t=t()),t||e||null},e.hexToRGB=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,o){return e+e+i+i+o+o});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},e.overrideOpacity=function(t,i){var o;return-1!=t.indexOf("rgba")?t:-1!=t.indexOf("rgb")?"rgba("+(o=t.substr(t.indexOf("(")+1).replace(")","").split(","))[0]+","+o[1]+","+o[2]+","+i+")":null==(o=e.hexToRGB(t))?t:"rgba("+o.r+","+o.g+","+o.b+","+i+")"},e.RGBToHex=function(t,e,i){return"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)},e.parseColor=function(t){var i;if(!0===e.isString(t)){if(!0===e.isValidRGB(t)){var o=t.substr(4).substr(0,t.length-5).split(",").map(function(t){return parseInt(t)});t=e.RGBToHex(o[0],o[1],o[2])}if(!0===e.isValidHex(t)){var n=e.hexToHSV(t),s={h:n.h,s:.8*n.s,v:Math.min(1,1.02*n.v)},r={h:n.h,s:Math.min(1,1.25*n.s),v:.8*n.v},a=e.HSVToHex(r.h,r.s,r.v),h=e.HSVToHex(s.h,s.s,s.v);i={background:t,border:a,highlight:{background:h,border:a},hover:{background:h,border:a}}}else i={background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}else(i={}).background=t.background||void 0,i.border=t.border||void 0,e.isString(t.highlight)?i.highlight={border:t.highlight,background:t.highlight}:(i.highlight={},i.highlight.background=t.highlight&&t.highlight.background||void 0,i.highlight.border=t.highlight&&t.highlight.border||void 0),e.isString(t.hover)?i.hover={border:t.hover,background:t.hover}:(i.hover={},i.hover.background=t.hover&&t.hover.background||void 0,i.hover.border=t.hover&&t.hover.border||void 0);return i},e.RGBToHSV=function(t,e,i){t/=255,e/=255,i/=255;var o=Math.min(t,Math.min(e,i)),n=Math.max(t,Math.max(e,i));return o==n?{h:0,s:0,v:o}:{h:60*((t==o?3:i==o?1:5)-(t==o?e-i:i==o?t-e:i-t)/(n-o))/360,s:(n-o)/n,v:n}};var c=function(t){var e={};return t.split(";").forEach(function(t){if(""!=t.trim()){var i=t.split(":"),o=i[0].trim(),n=i[1].trim();e[o]=n}}),e},p=function(t){return(0,s.default)(t).map(function(e){return e+": "+t[e]}).join("; ")};e.addCssText=function(t,i){var o=c(t.style.cssText),n=c(i),s=e.extend(o,n);t.style.cssText=p(s)},e.removeCssText=function(t,e){var i=c(t.style.cssText),o=c(e);for(var n in o)o.hasOwnProperty(n)&&delete i[n];t.style.cssText=p(i)},e.HSVToRGB=function(t,e,i){var o,n,s,r=Math.floor(6*t),a=6*t-r,h=i*(1-e),d=i*(1-a*e),l=i*(1-(1-a)*e);switch(r%6){case 0:o=i,n=l,s=h;break;case 1:o=d,n=i,s=h;break;case 2:o=h,n=i,s=l;break;case 3:o=h,n=d,s=i;break;case 4:o=l,n=h,s=i;break;case 5:o=i,n=h,s=d}return{r:Math.floor(255*o),g:Math.floor(255*n),b:Math.floor(255*s)}},e.HSVToHex=function(t,i,o){var n=e.HSVToRGB(t,i,o);return e.RGBToHex(n.r,n.g,n.b)},e.hexToHSV=function(t){var i=e.hexToRGB(t);return e.RGBToHSV(i.r,i.g,i.b)},e.isValidHex=function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},e.isValidRGB=function(t){return t=t.replace(" ",""),/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/i.test(t)},e.isValidRGBA=function(t){return t=t.replace(" ",""),/rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(.{1,3})\)/i.test(t)},e.selectiveBridgeObject=function(t,i){if(null!==i&&"object"===(void 0===i?"undefined":(0,r.default)(i))){for(var o=(0,n.default)(i),s=0;s<t.length;s++)i.hasOwnProperty(t[s])&&"object"==(0,r.default)(i[t[s]])&&(o[t[s]]=e.bridgeObject(i[t[s]]));return o}return null},e.bridgeObject=function(t){if(null!==t&&"object"===(void 0===t?"undefined":(0,r.default)(t))){var i=(0,n.default)(t);if(t instanceof Element)i=t;else for(var o in i=(0,n.default)(t),t)t.hasOwnProperty(o)&&"object"==(0,r.default)(t[o])&&(i[o]=e.bridgeObject(t[o]));return i}return null},e.insertSort=function(t,e){for(var i=0;i<t.length;i++){for(var o=t[i],n=i;n>0&&e(o,t[n-1])<0;n--)t[n]=t[n-1];t[n]=o}return t},e.mergeOptions=function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=function(t){return null!==t&&void 0!==t},a=function(t){return null!==t&&"object"===(void 0===t?"undefined":(0,r.default)(t))};if(!a(t))throw new Error("Parameter mergeTarget must be an object");if(!a(e))throw new Error("Parameter options must be an object");if(!s(i))throw new Error("Parameter option must have a value");if(!a(o))throw new Error("Parameter globalOptions must be an object");var h=e[i],d=a(o)&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(o)?o[i]:void 0,l=d?d.enabled:void 0;if(void 0!==h){if("boolean"==typeof h)return a(t[i])||(t[i]={}),void(t[i].enabled=h);if(null===h&&!a(t[i])){if(!s(d))return;t[i]=(0,n.default)(d)}if(a(h)){var u=!0;void 0!==h.enabled?u=h.enabled:void 0!==l&&(u=d.enabled),function(t,e,i){a(t[i])||(t[i]={});var o=e[i],n=t[i];for(var s in o)o.hasOwnProperty(s)&&(n[s]=o[s])}(t,e,i),t[i].enabled=u}}},e.binarySearchCustom=function(t,e,i,o){for(var n=0,s=0,r=t.length-1;s<=r&&n<1e4;){var a=Math.floor((s+r)/2),h=t[a],d=e(void 0===o?h[i]:h[i][o]);if(0==d)return a;-1==d?s=a+1:r=a-1,n++}return-1},e.binarySearchValue=function(t,e,i,o,n){var s,r,a,h,d=0,l=0,u=t.length-1;for(n=void 0!=n?n:function(t,e){return t==e?0:t<e?-1:1};l<=u&&d<1e4;){if(h=Math.floor(.5*(u+l)),s=t[Math.max(0,h-1)][i],r=t[h][i],a=t[Math.min(t.length-1,h+1)][i],0==n(r,e))return h;if(n(s,e)<0&&n(r,e)>0)return"before"==o?Math.max(0,h-1):h;if(n(r,e)<0&&n(a,e)>0)return"before"==o?h:Math.min(t.length-1,h+1);n(r,e)<0?l=h+1:u=h-1,d++}return-1},e.easingFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t